zudoku 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/dist/app/main.d.ts +1 -1
  2. package/dist/app/main.js +19 -7
  3. package/dist/app/main.js.map +1 -1
  4. package/dist/config/config.d.ts +1 -0
  5. package/dist/config/validators/InputSidebarSchema.d.ts +2 -2
  6. package/dist/config/validators/common.d.ts +78 -0
  7. package/dist/config/validators/common.js +6 -0
  8. package/dist/config/validators/common.js.map +1 -1
  9. package/dist/config/validators/validate.d.ts +34 -0
  10. package/dist/lib/authentication/providers/auth0.js +1 -1
  11. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  12. package/dist/lib/authentication/providers/openid.d.ts +1 -1
  13. package/dist/lib/authentication/providers/openid.js +10 -6
  14. package/dist/lib/authentication/providers/openid.js.map +1 -1
  15. package/dist/lib/components/AnchorLink.js +5 -2
  16. package/dist/lib/components/AnchorLink.js.map +1 -1
  17. package/dist/lib/components/Autocomplete.d.ts +12 -0
  18. package/dist/lib/components/Autocomplete.js +47 -0
  19. package/dist/lib/components/Autocomplete.js.map +1 -0
  20. package/dist/lib/components/Header.js +4 -4
  21. package/dist/lib/components/Header.js.map +1 -1
  22. package/dist/lib/components/Heading.d.ts +1 -1
  23. package/dist/lib/components/Markdown.d.ts +2 -2
  24. package/dist/lib/components/Markdown.js +3 -1
  25. package/dist/lib/components/Markdown.js.map +1 -1
  26. package/dist/lib/components/StatusPage.d.ts +7 -0
  27. package/dist/lib/components/StatusPage.js +71 -0
  28. package/dist/lib/components/StatusPage.js.map +1 -0
  29. package/dist/lib/components/SyntaxHighlight.d.ts +2 -1
  30. package/dist/lib/components/SyntaxHighlight.js +2 -2
  31. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  32. package/dist/lib/components/ThemeSwitch.js +4 -4
  33. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  34. package/dist/lib/components/cache.d.ts +6 -0
  35. package/dist/lib/components/cache.js +13 -0
  36. package/dist/lib/components/cache.js.map +1 -0
  37. package/dist/lib/components/context/ViewportAnchorContext.js +16 -4
  38. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  39. package/dist/lib/components/context/ZudokuContext.js +2 -1
  40. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  41. package/dist/lib/components/index.d.ts +9 -2
  42. package/dist/lib/components/index.js +5 -2
  43. package/dist/lib/components/index.js.map +1 -1
  44. package/dist/lib/core/RouteGuard.d.ts +1 -0
  45. package/dist/lib/core/RouteGuard.js +28 -0
  46. package/dist/lib/core/RouteGuard.js.map +1 -0
  47. package/dist/lib/core/ZudokuContext.d.ts +4 -2
  48. package/dist/lib/core/ZudokuContext.js +9 -7
  49. package/dist/lib/core/ZudokuContext.js.map +1 -1
  50. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  51. package/dist/lib/oas/graphql/circular.js +27 -0
  52. package/dist/lib/oas/graphql/circular.js.map +1 -0
  53. package/dist/lib/oas/graphql/index.js +5 -6
  54. package/dist/lib/oas/graphql/index.js.map +1 -1
  55. package/dist/lib/oas/parser/dereference/index.d.ts +0 -1
  56. package/dist/lib/oas/parser/dereference/index.js +1 -1
  57. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  58. package/dist/lib/plugins/markdown/MdxPage.js +8 -2
  59. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  60. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  61. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  62. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  63. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  64. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -1
  65. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -2
  66. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  67. package/dist/lib/plugins/openapi/Sidecar.js +3 -3
  68. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  69. package/dist/lib/plugins/openapi/index.js +4 -11
  70. package/dist/lib/plugins/openapi/index.js.map +1 -1
  71. package/dist/lib/plugins/openapi/interfaces.d.ts +7 -2
  72. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  73. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +12 -0
  74. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  75. package/dist/lib/plugins/openapi/playground/Headers.js +67 -4
  76. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  77. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +5 -0
  78. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +4 -0
  79. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  80. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -12
  81. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  82. package/dist/lib/plugins/openapi/playground/Playground.d.ts +18 -1
  83. package/dist/lib/plugins/openapi/playground/Playground.js +53 -40
  84. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  85. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  86. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  87. package/dist/lib/plugins/openapi/playground/QueryParams.js +21 -30
  88. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  89. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  90. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  91. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  92. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  93. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  94. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  95. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  96. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +95 -0
  97. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  98. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +7 -0
  99. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +16 -0
  100. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  101. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  102. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  103. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  104. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  105. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  106. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  107. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +2 -1
  108. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +5 -3
  109. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -1
  110. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +49 -0
  111. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -1
  112. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
  113. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
  114. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
  115. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
  116. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
  117. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
  118. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +1 -1
  119. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
  120. package/dist/lib/ui/Command.d.ts +9 -1
  121. package/dist/lib/ui/Command.js +5 -1
  122. package/dist/lib/ui/Command.js.map +1 -1
  123. package/dist/lib/ui/Select.js +2 -2
  124. package/dist/lib/ui/Select.js.map +1 -1
  125. package/dist/lib/util/MdxComponents.js +2 -2
  126. package/dist/lib/util/MdxComponents.js.map +1 -1
  127. package/dist/lib/util/joinUrl.d.ts +1 -0
  128. package/dist/lib/util/joinUrl.js +40 -0
  129. package/dist/lib/util/joinUrl.js.map +1 -0
  130. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  131. package/dist/lib/util/useScrollToAnchor.js +26 -15
  132. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  133. package/dist/vite/build.js +10 -10
  134. package/dist/vite/build.js.map +1 -1
  135. package/dist/vite/config.js +4 -1
  136. package/dist/vite/config.js.map +1 -1
  137. package/dist/vite/dev-server.js +4 -1
  138. package/dist/vite/dev-server.js.map +1 -1
  139. package/dist/vite/plugin-api.d.ts +1 -1
  140. package/dist/vite/plugin-api.js +31 -7
  141. package/dist/vite/plugin-api.js.map +1 -1
  142. package/dist/vite/plugin-auth.js +4 -1
  143. package/dist/vite/plugin-auth.js.map +1 -1
  144. package/dist/vite/plugin-mdx.js +9 -4
  145. package/dist/vite/plugin-mdx.js.map +1 -1
  146. package/dist/vite/prerender.d.ts +2 -2
  147. package/dist/vite/prerender.js +5 -4
  148. package/dist/vite/prerender.js.map +1 -1
  149. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  150. package/dist/zuplo/enrich-with-zuplo.js +184 -0
  151. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  152. package/dist/zuplo/env.d.ts +1 -0
  153. package/dist/zuplo/env.js +3 -0
  154. package/dist/zuplo/env.js.map +1 -1
  155. package/dist/zuplo/policy-types.d.ts +33 -0
  156. package/dist/zuplo/policy-types.js +8 -0
  157. package/dist/zuplo/policy-types.js.map +1 -0
  158. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  159. package/dist/zuplo/with-zuplo-processors.js +26 -0
  160. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  161. package/dist/zuplo/with-zuplo.d.ts +1 -1
  162. package/dist/zuplo/with-zuplo.js +7 -26
  163. package/dist/zuplo/with-zuplo.js.map +1 -1
  164. package/lib/{AuthenticationPlugin-DNXBcsVN.js → AuthenticationPlugin-CO_YCd2x.js} +3 -3
  165. package/lib/{AuthenticationPlugin-DNXBcsVN.js.map → AuthenticationPlugin-CO_YCd2x.js.map} +1 -1
  166. package/lib/{Markdown-BrfrjEk_.js → Markdown-B8o9Qz4q.js} +1197 -1186
  167. package/lib/{Markdown-BrfrjEk_.js.map → Markdown-B8o9Qz4q.js.map} +1 -1
  168. package/lib/{MdxPage-LNZLj_A5.js → MdxPage-BxRt3Ly7.js} +63 -58
  169. package/lib/MdxPage-BxRt3Ly7.js.map +1 -0
  170. package/lib/OperationList-DH-zIgtq.js +5160 -0
  171. package/lib/OperationList-DH-zIgtq.js.map +1 -0
  172. package/lib/{Route-Pzk6qwIk.js → Route-DJ0ZlVq1.js} +3 -3
  173. package/lib/{Route-Pzk6qwIk.js.map → Route-DJ0ZlVq1.js.map} +1 -1
  174. package/lib/{Select-DkOpAG0c.js → Select-B7UXR0SB.js} +61 -61
  175. package/lib/Select-B7UXR0SB.js.map +1 -0
  176. package/lib/{SlotletProvider-DPbx9KdU.js → SlotletProvider-CtIp8rP3.js} +4 -4
  177. package/lib/{SlotletProvider-DPbx9KdU.js.map → SlotletProvider-CtIp8rP3.js.map} +1 -1
  178. package/lib/{Button-oroWHXAy.js → Spinner-BlzrEEk1.js} +15 -12
  179. package/lib/Spinner-BlzrEEk1.js.map +1 -0
  180. package/lib/{SyntaxHighlight-CJCSPG1F.js → SyntaxHighlight-C1w1QPdY.js} +300 -295
  181. package/lib/{SyntaxHighlight-CJCSPG1F.js.map → SyntaxHighlight-C1w1QPdY.js.map} +1 -1
  182. package/lib/{ZudokuContext-D3ayHjP-.js → ZudokuContext-8jts0fF3.js} +259 -248
  183. package/lib/ZudokuContext-8jts0fF3.js.map +1 -0
  184. package/lib/{chunk-SYFQ2XB5-KWlHsT7t.js → chunk-SYFQ2XB5-BPvC-soB.js} +6 -5
  185. package/lib/{chunk-SYFQ2XB5-KWlHsT7t.js.map → chunk-SYFQ2XB5-BPvC-soB.js.map} +1 -1
  186. package/lib/circular-Dgpd6AN-.js +15397 -0
  187. package/lib/circular-Dgpd6AN-.js.map +1 -0
  188. package/lib/{createServer-BcaswoFO.js → createServer-BV0tHzLK.js} +3450 -5577
  189. package/lib/createServer-BV0tHzLK.js.map +1 -0
  190. package/lib/{hook-DUyACbIK.js → hook-BG02esyv.js} +2 -2
  191. package/lib/{hook-DUyACbIK.js.map → hook-BG02esyv.js.map} +1 -1
  192. package/lib/index-B7mqiOei.js +509 -0
  193. package/lib/index-B7mqiOei.js.map +1 -0
  194. package/lib/index-DmqsUPcm.js +1915 -0
  195. package/lib/index-DmqsUPcm.js.map +1 -0
  196. package/lib/joinUrl-BTy9bvoK.js +20 -0
  197. package/lib/joinUrl-BTy9bvoK.js.map +1 -0
  198. package/lib/post-processors/removeExtensions.js +7 -7
  199. package/lib/post-processors/removeExtensions.js.map +1 -1
  200. package/lib/post-processors/removeParameters.js +48 -0
  201. package/lib/post-processors/removeParameters.js.map +1 -0
  202. package/lib/ui/ActionButton.js +10 -11
  203. package/lib/ui/ActionButton.js.map +1 -1
  204. package/lib/ui/Command.js +125 -13
  205. package/lib/ui/Command.js.map +1 -1
  206. package/lib/ui/Select.js +2 -2
  207. package/lib/ui/Select.js.map +1 -1
  208. package/lib/{useExposedProps-BBHR7aLM.js → useExposedProps-BLKFBylA.js} +2 -2
  209. package/lib/{useExposedProps-BBHR7aLM.js.map → useExposedProps-BLKFBylA.js.map} +1 -1
  210. package/lib/useScrollToAnchor-Bl6mz9_x.js +288 -0
  211. package/lib/useScrollToAnchor-Bl6mz9_x.js.map +1 -0
  212. package/lib/zudoku.auth-auth0.js +7 -9
  213. package/lib/zudoku.auth-auth0.js.map +1 -1
  214. package/lib/zudoku.auth-clerk.js +1 -1
  215. package/lib/zudoku.auth-openid.js +223 -219
  216. package/lib/zudoku.auth-openid.js.map +1 -1
  217. package/lib/zudoku.components.js +754 -992
  218. package/lib/zudoku.components.js.map +1 -1
  219. package/lib/zudoku.plugin-api-catalog.js +3 -3
  220. package/lib/zudoku.plugin-api-keys.js +5 -5
  221. package/lib/zudoku.plugin-custom-pages.js +2 -2
  222. package/lib/zudoku.plugin-markdown.js +1 -1
  223. package/lib/zudoku.plugin-openapi.js +4 -4
  224. package/lib/zudoku.plugin-redirect.js +1 -1
  225. package/package.json +2 -2
  226. package/src/app/main.css +50 -50
  227. package/src/app/main.tsx +26 -7
  228. package/src/lib/authentication/providers/auth0.tsx +1 -4
  229. package/src/lib/authentication/providers/openid.tsx +12 -5
  230. package/src/lib/components/AnchorLink.tsx +5 -2
  231. package/src/lib/components/Autocomplete.tsx +111 -0
  232. package/src/lib/components/Header.tsx +4 -4
  233. package/src/lib/components/Markdown.tsx +14 -15
  234. package/src/lib/components/StatusPage.tsx +91 -0
  235. package/src/lib/components/SyntaxHighlight.tsx +14 -0
  236. package/src/lib/components/ThemeSwitch.tsx +14 -15
  237. package/src/lib/components/cache.ts +15 -0
  238. package/src/lib/components/context/ViewportAnchorContext.tsx +20 -6
  239. package/src/lib/components/context/ZudokuContext.ts +3 -1
  240. package/src/lib/components/index.ts +9 -2
  241. package/src/lib/core/RouteGuard.tsx +35 -0
  242. package/src/lib/core/ZudokuContext.ts +9 -8
  243. package/src/lib/oas/graphql/circular.ts +29 -0
  244. package/src/lib/oas/graphql/index.ts +9 -9
  245. package/src/lib/oas/parser/dereference/index.ts +1 -2
  246. package/src/lib/plugins/markdown/MdxPage.tsx +9 -1
  247. package/src/lib/plugins/openapi/OperationListItem.tsx +0 -2
  248. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -0
  249. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +5 -0
  250. package/src/lib/plugins/openapi/Sidecar.tsx +4 -2
  251. package/src/lib/plugins/openapi/index.tsx +9 -15
  252. package/src/lib/plugins/openapi/interfaces.ts +10 -2
  253. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +54 -0
  254. package/src/lib/plugins/openapi/playground/Headers.tsx +136 -39
  255. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +8 -0
  256. package/src/lib/plugins/openapi/playground/PathParams.tsx +34 -74
  257. package/src/lib/plugins/openapi/playground/Playground.tsx +219 -177
  258. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  259. package/src/lib/plugins/openapi/playground/QueryParams.tsx +90 -122
  260. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  261. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  262. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +210 -0
  263. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +101 -0
  264. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  265. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  266. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +58 -0
  267. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +7 -4
  268. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
  269. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
  270. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +1 -1
  271. package/src/lib/ui/Command.tsx +20 -0
  272. package/src/lib/ui/Select.tsx +1 -1
  273. package/src/lib/util/MdxComponents.tsx +2 -1
  274. package/src/lib/util/joinUrl.ts +57 -0
  275. package/src/lib/util/useScrollToAnchor.ts +32 -15
  276. package/dist/lib/plugins/openapi/playground/EnumSelector.d.ts +0 -8
  277. package/dist/lib/plugins/openapi/playground/EnumSelector.js +0 -21
  278. package/dist/lib/plugins/openapi/playground/EnumSelector.js.map +0 -1
  279. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  280. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  281. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  282. package/lib/AnchorLink-_Vu02ceN.js +0 -34
  283. package/lib/AnchorLink-_Vu02ceN.js.map +0 -1
  284. package/lib/Button-oroWHXAy.js.map +0 -1
  285. package/lib/Command-D5DE0DD7.js +0 -611
  286. package/lib/Command-D5DE0DD7.js.map +0 -1
  287. package/lib/MdxPage-LNZLj_A5.js.map +0 -1
  288. package/lib/OperationList-PCwzTp1r.js +0 -5144
  289. package/lib/OperationList-PCwzTp1r.js.map +0 -1
  290. package/lib/Select-DkOpAG0c.js.map +0 -1
  291. package/lib/Spinner-C5gHXrVz.js +0 -7
  292. package/lib/Spinner-C5gHXrVz.js.map +0 -1
  293. package/lib/ZudokuContext-D3ayHjP-.js.map +0 -1
  294. package/lib/createServer-BcaswoFO.js.map +0 -1
  295. package/lib/index-CaILD1AV.js +0 -1292
  296. package/lib/index-CaILD1AV.js.map +0 -1
  297. package/lib/index-TaRXY2w1.js +0 -43
  298. package/lib/index-TaRXY2w1.js.map +0 -1
  299. package/src/lib/plugins/openapi/playground/EnumSelector.tsx +0 -86
  300. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
