zudoku 0.3.0-dev.73 → 0.3.0-dev.75

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 (34) hide show
  1. package/dist/lib/authentication/Callback.d.ts +1 -1
  2. package/dist/lib/authentication/Callback.js +0 -1
  3. package/dist/lib/authentication/Callback.js.map +1 -1
  4. package/dist/lib/components/DevPortal.js +16 -1
  5. package/dist/lib/components/DevPortal.js.map +1 -1
  6. package/dist/lib/core/DevPortalContext.js +3 -6
  7. package/dist/lib/core/DevPortalContext.js.map +1 -1
  8. package/dist/lib/oas/graphql/index.js +3 -2
  9. package/dist/lib/oas/graphql/index.js.map +1 -1
  10. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +3 -1
  11. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  12. package/dist/lib/plugins/openapi/SchemaListViewItem.js +4 -1
  13. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -1
  14. package/lib/{OperationList-CzXPfUMy.js → OperationList-DbFAs7j0.js} +24 -21
  15. package/lib/OperationList-DbFAs7j0.js.map +1 -0
  16. package/lib/assets/{worker-BWwCA-wk.js → worker-CyHZIIfE.js} +3 -3
  17. package/lib/assets/{worker-BWwCA-wk.js.map → worker-CyHZIIfE.js.map} +1 -1
  18. package/lib/{index-D_ZoO3pi.js → index-C5qcuxqm.js} +2 -2
  19. package/lib/{index-D_ZoO3pi.js.map → index-C5qcuxqm.js.map} +1 -1
  20. package/lib/zudoku.auth-openid.js +32 -31
  21. package/lib/zudoku.auth-openid.js.map +1 -1
  22. package/lib/zudoku.components.js +367 -361
  23. package/lib/zudoku.components.js.map +1 -1
  24. package/lib/zudoku.openapi-worker.js +3 -3
  25. package/lib/zudoku.openapi-worker.js.map +1 -1
  26. package/lib/zudoku.plugin-openapi.js +1 -1
  27. package/package.json +1 -1
  28. package/src/lib/authentication/Callback.tsx +0 -2
  29. package/src/lib/components/DevPortal.tsx +17 -0
  30. package/src/lib/core/DevPortalContext.ts +2 -4
  31. package/src/lib/oas/graphql/index.ts +3 -2
  32. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -1
  33. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +3 -0
  34. package/lib/OperationList-CzXPfUMy.js.map +0 -1
