zudoku 0.39.5 → 0.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/dist/app/entry.client.js +2 -0
  2. package/dist/app/entry.client.js.map +1 -1
  3. package/dist/config/config.d.ts +3 -1
  4. package/dist/config/loader.d.ts +1 -0
  5. package/dist/config/loader.js +1 -1
  6. package/dist/config/loader.js.map +1 -1
  7. package/dist/config/validators/BuildSchema.d.ts +60 -0
  8. package/dist/config/validators/BuildSchema.js +31 -0
  9. package/dist/config/validators/BuildSchema.js.map +1 -0
  10. package/dist/config/validators/common.d.ts +7 -51
  11. package/dist/config/validators/common.js +1 -7
  12. package/dist/config/validators/common.js.map +1 -1
  13. package/dist/config/validators/icon-types.d.ts +1 -1
  14. package/dist/config/validators/validate.d.ts +2 -18
  15. package/dist/index.d.ts +1 -1
  16. package/dist/lib/authentication/providers/clerk.js +2 -2
  17. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  18. package/dist/lib/components/Footer.js +2 -2
  19. package/dist/lib/components/Footer.js.map +1 -1
  20. package/dist/lib/components/Layout.js +2 -1
  21. package/dist/lib/components/Layout.js.map +1 -1
  22. package/dist/lib/components/Search.js +7 -1
  23. package/dist/lib/components/Search.js.map +1 -1
  24. package/dist/lib/components/navigation/Sidebar.js +3 -1
  25. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  26. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  27. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  28. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  29. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
  30. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  31. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
  32. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  33. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
  34. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
  35. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  36. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
  37. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  38. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
  39. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
  40. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  41. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  42. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  43. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  44. package/dist/lib/ui/Callout.js +1 -1
  45. package/dist/lib/ui/Callout.js.map +1 -1
  46. package/dist/lib/ui/Form.d.ts +1 -1
  47. package/dist/lib/util/MdxComponents.d.ts +1 -0
  48. package/dist/lib/util/MdxComponents.js +2 -0
  49. package/dist/lib/util/MdxComponents.js.map +1 -1
  50. package/dist/lib/util/detectOS.d.ts +1 -0
  51. package/dist/lib/util/detectOS.js +11 -0
  52. package/dist/lib/util/detectOS.js.map +1 -0
  53. package/dist/vite/plugin-api.js +33 -18
  54. package/dist/vite/plugin-api.js.map +1 -1
  55. package/dist/vite/plugin-sidebar.js +1 -1
  56. package/dist/vite/plugin-sidebar.js.map +1 -1
  57. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  58. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  59. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  60. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  61. package/dist/zuplo/with-zuplo-processors.js +6 -6
  62. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  63. package/dist/zuplo/with-zuplo.d.ts +1 -1
  64. package/lib/{AuthenticationPlugin-foqdvvkf.js → AuthenticationPlugin-CJOFRBk3.js} +4 -4
  65. package/lib/{AuthenticationPlugin-foqdvvkf.js.map → AuthenticationPlugin-CJOFRBk3.js.map} +1 -1
  66. package/lib/{Button-Fp19CMUr.js → Button-BBNrKpQd.js} +2 -2
  67. package/lib/{Button-Fp19CMUr.js.map → Button-BBNrKpQd.js.map} +1 -1
  68. package/lib/{Callout-B2vsR09t.js → Callout-D3Ja4OPX.js} +14 -13
  69. package/lib/{Callout-B2vsR09t.js.map → Callout-D3Ja4OPX.js.map} +1 -1
  70. package/lib/{CategoryHeading-DpB47wvk.js → CategoryHeading-D06WK_Wo.js} +2 -2
  71. package/lib/{CategoryHeading-DpB47wvk.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  72. package/lib/{Dialog-sbgekbjb.js → Dialog-ByYz4ABw.js} +2 -2
  73. package/lib/{Dialog-sbgekbjb.js.map → Dialog-ByYz4ABw.js.map} +1 -1
  74. package/lib/{Drawer-kDAfOq_2.js → Drawer-CEwbkLDb.js} +2 -2
  75. package/lib/Drawer-CEwbkLDb.js.map +1 -0
  76. package/lib/{Markdown-aF5FdsNi.js → Markdown-C5h6bxbE.js} +4239 -4073
  77. package/lib/Markdown-C5h6bxbE.js.map +1 -0
  78. package/lib/{MdxPage-Vw_dc9Yz.js → MdxPage-B66ht0D_.js} +9 -9
  79. package/lib/{MdxPage-Vw_dc9Yz.js.map → MdxPage-B66ht0D_.js.map} +1 -1
  80. package/lib/{OasProvider-C5paEivQ.js → OasProvider-BKPF0Pbt.js} +6 -6
  81. package/lib/{OasProvider-C5paEivQ.js.map → OasProvider-BKPF0Pbt.js.map} +1 -1
  82. package/lib/{OperationList-Ds9Izgkn.js → OperationList-0bhBU7ME.js} +16 -16
  83. package/lib/{OperationList-Ds9Izgkn.js.map → OperationList-0bhBU7ME.js.map} +1 -1
  84. package/lib/{Pagination-SdlocK96.js → Pagination-Bt1czAiJ.js} +4 -4
  85. package/lib/{Pagination-SdlocK96.js.map → Pagination-Bt1czAiJ.js.map} +1 -1
  86. package/lib/{RouteGuard-CqZPoZYJ.js → RouteGuard-BZ_VsiXc.js} +6 -6
  87. package/lib/{RouteGuard-CqZPoZYJ.js.map → RouteGuard-BZ_VsiXc.js.map} +1 -1
  88. package/lib/{SchemaList-NZbDXAV5.js → SchemaList-CsTIT1pi.js} +10 -10
  89. package/lib/{SchemaList-NZbDXAV5.js.map → SchemaList-CsTIT1pi.js.map} +1 -1
  90. package/lib/{SchemaView-B3fOPR4V.js → SchemaView-DCSWtnYr.js} +5 -5
  91. package/lib/{SchemaView-B3fOPR4V.js.map → SchemaView-DCSWtnYr.js.map} +1 -1
  92. package/lib/{Select-DVFRKf1R.js → Select-Dg5R11Dx.js} +4 -4
  93. package/lib/{Select-DVFRKf1R.js.map → Select-Dg5R11Dx.js.map} +1 -1
  94. package/lib/{SlotletProvider-DXvc0aY6.js → SlotletProvider-VUmTNmLZ.js} +41 -39
  95. package/lib/SlotletProvider-VUmTNmLZ.js.map +1 -0
  96. package/lib/{Spinner-CE68iCm0.js → Spinner-mNLZ6awP.js} +2 -2
  97. package/lib/{Spinner-CE68iCm0.js.map → Spinner-mNLZ6awP.js.map} +1 -1
  98. package/lib/{SyntaxHighlight-BEoSoPEo.js → SyntaxHighlight-CxhyyMkF.js} +6 -6
  99. package/lib/{SyntaxHighlight-BEoSoPEo.js.map → SyntaxHighlight-CxhyyMkF.js.map} +1 -1
  100. package/lib/{Toc-YBsgI72s.js → Toc-BK39DQvI.js} +3 -3
  101. package/lib/{Toc-YBsgI72s.js.map → Toc-BK39DQvI.js.map} +1 -1
  102. package/lib/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +2 -2
  103. package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
  104. package/lib/{chunk-HA7DTUK3-C4gP41vD.js → chunk-KNED5TY2-BUPjb3LQ.js} +314 -313
  105. package/lib/chunk-KNED5TY2-BUPjb3LQ.js.map +1 -0
  106. package/lib/{context-DLCwaMXN.js → context-Lrf2Y9bR.js} +2 -2
  107. package/lib/{context-DLCwaMXN.js.map → context-Lrf2Y9bR.js.map} +1 -1
  108. package/lib/{createServer-mYvGvmc0.js → createServer-DLN7APz_.js} +5381 -5517
  109. package/lib/createServer-DLN7APz_.js.map +1 -0
  110. package/lib/{hook-CqpVYDqN.js → hook-pPrHCB6G.js} +460 -465
  111. package/lib/hook-pPrHCB6G.js.map +1 -0
  112. package/lib/{index-PGJOZ6R-.js → index-Ba_X7EnR.js} +16 -16
  113. package/lib/{index-PGJOZ6R-.js.map → index-Ba_X7EnR.js.map} +1 -1
  114. package/lib/index-CuBIgTKC.js +316 -0
  115. package/lib/index-CuBIgTKC.js.map +1 -0
  116. package/lib/{index-Dl3Yl0yb.js → index-DcHeSvkE.js} +51 -38
  117. package/lib/index-DcHeSvkE.js.map +1 -0
  118. package/lib/index-DwT-v3zK.js.map +1 -1
  119. package/lib/{index-D48iOQvJ.js → index-tpbiZmWp.js} +586 -543
  120. package/lib/index-tpbiZmWp.js.map +1 -0
  121. package/lib/index.esm-D2ZUREQN.js +1216 -0
  122. package/lib/index.esm-D2ZUREQN.js.map +1 -0
  123. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  124. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  125. package/lib/{mutation-8LjrN7uz.js → mutation-Csa9eQDM.js} +70 -67
  126. package/lib/mutation-Csa9eQDM.js.map +1 -0
  127. package/lib/{prism-csharp.min-bQAo2pmx.js → prism-csharp.min-C43x1RY2.js} +2 -2
  128. package/lib/{prism-csharp.min-bQAo2pmx.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
  129. package/lib/{prism-java.min-BpvsOuIa.js → prism-java.min-CQzr40NQ.js} +2 -2
  130. package/lib/{prism-java.min-BpvsOuIa.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
  131. package/lib/{prism-ruby.min-Dx9KO9ds.js → prism-ruby.min-L9OdQ6tU.js} +2 -2
  132. package/lib/{prism-ruby.min-Dx9KO9ds.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
  133. package/lib/{prism-typescript.min-CD7H2IYQ.js → prism-typescript.min-qTySPvCh.js} +2 -2
  134. package/lib/{prism-typescript.min-CD7H2IYQ.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
  135. package/lib/{post-processors → processors}/removeExtensions.js +1 -1
  136. package/lib/processors/removeExtensions.js.map +1 -0
  137. package/lib/{post-processors → processors}/removeParameters.js +1 -1
  138. package/lib/processors/removeParameters.js.map +1 -0
  139. package/lib/{post-processors → processors}/removePaths.js +1 -1
  140. package/lib/processors/removePaths.js.map +1 -0
  141. package/lib/ui/Accordion.js +1 -1
  142. package/lib/ui/ActionButton.js +3 -3
  143. package/lib/ui/Alert.js +1 -1
  144. package/lib/ui/AlertDialog.js +1 -1
  145. package/lib/ui/Badge.js +1 -1
  146. package/lib/ui/Breadcrumb.js +1 -1
  147. package/lib/ui/Button.js +1 -1
  148. package/lib/ui/Callout.js +10 -9
  149. package/lib/ui/Callout.js.map +1 -1
  150. package/lib/ui/Card.js +1 -1
  151. package/lib/ui/Carousel.js +207 -207
  152. package/lib/ui/Carousel.js.map +1 -1
  153. package/lib/ui/Checkbox.js +1 -1
  154. package/lib/ui/Command.js +3 -3
  155. package/lib/ui/Dialog.js +1 -1
  156. package/lib/ui/Drawer.js +2 -2
  157. package/lib/ui/DropdownMenu.js +1 -1
  158. package/lib/ui/Form.js +2 -2
  159. package/lib/ui/HoverCard.js +1 -1
  160. package/lib/ui/Input.js +1 -1
  161. package/lib/ui/Label.js +1 -1
  162. package/lib/ui/Pagination.js +1 -1
  163. package/lib/ui/Popover.js +1 -1
  164. package/lib/ui/Progress.js +1 -1
  165. package/lib/ui/RadioGroup.js +1 -1
  166. package/lib/ui/ScrollArea.js +1 -1
  167. package/lib/ui/Select.js +1 -1
  168. package/lib/ui/Skeleton.js +1 -1
  169. package/lib/ui/Slider.js +1 -1
  170. package/lib/ui/Stepper.js +1 -1
  171. package/lib/ui/Switch.js +1 -1
  172. package/lib/ui/SyntaxHighlight.js +2 -2
  173. package/lib/ui/Tabs.js +1 -1
  174. package/lib/ui/Textarea.js +1 -1
  175. package/lib/ui/Toggle.js +1 -1
  176. package/lib/ui/ToggleGroup.js +1 -1
  177. package/lib/ui/Tooltip.js +1 -1
  178. package/lib/{useExposedProps-B9qXJedG.js → useExposedProps-Dq2yUQIG.js} +2 -2
  179. package/lib/{useExposedProps-B9qXJedG.js.map → useExposedProps-Dq2yUQIG.js.map} +1 -1
  180. package/lib/zudoku.auth-auth0.js +1 -1
  181. package/lib/zudoku.auth-clerk.js +4 -4
  182. package/lib/zudoku.auth-clerk.js.map +1 -1
  183. package/lib/zudoku.auth-openid.js +5 -5
  184. package/lib/zudoku.components.js +7 -7
  185. package/lib/zudoku.hooks.js +1 -1
  186. package/lib/zudoku.icons.js +1 -1
  187. package/lib/zudoku.plugin-api-catalog.js +6 -6
  188. package/lib/zudoku.plugin-api-keys.js +6 -6
  189. package/lib/zudoku.plugin-custom-pages.js +3 -3
  190. package/lib/zudoku.plugin-markdown.js +2 -2
  191. package/lib/zudoku.plugin-openapi.js +4 -4
  192. package/lib/zudoku.plugin-redirect.js +1 -1
  193. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  194. package/lib/zudoku.plugin-search-pagefind.js +7 -7
  195. package/package.json +61 -62
  196. package/src/app/entry.client.tsx +2 -0
  197. package/src/app/main.css +8 -2
  198. package/src/lib/authentication/providers/clerk.tsx +2 -2
  199. package/src/lib/components/Footer.tsx +6 -3
  200. package/src/lib/components/Layout.tsx +8 -1
  201. package/src/lib/components/Search.tsx +14 -3
  202. package/src/lib/components/navigation/Sidebar.tsx +8 -1
  203. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  204. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
  205. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
  206. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
  207. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
  208. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  209. package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
  210. package/src/lib/ui/Callout.tsx +1 -0
  211. package/src/lib/util/MdxComponents.tsx +2 -0
  212. package/src/lib/util/detectOS.ts +9 -0
  213. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  214. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  215. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  216. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  217. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  218. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  219. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  220. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  221. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  222. package/lib/Drawer-kDAfOq_2.js.map +0 -1
  223. package/lib/Markdown-aF5FdsNi.js.map +0 -1
  224. package/lib/SlotletProvider-DXvc0aY6.js.map +0 -1
  225. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  226. package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +0 -1
  227. package/lib/createServer-mYvGvmc0.js.map +0 -1
  228. package/lib/hook-CqpVYDqN.js.map +0 -1
  229. package/lib/index-D48iOQvJ.js.map +0 -1
  230. package/lib/index-Dl3Yl0yb.js.map +0 -1
  231. package/lib/index-gQD2h1wX.js +0 -447
  232. package/lib/index-gQD2h1wX.js.map +0 -1
  233. package/lib/index.esm--gIChbWs.js +0 -1207
  234. package/lib/index.esm--gIChbWs.js.map +0 -1
  235. package/lib/jsx-runtime-CYK1ROHF.js +0 -446
  236. package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
  237. package/lib/mutation-8LjrN7uz.js.map +0 -1
  238. package/lib/post-processors/removeExtensions.js.map +0 -1
  239. package/lib/post-processors/removeParameters.js.map +0 -1
  240. package/lib/post-processors/removePaths.js.map +0 -1
  241. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  242. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
  243. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
  244. /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
  245. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  246. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  247. /package/lib/{post-processors → processors}/traverse.js +0 -0
  248. /package/lib/{post-processors → processors}/traverse.js.map +0 -0
  249. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -1,44 +1,44 @@
1
- var sr = Object.defineProperty;
1
+ var nr = Object.defineProperty;
2
2
  var De = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var nr = (t, e, r) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
- var O = (t, e, r) => nr(t, typeof e != "symbol" ? e + "" : e, r), qe = (t, e, r) => e.has(t) || De("Cannot " + r);
7
- var d = (t, e, r) => (qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), R = (t, e, r) => e.has(t) ? De("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), M = (t, e, r, n) => (qe(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
8
- var ce = (t, e, r, n) => ({
5
+ var sr = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var A = (t, e, r) => sr(t, typeof e != "symbol" ? e + "" : e, r), qe = (t, e, r) => e.has(t) || De("Cannot " + r);
7
+ var d = (t, e, r) => (qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), R = (t, e, r) => e.has(t) ? De("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), M = (t, e, r, s) => (qe(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
8
+ var ce = (t, e, r, s) => ({
9
9
  set _(a) {
10
10
  M(t, e, a, r);
11
11
  },
12
12
  get _() {
13
- return d(t, e, n);
13
+ return d(t, e, s);
14
14
  }
15
15
  });
16
- import { B as ot, a as it, H as Ne, R as ar } from "./RouteGuard-CqZPoZYJ.js";
16
+ import { B as ot, a as it, H as Te, R as ar } from "./RouteGuard-BZ_VsiXc.js";
17
17
  import { z as ct, J as or } from "./index-DwT-v3zK.js";
18
- import { R as ir, S as cr, u as pe, f as ge, g as lr, L as Te, O as lt } from "./chunk-HA7DTUK3-C4gP41vD.js";
19
- import { S as ut, v as dt, Q as ur, n as k, w as $e, x as Fe, y as B, z as dr, A as fr, B as hr, C as mr, D as Ie, E as Qe, F as pr, h as ze, G as Le, H as gr, g as ft, I as ht, e as I, l as ae, J as mt, K as vr, f as ee, u as xr, j as yr, d as br, Z as jr, L as wr, M as Pr } from "./hook-CqpVYDqN.js";
20
- import { E as pt, S as _, a as Sr, R as Cr } from "./SlotletProvider-DXvc0aY6.js";
21
- import { j as s } from "./jsx-runtime-CYK1ROHF.js";
18
+ import { R as ir, S as cr, u as ge, f as pe, g as lr, L as Me, O as lt } from "./chunk-KNED5TY2-BUPjb3LQ.js";
19
+ import { S as ut, v as dt, Q as ur, n as k, w as $e, x as Ie, y as B, z as dr, A as fr, B as hr, C as mr, D as Fe, E as Qe, F as gr, h as ze, G as Le, H as pr, g as ft, I as ht, e as F, l as ae, J as mt, K as vr, f as ee, u as xr, j as yr, d as br, Z as jr, L as wr, M as Pr } from "./hook-pPrHCB6G.js";
20
+ import { E as gt, S as _, a as Sr, R as Cr } from "./SlotletProvider-VUmTNmLZ.js";
21
+ import { j as n } from "./jsx-runtime-C5mzlN2N.js";
22
22
  import { Button as Er } from "./ui/Button.js";
23
23
  import { Callout as Nr } from "./ui/Callout.js";
24
- import { M as Tr } from "./mutation-8LjrN7uz.js";
24
+ import { M as Tr } from "./mutation-Csa9eQDM.js";
25
25
  import * as K from "react";
26
- import he, { createContext as Me, StrictMode as gt, useRef as G, useEffect as Q, useState as J, useCallback as W, Suspense as Oe, memo as vt, Component as Mr, createElement as Be, useMemo as ye, useContext as Or } from "react";
26
+ import he, { createContext as Oe, StrictMode as pt, useRef as G, useEffect as Q, useState as J, useCallback as W, Suspense as Ae, memo as vt, Component as Mr, createElement as Be, useMemo as be, useContext as Or } from "react";
27
27
  import * as Ar from "react-dom";
28
- import { C as Ae } from "./ClientOnly-E7hGysn1.js";
29
- import { A as Rr, s as kr, a as He, b as _r, H as Dr, P as qr, c as $r, V as Fr, M as Ir } from "./Markdown-aF5FdsNi.js";
28
+ import { C as ve } from "./ClientOnly-E7hGysn1.js";
29
+ import { c as O } from "./cn-qaFjX9_3.js";
30
+ import { A as Rr, s as kr, a as He, b as _r, H as Dr, P as qr, c as $r, V as Ir, M as Fr } from "./Markdown-C5h6bxbE.js";
30
31
  import { ExternalLink as Qr, CircleXIcon as zr, ChevronRightIcon as Lr, SearchIcon as Br, SunIcon as Hr, MoonIcon as Kr, MenuIcon as Ur, PanelLeftIcon as Yr } from "lucide-react";
31
- import { c as A } from "./cn-qaFjX9_3.js";
32
- import { S as xt } from "./Spinner-CE68iCm0.js";
33
- import { C as Zr } from "./CategoryHeading-DpB47wvk.js";
34
- import { isSearchPlugin as Vr, isProfileMenuPlugin as Wr, isNavigationPlugin as Gr, isEventConsumerPlugin as Xr, needsInitialization as Jr, isApiIdentityPlugin as es, isMdxProviderPlugin as ts, hasHead as rs } from "./zudoku.plugins.js";
35
- import { o as ss } from "./objectEntries-yMIkr2mI.js";
36
- import { B as Se } from "./Button-Fp19CMUr.js";
37
- import { DropdownMenu as ns, DropdownMenuTrigger as as, DropdownMenuContent as os, DropdownMenuLabel as is, DropdownMenuSeparator as be, DropdownMenuSub as cs, DropdownMenuSubTrigger as ls, DropdownMenuPortal as us, DropdownMenuSubContent as ds, DropdownMenuItem as fs } from "./ui/DropdownMenu.js";
32
+ import { S as xt } from "./Spinner-mNLZ6awP.js";
33
+ import { C as Zr } from "./CategoryHeading-D06WK_Wo.js";
34
+ import { isSearchPlugin as Vr, isProfileMenuPlugin as Wr, isNavigationPlugin as Gr, isEventConsumerPlugin as Xr, needsInitialization as Jr, isApiIdentityPlugin as en, isMdxProviderPlugin as tn, hasHead as rn } from "./zudoku.plugins.js";
35
+ import { o as nn } from "./objectEntries-yMIkr2mI.js";
36
+ import { B as Ce } from "./Button-BBNrKpQd.js";
37
+ import { DropdownMenu as sn, DropdownMenuTrigger as an, DropdownMenuContent as on, DropdownMenuLabel as cn, DropdownMenuSeparator as je, DropdownMenuSub as ln, DropdownMenuSubTrigger as un, DropdownMenuPortal as dn, DropdownMenuSubContent as fn, DropdownMenuItem as hn } from "./ui/DropdownMenu.js";
38
38
  import { VisuallyHidden as yt } from "@radix-ui/react-visually-hidden";
39
- import { D as hs, a as ms, b as bt, c as jt, d as z } from "./Drawer-kDAfOq_2.js";
40
- import { a as ps } from "./index-CPNSgwSb.js";
41
- const Ce = {}, wt = he.createContext(Ce);
39
+ import { D as mn, a as gn, b as bt, c as jt, d as z } from "./Drawer-CEwbkLDb.js";
40
+ import { a as pn } from "./index-CPNSgwSb.js";
41
+ const Ee = {}, wt = he.createContext(Ee);
42
42
  function Pt(t) {
43
43
  const e = he.useContext(wt);
44
44
  return he.useMemo(
@@ -48,21 +48,21 @@ function Pt(t) {
48
48
  [e, t]
49
49
  );
50
50
  }
51
- function gs(t) {
51
+ function vn(t) {
52
52
  let e;
53
- return t.disableParentContext ? e = typeof t.components == "function" ? t.components(Ce) : t.components || Ce : e = Pt(t.components), he.createElement(
53
+ return t.disableParentContext ? e = typeof t.components == "function" ? t.components(Ee) : t.components || Ee : e = Pt(t.components), he.createElement(
54
54
  wt.Provider,
55
55
  { value: e },
56
56
  t.children
57
57
  );
58
58
  }
59
- var F, st, vs = (st = class extends ut {
59
+ var I, nt, xn = (nt = class extends ut {
60
60
  constructor(e = {}) {
61
61
  super();
62
- R(this, F);
63
- this.config = e, M(this, F, /* @__PURE__ */ new Map());
62
+ R(this, I);
63
+ this.config = e, M(this, I, /* @__PURE__ */ new Map());
64
64
  }
65
- build(e, r, n) {
65
+ build(e, r, s) {
66
66
  const a = r.queryKey, i = r.queryHash ?? dt(a, r);
67
67
  let o = this.get(i);
68
68
  return o || (o = new ur({
@@ -70,19 +70,19 @@ var F, st, vs = (st = class extends ut {
70
70
  queryKey: a,
71
71
  queryHash: i,
72
72
  options: e.defaultQueryOptions(r),
73
- state: n,
73
+ state: s,
74
74
  defaultOptions: e.getQueryDefaults(a)
75
75
  }), this.add(o)), o;
76
76
  }
77
77
  add(e) {
78
- d(this, F).has(e.queryHash) || (d(this, F).set(e.queryHash, e), this.notify({
78
+ d(this, I).has(e.queryHash) || (d(this, I).set(e.queryHash, e), this.notify({
79
79
  type: "added",
80
80
  query: e
81
81
  }));
82
82
  }
83
83
  remove(e) {
84
- const r = d(this, F).get(e.queryHash);
85
- r && (e.destroy(), r === e && d(this, F).delete(e.queryHash), this.notify({ type: "removed", query: e }));
84
+ const r = d(this, I).get(e.queryHash);
85
+ r && (e.destroy(), r === e && d(this, I).delete(e.queryHash), this.notify({ type: "removed", query: e }));
86
86
  }
87
87
  clear() {
88
88
  k.batch(() => {
@@ -92,20 +92,20 @@ var F, st, vs = (st = class extends ut {
92
92
  });
93
93
  }
94
94
  get(e) {
95
- return d(this, F).get(e);
95
+ return d(this, I).get(e);
96
96
  }
97
97
  getAll() {
98
- return [...d(this, F).values()];
98
+ return [...d(this, I).values()];
99
99
  }
100
100
  find(e) {
101
101
  const r = { exact: !0, ...e };
102
102
  return this.getAll().find(
103
- (n) => $e(r, n)
103
+ (s) => $e(r, s)
104
104
  );
105
105
  }
106
106
  findAll(e = {}) {
107
107
  const r = this.getAll();
108
- return Object.keys(e).length > 0 ? r.filter((n) => $e(e, n)) : r;
108
+ return Object.keys(e).length > 0 ? r.filter((s) => $e(e, s)) : r;
109
109
  }
110
110
  notify(e) {
111
111
  k.batch(() => {
@@ -128,7 +128,7 @@ var F, st, vs = (st = class extends ut {
128
128
  });
129
129
  });
130
130
  }
131
- }, F = new WeakMap(), st), H, $, oe, nt, xs = (nt = class extends ut {
131
+ }, I = new WeakMap(), nt), H, $, oe, st, yn = (st = class extends ut {
132
132
  constructor(e = {}) {
133
133
  super();
134
134
  R(this, H);
@@ -136,12 +136,12 @@ var F, st, vs = (st = class extends ut {
136
136
  R(this, oe);
137
137
  this.config = e, M(this, H, /* @__PURE__ */ new Set()), M(this, $, /* @__PURE__ */ new Map()), M(this, oe, 0);
138
138
  }
139
- build(e, r, n) {
139
+ build(e, r, s) {
140
140
  const a = new Tr({
141
141
  mutationCache: this,
142
142
  mutationId: ++ce(this, oe)._,
143
143
  options: e.defaultMutationOptions(r),
144
- state: n
144
+ state: s
145
145
  });
146
146
  return this.add(a), a;
147
147
  }
@@ -149,8 +149,8 @@ var F, st, vs = (st = class extends ut {
149
149
  d(this, H).add(e);
150
150
  const r = le(e);
151
151
  if (typeof r == "string") {
152
- const n = d(this, $).get(r);
153
- n ? n.push(e) : d(this, $).set(r, [e]);
152
+ const s = d(this, $).get(r);
153
+ s ? s.push(e) : d(this, $).set(r, [e]);
154
154
  }
155
155
  this.notify({ type: "added", mutation: e });
156
156
  }
@@ -158,12 +158,12 @@ var F, st, vs = (st = class extends ut {
158
158
  if (d(this, H).delete(e)) {
159
159
  const r = le(e);
160
160
  if (typeof r == "string") {
161
- const n = d(this, $).get(r);
162
- if (n)
163
- if (n.length > 1) {
164
- const a = n.indexOf(e);
165
- a !== -1 && n.splice(a, 1);
166
- } else n[0] === e && d(this, $).delete(r);
161
+ const s = d(this, $).get(r);
162
+ if (s)
163
+ if (s.length > 1) {
164
+ const a = s.indexOf(e);
165
+ a !== -1 && s.splice(a, 1);
166
+ } else s[0] === e && d(this, $).delete(r);
167
167
  }
168
168
  }
169
169
  this.notify({ type: "removed", mutation: e });
@@ -171,7 +171,7 @@ var F, st, vs = (st = class extends ut {
171
171
  canRun(e) {
172
172
  const r = le(e);
173
173
  if (typeof r == "string") {
174
- const n = d(this, $).get(r), a = n == null ? void 0 : n.find(
174
+ const s = d(this, $).get(r), a = s == null ? void 0 : s.find(
175
175
  (i) => i.state.status === "pending"
176
176
  );
177
177
  return !a || a === e;
@@ -179,10 +179,10 @@ var F, st, vs = (st = class extends ut {
179
179
  return !0;
180
180
  }
181
181
  runNext(e) {
182
- var n;
182
+ var s;
183
183
  const r = le(e);
184
184
  if (typeof r == "string") {
185
- const a = (n = d(this, $).get(r)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
185
+ const a = (s = d(this, $).get(r)) == null ? void 0 : s.find((i) => i !== e && i.state.isPaused);
186
186
  return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
187
187
  } else
188
188
  return Promise.resolve();
@@ -200,11 +200,11 @@ var F, st, vs = (st = class extends ut {
200
200
  find(e) {
201
201
  const r = { exact: !0, ...e };
202
202
  return this.getAll().find(
203
- (n) => Fe(r, n)
203
+ (s) => Ie(r, s)
204
204
  );
205
205
  }
206
206
  findAll(e = {}) {
207
- return this.getAll().filter((r) => Fe(e, r));
207
+ return this.getAll().filter((r) => Ie(e, r));
208
208
  }
209
209
  notify(e) {
210
210
  k.batch(() => {
@@ -221,7 +221,7 @@ var F, st, vs = (st = class extends ut {
221
221
  )
222
222
  );
223
223
  }
224
- }, H = new WeakMap(), $ = new WeakMap(), oe = new WeakMap(), nt);
224
+ }, H = new WeakMap(), $ = new WeakMap(), oe = new WeakMap(), st);
225
225
  function le(t) {
226
226
  var e;
227
227
  return (e = t.options.scope) == null ? void 0 : e.id;
@@ -229,20 +229,20 @@ function le(t) {
229
229
  function Ke(t) {
230
230
  return {
231
231
  onFetch: (e, r) => {
232
- var b, x, g, y, m;
233
- const n = e.options, a = (g = (x = (b = e.fetchOptions) == null ? void 0 : b.meta) == null ? void 0 : x.fetchMore) == null ? void 0 : g.direction, i = ((y = e.state.data) == null ? void 0 : y.pages) || [], o = ((m = e.state.data) == null ? void 0 : m.pageParams) || [];
232
+ var b, x, p, y, m;
233
+ const s = e.options, a = (p = (x = (b = e.fetchOptions) == null ? void 0 : b.meta) == null ? void 0 : x.fetchMore) == null ? void 0 : p.direction, i = ((y = e.state.data) == null ? void 0 : y.pages) || [], o = ((m = e.state.data) == null ? void 0 : m.pageParams) || [];
234
234
  let f = { pages: [], pageParams: [] }, h = 0;
235
235
  const l = async () => {
236
- let p = !1;
236
+ let g = !1;
237
237
  const C = (v) => {
238
238
  Object.defineProperty(v, "signal", {
239
239
  enumerable: !0,
240
- get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
241
- p = !0;
240
+ get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
241
+ g = !0;
242
242
  }), e.signal)
243
243
  });
244
244
  }, N = dr(e.options, e.fetchOptions), T = async (v, j, c) => {
245
- if (p)
245
+ if (g)
246
246
  return Promise.reject();
247
247
  if (j == null && v.pages.length)
248
248
  return Promise.resolve(v);
@@ -263,15 +263,15 @@ function Ke(t) {
263
263
  };
264
264
  };
265
265
  if (a && i.length) {
266
- const v = a === "backward", j = v ? ys : Ue, c = {
266
+ const v = a === "backward", j = v ? bn : Ue, c = {
267
267
  pages: i,
268
268
  pageParams: o
269
- }, S = j(n, c);
269
+ }, S = j(s, c);
270
270
  f = await T(c, S, v);
271
271
  } else {
272
272
  const v = t ?? i.length;
273
273
  do {
274
- const j = h === 0 ? o[0] ?? n.initialPageParam : Ue(n, f);
274
+ const j = h === 0 ? o[0] ?? s.initialPageParam : Ue(s, f);
275
275
  if (h > 0 && j == null)
276
276
  break;
277
277
  f = await T(f, j), h++;
@@ -280,9 +280,9 @@ function Ke(t) {
280
280
  return f;
281
281
  };
282
282
  e.options.persister ? e.fetchFn = () => {
283
- var p, C;
284
- return (C = (p = e.options).persister) == null ? void 0 : C.call(
285
- p,
283
+ var g, C;
284
+ return (C = (g = e.options).persister) == null ? void 0 : C.call(
285
+ g,
286
286
  l,
287
287
  {
288
288
  client: e.client,
@@ -297,19 +297,19 @@ function Ke(t) {
297
297
  };
298
298
  }
299
299
  function Ue(t, { pages: e, pageParams: r }) {
300
- const n = e.length - 1;
300
+ const s = e.length - 1;
301
301
  return e.length > 0 ? t.getNextPageParam(
302
- e[n],
302
+ e[s],
303
303
  e,
304
- r[n],
304
+ r[s],
305
305
  r
306
306
  ) : void 0;
307
307
  }
308
- function ys(t, { pages: e, pageParams: r }) {
309
- var n;
310
- return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, r[0], r) : void 0;
308
+ function bn(t, { pages: e, pageParams: r }) {
309
+ var s;
310
+ return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, r[0], r) : void 0;
311
311
  }
312
- var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
312
+ var E, Y, Z, te, re, V, ne, se, at, jn = (at = class {
313
313
  constructor(t = {}) {
314
314
  R(this, E);
315
315
  R(this, Y);
@@ -317,20 +317,20 @@ var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
317
317
  R(this, te);
318
318
  R(this, re);
319
319
  R(this, V);
320
- R(this, se);
321
320
  R(this, ne);
322
- M(this, E, t.queryCache || new vs()), M(this, Y, t.mutationCache || new xs()), M(this, Z, t.defaultOptions || {}), M(this, te, /* @__PURE__ */ new Map()), M(this, re, /* @__PURE__ */ new Map()), M(this, V, 0);
321
+ R(this, se);
322
+ M(this, E, t.queryCache || new xn()), M(this, Y, t.mutationCache || new yn()), M(this, Z, t.defaultOptions || {}), M(this, te, /* @__PURE__ */ new Map()), M(this, re, /* @__PURE__ */ new Map()), M(this, V, 0);
323
323
  }
324
324
  mount() {
325
- ce(this, V)._++, d(this, V) === 1 && (M(this, se, mr.subscribe(async (t) => {
325
+ ce(this, V)._++, d(this, V) === 1 && (M(this, ne, mr.subscribe(async (t) => {
326
326
  t && (await this.resumePausedMutations(), d(this, E).onFocus());
327
- })), M(this, ne, Ie.subscribe(async (t) => {
327
+ })), M(this, se, Fe.subscribe(async (t) => {
328
328
  t && (await this.resumePausedMutations(), d(this, E).onOnline());
329
329
  })));
330
330
  }
331
331
  unmount() {
332
332
  var t, e;
333
- ce(this, V)._--, d(this, V) === 0 && ((t = d(this, se)) == null || t.call(this), M(this, se, void 0), (e = d(this, ne)) == null || e.call(this), M(this, ne, void 0));
333
+ ce(this, V)._--, d(this, V) === 0 && ((t = d(this, ne)) == null || t.call(this), M(this, ne, void 0), (e = d(this, se)) == null || e.call(this), M(this, se, void 0));
334
334
  }
335
335
  isFetching(t) {
336
336
  return d(this, E).findAll({ ...t, fetchStatus: "fetching" }).length;
@@ -338,33 +338,40 @@ var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
338
338
  isMutating(t) {
339
339
  return d(this, Y).findAll({ ...t, status: "pending" }).length;
340
340
  }
341
+ /**
342
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
343
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
344
+ *
345
+ * Hint: Do not use this function inside a component, because it won't receive updates.
346
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
347
+ */
341
348
  getQueryData(t) {
342
349
  var r;
343
350
  const e = this.defaultQueryOptions({ queryKey: t });
344
351
  return (r = d(this, E).get(e.queryHash)) == null ? void 0 : r.state.data;
345
352
  }
346
353
  ensureQueryData(t) {
347
- const e = this.defaultQueryOptions(t), r = d(this, E).build(this, e), n = r.state.data;
348
- return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(Qe(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(n));
354
+ const e = this.defaultQueryOptions(t), r = d(this, E).build(this, e), s = r.state.data;
355
+ return s === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(Qe(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(s));
349
356
  }
350
357
  getQueriesData(t) {
351
358
  return d(this, E).findAll(t).map(({ queryKey: e, state: r }) => {
352
- const n = r.data;
353
- return [e, n];
359
+ const s = r.data;
360
+ return [e, s];
354
361
  });
355
362
  }
356
363
  setQueryData(t, e, r) {
357
- const n = this.defaultQueryOptions({ queryKey: t }), a = d(this, E).get(
358
- n.queryHash
359
- ), i = a == null ? void 0 : a.state.data, o = pr(e, i);
364
+ const s = this.defaultQueryOptions({ queryKey: t }), a = d(this, E).get(
365
+ s.queryHash
366
+ ), i = a == null ? void 0 : a.state.data, o = gr(e, i);
360
367
  if (o !== void 0)
361
- return d(this, E).build(this, n).setData(o, { ...r, manual: !0 });
368
+ return d(this, E).build(this, s).setData(o, { ...r, manual: !0 });
362
369
  }
363
370
  setQueriesData(t, e, r) {
364
371
  return k.batch(
365
- () => d(this, E).findAll(t).map(({ queryKey: n }) => [
366
- n,
367
- this.setQueryData(n, e, r)
372
+ () => d(this, E).findAll(t).map(({ queryKey: s }) => [
373
+ s,
374
+ this.setQueryData(s, e, r)
368
375
  ])
369
376
  );
370
377
  }
@@ -384,44 +391,45 @@ var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
384
391
  });
385
392
  }
386
393
  resetQueries(t, e) {
387
- const r = d(this, E), n = {
388
- type: "active",
389
- ...t
390
- };
391
- return k.batch(() => (r.findAll(t).forEach((a) => {
392
- a.reset();
393
- }), this.refetchQueries(n, e)));
394
+ const r = d(this, E);
395
+ return k.batch(() => (r.findAll(t).forEach((s) => {
396
+ s.reset();
397
+ }), this.refetchQueries(
398
+ {
399
+ type: "active",
400
+ ...t
401
+ },
402
+ e
403
+ )));
394
404
  }
395
405
  cancelQueries(t, e = {}) {
396
- const r = { revert: !0, ...e }, n = k.batch(
406
+ const r = { revert: !0, ...e }, s = k.batch(
397
407
  () => d(this, E).findAll(t).map((a) => a.cancel(r))
398
408
  );
399
- return Promise.all(n).then(B).catch(B);
409
+ return Promise.all(s).then(B).catch(B);
400
410
  }
401
411
  invalidateQueries(t, e = {}) {
402
- return k.batch(() => {
403
- if (d(this, E).findAll(t).forEach((n) => {
404
- n.invalidate();
405
- }), (t == null ? void 0 : t.refetchType) === "none")
406
- return Promise.resolve();
407
- const r = {
412
+ return k.batch(() => (d(this, E).findAll(t).forEach((r) => {
413
+ r.invalidate();
414
+ }), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
415
+ {
408
416
  ...t,
409
417
  type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
410
- };
411
- return this.refetchQueries(r, e);
412
- });
418
+ },
419
+ e
420
+ )));
413
421
  }
414
422
  refetchQueries(t, e = {}) {
415
423
  const r = {
416
424
  ...e,
417
425
  cancelRefetch: e.cancelRefetch ?? !0
418
- }, n = k.batch(
426
+ }, s = k.batch(
419
427
  () => d(this, E).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
420
428
  let i = a.fetch(void 0, r);
421
429
  return r.throwOnError || (i = i.catch(B)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
422
430
  })
423
431
  );
424
- return Promise.all(n).then(B);
432
+ return Promise.all(s).then(B);
425
433
  }
426
434
  fetchQuery(t) {
427
435
  const e = this.defaultQueryOptions(t);
@@ -444,7 +452,7 @@ var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
444
452
  return t.behavior = Ke(t.pages), this.ensureQueryData(t);
445
453
  }
446
454
  resumePausedMutations() {
447
- return Ie.isOnline() ? d(this, Y).resumePausedMutations() : Promise.resolve();
455
+ return Fe.isOnline() ? d(this, Y).resumePausedMutations() : Promise.resolve();
448
456
  }
449
457
  getQueryCache() {
450
458
  return d(this, E);
@@ -466,8 +474,8 @@ var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
466
474
  }
467
475
  getQueryDefaults(t) {
468
476
  const e = [...d(this, te).values()], r = {};
469
- return e.forEach((n) => {
470
- Le(t, n.queryKey) && Object.assign(r, n.defaultOptions);
477
+ return e.forEach((s) => {
478
+ Le(t, s.queryKey) && Object.assign(r, s.defaultOptions);
471
479
  }), r;
472
480
  }
473
481
  setMutationDefaults(t, e) {
@@ -477,10 +485,9 @@ var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
477
485
  });
478
486
  }
479
487
  getMutationDefaults(t) {
480
- const e = [...d(this, re).values()];
481
- let r = {};
482
- return e.forEach((n) => {
483
- Le(t, n.mutationKey) && (r = { ...r, ...n.defaultOptions });
488
+ const e = [...d(this, re).values()], r = {};
489
+ return e.forEach((s) => {
490
+ Le(t, s.mutationKey) && Object.assign(r, s.defaultOptions);
484
491
  }), r;
485
492
  }
486
493
  defaultQueryOptions(t) {
@@ -495,7 +502,7 @@ var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
495
502
  return e.queryHash || (e.queryHash = dt(
496
503
  e.queryKey,
497
504
  e
498
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === gr && (e.enabled = !1), e;
505
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === pr && (e.enabled = !1), e;
499
506
  }
500
507
  defaultMutationOptions(t) {
501
508
  return t != null && t._defaulted ? t : {
@@ -508,46 +515,46 @@ var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
508
515
  clear() {
509
516
  d(this, E).clear(), d(this, Y).clear();
510
517
  }
511
- }, E = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), V = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), at);
512
- function js(t) {
518
+ }, E = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), V = new WeakMap(), ne = new WeakMap(), se = new WeakMap(), at);
519
+ function wn(t) {
513
520
  return t;
514
521
  }
515
522
  function Ye(t, e, r) {
516
523
  var h, l;
517
524
  if (typeof e != "object" || e === null)
518
525
  return;
519
- const n = t.getMutationCache(), a = t.getQueryCache(), i = ((h = r == null ? void 0 : r.defaultOptions) == null ? void 0 : h.deserializeData) ?? ((l = t.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? js, o = e.mutations || [], f = e.queries || [];
526
+ const s = t.getMutationCache(), a = t.getQueryCache(), i = ((h = r == null ? void 0 : r.defaultOptions) == null ? void 0 : h.deserializeData) ?? ((l = t.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? wn, o = e.mutations || [], f = e.queries || [];
520
527
  o.forEach(({ state: b, ...x }) => {
521
- var g, y;
522
- n.build(
528
+ var p, y;
529
+ s.build(
523
530
  t,
524
531
  {
525
- ...(g = t.getDefaultOptions().hydrate) == null ? void 0 : g.mutations,
532
+ ...(p = t.getDefaultOptions().hydrate) == null ? void 0 : p.mutations,
526
533
  ...(y = r == null ? void 0 : r.defaultOptions) == null ? void 0 : y.mutations,
527
534
  ...x
528
535
  },
529
536
  b
530
537
  );
531
- }), f.forEach(({ queryKey: b, state: x, queryHash: g, meta: y, promise: m }) => {
538
+ }), f.forEach(({ queryKey: b, state: x, queryHash: p, meta: y, promise: m }) => {
532
539
  var N, T;
533
- let p = a.get(g);
540
+ let g = a.get(p);
534
541
  const C = x.data === void 0 ? x.data : i(x.data);
535
- if (p) {
536
- if (p.state.dataUpdatedAt < x.dataUpdatedAt) {
542
+ if (g) {
543
+ if (g.state.dataUpdatedAt < x.dataUpdatedAt) {
537
544
  const { fetchStatus: v, ...j } = x;
538
- p.setState({
545
+ g.setState({
539
546
  ...j,
540
547
  data: C
541
548
  });
542
549
  }
543
550
  } else
544
- p = a.build(
551
+ g = a.build(
545
552
  t,
546
553
  {
547
554
  ...(N = t.getDefaultOptions().hydrate) == null ? void 0 : N.queries,
548
555
  ...(T = r == null ? void 0 : r.defaultOptions) == null ? void 0 : T.queries,
549
556
  queryKey: b,
550
- queryHash: g,
557
+ queryHash: p,
551
558
  meta: y
552
559
  },
553
560
  // Reset fetch status to idle to avoid
@@ -560,47 +567,47 @@ function Ye(t, e, r) {
560
567
  );
561
568
  if (m) {
562
569
  const v = Promise.resolve(m).then(i);
563
- p.fetch(void 0, { initialPromise: v });
570
+ g.fetch(void 0, { initialPromise: v });
564
571
  }
565
572
  });
566
573
  }
567
- var Ze = (t, e) => typeof t == "object" && t !== null && e in t, ws = ({
574
+ var Ze = (t, e) => typeof t == "object" && t !== null && e in t, Pn = ({
568
575
  children: t,
569
576
  options: e = {},
570
577
  state: r,
571
- queryClient: n
578
+ queryClient: s
572
579
  }) => {
573
- const a = ft(n), [i, o] = K.useState(), f = K.useRef(e);
580
+ const a = ft(s), [i, o] = K.useState(), f = K.useRef(e);
574
581
  return f.current = e, K.useMemo(() => {
575
582
  if (r) {
576
583
  if (typeof r != "object")
577
584
  return;
578
585
  const h = a.getQueryCache(), l = r.queries || [], b = [], x = [];
579
- for (const g of l) {
580
- const y = h.get(g.queryHash);
586
+ for (const p of l) {
587
+ const y = h.get(p.queryHash);
581
588
  if (!y)
582
- b.push(g);
589
+ b.push(p);
583
590
  else {
584
- const m = g.state.dataUpdatedAt > y.state.dataUpdatedAt || // RSC special serialized then-able chunks
585
- Ze(g.promise, "status") && Ze(y.promise, "status") && g.promise.status !== y.promise.status, p = i == null ? void 0 : i.find(
586
- (C) => C.queryHash === g.queryHash
591
+ const m = p.state.dataUpdatedAt > y.state.dataUpdatedAt || // RSC special serialized then-able chunks
592
+ Ze(p.promise, "status") && Ze(y.promise, "status") && p.promise.status !== y.promise.status, g = i == null ? void 0 : i.find(
593
+ (C) => C.queryHash === p.queryHash
587
594
  );
588
- m && (!p || g.state.dataUpdatedAt > p.state.dataUpdatedAt) && x.push(g);
595
+ m && (!g || p.state.dataUpdatedAt > g.state.dataUpdatedAt) && x.push(p);
589
596
  }
590
597
  }
591
598
  b.length > 0 && Ye(a, { queries: b }, f.current), x.length > 0 && o(
592
- (g) => g ? [...g, ...x] : x
599
+ (p) => p ? [...p, ...x] : x
593
600
  );
594
601
  }
595
602
  }, [a, i, r]), K.useEffect(() => {
596
603
  i && (Ye(a, { queries: i }, f.current), o(void 0));
597
604
  }, [a, i]), t;
598
605
  };
599
- function Ps({ error: t }) {
600
- return /* @__PURE__ */ s.jsx(pt, { error: t });
606
+ function Sn({ error: t }) {
607
+ return /* @__PURE__ */ n.jsx(gt, { error: t });
601
608
  }
602
609
  /**
603
- * react-router v7.2.0
610
+ * react-router v7.5.0
604
611
  *
605
612
  * Copyright (c) Remix Software Inc.
606
613
  *
@@ -609,104 +616,111 @@ function Ps({ error: t }) {
609
616
  *
610
617
  * @license MIT
611
618
  */
612
- function Ss(t) {
619
+ function Cn(t) {
613
620
  return /* @__PURE__ */ K.createElement(ir, { flushSync: Ar.flushSync, ...t });
614
621
  }
615
- const Ee = Me({ stagger: !1 }), Cs = new bs({
622
+ const Ne = Oe({ stagger: !1 }), En = new jn({
616
623
  defaultOptions: {
617
624
  queries: {
618
625
  staleTime: 1e3 * 60 * 5
619
626
  }
620
627
  }
621
- }), Es = ({
628
+ }), Nn = ({
622
629
  router: t,
623
630
  hydrate: e = !1
624
- }) => /* @__PURE__ */ s.jsx(gt, { children: /* @__PURE__ */ s.jsx(ht, { client: Cs, children: /* @__PURE__ */ s.jsx(ws, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(ot, { value: !1, children: /* @__PURE__ */ s.jsx(it, { children: /* @__PURE__ */ s.jsx(Ee.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Ss, { router: t }) }) }) }) }) }) }), Ns = ({
631
+ }) => /* @__PURE__ */ n.jsx(pt, { children: /* @__PURE__ */ n.jsx(ht, { client: En, children: /* @__PURE__ */ n.jsx(Pn, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ n.jsx(ot, { value: !1, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Ne.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ n.jsx(Cn, { router: t }) }) }) }) }) }) }), Tn = ({
625
632
  router: t,
626
633
  context: e,
627
634
  queryClient: r,
628
- helmetContext: n,
635
+ helmetContext: s,
629
636
  bypassProtection: a = !1
630
- }) => /* @__PURE__ */ s.jsx(gt, { children: /* @__PURE__ */ s.jsx(ht, { client: r, children: /* @__PURE__ */ s.jsx(it, { context: n, children: /* @__PURE__ */ s.jsx(ot, { value: a, children: /* @__PURE__ */ s.jsx(cr, { router: t, context: e }) }) }) }) }), Ts = () => {
631
- const t = pe(), e = G(t.pathname);
637
+ }) => /* @__PURE__ */ n.jsx(pt, { children: /* @__PURE__ */ n.jsx(ht, { client: r, children: /* @__PURE__ */ n.jsx(it, { context: s, children: /* @__PURE__ */ n.jsx(ot, { value: a, children: /* @__PURE__ */ n.jsx(cr, { router: t, context: e }) }) }) }) }), Mn = () => {
638
+ const t = ge(), e = G(t.pathname);
632
639
  Q(() => {
633
- const r = e.current !== t.pathname, n = t.hash !== "";
634
- r && !n && window.scrollTo(0, 0), e.current = t.pathname;
640
+ const r = e.current !== t.pathname, s = t.hash !== "";
641
+ r && !s && window.scrollTo(0, 0), e.current = t.pathname;
635
642
  }, [t.pathname, t.hash]);
636
- }, Ms = ({
643
+ }, On = ({
637
644
  icon: t
638
- }) => typeof t == "string" ? /* @__PURE__ */ s.jsx(
645
+ }) => typeof t == "string" ? /* @__PURE__ */ n.jsx(
639
646
  "img",
640
647
  {
641
648
  src: `https://cdn.simpleicons.org/${t}/000000/ffffff`,
642
649
  className: "size-5",
643
650
  alt: t
644
651
  }
645
- ) : t, Os = (t) => /^https?:/.test(t), As = () => {
652
+ ) : t, An = (t) => /^https?:/.test(t), Rn = () => {
646
653
  var r;
647
- const { page: t } = vn(), e = t == null ? void 0 : t.footer;
648
- return e ? /* @__PURE__ */ s.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ s.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
649
- /* @__PURE__ */ s.jsxs(
654
+ const { page: t } = ys(), e = t == null ? void 0 : t.footer;
655
+ return e ? /* @__PURE__ */ n.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
656
+ /* @__PURE__ */ n.jsxs(
650
657
  "div",
651
658
  {
652
- className: A("flex flex-row gap-8", {
659
+ className: O("flex flex-row gap-8", {
653
660
  "justify-center": !e.position || e.position === "center",
654
661
  "justify-start": e.position === "start",
655
662
  "justify-end": e.position === "end"
656
663
  }),
657
664
  children: [
658
- /* @__PURE__ */ s.jsx(_, { name: "footer-before" }),
659
- e.columns && /* @__PURE__ */ s.jsx(
665
+ /* @__PURE__ */ n.jsx(_, { name: "footer-before" }),
666
+ e.columns && /* @__PURE__ */ n.jsx(
660
667
  "div",
661
668
  {
662
669
  className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
663
670
  style: { "--columns": e.columns.length },
664
- children: e.columns.map((n) => /* @__PURE__ */ s.jsxs(
671
+ children: e.columns.map((s) => /* @__PURE__ */ n.jsxs(
665
672
  "div",
666
673
  {
667
- className: A({
668
- "justify-self-center": !n.position || n.position === "center",
669
- "justify-self-start": n.position === "start",
670
- "justify-self-end": n.position === "end"
674
+ className: O({
675
+ "justify-self-center": !s.position || s.position === "center",
676
+ "justify-self-start": s.position === "start",
677
+ "justify-self-end": s.position === "end"
671
678
  }),
672
679
  children: [
673
- /* @__PURE__ */ s.jsx("span", { className: "text-sm font-semibold", children: n.title }),
674
- /* @__PURE__ */ s.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((a) => {
675
- const i = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
676
- return /* @__PURE__ */ s.jsx("li", { children: Os(a.href) ? /* @__PURE__ */ s.jsxs(
680
+ /* @__PURE__ */ n.jsx("span", { className: "text-sm font-semibold", children: s.title }),
681
+ /* @__PURE__ */ n.jsx("ul", { className: "mt-4 space-y-2", children: s.links.map((a, i) => {
682
+ const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
683
+ return /* @__PURE__ */ n.jsx("li", { children: An(a.href) ? /* @__PURE__ */ n.jsxs(
677
684
  "a",
678
685
  {
679
686
  href: a.href,
680
687
  target: "_blank",
681
688
  rel: "noopener noreferrer",
682
- className: i,
689
+ className: o,
683
690
  children: [
684
- /* @__PURE__ */ s.jsx("span", { children: a.label }),
685
- /* @__PURE__ */ s.jsx(Qr, { size: 12 })
691
+ /* @__PURE__ */ n.jsx("span", { children: a.label }),
692
+ /* @__PURE__ */ n.jsx(Qr, { size: 12 })
686
693
  ]
687
694
  }
688
- ) : /* @__PURE__ */ s.jsx(Rr, { to: a.href, className: i, children: /* @__PURE__ */ s.jsx("span", { children: a.label }) }) }, a.href);
695
+ ) : /* @__PURE__ */ n.jsx(
696
+ Rr,
697
+ {
698
+ to: a.href + i,
699
+ className: o,
700
+ children: /* @__PURE__ */ n.jsx("span", { children: a.label })
701
+ }
702
+ ) }, a.href + i);
689
703
  }) })
690
704
  ]
691
705
  },
692
- n.title
706
+ s.title
693
707
  ))
694
708
  }
695
709
  ),
696
- /* @__PURE__ */ s.jsx(_, { name: "footer-after" })
710
+ /* @__PURE__ */ n.jsx(_, { name: "footer-after" })
697
711
  ]
698
712
  }
699
713
  ),
700
- /* @__PURE__ */ s.jsxs(
714
+ /* @__PURE__ */ n.jsxs(
701
715
  "div",
702
716
  {
703
- className: A(
717
+ className: O(
704
718
  "flex items-center justify-between",
705
719
  e.columns && "border-t mt-8 pt-8"
706
720
  ),
707
721
  children: [
708
- e.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
709
- /* @__PURE__ */ s.jsx(
722
+ e.logo && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
723
+ /* @__PURE__ */ n.jsx(
710
724
  "img",
711
725
  {
712
726
  src: e.logo.src.light,
@@ -715,7 +729,7 @@ const Ee = Me({ stagger: !1 }), Cs = new bs({
715
729
  style: { width: e.logo.width }
716
730
  }
717
731
  ),
718
- /* @__PURE__ */ s.jsx(
732
+ /* @__PURE__ */ n.jsx(
719
733
  "img",
720
734
  {
721
735
  src: e.logo.src.dark,
@@ -725,34 +739,34 @@ const Ee = Me({ stagger: !1 }), Cs = new bs({
725
739
  }
726
740
  )
727
741
  ] }),
728
- e.copyright && /* @__PURE__ */ s.jsx("p", { className: "text-sm text-muted-foreground", children: e.copyright }),
729
- /* @__PURE__ */ s.jsx("div", { className: "flex items-center gap-2", children: (r = e.social) == null ? void 0 : r.map((n) => /* @__PURE__ */ s.jsxs(
742
+ e.copyright && /* @__PURE__ */ n.jsx("p", { className: "text-sm text-muted-foreground", children: e.copyright }),
743
+ /* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-2", children: (r = e.social) == null ? void 0 : r.map((s) => /* @__PURE__ */ n.jsxs(
730
744
  "a",
731
745
  {
732
- href: n.href,
746
+ href: s.href,
733
747
  target: "_blank",
734
748
  rel: "noopener noreferrer",
735
749
  className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
736
750
  children: [
737
- /* @__PURE__ */ s.jsx(Ms, { icon: n.icon }),
738
- n.label
751
+ /* @__PURE__ */ n.jsx(On, { icon: s.icon }),
752
+ s.label
739
753
  ]
740
754
  },
741
- n.href
755
+ s.href
742
756
  )) })
743
757
  ]
744
758
  }
745
759
  )
746
760
  ] }) }) : null;
747
761
  };
748
- function Rs({
762
+ function kn({
749
763
  className: t,
750
764
  ...e
751
765
  }) {
752
- return /* @__PURE__ */ s.jsx(
766
+ return /* @__PURE__ */ n.jsx(
753
767
  "div",
754
768
  {
755
- className: A("animate-pulse rounded-md bg-muted", t),
769
+ className: O("animate-pulse rounded-md bg-muted", t),
756
770
  ...e
757
771
  }
758
772
  );
@@ -763,35 +777,35 @@ const Ve = {
763
777
  tip: "bg-green-600",
764
778
  caution: "bg-orange-500",
765
779
  danger: "bg-rose-500"
766
- }, ks = () => {
767
- const { page: t } = I(), [e, r] = J(!0);
780
+ }, _n = () => {
781
+ const { page: t } = F(), [e, r] = J(!0);
768
782
  if (!(t != null && t.banner) || !e)
769
- return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
770
- const n = t.banner.color && t.banner.color in Ve ? Ve[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
771
- return /* @__PURE__ */ s.jsxs(
783
+ return /* @__PURE__ */ n.jsx("style", { children: ":root { --banner-height: 0px; }" });
784
+ const s = t.banner.color && t.banner.color in Ve ? Ve[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = s ? {} : { backgroundColor: t.banner.color };
785
+ return /* @__PURE__ */ n.jsxs(
772
786
  "div",
773
787
  {
774
- className: A(
788
+ className: O(
775
789
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
776
- n
790
+ s
777
791
  ),
778
792
  "data-pagefind-ignore": "all",
779
793
  style: a,
780
794
  children: [
781
- /* @__PURE__ */ s.jsx("div", { className: "w-full", children: t.banner.message }),
782
- t.banner.dismissible && /* @__PURE__ */ s.jsx(
795
+ /* @__PURE__ */ n.jsx("div", { className: "w-full", children: t.banner.message }),
796
+ t.banner.dismissible && /* @__PURE__ */ n.jsx(
783
797
  "button",
784
798
  {
785
799
  type: "button",
786
800
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
787
801
  onClick: () => r(!1),
788
- children: /* @__PURE__ */ s.jsx(zr, { size: 16 })
802
+ children: /* @__PURE__ */ n.jsx(zr, { size: 16 })
789
803
  }
790
804
  )
791
805
  ]
792
806
  }
793
807
  );
794
- }, St = (t) => /* @__PURE__ */ s.jsxs(
808
+ }, St = (t) => /* @__PURE__ */ n.jsxs(
795
809
  "svg",
796
810
  {
797
811
  xmlns: "http://www.w3.org/2000/svg",
@@ -799,7 +813,7 @@ const Ve = {
799
813
  fill: "none",
800
814
  ...t,
801
815
  children: [
802
- /* @__PURE__ */ s.jsx(
816
+ /* @__PURE__ */ n.jsx(
803
817
  "path",
804
818
  {
805
819
  fill: "currentColor",
@@ -808,7 +822,7 @@ const Ve = {
808
822
  clipRule: "evenodd"
809
823
  }
810
824
  ),
811
- /* @__PURE__ */ s.jsx(
825
+ /* @__PURE__ */ n.jsx(
812
826
  "path",
813
827
  {
814
828
  fill: "currentColor",
@@ -819,61 +833,74 @@ const Ve = {
819
833
  }
820
834
  );
821
835
  St.displayName = "ZudokuLogo";
822
- const Ct = ({ className: t }) => /* @__PURE__ */ s.jsxs(
836
+ const Ct = ({ className: t }) => /* @__PURE__ */ n.jsxs(
823
837
  "a",
824
838
  {
825
839
  href: "https://zudoku.dev",
826
840
  target: "_blank",
827
841
  rel: "noopener noreferrer",
828
- className: A(
842
+ className: O(
829
843
  "flex justify-between items-center w-full border border-transparent hover:border-border rounded-full hover:shadow-sm h-7 px-3 text-nowrap hover:bg-muted/80 transition-all",
830
844
  t
831
845
  ),
832
846
  children: [
833
- /* @__PURE__ */ s.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
834
- /* @__PURE__ */ s.jsx(St, { className: "w-3.5 h-3.5 dark:fill-white" }),
847
+ /* @__PURE__ */ n.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
848
+ /* @__PURE__ */ n.jsx(St, { className: "w-3.5 h-3.5 dark:fill-white" }),
835
849
  "powered by Zudoku"
836
850
  ] }),
837
- /* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ s.jsx(Lr, { size: 12, absoluteStrokeWidth: !0, strokeWidth: 1.5 }) })
851
+ /* @__PURE__ */ n.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ n.jsx(Lr, { size: 12, absoluteStrokeWidth: !0, strokeWidth: 1.5 }) })
838
852
  ]
839
853
  }
840
- ), Et = ({ className: t }) => {
841
- const e = I(), [r, n] = J(!1), a = W(() => n(!1), []);
854
+ );
855
+ function Dn() {
856
+ const t = navigator.userAgent.toLowerCase();
857
+ if (t.includes("win")) return "Windows";
858
+ if (t.includes("mac")) return "macOS";
859
+ if (t.includes("linux")) return "Linux";
860
+ }
861
+ const Et = ({ className: t }) => {
862
+ const e = F(), [r, s] = J(!1), a = W(() => s(!1), []);
842
863
  Q(() => {
843
864
  if (r)
844
865
  return;
845
866
  function o(f) {
846
- f.key === "k" && (f.metaKey || f.ctrlKey) && (f.preventDefault(), n(!0));
867
+ f.key === "k" && (f.metaKey || f.ctrlKey) && (f.preventDefault(), s(!0));
847
868
  }
848
869
  return window.addEventListener("keydown", o), () => {
849
870
  window.removeEventListener("keydown", o);
850
871
  };
851
- }, [r, n]);
872
+ }, [r, s]);
852
873
  const i = e.plugins.find(Vr);
853
- return i ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
854
- /* @__PURE__ */ s.jsxs(
874
+ return i ? /* @__PURE__ */ n.jsxs("div", { className: t, children: [
875
+ /* @__PURE__ */ n.jsxs(
855
876
  "button",
856
877
  {
857
878
  type: "button",
858
- onClick: () => n(!0),
879
+ onClick: () => s(!0),
859
880
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
860
881
  children: [
861
- /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
862
- /* @__PURE__ */ s.jsx(Br, { size: 14 }),
882
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
883
+ /* @__PURE__ */ n.jsx(Br, { size: 14 }),
863
884
  "Search"
864
885
  ] }),
865
- /* @__PURE__ */ s.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" })
886
+ /* @__PURE__ */ n.jsx(ve, { children: /* @__PURE__ */ n.jsx(qn, {}) })
866
887
  ]
867
888
  }
868
889
  ),
869
- /* @__PURE__ */ s.jsx(Oe, { fallback: null, children: i.renderSearch({
890
+ /* @__PURE__ */ n.jsx(Ae, { fallback: null, children: i.renderSearch({
870
891
  isOpen: r,
871
892
  onClose: a
872
893
  }) })
873
894
  ] }) : null;
895
+ }, qn = () => {
896
+ const t = Dn();
897
+ return /* @__PURE__ */ n.jsxs("kbd", { className: "absolute right-[0.3rem] top-[0.35rem] 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: [
898
+ t === "macOS" ? "⌘" : "Ctrl",
899
+ "+K"
900
+ ] });
874
901
  }, Nt = () => {
875
902
  const { resolvedTheme: t, setTheme: e } = ct();
876
- return /* @__PURE__ */ s.jsx(Ae, { fallback: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
903
+ return /* @__PURE__ */ n.jsx(ve, { fallback: /* @__PURE__ */ n.jsx(Ce, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ n.jsxs(
877
904
  "button",
878
905
  {
879
906
  type: "button",
@@ -881,26 +908,26 @@ const Ct = ({ className: t }) => /* @__PURE__ */ s.jsxs(
881
908
  onClick: () => e(t === "dark" ? "light" : "dark"),
882
909
  "aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
883
910
  children: [
884
- /* @__PURE__ */ s.jsx(
911
+ /* @__PURE__ */ n.jsx(
885
912
  "div",
886
913
  {
887
- className: A(
914
+ className: O(
888
915
  "border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
889
916
  t === "light" && "border-border bg-muted",
890
917
  t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
891
918
  ),
892
- children: /* @__PURE__ */ s.jsx(Hr, { size: 16 })
919
+ children: /* @__PURE__ */ n.jsx(Hr, { size: 16 })
893
920
  }
894
921
  ),
895
- /* @__PURE__ */ s.jsx(
922
+ /* @__PURE__ */ n.jsx(
896
923
  "div",
897
924
  {
898
- className: A(
925
+ className: O(
899
926
  "border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
900
927
  t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
901
928
  t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
902
929
  ),
903
- children: /* @__PURE__ */ s.jsx(Kr, { size: 16 })
930
+ children: /* @__PURE__ */ n.jsx(Kr, { size: 16 })
904
931
  }
905
932
  )
906
933
  ]
@@ -911,7 +938,7 @@ function me() {
911
938
  return me = Object.assign ? Object.assign.bind() : function(t) {
912
939
  for (var e = 1; e < arguments.length; e++) {
913
940
  var r = arguments[e];
914
- for (var n in r) ({}).hasOwnProperty.call(r, n) && (t[n] = r[n]);
941
+ for (var s in r) ({}).hasOwnProperty.call(r, s) && (t[s] = r[s]);
915
942
  }
916
943
  return t;
917
944
  }, me.apply(null, arguments);
@@ -926,10 +953,10 @@ var ue = { exports: {} }, w = {};
926
953
  * LICENSE file in the root directory of this source tree.
927
954
  */
928
955
  var We;
929
- function _s() {
956
+ function $n() {
930
957
  if (We) return w;
931
958
  We = 1;
932
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, f = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, b = t ? Symbol.for("react.forward_ref") : 60112, x = t ? Symbol.for("react.suspense") : 60113, g = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, p = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, N = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
959
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, s = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, f = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, b = t ? Symbol.for("react.forward_ref") : 60112, x = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, N = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
933
960
  function v(c) {
934
961
  if (typeof c == "object" && c !== null) {
935
962
  var S = c.$$typeof;
@@ -938,7 +965,7 @@ function _s() {
938
965
  switch (c = c.type, c) {
939
966
  case h:
940
967
  case l:
941
- case n:
968
+ case s:
942
969
  case i:
943
970
  case a:
944
971
  case x:
@@ -963,7 +990,7 @@ function _s() {
963
990
  function j(c) {
964
991
  return v(c) === l;
965
992
  }
966
- return w.AsyncMode = h, w.ConcurrentMode = l, w.ContextConsumer = f, w.ContextProvider = o, w.Element = e, w.ForwardRef = b, w.Fragment = n, w.Lazy = m, w.Memo = y, w.Portal = r, w.Profiler = i, w.StrictMode = a, w.Suspense = x, w.isAsyncMode = function(c) {
993
+ return w.AsyncMode = h, w.ConcurrentMode = l, w.ContextConsumer = f, w.ContextProvider = o, w.Element = e, w.ForwardRef = b, w.Fragment = s, w.Lazy = m, w.Memo = y, w.Portal = r, w.Profiler = i, w.StrictMode = a, w.Suspense = x, w.isAsyncMode = function(c) {
967
994
  return j(c) || v(c) === h;
968
995
  }, w.isConcurrentMode = j, w.isContextConsumer = function(c) {
969
996
  return v(c) === f;
@@ -974,7 +1001,7 @@ function _s() {
974
1001
  }, w.isForwardRef = function(c) {
975
1002
  return v(c) === b;
976
1003
  }, w.isFragment = function(c) {
977
- return v(c) === n;
1004
+ return v(c) === s;
978
1005
  }, w.isLazy = function(c) {
979
1006
  return v(c) === m;
980
1007
  }, w.isMemo = function(c) {
@@ -988,7 +1015,7 @@ function _s() {
988
1015
  }, w.isSuspense = function(c) {
989
1016
  return v(c) === x;
990
1017
  }, w.isValidElementType = function(c) {
991
- return typeof c == "string" || typeof c == "function" || c === n || c === l || c === i || c === a || c === x || c === g || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === y || c.$$typeof === o || c.$$typeof === f || c.$$typeof === b || c.$$typeof === C || c.$$typeof === N || c.$$typeof === T || c.$$typeof === p);
1018
+ return typeof c == "string" || typeof c == "function" || c === s || c === l || c === i || c === a || c === x || c === p || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === y || c.$$typeof === o || c.$$typeof === f || c.$$typeof === b || c.$$typeof === C || c.$$typeof === N || c.$$typeof === T || c.$$typeof === g);
992
1019
  }, w.typeOf = v, w;
993
1020
  }
994
1021
  var P = {};
@@ -1001,23 +1028,23 @@ var P = {};
1001
1028
  * LICENSE file in the root directory of this source tree.
1002
1029
  */
1003
1030
  var Ge;
1004
- function Ds() {
1031
+ function In() {
1005
1032
  return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && function() {
1006
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, f = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, b = t ? Symbol.for("react.forward_ref") : 60112, x = t ? Symbol.for("react.suspense") : 60113, g = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, p = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, N = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
1033
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, s = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, f = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, b = t ? Symbol.for("react.forward_ref") : 60112, x = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, N = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
1007
1034
  function v(u) {
1008
1035
  return typeof u == "string" || typeof u == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1009
- u === n || u === l || u === i || u === a || u === x || u === g || typeof u == "object" && u !== null && (u.$$typeof === m || u.$$typeof === y || u.$$typeof === o || u.$$typeof === f || u.$$typeof === b || u.$$typeof === C || u.$$typeof === N || u.$$typeof === T || u.$$typeof === p);
1036
+ u === s || u === l || u === i || u === a || u === x || u === p || typeof u == "object" && u !== null && (u.$$typeof === m || u.$$typeof === y || u.$$typeof === o || u.$$typeof === f || u.$$typeof === b || u.$$typeof === C || u.$$typeof === N || u.$$typeof === T || u.$$typeof === g);
1010
1037
  }
1011
1038
  function j(u) {
1012
1039
  if (typeof u == "object" && u !== null) {
1013
- var xe = u.$$typeof;
1014
- switch (xe) {
1040
+ var ye = u.$$typeof;
1041
+ switch (ye) {
1015
1042
  case e:
1016
1043
  var ie = u.type;
1017
1044
  switch (ie) {
1018
1045
  case h:
1019
1046
  case l:
1020
- case n:
1047
+ case s:
1021
1048
  case i:
1022
1049
  case a:
1023
1050
  case x:
@@ -1032,15 +1059,15 @@ function Ds() {
1032
1059
  case o:
1033
1060
  return _e;
1034
1061
  default:
1035
- return xe;
1062
+ return ye;
1036
1063
  }
1037
1064
  }
1038
1065
  case r:
1039
- return xe;
1066
+ return ye;
1040
1067
  }
1041
1068
  }
1042
1069
  }
1043
- var c = h, S = l, D = f, q = o, L = e, U = b, ve = n, X = m, Qt = y, zt = r, Lt = i, Bt = a, Ht = x, Re = !1;
1070
+ var c = h, S = l, D = f, q = o, L = e, U = b, xe = s, X = m, Qt = y, zt = r, Lt = i, Bt = a, Ht = x, Re = !1;
1044
1071
  function Kt(u) {
1045
1072
  return Re || (Re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ke(u) || j(u) === h;
1046
1073
  }
@@ -1060,7 +1087,7 @@ function Ds() {
1060
1087
  return j(u) === b;
1061
1088
  }
1062
1089
  function Wt(u) {
1063
- return j(u) === n;
1090
+ return j(u) === s;
1064
1091
  }
1065
1092
  function Gt(u) {
1066
1093
  return j(u) === m;
@@ -1080,18 +1107,18 @@ function Ds() {
1080
1107
  function rr(u) {
1081
1108
  return j(u) === x;
1082
1109
  }
1083
- P.AsyncMode = c, P.ConcurrentMode = S, P.ContextConsumer = D, P.ContextProvider = q, P.Element = L, P.ForwardRef = U, P.Fragment = ve, P.Lazy = X, P.Memo = Qt, P.Portal = zt, P.Profiler = Lt, P.StrictMode = Bt, P.Suspense = Ht, P.isAsyncMode = Kt, P.isConcurrentMode = ke, P.isContextConsumer = Ut, P.isContextProvider = Yt, P.isElement = Zt, P.isForwardRef = Vt, P.isFragment = Wt, P.isLazy = Gt, P.isMemo = Xt, P.isPortal = Jt, P.isProfiler = er, P.isStrictMode = tr, P.isSuspense = rr, P.isValidElementType = v, P.typeOf = j;
1110
+ P.AsyncMode = c, P.ConcurrentMode = S, P.ContextConsumer = D, P.ContextProvider = q, P.Element = L, P.ForwardRef = U, P.Fragment = xe, P.Lazy = X, P.Memo = Qt, P.Portal = zt, P.Profiler = Lt, P.StrictMode = Bt, P.Suspense = Ht, P.isAsyncMode = Kt, P.isConcurrentMode = ke, P.isContextConsumer = Ut, P.isContextProvider = Yt, P.isElement = Zt, P.isForwardRef = Vt, P.isFragment = Wt, P.isLazy = Gt, P.isMemo = Xt, P.isPortal = Jt, P.isProfiler = er, P.isStrictMode = tr, P.isSuspense = rr, P.isValidElementType = v, P.typeOf = j;
1084
1111
  }()), P;
1085
1112
  }
1086
1113
  var Xe;
1087
- function qs() {
1088
- return Xe || (Xe = 1, process.env.NODE_ENV === "production" ? ue.exports = _s() : ue.exports = Ds()), ue.exports;
1114
+ function Fn() {
1115
+ return Xe || (Xe = 1, process.env.NODE_ENV === "production" ? ue.exports = $n() : ue.exports = In()), ue.exports;
1089
1116
  }
1090
- var je, Je;
1091
- function $s() {
1092
- if (Je) return je;
1117
+ var we, Je;
1118
+ function Qn() {
1119
+ if (Je) return we;
1093
1120
  Je = 1;
1094
- var t = qs(), e = {
1121
+ var t = Fn(), e = {
1095
1122
  childContextTypes: !0,
1096
1123
  contextType: !0,
1097
1124
  contextTypes: !0,
@@ -1111,7 +1138,7 @@ function $s() {
1111
1138
  callee: !0,
1112
1139
  arguments: !0,
1113
1140
  arity: !0
1114
- }, n = {
1141
+ }, s = {
1115
1142
  $$typeof: !0,
1116
1143
  render: !0,
1117
1144
  defaultProps: !0,
@@ -1125,23 +1152,23 @@ function $s() {
1125
1152
  propTypes: !0,
1126
1153
  type: !0
1127
1154
  }, i = {};
1128
- i[t.ForwardRef] = n, i[t.Memo] = a;
1155
+ i[t.ForwardRef] = s, i[t.Memo] = a;
1129
1156
  function o(m) {
1130
1157
  return t.isMemo(m) ? a : i[m.$$typeof] || e;
1131
1158
  }
1132
- var f = Object.defineProperty, h = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, x = Object.getPrototypeOf, g = Object.prototype;
1133
- function y(m, p, C) {
1134
- if (typeof p != "string") {
1135
- if (g) {
1136
- var N = x(p);
1137
- N && N !== g && y(m, N, C);
1159
+ var f = Object.defineProperty, h = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, x = Object.getPrototypeOf, p = Object.prototype;
1160
+ function y(m, g, C) {
1161
+ if (typeof g != "string") {
1162
+ if (p) {
1163
+ var N = x(g);
1164
+ N && N !== p && y(m, N, C);
1138
1165
  }
1139
- var T = h(p);
1140
- l && (T = T.concat(l(p)));
1141
- for (var v = o(m), j = o(p), c = 0; c < T.length; ++c) {
1166
+ var T = h(g);
1167
+ l && (T = T.concat(l(g)));
1168
+ for (var v = o(m), j = o(g), c = 0; c < T.length; ++c) {
1142
1169
  var S = T[c];
1143
1170
  if (!r[S] && !(C && C[S]) && !(j && j[S]) && !(v && v[S])) {
1144
- var D = b(p, S);
1171
+ var D = b(g, S);
1145
1172
  try {
1146
1173
  f(m, S, D);
1147
1174
  } catch {
@@ -1151,31 +1178,31 @@ function $s() {
1151
1178
  }
1152
1179
  return m;
1153
1180
  }
1154
- return je = y, je;
1181
+ return we = y, we;
1155
1182
  }
1156
- $s();
1157
- var Tt = function(e, r, n) {
1158
- return e = e <= n ? e : n, e = e >= r ? e : r, e;
1159
- }, Fs = function() {
1160
- var e = !1, r = [], n = function() {
1183
+ Qn();
1184
+ var Tt = function(e, r, s) {
1185
+ return e = e <= s ? e : s, e = e >= r ? e : r, e;
1186
+ }, zn = function() {
1187
+ var e = !1, r = [], s = function() {
1161
1188
  e = !0;
1162
1189
  var f = r.shift();
1163
1190
  if (f)
1164
- return f(n);
1191
+ return f(s);
1165
1192
  e = !1;
1166
1193
  }, a = function() {
1167
1194
  e = !1, r = [];
1168
1195
  }, i = function(f) {
1169
- r.push(f), !e && r.length === 1 && n();
1196
+ r.push(f), !e && r.length === 1 && s();
1170
1197
  };
1171
1198
  return {
1172
1199
  clear: a,
1173
1200
  enqueue: i
1174
1201
  };
1175
- }, Is = function() {
1202
+ }, Ln = function() {
1176
1203
  var e, r = function() {
1177
1204
  e && window.cancelAnimationFrame(e);
1178
- }, n = function(i, o) {
1205
+ }, s = function(i, o) {
1179
1206
  var f, h, l = function(x) {
1180
1207
  if (h = h || x, f = x - h, f > o) {
1181
1208
  i();
@@ -1187,35 +1214,35 @@ var Tt = function(e, r, n) {
1187
1214
  };
1188
1215
  return {
1189
1216
  cancel: r,
1190
- schedule: n
1217
+ schedule: s
1191
1218
  };
1192
- }, Qs = function(e) {
1219
+ }, Bn = function(e) {
1193
1220
  var r = 0;
1194
1221
  return e >= 0 && e < 0.2 ? r = 0.1 : e >= 0.2 && e < 0.5 ? r = 0.04 : e >= 0.5 && e < 0.8 ? r = 0.02 : e >= 0.8 && e < 0.99 && (r = 5e-3), Tt(e + r, 0, 0.994);
1195
1222
  }, et = function(e) {
1196
1223
  Q(e, []);
1197
- }, zs = function(e) {
1224
+ }, Hn = function(e) {
1198
1225
  return ++e % 1e6;
1199
- }, Ls = function() {
1226
+ }, Kn = function() {
1200
1227
  var e = J(0), r = e[1];
1201
1228
  return W(function() {
1202
- return r(zs);
1229
+ return r(Hn);
1203
1230
  }, []);
1204
- }, Bs = function(e) {
1231
+ }, Un = function(e) {
1205
1232
  e === void 0 && (e = {});
1206
- var r = Ls(), n = G(me({}, e)), a = W(function() {
1207
- return n.current;
1233
+ var r = Kn(), s = G(me({}, e)), a = W(function() {
1234
+ return s.current;
1208
1235
  }, []), i = W(function(o) {
1209
- o && (Object.assign(n.current, o), r());
1236
+ o && (Object.assign(s.current, o), r());
1210
1237
  }, []);
1211
1238
  return [a, i];
1212
- }, Hs = function() {
1239
+ }, Yn = function() {
1213
1240
  var e = G(!0);
1214
1241
  return e.current ? (e.current = !1, !0) : e.current;
1215
1242
  }, tt = function(e, r) {
1216
- var n = Hs();
1243
+ var s = Yn();
1217
1244
  Q(function() {
1218
- if (!n)
1245
+ if (!s)
1219
1246
  return e();
1220
1247
  }, r);
1221
1248
  }, Mt = function() {
@@ -1223,14 +1250,14 @@ var Tt = function(e, r, n) {
1223
1250
  isFinished: !0,
1224
1251
  progress: 0,
1225
1252
  sideEffect: Mt
1226
- }, Ks = function(e) {
1227
- var r = e === void 0 ? {} : e, n = r.animationDuration, a = n === void 0 ? 200 : n, i = r.incrementDuration, o = i === void 0 ? 800 : i, f = r.isAnimating, h = f === void 0 ? !1 : f, l = r.minimum, b = l === void 0 ? 0.08 : l, x = Bs(rt), g = x[0], y = x[1], m = G(null), p = G(null);
1253
+ }, Zn = function(e) {
1254
+ var r = e === void 0 ? {} : e, s = r.animationDuration, a = s === void 0 ? 200 : s, i = r.incrementDuration, o = i === void 0 ? 800 : i, f = r.isAnimating, h = f === void 0 ? !1 : f, l = r.minimum, b = l === void 0 ? 0.08 : l, x = Un(rt), p = x[0], y = x[1], m = G(null), g = G(null);
1228
1255
  et(function() {
1229
- m.current = Fs(), p.current = Is();
1256
+ m.current = zn(), g.current = Ln();
1230
1257
  });
1231
1258
  var C = W(function() {
1232
1259
  var S, D;
1233
- (S = p.current) == null || S.cancel(), (D = m.current) == null || D.clear();
1260
+ (S = g.current) == null || S.cancel(), (D = m.current) == null || D.clear();
1234
1261
  }, []), N = W(function(S) {
1235
1262
  var D;
1236
1263
  if (S = Tt(S, b, 1), S === 1) {
@@ -1240,7 +1267,7 @@ var Tt = function(e, r, n) {
1240
1267
  progress: S,
1241
1268
  sideEffect: function() {
1242
1269
  var X;
1243
- return (X = p.current) == null ? void 0 : X.schedule(U, a);
1270
+ return (X = g.current) == null ? void 0 : X.schedule(U, a);
1244
1271
  }
1245
1272
  });
1246
1273
  }), (L = m.current) == null || L.enqueue(function() {
@@ -1257,48 +1284,48 @@ var Tt = function(e, r, n) {
1257
1284
  progress: S,
1258
1285
  sideEffect: function() {
1259
1286
  var X;
1260
- return (X = p.current) == null ? void 0 : X.schedule(U, a);
1287
+ return (X = g.current) == null ? void 0 : X.schedule(U, a);
1261
1288
  }
1262
1289
  });
1263
1290
  });
1264
- }, [a, C, b, m, y, p]), T = W(function() {
1265
- N(Qs(g().progress));
1266
- }, [g, N]), v = W(function() {
1291
+ }, [a, C, b, m, y, g]), T = W(function() {
1292
+ N(Bn(p().progress));
1293
+ }, [p, N]), v = W(function() {
1267
1294
  var S = function() {
1268
1295
  var q;
1269
1296
  T(), (q = m.current) == null || q.enqueue(function(L) {
1270
1297
  var U;
1271
- (U = p.current) == null || U.schedule(function() {
1298
+ (U = g.current) == null || U.schedule(function() {
1272
1299
  S(), L();
1273
1300
  }, o);
1274
1301
  });
1275
1302
  };
1276
1303
  S();
1277
- }, [o, m, p, T]), j = G(Mt), c = g().sideEffect;
1304
+ }, [o, m, g, T]), j = G(Mt), c = p().sideEffect;
1278
1305
  return Q(function() {
1279
1306
  j.current = T;
1280
1307
  }), et(function() {
1281
1308
  return h && v(), C;
1282
1309
  }), tt(function() {
1283
- g().sideEffect();
1284
- }, [g, c]), tt(function() {
1310
+ p().sideEffect();
1311
+ }, [p, c]), tt(function() {
1285
1312
  h ? y(me({}, rt, {
1286
1313
  sideEffect: v
1287
1314
  })) : N(1);
1288
1315
  }, [h, N, y, v]), {
1289
1316
  animationDuration: a,
1290
- isFinished: g().isFinished,
1291
- progress: g().progress
1317
+ isFinished: p().isFinished,
1318
+ progress: p().progress
1292
1319
  };
1293
1320
  };
1294
1321
  const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", At = () => {
1295
- const e = ge().state === "loading", [r, n] = J(!1);
1322
+ const e = pe().state === "loading", [r, s] = J(!1);
1296
1323
  Q(() => {
1297
- const o = setTimeout(() => n(e), 100);
1324
+ const o = setTimeout(() => s(e), 100);
1298
1325
  return () => clearTimeout(o);
1299
1326
  }, [e]);
1300
- const { isFinished: a, progress: i } = Ks({ isAnimating: r });
1301
- return /* @__PURE__ */ s.jsx(
1327
+ const { isFinished: a, progress: i } = Zn({ isAnimating: r });
1328
+ return /* @__PURE__ */ n.jsx(
1302
1329
  "div",
1303
1330
  {
1304
1331
  className: "absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out",
@@ -1308,14 +1335,14 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
1308
1335
  }
1309
1336
  }
1310
1337
  );
1311
- }, Us = () => {
1312
- const { topNavigation: t } = I(), { isAuthenticated: e } = ae(), r = t.filter(Ot(e));
1313
- return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsxs(Oe, { children: [
1314
- /* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm relative", children: [
1315
- /* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Rt, { ...n }) }, n.id)) }) }),
1316
- /* @__PURE__ */ s.jsx(_, { name: "top-navigation-side" })
1338
+ }, Vn = () => {
1339
+ const { topNavigation: t } = F(), { isAuthenticated: e } = ae(), r = t.filter(Ot(e));
1340
+ return r.length === 0 ? /* @__PURE__ */ n.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ n.jsxs(Ae, { children: [
1341
+ /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm relative", children: [
1342
+ /* @__PURE__ */ n.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((s) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(Rt, { ...s }) }, s.id)) }) }),
1343
+ /* @__PURE__ */ n.jsx(_, { name: "top-navigation-side" })
1317
1344
  ] }),
1318
- /* @__PURE__ */ s.jsx(At, {})
1345
+ /* @__PURE__ */ n.jsx(At, {})
1319
1346
  ] });
1320
1347
  }, Rt = ({
1321
1348
  id: t,
@@ -1323,16 +1350,16 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
1323
1350
  default: r
1324
1351
  }) => {
1325
1352
  var l;
1326
- const { sidebars: n } = I(), a = n[t], i = mt(), o = !!ge().location, f = ((l = i.topNavItem) == null ? void 0 : l.id) === t && !o, h = r ?? (a ? vr(a, (b) => {
1353
+ const { sidebars: s } = F(), a = s[t], i = mt(), o = !!pe().location, f = ((l = i.topNavItem) == null ? void 0 : l.id) === t && !o, h = r ?? (a ? vr(a, (b) => {
1327
1354
  if (b.type === "doc") return ee(b.id);
1328
1355
  }) : ee(t)) ?? ee(t);
1329
1356
  return (
1330
1357
  // We don't use isActive here because it has to be inside the sidebar,
1331
1358
  // the top nav id doesn't necessarily start with the sidebar id
1332
- /* @__PURE__ */ s.jsx(
1359
+ /* @__PURE__ */ n.jsx(
1333
1360
  lr,
1334
1361
  {
1335
- className: ({ isPending: b }) => ps(
1362
+ className: ({ isPending: b }) => pn(
1336
1363
  "block lg:py-3.5 font-medium -mb-px",
1337
1364
  f || b ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1338
1365
  ),
@@ -1341,58 +1368,58 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
1341
1368
  }
1342
1369
  )
1343
1370
  );
1344
- }, Ys = () => {
1371
+ }, Wn = () => {
1345
1372
  var i;
1346
- const { topNavigation: t, options: e } = I(), { isAuthenticated: r } = ae(), [n, a] = J(!1);
1347
- return /* @__PURE__ */ s.jsxs(
1348
- hs,
1373
+ const { topNavigation: t, options: e } = F(), { isAuthenticated: r } = ae(), [s, a] = J(!1);
1374
+ return /* @__PURE__ */ n.jsxs(
1375
+ mn,
1349
1376
  {
1350
1377
  direction: "right",
1351
- open: n,
1378
+ open: s,
1352
1379
  onOpenChange: (o) => a(o),
1353
1380
  children: [
1354
- /* @__PURE__ */ s.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
1355
- /* @__PURE__ */ s.jsx(ms, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Ur, { size: 22 }) }),
1356
- /* @__PURE__ */ s.jsx(At, {})
1381
+ /* @__PURE__ */ n.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
1382
+ /* @__PURE__ */ n.jsx(gn, { className: "lg:hidden", children: /* @__PURE__ */ n.jsx(Ur, { size: 22 }) }),
1383
+ /* @__PURE__ */ n.jsx(At, {})
1357
1384
  ] }),
1358
- /* @__PURE__ */ s.jsx(
1385
+ /* @__PURE__ */ n.jsx(
1359
1386
  bt,
1360
1387
  {
1361
1388
  className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
1362
1389
  "aria-describedby": void 0,
1363
- children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
1364
- /* @__PURE__ */ s.jsxs("div", { children: [
1365
- /* @__PURE__ */ s.jsx(yt, { children: /* @__PURE__ */ s.jsx(jt, { children: "Navigation" }) }),
1366
- /* @__PURE__ */ s.jsx(Et, { className: "flex p-4" }),
1367
- /* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1368
- /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Nt, {}) }),
1369
- t.filter(Ot(r)).map((o) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => a(!1), children: /* @__PURE__ */ s.jsx(Rt, { ...o }) }) }, o.label))
1390
+ children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
1391
+ /* @__PURE__ */ n.jsxs("div", { children: [
1392
+ /* @__PURE__ */ n.jsx(yt, { children: /* @__PURE__ */ n.jsx(jt, { children: "Navigation" }) }),
1393
+ /* @__PURE__ */ n.jsx(Et, { className: "flex p-4" }),
1394
+ /* @__PURE__ */ n.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1395
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(Nt, {}) }),
1396
+ t.filter(Ot(r)).map((o) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { type: "button", onClick: () => a(!1), children: /* @__PURE__ */ n.jsx(Rt, { ...o }) }) }, o.label))
1370
1397
  ] })
1371
1398
  ] }),
1372
- ((i = e.page) == null ? void 0 : i.showPoweredBy) !== !1 && /* @__PURE__ */ s.jsx(Ct, { className: "flex-grow-0 justify-center gap-1" })
1399
+ ((i = e.page) == null ? void 0 : i.showPoweredBy) !== !1 && /* @__PURE__ */ n.jsx(Ct, { className: "flex-grow-0 justify-center gap-1" })
1373
1400
  ] })
1374
1401
  }
1375
1402
  )
1376
1403
  ]
1377
1404
  }
1378
1405
  );
1379
- }, fe = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(cs, { children: [
1380
- /* @__PURE__ */ s.jsx(ls, { children: t.label }),
1381
- /* @__PURE__ */ s.jsx(us, { children: /* @__PURE__ */ s.jsx(ds, { children: t.children.map((e, r) => (
1406
+ }, fe = ({ item: t }) => t.children ? /* @__PURE__ */ n.jsxs(ln, { children: [
1407
+ /* @__PURE__ */ n.jsx(un, { children: t.label }),
1408
+ /* @__PURE__ */ n.jsx(dn, { children: /* @__PURE__ */ n.jsx(fn, { children: t.children.map((e, r) => (
1382
1409
  // eslint-disable-next-line react/no-array-index-key
1383
- /* @__PURE__ */ s.jsx(fe, { item: e }, r)
1410
+ /* @__PURE__ */ n.jsx(fe, { item: e }, r)
1384
1411
  )) }) })
1385
- ] }, t.label) : /* @__PURE__ */ s.jsx(Te, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(fs, { className: "flex gap-2", children: [
1386
- t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
1412
+ ] }, t.label) : /* @__PURE__ */ n.jsx(Me, { to: t.path ?? "", children: /* @__PURE__ */ n.jsxs(hn, { className: "flex gap-2", children: [
1413
+ t.icon && /* @__PURE__ */ n.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
1387
1414
  t.label
1388
1415
  ] }, t.label) }), kt = vt(function() {
1389
- const e = ae(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = ae(), i = I(), { page: o, plugins: f } = i, h = f.filter((l) => Wr(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
1390
- return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1391
- /* @__PURE__ */ s.jsx(ks, {}),
1392
- /* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto flex relative items-center justify-between px-4 lg:px-8 h-[--top-header-height] border-transparent", children: [
1393
- /* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(Te, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
1394
- (o == null ? void 0 : o.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1395
- /* @__PURE__ */ s.jsx(
1416
+ const e = ae(), { isAuthenticated: r, profile: s, isAuthEnabled: a } = ae(), i = F(), { page: o, plugins: f } = i, h = f.filter((l) => Wr(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
1417
+ return /* @__PURE__ */ n.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1418
+ /* @__PURE__ */ n.jsx(_n, {}),
1419
+ /* @__PURE__ */ n.jsx("div", { className: "border-b", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto flex relative items-center justify-between px-4 lg:px-8 h-[--top-header-height] border-transparent", children: [
1420
+ /* @__PURE__ */ n.jsx("div", { className: "flex", children: /* @__PURE__ */ n.jsx(Me, { to: "/", children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
1421
+ (o == null ? void 0 : o.logo) && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1422
+ /* @__PURE__ */ n.jsx(
1396
1423
  "img",
1397
1424
  {
1398
1425
  src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : ee(
@@ -1405,7 +1432,7 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
1405
1432
  loading: "lazy"
1406
1433
  }
1407
1434
  ),
1408
- /* @__PURE__ */ s.jsx(
1435
+ /* @__PURE__ */ n.jsx(
1409
1436
  "img",
1410
1437
  {
1411
1438
  src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : ee(
@@ -1419,53 +1446,53 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
1419
1446
  }
1420
1447
  )
1421
1448
  ] }),
1422
- /* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
1449
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
1423
1450
  ] }) }) }),
1424
- /* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx(Et, { className: "pointer-events-auto" }) }),
1425
- /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-8", children: [
1426
- /* @__PURE__ */ s.jsx(Ys, {}),
1427
- /* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1428
- /* @__PURE__ */ s.jsx(_, { name: "head-navigation-start" }),
1429
- a && /* @__PURE__ */ s.jsx(
1430
- Ae,
1451
+ /* @__PURE__ */ n.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ n.jsx(Et, { className: "pointer-events-auto" }) }),
1452
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-8", children: [
1453
+ /* @__PURE__ */ n.jsx(Wn, {}),
1454
+ /* @__PURE__ */ n.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1455
+ /* @__PURE__ */ n.jsx(_, { name: "head-navigation-start" }),
1456
+ a && /* @__PURE__ */ n.jsx(
1457
+ ve,
1431
1458
  {
1432
- fallback: /* @__PURE__ */ s.jsx(Rs, { className: "rounded h-5 w-24 mr-4" }),
1433
- children: r ? Object.values(h).length > 0 && /* @__PURE__ */ s.jsxs(ns, { modal: !1, children: [
1434
- /* @__PURE__ */ s.jsx(as, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
1435
- /* @__PURE__ */ s.jsxs(os, { className: "w-56", children: [
1436
- /* @__PURE__ */ s.jsxs(is, { children: [
1437
- n != null && n.name ? `${n.name}` : "My Account",
1438
- (n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
1459
+ fallback: /* @__PURE__ */ n.jsx(kn, { className: "rounded h-5 w-24 mr-4" }),
1460
+ children: r ? Object.values(h).length > 0 && /* @__PURE__ */ n.jsxs(sn, { modal: !1, children: [
1461
+ /* @__PURE__ */ n.jsx(an, { asChild: !0, children: /* @__PURE__ */ n.jsx(Ce, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
1462
+ /* @__PURE__ */ n.jsxs(on, { className: "w-56", children: [
1463
+ /* @__PURE__ */ n.jsxs(cn, { children: [
1464
+ s != null && s.name ? `${s.name}` : "My Account",
1465
+ (s == null ? void 0 : s.email) && /* @__PURE__ */ n.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
1439
1466
  ] }),
1440
- h.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ s.jsx(be, {}),
1441
- h.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ s.jsx(fe, { item: l }, l.label)),
1467
+ h.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ n.jsx(je, {}),
1468
+ h.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ n.jsx(fe, { item: l }, l.label)),
1442
1469
  h.filter(
1443
1470
  (l) => !l.category || l.category === "middle"
1444
- ).length > 0 && /* @__PURE__ */ s.jsx(be, {}),
1471
+ ).length > 0 && /* @__PURE__ */ n.jsx(je, {}),
1445
1472
  h.filter(
1446
1473
  (l) => !l.category || l.category === "middle"
1447
- ).map((l) => /* @__PURE__ */ s.jsx(fe, { item: l }, l.label)),
1448
- h.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(be, {}),
1449
- h.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ s.jsx(fe, { item: l }, l.label))
1474
+ ).map((l) => /* @__PURE__ */ n.jsx(fe, { item: l }, l.label)),
1475
+ h.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ n.jsx(je, {}),
1476
+ h.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ n.jsx(fe, { item: l }, l.label))
1450
1477
  ] })
1451
- ] }) : /* @__PURE__ */ s.jsx(Se, { variant: "ghost", onClick: () => e.login(), children: "Login" })
1478
+ ] }) : /* @__PURE__ */ n.jsx(Ce, { variant: "ghost", onClick: () => e.login(), children: "Login" })
1452
1479
  }
1453
1480
  ),
1454
- /* @__PURE__ */ s.jsx(_, { name: "head-navigation-end" }),
1455
- /* @__PURE__ */ s.jsx(Nt, {})
1481
+ /* @__PURE__ */ n.jsx(_, { name: "head-navigation-end" }),
1482
+ /* @__PURE__ */ n.jsx(Nt, {})
1456
1483
  ] })
1457
1484
  ] })
1458
1485
  ] }) }),
1459
- /* @__PURE__ */ s.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent", children: [
1460
- /* @__PURE__ */ s.jsx(_, { name: "top-navigation-before" }),
1461
- /* @__PURE__ */ s.jsx(Us, {}),
1462
- /* @__PURE__ */ s.jsx(_, { name: "top-navigation-after" })
1486
+ /* @__PURE__ */ n.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent", children: [
1487
+ /* @__PURE__ */ n.jsx(_, { name: "top-navigation-before" }),
1488
+ /* @__PURE__ */ n.jsx(Vn, {}),
1489
+ /* @__PURE__ */ n.jsx(_, { name: "top-navigation-after" })
1463
1490
  ] }) })
1464
1491
  ] });
1465
1492
  }), _t = ({
1466
1493
  shouldScaleBackground: t = !0,
1467
1494
  ...e
1468
- }) => /* @__PURE__ */ s.jsx(
1495
+ }) => /* @__PURE__ */ n.jsx(
1469
1496
  z.Root,
1470
1497
  {
1471
1498
  shouldScaleBackground: t,
@@ -1473,75 +1500,75 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
1473
1500
  }
1474
1501
  );
1475
1502
  _t.displayName = "Drawer";
1476
- const Zs = z.Trigger, Vs = z.Portal, Dt = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
1503
+ const Gn = z.Trigger, Xn = z.Portal, Dt = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ n.jsx(
1477
1504
  z.Overlay,
1478
1505
  {
1479
1506
  ref: r,
1480
- className: A("fixed inset-0 z-50 bg-black/80", t),
1507
+ className: O("fixed inset-0 z-50 bg-black/80", t),
1481
1508
  ...e
1482
1509
  }
1483
1510
  ));
1484
1511
  Dt.displayName = z.Overlay.displayName;
1485
- const Ws = K.forwardRef(
1486
- ({ className: t, children: e, hideBar: r = !0, ...n }, a) => /* @__PURE__ */ s.jsxs(Vs, { children: [
1487
- /* @__PURE__ */ s.jsx(Dt, {}),
1488
- /* @__PURE__ */ s.jsxs(
1512
+ const Jn = K.forwardRef(
1513
+ ({ className: t, children: e, hideBar: r = !0, ...s }, a) => /* @__PURE__ */ n.jsxs(Xn, { children: [
1514
+ /* @__PURE__ */ n.jsx(Dt, {}),
1515
+ /* @__PURE__ */ n.jsxs(
1489
1516
  z.Content,
1490
1517
  {
1491
1518
  ref: a,
1492
- className: A(
1519
+ className: O(
1493
1520
  "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
1494
1521
  t
1495
1522
  ),
1496
- ...n,
1523
+ ...s,
1497
1524
  children: [
1498
- !r && /* @__PURE__ */ s.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
1525
+ !r && /* @__PURE__ */ n.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
1499
1526
  e
1500
1527
  ]
1501
1528
  }
1502
1529
  )
1503
1530
  ] })
1504
1531
  );
1505
- Ws.displayName = "DrawerContent";
1506
- const Gs = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
1532
+ Jn.displayName = "DrawerContent";
1533
+ const es = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ n.jsx(
1507
1534
  z.Title,
1508
1535
  {
1509
1536
  ref: r,
1510
- className: A(
1537
+ className: O(
1511
1538
  "text-lg font-semibold leading-none tracking-tight",
1512
1539
  t
1513
1540
  ),
1514
1541
  ...e
1515
1542
  }
1516
1543
  ));
1517
- Gs.displayName = z.Title.displayName;
1518
- const Xs = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
1544
+ es.displayName = z.Title.displayName;
1545
+ const ts = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ n.jsx(
1519
1546
  z.Description,
1520
1547
  {
1521
1548
  ref: r,
1522
- className: A("text-sm text-muted-foreground", t),
1549
+ className: O("text-sm text-muted-foreground", t),
1523
1550
  ...e
1524
1551
  }
1525
1552
  ));
1526
- Xs.displayName = z.Description.displayName;
1553
+ ts.displayName = z.Description.displayName;
1527
1554
  const qt = ({
1528
1555
  children: t,
1529
1556
  className: e
1530
1557
  }) => {
1531
1558
  var a;
1532
- const { options: r } = I(), n = G(null);
1559
+ const { options: r } = F(), s = G(null);
1533
1560
  return Q(() => {
1534
1561
  var o;
1535
- const i = (o = n.current) == null ? void 0 : o.querySelector('[aria-current="page"]');
1562
+ const i = (o = s.current) == null ? void 0 : o.querySelector('[aria-current="page"]');
1536
1563
  kr(i ?? null);
1537
- }, []), /* @__PURE__ */ s.jsxs("div", { className: "grid sticky top-[--header-height] lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r", children: [
1538
- /* @__PURE__ */ s.jsx(
1564
+ }, []), /* @__PURE__ */ n.jsxs("div", { className: "grid sticky top-[--header-height] lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r", children: [
1565
+ /* @__PURE__ */ n.jsx(
1539
1566
  "nav",
1540
1567
  {
1541
- ref: n,
1542
- className: A(
1568
+ ref: s,
1569
+ className: O(
1543
1570
  "hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
1544
- "-mx-[--padding-nav-item] pb-3 pt-[--padding-content-top] scroll-pt-2 gap-1",
1571
+ "-mx-[--padding-nav-item] pb-[8vh] pt-[--padding-content-top] scroll-pt-2 gap-1",
1545
1572
  // Revert the padding/margin on the first child
1546
1573
  "-mt-2.5",
1547
1574
  e
@@ -1552,27 +1579,33 @@ const qt = ({
1552
1579
  children: t
1553
1580
  }
1554
1581
  ),
1555
- /* @__PURE__ */ s.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: ((a = r.page) == null ? void 0 : a.showPoweredBy) !== !1 && /* @__PURE__ */ s.jsx(Ct, {}) })
1582
+ /* @__PURE__ */ n.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: ((a = r.page) == null ? void 0 : a.showPoweredBy) !== !1 && /* @__PURE__ */ n.jsx(Ct, {}) })
1556
1583
  ] });
1557
1584
  };
1558
1585
  qt.displayName = "SidebarWrapper";
1559
- const Js = ({
1586
+ const rs = ({
1560
1587
  onRequestClose: t,
1561
1588
  sidebar: e
1562
- }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1563
- /* @__PURE__ */ s.jsxs(qt, { children: [
1564
- /* @__PURE__ */ s.jsx(_, { name: "zudoku-before-navigation" }),
1565
- e.map((r) => /* @__PURE__ */ s.jsx(He, { item: r }, r.label)),
1566
- /* @__PURE__ */ s.jsx(_, { name: "zudoku-after-navigation" })
1589
+ }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1590
+ /* @__PURE__ */ n.jsxs(qt, { children: [
1591
+ /* @__PURE__ */ n.jsx(_, { name: "zudoku-before-navigation" }),
1592
+ e.map((r) => /* @__PURE__ */ n.jsx(
1593
+ He,
1594
+ {
1595
+ item: r
1596
+ },
1597
+ ("id" in r ? r.id : "") + ("href" in r ? r.href : "") + r.label
1598
+ )),
1599
+ /* @__PURE__ */ n.jsx(_, { name: "zudoku-after-navigation" })
1567
1600
  ] }),
1568
- /* @__PURE__ */ s.jsx(
1601
+ /* @__PURE__ */ n.jsx(
1569
1602
  bt,
1570
1603
  {
1571
1604
  className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
1572
1605
  "aria-describedby": void 0,
1573
- children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1574
- /* @__PURE__ */ s.jsx(yt, { children: /* @__PURE__ */ s.jsx(jt, { children: "Sidebar" }) }),
1575
- e.map((r) => /* @__PURE__ */ s.jsx(
1606
+ children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1607
+ /* @__PURE__ */ n.jsx(yt, { children: /* @__PURE__ */ n.jsx(jt, { children: "Sidebar" }) }),
1608
+ e.map((r) => /* @__PURE__ */ n.jsx(
1576
1609
  He,
1577
1610
  {
1578
1611
  item: r,
@@ -1583,82 +1616,92 @@ const Js = ({
1583
1616
  ] })
1584
1617
  }
1585
1618
  )
1586
- ] }), en = ({ children: t }) => {
1587
- const [e, r] = J(!1), { sidebar: n } = mt(), a = n.length > 0, i = ge().state === "loading";
1588
- return /* @__PURE__ */ s.jsxs(
1619
+ ] }), ns = ({ children: t }) => {
1620
+ const [e, r] = J(!1), { sidebar: s } = mt(), a = s.length > 0, i = pe().state === "loading";
1621
+ return /* @__PURE__ */ n.jsxs(
1589
1622
  _t,
1590
1623
  {
1591
1624
  direction: "left",
1592
1625
  open: e,
1593
1626
  onOpenChange: (o) => r(o),
1594
1627
  children: [
1595
- a && /* @__PURE__ */ s.jsx(
1596
- Js,
1628
+ a && /* @__PURE__ */ n.jsx(
1629
+ rs,
1597
1630
  {
1598
1631
  onRequestClose: () => r(!1),
1599
- sidebar: n
1632
+ sidebar: s
1600
1633
  }
1601
1634
  ),
1602
- a && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b", children: /* @__PURE__ */ s.jsxs(Zs, { className: "flex items-center gap-2 px-4", children: [
1603
- /* @__PURE__ */ s.jsx(Yr, { size: 16, strokeWidth: 1.5 }),
1604
- /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
1635
+ a && /* @__PURE__ */ n.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b", children: /* @__PURE__ */ n.jsxs(Gn, { className: "flex items-center gap-2 px-4", children: [
1636
+ /* @__PURE__ */ n.jsx(Yr, { size: 16, strokeWidth: 1.5 }),
1637
+ /* @__PURE__ */ n.jsx("span", { className: "text-sm", children: "Menu" })
1605
1638
  ] }) }),
1606
- /* @__PURE__ */ s.jsxs(
1639
+ /* @__PURE__ */ n.jsxs(
1607
1640
  "main",
1608
1641
  {
1609
1642
  "data-pagefind-body": !0,
1610
- className: A(
1643
+ className: O(
1611
1644
  "px-4 lg:pe-8 lg:px-8",
1612
1645
  !a && "col-span-full",
1613
1646
  i && "animate-pulse"
1614
1647
  ),
1615
1648
  children: [
1616
- /* @__PURE__ */ s.jsx(_, { name: "zudoku-before-content" }),
1649
+ /* @__PURE__ */ n.jsx(_, { name: "zudoku-before-content" }),
1617
1650
  t,
1618
- /* @__PURE__ */ s.jsx(_, { name: "zudoku-after-content" })
1651
+ /* @__PURE__ */ n.jsx(_, { name: "zudoku-after-content" })
1619
1652
  ]
1620
1653
  }
1621
1654
  )
1622
1655
  ]
1623
1656
  }
1624
1657
  );
1625
- }, tn = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(xt, {}) }), rn = ({ children: t }) => {
1626
- const { meta: e, authentication: r, options: n } = I(), a = pe();
1627
- return _r(), Ts(), Q(() => {
1658
+ }, ss = () => /* @__PURE__ */ n.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ n.jsx(xt, {}) }), as = ({ children: t }) => {
1659
+ const { meta: e, authentication: r, options: s } = F(), a = ge();
1660
+ return _r(), Mn(), Q(() => {
1628
1661
  var i;
1629
1662
  (i = r == null ? void 0 : r.onPageLoad) == null || i.call(r);
1630
- }, [r]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1663
+ }, [r]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1631
1664
  !1,
1632
- /* @__PURE__ */ s.jsxs(Ne, { titleTemplate: e == null ? void 0 : e.title, children: [
1633
- n.canonicalUrlOrigin && /* @__PURE__ */ s.jsx(
1665
+ /* @__PURE__ */ n.jsxs(Te, { titleTemplate: e == null ? void 0 : e.title, children: [
1666
+ s.canonicalUrlOrigin && /* @__PURE__ */ n.jsx(
1634
1667
  "link",
1635
1668
  {
1636
1669
  rel: "canonical",
1637
1670
  href: ee(
1638
- n.canonicalUrlOrigin,
1639
- n.basePath,
1671
+ s.canonicalUrlOrigin,
1672
+ s.basePath,
1640
1673
  a.pathname
1641
1674
  )
1642
1675
  }
1643
1676
  ),
1644
- (e == null ? void 0 : e.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: e.description }),
1645
- (e == null ? void 0 : e.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: e.favicon })
1677
+ (e == null ? void 0 : e.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: e.description }),
1678
+ (e == null ? void 0 : e.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: e.favicon })
1646
1679
  ] }),
1647
- /* @__PURE__ */ s.jsx(_, { name: "layout-before-head" }),
1648
- /* @__PURE__ */ s.jsx(kt, {}),
1649
- /* @__PURE__ */ s.jsx(_, { name: "layout-after-head" }),
1650
- /* @__PURE__ */ s.jsx("div", { className: "grid grid-cols-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr] lg:grid-cols-[var(--side-nav-width)_1fr] max-w-screen-2xl w-full lg:mx-auto", children: /* @__PURE__ */ s.jsx(Oe, { fallback: /* @__PURE__ */ s.jsx(tn, {}), children: /* @__PURE__ */ s.jsx(en, { children: t ?? /* @__PURE__ */ s.jsx(lt, {}) }) }) }),
1651
- /* @__PURE__ */ s.jsx(As, {})
1680
+ /* @__PURE__ */ n.jsx(_, { name: "layout-before-head" }),
1681
+ /* @__PURE__ */ n.jsx(kt, {}),
1682
+ /* @__PURE__ */ n.jsx(_, { name: "layout-after-head" }),
1683
+ /* @__PURE__ */ n.jsx(
1684
+ "div",
1685
+ {
1686
+ className: O(
1687
+ "grid max-w-screen-2xl w-full lg:mx-auto",
1688
+ "has-[:only-child]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
1689
+ "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
1690
+ ),
1691
+ children: /* @__PURE__ */ n.jsx(Ae, { fallback: /* @__PURE__ */ n.jsx(ss, {}), children: /* @__PURE__ */ n.jsx(ns, { children: t ?? /* @__PURE__ */ n.jsx(lt, {}) }) })
1692
+ }
1693
+ ),
1694
+ /* @__PURE__ */ n.jsx(Rn, {})
1652
1695
  ] });
1653
- }, sn = ({
1696
+ }, os = ({
1654
1697
  title: t = "An error occurred",
1655
1698
  message: e,
1656
1699
  category: r
1657
- }) => /* @__PURE__ */ s.jsxs("div", { className: qr + " h-full pt-[--padding-content-top]", children: [
1658
- r && /* @__PURE__ */ s.jsx(Zr, { children: r }),
1659
- t && /* @__PURE__ */ s.jsx(Dr, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1660
- /* @__PURE__ */ s.jsx("p", { children: e })
1661
- ] }), nn = (t) => {
1700
+ }) => /* @__PURE__ */ n.jsxs("div", { className: qr + " h-full pt-[--padding-content-top]", children: [
1701
+ r && /* @__PURE__ */ n.jsx(Zr, { children: r }),
1702
+ t && /* @__PURE__ */ n.jsx(Dr, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1703
+ /* @__PURE__ */ n.jsx("p", { children: e })
1704
+ ] }), is = (t) => {
1662
1705
  switch (t) {
1663
1706
  case 400:
1664
1707
  return {
@@ -1721,23 +1764,23 @@ const Js = ({
1721
1764
  message: "Something went wrong while processing your request."
1722
1765
  };
1723
1766
  }
1724
- }, an = ({ statusCode: t, message: e }) => {
1725
- const r = nn(t);
1726
- return /* @__PURE__ */ s.jsx(
1727
- sn,
1767
+ }, cs = ({ statusCode: t, message: e }) => {
1768
+ const r = is(t);
1769
+ return /* @__PURE__ */ n.jsx(
1770
+ os,
1728
1771
  {
1729
1772
  title: r.title,
1730
1773
  message: e ?? r.message,
1731
1774
  category: t
1732
1775
  }
1733
1776
  );
1734
- }, on = Me(null), we = {
1777
+ }, ls = Oe(null), Pe = {
1735
1778
  didCatch: !1,
1736
1779
  error: null
1737
1780
  };
1738
- class cn extends Mr {
1781
+ class us extends Mr {
1739
1782
  constructor(e) {
1740
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = we;
1783
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Pe;
1741
1784
  }
1742
1785
  static getDerivedStateFromError(e) {
1743
1786
  return {
@@ -1750,38 +1793,38 @@ class cn extends Mr {
1750
1793
  error: e
1751
1794
  } = this.state;
1752
1795
  if (e !== null) {
1753
- for (var r, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1796
+ for (var r, s, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1754
1797
  i[o] = arguments[o];
1755
- (r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
1798
+ (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
1756
1799
  args: i,
1757
1800
  reason: "imperative-api"
1758
- }), this.setState(we);
1801
+ }), this.setState(Pe);
1759
1802
  }
1760
1803
  }
1761
1804
  componentDidCatch(e, r) {
1762
- var n, a;
1763
- (n = (a = this.props).onError) === null || n === void 0 || n.call(a, e, r);
1805
+ var s, a;
1806
+ (s = (a = this.props).onError) === null || s === void 0 || s.call(a, e, r);
1764
1807
  }
1765
1808
  componentDidUpdate(e, r) {
1766
1809
  const {
1767
- didCatch: n
1810
+ didCatch: s
1768
1811
  } = this.state, {
1769
1812
  resetKeys: a
1770
1813
  } = this.props;
1771
- if (n && r.error !== null && ln(e.resetKeys, a)) {
1814
+ if (s && r.error !== null && ds(e.resetKeys, a)) {
1772
1815
  var i, o;
1773
1816
  (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1774
1817
  next: a,
1775
1818
  prev: e.resetKeys,
1776
1819
  reason: "keys"
1777
- }), this.setState(we);
1820
+ }), this.setState(Pe);
1778
1821
  }
1779
1822
  }
1780
1823
  render() {
1781
1824
  const {
1782
1825
  children: e,
1783
1826
  fallbackRender: r,
1784
- FallbackComponent: n,
1827
+ FallbackComponent: s,
1785
1828
  fallback: a
1786
1829
  } = this.props, {
1787
1830
  didCatch: i,
@@ -1795,14 +1838,14 @@ class cn extends Mr {
1795
1838
  };
1796
1839
  if (typeof r == "function")
1797
1840
  f = r(h);
1798
- else if (n)
1799
- f = Be(n, h);
1841
+ else if (s)
1842
+ f = Be(s, h);
1800
1843
  else if (a !== void 0)
1801
1844
  f = a;
1802
1845
  else
1803
1846
  throw o;
1804
1847
  }
1805
- return Be(on.Provider, {
1848
+ return Be(ls.Provider, {
1806
1849
  value: {
1807
1850
  didCatch: i,
1808
1851
  error: o,
@@ -1811,35 +1854,35 @@ class cn extends Mr {
1811
1854
  }, f);
1812
1855
  }
1813
1856
  }
1814
- function ln() {
1857
+ function ds() {
1815
1858
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1816
- return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
1859
+ return t.length !== e.length || t.some((r, s) => !Object.is(r, e[s]));
1817
1860
  }
1818
- let un = () => ({
1861
+ let fs = () => ({
1819
1862
  emit(t, ...e) {
1820
- for (let r = this.events[t] || [], n = 0, a = r.length; n < a; n++)
1821
- r[n](...e);
1863
+ for (let r = this.events[t] || [], s = 0, a = r.length; s < a; s++)
1864
+ r[s](...e);
1822
1865
  },
1823
1866
  events: {},
1824
1867
  on(t, e) {
1825
1868
  var r;
1826
1869
  return ((r = this.events)[t] || (r[t] = [])).push(e), () => {
1827
- var n;
1828
- this.events[t] = (n = this.events[t]) == null ? void 0 : n.filter((a) => e !== a);
1870
+ var s;
1871
+ this.events[t] = (s = this.events[t]) == null ? void 0 : s.filter((a) => e !== a);
1829
1872
  };
1830
1873
  }
1831
1874
  });
1832
- class dn {
1875
+ class hs {
1833
1876
  constructor(e, r) {
1834
- O(this, "plugins");
1835
- O(this, "sidebars");
1836
- O(this, "topNavigation");
1837
- O(this, "meta");
1838
- O(this, "page");
1839
- O(this, "authentication");
1840
- O(this, "navigationPlugins");
1841
- O(this, "emitter", un());
1842
- O(this, "initialize", async () => {
1877
+ A(this, "plugins");
1878
+ A(this, "sidebars");
1879
+ A(this, "topNavigation");
1880
+ A(this, "meta");
1881
+ A(this, "page");
1882
+ A(this, "authentication");
1883
+ A(this, "navigationPlugins");
1884
+ A(this, "emitter", fs());
1885
+ A(this, "initialize", async () => {
1843
1886
  await Promise.all(
1844
1887
  this.plugins.filter(Jr).map((e) => {
1845
1888
  var r;
@@ -1847,31 +1890,31 @@ class dn {
1847
1890
  })
1848
1891
  );
1849
1892
  });
1850
- O(this, "getApiIdentities", async () => (await Promise.all(
1851
- this.plugins.filter(es).map((r) => r.getIdentities(this))
1893
+ A(this, "getApiIdentities", async () => (await Promise.all(
1894
+ this.plugins.filter(en).map((r) => r.getIdentities(this))
1852
1895
  )).flat());
1853
- O(this, "emitEvent", (e, ...r) => this.emitter.emit(e, ...r));
1854
- O(this, "getPluginSidebar", async (e) => (await Promise.all(
1896
+ A(this, "emitEvent", (e, ...r) => this.emitter.emit(e, ...r));
1897
+ A(this, "getPluginSidebar", async (e) => (await Promise.all(
1855
1898
  this.navigationPlugins.map(
1856
- (n) => {
1899
+ (s) => {
1857
1900
  var a;
1858
- return (a = n.getSidebar) == null ? void 0 : a.call(n, yr(e), this);
1901
+ return (a = s.getSidebar) == null ? void 0 : a.call(s, yr(e), this);
1859
1902
  }
1860
1903
  )
1861
- )).flatMap((n) => n ?? []));
1862
- O(this, "signRequest", async (e) => {
1904
+ )).flatMap((s) => s ?? []));
1905
+ A(this, "signRequest", async (e) => {
1863
1906
  if (!this.authentication)
1864
1907
  throw new Error("No authentication provider configured");
1865
1908
  return await this.authentication.signRequest(e);
1866
1909
  });
1867
- this.options = e, this.queryClient = r, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Gr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
1868
- Xr(n) && ss(n.events).forEach(([a, i]) => {
1910
+ this.options = e, this.queryClient = r, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Gr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((s) => {
1911
+ Xr(s) && nn(s.events).forEach(([a, i]) => {
1869
1912
  this.emitter.on(a, i);
1870
1913
  });
1871
- }), xr.subscribe((n, a) => {
1914
+ }), xr.subscribe((s, a) => {
1872
1915
  this.emitEvent("auth", {
1873
1916
  prev: a,
1874
- next: n
1917
+ next: s
1875
1918
  });
1876
1919
  });
1877
1920
  }
@@ -1879,95 +1922,95 @@ class dn {
1879
1922
  return this.emitter.on(e, r);
1880
1923
  }
1881
1924
  }
1882
- function fn({ error: t, resetErrorBoundary: e }) {
1883
- return /* @__PURE__ */ s.jsx(pt, { error: t });
1925
+ function ms({ error: t, resetErrorBoundary: e }) {
1926
+ return /* @__PURE__ */ n.jsx(gt, { error: t });
1884
1927
  }
1885
1928
  const de = globalThis;
1886
1929
  (!de.requestIdleCallback || !de.cancelIdleCallback) && (de.requestIdleCallback = (t) => setTimeout(t, 1), de.cancelIdleCallback = clearTimeout);
1887
1930
  const $t = {
1888
1931
  Header: kt
1889
- }, hn = Me($t), mn = hn.Provider, pn = () => {
1890
- const t = pe(), e = I(), r = G(void 0);
1932
+ }, gs = Oe($t), ps = gs.Provider, vs = () => {
1933
+ const t = ge(), e = F(), r = G(void 0);
1891
1934
  return Q(() => {
1892
1935
  e.emitEvent("location", {
1893
1936
  from: r.current,
1894
1937
  to: t
1895
1938
  }), r.current = t;
1896
1939
  }, [e, t]), null;
1897
- }, gn = ({
1940
+ }, xs = ({
1898
1941
  children: t,
1899
1942
  context: e
1900
1943
  }) => (br({
1901
1944
  queryFn: async () => (await e.initialize(), !0),
1902
1945
  queryKey: ["zudoku-initialize"]
1903
- }), /* @__PURE__ */ s.jsx(jr.Provider, { value: e, children: t }));
1904
- let Pe;
1905
- const Ft = vt(
1946
+ }), /* @__PURE__ */ n.jsx(jr.Provider, { value: e, children: t }));
1947
+ let Se;
1948
+ const It = vt(
1906
1949
  ({ children: t, ...e }) => {
1907
- var g, y;
1908
- const r = ye(
1950
+ var p, y;
1951
+ const r = be(
1909
1952
  () => ({ ...$t, ...e.overrides }),
1910
1953
  [e.overrides]
1911
- ), n = pe(), a = ye(() => {
1912
- var p;
1954
+ ), s = ge(), a = be(() => {
1955
+ var g;
1913
1956
  return {
1914
- ...(e.plugins ?? []).filter(ts).flatMap(
1957
+ ...(e.plugins ?? []).filter(tn).flatMap(
1915
1958
  (C) => C.getMdxComponents ? [C.getMdxComponents()] : []
1916
1959
  ).reduce(
1917
1960
  (C, N) => ({ ...C, ...N }),
1918
1961
  {}
1919
1962
  ),
1920
1963
  ...$r,
1921
- ...(p = e.mdx) == null ? void 0 : p.components
1964
+ ...(g = e.mdx) == null ? void 0 : g.components
1922
1965
  };
1923
- }, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: i } = Or(Ee), [o, f] = J(!1), h = ye(
1966
+ }, [(p = e.mdx) == null ? void 0 : p.components, e.plugins]), { stagger: i } = Or(Ne), [o, f] = J(!1), h = be(
1924
1967
  () => o ? { stagger: !0 } : { stagger: i },
1925
1968
  [i, o]
1926
- ), l = ge(), b = ft();
1969
+ ), l = pe(), b = ft();
1927
1970
  Q(() => {
1928
1971
  o || f(!0);
1929
- }, [o, l.location]), Pe || (Pe = new dn(e, b));
1972
+ }, [o, l.location]), Se || (Se = new hs(e, b));
1930
1973
  const x = (y = e.plugins) == null ? void 0 : y.flatMap(
1931
1974
  (m) => {
1932
- var p;
1933
- return rs(m) ? ((p = m.getHead) == null ? void 0 : p.call(m, { location: n })) ?? [] : [];
1975
+ var g;
1976
+ return rn(m) ? ((g = m.getHead) == null ? void 0 : g.call(m, { location: s })) ?? [] : [];
1934
1977
  }
1935
- ).map((m, p) => /* @__PURE__ */ s.jsx(Ne, { children: m }, p));
1936
- return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1978
+ ).map((m, g) => /* @__PURE__ */ n.jsx(Te, { children: m }, g));
1979
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1937
1980
  x,
1938
- /* @__PURE__ */ s.jsx(Ee.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(gn, { context: Pe, children: [
1939
- /* @__PURE__ */ s.jsx(pn, {}),
1940
- /* @__PURE__ */ s.jsx(gs, { components: a, children: /* @__PURE__ */ s.jsx(or, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(mn, { value: r, children: /* @__PURE__ */ s.jsx(Sr, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(Fr, { children: t ?? /* @__PURE__ */ s.jsx(lt, {}) }) }) }) }) })
1981
+ /* @__PURE__ */ n.jsx(Ne.Provider, { value: h, children: /* @__PURE__ */ n.jsxs(xs, { context: Se, children: [
1982
+ /* @__PURE__ */ n.jsx(vs, {}),
1983
+ /* @__PURE__ */ n.jsx(vn, { components: a, children: /* @__PURE__ */ n.jsx(or, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ n.jsx(ps, { value: r, children: /* @__PURE__ */ n.jsx(Sr, { slotlets: e.slotlets, children: /* @__PURE__ */ n.jsx(Ir, { children: t ?? /* @__PURE__ */ n.jsx(lt, {}) }) }) }) }) })
1941
1984
  ] }) })
1942
1985
  ] });
1943
1986
  }
1944
1987
  );
1945
- Ft.displayName = "ZudokoInner";
1946
- const It = (t) => /* @__PURE__ */ s.jsx(cn, { FallbackComponent: fn, children: /* @__PURE__ */ s.jsx(Ft, { ...t }) });
1947
- It.displayName = "Zudoku";
1948
- const Ln = Pt, Bn = rn, Hn = Cr, Kn = Ps, Un = Es, Yn = Ns, Zn = ar, Vn = Ne, vn = I, Wn = ae, Gn = wr, Xn = Pr, Jn = It, ea = an, ta = Nr, ra = Ir, sa = xt, na = Ae, aa = Er, oa = Te, ia = ct;
1988
+ It.displayName = "ZudokoInner";
1989
+ const Ft = (t) => /* @__PURE__ */ n.jsx(us, { FallbackComponent: ms, children: /* @__PURE__ */ n.jsx(It, { ...t }) });
1990
+ Ft.displayName = "Zudoku";
1991
+ const Hs = Pt, Ks = as, Us = Cr, Ys = Sn, Zs = Nn, Vs = Tn, Ws = ar, Gs = Te, ys = F, Xs = ae, Js = wr, ea = Pr, ta = Ft, ra = cs, na = Nr, sa = Fr, aa = xt, oa = ve, ia = Er, ca = Me, la = ct;
1949
1992
  export {
1950
- aa as B,
1951
- Xn as C,
1952
- Vn as H,
1953
- oa as L,
1954
- ra as M,
1955
- Hn as R,
1956
- Kn as S,
1957
- Jn as Z,
1958
- Wn as a,
1959
- vn as b,
1960
- Ln as c,
1961
- Bn as d,
1962
- Un as e,
1963
- Yn as f,
1964
- Zn as g,
1965
- Gn as h,
1966
- ea as i,
1967
- ta as j,
1968
- sa as k,
1969
- na as l,
1970
- ia as m,
1993
+ ia as B,
1994
+ ea as C,
1995
+ Gs as H,
1996
+ ca as L,
1997
+ sa as M,
1998
+ Us as R,
1999
+ Ys as S,
2000
+ ta as Z,
2001
+ Xs as a,
2002
+ ys as b,
2003
+ Hs as c,
2004
+ Ks as d,
2005
+ Zs as e,
2006
+ Vs as f,
2007
+ Ws as g,
2008
+ Js as h,
2009
+ ra as i,
2010
+ na as j,
2011
+ aa as k,
2012
+ oa as l,
2013
+ la as m,
1971
2014
  Pt as u
1972
2015
  };
1973
- //# sourceMappingURL=index-D48iOQvJ.js.map
2016
+ //# sourceMappingURL=index-tpbiZmWp.js.map