zudoku 0.3.0-dev.99 → 0.3.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/app/demo.js +5 -9
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/main.js +9 -7
  4. package/dist/app/main.js.map +1 -1
  5. package/dist/app/standalone.js +12 -8
  6. package/dist/app/standalone.js.map +1 -1
  7. package/dist/cli/dev/handler.js +1 -1
  8. package/dist/config/validators/SidebarSchema.js +9 -4
  9. package/dist/config/validators/SidebarSchema.js.map +1 -1
  10. package/dist/lib/components/ClientOnly.d.ts +3 -0
  11. package/dist/lib/components/ClientOnly.js +7 -0
  12. package/dist/lib/components/ClientOnly.js.map +1 -0
  13. package/dist/lib/components/Header.js +3 -2
  14. package/dist/lib/components/Header.js.map +1 -1
  15. package/dist/lib/components/Markdown.js +3 -2
  16. package/dist/lib/components/Markdown.js.map +1 -1
  17. package/dist/lib/components/Search.js +5 -8
  18. package/dist/lib/components/Search.js.map +1 -1
  19. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  20. package/dist/lib/components/SlotletProvider.js +7 -2
  21. package/dist/lib/components/SlotletProvider.js.map +1 -1
  22. package/dist/lib/components/navigation/SidebarCategory.js +6 -2
  23. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  24. package/dist/lib/components/navigation/SidebarItem.js +3 -2
  25. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  26. package/dist/lib/components/navigation/SidebarWrapper.js +2 -3
  27. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  28. package/dist/lib/core/plugins.d.ts +1 -1
  29. package/dist/lib/core/plugins.js +1 -1
  30. package/dist/lib/core/plugins.js.map +1 -1
  31. package/dist/lib/oas/graphql/index.js +18 -3
  32. package/dist/lib/oas/graphql/index.js.map +1 -1
  33. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  34. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  35. package/dist/lib/plugins/openapi/OperationListItem.js +5 -5
  36. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  37. package/dist/lib/plugins/openapi/ParameterList.js +3 -1
  38. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  39. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
  40. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +5 -9
  41. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  42. package/dist/lib/plugins/openapi/Sidecar.d.ts +3 -1
  43. package/dist/lib/plugins/openapi/Sidecar.js +11 -5
  44. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  45. package/dist/lib/plugins/openapi/index.js +1 -1
  46. package/dist/lib/plugins/openapi/index.js.map +1 -1
  47. package/dist/lib/plugins/openapi/playground/Playground.js +2 -3
  48. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  49. package/dist/lib/plugins/openapi/playground/createUrl.js +5 -1
  50. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  51. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +13 -0
  52. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +28 -0
  53. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -0
  54. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +6 -0
  55. package/dist/lib/plugins/openapi/schema/SchemaView.js +58 -0
  56. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -0
  57. package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
  58. package/dist/lib/plugins/openapi/schema/utils.js +6 -0
  59. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -0
  60. package/dist/lib/plugins/search-inkeep/index.js +3 -5
  61. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  62. package/dist/lib/themeToggle.d.ts +1 -0
  63. package/dist/lib/themeToggle.js +7 -0
  64. package/dist/lib/themeToggle.js.map +1 -0
  65. package/dist/lib/util/MdxComponents.js +4 -4
  66. package/dist/lib/util/MdxComponents.js.map +1 -1
  67. package/dist/vite/config.d.ts +4 -5
  68. package/dist/vite/config.js +7 -4
  69. package/dist/vite/config.js.map +1 -1
  70. package/dist/vite/config.test.js +2 -2
  71. package/dist/vite/config.test.js.map +1 -1
  72. package/dist/vite/dev-server.d.ts +0 -1
  73. package/dist/vite/dev-server.js +2 -21
  74. package/dist/vite/dev-server.js.map +1 -1
  75. package/dist/vite/html.js +2 -11
  76. package/dist/vite/html.js.map +1 -1
  77. package/dist/vite/plugin-api-keys.d.ts +3 -3
  78. package/dist/vite/plugin-api-keys.js +2 -1
  79. package/dist/vite/plugin-api-keys.js.map +1 -1
  80. package/dist/vite/plugin-api.d.ts +3 -3
  81. package/dist/vite/plugin-api.js +2 -1
  82. package/dist/vite/plugin-api.js.map +1 -1
  83. package/dist/vite/plugin-auth.d.ts +3 -3
  84. package/dist/vite/plugin-auth.js +2 -1
  85. package/dist/vite/plugin-auth.js.map +1 -1
  86. package/dist/vite/plugin-component.d.ts +3 -3
  87. package/dist/vite/plugin-component.js +17 -14
  88. package/dist/vite/plugin-component.js.map +1 -1
  89. package/dist/vite/plugin-config-reload.d.ts +4 -0
  90. package/dist/vite/plugin-config-reload.js +24 -0
  91. package/dist/vite/plugin-config-reload.js.map +1 -0
  92. package/dist/vite/plugin-config.d.ts +2 -2
  93. package/dist/vite/plugin-config.js.map +1 -1
  94. package/dist/vite/plugin-custom-css.d.ts +3 -3
  95. package/dist/vite/plugin-custom-css.js +2 -1
  96. package/dist/vite/plugin-custom-css.js.map +1 -1
  97. package/dist/vite/plugin-docs.d.ts +3 -3
  98. package/dist/vite/plugin-docs.js +3 -2
  99. package/dist/vite/plugin-docs.js.map +1 -1
  100. package/dist/vite/plugin-html-transform.d.ts +2 -0
  101. package/dist/vite/plugin-html-transform.js +15 -0
  102. package/dist/vite/plugin-html-transform.js.map +1 -0
  103. package/dist/vite/plugin-mdx.d.ts +3 -3
  104. package/dist/vite/plugin-mdx.js +2 -1
  105. package/dist/vite/plugin-mdx.js.map +1 -1
  106. package/dist/vite/plugin-metadata.d.ts +1 -1
  107. package/dist/vite/plugin-redirect.d.ts +3 -3
  108. package/dist/vite/plugin-redirect.js +2 -1
  109. package/dist/vite/plugin-redirect.js.map +1 -1
  110. package/dist/vite/plugin-sidebar.d.ts +3 -3
  111. package/dist/vite/plugin-sidebar.js +5 -4
  112. package/dist/vite/plugin-sidebar.js.map +1 -1
  113. package/dist/vite/plugin.d.ts +3 -2
  114. package/dist/vite/plugin.js +16 -11
  115. package/dist/vite/plugin.js.map +1 -1
  116. package/lib/{CategoryHeading-BWq12Bfa.js → CategoryHeading-z15xh7Jb.js} +2 -2
  117. package/lib/{CategoryHeading-BWq12Bfa.js.map → CategoryHeading-z15xh7Jb.js.map} +1 -1
  118. package/lib/{Combination-D-9IH0zy.js → Combination-DTfV-c98.js} +2 -2
  119. package/lib/{Combination-D-9IH0zy.js.map → Combination-DTfV-c98.js.map} +1 -1
  120. package/lib/{Input-HmAaR6kw.js → Input-DB9VROFR.js} +3 -3
  121. package/lib/{Input-HmAaR6kw.js.map → Input-DB9VROFR.js.map} +1 -1
  122. package/lib/Markdown-CEccPMI_.js +20508 -0
  123. package/lib/Markdown-CEccPMI_.js.map +1 -0
  124. package/lib/{MdxPage-oN3huD58.js → MdxPage-CnqOoqvp.js} +12 -15
  125. package/lib/MdxPage-CnqOoqvp.js.map +1 -0
  126. package/lib/OperationList-Cxiw2Z-v.js +457 -0
  127. package/lib/OperationList-Cxiw2Z-v.js.map +1 -0
  128. package/lib/{Route-DAF15JAU.js → Route-DfAFiR7v.js} +2 -2
  129. package/lib/{Route-DAF15JAU.js.map → Route-DfAFiR7v.js.map} +1 -1
  130. package/lib/SlotletProvider-ByLSCZQa.js +262 -0
  131. package/lib/SlotletProvider-ByLSCZQa.js.map +1 -0
  132. package/lib/{Spinner-BCz1kNGw.js → Spinner-BT_AYFrA.js} +3 -3
  133. package/lib/{Spinner-BCz1kNGw.js.map → Spinner-BT_AYFrA.js.map} +1 -1
  134. package/lib/assets/{worker-CR7aeKop.js → worker-CzHUifWA.js} +710 -703
  135. package/lib/assets/{worker-CR7aeKop.js.map → worker-CzHUifWA.js.map} +1 -1
  136. package/lib/{index-CtKkHGcd.js → index-D-9zqIOh.js} +1159 -1147
  137. package/lib/index-D-9zqIOh.js.map +1 -0
  138. package/lib/{index-D-9Z7HSn.js → index-Dz4LyXZI.js} +3 -3
  139. package/lib/{index-D-9Z7HSn.js.map → index-Dz4LyXZI.js.map} +1 -1
  140. package/lib/zudoku.components.js +775 -759
  141. package/lib/zudoku.components.js.map +1 -1
  142. package/lib/zudoku.openapi-worker.js +734 -727
  143. package/lib/zudoku.openapi-worker.js.map +1 -1
  144. package/lib/zudoku.plugin-api-keys.js +4 -4
  145. package/lib/zudoku.plugin-custom-page.js +1 -1
  146. package/lib/zudoku.plugin-markdown.js +1 -1
  147. package/lib/zudoku.plugin-openapi.js +3 -3
  148. package/lib/zudoku.plugin-search-inkeep.js +23 -22
  149. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  150. package/package.json +99 -78
  151. package/src/app/demo-cdn.html +1 -1
  152. package/src/app/demo.html +1 -1
  153. package/src/app/demo.tsx +7 -9
  154. package/src/app/main.css +22 -0
  155. package/src/app/main.tsx +11 -8
  156. package/src/app/standalone.html +1 -1
  157. package/src/app/standalone.tsx +13 -8
  158. package/src/lib/components/ClientOnly.tsx +13 -0
  159. package/src/lib/components/Header.tsx +3 -0
  160. package/src/lib/components/Markdown.tsx +3 -2
  161. package/src/lib/components/Search.tsx +7 -7
  162. package/src/lib/components/SlotletProvider.tsx +10 -5
  163. package/src/lib/components/navigation/SidebarCategory.tsx +13 -2
  164. package/src/lib/components/navigation/SidebarItem.tsx +3 -2
  165. package/src/lib/components/navigation/SidebarWrapper.tsx +20 -18
  166. package/src/lib/core/plugins.ts +2 -2
  167. package/src/lib/oas/graphql/index.ts +26 -7
  168. package/src/lib/plugins/markdown/MdxPage.tsx +0 -1
  169. package/src/lib/plugins/openapi/OperationListItem.tsx +22 -17
  170. package/src/lib/plugins/openapi/ParameterList.tsx +10 -8
  171. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +51 -39
  172. package/src/lib/plugins/openapi/Sidecar.tsx +34 -19
  173. package/src/lib/plugins/openapi/index.tsx +1 -1
  174. package/src/lib/plugins/openapi/playground/Playground.tsx +3 -6
  175. package/src/lib/plugins/openapi/playground/createUrl.ts +6 -5
  176. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +126 -0
  177. package/src/lib/plugins/openapi/schema/SchemaView.tsx +172 -0
  178. package/src/lib/plugins/openapi/schema/utils.ts +10 -0
  179. package/src/lib/plugins/search-inkeep/index.tsx +11 -9
  180. package/src/lib/themeToggle.ts +7 -0
  181. package/src/lib/util/MdxComponents.tsx +12 -12
  182. package/LICENSE.md +0 -21
  183. package/dist/lib/plugins/openapi/SchemaListView.d.ts +0 -7
  184. package/dist/lib/plugins/openapi/SchemaListView.js +0 -27
  185. package/dist/lib/plugins/openapi/SchemaListView.js.map +0 -1
  186. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +0 -8
  187. package/dist/lib/plugins/openapi/SchemaListViewItem.js +0 -25
  188. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +0 -1
  189. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +0 -8
  190. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +0 -17
  191. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +0 -1
  192. package/lib/Markdown-B_Gax7at.js +0 -14108
  193. package/lib/Markdown-B_Gax7at.js.map +0 -1
  194. package/lib/MdxPage-oN3huD58.js.map +0 -1
  195. package/lib/OperationList-Ctj0ihBN.js +0 -448
  196. package/lib/OperationList-Ctj0ihBN.js.map +0 -1
  197. package/lib/SlotletProvider-CzMAO73_.js +0 -82
  198. package/lib/SlotletProvider-CzMAO73_.js.map +0 -1
  199. package/lib/index-CtKkHGcd.js.map +0 -1
  200. package/src/lib/plugins/openapi/SchemaListView.tsx +0 -75
  201. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +0 -125
  202. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +0 -63