@@ -3,35 +3,35 @@ var dt = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var cr = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var j = (t, e, n) => cr(t, typeof e != "symbol" ? e + "" : e, n), ht = (t, e, n) => e.has(t) || dt("Cannot " + n);
7
- var h = (t, e, n) => (ht(t, e, "read from private field"), n ? n.call(t) : e.get(t)), N = (t, e, n) => e.has(t) ? dt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), M = (t, e, n, r) => (ht(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
- var be = (t, e, n, r) => ({
6
+ var N = (t, e, n) => cr(t, typeof e != "symbol" ? e + "" : e, n), ht = (t, e, n) => e.has(t) || dt("Cannot " + n);
7
+ var p = (t, e, n) => (ht(t, e, "read from private field"), n ? n.call(t) : e.get(t)), D = (t, e, n) => e.has(t) ? dt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), C = (t, e, n, r) => (ht(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
+ var Ce = (t, e, n, r) => ({
9
9
  set _(a) {
10
- M(t, e, a, n);
10
+ C(t, e, a, n);
11
11
  },
12
12
  get _() {
13
- return h(t, e, r);
13
+ return p(t, e, r);
14
14
  }
15
15
  });
16
16
  import { H as _t, a as Ge, M as ur, A as lr, u as dr } from "./AnchorLink-DwUyvkrL.js";
17
- import { d as hr, R as pr, N as $e, L as Re } from "./index-CjHZiWvQ.js";
18
- import { E as Et, u as fr, S as mr, a as _e, R as gr } from "./SlotletProvider-ibdqvOie.js";
19
- import { j as o, d as vr, u as W, a as xr, O as St } from "./jsx-runtime-D0NHp7nI.js";
20
- import { M as yr, c as wr, a as jt, b as Nt, A as br, u as pe, h as Mr, d as y, e as Cr, F as Pr, D as Rr, C as _r, P as ie, f as qe, g as Er, i as Dt, R as Sr, S as jr, j as Nr, k as Dr, l as It, m as Ir, n as Ee, o as At, B as Be } from "./Combination-BMJg4xHo.js";
21
- import { c as fe, a as P, C as Ar, b as Or, u as Tr, M as kr, T as Fr, V as Lr, d as He, e as Kr, f as $r } from "./Markdown-CSdXDuYx.js";
17
+ import { d as hr, R as pr, N as $e, L as Ee } from "./index-CjHZiWvQ.js";
18
+ import { E as Et, u as fr, S as mr, a as Se, R as gr } from "./SlotletProvider-ibdqvOie.js";
19
+ import { j as o, d as vr, u as J, a as xr, O as St } from "./jsx-runtime-D0NHp7nI.js";
20
+ import { M as yr, c as wr, a as jt, b as Nt, A as br, u as fe, h as Mr, d as y, e as Cr, F as Pr, D as Rr, C as _r, P as ie, f as qe, g as Er, i as Dt, R as Sr, S as jr, j as Nr, k as Dr, l as It, m as Ir, n as je, o as At, B as Be } from "./Combination-BMJg4xHo.js";
21
+ import { c as me, a as R, C as Ar, b as Or, u as Tr, M as kr, T as Fr, V as Lr, d as He, e as Kr, f as $r } from "./Markdown-CSdXDuYx.js";
22
22
  import * as u from "react";
23
- import Br, { StrictMode as Ot, createContext as Tt, Component as Qr, createElement as pt, isValidElement as Ur, memo as kt, useMemo as Le, useContext as Gr, useState as Se, useEffect as se, Fragment as qr, useRef as De, forwardRef as Hr, Suspense as zr } from "react";
23
+ import Br, { StrictMode as Ot, createContext as Tt, Component as Qr, createElement as pt, isValidElement as Ur, memo as kt, useMemo as Le, useState as le, useContext as Gr, useRef as ge, useEffect as W, Fragment as qr, forwardRef as Hr, Suspense as zr } from "react";
24
24
  import { g as ze } from "./_commonjsHelpers-BVfed4GL.js";
25
25
  import { r as Vr } from "./router-BiRCp01d.js";
26
26
  import { S as Qe, c as Ft, P as Ie, R as Yr, I as Xr, a as Lt, T as Kt, C as $t, b as Wr } from "./Spinner-D0EmkS4m.js";
27
- import { S as Bt, h as Qt, Q as Jr, n as E, m as ft, a as mt, b as $, e as Zr, c as ea, d as ta, f as na, o as gt, r as vt, g as ra, i as xt, p as yt, s as aa, u as Ve, j as oa, D as sa, k as Ye, l as wt, q as Ut, t as ia, v as ca, w as ua } from "./DevPortalProvider-DMrk4yw1.js";
27
+ import { S as Bt, h as Qt, Q as Jr, n as S, m as ft, a as mt, b as Q, e as Zr, c as ea, d as ta, f as na, o as gt, r as vt, g as ra, i as xt, p as yt, s as aa, u as Ve, j as oa, D as sa, k as Ye, l as wt, q as Ut, t as ia, v as ca, w as ua } from "./DevPortalProvider-DMrk4yw1.js";
28
28
  /**
29
29
  * @license lucide-react v0.378.0 - ISC
30
30
  *
31
31
  * This source code is licensed under the ISC license.
32
32
  * See the LICENSE file in the root directory of this source tree.
33
33
  */
34
- const Xe = fe("ChevronRight", [
34
+ const Xe = me("ChevronRight", [
35
35
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
36
36
  ]);
37
37
  /**
@@ -40,7 +40,7 @@ const Xe = fe("ChevronRight", [
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
42
  */
43
- const la = fe("Dot", [
43
+ const la = me("Dot", [
44
44
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
45
45
  ]);
46
46
  /**
@@ -49,7 +49,7 @@ const la = fe("Dot", [
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
51
  */
52
- const da = fe("ExternalLink", [
52
+ const da = me("ExternalLink", [
53
53
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
54
54
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
55
55
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -60,7 +60,7 @@ const da = fe("ExternalLink", [
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
62
  */
63
- const ha = fe("MoonStar", [
63
+ const ha = me("MoonStar", [
64
64
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
65
65
  ["path", { d: "M20 3v4", key: "1olli1" }],
66
66
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -71,7 +71,7 @@ const ha = fe("MoonStar", [
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
73
  */
74
- const pa = fe("Sun", [
74
+ const pa = me("Sun", [
75
75
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
76
76
  ["path", { d: "M12 2v2", key: "tus03m" }],
77
77
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -85,10 +85,10 @@ const pa = fe("Sun", [
85
85
  function fa({ error: t }) {
86
86
  return /* @__PURE__ */ o.jsx(Et, { error: t });
87
87
  }
88
- var me = {};
88
+ var ve = {};
89
89
  const ma = /* @__PURE__ */ ze(Vr), ga = /* @__PURE__ */ ze(vr), va = /* @__PURE__ */ ze(hr);
90
- Object.defineProperty(me, "__esModule", { value: !0 });
91
- var xa = Br, k = ma, We = ga, B = va;
90
+ Object.defineProperty(ve, "__esModule", { value: !0 });
91
+ var xa = Br, K = ma, We = ga, U = va;
92
92
  function ya(t) {
93
93
  if (t && t.__esModule) return t;
94
94
  var e = /* @__PURE__ */ Object.create(null);
@@ -104,22 +104,22 @@ function ya(t) {
104
104
  }
105
105
  }), e.default = t, Object.freeze(e);
106
106
  }
107
- var O = /* @__PURE__ */ ya(xa);
107
+ var F = /* @__PURE__ */ ya(xa);
108
108
  function wa({
109
109
  basename: t,
110
110
  children: e,
111
111
  location: n = "/",
112
112
  future: r
113
113
  }) {
114
- typeof n == "string" && (n = B.parsePath(n));
115
- let a = k.Action.Pop, s = {
114
+ typeof n == "string" && (n = U.parsePath(n));
115
+ let a = K.Action.Pop, s = {
116
116
  pathname: n.pathname || "/",
117
117
  search: n.search || "",
118
118
  hash: n.hash || "",
119
119
  state: n.state != null ? n.state : null,
120
120
  key: n.key || "default"
121
121
  }, i = Gt();
122
- return /* @__PURE__ */ O.createElement(B.Router, {
122
+ return /* @__PURE__ */ F.createElement(U.Router, {
123
123
  basename: t,
124
124
  children: e,
125
125
  location: s,
@@ -135,7 +135,7 @@ function ba({
135
135
  hydrate: n = !0,
136
136
  nonce: r
137
137
  }) {
138
- e && t || (process.env.NODE_ENV !== "production" ? k.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : k.UNSAFE_invariant(!1));
138
+ e && t || (process.env.NODE_ENV !== "production" ? K.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : K.UNSAFE_invariant(!1));
139
139
  let a = {
140
140
  router: e,
141
141
  navigator: Gt(),
@@ -154,17 +154,17 @@ function ba({
154
154
  let {
155
155
  state: c
156
156
  } = a.router;
157
- return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterContext.Provider, {
157
+ return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterContext.Provider, {
158
158
  value: a
159
- }, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterStateContext.Provider, {
159
+ }, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterStateContext.Provider, {
160
160
  value: c
161
- }, /* @__PURE__ */ O.createElement(B.UNSAFE_FetchersContext.Provider, {
161
+ }, /* @__PURE__ */ F.createElement(U.UNSAFE_FetchersContext.Provider, {
162
162
  value: s
163
- }, /* @__PURE__ */ O.createElement(B.UNSAFE_ViewTransitionContext.Provider, {
163
+ }, /* @__PURE__ */ F.createElement(U.UNSAFE_ViewTransitionContext.Provider, {
164
164
  value: {
165
165
  isTransitioning: !1
166
166
  }
167
- }, /* @__PURE__ */ O.createElement(B.Router, {
167
+ }, /* @__PURE__ */ F.createElement(U.Router, {
168
168
  basename: a.basename,
169
169
  location: c.location,
170
170
  navigationType: c.historyAction,
@@ -173,11 +173,11 @@ function ba({
173
173
  future: {
174
174
  v7_relativeSplatPath: e.future.v7_relativeSplatPath
175
175
  }
176
- }, /* @__PURE__ */ O.createElement(Ma, {
176
+ }, /* @__PURE__ */ F.createElement(Ma, {
177
177
  routes: e.routes,
178
178
  future: e.future,
179
179
  state: c
180
- })))))), i ? /* @__PURE__ */ O.createElement("script", {
180
+ })))))), i ? /* @__PURE__ */ F.createElement("script", {
181
181
  suppressHydrationWarning: !0,
182
182
  nonce: r,
183
183
  dangerouslySetInnerHTML: {
@@ -196,7 +196,7 @@ function Ca(t) {
196
196
  if (!t) return null;
197
197
  let e = Object.entries(t), n = {};
198
198
  for (let [r, a] of e)
199
- k.isRouteErrorResponse(a) ? n[r] = {
199
+ K.isRouteErrorResponse(a) ? n[r] = {
200
200
  ...a,
201
201
  __type: "RouteErrorResponse"
202
202
  } : a instanceof Error ? n[r] = {
@@ -232,13 +232,13 @@ function Gt() {
232
232
  };
233
233
  }
234
234
  function Pa(t, e) {
235
- return k.createStaticHandler(t, {
235
+ return K.createStaticHandler(t, {
236
236
  ...e,
237
237
  mapRouteProperties: We.UNSAFE_mapRouteProperties
238
238
  });
239
239
  }
240
240
  function Ra(t, e, n = {}) {
241
- let r = {}, a = k.UNSAFE_convertRoutesToDataRoutes(t, We.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((c) => {
241
+ let r = {}, a = K.UNSAFE_convertRoutesToDataRoutes(t, We.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((c) => {
242
242
  let l = r[c.route.id] || c.route;
243
243
  return {
244
244
  ...c,
@@ -262,14 +262,14 @@ function Ra(t, e, n = {}) {
262
262
  },
263
263
  get state() {
264
264
  return {
265
- historyAction: k.Action.Pop,
265
+ historyAction: K.Action.Pop,
266
266
  location: e.location,
267
267
  matches: s,
268
268
  loaderData: e.loaderData,
269
269
  actionData: e.actionData,
270
270
  errors: e.errors,
271
271
  initialized: !0,
272
- navigation: k.IDLE_NAVIGATION,
272
+ navigation: K.IDLE_NAVIGATION,
273
273
  restoreScrollPosition: null,
274
274
  preventScrollReset: !1,
275
275
  revalidation: "idle",
@@ -303,7 +303,7 @@ function Ra(t, e, n = {}) {
303
303
  createHref: qt,
304
304
  encodeLocation: Ht,
305
305
  getFetcher() {
306
- return k.IDLE_FETCHER;
306
+ return K.IDLE_FETCHER;
307
307
  },
308
308
  deleteFetcher() {
309
309
  throw i("deleteFetcher");
@@ -312,7 +312,7 @@ function Ra(t, e, n = {}) {
312
312
  throw i("dispose");
313
313
  },
314
314
  getBlocker() {
315
- return k.IDLE_BLOCKER;
315
+ return K.IDLE_BLOCKER;
316
316
  },
317
317
  deleteBlocker() {
318
318
  throw i("deleteBlocker");
@@ -328,10 +328,10 @@ function Ra(t, e, n = {}) {
328
328
  };
329
329
  }
330
330
  function qt(t) {
331
- return typeof t == "string" ? t : B.createPath(t);
331
+ return typeof t == "string" ? t : U.createPath(t);
332
332
  }
333
333
  function Ht(t) {
334
- let e = typeof t == "string" ? t : B.createPath(t);
334
+ let e = typeof t == "string" ? t : U.createPath(t);
335
335
  e = e.replace(/ $/, "%20");
336
336
  let n = _a.test(e) ? new URL(e) : new URL(e, "http://localhost");
337
337
  return {
@@ -350,10 +350,10 @@ const _a = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ea = {
350
350
  function ja(t) {
351
351
  return t.replace(Sa, (e) => Ea[e]);
352
352
  }
353
- me.StaticRouter = wa;
354
- var Na = me.StaticRouterProvider = ba;
355
- me.createStaticHandler = Pa;
356
- me.createStaticRouter = Ra;
353
+ ve.StaticRouter = wa;
354
+ var Na = ve.StaticRouterProvider = ba;
355
+ ve.createStaticHandler = Pa;
356
+ ve.createStaticRouter = Ra;
357
357
  const Da = ({
358
358
  router: t,
359
359
  hydrate: e = !1
@@ -362,11 +362,11 @@ const Da = ({
362
362
  context: e,
363
363
  helmetContext: n
364
364
  }) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { context: n, children: /* @__PURE__ */ o.jsx(Na, { router: t, context: e }) }) });
365
- var T, Ct, Aa = (Ct = class extends Bt {
365
+ var L, Ct, Aa = (Ct = class extends Bt {
366
366
  constructor(e = {}) {
367
367
  super();
368
- N(this, T);
369
- this.config = e, M(this, T, /* @__PURE__ */ new Map());
368
+ D(this, L);
369
+ this.config = e, C(this, L, /* @__PURE__ */ new Map());
370
370
  }
371
371
  build(e, n, r) {
372
372
  const a = n.queryKey, s = n.queryHash ?? Qt(a, n);
@@ -381,27 +381,27 @@ var T, Ct, Aa = (Ct = class extends Bt {
381
381
  }), this.add(i)), i;
382
382
  }
383
383
  add(e) {
384
- h(this, T).has(e.queryHash) || (h(this, T).set(e.queryHash, e), this.notify({
384
+ p(this, L).has(e.queryHash) || (p(this, L).set(e.queryHash, e), this.notify({
385
385
  type: "added",
386
386
  query: e
387
387
  }));
388
388
  }
389
389
  remove(e) {
390
- const n = h(this, T).get(e.queryHash);
391
- n && (e.destroy(), n === e && h(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
390
+ const n = p(this, L).get(e.queryHash);
391
+ n && (e.destroy(), n === e && p(this, L).delete(e.queryHash), this.notify({ type: "removed", query: e }));
392
392
  }
393
393
  clear() {
394
- E.batch(() => {
394
+ S.batch(() => {
395
395
  this.getAll().forEach((e) => {
396
396
  this.remove(e);
397
397
  });
398
398
  });
399
399
  }
400
400
  get(e) {
401
- return h(this, T).get(e);
401
+ return p(this, L).get(e);
402
402
  }
403
403
  getAll() {
404
- return [...h(this, T).values()];
404
+ return [...p(this, L).values()];
405
405
  }
406
406
  find(e) {
407
407
  const n = { exact: !0, ...e };
@@ -414,74 +414,74 @@ var T, Ct, Aa = (Ct = class extends Bt {
414
414
  return Object.keys(e).length > 0 ? n.filter((r) => ft(e, r)) : n;
415
415
  }
416
416
  notify(e) {
417
- E.batch(() => {
417
+ S.batch(() => {
418
418
  this.listeners.forEach((n) => {
419
419
  n(e);
420
420
  });
421
421
  });
422
422
  }
423
423
  onFocus() {
424
- E.batch(() => {
424
+ S.batch(() => {
425
425
  this.getAll().forEach((e) => {
426
426
  e.onFocus();
427
427
  });
428
428
  });
429
429
  }
430
430
  onOnline() {
431
- E.batch(() => {
431
+ S.batch(() => {
432
432
  this.getAll().forEach((e) => {
433
433
  e.onOnline();
434
434
  });
435
435
  });
436
436
  }
437
- }, T = new WeakMap(), Ct), _, he, Pt, Oa = (Pt = class extends Bt {
437
+ }, L = new WeakMap(), Ct), E, pe, Pt, Oa = (Pt = class extends Bt {
438
438
  constructor(e = {}) {
439
439
  super();
440
- N(this, _);
441
- N(this, he);
442
- this.config = e, M(this, _, /* @__PURE__ */ new Map()), M(this, he, Date.now());
440
+ D(this, E);
441
+ D(this, pe);
442
+ this.config = e, C(this, E, /* @__PURE__ */ new Map()), C(this, pe, Date.now());
443
443
  }
444
444
  build(e, n, r) {
445
445
  const a = new yr({
446
446
  mutationCache: this,
447
- mutationId: ++be(this, he)._,
447
+ mutationId: ++Ce(this, pe)._,
448
448
  options: e.defaultMutationOptions(n),
449
449
  state: r
450
450
  });
451
451
  return this.add(a), a;
452
452
  }
453
453
  add(e) {
454
- const n = Me(e), r = h(this, _).get(n) ?? [];
455
- r.push(e), h(this, _).set(n, r), this.notify({ type: "added", mutation: e });
454
+ const n = Pe(e), r = p(this, E).get(n) ?? [];
455
+ r.push(e), p(this, E).set(n, r), this.notify({ type: "added", mutation: e });
456
456
  }
457
457
  remove(e) {
458
458
  var r;
459
- const n = Me(e);
460
- if (h(this, _).has(n)) {
461
- const a = (r = h(this, _).get(n)) == null ? void 0 : r.filter((s) => s !== e);
462
- a && (a.length === 0 ? h(this, _).delete(n) : h(this, _).set(n, a));
459
+ const n = Pe(e);
460
+ if (p(this, E).has(n)) {
461
+ const a = (r = p(this, E).get(n)) == null ? void 0 : r.filter((s) => s !== e);
462
+ a && (a.length === 0 ? p(this, E).delete(n) : p(this, E).set(n, a));
463
463
  }
464
464
  this.notify({ type: "removed", mutation: e });
465
465
  }
466
466
  canRun(e) {
467
467
  var r;
468
- const n = (r = h(this, _).get(Me(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
468
+ const n = (r = p(this, E).get(Pe(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
469
469
  return !n || n === e;
470
470
  }
471
471
  runNext(e) {
472
472
  var r;
473
- const n = (r = h(this, _).get(Me(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
473
+ const n = (r = p(this, E).get(Pe(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
474
474
  return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
475
475
  }
476
476
  clear() {
477
- E.batch(() => {
477
+ S.batch(() => {
478
478
  this.getAll().forEach((e) => {
479
479
  this.remove(e);
480
480
  });
481
481
  });
482
482
  }
483
483
  getAll() {
484
- return [...h(this, _).values()].flat();
484
+ return [...p(this, E).values()].flat();
485
485
  }
486
486
  find(e) {
487
487
  const n = { exact: !0, ...e };
@@ -493,7 +493,7 @@ var T, Ct, Aa = (Ct = class extends Bt {
493
493
  return this.getAll().filter((n) => mt(e, n));
494
494
  }
495
495
  notify(e) {
496
- E.batch(() => {
496
+ S.batch(() => {
497
497
  this.listeners.forEach((n) => {
498
498
  n(e);
499
499
  });
@@ -501,14 +501,14 @@ var T, Ct, Aa = (Ct = class extends Bt {
501
501
  }
502
502
  resumePausedMutations() {
503
503
  const e = this.getAll().filter((n) => n.state.isPaused);
504
- return E.batch(
504
+ return S.batch(
505
505
  () => Promise.all(
506
- e.map((n) => n.continue().catch($))
506
+ e.map((n) => n.continue().catch(Q))
507
507
  )
508
508
  );
509
509
  }
510
- }, _ = new WeakMap(), he = new WeakMap(), Pt);
511
- function Me(t) {
510
+ }, E = new WeakMap(), pe = new WeakMap(), Pt);
511
+ function Pe(t) {
512
512
  var e;
513
513
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
514
514
  }
@@ -516,52 +516,52 @@ function Ta(t) {
516
516
  return {
517
517
  onFetch: (e, n) => {
518
518
  const r = async () => {
519
- var x, R, F, Q, V;
520
- const a = e.options, s = (F = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : F.direction, i = ((Q = e.state.data) == null ? void 0 : Q.pages) || [], c = ((V = e.state.data) == null ? void 0 : V.pageParams) || [], l = { pages: [], pageParams: [] };
521
- let p = !1;
522
- const f = (b) => {
523
- Object.defineProperty(b, "signal", {
519
+ var x, _, b, O, T;
520
+ const a = e.options, s = (b = (_ = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : _.fetchMore) == null ? void 0 : b.direction, i = ((O = e.state.data) == null ? void 0 : O.pages) || [], c = ((T = e.state.data) == null ? void 0 : T.pageParams) || [], l = { pages: [], pageParams: [] };
521
+ let h = !1;
522
+ const f = (M) => {
523
+ Object.defineProperty(M, "signal", {
524
524
  enumerable: !0,
525
- get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
526
- p = !0;
525
+ get: () => (e.signal.aborted ? h = !0 : e.signal.addEventListener("abort", () => {
526
+ h = !0;
527
527
  }), e.signal)
528
528
  });
529
- }, d = Zr(e.options, e.fetchOptions), m = async (b, I, L) => {
530
- if (p)
529
+ }, d = Zr(e.options, e.fetchOptions), m = async (M, A, $) => {
530
+ if (h)
531
531
  return Promise.reject();
532
- if (I == null && b.pages.length)
533
- return Promise.resolve(b);
532
+ if (A == null && M.pages.length)
533
+ return Promise.resolve(M);
534
534
  const Y = {
535
535
  queryKey: e.queryKey,
536
- pageParam: I,
537
- direction: L ? "backward" : "forward",
536
+ pageParam: A,
537
+ direction: $ ? "backward" : "forward",
538
538
  meta: e.options.meta
539
539
  };
540
540
  f(Y);
541
- const Z = await d(
541
+ const ee = await d(
542
542
  Y
543
- ), { maxPages: ye } = e.options, X = L ? ea : ta;
543
+ ), { maxPages: be } = e.options, X = $ ? ea : ta;
544
544
  return {
545
- pages: X(b.pages, Z, ye),
546
- pageParams: X(b.pageParams, I, ye)
545
+ pages: X(M.pages, ee, be),
546
+ pageParams: X(M.pageParams, A, be)
547
547
  };
548
548
  };
549
549
  let v;
550
550
  if (s && i.length) {
551
- const b = s === "backward", I = b ? ka : bt, L = {
551
+ const M = s === "backward", A = M ? ka : bt, $ = {
552
552
  pages: i,
553
553
  pageParams: c
554
- }, Y = I(a, L);
555
- v = await m(L, Y, b);
554
+ }, Y = A(a, $);
555
+ v = await m($, Y, M);
556
556
  } else {
557
557
  v = await m(
558
558
  l,
559
559
  c[0] ?? a.initialPageParam
560
560
  );
561
- const b = t ?? i.length;
562
- for (let I = 1; I < b; I++) {
563
- const L = bt(a, v);
564
- v = await m(v, L);
561
+ const M = t ?? i.length;
562
+ for (let A = 1; A < M; A++) {
563
+ const $ = bt(a, v);
564
+ v = await m(v, $);
565
565
  }
566
566
  }
567
567
  return v;
@@ -601,65 +601,65 @@ function ka(t, { pages: e, pageParams: n }) {
601
601
  n
602
602
  );
603
603
  }
604
- var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
604
+ var w, q, H, re, ae, z, oe, se, Rt, Fa = (Rt = class {
605
605
  constructor(t = {}) {
606
- N(this, w);
607
- N(this, G);
608
- N(this, q);
609
- N(this, ne);
610
- N(this, re);
611
- N(this, H);
612
- N(this, ae);
613
- N(this, oe);
614
- M(this, w, t.queryCache || new Aa()), M(this, G, t.mutationCache || new Oa()), M(this, q, t.defaultOptions || {}), M(this, ne, /* @__PURE__ */ new Map()), M(this, re, /* @__PURE__ */ new Map()), M(this, H, 0);
606
+ D(this, w);
607
+ D(this, q);
608
+ D(this, H);
609
+ D(this, re);
610
+ D(this, ae);
611
+ D(this, z);
612
+ D(this, oe);
613
+ D(this, se);
614
+ C(this, w, t.queryCache || new Aa()), C(this, q, t.mutationCache || new Oa()), C(this, H, t.defaultOptions || {}), C(this, re, /* @__PURE__ */ new Map()), C(this, ae, /* @__PURE__ */ new Map()), C(this, z, 0);
615
615
  }
616
616
  mount() {
617
- be(this, H)._++, h(this, H) === 1 && (M(this, ae, na.subscribe(async (t) => {
618
- t && (await this.resumePausedMutations(), h(this, w).onFocus());
619
- })), M(this, oe, gt.subscribe(async (t) => {
620
- t && (await this.resumePausedMutations(), h(this, w).onOnline());
617
+ Ce(this, z)._++, p(this, z) === 1 && (C(this, oe, na.subscribe(async (t) => {
618
+ t && (await this.resumePausedMutations(), p(this, w).onFocus());
619
+ })), C(this, se, gt.subscribe(async (t) => {
620
+ t && (await this.resumePausedMutations(), p(this, w).onOnline());
621
621
  })));
622
622
  }
623
623
  unmount() {
624
624
  var t, e;
625
- be(this, H)._--, h(this, H) === 0 && ((t = h(this, ae)) == null || t.call(this), M(this, ae, void 0), (e = h(this, oe)) == null || e.call(this), M(this, oe, void 0));
625
+ Ce(this, z)._--, p(this, z) === 0 && ((t = p(this, oe)) == null || t.call(this), C(this, oe, void 0), (e = p(this, se)) == null || e.call(this), C(this, se, void 0));
626
626
  }
627
627
  isFetching(t) {
628
- return h(this, w).findAll({ ...t, fetchStatus: "fetching" }).length;
628
+ return p(this, w).findAll({ ...t, fetchStatus: "fetching" }).length;
629
629
  }
630
630
  isMutating(t) {
631
- return h(this, G).findAll({ ...t, status: "pending" }).length;
631
+ return p(this, q).findAll({ ...t, status: "pending" }).length;
632
632
  }
633
633
  getQueryData(t) {
634
634
  var n;
635
635
  const e = this.defaultQueryOptions({ queryKey: t });
636
- return (n = h(this, w).get(e.queryHash)) == null ? void 0 : n.state.data;
636
+ return (n = p(this, w).get(e.queryHash)) == null ? void 0 : n.state.data;
637
637
  }
638
638
  ensureQueryData(t) {
639
639
  const e = this.getQueryData(t.queryKey);
640
640
  if (e === void 0)
641
641
  return this.fetchQuery(t);
642
642
  {
643
- const n = this.defaultQueryOptions(t), r = h(this, w).build(this, n);
643
+ const n = this.defaultQueryOptions(t), r = p(this, w).build(this, n);
644
644
  return t.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
645
645
  }
646
646
  }
647
647
  getQueriesData(t) {
648
- return h(this, w).findAll(t).map(({ queryKey: e, state: n }) => {
648
+ return p(this, w).findAll(t).map(({ queryKey: e, state: n }) => {
649
649
  const r = n.data;
650
650
  return [e, r];
651
651
  });
652
652
  }
653
653
  setQueryData(t, e, n) {
654
- const r = this.defaultQueryOptions({ queryKey: t }), a = h(this, w).get(
654
+ const r = this.defaultQueryOptions({ queryKey: t }), a = p(this, w).get(
655
655
  r.queryHash
656
656
  ), s = a == null ? void 0 : a.state.data, i = ra(e, s);
657
657
  if (i !== void 0)
658
- return h(this, w).build(this, r).setData(i, { ...n, manual: !0 });
658
+ return p(this, w).build(this, r).setData(i, { ...n, manual: !0 });
659
659
  }
660
660
  setQueriesData(t, e, n) {
661
- return E.batch(
662
- () => h(this, w).findAll(t).map(({ queryKey: r }) => [
661
+ return S.batch(
662
+ () => p(this, w).findAll(t).map(({ queryKey: r }) => [
663
663
  r,
664
664
  this.setQueryData(r, e, n)
665
665
  ])
@@ -668,34 +668,34 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
668
668
  getQueryState(t) {
669
669
  var n;
670
670
  const e = this.defaultQueryOptions({ queryKey: t });
671
- return (n = h(this, w).get(e.queryHash)) == null ? void 0 : n.state;
671
+ return (n = p(this, w).get(e.queryHash)) == null ? void 0 : n.state;
672
672
  }
673
673
  removeQueries(t) {
674
- const e = h(this, w);
675
- E.batch(() => {
674
+ const e = p(this, w);
675
+ S.batch(() => {
676
676
  e.findAll(t).forEach((n) => {
677
677
  e.remove(n);
678
678
  });
679
679
  });
680
680
  }
681
681
  resetQueries(t, e) {
682
- const n = h(this, w), r = {
682
+ const n = p(this, w), r = {
683
683
  type: "active",
684
684
  ...t
685
685
  };
686
- return E.batch(() => (n.findAll(t).forEach((a) => {
686
+ return S.batch(() => (n.findAll(t).forEach((a) => {
687
687
  a.reset();
688
688
  }), this.refetchQueries(r, e)));
689
689
  }
690
690
  cancelQueries(t = {}, e = {}) {
691
- const n = { revert: !0, ...e }, r = E.batch(
692
- () => h(this, w).findAll(t).map((a) => a.cancel(n))
691
+ const n = { revert: !0, ...e }, r = S.batch(
692
+ () => p(this, w).findAll(t).map((a) => a.cancel(n))
693
693
  );
694
- return Promise.all(r).then($).catch($);
694
+ return Promise.all(r).then(Q).catch(Q);
695
695
  }
696
696
  invalidateQueries(t = {}, e = {}) {
697
- return E.batch(() => {
698
- if (h(this, w).findAll(t).forEach((r) => {
697
+ return S.batch(() => {
698
+ if (p(this, w).findAll(t).forEach((r) => {
699
699
  r.invalidate();
700
700
  }), t.refetchType === "none")
701
701
  return Promise.resolve();
@@ -710,67 +710,67 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
710
710
  const n = {
711
711
  ...e,
712
712
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
713
- }, r = E.batch(
714
- () => h(this, w).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
713
+ }, r = S.batch(
714
+ () => p(this, w).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
715
715
  let s = a.fetch(void 0, n);
716
- return n.throwOnError || (s = s.catch($)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
716
+ return n.throwOnError || (s = s.catch(Q)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
717
717
  })
718
718
  );
719
- return Promise.all(r).then($);
719
+ return Promise.all(r).then(Q);
720
720
  }
721
721
  fetchQuery(t) {
722
722
  const e = this.defaultQueryOptions(t);
723
723
  e.retry === void 0 && (e.retry = !1);
724
- const n = h(this, w).build(this, e);
724
+ const n = p(this, w).build(this, e);
725
725
  return n.isStaleByTime(
726
726
  vt(e.staleTime, n)
727
727
  ) ? n.fetch(e) : Promise.resolve(n.state.data);
728
728
  }
729
729
  prefetchQuery(t) {
730
- return this.fetchQuery(t).then($).catch($);
730
+ return this.fetchQuery(t).then(Q).catch(Q);
731
731
  }
732
732
  fetchInfiniteQuery(t) {
733
733
  return t.behavior = Ta(t.pages), this.fetchQuery(t);
734
734
  }
735
735
  prefetchInfiniteQuery(t) {
736
- return this.fetchInfiniteQuery(t).then($).catch($);
736
+ return this.fetchInfiniteQuery(t).then(Q).catch(Q);
737
737
  }
738
738
  resumePausedMutations() {
739
- return gt.isOnline() ? h(this, G).resumePausedMutations() : Promise.resolve();
739
+ return gt.isOnline() ? p(this, q).resumePausedMutations() : Promise.resolve();
740
740
  }
741
741
  getQueryCache() {
742
- return h(this, w);
742
+ return p(this, w);
743
743
  }
744
744
  getMutationCache() {
745
- return h(this, G);
745
+ return p(this, q);
746
746
  }
747
747
  getDefaultOptions() {
748
- return h(this, q);
748
+ return p(this, H);
749
749
  }
750
750
  setDefaultOptions(t) {
751
- M(this, q, t);
751
+ C(this, H, t);
752
752
  }
753
753
  setQueryDefaults(t, e) {
754
- h(this, ne).set(xt(t), {
754
+ p(this, re).set(xt(t), {
755
755
  queryKey: t,
756
756
  defaultOptions: e
757
757
  });
758
758
  }
759
759
  getQueryDefaults(t) {
760
- const e = [...h(this, ne).values()];
760
+ const e = [...p(this, re).values()];
761
761
  let n = {};
762
762
  return e.forEach((r) => {
763
763
  yt(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
764
764
  }), n;
765
765
  }
766
766
  setMutationDefaults(t, e) {
767
- h(this, re).set(xt(t), {
767
+ p(this, ae).set(xt(t), {
768
768
  mutationKey: t,
769
769
  defaultOptions: e
770
770
  });
771
771
  }
772
772
  getMutationDefaults(t) {
773
- const e = [...h(this, re).values()];
773
+ const e = [...p(this, ae).values()];
774
774
  let n = {};
775
775
  return e.forEach((r) => {
776
776
  yt(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
@@ -780,7 +780,7 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
780
780
  if (t._defaulted)
781
781
  return t;
782
782
  const e = {
783
- ...h(this, q).queries,
783
+ ...p(this, H).queries,
784
784
  ...this.getQueryDefaults(t.queryKey),
785
785
  ...t,
786
786
  _defaulted: !0
@@ -792,16 +792,16 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
792
792
  }
793
793
  defaultMutationOptions(t) {
794
794
  return t != null && t._defaulted ? t : {
795
- ...h(this, q).mutations,
795
+ ...p(this, H).mutations,
796
796
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
797
797
  ...t,
798
798
  _defaulted: !0
799
799
  };
800
800
  }
801
801
  clear() {
802
- h(this, w).clear(), h(this, G).clear();
802
+ p(this, w).clear(), p(this, q).clear();
803
803
  }
804
- }, w = new WeakMap(), G = new WeakMap(), q = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), Rt);
804
+ }, w = new WeakMap(), q = new WeakMap(), H = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), z = new WeakMap(), oe = new WeakMap(), se = new WeakMap(), Rt);
805
805
  const La = Tt(null), Ke = {
806
806
  didCatch: !1,
807
807
  error: null
@@ -889,27 +889,27 @@ function $a() {
889
889
  const Ba = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Qa = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Ua = (t) => "initialize" in t && typeof t.initialize == "function", Ga = (t) => "getHead" in t && typeof t.getHead == "function", qa = (t) => "getIdentities" in t && typeof t.getIdentities == "function", zt = new Fa();
890
890
  class Ha {
891
891
  constructor(e) {
892
- j(this, "plugins", []);
893
- j(this, "navigation");
894
- j(this, "meta");
895
- j(this, "page");
896
- j(this, "authentication");
897
- j(this, "navigationPlugins");
898
- j(this, "initialize", async () => {
899
- await Promise.all([
892
+ N(this, "plugins", []);
893
+ N(this, "navigation");
894
+ N(this, "meta");
895
+ N(this, "page");
896
+ N(this, "authentication");
897
+ N(this, "navigationPlugins");
898
+ N(this, "initialize", async () => {
899
+ await Promise.all(
900
900
  this.plugins.filter(Ua).map((e) => {
901
901
  var n;
902
902
  return (n = e.initialize) == null ? void 0 : n.call(e, this);
903
903
  })
904
- ]);
904
+ );
905
905
  });
906
- j(this, "invalidateCache", async (e) => {
906
+ N(this, "invalidateCache", async (e) => {
907
907
  await zt.invalidateQueries({ queryKey: e });
908
908
  });
909
- j(this, "getApiIdentities", async () => (await Promise.all(
909
+ N(this, "getApiIdentities", async () => (await Promise.all(
910
910
  this.plugins.filter(qa).map((n) => n.getIdentities(this))
911
911
  )).flat());
912
- j(this, "getNavigation", async (e) => (await Promise.all(
912
+ N(this, "getNavigation", async (e) => (await Promise.all(
913
913
  this.navigationPlugins.map(
914
914
  async (r) => {
915
915
  var a;
@@ -917,32 +917,32 @@ class Ha {
917
917
  }
918
918
  )
919
919
  )).flatMap((r) => r ?? []));
920
- j(this, "signRequest", async (e) => {
920
+ N(this, "signRequest", async (e) => {
921
921
  if (!this.authentication)
922
922
  throw new Error("No authentication provider configured");
923
923
  const n = await this.authentication.getAccessToken();
924
924
  return e.headers.set("Authorization", `Bearer ${n}`), e;
925
925
  });
926
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Qa), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.initialize();
926
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Qa), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
927
927
  }
928
928
  }
929
929
  function za({ error: t, resetErrorBoundary: e }) {
930
930
  return /* @__PURE__ */ o.jsx(Et, { error: t });
931
931
  }
932
- const Ce = globalThis;
933
- (!Ce.requestIdleCallback || !Ce.cancelIdleCallback) && (Ce.requestIdleCallback = (t) => setTimeout(t, 1), Ce.cancelIdleCallback = clearTimeout);
932
+ const Re = globalThis;
933
+ (!Re.requestIdleCallback || !Re.cancelIdleCallback) && (Re.requestIdleCallback = (t) => setTimeout(t, 1), Re.cancelIdleCallback = clearTimeout);
934
934
  var Ue = ["Enter", " "], Va = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], Ya = [...Va, ...Vt], Xa = {
935
935
  ltr: [...Ue, "ArrowRight"],
936
936
  rtl: [...Ue, "ArrowLeft"]
937
937
  }, Wa = {
938
938
  ltr: ["ArrowLeft"],
939
939
  rtl: ["ArrowRight"]
940
- }, ge = "Menu", [le, Ja, Za] = wr(ge), [J, Yt] = jt(ge, [
940
+ }, xe = "Menu", [de, Ja, Za] = wr(xe), [Z, Yt] = jt(xe, [
941
941
  Za,
942
942
  Nt,
943
943
  Ft
944
- ]), ve = Nt(), Xt = Ft(), [Wt, z] = J(ge), [eo, xe] = J(ge), Jt = (t) => {
945
- const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, c = ve(e), [l, p] = u.useState(null), f = u.useRef(!1), d = qe(s), m = Dr(a);
944
+ ]), ye = Nt(), Xt = Ft(), [Wt, V] = Z(xe), [eo, we] = Z(xe), Jt = (t) => {
945
+ const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, c = ye(e), [l, h] = u.useState(null), f = u.useRef(!1), d = qe(s), m = Dr(a);
946
946
  return u.useEffect(() => {
947
947
  const v = () => {
948
948
  f.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
@@ -957,7 +957,7 @@ var Ue = ["Enter", " "], Va = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
957
957
  open: n,
958
958
  onOpenChange: d,
959
959
  content: l,
960
- onContentChange: p,
960
+ onContentChange: h,
961
961
  children: /* @__PURE__ */ o.jsx(
962
962
  eo,
963
963
  {
@@ -972,29 +972,29 @@ var Ue = ["Enter", " "], Va = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
972
972
  }
973
973
  ) });
974
974
  };
975
- Jt.displayName = ge;
975
+ Jt.displayName = xe;
976
976
  var to = "MenuAnchor", Je = u.forwardRef(
977
977
  (t, e) => {
978
- const { __scopeMenu: n, ...r } = t, a = ve(n);
978
+ const { __scopeMenu: n, ...r } = t, a = ye(n);
979
979
  return /* @__PURE__ */ o.jsx(br, { ...a, ...r, ref: e });
980
980
  }
981
981
  );
982
982
  Je.displayName = to;
983
- var Ze = "MenuPortal", [no, Zt] = J(Ze, {
983
+ var Ze = "MenuPortal", [no, Zt] = Z(Ze, {
984
984
  forceMount: void 0
985
985
  }), en = (t) => {
986
- const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = z(Ze, e);
986
+ const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = V(Ze, e);
987
987
  return /* @__PURE__ */ o.jsx(no, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ir, { asChild: !0, container: a, children: r }) }) });
988
988
  };
989
989
  en.displayName = Ze;
990
- var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
990
+ var I = "MenuContent", [ro, et] = Z(I), tn = u.forwardRef(
991
991
  (t, e) => {
992
- const n = Zt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu);
993
- return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(ao, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(oo, { ...a, ref: e }) }) }) });
992
+ const n = Zt(I, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(I, t.__scopeMenu), i = we(I, t.__scopeMenu);
993
+ return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(ao, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(oo, { ...a, ref: e }) }) }) });
994
994
  }
995
995
  ), ao = u.forwardRef(
996
996
  (t, e) => {
997
- const n = z(D, t.__scopeMenu), r = u.useRef(null), a = pe(e, r);
997
+ const n = V(I, t.__scopeMenu), r = u.useRef(null), a = fe(e, r);
998
998
  return u.useEffect(() => {
999
999
  const s = r.current;
1000
1000
  if (s) return Mr(s);
@@ -1016,7 +1016,7 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1016
1016
  );
1017
1017
  }
1018
1018
  ), oo = u.forwardRef((t, e) => {
1019
- const n = z(D, t.__scopeMenu);
1019
+ const n = V(I, t.__scopeMenu);
1020
1020
  return /* @__PURE__ */ o.jsx(
1021
1021
  tt,
1022
1022
  {
@@ -1038,48 +1038,48 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1038
1038
  onCloseAutoFocus: i,
1039
1039
  disableOutsidePointerEvents: c,
1040
1040
  onEntryFocus: l,
1041
- onEscapeKeyDown: p,
1041
+ onEscapeKeyDown: h,
1042
1042
  onPointerDownOutside: f,
1043
1043
  onFocusOutside: d,
1044
1044
  onInteractOutside: m,
1045
1045
  onDismiss: v,
1046
1046
  disableOutsideScroll: x,
1047
- ...R
1048
- } = t, F = z(D, n), Q = xe(D, n), V = ve(n), b = Xt(n), I = Ja(n), [L, Y] = u.useState(null), Z = u.useRef(null), ye = pe(e, Z, F.onContentChange), X = u.useRef(0), we = u.useRef(""), rr = u.useRef(0), Oe = u.useRef(null), it = u.useRef("right"), Te = u.useRef(0), ar = x ? Sr : u.Fragment, or = x ? { as: jr, allowPinchZoom: !0 } : void 0, sr = (g) => {
1049
- var te, ut;
1050
- const S = we.current + g, A = I().filter((K) => !K.disabled), U = document.activeElement, ke = (te = A.find((K) => K.ref.current === U)) == null ? void 0 : te.textValue, Fe = A.map((K) => K.textValue), ct = xo(Fe, S, ke), ce = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
1051
- (function K(lt) {
1052
- we.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
1053
- })(S), ce && setTimeout(() => ce.focus());
1047
+ ..._
1048
+ } = t, b = V(I, n), O = we(I, n), T = ye(n), M = Xt(n), A = Ja(n), [$, Y] = u.useState(null), ee = u.useRef(null), be = fe(e, ee, b.onContentChange), X = u.useRef(0), Me = u.useRef(""), rr = u.useRef(0), Oe = u.useRef(null), it = u.useRef("right"), Te = u.useRef(0), ar = x ? Sr : u.Fragment, or = x ? { as: jr, allowPinchZoom: !0 } : void 0, sr = (g) => {
1049
+ var ne, ut;
1050
+ const j = Me.current + g, k = A().filter((B) => !B.disabled), G = document.activeElement, ke = (ne = k.find((B) => B.ref.current === G)) == null ? void 0 : ne.textValue, Fe = k.map((B) => B.textValue), ct = xo(Fe, j, ke), ce = (ut = k.find((B) => B.textValue === ct)) == null ? void 0 : ut.ref.current;
1051
+ (function B(lt) {
1052
+ Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => B(""), 1e3));
1053
+ })(j), ce && setTimeout(() => ce.focus());
1054
1054
  };
1055
1055
  u.useEffect(() => () => window.clearTimeout(X.current), []), Cr();
1056
- const ee = u.useCallback((g) => {
1057
- var A, U;
1058
- return it.current === ((A = Oe.current) == null ? void 0 : A.side) && wo(g, (U = Oe.current) == null ? void 0 : U.area);
1056
+ const te = u.useCallback((g) => {
1057
+ var k, G;
1058
+ return it.current === ((k = Oe.current) == null ? void 0 : k.side) && wo(g, (G = Oe.current) == null ? void 0 : G.area);
1059
1059
  }, []);
1060
1060
  return /* @__PURE__ */ o.jsx(
1061
1061
  ro,
1062
1062
  {
1063
1063
  scope: n,
1064
- searchRef: we,
1064
+ searchRef: Me,
1065
1065
  onItemEnter: u.useCallback(
1066
1066
  (g) => {
1067
- ee(g) && g.preventDefault();
1067
+ te(g) && g.preventDefault();
1068
1068
  },
1069
- [ee]
1069
+ [te]
1070
1070
  ),
1071
1071
  onItemLeave: u.useCallback(
1072
1072
  (g) => {
1073
- var S;
1074
- ee(g) || ((S = Z.current) == null || S.focus(), Y(null));
1073
+ var j;
1074
+ te(g) || ((j = ee.current) == null || j.focus(), Y(null));
1075
1075
  },
1076
- [ee]
1076
+ [te]
1077
1077
  ),
1078
1078
  onTriggerLeave: u.useCallback(
1079
1079
  (g) => {
1080
- ee(g) && g.preventDefault();
1080
+ te(g) && g.preventDefault();
1081
1081
  },
1082
- [ee]
1082
+ [te]
1083
1083
  ),
1084
1084
  pointerGraceTimerRef: rr,
1085
1085
  onPointerGraceIntentChange: u.useCallback((g) => {
@@ -1091,8 +1091,8 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1091
1091
  asChild: !0,
1092
1092
  trapped: a,
1093
1093
  onMountAutoFocus: y(s, (g) => {
1094
- var S;
1095
- g.preventDefault(), (S = Z.current) == null || S.focus({ preventScroll: !0 });
1094
+ var j;
1095
+ g.preventDefault(), (j = ee.current) == null || j.focus({ preventScroll: !0 });
1096
1096
  }),
1097
1097
  onUnmountAutoFocus: i,
1098
1098
  children: /* @__PURE__ */ o.jsx(
@@ -1100,7 +1100,7 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1100
1100
  {
1101
1101
  asChild: !0,
1102
1102
  disableOutsidePointerEvents: c,
1103
- onEscapeKeyDown: p,
1103
+ onEscapeKeyDown: h,
1104
1104
  onPointerDownOutside: f,
1105
1105
  onFocusOutside: d,
1106
1106
  onInteractOutside: m,
@@ -1109,14 +1109,14 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1109
1109
  Yr,
1110
1110
  {
1111
1111
  asChild: !0,
1112
- ...b,
1113
- dir: Q.dir,
1112
+ ...M,
1113
+ dir: O.dir,
1114
1114
  orientation: "vertical",
1115
1115
  loop: r,
1116
- currentTabStopId: L,
1116
+ currentTabStopId: $,
1117
1117
  onCurrentTabStopIdChange: Y,
1118
1118
  onEntryFocus: y(l, (g) => {
1119
- Q.isUsingKeyboardRef.current || g.preventDefault();
1119
+ O.isUsingKeyboardRef.current || g.preventDefault();
1120
1120
  }),
1121
1121
  preventScrollOnEntryFocus: !0,
1122
1122
  children: /* @__PURE__ */ o.jsx(
@@ -1124,32 +1124,32 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1124
1124
  {
1125
1125
  role: "menu",
1126
1126
  "aria-orientation": "vertical",
1127
- "data-state": yn(F.open),
1127
+ "data-state": yn(b.open),
1128
1128
  "data-radix-menu-content": "",
1129
- dir: Q.dir,
1130
- ...V,
1131
- ...R,
1132
- ref: ye,
1133
- style: { outline: "none", ...R.style },
1134
- onKeyDown: y(R.onKeyDown, (g) => {
1135
- const A = g.target.closest("[data-radix-menu-content]") === g.currentTarget, U = g.ctrlKey || g.altKey || g.metaKey, ke = g.key.length === 1;
1136
- A && (g.key === "Tab" && g.preventDefault(), !U && ke && sr(g.key));
1137
- const Fe = Z.current;
1129
+ dir: O.dir,
1130
+ ...T,
1131
+ ..._,
1132
+ ref: be,
1133
+ style: { outline: "none", ..._.style },
1134
+ onKeyDown: y(_.onKeyDown, (g) => {
1135
+ const k = g.target.closest("[data-radix-menu-content]") === g.currentTarget, G = g.ctrlKey || g.altKey || g.metaKey, ke = g.key.length === 1;
1136
+ k && (g.key === "Tab" && g.preventDefault(), !G && ke && sr(g.key));
1137
+ const Fe = ee.current;
1138
1138
  if (g.target !== Fe || !Ya.includes(g.key)) return;
1139
1139
  g.preventDefault();
1140
- const ce = I().filter((te) => !te.disabled).map((te) => te.ref.current);
1140
+ const ce = A().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
1141
1141
  Vt.includes(g.key) && ce.reverse(), go(ce);
1142
1142
  }),
1143
1143
  onBlur: y(t.onBlur, (g) => {
1144
- g.currentTarget.contains(g.target) || (window.clearTimeout(X.current), we.current = "");
1144
+ g.currentTarget.contains(g.target) || (window.clearTimeout(X.current), Me.current = "");
1145
1145
  }),
1146
1146
  onPointerMove: y(
1147
1147
  t.onPointerMove,
1148
- de((g) => {
1149
- const S = g.target, A = Te.current !== g.clientX;
1150
- if (g.currentTarget.contains(S) && A) {
1151
- const U = g.clientX > Te.current ? "right" : "left";
1152
- it.current = U, Te.current = g.clientX;
1148
+ he((g) => {
1149
+ const j = g.target, k = Te.current !== g.clientX;
1150
+ if (g.currentTarget.contains(j) && k) {
1151
+ const G = g.clientX > Te.current ? "right" : "left";
1152
+ it.current = G, Te.current = g.clientX;
1153
1153
  }
1154
1154
  })
1155
1155
  )
@@ -1165,7 +1165,7 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1165
1165
  );
1166
1166
  }
1167
1167
  );
1168
- tn.displayName = D;
1168
+ tn.displayName = I;
1169
1169
  var so = "MenuGroup", nt = u.forwardRef(
1170
1170
  (t, e) => {
1171
1171
  const { __scopeMenu: n, ...r } = t;
@@ -1180,13 +1180,13 @@ var io = "MenuLabel", nn = u.forwardRef(
1180
1180
  }
1181
1181
  );
1182
1182
  nn.displayName = io;
1183
- var je = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
1183
+ var Ne = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
1184
1184
  (t, e) => {
1185
- const { disabled: n = !1, onSelect: r, ...a } = t, s = u.useRef(null), i = xe(je, t.__scopeMenu), c = et(je, t.__scopeMenu), l = pe(e, s), p = u.useRef(!1), f = () => {
1185
+ const { disabled: n = !1, onSelect: r, ...a } = t, s = u.useRef(null), i = we(Ne, t.__scopeMenu), c = et(Ne, t.__scopeMenu), l = fe(e, s), h = u.useRef(!1), f = () => {
1186
1186
  const d = s.current;
1187
1187
  if (!n && d) {
1188
1188
  const m = new CustomEvent(Mt, { bubbles: !0, cancelable: !0 });
1189
- d.addEventListener(Mt, (v) => r == null ? void 0 : r(v), { once: !0 }), Nr(d, m), m.defaultPrevented ? p.current = !1 : i.onClose();
1189
+ d.addEventListener(Mt, (v) => r == null ? void 0 : r(v), { once: !0 }), Nr(d, m), m.defaultPrevented ? h.current = !1 : i.onClose();
1190
1190
  }
1191
1191
  };
1192
1192
  return /* @__PURE__ */ o.jsx(
@@ -1198,11 +1198,11 @@ var je = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
1198
1198
  onClick: y(t.onClick, f),
1199
1199
  onPointerDown: (d) => {
1200
1200
  var m;
1201
- (m = t.onPointerDown) == null || m.call(t, d), p.current = !0;
1201
+ (m = t.onPointerDown) == null || m.call(t, d), h.current = !0;
1202
1202
  },
1203
1203
  onPointerUp: y(t.onPointerUp, (d) => {
1204
1204
  var m;
1205
- p.current || (m = d.currentTarget) == null || m.click();
1205
+ h.current || (m = d.currentTarget) == null || m.click();
1206
1206
  }),
1207
1207
  onKeyDown: y(t.onKeyDown, (d) => {
1208
1208
  const m = c.searchRef.current !== "";
@@ -1212,15 +1212,15 @@ var je = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
1212
1212
  );
1213
1213
  }
1214
1214
  );
1215
- Ae.displayName = je;
1215
+ Ae.displayName = Ne;
1216
1216
  var rn = u.forwardRef(
1217
1217
  (t, e) => {
1218
- const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = et(je, n), c = Xt(n), l = u.useRef(null), p = pe(e, l), [f, d] = u.useState(!1), [m, v] = u.useState("");
1218
+ const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = et(Ne, n), c = Xt(n), l = u.useRef(null), h = fe(e, l), [f, d] = u.useState(!1), [m, v] = u.useState("");
1219
1219
  return u.useEffect(() => {
1220
1220
  const x = l.current;
1221
1221
  x && v((x.textContent ?? "").trim());
1222
1222
  }, [s.children]), /* @__PURE__ */ o.jsx(
1223
- le.ItemSlot,
1223
+ de.ItemSlot,
1224
1224
  {
1225
1225
  scope: n,
1226
1226
  disabled: r,
@@ -1233,16 +1233,16 @@ var rn = u.forwardRef(
1233
1233
  "aria-disabled": r || void 0,
1234
1234
  "data-disabled": r ? "" : void 0,
1235
1235
  ...s,
1236
- ref: p,
1236
+ ref: h,
1237
1237
  onPointerMove: y(
1238
1238
  t.onPointerMove,
1239
- de((x) => {
1239
+ he((x) => {
1240
1240
  r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
1241
1241
  })
1242
1242
  ),
1243
1243
  onPointerLeave: y(
1244
1244
  t.onPointerLeave,
1245
- de((x) => i.onItemLeave(x))
1245
+ he((x) => i.onItemLeave(x))
1246
1246
  ),
1247
1247
  onFocus: y(t.onFocus, () => d(!0)),
1248
1248
  onBlur: y(t.onBlur, () => d(!1))
@@ -1258,13 +1258,13 @@ var rn = u.forwardRef(
1258
1258
  Ae,
1259
1259
  {
1260
1260
  role: "menuitemcheckbox",
1261
- "aria-checked": Ne(n) ? "mixed" : n,
1261
+ "aria-checked": De(n) ? "mixed" : n,
1262
1262
  ...a,
1263
1263
  ref: e,
1264
1264
  "data-state": ot(n),
1265
1265
  onSelect: y(
1266
1266
  a.onSelect,
1267
- () => r == null ? void 0 : r(Ne(n) ? !0 : !n),
1267
+ () => r == null ? void 0 : r(De(n) ? !0 : !n),
1268
1268
  { checkForDefaultPrevented: !1 }
1269
1269
  )
1270
1270
  }
@@ -1272,7 +1272,7 @@ var rn = u.forwardRef(
1272
1272
  }
1273
1273
  );
1274
1274
  an.displayName = co;
1275
- var on = "MenuRadioGroup", [uo, lo] = J(
1275
+ var on = "MenuRadioGroup", [uo, lo] = Z(
1276
1276
  on,
1277
1277
  { value: void 0, onValueChange: () => {
1278
1278
  } }
@@ -1307,7 +1307,7 @@ var cn = "MenuRadioItem", un = u.forwardRef(
1307
1307
  }
1308
1308
  );
1309
1309
  un.displayName = cn;
1310
- var rt = "MenuItemIndicator", [ln, ho] = J(
1310
+ var rt = "MenuItemIndicator", [ln, ho] = Z(
1311
1311
  rt,
1312
1312
  { checked: !1 }
1313
1313
  ), dn = u.forwardRef(
@@ -1316,7 +1316,7 @@ var rt = "MenuItemIndicator", [ln, ho] = J(
1316
1316
  return /* @__PURE__ */ o.jsx(
1317
1317
  Ie,
1318
1318
  {
1319
- present: r || Ne(s.checked) || s.checked === !0,
1319
+ present: r || De(s.checked) || s.checked === !0,
1320
1320
  children: /* @__PURE__ */ o.jsx(
1321
1321
  ie.span,
1322
1322
  {
@@ -1347,27 +1347,27 @@ var po = "MenuSeparator", hn = u.forwardRef(
1347
1347
  hn.displayName = po;
1348
1348
  var fo = "MenuArrow", pn = u.forwardRef(
1349
1349
  (t, e) => {
1350
- const { __scopeMenu: n, ...r } = t, a = ve(n);
1350
+ const { __scopeMenu: n, ...r } = t, a = ye(n);
1351
1351
  return /* @__PURE__ */ o.jsx(Er, { ...a, ...r, ref: e });
1352
1352
  }
1353
1353
  );
1354
1354
  pn.displayName = fo;
1355
- var at = "MenuSub", [mo, fn] = J(at), mn = (t) => {
1356
- const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = z(at, e), i = ve(e), [c, l] = u.useState(null), [p, f] = u.useState(null), d = qe(a);
1355
+ var at = "MenuSub", [mo, fn] = Z(at), mn = (t) => {
1356
+ const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = V(at, e), i = ye(e), [c, l] = u.useState(null), [h, f] = u.useState(null), d = qe(a);
1357
1357
  return u.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(It, { ...i, children: /* @__PURE__ */ o.jsx(
1358
1358
  Wt,
1359
1359
  {
1360
1360
  scope: e,
1361
1361
  open: r,
1362
1362
  onOpenChange: d,
1363
- content: p,
1363
+ content: h,
1364
1364
  onContentChange: f,
1365
1365
  children: /* @__PURE__ */ o.jsx(
1366
1366
  mo,
1367
1367
  {
1368
1368
  scope: e,
1369
- contentId: Ee(),
1370
- triggerId: Ee(),
1369
+ contentId: je(),
1370
+ triggerId: je(),
1371
1371
  trigger: c,
1372
1372
  onTriggerChange: l,
1373
1373
  children: n
@@ -1379,7 +1379,7 @@ var at = "MenuSub", [mo, fn] = J(at), mn = (t) => {
1379
1379
  mn.displayName = at;
1380
1380
  var ue = "MenuSubTrigger", gn = u.forwardRef(
1381
1381
  (t, e) => {
1382
- const n = z(ue, t.__scopeMenu), r = xe(ue, t.__scopeMenu), a = fn(ue, t.__scopeMenu), s = et(ue, t.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = s, p = { __scopeMenu: t.__scopeMenu }, f = u.useCallback(() => {
1382
+ const n = V(ue, t.__scopeMenu), r = we(ue, t.__scopeMenu), a = fn(ue, t.__scopeMenu), s = et(ue, t.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = s, h = { __scopeMenu: t.__scopeMenu }, f = u.useCallback(() => {
1383
1383
  i.current && window.clearTimeout(i.current), i.current = null;
1384
1384
  }, []);
1385
1385
  return u.useEffect(() => f, [f]), u.useEffect(() => {
@@ -1387,7 +1387,7 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
1387
1387
  return () => {
1388
1388
  window.clearTimeout(d), l(null);
1389
1389
  };
1390
- }, [c, l]), /* @__PURE__ */ o.jsx(Je, { asChild: !0, ...p, children: /* @__PURE__ */ o.jsx(
1390
+ }, [c, l]), /* @__PURE__ */ o.jsx(Je, { asChild: !0, ...h, children: /* @__PURE__ */ o.jsx(
1391
1391
  rn,
1392
1392
  {
1393
1393
  id: a.triggerId,
@@ -1403,7 +1403,7 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
1403
1403
  },
1404
1404
  onPointerMove: y(
1405
1405
  t.onPointerMove,
1406
- de((d) => {
1406
+ he((d) => {
1407
1407
  s.onItemEnter(d), !d.defaultPrevented && !t.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1408
1408
  n.onOpenChange(!0), f();
1409
1409
  }, 100));
@@ -1411,23 +1411,23 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
1411
1411
  ),
1412
1412
  onPointerLeave: y(
1413
1413
  t.onPointerLeave,
1414
- de((d) => {
1414
+ he((d) => {
1415
1415
  var v, x;
1416
1416
  f();
1417
1417
  const m = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1418
1418
  if (m) {
1419
- const R = (x = n.content) == null ? void 0 : x.dataset.side, F = R === "right", Q = F ? -5 : 5, V = m[F ? "left" : "right"], b = m[F ? "right" : "left"];
1419
+ const _ = (x = n.content) == null ? void 0 : x.dataset.side, b = _ === "right", O = b ? -5 : 5, T = m[b ? "left" : "right"], M = m[b ? "right" : "left"];
1420
1420
  s.onPointerGraceIntentChange({
1421
1421
  area: [
1422
1422
  // Apply a bleed on clientX to ensure that our exit point is
1423
1423
  // consistently within polygon bounds
1424
- { x: d.clientX + Q, y: d.clientY },
1425
- { x: V, y: m.top },
1426
- { x: b, y: m.top },
1427
- { x: b, y: m.bottom },
1428
- { x: V, y: m.bottom }
1424
+ { x: d.clientX + O, y: d.clientY },
1425
+ { x: T, y: m.top },
1426
+ { x: M, y: m.top },
1427
+ { x: M, y: m.bottom },
1428
+ { x: T, y: m.bottom }
1429
1429
  ],
1430
- side: R
1430
+ side: _
1431
1431
  }), window.clearTimeout(c.current), c.current = window.setTimeout(
1432
1432
  () => s.onPointerGraceIntentChange(null),
1433
1433
  300
@@ -1450,14 +1450,14 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
1450
1450
  gn.displayName = ue;
1451
1451
  var vn = "MenuSubContent", xn = u.forwardRef(
1452
1452
  (t, e) => {
1453
- const n = Zt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu), c = fn(vn, t.__scopeMenu), l = u.useRef(null), p = pe(e, l);
1454
- return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1453
+ const n = Zt(I, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(I, t.__scopeMenu), i = we(I, t.__scopeMenu), c = fn(vn, t.__scopeMenu), l = u.useRef(null), h = fe(e, l);
1454
+ return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1455
1455
  tt,
1456
1456
  {
1457
1457
  id: c.contentId,
1458
1458
  "aria-labelledby": c.triggerId,
1459
1459
  ...a,
1460
- ref: p,
1460
+ ref: h,
1461
1461
  align: "start",
1462
1462
  side: i.dir === "rtl" ? "left" : "right",
1463
1463
  disableOutsidePointerEvents: !1,
@@ -1487,11 +1487,11 @@ xn.displayName = vn;
1487
1487
  function yn(t) {
1488
1488
  return t ? "open" : "closed";
1489
1489
  }
1490
- function Ne(t) {
1490
+ function De(t) {
1491
1491
  return t === "indeterminate";
1492
1492
  }
1493
1493
  function ot(t) {
1494
- return Ne(t) ? "indeterminate" : t ? "checked" : "unchecked";
1494
+ return De(t) ? "indeterminate" : t ? "checked" : "unchecked";
1495
1495
  }
1496
1496
  function go(t) {
1497
1497
  const e = document.activeElement;
@@ -1502,11 +1502,11 @@ function vo(t, e) {
1502
1502
  return t.map((n, r) => t[(e + r) % t.length]);
1503
1503
  }
1504
1504
  function xo(t, e, n) {
1505
- const a = e.length > 1 && Array.from(e).every((p) => p === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
1505
+ const a = e.length > 1 && Array.from(e).every((h) => h === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
1506
1506
  let i = vo(t, Math.max(s, 0));
1507
- a.length === 1 && (i = i.filter((p) => p !== n));
1507
+ a.length === 1 && (i = i.filter((h) => h !== n));
1508
1508
  const l = i.find(
1509
- (p) => p.toLowerCase().startsWith(a.toLowerCase())
1509
+ (h) => h.toLowerCase().startsWith(a.toLowerCase())
1510
1510
  );
1511
1511
  return l !== n ? l : void 0;
1512
1512
  }
@@ -1514,8 +1514,8 @@ function yo(t, e) {
1514
1514
  const { x: n, y: r } = t;
1515
1515
  let a = !1;
1516
1516
  for (let s = 0, i = e.length - 1; s < e.length; i = s++) {
1517
- const c = e[s].x, l = e[s].y, p = e[i].x, f = e[i].y;
1518
- l > r != f > r && n < (p - c) * (r - l) / (f - l) + c && (a = !a);
1517
+ const c = e[s].x, l = e[s].y, h = e[i].x, f = e[i].y;
1518
+ l > r != f > r && n < (h - c) * (r - l) / (f - l) + c && (a = !a);
1519
1519
  }
1520
1520
  return a;
1521
1521
  }
@@ -1524,13 +1524,13 @@ function wo(t, e) {
1524
1524
  const n = { x: t.clientX, y: t.clientY };
1525
1525
  return yo(n, e);
1526
1526
  }
1527
- function de(t) {
1527
+ function he(t) {
1528
1528
  return (e) => e.pointerType === "mouse" ? t(e) : void 0;
1529
1529
  }
1530
1530
  var bo = Jt, Mo = Je, Co = en, Po = tn, Ro = nt, _o = nn, Eo = Ae, So = an, jo = sn, No = un, Do = dn, Io = hn, Ao = pn, Oo = mn, To = gn, ko = xn, st = "DropdownMenu", [Fo, Os] = jt(
1531
1531
  st,
1532
1532
  [Yt]
1533
- ), C = Yt(), [Lo, wn] = Fo(st), bn = (t) => {
1533
+ ), P = Yt(), [Lo, wn] = Fo(st), bn = (t) => {
1534
1534
  const {
1535
1535
  __scopeDropdownMenu: e,
1536
1536
  children: n,
@@ -1539,7 +1539,7 @@ var bo = Jt, Mo = Je, Co = en, Po = tn, Ro = nt, _o = nn, Eo = Ae, So = an, jo =
1539
1539
  defaultOpen: s,
1540
1540
  onOpenChange: i,
1541
1541
  modal: c = !0
1542
- } = t, l = C(e), p = u.useRef(null), [f = !1, d] = At({
1542
+ } = t, l = P(e), h = u.useRef(null), [f = !1, d] = At({
1543
1543
  prop: a,
1544
1544
  defaultProp: s,
1545
1545
  onChange: i
@@ -1548,9 +1548,9 @@ var bo = Jt, Mo = Je, Co = en, Po = tn, Ro = nt, _o = nn, Eo = Ae, So = an, jo =
1548
1548
  Lo,
1549
1549
  {
1550
1550
  scope: e,
1551
- triggerId: Ee(),
1552
- triggerRef: p,
1553
- contentId: Ee(),
1551
+ triggerId: je(),
1552
+ triggerRef: h,
1553
+ contentId: je(),
1554
1554
  open: f,
1555
1555
  onOpenChange: d,
1556
1556
  onOpenToggle: u.useCallback(() => d((m) => !m), [d]),
@@ -1562,7 +1562,7 @@ var bo = Jt, Mo = Je, Co = en, Po = tn, Ro = nt, _o = nn, Eo = Ae, So = an, jo =
1562
1562
  bn.displayName = st;
1563
1563
  var Mn = "DropdownMenuTrigger", Cn = u.forwardRef(
1564
1564
  (t, e) => {
1565
- const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(Mn, n), i = C(n);
1565
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(Mn, n), i = P(n);
1566
1566
  return /* @__PURE__ */ o.jsx(Mo, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
1567
1567
  ie.button,
1568
1568
  {
@@ -1588,13 +1588,13 @@ var Mn = "DropdownMenuTrigger", Cn = u.forwardRef(
1588
1588
  );
1589
1589
  Cn.displayName = Mn;
1590
1590
  var Ko = "DropdownMenuPortal", Pn = (t) => {
1591
- const { __scopeDropdownMenu: e, ...n } = t, r = C(e);
1591
+ const { __scopeDropdownMenu: e, ...n } = t, r = P(e);
1592
1592
  return /* @__PURE__ */ o.jsx(Co, { ...r, ...n });
1593
1593
  };
1594
1594
  Pn.displayName = Ko;
1595
1595
  var Rn = "DropdownMenuContent", _n = u.forwardRef(
1596
1596
  (t, e) => {
1597
- const { __scopeDropdownMenu: n, ...r } = t, a = wn(Rn, n), s = C(n), i = u.useRef(!1);
1597
+ const { __scopeDropdownMenu: n, ...r } = t, a = wn(Rn, n), s = P(n), i = u.useRef(!1);
1598
1598
  return /* @__PURE__ */ o.jsx(
1599
1599
  Po,
1600
1600
  {
@@ -1608,7 +1608,7 @@ var Rn = "DropdownMenuContent", _n = u.forwardRef(
1608
1608
  i.current || (l = a.triggerRef.current) == null || l.focus(), i.current = !1, c.preventDefault();
1609
1609
  }),
1610
1610
  onInteractOutside: y(t.onInteractOutside, (c) => {
1611
- const l = c.detail.originalEvent, p = l.button === 0 && l.ctrlKey === !0, f = l.button === 2 || p;
1611
+ const l = c.detail.originalEvent, h = l.button === 0 && l.ctrlKey === !0, f = l.button === 2 || h;
1612
1612
  (!a.modal || f) && (i.current = !0);
1613
1613
  }),
1614
1614
  style: {
@@ -1626,71 +1626,71 @@ var Rn = "DropdownMenuContent", _n = u.forwardRef(
1626
1626
  _n.displayName = Rn;
1627
1627
  var $o = "DropdownMenuGroup", Bo = u.forwardRef(
1628
1628
  (t, e) => {
1629
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1629
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1630
1630
  return /* @__PURE__ */ o.jsx(Ro, { ...a, ...r, ref: e });
1631
1631
  }
1632
1632
  );
1633
1633
  Bo.displayName = $o;
1634
1634
  var Qo = "DropdownMenuLabel", En = u.forwardRef(
1635
1635
  (t, e) => {
1636
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1636
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1637
1637
  return /* @__PURE__ */ o.jsx(_o, { ...a, ...r, ref: e });
1638
1638
  }
1639
1639
  );
1640
1640
  En.displayName = Qo;
1641
1641
  var Uo = "DropdownMenuItem", Sn = u.forwardRef(
1642
1642
  (t, e) => {
1643
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1643
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1644
1644
  return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: e });
1645
1645
  }
1646
1646
  );
1647
1647
  Sn.displayName = Uo;
1648
1648
  var Go = "DropdownMenuCheckboxItem", jn = u.forwardRef((t, e) => {
1649
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1649
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1650
1650
  return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: e });
1651
1651
  });
1652
1652
  jn.displayName = Go;
1653
1653
  var qo = "DropdownMenuRadioGroup", Ho = u.forwardRef((t, e) => {
1654
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1654
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1655
1655
  return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: e });
1656
1656
  });
1657
1657
  Ho.displayName = qo;
1658
1658
  var zo = "DropdownMenuRadioItem", Nn = u.forwardRef((t, e) => {
1659
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1659
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1660
1660
  return /* @__PURE__ */ o.jsx(No, { ...a, ...r, ref: e });
1661
1661
  });
1662
1662
  Nn.displayName = zo;
1663
1663
  var Vo = "DropdownMenuItemIndicator", Dn = u.forwardRef((t, e) => {
1664
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1664
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1665
1665
  return /* @__PURE__ */ o.jsx(Do, { ...a, ...r, ref: e });
1666
1666
  });
1667
1667
  Dn.displayName = Vo;
1668
1668
  var Yo = "DropdownMenuSeparator", In = u.forwardRef((t, e) => {
1669
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1669
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1670
1670
  return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: e });
1671
1671
  });
1672
1672
  In.displayName = Yo;
1673
1673
  var Xo = "DropdownMenuArrow", Wo = u.forwardRef(
1674
1674
  (t, e) => {
1675
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1675
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1676
1676
  return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
1677
1677
  }
1678
1678
  );
1679
1679
  Wo.displayName = Xo;
1680
1680
  var Jo = (t) => {
1681
- const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [c = !1, l] = At({
1681
+ const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = P(e), [c = !1, l] = At({
1682
1682
  prop: r,
1683
1683
  defaultProp: s,
1684
1684
  onChange: a
1685
1685
  });
1686
1686
  return /* @__PURE__ */ o.jsx(Oo, { ...i, open: c, onOpenChange: l, children: n });
1687
1687
  }, Zo = "DropdownMenuSubTrigger", An = u.forwardRef((t, e) => {
1688
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1688
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1689
1689
  return /* @__PURE__ */ o.jsx(To, { ...a, ...r, ref: e });
1690
1690
  });
1691
1691
  An.displayName = Zo;
1692
1692
  var es = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
1693
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1693
+ const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
1694
1694
  return /* @__PURE__ */ o.jsx(
1695
1695
  ko,
1696
1696
  {
@@ -1714,7 +1714,7 @@ const as = ts, os = ns, ss = Tn, is = rs, qn = u.forwardRef(({ className: t, ins
1714
1714
  Un,
1715
1715
  {
1716
1716
  ref: a,
1717
- className: P(
1717
+ className: R(
1718
1718
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1719
1719
  e && "pl-8",
1720
1720
  t
@@ -1731,7 +1731,7 @@ const Hn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1731
1731
  Gn,
1732
1732
  {
1733
1733
  ref: n,
1734
- className: P(
1734
+ className: R(
1735
1735
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1736
1736
  t
1737
1737
  ),
@@ -1744,7 +1744,7 @@ const zn = u.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__
1744
1744
  {
1745
1745
  ref: r,
1746
1746
  sideOffset: e,
1747
- className: P(
1747
+ className: R(
1748
1748
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1749
1749
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1750
1750
  t
@@ -1757,7 +1757,7 @@ const Vn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */
1757
1757
  Ln,
1758
1758
  {
1759
1759
  ref: r,
1760
- className: P(
1760
+ className: R(
1761
1761
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1762
1762
  e && "pl-8",
1763
1763
  t
@@ -1770,7 +1770,7 @@ const cs = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) =>
1770
1770
  Kn,
1771
1771
  {
1772
1772
  ref: a,
1773
- className: P(
1773
+ className: R(
1774
1774
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1775
1775
  t
1776
1776
  ),
@@ -1787,7 +1787,7 @@ const us = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__
1787
1787
  $n,
1788
1788
  {
1789
1789
  ref: r,
1790
- className: P(
1790
+ className: R(
1791
1791
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1792
1792
  t
1793
1793
  ),
@@ -1803,7 +1803,7 @@ const Yn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */
1803
1803
  Fn,
1804
1804
  {
1805
1805
  ref: r,
1806
- className: P(
1806
+ className: R(
1807
1807
  "px-2 py-1.5 text-sm font-semibold",
1808
1808
  e && "pl-8",
1809
1809
  t
@@ -1816,7 +1816,7 @@ const Xn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1816
1816
  Qn,
1817
1817
  {
1818
1818
  ref: n,
1819
- className: P("-mx-1 my-1 h-px bg-muted", t),
1819
+ className: R("-mx-1 my-1 h-px bg-muted", t),
1820
1820
  ...e
1821
1821
  }
1822
1822
  ));
@@ -1840,11 +1840,11 @@ const ls = () => {
1840
1840
  // eslint-disable-next-line react/no-array-index-key
1841
1841
  /* @__PURE__ */ o.jsx(Wn, { item: e }, n)
1842
1842
  )) }) })
1843
- ] }, t.label) : /* @__PURE__ */ o.jsx(Re, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Vn, { children: t.label }, t.label) }), Jn = kt(function() {
1844
- const [e, n] = Tr(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = fr(), { pathname: i } = W(), c = Ve(), { page: l, plugins: p } = c, f = e ? ha : pa;
1843
+ ] }, t.label) : /* @__PURE__ */ o.jsx(Ee, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Vn, { children: t.label }, t.label) }), Jn = kt(function() {
1844
+ const [e, n] = Tr(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = fr(), { pathname: i } = J(), c = Ve(), { page: l, plugins: h } = c, f = e ? ha : pa;
1845
1845
  return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1846
1846
  /* @__PURE__ */ o.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: [
1847
- /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Re, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
1847
+ /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Ee, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
1848
1848
  (l == null ? void 0 : l.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1849
1849
  /* @__PURE__ */ o.jsx(
1850
1850
  "img",
@@ -1852,7 +1852,7 @@ const ls = () => {
1852
1852
  src: l.logo.src.light,
1853
1853
  alt: l.logo.alt ?? l.pageTitle,
1854
1854
  style: { width: l.logo.width },
1855
- className: P("h-10", e && "hidden"),
1855
+ className: R("h-10", e && "hidden"),
1856
1856
  loading: "lazy"
1857
1857
  }
1858
1858
  ),
@@ -1862,7 +1862,7 @@ const ls = () => {
1862
1862
  src: l.logo.src.dark,
1863
1863
  alt: l.logo.alt ?? l.pageTitle,
1864
1864
  style: { width: l.logo.width },
1865
- className: P("h-10", !e && "hidden"),
1865
+ className: R("h-10", !e && "hidden"),
1866
1866
  loading: "lazy"
1867
1867
  }
1868
1868
  )
@@ -1873,7 +1873,7 @@ const ls = () => {
1873
1873
  /* @__PURE__ */ o.jsx("div", { className: "w-full max-w-prose" }),
1874
1874
  /* @__PURE__ */ o.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1875
1875
  s && !r ? /* @__PURE__ */ o.jsx(Be, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(
1876
- Re,
1876
+ Ee,
1877
1877
  {
1878
1878
  to: {
1879
1879
  pathname: "/signin",
@@ -1886,7 +1886,7 @@ const ls = () => {
1886
1886
  /* @__PURE__ */ o.jsxs(zn, { className: "w-56", children: [
1887
1887
  /* @__PURE__ */ o.jsx(Yn, { children: "My Account" }),
1888
1888
  /* @__PURE__ */ o.jsx(Xn, {}),
1889
- p.filter((d) => Ba(d)).flatMap((d) => d.getProfileMenuItems(c)).map((d) => /* @__PURE__ */ o.jsx(Wn, { item: d }, d.label))
1889
+ h.filter((d) => Ba(d)).flatMap((d) => d.getProfileMenuItems(c)).map((d) => /* @__PURE__ */ o.jsx(Wn, { item: d }, d.label))
1890
1890
  ] })
1891
1891
  ] }),
1892
1892
  /* @__PURE__ */ o.jsx(
@@ -1910,36 +1910,42 @@ const ls = () => {
1910
1910
  children: t,
1911
1911
  ...e
1912
1912
  }) => {
1913
- var d, m;
1913
+ var x, _;
1914
1914
  const n = Le(
1915
1915
  () => ({ ...Zn, ...e.overrides }),
1916
1916
  [e.overrides]
1917
1917
  ), r = Le(
1918
1918
  () => {
1919
- var v;
1920
- return { ...kr, ...(v = e.mdx) == null ? void 0 : v.components };
1919
+ var b;
1920
+ return { ...kr, ...(b = e.mdx) == null ? void 0 : b.components };
1921
1921
  },
1922
- [(d = e.mdx) == null ? void 0 : d.components]
1923
- ), { stagger: a } = Gr(Qe), [s, i] = Se(!1), c = Le(
1924
- () => s ? { stagger: !0 } : { stagger: a },
1925
- [a, s]
1926
- ), l = xr();
1927
- se(() => {
1928
- s || i(!0);
1929
- }, [s, l.location]);
1930
- const [p] = Se(() => new Ha(e)), f = (m = e.plugins) == null ? void 0 : m.filter(Ga).map((v, x) => {
1931
- var R;
1932
- return /* @__PURE__ */ o.jsx(qr, { children: (R = v.getHead) == null ? void 0 : R.call(v) }, x);
1922
+ [(x = e.mdx) == null ? void 0 : x.components]
1923
+ ), [a, s] = le(!1), { stagger: i } = Gr(Qe), [c, l] = le(!1), h = ge("idle"), f = Le(
1924
+ () => c ? { stagger: !0 } : { stagger: i },
1925
+ [i, c]
1926
+ ), d = xr();
1927
+ W(() => {
1928
+ c || l(!0);
1929
+ }, [c, d.location]);
1930
+ const [m] = le(() => new Ha(e));
1931
+ W(() => {
1932
+ h.current !== "pending" && (h.current = "pending", m.initialize().then(() => {
1933
+ h.current = "done", s(!0);
1934
+ }));
1935
+ }, [m]);
1936
+ const v = (_ = e.plugins) == null ? void 0 : _.filter(Ga).map((b, O) => {
1937
+ var T;
1938
+ return /* @__PURE__ */ o.jsx(qr, { children: (T = b.getHead) == null ? void 0 : T.call(b) }, O);
1933
1939
  });
1934
- return /* @__PURE__ */ o.jsxs(oa, { client: zt, children: [
1935
- /* @__PURE__ */ o.jsx(Ge, { children: f }),
1936
- /* @__PURE__ */ o.jsx(Qe.Provider, { value: c, children: /* @__PURE__ */ o.jsx(sa, { value: p, children: /* @__PURE__ */ o.jsx(ur, { components: r, children: /* @__PURE__ */ o.jsx(Fr, { children: /* @__PURE__ */ o.jsx(hs, { value: n, children: /* @__PURE__ */ o.jsx(mr, { slotlets: e.slotlets, children: /* @__PURE__ */ o.jsx(Lr, { children: t ?? /* @__PURE__ */ o.jsx(St, {}) }) }) }) }) }) }) })
1937
- ] });
1940
+ return a ? /* @__PURE__ */ o.jsxs(oa, { client: zt, children: [
1941
+ /* @__PURE__ */ o.jsx(Ge, { children: v }),
1942
+ /* @__PURE__ */ o.jsx(Qe.Provider, { value: f, children: /* @__PURE__ */ o.jsx(sa, { value: m, children: /* @__PURE__ */ o.jsx(ur, { components: r, children: /* @__PURE__ */ o.jsx(Fr, { children: /* @__PURE__ */ o.jsx(hs, { value: n, children: /* @__PURE__ */ o.jsx(mr, { slotlets: e.slotlets, children: /* @__PURE__ */ o.jsx(Lr, { children: t ?? /* @__PURE__ */ o.jsx(St, {}) }) }) }) }) }) }) })
1943
+ ] }) : null;
1938
1944
  }, fs = kt(ps), er = (t) => /* @__PURE__ */ o.jsx(Ka, { FallbackComponent: za, children: /* @__PURE__ */ o.jsx(fs, { ...t }) });
1939
1945
  er.displayName = "DevPortal";
1940
1946
  const ms = () => {
1941
- const t = W(), { setActiveAnchor: e } = He();
1942
- se(() => {
1947
+ const t = J(), { setActiveAnchor: e } = He();
1948
+ W(() => {
1943
1949
  if (!t.hash) return;
1944
1950
  const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
1945
1951
  if (r) {
@@ -1955,8 +1961,8 @@ const ms = () => {
1955
1961
  return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
1956
1962
  }, [t.hash, e]);
1957
1963
  }, gs = () => {
1958
- const t = W(), e = De(t.pathname);
1959
- se(() => {
1964
+ const t = J(), e = ge(t.pathname);
1965
+ W(() => {
1960
1966
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1961
1967
  }, [t.pathname]);
1962
1968
  }, tr = ({
@@ -1964,21 +1970,21 @@ const ms = () => {
1964
1970
  defaultOpen: e,
1965
1971
  path: n
1966
1972
  }) => {
1967
- const [r, a] = Se(e), s = W(), i = De(s.pathname), [c, l] = Se(!1);
1968
- se(() => {
1973
+ const [r, a] = le(e), s = J(), i = ge(s.pathname), [c, l] = le(!1);
1974
+ W(() => {
1969
1975
  !r && i.current !== s.pathname && a(Ye(t, s.pathname, n)), i.current = s.pathname;
1970
1976
  }, [r, t, n, s.pathname]);
1971
- const p = () => {
1977
+ const h = () => {
1972
1978
  l(!0), a((f) => !f);
1973
1979
  };
1974
- return se(() => {
1980
+ return W(() => {
1975
1981
  l(!1);
1976
1982
  }, []), {
1977
1983
  open: r,
1978
- onOpenChange: p,
1984
+ onOpenChange: h,
1979
1985
  "data-animate": c
1980
1986
  };
1981
- }, Pe = Kr(
1987
+ }, _e = Kr(
1982
1988
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1983
1989
  {
1984
1990
  variants: {
@@ -1999,22 +2005,22 @@ const ms = () => {
1999
2005
  currentTopNavItem: r,
2000
2006
  basePath: a = ""
2001
2007
  }) => {
2002
- const s = wt(e) ? Ut(a, e.path) : "", i = W(), c = tr({
2008
+ const s = wt(e) ? Ut(a, e.path) : "", i = J(), c = tr({
2003
2009
  item: e,
2004
2010
  path: s,
2005
2011
  defaultOpen: () => Ye(e, i.pathname, a)
2006
2012
  });
2007
2013
  if (ia(e)) {
2008
- const p = P(
2014
+ const h = R(
2009
2015
  "flex items-center gap-2",
2010
- Pe({
2016
+ _e({
2011
2017
  isActive: e.href === i.pathname
2012
2018
  })
2013
2019
  );
2014
2020
  return e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
2015
2021
  "a",
2016
2022
  {
2017
- className: p,
2023
+ className: h,
2018
2024
  href: e.href,
2019
2025
  target: "_blank",
2020
2026
  rel: "noopener noreferrer",
@@ -2023,7 +2029,7 @@ const ms = () => {
2023
2029
  /* @__PURE__ */ o.jsx(da, { size: 14 })
2024
2030
  ]
2025
2031
  }
2026
- ) : /* @__PURE__ */ o.jsx($e, { className: p, to: e.href, children: e.label });
2032
+ ) : /* @__PURE__ */ o.jsx($e, { className: h, to: e.href, children: e.label });
2027
2033
  }
2028
2034
  const l = /* @__PURE__ */ o.jsxs("div", { className: "flex justify-between w-full", children: [
2029
2035
  /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
@@ -2042,30 +2048,30 @@ const ms = () => {
2042
2048
  /* @__PURE__ */ o.jsx(
2043
2049
  Kt,
2044
2050
  {
2045
- className: P(
2051
+ className: R(
2046
2052
  "group text-start",
2047
- Pe({ isActive: !1 })
2053
+ _e({ isActive: !1 })
2048
2054
  ),
2049
2055
  children: l
2050
2056
  }
2051
2057
  ),
2052
- /* @__PURE__ */ o.jsx($t, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((p) => /* @__PURE__ */ o.jsx(
2058
+ /* @__PURE__ */ o.jsx($t, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((h) => /* @__PURE__ */ o.jsx(
2053
2059
  nr,
2054
2060
  {
2055
2061
  category: t,
2056
- item: p,
2062
+ item: h,
2057
2063
  activeAnchor: n,
2058
2064
  currentTopNavItem: r,
2059
2065
  basePath: s
2060
2066
  },
2061
- wt(p) ? p.path : p.href
2067
+ wt(h) ? h.path : h.href
2062
2068
  )) }) })
2063
2069
  ] }) : e.path.startsWith("#") ? /* @__PURE__ */ o.jsx(
2064
2070
  lr,
2065
2071
  {
2066
2072
  to: e.path,
2067
2073
  [vs]: e.path,
2068
- className: Pe({
2074
+ className: _e({
2069
2075
  isActive: e.path.slice(1) === n,
2070
2076
  isMuted: e.muted
2071
2077
  }),
@@ -2074,7 +2080,7 @@ const ms = () => {
2074
2080
  ) : /* @__PURE__ */ o.jsx(
2075
2081
  $e,
2076
2082
  {
2077
- className: ({ isActive: p }) => Pe({ isActive: p }),
2083
+ className: ({ isActive: h }) => _e({ isActive: h }),
2078
2084
  to: s,
2079
2085
  children: l
2080
2086
  }
@@ -2082,7 +2088,7 @@ const ms = () => {
2082
2088
  }, xs = ({
2083
2089
  category: t
2084
2090
  }) => {
2085
- const { activeAnchor: e } = He(), n = ca(), r = W(), a = t.collapsible ?? !0, s = tr({
2091
+ const { activeAnchor: e } = He(), n = ca(), r = J(), a = t.collapsible ?? !0, s = tr({
2086
2092
  item: t,
2087
2093
  path: (n == null ? void 0 : n.path) ?? "",
2088
2094
  defaultOpen: () => !a || t.expanded || Ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
@@ -2091,7 +2097,7 @@ const ms = () => {
2091
2097
  t.label.length > 0 ? /* @__PURE__ */ o.jsx(Kt, { asChild: a, disabled: !a, children: /* @__PURE__ */ o.jsxs(
2092
2098
  "h5",
2093
2099
  {
2094
- className: P(
2100
+ className: R(
2095
2101
  "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
2096
2102
  a ? "hover:bg-accent" : "cursor-auto"
2097
2103
  ),
@@ -2124,7 +2130,7 @@ const ms = () => {
2124
2130
  "nav",
2125
2131
  {
2126
2132
  "data-navigation": String(r),
2127
- className: P(
2133
+ className: R(
2128
2134
  "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
2129
2135
  n
2130
2136
  ),
@@ -2133,24 +2139,24 @@ const ms = () => {
2133
2139
  }
2134
2140
  );
2135
2141
  }), ws = () => {
2136
- const t = De(null), e = ua();
2142
+ const t = ge(null), e = ua();
2137
2143
  return /* @__PURE__ */ o.jsxs(
2138
2144
  ys,
2139
2145
  {
2140
2146
  ref: t,
2141
2147
  pushMainContent: e.data.items.length > 0,
2142
2148
  children: [
2143
- /* @__PURE__ */ o.jsx(_e, { name: "zudoku-before-navigation" }),
2149
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-navigation" }),
2144
2150
  e.data.items.map((n) => /* @__PURE__ */ o.jsx(xs, { category: n }, n.label)),
2145
- /* @__PURE__ */ o.jsx(_e, { name: "zudoku-after-navigation" })
2151
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-navigation" })
2146
2152
  ]
2147
2153
  }
2148
2154
  );
2149
2155
  }, bs = ({ children: t }) => {
2150
- const e = W(), { setActiveAnchor: n } = He(), { meta: r } = Ve();
2156
+ const e = J(), { setActiveAnchor: n } = He(), { meta: r } = Ve();
2151
2157
  ms(), gs();
2152
- const a = De(e.pathname);
2153
- return se(() => {
2158
+ const a = ge(e.pathname);
2159
+ return W(() => {
2154
2160
  e.pathname !== a.current && n(""), a.current = e.pathname;
2155
2161
  }, [e.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2156
2162
  /* @__PURE__ */ o.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
@@ -2167,16 +2173,16 @@ const ms = () => {
2167
2173
  /* @__PURE__ */ o.jsxs(
2168
2174
  "main",
2169
2175
  {
2170
- className: P(
2176
+ className: R(
2171
2177
  "dark:border-white/10 translate-x-0 h-full",
2172
2178
  "lg:overflow-visible",
2173
2179
  "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
2174
2180
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
2175
2181
  ),
2176
2182
  children: [
2177
- /* @__PURE__ */ o.jsx(_e, { name: "zudoku-before-content" }),
2183
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-content" }),
2178
2184
  t ?? /* @__PURE__ */ o.jsx(St, {}),
2179
- /* @__PURE__ */ o.jsx(_e, { name: "zudoku-after-content" })
2185
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-content" })
2180
2186
  ]
2181
2187
  }
2182
2188
  )
@@ -2184,7 +2190,7 @@ const ms = () => {
2184
2190
  }
2185
2191
  ) })
2186
2192
  ] });
2187
- }, Ts = dr, ks = $r, Fs = er, Ls = bs, Ks = Re, $s = gr, Bs = fa, Qs = Da, Us = Ia, Gs = Be, qs = Ge;
2193
+ }, Ts = dr, ks = $r, Fs = er, Ls = bs, Ks = Ee, $s = gr, Bs = fa, Qs = Da, Us = Ia, Gs = Be, qs = Ge;
2188
2194
  export {
2189
2195
  Qs as Bootstrap,
2190
2196
  Us as BootstrapStatic,