zudoku 0.13.7 → 0.14.1

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 (177) hide show
  1. package/cli.js +2 -2
  2. package/dist/app/entry.client.js +2 -2
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/app/entry.server.js +3 -0
  5. package/dist/app/entry.server.js.map +1 -1
  6. package/dist/app/main.d.ts +1 -0
  7. package/dist/app/main.js +6 -21
  8. package/dist/app/main.js.map +1 -1
  9. package/dist/app/standalone.js.map +1 -1
  10. package/dist/cli/common/machine-id/lib.js.map +1 -1
  11. package/dist/cli/common/outdated.js.map +1 -1
  12. package/dist/cli/common/utils/box.js.map +1 -1
  13. package/dist/config/validators/InputSidebarSchema.d.ts +2 -2
  14. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  15. package/dist/config/validators/SidebarSchema.js +76 -39
  16. package/dist/config/validators/SidebarSchema.js.map +1 -1
  17. package/dist/config/validators/validate.d.ts +329 -264
  18. package/dist/config/validators/validate.js +11 -10
  19. package/dist/config/validators/validate.js.map +1 -1
  20. package/dist/index.d.ts +4 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/lib/components/Header.js +6 -1
  24. package/dist/lib/components/Header.js.map +1 -1
  25. package/dist/lib/components/Heading.d.ts +1 -1
  26. package/dist/lib/components/SlotletProvider.d.ts +2 -1
  27. package/dist/lib/components/SlotletProvider.js.map +1 -1
  28. package/dist/lib/components/SyntaxHighlight.js +4 -1
  29. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  30. package/dist/lib/components/TopNavigation.js +30 -5
  31. package/dist/lib/components/TopNavigation.js.map +1 -1
  32. package/dist/lib/components/context/ZudokuContext.d.ts +6 -12
  33. package/dist/lib/components/context/ZudokuContext.js +26 -20
  34. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  35. package/dist/lib/components/navigation/Sidebar.js +3 -3
  36. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  37. package/dist/lib/components/navigation/SidebarCategory.js +2 -4
  38. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  39. package/dist/lib/components/navigation/SidebarItem.js +1 -3
  40. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  41. package/dist/lib/components/navigation/utils.js +10 -14
  42. package/dist/lib/components/navigation/utils.js.map +1 -1
  43. package/dist/lib/core/DevPortalContext.d.ts +3 -7
  44. package/dist/lib/core/DevPortalContext.js.map +1 -1
  45. package/dist/lib/core/plugins.d.ts +1 -0
  46. package/dist/lib/core/plugins.js.map +1 -1
  47. package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
  48. package/dist/lib/plugins/markdown/index.d.ts +5 -6
  49. package/dist/lib/plugins/markdown/index.js +31 -3
  50. package/dist/lib/plugins/markdown/index.js.map +1 -1
  51. package/dist/lib/plugins/markdown/resolver.d.ts +38 -0
  52. package/dist/lib/plugins/markdown/resolver.js +75 -0
  53. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  54. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  55. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  56. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  57. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  58. package/dist/lib/plugins/openapi/index.js.map +1 -1
  59. package/dist/lib/ui/Badge.d.ts +1 -1
  60. package/dist/lib/ui/Button.d.ts +1 -1
  61. package/dist/lib/ui/Command.d.ts +80 -0
  62. package/dist/lib/ui/Command.js +31 -0
  63. package/dist/lib/ui/Command.js.map +1 -0
  64. package/dist/lib/util/MdxComponents.js.map +1 -1
  65. package/dist/lib/util/useExposedProps.js +3 -2
  66. package/dist/lib/util/useExposedProps.js.map +1 -1
  67. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  68. package/dist/vite/build.js +7 -2
  69. package/dist/vite/build.js.map +1 -1
  70. package/dist/vite/config.js +11 -6
  71. package/dist/vite/config.js.map +1 -1
  72. package/dist/vite/debug.d.ts +1 -0
  73. package/dist/vite/debug.js +10 -0
  74. package/dist/vite/debug.js.map +1 -0
  75. package/dist/vite/plugin-config-reload.js +0 -2
  76. package/dist/vite/plugin-config-reload.js.map +1 -1
  77. package/dist/vite/plugin-docs.js +37 -26
  78. package/dist/vite/plugin-docs.js.map +1 -1
  79. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  80. package/dist/vite/plugin-frontmatter.js +27 -24
  81. package/dist/vite/plugin-frontmatter.js.map +1 -1
  82. package/dist/vite/plugin-sidebar.js +7 -6
  83. package/dist/vite/plugin-sidebar.js.map +1 -1
  84. package/dist/vite/plugin.js +1 -1
  85. package/dist/vite/plugin.js.map +1 -1
  86. package/dist/vite/prerender.d.ts +5 -1
  87. package/dist/vite/prerender.js +6 -5
  88. package/dist/vite/prerender.js.map +1 -1
  89. package/lib/{utils-B2yoT99j.js → AnchorLink-BbB2q-jx.js} +214 -258
  90. package/lib/AnchorLink-BbB2q-jx.js.map +1 -0
  91. package/lib/{AuthenticationPlugin-Bpdes0cJ.js → AuthenticationPlugin-C9BHGXlE.js} +2 -2
  92. package/lib/{AuthenticationPlugin-Bpdes0cJ.js.map → AuthenticationPlugin-C9BHGXlE.js.map} +1 -1
  93. package/lib/Dialog-k70Qfukb.js +67 -0
  94. package/lib/Dialog-k70Qfukb.js.map +1 -0
  95. package/lib/{Markdown-1BO9EA_X.js → Markdown-BDcCAWwm.js} +18 -16
  96. package/lib/{Markdown-1BO9EA_X.js.map → Markdown-BDcCAWwm.js.map} +1 -1
  97. package/lib/{MdxPage-BEOcOICU.js → MdxPage-DKMH_t0f.js} +14 -13
  98. package/lib/{MdxPage-BEOcOICU.js.map → MdxPage-DKMH_t0f.js.map} +1 -1
  99. package/lib/{OperationList-Cea2Yt8e.js → OperationList-Tj7ubW_t.js} +3 -3
  100. package/lib/OperationList-Tj7ubW_t.js.map +1 -0
  101. package/lib/{Route-BHT-onwf.js → Route-C3DGB6OS.js} +2 -2
  102. package/lib/{Route-BHT-onwf.js.map → Route-C3DGB6OS.js.map} +1 -1
  103. package/lib/{Select-m1aXZGAP.js → Select-Bagt3Bme.js} +3 -3
  104. package/lib/{Select-m1aXZGAP.js.map → Select-Bagt3Bme.js.map} +1 -1
  105. package/lib/{SlotletProvider-CPfsBw39.js → SlotletProvider-Da7eFgd2.js} +3 -3
  106. package/lib/{SlotletProvider-CPfsBw39.js.map → SlotletProvider-Da7eFgd2.js.map} +1 -1
  107. package/lib/{ZudokuContext-D1D8Anlj.js → ZudokuContext-BKXGJTmu.js} +459 -410
  108. package/lib/ZudokuContext-BKXGJTmu.js.map +1 -0
  109. package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
  110. package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
  111. package/lib/assets/worker-Bf8vjASY.js.map +1 -1
  112. package/lib/{hook-JSRuxV1P.js → hook-sn0zMTkE.js} +2 -2
  113. package/lib/{hook-JSRuxV1P.js.map → hook-sn0zMTkE.js.map} +1 -1
  114. package/lib/{index-Cj-F-4ME.js → index-AjWCJNGC.js} +1180 -1238
  115. package/lib/index-AjWCJNGC.js.map +1 -0
  116. package/lib/ui/Command.js +550 -0
  117. package/lib/ui/Command.js.map +1 -0
  118. package/lib/useExposedProps-ChOIUaS4.js +9 -0
  119. package/lib/useExposedProps-ChOIUaS4.js.map +1 -0
  120. package/lib/zudoku.auth-clerk.js +1 -1
  121. package/lib/zudoku.auth-openid.js +2 -2
  122. package/lib/zudoku.components.js +467 -451
  123. package/lib/zudoku.components.js.map +1 -1
  124. package/lib/zudoku.plugin-api-keys.js +6 -6
  125. package/lib/zudoku.plugin-custom-pages.js +14 -14
  126. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  127. package/lib/zudoku.plugin-markdown.js +93 -27
  128. package/lib/zudoku.plugin-markdown.js.map +1 -1
  129. package/lib/zudoku.plugin-openapi.js +5 -6
  130. package/lib/zudoku.plugin-openapi.js.map +1 -1
  131. package/package.json +4 -3
  132. package/src/app/entry.client.tsx +4 -2
  133. package/src/app/entry.server.tsx +4 -0
  134. package/src/app/main.css +4 -0
  135. package/src/app/main.tsx +9 -25
  136. package/src/app/standalone.tsx +1 -1
  137. package/src/lib/components/Header.tsx +17 -2
  138. package/src/lib/components/SlotletProvider.tsx +2 -0
  139. package/src/lib/components/SyntaxHighlight.tsx +5 -1
  140. package/src/lib/components/TopNavigation.tsx +58 -24
  141. package/src/lib/components/context/ZudokuContext.ts +28 -20
  142. package/src/lib/components/navigation/Sidebar.tsx +5 -5
  143. package/src/lib/components/navigation/SidebarCategory.tsx +2 -4
  144. package/src/lib/components/navigation/SidebarItem.tsx +1 -3
  145. package/src/lib/components/navigation/utils.ts +11 -16
  146. package/src/lib/core/DevPortalContext.ts +3 -7
  147. package/src/lib/core/plugins.ts +2 -0
  148. package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
  149. package/src/lib/plugins/markdown/index.tsx +49 -12
  150. package/src/lib/plugins/markdown/resolver.ts +92 -0
  151. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  152. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  153. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  154. package/src/lib/plugins/openapi/client/worker.ts +2 -2
  155. package/src/lib/plugins/openapi/index.tsx +1 -1
  156. package/src/lib/ui/Command.tsx +151 -0
  157. package/src/lib/util/MdxComponents.tsx +0 -1
  158. package/src/lib/util/useExposedProps.tsx +8 -2
  159. package/src/lib/util/useScrollToAnchor.ts +1 -1
  160. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  161. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  162. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  163. package/dist/lib/ui/Note.d.ts +0 -8
  164. package/dist/lib/ui/Note.js +0 -23
  165. package/dist/lib/ui/Note.js.map +0 -1
  166. package/lib/OperationList-Cea2Yt8e.js.map +0 -1
  167. package/lib/ZudokuContext-D1D8Anlj.js.map +0 -1
  168. package/lib/index-Cj-F-4ME.js.map +0 -1
  169. package/lib/joinPath-B7kNnUX4.js +0 -8
  170. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  171. package/lib/ui/Note.js +0 -51
  172. package/lib/ui/Note.js.map +0 -1
  173. package/lib/useExposedProps-B9K-9GTc.js +0 -9
  174. package/lib/useExposedProps-B9K-9GTc.js.map +0 -1
  175. package/lib/utils-B2yoT99j.js.map +0 -1
  176. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  177. package/src/lib/ui/Note.tsx +0 -58
@@ -1,50 +1,49 @@
1
1
  var ut = Object.defineProperty;
