zudoku 0.3.1-dev.9 → 0.4.1-dev.0

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 (84) hide show
  1. package/LICENSE.md +21 -0
  2. package/dist/config/config.d.ts +0 -3
  3. package/dist/lib/authentication/authentication.d.ts +1 -0
  4. package/dist/lib/authentication/components/CallbackHandler.d.ts +3 -0
  5. package/dist/lib/authentication/components/CallbackHandler.js +34 -0
  6. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -0
  7. package/dist/lib/authentication/providers/auth0.js +11 -6
  8. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  9. package/dist/lib/authentication/providers/openid.d.ts +4 -13
  10. package/dist/lib/authentication/providers/openid.js +50 -49
  11. package/dist/lib/authentication/providers/openid.js.map +1 -1
  12. package/dist/lib/components/Header.js +2 -4
  13. package/dist/lib/components/Header.js.map +1 -1
  14. package/dist/lib/components/Layout.js +5 -1
  15. package/dist/lib/components/Layout.js.map +1 -1
  16. package/dist/lib/components/context/ZudokuProvider.js +1 -3
  17. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  18. package/dist/lib/core/DevPortalContext.d.ts +1 -4
  19. package/dist/lib/core/DevPortalContext.js +2 -2
  20. package/dist/lib/core/DevPortalContext.js.map +1 -1
  21. package/dist/lib/core/plugins.d.ts +2 -4
  22. package/dist/lib/core/plugins.js.map +1 -1
  23. package/lib/{AuthenticationPlugin-CH5NSVOu.js → AuthenticationPlugin-owbEUimP.js} +3 -3
  24. package/lib/{AuthenticationPlugin-CH5NSVOu.js.map → AuthenticationPlugin-owbEUimP.js.map} +1 -1
  25. package/lib/{CategoryHeading-z15xh7Jb.js → CategoryHeading-DnPprxtD.js} +2 -2
  26. package/lib/{CategoryHeading-z15xh7Jb.js.map → CategoryHeading-DnPprxtD.js.map} +1 -1
  27. package/lib/{Combination-DTfV-c98.js → Combination-DruV0zX_.js} +3 -3
  28. package/lib/{Combination-DTfV-c98.js.map → Combination-DruV0zX_.js.map} +1 -1
  29. package/lib/ErrorPage-PUg985n_.js +18 -0
  30. package/lib/ErrorPage-PUg985n_.js.map +1 -0
  31. package/lib/{Input-CzXNm7xb.js → Input-CBfi9Yjc.js} +4 -4
  32. package/lib/{Input-CzXNm7xb.js.map → Input-CBfi9Yjc.js.map} +1 -1
  33. package/lib/{Markdown-CEccPMI_.js → Markdown-Chb9VIBv.js} +2 -2
  34. package/lib/{Markdown-CEccPMI_.js.map → Markdown-Chb9VIBv.js.map} +1 -1
  35. package/lib/{MdxPage-CnqOoqvp.js → MdxPage-CIBHMwTd.js} +5 -5
  36. package/lib/{MdxPage-CnqOoqvp.js.map → MdxPage-CIBHMwTd.js.map} +1 -1
  37. package/lib/{OperationList-CYyaboNz.js → OperationList-CZiSz5JH.js} +24 -23
  38. package/lib/{OperationList-CYyaboNz.js.map → OperationList-CZiSz5JH.js.map} +1 -1
  39. package/lib/{Route-C3Jb0axy.js → Route-Cle-r-bq.js} +4 -4
  40. package/lib/{Route-C3Jb0axy.js.map → Route-Cle-r-bq.js.map} +1 -1
  41. package/lib/{Spinner-BT_AYFrA.js → SidebarBadge-Ba0PhibA.js} +66 -76
  42. package/lib/SidebarBadge-Ba0PhibA.js.map +1 -0
  43. package/lib/{SlotletProvider-ByLSCZQa.js → SlotletProvider-Dq80og6-.js} +4 -4
  44. package/lib/{SlotletProvider-ByLSCZQa.js.map → SlotletProvider-Dq80og6-.js.map} +1 -1
  45. package/lib/Spinner-CvXZ7QK4.js +15 -0
  46. package/lib/Spinner-CvXZ7QK4.js.map +1 -0
  47. package/lib/{ZudokuContext-BIZ8zHbZ.js → ZudokuContext-BQ45UjcB.js} +2 -2
  48. package/lib/{ZudokuContext-BIZ8zHbZ.js.map → ZudokuContext-BQ45UjcB.js.map} +1 -1
  49. package/lib/{index-B1he6g8N.js → index-Br1MQPxy.js} +455 -465
  50. package/lib/index-Br1MQPxy.js.map +1 -0
  51. package/lib/{index-Dz4LyXZI.js → index-DCJ9wEIV.js} +3 -3
  52. package/lib/{index-Dz4LyXZI.js.map → index-DCJ9wEIV.js.map} +1 -1
  53. package/lib/{index-7kcHaXD6.js → index-Yjb2PyPF.js} +4 -4
  54. package/lib/{index-7kcHaXD6.js.map → index-Yjb2PyPF.js.map} +1 -1
  55. package/lib/{urql-DrBfkb92.js → urql-YhcsXYy8.js} +2 -2
  56. package/lib/urql-YhcsXYy8.js.map +1 -0
  57. package/lib/{utils-Bh4upQ0e.js → utils-pDHePxa0.js} +3 -3
  58. package/lib/{utils-Bh4upQ0e.js.map → utils-pDHePxa0.js.map} +1 -1
  59. package/lib/zudoku.auth-auth0.js +24 -22
  60. package/lib/zudoku.auth-auth0.js.map +1 -1
  61. package/lib/zudoku.auth-clerk.js +1 -1
  62. package/lib/zudoku.auth-openid.js +527 -469
  63. package/lib/zudoku.auth-openid.js.map +1 -1
  64. package/lib/zudoku.components.js +434 -443
  65. package/lib/zudoku.components.js.map +1 -1
  66. package/lib/zudoku.openapi-worker.js +1 -1
  67. package/lib/zudoku.plugin-api-keys.js +6 -6
  68. package/lib/zudoku.plugin-custom-page.js +1 -1
  69. package/lib/zudoku.plugin-markdown.js +1 -1
  70. package/lib/zudoku.plugin-openapi.js +8 -7
  71. package/lib/zudoku.plugin-openapi.js.map +1 -1
  72. package/package.json +80 -100
  73. package/src/lib/authentication/authentication.ts +1 -0
  74. package/src/lib/authentication/components/CallbackHandler.tsx +59 -0
  75. package/src/lib/authentication/providers/auth0.tsx +13 -7
  76. package/src/lib/authentication/providers/openid.tsx +56 -58
  77. package/src/lib/components/Header.tsx +3 -10
  78. package/src/lib/components/Layout.tsx +6 -1
  79. package/src/lib/components/context/ZudokuProvider.tsx +1 -4
  80. package/src/lib/core/DevPortalContext.ts +2 -7
  81. package/src/lib/core/plugins.ts +1 -2
  82. package/lib/Spinner-BT_AYFrA.js.map +0 -1
  83. package/lib/index-B1he6g8N.js.map +0 -1
  84. package/lib/urql-DrBfkb92.js.map +0 -1
