zudoku 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/lib/components/navigation/SidebarCategory.js +3 -3
  2. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  3. package/dist/lib/oas/graphql/index.d.ts +1 -0
  4. package/dist/lib/oas/graphql/index.js +41 -23
  5. package/dist/lib/oas/graphql/index.js.map +1 -1
  6. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  7. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  8. package/dist/lib/plugins/openapi/{Route.d.ts → OpenApiRoute.d.ts} +2 -1
  9. package/dist/lib/plugins/openapi/{Route.js → OpenApiRoute.js} +3 -4
  10. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +1 -0
  11. package/dist/lib/plugins/openapi/OperationList.d.ts +4 -1
  12. package/dist/lib/plugins/openapi/OperationList.js +20 -14
  13. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  14. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +1 -1
  15. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -0
  16. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  17. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  18. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  19. package/dist/lib/plugins/openapi/SidecarExamples.js +17 -14
  20. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  21. package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -2
  22. package/dist/lib/plugins/openapi/graphql/gql.js +3 -2
  23. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  24. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +47 -26
  25. package/dist/lib/plugins/openapi/graphql/graphql.js +20 -16
  26. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  27. package/dist/lib/plugins/openapi/index.js +97 -54
  28. package/dist/lib/plugins/openapi/index.js.map +1 -1
  29. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -0
  30. package/dist/lib/util/joinUrl.js +1 -1
  31. package/dist/lib/util/joinUrl.js.map +1 -1
  32. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  33. package/dist/lib/util/joinUrl.test.js +43 -0
  34. package/dist/lib/util/joinUrl.test.js.map +1 -0
  35. package/dist/vite/plugin-api.js +7 -1
  36. package/dist/vite/plugin-api.js.map +1 -1
  37. package/lib/{AuthenticationPlugin-CO_YCd2x.js → AuthenticationPlugin-Du8cLBSr.js} +2 -2
  38. package/lib/{AuthenticationPlugin-CO_YCd2x.js.map → AuthenticationPlugin-Du8cLBSr.js.map} +1 -1
  39. package/lib/{Markdown-B8o9Qz4q.js → Markdown-Cyrx_JrO.js} +8 -9
  40. package/lib/{Markdown-B8o9Qz4q.js.map → Markdown-Cyrx_JrO.js.map} +1 -1
  41. package/lib/{MdxPage-BxRt3Ly7.js → MdxPage-DewragjB.js} +5 -5
  42. package/lib/{MdxPage-BxRt3Ly7.js.map → MdxPage-DewragjB.js.map} +1 -1
  43. package/lib/OpenApiRoute-UrC_t0e5.js +36 -0
  44. package/lib/OpenApiRoute-UrC_t0e5.js.map +1 -0
  45. package/lib/{OperationList-DH-zIgtq.js → OperationList-D_ejrepA.js} +1373 -1372
  46. package/lib/OperationList-D_ejrepA.js.map +1 -0
  47. package/lib/{Select-B7UXR0SB.js → Select-CnCZ4WhS.js} +3 -3
  48. package/lib/{Select-B7UXR0SB.js.map → Select-CnCZ4WhS.js.map} +1 -1
  49. package/lib/{SlotletProvider-CtIp8rP3.js → SlotletProvider-mQiPDQIH.js} +2 -2
  50. package/lib/{SlotletProvider-CtIp8rP3.js.map → SlotletProvider-mQiPDQIH.js.map} +1 -1
  51. package/lib/{SyntaxHighlight-C1w1QPdY.js → SyntaxHighlight-B0L4SC_N.js} +11 -5
  52. package/lib/SyntaxHighlight-B0L4SC_N.js.map +1 -0
  53. package/lib/{ZudokuContext-8jts0fF3.js → ZudokuContext-BTUJPpQl.js} +21 -21
  54. package/lib/{ZudokuContext-8jts0fF3.js.map → ZudokuContext-BTUJPpQl.js.map} +1 -1
  55. package/lib/{createServer-BV0tHzLK.js → createServer-BydbkTsd.js} +821 -808
  56. package/lib/{createServer-BV0tHzLK.js.map → createServer-BydbkTsd.js.map} +1 -1
  57. package/lib/{hook-BG02esyv.js → hook-FT3SJLe_.js} +2 -2
  58. package/lib/{hook-BG02esyv.js.map → hook-FT3SJLe_.js.map} +1 -1
  59. package/lib/{index-LNp6rxyU.js → index-CjJS0l4l.js} +2 -2
  60. package/lib/{index-LNp6rxyU.js.map → index-CjJS0l4l.js.map} +1 -1
  61. package/lib/{index-DmqsUPcm.js → index-DGugJOLc.js} +836 -777
  62. package/lib/index-DGugJOLc.js.map +1 -0
  63. package/lib/{joinUrl-BTy9bvoK.js → joinUrl-nLx9pD-Z.js} +2 -2
  64. package/lib/joinUrl-nLx9pD-Z.js.map +1 -0
  65. package/lib/{useScrollToAnchor-Bl6mz9_x.js → useScrollToAnchor-eRM9tVvD.js} +10 -9
  66. package/lib/useScrollToAnchor-eRM9tVvD.js.map +1 -0
  67. package/lib/zudoku.auth-clerk.js +1 -1
  68. package/lib/zudoku.auth-openid.js +3 -3
  69. package/lib/zudoku.components.js +153 -154
  70. package/lib/zudoku.components.js.map +1 -1
  71. package/lib/zudoku.plugin-api-catalog.js +3 -3
  72. package/lib/zudoku.plugin-api-keys.js +4 -4
  73. package/lib/zudoku.plugin-custom-pages.js +1 -1
  74. package/lib/zudoku.plugin-markdown.js +1 -1
  75. package/lib/zudoku.plugin-openapi.js +6 -5
  76. package/lib/zudoku.plugin-openapi.js.map +1 -1
  77. package/package.json +1 -1
  78. package/src/lib/components/navigation/SidebarCategory.tsx +3 -2
  79. package/src/lib/oas/graphql/index.ts +63 -35
  80. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  81. package/src/lib/plugins/openapi/{Route.tsx → OpenApiRoute.tsx} +3 -3
  82. package/src/lib/plugins/openapi/OperationList.tsx +34 -12
  83. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -0
  84. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  85. package/src/lib/plugins/openapi/SidecarExamples.tsx +24 -24
  86. package/src/lib/plugins/openapi/graphql/gql.ts +12 -4
  87. package/src/lib/plugins/openapi/graphql/graphql.ts +66 -43
  88. package/src/lib/plugins/openapi/index.tsx +125 -67
  89. package/src/lib/plugins/openapi/interfaces.ts +1 -0
  90. package/src/lib/util/joinUrl.test.ts +62 -0
  91. package/src/lib/util/joinUrl.ts +1 -1
  92. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  93. package/lib/OperationList-DH-zIgtq.js.map +0 -1
  94. package/lib/Route-DJ0ZlVq1.js +0 -35
  95. package/lib/Route-DJ0ZlVq1.js.map +0 -1
  96. package/lib/StaggeredRender-DgsamH_G.js +0 -17
  97. package/lib/StaggeredRender-DgsamH_G.js.map +0 -1
  98. package/lib/SyntaxHighlight-C1w1QPdY.js.map +0 -1
  99. package/lib/index-Bn6Lc9tq.js +0 -9
  100. package/lib/index-Bn6Lc9tq.js.map +0 -1
  101. package/lib/index-DmqsUPcm.js.map +0 -1
  102. package/lib/joinUrl-BTy9bvoK.js.map +0 -1
  103. package/lib/useScrollToAnchor-Bl6mz9_x.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  var ot = Object.defineProperty;
