zudoku 0.13.2 → 0.13.4

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.
Files changed (98) hide show
  1. package/dist/config/validators/InputSidebarSchema.d.ts +19 -4
  2. package/dist/config/validators/InputSidebarSchema.js +7 -28
  3. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  4. package/dist/config/validators/SidebarSchema.js +5 -6
  5. package/dist/config/validators/SidebarSchema.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +13 -6
  7. package/dist/config/validators/validate.js +4 -0
  8. package/dist/config/validators/validate.js.map +1 -1
  9. package/dist/lib/authentication/hook.d.ts +1 -1
  10. package/dist/lib/authentication/hook.js +1 -1
  11. package/dist/lib/authentication/hook.js.map +1 -1
  12. package/dist/lib/components/MobileTopNavigation.js +4 -1
  13. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  14. package/dist/lib/components/TopNavigation.d.ts +3 -0
  15. package/dist/lib/components/TopNavigation.js +9 -1
  16. package/dist/lib/components/TopNavigation.js.map +1 -1
  17. package/dist/lib/components/context/ZudokuContext.d.ts +2 -0
  18. package/dist/lib/components/index.d.ts +1 -0
  19. package/dist/lib/components/index.js +2 -0
  20. package/dist/lib/components/index.js.map +1 -1
  21. package/dist/lib/components/navigation/Sidebar.js +1 -1
  22. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  23. package/dist/lib/components/navigation/SidebarCategory.js +18 -7
  24. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  25. package/dist/lib/components/navigation/SidebarItem.js +12 -5
  26. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  27. package/dist/lib/core/DevPortalContext.d.ts +1 -0
  28. package/dist/lib/core/DevPortalContext.js.map +1 -1
  29. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  30. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  31. package/dist/lib/plugins/openapi/playground/Playground.js +1 -0
  32. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  33. package/dist/vite/dev-server.js +1 -1
  34. package/dist/vite/dev-server.js.map +1 -1
  35. package/dist/vite/plugin-mdx.js +17 -0
  36. package/dist/vite/plugin-mdx.js.map +1 -1
  37. package/lib/{AuthenticationPlugin-CbgJ5SAh.js → AuthenticationPlugin-D1nhROkO.js} +3 -3
  38. package/lib/{AuthenticationPlugin-CbgJ5SAh.js.map → AuthenticationPlugin-D1nhROkO.js.map} +1 -1
  39. package/lib/{CategoryHeading-3Qtp2yZ8.js → CategoryHeading-B7TlPvuN.js} +2 -2
  40. package/lib/{CategoryHeading-3Qtp2yZ8.js.map → CategoryHeading-B7TlPvuN.js.map} +1 -1
  41. package/lib/{DeveloperHint-BE9DzNhv.js → DeveloperHint-B_QCCafl.js} +2 -2
  42. package/lib/{DeveloperHint-BE9DzNhv.js.map → DeveloperHint-B_QCCafl.js.map} +1 -1
  43. package/lib/{ErrorPage-B0COs372.js → ErrorPage-DqqAV1dr.js} +3 -3
  44. package/lib/{ErrorPage-B0COs372.js.map → ErrorPage-DqqAV1dr.js.map} +1 -1
  45. package/lib/{Input-CHfE_2Qk.js → Input-DrR6P3mq.js} +4 -4
  46. package/lib/{Input-CHfE_2Qk.js.map → Input-DrR6P3mq.js.map} +1 -1
  47. package/lib/{Markdown-CWI6lU11.js → Markdown-Y__eLG0x.js} +2 -2
  48. package/lib/{Markdown-CWI6lU11.js.map → Markdown-Y__eLG0x.js.map} +1 -1
  49. package/lib/{MdxPage-C3tlrV4j.js → MdxPage-B4FcPIi5.js} +6 -6
  50. package/lib/MdxPage-B4FcPIi5.js.map +1 -0
  51. package/lib/{OperationList-BO-ES1C5.js → OperationList-C2jKCTwZ.js} +8 -8
  52. package/lib/{OperationList-BO-ES1C5.js.map → OperationList-C2jKCTwZ.js.map} +1 -1
  53. package/lib/{Route-Dq6zv0Pi.js → Route-DWXcQzRK.js} +3 -3
  54. package/lib/{Route-Dq6zv0Pi.js.map → Route-DWXcQzRK.js.map} +1 -1
  55. package/lib/{SidebarBadge-DmI5hT04.js → SidebarBadge-C0iWtji9.js} +3 -3
  56. package/lib/{SidebarBadge-DmI5hT04.js.map → SidebarBadge-C0iWtji9.js.map} +1 -1
  57. package/lib/{SlotletProvider-RvaeLR6z.js → SlotletProvider-DmqWiVFt.js} +7 -7
  58. package/lib/{SlotletProvider-RvaeLR6z.js.map → SlotletProvider-DmqWiVFt.js.map} +1 -1
  59. package/lib/{ZudokuContext-BEmsYQoq.js → ZudokuContext-MRoel6bS.js} +2 -2
  60. package/lib/{ZudokuContext-BEmsYQoq.js.map → ZudokuContext-MRoel6bS.js.map} +1 -1
  61. package/lib/{index-Do_BBSIs.js → index-Ch8VO_uX.js} +4 -4
  62. package/lib/index-Ch8VO_uX.js.map +1 -0
  63. package/lib/{index-BRCiYFaL.js → index-DFN92YJN.js} +3 -2
  64. package/lib/{index-BRCiYFaL.js.map → index-DFN92YJN.js.map} +1 -1
  65. package/lib/{index-DNfiZTPV.js → index-Dso_b0di.js} +102 -101
  66. package/lib/index-Dso_b0di.js.map +1 -0
  67. package/lib/{index-Dvh1BL_e.js → index-bYAqbdYl.js} +3 -3
  68. package/lib/{index-Dvh1BL_e.js.map → index-bYAqbdYl.js.map} +1 -1
  69. package/lib/{router-Oe6YmY6B.js → router-BsfSoK2j.js} +3 -3
  70. package/lib/{router-Oe6YmY6B.js.map → router-BsfSoK2j.js.map} +1 -1
  71. package/lib/{useExposedProps-Csw8oAlt.js → useExposedProps-BWwxa-Hg.js} +2 -2
  72. package/lib/{useExposedProps-Csw8oAlt.js.map → useExposedProps-BWwxa-Hg.js.map} +1 -1
  73. package/lib/{utils-Chi3p5nE.js → utils-C8S3st2k.js} +3 -3
  74. package/lib/{utils-Chi3p5nE.js.map → utils-C8S3st2k.js.map} +1 -1
  75. package/lib/zudoku.auth-clerk.js +1 -1
  76. package/lib/zudoku.auth-openid.js +5 -5
  77. package/lib/zudoku.components.js +788 -780
  78. package/lib/zudoku.components.js.map +1 -1
  79. package/lib/zudoku.plugin-api-keys.js +7 -7
  80. package/lib/zudoku.plugin-custom-pages.js +2 -2
  81. package/lib/zudoku.plugin-markdown.js +1 -1
  82. package/lib/zudoku.plugin-openapi.js +7 -7
  83. package/lib/zudoku.plugin-redirect.js +1 -1
  84. package/package.json +1 -1
  85. package/src/app/main.css +0 -1
  86. package/src/lib/authentication/hook.ts +1 -1
  87. package/src/lib/components/MobileTopNavigation.tsx +6 -2
  88. package/src/lib/components/TopNavigation.tsx +14 -1
  89. package/src/lib/components/index.ts +2 -0
  90. package/src/lib/components/navigation/Sidebar.tsx +1 -1
  91. package/src/lib/components/navigation/SidebarCategory.tsx +34 -26
  92. package/src/lib/components/navigation/SidebarItem.tsx +16 -17
  93. package/src/lib/core/DevPortalContext.ts +6 -1
  94. package/src/lib/plugins/markdown/MdxPage.tsx +10 -8
  95. package/src/lib/plugins/openapi/playground/Playground.tsx +1 -0
  96. package/lib/MdxPage-C3tlrV4j.js.map +0 -1
  97. package/lib/index-DNfiZTPV.js.map +0 -1
  98. package/lib/index-Do_BBSIs.js.map +0 -1