@@ -1,9 +1,9 @@
1
- var ir = Object.defineProperty;
1
+ var cr = Object.defineProperty;
2
2
  var dt = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var cr = (e, t, n) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var j = (e, t, n) => cr(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
5
+ var ur = (e, t, n) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var j = (e, t, n) => ur(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
7
7
  var f = (e, t, n) => (ht(e, t, "read from private field"), n ? n.call(e) : t.get(e)), N = (e, t, n) => t.has(e) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), S = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
8
  var Ce = (e, t, n, r) => ({
9
9
  set _(o) {
@@ -13,27 +13,28 @@ var Ce = (e, t, n, r) => ({
13
13
  return f(e, t, r);
14
14
  }
15
15
  });
16
- import { H as Pt, a as Ge, M as ur, u as lr, A as dr, b as hr } from "./utils-Bh4upQ0e.js";
17
- import { d as fr, a as pr, R as mr, N as je, u as De, L as Re, b as gr, c as vr, O as jt, e as xr } from "./index-7kcHaXD6.js";
18
- import { E as Rt, S as se, a as yr, R as wr } from "./SlotletProvider-ByLSCZQa.js";
16
+ import { H as jt, a as Ge, M as lr, u as dr, A as hr, b as fr } from "./utils-pDHePxa0.js";
17
+ import { d as pr, a as mr, R as gr, N as je, u as Ne, L as He, b as vr, O as Rt, c as xr } from "./index-Yjb2PyPF.js";
18
+ import { E as Et, S as se, a as yr, R as wr } from "./SlotletProvider-Dq80og6-.js";
19
19
  import { j as a } from "./jsx-runtime-B6kdoens.js";
20
- import { M as br, c as Mr, a as Et, b as _t, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as He, g as _r, i as Nt, R as Nr, S as Dr, j as Ir, k as kr, l as Dt, m as Ar, n as Ee, o as It, p as Or, B as Qe } from "./Combination-DTfV-c98.js";
21
- import { c as ue, a as b, C as Tr, b as Fr, u as Lr, T as Kr, M as $r, V as Br, d as ze, e as Qr, f as qr } from "./Markdown-CEccPMI_.js";
20
+ import { M as br, c as Mr, a as _t, b as Nt, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as Ue, g as _r, i as Dt, R as Nr, S as Dr, j as Ir, k as kr, l as It, m as Ar, n as Re, o as kt, p as ft, B as Be } from "./Combination-DruV0zX_.js";
21
+ import { c as ue, a as b, C as Or, b as Tr, u as Fr, T as Lr, M as Kr, V as $r, d as ze, e as Br, f as Qr } from "./Markdown-Chb9VIBv.js";
22
22
  import * as c from "react";
23
- import Ur, { StrictMode as kt, createContext as At, Component as Gr, createElement as ft, isValidElement as Hr, useState as ie, useCallback as Ot, useEffect as W, Suspense as Tt, memo as Ft, useMemo as Ke, useContext as zr, Fragment as Vr, useRef as Ve, forwardRef as Yr } from "react";
23
+ import qr, { StrictMode as At, createContext as Ot, Component as Gr, createElement as pt, isValidElement as Hr, useState as ie, useCallback as Tt, useEffect as z, Suspense as Ft, memo as Lt, useMemo as Le, useContext as Ur, Fragment as zr, useRef as Ve, forwardRef as Vr } from "react";
24
24
  import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
25
- import { r as Xr } from "./router-BiRCp01d.js";
26
- import { S as qe, R as Wr, T as Jr, C as Zr } from "./index-Dz4LyXZI.js";
27
- import { S as Lt, h as Kt, Q as ea, n as E, m as pt, a as mt, b as $, e as ta, c as na, d as ra, f as aa, o as gt, r as vt, g as oa, i as xt, p as yt, s as sa, u as Ie, j as ia, Z as ca, k as ua, l as $t, q as la } from "./ZudokuContext-BIZ8zHbZ.js";
25
+ import { r as Yr } from "./router-BiRCp01d.js";
26
+ import { S as Qe, R as Xr, T as Wr, C as Jr } from "./index-DCJ9wEIV.js";
27
+ import { S as Kt, h as $t, Q as Zr, n as E, m as mt, a as gt, b as $, e as ea, c as ta, d as na, f as ra, o as vt, r as xt, g as aa, i as yt, p as wt, s as oa, u as De, j as sa, Z as ia, k as ca, l as Bt, q as ua } from "./ZudokuContext-BQ45UjcB.js";
28
28
  import { j as Xe } from "./joinPath-B7kNnUX4.js";
29
- import { c as Bt, P as ke, R as da, I as ha, S as $e, a as fa } from "./Spinner-BT_AYFrA.js";
29
+ import { c as Qt, P as Ie, R as la, I as da, S as Ke } from "./SidebarBadge-Ba0PhibA.js";
30
+ import { S as ha } from "./Spinner-CvXZ7QK4.js";
30
31
  /**
31
32
  * @license lucide-react v0.378.0 - ISC
32
33
  *
33
34
  * This source code is licensed under the ISC license.
34
35
  * See the LICENSE file in the root directory of this source tree.
35
36
  */
36
- const Qt = ue("ChevronRight", [
37
+ const qt = ue("ChevronRight", [
37
38
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
38
39
  ]);
39
40
  /**
@@ -42,7 +43,7 @@ const Qt = ue("ChevronRight", [
42
43
  * This source code is licensed under the ISC license.
43
44
  * See the LICENSE file in the root directory of this source tree.
44
45
  */
45
- const pa = ue("Dot", [
46
+ const fa = ue("Dot", [
46
47
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
47
48
  ]);
48
49
  /**
@@ -51,7 +52,7 @@ const pa = ue("Dot", [
51
52
  * This source code is licensed under the ISC license.
52
53
  * See the LICENSE file in the root directory of this source tree.
53
54
  */
54
- const ma = ue("ExternalLink", [
55
+ const pa = ue("ExternalLink", [
55
56
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
56
57
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
57
58
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -62,7 +63,7 @@ const ma = ue("ExternalLink", [
62
63
  * This source code is licensed under the ISC license.
63
64
  * See the LICENSE file in the root directory of this source tree.
64
65
  */
65
- const ga = ue("MoonStar", [
66
+ const ma = ue("MoonStar", [
66
67
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
67
68
  ["path", { d: "M20 3v4", key: "1olli1" }],
68
69
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -73,7 +74,7 @@ const ga = ue("MoonStar", [
73
74
  * This source code is licensed under the ISC license.
74
75
  * See the LICENSE file in the root directory of this source tree.
75
76
  */
76
- const va = ue("Search", [
77
+ const ga = ue("Search", [
77
78
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
78
79
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
79
80
  ]);
@@ -83,7 +84,7 @@ const va = ue("Search", [
83
84
  * This source code is licensed under the ISC license.
84
85
  * See the LICENSE file in the root directory of this source tree.
85
86
  */
86
- const xa = ue("Sun", [
87
+ const va = ue("Sun", [
87
88
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
88
89
  ["path", { d: "M12 2v2", key: "tus03m" }],
89
90
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -94,14 +95,14 @@ const xa = ue("Sun", [
94
95
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
95
96
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
96
97
  ]);
97
- function ya({ error: e }) {
98
- return /* @__PURE__ */ a.jsx(Rt, { error: e });
98
+ function xa({ error: e }) {
99
+ return /* @__PURE__ */ a.jsx(Et, { error: e });
99
100
  }
100
101
  var ve = {};
101
- const wa = /* @__PURE__ */ Ye(Xr), ba = /* @__PURE__ */ Ye(fr), Ma = /* @__PURE__ */ Ye(pr);
102
+ const ya = /* @__PURE__ */ Ye(Yr), wa = /* @__PURE__ */ Ye(pr), ba = /* @__PURE__ */ Ye(mr);
102
103
  Object.defineProperty(ve, "__esModule", { value: !0 });
103
- var Ca = Ur, F = wa, We = ba, B = Ma;
104
- function Sa(e) {
104
+ var Ma = qr, F = ya, We = wa, B = ba;
105
+ function Ca(e) {
105
106
  if (e && e.__esModule) return e;
106
107
  var t = /* @__PURE__ */ Object.create(null);
107
108
  return e && Object.keys(e).forEach(function(n) {
@@ -116,8 +117,8 @@ function Sa(e) {
116
117
  }
117
118
  }), t.default = e, Object.freeze(t);
118
119
  }
119
- var O = /* @__PURE__ */ Sa(Ca);
120
- function Pa({
120
+ var O = /* @__PURE__ */ Ca(Ma);
121
+ function Sa({
121
122
  basename: e,
122
123
  children: t,
123
124
  location: n = "/",
@@ -130,7 +131,7 @@ function Pa({
130
131
  hash: n.hash || "",
131
132
  state: n.state != null ? n.state : null,
132
133
  key: n.key || "default"
133
- }, i = qt();
134
+ }, i = Gt();
134
135
  return /* @__PURE__ */ O.createElement(B.Router, {
135
136
  basename: e,
136
137
  children: t,
@@ -141,7 +142,7 @@ function Pa({
141
142
  static: !0
142
143
  });
143
144
  }
144
- function ja({
145
+ function Pa({
145
146
  context: e,
146
147
  router: t,
147
148
  hydrate: n = !0,
@@ -150,7 +151,7 @@ function ja({
150
151
  t && e || (process.env.NODE_ENV !== "production" ? F.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : F.UNSAFE_invariant(!1));
151
152
  let o = {
152
153
  router: t,
153
- navigator: qt(),
154
+ navigator: Gt(),
154
155
  static: !0,
155
156
  staticContext: e,
156
157
  basename: e.basename || "/"
@@ -159,9 +160,9 @@ function ja({
159
160
  let l = {
160
161
  loaderData: e.loaderData,
161
162
  actionData: e.actionData,
162
- errors: Ea(e.errors)
163
+ errors: Ra(e.errors)
163
164
  };
164
- i = `window.__staticRouterHydrationData = JSON.parse(${Aa(JSON.stringify(JSON.stringify(l)))});`;
165
+ i = `window.__staticRouterHydrationData = JSON.parse(${ka(JSON.stringify(JSON.stringify(l)))});`;
165
166
  }
166
167
  let {
167
168
  state: u
@@ -185,7 +186,7 @@ function ja({
185
186
  future: {
186
187
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
187
188
  }
188
- }, /* @__PURE__ */ O.createElement(Ra, {
189
+ }, /* @__PURE__ */ O.createElement(ja, {
189
190
  routes: t.routes,
190
191
  future: t.future,
191
192
  state: u
@@ -197,14 +198,14 @@ function ja({
197
198
  }
198
199
  }) : null);
199
200
  }
200
- function Ra({
201
+ function ja({
201
202
  routes: e,
202
203
  future: t,
203
204
  state: n
204
205
  }) {
205
206
  return We.UNSAFE_useRoutesImpl(e, void 0, n, t);
206
207
  }
207
- function Ea(e) {
208
+ function Ra(e) {
208
209
  if (!e) return null;
209
210
  let t = Object.entries(e), n = {};
210
211
  for (let [r, o] of t)
@@ -222,10 +223,10 @@ function Ea(e) {
222
223
  } : n[r] = o;
223
224
  return n;
224
225
  }
225
- function qt() {
226
+ function Gt() {
226
227
  return {
227
- createHref: Ut,
228
- encodeLocation: Gt,
228
+ createHref: Ht,
229
+ encodeLocation: Ut,
229
230
  push(e) {
230
231
  throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
231
232
  },
@@ -243,13 +244,13 @@ function qt() {
243
244
  }
244
245
  };
245
246
  }
246
- function _a(e, t) {
247
+ function Ea(e, t) {
247
248
  return F.createStaticHandler(e, {
248
249
  ...t,
249
250
  mapRouteProperties: We.UNSAFE_mapRouteProperties
250
251
  });
251
252
  }
252
- function Na(e, t, n = {}) {
253
+ function _a(e, t, n = {}) {
253
254
  let r = {}, o = F.UNSAFE_convertRoutesToDataRoutes(e, We.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
254
255
  let l = r[u.route.id] || u.route;
255
256
  return {
@@ -312,8 +313,8 @@ function Na(e, t, n = {}) {
312
313
  revalidate() {
313
314
  throw i("revalidate");
314
315
  },
315
- createHref: Ut,
316
- encodeLocation: Gt,
316
+ createHref: Ht,
317
+ encodeLocation: Ut,
317
318
  getFetcher() {
318
319
  return F.IDLE_FETCHER;
319
320
  },
@@ -339,51 +340,51 @@ function Na(e, t, n = {}) {
339
340
  }
340
341
  };
341
342
  }
342
- function Ut(e) {
343
+ function Ht(e) {
343
344
  return typeof e == "string" ? e : B.createPath(e);
344
345
  }
345
- function Gt(e) {
346
+ function Ut(e) {
346
347
  let t = typeof e == "string" ? e : B.createPath(e);
347
348
  t = t.replace(/ $/, "%20");
348
- let n = Da.test(t) ? new URL(t) : new URL(t, "http://localhost");
349
+ let n = Na.test(t) ? new URL(t) : new URL(t, "http://localhost");
349
350
  return {
350
351
  pathname: n.pathname,
351
352
  search: n.search,
352
353
  hash: n.hash
353
354
  };
354
355
  }
355
- const Da = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ia = {
356
+ const Na = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Da = {
356
357
  "&": "\\u0026",
357
358
  ">": "\\u003e",
358
359
  "<": "\\u003c",
359
360
  "\u2028": "\\u2028",
360
361
  "\u2029": "\\u2029"
361
- }, ka = /[&><\u2028\u2029]/g;
362
- function Aa(e) {
363
- return e.replace(ka, (t) => Ia[t]);
362
+ }, Ia = /[&><\u2028\u2029]/g;
363
+ function ka(e) {
364
+ return e.replace(Ia, (t) => Da[t]);
364
365
  }
365
- ve.StaticRouter = Pa;
366
- var Oa = ve.StaticRouterProvider = ja;
367
- ve.createStaticHandler = _a;
368
- ve.createStaticRouter = Na;
369
- const Ta = ({
366
+ ve.StaticRouter = Sa;
367
+ var Aa = ve.StaticRouterProvider = Pa;
368
+ ve.createStaticHandler = Ea;
369
+ ve.createStaticRouter = _a;
370
+ const Oa = ({
370
371
  router: e,
371
372
  hydrate: t = !1
372
- }) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { children: /* @__PURE__ */ a.jsx(qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(mr, { router: e }) }) }) }), Fa = ({
373
+ }) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(jt, { children: /* @__PURE__ */ a.jsx(Qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(gr, { router: e }) }) }) }), Ta = ({
373
374
  router: e,
374
375
  context: t,
375
376
  helmetContext: n
376
- }) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { context: n, children: /* @__PURE__ */ a.jsx(Oa, { router: e, context: t }) }) });
377
- var T, Mt, La = (Mt = class extends Lt {
377
+ }) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(jt, { context: n, children: /* @__PURE__ */ a.jsx(Aa, { router: e, context: t }) }) });
378
+ var T, Ct, Fa = (Ct = class extends Kt {
378
379
  constructor(t = {}) {
379
380
  super();
380
381
  N(this, T);
381
382
  this.config = t, S(this, T, /* @__PURE__ */ new Map());
382
383
  }
383
384
  build(t, n, r) {
384
- const o = n.queryKey, s = n.queryHash ?? Kt(o, n);
385
+ const o = n.queryKey, s = n.queryHash ?? $t(o, n);
385
386
  let i = this.get(s);
386
- return i || (i = new ea({
387
+ return i || (i = new Zr({
387
388
  cache: this,
388
389
  queryKey: o,
389
390
  queryHash: s,
@@ -418,12 +419,12 @@ var T, Mt, La = (Mt = class extends Lt {
418
419
  find(t) {
419
420
  const n = { exact: !0, ...t };
420
421
  return this.getAll().find(
421
- (r) => pt(n, r)
422
+ (r) => mt(n, r)
422
423
  );
423
424
  }
424
425
  findAll(t = {}) {
425
426
  const n = this.getAll();
426
- return Object.keys(t).length > 0 ? n.filter((r) => pt(t, r)) : n;
427
+ return Object.keys(t).length > 0 ? n.filter((r) => mt(t, r)) : n;
427
428
  }
428
429
  notify(t) {
429
430
  E.batch(() => {
@@ -446,7 +447,7 @@ var T, Mt, La = (Mt = class extends Lt {
446
447
  });
447
448
  });
448
449
  }
449
- }, T = new WeakMap(), Mt), R, me, Ct, Ka = (Ct = class extends Lt {
450
+ }, T = new WeakMap(), Ct), R, me, St, La = (St = class extends Kt {
450
451
  constructor(t = {}) {
451
452
  super();
452
453
  N(this, R);
@@ -498,11 +499,11 @@ var T, Mt, La = (Mt = class extends Lt {
498
499
  find(t) {
499
500
  const n = { exact: !0, ...t };
500
501
  return this.getAll().find(
501
- (r) => mt(n, r)
502
+ (r) => gt(n, r)
502
503
  );
503
504
  }
504
505
  findAll(t = {}) {
505
- return this.getAll().filter((n) => mt(t, n));
506
+ return this.getAll().filter((n) => gt(t, n));
506
507
  }
507
508
  notify(t) {
508
509
  E.batch(() => {
@@ -519,17 +520,17 @@ var T, Mt, La = (Mt = class extends Lt {
519
520
  )
520
521
  );
521
522
  }
522
- }, R = new WeakMap(), me = new WeakMap(), Ct);
523
+ }, R = new WeakMap(), me = new WeakMap(), St);
523
524
  function Se(e) {
524
525
  var t;
525
526
  return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
526
527
  }
527
- function $a(e) {
528
+ function Ka(e) {
528
529
  return {
529
530
  onFetch: (t, n) => {
530
531
  const r = async () => {
531
- var x, M, I, Q, V;
532
- const o = t.options, s = (I = (M = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : M.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((V = t.state.data) == null ? void 0 : V.pageParams) || [], l = { pages: [], pageParams: [] };
532
+ var x, M, I, Q, Y;
533
+ const o = t.options, s = (I = (M = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : M.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((Y = t.state.data) == null ? void 0 : Y.pageParams) || [], l = { pages: [], pageParams: [] };
533
534
  let g = !1;
534
535
  const p = (C) => {
535
536
  Object.defineProperty(C, "signal", {
@@ -538,33 +539,33 @@ function $a(e) {
538
539
  g = !0;
539
540
  }), t.signal)
540
541
  });
541
- }, d = ta(t.options, t.fetchOptions), h = async (C, k, L) => {
542
+ }, d = ea(t.options, t.fetchOptions), h = async (C, k, L) => {
542
543
  if (g)
543
544
  return Promise.reject();
544
545
  if (k == null && C.pages.length)
545
546
  return Promise.resolve(C);
546
- const Y = {
547
+ const X = {
547
548
  queryKey: t.queryKey,
548
549
  pageParam: k,
549
550
  direction: L ? "backward" : "forward",
550
551
  meta: t.options.meta
551
552
  };
552
- p(Y);
553
+ p(X);
553
554
  const Z = await d(
554
- Y
555
- ), { maxPages: be } = t.options, X = L ? na : ra;
555
+ X
556
+ ), { maxPages: be } = t.options, W = L ? ta : na;
556
557
  return {
557
- pages: X(C.pages, Z, be),
558
- pageParams: X(C.pageParams, k, be)
558
+ pages: W(C.pages, Z, be),
559
+ pageParams: W(C.pageParams, k, be)
559
560
  };
560
561
  };
561
562
  let v;
562
563
  if (s && i.length) {
563
- const C = s === "backward", k = C ? Ba : wt, L = {
564
+ const C = s === "backward", k = C ? $a : bt, L = {
564
565
  pages: i,
565
566
  pageParams: u
566
- }, Y = k(o, L);
567
- v = await h(L, Y, C);
567
+ }, X = k(o, L);
568
+ v = await h(L, X, C);
568
569
  } else {
569
570
  v = await h(
570
571
  l,
@@ -572,7 +573,7 @@ function $a(e) {
572
573
  );
573
574
  const C = e ?? i.length;
574
575
  for (let k = 1; k < C; k++) {
575
- const L = wt(o, v);
576
+ const L = bt(o, v);
576
577
  v = await h(v, L);
577
578
  }
578
579
  }
@@ -594,7 +595,7 @@ function $a(e) {
594
595
  }
595
596
  };
596
597
  }
597
- function wt(e, { pages: t, pageParams: n }) {
598
+ function bt(e, { pages: t, pageParams: n }) {
598
599
  const r = t.length - 1;
599
600
  return e.getNextPageParam(
600
601
  t[r],
@@ -603,7 +604,7 @@ function wt(e, { pages: t, pageParams: n }) {
603
604
  n
604
605
  );
605
606
  }
606
- function Ba(e, { pages: t, pageParams: n }) {
607
+ function $a(e, { pages: t, pageParams: n }) {
607
608
  var r;
608
609
  return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
609
610
  e,
@@ -613,34 +614,34 @@ function Ba(e, { pages: t, pageParams: n }) {
613
614
  n
614
615
  );
615
616
  }
616
- var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
617
+ var w, G, H, ne, re, U, ae, oe, Pt, Ba = (Pt = class {
617
618
  constructor(e = {}) {
618
619
  N(this, w);
619
- N(this, U);
620
620
  N(this, G);
621
+ N(this, H);
621
622
  N(this, ne);
622
623
  N(this, re);
623
- N(this, H);
624
+ N(this, U);
624
625
  N(this, ae);
625
626
  N(this, oe);
626
- S(this, w, e.queryCache || new La()), S(this, U, e.mutationCache || new Ka()), S(this, G, e.defaultOptions || {}), S(this, ne, /* @__PURE__ */ new Map()), S(this, re, /* @__PURE__ */ new Map()), S(this, H, 0);
627
+ S(this, w, e.queryCache || new Fa()), S(this, G, e.mutationCache || new La()), S(this, H, e.defaultOptions || {}), S(this, ne, /* @__PURE__ */ new Map()), S(this, re, /* @__PURE__ */ new Map()), S(this, U, 0);
627
628
  }
628
629
  mount() {
629
- Ce(this, H)._++, f(this, H) === 1 && (S(this, ae, aa.subscribe(async (e) => {
630
+ Ce(this, U)._++, f(this, U) === 1 && (S(this, ae, ra.subscribe(async (e) => {
630
631
  e && (await this.resumePausedMutations(), f(this, w).onFocus());
631
- })), S(this, oe, gt.subscribe(async (e) => {
632
+ })), S(this, oe, vt.subscribe(async (e) => {
632
633
  e && (await this.resumePausedMutations(), f(this, w).onOnline());
633
634
  })));
634
635
  }
635
636
  unmount() {
636
637
  var e, t;
637
- Ce(this, H)._--, f(this, H) === 0 && ((e = f(this, ae)) == null || e.call(this), S(this, ae, void 0), (t = f(this, oe)) == null || t.call(this), S(this, oe, void 0));
638
+ Ce(this, U)._--, f(this, U) === 0 && ((e = f(this, ae)) == null || e.call(this), S(this, ae, void 0), (t = f(this, oe)) == null || t.call(this), S(this, oe, void 0));
638
639
  }
639
640
  isFetching(e) {
640
641
  return f(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
641
642
  }
642
643
  isMutating(e) {
643
- return f(this, U).findAll({ ...e, status: "pending" }).length;
644
+ return f(this, G).findAll({ ...e, status: "pending" }).length;
644
645
  }
645
646
  getQueryData(e) {
646
647
  var n;
@@ -653,7 +654,7 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
653
654
  return this.fetchQuery(e);
654
655
  {
655
656
  const n = this.defaultQueryOptions(e), r = f(this, w).build(this, n);
656
- return e.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
657
+ return e.revalidateIfStale && r.isStaleByTime(xt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
657
658
  }
658
659
  }
659
660
  getQueriesData(e) {
@@ -665,7 +666,7 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
665
666
  setQueryData(e, t, n) {
666
667
  const r = this.defaultQueryOptions({ queryKey: e }), o = f(this, w).get(
667
668
  r.queryHash
668
- ), s = o == null ? void 0 : o.state.data, i = oa(t, s);
669
+ ), s = o == null ? void 0 : o.state.data, i = aa(t, s);
669
670
  if (i !== void 0)
670
671
  return f(this, w).build(this, r).setData(i, { ...n, manual: !0 });
671
672
  }
@@ -735,35 +736,35 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
735
736
  t.retry === void 0 && (t.retry = !1);
736
737
  const n = f(this, w).build(this, t);
737
738
  return n.isStaleByTime(
738
- vt(t.staleTime, n)
739
+ xt(t.staleTime, n)
739
740
  ) ? n.fetch(t) : Promise.resolve(n.state.data);
740
741
  }
741
742
  prefetchQuery(e) {
742
743
  return this.fetchQuery(e).then($).catch($);
743
744
  }
744
745
  fetchInfiniteQuery(e) {
745
- return e.behavior = $a(e.pages), this.fetchQuery(e);
746
+ return e.behavior = Ka(e.pages), this.fetchQuery(e);
746
747
  }
747
748
  prefetchInfiniteQuery(e) {
748
749
  return this.fetchInfiniteQuery(e).then($).catch($);
749
750
  }
750
751
  resumePausedMutations() {
751
- return gt.isOnline() ? f(this, U).resumePausedMutations() : Promise.resolve();
752
+ return vt.isOnline() ? f(this, G).resumePausedMutations() : Promise.resolve();
752
753
  }
753
754
  getQueryCache() {
754
755
  return f(this, w);
755
756
  }
756
757
  getMutationCache() {
757
- return f(this, U);
758
+ return f(this, G);
758
759
  }
759
760
  getDefaultOptions() {
760
- return f(this, G);
761
+ return f(this, H);
761
762
  }
762
763
  setDefaultOptions(e) {
763
- S(this, G, e);
764
+ S(this, H, e);
764
765
  }
765
766
  setQueryDefaults(e, t) {
766
- f(this, ne).set(xt(e), {
767
+ f(this, ne).set(yt(e), {
767
768
  queryKey: e,
768
769
  defaultOptions: t
769
770
  });
@@ -772,11 +773,11 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
772
773
  const t = [...f(this, ne).values()];
773
774
  let n = {};
774
775
  return t.forEach((r) => {
775
- yt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
776
+ wt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
776
777
  }), n;
777
778
  }
778
779
  setMutationDefaults(e, t) {
779
- f(this, re).set(xt(e), {
780
+ f(this, re).set(yt(e), {
780
781
  mutationKey: e,
781
782
  defaultOptions: t
782
783
  });
@@ -785,42 +786,42 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
785
786
  const t = [...f(this, re).values()];
786
787
  let n = {};
787
788
  return t.forEach((r) => {
788
- yt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
789
+ wt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
789
790
  }), n;
790
791
  }
791
792
  defaultQueryOptions(e) {
792
793
  if (e._defaulted)
793
794
  return e;
794
795
  const t = {
795
- ...f(this, G).queries,
796
+ ...f(this, H).queries,
796
797
  ...this.getQueryDefaults(e.queryKey),
797
798
  ...e,
798
799
  _defaulted: !0
799
800
  };
800
- return t.queryHash || (t.queryHash = Kt(
801
+ return t.queryHash || (t.queryHash = $t(
801
802
  t.queryKey,
802
803
  t
803
- )), 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 === sa && (t.enabled = !1), t;
804
+ )), 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 === oa && (t.enabled = !1), t;
804
805
  }
805
806
  defaultMutationOptions(e) {
806
807
  return e != null && e._defaulted ? e : {
807
- ...f(this, G).mutations,
808
+ ...f(this, H).mutations,
808
809
  ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
809
810
  ...e,
810
811
  _defaulted: !0
811
812
  };
812
813
  }
813
814
  clear() {
814
- f(this, w).clear(), f(this, U).clear();
815
+ f(this, w).clear(), f(this, G).clear();
815
816
  }
816
- }, w = new WeakMap(), U = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), St);
817
- const qa = At(null), Be = {
817
+ }, w = new WeakMap(), G = new WeakMap(), H = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), U = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), Pt);
818
+ const Qa = Ot(null), $e = {
818
819
  didCatch: !1,
819
820
  error: null
820
821
  };
821
- class Ua extends Gr {
822
+ class qa extends Gr {
822
823
  constructor(t) {
823
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Be;
824
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = $e;
824
825
  }
825
826
  static getDerivedStateFromError(t) {
826
827
  return {
@@ -838,7 +839,7 @@ class Ua extends Gr {
838
839
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
839
840
  args: s,
840
841
  reason: "imperative-api"
841
- }), this.setState(Be);
842
+ }), this.setState($e);
842
843
  }
843
844
  }
844
845
  componentDidCatch(t, n) {
@@ -857,7 +858,7 @@ class Ua extends Gr {
857
858
  next: o,
858
859
  prev: t.resetKeys,
859
860
  reason: "keys"
860
- }), this.setState(Be);
861
+ }), this.setState($e);
861
862
  }
862
863
  }
863
864
  render() {
@@ -879,13 +880,13 @@ class Ua extends Gr {
879
880
  if (typeof n == "function")
880
881
  u = n(l);
881
882
  else if (r)
882
- u = ft(r, l);
883
+ u = pt(r, l);
883
884
  else if (o === null || Hr(o))
884
885
  u = o;
885
886
  else
886
887
  throw i;
887
888
  }
888
- return ft(qa.Provider, {
889
+ return pt(Qa.Provider, {
889
890
  value: {
890
891
  didCatch: s,
891
892
  error: i,
@@ -898,8 +899,8 @@ function Ga() {
898
899
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
899
900
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
900
901
  }
901
- const Ha = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", za = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Va = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ya = (e) => "initialize" in e && typeof e.initialize == "function", Xa = (e) => "getHead" in e && typeof e.getHead == "function", Wa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ja = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ht = new Qa();
902
- class Za {
902
+ const Ha = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Ua = (e) => "getRoutes" in e && typeof e.getRoutes == "function", za = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Va = (e) => "initialize" in e && typeof e.initialize == "function", Ya = (e) => "getHead" in e && typeof e.getHead == "function", Xa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Wa = (e) => "getIdentities" in e && typeof e.getIdentities == "function", zt = new Ba();
903
+ class Ja {
903
904
  constructor(t) {
904
905
  j(this, "plugins");
905
906
  j(this, "sidebars");
@@ -908,21 +909,19 @@ class Za {
908
909
  j(this, "page");
909
910
  j(this, "authentication");
910
911
  j(this, "navigationPlugins");
911
- j(this, "initialize", async ({
912
- navigate: t
913
- }) => {
912
+ j(this, "initialize", async () => {
914
913
  await Promise.all(
915
- this.plugins.filter(Ya).map((n) => {
916
- var r;
917
- return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: t });
914
+ this.plugins.filter(Va).map((t) => {
915
+ var n;
916
+ return (n = t.initialize) == null ? void 0 : n.call(t, this);
918
917
  })
919
918
  );
920
919
  });
921
920
  j(this, "invalidateCache", async (t) => {
922
- await Ht.invalidateQueries({ queryKey: t });
921
+ await zt.invalidateQueries({ queryKey: t });
923
922
  });
924
923
  j(this, "getApiIdentities", async () => (await Promise.all(
925
- this.plugins.filter(Ja).map((n) => n.getIdentities(this))
924
+ this.plugins.filter(Wa).map((n) => n.getIdentities(this))
926
925
  )).flat());
927
926
  j(this, "getPluginSidebar", async (t) => (await Promise.all(
928
927
  this.navigationPlugins.map(
@@ -938,26 +937,26 @@ class Za {
938
937
  const n = await this.authentication.getAccessToken();
939
938
  return t.headers.set("Authorization", `Bearer ${n}`), t;
940
939
  });
941
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(za), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
940
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Ua), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
942
941
  }
943
942
  }
944
- function eo({ error: e, resetErrorBoundary: t }) {
945
- return /* @__PURE__ */ a.jsx(Rt, { error: e });
943
+ function Za({ error: e, resetErrorBoundary: t }) {
944
+ return /* @__PURE__ */ a.jsx(Et, { error: e });
946
945
  }
947
946
  const Pe = globalThis;
948
947
  (!Pe.requestIdleCallback || !Pe.cancelIdleCallback) && (Pe.requestIdleCallback = (e) => setTimeout(e, 1), Pe.cancelIdleCallback = clearTimeout);
949
- var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp", "PageDown", "End"], no = [...to, ...zt], ro = {
950
- ltr: [...Ue, "ArrowRight"],
951
- rtl: [...Ue, "ArrowLeft"]
952
- }, ao = {
948
+ var qe = ["Enter", " "], eo = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], to = [...eo, ...Vt], no = {
949
+ ltr: [...qe, "ArrowRight"],
950
+ rtl: [...qe, "ArrowLeft"]
951
+ }, ro = {
953
952
  ltr: ["ArrowLeft"],
954
953
  rtl: ["ArrowRight"]
955
- }, xe = "Menu", [fe, oo, so] = Mr(xe), [J, Vt] = Et(xe, [
956
- so,
957
- _t,
958
- Bt
959
- ]), ye = _t(), Yt = Bt(), [Xt, z] = J(xe), [io, we] = J(xe), Wt = (e) => {
960
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d = He(s), h = kr(o);
954
+ }, xe = "Menu", [fe, ao, oo] = Mr(xe), [J, Yt] = _t(xe, [
955
+ oo,
956
+ Nt,
957
+ Qt
958
+ ]), ye = Nt(), Xt = Qt(), [Wt, V] = J(xe), [so, we] = J(xe), Jt = (e) => {
959
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d = Ue(s), h = kr(o);
961
960
  return c.useEffect(() => {
962
961
  const v = () => {
963
962
  p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
@@ -965,8 +964,8 @@ var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
965
964
  return document.addEventListener("keydown", v, { capture: !0 }), () => {
966
965
  document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
967
966
  };
968
- }, []), /* @__PURE__ */ a.jsx(Dt, { ...u, children: /* @__PURE__ */ a.jsx(
969
- Xt,
967
+ }, []), /* @__PURE__ */ a.jsx(It, { ...u, children: /* @__PURE__ */ a.jsx(
968
+ Wt,
970
969
  {
971
970
  scope: t,
972
971
  open: n,
@@ -974,7 +973,7 @@ var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
974
973
  content: l,
975
974
  onContentChange: g,
976
975
  children: /* @__PURE__ */ a.jsx(
977
- io,
976
+ so,
978
977
  {
979
978
  scope: t,
980
979
  onClose: c.useCallback(() => d(!1), [d]),
@@ -987,29 +986,29 @@ var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
987
986
  }
988
987
  ) });
989
988
  };
990
- Wt.displayName = xe;
991
- var co = "MenuAnchor", Je = c.forwardRef(
989
+ Jt.displayName = xe;
990
+ var io = "MenuAnchor", Je = c.forwardRef(
992
991
  (e, t) => {
993
992
  const { __scopeMenu: n, ...r } = e, o = ye(n);
994
993
  return /* @__PURE__ */ a.jsx(Cr, { ...o, ...r, ref: t });
995
994
  }
996
995
  );
997
- Je.displayName = co;
998
- var Ze = "MenuPortal", [uo, Jt] = J(Ze, {
996
+ Je.displayName = io;
997
+ var Ze = "MenuPortal", [co, Zt] = J(Ze, {
999
998
  forceMount: void 0
1000
- }), Zt = (e) => {
1001
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = z(Ze, t);
1002
- return /* @__PURE__ */ a.jsx(uo, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(ke, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Ar, { asChild: !0, container: o, children: r }) }) });
999
+ }), en = (e) => {
1000
+ const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = V(Ze, t);
1001
+ return /* @__PURE__ */ a.jsx(co, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Ar, { asChild: !0, container: o, children: r }) }) });
1003
1002
  };
1004
- Zt.displayName = Ze;
1005
- var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1003
+ en.displayName = Ze;
1004
+ var D = "MenuContent", [uo, et] = J(D), tn = c.forwardRef(
1006
1005
  (e, t) => {
1007
- const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu);
1008
- return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ho, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(fo, { ...o, ref: t }) }) }) });
1006
+ const n = Zt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(D, e.__scopeMenu), i = we(D, e.__scopeMenu);
1007
+ return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(lo, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ho, { ...o, ref: t }) }) }) });
1009
1008
  }
1010
- ), ho = c.forwardRef(
1009
+ ), lo = c.forwardRef(
1011
1010
  (e, t) => {
1012
- const n = z(D, e.__scopeMenu), r = c.useRef(null), o = ge(t, r);
1011
+ const n = V(D, e.__scopeMenu), r = c.useRef(null), o = ge(t, r);
1013
1012
  return c.useEffect(() => {
1014
1013
  const s = r.current;
1015
1014
  if (s) return Sr(s);
@@ -1030,8 +1029,8 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1030
1029
  }
1031
1030
  );
1032
1031
  }
1033
- ), fo = c.forwardRef((e, t) => {
1034
- const n = z(D, e.__scopeMenu);
1032
+ ), ho = c.forwardRef((e, t) => {
1033
+ const n = V(D, e.__scopeMenu);
1035
1034
  return /* @__PURE__ */ a.jsx(
1036
1035
  tt,
1037
1036
  {
@@ -1060,20 +1059,20 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1060
1059
  onDismiss: v,
1061
1060
  disableOutsideScroll: x,
1062
1061
  ...M
1063
- } = e, I = z(D, n), Q = we(D, n), V = ye(n), C = Yt(n), k = oo(n), [L, Y] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), X = c.useRef(0), Me = c.useRef(""), rr = c.useRef(0), Oe = c.useRef(null), it = c.useRef("right"), Te = c.useRef(0), ar = x ? Nr : c.Fragment, or = x ? { as: Dr, allowPinchZoom: !0 } : void 0, sr = (m) => {
1062
+ } = e, I = V(D, n), Q = we(D, n), Y = ye(n), C = Xt(n), k = ao(n), [L, X] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), W = c.useRef(0), Me = c.useRef(""), ar = c.useRef(0), Ae = c.useRef(null), it = c.useRef("right"), Oe = c.useRef(0), or = x ? Nr : c.Fragment, sr = x ? { as: Dr, allowPinchZoom: !0 } : void 0, ir = (m) => {
1064
1063
  var te, ut;
1065
- const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Fe = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Le = A.map((K) => K.textValue), ct = Po(Le, _, Fe), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
1064
+ const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Te = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Fe = A.map((K) => K.textValue), ct = So(Fe, _, Te), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
1066
1065
  (function K(lt) {
1067
- Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
1066
+ Me.current = lt, window.clearTimeout(W.current), lt !== "" && (W.current = window.setTimeout(() => K(""), 1e3));
1068
1067
  })(_), le && setTimeout(() => le.focus());
1069
1068
  };
1070
- c.useEffect(() => () => window.clearTimeout(X.current), []), Pr();
1069
+ c.useEffect(() => () => window.clearTimeout(W.current), []), Pr();
1071
1070
  const ee = c.useCallback((m) => {
1072
1071
  var A, q;
1073
- return it.current === ((A = Oe.current) == null ? void 0 : A.side) && Ro(m, (q = Oe.current) == null ? void 0 : q.area);
1072
+ return it.current === ((A = Ae.current) == null ? void 0 : A.side) && jo(m, (q = Ae.current) == null ? void 0 : q.area);
1074
1073
  }, []);
1075
1074
  return /* @__PURE__ */ a.jsx(
1076
- lo,
1075
+ uo,
1077
1076
  {
1078
1077
  scope: n,
1079
1078
  searchRef: Me,
@@ -1086,7 +1085,7 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1086
1085
  onItemLeave: c.useCallback(
1087
1086
  (m) => {
1088
1087
  var _;
1089
- ee(m) || ((_ = Z.current) == null || _.focus(), Y(null));
1088
+ ee(m) || ((_ = Z.current) == null || _.focus(), X(null));
1090
1089
  },
1091
1090
  [ee]
1092
1091
  ),
@@ -1096,11 +1095,11 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1096
1095
  },
1097
1096
  [ee]
1098
1097
  ),
1099
- pointerGraceTimerRef: rr,
1098
+ pointerGraceTimerRef: ar,
1100
1099
  onPointerGraceIntentChange: c.useCallback((m) => {
1101
- Oe.current = m;
1100
+ Ae.current = m;
1102
1101
  }, []),
1103
- children: /* @__PURE__ */ a.jsx(ar, { ...or, children: /* @__PURE__ */ a.jsx(
1102
+ children: /* @__PURE__ */ a.jsx(or, { ...sr, children: /* @__PURE__ */ a.jsx(
1104
1103
  jr,
1105
1104
  {
1106
1105
  asChild: !0,
@@ -1121,7 +1120,7 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1121
1120
  onInteractOutside: h,
1122
1121
  onDismiss: v,
1123
1122
  children: /* @__PURE__ */ a.jsx(
1124
- da,
1123
+ la,
1125
1124
  {
1126
1125
  asChild: !0,
1127
1126
  ...C,
@@ -1129,7 +1128,7 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1129
1128
  orientation: "vertical",
1130
1129
  loop: r,
1131
1130
  currentTabStopId: L,
1132
- onCurrentTabStopIdChange: Y,
1131
+ onCurrentTabStopIdChange: X,
1133
1132
  onEntryFocus: y(l, (m) => {
1134
1133
  Q.isUsingKeyboardRef.current || m.preventDefault();
1135
1134
  }),
@@ -1139,32 +1138,32 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1139
1138
  {
1140
1139
  role: "menu",
1141
1140
  "aria-orientation": "vertical",
1142
- "data-state": xn(I.open),
1141
+ "data-state": yn(I.open),
1143
1142
  "data-radix-menu-content": "",
1144
1143
  dir: Q.dir,
1145
- ...V,
1144
+ ...Y,
1146
1145
  ...M,
1147
1146
  ref: be,
1148
1147
  style: { outline: "none", ...M.style },
1149
1148
  onKeyDown: y(M.onKeyDown, (m) => {
1150
- const A = m.target.closest("[data-radix-menu-content]") === m.currentTarget, q = m.ctrlKey || m.altKey || m.metaKey, Fe = m.key.length === 1;
1151
- A && (m.key === "Tab" && m.preventDefault(), !q && Fe && sr(m.key));
1152
- const Le = Z.current;
1153
- if (m.target !== Le || !no.includes(m.key)) return;
1149
+ const A = m.target.closest("[data-radix-menu-content]") === m.currentTarget, q = m.ctrlKey || m.altKey || m.metaKey, Te = m.key.length === 1;
1150
+ A && (m.key === "Tab" && m.preventDefault(), !q && Te && ir(m.key));
1151
+ const Fe = Z.current;
1152
+ if (m.target !== Fe || !to.includes(m.key)) return;
1154
1153
  m.preventDefault();
1155
1154
  const le = k().filter((te) => !te.disabled).map((te) => te.ref.current);
1156
- zt.includes(m.key) && le.reverse(), Co(le);
1155
+ Vt.includes(m.key) && le.reverse(), Mo(le);
1157
1156
  }),
1158
1157
  onBlur: y(e.onBlur, (m) => {
1159
- m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), Me.current = "");
1158
+ m.currentTarget.contains(m.target) || (window.clearTimeout(W.current), Me.current = "");
1160
1159
  }),
1161
1160
  onPointerMove: y(
1162
1161
  e.onPointerMove,
1163
1162
  pe((m) => {
1164
- const _ = m.target, A = Te.current !== m.clientX;
1163
+ const _ = m.target, A = Oe.current !== m.clientX;
1165
1164
  if (m.currentTarget.contains(_) && A) {
1166
- const q = m.clientX > Te.current ? "right" : "left";
1167
- it.current = q, Te.current = m.clientX;
1165
+ const q = m.clientX > Oe.current ? "right" : "left";
1166
+ it.current = q, Oe.current = m.clientX;
1168
1167
  }
1169
1168
  })
1170
1169
  )
@@ -1180,32 +1179,32 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1180
1179
  );
1181
1180
  }
1182
1181
  );
1183
- en.displayName = D;
1184
- var po = "MenuGroup", nt = c.forwardRef(
1182
+ tn.displayName = D;
1183
+ var fo = "MenuGroup", nt = c.forwardRef(
1185
1184
  (e, t) => {
1186
1185
  const { __scopeMenu: n, ...r } = e;
1187
1186
  return /* @__PURE__ */ a.jsx(ce.div, { role: "group", ...r, ref: t });
1188
1187
  }
1189
1188
  );
1190
- nt.displayName = po;
1191
- var mo = "MenuLabel", tn = c.forwardRef(
1189
+ nt.displayName = fo;
1190
+ var po = "MenuLabel", nn = c.forwardRef(
1192
1191
  (e, t) => {
1193
1192
  const { __scopeMenu: n, ...r } = e;
1194
1193
  return /* @__PURE__ */ a.jsx(ce.div, { ...r, ref: t });
1195
1194
  }
1196
1195
  );
1197
- tn.displayName = mo;
1198
- var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
1196
+ nn.displayName = po;
1197
+ var Ee = "MenuItem", Mt = "menu.itemSelect", ke = c.forwardRef(
1199
1198
  (e, t) => {
1200
- const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(_e, e.__scopeMenu), u = et(_e, e.__scopeMenu), l = ge(t, s), g = c.useRef(!1), p = () => {
1199
+ const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(Ee, e.__scopeMenu), u = et(Ee, e.__scopeMenu), l = ge(t, s), g = c.useRef(!1), p = () => {
1201
1200
  const d = s.current;
1202
1201
  if (!n && d) {
1203
- const h = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
1204
- d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Ir(d, h), h.defaultPrevented ? g.current = !1 : i.onClose();
1202
+ const h = new CustomEvent(Mt, { bubbles: !0, cancelable: !0 });
1203
+ d.addEventListener(Mt, (v) => r == null ? void 0 : r(v), { once: !0 }), Ir(d, h), h.defaultPrevented ? g.current = !1 : i.onClose();
1205
1204
  }
1206
1205
  };
1207
1206
  return /* @__PURE__ */ a.jsx(
1208
- nn,
1207
+ rn,
1209
1208
  {
1210
1209
  ...o,
1211
1210
  ref: l,
@@ -1221,16 +1220,16 @@ var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
1221
1220
  }),
1222
1221
  onKeyDown: y(e.onKeyDown, (d) => {
1223
1222
  const h = u.searchRef.current !== "";
1224
- n || h && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
1223
+ n || h && d.key === " " || qe.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
1225
1224
  })
1226
1225
  }
1227
1226
  );
1228
1227
  }
1229
1228
  );
1230
- Ae.displayName = _e;
1231
- var nn = c.forwardRef(
1229
+ ke.displayName = Ee;
1230
+ var rn = c.forwardRef(
1232
1231
  (e, t) => {
1233
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(_e, n), u = Yt(n), l = c.useRef(null), g = ge(t, l), [p, d] = c.useState(!1), [h, v] = c.useState("");
1232
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(Ee, n), u = Xt(n), l = c.useRef(null), g = ge(t, l), [p, d] = c.useState(!1), [h, v] = c.useState("");
1234
1233
  return c.useEffect(() => {
1235
1234
  const x = l.current;
1236
1235
  x && v((x.textContent ?? "").trim());
@@ -1240,7 +1239,7 @@ var nn = c.forwardRef(
1240
1239
  scope: n,
1241
1240
  disabled: r,
1242
1241
  textValue: o ?? h,
1243
- children: /* @__PURE__ */ a.jsx(ha, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ a.jsx(
1242
+ children: /* @__PURE__ */ a.jsx(da, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ a.jsx(
1244
1243
  ce.div,
1245
1244
  {
1246
1245
  role: "menuitem",
@@ -1266,43 +1265,43 @@ var nn = c.forwardRef(
1266
1265
  }
1267
1266
  );
1268
1267
  }
1269
- ), go = "MenuCheckboxItem", rn = c.forwardRef(
1268
+ ), mo = "MenuCheckboxItem", an = c.forwardRef(
1270
1269
  (e, t) => {
1271
1270
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
1272
- return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1273
- Ae,
1271
+ return /* @__PURE__ */ a.jsx(ln, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1272
+ ke,
1274
1273
  {
1275
1274
  role: "menuitemcheckbox",
1276
- "aria-checked": Ne(n) ? "mixed" : n,
1275
+ "aria-checked": _e(n) ? "mixed" : n,
1277
1276
  ...o,
1278
1277
  ref: t,
1279
1278
  "data-state": ot(n),
1280
1279
  onSelect: y(
1281
1280
  o.onSelect,
1282
- () => r == null ? void 0 : r(Ne(n) ? !0 : !n),
1281
+ () => r == null ? void 0 : r(_e(n) ? !0 : !n),
1283
1282
  { checkForDefaultPrevented: !1 }
1284
1283
  )
1285
1284
  }
1286
1285
  ) });
1287
1286
  }
1288
1287
  );
1289
- rn.displayName = go;
1290
- var an = "MenuRadioGroup", [vo, xo] = J(
1291
- an,
1288
+ an.displayName = mo;
1289
+ var on = "MenuRadioGroup", [go, vo] = J(
1290
+ on,
1292
1291
  { value: void 0, onValueChange: () => {
1293
1292
  } }
1294
- ), on = c.forwardRef(
1293
+ ), sn = c.forwardRef(
1295
1294
  (e, t) => {
1296
- const { value: n, onValueChange: r, ...o } = e, s = He(r);
1297
- return /* @__PURE__ */ a.jsx(vo, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(nt, { ...o, ref: t }) });
1295
+ const { value: n, onValueChange: r, ...o } = e, s = Ue(r);
1296
+ return /* @__PURE__ */ a.jsx(go, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(nt, { ...o, ref: t }) });
1298
1297
  }
1299
1298
  );
1300
- on.displayName = an;
1301
- var sn = "MenuRadioItem", cn = c.forwardRef(
1299
+ sn.displayName = on;
1300
+ var cn = "MenuRadioItem", un = c.forwardRef(
1302
1301
  (e, t) => {
1303
- const { value: n, ...r } = e, o = xo(sn, e.__scopeMenu), s = n === o.value;
1304
- return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1305
- Ae,
1302
+ const { value: n, ...r } = e, o = vo(cn, e.__scopeMenu), s = n === o.value;
1303
+ return /* @__PURE__ */ a.jsx(ln, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1304
+ ke,
1306
1305
  {
1307
1306
  role: "menuitemradio",
1308
1307
  "aria-checked": s,
@@ -1321,17 +1320,17 @@ var sn = "MenuRadioItem", cn = c.forwardRef(
1321
1320
  ) });
1322
1321
  }
1323
1322
  );
1324
- cn.displayName = sn;
1325
- var rt = "MenuItemIndicator", [un, yo] = J(
1323
+ un.displayName = cn;
1324
+ var rt = "MenuItemIndicator", [ln, xo] = J(
1326
1325
  rt,
1327
1326
  { checked: !1 }
1328
- ), ln = c.forwardRef(
1327
+ ), dn = c.forwardRef(
1329
1328
  (e, t) => {
1330
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = yo(rt, n);
1329
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = xo(rt, n);
1331
1330
  return /* @__PURE__ */ a.jsx(
1332
- ke,
1331
+ Ie,
1333
1332
  {
1334
- present: r || Ne(s.checked) || s.checked === !0,
1333
+ present: r || _e(s.checked) || s.checked === !0,
1335
1334
  children: /* @__PURE__ */ a.jsx(
1336
1335
  ce.span,
1337
1336
  {
@@ -1344,8 +1343,8 @@ var rt = "MenuItemIndicator", [un, yo] = J(
1344
1343
  );
1345
1344
  }
1346
1345
  );
1347
- ln.displayName = rt;
1348
- var wo = "MenuSeparator", dn = c.forwardRef(
1346
+ dn.displayName = rt;
1347
+ var yo = "MenuSeparator", hn = c.forwardRef(
1349
1348
  (e, t) => {
1350
1349
  const { __scopeMenu: n, ...r } = e;
1351
1350
  return /* @__PURE__ */ a.jsx(
@@ -1359,18 +1358,18 @@ var wo = "MenuSeparator", dn = c.forwardRef(
1359
1358
  );
1360
1359
  }
1361
1360
  );
1362
- dn.displayName = wo;
1363
- var bo = "MenuArrow", hn = c.forwardRef(
1361
+ hn.displayName = yo;
1362
+ var wo = "MenuArrow", fn = c.forwardRef(
1364
1363
  (e, t) => {
1365
1364
  const { __scopeMenu: n, ...r } = e, o = ye(n);
1366
1365
  return /* @__PURE__ */ a.jsx(_r, { ...o, ...r, ref: t });
1367
1366
  }
1368
1367
  );
1369
- hn.displayName = bo;
1370
- var at = "MenuSub", [Mo, fn] = J(at), pn = (e) => {
1371
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = z(at, t), i = ye(t), [u, l] = c.useState(null), [g, p] = c.useState(null), d = He(o);
1372
- return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(Dt, { ...i, children: /* @__PURE__ */ a.jsx(
1373
- Xt,
1368
+ fn.displayName = wo;
1369
+ var at = "MenuSub", [bo, pn] = J(at), mn = (e) => {
1370
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = V(at, t), i = ye(t), [u, l] = c.useState(null), [g, p] = c.useState(null), d = Ue(o);
1371
+ return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(It, { ...i, children: /* @__PURE__ */ a.jsx(
1372
+ Wt,
1374
1373
  {
1375
1374
  scope: t,
1376
1375
  open: r,
@@ -1378,11 +1377,11 @@ var at = "MenuSub", [Mo, fn] = J(at), pn = (e) => {
1378
1377
  content: g,
1379
1378
  onContentChange: p,
1380
1379
  children: /* @__PURE__ */ a.jsx(
1381
- Mo,
1380
+ bo,
1382
1381
  {
1383
1382
  scope: t,
1384
- contentId: Ee(),
1385
- triggerId: Ee(),
1383
+ contentId: Re(),
1384
+ triggerId: Re(),
1386
1385
  trigger: u,
1387
1386
  onTriggerChange: l,
1388
1387
  children: n
@@ -1391,10 +1390,10 @@ var at = "MenuSub", [Mo, fn] = J(at), pn = (e) => {
1391
1390
  }
1392
1391
  ) });
1393
1392
  };
1394
- pn.displayName = at;
1395
- var de = "MenuSubTrigger", mn = c.forwardRef(
1393
+ mn.displayName = at;
1394
+ var de = "MenuSubTrigger", gn = c.forwardRef(
1396
1395
  (e, t) => {
1397
- const n = z(de, e.__scopeMenu), r = we(de, e.__scopeMenu), o = fn(de, e.__scopeMenu), s = et(de, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: l } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
1396
+ const n = V(de, e.__scopeMenu), r = we(de, e.__scopeMenu), o = pn(de, e.__scopeMenu), s = et(de, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: l } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
1398
1397
  i.current && window.clearTimeout(i.current), i.current = null;
1399
1398
  }, []);
1400
1399
  return c.useEffect(() => p, [p]), c.useEffect(() => {
@@ -1403,15 +1402,15 @@ var de = "MenuSubTrigger", mn = c.forwardRef(
1403
1402
  window.clearTimeout(d), l(null);
1404
1403
  };
1405
1404
  }, [u, l]), /* @__PURE__ */ a.jsx(Je, { asChild: !0, ...g, children: /* @__PURE__ */ a.jsx(
1406
- nn,
1405
+ rn,
1407
1406
  {
1408
1407
  id: o.triggerId,
1409
1408
  "aria-haspopup": "menu",
1410
1409
  "aria-expanded": n.open,
1411
1410
  "aria-controls": o.contentId,
1412
- "data-state": xn(n.open),
1411
+ "data-state": yn(n.open),
1413
1412
  ...e,
1414
- ref: Nt(t, o.onTriggerChange),
1413
+ ref: Dt(t, o.onTriggerChange),
1415
1414
  onClick: (d) => {
1416
1415
  var h;
1417
1416
  (h = e.onClick) == null || h.call(e, d), !(e.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
@@ -1431,16 +1430,16 @@ var de = "MenuSubTrigger", mn = c.forwardRef(
1431
1430
  p();
1432
1431
  const h = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1433
1432
  if (h) {
1434
- const M = (x = n.content) == null ? void 0 : x.dataset.side, I = M === "right", Q = I ? -5 : 5, V = h[I ? "left" : "right"], C = h[I ? "right" : "left"];
1433
+ const M = (x = n.content) == null ? void 0 : x.dataset.side, I = M === "right", Q = I ? -5 : 5, Y = h[I ? "left" : "right"], C = h[I ? "right" : "left"];
1435
1434
  s.onPointerGraceIntentChange({
1436
1435
  area: [
1437
1436
  // Apply a bleed on clientX to ensure that our exit point is
1438
1437
  // consistently within polygon bounds
1439
1438
  { x: d.clientX + Q, y: d.clientY },
1440
- { x: V, y: h.top },
1439
+ { x: Y, y: h.top },
1441
1440
  { x: C, y: h.top },
1442
1441
  { x: C, y: h.bottom },
1443
- { x: V, y: h.bottom }
1442
+ { x: Y, y: h.bottom }
1444
1443
  ],
1445
1444
  side: M
1446
1445
  }), window.clearTimeout(u.current), u.current = window.setTimeout(
@@ -1456,17 +1455,17 @@ var de = "MenuSubTrigger", mn = c.forwardRef(
1456
1455
  onKeyDown: y(e.onKeyDown, (d) => {
1457
1456
  var v;
1458
1457
  const h = s.searchRef.current !== "";
1459
- e.disabled || h && d.key === " " || ro[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1458
+ e.disabled || h && d.key === " " || no[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1460
1459
  })
1461
1460
  }
1462
1461
  ) });
1463
1462
  }
1464
1463
  );
1465
- mn.displayName = de;
1466
- var gn = "MenuSubContent", vn = c.forwardRef(
1464
+ gn.displayName = de;
1465
+ var vn = "MenuSubContent", xn = c.forwardRef(
1467
1466
  (e, t) => {
1468
- const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu), u = fn(gn, e.__scopeMenu), l = c.useRef(null), g = ge(t, l);
1469
- return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1467
+ const n = Zt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(D, e.__scopeMenu), i = we(D, e.__scopeMenu), u = pn(vn, e.__scopeMenu), l = c.useRef(null), g = ge(t, l);
1468
+ return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1470
1469
  tt,
1471
1470
  {
1472
1471
  id: u.contentId,
@@ -1491,41 +1490,41 @@ var gn = "MenuSubContent", vn = c.forwardRef(
1491
1490
  }),
1492
1491
  onKeyDown: y(e.onKeyDown, (p) => {
1493
1492
  var v;
1494
- const d = p.currentTarget.contains(p.target), h = ao[i.dir].includes(p.key);
1493
+ const d = p.currentTarget.contains(p.target), h = ro[i.dir].includes(p.key);
1495
1494
  d && h && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
1496
1495
  })
1497
1496
  }
1498
1497
  ) }) }) });
1499
1498
  }
1500
1499
  );
1501
- vn.displayName = gn;
1502
- function xn(e) {
1500
+ xn.displayName = vn;
1501
+ function yn(e) {
1503
1502
  return e ? "open" : "closed";
1504
1503
  }
1505
- function Ne(e) {
1504
+ function _e(e) {
1506
1505
  return e === "indeterminate";
1507
1506
  }
1508
1507
  function ot(e) {
1509
- return Ne(e) ? "indeterminate" : e ? "checked" : "unchecked";
1508
+ return _e(e) ? "indeterminate" : e ? "checked" : "unchecked";
1510
1509
  }
1511
- function Co(e) {
1510
+ function Mo(e) {
1512
1511
  const t = document.activeElement;
1513
1512
  for (const n of e)
1514
1513
  if (n === t || (n.focus(), document.activeElement !== t)) return;
1515
1514
  }
1516
- function So(e, t) {
1515
+ function Co(e, t) {
1517
1516
  return e.map((n, r) => e[(t + r) % e.length]);
1518
1517
  }
1519
- function Po(e, t, n) {
1518
+ function So(e, t, n) {
1520
1519
  const o = t.length > 1 && Array.from(t).every((g) => g === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1521
- let i = So(e, Math.max(s, 0));
1520
+ let i = Co(e, Math.max(s, 0));
1522
1521
  o.length === 1 && (i = i.filter((g) => g !== n));
1523
1522
  const l = i.find(
1524
1523
  (g) => g.toLowerCase().startsWith(o.toLowerCase())
1525
1524
  );
1526
1525
  return l !== n ? l : void 0;
1527
1526
  }
1528
- function jo(e, t) {
1527
+ function Po(e, t) {
1529
1528
  const { x: n, y: r } = e;
1530
1529
  let o = !1;
1531
1530
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -1534,18 +1533,18 @@ function jo(e, t) {
1534
1533
  }
1535
1534
  return o;
1536
1535
  }
1537
- function Ro(e, t) {
1536
+ function jo(e, t) {
1538
1537
  if (!t) return !1;
1539
1538
  const n = { x: e.clientX, y: e.clientY };
1540
- return jo(n, t);
1539
+ return Po(n, t);
1541
1540
  }
1542
1541
  function pe(e) {
1543
1542
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1544
1543
  }
1545
- var Eo = Wt, _o = Je, No = Zt, Do = en, Io = nt, ko = tn, Ao = Ae, Oo = rn, To = on, Fo = cn, Lo = ln, Ko = dn, $o = hn, Bo = pn, Qo = mn, qo = vn, st = "DropdownMenu", [Uo, Gs] = Et(
1544
+ var Ro = Jt, Eo = Je, _o = en, No = tn, Do = nt, Io = nn, ko = ke, Ao = an, Oo = sn, To = un, Fo = dn, Lo = hn, Ko = fn, $o = mn, Bo = gn, Qo = xn, st = "DropdownMenu", [qo, Hs] = _t(
1546
1545
  st,
1547
- [Vt]
1548
- ), P = Vt(), [Go, yn] = Uo(st), wn = (e) => {
1546
+ [Yt]
1547
+ ), P = Yt(), [Go, wn] = qo(st), bn = (e) => {
1549
1548
  const {
1550
1549
  __scopeDropdownMenu: t,
1551
1550
  children: n,
@@ -1554,7 +1553,7 @@ var Eo = Wt, _o = Je, No = Zt, Do = en, Io = nt, ko = tn, Ao = Ae, Oo = rn, To =
1554
1553
  defaultOpen: s,
1555
1554
  onOpenChange: i,
1556
1555
  modal: u = !0
1557
- } = e, l = P(t), g = c.useRef(null), [p = !1, d] = It({
1556
+ } = e, l = P(t), g = c.useRef(null), [p = !1, d] = kt({
1558
1557
  prop: o,
1559
1558
  defaultProp: s,
1560
1559
  onChange: i
@@ -1563,22 +1562,22 @@ var Eo = Wt, _o = Je, No = Zt, Do = en, Io = nt, ko = tn, Ao = Ae, Oo = rn, To =
1563
1562
  Go,
1564
1563
  {
1565
1564
  scope: t,
1566
- triggerId: Ee(),
1565
+ triggerId: Re(),
1567
1566
  triggerRef: g,
1568
- contentId: Ee(),
1567
+ contentId: Re(),
1569
1568
  open: p,
1570
1569
  onOpenChange: d,
1571
1570
  onOpenToggle: c.useCallback(() => d((h) => !h), [d]),
1572
1571
  modal: u,
1573
- children: /* @__PURE__ */ a.jsx(Eo, { ...l, open: p, onOpenChange: d, dir: r, modal: u, children: n })
1572
+ children: /* @__PURE__ */ a.jsx(Ro, { ...l, open: p, onOpenChange: d, dir: r, modal: u, children: n })
1574
1573
  }
1575
1574
  );
1576
1575
  };
1577
- wn.displayName = st;
1578
- var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
1576
+ bn.displayName = st;
1577
+ var Mn = "DropdownMenuTrigger", Cn = c.forwardRef(
1579
1578
  (e, t) => {
1580
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = yn(bn, n), i = P(n);
1581
- return /* @__PURE__ */ a.jsx(_o, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1579
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = wn(Mn, n), i = P(n);
1580
+ return /* @__PURE__ */ a.jsx(Eo, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1582
1581
  ce.button,
1583
1582
  {
1584
1583
  type: "button",
@@ -1590,7 +1589,7 @@ var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
1590
1589
  "data-disabled": r ? "" : void 0,
1591
1590
  disabled: r,
1592
1591
  ...o,
1593
- ref: Nt(t, s.triggerRef),
1592
+ ref: Dt(t, s.triggerRef),
1594
1593
  onPointerDown: y(e.onPointerDown, (u) => {
1595
1594
  !r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
1596
1595
  }),
@@ -1601,17 +1600,17 @@ var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
1601
1600
  ) });
1602
1601
  }
1603
1602
  );
1604
- Mn.displayName = bn;
1605
- var Ho = "DropdownMenuPortal", Cn = (e) => {
1603
+ Cn.displayName = Mn;
1604
+ var Ho = "DropdownMenuPortal", Sn = (e) => {
1606
1605
  const { __scopeDropdownMenu: t, ...n } = e, r = P(t);
1607
- return /* @__PURE__ */ a.jsx(No, { ...r, ...n });
1606
+ return /* @__PURE__ */ a.jsx(_o, { ...r, ...n });
1608
1607
  };
1609
- Cn.displayName = Ho;
1610
- var Sn = "DropdownMenuContent", Pn = c.forwardRef(
1608
+ Sn.displayName = Ho;
1609
+ var Pn = "DropdownMenuContent", jn = c.forwardRef(
1611
1610
  (e, t) => {
1612
- const { __scopeDropdownMenu: n, ...r } = e, o = yn(Sn, n), s = P(n), i = c.useRef(!1);
1611
+ const { __scopeDropdownMenu: n, ...r } = e, o = wn(Pn, n), s = P(n), i = c.useRef(!1);
1613
1612
  return /* @__PURE__ */ a.jsx(
1614
- Do,
1613
+ No,
1615
1614
  {
1616
1615
  id: o.contentId,
1617
1616
  "aria-labelledby": o.triggerId,
@@ -1638,76 +1637,76 @@ var Sn = "DropdownMenuContent", Pn = c.forwardRef(
1638
1637
  );
1639
1638
  }
1640
1639
  );
1641
- Pn.displayName = Sn;
1642
- var zo = "DropdownMenuGroup", Vo = c.forwardRef(
1640
+ jn.displayName = Pn;
1641
+ var Uo = "DropdownMenuGroup", zo = c.forwardRef(
1643
1642
  (e, t) => {
1644
1643
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1645
- return /* @__PURE__ */ a.jsx(Io, { ...o, ...r, ref: t });
1644
+ return /* @__PURE__ */ a.jsx(Do, { ...o, ...r, ref: t });
1646
1645
  }
1647
1646
  );
1648
- Vo.displayName = zo;
1649
- var Yo = "DropdownMenuLabel", jn = c.forwardRef(
1647
+ zo.displayName = Uo;
1648
+ var Vo = "DropdownMenuLabel", Rn = c.forwardRef(
1650
1649
  (e, t) => {
1651
1650
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1652
- return /* @__PURE__ */ a.jsx(ko, { ...o, ...r, ref: t });
1651
+ return /* @__PURE__ */ a.jsx(Io, { ...o, ...r, ref: t });
1653
1652
  }
1654
1653
  );
1655
- jn.displayName = Yo;
1656
- var Xo = "DropdownMenuItem", Rn = c.forwardRef(
1654
+ Rn.displayName = Vo;
1655
+ var Yo = "DropdownMenuItem", En = c.forwardRef(
1657
1656
  (e, t) => {
1658
1657
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1659
- return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
1658
+ return /* @__PURE__ */ a.jsx(ko, { ...o, ...r, ref: t });
1660
1659
  }
1661
1660
  );
1662
- Rn.displayName = Xo;
1663
- var Wo = "DropdownMenuCheckboxItem", En = c.forwardRef((e, t) => {
1661
+ En.displayName = Yo;
1662
+ var Xo = "DropdownMenuCheckboxItem", _n = c.forwardRef((e, t) => {
1663
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1664
+ return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
1665
+ });
1666
+ _n.displayName = Xo;
1667
+ var Wo = "DropdownMenuRadioGroup", Jo = c.forwardRef((e, t) => {
1664
1668
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1665
1669
  return /* @__PURE__ */ a.jsx(Oo, { ...o, ...r, ref: t });
1666
1670
  });
1667
- En.displayName = Wo;
1668
- var Jo = "DropdownMenuRadioGroup", Zo = c.forwardRef((e, t) => {
1671
+ Jo.displayName = Wo;
1672
+ var Zo = "DropdownMenuRadioItem", Nn = c.forwardRef((e, t) => {
1669
1673
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1670
1674
  return /* @__PURE__ */ a.jsx(To, { ...o, ...r, ref: t });
1671
1675
  });
1672
- Zo.displayName = Jo;
1673
- var es = "DropdownMenuRadioItem", _n = c.forwardRef((e, t) => {
1676
+ Nn.displayName = Zo;
1677
+ var es = "DropdownMenuItemIndicator", Dn = c.forwardRef((e, t) => {
1674
1678
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1675
1679
  return /* @__PURE__ */ a.jsx(Fo, { ...o, ...r, ref: t });
1676
1680
  });
1677
- _n.displayName = es;
1678
- var ts = "DropdownMenuItemIndicator", Nn = c.forwardRef((e, t) => {
1681
+ Dn.displayName = es;
1682
+ var ts = "DropdownMenuSeparator", In = c.forwardRef((e, t) => {
1679
1683
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1680
1684
  return /* @__PURE__ */ a.jsx(Lo, { ...o, ...r, ref: t });
1681
1685
  });
1682
- Nn.displayName = ts;
1683
- var ns = "DropdownMenuSeparator", Dn = c.forwardRef((e, t) => {
1684
- const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1685
- return /* @__PURE__ */ a.jsx(Ko, { ...o, ...r, ref: t });
1686
- });
1687
- Dn.displayName = ns;
1688
- var rs = "DropdownMenuArrow", as = c.forwardRef(
1686
+ In.displayName = ts;
1687
+ var ns = "DropdownMenuArrow", rs = c.forwardRef(
1689
1688
  (e, t) => {
1690
1689
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1691
- return /* @__PURE__ */ a.jsx($o, { ...o, ...r, ref: t });
1690
+ return /* @__PURE__ */ a.jsx(Ko, { ...o, ...r, ref: t });
1692
1691
  }
1693
1692
  );
1694
- as.displayName = rs;
1695
- var os = (e) => {
1696
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = P(t), [u = !1, l] = It({
1693
+ rs.displayName = ns;
1694
+ var as = (e) => {
1695
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = P(t), [u = !1, l] = kt({
1697
1696
  prop: r,
1698
1697
  defaultProp: s,
1699
1698
  onChange: o
1700
1699
  });
1701
- return /* @__PURE__ */ a.jsx(Bo, { ...i, open: u, onOpenChange: l, children: n });
1702
- }, ss = "DropdownMenuSubTrigger", In = c.forwardRef((e, t) => {
1700
+ return /* @__PURE__ */ a.jsx($o, { ...i, open: u, onOpenChange: l, children: n });
1701
+ }, os = "DropdownMenuSubTrigger", kn = c.forwardRef((e, t) => {
1703
1702
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1704
- return /* @__PURE__ */ a.jsx(Qo, { ...o, ...r, ref: t });
1703
+ return /* @__PURE__ */ a.jsx(Bo, { ...o, ...r, ref: t });
1705
1704
  });
1706
- In.displayName = ss;
1707
- var is = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
1705
+ kn.displayName = os;
1706
+ var ss = "DropdownMenuSubContent", An = c.forwardRef((e, t) => {
1708
1707
  const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1709
1708
  return /* @__PURE__ */ a.jsx(
1710
- qo,
1709
+ Qo,
1711
1710
  {
1712
1711
  ...o,
1713
1712
  ...r,
@@ -1723,10 +1722,10 @@ var is = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
1723
1722
  }
1724
1723
  );
1725
1724
  });
1726
- kn.displayName = is;
1727
- var cs = wn, us = Mn, An = Cn, On = Pn, Tn = jn, Fn = Rn, Ln = En, Kn = _n, $n = Nn, Bn = Dn, ls = os, Qn = In, qn = kn;
1728
- const ds = cs, hs = us, fs = An, ps = ls, Un = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1729
- Qn,
1725
+ An.displayName = ss;
1726
+ var is = bn, cs = Cn, On = Sn, Tn = jn, Fn = Rn, Ln = En, Kn = _n, $n = Nn, Bn = Dn, Qn = In, us = as, qn = kn, Gn = An;
1727
+ const ls = is, ds = cs, hs = On, fs = us, Hn = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1728
+ qn,
1730
1729
  {
1731
1730
  ref: o,
1732
1731
  className: b(
@@ -1737,13 +1736,13 @@ const ds = cs, hs = us, fs = An, ps = ls, Un = c.forwardRef(({ className: e, ins
1737
1736
  ...r,
1738
1737
  children: [
1739
1738
  n,
1740
- /* @__PURE__ */ a.jsx(Qt, { className: "ml-auto h-4 w-4" })
1739
+ /* @__PURE__ */ a.jsx(qt, { className: "ml-auto h-4 w-4" })
1741
1740
  ]
1742
1741
  }
1743
1742
  ));
1744
- Un.displayName = Qn.displayName;
1745
- const Gn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1746
- qn,
1743
+ Hn.displayName = qn.displayName;
1744
+ const Un = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1745
+ Gn,
1747
1746
  {
1748
1747
  ref: n,
1749
1748
  className: b(
@@ -1753,9 +1752,9 @@ const Gn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1753
1752
  ...t
1754
1753
  }
1755
1754
  ));
1756
- Gn.displayName = qn.displayName;
1757
- const Hn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(An, { children: /* @__PURE__ */ a.jsx(
1758
- On,
1755
+ Un.displayName = Gn.displayName;
1756
+ const zn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(On, { children: /* @__PURE__ */ a.jsx(
1757
+ Tn,
1759
1758
  {
1760
1759
  ref: r,
1761
1760
  sideOffset: t,
@@ -1767,9 +1766,9 @@ const Hn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
1767
1766
  ...n
1768
1767
  }
1769
1768
  ) }));
1770
- Hn.displayName = On.displayName;
1771
- const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1772
- Fn,
1769
+ zn.displayName = Tn.displayName;
1770
+ const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1771
+ Ln,
1773
1772
  {
1774
1773
  ref: r,
1775
1774
  className: b(
@@ -1780,9 +1779,9 @@ const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1780
1779
  ...n
1781
1780
  }
1782
1781
  ));
1783
- zn.displayName = Fn.displayName;
1784
- const ms = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1785
- Ln,
1782
+ Vn.displayName = Ln.displayName;
1783
+ const ps = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1784
+ Kn,
1786
1785
  {
1787
1786
  ref: o,
1788
1787
  className: b(
@@ -1792,14 +1791,14 @@ const ms = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
1792
1791
  checked: n,
1793
1792
  ...r,
1794
1793
  children: [
1795
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(Tr, { className: "h-4 w-4" }) }) }),
1794
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Bn, { children: /* @__PURE__ */ a.jsx(Or, { className: "h-4 w-4" }) }) }),
1796
1795
  t
1797
1796
  ]
1798
1797
  }
1799
1798
  ));
1800
- ms.displayName = Ln.displayName;
1801
- const gs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1802
- Kn,
1799
+ ps.displayName = Kn.displayName;
1800
+ const ms = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1801
+ $n,
1803
1802
  {
1804
1803
  ref: r,
1805
1804
  className: b(
@@ -1808,14 +1807,14 @@ const gs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
1808
1807
  ),
1809
1808
  ...n,
1810
1809
  children: [
1811
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(pa, { className: "h-4 w-4 fill-current" }) }) }),
1810
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Bn, { children: /* @__PURE__ */ a.jsx(fa, { className: "h-4 w-4 fill-current" }) }) }),
1812
1811
  t
1813
1812
  ]
1814
1813
  }
1815
1814
  ));
1816
- gs.displayName = Kn.displayName;
1817
- const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1818
- Tn,
1815
+ ms.displayName = $n.displayName;
1816
+ const Yn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1817
+ Fn,
1819
1818
  {
1820
1819
  ref: r,
1821
1820
  className: b(
@@ -1826,19 +1825,19 @@ const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1826
1825
  ...n
1827
1826
  }
1828
1827
  ));
1829
- Vn.displayName = Tn.displayName;
1830
- const Yn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1831
- Bn,
1828
+ Yn.displayName = Fn.displayName;
1829
+ const Xn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1830
+ Qn,
1832
1831
  {
1833
1832
  ref: n,
1834
1833
  className: b("-mx-1 my-1 h-px bg-muted", e),
1835
1834
  ...t
1836
1835
  }
1837
1836
  ));
1838
- Yn.displayName = Bn.displayName;
1839
- const vs = () => {
1840
- const e = Ie(), [t, n] = ie(!1), r = Ot(() => n(!1), []);
1841
- W(() => {
1837
+ Xn.displayName = Qn.displayName;
1838
+ const gs = () => {
1839
+ const e = De(), [t, n] = ie(!1), r = Tt(() => n(!1), []);
1840
+ z(() => {
1842
1841
  if (t)
1843
1842
  return;
1844
1843
  function s(i) {
@@ -1848,7 +1847,7 @@ const vs = () => {
1848
1847
  window.removeEventListener("keydown", s);
1849
1848
  };
1850
1849
  }, [t, n]);
1851
- const o = e.plugins.find(Va);
1850
+ const o = e.plugins.find(za);
1852
1851
  return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1853
1852
  /* @__PURE__ */ a.jsxs(
1854
1853
  "button",
@@ -1858,24 +1857,24 @@ const vs = () => {
1858
1857
  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-40 sm:w-72",
1859
1858
  children: [
1860
1859
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
1861
- /* @__PURE__ */ a.jsx(va, { size: 14 }),
1860
+ /* @__PURE__ */ a.jsx(ga, { size: 14 }),
1862
1861
  "Search"
1863
1862
  ] }),
1864
1863
  /* @__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" })
1865
1864
  ]
1866
1865
  }
1867
1866
  ),
1868
- /* @__PURE__ */ a.jsx(Tt, { fallback: null, children: o.renderSearch({
1867
+ /* @__PURE__ */ a.jsx(Ft, { fallback: null, children: o.renderSearch({
1869
1868
  isOpen: t,
1870
1869
  onClose: r
1871
1870
  }) })
1872
1871
  ] }) : null;
1873
- }, xs = () => {
1874
- const { topNavigation: e } = Ie();
1872
+ }, vs = () => {
1873
+ const { topNavigation: e } = De();
1875
1874
  return e.length <= 1 ? null : /* @__PURE__ */ a.jsx("nav", { className: "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(
1876
1875
  je,
1877
1876
  {
1878
- className: ({ isActive: n }) => Fr(
1877
+ className: ({ isActive: n }) => Tr(
1879
1878
  "block py-3.5 font-medium -mb-px border-b-2",
1880
1879
  n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1881
1880
  ),
@@ -1883,17 +1882,19 @@ const vs = () => {
1883
1882
  children: t.label
1884
1883
  }
1885
1884
  ) }, t.label)) }) });
1886
- }, Xn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(ps, { children: [
1887
- /* @__PURE__ */ a.jsx(Un, { children: e.label }),
1888
- /* @__PURE__ */ a.jsx(fs, { children: /* @__PURE__ */ a.jsx(Gn, { children: e.children.map((t, n) => (
1885
+ }, Wn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(fs, { children: [
1886
+ /* @__PURE__ */ a.jsx(Hn, { children: e.label }),
1887
+ /* @__PURE__ */ a.jsx(hs, { children: /* @__PURE__ */ a.jsx(Un, { children: e.children.map((t, n) => (
1889
1888
  // eslint-disable-next-line react/no-array-index-key
1890
- /* @__PURE__ */ a.jsx(Xn, { item: t }, n)
1889
+ /* @__PURE__ */ a.jsx(Wn, { item: t }, n)
1891
1890
  )) }) })
1892
- ] }, e.label) : /* @__PURE__ */ a.jsx(Re, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(zn, { children: e.label }, e.label) }), Wn = Ft(function() {
1893
- const [t, n] = Lr(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = Or(), { pathname: i } = De(), u = Ie(), { page: l, plugins: g } = u, p = g.filter((h) => Ha(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Xn, { item: h }, h.label)), d = t ? ga : xa;
1891
+ ] }, e.label) : /* @__PURE__ */ a.jsx(He, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(Vn, { children: e.label }, e.label) }), Jn = Lt(function() {
1892
+ const t = ft(), [n, r] = Fr(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = ft();
1893
+ Ne();
1894
+ const u = De(), { page: l, plugins: g } = u, p = g.filter((h) => Ha(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Wn, { item: h }, h.label)), d = n ? ma : va;
1894
1895
  return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1895
1896
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1896
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Re, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1897
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(He, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1897
1898
  (l == null ? void 0 : l.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1898
1899
  /* @__PURE__ */ a.jsx(
1899
1900
  "img",
@@ -1901,7 +1902,7 @@ const vs = () => {
1901
1902
  src: l.logo.src.light,
1902
1903
  alt: l.logo.alt ?? l.pageTitle,
1903
1904
  style: { width: l.logo.width },
1904
- className: b("h-10", t && "hidden"),
1905
+ className: b("h-10", n && "hidden"),
1905
1906
  loading: "lazy"
1906
1907
  }
1907
1908
  ),
@@ -1911,7 +1912,7 @@ const vs = () => {
1911
1912
  src: l.logo.src.dark,
1912
1913
  alt: l.logo.alt ?? l.pageTitle,
1913
1914
  style: { width: l.logo.width },
1914
- className: b("h-10", !t && "hidden"),
1915
+ className: b("h-10", !n && "hidden"),
1915
1916
  loading: "lazy"
1916
1917
  }
1917
1918
  )
@@ -1919,23 +1920,14 @@ const vs = () => {
1919
1920
  /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1920
1921
  ] }) }) }),
1921
1922
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1922
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(vs, {}) }),
1923
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(gs, {}) }),
1923
1924
  /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1924
1925
  /* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
1925
- s && !r ? /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ a.jsx(
1926
- Re,
1927
- {
1928
- to: {
1929
- pathname: "/signin",
1930
- search: `?redirect=${encodeURIComponent(i)}`
1931
- },
1932
- children: "Login"
1933
- }
1934
- ) }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ds, { children: [
1935
- /* @__PURE__ */ a.jsx(hs, { asChild: !0, children: /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
1936
- /* @__PURE__ */ a.jsxs(Hn, { className: "w-56", children: [
1937
- /* @__PURE__ */ a.jsx(Vn, { children: "My Account" }),
1938
- /* @__PURE__ */ a.jsx(Yn, {}),
1926
+ i && !o ? /* @__PURE__ */ a.jsx(Be, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ls, { children: [
1927
+ /* @__PURE__ */ a.jsx(ds, { asChild: !0, children: /* @__PURE__ */ a.jsx(Be, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
1928
+ /* @__PURE__ */ a.jsxs(zn, { className: "w-56", children: [
1929
+ /* @__PURE__ */ a.jsx(Yn, { children: "My Account" }),
1930
+ /* @__PURE__ */ a.jsx(Xn, {}),
1939
1931
  p
1940
1932
  ] })
1941
1933
  ] }),
@@ -1943,9 +1935,9 @@ const vs = () => {
1943
1935
  "button",
1944
1936
  {
1945
1937
  type: "button",
1946
- "aria-label": t ? "Switch to light mode" : "Switch to dark mode",
1938
+ "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
1947
1939
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1948
- onClick: n,
1940
+ onClick: r,
1949
1941
  children: /* @__PURE__ */ a.jsx(d, { size: 18 })
1950
1942
  }
1951
1943
  ),
@@ -1953,71 +1945,68 @@ const vs = () => {
1953
1945
  ] })
1954
1946
  ] })
1955
1947
  ] }),
1956
- /* @__PURE__ */ a.jsx(xs, {})
1948
+ /* @__PURE__ */ a.jsx(vs, {})
1957
1949
  ] }) });
1958
- }), Jn = {
1959
- Header: Wn
1960
- }, ys = At(Jn), ws = ys.Provider, bs = (e) => {
1950
+ }), Zn = {
1951
+ Header: Jn
1952
+ }, xs = Ot(Zn), ys = xs.Provider, ws = (e) => {
1961
1953
  const [t, n] = ie(!1);
1962
- W(() => {
1954
+ z(() => {
1963
1955
  const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
1964
1956
  n(u);
1965
1957
  }, [t]);
1966
- const r = Ot(() => {
1958
+ const r = Tt(() => {
1967
1959
  const s = !t;
1968
1960
  document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
1969
1961
  }, [t]), o = [t, r];
1970
- return /* @__PURE__ */ a.jsx(Kr.Provider, { value: o, ...e });
1971
- }, Ms = ({
1962
+ return /* @__PURE__ */ a.jsx(Lr.Provider, { value: o, ...e });
1963
+ }, bs = ({
1972
1964
  children: e,
1973
1965
  context: t
1974
- }) => {
1975
- const n = gr();
1976
- return ia({
1977
- queryFn: async () => (await t.initialize({ navigate: n }), !0),
1978
- queryKey: ["zudoku-initialize"]
1979
- }), /* @__PURE__ */ a.jsx(ca.Provider, { value: t, children: e });
1980
- }, Cs = ({
1966
+ }) => (sa({
1967
+ queryFn: async () => (await t.initialize(), !0),
1968
+ queryKey: ["zudoku-initialize"]
1969
+ }), /* @__PURE__ */ a.jsx(ia.Provider, { value: t, children: e })), Ms = ({
1981
1970
  children: e,
1982
1971
  ...t
1983
1972
  }) => {
1984
1973
  var d, h;
1985
- const n = Ke(
1986
- () => ({ ...Jn, ...t.overrides }),
1974
+ const n = Le(
1975
+ () => ({ ...Zn, ...t.overrides }),
1987
1976
  [t.overrides]
1988
- ), r = Ke(() => {
1977
+ ), r = Le(() => {
1989
1978
  var x;
1990
1979
  return {
1991
- ...(t.plugins ?? []).filter(Wa).flatMap(
1980
+ ...(t.plugins ?? []).filter(Xa).flatMap(
1992
1981
  (M) => M.getMdxComponents ? [M.getMdxComponents()] : []
1993
1982
  ).reduce((M, I) => ({ ...M, ...I }), {}),
1994
- ...$r,
1983
+ ...Kr,
1995
1984
  ...(x = t.mdx) == null ? void 0 : x.components
1996
1985
  };
1997
- }, [(d = t.mdx) == null ? void 0 : d.components, t.plugins]), { stagger: o } = zr(qe), [s, i] = ie(!1), u = Ke(
1986
+ }, [(d = t.mdx) == null ? void 0 : d.components, t.plugins]), { stagger: o } = Ur(Qe), [s, i] = ie(!1), u = Le(
1998
1987
  () => s ? { stagger: !0 } : { stagger: o },
1999
1988
  [o, s]
2000
1989
  ), l = vr();
2001
- W(() => {
1990
+ z(() => {
2002
1991
  s || i(!0);
2003
1992
  }, [s, l.location]);
2004
- const [g] = ie(() => new Za(t)), p = (h = t.plugins) == null ? void 0 : h.filter(Xa).map((v, x) => {
1993
+ const [g] = ie(() => new Ja(t)), p = (h = t.plugins) == null ? void 0 : h.filter(Ya).map((v, x) => {
2005
1994
  var M;
2006
- return /* @__PURE__ */ a.jsx(Vr, { children: (M = v.getHead) == null ? void 0 : M.call(v) }, x);
1995
+ return /* @__PURE__ */ a.jsx(zr, { children: (M = v.getHead) == null ? void 0 : M.call(v) }, x);
2007
1996
  });
2008
- return /* @__PURE__ */ a.jsxs(ua, { client: Ht, children: [
1997
+ return /* @__PURE__ */ a.jsxs(ca, { client: zt, children: [
2009
1998
  /* @__PURE__ */ a.jsx(Ge, { children: p }),
2010
- /* @__PURE__ */ a.jsx(qe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(Ms, { context: g, children: /* @__PURE__ */ a.jsx(ur, { components: r, children: /* @__PURE__ */ a.jsx(bs, { children: /* @__PURE__ */ a.jsx(ws, { value: n, children: /* @__PURE__ */ a.jsx(yr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Br, { children: e ?? /* @__PURE__ */ a.jsx(jt, {}) }) }) }) }) }) }) })
1999
+ /* @__PURE__ */ a.jsx(Qe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(bs, { context: g, children: /* @__PURE__ */ a.jsx(lr, { components: r, children: /* @__PURE__ */ a.jsx(ws, { children: /* @__PURE__ */ a.jsx(ys, { value: n, children: /* @__PURE__ */ a.jsx(yr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx($r, { children: e ?? /* @__PURE__ */ a.jsx(Rt, {}) }) }) }) }) }) }) })
2011
2000
  ] });
2012
- }, Ss = Ft(Cs), Zn = (e) => /* @__PURE__ */ a.jsx(Ua, { FallbackComponent: eo, children: /* @__PURE__ */ a.jsx(Ss, { ...e }) });
2013
- Zn.displayName = "DevPortal";
2014
- const Ps = ({
2001
+ }, Cs = Lt(Ms), er = (e) => /* @__PURE__ */ a.jsx(qa, { FallbackComponent: Za, children: /* @__PURE__ */ a.jsx(Cs, { ...e }) });
2002
+ er.displayName = "DevPortal";
2003
+ const Ss = ({
2015
2004
  category: e,
2016
2005
  level: t
2017
2006
  }) => {
2018
2007
  var h;
2019
- const n = $t(), r = lr(e), [o, s] = ie(!1), i = e.collapsible ?? !0, u = e.collapsed ?? !0, l = !!(!i || !u || r), [g, p] = ie(l);
2020
- W(() => {
2008
+ const n = Bt(), r = dr(e), [o, s] = ie(!1), i = e.collapsible ?? !0, u = e.collapsed ?? !0, l = !!(!i || !u || r), [g, p] = ie(l);
2009
+ z(() => {
2021
2010
  r && p(!0);
2022
2011
  }, [r]);
2023
2012
  const d = i && /* @__PURE__ */ a.jsx(
@@ -2028,7 +2017,7 @@ const Ps = ({
2028
2017
  v.preventDefault(), p((x) => !x), s(!0);
2029
2018
  },
2030
2019
  children: /* @__PURE__ */ a.jsx(
2031
- Qt,
2020
+ qt,
2032
2021
  {
2033
2022
  size: 16,
2034
2023
  className: b(
@@ -2040,7 +2029,7 @@ const Ps = ({
2040
2029
  }
2041
2030
  );
2042
2031
  return /* @__PURE__ */ a.jsxs(
2043
- Wr,
2032
+ Xr,
2044
2033
  {
2045
2034
  className: b("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
2046
2035
  defaultOpen: l,
@@ -2048,7 +2037,7 @@ const Ps = ({
2048
2037
  onOpenChange: () => p(!0),
2049
2038
  children: [
2050
2039
  /* @__PURE__ */ a.jsx(
2051
- Jr,
2040
+ Wr,
2052
2041
  {
2053
2042
  className: b(
2054
2043
  "group text-start",
@@ -2076,7 +2065,7 @@ const Ps = ({
2076
2065
  }
2077
2066
  ),
2078
2067
  /* @__PURE__ */ a.jsx(
2079
- Zr,
2068
+ Jr,
2080
2069
  {
2081
2070
  className: b(
2082
2071
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
@@ -2084,7 +2073,7 @@ const Ps = ({
2084
2073
  "ms-[calc(var(--padding-nav-item)*1.125)]"
2085
2074
  ),
2086
2075
  children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
2087
- tr,
2076
+ nr,
2088
2077
  {
2089
2078
  level: t + 1,
2090
2079
  item: v
@@ -2096,7 +2085,7 @@ const Ps = ({
2096
2085
  ]
2097
2086
  }
2098
2087
  );
2099
- }, he = Qr(
2088
+ }, he = Br(
2100
2089
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
2101
2090
  {
2102
2091
  variants: {
@@ -2113,14 +2102,14 @@ const Ps = ({
2113
2102
  }
2114
2103
  }
2115
2104
  }
2116
- ), er = "data-anchor", tr = ({
2105
+ ), tr = "data-anchor", nr = ({
2117
2106
  item: e,
2118
2107
  level: t = 0
2119
2108
  }) => {
2120
- const n = $t(), { activeAnchor: r } = ze(), [o] = xr();
2109
+ const n = Bt(), { activeAnchor: r } = ze(), [o] = xr();
2121
2110
  switch (e.type) {
2122
2111
  case "category":
2123
- return /* @__PURE__ */ a.jsx(Ps, { category: e, level: t });
2112
+ return /* @__PURE__ */ a.jsx(Ss, { category: e, level: t });
2124
2113
  case "doc":
2125
2114
  return /* @__PURE__ */ a.jsx(
2126
2115
  je,
@@ -2129,16 +2118,16 @@ const Ps = ({
2129
2118
  to: Xe(n == null ? void 0 : n.id, e.id),
2130
2119
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2131
2120
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2132
- /* @__PURE__ */ a.jsx($e, { ...e.badge })
2121
+ /* @__PURE__ */ a.jsx(Ke, { ...e.badge })
2133
2122
  ] }) : e.label
2134
2123
  }
2135
2124
  );
2136
2125
  case "link":
2137
2126
  return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
2138
- dr,
2127
+ hr,
2139
2128
  {
2140
2129
  to: { hash: e.href, search: o.toString() },
2141
- [er]: e.href.slice(1),
2130
+ [tr]: e.href.slice(1),
2142
2131
  className: b(
2143
2132
  "flex gap-2.5 justify-between",
2144
2133
  t === 0 && "-mx-[--padding-nav-item]",
@@ -2148,7 +2137,7 @@ const Ps = ({
2148
2137
  ),
2149
2138
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2150
2139
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2151
- /* @__PURE__ */ a.jsx($e, { ...e.badge })
2140
+ /* @__PURE__ */ a.jsx(Ke, { ...e.badge })
2152
2141
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
2153
2142
  }
2154
2143
  ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
@@ -2165,7 +2154,7 @@ const Ps = ({
2165
2154
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
2166
2155
  /* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
2167
2156
  " ",
2168
- /* @__PURE__ */ a.jsx(ma, { className: "inline ml-1", size: 12 })
2157
+ /* @__PURE__ */ a.jsx(pa, { className: "inline ml-1", size: 12 })
2169
2158
  ] })
2170
2159
  ]
2171
2160
  }
@@ -2176,22 +2165,22 @@ const Ps = ({
2176
2165
  to: e.href,
2177
2166
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2178
2167
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2179
- /* @__PURE__ */ a.jsx($e, { ...e.badge })
2168
+ /* @__PURE__ */ a.jsx(Ke, { ...e.badge })
2180
2169
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
2181
2170
  }
2182
2171
  );
2183
2172
  }
2184
- }, js = (e, t = { block: "center" }) => {
2173
+ }, Ps = (e, t = { block: "center" }) => {
2185
2174
  if (!e) return;
2186
2175
  const n = e.getBoundingClientRect();
2187
2176
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
2188
- }, Rs = () => {
2189
- const e = De(), { setActiveAnchor: t } = ze();
2190
- W(() => {
2177
+ }, js = () => {
2178
+ const e = Ne(), { setActiveAnchor: t } = ze();
2179
+ z(() => {
2191
2180
  if (!e.hash) return;
2192
2181
  const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
2193
- const o = document.getElementById(n), s = document.querySelector(`[${er}="${n}"]`);
2194
- return o ? (o.scrollIntoView(), js(s), requestIdleCallback(() => t(n)), !0) : !1;
2182
+ const o = document.getElementById(n), s = document.querySelector(`[${tr}="${n}"]`);
2183
+ return o ? (o.scrollIntoView(), Ps(s), requestIdleCallback(() => t(n)), !0) : !1;
2195
2184
  };
2196
2185
  if (!r()) {
2197
2186
  const o = new MutationObserver((s, i) => {
@@ -2200,12 +2189,12 @@ const Ps = ({
2200
2189
  return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
2201
2190
  }
2202
2191
  }, [e.hash, t]);
2203
- }, Es = () => {
2204
- const e = De(), t = Ve(e.pathname);
2205
- W(() => {
2192
+ }, Rs = () => {
2193
+ const e = Ne(), t = Ve(e.pathname);
2194
+ z(() => {
2206
2195
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
2207
2196
  }, [e.pathname]);
2208
- }, nr = Yr(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
2197
+ }, rr = Vr(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
2209
2198
  "nav",
2210
2199
  {
2211
2200
  "data-navigation": String(n),
@@ -2219,40 +2208,42 @@ const Ps = ({
2219
2208
  children: e
2220
2209
  }
2221
2210
  ));
2222
- nr.displayName = "SidebarWrapper";
2223
- const _s = () => {
2224
- const e = Ve(null), t = la();
2211
+ rr.displayName = "SidebarWrapper";
2212
+ const Es = () => {
2213
+ const e = Ve(null), t = ua();
2225
2214
  return /* @__PURE__ */ a.jsxs(
2226
- nr,
2215
+ rr,
2227
2216
  {
2228
2217
  ref: e,
2229
2218
  pushMainContent: t.data.items.length > 0,
2230
2219
  children: [
2231
2220
  /* @__PURE__ */ a.jsx(se, { name: "zudoku-before-navigation" }),
2232
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(tr, { item: n }, n.label)),
2221
+ t.data.items.map((n) => /* @__PURE__ */ a.jsx(nr, { item: n }, n.label)),
2233
2222
  /* @__PURE__ */ a.jsx(se, { name: "zudoku-after-navigation" })
2234
2223
  ]
2235
2224
  }
2236
2225
  );
2237
- }, Ns = ({ children: e }) => {
2238
- const t = De(), { setActiveAnchor: n } = ze(), { meta: r } = Ie();
2239
- Rs(), Es();
2240
- const o = Ve(t.pathname);
2241
- return W(() => {
2242
- t.pathname !== o.current && n(""), o.current = t.pathname;
2226
+ }, _s = ({ children: e }) => {
2227
+ const t = Ne(), { setActiveAnchor: n } = ze(), { meta: r, authentication: o } = De();
2228
+ js(), Rs();
2229
+ const s = Ve(t.pathname);
2230
+ return z(() => {
2231
+ o != null && o.pageLoad && o.pageLoad();
2232
+ }, [o]), z(() => {
2233
+ t.pathname !== s.current && n(""), s.current = t.pathname;
2243
2234
  }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2244
2235
  !1,
2245
2236
  /* @__PURE__ */ a.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
2246
2237
  (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
2247
2238
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
2248
2239
  ] }),
2249
- /* @__PURE__ */ a.jsx(Wn, {}),
2240
+ /* @__PURE__ */ a.jsx(Jn, {}),
2250
2241
  /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
2251
- Tt,
2242
+ Ft,
2252
2243
  {
2253
- fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(fa, {}) }),
2244
+ fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(ha, {}) }),
2254
2245
  children: [
2255
- /* @__PURE__ */ a.jsx(_s, {}),
2246
+ /* @__PURE__ */ a.jsx(Es, {}),
2256
2247
  /* @__PURE__ */ a.jsxs(
2257
2248
  "main",
2258
2249
  {
@@ -2264,7 +2255,7 @@ const _s = () => {
2264
2255
  ),
2265
2256
  children: [
2266
2257
  /* @__PURE__ */ a.jsx(se, { name: "zudoku-before-content" }),
2267
- e ?? /* @__PURE__ */ a.jsx(jt, {}),
2258
+ e ?? /* @__PURE__ */ a.jsx(Rt, {}),
2268
2259
  /* @__PURE__ */ a.jsx(se, { name: "zudoku-after-content" })
2269
2260
  ]
2270
2261
  }
@@ -2273,7 +2264,7 @@ const _s = () => {
2273
2264
  }
2274
2265
  ) })
2275
2266
  ] });
2276
- }, Hs = hr, zs = qr, Vs = Zn, Ys = Ns, Xs = Re, Ws = wr, Js = ya, Zs = Ta, ei = Fa, ti = Qe, ni = Ge;
2267
+ }, Us = fr, zs = Qr, Vs = er, Ys = _s, Xs = He, Ws = wr, Js = xa, Zs = Oa, ei = Ta, ti = Be, ni = Ge;
2277
2268
  export {
2278
2269
  Zs as Bootstrap,
2279
2270
  ei as BootstrapStatic,
@@ -2285,6 +2276,6 @@ export {
2285
2276
  Xs as Link,
2286
2277
  Ws as RouterError,
2287
2278
  Js as ServerError,
2288
- Hs as useMDXComponents
2279
+ Us as useMDXComponents
2289
2280
  };
2290
2281
  //# sourceMappingURL=zudoku.components.js.map