2
- var fe = (t) => {
2
+ var ge = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var lt = (t, e, n) => e in t ? ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var P = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n), me = (t, e, n) => e.has(t) || fe("Cannot " + n);
7
- var l = (t, e, n) => (me(t, e, "read from private field"), n ? n.call(t) : e.get(t)), j = (t, e, n) => e.has(t) ? fe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), y = (t, e, n, s) => (me(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n);
6
+ var P = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n), me = (t, e, n) => e.has(t) || ge("Cannot " + n);
7
+ var l = (t, e, n) => (me(t, e, "read from private field"), n ? n.call(t) : e.get(t)), j = (t, e, n) => e.has(t) ? ge("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), y = (t, e, n, s) => (me(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n);
8
8
  var _ = (t, e, n, s) => ({
9
9
  set _(a) {
10
10
  y(t, e, a, n);
@@ -13,39 +13,38 @@ var _ = (t, e, n, s) => ({
13
13
  return l(t, e, s);
14
14
  }
15
15
  });
16
- import { a as Qe, H as ie } from "./index.esm-9-TF9KQB.js";
17
- import { R as ct, S as ut, u as Ie, h as oe, N as dt, L as le, O as Te } from "./chunk-SYFQ2XB5-BPvC-soB.js";
18
- import { M as ht, u as Z } from "./hook-BG02esyv.js";
19
- import { E as qe, S as M, a as ft, R as mt } from "./SlotletProvider-CtIp8rP3.js";
16
+ import { a as Ie, H as ie } from "./index.esm-9-TF9KQB.js";
17
+ import { R as ct, S as ut, u as Te, h as oe, N as dt, L as le, O as qe } from "./chunk-SYFQ2XB5-BPvC-soB.js";
18
+ import { M as ht, u as Z } from "./hook-FT3SJLe_.js";
19
+ import { E as Re, S as M, a as ft, R as gt } from "./SlotletProvider-mQiPDQIH.js";
20
20
  import { j as r } from "./jsx-runtime-Bdg6XQ1m.js";
21
- import { Button as gt } from "./ui/Button.js";
21
+ import { Button as mt } from "./ui/Button.js";
22
22
  import { Callout as pt } from "./ui/Callout.js";
23
- import { S as Re, k as Fe, Q as xt, n as w, m as ge, l as pe, o as N, p as yt, q as vt, r as bt, t as jt, v as xe, w as ye, x as wt, h as ve, y as be, z as Pt, e as Ct, A as ze, a as I, B as Be, C as St, j as se, u as kt, Z as Dt, D as Mt, E as Nt } from "./ZudokuContext-8jts0fF3.js";
23
+ import { S as Fe, m as ze, Q as xt, n as w, o as pe, p as xe, q as N, r as yt, t as vt, v as bt, w as jt, x as ye, y as ve, z as wt, h as be, A as je, B as Pt, e as Ct, C as Be, a as I, D as He, E as St, j as se, u as kt, Z as Dt, F as Mt, G as Nt } from "./ZudokuContext-BTUJPpQl.js";
24
24
  import * as K from "react";
25
- import Ot, { StrictMode as He, useRef as ce, useEffect as U, useState as z, useCallback as Et, Suspense as ue, memo as Le, forwardRef as At, createContext as Ke, Component as Qt, createElement as je, useMemo as ee, useContext as It, Fragment as Tt } from "react";
25
+ import Ot, { createContext as ce, StrictMode as Le, useRef as ue, useEffect as U, useState as z, useCallback as Et, Suspense as de, memo as Ke, forwardRef as At, Component as Qt, createElement as we, useMemo as ee, useContext as It, Fragment as Tt } from "react";
26
26
  import * as qt from "react-dom";
27
- import { S as re } from "./StaggeredRender-DgsamH_G.js";
28
27
  import { C as $e } from "./ClientOnly-E7hGysn1.js";
29
28
  import { CircleXIcon as Rt, SearchIcon as Ft, MoonStarIcon as zt, SunIcon as Bt, MenuIcon as Ht, PanelLeftIcon as Lt } from "lucide-react";
30
29
  import { Drawer as Ze, DrawerTrigger as Ue, DrawerContent as Ye, DrawerTitle as Xe } from "./ui/Drawer.js";
31
30
  import { c as B } from "./cn-qaFjX9_3.js";
32
- import { S as we, a as Kt, M as $t, u as Zt } from "./useScrollToAnchor-Bl6mz9_x.js";
33
- import { u as Ut, a as Yt, V as Xt, M as Vt } from "./Markdown-B8o9Qz4q.js";
34
- import { B as ae, S as Ve } from "./Spinner-BlzrEEk1.js";
35
- import { DropdownMenu as _t, DropdownMenuTrigger as Wt, DropdownMenuContent as Jt, DropdownMenuLabel as Gt, DropdownMenuSeparator as te, DropdownMenuSub as en, DropdownMenuSubTrigger as tn, DropdownMenuPortal as nn, DropdownMenuSubContent as sn, DropdownMenuItem as rn } from "./ui/DropdownMenu.js";
36
- import { j as Pe } from "./joinUrl-BTy9bvoK.js";
31
+ import { S as Pe, a as Kt, M as $t, u as Zt } from "./useScrollToAnchor-eRM9tVvD.js";
32
+ import { u as Ut, a as Yt, V as Xt, M as Vt } from "./Markdown-Cyrx_JrO.js";
33
+ import { B as re, S as Ve } from "./Spinner-BlzrEEk1.js";
34
+ import { DropdownMenu as _t, DropdownMenuTrigger as Wt, DropdownMenuContent as Gt, DropdownMenuLabel as Jt, DropdownMenuSeparator as te, DropdownMenuSub as en, DropdownMenuSubTrigger as tn, DropdownMenuPortal as nn, DropdownMenuSubContent as sn, DropdownMenuItem as rn } from "./ui/DropdownMenu.js";
35
+ import { j as Ce } from "./joinUrl-nLx9pD-Z.js";
37
36
  import { VisuallyHidden as _e } from "@radix-ui/react-visually-hidden";
38
- import { z as an, J as on } from "./SyntaxHighlight-C1w1QPdY.js";
37
+ import { z as an, J as on } from "./SyntaxHighlight-B0L4SC_N.js";
39
38
  import { a as ln } from "./index-Djenk2Hj.js";
40
39
  import { Z as cn } from "./invariant-Caa8-XvF.js";
41
- var D, Oe, un = (Oe = class extends Re {
40
+ var D, Ee, un = (Ee = class extends Fe {
42
41
  constructor(e = {}) {
43
42
  super();
44
43
  j(this, D);
45
44
  this.config = e, y(this, D, /* @__PURE__ */ new Map());
46
45
  }
47
46
  build(e, n, s) {
48
- const a = n.queryKey, o = n.queryHash ?? Fe(a, n);
47
+ const a = n.queryKey, o = n.queryHash ?? ze(a, n);
49
48
  let i = this.get(o);
50
49
  return i || (i = new xt({
51
50
  cache: this,
@@ -82,12 +81,12 @@ var D, Oe, un = (Oe = class extends Re {
82
81
  find(e) {
83
82
  const n = { exact: !0, ...e };
84
83
  return this.getAll().find(
85
- (s) => ge(n, s)
84
+ (s) => pe(n, s)
86
85
  );
87
86
  }
88
87
  findAll(e = {}) {
89
88
  const n = this.getAll();
90
- return Object.keys(e).length > 0 ? n.filter((s) => ge(e, s)) : n;
89
+ return Object.keys(e).length > 0 ? n.filter((s) => pe(e, s)) : n;
91
90
  }
92
91
  notify(e) {
93
92
  w.batch(() => {
@@ -110,7 +109,7 @@ var D, Oe, un = (Oe = class extends Re {
110
109
  });
111
110
  });
112
111
  }
113
- }, D = new WeakMap(), Oe), O, S, Y, Ee, dn = (Ee = class extends Re {
112
+ }, D = new WeakMap(), Ee), O, S, Y, Ae, dn = (Ae = class extends Fe {
114
113
  constructor(e = {}) {
115
114
  super();
116
115
  j(this, O);
@@ -182,11 +181,11 @@ var D, Oe, un = (Oe = class extends Re {
182
181
  find(e) {
183
182
  const n = { exact: !0, ...e };
184
183
  return this.getAll().find(
185
- (s) => pe(n, s)
184
+ (s) => xe(n, s)
186
185
  );
187
186
  }
188
187
  findAll(e = {}) {
189
- return this.getAll().filter((n) => pe(e, n));
188
+ return this.getAll().filter((n) => xe(e, n));
190
189
  }
191
190
  notify(e) {
192
191
  w.batch(() => {
@@ -203,28 +202,28 @@ var D, Oe, un = (Oe = class extends Re {
203
202
  )
204
203
  );
205
204
  }
206
- }, O = new WeakMap(), S = new WeakMap(), Y = new WeakMap(), Ee);
205
+ }, O = new WeakMap(), S = new WeakMap(), Y = new WeakMap(), Ae);
207
206
  function W(t) {
208
207
  var e;
209
208
  return (e = t.options.scope) == null ? void 0 : e.id;
210
209
  }
211
- function Ce(t) {
210
+ function Se(t) {
212
211
  return {
213
212
  onFetch: (e, n) => {
214
- var m, f, h, x, v;
215
- const s = e.options, a = (h = (f = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((x = e.state.data) == null ? void 0 : x.pages) || [], i = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
213
+ var g, f, h, x, v;
214
+ const s = e.options, a = (h = (f = (g = e.fetchOptions) == null ? void 0 : g.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((x = e.state.data) == null ? void 0 : x.pages) || [], i = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
216
215
  let u = { pages: [], pageParams: [] }, d = 0;
217
216
  const c = async () => {
218
- let g = !1;
217
+ let m = !1;
219
218
  const C = (b) => {
220
219
  Object.defineProperty(b, "signal", {
221
220
  enumerable: !0,
222
- get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
223
- g = !0;
221
+ get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
222
+ m = !0;
224
223
  }), e.signal)
225
224
  });
226
225
  }, X = yt(e.options, e.fetchOptions), H = async (b, k, L) => {
227
- if (g)
226
+ if (m)
228
227
  return Promise.reject();
229
228
  if (k == null && b.pages.length)
230
229
  return Promise.resolve(b);
@@ -237,14 +236,14 @@ function Ce(t) {
237
236
  C(V);
238
237
  const it = await X(
239
238
  V
240
- ), { maxPages: de } = e.options, he = L ? vt : bt;
239
+ ), { maxPages: he } = e.options, fe = L ? vt : bt;
241
240
  return {
242
- pages: he(b.pages, it, de),
243
- pageParams: he(b.pageParams, k, de)
241
+ pages: fe(b.pages, it, he),
242
+ pageParams: fe(b.pageParams, k, he)
244
243
  };
245
244
  };
246
245
  if (a && o.length) {
247
- const b = a === "backward", k = b ? hn : Se, L = {
246
+ const b = a === "backward", k = b ? hn : ke, L = {
248
247
  pages: o,
249
248
  pageParams: i
250
249
  }, V = k(s, L);
@@ -252,7 +251,7 @@ function Ce(t) {
252
251
  } else {
253
252
  const b = t ?? o.length;
254
253
  do {
255
- const k = d === 0 ? i[0] ?? s.initialPageParam : Se(s, u);
254
+ const k = d === 0 ? i[0] ?? s.initialPageParam : ke(s, u);
256
255
  if (d > 0 && k == null)
257
256
  break;
258
257
  u = await H(u, k), d++;
@@ -261,9 +260,9 @@ function Ce(t) {
261
260
  return u;
262
261
  };
263
262
  e.options.persister ? e.fetchFn = () => {
264
- var g, C;
265
- return (C = (g = e.options).persister) == null ? void 0 : C.call(
266
- g,
263
+ var m, C;
264
+ return (C = (m = e.options).persister) == null ? void 0 : C.call(
265
+ m,
267
266
  c,
268
267
  {
269
268
  queryKey: e.queryKey,
@@ -276,7 +275,7 @@ function Ce(t) {
276
275
  }
277
276
  };
278
277
  }
279
- function Se(t, { pages: e, pageParams: n }) {
278
+ function ke(t, { pages: e, pageParams: n }) {
280
279
  const s = e.length - 1;
281
280
  return e.length > 0 ? t.getNextPageParam(
282
281
  e[s],
@@ -289,7 +288,7 @@ function hn(t, { pages: e, pageParams: n }) {
289
288
  var s;
290
289
  return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, n[0], n) : void 0;
291
290
  }
292
- var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
291
+ var p, E, A, T, q, Q, R, F, Qe, fn = (Qe = class {
293
292
  constructor(t = {}) {
294
293
  j(this, p);
295
294
  j(this, E);
@@ -304,7 +303,7 @@ var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
304
303
  mount() {
305
304
  _(this, Q)._++, l(this, Q) === 1 && (y(this, R, jt.subscribe(async (t) => {
306
305
  t && (await this.resumePausedMutations(), l(this, p).onFocus());
307
- })), y(this, F, xe.subscribe(async (t) => {
306
+ })), y(this, F, ye.subscribe(async (t) => {
308
307
  t && (await this.resumePausedMutations(), l(this, p).onOnline());
309
308
  })));
310
309
  }
@@ -325,7 +324,7 @@ var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
325
324
  }
326
325
  ensureQueryData(t) {
327
326
  const e = this.defaultQueryOptions(t), n = l(this, p).build(this, e), s = n.state.data;
328
- return s === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && n.isStaleByTime(ye(e.staleTime, n)) && this.prefetchQuery(e), Promise.resolve(s));
327
+ return s === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && n.isStaleByTime(ve(e.staleTime, n)) && this.prefetchQuery(e), Promise.resolve(s));
329
328
  }
330
329
  getQueriesData(t) {
331
330
  return l(this, p).findAll(t).map(({ queryKey: e, state: n }) => {
@@ -408,23 +407,23 @@ var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
408
407
  e.retry === void 0 && (e.retry = !1);
409
408
  const n = l(this, p).build(this, e);
410
409
  return n.isStaleByTime(
411
- ye(e.staleTime, n)
410
+ ve(e.staleTime, n)
412
411
  ) ? n.fetch(e) : Promise.resolve(n.state.data);
413
412
  }
414
413
  prefetchQuery(t) {
415
414
  return this.fetchQuery(t).then(N).catch(N);
416
415
  }
417
416
  fetchInfiniteQuery(t) {
418
- return t.behavior = Ce(t.pages), this.fetchQuery(t);
417
+ return t.behavior = Se(t.pages), this.fetchQuery(t);
419
418
  }
420
419
  prefetchInfiniteQuery(t) {
421
420
  return this.fetchInfiniteQuery(t).then(N).catch(N);
422
421
  }
423
422
  ensureInfiniteQueryData(t) {
424
- return t.behavior = Ce(t.pages), this.ensureQueryData(t);
423
+ return t.behavior = Se(t.pages), this.ensureQueryData(t);
425
424
  }
426
425
  resumePausedMutations() {
427
- return xe.isOnline() ? l(this, E).resumePausedMutations() : Promise.resolve();
426
+ return ye.isOnline() ? l(this, E).resumePausedMutations() : Promise.resolve();
428
427
  }
429
428
  getQueryCache() {
430
429
  return l(this, p);
@@ -439,7 +438,7 @@ var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
439
438
  y(this, A, t);
440
439
  }
441
440
  setQueryDefaults(t, e) {
442
- l(this, T).set(ve(t), {
441
+ l(this, T).set(be(t), {
443
442
  queryKey: t,
444
443
  defaultOptions: e
445
444
  });
@@ -447,11 +446,11 @@ var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
447
446
  getQueryDefaults(t) {
448
447
  const e = [...l(this, T).values()], n = {};
449
448
  return e.forEach((s) => {
450
- be(t, s.queryKey) && Object.assign(n, s.defaultOptions);
449
+ je(t, s.queryKey) && Object.assign(n, s.defaultOptions);
451
450
  }), n;
452
451
  }
453
452
  setMutationDefaults(t, e) {
454
- l(this, q).set(ve(t), {
453
+ l(this, q).set(be(t), {
455
454
  mutationKey: t,
456
455
  defaultOptions: e
457
456
  });
@@ -460,7 +459,7 @@ var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
460
459
  const e = [...l(this, q).values()];
461
460
  let n = {};
462
461
  return e.forEach((s) => {
463
- be(t, s.mutationKey) && (n = { ...n, ...s.defaultOptions });
462
+ je(t, s.mutationKey) && (n = { ...n, ...s.defaultOptions });
464
463
  }), n;
465
464
  }
466
465
  defaultQueryOptions(t) {
@@ -472,7 +471,7 @@ var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
472
471
  ...t,
473
472
  _defaulted: !0
474
473
  };
475
- return e.queryHash || (e.queryHash = Fe(
474
+ return e.queryHash || (e.queryHash = ze(
476
475
  e.queryKey,
477
476
  e
478
477
  )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Pt && (e.enabled = !1), e;
@@ -488,16 +487,16 @@ var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
488
487
  clear() {
489
488
  l(this, p).clear(), l(this, E).clear();
490
489
  }
491
- }, p = new WeakMap(), E = new WeakMap(), A = new WeakMap(), T = new WeakMap(), q = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), Ae);
492
- function mn(t) {
490
+ }, p = new WeakMap(), E = new WeakMap(), A = new WeakMap(), T = new WeakMap(), q = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), Qe);
491
+ function gn(t) {
493
492
  return t;
494
493
  }
495
- function ke(t, e, n) {
494
+ function De(t, e, n) {
496
495
  var d, c;
497
496
  if (typeof e != "object" || e === null)
498
497
  return;
499
- const s = t.getMutationCache(), a = t.getQueryCache(), o = ((d = n == null ? void 0 : n.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? mn, i = e.mutations || [], u = e.queries || [];
500
- i.forEach(({ state: m, ...f }) => {
498
+ const s = t.getMutationCache(), a = t.getQueryCache(), o = ((d = n == null ? void 0 : n.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? gn, i = e.mutations || [], u = e.queries || [];
499
+ i.forEach(({ state: g, ...f }) => {
501
500
  var h, x;
502
501
  s.build(
503
502
  t,
@@ -506,27 +505,27 @@ function ke(t, e, n) {
506
505
  ...(x = n == null ? void 0 : n.defaultOptions) == null ? void 0 : x.mutations,
507
506
  ...f
508
507
  },
509
- m
508
+ g
510
509
  );
511
- }), u.forEach(({ queryKey: m, state: f, queryHash: h, meta: x, promise: v }) => {
510
+ }), u.forEach(({ queryKey: g, state: f, queryHash: h, meta: x, promise: v }) => {
512
511
  var X, H;
513
- let g = a.get(h);
512
+ let m = a.get(h);
514
513
  const C = f.data === void 0 ? f.data : o(f.data);
515
- if (g) {
516
- if (g.state.dataUpdatedAt < f.dataUpdatedAt) {
514
+ if (m) {
515
+ if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
517
516
  const { fetchStatus: b, ...k } = f;
518
- g.setState({
517
+ m.setState({
519
518
  ...k,
520
519
  data: C
521
520
  });
522
521
  }
523
522
  } else
524
- g = a.build(
523
+ m = a.build(
525
524
  t,
526
525
  {
527
526
  ...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
528
527
  ...(H = n == null ? void 0 : n.defaultOptions) == null ? void 0 : H.queries,
529
- queryKey: m,
528
+ queryKey: g,
530
529
  queryHash: h,
531
530
  meta: x
532
531
  },
@@ -540,11 +539,11 @@ function ke(t, e, n) {
540
539
  );
541
540
  if (v) {
542
541
  const b = Promise.resolve(v).then(o);
543
- g.fetch(void 0, { initialPromise: b });
542
+ m.fetch(void 0, { initialPromise: b });
544
543
  }
545
544
  });
546
545
  }
547
- var gn = ({
546
+ var mn = ({
548
547
  children: t,
549
548
  options: e = {},
550
549
  state: n,
@@ -555,28 +554,28 @@ var gn = ({
555
554
  if (n) {
556
555
  if (typeof n != "object")
557
556
  return;
558
- const d = a.getQueryCache(), c = n.queries || [], m = [], f = [];
557
+ const d = a.getQueryCache(), c = n.queries || [], g = [], f = [];
559
558
  for (const h of c) {
560
559
  const x = d.get(h.queryHash);
561
560
  if (!x)
562
- m.push(h);
561
+ g.push(h);
563
562
  else {
564
- const v = h.state.dataUpdatedAt > x.state.dataUpdatedAt, g = o == null ? void 0 : o.find(
563
+ const v = h.state.dataUpdatedAt > x.state.dataUpdatedAt, m = o == null ? void 0 : o.find(
565
564
  (C) => C.queryHash === h.queryHash
566
565
  );
567
- v && (!g || h.state.dataUpdatedAt > g.state.dataUpdatedAt) && f.push(h);
566
+ v && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
568
567
  }
569
568
  }
570
- m.length > 0 && ke(a, { queries: m }, u.current), f.length > 0 && i(
569
+ g.length > 0 && De(a, { queries: g }, u.current), f.length > 0 && i(
571
570
  (h) => h ? [...h, ...f] : f
572
571
  );
573
572
  }
574
573
  }, [a, o, n]), K.useEffect(() => {
575
- o && (ke(a, { queries: o }, u.current), i(void 0));
574
+ o && (De(a, { queries: o }, u.current), i(void 0));
576
575
  }, [a, o]), t;
577
576
  };
578
577
  function pn({ error: t }) {
579
- return /* @__PURE__ */ r.jsx(qe, { error: t });
578
+ return /* @__PURE__ */ r.jsx(Re, { error: t });
580
579
  }
581
580
  /**
582
581
  * react-router v7.1.3
@@ -591,7 +590,7 @@ function pn({ error: t }) {
591
590
  function xn(t) {
592
591
  return /* @__PURE__ */ K.createElement(ct, { flushSync: qt.flushSync, ...t });
593
592
  }
594
- const yn = new fn({
593
+ const ae = ce({ stagger: !1 }), yn = new fn({
595
594
  defaultOptions: {
596
595
  queries: {
597
596
  staleTime: 1e3 * 60 * 5
@@ -600,15 +599,15 @@ const yn = new fn({
600
599
  }), vn = ({
601
600
  router: t,
602
601
  hydrate: e = !1
603
- }) => /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(ze, { client: yn, children: /* @__PURE__ */ r.jsx(gn, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Qe, { children: /* @__PURE__ */ r.jsx(re.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(xn, { router: t }) }) }) }) }) }), bn = ({
602
+ }) => /* @__PURE__ */ r.jsx(Le, { children: /* @__PURE__ */ r.jsx(Be, { client: yn, children: /* @__PURE__ */ r.jsx(mn, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Ie, { children: /* @__PURE__ */ r.jsx(ae.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(xn, { router: t }) }) }) }) }) }), bn = ({
604
603
  router: t,
605
604
  context: e,
606
605
  queryClient: n,
607
606
  helmetContext: s
608
- }) => /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(ze, { client: n, children: /* @__PURE__ */ r.jsx(Qe, { context: s, children: /* @__PURE__ */ r.jsx(ut, { router: t, context: e }) }) }) });
609
- var $ = { exports: {} }, jn = $.exports, De;
607
+ }) => /* @__PURE__ */ r.jsx(Le, { children: /* @__PURE__ */ r.jsx(Be, { client: n, children: /* @__PURE__ */ r.jsx(Ie, { context: s, children: /* @__PURE__ */ r.jsx(ut, { router: t, context: e }) }) }) });
608
+ var $ = { exports: {} }, jn = $.exports, Me;
610
609
  function wn() {
611
- return De || (De = 1, function(t, e) {
610
+ return Me || (Me = 1, function(t, e) {
612
611
  (function(n, s) {
613
612
  s(e, Ot);
614
613
  })(jn, function(n, s) {
@@ -625,7 +624,7 @@ function wn() {
625
624
  }
626
625
  function i(u, d) {
627
626
  d = Object.assign({}, a, d);
628
- const c = o() && d.ssr, m = c && u ? "DISPLAY" : "IDLE", [f, h] = s.useState(m), x = s.useRef(null);
627
+ const c = o() && d.ssr, g = c && u ? "DISPLAY" : "IDLE", [f, h] = s.useState(g), x = s.useRef(null);
629
628
  return s.useEffect(() => {
630
629
  if (u && (f === "IDLE" || c)) {
631
630
  clearTimeout(x.current);
@@ -647,7 +646,7 @@ function wn() {
647
646
  }
648
647
  var Pn = wn();
649
648
  const Cn = () => {
650
- const t = Ie(), e = ce(t.pathname);
649
+ const t = Te(), e = ue(t.pathname);
651
650
  U(() => {
652
651
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
653
652
  }, [t.pathname]);
@@ -664,7 +663,7 @@ function Sn({
664
663
  }
665
664
  );
666
665
  }
667
- const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Dn = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Mn = (t) => "renderSearch" in t && typeof t.renderSearch == "function", Nn = (t) => "initialize" in t && typeof t.initialize == "function", On = (t) => "getHead" in t && typeof t.getHead == "function", En = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", An = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Me = {
666
+ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Dn = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Mn = (t) => "renderSearch" in t && typeof t.renderSearch == "function", Nn = (t) => "initialize" in t && typeof t.initialize == "function", On = (t) => "getHead" in t && typeof t.getHead == "function", En = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", An = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = {
668
667
  info: "bg-blue-500",
669
668
  note: "bg-gray-500",
670
669
  tip: "bg-green-600",
@@ -674,7 +673,7 @@ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
674
673
  const { page: t } = I(), [e, n] = z(!0);
675
674
  if (!(t != null && t.banner) || !e)
676
675
  return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
677
- const s = t.banner.color && t.banner.color in Me ? Me[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = s ? {} : { backgroundColor: t.banner.color };
676
+ const s = t.banner.color && t.banner.color in Ne ? Ne[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = s ? {} : { backgroundColor: t.banner.color };
678
677
  return /* @__PURE__ */ r.jsxs(
679
678
  "div",
680
679
  {
@@ -726,15 +725,15 @@ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
726
725
  ]
727
726
  }
728
727
  ),
729
- /* @__PURE__ */ r.jsx(ue, { fallback: null, children: o.renderSearch({
728
+ /* @__PURE__ */ r.jsx(de, { fallback: null, children: o.renderSearch({
730
729
  isOpen: n,
731
730
  onClose: a
732
731
  }) })
733
732
  ] }) : null;
734
- }, Je = () => {
733
+ }, Ge = () => {
735
734
  const { resolvedTheme: t, setTheme: e } = an(), n = t === "dark" ? zt : Bt;
736
735
  return /* @__PURE__ */ r.jsx(
737
- ae,
736
+ re,
738
737
  {
739
738
  variant: "ghost",
740
739
  size: "icon",
@@ -744,17 +743,17 @@ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
744
743
  children: /* @__PURE__ */ r.jsx(n, { size: 18 })
745
744
  }
746
745
  );
747
- }, Ge = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", In = () => {
746
+ }, Je = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", In = () => {
748
747
  const { topNavigation: t } = I(), { isAuthenticated: e } = Z();
749
- return t.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(ue, { children: /* @__PURE__ */ r.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(Ge(e)).map((n) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(et, { ...n }) }, n.id)) }) }) });
748
+ return t.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(de, { children: /* @__PURE__ */ r.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(Je(e)).map((n) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(et, { ...n }) }, n.id)) }) }) });
750
749
  }, et = ({
751
750
  id: t,
752
751
  label: e,
753
752
  default: n
754
753
  }) => {
755
754
  var c;
756
- const { sidebars: s } = I(), a = s[t], o = Be(), i = !!oe().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = n ?? (a ? St(a, (m) => {
757
- if (m.type === "doc") return se(m.id);
755
+ const { sidebars: s } = I(), a = s[t], o = He(), i = !!oe().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = n ?? (a ? St(a, (g) => {
756
+ if (g.type === "doc") return se(g.id);
758
757
  }) : se(t));
759
758
  if (!d)
760
759
  throw new cn("Page not found.", {
@@ -766,9 +765,9 @@ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
766
765
  /* @__PURE__ */ r.jsx(
767
766
  dt,
768
767
  {
769
- className: ({ isPending: m }) => ln(
768
+ className: ({ isPending: g }) => ln(
770
769
  "block lg:py-3.5 font-medium -mb-px",
771
- u || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
770
+ u || g ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
772
771
  ),
773
772
  to: d,
774
773
  children: e
@@ -794,8 +793,8 @@ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
794
793
  /* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(Xe, { children: "Navigation" }) }),
795
794
  /* @__PURE__ */ r.jsx(We, { className: "flex p-4" }),
796
795
  /* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
797
- /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Je, {}) }),
798
- t.filter(Ge(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ r.jsx(et, { ...a }) }) }, a.label))
796
+ /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Ge, {}) }),
797
+ t.filter(Je(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ r.jsx(et, { ...a }) }) }, a.label))
799
798
  ] })
800
799
  ] })
801
800
  }
@@ -803,16 +802,16 @@ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
803
802
  ]
804
803
  }
805
804
  );
806
- }, G = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(en, { children: [
805
+ }, J = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(en, { children: [
807
806
  /* @__PURE__ */ r.jsx(tn, { children: t.label }),
808
807
  /* @__PURE__ */ r.jsx(nn, { children: /* @__PURE__ */ r.jsx(sn, { children: t.children.map((e, n) => (
809
808
  // eslint-disable-next-line react/no-array-index-key
810
- /* @__PURE__ */ r.jsx(G, { item: e }, n)
809
+ /* @__PURE__ */ r.jsx(J, { item: e }, n)
811
810
  )) }) })
812
811
  ] }, t.label) : /* @__PURE__ */ r.jsx(le, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(rn, { className: "flex gap-2", children: [
813
812
  t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
814
813
  t.label
815
- ] }, t.label) }), tt = Le(function() {
814
+ ] }, t.label) }), tt = Ke(function() {
816
815
  const e = Z(), { isAuthenticated: n, profile: s, isAuthEnabled: a } = Z(), o = I(), { page: i, plugins: u } = o, d = u.filter((c) => kn(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
817
816
  return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
818
817
  /* @__PURE__ */ r.jsx(Qn, {}),
@@ -822,7 +821,7 @@ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
822
821
  /* @__PURE__ */ r.jsx(
823
822
  "img",
824
823
  {
825
- src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Pe(
824
+ src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Ce(
826
825
  "/",
827
826
  i.logo.src.light
828
827
  ),
@@ -835,7 +834,7 @@ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
835
834
  /* @__PURE__ */ r.jsx(
836
835
  "img",
837
836
  {
838
- src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Pe(
837
+ src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Ce(
839
838
  "/",
840
839
  i.logo.src.dark
841
840
  ),
@@ -858,28 +857,28 @@ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
858
857
  {
859
858
  fallback: /* @__PURE__ */ r.jsx(Sn, { className: "rounded h-5 w-24 mr-4" }),
860
859
  children: n ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(_t, { modal: !1, children: [
861
- /* @__PURE__ */ r.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ r.jsx(ae, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
862
- /* @__PURE__ */ r.jsxs(Jt, { className: "w-56", children: [
863
- /* @__PURE__ */ r.jsxs(Gt, { children: [
860
+ /* @__PURE__ */ r.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ r.jsx(re, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
861
+ /* @__PURE__ */ r.jsxs(Gt, { className: "w-56", children: [
862
+ /* @__PURE__ */ r.jsxs(Jt, { children: [
864
863
  s != null && s.name ? `${s.name}` : "My Account",
865
864
  (s == null ? void 0 : s.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
866
865
  ] }),
867
866
  d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(te, {}),
868
- d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(G, { item: c }, c.label)),
867
+ d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(J, { item: c }, c.label)),
869
868
  d.filter(
870
869
  (c) => !c.category || c.category === "middle"
871
870
  ).length > 0 && /* @__PURE__ */ r.jsx(te, {}),
872
871
  d.filter(
873
872
  (c) => !c.category || c.category === "middle"
874
- ).map((c) => /* @__PURE__ */ r.jsx(G, { item: c }, c.label)),
873
+ ).map((c) => /* @__PURE__ */ r.jsx(J, { item: c }, c.label)),
875
874
  d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(te, {}),
876
- d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(G, { item: c }, c.label))
875
+ d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(J, { item: c }, c.label))
877
876
  ] })
878
- ] }) : /* @__PURE__ */ r.jsx(ae, { variant: "ghost", onClick: () => e.login(), children: "Login" })
877
+ ] }) : /* @__PURE__ */ r.jsx(re, { variant: "ghost", onClick: () => e.login(), children: "Login" })
879
878
  }
880
879
  ),
881
880
  /* @__PURE__ */ r.jsx(M, { name: "head-navigation-end" }),
882
- /* @__PURE__ */ r.jsx(Je, {})
881
+ /* @__PURE__ */ r.jsx(Ge, {})
883
882
  ] })
884
883
  ] })
885
884
  ] }) }),
@@ -908,7 +907,7 @@ nt.displayName = "SidebarWrapper";
908
907
  const qn = ({
909
908
  onRequestClose: t
910
909
  }) => {
911
- const e = ce(null), n = Be();
910
+ const e = ue(null), n = He();
912
911
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
913
912
  /* @__PURE__ */ r.jsxs(
914
913
  nt,
@@ -917,7 +916,7 @@ const qn = ({
917
916
  pushMainContent: n.sidebar.length > 0,
918
917
  children: [
919
918
  /* @__PURE__ */ r.jsx(M, { name: "zudoku-before-navigation" }),
920
- n.sidebar.map((s) => /* @__PURE__ */ r.jsx(we, { item: s }, s.label)),
919
+ n.sidebar.map((s) => /* @__PURE__ */ r.jsx(Pe, { item: s }, s.label)),
921
920
  /* @__PURE__ */ r.jsx(M, { name: "zudoku-after-navigation" })
922
921
  ]
923
922
  }
@@ -930,7 +929,7 @@ const qn = ({
930
929
  children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
931
930
  /* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(Xe, { children: "Sidebar" }) }),
932
931
  n.sidebar.map((s) => /* @__PURE__ */ r.jsx(
933
- we,
932
+ Pe,
934
933
  {
935
934
  item: s,
936
935
  onRequestClose: t
@@ -941,13 +940,13 @@ const qn = ({
941
940
  }
942
941
  )
943
942
  ] });
944
- }, Ne = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(Ve, {}) }), Rn = ({ children: t }) => {
945
- const e = Ie(), { setActiveAnchor: n } = Ut(), { meta: s, authentication: a } = I();
943
+ }, Oe = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(Ve, {}) }), Rn = ({ children: t }) => {
944
+ const e = Te(), { setActiveAnchor: n } = Ut(), { meta: s, authentication: a } = I();
946
945
  Kt(), Cn();
947
- const o = ce(e.pathname);
946
+ const o = ue(e.pathname);
948
947
  U(() => {
949
- var m;
950
- (m = a == null ? void 0 : a.onPageLoad) == null || m.call(a);
948
+ var g;
949
+ (g = a == null ? void 0 : a.onPageLoad) == null || g.call(a);
951
950
  }, [a]), U(() => {
952
951
  e.pathname !== o.current && n(""), o.current = e.pathname;
953
952
  }, [e.pathname, n]);
@@ -964,12 +963,12 @@ const qn = ({
964
963
  /* @__PURE__ */ r.jsx(M, { name: "layout-before-head" }),
965
964
  /* @__PURE__ */ r.jsx(tt, {}),
966
965
  /* @__PURE__ */ r.jsx(M, { name: "layout-after-head" }),
967
- /* @__PURE__ */ r.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: u ? /* @__PURE__ */ r.jsx(Ne, {}) : /* @__PURE__ */ r.jsx(ue, { fallback: /* @__PURE__ */ r.jsx(Ne, {}), children: /* @__PURE__ */ r.jsxs(
966
+ /* @__PURE__ */ r.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: u ? /* @__PURE__ */ r.jsx(Oe, {}) : /* @__PURE__ */ r.jsx(de, { fallback: /* @__PURE__ */ r.jsx(Oe, {}), children: /* @__PURE__ */ r.jsxs(
968
967
  Ze,
969
968
  {
970
969
  direction: "left",
971
970
  open: d,
972
- onOpenChange: (m) => c(m),
971
+ onOpenChange: (g) => c(g),
973
972
  children: [
974
973
  /* @__PURE__ */ r.jsx(qn, { onRequestClose: () => c(!1) }),
975
974
  /* @__PURE__ */ r.jsx(
@@ -997,7 +996,7 @@ const qn = ({
997
996
  ),
998
997
  children: [
999
998
  /* @__PURE__ */ r.jsx(M, { name: "zudoku-before-content" }),
1000
- t ?? /* @__PURE__ */ r.jsx(Te, {}),
999
+ t ?? /* @__PURE__ */ r.jsx(qe, {}),
1001
1000
  /* @__PURE__ */ r.jsx(M, { name: "zudoku-after-content" })
1002
1001
  ]
1003
1002
  }
@@ -1006,7 +1005,7 @@ const qn = ({
1006
1005
  }
1007
1006
  ) }) })
1008
1007
  ] });
1009
- }, Fn = Ke(null), ne = {
1008
+ }, Fn = ce(null), ne = {
1010
1009
  didCatch: !1,
1011
1010
  error: null
1012
1011
  };
@@ -1071,13 +1070,13 @@ class zn extends Qt {
1071
1070
  if (typeof n == "function")
1072
1071
  u = n(d);
1073
1072
  else if (s)
1074
- u = je(s, d);
1073
+ u = we(s, d);
1075
1074
  else if (a !== void 0)
1076
1075
  u = a;
1077
1076
  else
1078
1077
  throw i;
1079
1078
  }
1080
- return je(Fn.Provider, {
1079
+ return we(Fn.Provider, {
1081
1080
  value: {
1082
1081
  didCatch: o,
1083
1082
  error: i,
@@ -1128,19 +1127,19 @@ class Hn {
1128
1127
  }
1129
1128
  }
1130
1129
  function Ln({ error: t, resetErrorBoundary: e }) {
1131
- return /* @__PURE__ */ r.jsx(qe, { error: t });
1130
+ return /* @__PURE__ */ r.jsx(Re, { error: t });
1132
1131
  }
1133
- const J = globalThis;
1134
- (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
1132
+ const G = globalThis;
1133
+ (!G.requestIdleCallback || !G.cancelIdleCallback) && (G.requestIdleCallback = (t) => setTimeout(t, 1), G.cancelIdleCallback = clearTimeout);
1135
1134
  const st = {
1136
1135
  Header: tt
1137
- }, Kn = Ke(st), $n = Kn.Provider, Zn = ({
1136
+ }, Kn = ce(st), $n = Kn.Provider, Zn = ({
1138
1137
  children: t,
1139
1138
  context: e
1140
1139
  }) => (kt({
1141
1140
  queryFn: async () => (await e.initialize(), !0),
1142
1141
  queryKey: ["zudoku-initialize"]
1143
- }), /* @__PURE__ */ r.jsx(Dt.Provider, { value: e, children: t })), rt = Le(
1142
+ }), /* @__PURE__ */ r.jsx(Dt.Provider, { value: e, children: t })), rt = Ke(
1144
1143
  ({ children: t, ...e }) => {
1145
1144
  var f, h;
1146
1145
  const n = ee(
@@ -1150,53 +1149,53 @@ const st = {
1150
1149
  var v;
1151
1150
  return {
1152
1151
  ...(e.plugins ?? []).filter(En).flatMap(
1153
- (g) => g.getMdxComponents ? [g.getMdxComponents()] : []
1152
+ (m) => m.getMdxComponents ? [m.getMdxComponents()] : []
1154
1153
  ).reduce(
1155
- (g, C) => ({ ...g, ...C }),
1154
+ (m, C) => ({ ...m, ...C }),
1156
1155
  {}
1157
1156
  ),
1158
1157
  ...Yt,
1159
1158
  ...(v = e.mdx) == null ? void 0 : v.components
1160
1159
  };
1161
- }, [(f = e.mdx) == null ? void 0 : f.components, e.plugins]), { stagger: a } = It(re), [o, i] = z(!1), u = ee(
1160
+ }, [(f = e.mdx) == null ? void 0 : f.components, e.plugins]), { stagger: a } = It(ae), [o, i] = z(!1), u = ee(
1162
1161
  () => o ? { stagger: !0 } : { stagger: a },
1163
1162
  [a, o]
1164
1163
  ), d = oe();
1165
1164
  U(() => {
1166
1165
  o || i(!0);
1167
1166
  }, [o, d.location]);
1168
- const [c] = z(() => new Hn(e)), m = (h = e.plugins) == null ? void 0 : h.filter(On).map((x, v) => {
1169
- var g;
1170
- return /* @__PURE__ */ r.jsx(Tt, { children: (g = x.getHead) == null ? void 0 : g.call(x) }, v);
1167
+ const [c] = z(() => new Hn(e)), g = (h = e.plugins) == null ? void 0 : h.filter(On).map((x, v) => {
1168
+ var m;
1169
+ return /* @__PURE__ */ r.jsx(Tt, { children: (m = x.getHead) == null ? void 0 : m.call(x) }, v);
1171
1170
  });
1172
1171
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1173
- /* @__PURE__ */ r.jsx(ie, { children: m }),
1174
- /* @__PURE__ */ r.jsx(re.Provider, { value: u, children: /* @__PURE__ */ r.jsx(Zn, { context: c, children: /* @__PURE__ */ r.jsx($t, { components: s, children: /* @__PURE__ */ r.jsx(on, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx($n, { value: n, children: /* @__PURE__ */ r.jsx(ft, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(Xt, { children: t ?? /* @__PURE__ */ r.jsx(Te, {}) }) }) }) }) }) }) })
1172
+ /* @__PURE__ */ r.jsx(ie, { children: g }),
1173
+ /* @__PURE__ */ r.jsx(ae.Provider, { value: u, children: /* @__PURE__ */ r.jsx(Zn, { context: c, children: /* @__PURE__ */ r.jsx($t, { components: s, children: /* @__PURE__ */ r.jsx(on, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx($n, { value: n, children: /* @__PURE__ */ r.jsx(ft, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(Xt, { children: t ?? /* @__PURE__ */ r.jsx(qe, {}) }) }) }) }) }) }) })
1175
1174
  ] });
1176
1175
  }
1177
1176
  );
1178
1177
  rt.displayName = "ZudokoInner";
1179
1178
  const at = (t) => /* @__PURE__ */ r.jsx(zn, { FallbackComponent: Ln, children: /* @__PURE__ */ r.jsx(rt, { ...t }) });
1180
1179
  at.displayName = "Zudoku";
1181
- const ps = Zt, xs = Rn, ys = mt, vs = pn, bs = vn, js = bn, ws = ie, Ps = I, Cs = Z, Ss = Mt, ks = Nt, Ds = at, Ms = pt, Ns = Vt, Os = Ve, Es = $e, As = gt, Qs = le;
1180
+ const ms = Zt, ps = Rn, xs = gt, ys = pn, vs = vn, bs = bn, js = ie, ws = I, Ps = Z, Cs = Mt, Ss = Nt, ks = at, Ds = pt, Ms = Vt, Ns = Ve, Os = $e, Es = mt, As = le;
1182
1181
  export {
1183
- bs as Bootstrap,
1184
- js as BootstrapStatic,
1185
- As as Button,
1186
- ks as CACHE_KEYS,
1187
- Ms as Callout,
1188
- Es as ClientOnly,
1189
- ws as Head,
1190
- xs as Layout,
1191
- Qs as Link,
1192
- Ns as Markdown,
1193
- ys as RouterError,
1194
- vs as ServerError,
1195
- Os as Spinner,
1196
- Ds as Zudoku,
1197
- Cs as useAuth,
1198
- Ss as useCache,
1199
- ps as useMDXComponents,
1200
- Ps as useZudoku
1182
+ vs as Bootstrap,
1183
+ bs as BootstrapStatic,
1184
+ Es as Button,
1185
+ Ss as CACHE_KEYS,
1186
+ Ds as Callout,
1187
+ Os as ClientOnly,
1188
+ js as Head,
1189
+ ps as Layout,
1190
+ As as Link,
1191
+ Ms as Markdown,
1192
+ xs as RouterError,
1193
+ ys as ServerError,
1194
+ Ns as Spinner,
1195
+ ks as Zudoku,
1196
+ Ps as useAuth,
1197
+ Cs as useCache,
1198
+ ms as useMDXComponents,
1199
+ ws as useZudoku
1201
1200
  };
1202
1201
  //# sourceMappingURL=zudoku.components.js.map