@@ -1,10 +1,10 @@
1
- var Ba = Object.defineProperty;
2
- var fn = (e) => {
1
+ var Ha = Object.defineProperty;
2
+ var hn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Ha = (e, t, n) => t in e ? Ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var ae = (e, t, n) => Ha(e, typeof t != "symbol" ? t + "" : t, n), hn = (e, t, n) => t.has(e) || fn("Cannot " + n);
7
- var w = (e, t, n) => (hn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? fn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (hn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
5
+ var Ua = (e, t, n) => t in e ? Ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var ae = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n), pn = (e, t, n) => t.has(e) || hn("Cannot " + n);
7
+ var w = (e, t, n) => (pn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? hn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (pn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
8
  var ut = (e, t, n, r) => ({
9
9
  set _(o) {
10
10
  X(e, t, o, n);
@@ -13,30 +13,30 @@ var ut = (e, t, n, r) => ({
13
13
  return w(e, t, r);
14
14
  }
15
15
  });
16
- import { c as On, H as It, M as Ua, d as za, A as Ka, b as qa } from "./utils-Chi3p5nE.js";
17
- import { e as Qa, f as Va, R as Ga, N as Ze, L as At, g as Wa, O as In, b as Ya, u as kt } from "./index-BRCiYFaL.js";
18
- import { E as An, S as xe, a as Xa, R as Ja } from "./SlotletProvider-RvaeLR6z.js";
16
+ import { c as On, H as kt, M as za, d as Ka, A as qa, b as Qa } from "./utils-C8S3st2k.js";
17
+ import { e as Va, f as Ga, R as Wa, N as Ze, L as $t, g as Ya, O as In, h as Xa, b as Ja, u as Ft } from "./index-DFN92YJN.js";
18
+ import { E as An, S as xe, a as Za, R as eo } from "./SlotletProvider-DmqWiVFt.js";
19
19
  import { j as a } from "./jsx-runtime-B6kdoens.js";
20
- import { M as Za, f as eo, c as kn, p as $n, A as to, d as rt, j as no, b as A, k as ro, F as ao, D as oo, C as so, P as Ke, i as $t, q as io, s as Fn, R as lo, S as co, t as uo, h as fo, r as Ln, m as ho, a as gt, u as Bn, V as Hn, n as pn, B as Pt } from "./index-Do_BBSIs.js";
21
- import { a as O, c as Un, b as po, T as mo, d as go, V as vo, u as Ft, e as wo, C as xo } from "./Markdown-CWI6lU11.js";
20
+ import { M as to, f as no, c as kn, p as $n, A as ro, d as rt, j as ao, b as I, k as oo, F as so, D as io, C as lo, P as qe, i as Lt, q as co, s as Fn, R as uo, S as fo, t as ho, h as po, r as Ln, m as mo, a as gt, u as Bn, n as vt, V as Hn, B as Nt } from "./index-Ch8VO_uX.js";
21
+ import { a as F, c as Un, b as go, T as vo, d as wo, V as xo, u as Bt, e as yo, C as bo } from "./Markdown-Y__eLG0x.js";
22
22
  import * as h from "react";
23
- import p, { StrictMode as zn, createContext as Kn, Component as yo, createElement as mn, isValidElement as bo, useState as Ie, useMemo as mt, useLayoutEffect as So, useEffect as Ce, useCallback as qn, Suspense as Qn, memo as Vn, useContext as Co, Fragment as Mo, useRef as Lt, forwardRef as Ro } from "react";
24
- import { a as Bt } from "./index-DJqnphbT.js";
25
- import { B as Eo } from "./router-Oe6YmY6B.js";
26
- import { a as jt, R as Do, T as Po, C as jo } from "./index-Dvh1BL_e.js";
27
- import { S as Gn, f as Wn, Q as No, n as se, m as gn, g as vn, i as be, j as To, k as _o, l as Oo, o as Io, p as wn, r as xn, q as Ao, h as yn, t as bn, v as ko, u as qe, b as $o, Z as Fo, w as Lo, c as Yn, x as Bo } from "./ZudokuContext-BEmsYQoq.js";
28
- import { j as Ht } from "./joinPath-B7kNnUX4.js";
29
- import { ChevronRightIcon as Xn, CheckIcon as Ho, DotIcon as Uo, CircleXIcon as zo, SearchIcon as Ko, MenuIcon as qo, MoonStarIcon as Qo, SunIcon as Vo, ExternalLinkIcon as Go, PanelLeftIcon as Wo } from "lucide-react";
30
- import { c as Jn, P as xt, R as Yo, I as Xo, O as Jo, C as Zo, T as es, a as ts, b as ns, D as rs, d as as, e as os, S as St } from "./SidebarBadge-DmI5hT04.js";
31
- import { S as ss } from "./Spinner-3cQDBVGr.js";
32
- function is({ error: e }) {
23
+ import p, { StrictMode as zn, createContext as Kn, Component as So, createElement as mn, isValidElement as Co, useState as Ie, useMemo as mt, useLayoutEffect as Mo, useEffect as Ce, useCallback as qn, Suspense as Qn, memo as Vn, useContext as Ro, Fragment as Eo, useRef as Ht, forwardRef as Do } from "react";
24
+ import { a as Ut } from "./index-DJqnphbT.js";
25
+ import { B as Po } from "./router-BsfSoK2j.js";
26
+ import { a as Tt, R as jo, T as No, C as To } from "./index-bYAqbdYl.js";
27
+ import { S as Gn, f as Wn, Q as _o, n as se, m as gn, g as vn, i as be, j as Oo, k as Io, l as Ao, o as ko, p as wn, r as xn, q as $o, h as yn, t as bn, v as Fo, u as Ae, b as Lo, Z as Bo, w as Ho, c as Yn, x as Uo } from "./ZudokuContext-MRoel6bS.js";
28
+ import { j as wt } from "./joinPath-B7kNnUX4.js";
29
+ import { ChevronRightIcon as Xn, CheckIcon as zo, DotIcon as Ko, CircleXIcon as qo, SearchIcon as Qo, MenuIcon as Vo, MoonStarIcon as Go, SunIcon as Wo, ExternalLinkIcon as Yo, PanelLeftIcon as Xo } from "lucide-react";
30
+ import { c as Jn, P as bt, R as Jo, I as Zo, O as es, C as ts, T as ns, a as rs, b as as, D as os, d as ss, e as is, S as Mt } from "./SidebarBadge-C0iWtji9.js";
31
+ import { S as ls } from "./Spinner-3cQDBVGr.js";
32
+ function cs({ error: e }) {
33
33
  return /* @__PURE__ */ a.jsx(An, { error: e });
34
34
  }
35
35
  var at = {};
36
- const ls = /* @__PURE__ */ Bt(Eo), cs = /* @__PURE__ */ Bt(Qa), us = /* @__PURE__ */ Bt(Va);
36
+ const us = /* @__PURE__ */ Ut(Po), ds = /* @__PURE__ */ Ut(Va), fs = /* @__PURE__ */ Ut(Ga);
37
37
  Object.defineProperty(at, "__esModule", { value: !0 });
38
- var ds = p, we = ls, Ut = cs, Se = us;
39
- function fs(e) {
38
+ var hs = p, we = us, zt = ds, Se = fs;
39
+ function ps(e) {
40
40
  if (e && e.__esModule) return e;
41
41
  var t = /* @__PURE__ */ Object.create(null);
42
42
  return e && Object.keys(e).forEach(function(n) {
@@ -51,8 +51,8 @@ function fs(e) {
51
51
  }
52
52
  }), t.default = e, Object.freeze(t);
53
53
  }
54
- var ge = /* @__PURE__ */ fs(ds);
55
- function hs({
54
+ var ge = /* @__PURE__ */ ps(hs);
55
+ function ms({
56
56
  basename: e,
57
57
  children: t,
58
58
  location: n = "/",
@@ -76,7 +76,7 @@ function hs({
76
76
  static: !0
77
77
  });
78
78
  }
79
- function ps({
79
+ function gs({
80
80
  context: e,
81
81
  router: t,
82
82
  hydrate: n = !0,
@@ -94,9 +94,9 @@ function ps({
94
94
  let u = {
95
95
  loaderData: e.loaderData,
96
96
  actionData: e.actionData,
97
- errors: gs(e.errors)
97
+ errors: ws(e.errors)
98
98
  };
99
- i = `window.__staticRouterHydrationData = JSON.parse(${Ss(JSON.stringify(JSON.stringify(u)))});`;
99
+ i = `window.__staticRouterHydrationData = JSON.parse(${Ms(JSON.stringify(JSON.stringify(u)))});`;
100
100
  }
101
101
  let {
102
102
  state: l
@@ -120,7 +120,7 @@ function ps({
120
120
  future: {
121
121
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
122
122
  }
123
- }, /* @__PURE__ */ ge.createElement(ms, {
123
+ }, /* @__PURE__ */ ge.createElement(vs, {
124
124
  routes: t.routes,
125
125
  future: t.future,
126
126
  state: l
@@ -132,14 +132,14 @@ function ps({
132
132
  }
133
133
  }) : null);
134
134
  }
135
- function ms({
135
+ function vs({
136
136
  routes: e,
137
137
  future: t,
138
138
  state: n
139
139
  }) {
140
- return Ut.UNSAFE_useRoutesImpl(e, void 0, n, t);
140
+ return zt.UNSAFE_useRoutesImpl(e, void 0, n, t);
141
141
  }
142
- function gs(e) {
142
+ function ws(e) {
143
143
  if (!e) return null;
144
144
  let t = Object.entries(e), n = {};
145
145
  for (let [r, o] of t)
@@ -178,14 +178,14 @@ function Zn() {
178
178
  }
179
179
  };
180
180
  }
181
- function vs(e, t) {
181
+ function xs(e, t) {
182
182
  return we.createStaticHandler(e, {
183
183
  ...t,
184
- mapRouteProperties: Ut.UNSAFE_mapRouteProperties
184
+ mapRouteProperties: zt.UNSAFE_mapRouteProperties
185
185
  });
186
186
  }
187
- function ws(e, t, n = {}) {
188
- let r = {}, o = we.UNSAFE_convertRoutesToDataRoutes(e, Ut.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
187
+ function ys(e, t, n = {}) {
188
+ let r = {}, o = we.UNSAFE_convertRoutesToDataRoutes(e, zt.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
189
189
  let u = r[l.route.id] || l.route;
190
190
  return {
191
191
  ...l,
@@ -280,36 +280,36 @@ function er(e) {
280
280
  function tr(e) {
281
281
  let t = typeof e == "string" ? e : Se.createPath(e);
282
282
  t = t.replace(/ $/, "%20");
283
- let n = xs.test(t) ? new URL(t) : new URL(t, "http://localhost");
283
+ let n = bs.test(t) ? new URL(t) : new URL(t, "http://localhost");
284
284
  return {
285
285
  pathname: n.pathname,
286
286
  search: n.search,
287
287
  hash: n.hash
288
288
  };
289
289
  }
290
- const xs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ys = {
290
+ const bs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ss = {
291
291
  "&": "\\u0026",
292
292
  ">": "\\u003e",
293
293
  "<": "\\u003c",
294
294
  "\u2028": "\\u2028",
295
295
  "\u2029": "\\u2029"
296
- }, bs = /[&><\u2028\u2029]/g;
297
- function Ss(e) {
298
- return e.replace(bs, (t) => ys[t]);
299
- }
300
- at.StaticRouter = hs;
301
- var Cs = at.StaticRouterProvider = ps;
302
- at.createStaticHandler = vs;
303
- at.createStaticRouter = ws;
304
- const Ms = ({
296
+ }, Cs = /[&><\u2028\u2029]/g;
297
+ function Ms(e) {
298
+ return e.replace(Cs, (t) => Ss[t]);
299
+ }
300
+ at.StaticRouter = ms;
301
+ var Rs = at.StaticRouterProvider = gs;
302
+ at.createStaticHandler = xs;
303
+ at.createStaticRouter = ys;
304
+ const Es = ({
305
305
  router: e,
306
306
  hydrate: t = !1
307
- }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { children: /* @__PURE__ */ a.jsx(jt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Ga, { router: e }) }) }) }), Rs = ({
307
+ }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { children: /* @__PURE__ */ a.jsx(Tt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Wa, { router: e }) }) }) }), Ds = ({
308
308
  router: e,
309
309
  context: t,
310
310
  helmetContext: n
311
- }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { context: n, children: /* @__PURE__ */ a.jsx(Cs, { router: e, context: t }) }) });
312
- var ve, Nn, Es = (Nn = class extends Gn {
311
+ }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { context: n, children: /* @__PURE__ */ a.jsx(Rs, { router: e, context: t }) }) });
312
+ var ve, Nn, Ps = (Nn = class extends Gn {
313
313
  constructor(t = {}) {
314
314
  super();
315
315
  ce(this, ve);
@@ -318,7 +318,7 @@ var ve, Nn, Es = (Nn = class extends Gn {
318
318
  build(t, n, r) {
319
319
  const o = n.queryKey, s = n.queryHash ?? Wn(o, n);
320
320
  let i = this.get(s);
321
- return i || (i = new No({
321
+ return i || (i = new _o({
322
322
  cache: this,
323
323
  queryKey: o,
324
324
  queryHash: s,
@@ -381,7 +381,7 @@ var ve, Nn, Es = (Nn = class extends Gn {
381
381
  });
382
382
  });
383
383
  }
384
- }, ve = new WeakMap(), Nn), oe, nt, Tn, Ds = (Tn = class extends Gn {
384
+ }, ve = new WeakMap(), Nn), oe, nt, Tn, js = (Tn = class extends Gn {
385
385
  constructor(t = {}) {
386
386
  super();
387
387
  ce(this, oe);
@@ -389,7 +389,7 @@ var ve, Nn, Es = (Nn = class extends Gn {
389
389
  this.config = t, X(this, oe, /* @__PURE__ */ new Map()), X(this, nt, Date.now());
390
390
  }
391
391
  build(t, n, r) {
392
- const o = new Za({
392
+ const o = new to({
393
393
  mutationCache: this,
394
394
  mutationId: ++ut(this, nt)._,
395
395
  options: t.defaultMutationOptions(n),
@@ -462,59 +462,59 @@ function dt(e) {
462
462
  function Sn(e) {
463
463
  return {
464
464
  onFetch: (t, n) => {
465
- var f, c, d, v, M;
466
- const r = t.options, o = (d = (c = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : d.direction, s = ((v = t.state.data) == null ? void 0 : v.pages) || [], i = ((M = t.state.data) == null ? void 0 : M.pageParams) || [];
465
+ var f, c, d, R, C;
466
+ const r = t.options, o = (d = (c = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : d.direction, s = ((R = t.state.data) == null ? void 0 : R.pages) || [], i = ((C = t.state.data) == null ? void 0 : C.pageParams) || [];
467
467
  let l = { pages: [], pageParams: [] }, u = 0;
468
468
  const m = async () => {
469
- let C = !1;
470
- const _ = (P) => {
469
+ let g = !1;
470
+ const T = (P) => {
471
471
  Object.defineProperty(P, "signal", {
472
472
  enumerable: !0,
473
- get: () => (t.signal.aborted ? C = !0 : t.signal.addEventListener("abort", () => {
474
- C = !0;
473
+ get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
474
+ g = !0;
475
475
  }), t.signal)
476
476
  });
477
- }, R = To(t.options, t.fetchOptions), k = async (P, g, z) => {
478
- if (C)
477
+ }, M = Oo(t.options, t.fetchOptions), A = async (P, v, z) => {
478
+ if (g)
479
479
  return Promise.reject();
480
- if (g == null && P.pages.length)
480
+ if (v == null && P.pages.length)
481
481
  return Promise.resolve(P);
482
482
  const Z = {
483
483
  queryKey: t.queryKey,
484
- pageParam: g,
484
+ pageParam: v,
485
485
  direction: z ? "backward" : "forward",
486
486
  meta: t.options.meta
487
487
  };
488
- _(Z);
489
- const b = await R(
488
+ T(Z);
489
+ const b = await M(
490
490
  Z
491
- ), { maxPages: j } = t.options, D = z ? _o : Oo;
491
+ ), { maxPages: j } = t.options, D = z ? Io : Ao;
492
492
  return {
493
493
  pages: D(P.pages, b, j),
494
- pageParams: D(P.pageParams, g, j)
494
+ pageParams: D(P.pageParams, v, j)
495
495
  };
496
496
  };
497
497
  if (o && s.length) {
498
- const P = o === "backward", g = P ? Ps : Cn, z = {
498
+ const P = o === "backward", v = P ? Ns : Cn, z = {
499
499
  pages: s,
500
500
  pageParams: i
501
- }, Z = g(r, z);
502
- l = await k(z, Z, P);
501
+ }, Z = v(r, z);
502
+ l = await A(z, Z, P);
503
503
  } else {
504
504
  const P = e ?? s.length;
505
505
  do {
506
- const g = u === 0 ? i[0] ?? r.initialPageParam : Cn(r, l);
507
- if (u > 0 && g == null)
506
+ const v = u === 0 ? i[0] ?? r.initialPageParam : Cn(r, l);
507
+ if (u > 0 && v == null)
508
508
  break;
509
- l = await k(l, g), u++;
509
+ l = await A(l, v), u++;
510
510
  } while (u < P);
511
511
  }
512
512
  return l;
513
513
  };
514
514
  t.options.persister ? t.fetchFn = () => {
515
- var C, _;
516
- return (_ = (C = t.options).persister) == null ? void 0 : _.call(
517
- C,
515
+ var g, T;
516
+ return (T = (g = t.options).persister) == null ? void 0 : T.call(
517
+ g,
518
518
  m,
519
519
  {
520
520
  queryKey: t.queryKey,
@@ -536,35 +536,35 @@ function Cn(e, { pages: t, pageParams: n }) {
536
536
  n
537
537
  ) : void 0;
538
538
  }
539
- function Ps(e, { pages: t, pageParams: n }) {
539
+ function Ns(e, { pages: t, pageParams: n }) {
540
540
  var r;
541
541
  return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
542
542
  }
543
- var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
543
+ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
544
544
  constructor(e = {}) {
545
- ce(this, F);
545
+ ce(this, $);
546
546
  ce(this, Pe);
547
547
  ce(this, je);
548
- ce(this, Be);
549
548
  ce(this, He);
550
- ce(this, Ne);
551
549
  ce(this, Ue);
550
+ ce(this, Ne);
552
551
  ce(this, ze);
553
- X(this, F, e.queryCache || new Es()), X(this, Pe, e.mutationCache || new Ds()), X(this, je, e.defaultOptions || {}), X(this, Be, /* @__PURE__ */ new Map()), X(this, He, /* @__PURE__ */ new Map()), X(this, Ne, 0);
552
+ ce(this, Ke);
553
+ X(this, $, e.queryCache || new Ps()), X(this, Pe, e.mutationCache || new js()), X(this, je, e.defaultOptions || {}), X(this, He, /* @__PURE__ */ new Map()), X(this, Ue, /* @__PURE__ */ new Map()), X(this, Ne, 0);
554
554
  }
555
555
  mount() {
556
- ut(this, Ne)._++, w(this, Ne) === 1 && (X(this, Ue, Io.subscribe(async (e) => {
557
- e && (await this.resumePausedMutations(), w(this, F).onFocus());
558
- })), X(this, ze, wn.subscribe(async (e) => {
559
- e && (await this.resumePausedMutations(), w(this, F).onOnline());
556
+ ut(this, Ne)._++, w(this, Ne) === 1 && (X(this, ze, ko.subscribe(async (e) => {
557
+ e && (await this.resumePausedMutations(), w(this, $).onFocus());
558
+ })), X(this, Ke, wn.subscribe(async (e) => {
559
+ e && (await this.resumePausedMutations(), w(this, $).onOnline());
560
560
  })));
561
561
  }
562
562
  unmount() {
563
563
  var e, t;
564
- ut(this, Ne)._--, w(this, Ne) === 0 && ((e = w(this, Ue)) == null || e.call(this), X(this, Ue, void 0), (t = w(this, ze)) == null || t.call(this), X(this, ze, void 0));
564
+ ut(this, Ne)._--, w(this, Ne) === 0 && ((e = w(this, ze)) == null || e.call(this), X(this, ze, void 0), (t = w(this, Ke)) == null || t.call(this), X(this, Ke, void 0));
565
565
  }
566
566
  isFetching(e) {
567
- return w(this, F).findAll({ ...e, fetchStatus: "fetching" }).length;
567
+ return w(this, $).findAll({ ...e, fetchStatus: "fetching" }).length;
568
568
  }
569
569
  isMutating(e) {
570
570
  return w(this, Pe).findAll({ ...e, status: "pending" }).length;
@@ -572,33 +572,33 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
572
572
  getQueryData(e) {
573
573
  var n;
574
574
  const t = this.defaultQueryOptions({ queryKey: e });
575
- return (n = w(this, F).get(t.queryHash)) == null ? void 0 : n.state.data;
575
+ return (n = w(this, $).get(t.queryHash)) == null ? void 0 : n.state.data;
576
576
  }
577
577
  ensureQueryData(e) {
578
578
  const t = this.getQueryData(e.queryKey);
579
579
  if (t === void 0)
580
580
  return this.fetchQuery(e);
581
581
  {
582
- const n = this.defaultQueryOptions(e), r = w(this, F).build(this, n);
582
+ const n = this.defaultQueryOptions(e), r = w(this, $).build(this, n);
583
583
  return e.revalidateIfStale && r.isStaleByTime(xn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
584
584
  }
585
585
  }
586
586
  getQueriesData(e) {
587
- return w(this, F).findAll(e).map(({ queryKey: t, state: n }) => {
587
+ return w(this, $).findAll(e).map(({ queryKey: t, state: n }) => {
588
588
  const r = n.data;
589
589
  return [t, r];
590
590
  });
591
591
  }
592
592
  setQueryData(e, t, n) {
593
- const r = this.defaultQueryOptions({ queryKey: e }), o = w(this, F).get(
593
+ const r = this.defaultQueryOptions({ queryKey: e }), o = w(this, $).get(
594
594
  r.queryHash
595
- ), s = o == null ? void 0 : o.state.data, i = Ao(t, s);
595
+ ), s = o == null ? void 0 : o.state.data, i = $o(t, s);
596
596
  if (i !== void 0)
597
- return w(this, F).build(this, r).setData(i, { ...n, manual: !0 });
597
+ return w(this, $).build(this, r).setData(i, { ...n, manual: !0 });
598
598
  }
599
599
  setQueriesData(e, t, n) {
600
600
  return se.batch(
601
- () => w(this, F).findAll(e).map(({ queryKey: r }) => [
601
+ () => w(this, $).findAll(e).map(({ queryKey: r }) => [
602
602
  r,
603
603
  this.setQueryData(r, t, n)
604
604
  ])
@@ -607,10 +607,10 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
607
607
  getQueryState(e) {
608
608
  var n;
609
609
  const t = this.defaultQueryOptions({ queryKey: e });
610
- return (n = w(this, F).get(t.queryHash)) == null ? void 0 : n.state;
610
+ return (n = w(this, $).get(t.queryHash)) == null ? void 0 : n.state;
611
611
  }
612
612
  removeQueries(e) {
613
- const t = w(this, F);
613
+ const t = w(this, $);
614
614
  se.batch(() => {
615
615
  t.findAll(e).forEach((n) => {
616
616
  t.remove(n);
@@ -618,7 +618,7 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
618
618
  });
619
619
  }
620
620
  resetQueries(e, t) {
621
- const n = w(this, F), r = {
621
+ const n = w(this, $), r = {
622
622
  type: "active",
623
623
  ...e
624
624
  };
@@ -628,13 +628,13 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
628
628
  }
629
629
  cancelQueries(e = {}, t = {}) {
630
630
  const n = { revert: !0, ...t }, r = se.batch(
631
- () => w(this, F).findAll(e).map((o) => o.cancel(n))
631
+ () => w(this, $).findAll(e).map((o) => o.cancel(n))
632
632
  );
633
633
  return Promise.all(r).then(be).catch(be);
634
634
  }
635
635
  invalidateQueries(e = {}, t = {}) {
636
636
  return se.batch(() => {
637
- if (w(this, F).findAll(e).forEach((r) => {
637
+ if (w(this, $).findAll(e).forEach((r) => {
638
638
  r.invalidate();
639
639
  }), e.refetchType === "none")
640
640
  return Promise.resolve();
@@ -650,7 +650,7 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
650
650
  ...t,
651
651
  cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
652
652
  }, r = se.batch(
653
- () => w(this, F).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
653
+ () => w(this, $).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
654
654
  let s = o.fetch(void 0, n);
655
655
  return n.throwOnError || (s = s.catch(be)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
656
656
  })
@@ -660,7 +660,7 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
660
660
  fetchQuery(e) {
661
661
  const t = this.defaultQueryOptions(e);
662
662
  t.retry === void 0 && (t.retry = !1);
663
- const n = w(this, F).build(this, t);
663
+ const n = w(this, $).build(this, t);
664
664
  return n.isStaleByTime(
665
665
  xn(t.staleTime, n)
666
666
  ) ? n.fetch(t) : Promise.resolve(n.state.data);
@@ -681,7 +681,7 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
681
681
  return wn.isOnline() ? w(this, Pe).resumePausedMutations() : Promise.resolve();
682
682
  }
683
683
  getQueryCache() {
684
- return w(this, F);
684
+ return w(this, $);
685
685
  }
686
686
  getMutationCache() {
687
687
  return w(this, Pe);
@@ -693,26 +693,26 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
693
693
  X(this, je, e);
694
694
  }
695
695
  setQueryDefaults(e, t) {
696
- w(this, Be).set(yn(e), {
696
+ w(this, He).set(yn(e), {
697
697
  queryKey: e,
698
698
  defaultOptions: t
699
699
  });
700
700
  }
701
701
  getQueryDefaults(e) {
702
- const t = [...w(this, Be).values()];
702
+ const t = [...w(this, He).values()];
703
703
  let n = {};
704
704
  return t.forEach((r) => {
705
705
  bn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
706
706
  }), n;
707
707
  }
708
708
  setMutationDefaults(e, t) {
709
- w(this, He).set(yn(e), {
709
+ w(this, Ue).set(yn(e), {
710
710
  mutationKey: e,
711
711
  defaultOptions: t
712
712
  });
713
713
  }
714
714
  getMutationDefaults(e) {
715
- const t = [...w(this, He).values()];
715
+ const t = [...w(this, Ue).values()];
716
716
  let n = {};
717
717
  return t.forEach((r) => {
718
718
  bn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
@@ -730,7 +730,7 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
730
730
  return t.queryHash || (t.queryHash = Wn(
731
731
  t.queryKey,
732
732
  t
733
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === ko && (t.enabled = !1), t;
733
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Fo && (t.enabled = !1), t;
734
734
  }
735
735
  defaultMutationOptions(e) {
736
736
  return e != null && e._defaulted ? e : {
@@ -741,16 +741,16 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
741
741
  };
742
742
  }
743
743
  clear() {
744
- w(this, F).clear(), w(this, Pe).clear();
744
+ w(this, $).clear(), w(this, Pe).clear();
745
745
  }
746
- }, F = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), Be = new WeakMap(), He = new WeakMap(), Ne = new WeakMap(), Ue = new WeakMap(), ze = new WeakMap(), _n);
747
- const Ns = Kn(null), Ct = {
746
+ }, $ = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), He = new WeakMap(), Ue = new WeakMap(), Ne = new WeakMap(), ze = new WeakMap(), Ke = new WeakMap(), _n);
747
+ const _s = Kn(null), Rt = {
748
748
  didCatch: !1,
749
749
  error: null
750
750
  };
751
- class Ts extends yo {
751
+ class Os extends So {
752
752
  constructor(t) {
753
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ct;
753
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Rt;
754
754
  }
755
755
  static getDerivedStateFromError(t) {
756
756
  return {
@@ -768,7 +768,7 @@ class Ts extends yo {
768
768
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
769
769
  args: s,
770
770
  reason: "imperative-api"
771
- }), this.setState(Ct);
771
+ }), this.setState(Rt);
772
772
  }
773
773
  }
774
774
  componentDidCatch(t, n) {
@@ -781,13 +781,13 @@ class Ts extends yo {
781
781
  } = this.state, {
782
782
  resetKeys: o
783
783
  } = this.props;
784
- if (r && n.error !== null && _s(t.resetKeys, o)) {
784
+ if (r && n.error !== null && Is(t.resetKeys, o)) {
785
785
  var s, i;
786
786
  (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
787
787
  next: o,
788
788
  prev: t.resetKeys,
789
789
  reason: "keys"
790
- }), this.setState(Ct);
790
+ }), this.setState(Rt);
791
791
  }
792
792
  }
793
793
  render() {
@@ -810,12 +810,12 @@ class Ts extends yo {
810
810
  l = n(u);
811
811
  else if (r)
812
812
  l = mn(r, u);
813
- else if (o === null || bo(o))
813
+ else if (o === null || Co(o))
814
814
  l = o;
815
815
  else
816
816
  throw i;
817
817
  }
818
- return mn(Ns.Provider, {
818
+ return mn(_s.Provider, {
819
819
  value: {
820
820
  didCatch: s,
821
821
  error: i,
@@ -824,12 +824,12 @@ class Ts extends yo {
824
824
  }, l);
825
825
  }
826
826
  }
827
- function _s() {
827
+ function Is() {
828
828
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
829
829
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
830
830
  }
831
- const Os = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Is = (e) => "getRoutes" in e && typeof e.getRoutes == "function", As = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ks = (e) => "initialize" in e && typeof e.initialize == "function", $s = (e) => "getHead" in e && typeof e.getHead == "function", Fs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ls = (e) => "getIdentities" in e && typeof e.getIdentities == "function", nr = new js();
832
- class Bs {
831
+ const As = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", ks = (e) => "getRoutes" in e && typeof e.getRoutes == "function", $s = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Fs = (e) => "initialize" in e && typeof e.initialize == "function", Ls = (e) => "getHead" in e && typeof e.getHead == "function", Bs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Hs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", nr = new Ts();
832
+ class Us {
833
833
  constructor(t) {
834
834
  ae(this, "plugins");
835
835
  ae(this, "sidebars");
@@ -840,7 +840,7 @@ class Bs {
840
840
  ae(this, "navigationPlugins");
841
841
  ae(this, "initialize", async () => {
842
842
  await Promise.all(
843
- this.plugins.filter(ks).map((t) => {
843
+ this.plugins.filter(Fs).map((t) => {
844
844
  var n;
845
845
  return (n = t.initialize) == null ? void 0 : n.call(t, this);
846
846
  })
@@ -850,13 +850,13 @@ class Bs {
850
850
  await nr.invalidateQueries({ queryKey: t });
851
851
  });
852
852
  ae(this, "getApiIdentities", async () => (await Promise.all(
853
- this.plugins.filter(Ls).map((n) => n.getIdentities(this))
853
+ this.plugins.filter(Hs).map((n) => n.getIdentities(this))
854
854
  )).flat());
855
855
  ae(this, "getPluginSidebar", async (t) => (await Promise.all(
856
856
  this.navigationPlugins.map(
857
857
  (r) => {
858
858
  var o;
859
- return (o = r.getSidebar) == null ? void 0 : o.call(r, Ht(t));
859
+ return (o = r.getSidebar) == null ? void 0 : o.call(r, wt(t));
860
860
  }
861
861
  )
862
862
  )).flatMap((r) => r ?? []));
@@ -866,32 +866,32 @@ class Bs {
866
866
  const n = await this.authentication.getAccessToken();
867
867
  return t.headers.set("Authorization", `Bearer ${n}`), t;
868
868
  });
869
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Is), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
869
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ks), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
870
870
  }
871
871
  }
872
- function Hs({ error: e, resetErrorBoundary: t }) {
872
+ function zs({ error: e, resetErrorBoundary: t }) {
873
873
  return /* @__PURE__ */ a.jsx(An, { error: e });
874
874
  }
875
875
  const ft = globalThis;
876
876
  (!ft.requestIdleCallback || !ft.cancelIdleCallback) && (ft.requestIdleCallback = (e) => setTimeout(e, 1), ft.cancelIdleCallback = clearTimeout);
877
- var Nt = ["Enter", " "], Us = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp", "PageDown", "End"], zs = [...Us, ...rr], Ks = {
878
- ltr: [...Nt, "ArrowRight"],
879
- rtl: [...Nt, "ArrowLeft"]
880
- }, qs = {
877
+ var _t = ["Enter", " "], Ks = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp", "PageDown", "End"], qs = [...Ks, ...rr], Qs = {
878
+ ltr: [..._t, "ArrowRight"],
879
+ rtl: [..._t, "ArrowLeft"]
880
+ }, Vs = {
881
881
  ltr: ["ArrowLeft"],
882
882
  rtl: ["ArrowRight"]
883
- }, ot = "Menu", [et, Qs, Vs] = eo(ot), [Ae, ar] = kn(ot, [
884
- Vs,
883
+ }, ot = "Menu", [et, Gs, Ws] = no(ot), [ke, ar] = kn(ot, [
884
+ Ws,
885
885
  $n,
886
886
  Jn
887
- ]), st = $n(), or = Jn(), [sr, Te] = Ae(ot), [Gs, it] = Ae(ot), ir = (e) => {
888
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = $t(s), d = fo(o);
887
+ ]), st = $n(), or = Jn(), [sr, Te] = ke(ot), [Ys, it] = ke(ot), ir = (e) => {
888
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = Lt(s), d = po(o);
889
889
  return h.useEffect(() => {
890
- const v = () => {
891
- f.current = !0, document.addEventListener("pointerdown", M, { capture: !0, once: !0 }), document.addEventListener("pointermove", M, { capture: !0, once: !0 });
892
- }, M = () => f.current = !1;
893
- return document.addEventListener("keydown", v, { capture: !0 }), () => {
894
- document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", M, { capture: !0 }), document.removeEventListener("pointermove", M, { capture: !0 });
890
+ const R = () => {
891
+ f.current = !0, document.addEventListener("pointerdown", C, { capture: !0, once: !0 }), document.addEventListener("pointermove", C, { capture: !0, once: !0 });
892
+ }, C = () => f.current = !1;
893
+ return document.addEventListener("keydown", R, { capture: !0 }), () => {
894
+ document.removeEventListener("keydown", R, { capture: !0 }), document.removeEventListener("pointerdown", C, { capture: !0 }), document.removeEventListener("pointermove", C, { capture: !0 });
895
895
  };
896
896
  }, []), /* @__PURE__ */ a.jsx(Ln, { ...l, children: /* @__PURE__ */ a.jsx(
897
897
  sr,
@@ -902,7 +902,7 @@ var Nt = ["Enter", " "], Us = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
902
902
  content: u,
903
903
  onContentChange: m,
904
904
  children: /* @__PURE__ */ a.jsx(
905
- Gs,
905
+ Ys,
906
906
  {
907
907
  scope: t,
908
908
  onClose: h.useCallback(() => c(!1), [c]),
@@ -916,40 +916,40 @@ var Nt = ["Enter", " "], Us = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
916
916
  ) });
917
917
  };
918
918
  ir.displayName = ot;
919
- var Ws = "MenuAnchor", zt = h.forwardRef(
919
+ var Xs = "MenuAnchor", Kt = h.forwardRef(
920
920
  (e, t) => {
921
921
  const { __scopeMenu: n, ...r } = e, o = st(n);
922
- return /* @__PURE__ */ a.jsx(to, { ...o, ...r, ref: t });
922
+ return /* @__PURE__ */ a.jsx(ro, { ...o, ...r, ref: t });
923
923
  }
924
924
  );
925
- zt.displayName = Ws;
926
- var Kt = "MenuPortal", [Ys, lr] = Ae(Kt, {
925
+ Kt.displayName = Xs;
926
+ var qt = "MenuPortal", [Js, lr] = ke(qt, {
927
927
  forceMount: void 0
928
928
  }), cr = (e) => {
929
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(Kt, t);
930
- return /* @__PURE__ */ a.jsx(Ys, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(xt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(ho, { asChild: !0, container: o, children: r }) }) });
929
+ const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(qt, t);
930
+ return /* @__PURE__ */ a.jsx(Js, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(bt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(mo, { asChild: !0, container: o, children: r }) }) });
931
931
  };
932
- cr.displayName = Kt;
933
- var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
932
+ cr.displayName = qt;
933
+ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
934
934
  (e, t) => {
935
935
  const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu);
936
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(xt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(Js, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(Zs, { ...o, ref: t }) }) }) });
936
+ return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ei, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ti, { ...o, ref: t }) }) }) });
937
937
  }
938
- ), Js = h.forwardRef(
938
+ ), ei = h.forwardRef(
939
939
  (e, t) => {
940
940
  const n = Te(ue, e.__scopeMenu), r = h.useRef(null), o = rt(t, r);
941
941
  return h.useEffect(() => {
942
942
  const s = r.current;
943
- if (s) return no(s);
943
+ if (s) return ao(s);
944
944
  }, []), /* @__PURE__ */ a.jsx(
945
- Qt,
945
+ Vt,
946
946
  {
947
947
  ...e,
948
948
  ref: o,
949
949
  trapFocus: n.open,
950
950
  disableOutsidePointerEvents: n.open,
951
951
  disableOutsideScroll: !0,
952
- onFocusOutside: A(
952
+ onFocusOutside: I(
953
953
  e.onFocusOutside,
954
954
  (s) => s.preventDefault(),
955
955
  { checkForDefaultPrevented: !1 }
@@ -958,10 +958,10 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
958
958
  }
959
959
  );
960
960
  }
961
- ), Zs = h.forwardRef((e, t) => {
961
+ ), ti = h.forwardRef((e, t) => {
962
962
  const n = Te(ue, e.__scopeMenu);
963
963
  return /* @__PURE__ */ a.jsx(
964
- Qt,
964
+ Vt,
965
965
  {
966
966
  ...e,
967
967
  ref: t,
@@ -971,7 +971,7 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
971
971
  onDismiss: () => n.onOpenChange(!1)
972
972
  }
973
973
  );
974
- }), Qt = h.forwardRef(
974
+ }), Vt = h.forwardRef(
975
975
  (e, t) => {
976
976
  const {
977
977
  __scopeMenu: n,
@@ -985,23 +985,23 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
985
985
  onPointerDownOutside: f,
986
986
  onFocusOutside: c,
987
987
  onInteractOutside: d,
988
- onDismiss: v,
989
- disableOutsideScroll: M,
990
- ...C
991
- } = e, _ = Te(ue, n), R = it(ue, n), k = st(n), P = or(n), g = Qs(n), [z, Z] = h.useState(null), b = h.useRef(null), j = rt(t, b, _.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), x = h.useRef("right"), V = h.useRef(0), G = M ? lo : h.Fragment, te = M ? { as: co, allowPinchZoom: !0 } : void 0, q = (y) => {
988
+ onDismiss: R,
989
+ disableOutsideScroll: C,
990
+ ...g
991
+ } = e, T = Te(ue, n), M = it(ue, n), A = st(n), P = or(n), v = Gs(n), [z, Z] = h.useState(null), b = h.useRef(null), j = rt(t, b, T.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), x = h.useRef("right"), V = h.useRef(0), G = C ? uo : h.Fragment, te = C ? { as: fo, allowPinchZoom: !0 } : void 0, q = (y) => {
992
992
  var le, Re;
993
- const Q = B.current + y, ie = g().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), ke = di(Me, Q, pe), ye = (Re = ie.find((re) => re.textValue === ke)) == null ? void 0 : Re.ref.current;
994
- (function re($e) {
995
- B.current = $e, window.clearTimeout(D.current), $e !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
993
+ const Q = B.current + y, ie = v().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), $e = hi(Me, Q, pe), ye = (Re = ie.find((re) => re.textValue === $e)) == null ? void 0 : Re.ref.current;
994
+ (function re(Fe) {
995
+ B.current = Fe, window.clearTimeout(D.current), Fe !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
996
996
  })(Q), ye && setTimeout(() => ye.focus());
997
997
  };
998
- h.useEffect(() => () => window.clearTimeout(D.current), []), ro();
998
+ h.useEffect(() => () => window.clearTimeout(D.current), []), oo();
999
999
  const Y = h.useCallback((y) => {
1000
1000
  var ie, de;
1001
- return x.current === ((ie = W.current) == null ? void 0 : ie.side) && hi(y, (de = W.current) == null ? void 0 : de.area);
1001
+ return x.current === ((ie = W.current) == null ? void 0 : ie.side) && mi(y, (de = W.current) == null ? void 0 : de.area);
1002
1002
  }, []);
1003
1003
  return /* @__PURE__ */ a.jsx(
1004
- Xs,
1004
+ Zs,
1005
1005
  {
1006
1006
  scope: n,
1007
1007
  searchRef: B,
@@ -1029,17 +1029,17 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
1029
1029
  W.current = y;
1030
1030
  }, []),
1031
1031
  children: /* @__PURE__ */ a.jsx(G, { ...te, children: /* @__PURE__ */ a.jsx(
1032
- ao,
1032
+ so,
1033
1033
  {
1034
1034
  asChild: !0,
1035
1035
  trapped: o,
1036
- onMountAutoFocus: A(s, (y) => {
1036
+ onMountAutoFocus: I(s, (y) => {
1037
1037
  var Q;
1038
1038
  y.preventDefault(), (Q = b.current) == null || Q.focus({ preventScroll: !0 });
1039
1039
  }),
1040
1040
  onUnmountAutoFocus: i,
1041
1041
  children: /* @__PURE__ */ a.jsx(
1042
- oo,
1042
+ io,
1043
1043
  {
1044
1044
  asChild: !0,
1045
1045
  disableOutsidePointerEvents: l,
@@ -1047,46 +1047,46 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
1047
1047
  onPointerDownOutside: f,
1048
1048
  onFocusOutside: c,
1049
1049
  onInteractOutside: d,
1050
- onDismiss: v,
1050
+ onDismiss: R,
1051
1051
  children: /* @__PURE__ */ a.jsx(
1052
- Yo,
1052
+ Jo,
1053
1053
  {
1054
1054
  asChild: !0,
1055
1055
  ...P,
1056
- dir: R.dir,
1056
+ dir: M.dir,
1057
1057
  orientation: "vertical",
1058
1058
  loop: r,
1059
1059
  currentTabStopId: z,
1060
1060
  onCurrentTabStopIdChange: Z,
1061
- onEntryFocus: A(u, (y) => {
1062
- R.isUsingKeyboardRef.current || y.preventDefault();
1061
+ onEntryFocus: I(u, (y) => {
1062
+ M.isUsingKeyboardRef.current || y.preventDefault();
1063
1063
  }),
1064
1064
  preventScrollOnEntryFocus: !0,
1065
1065
  children: /* @__PURE__ */ a.jsx(
1066
- so,
1066
+ lo,
1067
1067
  {
1068
1068
  role: "menu",
1069
1069
  "aria-orientation": "vertical",
1070
- "data-state": Dr(_.open),
1070
+ "data-state": Dr(T.open),
1071
1071
  "data-radix-menu-content": "",
1072
- dir: R.dir,
1073
- ...k,
1074
- ...C,
1072
+ dir: M.dir,
1073
+ ...A,
1074
+ ...g,
1075
1075
  ref: j,
1076
- style: { outline: "none", ...C.style },
1077
- onKeyDown: A(C.onKeyDown, (y) => {
1076
+ style: { outline: "none", ...g.style },
1077
+ onKeyDown: I(g.onKeyDown, (y) => {
1078
1078
  const ie = y.target.closest("[data-radix-menu-content]") === y.currentTarget, de = y.ctrlKey || y.altKey || y.metaKey, pe = y.key.length === 1;
1079
1079
  ie && (y.key === "Tab" && y.preventDefault(), !de && pe && q(y.key));
1080
1080
  const Me = b.current;
1081
- if (y.target !== Me || !zs.includes(y.key)) return;
1081
+ if (y.target !== Me || !qs.includes(y.key)) return;
1082
1082
  y.preventDefault();
1083
- const ye = g().filter((le) => !le.disabled).map((le) => le.ref.current);
1084
- rr.includes(y.key) && ye.reverse(), ci(ye);
1083
+ const ye = v().filter((le) => !le.disabled).map((le) => le.ref.current);
1084
+ rr.includes(y.key) && ye.reverse(), di(ye);
1085
1085
  }),
1086
- onBlur: A(e.onBlur, (y) => {
1086
+ onBlur: I(e.onBlur, (y) => {
1087
1087
  y.currentTarget.contains(y.target) || (window.clearTimeout(D.current), B.current = "");
1088
1088
  }),
1089
- onPointerMove: A(
1089
+ onPointerMove: I(
1090
1090
  e.onPointerMove,
1091
1091
  tt((y) => {
1092
1092
  const Q = y.target, ie = V.current !== y.clientX;
@@ -1109,27 +1109,27 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
1109
1109
  }
1110
1110
  );
1111
1111
  ur.displayName = ue;
1112
- var ei = "MenuGroup", Vt = h.forwardRef(
1112
+ var ni = "MenuGroup", Gt = h.forwardRef(
1113
1113
  (e, t) => {
1114
1114
  const { __scopeMenu: n, ...r } = e;
1115
- return /* @__PURE__ */ a.jsx(Ke.div, { role: "group", ...r, ref: t });
1115
+ return /* @__PURE__ */ a.jsx(qe.div, { role: "group", ...r, ref: t });
1116
1116
  }
1117
1117
  );
1118
- Vt.displayName = ei;
1119
- var ti = "MenuLabel", dr = h.forwardRef(
1118
+ Gt.displayName = ni;
1119
+ var ri = "MenuLabel", dr = h.forwardRef(
1120
1120
  (e, t) => {
1121
1121
  const { __scopeMenu: n, ...r } = e;
1122
- return /* @__PURE__ */ a.jsx(Ke.div, { ...r, ref: t });
1122
+ return /* @__PURE__ */ a.jsx(qe.div, { ...r, ref: t });
1123
1123
  }
1124
1124
  );
1125
- dr.displayName = ti;
1126
- var vt = "MenuItem", Mn = "menu.itemSelect", yt = h.forwardRef(
1125
+ dr.displayName = ri;
1126
+ var xt = "MenuItem", Mn = "menu.itemSelect", St = h.forwardRef(
1127
1127
  (e, t) => {
1128
- const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(vt, e.__scopeMenu), l = qt(vt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1128
+ const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(xt, e.__scopeMenu), l = Qt(xt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1129
1129
  const c = s.current;
1130
1130
  if (!n && c) {
1131
1131
  const d = new CustomEvent(Mn, { bubbles: !0, cancelable: !0 });
1132
- c.addEventListener(Mn, (v) => r == null ? void 0 : r(v), { once: !0 }), uo(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1132
+ c.addEventListener(Mn, (R) => r == null ? void 0 : r(R), { once: !0 }), ho(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1133
1133
  }
1134
1134
  };
1135
1135
  return /* @__PURE__ */ a.jsx(
@@ -1138,38 +1138,38 @@ var vt = "MenuItem", Mn = "menu.itemSelect", yt = h.forwardRef(
1138
1138
  ...o,
1139
1139
  ref: u,
1140
1140
  disabled: n,
1141
- onClick: A(e.onClick, f),
1141
+ onClick: I(e.onClick, f),
1142
1142
  onPointerDown: (c) => {
1143
1143
  var d;
1144
1144
  (d = e.onPointerDown) == null || d.call(e, c), m.current = !0;
1145
1145
  },
1146
- onPointerUp: A(e.onPointerUp, (c) => {
1146
+ onPointerUp: I(e.onPointerUp, (c) => {
1147
1147
  var d;
1148
1148
  m.current || (d = c.currentTarget) == null || d.click();
1149
1149
  }),
1150
- onKeyDown: A(e.onKeyDown, (c) => {
1150
+ onKeyDown: I(e.onKeyDown, (c) => {
1151
1151
  const d = l.searchRef.current !== "";
1152
- n || d && c.key === " " || Nt.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1152
+ n || d && c.key === " " || _t.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1153
1153
  })
1154
1154
  }
1155
1155
  );
1156
1156
  }
1157
1157
  );
1158
- yt.displayName = vt;
1158
+ St.displayName = xt;
1159
1159
  var fr = h.forwardRef(
1160
1160
  (e, t) => {
1161
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = qt(vt, n), l = or(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, v] = h.useState("");
1161
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Qt(xt, n), l = or(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, R] = h.useState("");
1162
1162
  return h.useEffect(() => {
1163
- const M = u.current;
1164
- M && v((M.textContent ?? "").trim());
1163
+ const C = u.current;
1164
+ C && R((C.textContent ?? "").trim());
1165
1165
  }, [s.children]), /* @__PURE__ */ a.jsx(
1166
1166
  et.ItemSlot,
1167
1167
  {
1168
1168
  scope: n,
1169
1169
  disabled: r,
1170
1170
  textValue: o ?? d,
1171
- children: /* @__PURE__ */ a.jsx(Xo, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1172
- Ke.div,
1171
+ children: /* @__PURE__ */ a.jsx(Zo, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1172
+ qe.div,
1173
1173
  {
1174
1174
  role: "menuitem",
1175
1175
  "data-highlighted": f ? "" : void 0,
@@ -1177,67 +1177,67 @@ var fr = h.forwardRef(
1177
1177
  "data-disabled": r ? "" : void 0,
1178
1178
  ...s,
1179
1179
  ref: m,
1180
- onPointerMove: A(
1180
+ onPointerMove: I(
1181
1181
  e.onPointerMove,
1182
- tt((M) => {
1183
- r ? i.onItemLeave(M) : (i.onItemEnter(M), M.defaultPrevented || M.currentTarget.focus({ preventScroll: !0 }));
1182
+ tt((C) => {
1183
+ r ? i.onItemLeave(C) : (i.onItemEnter(C), C.defaultPrevented || C.currentTarget.focus({ preventScroll: !0 }));
1184
1184
  })
1185
1185
  ),
1186
- onPointerLeave: A(
1186
+ onPointerLeave: I(
1187
1187
  e.onPointerLeave,
1188
- tt((M) => i.onItemLeave(M))
1188
+ tt((C) => i.onItemLeave(C))
1189
1189
  ),
1190
- onFocus: A(e.onFocus, () => c(!0)),
1191
- onBlur: A(e.onBlur, () => c(!1))
1190
+ onFocus: I(e.onFocus, () => c(!0)),
1191
+ onBlur: I(e.onBlur, () => c(!1))
1192
1192
  }
1193
1193
  ) })
1194
1194
  }
1195
1195
  );
1196
1196
  }
1197
- ), ni = "MenuCheckboxItem", hr = h.forwardRef(
1197
+ ), ai = "MenuCheckboxItem", hr = h.forwardRef(
1198
1198
  (e, t) => {
1199
1199
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
1200
1200
  return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1201
- yt,
1201
+ St,
1202
1202
  {
1203
1203
  role: "menuitemcheckbox",
1204
- "aria-checked": wt(n) ? "mixed" : n,
1204
+ "aria-checked": yt(n) ? "mixed" : n,
1205
1205
  ...o,
1206
1206
  ref: t,
1207
- "data-state": Yt(n),
1208
- onSelect: A(
1207
+ "data-state": Xt(n),
1208
+ onSelect: I(
1209
1209
  o.onSelect,
1210
- () => r == null ? void 0 : r(wt(n) ? !0 : !n),
1210
+ () => r == null ? void 0 : r(yt(n) ? !0 : !n),
1211
1211
  { checkForDefaultPrevented: !1 }
1212
1212
  )
1213
1213
  }
1214
1214
  ) });
1215
1215
  }
1216
1216
  );
1217
- hr.displayName = ni;
1218
- var pr = "MenuRadioGroup", [ri, ai] = Ae(
1217
+ hr.displayName = ai;
1218
+ var pr = "MenuRadioGroup", [oi, si] = ke(
1219
1219
  pr,
1220
1220
  { value: void 0, onValueChange: () => {
1221
1221
  } }
1222
1222
  ), mr = h.forwardRef(
1223
1223
  (e, t) => {
1224
- const { value: n, onValueChange: r, ...o } = e, s = $t(r);
1225
- return /* @__PURE__ */ a.jsx(ri, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Vt, { ...o, ref: t }) });
1224
+ const { value: n, onValueChange: r, ...o } = e, s = Lt(r);
1225
+ return /* @__PURE__ */ a.jsx(oi, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Gt, { ...o, ref: t }) });
1226
1226
  }
1227
1227
  );
1228
1228
  mr.displayName = pr;
1229
1229
  var gr = "MenuRadioItem", vr = h.forwardRef(
1230
1230
  (e, t) => {
1231
- const { value: n, ...r } = e, o = ai(gr, e.__scopeMenu), s = n === o.value;
1231
+ const { value: n, ...r } = e, o = si(gr, e.__scopeMenu), s = n === o.value;
1232
1232
  return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1233
- yt,
1233
+ St,
1234
1234
  {
1235
1235
  role: "menuitemradio",
1236
1236
  "aria-checked": s,
1237
1237
  ...r,
1238
1238
  ref: t,
1239
- "data-state": Yt(s),
1240
- onSelect: A(
1239
+ "data-state": Xt(s),
1240
+ onSelect: I(
1241
1241
  r.onSelect,
1242
1242
  () => {
1243
1243
  var i;
@@ -1250,34 +1250,34 @@ var gr = "MenuRadioItem", vr = h.forwardRef(
1250
1250
  }
1251
1251
  );
1252
1252
  vr.displayName = gr;
1253
- var Gt = "MenuItemIndicator", [wr, oi] = Ae(
1254
- Gt,
1253
+ var Wt = "MenuItemIndicator", [wr, ii] = ke(
1254
+ Wt,
1255
1255
  { checked: !1 }
1256
1256
  ), xr = h.forwardRef(
1257
1257
  (e, t) => {
1258
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = oi(Gt, n);
1258
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = ii(Wt, n);
1259
1259
  return /* @__PURE__ */ a.jsx(
1260
- xt,
1260
+ bt,
1261
1261
  {
1262
- present: r || wt(s.checked) || s.checked === !0,
1262
+ present: r || yt(s.checked) || s.checked === !0,
1263
1263
  children: /* @__PURE__ */ a.jsx(
1264
- Ke.span,
1264
+ qe.span,
1265
1265
  {
1266
1266
  ...o,
1267
1267
  ref: t,
1268
- "data-state": Yt(s.checked)
1268
+ "data-state": Xt(s.checked)
1269
1269
  }
1270
1270
  )
1271
1271
  }
1272
1272
  );
1273
1273
  }
1274
1274
  );
1275
- xr.displayName = Gt;
1276
- var si = "MenuSeparator", yr = h.forwardRef(
1275
+ xr.displayName = Wt;
1276
+ var li = "MenuSeparator", yr = h.forwardRef(
1277
1277
  (e, t) => {
1278
1278
  const { __scopeMenu: n, ...r } = e;
1279
1279
  return /* @__PURE__ */ a.jsx(
1280
- Ke.div,
1280
+ qe.div,
1281
1281
  {
1282
1282
  role: "separator",
1283
1283
  "aria-orientation": "horizontal",
@@ -1287,16 +1287,16 @@ var si = "MenuSeparator", yr = h.forwardRef(
1287
1287
  );
1288
1288
  }
1289
1289
  );
1290
- yr.displayName = si;
1291
- var ii = "MenuArrow", br = h.forwardRef(
1290
+ yr.displayName = li;
1291
+ var ci = "MenuArrow", br = h.forwardRef(
1292
1292
  (e, t) => {
1293
1293
  const { __scopeMenu: n, ...r } = e, o = st(n);
1294
- return /* @__PURE__ */ a.jsx(io, { ...o, ...r, ref: t });
1294
+ return /* @__PURE__ */ a.jsx(co, { ...o, ...r, ref: t });
1295
1295
  }
1296
1296
  );
1297
- br.displayName = ii;
1298
- var Wt = "MenuSub", [li, Sr] = Ae(Wt), Cr = (e) => {
1299
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(Wt, t), i = st(t), [l, u] = h.useState(null), [m, f] = h.useState(null), c = $t(o);
1297
+ br.displayName = ci;
1298
+ var Yt = "MenuSub", [ui, Sr] = ke(Yt), Cr = (e) => {
1299
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(Yt, t), i = st(t), [l, u] = h.useState(null), [m, f] = h.useState(null), c = Lt(o);
1300
1300
  return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(Ln, { ...i, children: /* @__PURE__ */ a.jsx(
1301
1301
  sr,
1302
1302
  {
@@ -1306,7 +1306,7 @@ var Wt = "MenuSub", [li, Sr] = Ae(Wt), Cr = (e) => {
1306
1306
  content: m,
1307
1307
  onContentChange: f,
1308
1308
  children: /* @__PURE__ */ a.jsx(
1309
- li,
1309
+ ui,
1310
1310
  {
1311
1311
  scope: t,
1312
1312
  contentId: gt(),
@@ -1319,10 +1319,10 @@ var Wt = "MenuSub", [li, Sr] = Ae(Wt), Cr = (e) => {
1319
1319
  }
1320
1320
  ) });
1321
1321
  };
1322
- Cr.displayName = Wt;
1322
+ Cr.displayName = Yt;
1323
1323
  var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1324
1324
  (e, t) => {
1325
- const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Sr(Xe, e.__scopeMenu), s = qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1325
+ const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Sr(Xe, e.__scopeMenu), s = Qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1326
1326
  i.current && window.clearTimeout(i.current), i.current = null;
1327
1327
  }, []);
1328
1328
  return h.useEffect(() => f, [f]), h.useEffect(() => {
@@ -1330,7 +1330,7 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1330
1330
  return () => {
1331
1331
  window.clearTimeout(c), u(null);
1332
1332
  };
1333
- }, [l, u]), /* @__PURE__ */ a.jsx(zt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1333
+ }, [l, u]), /* @__PURE__ */ a.jsx(Kt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1334
1334
  fr,
1335
1335
  {
1336
1336
  id: o.triggerId,
@@ -1344,7 +1344,7 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1344
1344
  var d;
1345
1345
  (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
1346
1346
  },
1347
- onPointerMove: A(
1347
+ onPointerMove: I(
1348
1348
  e.onPointerMove,
1349
1349
  tt((c) => {
1350
1350
  s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
@@ -1352,25 +1352,25 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1352
1352
  }, 100));
1353
1353
  })
1354
1354
  ),
1355
- onPointerLeave: A(
1355
+ onPointerLeave: I(
1356
1356
  e.onPointerLeave,
1357
1357
  tt((c) => {
1358
- var v, M;
1358
+ var R, C;
1359
1359
  f();
1360
- const d = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1360
+ const d = (R = n.content) == null ? void 0 : R.getBoundingClientRect();
1361
1361
  if (d) {
1362
- const C = (M = n.content) == null ? void 0 : M.dataset.side, _ = C === "right", R = _ ? -5 : 5, k = d[_ ? "left" : "right"], P = d[_ ? "right" : "left"];
1362
+ const g = (C = n.content) == null ? void 0 : C.dataset.side, T = g === "right", M = T ? -5 : 5, A = d[T ? "left" : "right"], P = d[T ? "right" : "left"];
1363
1363
  s.onPointerGraceIntentChange({
1364
1364
  area: [
1365
1365
  // Apply a bleed on clientX to ensure that our exit point is
1366
1366
  // consistently within polygon bounds
1367
- { x: c.clientX + R, y: c.clientY },
1368
- { x: k, y: d.top },
1367
+ { x: c.clientX + M, y: c.clientY },
1368
+ { x: A, y: d.top },
1369
1369
  { x: P, y: d.top },
1370
1370
  { x: P, y: d.bottom },
1371
- { x: k, y: d.bottom }
1371
+ { x: A, y: d.bottom }
1372
1372
  ],
1373
- side: C
1373
+ side: g
1374
1374
  }), window.clearTimeout(l.current), l.current = window.setTimeout(
1375
1375
  () => s.onPointerGraceIntentChange(null),
1376
1376
  300
@@ -1381,10 +1381,10 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1381
1381
  }
1382
1382
  })
1383
1383
  ),
1384
- onKeyDown: A(e.onKeyDown, (c) => {
1385
- var v;
1384
+ onKeyDown: I(e.onKeyDown, (c) => {
1385
+ var R;
1386
1386
  const d = s.searchRef.current !== "";
1387
- e.disabled || d && c.key === " " || Ks[r.dir].includes(c.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), c.preventDefault());
1387
+ e.disabled || d && c.key === " " || Qs[r.dir].includes(c.key) && (n.onOpenChange(!0), (R = n.content) == null || R.focus(), c.preventDefault());
1388
1388
  })
1389
1389
  }
1390
1390
  ) });
@@ -1394,8 +1394,8 @@ Mr.displayName = Xe;
1394
1394
  var Rr = "MenuSubContent", Er = h.forwardRef(
1395
1395
  (e, t) => {
1396
1396
  const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu), l = Sr(Rr, e.__scopeMenu), u = h.useRef(null), m = rt(t, u);
1397
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(xt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1398
- Qt,
1397
+ return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1398
+ Vt,
1399
1399
  {
1400
1400
  id: l.contentId,
1401
1401
  "aria-labelledby": l.triggerId,
@@ -1411,16 +1411,16 @@ var Rr = "MenuSubContent", Er = h.forwardRef(
1411
1411
  i.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), f.preventDefault();
1412
1412
  },
1413
1413
  onCloseAutoFocus: (f) => f.preventDefault(),
1414
- onFocusOutside: A(e.onFocusOutside, (f) => {
1414
+ onFocusOutside: I(e.onFocusOutside, (f) => {
1415
1415
  f.target !== l.trigger && s.onOpenChange(!1);
1416
1416
  }),
1417
- onEscapeKeyDown: A(e.onEscapeKeyDown, (f) => {
1417
+ onEscapeKeyDown: I(e.onEscapeKeyDown, (f) => {
1418
1418
  i.onClose(), f.preventDefault();
1419
1419
  }),
1420
- onKeyDown: A(e.onKeyDown, (f) => {
1421
- var v;
1422
- const c = f.currentTarget.contains(f.target), d = qs[i.dir].includes(f.key);
1423
- c && d && (s.onOpenChange(!1), (v = l.trigger) == null || v.focus(), f.preventDefault());
1420
+ onKeyDown: I(e.onKeyDown, (f) => {
1421
+ var R;
1422
+ const c = f.currentTarget.contains(f.target), d = Vs[i.dir].includes(f.key);
1423
+ c && d && (s.onOpenChange(!1), (R = l.trigger) == null || R.focus(), f.preventDefault());
1424
1424
  })
1425
1425
  }
1426
1426
  ) }) }) });
@@ -1430,30 +1430,30 @@ Er.displayName = Rr;
1430
1430
  function Dr(e) {
1431
1431
  return e ? "open" : "closed";
1432
1432
  }
1433
- function wt(e) {
1433
+ function yt(e) {
1434
1434
  return e === "indeterminate";
1435
1435
  }
1436
- function Yt(e) {
1437
- return wt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1436
+ function Xt(e) {
1437
+ return yt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1438
1438
  }
1439
- function ci(e) {
1439
+ function di(e) {
1440
1440
  const t = document.activeElement;
1441
1441
  for (const n of e)
1442
1442
  if (n === t || (n.focus(), document.activeElement !== t)) return;
1443
1443
  }
1444
- function ui(e, t) {
1444
+ function fi(e, t) {
1445
1445
  return e.map((n, r) => e[(t + r) % e.length]);
1446
1446
  }
1447
- function di(e, t, n) {
1447
+ function hi(e, t, n) {
1448
1448
  const o = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1449
- let i = ui(e, Math.max(s, 0));
1449
+ let i = fi(e, Math.max(s, 0));
1450
1450
  o.length === 1 && (i = i.filter((m) => m !== n));
1451
1451
  const u = i.find(
1452
1452
  (m) => m.toLowerCase().startsWith(o.toLowerCase())
1453
1453
  );
1454
1454
  return u !== n ? u : void 0;
1455
1455
  }
1456
- function fi(e, t) {
1456
+ function pi(e, t) {
1457
1457
  const { x: n, y: r } = e;
1458
1458
  let o = !1;
1459
1459
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -1462,18 +1462,18 @@ function fi(e, t) {
1462
1462
  }
1463
1463
  return o;
1464
1464
  }
1465
- function hi(e, t) {
1465
+ function mi(e, t) {
1466
1466
  if (!t) return !1;
1467
1467
  const n = { x: e.clientX, y: e.clientY };
1468
- return fi(n, t);
1468
+ return pi(n, t);
1469
1469
  }
1470
1470
  function tt(e) {
1471
1471
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1472
1472
  }
1473
- var pi = ir, mi = zt, gi = cr, vi = ur, wi = Vt, xi = dr, yi = yt, bi = hr, Si = mr, Ci = vr, Mi = xr, Ri = yr, Ei = br, Di = Cr, Pi = Mr, ji = Er, Xt = "DropdownMenu", [Ni, uc] = kn(
1474
- Xt,
1473
+ var gi = ir, vi = Kt, wi = cr, xi = ur, yi = Gt, bi = dr, Si = St, Ci = hr, Mi = mr, Ri = vr, Ei = xr, Di = yr, Pi = br, ji = Cr, Ni = Mr, Ti = Er, Jt = "DropdownMenu", [_i, fc] = kn(
1474
+ Jt,
1475
1475
  [ar]
1476
- ), J = ar(), [Ti, Pr] = Ni(Xt), jr = (e) => {
1476
+ ), J = ar(), [Oi, Pr] = _i(Jt), jr = (e) => {
1477
1477
  const {
1478
1478
  __scopeDropdownMenu: t,
1479
1479
  children: n,
@@ -1488,7 +1488,7 @@ var pi = ir, mi = zt, gi = cr, vi = ur, wi = Vt, xi = dr, yi = yt, bi = hr, Si =
1488
1488
  onChange: i
1489
1489
  });
1490
1490
  return /* @__PURE__ */ a.jsx(
1491
- Ti,
1491
+ Oi,
1492
1492
  {
1493
1493
  scope: t,
1494
1494
  triggerId: gt(),
@@ -1498,16 +1498,16 @@ var pi = ir, mi = zt, gi = cr, vi = ur, wi = Vt, xi = dr, yi = yt, bi = hr, Si =
1498
1498
  onOpenChange: c,
1499
1499
  onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1500
1500
  modal: l,
1501
- children: /* @__PURE__ */ a.jsx(pi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1501
+ children: /* @__PURE__ */ a.jsx(gi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1502
1502
  }
1503
1503
  );
1504
1504
  };
1505
- jr.displayName = Xt;
1505
+ jr.displayName = Jt;
1506
1506
  var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1507
1507
  (e, t) => {
1508
1508
  const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Pr(Nr, n), i = J(n);
1509
- return /* @__PURE__ */ a.jsx(mi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1510
- Ke.button,
1509
+ return /* @__PURE__ */ a.jsx(vi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1510
+ qe.button,
1511
1511
  {
1512
1512
  type: "button",
1513
1513
  id: s.triggerId,
@@ -1519,10 +1519,10 @@ var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1519
1519
  disabled: r,
1520
1520
  ...o,
1521
1521
  ref: Fn(t, s.triggerRef),
1522
- onPointerDown: A(e.onPointerDown, (l) => {
1522
+ onPointerDown: I(e.onPointerDown, (l) => {
1523
1523
  !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1524
1524
  }),
1525
- onKeyDown: A(e.onKeyDown, (l) => {
1525
+ onKeyDown: I(e.onKeyDown, (l) => {
1526
1526
  r || (["Enter", " "].includes(l.key) && s.onOpenToggle(), l.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
1527
1527
  })
1528
1528
  }
@@ -1530,27 +1530,27 @@ var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1530
1530
  }
1531
1531
  );
1532
1532
  Tr.displayName = Nr;
1533
- var _i = "DropdownMenuPortal", _r = (e) => {
1533
+ var Ii = "DropdownMenuPortal", _r = (e) => {
1534
1534
  const { __scopeDropdownMenu: t, ...n } = e, r = J(t);
1535
- return /* @__PURE__ */ a.jsx(gi, { ...r, ...n });
1535
+ return /* @__PURE__ */ a.jsx(wi, { ...r, ...n });
1536
1536
  };
1537
- _r.displayName = _i;
1537
+ _r.displayName = Ii;
1538
1538
  var Or = "DropdownMenuContent", Ir = h.forwardRef(
1539
1539
  (e, t) => {
1540
1540
  const { __scopeDropdownMenu: n, ...r } = e, o = Pr(Or, n), s = J(n), i = h.useRef(!1);
1541
1541
  return /* @__PURE__ */ a.jsx(
1542
- vi,
1542
+ xi,
1543
1543
  {
1544
1544
  id: o.contentId,
1545
1545
  "aria-labelledby": o.triggerId,
1546
1546
  ...s,
1547
1547
  ...r,
1548
1548
  ref: t,
1549
- onCloseAutoFocus: A(e.onCloseAutoFocus, (l) => {
1549
+ onCloseAutoFocus: I(e.onCloseAutoFocus, (l) => {
1550
1550
  var u;
1551
1551
  i.current || (u = o.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1552
1552
  }),
1553
- onInteractOutside: A(e.onInteractOutside, (l) => {
1553
+ onInteractOutside: I(e.onInteractOutside, (l) => {
1554
1554
  const u = l.detail.originalEvent, m = u.button === 0 && u.ctrlKey === !0, f = u.button === 2 || m;
1555
1555
  (!o.modal || f) && (i.current = !0);
1556
1556
  }),
@@ -1567,75 +1567,75 @@ var Or = "DropdownMenuContent", Ir = h.forwardRef(
1567
1567
  }
1568
1568
  );
1569
1569
  Ir.displayName = Or;
1570
- var Oi = "DropdownMenuGroup", Ii = h.forwardRef(
1570
+ var Ai = "DropdownMenuGroup", ki = h.forwardRef(
1571
1571
  (e, t) => {
1572
1572
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1573
- return /* @__PURE__ */ a.jsx(wi, { ...o, ...r, ref: t });
1573
+ return /* @__PURE__ */ a.jsx(yi, { ...o, ...r, ref: t });
1574
1574
  }
1575
1575
  );
1576
- Ii.displayName = Oi;
1577
- var Ai = "DropdownMenuLabel", Ar = h.forwardRef(
1576
+ ki.displayName = Ai;
1577
+ var $i = "DropdownMenuLabel", Ar = h.forwardRef(
1578
1578
  (e, t) => {
1579
1579
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1580
- return /* @__PURE__ */ a.jsx(xi, { ...o, ...r, ref: t });
1580
+ return /* @__PURE__ */ a.jsx(bi, { ...o, ...r, ref: t });
1581
1581
  }
1582
1582
  );
1583
- Ar.displayName = Ai;
1584
- var ki = "DropdownMenuItem", kr = h.forwardRef(
1583
+ Ar.displayName = $i;
1584
+ var Fi = "DropdownMenuItem", kr = h.forwardRef(
1585
1585
  (e, t) => {
1586
1586
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1587
- return /* @__PURE__ */ a.jsx(yi, { ...o, ...r, ref: t });
1587
+ return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1588
1588
  }
1589
1589
  );
1590
- kr.displayName = ki;
1591
- var $i = "DropdownMenuCheckboxItem", $r = h.forwardRef((e, t) => {
1590
+ kr.displayName = Fi;
1591
+ var Li = "DropdownMenuCheckboxItem", $r = h.forwardRef((e, t) => {
1592
1592
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1593
- return /* @__PURE__ */ a.jsx(bi, { ...o, ...r, ref: t });
1593
+ return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1594
1594
  });
1595
- $r.displayName = $i;
1596
- var Fi = "DropdownMenuRadioGroup", Li = h.forwardRef((e, t) => {
1595
+ $r.displayName = Li;
1596
+ var Bi = "DropdownMenuRadioGroup", Hi = h.forwardRef((e, t) => {
1597
1597
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1598
- return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1598
+ return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1599
1599
  });
1600
- Li.displayName = Fi;
1601
- var Bi = "DropdownMenuRadioItem", Fr = h.forwardRef((e, t) => {
1600
+ Hi.displayName = Bi;
1601
+ var Ui = "DropdownMenuRadioItem", Fr = h.forwardRef((e, t) => {
1602
1602
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1603
- return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1603
+ return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
1604
1604
  });
1605
- Fr.displayName = Bi;
1606
- var Hi = "DropdownMenuItemIndicator", Lr = h.forwardRef((e, t) => {
1605
+ Fr.displayName = Ui;
1606
+ var zi = "DropdownMenuItemIndicator", Lr = h.forwardRef((e, t) => {
1607
1607
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1608
- return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1608
+ return /* @__PURE__ */ a.jsx(Ei, { ...o, ...r, ref: t });
1609
1609
  });
1610
- Lr.displayName = Hi;
1611
- var Ui = "DropdownMenuSeparator", Br = h.forwardRef((e, t) => {
1610
+ Lr.displayName = zi;
1611
+ var Ki = "DropdownMenuSeparator", Br = h.forwardRef((e, t) => {
1612
1612
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1613
- return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
1613
+ return /* @__PURE__ */ a.jsx(Di, { ...o, ...r, ref: t });
1614
1614
  });
1615
- Br.displayName = Ui;
1616
- var zi = "DropdownMenuArrow", Ki = h.forwardRef(
1615
+ Br.displayName = Ki;
1616
+ var qi = "DropdownMenuArrow", Qi = h.forwardRef(
1617
1617
  (e, t) => {
1618
1618
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1619
- return /* @__PURE__ */ a.jsx(Ei, { ...o, ...r, ref: t });
1619
+ return /* @__PURE__ */ a.jsx(Pi, { ...o, ...r, ref: t });
1620
1620
  }
1621
1621
  );
1622
- Ki.displayName = zi;
1623
- var qi = (e) => {
1622
+ Qi.displayName = qi;
1623
+ var Vi = (e) => {
1624
1624
  const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = J(t), [l = !1, u] = Bn({
1625
1625
  prop: r,
1626
1626
  defaultProp: s,
1627
1627
  onChange: o
1628
1628
  });
1629
- return /* @__PURE__ */ a.jsx(Di, { ...i, open: l, onOpenChange: u, children: n });
1630
- }, Qi = "DropdownMenuSubTrigger", Hr = h.forwardRef((e, t) => {
1629
+ return /* @__PURE__ */ a.jsx(ji, { ...i, open: l, onOpenChange: u, children: n });
1630
+ }, Gi = "DropdownMenuSubTrigger", Hr = h.forwardRef((e, t) => {
1631
1631
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1632
- return /* @__PURE__ */ a.jsx(Pi, { ...o, ...r, ref: t });
1632
+ return /* @__PURE__ */ a.jsx(Ni, { ...o, ...r, ref: t });
1633
1633
  });
1634
- Hr.displayName = Qi;
1635
- var Vi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1634
+ Hr.displayName = Gi;
1635
+ var Wi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1636
1636
  const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1637
1637
  return /* @__PURE__ */ a.jsx(
1638
- ji,
1638
+ Ti,
1639
1639
  {
1640
1640
  ...o,
1641
1641
  ...r,
@@ -1651,13 +1651,13 @@ var Vi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1651
1651
  }
1652
1652
  );
1653
1653
  });
1654
- Ur.displayName = Vi;
1655
- var Gi = jr, Wi = Tr, zr = _r, Kr = Ir, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Yi = qi, Xr = Hr, Jr = Ur;
1656
- const Xi = Gi, Ji = Wi, Zi = zr, el = Yi, Zr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1654
+ Ur.displayName = Wi;
1655
+ var Yi = jr, Xi = Tr, zr = _r, Kr = Ir, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Ji = Vi, Xr = Hr, Jr = Ur;
1656
+ const Zi = Yi, el = Xi, tl = zr, nl = Ji, Zr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1657
1657
  Xr,
1658
1658
  {
1659
1659
  ref: o,
1660
- className: O(
1660
+ className: F(
1661
1661
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1662
1662
  t && "pl-8",
1663
1663
  e
@@ -1674,7 +1674,7 @@ const ea = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1674
1674
  Jr,
1675
1675
  {
1676
1676
  ref: n,
1677
- className: O(
1677
+ className: F(
1678
1678
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1679
1679
  e
1680
1680
  ),
@@ -1687,7 +1687,7 @@ const ta = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
1687
1687
  {
1688
1688
  ref: r,
1689
1689
  sideOffset: t,
1690
- className: O(
1690
+ className: F(
1691
1691
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1692
1692
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1693
1693
  e
@@ -1700,7 +1700,7 @@ const na = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1700
1700
  Qr,
1701
1701
  {
1702
1702
  ref: r,
1703
- className: O(
1703
+ className: F(
1704
1704
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1705
1705
  t && "pl-8",
1706
1706
  e
@@ -1709,44 +1709,44 @@ const na = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1709
1709
  }
1710
1710
  ));
1711
1711
  na.displayName = Qr.displayName;
1712
- const tl = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1712
+ const rl = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1713
1713
  Vr,
1714
1714
  {
1715
1715
  ref: o,
1716
- className: O(
1716
+ className: F(
1717
1717
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1718
1718
  e
1719
1719
  ),
1720
1720
  checked: n,
1721
1721
  ...r,
1722
1722
  children: [
1723
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Ho, { className: "h-4 w-4" }) }) }),
1723
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(zo, { className: "h-4 w-4" }) }) }),
1724
1724
  t
1725
1725
  ]
1726
1726
  }
1727
1727
  ));
1728
- tl.displayName = Vr.displayName;
1729
- const nl = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1728
+ rl.displayName = Vr.displayName;
1729
+ const al = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1730
1730
  Gr,
1731
1731
  {
1732
1732
  ref: r,
1733
- className: O(
1733
+ className: F(
1734
1734
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1735
1735
  e
1736
1736
  ),
1737
1737
  ...n,
1738
1738
  children: [
1739
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Uo, { className: "h-4 w-4 fill-current" }) }) }),
1739
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Ko, { className: "h-4 w-4 fill-current" }) }) }),
1740
1740
  t
1741
1741
  ]
1742
1742
  }
1743
1743
  ));
1744
- nl.displayName = Gr.displayName;
1744
+ al.displayName = Gr.displayName;
1745
1745
  const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1746
1746
  qr,
1747
1747
  {
1748
1748
  ref: r,
1749
- className: O(
1749
+ className: F(
1750
1750
  "px-2 py-1.5 text-sm font-semibold",
1751
1751
  t && "pl-8",
1752
1752
  e
@@ -1759,7 +1759,7 @@ const aa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1759
1759
  Yr,
1760
1760
  {
1761
1761
  ref: n,
1762
- className: O("-mx-1 my-1 h-px bg-muted", e),
1762
+ className: F("-mx-1 my-1 h-px bg-muted", e),
1763
1763
  ...t
1764
1764
  }
1765
1765
  ));
@@ -1770,15 +1770,15 @@ const Rn = {
1770
1770
  tip: "bg-green-600",
1771
1771
  caution: "bg-orange-500",
1772
1772
  danger: "bg-rose-500"
1773
- }, rl = () => {
1774
- const { page: e } = qe(), [t, n] = Ie(!0);
1773
+ }, ol = () => {
1774
+ const { page: e } = Ae(), [t, n] = Ie(!0);
1775
1775
  if (!(e != null && e.banner) || !t)
1776
1776
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1777
1777
  const r = e.banner.color && e.banner.color in Rn ? Rn[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = r ? {} : { backgroundColor: e.banner.color };
1778
1778
  return /* @__PURE__ */ a.jsxs(
1779
1779
  "div",
1780
1780
  {
1781
- className: O(
1781
+ className: F(
1782
1782
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1783
1783
  r
1784
1784
  ),
@@ -1791,14 +1791,14 @@ const Rn = {
1791
1791
  type: "button",
1792
1792
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1793
1793
  onClick: () => n(!1),
1794
- children: /* @__PURE__ */ a.jsx(zo, { size: 16 })
1794
+ children: /* @__PURE__ */ a.jsx(qo, { size: 16 })
1795
1795
  }
1796
1796
  )
1797
1797
  ]
1798
1798
  }
1799
1799
  );
1800
1800
  };
1801
- function al(e) {
1801
+ function sl(e) {
1802
1802
  if (typeof document > "u") return;
1803
1803
  let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
1804
1804
  n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
@@ -1856,41 +1856,41 @@ const oa = p.createContext({
1856
1856
  throw new Error("useDrawerContext must be used within a Drawer.Root");
1857
1857
  return e;
1858
1858
  };
1859
- al(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
1859
+ sl(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
1860
1860
  [data-state=closed]
1861
1861
  ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
1862
- function ol() {
1862
+ function il() {
1863
1863
  const e = navigator.userAgent;
1864
1864
  return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
1865
1865
  /FxiOS/.test(e));
1866
1866
  }
1867
- function sl() {
1868
- return Jt(/^Mac/);
1867
+ function ll() {
1868
+ return Zt(/^Mac/);
1869
1869
  }
1870
- function il() {
1871
- return Jt(/^iPhone/);
1870
+ function cl() {
1871
+ return Zt(/^iPhone/);
1872
1872
  }
1873
1873
  function En() {
1874
1874
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
1875
1875
  }
1876
- function ll() {
1877
- return Jt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1878
- sl() && navigator.maxTouchPoints > 1;
1876
+ function ul() {
1877
+ return Zt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1878
+ ll() && navigator.maxTouchPoints > 1;
1879
1879
  }
1880
1880
  function sa() {
1881
- return il() || ll();
1881
+ return cl() || ul();
1882
1882
  }
1883
- function Jt(e) {
1883
+ function Zt(e) {
1884
1884
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1885
1885
  }
1886
- const cl = 24, ul = typeof window < "u" ? So : Ce;
1886
+ const dl = 24, fl = typeof window < "u" ? Mo : Ce;
1887
1887
  function Dn(...e) {
1888
1888
  return (...t) => {
1889
1889
  for (let n of e)
1890
1890
  typeof n == "function" && n(...t);
1891
1891
  };
1892
1892
  }
1893
- const Mt = typeof document < "u" && window.visualViewport;
1893
+ const Et = typeof document < "u" && window.visualViewport;
1894
1894
  function Pn(e) {
1895
1895
  let t = window.getComputedStyle(e);
1896
1896
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
@@ -1900,7 +1900,7 @@ function ia(e) {
1900
1900
  e = e.parentElement;
1901
1901
  return e || document.scrollingElement || document.documentElement;
1902
1902
  }
1903
- const dl = /* @__PURE__ */ new Set([
1903
+ const hl = /* @__PURE__ */ new Set([
1904
1904
  "checkbox",
1905
1905
  "radio",
1906
1906
  "range",
@@ -1911,19 +1911,19 @@ const dl = /* @__PURE__ */ new Set([
1911
1911
  "submit",
1912
1912
  "reset"
1913
1913
  ]);
1914
- let ht = 0, Rt;
1915
- function fl(e = {}) {
1914
+ let ht = 0, Dt;
1915
+ function pl(e = {}) {
1916
1916
  let { isDisabled: t } = e;
1917
- ul(() => {
1917
+ fl(() => {
1918
1918
  if (!t)
1919
- return ht++, ht === 1 && sa() && (Rt = hl()), () => {
1920
- ht--, ht === 0 && (Rt == null || Rt());
1919
+ return ht++, ht === 1 && sa() && (Dt = ml()), () => {
1920
+ ht--, ht === 0 && (Dt == null || Dt());
1921
1921
  };
1922
1922
  }, [
1923
1923
  t
1924
1924
  ]);
1925
1925
  }
1926
- function hl() {
1926
+ function ml() {
1927
1927
  let e, t = 0, n = (c) => {
1928
1928
  e = ia(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1929
1929
  }, r = (c) => {
@@ -1931,25 +1931,25 @@ function hl() {
1931
1931
  c.preventDefault();
1932
1932
  return;
1933
1933
  }
1934
- let d = c.changedTouches[0].pageY, v = e.scrollTop, M = e.scrollHeight - e.clientHeight;
1935
- M !== 0 && ((v <= 0 && d > t || v >= M && d < t) && c.preventDefault(), t = d);
1934
+ let d = c.changedTouches[0].pageY, R = e.scrollTop, C = e.scrollHeight - e.clientHeight;
1935
+ C !== 0 && ((R <= 0 && d > t || R >= C && d < t) && c.preventDefault(), t = d);
1936
1936
  }, o = (c) => {
1937
1937
  let d = c.target;
1938
- Tt(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1938
+ Ot(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1939
1939
  d.style.transform = "";
1940
1940
  }));
1941
1941
  }, s = (c) => {
1942
1942
  let d = c.target;
1943
- Tt(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1944
- d.style.transform = "", Mt && (Mt.height < window.innerHeight ? requestAnimationFrame(() => {
1943
+ Ot(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1944
+ d.style.transform = "", Et && (Et.height < window.innerHeight ? requestAnimationFrame(() => {
1945
1945
  jn(d);
1946
- }) : Mt.addEventListener("resize", () => jn(d), {
1946
+ }) : Et.addEventListener("resize", () => jn(d), {
1947
1947
  once: !0
1948
1948
  }));
1949
1949
  }));
1950
1950
  }, i = () => {
1951
1951
  window.scrollTo(0, 0);
1952
- }, l = window.pageXOffset, u = window.pageYOffset, m = Dn(pl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1952
+ }, l = window.pageXOffset, u = window.pageYOffset, m = Dn(gl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1953
1953
  window.scrollTo(0, 0);
1954
1954
  let f = Dn(We(document, "touchstart", n, {
1955
1955
  passive: !1,
@@ -1965,7 +1965,7 @@ function hl() {
1965
1965
  m(), f(), window.scrollTo(l, u);
1966
1966
  };
1967
1967
  }
1968
- function pl(e, t, n) {
1968
+ function gl(e, t, n) {
1969
1969
  let r = e.style[t];
1970
1970
  return e.style[t] = n, () => {
1971
1971
  e.style[t] = r;
@@ -1982,23 +1982,23 @@ function jn(e) {
1982
1982
  let n = ia(e);
1983
1983
  if (n !== document.documentElement && n !== document.body && n !== e) {
1984
1984
  let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
1985
- const i = n.getBoundingClientRect().bottom + cl;
1985
+ const i = n.getBoundingClientRect().bottom + dl;
1986
1986
  s > i && (n.scrollTop += o - r);
1987
1987
  }
1988
1988
  e = n.parentElement;
1989
1989
  }
1990
1990
  }
1991
- function Tt(e) {
1992
- return e instanceof HTMLInputElement && !dl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1991
+ function Ot(e) {
1992
+ return e instanceof HTMLInputElement && !hl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1993
1993
  }
1994
- function ml(e, t) {
1994
+ function vl(e, t) {
1995
1995
  typeof e == "function" ? e(t) : e != null && (e.current = t);
1996
1996
  }
1997
- function gl(...e) {
1998
- return (t) => e.forEach((n) => ml(n, t));
1997
+ function wl(...e) {
1998
+ return (t) => e.forEach((n) => vl(n, t));
1999
1999
  }
2000
2000
  function la(...e) {
2001
- return h.useCallback(gl(...e), e);
2001
+ return h.useCallback(wl(...e), e);
2002
2002
  }
2003
2003
  const ca = /* @__PURE__ */ new WeakMap();
2004
2004
  function H(e, t, n = !1) {
@@ -2012,7 +2012,7 @@ function H(e, t, n = !1) {
2012
2012
  r[o] = e.style[o], e.style[o] = s;
2013
2013
  }), !n && ca.set(e, r);
2014
2014
  }
2015
- function vl(e, t) {
2015
+ function xl(e, t) {
2016
2016
  if (!e || !(e instanceof HTMLElement)) return;
2017
2017
  let n = ca.get(e);
2018
2018
  n && (e.style[t] = n[t]);
@@ -2039,10 +2039,10 @@ function pt(e, t) {
2039
2039
  let o = r.match(/^matrix3d\((.+)\)$/);
2040
2040
  return o ? parseFloat(o[1].split(", ")[U(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[U(t) ? 5 : 4]) : null);
2041
2041
  }
2042
- function wl(e) {
2042
+ function yl(e) {
2043
2043
  return 8 * (Math.log(e + 1) - 2);
2044
2044
  }
2045
- function Et(e, t) {
2045
+ function Pt(e, t) {
2046
2046
  if (!e) return () => {
2047
2047
  };
2048
2048
  const n = e.style.cssText;
@@ -2050,13 +2050,13 @@ function Et(e, t) {
2050
2050
  e.style.cssText = n;
2051
2051
  };
2052
2052
  }
2053
- function xl(...e) {
2053
+ function bl(...e) {
2054
2054
  return (...t) => {
2055
2055
  for (const n of e)
2056
2056
  typeof n == "function" && n(...t);
2057
2057
  };
2058
2058
  }
2059
- const $ = {
2059
+ const k = {
2060
2060
  DURATION: 0.5,
2061
2061
  EASE: [
2062
2062
  0.32,
@@ -2064,14 +2064,14 @@ const $ = {
2064
2064
  0,
2065
2065
  1
2066
2066
  ]
2067
- }, ua = 0.4, yl = 0.25, bl = 100, da = 8, Oe = 16, _t = 26, Dt = "vaul-dragging";
2067
+ }, ua = 0.4, Sl = 0.25, Cl = 100, da = 8, Oe = 16, It = 26, jt = "vaul-dragging";
2068
2068
  function fa(e) {
2069
2069
  const t = p.useRef(e);
2070
2070
  return p.useEffect(() => {
2071
2071
  t.current = e;
2072
2072
  }), p.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2073
2073
  }
2074
- function Sl({ defaultProp: e, onChange: t }) {
2074
+ function Ml({ defaultProp: e, onChange: t }) {
2075
2075
  const n = p.useState(e), [r] = n, o = p.useRef(r), s = fa(t);
2076
2076
  return p.useEffect(() => {
2077
2077
  o.current !== r && (s(r), o.current = r);
@@ -2083,7 +2083,7 @@ function Sl({ defaultProp: e, onChange: t }) {
2083
2083
  }
2084
2084
  function ha({ prop: e, defaultProp: t, onChange: n = () => {
2085
2085
  } }) {
2086
- const [r, o] = Sl({
2086
+ const [r, o] = Ml({
2087
2087
  defaultProp: t,
2088
2088
  onChange: n
2089
2089
  }), s = e !== void 0, i = s ? e : r, l = fa(n), u = p.useCallback((m) => {
@@ -2103,34 +2103,34 @@ function ha({ prop: e, defaultProp: t, onChange: n = () => {
2103
2103
  u
2104
2104
  ];
2105
2105
  }
2106
- function Cl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2106
+ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2107
2107
  const [f, c] = ha({
2108
2108
  prop: e,
2109
2109
  defaultProp: n == null ? void 0 : n[0],
2110
2110
  onChange: t
2111
- }), [d, v] = p.useState(typeof window < "u" ? {
2111
+ }), [d, R] = p.useState(typeof window < "u" ? {
2112
2112
  innerWidth: window.innerWidth,
2113
2113
  innerHeight: window.innerHeight
2114
2114
  } : void 0);
2115
2115
  p.useEffect(() => {
2116
2116
  function b() {
2117
- v({
2117
+ R({
2118
2118
  innerWidth: window.innerWidth,
2119
2119
  innerHeight: window.innerHeight
2120
2120
  });
2121
2121
  }
2122
2122
  return window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
2123
2123
  }, []);
2124
- const M = p.useMemo(() => f === (n == null ? void 0 : n[n.length - 1]) || null, [
2124
+ const C = p.useMemo(() => f === (n == null ? void 0 : n[n.length - 1]) || null, [
2125
2125
  n,
2126
2126
  f
2127
- ]), C = p.useMemo(() => {
2127
+ ]), g = p.useMemo(() => {
2128
2128
  var b;
2129
2129
  return (b = n == null ? void 0 : n.findIndex((j) => j === f)) != null ? b : null;
2130
2130
  }, [
2131
2131
  n,
2132
2132
  f
2133
- ]), _ = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === f || !n, R = p.useMemo(() => {
2133
+ ]), T = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === f || !n, M = p.useMemo(() => {
2134
2134
  const b = u ? {
2135
2135
  width: u.getBoundingClientRect().width,
2136
2136
  height: u.getBoundingClientRect().height
@@ -2156,26 +2156,26 @@ function Cl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2156
2156
  n,
2157
2157
  d,
2158
2158
  u
2159
- ]), k = p.useMemo(() => C !== null ? R == null ? void 0 : R[C] : null, [
2160
- R,
2161
- C
2159
+ ]), A = p.useMemo(() => g !== null ? M == null ? void 0 : M[g] : null, [
2160
+ M,
2161
+ g
2162
2162
  ]), P = p.useCallback((b) => {
2163
2163
  var j;
2164
- const D = (j = R == null ? void 0 : R.findIndex((B) => B === b)) != null ? j : null;
2164
+ const D = (j = M == null ? void 0 : M.findIndex((B) => B === b)) != null ? j : null;
2165
2165
  i(D), H(r.current, {
2166
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2166
+ transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2167
2167
  transform: U(l) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
2168
- }), R && D !== R.length - 1 && s !== void 0 && D !== s && D < s ? H(o.current, {
2169
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2168
+ }), M && D !== M.length - 1 && s !== void 0 && D !== s && D < s ? H(o.current, {
2169
+ transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2170
2170
  opacity: "0"
2171
2171
  }) : H(o.current, {
2172
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2172
+ transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2173
2173
  opacity: "1"
2174
2174
  }), c(n == null ? void 0 : n[Math.max(D, 0)]);
2175
2175
  }, [
2176
2176
  r.current,
2177
2177
  n,
2178
- R,
2178
+ M,
2179
2179
  s,
2180
2180
  o,
2181
2181
  c
@@ -2184,91 +2184,91 @@ function Cl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2184
2184
  if (f || e) {
2185
2185
  var b;
2186
2186
  const j = (b = n == null ? void 0 : n.findIndex((D) => D === e || D === f)) != null ? b : -1;
2187
- R && j !== -1 && typeof R[j] == "number" && P(R[j]);
2187
+ M && j !== -1 && typeof M[j] == "number" && P(M[j]);
2188
2188
  }
2189
2189
  }, [
2190
2190
  f,
2191
2191
  e,
2192
2192
  n,
2193
- R,
2193
+ M,
2194
2194
  P
2195
2195
  ]);
2196
- function g({ draggedDistance: b, closeDrawer: j, velocity: D, dismissible: B }) {
2196
+ function v({ draggedDistance: b, closeDrawer: j, velocity: D, dismissible: B }) {
2197
2197
  if (s === void 0) return;
2198
- const K = l === "bottom" || l === "right" ? (k ?? 0) - b : (k ?? 0) + b, W = C === s - 1, x = C === 0, V = b > 0;
2198
+ const K = l === "bottom" || l === "right" ? (A ?? 0) - b : (A ?? 0) + b, W = g === s - 1, x = g === 0, V = b > 0;
2199
2199
  if (W && H(o.current, {
2200
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`
2200
+ transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2201
2201
  }), !m && D > 2 && !V) {
2202
- B ? j() : P(R[0]);
2202
+ B ? j() : P(M[0]);
2203
2203
  return;
2204
2204
  }
2205
- if (!m && D > 2 && V && R && n) {
2206
- P(R[n.length - 1]);
2205
+ if (!m && D > 2 && V && M && n) {
2206
+ P(M[n.length - 1]);
2207
2207
  return;
2208
2208
  }
2209
- const G = R == null ? void 0 : R.reduce((q, Y) => typeof q != "number" || typeof Y != "number" ? q : Math.abs(Y - K) < Math.abs(q - K) ? Y : q), te = U(l) ? window.innerHeight : window.innerWidth;
2209
+ const G = M == null ? void 0 : M.reduce((q, Y) => typeof q != "number" || typeof Y != "number" ? q : Math.abs(Y - K) < Math.abs(q - K) ? Y : q), te = U(l) ? window.innerHeight : window.innerWidth;
2210
2210
  if (D > ua && Math.abs(b) < te * 0.4) {
2211
2211
  const q = V ? 1 : -1;
2212
- if (q > 0 && M && n) {
2213
- P(R[n.length - 1]);
2212
+ if (q > 0 && C && n) {
2213
+ P(M[n.length - 1]);
2214
2214
  return;
2215
2215
  }
2216
- if (x && q < 0 && B && j(), C === null) return;
2217
- P(R[C + q]);
2216
+ if (x && q < 0 && B && j(), g === null) return;
2217
+ P(M[g + q]);
2218
2218
  return;
2219
2219
  }
2220
2220
  P(G);
2221
2221
  }
2222
2222
  function z({ draggedDistance: b }) {
2223
- if (k === null) return;
2224
- const j = l === "bottom" || l === "right" ? k - b : k + b;
2225
- (l === "bottom" || l === "right") && j < R[R.length - 1] || (l === "top" || l === "left") && j > R[R.length - 1] || H(r.current, {
2223
+ if (A === null) return;
2224
+ const j = l === "bottom" || l === "right" ? A - b : A + b;
2225
+ (l === "bottom" || l === "right") && j < M[M.length - 1] || (l === "top" || l === "left") && j > M[M.length - 1] || H(r.current, {
2226
2226
  transform: U(l) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
2227
2227
  });
2228
2228
  }
2229
2229
  function Z(b, j) {
2230
- if (!n || typeof C != "number" || !R || s === void 0) return null;
2231
- const D = C === s - 1;
2232
- if (C >= s && j)
2230
+ if (!n || typeof g != "number" || !M || s === void 0) return null;
2231
+ const D = g === s - 1;
2232
+ if (g >= s && j)
2233
2233
  return 0;
2234
2234
  if (D && !j) return 1;
2235
- if (!_ && !D) return null;
2236
- const K = D ? C + 1 : C - 1, W = D ? R[K] - R[K - 1] : R[K + 1] - R[K], x = b / Math.abs(W);
2235
+ if (!T && !D) return null;
2236
+ const K = D ? g + 1 : g - 1, W = D ? M[K] - M[K - 1] : M[K + 1] - M[K], x = b / Math.abs(W);
2237
2237
  return D ? 1 - x : x;
2238
2238
  }
2239
2239
  return {
2240
- isLastSnapPoint: M,
2240
+ isLastSnapPoint: C,
2241
2241
  activeSnapPoint: f,
2242
- shouldFade: _,
2242
+ shouldFade: T,
2243
2243
  getPercentageDragged: Z,
2244
2244
  setActiveSnapPoint: c,
2245
- activeSnapPointIndex: C,
2246
- onRelease: g,
2245
+ activeSnapPointIndex: g,
2246
+ onRelease: v,
2247
2247
  onDrag: z,
2248
- snapPointsOffset: R
2248
+ snapPointsOffset: M
2249
2249
  };
2250
2250
  }
2251
- const Ml = () => () => {
2251
+ const El = () => () => {
2252
2252
  };
2253
- function Rl() {
2253
+ function Dl() {
2254
2254
  const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = Qe(), s = p.useRef(null), i = mt(() => document.body.style.backgroundColor, []);
2255
2255
  function l() {
2256
- return (window.innerWidth - _t) / window.innerWidth;
2256
+ return (window.innerWidth - It) / window.innerWidth;
2257
2257
  }
2258
2258
  p.useEffect(() => {
2259
2259
  if (t && n) {
2260
2260
  s.current && clearTimeout(s.current);
2261
2261
  const u = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
2262
2262
  if (!u) return;
2263
- xl(r && !o ? Et(document.body, {
2263
+ bl(r && !o ? Pt(document.body, {
2264
2264
  background: "black"
2265
- }) : Ml, Et(u, {
2265
+ }) : El, Pt(u, {
2266
2266
  transformOrigin: U(e) ? "top" : "left",
2267
2267
  transitionProperty: "transform, border-radius",
2268
- transitionDuration: `${$.DURATION}s`,
2269
- transitionTimingFunction: `cubic-bezier(${$.EASE.join(",")})`
2268
+ transitionDuration: `${k.DURATION}s`,
2269
+ transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2270
2270
  }));
2271
- const m = Et(u, {
2271
+ const m = Pt(u, {
2272
2272
  borderRadius: `${da}px`,
2273
2273
  overflow: "hidden",
2274
2274
  ...U(e) ? {
@@ -2280,7 +2280,7 @@ function Rl() {
2280
2280
  return () => {
2281
2281
  m(), s.current = window.setTimeout(() => {
2282
2282
  i ? document.body.style.background = i : document.body.style.removeProperty("background");
2283
- }, $.DURATION * 1e3);
2283
+ }, k.DURATION * 1e3);
2284
2284
  };
2285
2285
  }
2286
2286
  }, [
@@ -2290,7 +2290,7 @@ function Rl() {
2290
2290
  ]);
2291
2291
  }
2292
2292
  let Ye = null;
2293
- function El({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2293
+ function Pl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2294
2294
  const [i, l] = p.useState(() => typeof window < "u" ? window.location.href : ""), u = p.useRef(0), m = p.useCallback(() => {
2295
2295
  if (En() && Ye === null && e && !s) {
2296
2296
  Ye = {
@@ -2307,8 +2307,8 @@ function El({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
2307
2307
  right: "0px",
2308
2308
  height: "auto"
2309
2309
  }), window.setTimeout(() => window.requestAnimationFrame(() => {
2310
- const v = d - window.innerHeight;
2311
- v && u.current >= d && (document.body.style.top = `${-(u.current + v)}px`);
2310
+ const R = d - window.innerHeight;
2311
+ R && u.current >= d && (document.body.style.top = `${-(u.current + R)}px`);
2312
2312
  }), 300);
2313
2313
  }
2314
2314
  }, [
@@ -2358,67 +2358,67 @@ function El({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
2358
2358
  restorePositionSetting: f
2359
2359
  };
2360
2360
  }
2361
- function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = yl, scrollLockTimeout: m = bl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: v, setActiveSnapPoint: M, fixed: C, modal: _ = !0, onClose: R, nested: k, noBodyStyles: P = !1, direction: g = "bottom", defaultOpen: z = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: b = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2361
+ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = Sl, scrollLockTimeout: m = Cl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: R, setActiveSnapPoint: C, fixed: g, modal: T = !0, onClose: M, nested: A, noBodyStyles: P = !1, direction: v = "bottom", defaultOpen: z = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: b = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2362
2362
  var x, V;
2363
2363
  const [G = !1, te] = ha({
2364
2364
  defaultProp: z,
2365
2365
  prop: e,
2366
2366
  onChange: (S) => {
2367
- t == null || t(S), !S && !k && _a(), setTimeout(() => {
2367
+ t == null || t(S), !S && !A && Oa(), setTimeout(() => {
2368
2368
  B == null || B(S);
2369
- }, $.DURATION * 1e3), S && !_ && typeof window < "u" && window.requestAnimationFrame(() => {
2369
+ }, k.DURATION * 1e3), S && !T && typeof window < "u" && window.requestAnimationFrame(() => {
2370
2370
  document.body.style.pointerEvents = "auto";
2371
2371
  }), S || (document.body.style.pointerEvents = "auto");
2372
2372
  }
2373
- }), [q, Y] = p.useState(!1), [y, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), ke = p.useRef(null), ye = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), $e = p.useRef(0), Fe = p.useRef(!1), nn = p.useRef(!z), rn = p.useRef(0), E = p.useRef(null), an = p.useRef(((x = E.current) == null ? void 0 : x.getBoundingClientRect().height) || 0), on = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), bt = p.useRef(0), Da = p.useCallback((S) => {
2373
+ }), [q, Y] = p.useState(!1), [y, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), $e = p.useRef(null), ye = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), Fe = p.useRef(0), Le = p.useRef(!1), rn = p.useRef(!z), an = p.useRef(0), E = p.useRef(null), on = p.useRef(((x = E.current) == null ? void 0 : x.getBoundingClientRect().height) || 0), sn = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), Ct = p.useRef(0), Pa = p.useCallback((S) => {
2374
2374
  s && S === Ve.length - 1 && (Me.current = /* @__PURE__ */ new Date());
2375
- }, []), { activeSnapPoint: Pa, activeSnapPointIndex: Le, setActiveSnapPoint: sn, onRelease: ja, snapPointsOffset: Ve, onDrag: Na, shouldFade: ln, getPercentageDragged: Ta } = Cl({
2375
+ }, []), { activeSnapPoint: ja, activeSnapPointIndex: Be, setActiveSnapPoint: ln, onRelease: Na, snapPointsOffset: Ve, onDrag: Ta, shouldFade: cn, getPercentageDragged: _a } = Rl({
2376
2376
  snapPoints: s,
2377
- activeSnapPointProp: v,
2378
- setActiveSnapPointProp: M,
2377
+ activeSnapPointProp: R,
2378
+ setActiveSnapPointProp: C,
2379
2379
  drawerRef: E,
2380
2380
  fadeFromIndex: d,
2381
2381
  overlayRef: pe,
2382
- onSnapPointChange: Da,
2383
- direction: g,
2382
+ onSnapPointChange: Pa,
2383
+ direction: v,
2384
2384
  container: K,
2385
2385
  snapToSequentialPoint: b
2386
2386
  });
2387
- fl({
2388
- isDisabled: !G || y || !_ || ie || !q || !D || !Z
2387
+ pl({
2388
+ isDisabled: !G || y || !T || ie || !q || !D || !Z
2389
2389
  });
2390
- const { restorePositionSetting: _a } = El({
2390
+ const { restorePositionSetting: Oa } = Pl({
2391
2391
  isOpen: G,
2392
- modal: _,
2393
- nested: k ?? !1,
2392
+ modal: T,
2393
+ nested: A ?? !1,
2394
2394
  hasBeenOpened: q,
2395
2395
  preventScrollRestoration: j,
2396
2396
  noBodyStyles: P
2397
2397
  });
2398
2398
  function lt() {
2399
- return (window.innerWidth - _t) / window.innerWidth;
2399
+ return (window.innerWidth - It) / window.innerWidth;
2400
2400
  }
2401
- function Oa(S) {
2402
- var T, I;
2403
- !f && !s || E.current && !E.current.contains(S.target) || (an.current = ((T = E.current) == null ? void 0 : T.getBoundingClientRect().height) || 0, on.current = ((I = E.current) == null ? void 0 : I.getBoundingClientRect().width) || 0, Q(!0), ke.current = /* @__PURE__ */ new Date(), sa() && window.addEventListener("touchend", () => Re.current = !1, {
2401
+ function Ia(S) {
2402
+ var _, O;
2403
+ !f && !s || E.current && !E.current.contains(S.target) || (on.current = ((_ = E.current) == null ? void 0 : _.getBoundingClientRect().height) || 0, sn.current = ((O = E.current) == null ? void 0 : O.getBoundingClientRect().width) || 0, Q(!0), $e.current = /* @__PURE__ */ new Date(), sa() && window.addEventListener("touchend", () => Re.current = !1, {
2404
2404
  once: !0
2405
- }), S.target.setPointerCapture(S.pointerId), $e.current = U(g) ? S.pageY : S.pageX);
2405
+ }), S.target.setPointerCapture(S.pointerId), Fe.current = U(v) ? S.pageY : S.pageX);
2406
2406
  }
2407
- function cn(S, T) {
2408
- var I;
2407
+ function un(S, _) {
2408
+ var O;
2409
2409
  let N = S;
2410
- const L = (I = window.getSelection()) == null ? void 0 : I.toString(), ne = E.current ? pt(E.current, g) : null, ee = /* @__PURE__ */ new Date();
2410
+ const L = (O = window.getSelection()) == null ? void 0 : O.toString(), ne = E.current ? pt(E.current, v) : null, ee = /* @__PURE__ */ new Date();
2411
2411
  if (N.tagName === "SELECT" || N.hasAttribute("data-vaul-no-drag") || N.closest("[data-vaul-no-drag]"))
2412
2412
  return !1;
2413
- if (g === "right" || g === "left")
2413
+ if (v === "right" || v === "left")
2414
2414
  return !0;
2415
2415
  if (Me.current && ee.getTime() - Me.current.getTime() < 500)
2416
2416
  return !1;
2417
- if (ne !== null && (g === "bottom" ? ne > 0 : ne < 0))
2417
+ if (ne !== null && (v === "bottom" ? ne > 0 : ne < 0))
2418
2418
  return !0;
2419
2419
  if (L && L.length > 0)
2420
2420
  return !1;
2421
- if (le.current && ee.getTime() - le.current.getTime() < m && ne === 0 || T)
2421
+ if (le.current && ee.getTime() - le.current.getTime() < m && ne === 0 || _)
2422
2422
  return le.current = ee, !1;
2423
2423
  for (; N; ) {
2424
2424
  if (N.scrollHeight > N.clientHeight) {
@@ -2431,102 +2431,102 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2431
2431
  }
2432
2432
  return !0;
2433
2433
  }
2434
- function Ia(S) {
2434
+ function Aa(S) {
2435
2435
  if (E.current && y) {
2436
- const T = g === "bottom" || g === "right" ? 1 : -1, I = ($e.current - (U(g) ? S.pageY : S.pageX)) * T, N = I > 0, L = s && !f && !N;
2437
- if (L && Le === 0) return;
2438
- const ne = Math.abs(I), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = g === "bottom" || g === "top" ? an.current : on.current;
2436
+ const _ = v === "bottom" || v === "right" ? 1 : -1, O = (Fe.current - (U(v) ? S.pageY : S.pageX)) * _, N = O > 0, L = s && !f && !N;
2437
+ if (L && Be === 0) return;
2438
+ const ne = Math.abs(O), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = v === "bottom" || v === "top" ? on.current : sn.current;
2439
2439
  let fe = ne / Ee;
2440
- const _e = Ta(ne, N);
2441
- if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !cn(S.target, N)) return;
2442
- if (E.current.classList.add(Dt), Re.current = !0, H(E.current, {
2440
+ const _e = _a(ne, N);
2441
+ if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !un(S.target, N)) return;
2442
+ if (E.current.classList.add(jt), Re.current = !0, H(E.current, {
2443
2443
  transition: "none"
2444
2444
  }), H(pe.current, {
2445
2445
  transition: "none"
2446
- }), s && Na({
2447
- draggedDistance: I
2446
+ }), s && Ta({
2447
+ draggedDistance: O
2448
2448
  }), N && !s) {
2449
- const me = wl(I), ct = Math.min(me * -1, 0) * T;
2449
+ const me = yl(O), ct = Math.min(me * -1, 0) * _;
2450
2450
  H(E.current, {
2451
- transform: U(g) ? `translate3d(0, ${ct}px, 0)` : `translate3d(${ct}px, 0, 0)`
2451
+ transform: U(v) ? `translate3d(0, ${ct}px, 0)` : `translate3d(${ct}px, 0, 0)`
2452
2452
  });
2453
2453
  return;
2454
2454
  }
2455
2455
  const De = 1 - fe;
2456
- if ((ln || d && Le === d - 1) && (r == null || r(S, fe), H(pe.current, {
2456
+ if ((cn || d && Be === d - 1) && (r == null || r(S, fe), H(pe.current, {
2457
2457
  opacity: `${De}`,
2458
2458
  transition: "none"
2459
2459
  }, !0)), ee && pe.current && i) {
2460
- const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, dn = Math.max(0, 14 - fe * 14);
2460
+ const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, fn = Math.max(0, 14 - fe * 14);
2461
2461
  H(ee, {
2462
2462
  borderRadius: `${ct}px`,
2463
- transform: U(g) ? `scale(${me}) translate3d(0, ${dn}px, 0)` : `scale(${me}) translate3d(${dn}px, 0, 0)`,
2463
+ transform: U(v) ? `scale(${me}) translate3d(0, ${fn}px, 0)` : `scale(${me}) translate3d(${fn}px, 0, 0)`,
2464
2464
  transition: "none"
2465
2465
  }, !0);
2466
2466
  }
2467
2467
  if (!s) {
2468
- const me = ne * T;
2468
+ const me = ne * _;
2469
2469
  H(E.current, {
2470
- transform: U(g) ? `translate3d(0, ${me}px, 0)` : `translate3d(${me}px, 0, 0)`
2470
+ transform: U(v) ? `translate3d(0, ${me}px, 0)` : `translate3d(${me}px, 0, 0)`
2471
2471
  });
2472
2472
  }
2473
2473
  }
2474
2474
  }
2475
2475
  p.useEffect(() => {
2476
2476
  window.requestAnimationFrame(() => {
2477
- nn.current = !0;
2477
+ rn.current = !0;
2478
2478
  });
2479
2479
  }, []), p.useEffect(() => {
2480
2480
  var S;
2481
- function T() {
2481
+ function _() {
2482
2482
  if (!E.current || !D) return;
2483
- const I = document.activeElement;
2484
- if (Tt(I) || Fe.current) {
2483
+ const O = document.activeElement;
2484
+ if (Ot(O) || Le.current) {
2485
2485
  var N;
2486
2486
  const L = ((N = window.visualViewport) == null ? void 0 : N.height) || 0, ne = window.innerHeight;
2487
2487
  let ee = ne - L;
2488
2488
  const Ee = E.current.getBoundingClientRect().height || 0, fe = Ee > ne * 0.8;
2489
- bt.current || (bt.current = Ee);
2489
+ Ct.current || (Ct.current = Ee);
2490
2490
  const _e = E.current.getBoundingClientRect().top;
2491
- if (Math.abs(rn.current - ee) > 60 && (Fe.current = !Fe.current), s && s.length > 0 && Ve && Le) {
2492
- const De = Ve[Le] || 0;
2491
+ if (Math.abs(an.current - ee) > 60 && (Le.current = !Le.current), s && s.length > 0 && Ve && Be) {
2492
+ const De = Ve[Be] || 0;
2493
2493
  ee += De;
2494
2494
  }
2495
- if (rn.current = ee, Ee > L || Fe.current) {
2495
+ if (an.current = ee, Ee > L || Le.current) {
2496
2496
  const De = E.current.getBoundingClientRect().height;
2497
2497
  let me = De;
2498
- De > L && (me = L - (fe ? _e : _t)), C ? E.current.style.height = `${De - Math.max(ee, 0)}px` : E.current.style.height = `${Math.max(me, L - _e)}px`;
2499
- } else ol() || (E.current.style.height = `${bt.current}px`);
2500
- s && s.length > 0 && !Fe.current ? E.current.style.bottom = "0px" : E.current.style.bottom = `${Math.max(ee, 0)}px`;
2498
+ De > L && (me = L - (fe ? _e : It)), g ? E.current.style.height = `${De - Math.max(ee, 0)}px` : E.current.style.height = `${Math.max(me, L - _e)}px`;
2499
+ } else il() || (E.current.style.height = `${Ct.current}px`);
2500
+ s && s.length > 0 && !Le.current ? E.current.style.bottom = "0px" : E.current.style.bottom = `${Math.max(ee, 0)}px`;
2501
2501
  }
2502
2502
  }
2503
- return (S = window.visualViewport) == null || S.addEventListener("resize", T), () => {
2504
- var I;
2505
- return (I = window.visualViewport) == null ? void 0 : I.removeEventListener("resize", T);
2503
+ return (S = window.visualViewport) == null || S.addEventListener("resize", _), () => {
2504
+ var O;
2505
+ return (O = window.visualViewport) == null ? void 0 : O.removeEventListener("resize", _);
2506
2506
  };
2507
2507
  }, [
2508
- Le,
2508
+ Be,
2509
2509
  s,
2510
2510
  Ve
2511
2511
  ]);
2512
2512
  function Ge(S) {
2513
- Aa(), R == null || R(), S || te(!1), setTimeout(() => {
2514
- s && sn(s[0]);
2515
- }, $.DURATION * 1e3);
2513
+ ka(), M == null || M(), S || te(!1), setTimeout(() => {
2514
+ s && ln(s[0]);
2515
+ }, k.DURATION * 1e3);
2516
2516
  }
2517
- function un() {
2517
+ function dn() {
2518
2518
  if (!E.current) return;
2519
- const S = document.querySelector("[data-vaul-drawer-wrapper]"), T = pt(E.current, g);
2519
+ const S = document.querySelector("[data-vaul-drawer-wrapper]"), _ = pt(E.current, v);
2520
2520
  H(E.current, {
2521
2521
  transform: "translate3d(0, 0, 0)",
2522
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`
2522
+ transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2523
2523
  }), H(pe.current, {
2524
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2524
+ transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2525
2525
  opacity: "1"
2526
- }), i && T && T > 0 && G && H(S, {
2526
+ }), i && _ && _ > 0 && G && H(S, {
2527
2527
  borderRadius: `${da}px`,
2528
2528
  overflow: "hidden",
2529
- ...U(g) ? {
2529
+ ...U(v) ? {
2530
2530
  transform: `scale(${lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2531
2531
  transformOrigin: "top"
2532
2532
  } : {
@@ -2534,32 +2534,32 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2534
2534
  transformOrigin: "left"
2535
2535
  },
2536
2536
  transitionProperty: "transform, border-radius",
2537
- transitionDuration: `${$.DURATION}s`,
2538
- transitionTimingFunction: `cubic-bezier(${$.EASE.join(",")})`
2537
+ transitionDuration: `${k.DURATION}s`,
2538
+ transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2539
2539
  }, !0);
2540
2540
  }
2541
- function Aa() {
2542
- !y || !E.current || (E.current.classList.remove(Dt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date());
2541
+ function ka() {
2542
+ !y || !E.current || (E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date());
2543
2543
  }
2544
- function ka(S) {
2544
+ function $a(S) {
2545
2545
  if (!y || !E.current) return;
2546
- E.current.classList.remove(Dt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date();
2547
- const T = pt(E.current, g);
2548
- if (!S || !cn(S.target, !1) || !T || Number.isNaN(T) || ke.current === null) return;
2549
- const I = ye.current.getTime() - ke.current.getTime(), N = $e.current - (U(g) ? S.pageY : S.pageX), L = Math.abs(N) / I;
2546
+ E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date();
2547
+ const _ = pt(E.current, v);
2548
+ if (!S || !un(S.target, !1) || !_ || Number.isNaN(_) || $e.current === null) return;
2549
+ const O = ye.current.getTime() - $e.current.getTime(), N = Fe.current - (U(v) ? S.pageY : S.pageX), L = Math.abs(N) / O;
2550
2550
  if (L > 0.05 && (de(!0), setTimeout(() => {
2551
2551
  de(!1);
2552
2552
  }, 200)), s) {
2553
- ja({
2554
- draggedDistance: N * (g === "bottom" || g === "right" ? 1 : -1),
2553
+ Na({
2554
+ draggedDistance: N * (v === "bottom" || v === "right" ? 1 : -1),
2555
2555
  closeDrawer: Ge,
2556
2556
  velocity: L,
2557
2557
  dismissible: f
2558
2558
  }), o == null || o(S, !0);
2559
2559
  return;
2560
2560
  }
2561
- if (g === "bottom" || g === "right" ? N > 0 : N < 0) {
2562
- un(), o == null || o(S, !0);
2561
+ if (v === "bottom" || v === "right" ? N > 0 : N < 0) {
2562
+ dn(), o == null || o(S, !0);
2563
2563
  return;
2564
2564
  }
2565
2565
  if (L > ua) {
@@ -2569,55 +2569,55 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2569
2569
  var ne;
2570
2570
  const ee = Math.min((ne = E.current.getBoundingClientRect().height) != null ? ne : 0, window.innerHeight);
2571
2571
  var Ee;
2572
- const fe = Math.min((Ee = E.current.getBoundingClientRect().width) != null ? Ee : 0, window.innerWidth), _e = g === "left" || g === "right";
2573
- if (Math.abs(T) >= (_e ? fe : ee) * u) {
2572
+ const fe = Math.min((Ee = E.current.getBoundingClientRect().width) != null ? Ee : 0, window.innerWidth), _e = v === "left" || v === "right";
2573
+ if (Math.abs(_) >= (_e ? fe : ee) * u) {
2574
2574
  Ge(), o == null || o(S, !1);
2575
2575
  return;
2576
2576
  }
2577
- o == null || o(S, !0), un();
2577
+ o == null || o(S, !0), dn();
2578
2578
  }
2579
2579
  p.useEffect(() => (G && (H(document.documentElement, {
2580
2580
  scrollBehavior: "auto"
2581
2581
  }), Me.current = /* @__PURE__ */ new Date()), () => {
2582
- vl(document.documentElement, "scrollBehavior");
2582
+ xl(document.documentElement, "scrollBehavior");
2583
2583
  }), [
2584
2584
  G
2585
2585
  ]);
2586
- function $a(S) {
2587
- const T = S ? (window.innerWidth - Oe) / window.innerWidth : 1, I = S ? -Oe : 0;
2586
+ function Fa(S) {
2587
+ const _ = S ? (window.innerWidth - Oe) / window.innerWidth : 1, O = S ? -Oe : 0;
2588
2588
  re.current && window.clearTimeout(re.current), H(E.current, {
2589
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2590
- transform: `scale(${T}) translate3d(0, ${I}px, 0)`
2589
+ transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2590
+ transform: `scale(${_}) translate3d(0, ${O}px, 0)`
2591
2591
  }), !S && E.current && (re.current = setTimeout(() => {
2592
- const N = pt(E.current, g);
2592
+ const N = pt(E.current, v);
2593
2593
  H(E.current, {
2594
2594
  transition: "none",
2595
- transform: U(g) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
2595
+ transform: U(v) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
2596
2596
  });
2597
2597
  }, 500));
2598
2598
  }
2599
- function Fa(S, T) {
2600
- if (T < 0) return;
2601
- const I = (window.innerWidth - Oe) / window.innerWidth, N = I + T * (1 - I), L = -Oe + T * Oe;
2599
+ function La(S, _) {
2600
+ if (_ < 0) return;
2601
+ const O = (window.innerWidth - Oe) / window.innerWidth, N = O + _ * (1 - O), L = -Oe + _ * Oe;
2602
2602
  H(E.current, {
2603
- transform: U(g) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`,
2603
+ transform: U(v) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`,
2604
2604
  transition: "none"
2605
2605
  });
2606
2606
  }
2607
- function La(S, T) {
2608
- const I = U(g) ? window.innerHeight : window.innerWidth, N = T ? (I - Oe) / I : 1, L = T ? -Oe : 0;
2609
- T && H(E.current, {
2610
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2611
- transform: U(g) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`
2607
+ function Ba(S, _) {
2608
+ const O = U(v) ? window.innerHeight : window.innerWidth, N = _ ? (O - Oe) / O : 1, L = _ ? -Oe : 0;
2609
+ _ && H(E.current, {
2610
+ transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2611
+ transform: U(v) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`
2612
2612
  });
2613
2613
  }
2614
2614
  return p.useEffect(() => {
2615
- _ || window.requestAnimationFrame(() => {
2615
+ T || window.requestAnimationFrame(() => {
2616
2616
  document.body.style.pointerEvents = "auto";
2617
2617
  });
2618
2618
  }, [
2619
- _
2620
- ]), /* @__PURE__ */ p.createElement(as, {
2619
+ T
2620
+ ]), /* @__PURE__ */ p.createElement(ss, {
2621
2621
  defaultOpen: z,
2622
2622
  onOpenChange: (S) => {
2623
2623
  !f && !S || (S ? Y(!0) : Ge(!0), te(S));
@@ -2625,30 +2625,30 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2625
2625
  open: G
2626
2626
  }, /* @__PURE__ */ p.createElement(oa.Provider, {
2627
2627
  value: {
2628
- activeSnapPoint: Pa,
2628
+ activeSnapPoint: ja,
2629
2629
  snapPoints: s,
2630
- setActiveSnapPoint: sn,
2630
+ setActiveSnapPoint: ln,
2631
2631
  drawerRef: E,
2632
2632
  overlayRef: pe,
2633
2633
  onOpenChange: t,
2634
- onPress: Oa,
2635
- onRelease: ka,
2636
- onDrag: Ia,
2634
+ onPress: Ia,
2635
+ onRelease: $a,
2636
+ onDrag: Aa,
2637
2637
  dismissible: f,
2638
- shouldAnimate: nn,
2638
+ shouldAnimate: rn,
2639
2639
  handleOnly: c,
2640
2640
  isOpen: G,
2641
2641
  isDragging: y,
2642
- shouldFade: ln,
2642
+ shouldFade: cn,
2643
2643
  closeDrawer: Ge,
2644
- onNestedDrag: Fa,
2645
- onNestedOpenChange: $a,
2646
- onNestedRelease: La,
2647
- keyboardIsOpen: Fe,
2648
- modal: _,
2644
+ onNestedDrag: La,
2645
+ onNestedOpenChange: Fa,
2646
+ onNestedRelease: Ba,
2647
+ keyboardIsOpen: Le,
2648
+ modal: T,
2649
2649
  snapPointsOffset: Ve,
2650
- activeSnapPointIndex: Le,
2651
- direction: g,
2650
+ activeSnapPointIndex: Be,
2651
+ direction: v,
2652
2652
  shouldScaleBackground: i,
2653
2653
  setBackgroundColorOnScale: l,
2654
2654
  noBodyStyles: P,
@@ -2664,7 +2664,7 @@ const ma = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2664
2664
  const c = p.useCallback((d) => o(d), [
2665
2665
  o
2666
2666
  ]);
2667
- return /* @__PURE__ */ p.createElement(Jo, {
2667
+ return /* @__PURE__ */ p.createElement(es, {
2668
2668
  onMouseUp: c,
2669
2669
  ref: m,
2670
2670
  "data-vaul-overlay": "",
@@ -2676,8 +2676,8 @@ const ma = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2676
2676
  });
2677
2677
  ma.displayName = "Drawer.Overlay";
2678
2678
  const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
2679
- const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: v, direction: M, snapPoints: C, container: _, handleOnly: R, shouldAnimate: k, autoFocus: P } = Qe(), [g, z] = p.useState(!1), Z = la(o, s), b = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = C && C.length > 0;
2680
- Rl();
2679
+ const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: R, direction: C, snapPoints: g, container: T, handleOnly: M, shouldAnimate: A, autoFocus: P } = Qe(), [v, z] = p.useState(!1), Z = la(o, s), b = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = g && g.length > 0;
2680
+ Dl();
2681
2681
  const K = (x, V, G = 0) => {
2682
2682
  if (D.current) return !0;
2683
2683
  const te = Math.abs(x.y), q = Math.abs(x.x), Y = q > te, y = [
@@ -2699,13 +2699,13 @@ const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, styl
2699
2699
  function W(x) {
2700
2700
  b.current = null, D.current = !1, l(x);
2701
2701
  }
2702
- return /* @__PURE__ */ p.createElement(Zo, {
2703
- "data-vaul-drawer-direction": M,
2702
+ return /* @__PURE__ */ p.createElement(ts, {
2703
+ "data-vaul-drawer-direction": C,
2704
2704
  "data-vaul-drawer": "",
2705
- "data-vaul-delayed-snap-points": g ? "true" : "false",
2706
- "data-vaul-snap-points": v && B ? "true" : "false",
2707
- "data-vaul-custom-container": _ ? "true" : "false",
2708
- "data-vaul-animate": k != null && k.current ? "true" : "false",
2705
+ "data-vaul-delayed-snap-points": v ? "true" : "false",
2706
+ "data-vaul-snap-points": R && B ? "true" : "false",
2707
+ "data-vaul-custom-container": T ? "true" : "false",
2708
+ "data-vaul-animate": A != null && A.current ? "true" : "false",
2709
2709
  ...r,
2710
2710
  ref: Z,
2711
2711
  style: f && f.length > 0 ? {
@@ -2713,7 +2713,7 @@ const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, styl
2713
2713
  ...t
2714
2714
  } : t,
2715
2715
  onPointerDown: (x) => {
2716
- R || (r.onPointerDown == null || r.onPointerDown.call(r, x), b.current = {
2716
+ M || (r.onPointerDown == null || r.onPointerDown.call(r, x), b.current = {
2717
2717
  x: x.pageX,
2718
2718
  y: x.pageY
2719
2719
  }, i(x));
@@ -2735,12 +2735,12 @@ const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, styl
2735
2735
  }
2736
2736
  },
2737
2737
  onPointerMove: (x) => {
2738
- if (j.current = x, R || (r.onPointerMove == null || r.onPointerMove.call(r, x), !b.current)) return;
2738
+ if (j.current = x, M || (r.onPointerMove == null || r.onPointerMove.call(r, x), !b.current)) return;
2739
2739
  const V = x.pageY - b.current.y, G = x.pageX - b.current.x, te = x.pointerType === "touch" ? 10 : 2;
2740
2740
  K({
2741
2741
  x: G,
2742
2742
  y: V
2743
- }, M, te) ? u(x) : (Math.abs(G) > te || Math.abs(V) > te) && (b.current = null);
2743
+ }, C, te) ? u(x) : (Math.abs(G) > te || Math.abs(V) > te) && (b.current = null);
2744
2744
  },
2745
2745
  onPointerUp: (x) => {
2746
2746
  r.onPointerUp == null || r.onPointerUp.call(r, x), b.current = null, D.current = !1, l(x);
@@ -2754,19 +2754,19 @@ const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, styl
2754
2754
  });
2755
2755
  });
2756
2756
  ga.displayName = "Drawer.Content";
2757
- const Dl = 250, Pl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2758
- const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: m, handleOnly: f, isOpen: c, onPress: d, onDrag: v } = Qe(), M = p.useRef(null), C = p.useRef(!1);
2759
- function _() {
2760
- if (C.current) {
2757
+ const jl = 250, Nl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2758
+ const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: m, handleOnly: f, isOpen: c, onPress: d, onDrag: R } = Qe(), C = p.useRef(null), g = p.useRef(!1);
2759
+ function T() {
2760
+ if (g.current) {
2761
2761
  P();
2762
2762
  return;
2763
2763
  }
2764
2764
  window.setTimeout(() => {
2765
- R();
2766
- }, Pl);
2765
+ M();
2766
+ }, Nl);
2767
2767
  }
2768
- function R() {
2769
- if (s || e || C.current) {
2768
+ function M() {
2769
+ if (s || e || g.current) {
2770
2770
  P();
2771
2771
  return;
2772
2772
  }
@@ -2783,22 +2783,22 @@ const Dl = 250, Pl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCy
2783
2783
  const Z = i[z + 1];
2784
2784
  u(Z);
2785
2785
  }
2786
- function k() {
2787
- M.current = window.setTimeout(() => {
2788
- C.current = !0;
2789
- }, Dl);
2786
+ function A() {
2787
+ C.current = window.setTimeout(() => {
2788
+ g.current = !0;
2789
+ }, jl);
2790
2790
  }
2791
2791
  function P() {
2792
- M.current && window.clearTimeout(M.current), C.current = !1;
2792
+ C.current && window.clearTimeout(C.current), g.current = !1;
2793
2793
  }
2794
2794
  return /* @__PURE__ */ p.createElement("div", {
2795
- onClick: _,
2795
+ onClick: T,
2796
2796
  onPointerCancel: P,
2797
- onPointerDown: (g) => {
2798
- f && d(g), k();
2797
+ onPointerDown: (v) => {
2798
+ f && d(v), A();
2799
2799
  },
2800
- onPointerMove: (g) => {
2801
- f && v(g);
2800
+ onPointerMove: (v) => {
2801
+ f && R(v);
2802
2802
  },
2803
2803
  // onPointerUp is already handled by the content component
2804
2804
  ref: r,
@@ -2812,7 +2812,7 @@ const Dl = 250, Pl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCy
2812
2812
  }, t));
2813
2813
  });
2814
2814
  va.displayName = "Drawer.Handle";
2815
- function jl({ onDrag: e, onOpenChange: t, ...n }) {
2815
+ function Tl({ onDrag: e, onOpenChange: t, ...n }) {
2816
2816
  const { onNestedDrag: r, onNestedOpenChange: o, onNestedRelease: s } = Qe();
2817
2817
  if (!r)
2818
2818
  throw new Error("Drawer.NestedRoot must be placed in another drawer");
@@ -2831,25 +2831,25 @@ function jl({ onDrag: e, onOpenChange: t, ...n }) {
2831
2831
  ...n
2832
2832
  });
2833
2833
  }
2834
- function Nl(e) {
2834
+ function _l(e) {
2835
2835
  const t = Qe(), { container: n = t.container, ...r } = e;
2836
- return /* @__PURE__ */ p.createElement(os, {
2836
+ return /* @__PURE__ */ p.createElement(is, {
2837
2837
  container: n,
2838
2838
  ...r
2839
2839
  });
2840
2840
  }
2841
2841
  const he = {
2842
2842
  Root: pa,
2843
- NestedRoot: jl,
2843
+ NestedRoot: Tl,
2844
2844
  Content: ga,
2845
2845
  Overlay: ma,
2846
- Trigger: es,
2847
- Portal: Nl,
2846
+ Trigger: ns,
2847
+ Portal: _l,
2848
2848
  Handle: va,
2849
- Close: ts,
2850
- Title: ns,
2851
- Description: rs
2852
- }, Zt = ({
2849
+ Close: rs,
2850
+ Title: as,
2851
+ Description: os
2852
+ }, en = ({
2853
2853
  shouldScaleBackground: e = !0,
2854
2854
  ...t
2855
2855
  }) => /* @__PURE__ */ a.jsx(
@@ -2859,24 +2859,24 @@ const he = {
2859
2859
  ...t
2860
2860
  }
2861
2861
  );
2862
- Zt.displayName = "Drawer";
2863
- const wa = he.Trigger, Tl = he.Portal, _l = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2862
+ en.displayName = "Drawer";
2863
+ const wa = he.Trigger, Ol = he.Portal, Il = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2864
2864
  he.Overlay,
2865
2865
  {
2866
2866
  ref: n,
2867
- className: O("fixed inset-0 z-50 bg-black/80", e),
2867
+ className: F("fixed inset-0 z-50 bg-black/80", e),
2868
2868
  ...t
2869
2869
  }
2870
2870
  ));
2871
2871
  xa.displayName = he.Overlay.displayName;
2872
- const en = h.forwardRef(
2873
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Tl, { children: [
2872
+ const tn = h.forwardRef(
2873
+ ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Ol, { children: [
2874
2874
  /* @__PURE__ */ a.jsx(xa, {}),
2875
2875
  /* @__PURE__ */ a.jsxs(
2876
2876
  he.Content,
2877
2877
  {
2878
2878
  ref: o,
2879
- className: O(
2879
+ className: F(
2880
2880
  "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2881
2881
  e
2882
2882
  ),
@@ -2889,30 +2889,30 @@ const en = h.forwardRef(
2889
2889
  )
2890
2890
  ] })
2891
2891
  );
2892
- en.displayName = "DrawerContent";
2893
- const tn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2892
+ tn.displayName = "DrawerContent";
2893
+ const nn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2894
2894
  he.Title,
2895
2895
  {
2896
2896
  ref: n,
2897
- className: O(
2897
+ className: F(
2898
2898
  "text-lg font-semibold leading-none tracking-tight",
2899
2899
  e
2900
2900
  ),
2901
2901
  ...t
2902
2902
  }
2903
2903
  ));
2904
- tn.displayName = he.Title.displayName;
2905
- const Ol = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2904
+ nn.displayName = he.Title.displayName;
2905
+ const Al = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2906
2906
  he.Description,
2907
2907
  {
2908
2908
  ref: n,
2909
- className: O("text-sm text-muted-foreground", e),
2909
+ className: F("text-sm text-muted-foreground", e),
2910
2910
  ...t
2911
2911
  }
2912
2912
  ));
2913
- Ol.displayName = he.Description.displayName;
2913
+ Al.displayName = he.Description.displayName;
2914
2914
  const ya = () => {
2915
- const e = qe(), [t, n] = Ie(!1), r = qn(() => n(!1), []);
2915
+ const e = Ae(), [t, n] = Ie(!1), r = qn(() => n(!1), []);
2916
2916
  Ce(() => {
2917
2917
  if (t)
2918
2918
  return;
@@ -2923,7 +2923,7 @@ const ya = () => {
2923
2923
  window.removeEventListener("keydown", s);
2924
2924
  };
2925
2925
  }, [t, n]);
2926
- const o = e.plugins.find(As);
2926
+ const o = e.plugins.find($s);
2927
2927
  return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2928
2928
  /* @__PURE__ */ a.jsxs(
2929
2929
  "button",
@@ -2933,7 +2933,7 @@ const ya = () => {
2933
2933
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
2934
2934
  children: [
2935
2935
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2936
- /* @__PURE__ */ a.jsx(Ko, { size: 14 }),
2936
+ /* @__PURE__ */ a.jsx(Qo, { size: 14 }),
2937
2937
  "Search"
2938
2938
  ] }),
2939
2939
  /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
@@ -2945,59 +2945,59 @@ const ya = () => {
2945
2945
  onClose: r
2946
2946
  }) })
2947
2947
  ] }) : null;
2948
- }, Il = () => {
2949
- const { topNavigation: e } = qe();
2950
- return /* @__PURE__ */ a.jsxs(Zt, { direction: "right", children: [
2951
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(wa, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(qo, { size: 22 }) }) }),
2948
+ }, ba = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", kl = () => {
2949
+ const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
2950
+ return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(ba(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2951
+ Ze,
2952
+ {
2953
+ className: ({ isActive: r }) => Un(
2954
+ "block py-3.5 font-medium -mb-px border-b-2",
2955
+ r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2956
+ ),
2957
+ to: n.id,
2958
+ children: n.label
2959
+ }
2960
+ ) }, n.label)) }) });
2961
+ }, $l = () => {
2962
+ const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
2963
+ return /* @__PURE__ */ a.jsxs(en, { direction: "right", children: [
2964
+ /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(wa, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Vo, { size: 22 }) }) }),
2952
2965
  /* @__PURE__ */ a.jsxs(
2953
- en,
2966
+ tn,
2954
2967
  {
2955
- className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
2968
+ className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
2956
2969
  "aria-describedby": void 0,
2957
2970
  children: [
2958
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(tn, { children: "Navigation" }) }),
2971
+ /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(nn, { children: "Navigation" }) }),
2959
2972
  /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ya, {}) }),
2960
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2973
+ /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.filter(ba(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2961
2974
  Ze,
2962
2975
  {
2963
- className: ({ isActive: n }) => Un(
2976
+ className: ({ isActive: r }) => Un(
2964
2977
  "block font-medium border-b-2",
2965
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2978
+ r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2966
2979
  ),
2967
- to: t.id,
2968
- children: /* @__PURE__ */ a.jsx(_l, { children: t.label })
2980
+ to: n.id,
2981
+ children: /* @__PURE__ */ a.jsx(Il, { children: n.label })
2969
2982
  }
2970
- ) }, t.label)) })
2983
+ ) }, n.label)) })
2971
2984
  ]
2972
2985
  }
2973
2986
  )
2974
2987
  ] });
2975
- }, Al = () => {
2976
- const { topNavigation: e } = qe();
2977
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2978
- Ze,
2979
- {
2980
- className: ({ isActive: n }) => Un(
2981
- "block py-3.5 font-medium -mb-px border-b-2",
2982
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2983
- ),
2984
- to: t.id,
2985
- children: t.label
2986
- }
2987
- ) }, t.label)) }) });
2988
- }, ba = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(el, { children: [
2988
+ }, Sa = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(nl, { children: [
2989
2989
  /* @__PURE__ */ a.jsx(Zr, { children: e.label }),
2990
- /* @__PURE__ */ a.jsx(Zi, { children: /* @__PURE__ */ a.jsx(ea, { children: e.children.map((t, n) => (
2990
+ /* @__PURE__ */ a.jsx(tl, { children: /* @__PURE__ */ a.jsx(ea, { children: e.children.map((t, n) => (
2991
2991
  // eslint-disable-next-line react/no-array-index-key
2992
- /* @__PURE__ */ a.jsx(ba, { item: t }, n)
2992
+ /* @__PURE__ */ a.jsx(Sa, { item: t }, n)
2993
2993
  )) }) })
2994
- ] }, e.label) : /* @__PURE__ */ a.jsx(At, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(na, { children: e.label }, e.label) }), Sa = Vn(function() {
2995
- const t = pn(), [n, r] = po(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = pn(), l = qe(), { page: u, plugins: m } = l, f = m.filter((d) => Os(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(ba, { item: d }, d.label)), c = n ? Qo : Vo;
2994
+ ] }, e.label) : /* @__PURE__ */ a.jsx($t, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(na, { children: e.label }, e.label) }), Ca = Vn(function() {
2995
+ const t = vt(), [n, r] = go(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = vt(), l = Ae(), { page: u, plugins: m } = l, f = m.filter((d) => As(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(Sa, { item: d }, d.label)), c = n ? Go : Wo;
2996
2996
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
2997
- /* @__PURE__ */ a.jsx(rl, {}),
2997
+ /* @__PURE__ */ a.jsx(ol, {}),
2998
2998
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
2999
2999
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
3000
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(At, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
3000
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx($t, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
3001
3001
  (u == null ? void 0 : u.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3002
3002
  /* @__PURE__ */ a.jsx(
3003
3003
  "img",
@@ -3005,7 +3005,7 @@ const ya = () => {
3005
3005
  src: u.logo.src.light,
3006
3006
  alt: u.logo.alt ?? u.pageTitle,
3007
3007
  style: { width: u.logo.width },
3008
- className: O("h-10", n && "hidden"),
3008
+ className: F("h-10", n && "hidden"),
3009
3009
  loading: "lazy"
3010
3010
  }
3011
3011
  ),
@@ -3015,7 +3015,7 @@ const ya = () => {
3015
3015
  src: u.logo.src.dark,
3016
3016
  alt: u.logo.alt ?? u.pageTitle,
3017
3017
  style: { width: u.logo.width },
3018
- className: O("h-10", !n && "hidden"),
3018
+ className: F("h-10", !n && "hidden"),
3019
3019
  loading: "lazy"
3020
3020
  }
3021
3021
  )
@@ -3024,11 +3024,11 @@ const ya = () => {
3024
3024
  ] }) }) }),
3025
3025
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
3026
3026
  /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ya, {}) }),
3027
- /* @__PURE__ */ a.jsx(Il, {}),
3027
+ /* @__PURE__ */ a.jsx($l, {}),
3028
3028
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3029
3029
  /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-start" }),
3030
- i && !o ? /* @__PURE__ */ a.jsx(Pt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(Xi, { modal: !1, children: [
3031
- /* @__PURE__ */ a.jsx(Ji, { asChild: !0, children: /* @__PURE__ */ a.jsx(Pt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3030
+ i && !o ? /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(Zi, { modal: !1, children: [
3031
+ /* @__PURE__ */ a.jsx(el, { asChild: !0, children: /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3032
3032
  /* @__PURE__ */ a.jsxs(ta, { className: "w-56", children: [
3033
3033
  /* @__PURE__ */ a.jsx(ra, { children: "My Account" }),
3034
3034
  /* @__PURE__ */ a.jsx(aa, {}),
@@ -3050,13 +3050,13 @@ const ya = () => {
3050
3050
  ] })
3051
3051
  ] }),
3052
3052
  /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-before" }),
3053
- /* @__PURE__ */ a.jsx(Al, {}),
3053
+ /* @__PURE__ */ a.jsx(kl, {}),
3054
3054
  /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-after" })
3055
3055
  ] })
3056
3056
  ] });
3057
- }), Ca = {
3058
- Header: Sa
3059
- }, kl = Kn(Ca), $l = kl.Provider, Fl = (e) => {
3057
+ }), Ma = {
3058
+ Header: Ca
3059
+ }, Fl = Kn(Ma), Ll = Fl.Provider, Bl = (e) => {
3060
3060
  const [t, n] = Ie(!1);
3061
3061
  Ce(() => {
3062
3062
  const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
@@ -3066,68 +3066,68 @@ const ya = () => {
3066
3066
  const s = !t;
3067
3067
  document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
3068
3068
  }, [t]), o = [t, r];
3069
- return /* @__PURE__ */ a.jsx(mo.Provider, { value: o, ...e });
3070
- }, Ll = ({
3069
+ return /* @__PURE__ */ a.jsx(vo.Provider, { value: o, ...e });
3070
+ }, Hl = ({
3071
3071
  children: e,
3072
3072
  context: t
3073
- }) => ($o({
3073
+ }) => (Lo({
3074
3074
  queryFn: async () => (await t.initialize(), !0),
3075
3075
  queryKey: ["zudoku-initialize"]
3076
- }), /* @__PURE__ */ a.jsx(Fo.Provider, { value: t, children: e })), Bl = ({
3076
+ }), /* @__PURE__ */ a.jsx(Bo.Provider, { value: t, children: e })), Ul = ({
3077
3077
  children: e,
3078
3078
  ...t
3079
3079
  }) => {
3080
3080
  var c, d;
3081
3081
  const n = mt(
3082
- () => ({ ...Ca, ...t.overrides }),
3082
+ () => ({ ...Ma, ...t.overrides }),
3083
3083
  [t.overrides]
3084
3084
  ), r = mt(() => {
3085
- var M;
3085
+ var C;
3086
3086
  return {
3087
- ...(t.plugins ?? []).filter(Fs).flatMap(
3088
- (C) => C.getMdxComponents ? [C.getMdxComponents()] : []
3089
- ).reduce((C, _) => ({ ...C, ..._ }), {}),
3090
- ...go,
3091
- ...(M = t.mdx) == null ? void 0 : M.components
3087
+ ...(t.plugins ?? []).filter(Bs).flatMap(
3088
+ (g) => g.getMdxComponents ? [g.getMdxComponents()] : []
3089
+ ).reduce((g, T) => ({ ...g, ...T }), {}),
3090
+ ...wo,
3091
+ ...(C = t.mdx) == null ? void 0 : C.components
3092
3092
  };
3093
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Co(jt), [s, i] = Ie(!1), l = mt(
3093
+ }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Ro(Tt), [s, i] = Ie(!1), l = mt(
3094
3094
  () => s ? { stagger: !0 } : { stagger: o },
3095
3095
  [o, s]
3096
- ), u = Wa();
3096
+ ), u = Ya();
3097
3097
  Ce(() => {
3098
3098
  s || i(!0);
3099
3099
  }, [s, u.location]);
3100
- const [m] = Ie(() => new Bs(t)), f = (d = t.plugins) == null ? void 0 : d.filter($s).map((v, M) => {
3101
- var C;
3102
- return /* @__PURE__ */ a.jsx(Mo, { children: (C = v.getHead) == null ? void 0 : C.call(v) }, M);
3100
+ const [m] = Ie(() => new Us(t)), f = (d = t.plugins) == null ? void 0 : d.filter(Ls).map((R, C) => {
3101
+ var g;
3102
+ return /* @__PURE__ */ a.jsx(Eo, { children: (g = R.getHead) == null ? void 0 : g.call(R) }, C);
3103
3103
  });
3104
- return /* @__PURE__ */ a.jsxs(Lo, { client: nr, children: [
3105
- /* @__PURE__ */ a.jsx(It, { children: f }),
3106
- /* @__PURE__ */ a.jsx(jt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(Ll, { context: m, children: /* @__PURE__ */ a.jsx(Ua, { components: r, children: /* @__PURE__ */ a.jsx(Fl, { children: /* @__PURE__ */ a.jsx($l, { value: n, children: /* @__PURE__ */ a.jsx(Xa, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(vo, { children: e ?? /* @__PURE__ */ a.jsx(In, {}) }) }) }) }) }) }) })
3104
+ return /* @__PURE__ */ a.jsxs(Ho, { client: nr, children: [
3105
+ /* @__PURE__ */ a.jsx(kt, { children: f }),
3106
+ /* @__PURE__ */ a.jsx(Tt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(Hl, { context: m, children: /* @__PURE__ */ a.jsx(za, { components: r, children: /* @__PURE__ */ a.jsx(Bl, { children: /* @__PURE__ */ a.jsx(Ll, { value: n, children: /* @__PURE__ */ a.jsx(Za, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(xo, { children: e ?? /* @__PURE__ */ a.jsx(In, {}) }) }) }) }) }) }) })
3107
3107
  ] });
3108
- }, Hl = Vn(Bl), Ma = (e) => /* @__PURE__ */ a.jsx(Ts, { FallbackComponent: Hs, children: /* @__PURE__ */ a.jsx(Hl, { ...e }) });
3109
- Ma.displayName = "DevPortal";
3110
- const Ul = ({
3108
+ }, zl = Vn(Ul), Ra = (e) => /* @__PURE__ */ a.jsx(Os, { FallbackComponent: zs, children: /* @__PURE__ */ a.jsx(zl, { ...e }) });
3109
+ Ra.displayName = "DevPortal";
3110
+ const Kl = ({
3111
3111
  category: e,
3112
3112
  level: t
3113
3113
  }) => {
3114
- var d;
3115
- const n = Yn(), r = za(e), [o, s] = Ie(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [m, f] = Ie(u);
3114
+ var R, C;
3115
+ const n = Yn(), r = Ka(e), [o, s] = Ie(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [m, f] = Ie(u), c = Xa(wt(n == null ? void 0 : n.id, (R = e.link) == null ? void 0 : R.id));
3116
3116
  Ce(() => {
3117
3117
  r && f(!0);
3118
3118
  }, [r]);
3119
- const c = i && /* @__PURE__ */ a.jsx(
3119
+ const d = i && /* @__PURE__ */ a.jsx(
3120
3120
  "button",
3121
3121
  {
3122
3122
  type: "button",
3123
- onClick: (v) => {
3124
- v.preventDefault(), f((M) => !M), s(!0);
3123
+ onClick: (g) => {
3124
+ g.preventDefault(), f((T) => !T), s(!0);
3125
3125
  },
3126
3126
  children: /* @__PURE__ */ a.jsx(
3127
3127
  Xn,
3128
3128
  {
3129
3129
  size: 16,
3130
- className: O(
3130
+ className: F(
3131
3131
  o && "transition",
3132
3132
  "shrink-0 group-data-[state=open]:rotate-90"
3133
3133
  )
@@ -3136,83 +3136,92 @@ const Ul = ({
3136
3136
  }
3137
3137
  );
3138
3138
  return /* @__PURE__ */ a.jsxs(
3139
- Do,
3139
+ jo,
3140
3140
  {
3141
- className: O("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
3141
+ className: "flex flex-col",
3142
3142
  defaultOpen: u,
3143
3143
  open: m,
3144
3144
  onOpenChange: () => f(!0),
3145
3145
  children: [
3146
- /* @__PURE__ */ a.jsx(Po, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
3146
+ /* @__PURE__ */ a.jsx(No, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
3147
3147
  "div",
3148
3148
  {
3149
- className: O(
3150
- "text-start",
3151
- Je({ isActive: !1, isTopLevel: t === 0 }),
3152
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3153
- ),
3149
+ onClick: () => s(!0),
3150
+ className: Je({
3151
+ isActive: !1,
3152
+ isTopLevel: t === 0,
3153
+ className: [
3154
+ "text-start",
3155
+ i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3156
+ ]
3157
+ }),
3154
3158
  children: [
3155
3159
  e.icon && /* @__PURE__ */ a.jsx(
3156
3160
  e.icon,
3157
3161
  {
3158
3162
  size: 16,
3159
- className: "align-[-0.125em] -translate-x-1"
3163
+ className: F(
3164
+ "align-[-0.125em] -translate-x-1",
3165
+ c && "text-primary"
3166
+ )
3160
3167
  }
3161
3168
  ),
3162
- ((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ a.jsx(
3169
+ ((C = e.link) == null ? void 0 : C.type) === "doc" ? /* @__PURE__ */ a.jsx(
3163
3170
  Ze,
3164
3171
  {
3165
- to: Ht(n == null ? void 0 : n.id, e.link.id),
3172
+ to: wt(n == null ? void 0 : n.id, e.link.id),
3166
3173
  className: "flex-1",
3167
- onClick: () => s(!0),
3168
- children: ({ isActive: v }) => /* @__PURE__ */ a.jsxs(
3174
+ onClick: () => {
3175
+ c && !m && f(!0);
3176
+ },
3177
+ children: /* @__PURE__ */ a.jsxs(
3169
3178
  "div",
3170
3179
  {
3171
- className: O(
3180
+ className: F(
3172
3181
  "flex items-center gap-2 justify-between w-full",
3173
- v ? "text-primary font-medium" : "text-foreground/80"
3182
+ c ? "text-primary" : "text-foreground/80"
3174
3183
  ),
3175
3184
  children: [
3176
3185
  /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
3177
- c
3186
+ d
3178
3187
  ]
3179
3188
  }
3180
3189
  )
3181
3190
  }
3182
3191
  ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3183
3192
  /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3184
- c
3193
+ d
3185
3194
  ] })
3186
3195
  ]
3187
3196
  }
3188
3197
  ) }),
3189
3198
  /* @__PURE__ */ a.jsx(
3190
- jo,
3199
+ To,
3191
3200
  {
3192
- className: O(
3201
+ className: F(
3193
3202
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3194
- o && "CollapsibleContent",
3195
- "ms-[calc(var(--padding-nav-item)*1.125)]"
3203
+ o && "CollapsibleContent"
3196
3204
  ),
3197
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
3198
- Ot,
3205
+ children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((g) => /* @__PURE__ */ a.jsx(
3206
+ At,
3199
3207
  {
3200
3208
  level: t + 1,
3201
- item: v
3209
+ item: g
3202
3210
  },
3203
- ("id" in v ? v.id : "") + ("href" in v ? v.href : "") + v.label
3211
+ ("id" in g ? g.id : "") + ("href" in g ? g.href : "") + g.label
3204
3212
  )) })
3205
3213
  }
3206
3214
  )
3207
3215
  ]
3208
3216
  }
3209
3217
  );
3210
- }, Je = wo(
3218
+ }, Je = yo(
3211
3219
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3212
3220
  {
3213
3221
  variants: {
3214
3222
  isTopLevel: {
3215
- true: "font-semibold"
3223
+ true: "font-medium -mx-[--padding-nav-item]",
3224
+ false: "-mr-[--padding-nav-item] ml-[--padding-nav-item]"
3216
3225
  },
3217
3226
  isActive: {
3218
3227
  true: "text-primary font-medium",
@@ -3222,90 +3231,88 @@ const Ul = ({
3222
3231
  true: "text-foreground/30",
3223
3232
  false: ""
3224
3233
  }
3234
+ },
3235
+ defaultVariants: {
3236
+ isActive: !1
3225
3237
  }
3226
3238
  }
3227
- ), Ra = "data-anchor", Ot = ({
3239
+ ), Ea = "data-anchor", At = ({
3228
3240
  item: e,
3229
3241
  level: t = 0
3230
3242
  }) => {
3231
- const n = Yn(), { activeAnchor: r } = Ft(), [o] = Ya();
3243
+ var s, i;
3244
+ const n = Yn(), { activeAnchor: r } = Bt(), [o] = Ja();
3232
3245
  switch (e.type) {
3233
3246
  case "category":
3234
- return /* @__PURE__ */ a.jsx(Ul, { category: e, level: t });
3247
+ return /* @__PURE__ */ a.jsx(Kl, { category: e, level: t });
3235
3248
  case "doc":
3236
3249
  return /* @__PURE__ */ a.jsxs(
3237
3250
  Ze,
3238
3251
  {
3239
- className: ({ isActive: s }) => Je({ isActive: s, isTopLevel: t === 0 }),
3240
- to: Ht(n == null ? void 0 : n.id, e.id),
3252
+ className: ({ isActive: l }) => Je({ isActive: l, isTopLevel: t === 0 }),
3253
+ to: wt(n == null ? void 0 : n.id, e.id),
3241
3254
  children: [
3242
3255
  e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3243
3256
  e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3244
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3245
- /* @__PURE__ */ a.jsx(St, { ...e.badge })
3257
+ /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
3258
+ /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3246
3259
  ] }) : e.label
3247
3260
  ]
3248
3261
  }
3249
3262
  );
3250
3263
  case "link":
3251
3264
  return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
3252
- Ka,
3265
+ qa,
3253
3266
  {
3254
3267
  to: { hash: e.href, search: o.toString() },
3255
- [Ra]: e.href.slice(1),
3256
- className: O(
3257
- "flex gap-2.5 justify-between",
3258
- t === 0 && "-mx-[--padding-nav-item]",
3259
- Je({
3260
- isActive: e.href.slice(1) === r
3261
- })
3262
- ),
3268
+ [Ea]: e.href.slice(1),
3269
+ className: Je({
3270
+ isActive: e.href.slice(1) === r,
3271
+ isTopLevel: t === 0,
3272
+ className: ((s = e.badge) == null ? void 0 : s.placement) !== "start" && "justify-between"
3273
+ }),
3263
3274
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3264
3275
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3265
- /* @__PURE__ */ a.jsx(St, { ...e.badge })
3276
+ /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3266
3277
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3267
3278
  }
3268
3279
  ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
3269
3280
  "a",
3270
3281
  {
3271
- className: O(
3272
- Je({ isTopLevel: t === 0 }),
3273
- "block"
3274
- ),
3282
+ className: Je({ isTopLevel: t === 0 }),
3275
3283
  href: e.href,
3276
3284
  target: "_blank",
3277
3285
  rel: "noopener noreferrer",
3278
3286
  children: [
3279
3287
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
3280
- /* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
3281
- " ",
3282
- /* @__PURE__ */ a.jsx(Go, { className: "inline ml-1", size: 12 })
3283
- ] })
3288
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Yo, { className: "inline -translate-y-0.5", size: 12 }) })
3284
3289
  ]
3285
3290
  }
3286
3291
  ) : /* @__PURE__ */ a.jsx(
3287
3292
  Ze,
3288
3293
  {
3289
- className: O("flex gap-2.5 justify-between", Je()),
3294
+ className: Je({
3295
+ className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
3296
+ }),
3290
3297
  to: e.href,
3291
3298
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3292
3299
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3293
- /* @__PURE__ */ a.jsx(St, { ...e.badge })
3300
+ /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3294
3301
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3295
3302
  }
3296
3303
  );
3297
3304
  }
3298
- }, zl = (e, t = { block: "center" }) => {
3305
+ }, ql = (e, t = { block: "center" }) => {
3299
3306
  if (!e) return;
3300
3307
  const n = e.getBoundingClientRect();
3301
3308
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3302
- }, Kl = () => {
3303
- const e = kt(), { setActiveAnchor: t } = Ft();
3309
+ }, Ql = () => {
3310
+ const e = Ft(), { setActiveAnchor: t } = Bt();
3304
3311
  Ce(() => {
3305
3312
  if (!e.hash) return;
3306
3313
  const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3307
- const o = document.getElementById(n), s = document.querySelector(`[${Ra}="${n}"]`);
3308
- return o ? (o.scrollIntoView(), zl(s), requestIdleCallback(() => t(n)), !0) : !1;
3314
+ const o = document.getElementById(n), s = document.querySelector(`[${Ea}="${n}"]`);
3315
+ return o ? (o.scrollIntoView(), ql(s), requestIdleCallback(() => t(n)), !0) : !1;
3309
3316
  };
3310
3317
  if (!r()) {
3311
3318
  const o = new MutationObserver((s, i) => {
@@ -3314,16 +3321,16 @@ const Ul = ({
3314
3321
  return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
3315
3322
  }
3316
3323
  }, [e.hash, t]);
3317
- }, ql = () => {
3318
- const e = kt(), t = Lt(e.pathname);
3324
+ }, Vl = () => {
3325
+ const e = Ft(), t = Ht(e.pathname);
3319
3326
  Ce(() => {
3320
3327
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3321
3328
  }, [e.pathname]);
3322
- }, Ea = Ro(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3329
+ }, Da = Do(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3323
3330
  "nav",
3324
3331
  {
3325
3332
  "data-navigation": String(n),
3326
- className: O(
3333
+ className: F(
3327
3334
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
3328
3335
  "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
3329
3336
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
@@ -3333,38 +3340,38 @@ const Ul = ({
3333
3340
  children: e
3334
3341
  }
3335
3342
  ));
3336
- Ea.displayName = "SidebarWrapper";
3337
- const Ql = () => {
3338
- const e = Lt(null), t = Bo();
3343
+ Da.displayName = "SidebarWrapper";
3344
+ const Gl = () => {
3345
+ const e = Ht(null), t = Uo();
3339
3346
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3340
3347
  /* @__PURE__ */ a.jsxs(
3341
- Ea,
3348
+ Da,
3342
3349
  {
3343
3350
  ref: e,
3344
3351
  pushMainContent: t.data.items.length > 0,
3345
3352
  children: [
3346
3353
  /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-navigation" }),
3347
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(Ot, { item: n }, n.label)),
3354
+ t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label)),
3348
3355
  /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-navigation" })
3349
3356
  ]
3350
3357
  }
3351
3358
  ),
3352
3359
  /* @__PURE__ */ a.jsxs(
3353
- en,
3360
+ tn,
3354
3361
  {
3355
- className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none",
3362
+ className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
3356
3363
  "aria-describedby": void 0,
3357
3364
  children: [
3358
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(tn, { children: "Sidebar" }) }),
3359
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(Ot, { item: n }, n.label))
3365
+ /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(nn, { children: "Sidebar" }) }),
3366
+ t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label))
3360
3367
  ]
3361
3368
  }
3362
3369
  )
3363
3370
  ] });
3364
- }, Vl = ({ children: e }) => {
3365
- const t = kt(), { setActiveAnchor: n } = Ft(), { meta: r, authentication: o } = qe();
3366
- Kl(), ql();
3367
- const s = Lt(t.pathname);
3371
+ }, Wl = ({ children: e }) => {
3372
+ const t = Ft(), { setActiveAnchor: n } = Bt(), { meta: r, authentication: o } = Ae();
3373
+ Ql(), Vl();
3374
+ const s = Ht(t.pathname);
3368
3375
  return Ce(() => {
3369
3376
  var i;
3370
3377
  (i = o == null ? void 0 : o.pageLoad) == null || i.call(o);
@@ -3372,28 +3379,28 @@ const Ql = () => {
3372
3379
  t.pathname !== s.current && n(""), s.current = t.pathname;
3373
3380
  }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3374
3381
  !1,
3375
- /* @__PURE__ */ a.jsxs(It, { titleTemplate: r == null ? void 0 : r.title, children: [
3382
+ /* @__PURE__ */ a.jsxs(kt, { titleTemplate: r == null ? void 0 : r.title, children: [
3376
3383
  (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
3377
3384
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
3378
3385
  ] }),
3379
3386
  /* @__PURE__ */ a.jsx(xe, { name: "layout-before-head" }),
3380
- /* @__PURE__ */ a.jsx(Sa, {}),
3387
+ /* @__PURE__ */ a.jsx(Ca, {}),
3381
3388
  /* @__PURE__ */ a.jsx(xe, { name: "layout-after-head" }),
3382
3389
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
3383
3390
  Qn,
3384
3391
  {
3385
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(ss, {}) }),
3386
- children: /* @__PURE__ */ a.jsxs(Zt, { direction: "left", children: [
3387
- /* @__PURE__ */ a.jsx(Ql, {}),
3392
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(ls, {}) }),
3393
+ children: /* @__PURE__ */ a.jsxs(en, { direction: "left", children: [
3394
+ /* @__PURE__ */ a.jsx(Gl, {}),
3388
3395
  /* @__PURE__ */ a.jsx(
3389
3396
  "div",
3390
3397
  {
3391
- className: O(
3398
+ className: F(
3392
3399
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3393
3400
  "peer-data-[navigation=false]:hidden"
3394
3401
  ),
3395
3402
  children: /* @__PURE__ */ a.jsxs(wa, { className: "flex items-center gap-2", children: [
3396
- /* @__PURE__ */ a.jsx(Wo, { size: 16, strokeWidth: 1.5 }),
3403
+ /* @__PURE__ */ a.jsx(Xo, { size: 16, strokeWidth: 1.5 }),
3397
3404
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
3398
3405
  ] })
3399
3406
  }
@@ -3401,7 +3408,7 @@ const Ql = () => {
3401
3408
  /* @__PURE__ */ a.jsxs(
3402
3409
  "main",
3403
3410
  {
3404
- className: O(
3411
+ className: F(
3405
3412
  "h-full dark:border-white/10 translate-x-0",
3406
3413
  "lg:overflow-visible",
3407
3414
  // This works in tandem with the `SidebarWrapper` component
@@ -3419,18 +3426,19 @@ const Ql = () => {
3419
3426
  }
3420
3427
  ) })
3421
3428
  ] });
3422
- }, dc = qa, fc = xo, hc = Ma, pc = Vl, mc = At, gc = Ja, vc = is, wc = Ms, xc = Rs, yc = Pt, bc = It;
3429
+ }, hc = Qa, pc = bo, mc = Ra, gc = Wl, vc = $t, wc = eo, xc = cs, yc = Es, bc = Ds, Sc = Nt, Cc = kt, Mc = Ae;
3423
3430
  export {
3424
- wc as Bootstrap,
3425
- xc as BootstrapStatic,
3426
- yc as Button,
3427
- fc as Callout,
3428
- hc as DevPortal,
3429
- bc as Head,
3430
- pc as Layout,
3431
- mc as Link,
3432
- gc as RouterError,
3433
- vc as ServerError,
3434
- dc as useMDXComponents
3431
+ yc as Bootstrap,
3432
+ bc as BootstrapStatic,
3433
+ Sc as Button,
3434
+ pc as Callout,
3435
+ mc as DevPortal,
3436
+ Cc as Head,
3437
+ gc as Layout,
3438
+ vc as Link,
3439
+ wc as RouterError,
3440
+ xc as ServerError,
3441
+ hc as useMDXComponents,
3442
+ Mc as useZudoku
3435
3443
  };
3436
3444
  //# sourceMappingURL=zudoku.components.js.map