2
- var be = (t) => {
2
+ var ye = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var dt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
- var g = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), ye = (t, e, r) => e.has(t) || be("Cannot " + r);
7
- var l = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), b = (t, e, r) => e.has(t) ? be("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), f = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
6
+ var v = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), je = (t, e, r) => e.has(t) || ye("Cannot " + r);
7
+ var l = (t, e, r) => (je(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), g = (t, e, r, s) => (je(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
8
8
  var X = (t, e, r, s) => ({
9
9
  set _(n) {
10
- f(t, e, n, r);
10
+ g(t, e, n, r);
11
11
  },
12
12
  get _() {
13
13
  return l(t, e, s);
14
14
  }
15
15
  });
16
- import { c as Te, H as le, M as ht, d as ft, A as mt, b as gt } from "./utils-B2yoT99j.js";
17
- import { e as pt, f as vt, R as xt, g as U, L as ce, h as bt, O as Ie, i as yt, b as jt, u as ue } from "./index-CRo94sKK.js";
18
- import { u as wt } from "./state-CsuHT8ZO.js";
19
- import { E as _e, S as k, a as Pt, R as Nt } from "./SlotletProvider-CPfsBw39.js";
16
+ import { a as Te, H as ce, M as ht, A as ft, u as gt } from "./AnchorLink-BbB2q-jx.js";
17
+ import { e as mt, f as pt, R as vt, L as te, g as G, h as xt, O as _e, i as bt, b as yt, u as ue } from "./index-CRo94sKK.js";
18
+ import { u as jt } from "./state-CsuHT8ZO.js";
19
+ import { E as Fe, S as k, a as wt, R as Nt } from "./SlotletProvider-Da7eFgd2.js";
20
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
21
- import { Button as ne } from "./ui/Button.js";
22
- import { Callout as St } from "./ui/Callout.js";
23
- import Ct, { StrictMode as Fe, createContext as Qe, Component as Et, createElement as je, isValidElement as kt, useState as Q, useCallback as Le, useEffect as F, Suspense as Be, memo as He, useMemo as te, useContext as Mt, Fragment as Dt, useRef as de, forwardRef as At } from "react";
24
- import { a as he } from "./_commonjsHelpers-BkfeUUK-.js";
25
- import { B as Ot } from "./router-BsfSoK2j.js";
26
- import { a as ie } from "./StaggeredRender-DDHSzQKE.js";
27
- import { C as Rt } from "./ClientOnly-CVN6leDu.js";
28
- import { S as qe, g as ze, Q as Tt, n as v, m as we, i as Pe, j as D, k as It, l as _t, o as Ft, p as Qt, q as Ne, r as Se, t as Lt, h as Ce, v as Ee, w as Bt, u as L, e as Ht, Z as qt, x as zt, f as Ke, y as Kt } from "./ZudokuContext-D1D8Anlj.js";
29
- import { j as G } from "./joinPath-B7kNnUX4.js";
30
- import { M as $t, u as ee } from "./hook-JSRuxV1P.js";
31
- import { a as Ut, T as Vt, b as Wt, V as Yt, u as fe } from "./Markdown-1BO9EA_X.js";
32
- import { CircleXIcon as Xt, SearchIcon as Zt, MenuIcon as Jt, MoonStarIcon as Gt, SunIcon as er, ChevronRightIcon as tr, ExternalLinkIcon as rr, PanelLeftIcon as ar } from "lucide-react";
33
- import { DropdownMenu as sr, DropdownMenuTrigger as nr, DropdownMenuContent as ir, DropdownMenuLabel as or, DropdownMenuSeparator as lr, DropdownMenuSub as cr, DropdownMenuSubTrigger as ur, DropdownMenuPortal as dr, DropdownMenuSubContent as hr, DropdownMenuItem as fr } from "./ui/DropdownMenu.js";
34
- import { c as M } from "./cn-BmFQLtkS.js";
21
+ import { Button as ie } from "./ui/Button.js";
22
+ import { Callout as Pt } from "./ui/Callout.js";
23
+ import St, { StrictMode as Qe, createContext as Le, Component as Ct, createElement as we, useState as Q, useCallback as Be, useEffect as _, Suspense as de, memo as He, useMemo as re, useContext as Et, Fragment as kt, useRef as he, forwardRef as At } from "react";
24
+ import { a as fe } from "./_commonjsHelpers-BkfeUUK-.js";
25
+ import { B as Mt } from "./router-BsfSoK2j.js";
26
+ import { a as oe } from "./StaggeredRender-DDHSzQKE.js";
27
+ import { C as Dt } from "./ClientOnly-CVN6leDu.js";
28
+ import { S as ze, i as qe, Q as Ot, n as b, m as Ne, j as Pe, k as M, l as Rt, o as It, p as Tt, q as _t, r as Se, t as Ce, v as Ft, h as Ee, w as ke, x as Qt, y as L, u as F, z as Ke, A as Lt, g as Bt, Z as Ht, B as zt, C as qt } from "./ZudokuContext-BKXGJTmu.js";
29
+ import { M as Kt, u as ee } from "./hook-sn0zMTkE.js";
30
+ import { a as $t, T as Ut, b as Vt, V as Wt, u as ge } from "./Markdown-BDcCAWwm.js";
31
+ import { CircleXIcon as Yt, SearchIcon as Xt, MenuIcon as Zt, MoonStarIcon as Jt, SunIcon as Gt, ChevronRightIcon as er, ExternalLinkIcon as tr, PanelLeftIcon as rr } from "lucide-react";
32
+ import { DropdownMenu as ar, DropdownMenuTrigger as sr, DropdownMenuContent as nr, DropdownMenuLabel as ir, DropdownMenuSeparator as or, DropdownMenuSub as lr, DropdownMenuSubTrigger as cr, DropdownMenuPortal as ur, DropdownMenuSubContent as dr, DropdownMenuItem as hr } from "./ui/DropdownMenu.js";
33
+ import { c as A } from "./cn-BmFQLtkS.js";
35
34
  import { VisuallyHidden as $e } from "@radix-ui/react-visually-hidden";
36
- import { a as Ue, c as mr } from "./index-BuAyrJe3.js";
35
+ import { a as Ue, c as fr } from "./index-BuAyrJe3.js";
37
36
  import { Drawer as Ve, DrawerTrigger as We, DrawerContent as Ye, DrawerTitle as Xe, DrawerClose as gr } from "./ui/Drawer.js";
38
- import { S as re, a as pr } from "./Spinner-C6zroowC.js";
39
- import * as ae from "@radix-ui/react-collapsible";
40
- function vr({ error: t }) {
41
- return /* @__PURE__ */ a.jsx(_e, { error: t });
37
+ import { S as ae, a as mr } from "./Spinner-C6zroowC.js";
38
+ import * as se from "@radix-ui/react-collapsible";
39
+ function pr({ error: t }) {
40
+ return /* @__PURE__ */ a.jsx(Fe, { error: t });
42
41
  }
43
42
  var W = {};
44
- const xr = /* @__PURE__ */ he(Ot), br = /* @__PURE__ */ he(pt), yr = /* @__PURE__ */ he(vt);
43
+ const vr = /* @__PURE__ */ fe(Mt), xr = /* @__PURE__ */ fe(mt), br = /* @__PURE__ */ fe(pt);
45
44
  Object.defineProperty(W, "__esModule", { value: !0 });
46
- var jr = Ct, E = xr, me = br, A = yr;
47
- function wr(t) {
45
+ var yr = St, E = vr, me = xr, D = br;
46
+ function jr(t) {
48
47
  if (t && t.__esModule) return t;
49
48
  var e = /* @__PURE__ */ Object.create(null);
50
49
  return t && Object.keys(t).forEach(function(r) {
@@ -59,27 +58,27 @@ function wr(t) {
59
58
  }
60
59
  }), e.default = t, Object.freeze(e);
61
60
  }
62
- var S = /* @__PURE__ */ wr(jr);
63
- function Pr({
61
+ var S = /* @__PURE__ */ jr(yr);
62
+ function wr({
64
63
  basename: t,
65
64
  children: e,
66
65
  location: r = "/",
67
66
  future: s
68
67
  }) {
69
- typeof r == "string" && (r = A.parsePath(r));
70
- let n = E.Action.Pop, o = {
68
+ typeof r == "string" && (r = D.parsePath(r));
69
+ let n = E.Action.Pop, i = {
71
70
  pathname: r.pathname || "/",
72
71
  search: r.search || "",
73
72
  hash: r.hash || "",
74
73
  state: r.state != null ? r.state : null,
75
74
  key: r.key || "default"
76
- }, i = Ze();
77
- return /* @__PURE__ */ S.createElement(A.Router, {
75
+ }, o = Ze();
76
+ return /* @__PURE__ */ S.createElement(D.Router, {
78
77
  basename: t,
79
78
  children: e,
80
- location: o,
79
+ location: i,
81
80
  navigationType: n,
82
- navigator: i,
81
+ navigator: o,
83
82
  future: s,
84
83
  static: !0
85
84
  });
@@ -97,57 +96,57 @@ function Nr({
97
96
  static: !0,
98
97
  staticContext: t,
99
98
  basename: t.basename || "/"
100
- }, o = /* @__PURE__ */ new Map(), i = "";
99
+ }, i = /* @__PURE__ */ new Map(), o = "";
101
100
  if (r !== !1) {
102
- let u = {
101
+ let c = {
103
102
  loaderData: t.loaderData,
104
103
  actionData: t.actionData,
105
- errors: Cr(t.errors)
104
+ errors: Sr(t.errors)
106
105
  };
107
- i = `window.__staticRouterHydrationData = JSON.parse(${Or(JSON.stringify(JSON.stringify(u)))});`;
106
+ o = `window.__staticRouterHydrationData = JSON.parse(${Dr(JSON.stringify(JSON.stringify(c)))});`;
108
107
  }
109
108
  let {
110
- state: c
109
+ state: u
111
110
  } = n.router;
112
- return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(A.UNSAFE_DataRouterContext.Provider, {
111
+ return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(D.UNSAFE_DataRouterContext.Provider, {
113
112
  value: n
114
- }, /* @__PURE__ */ S.createElement(A.UNSAFE_DataRouterStateContext.Provider, {
115
- value: c
116
- }, /* @__PURE__ */ S.createElement(A.UNSAFE_FetchersContext.Provider, {
117
- value: o
118
- }, /* @__PURE__ */ S.createElement(A.UNSAFE_ViewTransitionContext.Provider, {
113
+ }, /* @__PURE__ */ S.createElement(D.UNSAFE_DataRouterStateContext.Provider, {
114
+ value: u
115
+ }, /* @__PURE__ */ S.createElement(D.UNSAFE_FetchersContext.Provider, {
116
+ value: i
117
+ }, /* @__PURE__ */ S.createElement(D.UNSAFE_ViewTransitionContext.Provider, {
119
118
  value: {
120
119
  isTransitioning: !1
121
120
  }
122
- }, /* @__PURE__ */ S.createElement(A.Router, {
121
+ }, /* @__PURE__ */ S.createElement(D.Router, {
123
122
  basename: n.basename,
124
- location: c.location,
125
- navigationType: c.historyAction,
123
+ location: u.location,
124
+ navigationType: u.historyAction,
126
125
  navigator: n.navigator,
127
126
  static: n.static,
128
127
  future: {
129
128
  v7_relativeSplatPath: e.future.v7_relativeSplatPath
130
129
  }
131
- }, /* @__PURE__ */ S.createElement(Sr, {
130
+ }, /* @__PURE__ */ S.createElement(Pr, {
132
131
  routes: e.routes,
133
132
  future: e.future,
134
- state: c
135
- })))))), i ? /* @__PURE__ */ S.createElement("script", {
133
+ state: u
134
+ })))))), o ? /* @__PURE__ */ S.createElement("script", {
136
135
  suppressHydrationWarning: !0,
137
136
  nonce: s,
138
137
  dangerouslySetInnerHTML: {
139
- __html: i
138
+ __html: o
140
139
  }
141
140
  }) : null);
142
141
  }
143
- function Sr({
142
+ function Pr({
144
143
  routes: t,
145
144
  future: e,
146
145
  state: r
147
146
  }) {
148
147
  return me.UNSAFE_useRoutesImpl(t, void 0, r, e);
149
148
  }
150
- function Cr(t) {
149
+ function Sr(t) {
151
150
  if (!t) return null;
152
151
  let e = Object.entries(t), r = {};
153
152
  for (let [s, n] of e)
@@ -186,32 +185,32 @@ function Ze() {
186
185
  }
187
186
  };
188
187
  }
189
- function Er(t, e) {
188
+ function Cr(t, e) {
190
189
  return E.createStaticHandler(t, {
191
190
  ...e,
192
191
  mapRouteProperties: me.UNSAFE_mapRouteProperties
193
192
  });
194
193
  }
195
- function kr(t, e, r = {}) {
196
- let s = {}, n = E.UNSAFE_convertRoutesToDataRoutes(t, me.UNSAFE_mapRouteProperties, void 0, s), o = e.matches.map((c) => {
197
- let u = s[c.route.id] || c.route;
194
+ function Er(t, e, r = {}) {
195
+ let s = {}, n = E.UNSAFE_convertRoutesToDataRoutes(t, me.UNSAFE_mapRouteProperties, void 0, s), i = e.matches.map((u) => {
196
+ let c = s[u.route.id] || u.route;
198
197
  return {
199
- ...c,
200
- route: u
198
+ ...u,
199
+ route: c
201
200
  };
202
- }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
201
+ }), o = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
203
202
  return {
204
203
  get basename() {
205
204
  return e.basename;
206
205
  },
207
206
  get future() {
208
- var c, u;
207
+ var u, c;
209
208
  return {
210
209
  v7_fetcherPersist: !1,
211
210
  v7_normalizeFormMethod: !1,
212
- v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
211
+ v7_partialHydration: ((u = r.future) == null ? void 0 : u.v7_partialHydration) === !0,
213
212
  v7_prependBasename: !1,
214
- v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
213
+ v7_relativeSplatPath: ((c = r.future) == null ? void 0 : c.v7_relativeSplatPath) === !0,
215
214
  v7_skipActionErrorRevalidation: !1
216
215
  };
217
216
  },
@@ -219,7 +218,7 @@ function kr(t, e, r = {}) {
219
218
  return {
220
219
  historyAction: E.Action.Pop,
221
220
  location: e.location,
222
- matches: o,
221
+ matches: i,
223
222
  loaderData: e.loaderData,
224
223
  actionData: e.actionData,
225
224
  errors: e.errors,
@@ -238,22 +237,22 @@ function kr(t, e, r = {}) {
238
237
  get window() {
239
238
  },
240
239
  initialize() {
241
- throw i("initialize");
240
+ throw o("initialize");
242
241
  },
243
242
  subscribe() {
244
- throw i("subscribe");
243
+ throw o("subscribe");
245
244
  },
246
245
  enableScrollRestoration() {
247
- throw i("enableScrollRestoration");
246
+ throw o("enableScrollRestoration");
248
247
  },
249
248
  navigate() {
250
- throw i("navigate");
249
+ throw o("navigate");
251
250
  },
252
251
  fetch() {
253
- throw i("fetch");
252
+ throw o("fetch");
254
253
  },
255
254
  revalidate() {
256
- throw i("revalidate");
255
+ throw o("revalidate");
257
256
  },
258
257
  createHref: Je,
259
258
  encodeLocation: Ge,
@@ -261,79 +260,79 @@ function kr(t, e, r = {}) {
261
260
  return E.IDLE_FETCHER;
262
261
  },
263
262
  deleteFetcher() {
264
- throw i("deleteFetcher");
263
+ throw o("deleteFetcher");
265
264
  },
266
265
  dispose() {
267
- throw i("dispose");
266
+ throw o("dispose");
268
267
  },
269
268
  getBlocker() {
270
269
  return E.IDLE_BLOCKER;
271
270
  },
272
271
  deleteBlocker() {
273
- throw i("deleteBlocker");
272
+ throw o("deleteBlocker");
274
273
  },
275
274
  patchRoutes() {
276
- throw i("patchRoutes");
275
+ throw o("patchRoutes");
277
276
  },
278
277
  _internalFetchControllers: /* @__PURE__ */ new Map(),
279
278
  _internalActiveDeferreds: /* @__PURE__ */ new Map(),
280
279
  _internalSetRoutes() {
281
- throw i("_internalSetRoutes");
280
+ throw o("_internalSetRoutes");
282
281
  }
283
282
  };
284
283
  }
285
284
  function Je(t) {
286
- return typeof t == "string" ? t : A.createPath(t);
285
+ return typeof t == "string" ? t : D.createPath(t);
287
286
  }
288
287
  function Ge(t) {
289
- let e = typeof t == "string" ? t : A.createPath(t);
288
+ let e = typeof t == "string" ? t : D.createPath(t);
290
289
  e = e.replace(/ $/, "%20");
291
- let r = Mr.test(e) ? new URL(e) : new URL(e, "http://localhost");
290
+ let r = kr.test(e) ? new URL(e) : new URL(e, "http://localhost");
292
291
  return {
293
292
  pathname: r.pathname,
294
293
  search: r.search,
295
294
  hash: r.hash
296
295
  };
297
296
  }
298
- const Mr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Dr = {
297
+ const kr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ar = {
299
298
  "&": "\\u0026",
300
299
  ">": "\\u003e",
301
300
  "<": "\\u003c",
302
301
  "\u2028": "\\u2028",
303
302
  "\u2029": "\\u2029"
304
- }, Ar = /[&><\u2028\u2029]/g;
305
- function Or(t) {
306
- return t.replace(Ar, (e) => Dr[e]);
303
+ }, Mr = /[&><\u2028\u2029]/g;
304
+ function Dr(t) {
305
+ return t.replace(Mr, (e) => Ar[e]);
307
306
  }
308
- W.StaticRouter = Pr;
309
- var Rr = W.StaticRouterProvider = Nr;
310
- W.createStaticHandler = Er;
311
- W.createStaticRouter = kr;
312
- const Tr = ({
307
+ W.StaticRouter = wr;
308
+ var Or = W.StaticRouterProvider = Nr;
309
+ W.createStaticHandler = Cr;
310
+ W.createStaticRouter = Er;
311
+ const Rr = ({
313
312
  router: t,
314
313
  hydrate: e = !1
315
- }) => /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(Te, { children: /* @__PURE__ */ a.jsx(ie.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ a.jsx(xt, { router: t }) }) }) }), Ir = ({
314
+ }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { children: /* @__PURE__ */ a.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ a.jsx(vt, { router: t }) }) }) }), Ir = ({
316
315
  router: t,
317
316
  context: e,
318
317
  helmetContext: r
319
- }) => /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(Te, { context: r, children: /* @__PURE__ */ a.jsx(Rr, { router: t, context: e }) }) });
320
- var C, Ae, _r = (Ae = class extends qe {
318
+ }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { context: r, children: /* @__PURE__ */ a.jsx(Or, { router: t, context: e }) }) });
319
+ var C, Oe, Tr = (Oe = class extends ze {
321
320
  constructor(e = {}) {
322
321
  super();
323
- b(this, C);
324
- this.config = e, f(this, C, /* @__PURE__ */ new Map());
322
+ y(this, C);
323
+ this.config = e, g(this, C, /* @__PURE__ */ new Map());
325
324
  }
326
325
  build(e, r, s) {
327
- const n = r.queryKey, o = r.queryHash ?? ze(n, r);
328
- let i = this.get(o);
329
- return i || (i = new Tt({
326
+ const n = r.queryKey, i = r.queryHash ?? qe(n, r);
327
+ let o = this.get(i);
328
+ return o || (o = new Ot({
330
329
  cache: this,
331
330
  queryKey: n,
332
- queryHash: o,
331
+ queryHash: i,
333
332
  options: e.defaultQueryOptions(r),
334
333
  state: s,
335
334
  defaultOptions: e.getQueryDefaults(n)
336
- }), this.add(i)), i;
335
+ }), this.add(o)), o;
337
336
  }
338
337
  add(e) {
339
338
  l(this, C).has(e.queryHash) || (l(this, C).set(e.queryHash, e), this.notify({
@@ -346,7 +345,7 @@ var C, Ae, _r = (Ae = class extends qe {
346
345
  r && (e.destroy(), r === e && l(this, C).delete(e.queryHash), this.notify({ type: "removed", query: e }));
347
346
  }
348
347
  clear() {
349
- v.batch(() => {
348
+ b.batch(() => {
350
349
  this.getAll().forEach((e) => {
351
350
  this.remove(e);
352
351
  });
@@ -361,43 +360,43 @@ var C, Ae, _r = (Ae = class extends qe {
361
360
  find(e) {
362
361
  const r = { exact: !0, ...e };
363
362
  return this.getAll().find(
364
- (s) => we(r, s)
363
+ (s) => Ne(r, s)
365
364
  );
366
365
  }
367
366
  findAll(e = {}) {
368
367
  const r = this.getAll();
369
- return Object.keys(e).length > 0 ? r.filter((s) => we(e, s)) : r;
368
+ return Object.keys(e).length > 0 ? r.filter((s) => Ne(e, s)) : r;
370
369
  }
371
370
  notify(e) {
372
- v.batch(() => {
371
+ b.batch(() => {
373
372
  this.listeners.forEach((r) => {
374
373
  r(e);
375
374
  });
376
375
  });
377
376
  }
378
377
  onFocus() {
379
- v.batch(() => {
378
+ b.batch(() => {
380
379
  this.getAll().forEach((e) => {
381
380
  e.onFocus();
382
381
  });
383
382
  });
384
383
  }
385
384
  onOnline() {
386
- v.batch(() => {
385
+ b.batch(() => {
387
386
  this.getAll().forEach((e) => {
388
387
  e.onOnline();
389
388
  });
390
389
  });
391
390
  }
392
- }, C = new WeakMap(), Ae), p, V, Oe, Fr = (Oe = class extends qe {
391
+ }, C = new WeakMap(), Oe), x, V, Re, _r = (Re = class extends ze {
393
392
  constructor(e = {}) {
394
393
  super();
395
- b(this, p);
396
- b(this, V);
397
- this.config = e, f(this, p, /* @__PURE__ */ new Map()), f(this, V, Date.now());
394
+ y(this, x);
395
+ y(this, V);
396
+ this.config = e, g(this, x, /* @__PURE__ */ new Map()), g(this, V, Date.now());
398
397
  }
399
398
  build(e, r, s) {
400
- const n = new $t({
399
+ const n = new Kt({
401
400
  mutationCache: this,
402
401
  mutationId: ++X(this, V)._,
403
402
  options: e.defaultMutationOptions(r),
@@ -406,37 +405,37 @@ var C, Ae, _r = (Ae = class extends qe {
406
405
  return this.add(n), n;
407
406
  }
408
407
  add(e) {
409
- const r = Z(e), s = l(this, p).get(r) ?? [];
410
- s.push(e), l(this, p).set(r, s), this.notify({ type: "added", mutation: e });
408
+ const r = Z(e), s = l(this, x).get(r) ?? [];
409
+ s.push(e), l(this, x).set(r, s), this.notify({ type: "added", mutation: e });
411
410
  }
412
411
  remove(e) {
413
412
  var s;
414
413
  const r = Z(e);
415
- if (l(this, p).has(r)) {
416
- const n = (s = l(this, p).get(r)) == null ? void 0 : s.filter((o) => o !== e);
417
- n && (n.length === 0 ? l(this, p).delete(r) : l(this, p).set(r, n));
414
+ if (l(this, x).has(r)) {
415
+ const n = (s = l(this, x).get(r)) == null ? void 0 : s.filter((i) => i !== e);
416
+ n && (n.length === 0 ? l(this, x).delete(r) : l(this, x).set(r, n));
418
417
  }
419
418
  this.notify({ type: "removed", mutation: e });
420
419
  }
421
420
  canRun(e) {
422
421
  var s;
423
- const r = (s = l(this, p).get(Z(e))) == null ? void 0 : s.find((n) => n.state.status === "pending");
422
+ const r = (s = l(this, x).get(Z(e))) == null ? void 0 : s.find((n) => n.state.status === "pending");
424
423
  return !r || r === e;
425
424
  }
426
425
  runNext(e) {
427
426
  var s;
428
- const r = (s = l(this, p).get(Z(e))) == null ? void 0 : s.find((n) => n !== e && n.state.isPaused);
427
+ const r = (s = l(this, x).get(Z(e))) == null ? void 0 : s.find((n) => n !== e && n.state.isPaused);
429
428
  return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
430
429
  }
431
430
  clear() {
432
- v.batch(() => {
431
+ b.batch(() => {
433
432
  this.getAll().forEach((e) => {
434
433
  this.remove(e);
435
434
  });
436
435
  });
437
436
  }
438
437
  getAll() {
439
- return [...l(this, p).values()].flat();
438
+ return [...l(this, x).values()].flat();
440
439
  }
441
440
  find(e) {
442
441
  const r = { exact: !0, ...e };
@@ -448,7 +447,7 @@ var C, Ae, _r = (Ae = class extends qe {
448
447
  return this.getAll().filter((r) => Pe(e, r));
449
448
  }
450
449
  notify(e) {
451
- v.batch(() => {
450
+ b.batch(() => {
452
451
  this.listeners.forEach((r) => {
453
452
  r(e);
454
453
  });
@@ -456,74 +455,74 @@ var C, Ae, _r = (Ae = class extends qe {
456
455
  }
457
456
  resumePausedMutations() {
458
457
  const e = this.getAll().filter((r) => r.state.isPaused);
459
- return v.batch(
458
+ return b.batch(
460
459
  () => Promise.all(
461
- e.map((r) => r.continue().catch(D))
460
+ e.map((r) => r.continue().catch(M))
462
461
  )
463
462
  );
464
463
  }
465
- }, p = new WeakMap(), V = new WeakMap(), Oe);
464
+ }, x = new WeakMap(), V = new WeakMap(), Re);
466
465
  function Z(t) {
467
466
  var e;
468
467
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
469
468
  }
470
- function ke(t) {
469
+ function Ae(t) {
471
470
  return {
472
471
  onFetch: (e, r) => {
473
- var x, y, m, P, N;
474
- const s = e.options, n = (m = (y = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : y.fetchMore) == null ? void 0 : m.direction, o = ((P = e.state.data) == null ? void 0 : P.pages) || [], i = ((N = e.state.data) == null ? void 0 : N.pageParams) || [];
475
- let c = { pages: [], pageParams: [] }, u = 0;
476
- const w = async () => {
477
- let d = !1;
478
- const O = (j) => {
479
- Object.defineProperty(j, "signal", {
472
+ var j, N, p, P, h;
473
+ const s = e.options, n = (p = (N = (j = e.fetchOptions) == null ? void 0 : j.meta) == null ? void 0 : N.fetchMore) == null ? void 0 : p.direction, i = ((P = e.state.data) == null ? void 0 : P.pages) || [], o = ((h = e.state.data) == null ? void 0 : h.pageParams) || [];
474
+ let u = { pages: [], pageParams: [] }, c = 0;
475
+ const m = async () => {
476
+ let f = !1;
477
+ const B = (w) => {
478
+ Object.defineProperty(w, "signal", {
480
479
  enumerable: !0,
481
- get: () => (e.signal.aborted ? d = !0 : e.signal.addEventListener("abort", () => {
482
- d = !0;
480
+ get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
481
+ f = !0;
483
482
  }), e.signal)
484
483
  });
485
- }, lt = It(e.options, e.fetchOptions), pe = async (j, R, K) => {
486
- if (d)
484
+ }, lt = Rt(e.options, e.fetchOptions), ve = async (w, O, $) => {
485
+ if (f)
487
486
  return Promise.reject();
488
- if (R == null && j.pages.length)
489
- return Promise.resolve(j);
487
+ if (O == null && w.pages.length)
488
+ return Promise.resolve(w);
490
489
  const Y = {
491
490
  queryKey: e.queryKey,
492
- pageParam: R,
493
- direction: K ? "backward" : "forward",
491
+ pageParam: O,
492
+ direction: $ ? "backward" : "forward",
494
493
  meta: e.options.meta
495
494
  };
496
- O(Y);
495
+ B(Y);
497
496
  const ct = await lt(
498
497
  Y
499
- ), { maxPages: ve } = e.options, xe = K ? _t : Ft;
498
+ ), { maxPages: xe } = e.options, be = $ ? It : Tt;
500
499
  return {
501
- pages: xe(j.pages, ct, ve),
502
- pageParams: xe(j.pageParams, R, ve)
500
+ pages: be(w.pages, ct, xe),
501
+ pageParams: be(w.pageParams, O, xe)
503
502
  };
504
503
  };
505
- if (n && o.length) {
506
- const j = n === "backward", R = j ? Qr : Me, K = {
507
- pages: o,
508
- pageParams: i
509
- }, Y = R(s, K);
510
- c = await pe(K, Y, j);
504
+ if (n && i.length) {
505
+ const w = n === "backward", O = w ? Fr : Me, $ = {
506
+ pages: i,
507
+ pageParams: o
508
+ }, Y = O(s, $);
509
+ u = await ve($, Y, w);
511
510
  } else {
512
- const j = t ?? o.length;
511
+ const w = t ?? i.length;
513
512
  do {
514
- const R = u === 0 ? i[0] ?? s.initialPageParam : Me(s, c);
515
- if (u > 0 && R == null)
513
+ const O = c === 0 ? o[0] ?? s.initialPageParam : Me(s, u);
514
+ if (c > 0 && O == null)
516
515
  break;
517
- c = await pe(c, R), u++;
518
- } while (u < j);
516
+ u = await ve(u, O), c++;
517
+ } while (c < w);
519
518
  }
520
- return c;
519
+ return u;
521
520
  };
522
521
  e.options.persister ? e.fetchFn = () => {
523
- var d, O;
524
- return (O = (d = e.options).persister) == null ? void 0 : O.call(
525
- d,
526
- w,
522
+ var f, B;
523
+ return (B = (f = e.options).persister) == null ? void 0 : B.call(
524
+ f,
525
+ m,
527
526
  {
528
527
  queryKey: e.queryKey,
529
528
  meta: e.options.meta,
@@ -531,7 +530,7 @@ function ke(t) {
531
530
  },
532
531
  r
533
532
  );
534
- } : e.fetchFn = w;
533
+ } : e.fetchFn = m;
535
534
  }
536
535
  };
537
536
  }
@@ -544,69 +543,69 @@ function Me(t, { pages: e, pageParams: r }) {
544
543
  r
545
544
  ) : void 0;
546
545
  }
547
- function Qr(t, { pages: e, pageParams: r }) {
546
+ function Fr(t, { pages: e, pageParams: r }) {
548
547
  var s;
549
548
  return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, r[0], r) : void 0;
550
549
  }
551
- var h, T, I, B, H, _, q, z, Re, Lr = (Re = class {
550
+ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
552
551
  constructor(t = {}) {
553
- b(this, h);
554
- b(this, T);
555
- b(this, I);
556
- b(this, B);
557
- b(this, H);
558
- b(this, _);
559
- b(this, q);
560
- b(this, z);
561
- f(this, h, t.queryCache || new _r()), f(this, T, t.mutationCache || new Fr()), f(this, I, t.defaultOptions || {}), f(this, B, /* @__PURE__ */ new Map()), f(this, H, /* @__PURE__ */ new Map()), f(this, _, 0);
552
+ y(this, d);
553
+ y(this, R);
554
+ y(this, I);
555
+ y(this, H);
556
+ y(this, z);
557
+ y(this, T);
558
+ y(this, q);
559
+ y(this, K);
560
+ g(this, d, t.queryCache || new Tr()), g(this, R, t.mutationCache || new _r()), g(this, I, t.defaultOptions || {}), g(this, H, /* @__PURE__ */ new Map()), g(this, z, /* @__PURE__ */ new Map()), g(this, T, 0);
562
561
  }
563
562
  mount() {
564
- X(this, _)._++, l(this, _) === 1 && (f(this, q, Qt.subscribe(async (t) => {
565
- t && (await this.resumePausedMutations(), l(this, h).onFocus());
566
- })), f(this, z, Ne.subscribe(async (t) => {
567
- t && (await this.resumePausedMutations(), l(this, h).onOnline());
563
+ X(this, T)._++, l(this, T) === 1 && (g(this, q, _t.subscribe(async (t) => {
564
+ t && (await this.resumePausedMutations(), l(this, d).onFocus());
565
+ })), g(this, K, Se.subscribe(async (t) => {
566
+ t && (await this.resumePausedMutations(), l(this, d).onOnline());
568
567
  })));
569
568
  }
570
569
  unmount() {
571
570
  var t, e;
572
- X(this, _)._--, l(this, _) === 0 && ((t = l(this, q)) == null || t.call(this), f(this, q, void 0), (e = l(this, z)) == null || e.call(this), f(this, z, void 0));
571
+ X(this, T)._--, l(this, T) === 0 && ((t = l(this, q)) == null || t.call(this), g(this, q, void 0), (e = l(this, K)) == null || e.call(this), g(this, K, void 0));
573
572
  }
574
573
  isFetching(t) {
575
- return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
574
+ return l(this, d).findAll({ ...t, fetchStatus: "fetching" }).length;
576
575
  }
577
576
  isMutating(t) {
578
- return l(this, T).findAll({ ...t, status: "pending" }).length;
577
+ return l(this, R).findAll({ ...t, status: "pending" }).length;
579
578
  }
580
579
  getQueryData(t) {
581
580
  var r;
582
581
  const e = this.defaultQueryOptions({ queryKey: t });
583
- return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state.data;
582
+ return (r = l(this, d).get(e.queryHash)) == null ? void 0 : r.state.data;
584
583
  }
585
584
  ensureQueryData(t) {
586
585
  const e = this.getQueryData(t.queryKey);
587
586
  if (e === void 0)
588
587
  return this.fetchQuery(t);
589
588
  {
590
- const r = this.defaultQueryOptions(t), s = l(this, h).build(this, r);
591
- return t.revalidateIfStale && s.isStaleByTime(Se(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(e);
589
+ const r = this.defaultQueryOptions(t), s = l(this, d).build(this, r);
590
+ return t.revalidateIfStale && s.isStaleByTime(Ce(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(e);
592
591
  }
593
592
  }
594
593
  getQueriesData(t) {
595
- return l(this, h).findAll(t).map(({ queryKey: e, state: r }) => {
594
+ return l(this, d).findAll(t).map(({ queryKey: e, state: r }) => {
596
595
  const s = r.data;
597
596
  return [e, s];
598
597
  });
599
598
  }
600
599
  setQueryData(t, e, r) {
601
- const s = this.defaultQueryOptions({ queryKey: t }), n = l(this, h).get(
600
+ const s = this.defaultQueryOptions({ queryKey: t }), n = l(this, d).get(
602
601
  s.queryHash
603
- ), o = n == null ? void 0 : n.state.data, i = Lt(e, o);
604
- if (i !== void 0)
605
- return l(this, h).build(this, s).setData(i, { ...r, manual: !0 });
602
+ ), i = n == null ? void 0 : n.state.data, o = Ft(e, i);
603
+ if (o !== void 0)
604
+ return l(this, d).build(this, s).setData(o, { ...r, manual: !0 });
606
605
  }
607
606
  setQueriesData(t, e, r) {
608
- return v.batch(
609
- () => l(this, h).findAll(t).map(({ queryKey: s }) => [
607
+ return b.batch(
608
+ () => l(this, d).findAll(t).map(({ queryKey: s }) => [
610
609
  s,
611
610
  this.setQueryData(s, e, r)
612
611
  ])
@@ -615,34 +614,34 @@ var h, T, I, B, H, _, q, z, Re, Lr = (Re = class {
615
614
  getQueryState(t) {
616
615
  var r;
617
616
  const e = this.defaultQueryOptions({ queryKey: t });
618
- return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state;
617
+ return (r = l(this, d).get(e.queryHash)) == null ? void 0 : r.state;
619
618
  }
620
619
  removeQueries(t) {
621
- const e = l(this, h);
622
- v.batch(() => {
620
+ const e = l(this, d);
621
+ b.batch(() => {
623
622
  e.findAll(t).forEach((r) => {
624
623
  e.remove(r);
625
624
  });
626
625
  });
627
626
  }
628
627
  resetQueries(t, e) {
629
- const r = l(this, h), s = {
628
+ const r = l(this, d), s = {
630
629
  type: "active",
631
630
  ...t
632
631
  };
633
- return v.batch(() => (r.findAll(t).forEach((n) => {
632
+ return b.batch(() => (r.findAll(t).forEach((n) => {
634
633
  n.reset();
635
634
  }), this.refetchQueries(s, e)));
636
635
  }
637
636
  cancelQueries(t = {}, e = {}) {
638
- const r = { revert: !0, ...e }, s = v.batch(
639
- () => l(this, h).findAll(t).map((n) => n.cancel(r))
637
+ const r = { revert: !0, ...e }, s = b.batch(
638
+ () => l(this, d).findAll(t).map((n) => n.cancel(r))
640
639
  );
641
- return Promise.all(s).then(D).catch(D);
640
+ return Promise.all(s).then(M).catch(M);
642
641
  }
643
642
  invalidateQueries(t = {}, e = {}) {
644
- return v.batch(() => {
645
- if (l(this, h).findAll(t).forEach((s) => {
643
+ return b.batch(() => {
644
+ if (l(this, d).findAll(t).forEach((s) => {
646
645
  s.invalidate();
647
646
  }), t.refetchType === "none")
648
647
  return Promise.resolve();
@@ -657,73 +656,73 @@ var h, T, I, B, H, _, q, z, Re, Lr = (Re = class {
657
656
  const r = {
658
657
  ...e,
659
658
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
660
- }, s = v.batch(
661
- () => l(this, h).findAll(t).filter((n) => !n.isDisabled()).map((n) => {
662
- let o = n.fetch(void 0, r);
663
- return r.throwOnError || (o = o.catch(D)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
659
+ }, s = b.batch(
660
+ () => l(this, d).findAll(t).filter((n) => !n.isDisabled()).map((n) => {
661
+ let i = n.fetch(void 0, r);
662
+ return r.throwOnError || (i = i.catch(M)), n.state.fetchStatus === "paused" ? Promise.resolve() : i;
664
663
  })
665
664
  );
666
- return Promise.all(s).then(D);
665
+ return Promise.all(s).then(M);
667
666
  }
668
667
  fetchQuery(t) {
669
668
  const e = this.defaultQueryOptions(t);
670
669
  e.retry === void 0 && (e.retry = !1);
671
- const r = l(this, h).build(this, e);
670
+ const r = l(this, d).build(this, e);
672
671
  return r.isStaleByTime(
673
- Se(e.staleTime, r)
672
+ Ce(e.staleTime, r)
674
673
  ) ? r.fetch(e) : Promise.resolve(r.state.data);
675
674
  }
676
675
  prefetchQuery(t) {
677
- return this.fetchQuery(t).then(D).catch(D);
676
+ return this.fetchQuery(t).then(M).catch(M);
678
677
  }
679
678
  fetchInfiniteQuery(t) {
680
- return t.behavior = ke(t.pages), this.fetchQuery(t);
679
+ return t.behavior = Ae(t.pages), this.fetchQuery(t);
681
680
  }
682
681
  prefetchInfiniteQuery(t) {
683
- return this.fetchInfiniteQuery(t).then(D).catch(D);
682
+ return this.fetchInfiniteQuery(t).then(M).catch(M);
684
683
  }
685
684
  ensureInfiniteQueryData(t) {
686
- return t.behavior = ke(t.pages), this.ensureQueryData(t);
685
+ return t.behavior = Ae(t.pages), this.ensureQueryData(t);
687
686
  }
688
687
  resumePausedMutations() {
689
- return Ne.isOnline() ? l(this, T).resumePausedMutations() : Promise.resolve();
688
+ return Se.isOnline() ? l(this, R).resumePausedMutations() : Promise.resolve();
690
689
  }
691
690
  getQueryCache() {
692
- return l(this, h);
691
+ return l(this, d);
693
692
  }
694
693
  getMutationCache() {
695
- return l(this, T);
694
+ return l(this, R);
696
695
  }
697
696
  getDefaultOptions() {
698
697
  return l(this, I);
699
698
  }
700
699
  setDefaultOptions(t) {
701
- f(this, I, t);
700
+ g(this, I, t);
702
701
  }
703
702
  setQueryDefaults(t, e) {
704
- l(this, B).set(Ce(t), {
703
+ l(this, H).set(Ee(t), {
705
704
  queryKey: t,
706
705
  defaultOptions: e
707
706
  });
708
707
  }
709
708
  getQueryDefaults(t) {
710
- const e = [...l(this, B).values()];
709
+ const e = [...l(this, H).values()];
711
710
  let r = {};
712
711
  return e.forEach((s) => {
713
- Ee(t, s.queryKey) && (r = { ...r, ...s.defaultOptions });
712
+ ke(t, s.queryKey) && (r = { ...r, ...s.defaultOptions });
714
713
  }), r;
715
714
  }
716
715
  setMutationDefaults(t, e) {
717
- l(this, H).set(Ce(t), {
716
+ l(this, z).set(Ee(t), {
718
717
  mutationKey: t,
719
718
  defaultOptions: e
720
719
  });
721
720
  }
722
721
  getMutationDefaults(t) {
723
- const e = [...l(this, H).values()];
722
+ const e = [...l(this, z).values()];
724
723
  let r = {};
725
724
  return e.forEach((s) => {
726
- Ee(t, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
725
+ ke(t, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
727
726
  }), r;
728
727
  }
729
728
  defaultQueryOptions(t) {
@@ -735,10 +734,10 @@ var h, T, I, B, H, _, q, z, Re, Lr = (Re = class {
735
734
  ...t,
736
735
  _defaulted: !0
737
736
  };
738
- return e.queryHash || (e.queryHash = ze(
737
+ return e.queryHash || (e.queryHash = qe(
739
738
  e.queryKey,
740
739
  e
741
- )), 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.enabled !== !0 && e.queryFn === Bt && (e.enabled = !1), e;
740
+ )), 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.enabled !== !0 && e.queryFn === Qt && (e.enabled = !1), e;
742
741
  }
743
742
  defaultMutationOptions(t) {
744
743
  return t != null && t._defaulted ? t : {
@@ -749,16 +748,16 @@ var h, T, I, B, H, _, q, z, Re, Lr = (Re = class {
749
748
  };
750
749
  }
751
750
  clear() {
752
- l(this, h).clear(), l(this, T).clear();
751
+ l(this, d).clear(), l(this, R).clear();
753
752
  }
754
- }, h = new WeakMap(), T = new WeakMap(), I = new WeakMap(), B = new WeakMap(), H = new WeakMap(), _ = new WeakMap(), q = new WeakMap(), z = new WeakMap(), Re);
755
- const Br = Qe(null), se = {
753
+ }, d = new WeakMap(), R = new WeakMap(), I = new WeakMap(), H = new WeakMap(), z = new WeakMap(), T = new WeakMap(), q = new WeakMap(), K = new WeakMap(), Ie);
754
+ const Lr = Le(null), ne = {
756
755
  didCatch: !1,
757
756
  error: null
758
757
  };
759
- class Hr extends Et {
758
+ class Br extends Ct {
760
759
  constructor(e) {
761
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = se;
760
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
762
761
  }
763
762
  static getDerivedStateFromError(e) {
764
763
  return {
@@ -771,12 +770,12 @@ class Hr extends Et {
771
770
  error: e
772
771
  } = this.state;
773
772
  if (e !== null) {
774
- for (var r, s, n = arguments.length, o = new Array(n), i = 0; i < n; i++)
775
- o[i] = arguments[i];
773
+ for (var r, s, n = arguments.length, i = new Array(n), o = 0; o < n; o++)
774
+ i[o] = arguments[o];
776
775
  (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
777
- args: o,
776
+ args: i,
778
777
  reason: "imperative-api"
779
- }), this.setState(se);
778
+ }), this.setState(ne);
780
779
  }
781
780
  }
782
781
  componentDidCatch(e, r) {
@@ -789,13 +788,13 @@ class Hr extends Et {
789
788
  } = this.state, {
790
789
  resetKeys: n
791
790
  } = this.props;
792
- if (s && r.error !== null && qr(e.resetKeys, n)) {
793
- var o, i;
794
- (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
791
+ if (s && r.error !== null && Hr(e.resetKeys, n)) {
792
+ var i, o;
793
+ (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
795
794
  next: n,
796
795
  prev: e.resetKeys,
797
796
  reason: "keys"
798
- }), this.setState(se);
797
+ }), this.setState(ne);
799
798
  }
800
799
  }
801
800
  render() {
@@ -805,80 +804,80 @@ class Hr extends Et {
805
804
  FallbackComponent: s,
806
805
  fallback: n
807
806
  } = this.props, {
808
- didCatch: o,
809
- error: i
807
+ didCatch: i,
808
+ error: o
810
809
  } = this.state;
811
- let c = e;
812
- if (o) {
813
- const u = {
814
- error: i,
810
+ let u = e;
811
+ if (i) {
812
+ const c = {
813
+ error: o,
815
814
  resetErrorBoundary: this.resetErrorBoundary
816
815
  };
817
816
  if (typeof r == "function")
818
- c = r(u);
817
+ u = r(c);
819
818
  else if (s)
820
- c = je(s, u);
821
- else if (n === null || kt(n))
822
- c = n;
819
+ u = we(s, c);
820
+ else if (n !== void 0)
821
+ u = n;
823
822
  else
824
- throw i;
823
+ throw o;
825
824
  }
826
- return je(Br.Provider, {
825
+ return we(Lr.Provider, {
827
826
  value: {
828
- didCatch: o,
829
- error: i,
827
+ didCatch: i,
828
+ error: o,
830
829
  resetErrorBoundary: this.resetErrorBoundary
831
830
  }
832
- }, c);
831
+ }, u);
833
832
  }
834
833
  }
835
- function qr() {
834
+ function Hr() {
836
835
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
837
836
  return t.length !== e.length || t.some((r, s) => !Object.is(r, e[s]));
838
837
  }
839
- const zr = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Kr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", $r = (t) => "renderSearch" in t && typeof t.renderSearch == "function", Ur = (t) => "initialize" in t && typeof t.initialize == "function", Vr = (t) => "getHead" in t && typeof t.getHead == "function", Wr = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", Yr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new Lr();
840
- class Xr {
838
+ const zr = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", qr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Kr = (t) => "renderSearch" in t && typeof t.renderSearch == "function", $r = (t) => "initialize" in t && typeof t.initialize == "function", Ur = (t) => "getHead" in t && typeof t.getHead == "function", Vr = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", Wr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new Qr();
839
+ class Yr {
841
840
  constructor(e) {
842
- g(this, "plugins");
843
- g(this, "sidebars");
844
- g(this, "topNavigation");
845
- g(this, "meta");
846
- g(this, "page");
847
- g(this, "authentication");
848
- g(this, "navigationPlugins");
849
- g(this, "initialize", async () => {
841
+ v(this, "plugins");
842
+ v(this, "sidebars");
843
+ v(this, "topNavigation");
844
+ v(this, "meta");
845
+ v(this, "page");
846
+ v(this, "authentication");
847
+ v(this, "navigationPlugins");
848
+ v(this, "initialize", async () => {
850
849
  await Promise.all(
851
- this.plugins.filter(Ur).map((e) => {
850
+ this.plugins.filter($r).map((e) => {
852
851
  var r;
853
852
  return (r = e.initialize) == null ? void 0 : r.call(e, this);
854
853
  })
855
854
  );
856
855
  });
857
- g(this, "invalidateCache", async (e) => {
856
+ v(this, "invalidateCache", async (e) => {
858
857
  await et.invalidateQueries({ queryKey: e });
859
858
  });
860
- g(this, "getApiIdentities", async () => (await Promise.all(
861
- this.plugins.filter(Yr).map((r) => r.getIdentities(this))
859
+ v(this, "getApiIdentities", async () => (await Promise.all(
860
+ this.plugins.filter(Wr).map((r) => r.getIdentities(this))
862
861
  )).flat());
863
- g(this, "getPluginSidebar", async (e) => (await Promise.all(
862
+ v(this, "getPluginSidebar", async (e) => (await Promise.all(
864
863
  this.navigationPlugins.map(
865
864
  (s) => {
866
865
  var n;
867
- return (n = s.getSidebar) == null ? void 0 : n.call(s, G(e));
866
+ return (n = s.getSidebar) == null ? void 0 : n.call(s, L(e));
868
867
  }
869
868
  )
870
869
  )).flatMap((s) => s ?? []));
871
- g(this, "signRequest", async (e) => {
870
+ v(this, "signRequest", async (e) => {
872
871
  if (!this.authentication)
873
872
  throw new Error("No authentication provider configured");
874
873
  const r = await this.authentication.getAccessToken();
875
874
  return e.headers.set("Authorization", `Bearer ${r}`), e;
876
875
  });
877
- this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Kr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
876
+ this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(qr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
878
877
  }
879
878
  }
880
- function Zr({ error: t, resetErrorBoundary: e }) {
881
- return /* @__PURE__ */ a.jsx(_e, { error: t });
879
+ function Xr({ error: t, resetErrorBoundary: e }) {
880
+ return /* @__PURE__ */ a.jsx(Fe, { error: t });
882
881
  }
883
882
  const J = globalThis;
884
883
  (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
@@ -888,15 +887,15 @@ const De = {
888
887
  tip: "bg-green-600",
889
888
  caution: "bg-orange-500",
890
889
  danger: "bg-rose-500"
891
- }, Jr = () => {
892
- const { page: t } = L(), [e, r] = Q(!0);
890
+ }, Zr = () => {
891
+ const { page: t } = F(), [e, r] = Q(!0);
893
892
  if (!(t != null && t.banner) || !e)
894
893
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
895
894
  const s = t.banner.color && t.banner.color in De ? De[t.banner.color] : t.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: t.banner.color };
896
895
  return /* @__PURE__ */ a.jsxs(
897
896
  "div",
898
897
  {
899
- className: M(
898
+ className: A(
900
899
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
901
900
  s
902
901
  ),
@@ -909,25 +908,25 @@ const De = {
909
908
  type: "button",
910
909
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
911
910
  onClick: () => r(!1),
912
- children: /* @__PURE__ */ a.jsx(Xt, { size: 16 })
911
+ children: /* @__PURE__ */ a.jsx(Yt, { size: 16 })
913
912
  }
914
913
  )
915
914
  ]
916
915
  }
917
916
  );
918
917
  }, tt = () => {
919
- const t = L(), [e, r] = Q(!1), s = Le(() => r(!1), []);
920
- F(() => {
918
+ const t = F(), [e, r] = Q(!1), s = Be(() => r(!1), []);
919
+ _(() => {
921
920
  if (e)
922
921
  return;
923
- function o(i) {
924
- i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), r(!0));
922
+ function i(o) {
923
+ o.key === "k" && (o.metaKey || o.ctrlKey) && (o.preventDefault(), r(!0));
925
924
  }
926
- return window.addEventListener("keydown", o), () => {
927
- window.removeEventListener("keydown", o);
925
+ return window.addEventListener("keydown", i), () => {
926
+ window.removeEventListener("keydown", i);
928
927
  };
929
928
  }, [e, r]);
930
- const n = t.plugins.find($r);
929
+ const n = t.plugins.find(Kr);
931
930
  return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
932
931
  /* @__PURE__ */ a.jsxs(
933
932
  "button",
@@ -937,35 +936,46 @@ const De = {
937
936
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
938
937
  children: [
939
938
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
940
- /* @__PURE__ */ a.jsx(Zt, { size: 14 }),
939
+ /* @__PURE__ */ a.jsx(Xt, { size: 14 }),
941
940
  "Search"
942
941
  ] }),
943
942
  /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
944
943
  ]
945
944
  }
946
945
  ),
947
- /* @__PURE__ */ a.jsx(Be, { fallback: null, children: n.renderSearch({
946
+ /* @__PURE__ */ a.jsx(de, { fallback: null, children: n.renderSearch({
948
947
  isOpen: e,
949
948
  onClose: s
950
949
  }) })
951
950
  ] }) : null;
952
- }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Gr = () => {
953
- const { topNavigation: t } = L(), { isAuthenticated: e } = ee();
954
- return t.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
955
- U,
951
+ }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Jr = () => {
952
+ const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
953
+ return t.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(de, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(Gr, { ...r }) }, r.id)) }) }) });
954
+ }, Gr = ({ id: t, label: e, default: r }) => {
955
+ var c;
956
+ const { sidebars: s } = F(), n = Ke(), i = s[t], o = r ?? (i ? Lt(i, (m) => {
957
+ if (m.type === "doc") return L(m.id);
958
+ }) : L(t));
959
+ if (!o)
960
+ throw new Error(
961
+ `No links found in top navigation for top navigation '${t}'. Check that the sidebar isn't empty or that a default link set.`
962
+ );
963
+ const u = ((c = n.data.topNavItem) == null ? void 0 : c.id) === t;
964
+ return /* @__PURE__ */ a.jsx(
965
+ te,
956
966
  {
957
- className: ({ isActive: s }) => Ue(
967
+ className: Ue(
958
968
  "block py-3.5 font-medium -mb-px border-b-2",
959
- s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
969
+ u ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
960
970
  ),
961
- to: r.id,
962
- children: r.label
971
+ to: o,
972
+ children: e
963
973
  }
964
- ) }, r.label)) }) });
974
+ );
965
975
  }, ea = () => {
966
- const { topNavigation: t } = L(), { isAuthenticated: e } = ee();
976
+ const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
967
977
  return /* @__PURE__ */ a.jsxs(Ve, { direction: "right", children: [
968
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(We, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Jt, { size: 22 }) }) }),
978
+ /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(We, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Zt, { size: 22 }) }) }),
969
979
  /* @__PURE__ */ a.jsxs(
970
980
  Ye,
971
981
  {
@@ -975,7 +985,7 @@ const De = {
975
985
  /* @__PURE__ */ a.jsx($e, { children: /* @__PURE__ */ a.jsx(Xe, { children: "Navigation" }) }),
976
986
  /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(tt, {}) }),
977
987
  /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
978
- U,
988
+ G,
979
989
  {
980
990
  className: ({ isActive: s }) => Ue(
981
991
  "block font-medium border-b-2",
@@ -989,54 +999,60 @@ const De = {
989
999
  }
990
1000
  )
991
1001
  ] });
992
- }, at = ({ item: t }) => t.children ? /* @__PURE__ */ a.jsxs(cr, { children: [
993
- /* @__PURE__ */ a.jsx(ur, { children: t.label }),
994
- /* @__PURE__ */ a.jsx(dr, { children: /* @__PURE__ */ a.jsx(hr, { children: t.children.map((e, r) => (
1002
+ }, at = ({ item: t }) => t.children ? /* @__PURE__ */ a.jsxs(lr, { children: [
1003
+ /* @__PURE__ */ a.jsx(cr, { children: t.label }),
1004
+ /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(dr, { children: t.children.map((e, r) => (
995
1005
  // eslint-disable-next-line react/no-array-index-key
996
1006
  /* @__PURE__ */ a.jsx(at, { item: e }, r)
997
1007
  )) }) })
998
- ] }, t.label) : /* @__PURE__ */ a.jsx(ce, { to: t.path ?? "", children: /* @__PURE__ */ a.jsx(fr, { children: t.label }, t.label) }), st = He(function() {
999
- const e = ee(), [r, s] = Ut(), { isAuthenticated: n, profile: o, isAuthEnabled: i } = ee(), c = L(), { page: u, plugins: w } = c, x = w.filter((m) => zr(m)).flatMap((m) => m.getProfileMenuItems(c)).map((m) => /* @__PURE__ */ a.jsx(at, { item: m }, m.label)), y = r ? Gt : er;
1008
+ ] }, t.label) : /* @__PURE__ */ a.jsx(te, { to: t.path ?? "", children: /* @__PURE__ */ a.jsx(hr, { children: t.label }, t.label) }), st = He(function() {
1009
+ const e = ee(), [r, s] = $t(), { isAuthenticated: n, profile: i, isAuthEnabled: o } = ee(), u = F(), { page: c, plugins: m } = u, j = m.filter((p) => zr(p)).flatMap((p) => p.getProfileMenuItems(u)).map((p) => /* @__PURE__ */ a.jsx(at, { item: p }, p.label)), N = r ? Jt : Gt;
1000
1010
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1001
- /* @__PURE__ */ a.jsx(Jr, {}),
1011
+ /* @__PURE__ */ a.jsx(Zr, {}),
1002
1012
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1003
1013
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
1004
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(ce, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1005
- (u == null ? void 0 : u.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1014
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(te, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1015
+ (c == null ? void 0 : c.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1006
1016
  /* @__PURE__ */ a.jsx(
1007
1017
  "img",
1008
1018
  {
1009
- src: u.logo.src.light,
1010
- alt: u.logo.alt ?? u.pageTitle,
1011
- style: { width: u.logo.width },
1012
- className: M("h-10", r && "hidden"),
1019
+ src: /https?:\/\//.test(c.logo.src.light) ? c.logo.src.light : L(
1020
+ "/",
1021
+ c.logo.src.light
1022
+ ),
1023
+ alt: c.logo.alt ?? c.pageTitle,
1024
+ style: { width: c.logo.width },
1025
+ className: A("h-10", r && "hidden"),
1013
1026
  loading: "lazy"
1014
1027
  }
1015
1028
  ),
1016
1029
  /* @__PURE__ */ a.jsx(
1017
1030
  "img",
1018
1031
  {
1019
- src: u.logo.src.dark,
1020
- alt: u.logo.alt ?? u.pageTitle,
1021
- style: { width: u.logo.width },
1022
- className: M("h-10", !r && "hidden"),
1032
+ src: /https?:\/\//.test(c.logo.src.dark) ? c.logo.src.dark : L(
1033
+ "/",
1034
+ c.logo.src.dark
1035
+ ),
1036
+ alt: c.logo.alt ?? c.pageTitle,
1037
+ style: { width: c.logo.width },
1038
+ className: A("h-10", !r && "hidden"),
1023
1039
  loading: "lazy"
1024
1040
  }
1025
1041
  )
1026
1042
  ] }),
1027
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
1043
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: c == null ? void 0 : c.pageTitle })
1028
1044
  ] }) }) }),
1029
1045
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1030
1046
  /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(tt, {}) }),
1031
1047
  /* @__PURE__ */ a.jsx(ea, {}),
1032
1048
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1033
1049
  /* @__PURE__ */ a.jsx(k, { name: "head-navigation-start" }),
1034
- i && !n ? /* @__PURE__ */ a.jsx(ne, { variant: "ghost", onClick: () => e.login(), children: "Login" }) : x.length > 0 && /* @__PURE__ */ a.jsxs(sr, { modal: !1, children: [
1035
- /* @__PURE__ */ a.jsx(nr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ne, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
1036
- /* @__PURE__ */ a.jsxs(ir, { className: "w-56", children: [
1037
- /* @__PURE__ */ a.jsx(or, { children: "My Account" }),
1038
- /* @__PURE__ */ a.jsx(lr, {}),
1039
- x
1050
+ o && !n ? /* @__PURE__ */ a.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" }) : j.length > 0 && /* @__PURE__ */ a.jsxs(ar, { modal: !1, children: [
1051
+ /* @__PURE__ */ a.jsx(sr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ie, { variant: "ghost", children: i != null && i.email ? `${i.email}` : "My Account" }) }),
1052
+ /* @__PURE__ */ a.jsxs(nr, { className: "w-56", children: [
1053
+ /* @__PURE__ */ a.jsx(ir, { children: "My Account" }),
1054
+ /* @__PURE__ */ a.jsx(or, {}),
1055
+ j
1040
1056
  ] })
1041
1057
  ] }),
1042
1058
  /* @__PURE__ */ a.jsx(
@@ -1046,7 +1062,7 @@ const De = {
1046
1062
  "aria-label": r ? "Switch to light mode" : "Switch to dark mode",
1047
1063
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1048
1064
  onClick: s,
1049
- children: /* @__PURE__ */ a.jsx(y, { size: 18 })
1065
+ children: /* @__PURE__ */ a.jsx(N, { size: 18 })
1050
1066
  }
1051
1067
  ),
1052
1068
  /* @__PURE__ */ a.jsx(k, { name: "head-navigation-end" })
@@ -1054,85 +1070,85 @@ const De = {
1054
1070
  ] })
1055
1071
  ] }),
1056
1072
  /* @__PURE__ */ a.jsx(k, { name: "top-navigation-before" }),
1057
- /* @__PURE__ */ a.jsx(Gr, {}),
1073
+ /* @__PURE__ */ a.jsx(Jr, {}),
1058
1074
  /* @__PURE__ */ a.jsx(k, { name: "top-navigation-after" })
1059
1075
  ] })
1060
1076
  ] });
1061
1077
  }), nt = {
1062
1078
  Header: st
1063
- }, ta = Qe(nt), ra = ta.Provider, aa = (t) => {
1079
+ }, ta = Le(nt), ra = ta.Provider, aa = (t) => {
1064
1080
  const [e, r] = Q(!1);
1065
- F(() => {
1066
- const o = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), c = o === "dark" || !o && i.matches;
1067
- r(c);
1081
+ _(() => {
1082
+ const i = localStorage.getItem("theme"), o = window.matchMedia("(prefers-color-scheme: dark)"), u = i === "dark" || !i && o.matches;
1083
+ r(u);
1068
1084
  }, [e]);
1069
- const s = Le(() => {
1070
- const o = !e;
1071
- document.documentElement.classList.toggle("dark", o), localStorage.setItem("theme", o ? "dark" : "light"), r(o);
1085
+ const s = Be(() => {
1086
+ const i = !e;
1087
+ document.documentElement.classList.toggle("dark", i), localStorage.setItem("theme", i ? "dark" : "light"), r(i);
1072
1088
  }, [e]), n = [e, s];
1073
- return /* @__PURE__ */ a.jsx(Vt.Provider, { value: n, ...t });
1089
+ return /* @__PURE__ */ a.jsx(Ut.Provider, { value: n, ...t });
1074
1090
  }, sa = ({
1075
1091
  children: t,
1076
1092
  context: e
1077
- }) => (Ht({
1093
+ }) => (Bt({
1078
1094
  queryFn: async () => (await e.initialize(), !0),
1079
1095
  queryKey: ["zudoku-initialize"]
1080
- }), /* @__PURE__ */ a.jsx(qt.Provider, { value: e, children: t })), na = ({
1096
+ }), /* @__PURE__ */ a.jsx(Ht.Provider, { value: e, children: t })), na = ({
1081
1097
  children: t,
1082
1098
  ...e
1083
1099
  }) => {
1084
- var y, m;
1085
- const r = te(
1100
+ var N, p;
1101
+ const r = re(
1086
1102
  () => ({ ...nt, ...e.overrides }),
1087
1103
  [e.overrides]
1088
- ), s = te(() => {
1089
- var N;
1104
+ ), s = re(() => {
1105
+ var h;
1090
1106
  return {
1091
- ...(e.plugins ?? []).filter(Wr).flatMap(
1092
- (d) => d.getMdxComponents ? [d.getMdxComponents()] : []
1093
- ).reduce((d, O) => ({ ...d, ...O }), {}),
1094
- ...Wt,
1095
- ...(N = e.mdx) == null ? void 0 : N.components
1107
+ ...(e.plugins ?? []).filter(Vr).flatMap(
1108
+ (f) => f.getMdxComponents ? [f.getMdxComponents()] : []
1109
+ ).reduce((f, B) => ({ ...f, ...B }), {}),
1110
+ ...Vt,
1111
+ ...(h = e.mdx) == null ? void 0 : h.components
1096
1112
  };
1097
- }, [(y = e.mdx) == null ? void 0 : y.components, e.plugins]), { stagger: n } = Mt(ie), [o, i] = Q(!1), c = te(
1098
- () => o ? { stagger: !0 } : { stagger: n },
1099
- [n, o]
1100
- ), u = bt();
1101
- F(() => {
1102
- o || i(!0);
1103
- }, [o, u.location]);
1104
- const [w] = Q(() => new Xr(e)), x = (m = e.plugins) == null ? void 0 : m.filter(Vr).map((P, N) => {
1105
- var d;
1106
- return /* @__PURE__ */ a.jsx(Dt, { children: (d = P.getHead) == null ? void 0 : d.call(P) }, N);
1113
+ }, [(N = e.mdx) == null ? void 0 : N.components, e.plugins]), { stagger: n } = Et(oe), [i, o] = Q(!1), u = re(
1114
+ () => i ? { stagger: !0 } : { stagger: n },
1115
+ [n, i]
1116
+ ), c = xt();
1117
+ _(() => {
1118
+ i || o(!0);
1119
+ }, [i, c.location]);
1120
+ const [m] = Q(() => new Yr(e)), j = (p = e.plugins) == null ? void 0 : p.filter(Ur).map((P, h) => {
1121
+ var f;
1122
+ return /* @__PURE__ */ a.jsx(kt, { children: (f = P.getHead) == null ? void 0 : f.call(P) }, h);
1107
1123
  });
1108
1124
  return /* @__PURE__ */ a.jsxs(zt, { client: et, children: [
1109
- /* @__PURE__ */ a.jsx(le, { children: x }),
1110
- /* @__PURE__ */ a.jsx(ie.Provider, { value: c, children: /* @__PURE__ */ a.jsx(sa, { context: w, children: /* @__PURE__ */ a.jsx(ht, { components: s, children: /* @__PURE__ */ a.jsx(aa, { children: /* @__PURE__ */ a.jsx(ra, { value: r, children: /* @__PURE__ */ a.jsx(Pt, { slotlets: e.slotlets, children: /* @__PURE__ */ a.jsx(Yt, { children: t ?? /* @__PURE__ */ a.jsx(Ie, {}) }) }) }) }) }) }) })
1125
+ /* @__PURE__ */ a.jsx(ce, { children: j }),
1126
+ /* @__PURE__ */ a.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(sa, { context: m, children: /* @__PURE__ */ a.jsx(ht, { components: s, children: /* @__PURE__ */ a.jsx(aa, { children: /* @__PURE__ */ a.jsx(ra, { value: r, children: /* @__PURE__ */ a.jsx(wt, { slotlets: e.slotlets, children: /* @__PURE__ */ a.jsx(Wt, { children: t ?? /* @__PURE__ */ a.jsx(_e, {}) }) }) }) }) }) }) })
1111
1127
  ] });
1112
- }, ia = He(na), ge = (t) => /* @__PURE__ */ a.jsx(Hr, { FallbackComponent: Zr, children: /* @__PURE__ */ a.jsx(ia, { ...t }) });
1113
- ge.displayName = "DevPortal";
1128
+ }, ia = He(na), pe = (t) => /* @__PURE__ */ a.jsx(Br, { FallbackComponent: Xr, children: /* @__PURE__ */ a.jsx(ia, { ...t }) });
1129
+ pe.displayName = "DevPortal";
1114
1130
  const oa = ({
1115
1131
  category: t,
1116
1132
  level: e
1117
1133
  }) => {
1118
- var P, N;
1119
- const r = Ke(), s = ft(t), [n, o] = Q(!1), i = t.collapsible ?? !0, c = t.collapsed ?? !0, u = !!(!i || !c || s), [w, x] = Q(u), y = yt(G(r == null ? void 0 : r.id, (P = t.link) == null ? void 0 : P.id));
1120
- F(() => {
1121
- s && x(!0);
1122
- }, [s]);
1123
- const m = i && /* @__PURE__ */ a.jsx(
1134
+ var p, P;
1135
+ const r = qt(t), [s, n] = Q(!1), i = t.collapsible ?? !0, o = t.collapsed ?? !0, u = !!(!i || !o || r), [c, m] = Q(u), j = bt(((p = t.link) == null ? void 0 : p.id) ?? "");
1136
+ _(() => {
1137
+ r && m(!0);
1138
+ }, [r]);
1139
+ const N = i && /* @__PURE__ */ a.jsx(
1124
1140
  "button",
1125
1141
  {
1126
1142
  type: "button",
1127
- onClick: (d) => {
1128
- d.preventDefault(), x((O) => !O), o(!0);
1143
+ onClick: (h) => {
1144
+ h.preventDefault(), m((f) => !f), n(!0);
1129
1145
  },
1130
1146
  children: /* @__PURE__ */ a.jsx(
1131
- tr,
1147
+ er,
1132
1148
  {
1133
1149
  size: 16,
1134
- className: M(
1135
- n && "transition",
1150
+ className: A(
1151
+ s && "transition",
1136
1152
  "shrink-0 group-data-[state=open]:rotate-90"
1137
1153
  )
1138
1154
  }
@@ -1140,18 +1156,18 @@ const oa = ({
1140
1156
  }
1141
1157
  );
1142
1158
  return /* @__PURE__ */ a.jsxs(
1143
- ae.Root,
1159
+ se.Root,
1144
1160
  {
1145
1161
  className: "flex flex-col",
1146
1162
  defaultOpen: u,
1147
- open: w,
1148
- onOpenChange: () => x(!0),
1163
+ open: c,
1164
+ onOpenChange: () => m(!0),
1149
1165
  children: [
1150
- /* @__PURE__ */ a.jsx(ae.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
1166
+ /* @__PURE__ */ a.jsx(se.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
1151
1167
  "div",
1152
1168
  {
1153
- onClick: () => o(!0),
1154
- className: $({
1169
+ onClick: () => n(!0),
1170
+ className: U({
1155
1171
  isActive: !1,
1156
1172
  isTopLevel: e === 0,
1157
1173
  className: [
@@ -1164,62 +1180,62 @@ const oa = ({
1164
1180
  t.icon,
1165
1181
  {
1166
1182
  size: 16,
1167
- className: M(
1183
+ className: A(
1168
1184
  "align-[-0.125em] -translate-x-1",
1169
- y && "text-primary"
1185
+ j && "text-primary"
1170
1186
  )
1171
1187
  }
1172
1188
  ),
1173
- ((N = t.link) == null ? void 0 : N.type) === "doc" ? /* @__PURE__ */ a.jsx(
1174
- U,
1189
+ ((P = t.link) == null ? void 0 : P.type) === "doc" ? /* @__PURE__ */ a.jsx(
1190
+ G,
1175
1191
  {
1176
- to: G(r == null ? void 0 : r.id, t.link.id),
1192
+ to: L(t.link.id),
1177
1193
  className: "flex-1",
1178
1194
  onClick: () => {
1179
- y && !w && x(!0);
1195
+ j && !c && m(!0);
1180
1196
  },
1181
1197
  children: /* @__PURE__ */ a.jsxs(
1182
1198
  "div",
1183
1199
  {
1184
- className: M(
1200
+ className: A(
1185
1201
  "flex items-center gap-2 justify-between w-full",
1186
- y ? "text-primary" : "text-foreground/80"
1202
+ j ? "text-primary" : "text-foreground/80"
1187
1203
  ),
1188
1204
  children: [
1189
1205
  /* @__PURE__ */ a.jsx("div", { className: "truncate", children: t.label }),
1190
- m
1206
+ N
1191
1207
  ]
1192
1208
  }
1193
1209
  )
1194
1210
  }
1195
1211
  ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
1196
1212
  /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: t.label }),
1197
- m
1213
+ N
1198
1214
  ] })
1199
1215
  ]
1200
1216
  }
1201
1217
  ) }),
1202
1218
  /* @__PURE__ */ a.jsx(
1203
- ae.Content,
1219
+ se.Content,
1204
1220
  {
1205
- className: M(
1221
+ className: A(
1206
1222
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
1207
- n && "CollapsibleContent"
1223
+ s && "CollapsibleContent"
1208
1224
  ),
1209
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: t.items.map((d) => /* @__PURE__ */ a.jsx(
1210
- oe,
1225
+ children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: t.items.map((h) => /* @__PURE__ */ a.jsx(
1226
+ le,
1211
1227
  {
1212
1228
  level: e + 1,
1213
- item: d
1229
+ item: h
1214
1230
  },
1215
- ("id" in d ? d.id : "") + ("href" in d ? d.href : "") + d.label
1231
+ ("id" in h ? h.id : "") + ("href" in h ? h.href : "") + h.label
1216
1232
  )) })
1217
1233
  }
1218
1234
  )
1219
1235
  ]
1220
1236
  }
1221
1237
  );
1222
- }, $ = mr(
1238
+ }, U = fr(
1223
1239
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1224
1240
  {
1225
1241
  variants: {
@@ -1240,68 +1256,68 @@ const oa = ({
1240
1256
  isActive: !1
1241
1257
  }
1242
1258
  }
1243
- ), it = "data-anchor", oe = ({
1259
+ ), it = "data-anchor", le = ({
1244
1260
  item: t,
1245
1261
  level: e = 0
1246
1262
  }) => {
1247
- var o, i;
1248
- const r = Ke(), { activeAnchor: s } = fe(), [n] = jt();
1263
+ var n, i;
1264
+ const { activeAnchor: r } = ge(), [s] = yt();
1249
1265
  switch (t.type) {
1250
1266
  case "category":
1251
1267
  return /* @__PURE__ */ a.jsx(oa, { category: t, level: e });
1252
1268
  case "doc":
1253
1269
  return /* @__PURE__ */ a.jsxs(
1254
- U,
1270
+ G,
1255
1271
  {
1256
- className: ({ isActive: c }) => $({ isActive: c, isTopLevel: e === 0 }),
1257
- to: G(r == null ? void 0 : r.id, t.id),
1272
+ className: ({ isActive: o }) => U({ isActive: o, isTopLevel: e === 0 }),
1273
+ to: L(t.id),
1258
1274
  children: [
1259
1275
  t.icon && /* @__PURE__ */ a.jsx(t.icon, { size: 16, className: "align-[-0.125em]" }),
1260
1276
  t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1261
1277
  /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: t.label, children: t.label }),
1262
- /* @__PURE__ */ a.jsx(re, { ...t.badge })
1278
+ /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1263
1279
  ] }) : t.label
1264
1280
  ]
1265
1281
  }
1266
1282
  );
1267
1283
  case "link":
1268
1284
  return t.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
1269
- mt,
1285
+ ft,
1270
1286
  {
1271
- to: { hash: t.href, search: n.toString() },
1287
+ to: { hash: t.href, search: s.toString() },
1272
1288
  [it]: t.href.slice(1),
1273
- className: $({
1274
- isActive: t.href.slice(1) === s,
1289
+ className: U({
1290
+ isActive: t.href.slice(1) === r,
1275
1291
  isTopLevel: e === 0,
1276
- className: ((o = t.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
1292
+ className: ((n = t.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
1277
1293
  }),
1278
1294
  children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1279
1295
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
1280
- /* @__PURE__ */ a.jsx(re, { ...t.badge })
1296
+ /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1281
1297
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
1282
1298
  }
1283
1299
  ) : t.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
1284
1300
  "a",
1285
1301
  {
1286
- className: $({ isTopLevel: e === 0 }),
1302
+ className: U({ isTopLevel: e === 0 }),
1287
1303
  href: t.href,
1288
1304
  target: "_blank",
1289
1305
  rel: "noopener noreferrer",
1290
1306
  children: [
1291
1307
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: t.label }),
1292
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(rr, { className: "inline -translate-y-0.5", size: 12 }) })
1308
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(tr, { className: "inline -translate-y-0.5", size: 12 }) })
1293
1309
  ]
1294
1310
  }
1295
1311
  ) : /* @__PURE__ */ a.jsx(
1296
- U,
1312
+ G,
1297
1313
  {
1298
- className: $({
1314
+ className: U({
1299
1315
  className: ((i = t.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
1300
1316
  }),
1301
1317
  to: t.href,
1302
1318
  children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1303
1319
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
1304
- /* @__PURE__ */ a.jsx(re, { ...t.badge })
1320
+ /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1305
1321
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
1306
1322
  }
1307
1323
  );
@@ -1311,30 +1327,30 @@ const oa = ({
1311
1327
  const r = t.getBoundingClientRect();
1312
1328
  r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || t.scrollIntoView(e);
1313
1329
  }, ca = () => {
1314
- const t = ue(), { setActiveAnchor: e } = fe();
1315
- F(() => {
1330
+ const t = ue(), { setActiveAnchor: e } = ge();
1331
+ _(() => {
1316
1332
  if (!t.hash) return;
1317
1333
  const r = decodeURIComponent(t.hash.split("/")[0].slice(1)), s = () => {
1318
- const n = document.getElementById(r), o = document.querySelector(`[${it}="${r}"]`);
1319
- return n ? (n.scrollIntoView(), la(o), requestIdleCallback(() => e(r)), !0) : !1;
1334
+ const n = document.getElementById(r), i = document.querySelector(`[${it}="${r}"]`);
1335
+ return n ? (n.scrollIntoView(), la(i), requestIdleCallback(() => e(r)), !0) : !1;
1320
1336
  };
1321
1337
  if (!s()) {
1322
- const n = new MutationObserver((o, i) => {
1323
- s() && i.disconnect();
1338
+ const n = new MutationObserver((i, o) => {
1339
+ s() && o.disconnect();
1324
1340
  });
1325
1341
  return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
1326
1342
  }
1327
1343
  }, [t.hash, e]);
1328
1344
  }, ua = () => {
1329
- const t = ue(), e = de(t.pathname);
1330
- F(() => {
1345
+ const t = ue(), e = he(t.pathname);
1346
+ _(() => {
1331
1347
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1332
1348
  }, [t.pathname]);
1333
1349
  }, ot = At(({ children: t, className: e, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1334
1350
  "nav",
1335
1351
  {
1336
1352
  "data-navigation": String(r),
1337
- className: M(
1353
+ className: A(
1338
1354
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
1339
1355
  "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
1340
1356
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
@@ -1346,16 +1362,16 @@ const oa = ({
1346
1362
  ));
1347
1363
  ot.displayName = "SidebarWrapper";
1348
1364
  const da = () => {
1349
- const t = de(null), e = Kt();
1365
+ const t = he(null), e = Ke();
1350
1366
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1351
1367
  /* @__PURE__ */ a.jsxs(
1352
1368
  ot,
1353
1369
  {
1354
1370
  ref: t,
1355
- pushMainContent: e.data.items.length > 0,
1371
+ pushMainContent: e.data.sidebar.length > 0,
1356
1372
  children: [
1357
1373
  /* @__PURE__ */ a.jsx(k, { name: "zudoku-before-navigation" }),
1358
- e.data.items.map((r) => /* @__PURE__ */ a.jsx(oe, { item: r }, r.label)),
1374
+ e.data.sidebar.map((r) => /* @__PURE__ */ a.jsx(le, { item: r }, r.label)),
1359
1375
  /* @__PURE__ */ a.jsx(k, { name: "zudoku-after-navigation" })
1360
1376
  ]
1361
1377
  }
@@ -1367,23 +1383,23 @@ const da = () => {
1367
1383
  "aria-describedby": void 0,
1368
1384
  children: [
1369
1385
  /* @__PURE__ */ a.jsx($e, { children: /* @__PURE__ */ a.jsx(Xe, { children: "Sidebar" }) }),
1370
- e.data.items.map((r) => /* @__PURE__ */ a.jsx(oe, { item: r }, r.label))
1386
+ e.data.sidebar.map((r) => /* @__PURE__ */ a.jsx(le, { item: r }, r.label))
1371
1387
  ]
1372
1388
  }
1373
1389
  )
1374
1390
  ] });
1375
1391
  }, ha = ({ children: t }) => {
1376
- const e = ue(), { setActiveAnchor: r } = fe(), { meta: s, authentication: n } = L();
1392
+ const e = ue(), { setActiveAnchor: r } = ge(), { meta: s, authentication: n } = F();
1377
1393
  ca(), ua();
1378
- const o = de(e.pathname);
1379
- return F(() => {
1380
- var i;
1381
- (i = n == null ? void 0 : n.pageLoad) == null || i.call(n);
1382
- }, [n]), F(() => {
1383
- e.pathname !== o.current && r(""), o.current = e.pathname;
1394
+ const i = he(e.pathname);
1395
+ return _(() => {
1396
+ var o;
1397
+ (o = n == null ? void 0 : n.pageLoad) == null || o.call(n);
1398
+ }, [n]), _(() => {
1399
+ e.pathname !== i.current && r(""), i.current = e.pathname;
1384
1400
  }, [e.pathname, r]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1385
1401
  !1,
1386
- /* @__PURE__ */ a.jsxs(le, { titleTemplate: s == null ? void 0 : s.title, children: [
1402
+ /* @__PURE__ */ a.jsxs(ce, { titleTemplate: s == null ? void 0 : s.title, children: [
1387
1403
  (s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
1388
1404
  (s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
1389
1405
  ] }),
@@ -1391,20 +1407,20 @@ const da = () => {
1391
1407
  /* @__PURE__ */ a.jsx(st, {}),
1392
1408
  /* @__PURE__ */ a.jsx(k, { name: "layout-after-head" }),
1393
1409
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
1394
- Be,
1410
+ de,
1395
1411
  {
1396
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(pr, {}) }),
1412
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(mr, {}) }),
1397
1413
  children: /* @__PURE__ */ a.jsxs(Ve, { direction: "left", children: [
1398
1414
  /* @__PURE__ */ a.jsx(da, {}),
1399
1415
  /* @__PURE__ */ a.jsx(
1400
1416
  "div",
1401
1417
  {
1402
- className: M(
1418
+ className: A(
1403
1419
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1404
1420
  "peer-data-[navigation=false]:hidden"
1405
1421
  ),
1406
1422
  children: /* @__PURE__ */ a.jsxs(We, { className: "flex items-center gap-2", children: [
1407
- /* @__PURE__ */ a.jsx(ar, { size: 16, strokeWidth: 1.5 }),
1423
+ /* @__PURE__ */ a.jsx(rr, { size: 16, strokeWidth: 1.5 }),
1408
1424
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
1409
1425
  ] })
1410
1426
  }
@@ -1412,7 +1428,7 @@ const da = () => {
1412
1428
  /* @__PURE__ */ a.jsxs(
1413
1429
  "main",
1414
1430
  {
1415
- className: M(
1431
+ className: A(
1416
1432
  "h-full dark:border-white/10 translate-x-0",
1417
1433
  "lg:overflow-visible",
1418
1434
  // This works in tandem with the `SidebarWrapper` component
@@ -1421,7 +1437,7 @@ const da = () => {
1421
1437
  ),
1422
1438
  children: [
1423
1439
  /* @__PURE__ */ a.jsx(k, { name: "zudoku-before-content" }),
1424
- t ?? /* @__PURE__ */ a.jsx(Ie, {}),
1440
+ t ?? /* @__PURE__ */ a.jsx(_e, {}),
1425
1441
  /* @__PURE__ */ a.jsx(k, { name: "zudoku-after-content" })
1426
1442
  ]
1427
1443
  }
@@ -1430,22 +1446,22 @@ const da = () => {
1430
1446
  }
1431
1447
  ) })
1432
1448
  ] });
1433
- }, Fa = gt, Qa = ge, La = ha, Ba = Nt, Ha = vr, qa = Tr, za = Ir, Ka = le, $a = L, Ua = wt, Va = ge, Wa = St, Ya = Rt, Xa = ne, Za = ce;
1449
+ }, _a = gt, Fa = pe, Qa = ha, La = Nt, Ba = pr, Ha = Rr, za = Ir, qa = ce, Ka = F, $a = jt, Ua = pe, Va = Pt, Wa = Dt, Ya = ie, Xa = te;
1434
1450
  export {
1435
- qa as Bootstrap,
1451
+ Ha as Bootstrap,
1436
1452
  za as BootstrapStatic,
1437
- Xa as Button,
1438
- Wa as Callout,
1439
- Ya as ClientOnly,
1440
- Qa as DevPortal,
1441
- Ka as Head,
1442
- La as Layout,
1443
- Za as Link,
1444
- Ba as RouterError,
1445
- Ha as ServerError,
1446
- Va as Zudoku,
1447
- Ua as useAuth,
1448
- Fa as useMDXComponents,
1449
- $a as useZudoku
1453
+ Ya as Button,
1454
+ Va as Callout,
1455
+ Wa as ClientOnly,
1456
+ Fa as DevPortal,
1457
+ qa as Head,
1458
+ Qa as Layout,
1459
+ Xa as Link,
1460
+ La as RouterError,
1461
+ Ba as ServerError,
1462
+ Ua as Zudoku,
1463
+ $a as useAuth,
1464
+ _a as useMDXComponents,
1465
+ Ka as useZudoku
1450
1466
  };
1451
1467
  //# sourceMappingURL=zudoku.components.js.map