@@ -1,583 +1,582 @@
1
- var ht = Object.defineProperty;
2
- var je = (e) => {
3
- throw TypeError(e);
1
+ var ot = Object.defineProperty;
2
+ var fe = (t) => {
3
+ throw TypeError(t);
4
4
  };
5
- var ft = (e, t, s) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
6
- var k = (e, t, s) => ft(e, typeof t != "symbol" ? t + "" : t, s), we = (e, t, s) => t.has(e) || je("Cannot " + s);
7
- var c = (e, t, s) => (we(e, t, "read from private field"), s ? s.call(e) : t.get(e)), j = (e, t, s) => t.has(e) ? je("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), b = (e, t, s, r) => (we(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s);
8
- var J = (e, t, s, r) => ({
5
+ var lt = (t, e, n) => e in t ? ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var P = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n), me = (t, e, n) => e.has(t) || fe("Cannot " + n);
7
+ var l = (t, e, n) => (me(t, e, "read from private field"), n ? n.call(t) : e.get(t)), j = (t, e, n) => e.has(t) ? fe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), y = (t, e, n, s) => (me(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n);
8
+ var _ = (t, e, n, s) => ({
9
9
  set _(a) {
10
- b(e, t, a, s);
10
+ y(t, e, a, n);
11
11
  },
12
12
  get _() {
13
- return c(e, t, r);
13
+ return l(t, e, s);
14
14
  }
15
15
  });
16
- import { a as Be, H as ue } from "./index.esm-9-TF9KQB.js";
17
- import { R as gt, S as mt, e as pt, f as se, b as xt, u as he, g as fe, L as ge, O as ze } from "./chunk-SYFQ2XB5-KWlHsT7t.js";
18
- import { M as yt, u as W } from "./hook-DUyACbIK.js";
19
- import { E as He, S as M, a as bt, R as vt } from "./SlotletProvider-DPbx9KdU.js";
20
- import { j as n } from "./jsx-runtime-Bdg6XQ1m.js";
21
- import { Button as jt } from "./ui/Button.js";
22
- import { Callout as wt } from "./ui/Callout.js";
23
- import { S as Le } from "./Spinner-C5gHXrVz.js";
24
- import { u as me, a as kt, V as Ct, M as Nt } from "./Markdown-BrfrjEk_.js";
25
- import { S as Ke, l as $e, Q as Pt, n as w, m as ke, o as Ce, p as D, q as St, r as Mt, t as Ot, v as Dt, w as Ne, x as Pe, y as At, h as Se, z as Me, A as Et, e as It, B as Ze, C as Qt, j as R, a as q, D as Ve, E as Tt, u as qt, Z as Rt } from "./ZudokuContext-D3ayHjP-.js";
26
- import * as Z from "react";
27
- import Ft, { StrictMode as Ue, useState as T, useEffect as F, useRef as pe, useCallback as Bt, Suspense as xe, memo as We, forwardRef as zt, createContext as _e, Component as Ht, createElement as Oe, useMemo as ne, useContext as Lt, Fragment as Kt } from "react";
28
- import * as $t from "react-dom";
29
- import { S as le } from "./StaggeredRender-DgsamH_G.js";
30
- import { C as ye } from "./ClientOnly-E7hGysn1.js";
31
- import { ChevronRightIcon as Zt, ExternalLinkIcon as Vt, CircleXIcon as Ut, SearchIcon as Wt, MoonStarIcon as _t, SunIcon as Xt, MenuIcon as Yt, PanelLeftIcon as Jt } from "lucide-react";
32
- import { Drawer as Xe, DrawerTrigger as Ye, DrawerContent as Je, DrawerTitle as Ge } from "./ui/Drawer.js";
33
- import { c as O } from "./cn-qaFjX9_3.js";
34
- import { c as Gt, a as es } from "./index-Djenk2Hj.js";
35
- import { A as ts, M as ss, u as ns } from "./AnchorLink-_Vu02ceN.js";
36
- import * as re from "@radix-ui/react-collapsible";
37
- import { B as ce } from "./Button-oroWHXAy.js";
38
- import { DropdownMenu as rs, DropdownMenuTrigger as as, DropdownMenuContent as is, DropdownMenuLabel as os, DropdownMenuSeparator as ae, DropdownMenuSub as ls, DropdownMenuSubTrigger as cs, DropdownMenuPortal as ds, DropdownMenuSubContent as us, DropdownMenuItem as hs } from "./ui/DropdownMenu.js";
39
- import { VisuallyHidden as et } from "@radix-ui/react-visually-hidden";
40
- import { z as fs, J as gs } from "./SyntaxHighlight-CJCSPG1F.js";
41
- import { Z as ms } from "./invariant-Caa8-XvF.js";
42
- var S, qe, ps = (qe = class extends Ke {
43
- constructor(t = {}) {
16
+ import { a as Qe, H as ie } from "./index.esm-9-TF9KQB.js";
17
+ import { R as ct, S as ut, u as Ie, h as oe, N as dt, L as le, O as Te } from "./chunk-SYFQ2XB5-BPvC-soB.js";
18
+ import { M as ht, u as Z } from "./hook-BG02esyv.js";
19
+ import { E as qe, S as M, a as ft, R as mt } from "./SlotletProvider-CtIp8rP3.js";
20
+ import { j as r } from "./jsx-runtime-Bdg6XQ1m.js";
21
+ import { Button as gt } from "./ui/Button.js";
22
+ import { Callout as pt } from "./ui/Callout.js";
23
+ import { S as Re, k as Fe, Q as xt, n as w, m as ge, l as pe, o as N, p as yt, q as vt, r as bt, t as jt, v as xe, w as ye, x as wt, h as ve, y as be, z as Pt, e as Ct, A as ze, a as I, B as Be, C as St, j as se, u as kt, Z as Dt, D as Mt, E as Nt } from "./ZudokuContext-8jts0fF3.js";
24
+ import * as K from "react";
25
+ import Ot, { StrictMode as He, useRef as ce, useEffect as U, useState as z, useCallback as Et, Suspense as ue, memo as Le, forwardRef as At, createContext as Ke, Component as Qt, createElement as je, useMemo as ee, useContext as It, Fragment as Tt } from "react";
26
+ import * as qt from "react-dom";
27
+ import { S as re } from "./StaggeredRender-DgsamH_G.js";
28
+ import { C as $e } from "./ClientOnly-E7hGysn1.js";
29
+ import { CircleXIcon as Rt, SearchIcon as Ft, MoonStarIcon as zt, SunIcon as Bt, MenuIcon as Ht, PanelLeftIcon as Lt } from "lucide-react";
30
+ import { Drawer as Ze, DrawerTrigger as Ue, DrawerContent as Ye, DrawerTitle as Xe } from "./ui/Drawer.js";
31
+ import { c as B } from "./cn-qaFjX9_3.js";
32
+ import { S as we, a as Kt, M as $t, u as Zt } from "./useScrollToAnchor-Bl6mz9_x.js";
33
+ import { u as Ut, a as Yt, V as Xt, M as Vt } from "./Markdown-B8o9Qz4q.js";
34
+ import { B as ae, S as Ve } from "./Spinner-BlzrEEk1.js";
35
+ import { DropdownMenu as _t, DropdownMenuTrigger as Wt, DropdownMenuContent as Jt, DropdownMenuLabel as Gt, DropdownMenuSeparator as te, DropdownMenuSub as en, DropdownMenuSubTrigger as tn, DropdownMenuPortal as nn, DropdownMenuSubContent as sn, DropdownMenuItem as rn } from "./ui/DropdownMenu.js";
36
+ import { j as Pe } from "./joinUrl-BTy9bvoK.js";
37
+ import { VisuallyHidden as _e } from "@radix-ui/react-visually-hidden";
38
+ import { z as an, J as on } from "./SyntaxHighlight-C1w1QPdY.js";
39
+ import { a as ln } from "./index-Djenk2Hj.js";
40
+ import { Z as cn } from "./invariant-Caa8-XvF.js";
41
+ var D, Oe, un = (Oe = class extends Re {
42
+ constructor(e = {}) {
44
43
  super();
45
- j(this, S);
46
- this.config = t, b(this, S, /* @__PURE__ */ new Map());
44
+ j(this, D);
45
+ this.config = e, y(this, D, /* @__PURE__ */ new Map());
47
46
  }
48
- build(t, s, r) {
49
- const a = s.queryKey, i = s.queryHash ?? $e(a, s);
50
- let o = this.get(i);
51
- return o || (o = new Pt({
47
+ build(e, n, s) {
48
+ const a = n.queryKey, o = n.queryHash ?? Fe(a, n);
49
+ let i = this.get(o);
50
+ return i || (i = new xt({
52
51
  cache: this,
53
52
  queryKey: a,
54
- queryHash: i,
55
- options: t.defaultQueryOptions(s),
56
- state: r,
57
- defaultOptions: t.getQueryDefaults(a)
58
- }), this.add(o)), o;
59
- }
60
- add(t) {
61
- c(this, S).has(t.queryHash) || (c(this, S).set(t.queryHash, t), this.notify({
53
+ queryHash: o,
54
+ options: e.defaultQueryOptions(n),
55
+ state: s,
56
+ defaultOptions: e.getQueryDefaults(a)
57
+ }), this.add(i)), i;
58
+ }
59
+ add(e) {
60
+ l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
62
61
  type: "added",
63
- query: t
62
+ query: e
64
63
  }));
65
64
  }
66
- remove(t) {
67
- const s = c(this, S).get(t.queryHash);
68
- s && (t.destroy(), s === t && c(this, S).delete(t.queryHash), this.notify({ type: "removed", query: t }));
65
+ remove(e) {
66
+ const n = l(this, D).get(e.queryHash);
67
+ n && (e.destroy(), n === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
69
68
  }
70
69
  clear() {
71
70
  w.batch(() => {
72
- this.getAll().forEach((t) => {
73
- this.remove(t);
71
+ this.getAll().forEach((e) => {
72
+ this.remove(e);
74
73
  });
75
74
  });
76
75
  }
77
- get(t) {
78
- return c(this, S).get(t);
76
+ get(e) {
77
+ return l(this, D).get(e);
79
78
  }
80
79
  getAll() {
81
- return [...c(this, S).values()];
80
+ return [...l(this, D).values()];
82
81
  }
83
- find(t) {
84
- const s = { exact: !0, ...t };
82
+ find(e) {
83
+ const n = { exact: !0, ...e };
85
84
  return this.getAll().find(
86
- (r) => ke(s, r)
85
+ (s) => ge(n, s)
87
86
  );
88
87
  }
89
- findAll(t = {}) {
90
- const s = this.getAll();
91
- return Object.keys(t).length > 0 ? s.filter((r) => ke(t, r)) : s;
88
+ findAll(e = {}) {
89
+ const n = this.getAll();
90
+ return Object.keys(e).length > 0 ? n.filter((s) => ge(e, s)) : n;
92
91
  }
93
- notify(t) {
92
+ notify(e) {
94
93
  w.batch(() => {
95
- this.listeners.forEach((s) => {
96
- s(t);
94
+ this.listeners.forEach((n) => {
95
+ n(e);
97
96
  });
98
97
  });
99
98
  }
100
99
  onFocus() {
101
100
  w.batch(() => {
102
- this.getAll().forEach((t) => {
103
- t.onFocus();
101
+ this.getAll().forEach((e) => {
102
+ e.onFocus();
104
103
  });
105
104
  });
106
105
  }
107
106
  onOnline() {
108
107
  w.batch(() => {
109
- this.getAll().forEach((t) => {
110
- t.onOnline();
108
+ this.getAll().forEach((e) => {
109
+ e.onOnline();
111
110
  });
112
111
  });
113
112
  }
114
- }, S = new WeakMap(), qe), A, N, _, Re, xs = (Re = class extends Ke {
115
- constructor(t = {}) {
113
+ }, D = new WeakMap(), Oe), O, S, Y, Ee, dn = (Ee = class extends Re {
114
+ constructor(e = {}) {
116
115
  super();
117
- j(this, A);
118
- j(this, N);
119
- j(this, _);
120
- this.config = t, b(this, A, /* @__PURE__ */ new Set()), b(this, N, /* @__PURE__ */ new Map()), b(this, _, 0);
116
+ j(this, O);
117
+ j(this, S);
118
+ j(this, Y);
119
+ this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, Y, 0);
121
120
  }
122
- build(t, s, r) {
123
- const a = new yt({
121
+ build(e, n, s) {
122
+ const a = new ht({
124
123
  mutationCache: this,
125
- mutationId: ++J(this, _)._,
126
- options: t.defaultMutationOptions(s),
127
- state: r
124
+ mutationId: ++_(this, Y)._,
125
+ options: e.defaultMutationOptions(n),
126
+ state: s
128
127
  });
129
128
  return this.add(a), a;
130
129
  }
131
- add(t) {
132
- c(this, A).add(t);
133
- const s = G(t);
134
- if (typeof s == "string") {
135
- const r = c(this, N).get(s);
136
- r ? r.push(t) : c(this, N).set(s, [t]);
130
+ add(e) {
131
+ l(this, O).add(e);
132
+ const n = W(e);
133
+ if (typeof n == "string") {
134
+ const s = l(this, S).get(n);
135
+ s ? s.push(e) : l(this, S).set(n, [e]);
137
136
  }
138
- this.notify({ type: "added", mutation: t });
139
- }
140
- remove(t) {
141
- if (c(this, A).delete(t)) {
142
- const s = G(t);
143
- if (typeof s == "string") {
144
- const r = c(this, N).get(s);
145
- if (r)
146
- if (r.length > 1) {
147
- const a = r.indexOf(t);
148
- a !== -1 && r.splice(a, 1);
149
- } else r[0] === t && c(this, N).delete(s);
137
+ this.notify({ type: "added", mutation: e });
138
+ }
139
+ remove(e) {
140
+ if (l(this, O).delete(e)) {
141
+ const n = W(e);
142
+ if (typeof n == "string") {
143
+ const s = l(this, S).get(n);
144
+ if (s)
145
+ if (s.length > 1) {
146
+ const a = s.indexOf(e);
147
+ a !== -1 && s.splice(a, 1);
148
+ } else s[0] === e && l(this, S).delete(n);
150
149
  }
151
150
  }
152
- this.notify({ type: "removed", mutation: t });
151
+ this.notify({ type: "removed", mutation: e });
153
152
  }
154
- canRun(t) {
155
- const s = G(t);
156
- if (typeof s == "string") {
157
- const r = c(this, N).get(s), a = r == null ? void 0 : r.find(
158
- (i) => i.state.status === "pending"
153
+ canRun(e) {
154
+ const n = W(e);
155
+ if (typeof n == "string") {
156
+ const s = l(this, S).get(n), a = s == null ? void 0 : s.find(
157
+ (o) => o.state.status === "pending"
159
158
  );
160
- return !a || a === t;
159
+ return !a || a === e;
161
160
  } else
162
161
  return !0;
163
162
  }
164
- runNext(t) {
165
- var r;
166
- const s = G(t);
167
- if (typeof s == "string") {
168
- const a = (r = c(this, N).get(s)) == null ? void 0 : r.find((i) => i !== t && i.state.isPaused);
163
+ runNext(e) {
164
+ var s;
165
+ const n = W(e);
166
+ if (typeof n == "string") {
167
+ const a = (s = l(this, S).get(n)) == null ? void 0 : s.find((o) => o !== e && o.state.isPaused);
169
168
  return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
170
169
  } else
171
170
  return Promise.resolve();
172
171
  }
173
172
  clear() {
174
173
  w.batch(() => {
175
- c(this, A).forEach((t) => {
176
- this.notify({ type: "removed", mutation: t });
177
- }), c(this, A).clear(), c(this, N).clear();
174
+ l(this, O).forEach((e) => {
175
+ this.notify({ type: "removed", mutation: e });
176
+ }), l(this, O).clear(), l(this, S).clear();
178
177
  });
179
178
  }
180
179
  getAll() {
181
- return Array.from(c(this, A));
180
+ return Array.from(l(this, O));
182
181
  }
183
- find(t) {
184
- const s = { exact: !0, ...t };
182
+ find(e) {
183
+ const n = { exact: !0, ...e };
185
184
  return this.getAll().find(
186
- (r) => Ce(s, r)
185
+ (s) => pe(n, s)
187
186
  );
188
187
  }
189
- findAll(t = {}) {
190
- return this.getAll().filter((s) => Ce(t, s));
188
+ findAll(e = {}) {
189
+ return this.getAll().filter((n) => pe(e, n));
191
190
  }
192
- notify(t) {
191
+ notify(e) {
193
192
  w.batch(() => {
194
- this.listeners.forEach((s) => {
195
- s(t);
193
+ this.listeners.forEach((n) => {
194
+ n(e);
196
195
  });
197
196
  });
198
197
  }
199
198
  resumePausedMutations() {
200
- const t = this.getAll().filter((s) => s.state.isPaused);
199
+ const e = this.getAll().filter((n) => n.state.isPaused);
201
200
  return w.batch(
202
201
  () => Promise.all(
203
- t.map((s) => s.continue().catch(D))
202
+ e.map((n) => n.continue().catch(N))
204
203
  )
205
204
  );
206
205
  }
207
- }, A = new WeakMap(), N = new WeakMap(), _ = new WeakMap(), Re);
208
- function G(e) {
209
- var t;
210
- return (t = e.options.scope) == null ? void 0 : t.id;
206
+ }, O = new WeakMap(), S = new WeakMap(), Y = new WeakMap(), Ee);
207
+ function W(t) {
208
+ var e;
209
+ return (e = t.options.scope) == null ? void 0 : e.id;
211
210
  }
212
- function De(e) {
211
+ function Ce(t) {
213
212
  return {
214
- onFetch: (t, s) => {
215
- var f, g, h, p, x;
216
- const r = t.options, a = (h = (g = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((p = t.state.data) == null ? void 0 : p.pages) || [], o = ((x = t.state.data) == null ? void 0 : x.pageParams) || [];
217
- let d = { pages: [], pageParams: [] }, u = 0;
218
- const l = async () => {
219
- let m = !1;
220
- const C = (v) => {
221
- Object.defineProperty(v, "signal", {
213
+ onFetch: (e, n) => {
214
+ var m, f, h, x, v;
215
+ const s = e.options, a = (h = (f = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((x = e.state.data) == null ? void 0 : x.pages) || [], i = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
216
+ let u = { pages: [], pageParams: [] }, d = 0;
217
+ const c = async () => {
218
+ let g = !1;
219
+ const C = (b) => {
220
+ Object.defineProperty(b, "signal", {
222
221
  enumerable: !0,
223
- get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
224
- m = !0;
225
- }), t.signal)
222
+ get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
223
+ g = !0;
224
+ }), e.signal)
226
225
  });
227
- }, X = St(t.options, t.fetchOptions), K = async (v, P, $) => {
228
- if (m)
226
+ }, X = yt(e.options, e.fetchOptions), H = async (b, k, L) => {
227
+ if (g)
229
228
  return Promise.reject();
230
- if (P == null && v.pages.length)
231
- return Promise.resolve(v);
232
- const Y = {
233
- queryKey: t.queryKey,
234
- pageParam: P,
235
- direction: $ ? "backward" : "forward",
236
- meta: t.options.meta
229
+ if (k == null && b.pages.length)
230
+ return Promise.resolve(b);
231
+ const V = {
232
+ queryKey: e.queryKey,
233
+ pageParam: k,
234
+ direction: L ? "backward" : "forward",
235
+ meta: e.options.meta
237
236
  };
238
- C(Y);
239
- const ut = await X(
240
- Y
241
- ), { maxPages: be } = t.options, ve = $ ? Mt : Ot;
237
+ C(V);
238
+ const it = await X(
239
+ V
240
+ ), { maxPages: de } = e.options, he = L ? vt : bt;
242
241
  return {
243
- pages: ve(v.pages, ut, be),
244
- pageParams: ve(v.pageParams, P, be)
242
+ pages: he(b.pages, it, de),
243
+ pageParams: he(b.pageParams, k, de)
245
244
  };
246
245
  };
247
- if (a && i.length) {
248
- const v = a === "backward", P = v ? ys : Ae, $ = {
249
- pages: i,
250
- pageParams: o
251
- }, Y = P(r, $);
252
- d = await K($, Y, v);
246
+ if (a && o.length) {
247
+ const b = a === "backward", k = b ? hn : Se, L = {
248
+ pages: o,
249
+ pageParams: i
250
+ }, V = k(s, L);
251
+ u = await H(L, V, b);
253
252
  } else {
254
- const v = e ?? i.length;
253
+ const b = t ?? o.length;
255
254
  do {
256
- const P = u === 0 ? o[0] ?? r.initialPageParam : Ae(r, d);
257
- if (u > 0 && P == null)
255
+ const k = d === 0 ? i[0] ?? s.initialPageParam : Se(s, u);
256
+ if (d > 0 && k == null)
258
257
  break;
259
- d = await K(d, P), u++;
260
- } while (u < v);
258
+ u = await H(u, k), d++;
259
+ } while (d < b);
261
260
  }
262
- return d;
261
+ return u;
263
262
  };
264
- t.options.persister ? t.fetchFn = () => {
265
- var m, C;
266
- return (C = (m = t.options).persister) == null ? void 0 : C.call(
267
- m,
268
- l,
263
+ e.options.persister ? e.fetchFn = () => {
264
+ var g, C;
265
+ return (C = (g = e.options).persister) == null ? void 0 : C.call(
266
+ g,
267
+ c,
269
268
  {
270
- queryKey: t.queryKey,
271
- meta: t.options.meta,
272
- signal: t.signal
269
+ queryKey: e.queryKey,
270
+ meta: e.options.meta,
271
+ signal: e.signal
273
272
  },
274
- s
273
+ n
275
274
  );
276
- } : t.fetchFn = l;
275
+ } : e.fetchFn = c;
277
276
  }
278
277
  };
279
278
  }
280
- function Ae(e, { pages: t, pageParams: s }) {
281
- const r = t.length - 1;
282
- return t.length > 0 ? e.getNextPageParam(
283
- t[r],
284
- t,
285
- s[r],
286
- s
279
+ function Se(t, { pages: e, pageParams: n }) {
280
+ const s = e.length - 1;
281
+ return e.length > 0 ? t.getNextPageParam(
282
+ e[s],
283
+ e,
284
+ n[s],
285
+ n
287
286
  ) : void 0;
288
287
  }
289
- function ys(e, { pages: t, pageParams: s }) {
290
- var r;
291
- return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, s[0], s) : void 0;
288
+ function hn(t, { pages: e, pageParams: n }) {
289
+ var s;
290
+ return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, n[0], n) : void 0;
292
291
  }
293
- var y, E, I, B, z, Q, H, L, Fe, bs = (Fe = class {
294
- constructor(e = {}) {
295
- j(this, y);
292
+ var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
293
+ constructor(t = {}) {
294
+ j(this, p);
296
295
  j(this, E);
297
- j(this, I);
298
- j(this, B);
299
- j(this, z);
296
+ j(this, A);
297
+ j(this, T);
298
+ j(this, q);
300
299
  j(this, Q);
301
- j(this, H);
302
- j(this, L);
303
- b(this, y, e.queryCache || new ps()), b(this, E, e.mutationCache || new xs()), b(this, I, e.defaultOptions || {}), b(this, B, /* @__PURE__ */ new Map()), b(this, z, /* @__PURE__ */ new Map()), b(this, Q, 0);
300
+ j(this, R);
301
+ j(this, F);
302
+ y(this, p, t.queryCache || new un()), y(this, E, t.mutationCache || new dn()), y(this, A, t.defaultOptions || {}), y(this, T, /* @__PURE__ */ new Map()), y(this, q, /* @__PURE__ */ new Map()), y(this, Q, 0);
304
303
  }
305
304
  mount() {
306
- J(this, Q)._++, c(this, Q) === 1 && (b(this, H, Dt.subscribe(async (e) => {
307
- e && (await this.resumePausedMutations(), c(this, y).onFocus());
308
- })), b(this, L, Ne.subscribe(async (e) => {
309
- e && (await this.resumePausedMutations(), c(this, y).onOnline());
305
+ _(this, Q)._++, l(this, Q) === 1 && (y(this, R, jt.subscribe(async (t) => {
306
+ t && (await this.resumePausedMutations(), l(this, p).onFocus());
307
+ })), y(this, F, xe.subscribe(async (t) => {
308
+ t && (await this.resumePausedMutations(), l(this, p).onOnline());
310
309
  })));
311
310
  }
312
311
  unmount() {
313
- var e, t;
314
- J(this, Q)._--, c(this, Q) === 0 && ((e = c(this, H)) == null || e.call(this), b(this, H, void 0), (t = c(this, L)) == null || t.call(this), b(this, L, void 0));
312
+ var t, e;
313
+ _(this, Q)._--, l(this, Q) === 0 && ((t = l(this, R)) == null || t.call(this), y(this, R, void 0), (e = l(this, F)) == null || e.call(this), y(this, F, void 0));
315
314
  }
316
- isFetching(e) {
317
- return c(this, y).findAll({ ...e, fetchStatus: "fetching" }).length;
315
+ isFetching(t) {
316
+ return l(this, p).findAll({ ...t, fetchStatus: "fetching" }).length;
318
317
  }
319
- isMutating(e) {
320
- return c(this, E).findAll({ ...e, status: "pending" }).length;
318
+ isMutating(t) {
319
+ return l(this, E).findAll({ ...t, status: "pending" }).length;
321
320
  }
322
- getQueryData(e) {
323
- var s;
324
- const t = this.defaultQueryOptions({ queryKey: e });
325
- return (s = c(this, y).get(t.queryHash)) == null ? void 0 : s.state.data;
321
+ getQueryData(t) {
322
+ var n;
323
+ const e = this.defaultQueryOptions({ queryKey: t });
324
+ return (n = l(this, p).get(e.queryHash)) == null ? void 0 : n.state.data;
326
325
  }
327
- ensureQueryData(e) {
328
- const t = this.defaultQueryOptions(e), s = c(this, y).build(this, t), r = s.state.data;
329
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && s.isStaleByTime(Pe(t.staleTime, s)) && this.prefetchQuery(t), Promise.resolve(r));
326
+ ensureQueryData(t) {
327
+ const e = this.defaultQueryOptions(t), n = l(this, p).build(this, e), s = n.state.data;
328
+ return s === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && n.isStaleByTime(ye(e.staleTime, n)) && this.prefetchQuery(e), Promise.resolve(s));
330
329
  }
331
- getQueriesData(e) {
332
- return c(this, y).findAll(e).map(({ queryKey: t, state: s }) => {
333
- const r = s.data;
334
- return [t, r];
330
+ getQueriesData(t) {
331
+ return l(this, p).findAll(t).map(({ queryKey: e, state: n }) => {
332
+ const s = n.data;
333
+ return [e, s];
335
334
  });
336
335
  }
337
- setQueryData(e, t, s) {
338
- const r = this.defaultQueryOptions({ queryKey: e }), a = c(this, y).get(
339
- r.queryHash
340
- ), i = a == null ? void 0 : a.state.data, o = At(t, i);
341
- if (o !== void 0)
342
- return c(this, y).build(this, r).setData(o, { ...s, manual: !0 });
336
+ setQueryData(t, e, n) {
337
+ const s = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
338
+ s.queryHash
339
+ ), o = a == null ? void 0 : a.state.data, i = wt(e, o);
340
+ if (i !== void 0)
341
+ return l(this, p).build(this, s).setData(i, { ...n, manual: !0 });
343
342
  }
344
- setQueriesData(e, t, s) {
343
+ setQueriesData(t, e, n) {
345
344
  return w.batch(
346
- () => c(this, y).findAll(e).map(({ queryKey: r }) => [
347
- r,
348
- this.setQueryData(r, t, s)
345
+ () => l(this, p).findAll(t).map(({ queryKey: s }) => [
346
+ s,
347
+ this.setQueryData(s, e, n)
349
348
  ])
350
349
  );
351
350
  }
352
- getQueryState(e) {
353
- var s;
354
- const t = this.defaultQueryOptions({ queryKey: e });
355
- return (s = c(this, y).get(
356
- t.queryHash
357
- )) == null ? void 0 : s.state;
351
+ getQueryState(t) {
352
+ var n;
353
+ const e = this.defaultQueryOptions({ queryKey: t });
354
+ return (n = l(this, p).get(
355
+ e.queryHash
356
+ )) == null ? void 0 : n.state;
358
357
  }
359
- removeQueries(e) {
360
- const t = c(this, y);
358
+ removeQueries(t) {
359
+ const e = l(this, p);
361
360
  w.batch(() => {
362
- t.findAll(e).forEach((s) => {
363
- t.remove(s);
361
+ e.findAll(t).forEach((n) => {
362
+ e.remove(n);
364
363
  });
365
364
  });
366
365
  }
367
- resetQueries(e, t) {
368
- const s = c(this, y), r = {
366
+ resetQueries(t, e) {
367
+ const n = l(this, p), s = {
369
368
  type: "active",
370
- ...e
369
+ ...t
371
370
  };
372
- return w.batch(() => (s.findAll(e).forEach((a) => {
371
+ return w.batch(() => (n.findAll(t).forEach((a) => {
373
372
  a.reset();
374
- }), this.refetchQueries(r, t)));
373
+ }), this.refetchQueries(s, e)));
375
374
  }
376
- cancelQueries(e, t = {}) {
377
- const s = { revert: !0, ...t }, r = w.batch(
378
- () => c(this, y).findAll(e).map((a) => a.cancel(s))
375
+ cancelQueries(t, e = {}) {
376
+ const n = { revert: !0, ...e }, s = w.batch(
377
+ () => l(this, p).findAll(t).map((a) => a.cancel(n))
379
378
  );
380
- return Promise.all(r).then(D).catch(D);
379
+ return Promise.all(s).then(N).catch(N);
381
380
  }
382
- invalidateQueries(e, t = {}) {
381
+ invalidateQueries(t, e = {}) {
383
382
  return w.batch(() => {
384
- if (c(this, y).findAll(e).forEach((r) => {
385
- r.invalidate();
386
- }), (e == null ? void 0 : e.refetchType) === "none")
383
+ if (l(this, p).findAll(t).forEach((s) => {
384
+ s.invalidate();
385
+ }), (t == null ? void 0 : t.refetchType) === "none")
387
386
  return Promise.resolve();
388
- const s = {
389
- ...e,
390
- type: (e == null ? void 0 : e.refetchType) ?? (e == null ? void 0 : e.type) ?? "active"
387
+ const n = {
388
+ ...t,
389
+ type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
391
390
  };
392
- return this.refetchQueries(s, t);
391
+ return this.refetchQueries(n, e);
393
392
  });
394
393
  }
395
- refetchQueries(e, t = {}) {
396
- const s = {
397
- ...t,
398
- cancelRefetch: t.cancelRefetch ?? !0
399
- }, r = w.batch(
400
- () => c(this, y).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
401
- let i = a.fetch(void 0, s);
402
- return s.throwOnError || (i = i.catch(D)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
394
+ refetchQueries(t, e = {}) {
395
+ const n = {
396
+ ...e,
397
+ cancelRefetch: e.cancelRefetch ?? !0
398
+ }, s = w.batch(
399
+ () => l(this, p).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
400
+ let o = a.fetch(void 0, n);
401
+ return n.throwOnError || (o = o.catch(N)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
403
402
  })
404
403
  );
405
- return Promise.all(r).then(D);
404
+ return Promise.all(s).then(N);
406
405
  }
407
- fetchQuery(e) {
408
- const t = this.defaultQueryOptions(e);
409
- t.retry === void 0 && (t.retry = !1);
410
- const s = c(this, y).build(this, t);
411
- return s.isStaleByTime(
412
- Pe(t.staleTime, s)
413
- ) ? s.fetch(t) : Promise.resolve(s.state.data);
406
+ fetchQuery(t) {
407
+ const e = this.defaultQueryOptions(t);
408
+ e.retry === void 0 && (e.retry = !1);
409
+ const n = l(this, p).build(this, e);
410
+ return n.isStaleByTime(
411
+ ye(e.staleTime, n)
412
+ ) ? n.fetch(e) : Promise.resolve(n.state.data);
414
413
  }
415
- prefetchQuery(e) {
416
- return this.fetchQuery(e).then(D).catch(D);
414
+ prefetchQuery(t) {
415
+ return this.fetchQuery(t).then(N).catch(N);
417
416
  }
418
- fetchInfiniteQuery(e) {
419
- return e.behavior = De(e.pages), this.fetchQuery(e);
417
+ fetchInfiniteQuery(t) {
418
+ return t.behavior = Ce(t.pages), this.fetchQuery(t);
420
419
  }
421
- prefetchInfiniteQuery(e) {
422
- return this.fetchInfiniteQuery(e).then(D).catch(D);
420
+ prefetchInfiniteQuery(t) {
421
+ return this.fetchInfiniteQuery(t).then(N).catch(N);
423
422
  }
424
- ensureInfiniteQueryData(e) {
425
- return e.behavior = De(e.pages), this.ensureQueryData(e);
423
+ ensureInfiniteQueryData(t) {
424
+ return t.behavior = Ce(t.pages), this.ensureQueryData(t);
426
425
  }
427
426
  resumePausedMutations() {
428
- return Ne.isOnline() ? c(this, E).resumePausedMutations() : Promise.resolve();
427
+ return xe.isOnline() ? l(this, E).resumePausedMutations() : Promise.resolve();
429
428
  }
430
429
  getQueryCache() {
431
- return c(this, y);
430
+ return l(this, p);
432
431
  }
433
432
  getMutationCache() {
434
- return c(this, E);
433
+ return l(this, E);
435
434
  }
436
435
  getDefaultOptions() {
437
- return c(this, I);
436
+ return l(this, A);
438
437
  }
439
- setDefaultOptions(e) {
440
- b(this, I, e);
438
+ setDefaultOptions(t) {
439
+ y(this, A, t);
441
440
  }
442
- setQueryDefaults(e, t) {
443
- c(this, B).set(Se(e), {
444
- queryKey: e,
445
- defaultOptions: t
441
+ setQueryDefaults(t, e) {
442
+ l(this, T).set(ve(t), {
443
+ queryKey: t,
444
+ defaultOptions: e
446
445
  });
447
446
  }
448
- getQueryDefaults(e) {
449
- const t = [...c(this, B).values()], s = {};
450
- return t.forEach((r) => {
451
- Me(e, r.queryKey) && Object.assign(s, r.defaultOptions);
452
- }), s;
447
+ getQueryDefaults(t) {
448
+ const e = [...l(this, T).values()], n = {};
449
+ return e.forEach((s) => {
450
+ be(t, s.queryKey) && Object.assign(n, s.defaultOptions);
451
+ }), n;
453
452
  }
454
- setMutationDefaults(e, t) {
455
- c(this, z).set(Se(e), {
456
- mutationKey: e,
457
- defaultOptions: t
453
+ setMutationDefaults(t, e) {
454
+ l(this, q).set(ve(t), {
455
+ mutationKey: t,
456
+ defaultOptions: e
458
457
  });
459
458
  }
460
- getMutationDefaults(e) {
461
- const t = [...c(this, z).values()];
462
- let s = {};
463
- return t.forEach((r) => {
464
- Me(e, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
465
- }), s;
466
- }
467
- defaultQueryOptions(e) {
468
- if (e._defaulted)
469
- return e;
470
- const t = {
471
- ...c(this, I).queries,
472
- ...this.getQueryDefaults(e.queryKey),
473
- ...e,
459
+ getMutationDefaults(t) {
460
+ const e = [...l(this, q).values()];
461
+ let n = {};
462
+ return e.forEach((s) => {
463
+ be(t, s.mutationKey) && (n = { ...n, ...s.defaultOptions });
464
+ }), n;
465
+ }
466
+ defaultQueryOptions(t) {
467
+ if (t._defaulted)
468
+ return t;
469
+ const e = {
470
+ ...l(this, A).queries,
471
+ ...this.getQueryDefaults(t.queryKey),
472
+ ...t,
474
473
  _defaulted: !0
475
474
  };
476
- return t.queryHash || (t.queryHash = $e(
477
- t.queryKey,
478
- t
479
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Et && (t.enabled = !1), t;
480
- }
481
- defaultMutationOptions(e) {
482
- return e != null && e._defaulted ? e : {
483
- ...c(this, I).mutations,
484
- ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
485
- ...e,
475
+ return e.queryHash || (e.queryHash = Fe(
476
+ e.queryKey,
477
+ e
478
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Pt && (e.enabled = !1), e;
479
+ }
480
+ defaultMutationOptions(t) {
481
+ return t != null && t._defaulted ? t : {
482
+ ...l(this, A).mutations,
483
+ ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
484
+ ...t,
486
485
  _defaulted: !0
487
486
  };
488
487
  }
489
488
  clear() {
490
- c(this, y).clear(), c(this, E).clear();
489
+ l(this, p).clear(), l(this, E).clear();
491
490
  }
492
- }, y = new WeakMap(), E = new WeakMap(), I = new WeakMap(), B = new WeakMap(), z = new WeakMap(), Q = new WeakMap(), H = new WeakMap(), L = new WeakMap(), Fe);
493
- function vs(e) {
494
- return e;
491
+ }, p = new WeakMap(), E = new WeakMap(), A = new WeakMap(), T = new WeakMap(), q = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), Ae);
492
+ function mn(t) {
493
+ return t;
495
494
  }
496
- function Ee(e, t, s) {
497
- var u, l;
498
- if (typeof t != "object" || t === null)
495
+ function ke(t, e, n) {
496
+ var d, c;
497
+ if (typeof e != "object" || e === null)
499
498
  return;
500
- const r = e.getMutationCache(), a = e.getQueryCache(), i = ((u = s == null ? void 0 : s.defaultOptions) == null ? void 0 : u.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? vs, o = t.mutations || [], d = t.queries || [];
501
- o.forEach(({ state: f, ...g }) => {
502
- var h, p;
503
- r.build(
504
- e,
499
+ const s = t.getMutationCache(), a = t.getQueryCache(), o = ((d = n == null ? void 0 : n.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? mn, i = e.mutations || [], u = e.queries || [];
500
+ i.forEach(({ state: m, ...f }) => {
501
+ var h, x;
502
+ s.build(
503
+ t,
505
504
  {
506
- ...(h = e.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
507
- ...(p = s == null ? void 0 : s.defaultOptions) == null ? void 0 : p.mutations,
508
- ...g
505
+ ...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
506
+ ...(x = n == null ? void 0 : n.defaultOptions) == null ? void 0 : x.mutations,
507
+ ...f
509
508
  },
510
- f
509
+ m
511
510
  );
512
- }), d.forEach(({ queryKey: f, state: g, queryHash: h, meta: p, promise: x }) => {
513
- var X, K;
514
- let m = a.get(h);
515
- const C = g.data === void 0 ? g.data : i(g.data);
516
- if (m) {
517
- if (m.state.dataUpdatedAt < g.dataUpdatedAt) {
518
- const { fetchStatus: v, ...P } = g;
519
- m.setState({
520
- ...P,
511
+ }), u.forEach(({ queryKey: m, state: f, queryHash: h, meta: x, promise: v }) => {
512
+ var X, H;
513
+ let g = a.get(h);
514
+ const C = f.data === void 0 ? f.data : o(f.data);
515
+ if (g) {
516
+ if (g.state.dataUpdatedAt < f.dataUpdatedAt) {
517
+ const { fetchStatus: b, ...k } = f;
518
+ g.setState({
519
+ ...k,
521
520
  data: C
522
521
  });
523
522
  }
524
523
  } else
525
- m = a.build(
526
- e,
524
+ g = a.build(
525
+ t,
527
526
  {
528
- ...(X = e.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
529
- ...(K = s == null ? void 0 : s.defaultOptions) == null ? void 0 : K.queries,
530
- queryKey: f,
527
+ ...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
528
+ ...(H = n == null ? void 0 : n.defaultOptions) == null ? void 0 : H.queries,
529
+ queryKey: m,
531
530
  queryHash: h,
532
- meta: p
531
+ meta: x
533
532
  },
534
533
  // Reset fetch status to idle to avoid
535
534
  // query being stuck in fetching state upon hydration
536
535
  {
537
- ...g,
536
+ ...f,
538
537
  data: C,
539
538
  fetchStatus: "idle"
540
539
  }
541
540
  );
542
- if (x) {
543
- const v = Promise.resolve(x).then(i);
544
- m.fetch(void 0, { initialPromise: v });
541
+ if (v) {
542
+ const b = Promise.resolve(v).then(o);
543
+ g.fetch(void 0, { initialPromise: b });
545
544
  }
546
545
  });
547
546
  }
548
- var js = ({
549
- children: e,
550
- options: t = {},
551
- state: s,
552
- queryClient: r
547
+ var gn = ({
548
+ children: t,
549
+ options: e = {},
550
+ state: n,
551
+ queryClient: s
553
552
  }) => {
554
- const a = It(r), [i, o] = Z.useState(), d = Z.useRef(t);
555
- return d.current = t, Z.useMemo(() => {
556
- if (s) {
557
- if (typeof s != "object")
553
+ const a = Ct(s), [o, i] = K.useState(), u = K.useRef(e);
554
+ return u.current = e, K.useMemo(() => {
555
+ if (n) {
556
+ if (typeof n != "object")
558
557
  return;
559
- const u = a.getQueryCache(), l = s.queries || [], f = [], g = [];
560
- for (const h of l) {
561
- const p = u.get(h.queryHash);
562
- if (!p)
563
- f.push(h);
558
+ const d = a.getQueryCache(), c = n.queries || [], m = [], f = [];
559
+ for (const h of c) {
560
+ const x = d.get(h.queryHash);
561
+ if (!x)
562
+ m.push(h);
564
563
  else {
565
- const x = h.state.dataUpdatedAt > p.state.dataUpdatedAt, m = i == null ? void 0 : i.find(
564
+ const v = h.state.dataUpdatedAt > x.state.dataUpdatedAt, g = o == null ? void 0 : o.find(
566
565
  (C) => C.queryHash === h.queryHash
567
566
  );
568
- x && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && g.push(h);
567
+ v && (!g || h.state.dataUpdatedAt > g.state.dataUpdatedAt) && f.push(h);
569
568
  }
570
569
  }
571
- f.length > 0 && Ee(a, { queries: f }, d.current), g.length > 0 && o(
572
- (h) => h ? [...h, ...g] : g
570
+ m.length > 0 && ke(a, { queries: m }, u.current), f.length > 0 && i(
571
+ (h) => h ? [...h, ...f] : f
573
572
  );
574
573
  }
575
- }, [a, i, s]), Z.useEffect(() => {
576
- i && (Ee(a, { queries: i }, d.current), o(void 0));
577
- }, [a, i]), e;
574
+ }, [a, o, n]), K.useEffect(() => {
575
+ o && (ke(a, { queries: o }, u.current), i(void 0));
576
+ }, [a, o]), t;
578
577
  };
579
- function ws({ error: e }) {
580
- return /* @__PURE__ */ n.jsx(He, { error: e });
578
+ function pn({ error: t }) {
579
+ return /* @__PURE__ */ r.jsx(qe, { error: t });
581
580
  }
582
581
  /**
583
582
  * react-router v7.1.3
@@ -589,453 +588,214 @@ function ws({ error: e }) {
589
588
  *
590
589
  * @license MIT
591
590
  */
592
- function ks(e) {
593
- return /* @__PURE__ */ Z.createElement(gt, { flushSync: $t.flushSync, ...e });
591
+ function xn(t) {
592
+ return /* @__PURE__ */ K.createElement(ct, { flushSync: qt.flushSync, ...t });
594
593
  }
595
- const Cs = new bs({
594
+ const yn = new fn({
596
595
  defaultOptions: {
597
596
  queries: {
598
597
  staleTime: 1e3 * 60 * 5
599
598
  }
600
599
  }
601
- }), Ns = ({
602
- router: e,
603
- hydrate: t = !1
604
- }) => /* @__PURE__ */ n.jsx(Ue, { children: /* @__PURE__ */ n.jsx(Ze, { client: Cs, children: /* @__PURE__ */ n.jsx(js, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ n.jsx(Be, { children: /* @__PURE__ */ n.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ n.jsx(ks, { router: e }) }) }) }) }) }), Ps = ({
605
- router: e,
606
- context: t,
607
- queryClient: s,
608
- helmetContext: r
609
- }) => /* @__PURE__ */ n.jsx(Ue, { children: /* @__PURE__ */ n.jsx(Ze, { client: s, children: /* @__PURE__ */ n.jsx(Be, { context: r, children: /* @__PURE__ */ n.jsx(mt, { router: e, context: t }) }) }) });
610
- var V = { exports: {} }, Ss = V.exports, Ie;
611
- function Ms() {
612
- return Ie || (Ie = 1, function(e, t) {
613
- (function(s, r) {
614
- r(t, Ft);
615
- })(Ss, function(s, r) {
600
+ }), vn = ({
601
+ router: t,
602
+ hydrate: e = !1
603
+ }) => /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(ze, { client: yn, children: /* @__PURE__ */ r.jsx(gn, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Qe, { children: /* @__PURE__ */ r.jsx(re.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(xn, { router: t }) }) }) }) }) }), bn = ({
604
+ router: t,
605
+ context: e,
606
+ queryClient: n,
607
+ helmetContext: s
608
+ }) => /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(ze, { client: n, children: /* @__PURE__ */ r.jsx(Qe, { context: s, children: /* @__PURE__ */ r.jsx(ut, { router: t, context: e }) }) }) });
609
+ var $ = { exports: {} }, jn = $.exports, De;
610
+ function wn() {
611
+ return De || (De = 1, function(t, e) {
612
+ (function(n, s) {
613
+ s(e, Ot);
614
+ })(jn, function(n, s) {
616
615
  const a = {
617
616
  delay: 500,
618
617
  minDuration: 200,
619
618
  ssr: !0
620
619
  };
621
- function i() {
622
- const [d, u] = r.useState(!0);
623
- return r.useEffect(() => {
624
- u(!1);
625
- }, []), d;
620
+ function o() {
621
+ const [u, d] = s.useState(!0);
622
+ return s.useEffect(() => {
623
+ d(!1);
624
+ }, []), u;
626
625
  }
627
- function o(d, u) {
628
- u = Object.assign({}, a, u);
629
- const l = i() && u.ssr, f = l && d ? "DISPLAY" : "IDLE", [g, h] = r.useState(f), p = r.useRef(null);
630
- return r.useEffect(() => {
631
- if (d && (g === "IDLE" || l)) {
632
- clearTimeout(p.current);
633
- const x = l ? 0 : u.delay;
634
- p.current = setTimeout(() => {
635
- if (!d)
626
+ function i(u, d) {
627
+ d = Object.assign({}, a, d);
628
+ const c = o() && d.ssr, m = c && u ? "DISPLAY" : "IDLE", [f, h] = s.useState(m), x = s.useRef(null);
629
+ return s.useEffect(() => {
630
+ if (u && (f === "IDLE" || c)) {
631
+ clearTimeout(x.current);
632
+ const v = c ? 0 : d.delay;
633
+ x.current = setTimeout(() => {
634
+ if (!u)
636
635
  return h("IDLE");
637
- p.current = setTimeout(() => {
636
+ x.current = setTimeout(() => {
638
637
  h("EXPIRE");
639
- }, u.minDuration), h("DISPLAY");
640
- }, x), l || h("DELAY");
638
+ }, d.minDuration), h("DISPLAY");
639
+ }, v), c || h("DELAY");
641
640
  }
642
- !d && g !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
643
- }, [d, g, u.delay, u.minDuration, l]), r.useEffect(() => () => clearTimeout(p.current), []), g === "DISPLAY" || g === "EXPIRE";
641
+ !u && f !== "DISPLAY" && (clearTimeout(x.current), h("IDLE"));
642
+ }, [u, f, d.delay, d.minDuration, c]), s.useEffect(() => () => clearTimeout(x.current), []), f === "DISPLAY" || f === "EXPIRE";
644
643
  }
645
- s.defaultOptions = a, s.useSpinDelay = o;
644
+ n.defaultOptions = a, n.useSpinDelay = i;
646
645
  });
647
- }(V, V.exports)), V.exports;
646
+ }($, $.exports)), $.exports;
648
647
  }
649
- var Os = Ms();
650
- const Ds = {
651
- green: "bg-green-400 dark:bg-green-800",
652
- blue: "bg-sky-400 dark:bg-sky-800",
653
- yellow: "bg-yellow-400 dark:bg-yellow-800",
654
- red: "bg-red-400 dark:bg-red-800",
655
- purple: "bg-purple-400 dark:bg-purple-600",
656
- indigo: "bg-indigo-400 dark:bg-indigo-600",
657
- gray: "bg-gray-400 dark:bg-gray-600"
658
- }, As = {
659
- green: "text-green-500 dark:text-green-600",
660
- blue: "text-sky-400 dark:text-sky-600",
661
- yellow: "text-yellow-400 dark:text-yellow-600",
662
- red: "text-red-400 dark:text-red-600",
663
- purple: "text-purple-400 dark:text-purple-600",
664
- indigo: "text-indigo-400 dark:text-indigo-600",
665
- gray: "text-gray-400 dark:text-gray-600"
666
- }, ie = ({
667
- color: e,
668
- label: t,
669
- className: s,
670
- invert: r
671
- }) => /* @__PURE__ */ n.jsx(
672
- "span",
673
- {
674
- className: O(
675
- "mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
676
- r ? As[e] : Ds[e],
677
- s
678
- ),
679
- children: t
680
- }
681
- ), Es = ({
682
- category: e,
683
- onRequestClose: t
684
- }) => {
685
- var h, p;
686
- const s = Qt(e), [r, a] = T(!1), i = e.collapsible ?? !0, o = e.collapsed ?? !0, d = !!(!i || !o || s), [u, l] = T(d), f = pt(((h = e.link) == null ? void 0 : h.id) ?? "");
687
- F(() => {
688
- s && l(!0);
689
- }, [s]);
690
- const g = i && /* @__PURE__ */ n.jsx(
691
- "button",
692
- {
693
- type: "button",
694
- onClick: (x) => {
695
- x.preventDefault(), l((m) => !m), a(!0);
696
- },
697
- children: /* @__PURE__ */ n.jsx(
698
- Zt,
699
- {
700
- size: 16,
701
- className: O(
702
- r && "transition",
703
- "shrink-0 group-data-[state=open]:rotate-90"
704
- )
705
- }
706
- )
707
- }
708
- );
709
- return /* @__PURE__ */ n.jsxs(
710
- re.Root,
711
- {
712
- className: "flex flex-col",
713
- defaultOpen: d,
714
- open: u,
715
- onOpenChange: () => l(!0),
716
- children: [
717
- /* @__PURE__ */ n.jsx(re.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ n.jsxs(
718
- "div",
719
- {
720
- onClick: () => a(!0),
721
- className: U({
722
- isActive: !1,
723
- className: [
724
- "text-start font-medium",
725
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
726
- ]
727
- }),
728
- children: [
729
- e.icon && /* @__PURE__ */ n.jsx(
730
- e.icon,
731
- {
732
- size: 16,
733
- className: O("align-[-0.125em] ", f && "text-primary")
734
- }
735
- ),
736
- ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ n.jsx(
737
- se,
738
- {
739
- to: R(e.link.id),
740
- className: "flex-1",
741
- onClick: () => {
742
- f && !u && l(!0);
743
- },
744
- children: /* @__PURE__ */ n.jsxs(
745
- "div",
746
- {
747
- className: O(
748
- "flex items-center gap-2 justify-between w-full",
749
- f ? "text-primary" : "text-foreground/80"
750
- ),
751
- children: [
752
- /* @__PURE__ */ n.jsx("div", { className: "truncate", children: e.label }),
753
- g
754
- ]
755
- }
756
- )
757
- }
758
- ) : /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between w-full", children: [
759
- /* @__PURE__ */ n.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
760
- g
761
- ] })
762
- ]
763
- }
764
- ) }),
765
- /* @__PURE__ */ n.jsx(
766
- re.Content,
767
- {
768
- className: O(
769
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
770
- r && "CollapsibleContent",
771
- "ms-6 my-1"
772
- ),
773
- children: /* @__PURE__ */ n.jsx("ul", { className: "relative after:absolute after:-left-[--padding-nav-item] after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border", children: e.items.map((x) => /* @__PURE__ */ n.jsx(
774
- de,
775
- {
776
- onRequestClose: t,
777
- item: x
778
- },
779
- ("id" in x ? x.id : "") + ("href" in x ? x.href : "") + x.label
780
- )) })
781
- }
782
- )
783
- ]
784
- }
785
- );
786
- }, U = Gt(
787
- "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent",
788
- {
789
- variants: {
790
- isActive: {
791
- true: "text-primary font-medium",
792
- false: "text-foreground/80"
793
- },
794
- isMuted: {
795
- true: "text-foreground/30",
796
- false: ""
797
- }
798
- },
799
- defaultVariants: {
800
- isActive: !1
801
- }
802
- }
803
- ), tt = "data-anchor", de = ({
804
- item: e,
805
- onRequestClose: t
806
- }) => {
807
- var a, i;
808
- const { activeAnchor: s } = me(), [r] = xt();
809
- switch (e.type) {
810
- case "category":
811
- return /* @__PURE__ */ n.jsx(Es, { category: e, onRequestClose: t });
812
- case "doc":
813
- return /* @__PURE__ */ n.jsxs(
814
- se,
815
- {
816
- className: ({ isActive: o }) => U({ isActive: o }),
817
- to: R(e.id),
818
- onClick: t,
819
- children: [
820
- e.icon && /* @__PURE__ */ n.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
821
- e.badge ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
822
- /* @__PURE__ */ n.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
823
- /* @__PURE__ */ n.jsx(ie, { ...e.badge })
824
- ] }) : e.label
825
- ]
826
- }
827
- );
828
- case "link":
829
- return e.href.startsWith("#") ? /* @__PURE__ */ n.jsx(
830
- ts,
831
- {
832
- to: { hash: e.href, search: r.toString() },
833
- [tt]: e.href.slice(1),
834
- className: U({
835
- isActive: e.href.slice(1) === s,
836
- className: ((a = e.badge) == null ? void 0 : a.placement) !== "start" && "justify-between"
837
- }),
838
- onClick: t,
839
- children: e.badge ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
840
- /* @__PURE__ */ n.jsx("span", { className: "truncate", title: e.label, children: e.label }),
841
- /* @__PURE__ */ n.jsx(ie, { ...e.badge })
842
- ] }) : /* @__PURE__ */ n.jsx("span", { className: "break-all", children: e.label })
843
- }
844
- ) : e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
845
- "a",
846
- {
847
- className: U(),
848
- href: e.href,
849
- target: "_blank",
850
- rel: "noopener noreferrer",
851
- onClick: t,
852
- children: [
853
- /* @__PURE__ */ n.jsx("span", { className: "whitespace-normal", children: e.label }),
854
- /* @__PURE__ */ n.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ n.jsx(Vt, { className: "inline -translate-y-0.5", size: 12 }) })
855
- ]
856
- }
857
- ) : /* @__PURE__ */ n.jsx(
858
- se,
859
- {
860
- className: U({
861
- className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
862
- }),
863
- to: e.href,
864
- children: e.badge ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
865
- /* @__PURE__ */ n.jsx("span", { className: "truncate", title: e.label, children: e.label }),
866
- /* @__PURE__ */ n.jsx(ie, { ...e.badge })
867
- ] }) : /* @__PURE__ */ n.jsx("span", { className: "break-all", children: e.label })
868
- }
869
- );
870
- }
871
- }, Is = (e, t = { block: "center" }) => {
872
- if (!e) return;
873
- const s = e.getBoundingClientRect();
874
- s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
875
- }, Qs = () => {
876
- const e = he(), { setActiveAnchor: t } = me();
877
- F(() => {
878
- if (!e.hash) return;
879
- const s = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
880
- const a = document.getElementById(s), i = document.querySelector(`[${tt}="${s}"]`);
881
- return a ? (a.scrollIntoView(), Is(i), requestIdleCallback(() => t(s)), !0) : !1;
882
- };
883
- if (!r()) {
884
- const a = new MutationObserver((i, o) => {
885
- r() && o.disconnect();
886
- });
887
- return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
888
- }
889
- }, [e.hash, t]);
890
- }, Ts = () => {
891
- const e = he(), t = pe(e.pathname);
892
- F(() => {
893
- t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
894
- }, [e.pathname]);
648
+ var Pn = wn();
649
+ const Cn = () => {
650
+ const t = Ie(), e = ce(t.pathname);
651
+ U(() => {
652
+ e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
653
+ }, [t.pathname]);
895
654
  };
896
- function qs({
897
- className: e,
898
- ...t
655
+ function Sn({
656
+ className: t,
657
+ ...e
899
658
  }) {
900
- return /* @__PURE__ */ n.jsx(
659
+ return /* @__PURE__ */ r.jsx(
901
660
  "div",
902
661
  {
903
- className: O("animate-pulse rounded-md bg-muted", e),
904
- ...t
662
+ className: B("animate-pulse rounded-md bg-muted", t),
663
+ ...e
905
664
  }
906
665
  );
907
666
  }
908
- const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Fs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Bs = (e) => "renderSearch" in e && typeof e.renderSearch == "function", zs = (e) => "initialize" in e && typeof e.initialize == "function", Hs = (e) => "getHead" in e && typeof e.getHead == "function", Ls = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ks = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Qe = {
667
+ const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Dn = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Mn = (t) => "renderSearch" in t && typeof t.renderSearch == "function", Nn = (t) => "initialize" in t && typeof t.initialize == "function", On = (t) => "getHead" in t && typeof t.getHead == "function", En = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", An = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Me = {
909
668
  info: "bg-blue-500",
910
669
  note: "bg-gray-500",
911
670
  tip: "bg-green-600",
912
671
  caution: "bg-orange-500",
913
672
  danger: "bg-rose-500"
914
- }, $s = () => {
915
- const { page: e } = q(), [t, s] = T(!0);
916
- if (!(e != null && e.banner) || !t)
917
- return /* @__PURE__ */ n.jsx("style", { children: ":root { --banner-height: 0px; }" });
918
- const r = e.banner.color && e.banner.color in Qe ? Qe[e.banner.color] : e.banner.color ? void 0 : "bg-primary", a = r ? {} : { backgroundColor: e.banner.color };
919
- return /* @__PURE__ */ n.jsxs(
673
+ }, Qn = () => {
674
+ const { page: t } = I(), [e, n] = z(!0);
675
+ if (!(t != null && t.banner) || !e)
676
+ return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
677
+ const s = t.banner.color && t.banner.color in Me ? Me[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = s ? {} : { backgroundColor: t.banner.color };
678
+ return /* @__PURE__ */ r.jsxs(
920
679
  "div",
921
680
  {
922
- className: O(
681
+ className: B(
923
682
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
924
- r
683
+ s
925
684
  ),
926
685
  style: a,
927
686
  children: [
928
- /* @__PURE__ */ n.jsx("div", { className: "w-full", children: e.banner.message }),
929
- e.banner.dismissible && /* @__PURE__ */ n.jsx(
687
+ /* @__PURE__ */ r.jsx("div", { className: "w-full", children: t.banner.message }),
688
+ t.banner.dismissible && /* @__PURE__ */ r.jsx(
930
689
  "button",
931
690
  {
932
691
  type: "button",
933
692
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
934
- onClick: () => s(!1),
935
- children: /* @__PURE__ */ n.jsx(Ut, { size: 16 })
693
+ onClick: () => n(!1),
694
+ children: /* @__PURE__ */ r.jsx(Rt, { size: 16 })
936
695
  }
937
696
  )
938
697
  ]
939
698
  }
940
699
  );
941
- }, st = ({ className: e }) => {
942
- const t = q(), [s, r] = T(!1), a = Bt(() => r(!1), []);
943
- F(() => {
944
- if (s)
700
+ }, We = ({ className: t }) => {
701
+ const e = I(), [n, s] = z(!1), a = Et(() => s(!1), []);
702
+ U(() => {
703
+ if (n)
945
704
  return;
946
- function o(d) {
947
- d.key === "k" && (d.metaKey || d.ctrlKey) && (d.preventDefault(), r(!0));
705
+ function i(u) {
706
+ u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), s(!0));
948
707
  }
949
- return window.addEventListener("keydown", o), () => {
950
- window.removeEventListener("keydown", o);
708
+ return window.addEventListener("keydown", i), () => {
709
+ window.removeEventListener("keydown", i);
951
710
  };
952
- }, [s, r]);
953
- const i = t.plugins.find(Bs);
954
- return i ? /* @__PURE__ */ n.jsxs("div", { className: e, children: [
955
- /* @__PURE__ */ n.jsxs(
711
+ }, [n, s]);
712
+ const o = e.plugins.find(Mn);
713
+ return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
714
+ /* @__PURE__ */ r.jsxs(
956
715
  "button",
957
716
  {
958
717
  type: "button",
959
- onClick: () => r(!0),
718
+ onClick: () => s(!0),
960
719
  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",
961
720
  children: [
962
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
963
- /* @__PURE__ */ n.jsx(Wt, { size: 14 }),
721
+ /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
722
+ /* @__PURE__ */ r.jsx(Ft, { size: 14 }),
964
723
  "Search"
965
724
  ] }),
966
- /* @__PURE__ */ n.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" })
725
+ /* @__PURE__ */ r.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" })
967
726
  ]
968
727
  }
969
728
  ),
970
- /* @__PURE__ */ n.jsx(xe, { fallback: null, children: i.renderSearch({
971
- isOpen: s,
729
+ /* @__PURE__ */ r.jsx(ue, { fallback: null, children: o.renderSearch({
730
+ isOpen: n,
972
731
  onClose: a
973
732
  }) })
974
733
  ] }) : null;
975
- }, nt = () => {
976
- const { resolvedTheme: e, setTheme: t } = fs(), s = e === "dark" ? _t : Xt;
977
- return /* @__PURE__ */ n.jsx(ye, { children: /* @__PURE__ */ n.jsx(
978
- ce,
734
+ }, Je = () => {
735
+ const { resolvedTheme: t, setTheme: e } = an(), n = t === "dark" ? zt : Bt;
736
+ return /* @__PURE__ */ r.jsx(
737
+ ae,
979
738
  {
980
739
  variant: "ghost",
981
- "aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
982
- className: "p-2.5 -m-2.5 rounded-full",
983
- onClick: () => t(e === "dark" ? "light" : "dark"),
984
- children: /* @__PURE__ */ n.jsx(s, { size: 18 })
740
+ size: "icon",
741
+ "aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
742
+ className: B(t ? "opacity-100" : "opacity-0"),
743
+ onClick: () => e(t === "dark" ? "light" : "dark"),
744
+ children: /* @__PURE__ */ r.jsx(n, { size: 18 })
985
745
  }
986
- ) });
987
- }, rt = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Zs = () => {
988
- const { topNavigation: e } = q(), { isAuthenticated: t } = W();
989
- return e.length <= 1 ? /* @__PURE__ */ n.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ n.jsx(xe, { children: /* @__PURE__ */ n.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(rt(t)).map((s) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(at, { ...s }) }, s.id)) }) }) });
990
- }, at = ({
991
- id: e,
992
- label: t,
993
- default: s
746
+ );
747
+ }, Ge = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", In = () => {
748
+ const { topNavigation: t } = I(), { isAuthenticated: e } = Z();
749
+ return t.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(ue, { children: /* @__PURE__ */ r.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(Ge(e)).map((n) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(et, { ...n }) }, n.id)) }) }) });
750
+ }, et = ({
751
+ id: t,
752
+ label: e,
753
+ default: n
994
754
  }) => {
995
- var l;
996
- const { sidebars: r } = q(), a = r[e], i = Ve(), o = !!fe().location, d = ((l = i.topNavItem) == null ? void 0 : l.id) === e && !o, u = s ?? (a ? Tt(a, (f) => {
997
- if (f.type === "doc") return R(f.id);
998
- }) : R(e));
999
- if (!u)
1000
- throw new ms("Page not found.", {
1001
- developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
755
+ var c;
756
+ const { sidebars: s } = I(), a = s[t], o = Be(), i = !!oe().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = n ?? (a ? St(a, (m) => {
757
+ if (m.type === "doc") return se(m.id);
758
+ }) : se(t));
759
+ if (!d)
760
+ throw new cn("Page not found.", {
761
+ developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
1002
762
  });
1003
763
  return (
1004
764
  // We don't use isActive here because it has to be inside the sidebar,
1005
765
  // the top nav id doesn't necessarily start with the sidebar id
1006
- /* @__PURE__ */ n.jsx(
1007
- se,
766
+ /* @__PURE__ */ r.jsx(
767
+ dt,
1008
768
  {
1009
- className: ({ isPending: f }) => es(
769
+ className: ({ isPending: m }) => ln(
1010
770
  "block lg:py-3.5 font-medium -mb-px",
1011
- d || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
771
+ u || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1012
772
  ),
1013
- to: u,
1014
- children: t
773
+ to: d,
774
+ children: e
1015
775
  }
1016
776
  )
1017
777
  );
1018
- }, Vs = () => {
1019
- const { topNavigation: e } = q(), { isAuthenticated: t } = W(), [s, r] = T(!1);
1020
- return /* @__PURE__ */ n.jsxs(
1021
- Xe,
778
+ }, Tn = () => {
779
+ const { topNavigation: t } = I(), { isAuthenticated: e } = Z(), [n, s] = z(!1);
780
+ return /* @__PURE__ */ r.jsxs(
781
+ Ze,
1022
782
  {
1023
783
  direction: "right",
1024
- open: s,
1025
- onOpenChange: (a) => r(a),
784
+ open: n,
785
+ onOpenChange: (a) => s(a),
1026
786
  children: [
1027
- /* @__PURE__ */ n.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ n.jsx(Ye, { className: "lg:hidden", children: /* @__PURE__ */ n.jsx(Yt, { size: 22 }) }) }),
1028
- /* @__PURE__ */ n.jsx(
1029
- Je,
787
+ /* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Ue, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Ht, { size: 22 }) }) }),
788
+ /* @__PURE__ */ r.jsx(
789
+ Ye,
1030
790
  {
1031
791
  className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
1032
792
  "aria-describedby": void 0,
1033
- children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1034
- /* @__PURE__ */ n.jsx(et, { children: /* @__PURE__ */ n.jsx(Ge, { children: "Navigation" }) }),
1035
- /* @__PURE__ */ n.jsx(st, { className: "flex p-4" }),
1036
- /* @__PURE__ */ n.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1037
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(nt, {}) }),
1038
- e.filter(rt(t)).map((a) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => r(!1), children: /* @__PURE__ */ n.jsx(at, { ...a }) }) }, a.label))
793
+ children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
794
+ /* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(Xe, { children: "Navigation" }) }),
795
+ /* @__PURE__ */ r.jsx(We, { className: "flex p-4" }),
796
+ /* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
797
+ /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Je, {}) }),
798
+ t.filter(Ge(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ r.jsx(et, { ...a }) }) }, a.label))
1039
799
  ] })
1040
800
  ] })
1041
801
  }
@@ -1043,192 +803,192 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1043
803
  ]
1044
804
  }
1045
805
  );
1046
- }, te = ({ item: e }) => e.children ? /* @__PURE__ */ n.jsxs(ls, { children: [
1047
- /* @__PURE__ */ n.jsx(cs, { children: e.label }),
1048
- /* @__PURE__ */ n.jsx(ds, { children: /* @__PURE__ */ n.jsx(us, { children: e.children.map((t, s) => (
806
+ }, G = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(en, { children: [
807
+ /* @__PURE__ */ r.jsx(tn, { children: t.label }),
808
+ /* @__PURE__ */ r.jsx(nn, { children: /* @__PURE__ */ r.jsx(sn, { children: t.children.map((e, n) => (
1049
809
  // eslint-disable-next-line react/no-array-index-key
1050
- /* @__PURE__ */ n.jsx(te, { item: t }, s)
810
+ /* @__PURE__ */ r.jsx(G, { item: e }, n)
1051
811
  )) }) })
1052
- ] }, e.label) : /* @__PURE__ */ n.jsx(ge, { to: e.path ?? "", children: /* @__PURE__ */ n.jsxs(hs, { className: "flex gap-2", children: [
1053
- e.icon && /* @__PURE__ */ n.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
1054
- e.label
1055
- ] }, e.label) }), it = We(function() {
1056
- const t = W(), { isAuthenticated: s, profile: r, isAuthEnabled: a } = W(), i = q(), { page: o, plugins: d } = i, u = d.filter((l) => Rs(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
1057
- return /* @__PURE__ */ n.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1058
- /* @__PURE__ */ n.jsx($s, {}),
1059
- /* @__PURE__ */ n.jsx("div", { className: "border-b", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl border-l border-r mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-12 h-[--top-header-height]", children: [
1060
- /* @__PURE__ */ n.jsx("div", { className: "flex", children: /* @__PURE__ */ n.jsx(ge, { to: "/", children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
1061
- (o == null ? void 0 : o.logo) && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1062
- /* @__PURE__ */ n.jsx(
812
+ ] }, t.label) : /* @__PURE__ */ r.jsx(le, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(rn, { className: "flex gap-2", children: [
813
+ t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
814
+ t.label
815
+ ] }, t.label) }), tt = Le(function() {
816
+ const e = Z(), { isAuthenticated: n, profile: s, isAuthEnabled: a } = Z(), o = I(), { page: i, plugins: u } = o, d = u.filter((c) => kn(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
817
+ return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
818
+ /* @__PURE__ */ r.jsx(Qn, {}),
819
+ /* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl border-l border-r mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-12 h-[--top-header-height]", children: [
820
+ /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(le, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
821
+ (i == null ? void 0 : i.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
822
+ /* @__PURE__ */ r.jsx(
1063
823
  "img",
1064
824
  {
1065
- src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : R(
825
+ src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Pe(
1066
826
  "/",
1067
- o.logo.src.light
827
+ i.logo.src.light
1068
828
  ),
1069
- alt: o.logo.alt ?? o.pageTitle,
1070
- style: { width: o.logo.width },
829
+ alt: i.logo.alt ?? i.pageTitle,
830
+ style: { width: i.logo.width },
1071
831
  className: "h-10 dark:hidden",
1072
832
  loading: "lazy"
1073
833
  }
1074
834
  ),
1075
- /* @__PURE__ */ n.jsx(
835
+ /* @__PURE__ */ r.jsx(
1076
836
  "img",
1077
837
  {
1078
- src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : R(
838
+ src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Pe(
1079
839
  "/",
1080
- o.logo.src.dark
840
+ i.logo.src.dark
1081
841
  ),
1082
- alt: o.logo.alt ?? o.pageTitle,
1083
- style: { width: o.logo.width },
842
+ alt: i.logo.alt ?? i.pageTitle,
843
+ style: { width: i.logo.width },
1084
844
  className: "h-10 hidden dark:block",
1085
845
  loading: "lazy"
1086
846
  }
1087
847
  )
1088
848
  ] }),
1089
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
849
+ /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
1090
850
  ] }) }) }),
1091
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1092
- /* @__PURE__ */ n.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ n.jsx(st, {}) }),
1093
- /* @__PURE__ */ n.jsx(Vs, {}),
1094
- /* @__PURE__ */ n.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1095
- /* @__PURE__ */ n.jsx(M, { name: "head-navigation-start" }),
1096
- a && /* @__PURE__ */ n.jsx(
1097
- ye,
851
+ /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
852
+ /* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(We, {}) }),
853
+ /* @__PURE__ */ r.jsx(Tn, {}),
854
+ /* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
855
+ /* @__PURE__ */ r.jsx(M, { name: "head-navigation-start" }),
856
+ a && /* @__PURE__ */ r.jsx(
857
+ $e,
1098
858
  {
1099
- fallback: /* @__PURE__ */ n.jsx(qs, { className: "rounded h-5 w-24 mr-4" }),
1100
- children: s ? Object.values(u).length > 0 && /* @__PURE__ */ n.jsxs(rs, { modal: !1, children: [
1101
- /* @__PURE__ */ n.jsx(as, { asChild: !0, children: /* @__PURE__ */ n.jsx(ce, { variant: "ghost", children: r != null && r.name ? `${r.name}` : "My Account" }) }),
1102
- /* @__PURE__ */ n.jsxs(is, { className: "w-56", children: [
1103
- /* @__PURE__ */ n.jsxs(os, { children: [
1104
- r != null && r.name ? `${r.name}` : "My Account",
1105
- (r == null ? void 0 : r.email) && /* @__PURE__ */ n.jsx("div", { className: "font-normal text-muted-foreground", children: r.email })
859
+ fallback: /* @__PURE__ */ r.jsx(Sn, { className: "rounded h-5 w-24 mr-4" }),
860
+ children: n ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(_t, { modal: !1, children: [
861
+ /* @__PURE__ */ r.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ r.jsx(ae, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
862
+ /* @__PURE__ */ r.jsxs(Jt, { className: "w-56", children: [
863
+ /* @__PURE__ */ r.jsxs(Gt, { children: [
864
+ s != null && s.name ? `${s.name}` : "My Account",
865
+ (s == null ? void 0 : s.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
1106
866
  ] }),
1107
- u.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ n.jsx(ae, {}),
1108
- u.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ n.jsx(te, { item: l }, l.label)),
1109
- u.filter(
1110
- (l) => !l.category || l.category === "middle"
1111
- ).length > 0 && /* @__PURE__ */ n.jsx(ae, {}),
1112
- u.filter(
1113
- (l) => !l.category || l.category === "middle"
1114
- ).map((l) => /* @__PURE__ */ n.jsx(te, { item: l }, l.label)),
1115
- u.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ n.jsx(ae, {}),
1116
- u.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ n.jsx(te, { item: l }, l.label))
867
+ d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(te, {}),
868
+ d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(G, { item: c }, c.label)),
869
+ d.filter(
870
+ (c) => !c.category || c.category === "middle"
871
+ ).length > 0 && /* @__PURE__ */ r.jsx(te, {}),
872
+ d.filter(
873
+ (c) => !c.category || c.category === "middle"
874
+ ).map((c) => /* @__PURE__ */ r.jsx(G, { item: c }, c.label)),
875
+ d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(te, {}),
876
+ d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(G, { item: c }, c.label))
1117
877
  ] })
1118
- ] }) : /* @__PURE__ */ n.jsx(ce, { variant: "ghost", onClick: () => t.login(), children: "Login" })
878
+ ] }) : /* @__PURE__ */ r.jsx(ae, { variant: "ghost", onClick: () => e.login(), children: "Login" })
1119
879
  }
1120
880
  ),
1121
- /* @__PURE__ */ n.jsx(nt, {}),
1122
- /* @__PURE__ */ n.jsx(M, { name: "head-navigation-end" })
881
+ /* @__PURE__ */ r.jsx(M, { name: "head-navigation-end" }),
882
+ /* @__PURE__ */ r.jsx(Je, {})
1123
883
  ] })
1124
884
  ] })
1125
885
  ] }) }),
1126
- /* @__PURE__ */ n.jsx("div", { className: "border-b", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto border-l border-r", children: [
1127
- /* @__PURE__ */ n.jsx(M, { name: "top-navigation-before" }),
1128
- /* @__PURE__ */ n.jsx(Zs, {}),
1129
- /* @__PURE__ */ n.jsx(M, { name: "top-navigation-after" })
886
+ /* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto border-l border-r", children: [
887
+ /* @__PURE__ */ r.jsx(M, { name: "top-navigation-before" }),
888
+ /* @__PURE__ */ r.jsx(In, {}),
889
+ /* @__PURE__ */ r.jsx(M, { name: "top-navigation-after" })
1130
890
  ] }) })
1131
891
  ] });
1132
- }), ot = zt(({ children: e, className: t, pushMainContent: s }, r) => /* @__PURE__ */ n.jsx(
892
+ }), nt = At(({ children: t, className: e, pushMainContent: n }, s) => /* @__PURE__ */ r.jsx(
1133
893
  "nav",
1134
894
  {
1135
- "data-navigation": String(s),
1136
- className: O(
895
+ "data-navigation": String(n),
896
+ className: B(
1137
897
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-10",
1138
898
  "-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
1139
899
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
1140
- !s && "border-r-0",
1141
- t
900
+ !n && "border-r-0",
901
+ e
1142
902
  ),
1143
- ref: r,
1144
- children: e
903
+ ref: s,
904
+ children: t
1145
905
  }
1146
906
  ));
1147
- ot.displayName = "SidebarWrapper";
1148
- const Us = ({
1149
- onRequestClose: e
907
+ nt.displayName = "SidebarWrapper";
908
+ const qn = ({
909
+ onRequestClose: t
1150
910
  }) => {
1151
- const t = pe(null), s = Ve();
1152
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1153
- /* @__PURE__ */ n.jsxs(
1154
- ot,
911
+ const e = ce(null), n = Be();
912
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
913
+ /* @__PURE__ */ r.jsxs(
914
+ nt,
1155
915
  {
1156
- ref: t,
1157
- pushMainContent: s.sidebar.length > 0,
916
+ ref: e,
917
+ pushMainContent: n.sidebar.length > 0,
1158
918
  children: [
1159
- /* @__PURE__ */ n.jsx(M, { name: "zudoku-before-navigation" }),
1160
- s.sidebar.map((r) => /* @__PURE__ */ n.jsx(de, { item: r }, r.label)),
1161
- /* @__PURE__ */ n.jsx(M, { name: "zudoku-after-navigation" })
919
+ /* @__PURE__ */ r.jsx(M, { name: "zudoku-before-navigation" }),
920
+ n.sidebar.map((s) => /* @__PURE__ */ r.jsx(we, { item: s }, s.label)),
921
+ /* @__PURE__ */ r.jsx(M, { name: "zudoku-after-navigation" })
1162
922
  ]
1163
923
  }
1164
924
  ),
1165
- /* @__PURE__ */ n.jsx(
1166
- Je,
925
+ /* @__PURE__ */ r.jsx(
926
+ Ye,
1167
927
  {
1168
928
  className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
1169
929
  "aria-describedby": void 0,
1170
- children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1171
- /* @__PURE__ */ n.jsx(et, { children: /* @__PURE__ */ n.jsx(Ge, { children: "Sidebar" }) }),
1172
- s.sidebar.map((r) => /* @__PURE__ */ n.jsx(
1173
- de,
930
+ children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
931
+ /* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(Xe, { children: "Sidebar" }) }),
932
+ n.sidebar.map((s) => /* @__PURE__ */ r.jsx(
933
+ we,
1174
934
  {
1175
- item: r,
1176
- onRequestClose: e
935
+ item: s,
936
+ onRequestClose: t
1177
937
  },
1178
- r.label
938
+ s.label
1179
939
  ))
1180
940
  ] })
1181
941
  }
1182
942
  )
1183
943
  ] });
1184
- }, Te = () => /* @__PURE__ */ n.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ n.jsx(Le, {}) }), Ws = ({ children: e }) => {
1185
- const t = he(), { setActiveAnchor: s } = me(), { meta: r, authentication: a } = q();
1186
- Qs(), Ts();
1187
- const i = pe(t.pathname);
1188
- F(() => {
1189
- var f;
1190
- (f = a == null ? void 0 : a.onPageLoad) == null || f.call(a);
1191
- }, [a]), F(() => {
1192
- t.pathname !== i.current && s(""), i.current = t.pathname;
1193
- }, [t.pathname, s]);
1194
- const o = !!fe().location, d = Os.useSpinDelay(o, {
944
+ }, Ne = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(Ve, {}) }), Rn = ({ children: t }) => {
945
+ const e = Ie(), { setActiveAnchor: n } = Ut(), { meta: s, authentication: a } = I();
946
+ Kt(), Cn();
947
+ const o = ce(e.pathname);
948
+ U(() => {
949
+ var m;
950
+ (m = a == null ? void 0 : a.onPageLoad) == null || m.call(a);
951
+ }, [a]), U(() => {
952
+ e.pathname !== o.current && n(""), o.current = e.pathname;
953
+ }, [e.pathname, n]);
954
+ const i = !!oe().location, u = Pn.useSpinDelay(i, {
1195
955
  delay: 300,
1196
956
  minDuration: 500
1197
- }), [u, l] = T(!1);
1198
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
957
+ }), [d, c] = z(!1);
958
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1199
959
  !1,
1200
- /* @__PURE__ */ n.jsxs(ue, { titleTemplate: r == null ? void 0 : r.title, children: [
1201
- (r == null ? void 0 : r.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: r.description }),
1202
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: r.favicon })
960
+ /* @__PURE__ */ r.jsxs(ie, { titleTemplate: s == null ? void 0 : s.title, children: [
961
+ (s == null ? void 0 : s.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: s.description }),
962
+ (s == null ? void 0 : s.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: s.favicon })
1203
963
  ] }),
1204
- /* @__PURE__ */ n.jsx(M, { name: "layout-before-head" }),
1205
- /* @__PURE__ */ n.jsx(it, {}),
1206
- /* @__PURE__ */ n.jsx(M, { name: "layout-after-head" }),
1207
- /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: d ? /* @__PURE__ */ n.jsx(Te, {}) : /* @__PURE__ */ n.jsx(xe, { fallback: /* @__PURE__ */ n.jsx(Te, {}), children: /* @__PURE__ */ n.jsxs(
1208
- Xe,
964
+ /* @__PURE__ */ r.jsx(M, { name: "layout-before-head" }),
965
+ /* @__PURE__ */ r.jsx(tt, {}),
966
+ /* @__PURE__ */ r.jsx(M, { name: "layout-after-head" }),
967
+ /* @__PURE__ */ r.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: u ? /* @__PURE__ */ r.jsx(Ne, {}) : /* @__PURE__ */ r.jsx(ue, { fallback: /* @__PURE__ */ r.jsx(Ne, {}), children: /* @__PURE__ */ r.jsxs(
968
+ Ze,
1209
969
  {
1210
970
  direction: "left",
1211
- open: u,
1212
- onOpenChange: (f) => l(f),
971
+ open: d,
972
+ onOpenChange: (m) => c(m),
1213
973
  children: [
1214
- /* @__PURE__ */ n.jsx(Us, { onRequestClose: () => l(!1) }),
1215
- /* @__PURE__ */ n.jsx(
974
+ /* @__PURE__ */ r.jsx(qn, { onRequestClose: () => c(!1) }),
975
+ /* @__PURE__ */ r.jsx(
1216
976
  "div",
1217
977
  {
1218
- className: O(
978
+ className: B(
1219
979
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1220
980
  "peer-data-[navigation=false]:hidden"
1221
981
  ),
1222
- children: /* @__PURE__ */ n.jsxs(Ye, { className: "flex items-center gap-2", children: [
1223
- /* @__PURE__ */ n.jsx(Jt, { size: 16, strokeWidth: 1.5 }),
1224
- /* @__PURE__ */ n.jsx("span", { className: "text-sm", children: "Menu" })
982
+ children: /* @__PURE__ */ r.jsxs(Ue, { className: "flex items-center gap-2", children: [
983
+ /* @__PURE__ */ r.jsx(Lt, { size: 16, strokeWidth: 1.5 }),
984
+ /* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
1225
985
  ] })
1226
986
  }
1227
987
  ),
1228
- /* @__PURE__ */ n.jsxs(
988
+ /* @__PURE__ */ r.jsxs(
1229
989
  "main",
1230
990
  {
1231
- className: O(
991
+ className: B(
1232
992
  "h-full dark:border-white/10 translate-x-0",
1233
993
  "lg:overflow-visible",
1234
994
  // This works in tandem with the `SidebarWrapper` component
@@ -1236,9 +996,9 @@ const Us = ({
1236
996
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1237
997
  ),
1238
998
  children: [
1239
- /* @__PURE__ */ n.jsx(M, { name: "zudoku-before-content" }),
1240
- e ?? /* @__PURE__ */ n.jsx(ze, {}),
1241
- /* @__PURE__ */ n.jsx(M, { name: "zudoku-after-content" })
999
+ /* @__PURE__ */ r.jsx(M, { name: "zudoku-before-content" }),
1000
+ t ?? /* @__PURE__ */ r.jsx(Te, {}),
1001
+ /* @__PURE__ */ r.jsx(M, { name: "zudoku-after-content" })
1242
1002
  ]
1243
1003
  }
1244
1004
  )
@@ -1246,195 +1006,197 @@ const Us = ({
1246
1006
  }
1247
1007
  ) }) })
1248
1008
  ] });
1249
- }, _s = _e(null), oe = {
1009
+ }, Fn = Ke(null), ne = {
1250
1010
  didCatch: !1,
1251
1011
  error: null
1252
1012
  };
1253
- class Xs extends Ht {
1254
- constructor(t) {
1255
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = oe;
1013
+ class zn extends Qt {
1014
+ constructor(e) {
1015
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
1256
1016
  }
1257
- static getDerivedStateFromError(t) {
1017
+ static getDerivedStateFromError(e) {
1258
1018
  return {
1259
1019
  didCatch: !0,
1260
- error: t
1020
+ error: e
1261
1021
  };
1262
1022
  }
1263
1023
  resetErrorBoundary() {
1264
1024
  const {
1265
- error: t
1025
+ error: e
1266
1026
  } = this.state;
1267
- if (t !== null) {
1268
- for (var s, r, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1269
- i[o] = arguments[o];
1270
- (s = (r = this.props).onReset) === null || s === void 0 || s.call(r, {
1271
- args: i,
1027
+ if (e !== null) {
1028
+ for (var n, s, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
1029
+ o[i] = arguments[i];
1030
+ (n = (s = this.props).onReset) === null || n === void 0 || n.call(s, {
1031
+ args: o,
1272
1032
  reason: "imperative-api"
1273
- }), this.setState(oe);
1033
+ }), this.setState(ne);
1274
1034
  }
1275
1035
  }
1276
- componentDidCatch(t, s) {
1277
- var r, a;
1278
- (r = (a = this.props).onError) === null || r === void 0 || r.call(a, t, s);
1036
+ componentDidCatch(e, n) {
1037
+ var s, a;
1038
+ (s = (a = this.props).onError) === null || s === void 0 || s.call(a, e, n);
1279
1039
  }
1280
- componentDidUpdate(t, s) {
1040
+ componentDidUpdate(e, n) {
1281
1041
  const {
1282
- didCatch: r
1042
+ didCatch: s
1283
1043
  } = this.state, {
1284
1044
  resetKeys: a
1285
1045
  } = this.props;
1286
- if (r && s.error !== null && Ys(t.resetKeys, a)) {
1287
- var i, o;
1288
- (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1046
+ if (s && n.error !== null && Bn(e.resetKeys, a)) {
1047
+ var o, i;
1048
+ (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1289
1049
  next: a,
1290
- prev: t.resetKeys,
1050
+ prev: e.resetKeys,
1291
1051
  reason: "keys"
1292
- }), this.setState(oe);
1052
+ }), this.setState(ne);
1293
1053
  }
1294
1054
  }
1295
1055
  render() {
1296
1056
  const {
1297
- children: t,
1298
- fallbackRender: s,
1299
- FallbackComponent: r,
1057
+ children: e,
1058
+ fallbackRender: n,
1059
+ FallbackComponent: s,
1300
1060
  fallback: a
1301
1061
  } = this.props, {
1302
- didCatch: i,
1303
- error: o
1062
+ didCatch: o,
1063
+ error: i
1304
1064
  } = this.state;
1305
- let d = t;
1306
- if (i) {
1307
- const u = {
1308
- error: o,
1065
+ let u = e;
1066
+ if (o) {
1067
+ const d = {
1068
+ error: i,
1309
1069
  resetErrorBoundary: this.resetErrorBoundary
1310
1070
  };
1311
- if (typeof s == "function")
1312
- d = s(u);
1313
- else if (r)
1314
- d = Oe(r, u);
1071
+ if (typeof n == "function")
1072
+ u = n(d);
1073
+ else if (s)
1074
+ u = je(s, d);
1315
1075
  else if (a !== void 0)
1316
- d = a;
1076
+ u = a;
1317
1077
  else
1318
- throw o;
1078
+ throw i;
1319
1079
  }
1320
- return Oe(_s.Provider, {
1080
+ return je(Fn.Provider, {
1321
1081
  value: {
1322
- didCatch: i,
1323
- error: o,
1082
+ didCatch: o,
1083
+ error: i,
1324
1084
  resetErrorBoundary: this.resetErrorBoundary
1325
1085
  }
1326
- }, d);
1086
+ }, u);
1327
1087
  }
1328
1088
  }
1329
- function Ys() {
1330
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1331
- return e.length !== t.length || e.some((s, r) => !Object.is(s, t[r]));
1089
+ function Bn() {
1090
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1091
+ return t.length !== e.length || t.some((n, s) => !Object.is(n, e[s]));
1332
1092
  }
1333
- class Js {
1334
- constructor(t) {
1335
- k(this, "plugins");
1336
- k(this, "sidebars");
1337
- k(this, "topNavigation");
1338
- k(this, "meta");
1339
- k(this, "page");
1340
- k(this, "authentication");
1341
- k(this, "navigationPlugins");
1342
- k(this, "initialize", async () => {
1093
+ class Hn {
1094
+ constructor(e) {
1095
+ P(this, "plugins");
1096
+ P(this, "sidebars");
1097
+ P(this, "topNavigation");
1098
+ P(this, "meta");
1099
+ P(this, "page");
1100
+ P(this, "authentication");
1101
+ P(this, "navigationPlugins");
1102
+ P(this, "initialize", async () => {
1343
1103
  await Promise.all(
1344
- this.plugins.filter(zs).map((t) => {
1345
- var s;
1346
- return (s = t.initialize) == null ? void 0 : s.call(t, this);
1104
+ this.plugins.filter(Nn).map((e) => {
1105
+ var n;
1106
+ return (n = e.initialize) == null ? void 0 : n.call(e, this);
1347
1107
  })
1348
1108
  );
1349
1109
  });
1350
- k(this, "getApiIdentities", async () => (await Promise.all(
1351
- this.plugins.filter(Ks).map((s) => s.getIdentities(this))
1110
+ P(this, "getApiIdentities", async () => (await Promise.all(
1111
+ this.plugins.filter(An).map((n) => n.getIdentities(this))
1352
1112
  )).flat());
1353
- k(this, "getPluginSidebar", async (t) => (await Promise.all(
1113
+ P(this, "getPluginSidebar", async (e) => (await Promise.all(
1354
1114
  this.navigationPlugins.map(
1355
- (r) => {
1115
+ (s) => {
1356
1116
  var a;
1357
- return (a = r.getSidebar) == null ? void 0 : a.call(r, R(t));
1117
+ return (a = s.getSidebar) == null ? void 0 : a.call(s, se(e));
1358
1118
  }
1359
1119
  )
1360
- )).flatMap((r) => r ?? []));
1361
- k(this, "signRequest", async (t) => {
1120
+ )).flatMap((s) => s ?? []));
1121
+ P(this, "signRequest", async (e) => {
1362
1122
  if (!this.authentication)
1363
1123
  throw new Error("No authentication provider configured");
1364
- const s = await this.authentication.getAccessToken();
1365
- return t.headers.set("Authorization", `Bearer ${s}`), t;
1124
+ const n = await this.authentication.getAccessToken();
1125
+ return e.headers.set("Authorization", `Bearer ${n}`), e;
1366
1126
  });
1367
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Fs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
1127
+ this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Dn), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
1368
1128
  }
1369
1129
  }
1370
- function Gs({ error: e, resetErrorBoundary: t }) {
1371
- return /* @__PURE__ */ n.jsx(He, { error: e });
1130
+ function Ln({ error: t, resetErrorBoundary: e }) {
1131
+ return /* @__PURE__ */ r.jsx(qe, { error: t });
1372
1132
  }
1373
- const ee = globalThis;
1374
- (!ee.requestIdleCallback || !ee.cancelIdleCallback) && (ee.requestIdleCallback = (e) => setTimeout(e, 1), ee.cancelIdleCallback = clearTimeout);
1375
- const lt = {
1376
- Header: it
1377
- }, en = _e(lt), tn = en.Provider, sn = ({
1378
- children: e,
1379
- context: t
1380
- }) => (qt({
1381
- queryFn: async () => (await t.initialize(), !0),
1133
+ const J = globalThis;
1134
+ (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
1135
+ const st = {
1136
+ Header: tt
1137
+ }, Kn = Ke(st), $n = Kn.Provider, Zn = ({
1138
+ children: t,
1139
+ context: e
1140
+ }) => (kt({
1141
+ queryFn: async () => (await e.initialize(), !0),
1382
1142
  queryKey: ["zudoku-initialize"]
1383
- }), /* @__PURE__ */ n.jsx(Rt.Provider, { value: t, children: e })), ct = We(
1384
- ({ children: e, ...t }) => {
1385
- var g, h;
1386
- const s = ne(
1387
- () => ({ ...lt, ...t.overrides }),
1388
- [t.overrides]
1389
- ), r = ne(() => {
1390
- var x;
1143
+ }), /* @__PURE__ */ r.jsx(Dt.Provider, { value: e, children: t })), rt = Le(
1144
+ ({ children: t, ...e }) => {
1145
+ var f, h;
1146
+ const n = ee(
1147
+ () => ({ ...st, ...e.overrides }),
1148
+ [e.overrides]
1149
+ ), s = ee(() => {
1150
+ var v;
1391
1151
  return {
1392
- ...(t.plugins ?? []).filter(Ls).flatMap(
1393
- (m) => m.getMdxComponents ? [m.getMdxComponents()] : []
1152
+ ...(e.plugins ?? []).filter(En).flatMap(
1153
+ (g) => g.getMdxComponents ? [g.getMdxComponents()] : []
1394
1154
  ).reduce(
1395
- (m, C) => ({ ...m, ...C }),
1155
+ (g, C) => ({ ...g, ...C }),
1396
1156
  {}
1397
1157
  ),
1398
- ...kt,
1399
- ...(x = t.mdx) == null ? void 0 : x.components
1158
+ ...Yt,
1159
+ ...(v = e.mdx) == null ? void 0 : v.components
1400
1160
  };
1401
- }, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = Lt(le), [i, o] = T(!1), d = ne(
1402
- () => i ? { stagger: !0 } : { stagger: a },
1403
- [a, i]
1404
- ), u = fe();
1405
- F(() => {
1406
- i || o(!0);
1407
- }, [i, u.location]);
1408
- const [l] = T(() => new Js(t)), f = (h = t.plugins) == null ? void 0 : h.filter(Hs).map((p, x) => {
1409
- var m;
1410
- return /* @__PURE__ */ n.jsx(Kt, { children: (m = p.getHead) == null ? void 0 : m.call(p) }, x);
1161
+ }, [(f = e.mdx) == null ? void 0 : f.components, e.plugins]), { stagger: a } = It(re), [o, i] = z(!1), u = ee(
1162
+ () => o ? { stagger: !0 } : { stagger: a },
1163
+ [a, o]
1164
+ ), d = oe();
1165
+ U(() => {
1166
+ o || i(!0);
1167
+ }, [o, d.location]);
1168
+ const [c] = z(() => new Hn(e)), m = (h = e.plugins) == null ? void 0 : h.filter(On).map((x, v) => {
1169
+ var g;
1170
+ return /* @__PURE__ */ r.jsx(Tt, { children: (g = x.getHead) == null ? void 0 : g.call(x) }, v);
1411
1171
  });
1412
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1413
- /* @__PURE__ */ n.jsx(ue, { children: f }),
1414
- /* @__PURE__ */ n.jsx(le.Provider, { value: d, children: /* @__PURE__ */ n.jsx(sn, { context: l, children: /* @__PURE__ */ n.jsx(ss, { components: r, children: /* @__PURE__ */ n.jsx(gs, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ n.jsx(tn, { value: s, children: /* @__PURE__ */ n.jsx(bt, { slotlets: t.slotlets, children: /* @__PURE__ */ n.jsx(Ct, { children: e ?? /* @__PURE__ */ n.jsx(ze, {}) }) }) }) }) }) }) })
1172
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1173
+ /* @__PURE__ */ r.jsx(ie, { children: m }),
1174
+ /* @__PURE__ */ r.jsx(re.Provider, { value: u, children: /* @__PURE__ */ r.jsx(Zn, { context: c, children: /* @__PURE__ */ r.jsx($t, { components: s, children: /* @__PURE__ */ r.jsx(on, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx($n, { value: n, children: /* @__PURE__ */ r.jsx(ft, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(Xt, { children: t ?? /* @__PURE__ */ r.jsx(Te, {}) }) }) }) }) }) }) })
1415
1175
  ] });
1416
1176
  }
1417
1177
  );
1418
- ct.displayName = "ZudokoInner";
1419
- const dt = (e) => /* @__PURE__ */ n.jsx(Xs, { FallbackComponent: Gs, children: /* @__PURE__ */ n.jsx(ct, { ...e }) });
1420
- dt.displayName = "Zudoku";
1421
- const Mn = ns, On = Ws, Dn = vt, An = ws, En = Ns, In = Ps, Qn = ue, Tn = q, qn = W, Rn = dt, Fn = wt, Bn = Nt, zn = Le, Hn = ye, Ln = jt, Kn = ge;
1178
+ rt.displayName = "ZudokoInner";
1179
+ const at = (t) => /* @__PURE__ */ r.jsx(zn, { FallbackComponent: Ln, children: /* @__PURE__ */ r.jsx(rt, { ...t }) });
1180
+ at.displayName = "Zudoku";
1181
+ const ps = Zt, xs = Rn, ys = mt, vs = pn, bs = vn, js = bn, ws = ie, Ps = I, Cs = Z, Ss = Mt, ks = Nt, Ds = at, Ms = pt, Ns = Vt, Os = Ve, Es = $e, As = gt, Qs = le;
1422
1182
  export {
1423
- En as Bootstrap,
1424
- In as BootstrapStatic,
1425
- Ln as Button,
1426
- Fn as Callout,
1427
- Hn as ClientOnly,
1428
- Qn as Head,
1429
- On as Layout,
1430
- Kn as Link,
1431
- Bn as Markdown,
1432
- Dn as RouterError,
1433
- An as ServerError,
1434
- zn as Spinner,
1435
- Rn as Zudoku,
1436
- qn as useAuth,
1437
- Mn as useMDXComponents,
1438
- Tn as useZudoku
1183
+ bs as Bootstrap,
1184
+ js as BootstrapStatic,
1185
+ As as Button,
1186
+ ks as CACHE_KEYS,
1187
+ Ms as Callout,
1188
+ Es as ClientOnly,
1189
+ ws as Head,
1190
+ xs as Layout,
1191
+ Qs as Link,
1192
+ Ns as Markdown,
1193
+ ys as RouterError,
1194
+ vs as ServerError,
1195
+ Os as Spinner,
1196
+ Ds as Zudoku,
1197
+ Cs as useAuth,
1198
+ Ss as useCache,
1199
+ ps as useMDXComponents,
1200
+ Ps as useZudoku
1439
1201
  };
1440
1202
  //# sourceMappingURL=zudoku.components.js.map