zudoku 0.3.1-dev.12 → 0.3.1-dev.14

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