@@ -1,39 +1,39 @@
1
- var ar = Object.defineProperty;
1
+ var ir = Object.defineProperty;
2
2
  var dt = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var sr = (e, t, n) => t in e ? ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var P = (e, t, n) => sr(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
7
- var h = (e, t, n) => (ht(e, t, "read from private field"), n ? n.call(e) : t.get(e)), N = (e, t, n) => t.has(e) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), R = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
- var Me = (e, t, n, r) => ({
9
- set _(a) {
10
- R(e, t, a, n);
5
+ var cr = (e, t, n) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var j = (e, t, n) => cr(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
7
+ var f = (e, t, n) => (ht(e, t, "read from private field"), n ? n.call(e) : t.get(e)), N = (e, t, n) => t.has(e) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), S = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
+ var Ce = (e, t, n, r) => ({
9
+ set _(o) {
10
+ S(e, t, o, n);
11
11
  },
12
12
  get _() {
13
- return h(e, t, r);
13
+ return f(e, t, r);
14
14
  }
15
15
  });
16
- import { H as St, a as Ge, M as ir, u as cr, A as ur, b as lr } from "./utils-Bh4upQ0e.js";
17
- import { d as dr, a as hr, R as fr, N as Se, u as De, L as Pe, b as pr, c as mr, O as Pt } from "./index-7kcHaXD6.js";
18
- import { E as jt, S as gr, a as je, R as vr } from "./SlotletProvider-CzMAO73_.js";
19
- import { j as o } from "./jsx-runtime-B6kdoens.js";
20
- import { M as xr, c as yr, a as Et, b as _t, A as wr, u as me, h as br, d as y, e as Mr, F as Cr, D as Rr, C as Sr, P as se, f as He, g as Pr, i as Nt, R as jr, S as Er, j as _r, k as Nr, l as Dt, m as Dr, n as Ee, o as It, p as Ir, B as Qe } from "./Combination-D-9IH0zy.js";
21
- import { c as ie, a as M, C as kr, b as Ar, u as Or, T as Tr, M as Fr, V as Lr, d as ze, e as Kr, f as $r } from "./Markdown-B_Gax7at.js";
16
+ import { H as Pt, a as Ge, M as ur, u as lr, A as dr, b as hr } from "./utils-Bh4upQ0e.js";
17
+ import { d as fr, a as pr, R as mr, N as je, u as De, L as Re, b as gr, c as vr, O as jt, e as xr } from "./index-7kcHaXD6.js";
18
+ import { E as Rt, S as se, a as yr, R as wr } from "./SlotletProvider-ByLSCZQa.js";
19
+ import { j as a } from "./jsx-runtime-B6kdoens.js";
20
+ import { M as br, c as Mr, a as Et, b as _t, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as He, g as _r, i as Nt, R as Nr, S as Dr, j as Ir, k as kr, l as Dt, m as Ar, n as Ee, o as It, p as Or, B as Qe } from "./Combination-DTfV-c98.js";
21
+ import { c as ue, a as b, C as Tr, b as Fr, u as Lr, T as Kr, M as $r, V as Br, d as ze, e as Qr, f as qr } from "./Markdown-CEccPMI_.js";
22
22
  import * as c from "react";
23
- import Br, { StrictMode as kt, createContext as At, Component as Qr, createElement as ft, isValidElement as qr, useState as de, useCallback as Ot, useEffect as W, memo as Tt, useMemo as Ke, useContext as Ur, Fragment as Gr, useRef as Ve, forwardRef as Hr, Suspense as zr } from "react";
23
+ import Ur, { StrictMode as kt, createContext as At, Component as Gr, createElement as ft, isValidElement as Hr, useState as ie, useCallback as Ot, useEffect as W, Suspense as Tt, memo as Ft, useMemo as Ke, useContext as zr, Fragment as Vr, useRef as Ve, forwardRef as Yr } from "react";
24
24
  import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
25
- import { r as Vr } from "./router-BiRCp01d.js";
26
- import { S as qe, R as Yr, T as Xr, C as Wr } from "./index-D-9Z7HSn.js";
27
- import { S as Ft, h as Lt, Q as Jr, n as E, m as pt, a as mt, b as $, e as Zr, c as eo, d as to, f as no, o as gt, r as vt, g as ro, i as xt, p as yt, s as oo, u as Ie, j as ao, Z as so, k as io, l as Kt, q as co } from "./ZudokuContext-BIZ8zHbZ.js";
25
+ import { r as Xr } from "./router-BiRCp01d.js";
26
+ import { S as qe, R as Wr, T as Jr, C as Zr } from "./index-Dz4LyXZI.js";
27
+ import { S as Lt, h as Kt, Q as ea, n as E, m as pt, a as mt, b as $, e as ta, c as na, d as ra, f as aa, o as gt, r as vt, g as oa, i as xt, p as yt, s as sa, u as Ie, j as ia, Z as ca, k as ua, l as $t, q as la } from "./ZudokuContext-BIZ8zHbZ.js";
28
28
  import { j as Xe } from "./joinPath-B7kNnUX4.js";
29
- import { c as $t, P as ke, R as uo, I as lo, S as $e, a as ho } from "./Spinner-BCz1kNGw.js";
29
+ import { c as Bt, P as ke, R as da, I as ha, S as $e, a as fa } from "./Spinner-BT_AYFrA.js";
30
30
  /**
31
31
  * @license lucide-react v0.378.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
35
  */
36
- const Bt = ie("ChevronRight", [
36
+ const Qt = ue("ChevronRight", [
37
37
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
38
38
  ]);
39
39
  /**
@@ -42,7 +42,7 @@ const Bt = ie("ChevronRight", [
42
42
  * This source code is licensed under the ISC license.
43
43
  * See the LICENSE file in the root directory of this source tree.
44
44
  */
45
- const fo = ie("Dot", [
45
+ const pa = ue("Dot", [
46
46
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
47
47
  ]);
48
48
  /**
@@ -51,7 +51,7 @@ const fo = ie("Dot", [
51
51
  * This source code is licensed under the ISC license.
52
52
  * See the LICENSE file in the root directory of this source tree.
53
53
  */
54
- const po = ie("ExternalLink", [
54
+ const ma = ue("ExternalLink", [
55
55
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
56
56
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
57
57
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -62,7 +62,7 @@ const po = ie("ExternalLink", [
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
64
  */
65
- const mo = ie("MoonStar", [
65
+ const ga = ue("MoonStar", [
66
66
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
67
67
  ["path", { d: "M20 3v4", key: "1olli1" }],
68
68
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -73,7 +73,7 @@ const mo = ie("MoonStar", [
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
75
  */
76
- const go = ie("Search", [
76
+ const va = ue("Search", [
77
77
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
78
78
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
79
79
  ]);
@@ -83,7 +83,7 @@ const go = ie("Search", [
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
85
  */
86
- const vo = ie("Sun", [
86
+ const xa = ue("Sun", [
87
87
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
88
88
  ["path", { d: "M12 2v2", key: "tus03m" }],
89
89
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -94,14 +94,14 @@ const vo = ie("Sun", [
94
94
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
95
95
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
96
96
  ]);
97
- function xo({ error: e }) {
98
- return /* @__PURE__ */ o.jsx(jt, { error: e });
97
+ function ya({ error: e }) {
98
+ return /* @__PURE__ */ a.jsx(Rt, { error: e });
99
99
  }
100
- var ge = {};
101
- const yo = /* @__PURE__ */ Ye(Vr), wo = /* @__PURE__ */ Ye(dr), bo = /* @__PURE__ */ Ye(hr);
102
- Object.defineProperty(ge, "__esModule", { value: !0 });
103
- var Mo = Br, F = yo, We = wo, B = bo;
104
- function Co(e) {
100
+ var ve = {};
101
+ const wa = /* @__PURE__ */ Ye(Xr), ba = /* @__PURE__ */ Ye(fr), Ma = /* @__PURE__ */ Ye(pr);
102
+ Object.defineProperty(ve, "__esModule", { value: !0 });
103
+ var Ca = Ur, F = wa, We = ba, B = Ma;
104
+ function Sa(e) {
105
105
  if (e && e.__esModule) return e;
106
106
  var t = /* @__PURE__ */ Object.create(null);
107
107
  return e && Object.keys(e).forEach(function(n) {
@@ -116,58 +116,58 @@ function Co(e) {
116
116
  }
117
117
  }), t.default = e, Object.freeze(t);
118
118
  }
119
- var O = /* @__PURE__ */ Co(Mo);
120
- function Ro({
119
+ var O = /* @__PURE__ */ Sa(Ca);
120
+ function Pa({
121
121
  basename: e,
122
122
  children: t,
123
123
  location: n = "/",
124
124
  future: r
125
125
  }) {
126
126
  typeof n == "string" && (n = B.parsePath(n));
127
- let a = F.Action.Pop, s = {
127
+ let o = F.Action.Pop, s = {
128
128
  pathname: n.pathname || "/",
129
129
  search: n.search || "",
130
130
  hash: n.hash || "",
131
131
  state: n.state != null ? n.state : null,
132
132
  key: n.key || "default"
133
- }, i = Qt();
133
+ }, i = qt();
134
134
  return /* @__PURE__ */ O.createElement(B.Router, {
135
135
  basename: e,
136
136
  children: t,
137
137
  location: s,
138
- navigationType: a,
138
+ navigationType: o,
139
139
  navigator: i,
140
140
  future: r,
141
141
  static: !0
142
142
  });
143
143
  }
144
- function So({
144
+ function ja({
145
145
  context: e,
146
146
  router: t,
147
147
  hydrate: n = !0,
148
148
  nonce: r
149
149
  }) {
150
150
  t && e || (process.env.NODE_ENV !== "production" ? F.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : F.UNSAFE_invariant(!1));
151
- let a = {
151
+ let o = {
152
152
  router: t,
153
- navigator: Qt(),
153
+ navigator: qt(),
154
154
  static: !0,
155
155
  staticContext: e,
156
156
  basename: e.basename || "/"
157
157
  }, s = /* @__PURE__ */ new Map(), i = "";
158
158
  if (n !== !1) {
159
- let d = {
159
+ let l = {
160
160
  loaderData: e.loaderData,
161
161
  actionData: e.actionData,
162
- errors: jo(e.errors)
162
+ errors: Ea(e.errors)
163
163
  };
164
- i = `window.__staticRouterHydrationData = JSON.parse(${ko(JSON.stringify(JSON.stringify(d)))});`;
164
+ i = `window.__staticRouterHydrationData = JSON.parse(${Aa(JSON.stringify(JSON.stringify(l)))});`;
165
165
  }
166
166
  let {
167
167
  state: u
168
- } = a.router;
168
+ } = o.router;
169
169
  return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterContext.Provider, {
170
- value: a
170
+ value: o
171
171
  }, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterStateContext.Provider, {
172
172
  value: u
173
173
  }, /* @__PURE__ */ O.createElement(B.UNSAFE_FetchersContext.Provider, {
@@ -177,15 +177,15 @@ function So({
177
177
  isTransitioning: !1
178
178
  }
179
179
  }, /* @__PURE__ */ O.createElement(B.Router, {
180
- basename: a.basename,
180
+ basename: o.basename,
181
181
  location: u.location,
182
182
  navigationType: u.historyAction,
183
- navigator: a.navigator,
184
- static: a.static,
183
+ navigator: o.navigator,
184
+ static: o.static,
185
185
  future: {
186
186
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
187
187
  }
188
- }, /* @__PURE__ */ O.createElement(Po, {
188
+ }, /* @__PURE__ */ O.createElement(Ra, {
189
189
  routes: t.routes,
190
190
  future: t.future,
191
191
  state: u
@@ -197,35 +197,35 @@ function So({
197
197
  }
198
198
  }) : null);
199
199
  }
200
- function Po({
200
+ function Ra({
201
201
  routes: e,
202
202
  future: t,
203
203
  state: n
204
204
  }) {
205
205
  return We.UNSAFE_useRoutesImpl(e, void 0, n, t);
206
206
  }
207
- function jo(e) {
207
+ function Ea(e) {
208
208
  if (!e) return null;
209
209
  let t = Object.entries(e), n = {};
210
- for (let [r, a] of t)
211
- F.isRouteErrorResponse(a) ? n[r] = {
212
- ...a,
210
+ for (let [r, o] of t)
211
+ F.isRouteErrorResponse(o) ? n[r] = {
212
+ ...o,
213
213
  __type: "RouteErrorResponse"
214
- } : a instanceof Error ? n[r] = {
215
- message: a.message,
214
+ } : o instanceof Error ? n[r] = {
215
+ message: o.message,
216
216
  __type: "Error",
217
217
  // If this is a subclass (i.e., ReferenceError), send up the type so we
218
218
  // can re-create the same type during hydration.
219
- ...a.name !== "Error" ? {
220
- __subType: a.name
219
+ ...o.name !== "Error" ? {
220
+ __subType: o.name
221
221
  } : {}
222
- } : n[r] = a;
222
+ } : n[r] = o;
223
223
  return n;
224
224
  }
225
- function Qt() {
225
+ function qt() {
226
226
  return {
227
- createHref: qt,
228
- encodeLocation: Ut,
227
+ createHref: Ut,
228
+ encodeLocation: Gt,
229
229
  push(e) {
230
230
  throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
231
231
  },
@@ -243,18 +243,18 @@ function Qt() {
243
243
  }
244
244
  };
245
245
  }
246
- function Eo(e, t) {
246
+ function _a(e, t) {
247
247
  return F.createStaticHandler(e, {
248
248
  ...t,
249
249
  mapRouteProperties: We.UNSAFE_mapRouteProperties
250
250
  });
251
251
  }
252
- function _o(e, t, n = {}) {
253
- let r = {}, a = F.UNSAFE_convertRoutesToDataRoutes(e, We.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
254
- let d = r[u.route.id] || u.route;
252
+ function Na(e, t, n = {}) {
253
+ let r = {}, o = F.UNSAFE_convertRoutesToDataRoutes(e, We.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
254
+ let l = r[u.route.id] || u.route;
255
255
  return {
256
256
  ...u,
257
- route: d
257
+ route: l
258
258
  };
259
259
  }), i = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
260
260
  return {
@@ -262,13 +262,13 @@ function _o(e, t, n = {}) {
262
262
  return t.basename;
263
263
  },
264
264
  get future() {
265
- var u, d;
265
+ var u, l;
266
266
  return {
267
267
  v7_fetcherPersist: !1,
268
268
  v7_normalizeFormMethod: !1,
269
269
  v7_partialHydration: ((u = n.future) == null ? void 0 : u.v7_partialHydration) === !0,
270
270
  v7_prependBasename: !1,
271
- v7_relativeSplatPath: ((d = n.future) == null ? void 0 : d.v7_relativeSplatPath) === !0,
271
+ v7_relativeSplatPath: ((l = n.future) == null ? void 0 : l.v7_relativeSplatPath) === !0,
272
272
  v7_skipActionErrorRevalidation: !1
273
273
  };
274
274
  },
@@ -290,7 +290,7 @@ function _o(e, t, n = {}) {
290
290
  };
291
291
  },
292
292
  get routes() {
293
- return a;
293
+ return o;
294
294
  },
295
295
  get window() {
296
296
  },
@@ -312,8 +312,8 @@ function _o(e, t, n = {}) {
312
312
  revalidate() {
313
313
  throw i("revalidate");
314
314
  },
315
- createHref: qt,
316
- encodeLocation: Ut,
315
+ createHref: Ut,
316
+ encodeLocation: Gt,
317
317
  getFetcher() {
318
318
  return F.IDLE_FETCHER;
319
319
  },
@@ -339,68 +339,68 @@ function _o(e, t, n = {}) {
339
339
  }
340
340
  };
341
341
  }
342
- function qt(e) {
342
+ function Ut(e) {
343
343
  return typeof e == "string" ? e : B.createPath(e);
344
344
  }
345
- function Ut(e) {
345
+ function Gt(e) {
346
346
  let t = typeof e == "string" ? e : B.createPath(e);
347
347
  t = t.replace(/ $/, "%20");
348
- let n = No.test(t) ? new URL(t) : new URL(t, "http://localhost");
348
+ let n = Da.test(t) ? new URL(t) : new URL(t, "http://localhost");
349
349
  return {
350
350
  pathname: n.pathname,
351
351
  search: n.search,
352
352
  hash: n.hash
353
353
  };
354
354
  }
355
- const No = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Do = {
355
+ const Da = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ia = {
356
356
  "&": "\\u0026",
357
357
  ">": "\\u003e",
358
358
  "<": "\\u003c",
359
359
  "\u2028": "\\u2028",
360
360
  "\u2029": "\\u2029"
361
- }, Io = /[&><\u2028\u2029]/g;
362
- function ko(e) {
363
- return e.replace(Io, (t) => Do[t]);
361
+ }, ka = /[&><\u2028\u2029]/g;
362
+ function Aa(e) {
363
+ return e.replace(ka, (t) => Ia[t]);
364
364
  }
365
- ge.StaticRouter = Ro;
366
- var Ao = ge.StaticRouterProvider = So;
367
- ge.createStaticHandler = Eo;
368
- ge.createStaticRouter = _o;
369
- const Oo = ({
365
+ ve.StaticRouter = Pa;
366
+ var Oa = ve.StaticRouterProvider = ja;
367
+ ve.createStaticHandler = _a;
368
+ ve.createStaticRouter = Na;
369
+ const Ta = ({
370
370
  router: e,
371
371
  hydrate: t = !1
372
- }) => /* @__PURE__ */ o.jsx(kt, { children: /* @__PURE__ */ o.jsx(St, { children: /* @__PURE__ */ o.jsx(qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ o.jsx(fr, { router: e }) }) }) }), To = ({
372
+ }) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { children: /* @__PURE__ */ a.jsx(qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(mr, { router: e }) }) }) }), Fa = ({
373
373
  router: e,
374
374
  context: t,
375
375
  helmetContext: n
376
- }) => /* @__PURE__ */ o.jsx(kt, { children: /* @__PURE__ */ o.jsx(St, { context: n, children: /* @__PURE__ */ o.jsx(Ao, { router: e, context: t }) }) });
377
- var T, Mt, Fo = (Mt = class extends Ft {
376
+ }) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { context: n, children: /* @__PURE__ */ a.jsx(Oa, { router: e, context: t }) }) });
377
+ var T, Mt, La = (Mt = class extends Lt {
378
378
  constructor(t = {}) {
379
379
  super();
380
380
  N(this, T);
381
- this.config = t, R(this, T, /* @__PURE__ */ new Map());
381
+ this.config = t, S(this, T, /* @__PURE__ */ new Map());
382
382
  }
383
383
  build(t, n, r) {
384
- const a = n.queryKey, s = n.queryHash ?? Lt(a, n);
384
+ const o = n.queryKey, s = n.queryHash ?? Kt(o, n);
385
385
  let i = this.get(s);
386
- return i || (i = new Jr({
386
+ return i || (i = new ea({
387
387
  cache: this,
388
- queryKey: a,
388
+ queryKey: o,
389
389
  queryHash: s,
390
390
  options: t.defaultQueryOptions(n),
391
391
  state: r,
392
- defaultOptions: t.getQueryDefaults(a)
392
+ defaultOptions: t.getQueryDefaults(o)
393
393
  }), this.add(i)), i;
394
394
  }
395
395
  add(t) {
396
- h(this, T).has(t.queryHash) || (h(this, T).set(t.queryHash, t), this.notify({
396
+ f(this, T).has(t.queryHash) || (f(this, T).set(t.queryHash, t), this.notify({
397
397
  type: "added",
398
398
  query: t
399
399
  }));
400
400
  }
401
401
  remove(t) {
402
- const n = h(this, T).get(t.queryHash);
403
- n && (t.destroy(), n === t && h(this, T).delete(t.queryHash), this.notify({ type: "removed", query: t }));
402
+ const n = f(this, T).get(t.queryHash);
403
+ n && (t.destroy(), n === t && f(this, T).delete(t.queryHash), this.notify({ type: "removed", query: t }));
404
404
  }
405
405
  clear() {
406
406
  E.batch(() => {
@@ -410,10 +410,10 @@ var T, Mt, Fo = (Mt = class extends Ft {
410
410
  });
411
411
  }
412
412
  get(t) {
413
- return h(this, T).get(t);
413
+ return f(this, T).get(t);
414
414
  }
415
415
  getAll() {
416
- return [...h(this, T).values()];
416
+ return [...f(this, T).values()];
417
417
  }
418
418
  find(t) {
419
419
  const n = { exact: !0, ...t };
@@ -446,43 +446,43 @@ var T, Mt, Fo = (Mt = class extends Ft {
446
446
  });
447
447
  });
448
448
  }
449
- }, T = new WeakMap(), Mt), j, pe, Ct, Lo = (Ct = class extends Ft {
449
+ }, T = new WeakMap(), Mt), R, me, Ct, Ka = (Ct = class extends Lt {
450
450
  constructor(t = {}) {
451
451
  super();
452
- N(this, j);
453
- N(this, pe);
454
- this.config = t, R(this, j, /* @__PURE__ */ new Map()), R(this, pe, Date.now());
452
+ N(this, R);
453
+ N(this, me);
454
+ this.config = t, S(this, R, /* @__PURE__ */ new Map()), S(this, me, Date.now());
455
455
  }
456
456
  build(t, n, r) {
457
- const a = new xr({
457
+ const o = new br({
458
458
  mutationCache: this,
459
- mutationId: ++Me(this, pe)._,
459
+ mutationId: ++Ce(this, me)._,
460
460
  options: t.defaultMutationOptions(n),
461
461
  state: r
462
462
  });
463
- return this.add(a), a;
463
+ return this.add(o), o;
464
464
  }
465
465
  add(t) {
466
- const n = Ce(t), r = h(this, j).get(n) ?? [];
467
- r.push(t), h(this, j).set(n, r), this.notify({ type: "added", mutation: t });
466
+ const n = Se(t), r = f(this, R).get(n) ?? [];
467
+ r.push(t), f(this, R).set(n, r), this.notify({ type: "added", mutation: t });
468
468
  }
469
469
  remove(t) {
470
470
  var r;
471
- const n = Ce(t);
472
- if (h(this, j).has(n)) {
473
- const a = (r = h(this, j).get(n)) == null ? void 0 : r.filter((s) => s !== t);
474
- a && (a.length === 0 ? h(this, j).delete(n) : h(this, j).set(n, a));
471
+ const n = Se(t);
472
+ if (f(this, R).has(n)) {
473
+ const o = (r = f(this, R).get(n)) == null ? void 0 : r.filter((s) => s !== t);
474
+ o && (o.length === 0 ? f(this, R).delete(n) : f(this, R).set(n, o));
475
475
  }
476
476
  this.notify({ type: "removed", mutation: t });
477
477
  }
478
478
  canRun(t) {
479
479
  var r;
480
- const n = (r = h(this, j).get(Ce(t))) == null ? void 0 : r.find((a) => a.state.status === "pending");
480
+ const n = (r = f(this, R).get(Se(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
481
481
  return !n || n === t;
482
482
  }
483
483
  runNext(t) {
484
484
  var r;
485
- const n = (r = h(this, j).get(Ce(t))) == null ? void 0 : r.find((a) => a !== t && a.state.isPaused);
485
+ const n = (r = f(this, R).get(Se(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
486
486
  return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
487
487
  }
488
488
  clear() {
@@ -493,7 +493,7 @@ var T, Mt, Fo = (Mt = class extends Ft {
493
493
  });
494
494
  }
495
495
  getAll() {
496
- return [...h(this, j).values()].flat();
496
+ return [...f(this, R).values()].flat();
497
497
  }
498
498
  find(t) {
499
499
  const n = { exact: !0, ...t };
@@ -519,17 +519,17 @@ var T, Mt, Fo = (Mt = class extends Ft {
519
519
  )
520
520
  );
521
521
  }
522
- }, j = new WeakMap(), pe = new WeakMap(), Ct);
523
- function Ce(e) {
522
+ }, R = new WeakMap(), me = new WeakMap(), Ct);
523
+ function Se(e) {
524
524
  var t;
525
525
  return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
526
526
  }
527
- function Ko(e) {
527
+ function $a(e) {
528
528
  return {
529
529
  onFetch: (t, n) => {
530
530
  const r = async () => {
531
- var x, b, I, Q, V;
532
- const a = t.options, s = (I = (b = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : b.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((V = t.state.data) == null ? void 0 : V.pageParams) || [], d = { pages: [], pageParams: [] };
531
+ var x, M, I, Q, V;
532
+ const o = t.options, s = (I = (M = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : M.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((V = t.state.data) == null ? void 0 : V.pageParams) || [], l = { pages: [], pageParams: [] };
533
533
  let g = !1;
534
534
  const p = (C) => {
535
535
  Object.defineProperty(C, "signal", {
@@ -538,7 +538,7 @@ function Ko(e) {
538
538
  g = !0;
539
539
  }), t.signal)
540
540
  });
541
- }, l = Zr(t.options, t.fetchOptions), f = async (C, k, L) => {
541
+ }, d = ta(t.options, t.fetchOptions), h = async (C, k, L) => {
542
542
  if (g)
543
543
  return Promise.reject();
544
544
  if (k == null && C.pages.length)
@@ -550,38 +550,38 @@ function Ko(e) {
550
550
  meta: t.options.meta
551
551
  };
552
552
  p(Y);
553
- const Z = await l(
553
+ const Z = await d(
554
554
  Y
555
- ), { maxPages: we } = t.options, X = L ? eo : to;
555
+ ), { maxPages: be } = t.options, X = L ? na : ra;
556
556
  return {
557
- pages: X(C.pages, Z, we),
558
- pageParams: X(C.pageParams, k, we)
557
+ pages: X(C.pages, Z, be),
558
+ pageParams: X(C.pageParams, k, be)
559
559
  };
560
560
  };
561
561
  let v;
562
562
  if (s && i.length) {
563
- const C = s === "backward", k = C ? $o : wt, L = {
563
+ const C = s === "backward", k = C ? Ba : wt, L = {
564
564
  pages: i,
565
565
  pageParams: u
566
- }, Y = k(a, L);
567
- v = await f(L, Y, C);
566
+ }, Y = k(o, L);
567
+ v = await h(L, Y, C);
568
568
  } else {
569
- v = await f(
570
- d,
571
- u[0] ?? a.initialPageParam
569
+ v = await h(
570
+ l,
571
+ u[0] ?? o.initialPageParam
572
572
  );
573
573
  const C = e ?? i.length;
574
574
  for (let k = 1; k < C; k++) {
575
- const L = wt(a, v);
576
- v = await f(v, L);
575
+ const L = wt(o, v);
576
+ v = await h(v, L);
577
577
  }
578
578
  }
579
579
  return v;
580
580
  };
581
581
  t.options.persister ? t.fetchFn = () => {
582
- var a, s;
583
- return (s = (a = t.options).persister) == null ? void 0 : s.call(
584
- a,
582
+ var o, s;
583
+ return (s = (o = t.options).persister) == null ? void 0 : s.call(
584
+ o,
585
585
  r,
586
586
  {
587
587
  queryKey: t.queryKey,
@@ -603,7 +603,7 @@ function wt(e, { pages: t, pageParams: n }) {
603
603
  n
604
604
  );
605
605
  }
606
- function $o(e, { pages: t, pageParams: n }) {
606
+ function Ba(e, { pages: t, pageParams: n }) {
607
607
  var r;
608
608
  return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
609
609
  e,
@@ -613,7 +613,7 @@ function $o(e, { pages: t, pageParams: n }) {
613
613
  n
614
614
  );
615
615
  }
616
- var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
616
+ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
617
617
  constructor(e = {}) {
618
618
  N(this, w);
619
619
  N(this, U);
@@ -621,57 +621,57 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
621
621
  N(this, ne);
622
622
  N(this, re);
623
623
  N(this, H);
624
- N(this, oe);
625
624
  N(this, ae);
626
- R(this, w, e.queryCache || new Fo()), R(this, U, e.mutationCache || new Lo()), R(this, G, e.defaultOptions || {}), R(this, ne, /* @__PURE__ */ new Map()), R(this, re, /* @__PURE__ */ new Map()), R(this, H, 0);
625
+ N(this, oe);
626
+ S(this, w, e.queryCache || new La()), S(this, U, e.mutationCache || new Ka()), S(this, G, e.defaultOptions || {}), S(this, ne, /* @__PURE__ */ new Map()), S(this, re, /* @__PURE__ */ new Map()), S(this, H, 0);
627
627
  }
628
628
  mount() {
629
- Me(this, H)._++, h(this, H) === 1 && (R(this, oe, no.subscribe(async (e) => {
630
- e && (await this.resumePausedMutations(), h(this, w).onFocus());
631
- })), R(this, ae, gt.subscribe(async (e) => {
632
- e && (await this.resumePausedMutations(), h(this, w).onOnline());
629
+ Ce(this, H)._++, f(this, H) === 1 && (S(this, ae, aa.subscribe(async (e) => {
630
+ e && (await this.resumePausedMutations(), f(this, w).onFocus());
631
+ })), S(this, oe, gt.subscribe(async (e) => {
632
+ e && (await this.resumePausedMutations(), f(this, w).onOnline());
633
633
  })));
634
634
  }
635
635
  unmount() {
636
636
  var e, t;
637
- Me(this, H)._--, h(this, H) === 0 && ((e = h(this, oe)) == null || e.call(this), R(this, oe, void 0), (t = h(this, ae)) == null || t.call(this), R(this, ae, void 0));
637
+ Ce(this, H)._--, f(this, H) === 0 && ((e = f(this, ae)) == null || e.call(this), S(this, ae, void 0), (t = f(this, oe)) == null || t.call(this), S(this, oe, void 0));
638
638
  }
639
639
  isFetching(e) {
640
- return h(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
640
+ return f(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
641
641
  }
642
642
  isMutating(e) {
643
- return h(this, U).findAll({ ...e, status: "pending" }).length;
643
+ return f(this, U).findAll({ ...e, status: "pending" }).length;
644
644
  }
645
645
  getQueryData(e) {
646
646
  var n;
647
647
  const t = this.defaultQueryOptions({ queryKey: e });
648
- return (n = h(this, w).get(t.queryHash)) == null ? void 0 : n.state.data;
648
+ return (n = f(this, w).get(t.queryHash)) == null ? void 0 : n.state.data;
649
649
  }
650
650
  ensureQueryData(e) {
651
651
  const t = this.getQueryData(e.queryKey);
652
652
  if (t === void 0)
653
653
  return this.fetchQuery(e);
654
654
  {
655
- const n = this.defaultQueryOptions(e), r = h(this, w).build(this, n);
655
+ const n = this.defaultQueryOptions(e), r = f(this, w).build(this, n);
656
656
  return e.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
657
657
  }
658
658
  }
659
659
  getQueriesData(e) {
660
- return h(this, w).findAll(e).map(({ queryKey: t, state: n }) => {
660
+ return f(this, w).findAll(e).map(({ queryKey: t, state: n }) => {
661
661
  const r = n.data;
662
662
  return [t, r];
663
663
  });
664
664
  }
665
665
  setQueryData(e, t, n) {
666
- const r = this.defaultQueryOptions({ queryKey: e }), a = h(this, w).get(
666
+ const r = this.defaultQueryOptions({ queryKey: e }), o = f(this, w).get(
667
667
  r.queryHash
668
- ), s = a == null ? void 0 : a.state.data, i = ro(t, s);
668
+ ), s = o == null ? void 0 : o.state.data, i = oa(t, s);
669
669
  if (i !== void 0)
670
- return h(this, w).build(this, r).setData(i, { ...n, manual: !0 });
670
+ return f(this, w).build(this, r).setData(i, { ...n, manual: !0 });
671
671
  }
672
672
  setQueriesData(e, t, n) {
673
673
  return E.batch(
674
- () => h(this, w).findAll(e).map(({ queryKey: r }) => [
674
+ () => f(this, w).findAll(e).map(({ queryKey: r }) => [
675
675
  r,
676
676
  this.setQueryData(r, t, n)
677
677
  ])
@@ -680,10 +680,10 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
680
680
  getQueryState(e) {
681
681
  var n;
682
682
  const t = this.defaultQueryOptions({ queryKey: e });
683
- return (n = h(this, w).get(t.queryHash)) == null ? void 0 : n.state;
683
+ return (n = f(this, w).get(t.queryHash)) == null ? void 0 : n.state;
684
684
  }
685
685
  removeQueries(e) {
686
- const t = h(this, w);
686
+ const t = f(this, w);
687
687
  E.batch(() => {
688
688
  t.findAll(e).forEach((n) => {
689
689
  t.remove(n);
@@ -691,23 +691,23 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
691
691
  });
692
692
  }
693
693
  resetQueries(e, t) {
694
- const n = h(this, w), r = {
694
+ const n = f(this, w), r = {
695
695
  type: "active",
696
696
  ...e
697
697
  };
698
- return E.batch(() => (n.findAll(e).forEach((a) => {
699
- a.reset();
698
+ return E.batch(() => (n.findAll(e).forEach((o) => {
699
+ o.reset();
700
700
  }), this.refetchQueries(r, t)));
701
701
  }
702
702
  cancelQueries(e = {}, t = {}) {
703
703
  const n = { revert: !0, ...t }, r = E.batch(
704
- () => h(this, w).findAll(e).map((a) => a.cancel(n))
704
+ () => f(this, w).findAll(e).map((o) => o.cancel(n))
705
705
  );
706
706
  return Promise.all(r).then($).catch($);
707
707
  }
708
708
  invalidateQueries(e = {}, t = {}) {
709
709
  return E.batch(() => {
710
- if (h(this, w).findAll(e).forEach((r) => {
710
+ if (f(this, w).findAll(e).forEach((r) => {
711
711
  r.invalidate();
712
712
  }), e.refetchType === "none")
713
713
  return Promise.resolve();
@@ -723,9 +723,9 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
723
723
  ...t,
724
724
  cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
725
725
  }, r = E.batch(
726
- () => h(this, w).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
727
- let s = a.fetch(void 0, n);
728
- return n.throwOnError || (s = s.catch($)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
726
+ () => f(this, w).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
727
+ let s = o.fetch(void 0, n);
728
+ return n.throwOnError || (s = s.catch($)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
729
729
  })
730
730
  );
731
731
  return Promise.all(r).then($);
@@ -733,7 +733,7 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
733
733
  fetchQuery(e) {
734
734
  const t = this.defaultQueryOptions(e);
735
735
  t.retry === void 0 && (t.retry = !1);
736
- const n = h(this, w).build(this, t);
736
+ const n = f(this, w).build(this, t);
737
737
  return n.isStaleByTime(
738
738
  vt(t.staleTime, n)
739
739
  ) ? n.fetch(t) : Promise.resolve(n.state.data);
@@ -742,47 +742,47 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
742
742
  return this.fetchQuery(e).then($).catch($);
743
743
  }
744
744
  fetchInfiniteQuery(e) {
745
- return e.behavior = Ko(e.pages), this.fetchQuery(e);
745
+ return e.behavior = $a(e.pages), this.fetchQuery(e);
746
746
  }
747
747
  prefetchInfiniteQuery(e) {
748
748
  return this.fetchInfiniteQuery(e).then($).catch($);
749
749
  }
750
750
  resumePausedMutations() {
751
- return gt.isOnline() ? h(this, U).resumePausedMutations() : Promise.resolve();
751
+ return gt.isOnline() ? f(this, U).resumePausedMutations() : Promise.resolve();
752
752
  }
753
753
  getQueryCache() {
754
- return h(this, w);
754
+ return f(this, w);
755
755
  }
756
756
  getMutationCache() {
757
- return h(this, U);
757
+ return f(this, U);
758
758
  }
759
759
  getDefaultOptions() {
760
- return h(this, G);
760
+ return f(this, G);
761
761
  }
762
762
  setDefaultOptions(e) {
763
- R(this, G, e);
763
+ S(this, G, e);
764
764
  }
765
765
  setQueryDefaults(e, t) {
766
- h(this, ne).set(xt(e), {
766
+ f(this, ne).set(xt(e), {
767
767
  queryKey: e,
768
768
  defaultOptions: t
769
769
  });
770
770
  }
771
771
  getQueryDefaults(e) {
772
- const t = [...h(this, ne).values()];
772
+ const t = [...f(this, ne).values()];
773
773
  let n = {};
774
774
  return t.forEach((r) => {
775
775
  yt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
776
776
  }), n;
777
777
  }
778
778
  setMutationDefaults(e, t) {
779
- h(this, re).set(xt(e), {
779
+ f(this, re).set(xt(e), {
780
780
  mutationKey: e,
781
781
  defaultOptions: t
782
782
  });
783
783
  }
784
784
  getMutationDefaults(e) {
785
- const t = [...h(this, re).values()];
785
+ const t = [...f(this, re).values()];
786
786
  let n = {};
787
787
  return t.forEach((r) => {
788
788
  yt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
@@ -792,33 +792,33 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
792
792
  if (e._defaulted)
793
793
  return e;
794
794
  const t = {
795
- ...h(this, G).queries,
795
+ ...f(this, G).queries,
796
796
  ...this.getQueryDefaults(e.queryKey),
797
797
  ...e,
798
798
  _defaulted: !0
799
799
  };
800
- return t.queryHash || (t.queryHash = Lt(
800
+ return t.queryHash || (t.queryHash = Kt(
801
801
  t.queryKey,
802
802
  t
803
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === oo && (t.enabled = !1), t;
803
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === sa && (t.enabled = !1), t;
804
804
  }
805
805
  defaultMutationOptions(e) {
806
806
  return e != null && e._defaulted ? e : {
807
- ...h(this, G).mutations,
807
+ ...f(this, G).mutations,
808
808
  ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
809
809
  ...e,
810
810
  _defaulted: !0
811
811
  };
812
812
  }
813
813
  clear() {
814
- h(this, w).clear(), h(this, U).clear();
814
+ f(this, w).clear(), f(this, U).clear();
815
815
  }
816
- }, w = new WeakMap(), U = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(), oe = new WeakMap(), ae = new WeakMap(), Rt);
817
- const Qo = At(null), Be = {
816
+ }, w = new WeakMap(), U = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), St);
817
+ const qa = At(null), Be = {
818
818
  didCatch: !1,
819
819
  error: null
820
820
  };
821
- class qo extends Qr {
821
+ class Ua extends Gr {
822
822
  constructor(t) {
823
823
  super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Be;
824
824
  }
@@ -833,7 +833,7 @@ class qo extends Qr {
833
833
  error: t
834
834
  } = this.state;
835
835
  if (t !== null) {
836
- for (var n, r, a = arguments.length, s = new Array(a), i = 0; i < a; i++)
836
+ for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
837
837
  s[i] = arguments[i];
838
838
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
839
839
  args: s,
@@ -842,19 +842,19 @@ class qo extends Qr {
842
842
  }
843
843
  }
844
844
  componentDidCatch(t, n) {
845
- var r, a;
846
- (r = (a = this.props).onError) === null || r === void 0 || r.call(a, t, n);
845
+ var r, o;
846
+ (r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
847
847
  }
848
848
  componentDidUpdate(t, n) {
849
849
  const {
850
850
  didCatch: r
851
851
  } = this.state, {
852
- resetKeys: a
852
+ resetKeys: o
853
853
  } = this.props;
854
- if (r && n.error !== null && Uo(t.resetKeys, a)) {
854
+ if (r && n.error !== null && Ga(t.resetKeys, o)) {
855
855
  var s, i;
856
856
  (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
857
- next: a,
857
+ next: o,
858
858
  prev: t.resetKeys,
859
859
  reason: "keys"
860
860
  }), this.setState(Be);
@@ -865,27 +865,27 @@ class qo extends Qr {
865
865
  children: t,
866
866
  fallbackRender: n,
867
867
  FallbackComponent: r,
868
- fallback: a
868
+ fallback: o
869
869
  } = this.props, {
870
870
  didCatch: s,
871
871
  error: i
872
872
  } = this.state;
873
873
  let u = t;
874
874
  if (s) {
875
- const d = {
875
+ const l = {
876
876
  error: i,
877
877
  resetErrorBoundary: this.resetErrorBoundary
878
878
  };
879
879
  if (typeof n == "function")
880
- u = n(d);
880
+ u = n(l);
881
881
  else if (r)
882
- u = ft(r, d);
883
- else if (a === null || qr(a))
884
- u = a;
882
+ u = ft(r, l);
883
+ else if (o === null || Hr(o))
884
+ u = o;
885
885
  else
886
886
  throw i;
887
887
  }
888
- return ft(Qo.Provider, {
888
+ return ft(qa.Provider, {
889
889
  value: {
890
890
  didCatch: s,
891
891
  error: i,
@@ -894,70 +894,70 @@ class qo extends Qr {
894
894
  }, u);
895
895
  }
896
896
  }
897
- function Uo() {
897
+ function Ga() {
898
898
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
899
899
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
900
900
  }
901
- const Go = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Ho = (e) => "getRoutes" in e && typeof e.getRoutes == "function", zo = (e) => "onRequestSearch" in e && typeof e.onRequestSearch == "function", Vo = (e) => "initialize" in e && typeof e.initialize == "function", Yo = (e) => "getHead" in e && typeof e.getHead == "function", Xo = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Wo = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Gt = new Bo();
902
- class Jo {
901
+ const Ha = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", za = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Va = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ya = (e) => "initialize" in e && typeof e.initialize == "function", Xa = (e) => "getHead" in e && typeof e.getHead == "function", Wa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ja = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ht = new Qa();
902
+ class Za {
903
903
  constructor(t) {
904
- P(this, "plugins");
905
- P(this, "sidebars");
906
- P(this, "topNavigation");
907
- P(this, "meta");
908
- P(this, "page");
909
- P(this, "authentication");
910
- P(this, "navigationPlugins");
911
- P(this, "initialize", async ({
904
+ j(this, "plugins");
905
+ j(this, "sidebars");
906
+ j(this, "topNavigation");
907
+ j(this, "meta");
908
+ j(this, "page");
909
+ j(this, "authentication");
910
+ j(this, "navigationPlugins");
911
+ j(this, "initialize", async ({
912
912
  navigate: t
913
913
  }) => {
914
914
  await Promise.all(
915
- this.plugins.filter(Vo).map((n) => {
915
+ this.plugins.filter(Ya).map((n) => {
916
916
  var r;
917
917
  return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: t });
918
918
  })
919
919
  );
920
920
  });
921
- P(this, "invalidateCache", async (t) => {
922
- await Gt.invalidateQueries({ queryKey: t });
921
+ j(this, "invalidateCache", async (t) => {
922
+ await Ht.invalidateQueries({ queryKey: t });
923
923
  });
924
- P(this, "getApiIdentities", async () => (await Promise.all(
925
- this.plugins.filter(Wo).map((n) => n.getIdentities(this))
924
+ j(this, "getApiIdentities", async () => (await Promise.all(
925
+ this.plugins.filter(Ja).map((n) => n.getIdentities(this))
926
926
  )).flat());
927
- P(this, "getPluginSidebar", async (t) => (await Promise.all(
927
+ j(this, "getPluginSidebar", async (t) => (await Promise.all(
928
928
  this.navigationPlugins.map(
929
929
  (r) => {
930
- var a;
931
- return (a = r.getSidebar) == null ? void 0 : a.call(r, Xe(t));
930
+ var o;
931
+ return (o = r.getSidebar) == null ? void 0 : o.call(r, Xe(t));
932
932
  }
933
933
  )
934
934
  )).flatMap((r) => r ?? []));
935
- P(this, "signRequest", async (t) => {
935
+ j(this, "signRequest", async (t) => {
936
936
  if (!this.authentication)
937
937
  throw new Error("No authentication provider configured");
938
938
  const n = await this.authentication.getAccessToken();
939
939
  return t.headers.set("Authorization", `Bearer ${n}`), t;
940
940
  });
941
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Ho), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
941
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(za), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
942
942
  }
943
943
  }
944
- function Zo({ error: e, resetErrorBoundary: t }) {
945
- return /* @__PURE__ */ o.jsx(jt, { error: e });
944
+ function eo({ error: e, resetErrorBoundary: t }) {
945
+ return /* @__PURE__ */ a.jsx(Rt, { error: e });
946
946
  }
947
- const Re = globalThis;
948
- (!Re.requestIdleCallback || !Re.cancelIdleCallback) && (Re.requestIdleCallback = (e) => setTimeout(e, 1), Re.cancelIdleCallback = clearTimeout);
949
- var Ue = ["Enter", " "], ea = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp", "PageDown", "End"], ta = [...ea, ...Ht], na = {
947
+ const Pe = globalThis;
948
+ (!Pe.requestIdleCallback || !Pe.cancelIdleCallback) && (Pe.requestIdleCallback = (e) => setTimeout(e, 1), Pe.cancelIdleCallback = clearTimeout);
949
+ var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp", "PageDown", "End"], no = [...to, ...zt], ro = {
950
950
  ltr: [...Ue, "ArrowRight"],
951
951
  rtl: [...Ue, "ArrowLeft"]
952
- }, ra = {
952
+ }, ao = {
953
953
  ltr: ["ArrowLeft"],
954
954
  rtl: ["ArrowRight"]
955
- }, ve = "Menu", [he, oa, aa] = yr(ve), [J, zt] = Et(ve, [
956
- aa,
955
+ }, xe = "Menu", [fe, oo, so] = Mr(xe), [J, Vt] = Et(xe, [
956
+ so,
957
957
  _t,
958
- $t
959
- ]), xe = _t(), Vt = $t(), [Yt, z] = J(ve), [sa, ye] = J(ve), Xt = (e) => {
960
- const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, u = xe(t), [d, g] = c.useState(null), p = c.useRef(!1), l = He(s), f = Nr(a);
958
+ Bt
959
+ ]), ye = _t(), Yt = Bt(), [Xt, z] = J(xe), [io, we] = J(xe), Wt = (e) => {
960
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d = He(s), h = kr(o);
961
961
  return c.useEffect(() => {
962
962
  const v = () => {
963
963
  p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
@@ -965,21 +965,21 @@ var Ue = ["Enter", " "], ea = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
965
965
  return document.addEventListener("keydown", v, { capture: !0 }), () => {
966
966
  document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
967
967
  };
968
- }, []), /* @__PURE__ */ o.jsx(Dt, { ...u, children: /* @__PURE__ */ o.jsx(
969
- Yt,
968
+ }, []), /* @__PURE__ */ a.jsx(Dt, { ...u, children: /* @__PURE__ */ a.jsx(
969
+ Xt,
970
970
  {
971
971
  scope: t,
972
972
  open: n,
973
- onOpenChange: l,
974
- content: d,
973
+ onOpenChange: d,
974
+ content: l,
975
975
  onContentChange: g,
976
- children: /* @__PURE__ */ o.jsx(
977
- sa,
976
+ children: /* @__PURE__ */ a.jsx(
977
+ io,
978
978
  {
979
979
  scope: t,
980
- onClose: c.useCallback(() => l(!1), [l]),
980
+ onClose: c.useCallback(() => d(!1), [d]),
981
981
  isUsingKeyboardRef: p,
982
- dir: f,
982
+ dir: h,
983
983
  modal: i,
984
984
  children: r
985
985
  }
@@ -987,37 +987,37 @@ var Ue = ["Enter", " "], ea = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
987
987
  }
988
988
  ) });
989
989
  };
990
- Xt.displayName = ve;
991
- var ia = "MenuAnchor", Je = c.forwardRef(
990
+ Wt.displayName = xe;
991
+ var co = "MenuAnchor", Je = c.forwardRef(
992
992
  (e, t) => {
993
- const { __scopeMenu: n, ...r } = e, a = xe(n);
994
- return /* @__PURE__ */ o.jsx(wr, { ...a, ...r, ref: t });
993
+ const { __scopeMenu: n, ...r } = e, o = ye(n);
994
+ return /* @__PURE__ */ a.jsx(Cr, { ...o, ...r, ref: t });
995
995
  }
996
996
  );
997
- Je.displayName = ia;
998
- var Ze = "MenuPortal", [ca, Wt] = J(Ze, {
997
+ Je.displayName = co;
998
+ var Ze = "MenuPortal", [uo, Jt] = J(Ze, {
999
999
  forceMount: void 0
1000
- }), Jt = (e) => {
1001
- const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, s = z(Ze, t);
1002
- return /* @__PURE__ */ o.jsx(ca, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(ke, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Dr, { asChild: !0, container: a, children: r }) }) });
1000
+ }), Zt = (e) => {
1001
+ const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = z(Ze, t);
1002
+ return /* @__PURE__ */ a.jsx(uo, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(ke, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Ar, { asChild: !0, container: o, children: r }) }) });
1003
1003
  };
1004
- Jt.displayName = Ze;
1005
- var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
1004
+ Zt.displayName = Ze;
1005
+ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
1006
1006
  (e, t) => {
1007
- const n = Wt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = z(D, e.__scopeMenu), i = ye(D, e.__scopeMenu);
1008
- return /* @__PURE__ */ o.jsx(he.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ o.jsx(he.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(la, { ...a, ref: t }) : /* @__PURE__ */ o.jsx(da, { ...a, ref: t }) }) }) });
1007
+ const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu);
1008
+ return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ho, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(fo, { ...o, ref: t }) }) }) });
1009
1009
  }
1010
- ), la = c.forwardRef(
1010
+ ), ho = c.forwardRef(
1011
1011
  (e, t) => {
1012
- const n = z(D, e.__scopeMenu), r = c.useRef(null), a = me(t, r);
1012
+ const n = z(D, e.__scopeMenu), r = c.useRef(null), o = ge(t, r);
1013
1013
  return c.useEffect(() => {
1014
1014
  const s = r.current;
1015
- if (s) return br(s);
1016
- }, []), /* @__PURE__ */ o.jsx(
1015
+ if (s) return Sr(s);
1016
+ }, []), /* @__PURE__ */ a.jsx(
1017
1017
  tt,
1018
1018
  {
1019
1019
  ...e,
1020
- ref: a,
1020
+ ref: o,
1021
1021
  trapFocus: n.open,
1022
1022
  disableOutsidePointerEvents: n.open,
1023
1023
  disableOutsideScroll: !0,
@@ -1030,9 +1030,9 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
1030
1030
  }
1031
1031
  );
1032
1032
  }
1033
- ), da = c.forwardRef((e, t) => {
1033
+ ), fo = c.forwardRef((e, t) => {
1034
1034
  const n = z(D, e.__scopeMenu);
1035
- return /* @__PURE__ */ o.jsx(
1035
+ return /* @__PURE__ */ a.jsx(
1036
1036
  tt,
1037
1037
  {
1038
1038
  ...e,
@@ -1048,35 +1048,35 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
1048
1048
  const {
1049
1049
  __scopeMenu: n,
1050
1050
  loop: r = !1,
1051
- trapFocus: a,
1051
+ trapFocus: o,
1052
1052
  onOpenAutoFocus: s,
1053
1053
  onCloseAutoFocus: i,
1054
1054
  disableOutsidePointerEvents: u,
1055
- onEntryFocus: d,
1055
+ onEntryFocus: l,
1056
1056
  onEscapeKeyDown: g,
1057
1057
  onPointerDownOutside: p,
1058
- onFocusOutside: l,
1059
- onInteractOutside: f,
1058
+ onFocusOutside: d,
1059
+ onInteractOutside: h,
1060
1060
  onDismiss: v,
1061
1061
  disableOutsideScroll: x,
1062
- ...b
1063
- } = e, I = z(D, n), Q = ye(D, n), V = xe(n), C = Vt(n), k = oa(n), [L, Y] = c.useState(null), Z = c.useRef(null), we = me(t, Z, I.onContentChange), X = c.useRef(0), be = c.useRef(""), tr = c.useRef(0), Oe = c.useRef(null), it = c.useRef("right"), Te = c.useRef(0), nr = x ? jr : c.Fragment, rr = x ? { as: Er, allowPinchZoom: !0 } : void 0, or = (m) => {
1062
+ ...M
1063
+ } = e, I = z(D, n), Q = we(D, n), V = ye(n), C = Yt(n), k = oo(n), [L, Y] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), X = c.useRef(0), Me = c.useRef(""), rr = c.useRef(0), Oe = c.useRef(null), it = c.useRef("right"), Te = c.useRef(0), ar = x ? Nr : c.Fragment, or = x ? { as: Dr, allowPinchZoom: !0 } : void 0, sr = (m) => {
1064
1064
  var te, ut;
1065
- const _ = be.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Fe = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Le = A.map((K) => K.textValue), ct = Ca(Le, _, Fe), ce = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
1065
+ const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Fe = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Le = A.map((K) => K.textValue), ct = Po(Le, _, Fe), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
1066
1066
  (function K(lt) {
1067
- be.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
1068
- })(_), ce && setTimeout(() => ce.focus());
1067
+ Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
1068
+ })(_), le && setTimeout(() => le.focus());
1069
1069
  };
1070
- c.useEffect(() => () => window.clearTimeout(X.current), []), Mr();
1070
+ c.useEffect(() => () => window.clearTimeout(X.current), []), Pr();
1071
1071
  const ee = c.useCallback((m) => {
1072
1072
  var A, q;
1073
- return it.current === ((A = Oe.current) == null ? void 0 : A.side) && Sa(m, (q = Oe.current) == null ? void 0 : q.area);
1073
+ return it.current === ((A = Oe.current) == null ? void 0 : A.side) && Ro(m, (q = Oe.current) == null ? void 0 : q.area);
1074
1074
  }, []);
1075
- return /* @__PURE__ */ o.jsx(
1076
- ua,
1075
+ return /* @__PURE__ */ a.jsx(
1076
+ lo,
1077
1077
  {
1078
1078
  scope: n,
1079
- searchRef: be,
1079
+ searchRef: Me,
1080
1080
  onItemEnter: c.useCallback(
1081
1081
  (m) => {
1082
1082
  ee(m) && m.preventDefault();
@@ -1096,32 +1096,32 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
1096
1096
  },
1097
1097
  [ee]
1098
1098
  ),
1099
- pointerGraceTimerRef: tr,
1099
+ pointerGraceTimerRef: rr,
1100
1100
  onPointerGraceIntentChange: c.useCallback((m) => {
1101
1101
  Oe.current = m;
1102
1102
  }, []),
1103
- children: /* @__PURE__ */ o.jsx(nr, { ...rr, children: /* @__PURE__ */ o.jsx(
1104
- Cr,
1103
+ children: /* @__PURE__ */ a.jsx(ar, { ...or, children: /* @__PURE__ */ a.jsx(
1104
+ jr,
1105
1105
  {
1106
1106
  asChild: !0,
1107
- trapped: a,
1107
+ trapped: o,
1108
1108
  onMountAutoFocus: y(s, (m) => {
1109
1109
  var _;
1110
1110
  m.preventDefault(), (_ = Z.current) == null || _.focus({ preventScroll: !0 });
1111
1111
  }),
1112
1112
  onUnmountAutoFocus: i,
1113
- children: /* @__PURE__ */ o.jsx(
1113
+ children: /* @__PURE__ */ a.jsx(
1114
1114
  Rr,
1115
1115
  {
1116
1116
  asChild: !0,
1117
1117
  disableOutsidePointerEvents: u,
1118
1118
  onEscapeKeyDown: g,
1119
1119
  onPointerDownOutside: p,
1120
- onFocusOutside: l,
1121
- onInteractOutside: f,
1120
+ onFocusOutside: d,
1121
+ onInteractOutside: h,
1122
1122
  onDismiss: v,
1123
- children: /* @__PURE__ */ o.jsx(
1124
- uo,
1123
+ children: /* @__PURE__ */ a.jsx(
1124
+ da,
1125
1125
  {
1126
1126
  asChild: !0,
1127
1127
  ...C,
@@ -1130,37 +1130,37 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
1130
1130
  loop: r,
1131
1131
  currentTabStopId: L,
1132
1132
  onCurrentTabStopIdChange: Y,
1133
- onEntryFocus: y(d, (m) => {
1133
+ onEntryFocus: y(l, (m) => {
1134
1134
  Q.isUsingKeyboardRef.current || m.preventDefault();
1135
1135
  }),
1136
1136
  preventScrollOnEntryFocus: !0,
1137
- children: /* @__PURE__ */ o.jsx(
1138
- Sr,
1137
+ children: /* @__PURE__ */ a.jsx(
1138
+ Er,
1139
1139
  {
1140
1140
  role: "menu",
1141
1141
  "aria-orientation": "vertical",
1142
- "data-state": vn(I.open),
1142
+ "data-state": xn(I.open),
1143
1143
  "data-radix-menu-content": "",
1144
1144
  dir: Q.dir,
1145
1145
  ...V,
1146
- ...b,
1147
- ref: we,
1148
- style: { outline: "none", ...b.style },
1149
- onKeyDown: y(b.onKeyDown, (m) => {
1146
+ ...M,
1147
+ ref: be,
1148
+ style: { outline: "none", ...M.style },
1149
+ onKeyDown: y(M.onKeyDown, (m) => {
1150
1150
  const A = m.target.closest("[data-radix-menu-content]") === m.currentTarget, q = m.ctrlKey || m.altKey || m.metaKey, Fe = m.key.length === 1;
1151
- A && (m.key === "Tab" && m.preventDefault(), !q && Fe && or(m.key));
1151
+ A && (m.key === "Tab" && m.preventDefault(), !q && Fe && sr(m.key));
1152
1152
  const Le = Z.current;
1153
- if (m.target !== Le || !ta.includes(m.key)) return;
1153
+ if (m.target !== Le || !no.includes(m.key)) return;
1154
1154
  m.preventDefault();
1155
- const ce = k().filter((te) => !te.disabled).map((te) => te.ref.current);
1156
- Ht.includes(m.key) && ce.reverse(), ba(ce);
1155
+ const le = k().filter((te) => !te.disabled).map((te) => te.ref.current);
1156
+ zt.includes(m.key) && le.reverse(), Co(le);
1157
1157
  }),
1158
1158
  onBlur: y(e.onBlur, (m) => {
1159
- m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), be.current = "");
1159
+ m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), Me.current = "");
1160
1160
  }),
1161
1161
  onPointerMove: y(
1162
1162
  e.onPointerMove,
1163
- fe((m) => {
1163
+ pe((m) => {
1164
1164
  const _ = m.target, A = Te.current !== m.clientX;
1165
1165
  if (m.currentTarget.contains(_) && A) {
1166
1166
  const q = m.clientX > Te.current ? "right" : "left";
@@ -1180,68 +1180,68 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
1180
1180
  );
1181
1181
  }
1182
1182
  );
1183
- Zt.displayName = D;
1184
- var ha = "MenuGroup", nt = c.forwardRef(
1183
+ en.displayName = D;
1184
+ var po = "MenuGroup", nt = c.forwardRef(
1185
1185
  (e, t) => {
1186
1186
  const { __scopeMenu: n, ...r } = e;
1187
- return /* @__PURE__ */ o.jsx(se.div, { role: "group", ...r, ref: t });
1187
+ return /* @__PURE__ */ a.jsx(ce.div, { role: "group", ...r, ref: t });
1188
1188
  }
1189
1189
  );
1190
- nt.displayName = ha;
1191
- var fa = "MenuLabel", en = c.forwardRef(
1190
+ nt.displayName = po;
1191
+ var mo = "MenuLabel", tn = c.forwardRef(
1192
1192
  (e, t) => {
1193
1193
  const { __scopeMenu: n, ...r } = e;
1194
- return /* @__PURE__ */ o.jsx(se.div, { ...r, ref: t });
1194
+ return /* @__PURE__ */ a.jsx(ce.div, { ...r, ref: t });
1195
1195
  }
1196
1196
  );
1197
- en.displayName = fa;
1197
+ tn.displayName = mo;
1198
1198
  var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
1199
1199
  (e, t) => {
1200
- const { disabled: n = !1, onSelect: r, ...a } = e, s = c.useRef(null), i = ye(_e, e.__scopeMenu), u = et(_e, e.__scopeMenu), d = me(t, s), g = c.useRef(!1), p = () => {
1201
- const l = s.current;
1202
- if (!n && l) {
1203
- const f = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
1204
- l.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), _r(l, f), f.defaultPrevented ? g.current = !1 : i.onClose();
1200
+ const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(_e, e.__scopeMenu), u = et(_e, e.__scopeMenu), l = ge(t, s), g = c.useRef(!1), p = () => {
1201
+ const d = s.current;
1202
+ if (!n && d) {
1203
+ const h = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
1204
+ d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Ir(d, h), h.defaultPrevented ? g.current = !1 : i.onClose();
1205
1205
  }
1206
1206
  };
1207
- return /* @__PURE__ */ o.jsx(
1208
- tn,
1207
+ return /* @__PURE__ */ a.jsx(
1208
+ nn,
1209
1209
  {
1210
- ...a,
1211
- ref: d,
1210
+ ...o,
1211
+ ref: l,
1212
1212
  disabled: n,
1213
1213
  onClick: y(e.onClick, p),
1214
- onPointerDown: (l) => {
1215
- var f;
1216
- (f = e.onPointerDown) == null || f.call(e, l), g.current = !0;
1214
+ onPointerDown: (d) => {
1215
+ var h;
1216
+ (h = e.onPointerDown) == null || h.call(e, d), g.current = !0;
1217
1217
  },
1218
- onPointerUp: y(e.onPointerUp, (l) => {
1219
- var f;
1220
- g.current || (f = l.currentTarget) == null || f.click();
1218
+ onPointerUp: y(e.onPointerUp, (d) => {
1219
+ var h;
1220
+ g.current || (h = d.currentTarget) == null || h.click();
1221
1221
  }),
1222
- onKeyDown: y(e.onKeyDown, (l) => {
1223
- const f = u.searchRef.current !== "";
1224
- n || f && l.key === " " || Ue.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
1222
+ onKeyDown: y(e.onKeyDown, (d) => {
1223
+ const h = u.searchRef.current !== "";
1224
+ n || h && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
1225
1225
  })
1226
1226
  }
1227
1227
  );
1228
1228
  }
1229
1229
  );
1230
1230
  Ae.displayName = _e;
1231
- var tn = c.forwardRef(
1231
+ var nn = c.forwardRef(
1232
1232
  (e, t) => {
1233
- const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = e, i = et(_e, n), u = Vt(n), d = c.useRef(null), g = me(t, d), [p, l] = c.useState(!1), [f, v] = c.useState("");
1233
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(_e, n), u = Yt(n), l = c.useRef(null), g = ge(t, l), [p, d] = c.useState(!1), [h, v] = c.useState("");
1234
1234
  return c.useEffect(() => {
1235
- const x = d.current;
1235
+ const x = l.current;
1236
1236
  x && v((x.textContent ?? "").trim());
1237
- }, [s.children]), /* @__PURE__ */ o.jsx(
1238
- he.ItemSlot,
1237
+ }, [s.children]), /* @__PURE__ */ a.jsx(
1238
+ fe.ItemSlot,
1239
1239
  {
1240
1240
  scope: n,
1241
1241
  disabled: r,
1242
- textValue: a ?? f,
1243
- children: /* @__PURE__ */ o.jsx(lo, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ o.jsx(
1244
- se.div,
1242
+ textValue: o ?? h,
1243
+ children: /* @__PURE__ */ a.jsx(ha, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ a.jsx(
1244
+ ce.div,
1245
1245
  {
1246
1246
  role: "menuitem",
1247
1247
  "data-highlighted": p ? "" : void 0,
@@ -1251,34 +1251,34 @@ var tn = c.forwardRef(
1251
1251
  ref: g,
1252
1252
  onPointerMove: y(
1253
1253
  e.onPointerMove,
1254
- fe((x) => {
1254
+ pe((x) => {
1255
1255
  r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
1256
1256
  })
1257
1257
  ),
1258
1258
  onPointerLeave: y(
1259
1259
  e.onPointerLeave,
1260
- fe((x) => i.onItemLeave(x))
1260
+ pe((x) => i.onItemLeave(x))
1261
1261
  ),
1262
- onFocus: y(e.onFocus, () => l(!0)),
1263
- onBlur: y(e.onBlur, () => l(!1))
1262
+ onFocus: y(e.onFocus, () => d(!0)),
1263
+ onBlur: y(e.onBlur, () => d(!1))
1264
1264
  }
1265
1265
  ) })
1266
1266
  }
1267
1267
  );
1268
1268
  }
1269
- ), pa = "MenuCheckboxItem", nn = c.forwardRef(
1269
+ ), go = "MenuCheckboxItem", rn = c.forwardRef(
1270
1270
  (e, t) => {
1271
- const { checked: n = !1, onCheckedChange: r, ...a } = e;
1272
- return /* @__PURE__ */ o.jsx(cn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
1271
+ const { checked: n = !1, onCheckedChange: r, ...o } = e;
1272
+ return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1273
1273
  Ae,
1274
1274
  {
1275
1275
  role: "menuitemcheckbox",
1276
1276
  "aria-checked": Ne(n) ? "mixed" : n,
1277
- ...a,
1277
+ ...o,
1278
1278
  ref: t,
1279
- "data-state": at(n),
1279
+ "data-state": ot(n),
1280
1280
  onSelect: y(
1281
- a.onSelect,
1281
+ o.onSelect,
1282
1282
  () => r == null ? void 0 : r(Ne(n) ? !0 : !n),
1283
1283
  { checkForDefaultPrevented: !1 }
1284
1284
  )
@@ -1286,34 +1286,34 @@ var tn = c.forwardRef(
1286
1286
  ) });
1287
1287
  }
1288
1288
  );
1289
- nn.displayName = pa;
1290
- var rn = "MenuRadioGroup", [ma, ga] = J(
1291
- rn,
1289
+ rn.displayName = go;
1290
+ var an = "MenuRadioGroup", [vo, xo] = J(
1291
+ an,
1292
1292
  { value: void 0, onValueChange: () => {
1293
1293
  } }
1294
1294
  ), on = c.forwardRef(
1295
1295
  (e, t) => {
1296
- const { value: n, onValueChange: r, ...a } = e, s = He(r);
1297
- return /* @__PURE__ */ o.jsx(ma, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(nt, { ...a, ref: t }) });
1296
+ const { value: n, onValueChange: r, ...o } = e, s = He(r);
1297
+ return /* @__PURE__ */ a.jsx(vo, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(nt, { ...o, ref: t }) });
1298
1298
  }
1299
1299
  );
1300
- on.displayName = rn;
1301
- var an = "MenuRadioItem", sn = c.forwardRef(
1300
+ on.displayName = an;
1301
+ var sn = "MenuRadioItem", cn = c.forwardRef(
1302
1302
  (e, t) => {
1303
- const { value: n, ...r } = e, a = ga(an, e.__scopeMenu), s = n === a.value;
1304
- return /* @__PURE__ */ o.jsx(cn, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
1303
+ const { value: n, ...r } = e, o = xo(sn, e.__scopeMenu), s = n === o.value;
1304
+ return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1305
1305
  Ae,
1306
1306
  {
1307
1307
  role: "menuitemradio",
1308
1308
  "aria-checked": s,
1309
1309
  ...r,
1310
1310
  ref: t,
1311
- "data-state": at(s),
1311
+ "data-state": ot(s),
1312
1312
  onSelect: y(
1313
1313
  r.onSelect,
1314
1314
  () => {
1315
1315
  var i;
1316
- return (i = a.onValueChange) == null ? void 0 : i.call(a, n);
1316
+ return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
1317
1317
  },
1318
1318
  { checkForDefaultPrevented: !1 }
1319
1319
  )
@@ -1321,35 +1321,35 @@ var an = "MenuRadioItem", sn = c.forwardRef(
1321
1321
  ) });
1322
1322
  }
1323
1323
  );
1324
- sn.displayName = an;
1325
- var rt = "MenuItemIndicator", [cn, va] = J(
1324
+ cn.displayName = sn;
1325
+ var rt = "MenuItemIndicator", [un, yo] = J(
1326
1326
  rt,
1327
1327
  { checked: !1 }
1328
- ), un = c.forwardRef(
1328
+ ), ln = c.forwardRef(
1329
1329
  (e, t) => {
1330
- const { __scopeMenu: n, forceMount: r, ...a } = e, s = va(rt, n);
1331
- return /* @__PURE__ */ o.jsx(
1330
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = yo(rt, n);
1331
+ return /* @__PURE__ */ a.jsx(
1332
1332
  ke,
1333
1333
  {
1334
1334
  present: r || Ne(s.checked) || s.checked === !0,
1335
- children: /* @__PURE__ */ o.jsx(
1336
- se.span,
1335
+ children: /* @__PURE__ */ a.jsx(
1336
+ ce.span,
1337
1337
  {
1338
- ...a,
1338
+ ...o,
1339
1339
  ref: t,
1340
- "data-state": at(s.checked)
1340
+ "data-state": ot(s.checked)
1341
1341
  }
1342
1342
  )
1343
1343
  }
1344
1344
  );
1345
1345
  }
1346
1346
  );
1347
- un.displayName = rt;
1348
- var xa = "MenuSeparator", ln = c.forwardRef(
1347
+ ln.displayName = rt;
1348
+ var wo = "MenuSeparator", dn = c.forwardRef(
1349
1349
  (e, t) => {
1350
1350
  const { __scopeMenu: n, ...r } = e;
1351
- return /* @__PURE__ */ o.jsx(
1352
- se.div,
1351
+ return /* @__PURE__ */ a.jsx(
1352
+ ce.div,
1353
1353
  {
1354
1354
  role: "separator",
1355
1355
  "aria-orientation": "horizontal",
@@ -1359,119 +1359,119 @@ var xa = "MenuSeparator", ln = c.forwardRef(
1359
1359
  );
1360
1360
  }
1361
1361
  );
1362
- ln.displayName = xa;
1363
- var ya = "MenuArrow", dn = c.forwardRef(
1362
+ dn.displayName = wo;
1363
+ var bo = "MenuArrow", hn = c.forwardRef(
1364
1364
  (e, t) => {
1365
- const { __scopeMenu: n, ...r } = e, a = xe(n);
1366
- return /* @__PURE__ */ o.jsx(Pr, { ...a, ...r, ref: t });
1365
+ const { __scopeMenu: n, ...r } = e, o = ye(n);
1366
+ return /* @__PURE__ */ a.jsx(_r, { ...o, ...r, ref: t });
1367
1367
  }
1368
1368
  );
1369
- dn.displayName = ya;
1370
- var ot = "MenuSub", [wa, hn] = J(ot), fn = (e) => {
1371
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s = z(ot, t), i = xe(t), [u, d] = c.useState(null), [g, p] = c.useState(null), l = He(a);
1372
- return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ o.jsx(Dt, { ...i, children: /* @__PURE__ */ o.jsx(
1373
- Yt,
1369
+ hn.displayName = bo;
1370
+ var at = "MenuSub", [Mo, fn] = J(at), pn = (e) => {
1371
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = z(at, t), i = ye(t), [u, l] = c.useState(null), [g, p] = c.useState(null), d = He(o);
1372
+ return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(Dt, { ...i, children: /* @__PURE__ */ a.jsx(
1373
+ Xt,
1374
1374
  {
1375
1375
  scope: t,
1376
1376
  open: r,
1377
- onOpenChange: l,
1377
+ onOpenChange: d,
1378
1378
  content: g,
1379
1379
  onContentChange: p,
1380
- children: /* @__PURE__ */ o.jsx(
1381
- wa,
1380
+ children: /* @__PURE__ */ a.jsx(
1381
+ Mo,
1382
1382
  {
1383
1383
  scope: t,
1384
1384
  contentId: Ee(),
1385
1385
  triggerId: Ee(),
1386
1386
  trigger: u,
1387
- onTriggerChange: d,
1387
+ onTriggerChange: l,
1388
1388
  children: n
1389
1389
  }
1390
1390
  )
1391
1391
  }
1392
1392
  ) });
1393
1393
  };
1394
- fn.displayName = ot;
1395
- var ue = "MenuSubTrigger", pn = c.forwardRef(
1394
+ pn.displayName = at;
1395
+ var de = "MenuSubTrigger", mn = c.forwardRef(
1396
1396
  (e, t) => {
1397
- const n = z(ue, e.__scopeMenu), r = ye(ue, e.__scopeMenu), a = hn(ue, e.__scopeMenu), s = et(ue, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: d } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
1397
+ const n = z(de, e.__scopeMenu), r = we(de, e.__scopeMenu), o = fn(de, e.__scopeMenu), s = et(de, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: l } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
1398
1398
  i.current && window.clearTimeout(i.current), i.current = null;
1399
1399
  }, []);
1400
1400
  return c.useEffect(() => p, [p]), c.useEffect(() => {
1401
- const l = u.current;
1401
+ const d = u.current;
1402
1402
  return () => {
1403
- window.clearTimeout(l), d(null);
1403
+ window.clearTimeout(d), l(null);
1404
1404
  };
1405
- }, [u, d]), /* @__PURE__ */ o.jsx(Je, { asChild: !0, ...g, children: /* @__PURE__ */ o.jsx(
1406
- tn,
1405
+ }, [u, l]), /* @__PURE__ */ a.jsx(Je, { asChild: !0, ...g, children: /* @__PURE__ */ a.jsx(
1406
+ nn,
1407
1407
  {
1408
- id: a.triggerId,
1408
+ id: o.triggerId,
1409
1409
  "aria-haspopup": "menu",
1410
1410
  "aria-expanded": n.open,
1411
- "aria-controls": a.contentId,
1412
- "data-state": vn(n.open),
1411
+ "aria-controls": o.contentId,
1412
+ "data-state": xn(n.open),
1413
1413
  ...e,
1414
- ref: Nt(t, a.onTriggerChange),
1415
- onClick: (l) => {
1416
- var f;
1417
- (f = e.onClick) == null || f.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
1414
+ ref: Nt(t, o.onTriggerChange),
1415
+ onClick: (d) => {
1416
+ var h;
1417
+ (h = e.onClick) == null || h.call(e, d), !(e.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
1418
1418
  },
1419
1419
  onPointerMove: y(
1420
1420
  e.onPointerMove,
1421
- fe((l) => {
1422
- s.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1421
+ pe((d) => {
1422
+ s.onItemEnter(d), !d.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1423
1423
  n.onOpenChange(!0), p();
1424
1424
  }, 100));
1425
1425
  })
1426
1426
  ),
1427
1427
  onPointerLeave: y(
1428
1428
  e.onPointerLeave,
1429
- fe((l) => {
1429
+ pe((d) => {
1430
1430
  var v, x;
1431
1431
  p();
1432
- const f = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1433
- if (f) {
1434
- const b = (x = n.content) == null ? void 0 : x.dataset.side, I = b === "right", Q = I ? -5 : 5, V = f[I ? "left" : "right"], C = f[I ? "right" : "left"];
1432
+ const h = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1433
+ if (h) {
1434
+ const M = (x = n.content) == null ? void 0 : x.dataset.side, I = M === "right", Q = I ? -5 : 5, V = h[I ? "left" : "right"], C = h[I ? "right" : "left"];
1435
1435
  s.onPointerGraceIntentChange({
1436
1436
  area: [
1437
1437
  // Apply a bleed on clientX to ensure that our exit point is
1438
1438
  // consistently within polygon bounds
1439
- { x: l.clientX + Q, y: l.clientY },
1440
- { x: V, y: f.top },
1441
- { x: C, y: f.top },
1442
- { x: C, y: f.bottom },
1443
- { x: V, y: f.bottom }
1439
+ { x: d.clientX + Q, y: d.clientY },
1440
+ { x: V, y: h.top },
1441
+ { x: C, y: h.top },
1442
+ { x: C, y: h.bottom },
1443
+ { x: V, y: h.bottom }
1444
1444
  ],
1445
- side: b
1445
+ side: M
1446
1446
  }), window.clearTimeout(u.current), u.current = window.setTimeout(
1447
1447
  () => s.onPointerGraceIntentChange(null),
1448
1448
  300
1449
1449
  );
1450
1450
  } else {
1451
- if (s.onTriggerLeave(l), l.defaultPrevented) return;
1451
+ if (s.onTriggerLeave(d), d.defaultPrevented) return;
1452
1452
  s.onPointerGraceIntentChange(null);
1453
1453
  }
1454
1454
  })
1455
1455
  ),
1456
- onKeyDown: y(e.onKeyDown, (l) => {
1456
+ onKeyDown: y(e.onKeyDown, (d) => {
1457
1457
  var v;
1458
- const f = s.searchRef.current !== "";
1459
- e.disabled || f && l.key === " " || na[r.dir].includes(l.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), l.preventDefault());
1458
+ const h = s.searchRef.current !== "";
1459
+ e.disabled || h && d.key === " " || ro[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1460
1460
  })
1461
1461
  }
1462
1462
  ) });
1463
1463
  }
1464
1464
  );
1465
- pn.displayName = ue;
1466
- var mn = "MenuSubContent", gn = c.forwardRef(
1465
+ mn.displayName = de;
1466
+ var gn = "MenuSubContent", vn = c.forwardRef(
1467
1467
  (e, t) => {
1468
- const n = Wt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = z(D, e.__scopeMenu), i = ye(D, e.__scopeMenu), u = hn(mn, e.__scopeMenu), d = c.useRef(null), g = me(t, d);
1469
- return /* @__PURE__ */ o.jsx(he.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ o.jsx(he.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1468
+ const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu), u = fn(gn, e.__scopeMenu), l = c.useRef(null), g = ge(t, l);
1469
+ return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1470
1470
  tt,
1471
1471
  {
1472
1472
  id: u.contentId,
1473
1473
  "aria-labelledby": u.triggerId,
1474
- ...a,
1474
+ ...o,
1475
1475
  ref: g,
1476
1476
  align: "start",
1477
1477
  side: i.dir === "rtl" ? "left" : "right",
@@ -1479,8 +1479,8 @@ var mn = "MenuSubContent", gn = c.forwardRef(
1479
1479
  disableOutsideScroll: !1,
1480
1480
  trapFocus: !1,
1481
1481
  onOpenAutoFocus: (p) => {
1482
- var l;
1483
- i.isUsingKeyboardRef.current && ((l = d.current) == null || l.focus()), p.preventDefault();
1482
+ var d;
1483
+ i.isUsingKeyboardRef.current && ((d = l.current) == null || d.focus()), p.preventDefault();
1484
1484
  },
1485
1485
  onCloseAutoFocus: (p) => p.preventDefault(),
1486
1486
  onFocusOutside: y(e.onFocusOutside, (p) => {
@@ -1491,95 +1491,95 @@ var mn = "MenuSubContent", gn = c.forwardRef(
1491
1491
  }),
1492
1492
  onKeyDown: y(e.onKeyDown, (p) => {
1493
1493
  var v;
1494
- const l = p.currentTarget.contains(p.target), f = ra[i.dir].includes(p.key);
1495
- l && f && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
1494
+ const d = p.currentTarget.contains(p.target), h = ao[i.dir].includes(p.key);
1495
+ d && h && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
1496
1496
  })
1497
1497
  }
1498
1498
  ) }) }) });
1499
1499
  }
1500
1500
  );
1501
- gn.displayName = mn;
1502
- function vn(e) {
1501
+ vn.displayName = gn;
1502
+ function xn(e) {
1503
1503
  return e ? "open" : "closed";
1504
1504
  }
1505
1505
  function Ne(e) {
1506
1506
  return e === "indeterminate";
1507
1507
  }
1508
- function at(e) {
1508
+ function ot(e) {
1509
1509
  return Ne(e) ? "indeterminate" : e ? "checked" : "unchecked";
1510
1510
  }
1511
- function ba(e) {
1511
+ function Co(e) {
1512
1512
  const t = document.activeElement;
1513
1513
  for (const n of e)
1514
1514
  if (n === t || (n.focus(), document.activeElement !== t)) return;
1515
1515
  }
1516
- function Ma(e, t) {
1516
+ function So(e, t) {
1517
1517
  return e.map((n, r) => e[(t + r) % e.length]);
1518
1518
  }
1519
- function Ca(e, t, n) {
1520
- const a = t.length > 1 && Array.from(t).every((g) => g === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1521
- let i = Ma(e, Math.max(s, 0));
1522
- a.length === 1 && (i = i.filter((g) => g !== n));
1523
- const d = i.find(
1524
- (g) => g.toLowerCase().startsWith(a.toLowerCase())
1519
+ function Po(e, t, n) {
1520
+ const o = t.length > 1 && Array.from(t).every((g) => g === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1521
+ let i = So(e, Math.max(s, 0));
1522
+ o.length === 1 && (i = i.filter((g) => g !== n));
1523
+ const l = i.find(
1524
+ (g) => g.toLowerCase().startsWith(o.toLowerCase())
1525
1525
  );
1526
- return d !== n ? d : void 0;
1526
+ return l !== n ? l : void 0;
1527
1527
  }
1528
- function Ra(e, t) {
1528
+ function jo(e, t) {
1529
1529
  const { x: n, y: r } = e;
1530
- let a = !1;
1530
+ let o = !1;
1531
1531
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1532
- const u = t[s].x, d = t[s].y, g = t[i].x, p = t[i].y;
1533
- d > r != p > r && n < (g - u) * (r - d) / (p - d) + u && (a = !a);
1532
+ const u = t[s].x, l = t[s].y, g = t[i].x, p = t[i].y;
1533
+ l > r != p > r && n < (g - u) * (r - l) / (p - l) + u && (o = !o);
1534
1534
  }
1535
- return a;
1535
+ return o;
1536
1536
  }
1537
- function Sa(e, t) {
1537
+ function Ro(e, t) {
1538
1538
  if (!t) return !1;
1539
1539
  const n = { x: e.clientX, y: e.clientY };
1540
- return Ra(n, t);
1540
+ return jo(n, t);
1541
1541
  }
1542
- function fe(e) {
1542
+ function pe(e) {
1543
1543
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1544
1544
  }
1545
- var Pa = Xt, ja = Je, Ea = Jt, _a = Zt, Na = nt, Da = en, Ia = Ae, ka = nn, Aa = on, Oa = sn, Ta = un, Fa = ln, La = dn, Ka = fn, $a = pn, Ba = gn, st = "DropdownMenu", [Qa, Us] = Et(
1545
+ var Eo = Wt, _o = Je, No = Zt, Do = en, Io = nt, ko = tn, Ao = Ae, Oo = rn, To = on, Fo = cn, Lo = ln, Ko = dn, $o = hn, Bo = pn, Qo = mn, qo = vn, st = "DropdownMenu", [Uo, Gs] = Et(
1546
1546
  st,
1547
- [zt]
1548
- ), S = zt(), [qa, xn] = Qa(st), yn = (e) => {
1547
+ [Vt]
1548
+ ), P = Vt(), [Go, yn] = Uo(st), wn = (e) => {
1549
1549
  const {
1550
1550
  __scopeDropdownMenu: t,
1551
1551
  children: n,
1552
1552
  dir: r,
1553
- open: a,
1553
+ open: o,
1554
1554
  defaultOpen: s,
1555
1555
  onOpenChange: i,
1556
1556
  modal: u = !0
1557
- } = e, d = S(t), g = c.useRef(null), [p = !1, l] = It({
1558
- prop: a,
1557
+ } = e, l = P(t), g = c.useRef(null), [p = !1, d] = It({
1558
+ prop: o,
1559
1559
  defaultProp: s,
1560
1560
  onChange: i
1561
1561
  });
1562
- return /* @__PURE__ */ o.jsx(
1563
- qa,
1562
+ return /* @__PURE__ */ a.jsx(
1563
+ Go,
1564
1564
  {
1565
1565
  scope: t,
1566
1566
  triggerId: Ee(),
1567
1567
  triggerRef: g,
1568
1568
  contentId: Ee(),
1569
1569
  open: p,
1570
- onOpenChange: l,
1571
- onOpenToggle: c.useCallback(() => l((f) => !f), [l]),
1570
+ onOpenChange: d,
1571
+ onOpenToggle: c.useCallback(() => d((h) => !h), [d]),
1572
1572
  modal: u,
1573
- children: /* @__PURE__ */ o.jsx(Pa, { ...d, open: p, onOpenChange: l, dir: r, modal: u, children: n })
1573
+ children: /* @__PURE__ */ a.jsx(Eo, { ...l, open: p, onOpenChange: d, dir: r, modal: u, children: n })
1574
1574
  }
1575
1575
  );
1576
1576
  };
1577
- yn.displayName = st;
1578
- var wn = "DropdownMenuTrigger", bn = c.forwardRef(
1577
+ wn.displayName = st;
1578
+ var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
1579
1579
  (e, t) => {
1580
- const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = xn(wn, n), i = S(n);
1581
- return /* @__PURE__ */ o.jsx(ja, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
1582
- se.button,
1580
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = yn(bn, n), i = P(n);
1581
+ return /* @__PURE__ */ a.jsx(_o, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1582
+ ce.button,
1583
1583
  {
1584
1584
  type: "button",
1585
1585
  id: s.triggerId,
@@ -1589,7 +1589,7 @@ var wn = "DropdownMenuTrigger", bn = c.forwardRef(
1589
1589
  "data-state": s.open ? "open" : "closed",
1590
1590
  "data-disabled": r ? "" : void 0,
1591
1591
  disabled: r,
1592
- ...a,
1592
+ ...o,
1593
1593
  ref: Nt(t, s.triggerRef),
1594
1594
  onPointerDown: y(e.onPointerDown, (u) => {
1595
1595
  !r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
@@ -1601,30 +1601,30 @@ var wn = "DropdownMenuTrigger", bn = c.forwardRef(
1601
1601
  ) });
1602
1602
  }
1603
1603
  );
1604
- bn.displayName = wn;
1605
- var Ua = "DropdownMenuPortal", Mn = (e) => {
1606
- const { __scopeDropdownMenu: t, ...n } = e, r = S(t);
1607
- return /* @__PURE__ */ o.jsx(Ea, { ...r, ...n });
1604
+ Mn.displayName = bn;
1605
+ var Ho = "DropdownMenuPortal", Cn = (e) => {
1606
+ const { __scopeDropdownMenu: t, ...n } = e, r = P(t);
1607
+ return /* @__PURE__ */ a.jsx(No, { ...r, ...n });
1608
1608
  };
1609
- Mn.displayName = Ua;
1610
- var Cn = "DropdownMenuContent", Rn = c.forwardRef(
1609
+ Cn.displayName = Ho;
1610
+ var Sn = "DropdownMenuContent", Pn = c.forwardRef(
1611
1611
  (e, t) => {
1612
- const { __scopeDropdownMenu: n, ...r } = e, a = xn(Cn, n), s = S(n), i = c.useRef(!1);
1613
- return /* @__PURE__ */ o.jsx(
1614
- _a,
1612
+ const { __scopeDropdownMenu: n, ...r } = e, o = yn(Sn, n), s = P(n), i = c.useRef(!1);
1613
+ return /* @__PURE__ */ a.jsx(
1614
+ Do,
1615
1615
  {
1616
- id: a.contentId,
1617
- "aria-labelledby": a.triggerId,
1616
+ id: o.contentId,
1617
+ "aria-labelledby": o.triggerId,
1618
1618
  ...s,
1619
1619
  ...r,
1620
1620
  ref: t,
1621
1621
  onCloseAutoFocus: y(e.onCloseAutoFocus, (u) => {
1622
- var d;
1623
- i.current || (d = a.triggerRef.current) == null || d.focus(), i.current = !1, u.preventDefault();
1622
+ var l;
1623
+ i.current || (l = o.triggerRef.current) == null || l.focus(), i.current = !1, u.preventDefault();
1624
1624
  }),
1625
1625
  onInteractOutside: y(e.onInteractOutside, (u) => {
1626
- const d = u.detail.originalEvent, g = d.button === 0 && d.ctrlKey === !0, p = d.button === 2 || g;
1627
- (!a.modal || p) && (i.current = !0);
1626
+ const l = u.detail.originalEvent, g = l.button === 0 && l.ctrlKey === !0, p = l.button === 2 || g;
1627
+ (!o.modal || p) && (i.current = !0);
1628
1628
  }),
1629
1629
  style: {
1630
1630
  ...e.style,
@@ -1638,78 +1638,78 @@ var Cn = "DropdownMenuContent", Rn = c.forwardRef(
1638
1638
  );
1639
1639
  }
1640
1640
  );
1641
- Rn.displayName = Cn;
1642
- var Ga = "DropdownMenuGroup", Ha = c.forwardRef(
1641
+ Pn.displayName = Sn;
1642
+ var zo = "DropdownMenuGroup", Vo = c.forwardRef(
1643
1643
  (e, t) => {
1644
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1645
- return /* @__PURE__ */ o.jsx(Na, { ...a, ...r, ref: t });
1644
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1645
+ return /* @__PURE__ */ a.jsx(Io, { ...o, ...r, ref: t });
1646
1646
  }
1647
1647
  );
1648
- Ha.displayName = Ga;
1649
- var za = "DropdownMenuLabel", Sn = c.forwardRef(
1648
+ Vo.displayName = zo;
1649
+ var Yo = "DropdownMenuLabel", jn = c.forwardRef(
1650
1650
  (e, t) => {
1651
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1652
- return /* @__PURE__ */ o.jsx(Da, { ...a, ...r, ref: t });
1651
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1652
+ return /* @__PURE__ */ a.jsx(ko, { ...o, ...r, ref: t });
1653
1653
  }
1654
1654
  );
1655
- Sn.displayName = za;
1656
- var Va = "DropdownMenuItem", Pn = c.forwardRef(
1655
+ jn.displayName = Yo;
1656
+ var Xo = "DropdownMenuItem", Rn = c.forwardRef(
1657
1657
  (e, t) => {
1658
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1659
- return /* @__PURE__ */ o.jsx(Ia, { ...a, ...r, ref: t });
1658
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1659
+ return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
1660
1660
  }
1661
1661
  );
1662
- Pn.displayName = Va;
1663
- var Ya = "DropdownMenuCheckboxItem", jn = c.forwardRef((e, t) => {
1664
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1665
- return /* @__PURE__ */ o.jsx(ka, { ...a, ...r, ref: t });
1662
+ Rn.displayName = Xo;
1663
+ var Wo = "DropdownMenuCheckboxItem", En = c.forwardRef((e, t) => {
1664
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1665
+ return /* @__PURE__ */ a.jsx(Oo, { ...o, ...r, ref: t });
1666
1666
  });
1667
- jn.displayName = Ya;
1668
- var Xa = "DropdownMenuRadioGroup", Wa = c.forwardRef((e, t) => {
1669
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1670
- return /* @__PURE__ */ o.jsx(Aa, { ...a, ...r, ref: t });
1667
+ En.displayName = Wo;
1668
+ var Jo = "DropdownMenuRadioGroup", Zo = c.forwardRef((e, t) => {
1669
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1670
+ return /* @__PURE__ */ a.jsx(To, { ...o, ...r, ref: t });
1671
1671
  });
1672
- Wa.displayName = Xa;
1673
- var Ja = "DropdownMenuRadioItem", En = c.forwardRef((e, t) => {
1674
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1675
- return /* @__PURE__ */ o.jsx(Oa, { ...a, ...r, ref: t });
1672
+ Zo.displayName = Jo;
1673
+ var es = "DropdownMenuRadioItem", _n = c.forwardRef((e, t) => {
1674
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1675
+ return /* @__PURE__ */ a.jsx(Fo, { ...o, ...r, ref: t });
1676
1676
  });
1677
- En.displayName = Ja;
1678
- var Za = "DropdownMenuItemIndicator", _n = c.forwardRef((e, t) => {
1679
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1680
- return /* @__PURE__ */ o.jsx(Ta, { ...a, ...r, ref: t });
1677
+ _n.displayName = es;
1678
+ var ts = "DropdownMenuItemIndicator", Nn = c.forwardRef((e, t) => {
1679
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1680
+ return /* @__PURE__ */ a.jsx(Lo, { ...o, ...r, ref: t });
1681
1681
  });
1682
- _n.displayName = Za;
1683
- var es = "DropdownMenuSeparator", Nn = c.forwardRef((e, t) => {
1684
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1685
- return /* @__PURE__ */ o.jsx(Fa, { ...a, ...r, ref: t });
1682
+ Nn.displayName = ts;
1683
+ var ns = "DropdownMenuSeparator", Dn = c.forwardRef((e, t) => {
1684
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1685
+ return /* @__PURE__ */ a.jsx(Ko, { ...o, ...r, ref: t });
1686
1686
  });
1687
- Nn.displayName = es;
1688
- var ts = "DropdownMenuArrow", ns = c.forwardRef(
1687
+ Dn.displayName = ns;
1688
+ var rs = "DropdownMenuArrow", as = c.forwardRef(
1689
1689
  (e, t) => {
1690
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1691
- return /* @__PURE__ */ o.jsx(La, { ...a, ...r, ref: t });
1690
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1691
+ return /* @__PURE__ */ a.jsx($o, { ...o, ...r, ref: t });
1692
1692
  }
1693
1693
  );
1694
- ns.displayName = ts;
1695
- var rs = (e) => {
1696
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, i = S(t), [u = !1, d] = It({
1694
+ as.displayName = rs;
1695
+ var os = (e) => {
1696
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = P(t), [u = !1, l] = It({
1697
1697
  prop: r,
1698
1698
  defaultProp: s,
1699
- onChange: a
1699
+ onChange: o
1700
1700
  });
1701
- return /* @__PURE__ */ o.jsx(Ka, { ...i, open: u, onOpenChange: d, children: n });
1702
- }, os = "DropdownMenuSubTrigger", Dn = c.forwardRef((e, t) => {
1703
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1704
- return /* @__PURE__ */ o.jsx($a, { ...a, ...r, ref: t });
1701
+ return /* @__PURE__ */ a.jsx(Bo, { ...i, open: u, onOpenChange: l, children: n });
1702
+ }, ss = "DropdownMenuSubTrigger", In = c.forwardRef((e, t) => {
1703
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1704
+ return /* @__PURE__ */ a.jsx(Qo, { ...o, ...r, ref: t });
1705
1705
  });
1706
- Dn.displayName = os;
1707
- var as = "DropdownMenuSubContent", In = c.forwardRef((e, t) => {
1708
- const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
1709
- return /* @__PURE__ */ o.jsx(
1710
- Ba,
1706
+ In.displayName = ss;
1707
+ var is = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
1708
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1709
+ return /* @__PURE__ */ a.jsx(
1710
+ qo,
1711
1711
  {
1712
- ...a,
1712
+ ...o,
1713
1713
  ...r,
1714
1714
  ref: t,
1715
1715
  style: {
@@ -1723,13 +1723,13 @@ var as = "DropdownMenuSubContent", In = c.forwardRef((e, t) => {
1723
1723
  }
1724
1724
  );
1725
1725
  });
1726
- In.displayName = as;
1727
- var ss = yn, is = bn, kn = Mn, An = Rn, On = Sn, Tn = Pn, Fn = jn, Ln = En, Kn = _n, $n = Nn, cs = rs, Bn = Dn, Qn = In;
1728
- const us = ss, ls = is, ds = kn, hs = cs, qn = c.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1729
- Bn,
1726
+ kn.displayName = is;
1727
+ var cs = wn, us = Mn, An = Cn, On = Pn, Tn = jn, Fn = Rn, Ln = En, Kn = _n, $n = Nn, Bn = Dn, ls = os, Qn = In, qn = kn;
1728
+ const ds = cs, hs = us, fs = An, ps = ls, Un = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1729
+ Qn,
1730
1730
  {
1731
- ref: a,
1732
- className: M(
1731
+ ref: o,
1732
+ className: b(
1733
1733
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1734
1734
  t && "pl-8",
1735
1735
  e
@@ -1737,29 +1737,29 @@ const us = ss, ls = is, ds = kn, hs = cs, qn = c.forwardRef(({ className: e, ins
1737
1737
  ...r,
1738
1738
  children: [
1739
1739
  n,
1740
- /* @__PURE__ */ o.jsx(Bt, { className: "ml-auto h-4 w-4" })
1740
+ /* @__PURE__ */ a.jsx(Qt, { className: "ml-auto h-4 w-4" })
1741
1741
  ]
1742
1742
  }
1743
1743
  ));
1744
- qn.displayName = Bn.displayName;
1745
- const Un = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
1746
- Qn,
1744
+ Un.displayName = Qn.displayName;
1745
+ const Gn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1746
+ qn,
1747
1747
  {
1748
1748
  ref: n,
1749
- className: M(
1749
+ className: b(
1750
1750
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1751
1751
  e
1752
1752
  ),
1753
1753
  ...t
1754
1754
  }
1755
1755
  ));
1756
- Un.displayName = Qn.displayName;
1757
- const Gn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ o.jsx(kn, { children: /* @__PURE__ */ o.jsx(
1758
- An,
1756
+ Gn.displayName = qn.displayName;
1757
+ const Hn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(An, { children: /* @__PURE__ */ a.jsx(
1758
+ On,
1759
1759
  {
1760
1760
  ref: r,
1761
1761
  sideOffset: t,
1762
- className: M(
1762
+ className: b(
1763
1763
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1764
1764
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1765
1765
  e
@@ -1767,12 +1767,12 @@ const Gn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
1767
1767
  ...n
1768
1768
  }
1769
1769
  ) }));
1770
- Gn.displayName = An.displayName;
1771
- const Hn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
1772
- Tn,
1770
+ Hn.displayName = On.displayName;
1771
+ const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1772
+ Fn,
1773
1773
  {
1774
1774
  ref: r,
1775
- className: M(
1775
+ className: b(
1776
1776
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1777
1777
  t && "pl-8",
1778
1778
  e
@@ -1780,45 +1780,45 @@ const Hn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1780
1780
  ...n
1781
1781
  }
1782
1782
  ));
1783
- Hn.displayName = Tn.displayName;
1784
- const fs = c.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1785
- Fn,
1783
+ zn.displayName = Fn.displayName;
1784
+ const ms = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1785
+ Ln,
1786
1786
  {
1787
- ref: a,
1788
- className: M(
1787
+ ref: o,
1788
+ className: b(
1789
1789
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1790
1790
  e
1791
1791
  ),
1792
1792
  checked: n,
1793
1793
  ...r,
1794
1794
  children: [
1795
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Kn, { children: /* @__PURE__ */ o.jsx(kr, { className: "h-4 w-4" }) }) }),
1795
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(Tr, { className: "h-4 w-4" }) }) }),
1796
1796
  t
1797
1797
  ]
1798
1798
  }
1799
1799
  ));
1800
- fs.displayName = Fn.displayName;
1801
- const ps = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ o.jsxs(
1802
- Ln,
1800
+ ms.displayName = Ln.displayName;
1801
+ const gs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1802
+ Kn,
1803
1803
  {
1804
1804
  ref: r,
1805
- className: M(
1805
+ className: b(
1806
1806
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1807
1807
  e
1808
1808
  ),
1809
1809
  ...n,
1810
1810
  children: [
1811
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Kn, { children: /* @__PURE__ */ o.jsx(fo, { className: "h-4 w-4 fill-current" }) }) }),
1811
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(pa, { className: "h-4 w-4 fill-current" }) }) }),
1812
1812
  t
1813
1813
  ]
1814
1814
  }
1815
1815
  ));
1816
- ps.displayName = Ln.displayName;
1817
- const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
1818
- On,
1816
+ gs.displayName = Kn.displayName;
1817
+ const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1818
+ Tn,
1819
1819
  {
1820
1820
  ref: r,
1821
- className: M(
1821
+ className: b(
1822
1822
  "px-2 py-1.5 text-sm font-semibold",
1823
1823
  t && "pl-8",
1824
1824
  e
@@ -1826,20 +1826,18 @@ const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1826
1826
  ...n
1827
1827
  }
1828
1828
  ));
1829
- zn.displayName = On.displayName;
1830
- const Vn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
1831
- $n,
1829
+ Vn.displayName = Tn.displayName;
1830
+ const Yn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1831
+ Bn,
1832
1832
  {
1833
1833
  ref: n,
1834
- className: M("-mx-1 my-1 h-px bg-muted", e),
1834
+ className: b("-mx-1 my-1 h-px bg-muted", e),
1835
1835
  ...t
1836
1836
  }
1837
1837
  ));
1838
- Vn.displayName = $n.displayName;
1839
- const ms = () => {
1840
- const e = Ie(), [t, n] = de(!0), r = Ot(() => {
1841
- n(!1);
1842
- }, []);
1838
+ Yn.displayName = Bn.displayName;
1839
+ const vs = () => {
1840
+ const e = Ie(), [t, n] = ie(!1), r = Ot(() => n(!1), []);
1843
1841
  W(() => {
1844
1842
  if (t)
1845
1843
  return;
@@ -1850,33 +1848,34 @@ const ms = () => {
1850
1848
  window.removeEventListener("keydown", s);
1851
1849
  };
1852
1850
  }, [t, n]);
1853
- const a = e.plugins.find(zo);
1854
- return a ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1855
- /* @__PURE__ */ o.jsxs(
1851
+ const o = e.plugins.find(Va);
1852
+ return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1853
+ /* @__PURE__ */ a.jsxs(
1856
1854
  "button",
1857
1855
  {
1858
1856
  type: "button",
1857
+ onClick: () => n(!0),
1859
1858
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72",
1860
1859
  children: [
1861
- /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
1862
- /* @__PURE__ */ o.jsx(go, { size: 14 }),
1860
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
1861
+ /* @__PURE__ */ a.jsx(va, { size: 14 }),
1863
1862
  "Search"
1864
1863
  ] }),
1865
- /* @__PURE__ */ o.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" })
1864
+ /* @__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" })
1866
1865
  ]
1867
1866
  }
1868
1867
  ),
1869
- t && a.onRequestSearch({
1868
+ /* @__PURE__ */ a.jsx(Tt, { fallback: null, children: o.renderSearch({
1870
1869
  isOpen: t,
1871
1870
  onClose: r
1872
- })
1871
+ }) })
1873
1872
  ] }) : null;
1874
- }, gs = () => {
1873
+ }, xs = () => {
1875
1874
  const { topNavigation: e } = Ie();
1876
- return e.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
1877
- Se,
1875
+ return e.length <= 1 ? null : /* @__PURE__ */ a.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
1876
+ je,
1878
1877
  {
1879
- className: ({ isActive: n }) => Ar(
1878
+ className: ({ isActive: n }) => Fr(
1880
1879
  "block py-3.5 font-medium -mb-px border-b-2",
1881
1880
  n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1882
1881
  ),
@@ -1884,46 +1883,47 @@ const ms = () => {
1884
1883
  children: t.label
1885
1884
  }
1886
1885
  ) }, t.label)) }) });
1887
- }, Yn = ({ item: e }) => e.children ? /* @__PURE__ */ o.jsxs(hs, { children: [
1888
- /* @__PURE__ */ o.jsx(qn, { children: e.label }),
1889
- /* @__PURE__ */ o.jsx(ds, { children: /* @__PURE__ */ o.jsx(Un, { children: e.children.map((t, n) => (
1886
+ }, Xn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(ps, { children: [
1887
+ /* @__PURE__ */ a.jsx(Un, { children: e.label }),
1888
+ /* @__PURE__ */ a.jsx(fs, { children: /* @__PURE__ */ a.jsx(Gn, { children: e.children.map((t, n) => (
1890
1889
  // eslint-disable-next-line react/no-array-index-key
1891
- /* @__PURE__ */ o.jsx(Yn, { item: t }, n)
1890
+ /* @__PURE__ */ a.jsx(Xn, { item: t }, n)
1892
1891
  )) }) })
1893
- ] }, e.label) : /* @__PURE__ */ o.jsx(Pe, { to: e.path ?? "", children: /* @__PURE__ */ o.jsx(Hn, { children: e.label }, e.label) }), Xn = Tt(function() {
1894
- const [t, n] = Or(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = Ir(), { pathname: i } = De(), u = Ie(), { page: d, plugins: g } = u, p = g.filter((f) => Go(f)).flatMap((f) => f.getProfileMenuItems(u)).map((f) => /* @__PURE__ */ o.jsx(Yn, { item: f }, f.label)), l = t ? mo : vo;
1895
- return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1896
- /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1897
- /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Pe, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
1898
- (d == null ? void 0 : d.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1899
- /* @__PURE__ */ o.jsx(
1892
+ ] }, e.label) : /* @__PURE__ */ a.jsx(Re, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(zn, { children: e.label }, e.label) }), Wn = Ft(function() {
1893
+ const [t, n] = Lr(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = Or(), { pathname: i } = De(), u = Ie(), { page: l, plugins: g } = u, p = g.filter((h) => Ha(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Xn, { item: h }, h.label)), d = t ? ga : xa;
1894
+ return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1895
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1896
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Re, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1897
+ (l == null ? void 0 : l.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1898
+ /* @__PURE__ */ a.jsx(
1900
1899
  "img",
1901
1900
  {
1902
- src: d.logo.src.light,
1903
- alt: d.logo.alt ?? d.pageTitle,
1904
- style: { width: d.logo.width },
1905
- className: M("h-10", t && "hidden"),
1901
+ src: l.logo.src.light,
1902
+ alt: l.logo.alt ?? l.pageTitle,
1903
+ style: { width: l.logo.width },
1904
+ className: b("h-10", t && "hidden"),
1906
1905
  loading: "lazy"
1907
1906
  }
1908
1907
  ),
1909
- /* @__PURE__ */ o.jsx(
1908
+ /* @__PURE__ */ a.jsx(
1910
1909
  "img",
1911
1910
  {
1912
- src: d.logo.src.dark,
1913
- alt: d.logo.alt ?? d.pageTitle,
1914
- style: { width: d.logo.width },
1915
- className: M("h-10", !t && "hidden"),
1911
+ src: l.logo.src.dark,
1912
+ alt: l.logo.alt ?? l.pageTitle,
1913
+ style: { width: l.logo.width },
1914
+ className: b("h-10", !t && "hidden"),
1916
1915
  loading: "lazy"
1917
1916
  }
1918
1917
  )
1919
1918
  ] }),
1920
- /* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: d == null ? void 0 : d.pageTitle })
1919
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1921
1920
  ] }) }) }),
1922
- /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1923
- /* @__PURE__ */ o.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ o.jsx(ms, {}) }),
1924
- /* @__PURE__ */ o.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1925
- s && !r ? /* @__PURE__ */ o.jsx(Qe, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(
1926
- Pe,
1921
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1922
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(vs, {}) }),
1923
+ /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1924
+ /* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
1925
+ s && !r ? /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ a.jsx(
1926
+ Re,
1927
1927
  {
1928
1928
  to: {
1929
1929
  pathname: "/signin",
@@ -1931,33 +1931,34 @@ const ms = () => {
1931
1931
  },
1932
1932
  children: "Login"
1933
1933
  }
1934
- ) }) : p.length > 0 && /* @__PURE__ */ o.jsxs(us, { children: [
1935
- /* @__PURE__ */ o.jsx(ls, { asChild: !0, children: /* @__PURE__ */ o.jsx(Qe, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
1936
- /* @__PURE__ */ o.jsxs(Gn, { className: "w-56", children: [
1937
- /* @__PURE__ */ o.jsx(zn, { children: "My Account" }),
1938
- /* @__PURE__ */ o.jsx(Vn, {}),
1934
+ ) }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ds, { children: [
1935
+ /* @__PURE__ */ a.jsx(hs, { asChild: !0, children: /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
1936
+ /* @__PURE__ */ a.jsxs(Hn, { className: "w-56", children: [
1937
+ /* @__PURE__ */ a.jsx(Vn, { children: "My Account" }),
1938
+ /* @__PURE__ */ a.jsx(Yn, {}),
1939
1939
  p
1940
1940
  ] })
1941
1941
  ] }),
1942
- /* @__PURE__ */ o.jsx(
1942
+ /* @__PURE__ */ a.jsx(
1943
1943
  "button",
1944
1944
  {
1945
1945
  type: "button",
1946
1946
  "aria-label": t ? "Switch to light mode" : "Switch to dark mode",
1947
1947
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1948
1948
  onClick: n,
1949
- children: /* @__PURE__ */ o.jsx(l, { size: 18 })
1949
+ children: /* @__PURE__ */ a.jsx(d, { size: 18 })
1950
1950
  }
1951
- )
1951
+ ),
1952
+ /* @__PURE__ */ a.jsx(se, { name: "head-navigation-end" })
1952
1953
  ] })
1953
1954
  ] })
1954
1955
  ] }),
1955
- /* @__PURE__ */ o.jsx(gs, {})
1956
+ /* @__PURE__ */ a.jsx(xs, {})
1956
1957
  ] }) });
1957
- }), Wn = {
1958
- Header: Xn
1959
- }, vs = At(Wn), xs = vs.Provider, ys = (e) => {
1960
- const [t, n] = de(!1);
1958
+ }), Jn = {
1959
+ Header: Wn
1960
+ }, ys = At(Jn), ws = ys.Provider, bs = (e) => {
1961
+ const [t, n] = ie(!1);
1961
1962
  W(() => {
1962
1963
  const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
1963
1964
  n(u);
@@ -1965,124 +1966,137 @@ const ms = () => {
1965
1966
  const r = Ot(() => {
1966
1967
  const s = !t;
1967
1968
  document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
1968
- }, [t]), a = [t, r];
1969
- return /* @__PURE__ */ o.jsx(Tr.Provider, { value: a, ...e });
1970
- }, ws = ({
1969
+ }, [t]), o = [t, r];
1970
+ return /* @__PURE__ */ a.jsx(Kr.Provider, { value: o, ...e });
1971
+ }, Ms = ({
1971
1972
  children: e,
1972
1973
  context: t
1973
1974
  }) => {
1974
- const n = pr();
1975
- return ao({
1975
+ const n = gr();
1976
+ return ia({
1976
1977
  queryFn: async () => (await t.initialize({ navigate: n }), !0),
1977
1978
  queryKey: ["zudoku-initialize"]
1978
- }), /* @__PURE__ */ o.jsx(so.Provider, { value: t, children: e });
1979
- }, bs = ({
1979
+ }), /* @__PURE__ */ a.jsx(ca.Provider, { value: t, children: e });
1980
+ }, Cs = ({
1980
1981
  children: e,
1981
1982
  ...t
1982
1983
  }) => {
1983
- var l, f;
1984
+ var d, h;
1984
1985
  const n = Ke(
1985
- () => ({ ...Wn, ...t.overrides }),
1986
+ () => ({ ...Jn, ...t.overrides }),
1986
1987
  [t.overrides]
1987
1988
  ), r = Ke(() => {
1988
1989
  var x;
1989
1990
  return {
1990
- ...(t.plugins ?? []).filter(Xo).flatMap(
1991
- (b) => b.getMdxComponents ? [b.getMdxComponents()] : []
1992
- ).reduce((b, I) => ({ ...b, ...I }), {}),
1993
- ...Fr,
1991
+ ...(t.plugins ?? []).filter(Wa).flatMap(
1992
+ (M) => M.getMdxComponents ? [M.getMdxComponents()] : []
1993
+ ).reduce((M, I) => ({ ...M, ...I }), {}),
1994
+ ...$r,
1994
1995
  ...(x = t.mdx) == null ? void 0 : x.components
1995
1996
  };
1996
- }, [(l = t.mdx) == null ? void 0 : l.components, t.plugins]), { stagger: a } = Ur(qe), [s, i] = de(!1), u = Ke(
1997
- () => s ? { stagger: !0 } : { stagger: a },
1998
- [a, s]
1999
- ), d = mr();
1997
+ }, [(d = t.mdx) == null ? void 0 : d.components, t.plugins]), { stagger: o } = zr(qe), [s, i] = ie(!1), u = Ke(
1998
+ () => s ? { stagger: !0 } : { stagger: o },
1999
+ [o, s]
2000
+ ), l = vr();
2000
2001
  W(() => {
2001
2002
  s || i(!0);
2002
- }, [s, d.location]);
2003
- const [g] = de(() => new Jo(t)), p = (f = t.plugins) == null ? void 0 : f.filter(Yo).map((v, x) => {
2004
- var b;
2005
- return /* @__PURE__ */ o.jsx(Gr, { children: (b = v.getHead) == null ? void 0 : b.call(v) }, x);
2003
+ }, [s, l.location]);
2004
+ const [g] = ie(() => new Za(t)), p = (h = t.plugins) == null ? void 0 : h.filter(Xa).map((v, x) => {
2005
+ var M;
2006
+ return /* @__PURE__ */ a.jsx(Vr, { children: (M = v.getHead) == null ? void 0 : M.call(v) }, x);
2006
2007
  });
2007
- return /* @__PURE__ */ o.jsxs(io, { client: Gt, children: [
2008
- /* @__PURE__ */ o.jsx(Ge, { children: p }),
2009
- /* @__PURE__ */ o.jsx(qe.Provider, { value: u, children: /* @__PURE__ */ o.jsx(ws, { context: g, children: /* @__PURE__ */ o.jsx(ir, { components: r, children: /* @__PURE__ */ o.jsx(ys, { children: /* @__PURE__ */ o.jsx(xs, { value: n, children: /* @__PURE__ */ o.jsx(gr, { slotlets: t.slotlets, children: /* @__PURE__ */ o.jsx(Lr, { children: e ?? /* @__PURE__ */ o.jsx(Pt, {}) }) }) }) }) }) }) })
2008
+ return /* @__PURE__ */ a.jsxs(ua, { client: Ht, children: [
2009
+ /* @__PURE__ */ a.jsx(Ge, { children: p }),
2010
+ /* @__PURE__ */ a.jsx(qe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(Ms, { context: g, children: /* @__PURE__ */ a.jsx(ur, { components: r, children: /* @__PURE__ */ a.jsx(bs, { children: /* @__PURE__ */ a.jsx(ws, { value: n, children: /* @__PURE__ */ a.jsx(yr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Br, { children: e ?? /* @__PURE__ */ a.jsx(jt, {}) }) }) }) }) }) }) })
2010
2011
  ] });
2011
- }, Ms = Tt(bs), Jn = (e) => /* @__PURE__ */ o.jsx(qo, { FallbackComponent: Zo, children: /* @__PURE__ */ o.jsx(Ms, { ...e }) });
2012
- Jn.displayName = "DevPortal";
2013
- const Cs = ({
2012
+ }, Ss = Ft(Cs), Zn = (e) => /* @__PURE__ */ a.jsx(Ua, { FallbackComponent: eo, children: /* @__PURE__ */ a.jsx(Ss, { ...e }) });
2013
+ Zn.displayName = "DevPortal";
2014
+ const Ps = ({
2014
2015
  category: e,
2015
2016
  level: t
2016
2017
  }) => {
2017
- var p;
2018
- const n = Kt(), r = cr(e), a = e.collapsible ?? !0, s = e.collapsed ?? !0, i = !!(!a || !s || r), [u, d] = de(i);
2018
+ var h;
2019
+ const n = $t(), r = lr(e), [o, s] = ie(!1), i = e.collapsible ?? !0, u = e.collapsed ?? !0, l = !!(!i || !u || r), [g, p] = ie(l);
2019
2020
  W(() => {
2020
- r && d(!0);
2021
+ r && p(!0);
2021
2022
  }, [r]);
2022
- const g = a && /* @__PURE__ */ o.jsx(
2023
+ const d = i && /* @__PURE__ */ a.jsx(
2023
2024
  "button",
2024
2025
  {
2025
2026
  type: "button",
2026
- onClick: (l) => {
2027
- l.preventDefault(), d((f) => !f);
2027
+ onClick: (v) => {
2028
+ v.preventDefault(), p((x) => !x), s(!0);
2028
2029
  },
2029
- children: /* @__PURE__ */ o.jsx(
2030
- Bt,
2030
+ children: /* @__PURE__ */ a.jsx(
2031
+ Qt,
2031
2032
  {
2032
2033
  size: 16,
2033
- className: "transition shrink-0 group-data-[state=open]:rotate-90"
2034
+ className: b(
2035
+ o && "transition",
2036
+ "shrink-0 group-data-[state=open]:rotate-90"
2037
+ )
2034
2038
  }
2035
2039
  )
2036
2040
  }
2037
2041
  );
2038
- return /* @__PURE__ */ o.jsxs(
2039
- Yr,
2042
+ return /* @__PURE__ */ a.jsxs(
2043
+ Wr,
2040
2044
  {
2041
- className: M("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
2042
- defaultOpen: i,
2043
- open: u,
2044
- onOpenChange: () => d(!0),
2045
+ className: b("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
2046
+ defaultOpen: l,
2047
+ open: g,
2048
+ onOpenChange: () => p(!0),
2045
2049
  children: [
2046
- /* @__PURE__ */ o.jsx(
2047
- Xr,
2050
+ /* @__PURE__ */ a.jsx(
2051
+ Jr,
2048
2052
  {
2049
- className: M(
2053
+ className: b(
2050
2054
  "group text-start",
2051
- le({ isActive: !1, isTopLevel: t === 0 }),
2052
- a ? "cursor-pointer" : "cursor-default hover:bg-transparent"
2055
+ he({ isActive: !1, isTopLevel: t === 0 }),
2056
+ i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
2053
2057
  ),
2054
2058
  asChild: !0,
2055
- disabled: !a,
2056
- children: ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ o.jsx(Se, { to: Xe(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: l }) => /* @__PURE__ */ o.jsxs(
2059
+ disabled: !i,
2060
+ children: ((h = e.link) == null ? void 0 : h.type) === "doc" ? /* @__PURE__ */ a.jsx(je, { to: Xe(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: v }) => /* @__PURE__ */ a.jsxs(
2057
2061
  "div",
2058
2062
  {
2059
- className: M(
2063
+ className: b(
2060
2064
  "flex items-center gap-2 justify-between w-full",
2061
- l ? "text-primary font-medium" : "text-foreground/80"
2065
+ v ? "text-primary font-medium" : "text-foreground/80"
2062
2066
  ),
2063
2067
  children: [
2064
- /* @__PURE__ */ o.jsx("div", { className: "truncate", children: e.label }),
2065
- g
2068
+ /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
2069
+ d
2066
2070
  ]
2067
2071
  }
2068
- ) }) : /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between w-full", children: [
2069
- /* @__PURE__ */ o.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
2070
- g
2072
+ ) }) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
2073
+ /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
2074
+ d
2071
2075
  ] })
2072
2076
  }
2073
2077
  ),
2074
- /* @__PURE__ */ o.jsx(Wr, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((l) => /* @__PURE__ */ o.jsx(
2075
- er,
2078
+ /* @__PURE__ */ a.jsx(
2079
+ Zr,
2076
2080
  {
2077
- level: t + 1,
2078
- item: l
2079
- },
2080
- l.label
2081
- )) }) })
2081
+ className: b(
2082
+ // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
2083
+ o && "CollapsibleContent",
2084
+ "ms-[calc(var(--padding-nav-item)*1.125)]"
2085
+ ),
2086
+ children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
2087
+ tr,
2088
+ {
2089
+ level: t + 1,
2090
+ item: v
2091
+ },
2092
+ v.label
2093
+ )) })
2094
+ }
2095
+ )
2082
2096
  ]
2083
2097
  }
2084
2098
  );
2085
- }, le = Kr(
2099
+ }, he = Qr(
2086
2100
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
2087
2101
  {
2088
2102
  variants: {
@@ -2099,157 +2113,159 @@ const Cs = ({
2099
2113
  }
2100
2114
  }
2101
2115
  }
2102
- ), Zn = "data-anchor", er = ({
2116
+ ), er = "data-anchor", tr = ({
2103
2117
  item: e,
2104
2118
  level: t = 0
2105
2119
  }) => {
2106
- const n = Kt(), { activeAnchor: r } = ze();
2120
+ const n = $t(), { activeAnchor: r } = ze(), [o] = xr();
2107
2121
  switch (e.type) {
2108
2122
  case "category":
2109
- return /* @__PURE__ */ o.jsx(Cs, { category: e, level: t });
2123
+ return /* @__PURE__ */ a.jsx(Ps, { category: e, level: t });
2110
2124
  case "doc":
2111
- return /* @__PURE__ */ o.jsx(
2112
- Se,
2125
+ return /* @__PURE__ */ a.jsx(
2126
+ je,
2113
2127
  {
2114
- className: ({ isActive: a }) => le({ isActive: a, isTopLevel: t === 0 }),
2128
+ className: ({ isActive: s }) => he({ isActive: s, isTopLevel: t === 0 }),
2115
2129
  to: Xe(n == null ? void 0 : n.id, e.id),
2116
- children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2117
- /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2118
- /* @__PURE__ */ o.jsx($e, { ...e.badge })
2130
+ children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2131
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2132
+ /* @__PURE__ */ a.jsx($e, { ...e.badge })
2119
2133
  ] }) : e.label
2120
2134
  }
2121
2135
  );
2122
2136
  case "link":
2123
- return e.href.startsWith("#") ? /* @__PURE__ */ o.jsx(
2124
- ur,
2137
+ return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
2138
+ dr,
2125
2139
  {
2126
- to: e.href,
2127
- [Zn]: e.href.slice(1),
2128
- className: M(
2140
+ to: { hash: e.href, search: o.toString() },
2141
+ [er]: e.href.slice(1),
2142
+ className: b(
2129
2143
  "flex gap-2.5 justify-between",
2130
2144
  t === 0 && "-mx-[--padding-nav-item]",
2131
- le({
2145
+ he({
2132
2146
  isActive: e.href.slice(1) === r
2133
2147
  })
2134
2148
  ),
2135
- children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2136
- /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2137
- /* @__PURE__ */ o.jsx($e, { ...e.badge })
2138
- ] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
2149
+ children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2150
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2151
+ /* @__PURE__ */ a.jsx($e, { ...e.badge })
2152
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
2139
2153
  }
2140
- ) : e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
2154
+ ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
2141
2155
  "a",
2142
2156
  {
2143
- className: M(
2144
- le({ isTopLevel: t === 0 }),
2157
+ className: b(
2158
+ he({ isTopLevel: t === 0 }),
2145
2159
  "block"
2146
2160
  ),
2147
2161
  href: e.href,
2148
2162
  target: "_blank",
2149
2163
  rel: "noopener noreferrer",
2150
2164
  children: [
2151
- /* @__PURE__ */ o.jsx("span", { className: "whitespace-normal", children: e.label }),
2152
- /* @__PURE__ */ o.jsxs("span", { className: "whitespace-nowrap", children: [
2165
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
2166
+ /* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
2153
2167
  " ",
2154
- /* @__PURE__ */ o.jsx(po, { className: "inline ml-1", size: 12 })
2168
+ /* @__PURE__ */ a.jsx(ma, { className: "inline ml-1", size: 12 })
2155
2169
  ] })
2156
2170
  ]
2157
2171
  }
2158
- ) : /* @__PURE__ */ o.jsx(
2159
- Se,
2172
+ ) : /* @__PURE__ */ a.jsx(
2173
+ je,
2160
2174
  {
2161
- className: M("flex gap-2.5 justify-between", le()),
2175
+ className: b("flex gap-2.5 justify-between", he()),
2162
2176
  to: e.href,
2163
- children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2164
- /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2165
- /* @__PURE__ */ o.jsx($e, { ...e.badge })
2166
- ] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
2177
+ children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2178
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
2179
+ /* @__PURE__ */ a.jsx($e, { ...e.badge })
2180
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
2167
2181
  }
2168
2182
  );
2169
2183
  }
2170
- }, Rs = (e, t = { block: "center" }) => {
2184
+ }, js = (e, t = { block: "center" }) => {
2171
2185
  if (!e) return;
2172
2186
  const n = e.getBoundingClientRect();
2173
2187
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
2174
- }, Ss = () => {
2188
+ }, Rs = () => {
2175
2189
  const e = De(), { setActiveAnchor: t } = ze();
2176
2190
  W(() => {
2177
2191
  if (!e.hash) return;
2178
2192
  const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
2179
- const a = document.getElementById(n), s = document.querySelector(`[${Zn}="${n}"]`);
2180
- return a ? (a.scrollIntoView(), Rs(s), requestIdleCallback(() => t(n)), !0) : !1;
2193
+ const o = document.getElementById(n), s = document.querySelector(`[${er}="${n}"]`);
2194
+ return o ? (o.scrollIntoView(), js(s), requestIdleCallback(() => t(n)), !0) : !1;
2181
2195
  };
2182
2196
  if (!r()) {
2183
- const a = new MutationObserver((s, i) => {
2197
+ const o = new MutationObserver((s, i) => {
2184
2198
  r() && i.disconnect();
2185
2199
  });
2186
- return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
2200
+ return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
2187
2201
  }
2188
2202
  }, [e.hash, t]);
2189
- }, Ps = () => {
2203
+ }, Es = () => {
2190
2204
  const e = De(), t = Ve(e.pathname);
2191
2205
  W(() => {
2192
2206
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
2193
2207
  }, [e.pathname]);
2194
- }, js = Hr(function({ children: t, className: n, pushMainContent: r }, a) {
2195
- return /* @__PURE__ */ o.jsx(
2196
- "nav",
2197
- {
2198
- "data-navigation": String(r),
2199
- className: M(
2200
- "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
2201
- n
2202
- ),
2203
- ref: a,
2204
- children: t
2205
- }
2206
- );
2207
- }), Es = () => {
2208
- const e = Ve(null), t = co();
2209
- return /* @__PURE__ */ o.jsxs(
2210
- js,
2208
+ }, nr = Yr(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
2209
+ "nav",
2210
+ {
2211
+ "data-navigation": String(n),
2212
+ className: b(
2213
+ "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
2214
+ "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
2215
+ "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
2216
+ t
2217
+ ),
2218
+ ref: r,
2219
+ children: e
2220
+ }
2221
+ ));
2222
+ nr.displayName = "SidebarWrapper";
2223
+ const _s = () => {
2224
+ const e = Ve(null), t = la();
2225
+ return /* @__PURE__ */ a.jsxs(
2226
+ nr,
2211
2227
  {
2212
2228
  ref: e,
2213
2229
  pushMainContent: t.data.items.length > 0,
2214
2230
  children: [
2215
- /* @__PURE__ */ o.jsx(je, { name: "zudoku-before-navigation" }),
2216
- t.data.items.map((n) => /* @__PURE__ */ o.jsx(er, { item: n }, n.label)),
2217
- /* @__PURE__ */ o.jsx(je, { name: "zudoku-after-navigation" })
2231
+ /* @__PURE__ */ a.jsx(se, { name: "zudoku-before-navigation" }),
2232
+ t.data.items.map((n) => /* @__PURE__ */ a.jsx(tr, { item: n }, n.label)),
2233
+ /* @__PURE__ */ a.jsx(se, { name: "zudoku-after-navigation" })
2218
2234
  ]
2219
2235
  }
2220
2236
  );
2221
- }, _s = ({ children: e }) => {
2237
+ }, Ns = ({ children: e }) => {
2222
2238
  const t = De(), { setActiveAnchor: n } = ze(), { meta: r } = Ie();
2223
- Ss(), Ps();
2224
- const a = Ve(t.pathname);
2239
+ Rs(), Es();
2240
+ const o = Ve(t.pathname);
2225
2241
  return W(() => {
2226
- t.pathname !== a.current && n(""), a.current = t.pathname;
2227
- }, [t.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2242
+ t.pathname !== o.current && n(""), o.current = t.pathname;
2243
+ }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2228
2244
  !1,
2229
- /* @__PURE__ */ o.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
2230
- (r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
2231
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
2245
+ /* @__PURE__ */ a.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
2246
+ (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
2247
+ (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
2232
2248
  ] }),
2233
- /* @__PURE__ */ o.jsx(Xn, {}),
2234
- /* @__PURE__ */ o.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ o.jsxs(
2235
- zr,
2249
+ /* @__PURE__ */ a.jsx(Wn, {}),
2250
+ /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
2251
+ Tt,
2236
2252
  {
2237
- fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(ho, {}) }),
2253
+ fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(fa, {}) }),
2238
2254
  children: [
2239
- /* @__PURE__ */ o.jsx(Es, {}),
2240
- /* @__PURE__ */ o.jsxs(
2255
+ /* @__PURE__ */ a.jsx(_s, {}),
2256
+ /* @__PURE__ */ a.jsxs(
2241
2257
  "main",
2242
2258
  {
2243
- className: M(
2259
+ className: b(
2244
2260
  "dark:border-white/10 translate-x-0 h-full",
2245
2261
  "lg:overflow-visible",
2246
2262
  "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
2247
2263
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
2248
2264
  ),
2249
2265
  children: [
2250
- /* @__PURE__ */ o.jsx(je, { name: "zudoku-before-content" }),
2251
- e ?? /* @__PURE__ */ o.jsx(Pt, {}),
2252
- /* @__PURE__ */ o.jsx(je, { name: "zudoku-after-content" })
2266
+ /* @__PURE__ */ a.jsx(se, { name: "zudoku-before-content" }),
2267
+ e ?? /* @__PURE__ */ a.jsx(jt, {}),
2268
+ /* @__PURE__ */ a.jsx(se, { name: "zudoku-after-content" })
2253
2269
  ]
2254
2270
  }
2255
2271
  )
@@ -2257,18 +2273,18 @@ const Cs = ({
2257
2273
  }
2258
2274
  ) })
2259
2275
  ] });
2260
- }, Gs = lr, Hs = $r, zs = Jn, Vs = _s, Ys = Pe, Xs = vr, Ws = xo, Js = Oo, Zs = To, ei = Qe, ti = Ge;
2276
+ }, Hs = hr, zs = qr, Vs = Zn, Ys = Ns, Xs = Re, Ws = wr, Js = ya, Zs = Ta, ei = Fa, ti = Qe, ni = Ge;
2261
2277
  export {
2262
- Js as Bootstrap,
2263
- Zs as BootstrapStatic,
2264
- ei as Button,
2265
- Hs as Callout,
2266
- zs as DevPortal,
2267
- ti as Head,
2268
- Vs as Layout,
2269
- Ys as Link,
2270
- Xs as RouterError,
2271
- Ws as ServerError,
2272
- Gs as useMDXComponents
2278
+ Zs as Bootstrap,
2279
+ ei as BootstrapStatic,
2280
+ ti as Button,
2281
+ zs as Callout,
2282
+ Vs as DevPortal,
2283
+ ni as Head,
2284
+ Ys as Layout,
2285
+ Xs as Link,
2286
+ Ws as RouterError,
2287
+ Js as ServerError,
2288
+ Hs as useMDXComponents
2273
2289
  };
2274
2290
  //# sourceMappingURL=zudoku.components.js.map