zudoku 0.0.0-e5be921 → 0.0.0-e614aaa

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 (903) hide show
  1. package/cli.js +3 -0
  2. package/dist/app/demo.js +1 -2
  3. package/dist/app/demo.js.map +1 -1
  4. package/dist/app/entry.client.d.ts +5 -0
  5. package/dist/app/entry.client.js +2 -15
  6. package/dist/app/entry.client.js.map +1 -1
  7. package/dist/app/entry.server.d.ts +1 -1
  8. package/dist/app/entry.server.js +1 -2
  9. package/dist/app/entry.server.js.map +1 -1
  10. package/dist/app/main.d.ts +2 -2
  11. package/dist/app/main.js +19 -9
  12. package/dist/app/main.js.map +1 -1
  13. package/dist/app/sentry.js +1 -1
  14. package/dist/app/sentry.js.map +1 -1
  15. package/dist/app/standalone.js +1 -2
  16. package/dist/app/standalone.js.map +1 -1
  17. package/dist/app/tailwind.js +6 -0
  18. package/dist/app/tailwind.js.map +1 -1
  19. package/dist/cli/build/handler.d.ts +1 -3
  20. package/dist/cli/build/handler.js +7 -0
  21. package/dist/cli/build/handler.js.map +1 -1
  22. package/dist/cli/cli.js +5 -0
  23. package/dist/cli/cli.js.map +1 -1
  24. package/dist/cli/cmds/build.d.ts +11 -3
  25. package/dist/cli/cmds/build.js +21 -13
  26. package/dist/cli/cmds/build.js.map +1 -1
  27. package/dist/cli/cmds/dev.js +5 -0
  28. package/dist/cli/cmds/dev.js.map +1 -1
  29. package/dist/cli/cmds/preview.d.ts +16 -0
  30. package/dist/cli/cmds/preview.js +25 -0
  31. package/dist/cli/cmds/preview.js.map +1 -0
  32. package/dist/cli/common/output.js.map +1 -1
  33. package/dist/cli/common/utils/ports.d.ts +1 -1
  34. package/dist/cli/common/utils/ports.js +16 -15
  35. package/dist/cli/common/utils/ports.js.map +1 -1
  36. package/dist/cli/dev/handler.d.ts +1 -0
  37. package/dist/cli/dev/handler.js +14 -12
  38. package/dist/cli/dev/handler.js.map +1 -1
  39. package/dist/cli/preview/handler.d.ts +3 -0
  40. package/dist/cli/preview/handler.js +37 -0
  41. package/dist/cli/preview/handler.js.map +1 -0
  42. package/dist/config/common.d.ts +5 -2
  43. package/dist/config/config.d.ts +3 -7
  44. package/dist/config/loader.d.ts +4 -4
  45. package/dist/config/loader.js +11 -5
  46. package/dist/config/loader.js.map +1 -1
  47. package/dist/config/validators/InputSidebarSchema.d.ts +32 -17
  48. package/dist/config/validators/InputSidebarSchema.js +11 -1
  49. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  50. package/dist/config/validators/common.d.ts +821 -194
  51. package/dist/config/validators/common.js +71 -16
  52. package/dist/config/validators/common.js.map +1 -1
  53. package/dist/config/validators/icon-types.d.ts +1 -1
  54. package/dist/config/validators/validate.d.ts +378 -131
  55. package/dist/index.d.ts +1 -0
  56. package/dist/index.js +1 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/lib/MissingIcon.d.ts +2 -0
  59. package/dist/lib/MissingIcon.js +7 -0
  60. package/dist/lib/MissingIcon.js.map +1 -0
  61. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  62. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  63. package/dist/lib/authentication/components/SignIn.js +1 -1
  64. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  65. package/dist/lib/authentication/components/SignOut.js +2 -2
  66. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  67. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  68. package/dist/lib/authentication/providers/auth0.js +2 -1
  69. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  70. package/dist/lib/authentication/providers/clerk.js +35 -12
  71. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  72. package/dist/lib/authentication/providers/openid.d.ts +11 -3
  73. package/dist/lib/authentication/providers/openid.js +17 -9
  74. package/dist/lib/authentication/providers/openid.js.map +1 -1
  75. package/dist/lib/authentication/state.d.ts +9 -0
  76. package/dist/lib/authentication/state.js +19 -2
  77. package/dist/lib/authentication/state.js.map +1 -1
  78. package/dist/lib/components/AnchorLink.d.ts +1 -1
  79. package/dist/lib/components/AnchorLink.js +6 -3
  80. package/dist/lib/components/AnchorLink.js.map +1 -1
  81. package/dist/lib/components/Autocomplete.d.ts +13 -0
  82. package/dist/lib/components/Autocomplete.js +47 -0
  83. package/dist/lib/components/Autocomplete.js.map +1 -0
  84. package/dist/lib/components/Banner.js +1 -1
  85. package/dist/lib/components/Banner.js.map +1 -1
  86. package/dist/lib/components/Bootstrap.d.ts +1 -2
  87. package/dist/lib/components/Bootstrap.js +3 -3
  88. package/dist/lib/components/Bootstrap.js.map +1 -1
  89. package/dist/lib/components/Header.js +15 -15
  90. package/dist/lib/components/Header.js.map +1 -1
  91. package/dist/lib/components/Heading.d.ts +2 -2
  92. package/dist/lib/components/Layout.js +2 -2
  93. package/dist/lib/components/Layout.js.map +1 -1
  94. package/dist/lib/components/Markdown.d.ts +2 -2
  95. package/dist/lib/components/Markdown.js +3 -1
  96. package/dist/lib/components/Markdown.js.map +1 -1
  97. package/dist/lib/components/MobileTopNavigation.js +1 -1
  98. package/dist/lib/components/NotFoundPage.js +1 -1
  99. package/dist/lib/components/NotFoundPage.js.map +1 -1
  100. package/dist/lib/components/PathRenderer.d.ts +11 -0
  101. package/dist/lib/components/PathRenderer.js +28 -0
  102. package/dist/lib/components/PathRenderer.js.map +1 -0
  103. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  104. package/dist/lib/components/StatusPage.d.ts +7 -0
  105. package/dist/lib/components/StatusPage.js +71 -0
  106. package/dist/lib/components/StatusPage.js.map +1 -0
  107. package/dist/lib/components/ThemeSwitch.js +8 -5
  108. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  109. package/dist/lib/components/TopNavigation.js +5 -4
  110. package/dist/lib/components/TopNavigation.js.map +1 -1
  111. package/dist/lib/components/Zudoku.d.ts +1 -1
  112. package/dist/lib/components/Zudoku.js +8 -7
  113. package/dist/lib/components/Zudoku.js.map +1 -1
  114. package/dist/lib/components/cache.d.ts +6 -0
  115. package/dist/lib/components/cache.js +13 -0
  116. package/dist/lib/components/cache.js.map +1 -0
  117. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  118. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  119. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  120. package/dist/lib/components/context/ViewportAnchorContext.js +16 -4
  121. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  122. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  123. package/dist/lib/components/context/ZudokuContext.js +11 -4
  124. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  125. package/dist/lib/components/index.d.ts +32 -15
  126. package/dist/lib/components/index.js +17 -4
  127. package/dist/lib/components/index.js.map +1 -1
  128. package/dist/lib/components/navigation/Sidebar.js +7 -2
  129. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  130. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  131. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  132. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  133. package/dist/lib/components/navigation/SidebarCategory.js +18 -16
  134. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  135. package/dist/lib/components/navigation/SidebarItem.js +4 -3
  136. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  137. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  138. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  139. package/dist/lib/components/navigation/utils.js +1 -1
  140. package/dist/lib/components/navigation/utils.js.map +1 -1
  141. package/dist/lib/core/RouteGuard.d.ts +1 -0
  142. package/dist/lib/core/RouteGuard.js +45 -0
  143. package/dist/lib/core/RouteGuard.js.map +1 -0
  144. package/dist/lib/core/ZudokuContext.d.ts +15 -3
  145. package/dist/lib/core/ZudokuContext.js +26 -8
  146. package/dist/lib/core/ZudokuContext.js.map +1 -1
  147. package/dist/lib/core/plugins.d.ts +13 -7
  148. package/dist/lib/core/plugins.js +3 -0
  149. package/dist/lib/core/plugins.js.map +1 -1
  150. package/dist/lib/errors/RouterError.js +1 -1
  151. package/dist/lib/errors/RouterError.js.map +1 -1
  152. package/dist/lib/hooks/index.d.ts +3 -0
  153. package/dist/lib/hooks/index.js +5 -0
  154. package/dist/lib/hooks/index.js.map +1 -0
  155. package/dist/lib/hooks/useEvent.d.ts +11 -0
  156. package/dist/lib/hooks/useEvent.js +19 -0
  157. package/dist/lib/hooks/useEvent.js.map +1 -0
  158. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  159. package/dist/lib/hooks/useEvent.test.js +100 -0
  160. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  161. package/dist/lib/icons.d.ts +1 -0
  162. package/dist/lib/icons.js +1 -0
  163. package/dist/lib/icons.js.map +1 -1
  164. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  165. package/dist/lib/oas/graphql/circular.js +38 -0
  166. package/dist/lib/oas/graphql/circular.js.map +1 -0
  167. package/dist/lib/oas/graphql/index.d.ts +11 -0
  168. package/dist/lib/oas/graphql/index.js +93 -59
  169. package/dist/lib/oas/graphql/index.js.map +1 -1
  170. package/dist/lib/oas/parser/dereference/index.js +6 -3
  171. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  172. package/dist/lib/oas/parser/upgrade/index.js +19 -4
  173. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  174. package/dist/lib/plugins/api-catalog/Catalog.d.ts +3 -5
  175. package/dist/lib/plugins/api-catalog/Catalog.js +23 -26
  176. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  177. package/dist/lib/plugins/api-catalog/index.d.ts +9 -1
  178. package/dist/lib/plugins/api-catalog/index.js +37 -8
  179. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  180. package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
  181. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  182. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  183. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  184. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  185. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  186. package/dist/lib/plugins/api-keys/index.d.ts +1 -0
  187. package/dist/lib/plugins/api-keys/index.js +1 -0
  188. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  189. package/dist/lib/plugins/markdown/MdxPage.js +8 -2
  190. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  191. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  192. package/dist/lib/plugins/markdown/index.js.map +1 -1
  193. package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
  194. package/dist/lib/plugins/markdown/resolver.js +0 -29
  195. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  196. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  197. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  198. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  199. package/dist/lib/plugins/openapi/ColorizedParam.js +18 -7
  200. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  201. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  202. package/dist/lib/plugins/openapi/Endpoint.js +8 -7
  203. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  204. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  205. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  206. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  207. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -2
  208. package/dist/lib/plugins/openapi/OperationList.js +39 -49
  209. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  210. package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -2
  211. package/dist/lib/plugins/openapi/OperationListItem.js +16 -5
  212. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  213. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  214. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  215. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  216. package/dist/lib/plugins/openapi/ParameterListItem.js +3 -2
  217. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  218. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  219. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +10 -3
  220. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  221. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  222. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -13
  223. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  224. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -13
  225. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  226. package/dist/lib/plugins/openapi/Sidecar.js +22 -34
  227. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  228. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  229. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  230. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  231. package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
  232. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  233. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  234. package/dist/lib/plugins/openapi/client/GraphQLClient.js +22 -93
  235. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  236. package/dist/lib/plugins/openapi/client/createServer.d.ts +2 -1
  237. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  238. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  239. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
  240. package/dist/lib/plugins/openapi/client/useCreateQuery.js +2 -4
  241. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  242. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  243. package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -2
  244. package/dist/lib/plugins/openapi/graphql/gql.js +3 -13
  245. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  246. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +66 -29
  247. package/dist/lib/plugins/openapi/graphql/graphql.js +33 -15
  248. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  249. package/dist/lib/plugins/openapi/index.d.ts +10 -1
  250. package/dist/lib/plugins/openapi/index.js +84 -84
  251. package/dist/lib/plugins/openapi/index.js.map +1 -1
  252. package/dist/lib/plugins/openapi/interfaces.d.ts +29 -2
  253. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  254. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +12 -0
  255. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  256. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  257. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  258. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  259. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  260. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  261. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  262. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  263. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  264. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  265. package/dist/lib/plugins/openapi/playground/Playground.d.ts +26 -2
  266. package/dist/lib/plugins/openapi/playground/Playground.js +64 -56
  267. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  268. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  269. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  270. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  271. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  272. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  273. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  274. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  275. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  276. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  277. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  278. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  279. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +95 -0
  280. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  281. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +7 -0
  282. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +16 -0
  283. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  284. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  285. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  286. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  287. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  288. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  289. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  290. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +2 -1
  291. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +5 -3
  292. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -1
  293. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +49 -0
  294. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -1
  295. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
  296. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
  297. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
  298. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
  299. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
  300. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
  301. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +37 -0
  302. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  303. package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
  304. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  305. package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
  306. package/dist/lib/plugins/openapi/schema/utils.js +2 -0
  307. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  308. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  309. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +25 -0
  310. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  311. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +19 -11
  312. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  313. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  314. package/dist/lib/plugins/openapi/util/getRoutes.js +74 -0
  315. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  316. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  317. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  318. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  319. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  320. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  321. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  322. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  323. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  324. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  325. package/dist/lib/plugins/redirect/index.js +1 -1
  326. package/dist/lib/plugins/redirect/index.js.map +1 -1
  327. package/dist/lib/plugins/search-inkeep/index.js +21 -7
  328. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  329. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  330. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +67 -0
  331. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  332. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +7 -0
  333. package/dist/lib/plugins/search-pagefind/ResultList.js +30 -0
  334. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  335. package/dist/lib/plugins/search-pagefind/get-results.d.ts +3 -0
  336. package/dist/lib/plugins/search-pagefind/get-results.js +37 -0
  337. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  338. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  339. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  340. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  341. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  342. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  343. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  344. package/dist/lib/ui/Badge.d.ts +1 -1
  345. package/dist/lib/ui/Badge.js +2 -1
  346. package/dist/lib/ui/Badge.js.map +1 -1
  347. package/dist/lib/ui/Button.d.ts +1 -1
  348. package/dist/lib/ui/Card.js +1 -1
  349. package/dist/lib/ui/Card.js.map +1 -1
  350. package/dist/lib/ui/Checkbox.d.ts +8 -2
  351. package/dist/lib/ui/Checkbox.js +13 -1
  352. package/dist/lib/ui/Checkbox.js.map +1 -1
  353. package/dist/lib/ui/Command.d.ts +17 -3
  354. package/dist/lib/ui/Command.js +7 -3
  355. package/dist/lib/ui/Command.js.map +1 -1
  356. package/dist/lib/ui/Input.d.ts +1 -2
  357. package/dist/lib/ui/Input.js.map +1 -1
  358. package/dist/lib/ui/Select.js +2 -2
  359. package/dist/lib/ui/Select.js.map +1 -1
  360. package/dist/lib/ui/Stepper.d.ts +4 -0
  361. package/dist/lib/ui/Stepper.js +7 -0
  362. package/dist/lib/ui/Stepper.js.map +1 -0
  363. package/dist/lib/ui/SyntaxHighlight.d.ts +14 -0
  364. package/dist/lib/{components → ui}/SyntaxHighlight.js +9 -6
  365. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  366. package/dist/lib/ui/util.d.ts +2 -0
  367. package/dist/lib/ui/util.js +3 -0
  368. package/dist/lib/ui/util.js.map +1 -0
  369. package/dist/lib/util/MdxComponents.d.ts +19 -17
  370. package/dist/lib/util/MdxComponents.js +7 -6
  371. package/dist/lib/util/MdxComponents.js.map +1 -1
  372. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  373. package/dist/lib/util/joinUrl.d.ts +1 -0
  374. package/dist/lib/util/joinUrl.js +40 -0
  375. package/dist/lib/util/joinUrl.js.map +1 -0
  376. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  377. package/dist/lib/util/joinUrl.test.js +43 -0
  378. package/dist/lib/util/joinUrl.test.js.map +1 -0
  379. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  380. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  381. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  382. package/dist/lib/util/traverse.d.ts +8 -1
  383. package/dist/lib/util/traverse.js +7 -3
  384. package/dist/lib/util/traverse.js.map +1 -1
  385. package/dist/lib/util/useExposedProps.js +1 -1
  386. package/dist/lib/util/useExposedProps.js.map +1 -1
  387. package/dist/lib/util/useLatest.d.ts +1 -0
  388. package/dist/lib/util/useLatest.js +15 -0
  389. package/dist/lib/util/useLatest.js.map +1 -0
  390. package/dist/lib/util/useOnScreen.d.ts +1 -1
  391. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  392. package/dist/lib/util/useScrollToAnchor.js +26 -29
  393. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  394. package/dist/lib/util/useScrollToTop.js +7 -5
  395. package/dist/lib/util/useScrollToTop.js.map +1 -1
  396. package/dist/vite/api/schema-codegen.d.ts +12 -0
  397. package/dist/vite/api/schema-codegen.js +62 -0
  398. package/dist/vite/api/schema-codegen.js.map +1 -0
  399. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  400. package/dist/vite/api/schema-codegen.test.js +247 -0
  401. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  402. package/dist/vite/build.js +41 -25
  403. package/dist/vite/build.js.map +1 -1
  404. package/dist/vite/config.d.ts +2 -5
  405. package/dist/vite/config.js +69 -61
  406. package/dist/vite/config.js.map +1 -1
  407. package/dist/vite/config.test.js +5 -1
  408. package/dist/vite/config.test.js.map +1 -1
  409. package/dist/vite/css/collect.d.ts +2 -0
  410. package/dist/vite/css/collect.js +27 -0
  411. package/dist/vite/css/collect.js.map +1 -0
  412. package/dist/vite/css/plugin.d.ts +5 -0
  413. package/dist/vite/css/plugin.js +79 -0
  414. package/dist/vite/css/plugin.js.map +1 -0
  415. package/dist/vite/dev-server.d.ts +5 -2
  416. package/dist/vite/dev-server.js +52 -11
  417. package/dist/vite/dev-server.js.map +1 -1
  418. package/dist/vite/error-handler.d.ts +1 -1
  419. package/dist/vite/error-handler.js +1 -1
  420. package/dist/vite/error-handler.js.map +1 -1
  421. package/dist/vite/output.d.ts +14 -2
  422. package/dist/vite/output.js +12 -14
  423. package/dist/vite/output.js.map +1 -1
  424. package/dist/vite/pagefind.d.ts +4 -0
  425. package/dist/vite/pagefind.js +15 -0
  426. package/dist/vite/pagefind.js.map +1 -0
  427. package/dist/vite/plugin-api-keys.d.ts +2 -2
  428. package/dist/vite/plugin-api-keys.js +5 -5
  429. package/dist/vite/plugin-api-keys.js.map +1 -1
  430. package/dist/vite/plugin-api.d.ts +2 -2
  431. package/dist/vite/plugin-api.js +175 -59
  432. package/dist/vite/plugin-api.js.map +1 -1
  433. package/dist/vite/plugin-auth.d.ts +2 -2
  434. package/dist/vite/plugin-auth.js +7 -4
  435. package/dist/vite/plugin-auth.js.map +1 -1
  436. package/dist/vite/plugin-component.d.ts +2 -2
  437. package/dist/vite/plugin-component.js +7 -3
  438. package/dist/vite/plugin-component.js.map +1 -1
  439. package/dist/vite/plugin-config-reload.d.ts +4 -3
  440. package/dist/vite/plugin-config-reload.js +11 -5
  441. package/dist/vite/plugin-config-reload.js.map +1 -1
  442. package/dist/vite/plugin-config.d.ts +2 -2
  443. package/dist/vite/plugin-config.js +9 -5
  444. package/dist/vite/plugin-config.js.map +1 -1
  445. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  446. package/dist/vite/plugin-custom-pages.js +3 -3
  447. package/dist/vite/plugin-custom-pages.js.map +1 -1
  448. package/dist/vite/plugin-docs.d.ts +2 -2
  449. package/dist/vite/plugin-docs.js +5 -5
  450. package/dist/vite/plugin-docs.js.map +1 -1
  451. package/dist/vite/plugin-frontmatter.d.ts +2 -2
  452. package/dist/vite/plugin-frontmatter.js +5 -4
  453. package/dist/vite/plugin-frontmatter.js.map +1 -1
  454. package/dist/vite/plugin-mdx.d.ts +2 -2
  455. package/dist/vite/plugin-mdx.js +34 -16
  456. package/dist/vite/plugin-mdx.js.map +1 -1
  457. package/dist/vite/plugin-redirect.d.ts +2 -2
  458. package/dist/vite/plugin-redirect.js +3 -3
  459. package/dist/vite/plugin-redirect.js.map +1 -1
  460. package/dist/vite/plugin-search.d.ts +2 -2
  461. package/dist/vite/plugin-search.js +5 -1
  462. package/dist/vite/plugin-search.js.map +1 -1
  463. package/dist/vite/plugin-sidebar.d.ts +2 -2
  464. package/dist/vite/plugin-sidebar.js +13 -4
  465. package/dist/vite/plugin-sidebar.js.map +1 -1
  466. package/dist/vite/plugin-theme-css.d.ts +2 -2
  467. package/dist/vite/plugin-theme-css.js +57 -2
  468. package/dist/vite/plugin-theme-css.js.map +1 -1
  469. package/dist/vite/plugin.d.ts +2 -2
  470. package/dist/vite/plugin.js +4 -0
  471. package/dist/vite/plugin.js.map +1 -1
  472. package/dist/vite/{prerender.d.ts → prerender/FileWritingResponse.d.ts} +8 -9
  473. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  474. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  475. package/dist/vite/prerender/prerender.d.ts +14 -0
  476. package/dist/vite/prerender/prerender.js +84 -0
  477. package/dist/vite/prerender/prerender.js.map +1 -0
  478. package/dist/vite/prerender/worker.d.ts +13 -0
  479. package/dist/vite/prerender/worker.js +32 -0
  480. package/dist/vite/prerender/worker.js.map +1 -0
  481. package/dist/vite/reporter.d.ts +3 -0
  482. package/dist/vite/reporter.js +33 -0
  483. package/dist/vite/reporter.js.map +1 -0
  484. package/dist/vite/sitemap.js +2 -1
  485. package/dist/vite/sitemap.js.map +1 -1
  486. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  487. package/dist/zuplo/enrich-with-zuplo.js +184 -0
  488. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  489. package/dist/zuplo/env.d.ts +1 -0
  490. package/dist/zuplo/env.js +3 -0
  491. package/dist/zuplo/env.js.map +1 -1
  492. package/dist/zuplo/policy-types.d.ts +33 -0
  493. package/dist/zuplo/policy-types.js +8 -0
  494. package/dist/zuplo/policy-types.js.map +1 -0
  495. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  496. package/dist/zuplo/with-zuplo-processors.js +26 -0
  497. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  498. package/dist/zuplo/with-zuplo.d.ts +1 -1
  499. package/dist/zuplo/with-zuplo.js +7 -26
  500. package/dist/zuplo/with-zuplo.js.map +1 -1
  501. package/lib/AuthenticationPlugin-CiO1FM6Q.js +58 -0
  502. package/lib/AuthenticationPlugin-CiO1FM6Q.js.map +1 -0
  503. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-DpB47wvk.js} +3 -3
  504. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
  505. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  506. package/lib/{Dialog-k70Qfukb.js → Dialog-DIKGQxQc.js} +36 -20
  507. package/lib/{Dialog-k70Qfukb.js.map → Dialog-DIKGQxQc.js.map} +1 -1
  508. package/lib/{Markdown-CRsmPPfY.js → Markdown-DePfm7oQ.js} +5972 -5888
  509. package/lib/Markdown-DePfm7oQ.js.map +1 -0
  510. package/lib/MdxPage-BN6l6zXL.js +201 -0
  511. package/lib/MdxPage-BN6l6zXL.js.map +1 -0
  512. package/lib/OasProvider-BSuptFK-.js +34 -0
  513. package/lib/OasProvider-BSuptFK-.js.map +1 -0
  514. package/lib/OperationList-DOcfDmJP.js +5217 -0
  515. package/lib/OperationList-DOcfDmJP.js.map +1 -0
  516. package/lib/{Select-O9ZM3ZgX.js → Select-Dqtcn53H.js} +49 -49
  517. package/lib/Select-Dqtcn53H.js.map +1 -0
  518. package/lib/SlotletProvider-DdtIOUi6.js +221 -0
  519. package/lib/SlotletProvider-DdtIOUi6.js.map +1 -0
  520. package/lib/{Button-jK0EsymC.js → Spinner-1KrEmx1V.js} +17 -14
  521. package/lib/Spinner-1KrEmx1V.js.map +1 -0
  522. package/lib/chunk-IR6S3I6Y-D_3UmFIn.js +1821 -0
  523. package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +1 -0
  524. package/lib/circular-v7K6lDDh.js +15409 -0
  525. package/lib/circular-v7K6lDDh.js.map +1 -0
  526. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  527. package/lib/cn-qaFjX9_3.js.map +1 -0
  528. package/lib/{context-D1nXWxm7.js → context-DLCwaMXN.js} +2 -2
  529. package/lib/context-DLCwaMXN.js.map +1 -0
  530. package/lib/createServer-DmusVVsi.js +12728 -0
  531. package/lib/createServer-DmusVVsi.js.map +1 -0
  532. package/lib/hook-CN__aZIt.js +1464 -0
  533. package/lib/hook-CN__aZIt.js.map +1 -0
  534. package/lib/index-BTbP6Lgf.js +2103 -0
  535. package/lib/index-BTbP6Lgf.js.map +1 -0
  536. package/lib/index-CPNSgwSb.js +36 -0
  537. package/lib/index-CPNSgwSb.js.map +1 -0
  538. package/lib/{index-CkwDvuPt.js → index-Dl3Yl0yb.js} +303 -286
  539. package/lib/index-Dl3Yl0yb.js.map +1 -0
  540. package/lib/index-DwT-v3zK.js +86 -0
  541. package/lib/index-DwT-v3zK.js.map +1 -0
  542. package/lib/index-LNp6rxyU.js.map +1 -1
  543. package/lib/index-gQD2h1wX.js +447 -0
  544. package/lib/index-gQD2h1wX.js.map +1 -0
  545. package/lib/index.esm--gIChbWs.js +1207 -0
  546. package/lib/index.esm--gIChbWs.js.map +1 -0
  547. package/lib/index.esm-CQHE3GEU.js +691 -0
  548. package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-CQHE3GEU.js.map} +1 -1
  549. package/lib/invariant-Caa8-XvF.js.map +1 -1
  550. package/lib/joinUrl-10po2Jdj.js +20 -0
  551. package/lib/joinUrl-10po2Jdj.js.map +1 -0
  552. package/lib/jsx-runtime-CYK1ROHF.js +446 -0
  553. package/lib/jsx-runtime-CYK1ROHF.js.map +1 -0
  554. package/lib/{hook-hEqe7fPB.js → mutation-EclmI0is.js} +39 -58
  555. package/lib/mutation-EclmI0is.js.map +1 -0
  556. package/lib/objectEntries-yMIkr2mI.js +5 -0
  557. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  558. package/lib/post-processors/removeExtensions.js +7 -7
  559. package/lib/post-processors/removeExtensions.js.map +1 -1
  560. package/lib/post-processors/removeParameters.js +48 -0
  561. package/lib/post-processors/removeParameters.js.map +1 -0
  562. package/lib/post-processors/removePaths.js.map +1 -1
  563. package/lib/post-processors/traverse.js +11 -8
  564. package/lib/post-processors/traverse.js.map +1 -1
  565. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  566. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  567. package/lib/prism-csharp.min-bQAo2pmx.js +63 -0
  568. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
  569. package/lib/prism-java.min-BpvsOuIa.js +35 -0
  570. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
  571. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  572. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  573. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  574. package/lib/prism-ruby.min-Dx9KO9ds.js +38 -0
  575. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
  576. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  577. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  578. package/lib/ui/Accordion.js +2 -2
  579. package/lib/ui/Accordion.js.map +1 -1
  580. package/lib/ui/ActionButton.js +10 -11
  581. package/lib/ui/ActionButton.js.map +1 -1
  582. package/lib/ui/Alert.js +3 -3
  583. package/lib/ui/Alert.js.map +1 -1
  584. package/lib/ui/AlertDialog.js +2 -2
  585. package/lib/ui/AlertDialog.js.map +1 -1
  586. package/lib/ui/Badge.js +5 -4
  587. package/lib/ui/Badge.js.map +1 -1
  588. package/lib/ui/Breadcrumb.js +5 -5
  589. package/lib/ui/Breadcrumb.js.map +1 -1
  590. package/lib/ui/Button.js +3 -3
  591. package/lib/ui/Button.js.map +1 -1
  592. package/lib/ui/Callout.js +5 -5
  593. package/lib/ui/Callout.js.map +1 -1
  594. package/lib/ui/Card.js +9 -9
  595. package/lib/ui/Card.js.map +1 -1
  596. package/lib/ui/Carousel.js +408 -402
  597. package/lib/ui/Carousel.js.map +1 -1
  598. package/lib/ui/Checkbox.js +26 -15
  599. package/lib/ui/Checkbox.js.map +1 -1
  600. package/lib/ui/Command.js +114 -508
  601. package/lib/ui/Command.js.map +1 -1
  602. package/lib/ui/Dialog.js +2 -2
  603. package/lib/ui/Dialog.js.map +1 -1
  604. package/lib/ui/Drawer.js +357 -378
  605. package/lib/ui/Drawer.js.map +1 -1
  606. package/lib/ui/DropdownMenu.js +2 -2
  607. package/lib/ui/DropdownMenu.js.map +1 -1
  608. package/lib/ui/Form.js +6 -6
  609. package/lib/ui/Form.js.map +1 -1
  610. package/lib/ui/HoverCard.js +2 -2
  611. package/lib/ui/Input.js +2 -2
  612. package/lib/ui/Input.js.map +1 -1
  613. package/lib/ui/Label.js +3 -3
  614. package/lib/ui/Pagination.js +5 -5
  615. package/lib/ui/Pagination.js.map +1 -1
  616. package/lib/ui/Popover.js +2 -2
  617. package/lib/ui/Popover.js.map +1 -1
  618. package/lib/ui/Progress.js +2 -2
  619. package/lib/ui/Progress.js.map +1 -1
  620. package/lib/ui/RadioGroup.js +2 -2
  621. package/lib/ui/RadioGroup.js.map +1 -1
  622. package/lib/ui/ScrollArea.js +2 -2
  623. package/lib/ui/ScrollArea.js.map +1 -1
  624. package/lib/ui/Select.js +4 -4
  625. package/lib/ui/Select.js.map +1 -1
  626. package/lib/ui/Skeleton.js +2 -2
  627. package/lib/ui/Skeleton.js.map +1 -1
  628. package/lib/ui/Slider.js +2 -2
  629. package/lib/ui/Stepper.js +6 -0
  630. package/lib/ui/Stepper.js.map +1 -0
  631. package/lib/ui/Switch.js +2 -2
  632. package/lib/ui/Switch.js.map +1 -1
  633. package/lib/{SyntaxHighlight-C31iouiO.js → ui/SyntaxHighlight.js} +460 -536
  634. package/lib/ui/SyntaxHighlight.js.map +1 -0
  635. package/lib/ui/Tabs.js +2 -2
  636. package/lib/ui/Textarea.js +2 -2
  637. package/lib/ui/Textarea.js.map +1 -1
  638. package/lib/ui/Toggle.js +3 -3
  639. package/lib/ui/Toggle.js.map +1 -1
  640. package/lib/ui/ToggleGroup.js +2 -2
  641. package/lib/ui/ToggleGroup.js.map +1 -1
  642. package/lib/ui/Tooltip.js +2 -2
  643. package/lib/ui/util.js +6 -0
  644. package/lib/ui/util.js.map +1 -0
  645. package/lib/useExposedProps-RIvey2Oy.js +9 -0
  646. package/lib/useExposedProps-RIvey2Oy.js.map +1 -0
  647. package/lib/useScrollToAnchor-RyqO3lj4.js +290 -0
  648. package/lib/useScrollToAnchor-RyqO3lj4.js.map +1 -0
  649. package/lib/zudoku.auth-auth0.js +19 -20
  650. package/lib/zudoku.auth-auth0.js.map +1 -1
  651. package/lib/zudoku.auth-clerk.js +81 -53
  652. package/lib/zudoku.auth-clerk.js.map +1 -1
  653. package/lib/zudoku.auth-openid.js +379 -410
  654. package/lib/zudoku.auth-openid.js.map +1 -1
  655. package/lib/zudoku.components.js +1003 -1263
  656. package/lib/zudoku.components.js.map +1 -1
  657. package/lib/zudoku.css +1 -0
  658. package/lib/zudoku.hooks.js +19 -0
  659. package/lib/zudoku.hooks.js.map +1 -0
  660. package/lib/zudoku.icons.js +10 -0
  661. package/lib/zudoku.icons.js.map +1 -1
  662. package/lib/zudoku.plugin-api-catalog.js +109 -109
  663. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  664. package/lib/zudoku.plugin-api-keys.js +108 -107
  665. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  666. package/lib/zudoku.plugin-custom-pages.js +4 -4
  667. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  668. package/lib/zudoku.plugin-markdown.js +23 -44
  669. package/lib/zudoku.plugin-markdown.js.map +1 -1
  670. package/lib/zudoku.plugin-openapi.js +8 -6
  671. package/lib/zudoku.plugin-openapi.js.map +1 -1
  672. package/lib/zudoku.plugin-redirect.js +1 -1
  673. package/lib/zudoku.plugin-redirect.js.map +1 -1
  674. package/lib/zudoku.plugin-search-inkeep.js +34 -26
  675. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  676. package/lib/zudoku.plugins.js +14 -0
  677. package/lib/zudoku.plugins.js.map +1 -0
  678. package/package.json +104 -89
  679. package/src/app/demo-cdn.html +31 -31
  680. package/src/app/demo.tsx +1 -2
  681. package/src/app/entry.client.tsx +9 -15
  682. package/src/app/entry.server.tsx +3 -3
  683. package/src/app/main.css +59 -45
  684. package/src/app/main.tsx +33 -10
  685. package/src/app/sentry.ts +1 -1
  686. package/src/app/standalone.tsx +1 -2
  687. package/src/app/tailwind.ts +6 -0
  688. package/src/lib/MissingIcon.tsx +22 -0
  689. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  690. package/src/lib/authentication/components/SignIn.tsx +1 -1
  691. package/src/lib/authentication/components/SignOut.tsx +3 -2
  692. package/src/lib/authentication/providers/auth0.tsx +4 -6
  693. package/src/lib/authentication/providers/clerk.tsx +48 -13
  694. package/src/lib/authentication/providers/openid.tsx +32 -15
  695. package/src/lib/authentication/state.ts +26 -2
  696. package/src/lib/components/AnchorLink.tsx +6 -3
  697. package/src/lib/components/Autocomplete.tsx +113 -0
  698. package/src/lib/components/Banner.tsx +1 -0
  699. package/src/lib/components/Bootstrap.tsx +4 -6
  700. package/src/lib/components/Header.tsx +14 -10
  701. package/src/lib/components/Heading.tsx +1 -1
  702. package/src/lib/components/Layout.tsx +4 -3
  703. package/src/lib/components/Markdown.tsx +14 -15
  704. package/src/lib/components/MobileTopNavigation.tsx +1 -1
  705. package/src/lib/components/NotFoundPage.tsx +1 -1
  706. package/src/lib/components/PathRenderer.tsx +61 -0
  707. package/src/lib/components/SlotletProvider.tsx +1 -1
  708. package/src/lib/components/StatusPage.tsx +91 -0
  709. package/src/lib/components/ThemeSwitch.tsx +29 -9
  710. package/src/lib/components/TopNavigation.tsx +15 -11
  711. package/src/lib/components/Zudoku.tsx +10 -6
  712. package/src/lib/components/cache.ts +15 -0
  713. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  714. package/src/lib/components/context/ViewportAnchorContext.tsx +20 -6
  715. package/src/lib/components/context/ZudokuContext.ts +17 -4
  716. package/src/lib/components/index.ts +22 -5
  717. package/src/lib/components/navigation/Sidebar.tsx +8 -2
  718. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  719. package/src/lib/components/navigation/SidebarCategory.tsx +46 -47
  720. package/src/lib/components/navigation/SidebarItem.tsx +4 -2
  721. package/src/lib/components/navigation/SidebarWrapper.tsx +3 -2
  722. package/src/lib/components/navigation/utils.ts +1 -1
  723. package/src/lib/core/RouteGuard.tsx +73 -0
  724. package/src/lib/core/ZudokuContext.ts +41 -9
  725. package/src/lib/core/plugins.ts +27 -9
  726. package/src/lib/errors/RouterError.tsx +1 -1
  727. package/src/lib/hooks/index.ts +5 -0
  728. package/src/lib/hooks/useEvent.test.tsx +149 -0
  729. package/src/lib/hooks/useEvent.ts +41 -0
  730. package/src/lib/icons.ts +1 -0
  731. package/src/lib/oas/graphql/circular.ts +50 -0
  732. package/src/lib/oas/graphql/index.ts +135 -92
  733. package/src/lib/oas/parser/dereference/index.ts +8 -4
  734. package/src/lib/oas/parser/upgrade/index.ts +21 -5
  735. package/src/lib/plugins/api-catalog/Catalog.tsx +62 -110
  736. package/src/lib/plugins/api-catalog/index.tsx +69 -9
  737. package/src/lib/plugins/api-keys/CreateApiKey.tsx +8 -4
  738. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  739. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  740. package/src/lib/plugins/api-keys/index.tsx +4 -1
  741. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  742. package/src/lib/plugins/markdown/MdxPage.tsx +15 -3
  743. package/src/lib/plugins/markdown/index.tsx +2 -1
  744. package/src/lib/plugins/markdown/resolver.ts +0 -33
  745. package/src/lib/plugins/openapi/CollapsibleCode.tsx +10 -7
  746. package/src/lib/plugins/openapi/ColorizedParam.tsx +29 -12
  747. package/src/lib/plugins/openapi/Endpoint.tsx +14 -12
  748. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  749. package/src/lib/plugins/openapi/OperationList.tsx +106 -67
  750. package/src/lib/plugins/openapi/OperationListItem.tsx +48 -6
  751. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  752. package/src/lib/plugins/openapi/ParameterListItem.tsx +7 -8
  753. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +14 -2
  754. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -38
  755. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -63
  756. package/src/lib/plugins/openapi/Sidecar.tsx +44 -60
  757. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  758. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  759. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +28 -120
  760. package/src/lib/plugins/openapi/client/createServer.ts +6 -2
  761. package/src/lib/plugins/openapi/client/useCreateQuery.ts +2 -5
  762. package/src/lib/plugins/openapi/context.tsx +2 -2
  763. package/src/lib/plugins/openapi/graphql/gql.ts +21 -5
  764. package/src/lib/plugins/openapi/graphql/graphql.ts +92 -45
  765. package/src/lib/plugins/openapi/index.tsx +130 -97
  766. package/src/lib/plugins/openapi/interfaces.ts +27 -2
  767. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +54 -0
  768. package/src/lib/plugins/openapi/playground/Headers.tsx +166 -36
  769. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  770. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -65
  771. package/src/lib/plugins/openapi/playground/Playground.tsx +288 -235
  772. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +6 -3
  773. package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -88
  774. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  775. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  776. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +210 -0
  777. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +101 -0
  778. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  779. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  780. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +58 -0
  781. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +7 -4
  782. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
  783. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
  784. package/src/lib/plugins/openapi/schema/{SchemaComponents.tsx → SchemaPropertyItem.tsx} +34 -9
  785. package/src/lib/plugins/openapi/schema/SchemaView.tsx +4 -1
  786. package/src/lib/plugins/openapi/schema/utils.ts +4 -0
  787. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +39 -0
  788. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +26 -11
  789. package/src/lib/plugins/openapi/util/getRoutes.tsx +123 -0
  790. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  791. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  792. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  793. package/src/lib/plugins/redirect/index.tsx +1 -1
  794. package/src/lib/plugins/search-inkeep/index.tsx +27 -8
  795. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +139 -0
  796. package/src/lib/plugins/search-pagefind/ResultList.tsx +98 -0
  797. package/src/lib/plugins/search-pagefind/get-results.tsx +54 -0
  798. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  799. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  800. package/src/lib/ui/Badge.tsx +2 -1
  801. package/src/lib/ui/Card.tsx +1 -1
  802. package/src/lib/ui/Checkbox.tsx +24 -7
  803. package/src/lib/ui/Command.tsx +45 -3
  804. package/src/lib/ui/Input.tsx +1 -2
  805. package/src/lib/ui/Select.tsx +1 -1
  806. package/src/lib/ui/Stepper.css +43 -0
  807. package/src/lib/ui/Stepper.tsx +8 -0
  808. package/src/lib/{components → ui}/SyntaxHighlight.tsx +37 -8
  809. package/src/lib/ui/util.tsx +3 -0
  810. package/src/lib/util/MdxComponents.tsx +8 -6
  811. package/src/lib/util/createVariantComponent.tsx +2 -2
  812. package/src/lib/util/joinUrl.test.ts +62 -0
  813. package/src/lib/util/joinUrl.ts +57 -0
  814. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  815. package/src/lib/util/traverse.ts +15 -5
  816. package/src/lib/util/useExposedProps.tsx +1 -1
  817. package/src/lib/util/useLatest.ts +18 -0
  818. package/src/lib/util/useScrollToAnchor.ts +33 -34
  819. package/src/lib/util/useScrollToTop.ts +9 -4
  820. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  821. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  822. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  823. package/dist/lib/plugins/openapi/Route.js +0 -6
  824. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  825. package/dist/lib/plugins/openapi/client/worker.d.ts +0 -4
  826. package/dist/lib/plugins/openapi/client/worker.js +0 -29
  827. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  828. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  829. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  830. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  831. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  832. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  833. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  834. package/dist/lib/plugins/openapi-worker.js +0 -8
  835. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  836. package/dist/vite/prerender.js +0 -89
  837. package/dist/vite/prerender.js.map +0 -1
  838. package/lib/AnchorLink-BR0MvI7n.js +0 -35
  839. package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
  840. package/lib/AuthenticationPlugin-D0Em0SwR.js +0 -59
  841. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
  842. package/lib/Button-jK0EsymC.js.map +0 -1
  843. package/lib/Markdown-CRsmPPfY.js.map +0 -1
  844. package/lib/MdxPage-Wp8QU0-q.js +0 -188
  845. package/lib/MdxPage-Wp8QU0-q.js.map +0 -1
  846. package/lib/OperationList-u8xHU9-b.js +0 -4706
  847. package/lib/OperationList-u8xHU9-b.js.map +0 -1
  848. package/lib/Route-DlG_HTMu.js +0 -11
  849. package/lib/Route-DlG_HTMu.js.map +0 -1
  850. package/lib/Select-O9ZM3ZgX.js.map +0 -1
  851. package/lib/SidebarBadge-DxFJcJ6V.js +0 -51
  852. package/lib/SidebarBadge-DxFJcJ6V.js.map +0 -1
  853. package/lib/SlotletProvider-BgvYIPQe.js +0 -252
  854. package/lib/SlotletProvider-BgvYIPQe.js.map +0 -1
  855. package/lib/Spinner-3cQDBVGr.js +0 -7
  856. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  857. package/lib/SyntaxHighlight-C31iouiO.js.map +0 -1
  858. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  859. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  860. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  861. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  862. package/lib/assets/worker-C_2va8B8.js +0 -18200
  863. package/lib/assets/worker-C_2va8B8.js.map +0 -1
  864. package/lib/cn-BmFQLtkS.js.map +0 -1
  865. package/lib/context-D1nXWxm7.js.map +0 -1
  866. package/lib/createServer-BCAHdrpE.js +0 -15302
  867. package/lib/createServer-BCAHdrpE.js.map +0 -1
  868. package/lib/hook-hEqe7fPB.js.map +0 -1
  869. package/lib/index-BuAyrJe3.js +0 -46
  870. package/lib/index-BuAyrJe3.js.map +0 -1
  871. package/lib/index-CkwDvuPt.js.map +0 -1
  872. package/lib/index-CmdLGbbk.js +0 -1279
  873. package/lib/index-CmdLGbbk.js.map +0 -1
  874. package/lib/index-Czzd9rjU.js +0 -899
  875. package/lib/index-Czzd9rjU.js.map +0 -1
  876. package/lib/index-Yn8c3UWE.js +0 -921
  877. package/lib/index-Yn8c3UWE.js.map +0 -1
  878. package/lib/index.esm-Bm8pj-bc.js +0 -675
  879. package/lib/index.esm-C5mr_sKO.js +0 -1193
  880. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  881. package/lib/jsx-runtime-B6kdoens.js +0 -635
  882. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  883. package/lib/object_hash-CvlLgU-M.js +0 -785
  884. package/lib/object_hash-CvlLgU-M.js.map +0 -1
  885. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  886. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  887. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  888. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  889. package/lib/router-lfyopgBI.js +0 -3024
  890. package/lib/router-lfyopgBI.js.map +0 -1
  891. package/lib/state-tsXBLONe.js +0 -203
  892. package/lib/state-tsXBLONe.js.map +0 -1
  893. package/lib/useExposedProps-CTPtylCV.js +0 -10
  894. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  895. package/lib/utils-DcpDOncX.js +0 -1218
  896. package/lib/utils-DcpDOncX.js.map +0 -1
  897. package/lib/zudoku.openapi-worker.js +0 -15
  898. package/lib/zudoku.openapi-worker.js.map +0 -1
  899. package/src/lib/plugins/openapi/Route.tsx +0 -19
  900. package/src/lib/plugins/openapi/client/worker.ts +0 -44
  901. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  902. package/src/lib/plugins/openapi-worker.ts +0 -11
  903. /package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +0 -0
@@ -1,1262 +1,874 @@
1
- var yt = Object.defineProperty;
2
- var Ce = (e) => {
3
- throw TypeError(e);
1
+ var ut = Object.defineProperty;
2
+ var xe = (t) => {
3
+ throw TypeError(t);
4
4
  };
5
- var bt = (e, t, r) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var S = (e, t, r) => bt(e, typeof t != "symbol" ? t + "" : t, r), Pe = (e, t, r) => t.has(e) || Ce("Cannot " + r);
7
- var u = (e, t, r) => (Pe(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Pe(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
8
- var J = (e, t, r, s) => ({
9
- set _(n) {
10
- y(e, t, n, r);
5
+ var dt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var j = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), ve = (t, e, r) => e.has(t) || xe("Cannot " + r);
7
+ var l = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), w = (t, e, r) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), y = (t, e, r, n) => (ve(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
8
+ var _ = (t, e, r, n) => ({
9
+ set _(a) {
10
+ y(t, e, a, r);
11
11
  },
12
12
  get _() {
13
- return u(e, t, s);
13
+ return l(t, e, n);
14
14
  }
15
15
  });
16
- import { a as He, H as me } from "./index.esm-Bm8pj-bc.js";
17
- import { d as jt, R as wt, N as ae, u as St, L as ge } from "./index-Yn8c3UWE.js";
18
- import { u as Nt } from "./state-tsXBLONe.js";
19
- import { E as Ue, S as O, a as Et, R as Ct } from "./SlotletProvider-BgvYIPQe.js";
20
- import { j as a } from "./jsx-runtime-B6kdoens.js";
21
- import { Button as Pt } from "./ui/Button.js";
22
- import { Callout as kt } from "./ui/Callout.js";
23
- import { S as $e, l as Ke, Q as Dt, n as w, m as ke, o as De, p as A, q as Ot, r as At, t as Mt, v as Rt, w as Oe, x as Ae, y as It, h as Me, z as Re, A as Tt, d as _t, B as Ve, C as Qt, j as q, u as F, D as Ze, E as Ft, g as qt, Z as zt } from "./utils-DcpDOncX.js";
24
- import { M as Bt, u as se } from "./hook-hEqe7fPB.js";
25
- import * as G from "react";
26
- import Ye, { StrictMode as We, useState as Q, useEffect as z, useRef as pe, useCallback as Lt, Suspense as ve, memo as Xe, forwardRef as Ht, createContext as Je, Component as Ut, createElement as Ie, useMemo as ne, useContext as $t, Fragment as Kt } from "react";
27
- import { a as xe, c as Vt } from "./_commonjsHelpers-BkfeUUK-.js";
28
- import { B as Zt } from "./router-lfyopgBI.js";
29
- import { I as Yt, y as Wt, u as ye, j as be, O as Ge } from "./index-Czzd9rjU.js";
30
- import { S as ue, a as ie } from "./SidebarBadge-DxFJcJ6V.js";
31
- import { C as je } from "./ClientOnly-E7hGysn1.js";
32
- import { ChevronRightIcon as Xt, ExternalLinkIcon as Jt, CircleXIcon as Gt, SearchIcon as er, MoonStarIcon as tr, SunIcon as rr, MenuIcon as ar, PanelLeftIcon as sr } from "lucide-react";
33
- import { Drawer as et, DrawerTrigger as tt, DrawerContent as rt, DrawerTitle as at } from "./ui/Drawer.js";
34
- import { c as R } from "./cn-BmFQLtkS.js";
35
- import { u as we, a as nr, V as ir } from "./Markdown-CRsmPPfY.js";
36
- import { c as or, a as lr } from "./index-BuAyrJe3.js";
37
- import { A as cr, M as ur, u as dr } from "./AnchorLink-BR0MvI7n.js";
38
- import * as oe from "@radix-ui/react-collapsible";
39
- import { B as de } from "./Button-jK0EsymC.js";
40
- import { DropdownMenu as hr, DropdownMenuTrigger as fr, DropdownMenuContent as mr, DropdownMenuLabel as gr, DropdownMenuSeparator as le, DropdownMenuSub as pr, DropdownMenuSubTrigger as vr, DropdownMenuPortal as xr, DropdownMenuSubContent as yr, DropdownMenuItem as br } from "./ui/DropdownMenu.js";
41
- import { VisuallyHidden as st } from "@radix-ui/react-visually-hidden";
42
- import { z as jr, J as wr } from "./SyntaxHighlight-C31iouiO.js";
43
- import { Z as Sr } from "./invariant-Caa8-XvF.js";
44
- import { S as Nr } from "./Spinner-3cQDBVGr.js";
45
- function Er({ error: e }) {
46
- return /* @__PURE__ */ a.jsx(Ue, { error: e });
47
- }
48
- var k, ze, Cr = (ze = class extends $e {
49
- constructor(t = {}) {
16
+ import { a as Fe, H as le } from "./index.esm-CQHE3GEU.js";
17
+ import { z as He, J as ht } from "./index-DwT-v3zK.js";
18
+ import { a as ft, u as te, m as gt, O as ce, R as mt, S as pt, h as ue, f as xt, L as de } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
19
+ import { S as Be, q as Le, Q as vt, n as P, r as ye, t as be, v as M, w as yt, x as bt, y as jt, z as wt, A as je, B as we, C as Pt, h as Pe, D as Ce, E as Ct, f as kt, k as L, a as E, m as St, F as ze, G as Ke, H as Nt, j as ae, b as Dt, Z as Et, I as Mt, J as Ot } from "./hook-CN__aZIt.js";
20
+ import { j as s } from "./jsx-runtime-CYK1ROHF.js";
21
+ import { D as At, a as qt, d as Tt, c as It, e as Qt } from "./Dialog-DIKGQxQc.js";
22
+ import { Z as $e } from "./invariant-Caa8-XvF.js";
23
+ import * as U from "react";
24
+ import Rt, { useRef as V, useEffect as I, createContext as he, StrictMode as Ue, useState as z, useCallback as Ft, Suspense as fe, memo as Ze, forwardRef as Ht, Component as Bt, createElement as ke, useMemo as re, useContext as Lt } from "react";
25
+ import { E as Ye, S, a as zt, R as Kt } from "./SlotletProvider-DdtIOUi6.js";
26
+ import { Button as $t } from "./ui/Button.js";
27
+ import { Callout as Ut } from "./ui/Callout.js";
28
+ import { M as Zt } from "./mutation-EclmI0is.js";
29
+ import * as Yt from "react-dom";
30
+ import { C as ge } from "./ClientOnly-E7hGysn1.js";
31
+ import { CircleXIcon as Vt, SearchIcon as Xt, SunIcon as Gt, MoonIcon as _t, MenuIcon as Wt, PanelLeftIcon as Jt } from "lucide-react";
32
+ import { Drawer as Ve, DrawerTrigger as Xe, DrawerContent as Ge, DrawerTitle as _e } from "./ui/Drawer.js";
33
+ import { c as Q } from "./cn-qaFjX9_3.js";
34
+ import { s as er, S as Se, a as tr, M as rr, u as sr } from "./useScrollToAnchor-RyqO3lj4.js";
35
+ import { u as nr, H as ar, P as ir, a as or, V as lr, M as cr } from "./Markdown-DePfm7oQ.js";
36
+ import { B as ie, S as We } from "./Spinner-1KrEmx1V.js";
37
+ import { isSearchPlugin as ur, isProfileMenuPlugin as dr, isNavigationPlugin as hr, isEventConsumerPlugin as fr, needsInitialization as gr, isApiIdentityPlugin as mr, isMdxProviderPlugin as pr, hasHead as xr } from "./zudoku.plugins.js";
38
+ import { DropdownMenu as vr, DropdownMenuTrigger as yr, DropdownMenuContent as br, DropdownMenuLabel as jr, DropdownMenuSeparator as se, DropdownMenuSub as wr, DropdownMenuSubTrigger as Pr, DropdownMenuPortal as Cr, DropdownMenuSubContent as kr, DropdownMenuItem as Sr } from "./ui/DropdownMenu.js";
39
+ import { j as Ne } from "./joinUrl-10po2Jdj.js";
40
+ import { VisuallyHidden as Je } from "@radix-ui/react-visually-hidden";
41
+ import { a as Nr } from "./index-CPNSgwSb.js";
42
+ import { C as Dr } from "./CategoryHeading-DpB47wvk.js";
43
+ import { o as Er } from "./objectEntries-yMIkr2mI.js";
44
+ var D, Ie, Mr = (Ie = class extends Be {
45
+ constructor(e = {}) {
50
46
  super();
51
- N(this, k);
52
- this.config = t, y(this, k, /* @__PURE__ */ new Map());
53
- }
54
- build(t, r, s) {
55
- const n = r.queryKey, o = r.queryHash ?? Ke(n, r);
56
- let i = this.get(o);
57
- return i || (i = new Dt({
58
- cache: this,
59
- queryKey: n,
60
- queryHash: o,
61
- options: t.defaultQueryOptions(r),
62
- state: s,
63
- defaultOptions: t.getQueryDefaults(n)
64
- }), this.add(i)), i;
65
- }
66
- add(t) {
67
- u(this, k).has(t.queryHash) || (u(this, k).set(t.queryHash, t), this.notify({
47
+ w(this, D);
48
+ this.config = e, y(this, D, /* @__PURE__ */ new Map());
49
+ }
50
+ build(e, r, n) {
51
+ const a = r.queryKey, i = r.queryHash ?? Le(a, r);
52
+ let o = this.get(i);
53
+ return o || (o = new vt({
54
+ client: e,
55
+ queryKey: a,
56
+ queryHash: i,
57
+ options: e.defaultQueryOptions(r),
58
+ state: n,
59
+ defaultOptions: e.getQueryDefaults(a)
60
+ }), this.add(o)), o;
61
+ }
62
+ add(e) {
63
+ l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
68
64
  type: "added",
69
- query: t
65
+ query: e
70
66
  }));
71
67
  }
72
- remove(t) {
73
- const r = u(this, k).get(t.queryHash);
74
- r && (t.destroy(), r === t && u(this, k).delete(t.queryHash), this.notify({ type: "removed", query: t }));
68
+ remove(e) {
69
+ const r = l(this, D).get(e.queryHash);
70
+ r && (e.destroy(), r === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
75
71
  }
76
72
  clear() {
77
- w.batch(() => {
78
- this.getAll().forEach((t) => {
79
- this.remove(t);
73
+ P.batch(() => {
74
+ this.getAll().forEach((e) => {
75
+ this.remove(e);
80
76
  });
81
77
  });
82
78
  }
83
- get(t) {
84
- return u(this, k).get(t);
79
+ get(e) {
80
+ return l(this, D).get(e);
85
81
  }
86
82
  getAll() {
87
- return [...u(this, k).values()];
83
+ return [...l(this, D).values()];
88
84
  }
89
- find(t) {
90
- const r = { exact: !0, ...t };
85
+ find(e) {
86
+ const r = { exact: !0, ...e };
91
87
  return this.getAll().find(
92
- (s) => ke(r, s)
88
+ (n) => ye(r, n)
93
89
  );
94
90
  }
95
- findAll(t = {}) {
91
+ findAll(e = {}) {
96
92
  const r = this.getAll();
97
- return Object.keys(t).length > 0 ? r.filter((s) => ke(t, s)) : r;
93
+ return Object.keys(e).length > 0 ? r.filter((n) => ye(e, n)) : r;
98
94
  }
99
- notify(t) {
100
- w.batch(() => {
95
+ notify(e) {
96
+ P.batch(() => {
101
97
  this.listeners.forEach((r) => {
102
- r(t);
98
+ r(e);
103
99
  });
104
100
  });
105
101
  }
106
102
  onFocus() {
107
- w.batch(() => {
108
- this.getAll().forEach((t) => {
109
- t.onFocus();
103
+ P.batch(() => {
104
+ this.getAll().forEach((e) => {
105
+ e.onFocus();
110
106
  });
111
107
  });
112
108
  }
113
109
  onOnline() {
114
- w.batch(() => {
115
- this.getAll().forEach((t) => {
116
- t.onOnline();
110
+ P.batch(() => {
111
+ this.getAll().forEach((e) => {
112
+ e.onOnline();
117
113
  });
118
114
  });
119
115
  }
120
- }, k = new WeakMap(), ze), j, Z, Be, Pr = (Be = class extends $e {
121
- constructor(t = {}) {
116
+ }, D = new WeakMap(), Ie), O, k, Y, Qe, Or = (Qe = class extends Be {
117
+ constructor(e = {}) {
122
118
  super();
123
- N(this, j);
124
- N(this, Z);
125
- this.config = t, y(this, j, /* @__PURE__ */ new Map()), y(this, Z, Date.now());
119
+ w(this, O);
120
+ w(this, k);
121
+ w(this, Y);
122
+ this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, k, /* @__PURE__ */ new Map()), y(this, Y, 0);
126
123
  }
127
- build(t, r, s) {
128
- const n = new Bt({
124
+ build(e, r, n) {
125
+ const a = new Zt({
129
126
  mutationCache: this,
130
- mutationId: ++J(this, Z)._,
131
- options: t.defaultMutationOptions(r),
132
- state: s
127
+ mutationId: ++_(this, Y)._,
128
+ options: e.defaultMutationOptions(r),
129
+ state: n
133
130
  });
134
- return this.add(n), n;
135
- }
136
- add(t) {
137
- const r = ee(t), s = u(this, j).get(r) ?? [];
138
- s.push(t), u(this, j).set(r, s), this.notify({ type: "added", mutation: t });
139
- }
140
- remove(t) {
141
- var s;
142
- const r = ee(t);
143
- if (u(this, j).has(r)) {
144
- const n = (s = u(this, j).get(r)) == null ? void 0 : s.filter((o) => o !== t);
145
- n && (n.length === 0 ? u(this, j).delete(r) : u(this, j).set(r, n));
131
+ return this.add(a), a;
132
+ }
133
+ add(e) {
134
+ l(this, O).add(e);
135
+ const r = W(e);
136
+ if (typeof r == "string") {
137
+ const n = l(this, k).get(r);
138
+ n ? n.push(e) : l(this, k).set(r, [e]);
146
139
  }
147
- this.notify({ type: "removed", mutation: t });
148
- }
149
- canRun(t) {
150
- var s;
151
- const r = (s = u(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
152
- return !r || r === t;
140
+ this.notify({ type: "added", mutation: e });
141
+ }
142
+ remove(e) {
143
+ if (l(this, O).delete(e)) {
144
+ const r = W(e);
145
+ if (typeof r == "string") {
146
+ const n = l(this, k).get(r);
147
+ if (n)
148
+ if (n.length > 1) {
149
+ const a = n.indexOf(e);
150
+ a !== -1 && n.splice(a, 1);
151
+ } else n[0] === e && l(this, k).delete(r);
152
+ }
153
+ }
154
+ this.notify({ type: "removed", mutation: e });
153
155
  }
154
- runNext(t) {
155
- var s;
156
- const r = (s = u(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
157
- return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
156
+ canRun(e) {
157
+ const r = W(e);
158
+ if (typeof r == "string") {
159
+ const n = l(this, k).get(r), a = n == null ? void 0 : n.find(
160
+ (i) => i.state.status === "pending"
161
+ );
162
+ return !a || a === e;
163
+ } else
164
+ return !0;
165
+ }
166
+ runNext(e) {
167
+ var n;
168
+ const r = W(e);
169
+ if (typeof r == "string") {
170
+ const a = (n = l(this, k).get(r)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
171
+ return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
172
+ } else
173
+ return Promise.resolve();
158
174
  }
159
175
  clear() {
160
- w.batch(() => {
161
- this.getAll().forEach((t) => {
162
- this.remove(t);
163
- });
176
+ P.batch(() => {
177
+ l(this, O).forEach((e) => {
178
+ this.notify({ type: "removed", mutation: e });
179
+ }), l(this, O).clear(), l(this, k).clear();
164
180
  });
165
181
  }
166
182
  getAll() {
167
- return [...u(this, j).values()].flat();
183
+ return Array.from(l(this, O));
168
184
  }
169
- find(t) {
170
- const r = { exact: !0, ...t };
185
+ find(e) {
186
+ const r = { exact: !0, ...e };
171
187
  return this.getAll().find(
172
- (s) => De(r, s)
188
+ (n) => be(r, n)
173
189
  );
174
190
  }
175
- findAll(t = {}) {
176
- return this.getAll().filter((r) => De(t, r));
191
+ findAll(e = {}) {
192
+ return this.getAll().filter((r) => be(e, r));
177
193
  }
178
- notify(t) {
179
- w.batch(() => {
194
+ notify(e) {
195
+ P.batch(() => {
180
196
  this.listeners.forEach((r) => {
181
- r(t);
197
+ r(e);
182
198
  });
183
199
  });
184
200
  }
185
201
  resumePausedMutations() {
186
- const t = this.getAll().filter((r) => r.state.isPaused);
187
- return w.batch(
202
+ const e = this.getAll().filter((r) => r.state.isPaused);
203
+ return P.batch(
188
204
  () => Promise.all(
189
- t.map((r) => r.continue().catch(A))
205
+ e.map((r) => r.continue().catch(M))
190
206
  )
191
207
  );
192
208
  }
193
- }, j = new WeakMap(), Z = new WeakMap(), Be);
194
- function ee(e) {
195
- var t;
196
- return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
209
+ }, O = new WeakMap(), k = new WeakMap(), Y = new WeakMap(), Qe);
210
+ function W(t) {
211
+ var e;
212
+ return (e = t.options.scope) == null ? void 0 : e.id;
197
213
  }
198
- function Te(e) {
214
+ function De(t) {
199
215
  return {
200
- onFetch: (t, r) => {
201
- var f, m, h, p, v;
202
- const s = t.options, n = (h = (m = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : m.fetchMore) == null ? void 0 : h.direction, o = ((p = t.state.data) == null ? void 0 : p.pages) || [], i = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
203
- let c = { pages: [], pageParams: [] }, d = 0;
204
- const l = async () => {
205
- let g = !1;
206
- const E = (b) => {
216
+ onFetch: (e, r) => {
217
+ var m, g, h, f, v;
218
+ const n = e.options, a = (h = (g = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((f = e.state.data) == null ? void 0 : f.pages) || [], o = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
219
+ let u = { pages: [], pageParams: [] }, d = 0;
220
+ const c = async () => {
221
+ let x = !1;
222
+ const C = (b) => {
207
223
  Object.defineProperty(b, "signal", {
208
224
  enumerable: !0,
209
- get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
210
- g = !0;
211
- }), t.signal)
225
+ get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
226
+ x = !0;
227
+ }), e.signal)
212
228
  });
213
- }, W = Ot(t.options, t.fetchOptions), $ = async (b, C, K) => {
214
- if (g)
229
+ }, X = yt(e.options, e.fetchOptions), K = async (b, N, $) => {
230
+ if (x)
215
231
  return Promise.reject();
216
- if (C == null && b.pages.length)
232
+ if (N == null && b.pages.length)
217
233
  return Promise.resolve(b);
218
- const X = {
219
- queryKey: t.queryKey,
220
- pageParam: C,
221
- direction: K ? "backward" : "forward",
222
- meta: t.options.meta
234
+ const G = {
235
+ client: e.client,
236
+ queryKey: e.queryKey,
237
+ pageParam: N,
238
+ direction: $ ? "backward" : "forward",
239
+ meta: e.options.meta
223
240
  };
224
- E(X);
225
- const xt = await W(
226
- X
227
- ), { maxPages: Ne } = t.options, Ee = K ? At : Mt;
241
+ C(G);
242
+ const ct = await X(
243
+ G
244
+ ), { maxPages: me } = e.options, pe = $ ? bt : jt;
228
245
  return {
229
- pages: Ee(b.pages, xt, Ne),
230
- pageParams: Ee(b.pageParams, C, Ne)
246
+ pages: pe(b.pages, ct, me),
247
+ pageParams: pe(b.pageParams, N, me)
231
248
  };
232
249
  };
233
- if (n && o.length) {
234
- const b = n === "backward", C = b ? kr : _e, K = {
235
- pages: o,
236
- pageParams: i
237
- }, X = C(s, K);
238
- c = await $(K, X, b);
250
+ if (a && i.length) {
251
+ const b = a === "backward", N = b ? Ar : Ee, $ = {
252
+ pages: i,
253
+ pageParams: o
254
+ }, G = N(n, $);
255
+ u = await K($, G, b);
239
256
  } else {
240
- const b = e ?? o.length;
257
+ const b = t ?? i.length;
241
258
  do {
242
- const C = d === 0 ? i[0] ?? s.initialPageParam : _e(s, c);
243
- if (d > 0 && C == null)
259
+ const N = d === 0 ? o[0] ?? n.initialPageParam : Ee(n, u);
260
+ if (d > 0 && N == null)
244
261
  break;
245
- c = await $(c, C), d++;
262
+ u = await K(u, N), d++;
246
263
  } while (d < b);
247
264
  }
248
- return c;
265
+ return u;
249
266
  };
250
- t.options.persister ? t.fetchFn = () => {
251
- var g, E;
252
- return (E = (g = t.options).persister) == null ? void 0 : E.call(
253
- g,
254
- l,
267
+ e.options.persister ? e.fetchFn = () => {
268
+ var x, C;
269
+ return (C = (x = e.options).persister) == null ? void 0 : C.call(
270
+ x,
271
+ c,
255
272
  {
256
- queryKey: t.queryKey,
257
- meta: t.options.meta,
258
- signal: t.signal
273
+ client: e.client,
274
+ queryKey: e.queryKey,
275
+ meta: e.options.meta,
276
+ signal: e.signal
259
277
  },
260
278
  r
261
279
  );
262
- } : t.fetchFn = l;
280
+ } : e.fetchFn = c;
263
281
  }
264
282
  };
265
283
  }
266
- function _e(e, { pages: t, pageParams: r }) {
267
- const s = t.length - 1;
268
- return t.length > 0 ? e.getNextPageParam(
269
- t[s],
270
- t,
271
- r[s],
284
+ function Ee(t, { pages: e, pageParams: r }) {
285
+ const n = e.length - 1;
286
+ return e.length > 0 ? t.getNextPageParam(
287
+ e[n],
288
+ e,
289
+ r[n],
272
290
  r
273
291
  ) : void 0;
274
292
  }
275
- function kr(e, { pages: t, pageParams: r }) {
276
- var s;
277
- return t.length > 0 ? (s = e.getPreviousPageParam) == null ? void 0 : s.call(e, t[0], t, r[0], r) : void 0;
293
+ function Ar(t, { pages: e, pageParams: r }) {
294
+ var n;
295
+ return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, r[0], r) : void 0;
278
296
  }
279
- var x, I, T, B, L, _, H, U, Le, Dr = (Le = class {
280
- constructor(e = {}) {
281
- N(this, x);
282
- N(this, I);
283
- N(this, T);
284
- N(this, B);
285
- N(this, L);
286
- N(this, _);
287
- N(this, H);
288
- N(this, U);
289
- y(this, x, e.queryCache || new Cr()), y(this, I, e.mutationCache || new Pr()), y(this, T, e.defaultOptions || {}), y(this, B, /* @__PURE__ */ new Map()), y(this, L, /* @__PURE__ */ new Map()), y(this, _, 0);
297
+ var p, A, q, R, F, T, H, B, Re, qr = (Re = class {
298
+ constructor(t = {}) {
299
+ w(this, p);
300
+ w(this, A);
301
+ w(this, q);
302
+ w(this, R);
303
+ w(this, F);
304
+ w(this, T);
305
+ w(this, H);
306
+ w(this, B);
307
+ y(this, p, t.queryCache || new Mr()), y(this, A, t.mutationCache || new Or()), y(this, q, t.defaultOptions || {}), y(this, R, /* @__PURE__ */ new Map()), y(this, F, /* @__PURE__ */ new Map()), y(this, T, 0);
290
308
  }
291
309
  mount() {
292
- J(this, _)._++, u(this, _) === 1 && (y(this, H, Rt.subscribe(async (e) => {
293
- e && (await this.resumePausedMutations(), u(this, x).onFocus());
294
- })), y(this, U, Oe.subscribe(async (e) => {
295
- e && (await this.resumePausedMutations(), u(this, x).onOnline());
310
+ _(this, T)._++, l(this, T) === 1 && (y(this, H, wt.subscribe(async (t) => {
311
+ t && (await this.resumePausedMutations(), l(this, p).onFocus());
312
+ })), y(this, B, je.subscribe(async (t) => {
313
+ t && (await this.resumePausedMutations(), l(this, p).onOnline());
296
314
  })));
297
315
  }
298
316
  unmount() {
299
- var e, t;
300
- J(this, _)._--, u(this, _) === 0 && ((e = u(this, H)) == null || e.call(this), y(this, H, void 0), (t = u(this, U)) == null || t.call(this), y(this, U, void 0));
317
+ var t, e;
318
+ _(this, T)._--, l(this, T) === 0 && ((t = l(this, H)) == null || t.call(this), y(this, H, void 0), (e = l(this, B)) == null || e.call(this), y(this, B, void 0));
301
319
  }
302
- isFetching(e) {
303
- return u(this, x).findAll({ ...e, fetchStatus: "fetching" }).length;
320
+ isFetching(t) {
321
+ return l(this, p).findAll({ ...t, fetchStatus: "fetching" }).length;
304
322
  }
305
- isMutating(e) {
306
- return u(this, I).findAll({ ...e, status: "pending" }).length;
323
+ isMutating(t) {
324
+ return l(this, A).findAll({ ...t, status: "pending" }).length;
307
325
  }
308
- getQueryData(e) {
326
+ getQueryData(t) {
309
327
  var r;
310
- const t = this.defaultQueryOptions({ queryKey: e });
311
- return (r = u(this, x).get(t.queryHash)) == null ? void 0 : r.state.data;
328
+ const e = this.defaultQueryOptions({ queryKey: t });
329
+ return (r = l(this, p).get(e.queryHash)) == null ? void 0 : r.state.data;
312
330
  }
313
- ensureQueryData(e) {
314
- const t = this.getQueryData(e.queryKey);
315
- if (t === void 0)
316
- return this.fetchQuery(e);
317
- {
318
- const r = this.defaultQueryOptions(e), s = u(this, x).build(this, r);
319
- return e.revalidateIfStale && s.isStaleByTime(Ae(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(t);
320
- }
331
+ ensureQueryData(t) {
332
+ const e = this.defaultQueryOptions(t), r = l(this, p).build(this, e), n = r.state.data;
333
+ return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(we(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(n));
321
334
  }
322
- getQueriesData(e) {
323
- return u(this, x).findAll(e).map(({ queryKey: t, state: r }) => {
324
- const s = r.data;
325
- return [t, s];
335
+ getQueriesData(t) {
336
+ return l(this, p).findAll(t).map(({ queryKey: e, state: r }) => {
337
+ const n = r.data;
338
+ return [e, n];
326
339
  });
327
340
  }
328
- setQueryData(e, t, r) {
329
- const s = this.defaultQueryOptions({ queryKey: e }), n = u(this, x).get(
330
- s.queryHash
331
- ), o = n == null ? void 0 : n.state.data, i = It(t, o);
332
- if (i !== void 0)
333
- return u(this, x).build(this, s).setData(i, { ...r, manual: !0 });
334
- }
335
- setQueriesData(e, t, r) {
336
- return w.batch(
337
- () => u(this, x).findAll(e).map(({ queryKey: s }) => [
338
- s,
339
- this.setQueryData(s, t, r)
341
+ setQueryData(t, e, r) {
342
+ const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
343
+ n.queryHash
344
+ ), i = a == null ? void 0 : a.state.data, o = Pt(e, i);
345
+ if (o !== void 0)
346
+ return l(this, p).build(this, n).setData(o, { ...r, manual: !0 });
347
+ }
348
+ setQueriesData(t, e, r) {
349
+ return P.batch(
350
+ () => l(this, p).findAll(t).map(({ queryKey: n }) => [
351
+ n,
352
+ this.setQueryData(n, e, r)
340
353
  ])
341
354
  );
342
355
  }
343
- getQueryState(e) {
356
+ getQueryState(t) {
344
357
  var r;
345
- const t = this.defaultQueryOptions({ queryKey: e });
346
- return (r = u(this, x).get(t.queryHash)) == null ? void 0 : r.state;
347
- }
348
- removeQueries(e) {
349
- const t = u(this, x);
350
- w.batch(() => {
351
- t.findAll(e).forEach((r) => {
352
- t.remove(r);
358
+ const e = this.defaultQueryOptions({ queryKey: t });
359
+ return (r = l(this, p).get(
360
+ e.queryHash
361
+ )) == null ? void 0 : r.state;
362
+ }
363
+ removeQueries(t) {
364
+ const e = l(this, p);
365
+ P.batch(() => {
366
+ e.findAll(t).forEach((r) => {
367
+ e.remove(r);
353
368
  });
354
369
  });
355
370
  }
356
- resetQueries(e, t) {
357
- const r = u(this, x), s = {
371
+ resetQueries(t, e) {
372
+ const r = l(this, p), n = {
358
373
  type: "active",
359
- ...e
374
+ ...t
360
375
  };
361
- return w.batch(() => (r.findAll(e).forEach((n) => {
362
- n.reset();
363
- }), this.refetchQueries(s, t)));
376
+ return P.batch(() => (r.findAll(t).forEach((a) => {
377
+ a.reset();
378
+ }), this.refetchQueries(n, e)));
364
379
  }
365
- cancelQueries(e = {}, t = {}) {
366
- const r = { revert: !0, ...t }, s = w.batch(
367
- () => u(this, x).findAll(e).map((n) => n.cancel(r))
380
+ cancelQueries(t, e = {}) {
381
+ const r = { revert: !0, ...e }, n = P.batch(
382
+ () => l(this, p).findAll(t).map((a) => a.cancel(r))
368
383
  );
369
- return Promise.all(s).then(A).catch(A);
384
+ return Promise.all(n).then(M).catch(M);
370
385
  }
371
- invalidateQueries(e = {}, t = {}) {
372
- return w.batch(() => {
373
- if (u(this, x).findAll(e).forEach((s) => {
374
- s.invalidate();
375
- }), e.refetchType === "none")
386
+ invalidateQueries(t, e = {}) {
387
+ return P.batch(() => {
388
+ if (l(this, p).findAll(t).forEach((n) => {
389
+ n.invalidate();
390
+ }), (t == null ? void 0 : t.refetchType) === "none")
376
391
  return Promise.resolve();
377
392
  const r = {
378
- ...e,
379
- type: e.refetchType ?? e.type ?? "active"
393
+ ...t,
394
+ type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
380
395
  };
381
- return this.refetchQueries(r, t);
396
+ return this.refetchQueries(r, e);
382
397
  });
383
398
  }
384
- refetchQueries(e = {}, t) {
399
+ refetchQueries(t, e = {}) {
385
400
  const r = {
386
- ...t,
387
- cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
388
- }, s = w.batch(
389
- () => u(this, x).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
390
- let o = n.fetch(void 0, r);
391
- return r.throwOnError || (o = o.catch(A)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
401
+ ...e,
402
+ cancelRefetch: e.cancelRefetch ?? !0
403
+ }, n = P.batch(
404
+ () => l(this, p).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
405
+ let i = a.fetch(void 0, r);
406
+ return r.throwOnError || (i = i.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
392
407
  })
393
408
  );
394
- return Promise.all(s).then(A);
409
+ return Promise.all(n).then(M);
395
410
  }
396
- fetchQuery(e) {
397
- const t = this.defaultQueryOptions(e);
398
- t.retry === void 0 && (t.retry = !1);
399
- const r = u(this, x).build(this, t);
411
+ fetchQuery(t) {
412
+ const e = this.defaultQueryOptions(t);
413
+ e.retry === void 0 && (e.retry = !1);
414
+ const r = l(this, p).build(this, e);
400
415
  return r.isStaleByTime(
401
- Ae(t.staleTime, r)
402
- ) ? r.fetch(t) : Promise.resolve(r.state.data);
416
+ we(e.staleTime, r)
417
+ ) ? r.fetch(e) : Promise.resolve(r.state.data);
403
418
  }
404
- prefetchQuery(e) {
405
- return this.fetchQuery(e).then(A).catch(A);
419
+ prefetchQuery(t) {
420
+ return this.fetchQuery(t).then(M).catch(M);
406
421
  }
407
- fetchInfiniteQuery(e) {
408
- return e.behavior = Te(e.pages), this.fetchQuery(e);
422
+ fetchInfiniteQuery(t) {
423
+ return t.behavior = De(t.pages), this.fetchQuery(t);
409
424
  }
410
- prefetchInfiniteQuery(e) {
411
- return this.fetchInfiniteQuery(e).then(A).catch(A);
425
+ prefetchInfiniteQuery(t) {
426
+ return this.fetchInfiniteQuery(t).then(M).catch(M);
412
427
  }
413
- ensureInfiniteQueryData(e) {
414
- return e.behavior = Te(e.pages), this.ensureQueryData(e);
428
+ ensureInfiniteQueryData(t) {
429
+ return t.behavior = De(t.pages), this.ensureQueryData(t);
415
430
  }
416
431
  resumePausedMutations() {
417
- return Oe.isOnline() ? u(this, I).resumePausedMutations() : Promise.resolve();
432
+ return je.isOnline() ? l(this, A).resumePausedMutations() : Promise.resolve();
418
433
  }
419
434
  getQueryCache() {
420
- return u(this, x);
435
+ return l(this, p);
421
436
  }
422
437
  getMutationCache() {
423
- return u(this, I);
438
+ return l(this, A);
424
439
  }
425
440
  getDefaultOptions() {
426
- return u(this, T);
441
+ return l(this, q);
427
442
  }
428
- setDefaultOptions(e) {
429
- y(this, T, e);
443
+ setDefaultOptions(t) {
444
+ y(this, q, t);
430
445
  }
431
- setQueryDefaults(e, t) {
432
- u(this, B).set(Me(e), {
433
- queryKey: e,
434
- defaultOptions: t
446
+ setQueryDefaults(t, e) {
447
+ l(this, R).set(Pe(t), {
448
+ queryKey: t,
449
+ defaultOptions: e
435
450
  });
436
451
  }
437
- getQueryDefaults(e) {
438
- const t = [...u(this, B).values()];
439
- let r = {};
440
- return t.forEach((s) => {
441
- Re(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
452
+ getQueryDefaults(t) {
453
+ const e = [...l(this, R).values()], r = {};
454
+ return e.forEach((n) => {
455
+ Ce(t, n.queryKey) && Object.assign(r, n.defaultOptions);
442
456
  }), r;
443
457
  }
444
- setMutationDefaults(e, t) {
445
- u(this, L).set(Me(e), {
446
- mutationKey: e,
447
- defaultOptions: t
458
+ setMutationDefaults(t, e) {
459
+ l(this, F).set(Pe(t), {
460
+ mutationKey: t,
461
+ defaultOptions: e
448
462
  });
449
463
  }
450
- getMutationDefaults(e) {
451
- const t = [...u(this, L).values()];
464
+ getMutationDefaults(t) {
465
+ const e = [...l(this, F).values()];
452
466
  let r = {};
453
- return t.forEach((s) => {
454
- Re(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
467
+ return e.forEach((n) => {
468
+ Ce(t, n.mutationKey) && (r = { ...r, ...n.defaultOptions });
455
469
  }), r;
456
470
  }
457
- defaultQueryOptions(e) {
458
- if (e._defaulted)
459
- return e;
460
- const t = {
461
- ...u(this, T).queries,
462
- ...this.getQueryDefaults(e.queryKey),
463
- ...e,
471
+ defaultQueryOptions(t) {
472
+ if (t._defaulted)
473
+ return t;
474
+ const e = {
475
+ ...l(this, q).queries,
476
+ ...this.getQueryDefaults(t.queryKey),
477
+ ...t,
464
478
  _defaulted: !0
465
479
  };
466
- return t.queryHash || (t.queryHash = Ke(
467
- t.queryKey,
468
- t
469
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Tt && (t.enabled = !1), t;
470
- }
471
- defaultMutationOptions(e) {
472
- return e != null && e._defaulted ? e : {
473
- ...u(this, T).mutations,
474
- ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
475
- ...e,
480
+ return e.queryHash || (e.queryHash = Le(
481
+ e.queryKey,
482
+ e
483
+ )), 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 === Ct && (e.enabled = !1), e;
484
+ }
485
+ defaultMutationOptions(t) {
486
+ return t != null && t._defaulted ? t : {
487
+ ...l(this, q).mutations,
488
+ ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
489
+ ...t,
476
490
  _defaulted: !0
477
491
  };
478
492
  }
479
493
  clear() {
480
- u(this, x).clear(), u(this, I).clear();
494
+ l(this, p).clear(), l(this, A).clear();
481
495
  }
482
- }, x = new WeakMap(), I = new WeakMap(), T = new WeakMap(), B = new WeakMap(), L = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), U = new WeakMap(), Le);
483
- function Or(e) {
484
- return e;
496
+ }, p = new WeakMap(), A = new WeakMap(), q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), T = new WeakMap(), H = new WeakMap(), B = new WeakMap(), Re);
497
+ function Tr(t) {
498
+ return t;
485
499
  }
486
- function Qe(e, t, r) {
487
- var d, l;
488
- if (typeof t != "object" || t === null)
500
+ function Me(t, e, r) {
501
+ var d, c;
502
+ if (typeof e != "object" || e === null)
489
503
  return;
490
- const s = e.getMutationCache(), n = e.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? Or, i = t.mutations || [], c = t.queries || [];
491
- i.forEach(({ state: f, ...m }) => {
492
- var h, p;
493
- s.build(
494
- e,
504
+ const n = t.getMutationCache(), a = t.getQueryCache(), i = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Tr, o = e.mutations || [], u = e.queries || [];
505
+ o.forEach(({ state: m, ...g }) => {
506
+ var h, f;
507
+ n.build(
508
+ t,
495
509
  {
496
- ...(h = e.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
497
- ...(p = r == null ? void 0 : r.defaultOptions) == null ? void 0 : p.mutations,
498
- ...m
510
+ ...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
511
+ ...(f = r == null ? void 0 : r.defaultOptions) == null ? void 0 : f.mutations,
512
+ ...g
499
513
  },
500
- f
514
+ m
501
515
  );
502
- }), c.forEach(({ queryKey: f, state: m, queryHash: h, meta: p, promise: v }) => {
503
- var W, $;
504
- let g = n.get(h);
505
- const E = m.data === void 0 ? m.data : o(m.data);
506
- if (g) {
507
- if (g.state.dataUpdatedAt < m.dataUpdatedAt) {
508
- const { fetchStatus: b, ...C } = m;
509
- g.setState({
510
- ...C,
511
- data: E
516
+ }), u.forEach(({ queryKey: m, state: g, queryHash: h, meta: f, promise: v }) => {
517
+ var X, K;
518
+ let x = a.get(h);
519
+ const C = g.data === void 0 ? g.data : i(g.data);
520
+ if (x) {
521
+ if (x.state.dataUpdatedAt < g.dataUpdatedAt) {
522
+ const { fetchStatus: b, ...N } = g;
523
+ x.setState({
524
+ ...N,
525
+ data: C
512
526
  });
513
527
  }
514
528
  } else
515
- g = n.build(
516
- e,
529
+ x = a.build(
530
+ t,
517
531
  {
518
- ...(W = e.getDefaultOptions().hydrate) == null ? void 0 : W.queries,
519
- ...($ = r == null ? void 0 : r.defaultOptions) == null ? void 0 : $.queries,
520
- queryKey: f,
532
+ ...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
533
+ ...(K = r == null ? void 0 : r.defaultOptions) == null ? void 0 : K.queries,
534
+ queryKey: m,
521
535
  queryHash: h,
522
- meta: p
536
+ meta: f
523
537
  },
524
538
  // Reset fetch status to idle to avoid
525
539
  // query being stuck in fetching state upon hydration
526
540
  {
527
- ...m,
528
- data: E,
541
+ ...g,
542
+ data: C,
529
543
  fetchStatus: "idle"
530
544
  }
531
545
  );
532
546
  if (v) {
533
- const b = Promise.resolve(v).then(o);
534
- g.fetch(void 0, { initialPromise: b });
547
+ const b = Promise.resolve(v).then(i);
548
+ x.fetch(void 0, { initialPromise: b });
535
549
  }
536
550
  });
537
551
  }
538
- var Ar = ({
539
- children: e,
540
- options: t = {},
552
+ var Oe = (t, e) => typeof t == "object" && t !== null && e in t, Ir = ({
553
+ children: t,
554
+ options: e = {},
541
555
  state: r,
542
- queryClient: s
556
+ queryClient: n
543
557
  }) => {
544
- const n = _t(s), [o, i] = G.useState(), c = G.useRef(t);
545
- return c.current = t, G.useMemo(() => {
558
+ const a = kt(n), [i, o] = U.useState(), u = U.useRef(e);
559
+ return u.current = e, U.useMemo(() => {
546
560
  if (r) {
547
561
  if (typeof r != "object")
548
562
  return;
549
- const d = n.getQueryCache(), l = r.queries || [], f = [], m = [];
550
- for (const h of l) {
551
- const p = d.get(h.queryHash);
552
- if (!p)
553
- f.push(h);
563
+ const d = a.getQueryCache(), c = r.queries || [], m = [], g = [];
564
+ for (const h of c) {
565
+ const f = d.get(h.queryHash);
566
+ if (!f)
567
+ m.push(h);
554
568
  else {
555
- const v = h.state.dataUpdatedAt > p.state.dataUpdatedAt, g = o == null ? void 0 : o.find(
556
- (E) => E.queryHash === h.queryHash
569
+ const v = h.state.dataUpdatedAt > f.state.dataUpdatedAt || // RSC special serialized then-able chunks
570
+ Oe(h.promise, "status") && Oe(f.promise, "status") && h.promise.status !== f.promise.status, x = i == null ? void 0 : i.find(
571
+ (C) => C.queryHash === h.queryHash
557
572
  );
558
- v && (!g || h.state.dataUpdatedAt > g.state.dataUpdatedAt) && m.push(h);
573
+ v && (!x || h.state.dataUpdatedAt > x.state.dataUpdatedAt) && g.push(h);
559
574
  }
560
575
  }
561
- f.length > 0 && Qe(n, { queries: f }, c.current), m.length > 0 && i(
562
- (h) => h ? [...h, ...m] : m
576
+ m.length > 0 && Me(a, { queries: m }, u.current), g.length > 0 && o(
577
+ (h) => h ? [...h, ...g] : g
563
578
  );
564
579
  }
565
- }, [n, o, r]), G.useEffect(() => {
566
- o && (Qe(n, { queries: o }, c.current), i(void 0));
567
- }, [n, o]), e;
568
- }, Y = {};
569
- const Mr = /* @__PURE__ */ xe(Zt), Rr = /* @__PURE__ */ xe(Yt), Ir = /* @__PURE__ */ xe(jt);
570
- Object.defineProperty(Y, "__esModule", { value: !0 });
571
- var Tr = Ye, D = Mr, Se = Rr, M = Ir;
572
- function _r(e) {
573
- if (e && e.__esModule) return e;
574
- var t = /* @__PURE__ */ Object.create(null);
575
- return e && Object.keys(e).forEach(function(r) {
576
- if (r !== "default") {
577
- var s = Object.getOwnPropertyDescriptor(e, r);
578
- Object.defineProperty(t, r, s.get ? s : {
579
- enumerable: !0,
580
- get: function() {
581
- return e[r];
582
- }
583
- });
584
- }
585
- }), t.default = e, Object.freeze(t);
586
- }
587
- var P = /* @__PURE__ */ _r(Tr);
588
- function Qr({
589
- basename: e,
590
- children: t,
591
- location: r = "/",
592
- future: s
593
- }) {
594
- typeof r == "string" && (r = M.parsePath(r));
595
- let n = D.Action.Pop, o = {
596
- pathname: r.pathname || "/",
597
- search: r.search || "",
598
- hash: r.hash || "",
599
- state: r.state != null ? r.state : null,
600
- key: r.key || "default"
601
- }, i = nt();
602
- return /* @__PURE__ */ P.createElement(M.Router, {
603
- basename: e,
604
- children: t,
605
- location: o,
606
- navigationType: n,
607
- navigator: i,
608
- future: s,
609
- static: !0
610
- });
611
- }
612
- function Fr({
613
- context: e,
614
- router: t,
615
- hydrate: r = !0,
616
- nonce: s
617
- }) {
618
- t && e || (process.env.NODE_ENV !== "production" ? D.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : D.UNSAFE_invariant(!1));
619
- let n = {
620
- router: t,
621
- navigator: nt(),
622
- static: !0,
623
- staticContext: e,
624
- basename: e.basename || "/"
625
- }, o = /* @__PURE__ */ new Map(), i = "";
626
- if (r !== !1) {
627
- let d = {
628
- loaderData: e.loaderData,
629
- actionData: e.actionData,
630
- errors: zr(e.errors)
631
- };
632
- i = `window.__staticRouterHydrationData = JSON.parse(${Kr(JSON.stringify(JSON.stringify(d)))});`;
633
- }
634
- let {
635
- state: c
636
- } = n.router;
637
- return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterContext.Provider, {
638
- value: n
639
- }, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
640
- value: c
641
- }, /* @__PURE__ */ P.createElement(M.UNSAFE_FetchersContext.Provider, {
642
- value: o
643
- }, /* @__PURE__ */ P.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
644
- value: {
645
- isTransitioning: !1
646
- }
647
- }, /* @__PURE__ */ P.createElement(M.Router, {
648
- basename: n.basename,
649
- location: c.location,
650
- navigationType: c.historyAction,
651
- navigator: n.navigator,
652
- static: n.static,
653
- future: {
654
- v7_relativeSplatPath: t.future.v7_relativeSplatPath
655
- }
656
- }, /* @__PURE__ */ P.createElement(qr, {
657
- routes: t.routes,
658
- future: t.future,
659
- state: c
660
- })))))), i ? /* @__PURE__ */ P.createElement("script", {
661
- suppressHydrationWarning: !0,
662
- nonce: s,
663
- dangerouslySetInnerHTML: {
664
- __html: i
665
- }
666
- }) : null);
667
- }
668
- function qr({
669
- routes: e,
670
- future: t,
671
- state: r
672
- }) {
673
- return Se.UNSAFE_useRoutesImpl(e, void 0, r, t);
674
- }
675
- function zr(e) {
676
- if (!e) return null;
677
- let t = Object.entries(e), r = {};
678
- for (let [s, n] of t)
679
- D.isRouteErrorResponse(n) ? r[s] = {
680
- ...n,
681
- __type: "RouteErrorResponse"
682
- } : n instanceof Error ? r[s] = {
683
- message: n.message,
684
- __type: "Error",
685
- // If this is a subclass (i.e., ReferenceError), send up the type so we
686
- // can re-create the same type during hydration.
687
- ...n.name !== "Error" ? {
688
- __subType: n.name
689
- } : {}
690
- } : r[s] = n;
691
- return r;
692
- }
693
- function nt() {
694
- return {
695
- createHref: it,
696
- encodeLocation: ot,
697
- push(e) {
698
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
699
- },
700
- replace(e) {
701
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
702
- },
703
- go(e) {
704
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
705
- },
706
- back() {
707
- throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
708
- },
709
- forward() {
710
- throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
711
- }
712
- };
713
- }
714
- function Br(e, t) {
715
- return D.createStaticHandler(e, {
716
- ...t,
717
- mapRouteProperties: Se.UNSAFE_mapRouteProperties
718
- });
719
- }
720
- function Lr(e, t, r = {}) {
721
- let s = {}, n = D.UNSAFE_convertRoutesToDataRoutes(e, Se.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((c) => {
722
- let d = s[c.route.id] || c.route;
723
- return {
724
- ...c,
725
- route: d
726
- };
727
- }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
728
- return {
729
- get basename() {
730
- return t.basename;
731
- },
732
- get future() {
733
- var c, d;
734
- return {
735
- v7_fetcherPersist: !1,
736
- v7_normalizeFormMethod: !1,
737
- v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
738
- v7_prependBasename: !1,
739
- v7_relativeSplatPath: ((d = r.future) == null ? void 0 : d.v7_relativeSplatPath) === !0,
740
- v7_skipActionErrorRevalidation: !1
741
- };
742
- },
743
- get state() {
744
- return {
745
- historyAction: D.Action.Pop,
746
- location: t.location,
747
- matches: o,
748
- loaderData: t.loaderData,
749
- actionData: t.actionData,
750
- errors: t.errors,
751
- initialized: !0,
752
- navigation: D.IDLE_NAVIGATION,
753
- restoreScrollPosition: null,
754
- preventScrollReset: !1,
755
- revalidation: "idle",
756
- fetchers: /* @__PURE__ */ new Map(),
757
- blockers: /* @__PURE__ */ new Map()
758
- };
759
- },
760
- get routes() {
761
- return n;
762
- },
763
- get window() {
764
- },
765
- initialize() {
766
- throw i("initialize");
767
- },
768
- subscribe() {
769
- throw i("subscribe");
770
- },
771
- enableScrollRestoration() {
772
- throw i("enableScrollRestoration");
773
- },
774
- navigate() {
775
- throw i("navigate");
776
- },
777
- fetch() {
778
- throw i("fetch");
779
- },
780
- revalidate() {
781
- throw i("revalidate");
782
- },
783
- createHref: it,
784
- encodeLocation: ot,
785
- getFetcher() {
786
- return D.IDLE_FETCHER;
787
- },
788
- deleteFetcher() {
789
- throw i("deleteFetcher");
790
- },
791
- dispose() {
792
- throw i("dispose");
793
- },
794
- getBlocker() {
795
- return D.IDLE_BLOCKER;
796
- },
797
- deleteBlocker() {
798
- throw i("deleteBlocker");
799
- },
800
- patchRoutes() {
801
- throw i("patchRoutes");
580
+ }, [a, i, r]), U.useEffect(() => {
581
+ i && (Me(a, { queries: i }, u.current), o(void 0));
582
+ }, [a, i]), t;
583
+ };
584
+ const Qr = (t) => {
585
+ const e = V(t);
586
+ return e.current = t, I(() => {
587
+ e.current = t;
588
+ }, [t]), e;
589
+ }, Rr = () => {
590
+ var o;
591
+ const t = L(), e = E(), r = ft(), n = te(), a = Qr(n.pathname), i = (o = e.options.protectedRoutes) == null ? void 0 : o.some(
592
+ (u) => gt({ path: u, end: !0 }, n.pathname)
593
+ );
594
+ if (St({
595
+ queryKey: ["login-redirect"],
596
+ queryFn: async () => {
597
+ var u;
598
+ return await new Promise((d) => setTimeout(d, 1200)), await ((u = e.authentication) == null ? void 0 : u.signIn({
599
+ redirectTo: a.current
600
+ })), !0;
802
601
  },
803
- _internalFetchControllers: /* @__PURE__ */ new Map(),
804
- _internalActiveDeferreds: /* @__PURE__ */ new Map(),
805
- _internalSetRoutes() {
806
- throw i("_internalSetRoutes");
807
- }
808
- };
809
- }
810
- function it(e) {
811
- return typeof e == "string" ? e : M.createPath(e);
812
- }
813
- function ot(e) {
814
- let t = typeof e == "string" ? e : M.createPath(e);
815
- t = t.replace(/ $/, "%20");
816
- let r = Hr.test(t) ? new URL(t) : new URL(t, "http://localhost");
817
- return {
818
- pathname: r.pathname,
819
- search: r.search,
820
- hash: r.hash
821
- };
602
+ enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
603
+ }), i && !t.isAuthenticated)
604
+ return /* @__PURE__ */ s.jsx(
605
+ At,
606
+ {
607
+ open: !0,
608
+ onOpenChange: (u) => {
609
+ u || r(-1);
610
+ },
611
+ children: /* @__PURE__ */ s.jsxs(qt, { children: [
612
+ /* @__PURE__ */ s.jsx(Tt, { children: /* @__PURE__ */ s.jsx(It, { children: "Logging you in..." }) }),
613
+ /* @__PURE__ */ s.jsx(Qt, { children: "Please wait while we log you in." })
614
+ ] })
615
+ }
616
+ );
617
+ if (i && !t.isAuthEnabled)
618
+ throw new $e("Authentication is not enabled", {
619
+ title: "Authentication is not enabled",
620
+ developerHint: "To use protectedRoutes you need authentication to be enabled"
621
+ });
622
+ return /* @__PURE__ */ s.jsx(ce, {});
623
+ };
624
+ function Fr({ error: t }) {
625
+ return /* @__PURE__ */ s.jsx(Ye, { error: t });
822
626
  }
823
- const Hr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ur = {
824
- "&": "\\u0026",
825
- ">": "\\u003e",
826
- "<": "\\u003c",
827
- "\u2028": "\\u2028",
828
- "\u2029": "\\u2029"
829
- }, $r = /[&><\u2028\u2029]/g;
830
- function Kr(e) {
831
- return e.replace($r, (t) => Ur[t]);
627
+ /**
628
+ * react-router v7.1.5
629
+ *
630
+ * Copyright (c) Remix Software Inc.
631
+ *
632
+ * This source code is licensed under the MIT license found in the
633
+ * LICENSE.md file in the root directory of this source tree.
634
+ *
635
+ * @license MIT
636
+ */
637
+ function Hr(t) {
638
+ return /* @__PURE__ */ U.createElement(mt, { flushSync: Yt.flushSync, ...t });
832
639
  }
833
- Y.StaticRouter = Qr;
834
- var Vr = Y.StaticRouterProvider = Fr;
835
- Y.createStaticHandler = Br;
836
- Y.createStaticRouter = Lr;
837
- const Zr = new Dr({
640
+ const oe = he({ stagger: !1 }), Br = new qr({
838
641
  defaultOptions: {
839
642
  queries: {
840
643
  staleTime: 1e3 * 60 * 5
841
644
  }
842
645
  }
843
- }), Yr = ({
844
- router: e,
845
- hydrate: t = !1
846
- }) => /* @__PURE__ */ a.jsx(We, { children: /* @__PURE__ */ a.jsx(Ve, { client: Zr, children: /* @__PURE__ */ a.jsx(Ar, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(He, { children: /* @__PURE__ */ a.jsx(ue.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
847
- wt,
848
- {
849
- router: e,
850
- future: { v7_startTransition: !0 }
851
- }
852
- ) }) }) }) }) }), Wr = ({
853
- router: e,
854
- context: t,
646
+ }), Lr = ({
647
+ router: t,
648
+ hydrate: e = !1
649
+ }) => /* @__PURE__ */ s.jsx(Ue, { children: /* @__PURE__ */ s.jsx(ze, { client: Br, children: /* @__PURE__ */ s.jsx(Ir, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Hr, { router: t }) }) }) }) }) }), zr = ({
650
+ router: t,
651
+ context: e,
855
652
  queryClient: r,
856
- helmetContext: s
857
- }) => /* @__PURE__ */ a.jsx(We, { children: /* @__PURE__ */ a.jsx(Ve, { client: r, children: /* @__PURE__ */ a.jsx(He, { context: s, children: /* @__PURE__ */ a.jsx(Vr, { router: e, context: t }) }) }) });
858
- var he = { exports: {} };
859
- (function(e, t) {
860
- (function(r, s) {
861
- s(t, Ye);
862
- })(Vt, function(r, s) {
863
- const n = {
864
- delay: 500,
865
- minDuration: 200,
866
- ssr: !0
867
- };
868
- function o() {
869
- const [c, d] = s.useState(!0);
870
- return s.useEffect(() => {
871
- d(!1);
872
- }, []), c;
873
- }
874
- function i(c, d) {
875
- d = Object.assign({}, n, d);
876
- const l = o() && d.ssr, f = l && c ? "DISPLAY" : "IDLE", [m, h] = s.useState(f), p = s.useRef(null);
877
- return s.useEffect(() => {
878
- if (c && (m === "IDLE" || l)) {
879
- clearTimeout(p.current);
880
- const v = l ? 0 : d.delay;
881
- p.current = setTimeout(() => {
882
- if (!c)
883
- return h("IDLE");
884
- p.current = setTimeout(() => {
885
- h("EXPIRE");
886
- }, d.minDuration), h("DISPLAY");
887
- }, v), l || h("DELAY");
888
- }
889
- !c && m !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
890
- }, [c, m, d.delay, d.minDuration, l]), s.useEffect(() => () => clearTimeout(p.current), []), m === "DISPLAY" || m === "EXPIRE";
891
- }
892
- r.defaultOptions = n, r.useSpinDelay = i;
893
- });
894
- })(he, he.exports);
895
- var Xr = he.exports;
896
- const Jr = ({
897
- category: e,
898
- onRequestClose: t
899
- }) => {
900
- var h, p;
901
- const r = Qt(e), [s, n] = Q(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [d, l] = Q(c), f = Wt(((h = e.link) == null ? void 0 : h.id) ?? "");
902
- z(() => {
903
- r && l(!0);
904
- }, [r]);
905
- const m = o && /* @__PURE__ */ a.jsx(
906
- "button",
907
- {
908
- type: "button",
909
- onClick: (v) => {
910
- v.preventDefault(), l((g) => !g), n(!0);
911
- },
912
- children: /* @__PURE__ */ a.jsx(
913
- Xt,
914
- {
915
- size: 16,
916
- className: R(
917
- s && "transition",
918
- "shrink-0 group-data-[state=open]:rotate-90"
919
- )
920
- }
921
- )
922
- }
923
- );
924
- return /* @__PURE__ */ a.jsxs(
925
- oe.Root,
926
- {
927
- className: "flex flex-col",
928
- defaultOpen: c,
929
- open: d,
930
- onOpenChange: () => l(!0),
931
- children: [
932
- /* @__PURE__ */ a.jsx(oe.Trigger, { className: "group", asChild: !0, disabled: !o, children: /* @__PURE__ */ a.jsxs(
933
- "div",
934
- {
935
- onClick: () => n(!0),
936
- className: V({
937
- isActive: !1,
938
- className: [
939
- "text-start",
940
- o ? "cursor-pointer" : "cursor-default hover:bg-transparent"
941
- ]
942
- }),
943
- children: [
944
- e.icon && /* @__PURE__ */ a.jsx(
945
- e.icon,
946
- {
947
- size: 16,
948
- className: R("align-[-0.125em] ", f && "text-primary")
949
- }
950
- ),
951
- ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ a.jsx(
952
- ae,
953
- {
954
- to: q(e.link.id),
955
- className: "flex-1",
956
- onClick: () => {
957
- f && !d && l(!0);
958
- },
959
- children: /* @__PURE__ */ a.jsxs(
960
- "div",
961
- {
962
- className: R(
963
- "flex items-center gap-2 justify-between w-full",
964
- f ? "text-primary" : "text-foreground/80"
965
- ),
966
- children: [
967
- /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
968
- m
969
- ]
970
- }
971
- )
972
- }
973
- ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
974
- /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
975
- m
976
- ] })
977
- ]
978
- }
979
- ) }),
980
- /* @__PURE__ */ a.jsx(
981
- oe.Content,
982
- {
983
- className: R(
984
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
985
- s && "CollapsibleContent",
986
- "ms-6 my-1"
987
- ),
988
- children: /* @__PURE__ */ a.jsx(
989
- "ul",
990
- {
991
- 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",
992
- children: e.items.map((v) => /* @__PURE__ */ a.jsx(
993
- fe,
994
- {
995
- onRequestClose: t,
996
- item: v
997
- },
998
- ("id" in v ? v.id : "") + ("href" in v ? v.href : "") + v.label
999
- ))
1000
- }
1001
- )
653
+ helmetContext: n
654
+ }) => /* @__PURE__ */ s.jsx(Ue, { children: /* @__PURE__ */ s.jsx(ze, { client: r, children: /* @__PURE__ */ s.jsx(Fe, { context: n, children: /* @__PURE__ */ s.jsx(pt, { router: t, context: e }) }) }) });
655
+ var Z = { exports: {} }, Kr = Z.exports, Ae;
656
+ function $r() {
657
+ return Ae || (Ae = 1, function(t, e) {
658
+ (function(r, n) {
659
+ n(e, Rt);
660
+ })(Kr, function(r, n) {
661
+ const a = {
662
+ delay: 500,
663
+ minDuration: 200,
664
+ ssr: !0
665
+ };
666
+ function i() {
667
+ const [u, d] = n.useState(!0);
668
+ return n.useEffect(() => {
669
+ d(!1);
670
+ }, []), u;
671
+ }
672
+ function o(u, d) {
673
+ d = Object.assign({}, a, d);
674
+ const c = i() && d.ssr, m = c && u ? "DISPLAY" : "IDLE", [g, h] = n.useState(m), f = n.useRef(null);
675
+ return n.useEffect(() => {
676
+ if (u && (g === "IDLE" || c)) {
677
+ clearTimeout(f.current);
678
+ const v = c ? 0 : d.delay;
679
+ f.current = setTimeout(() => {
680
+ if (!u)
681
+ return h("IDLE");
682
+ f.current = setTimeout(() => {
683
+ h("EXPIRE");
684
+ }, d.minDuration), h("DISPLAY");
685
+ }, v), c || h("DELAY");
1002
686
  }
1003
- )
1004
- ]
1005
- }
1006
- );
1007
- }, V = or(
1008
- "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1009
- {
1010
- variants: {
1011
- isActive: {
1012
- true: "text-primary font-medium",
1013
- false: "text-foreground/80"
1014
- },
1015
- isMuted: {
1016
- true: "text-foreground/30",
1017
- false: ""
687
+ !u && g !== "DISPLAY" && (clearTimeout(f.current), h("IDLE"));
688
+ }, [u, g, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(f.current), []), g === "DISPLAY" || g === "EXPIRE";
1018
689
  }
1019
- },
1020
- defaultVariants: {
1021
- isActive: !1
1022
- }
1023
- }
1024
- ), lt = "data-anchor", fe = ({
1025
- item: e,
1026
- onRequestClose: t
1027
- }) => {
1028
- var n, o;
1029
- const { activeAnchor: r } = we(), [s] = St();
1030
- switch (e.type) {
1031
- case "category":
1032
- return /* @__PURE__ */ a.jsx(Jr, { category: e, onRequestClose: t });
1033
- case "doc":
1034
- return /* @__PURE__ */ a.jsxs(
1035
- ae,
1036
- {
1037
- className: ({ isActive: i }) => V({ isActive: i }),
1038
- to: q(e.id),
1039
- onClick: t,
1040
- children: [
1041
- e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
1042
- e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1043
- /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
1044
- /* @__PURE__ */ a.jsx(ie, { ...e.badge })
1045
- ] }) : e.label
1046
- ]
1047
- }
1048
- );
1049
- case "link":
1050
- return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
1051
- cr,
1052
- {
1053
- to: { hash: e.href, search: s.toString() },
1054
- [lt]: e.href.slice(1),
1055
- className: V({
1056
- isActive: e.href.slice(1) === r,
1057
- className: ((n = e.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
1058
- }),
1059
- onClick: t,
1060
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1061
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
1062
- /* @__PURE__ */ a.jsx(ie, { ...e.badge })
1063
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
1064
- }
1065
- ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
1066
- "a",
1067
- {
1068
- className: V(),
1069
- href: e.href,
1070
- target: "_blank",
1071
- rel: "noopener noreferrer",
1072
- onClick: t,
1073
- children: [
1074
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
1075
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Jt, { className: "inline -translate-y-0.5", size: 12 }) })
1076
- ]
1077
- }
1078
- ) : /* @__PURE__ */ a.jsx(
1079
- ae,
1080
- {
1081
- className: V({
1082
- className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
1083
- }),
1084
- to: e.href,
1085
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1086
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
1087
- /* @__PURE__ */ a.jsx(ie, { ...e.badge })
1088
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
1089
- }
1090
- );
1091
- }
1092
- }, Gr = (e, t = { block: "center" }) => {
1093
- if (!e) return;
1094
- const r = e.getBoundingClientRect();
1095
- r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
1096
- }, ea = () => {
1097
- const e = ye(), { setActiveAnchor: t } = we();
1098
- z(() => {
1099
- if (!e.hash) return;
1100
- const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
1101
- const n = document.getElementById(r), o = document.querySelector(`[${lt}="${r}"]`);
1102
- return n ? (n.scrollIntoView(), Gr(o), requestIdleCallback(() => t(r)), !0) : !1;
1103
- };
1104
- if (!s()) {
1105
- const n = new MutationObserver((o, i) => {
1106
- s() && i.disconnect();
1107
- });
1108
- return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
1109
- }
1110
- }, [e.hash, t]);
1111
- }, ta = () => {
1112
- const e = ye(), t = pe(e.pathname);
1113
- z(() => {
1114
- t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
1115
- }, [e.pathname]);
690
+ r.defaultOptions = a, r.useSpinDelay = o;
691
+ });
692
+ }(Z, Z.exports)), Z.exports;
693
+ }
694
+ var Ur = $r();
695
+ const Zr = () => {
696
+ const t = te(), e = V(t.pathname);
697
+ I(() => {
698
+ const r = e.current !== t.pathname, n = t.hash !== "";
699
+ r && !n && window.scrollTo(0, 0), e.current = t.pathname;
700
+ }, [t.pathname, t.hash]);
1116
701
  };
1117
- function ra({
1118
- className: e,
1119
- ...t
702
+ function Yr({
703
+ className: t,
704
+ ...e
1120
705
  }) {
1121
- return /* @__PURE__ */ a.jsx(
706
+ return /* @__PURE__ */ s.jsx(
1122
707
  "div",
1123
708
  {
1124
- className: R("animate-pulse rounded-md bg-muted", e),
1125
- ...t
709
+ className: Q("animate-pulse rounded-md bg-muted", t),
710
+ ...e
1126
711
  }
1127
712
  );
1128
713
  }
1129
- const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", sa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", na = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ia = (e) => "initialize" in e && typeof e.initialize == "function", oa = (e) => "getHead" in e && typeof e.getHead == "function", la = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", ca = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Fe = {
714
+ const qe = {
1130
715
  info: "bg-blue-500",
1131
716
  note: "bg-gray-500",
1132
717
  tip: "bg-green-600",
1133
718
  caution: "bg-orange-500",
1134
719
  danger: "bg-rose-500"
1135
- }, ua = () => {
1136
- const { page: e } = F(), [t, r] = Q(!0);
1137
- if (!(e != null && e.banner) || !t)
1138
- return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1139
- const s = e.banner.color && e.banner.color in Fe ? Fe[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
1140
- return /* @__PURE__ */ a.jsxs(
720
+ }, Vr = () => {
721
+ const { page: t } = E(), [e, r] = z(!0);
722
+ if (!(t != null && t.banner) || !e)
723
+ return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
724
+ const n = t.banner.color && t.banner.color in qe ? qe[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
725
+ return /* @__PURE__ */ s.jsxs(
1141
726
  "div",
1142
727
  {
1143
- className: R(
728
+ className: Q(
1144
729
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1145
- s
730
+ n
1146
731
  ),
1147
- style: n,
732
+ "data-pagefind-ignore": "all",
733
+ style: a,
1148
734
  children: [
1149
- /* @__PURE__ */ a.jsx("div", { className: "w-full", children: e.banner.message }),
1150
- e.banner.dismissible && /* @__PURE__ */ a.jsx(
735
+ /* @__PURE__ */ s.jsx("div", { className: "w-full", children: t.banner.message }),
736
+ t.banner.dismissible && /* @__PURE__ */ s.jsx(
1151
737
  "button",
1152
738
  {
1153
739
  type: "button",
1154
740
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1155
741
  onClick: () => r(!1),
1156
- children: /* @__PURE__ */ a.jsx(Gt, { size: 16 })
742
+ children: /* @__PURE__ */ s.jsx(Vt, { size: 16 })
1157
743
  }
1158
744
  )
1159
745
  ]
1160
746
  }
1161
747
  );
1162
- }, ct = ({ className: e }) => {
1163
- const t = F(), [r, s] = Q(!1), n = Lt(() => s(!1), []);
1164
- z(() => {
748
+ }, et = ({ className: t }) => {
749
+ const e = E(), [r, n] = z(!1), a = Ft(() => n(!1), []);
750
+ I(() => {
1165
751
  if (r)
1166
752
  return;
1167
- function i(c) {
1168
- c.key === "k" && (c.metaKey || c.ctrlKey) && (c.preventDefault(), s(!0));
753
+ function o(u) {
754
+ u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
1169
755
  }
1170
- return window.addEventListener("keydown", i), () => {
1171
- window.removeEventListener("keydown", i);
756
+ return window.addEventListener("keydown", o), () => {
757
+ window.removeEventListener("keydown", o);
1172
758
  };
1173
- }, [r, s]);
1174
- const o = t.plugins.find(na);
1175
- return o ? /* @__PURE__ */ a.jsxs("div", { className: e, children: [
1176
- /* @__PURE__ */ a.jsxs(
759
+ }, [r, n]);
760
+ const i = e.plugins.find(ur);
761
+ return i ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
762
+ /* @__PURE__ */ s.jsxs(
1177
763
  "button",
1178
764
  {
1179
765
  type: "button",
1180
- onClick: () => s(!0),
766
+ onClick: () => n(!0),
1181
767
  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",
1182
768
  children: [
1183
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
1184
- /* @__PURE__ */ a.jsx(er, { size: 14 }),
769
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
770
+ /* @__PURE__ */ s.jsx(Xt, { size: 14 }),
1185
771
  "Search"
1186
772
  ] }),
1187
- /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
773
+ /* @__PURE__ */ s.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
1188
774
  ]
1189
775
  }
1190
776
  ),
1191
- /* @__PURE__ */ a.jsx(ve, { fallback: null, children: o.renderSearch({
777
+ /* @__PURE__ */ s.jsx(fe, { fallback: null, children: i.renderSearch({
1192
778
  isOpen: r,
1193
- onClose: n
779
+ onClose: a
1194
780
  }) })
1195
781
  ] }) : null;
1196
- }, ut = () => {
1197
- const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ? tr : rr;
1198
- return /* @__PURE__ */ a.jsx(je, { children: /* @__PURE__ */ a.jsx(
1199
- de,
782
+ }, tt = () => {
783
+ const { resolvedTheme: t, setTheme: e } = He();
784
+ return /* @__PURE__ */ s.jsx(ge, { fallback: /* @__PURE__ */ s.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
785
+ "button",
1200
786
  {
1201
- variant: "ghost",
1202
- "aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
1203
- className: "p-2.5 -m-2.5 rounded-full",
1204
- onClick: () => t(e === "dark" ? "light" : "dark"),
1205
- children: /* @__PURE__ */ a.jsx(r, { size: 18 })
787
+ type: "button",
788
+ className: "flex rounded-full border p-0.5 gap-0.5 group",
789
+ onClick: () => e(t === "dark" ? "light" : "dark"),
790
+ "aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
791
+ children: [
792
+ /* @__PURE__ */ s.jsx(
793
+ "div",
794
+ {
795
+ className: Q(
796
+ "border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
797
+ t === "light" && "border-border bg-muted",
798
+ t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
799
+ ),
800
+ children: /* @__PURE__ */ s.jsx(Gt, { size: 16 })
801
+ }
802
+ ),
803
+ /* @__PURE__ */ s.jsx(
804
+ "div",
805
+ {
806
+ className: Q(
807
+ "border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
808
+ t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
809
+ t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
810
+ ),
811
+ children: /* @__PURE__ */ s.jsx(_t, { size: 16 })
812
+ }
813
+ )
814
+ ]
1206
815
  }
1207
816
  ) });
1208
- }, dt = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", da = () => {
1209
- const { topNavigation: e } = F(), { isAuthenticated: t } = se();
1210
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(ve, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(dt(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ht, { ...r }) }, r.id)) }) }) });
1211
- }, ht = ({
1212
- id: e,
1213
- label: t,
817
+ }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Xr = () => {
818
+ const { topNavigation: t } = E(), { isAuthenticated: e } = L();
819
+ return t.length <= 1 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(fe, { children: /* @__PURE__ */ s.jsxs("div", { className: " items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
820
+ /* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(st, { ...r }) }, r.id)) }) }),
821
+ /* @__PURE__ */ s.jsx(S, { name: "top-navigation-side" })
822
+ ] }) });
823
+ }, st = ({
824
+ id: t,
825
+ label: e,
1214
826
  default: r
1215
827
  }) => {
1216
- var l;
1217
- const { sidebars: s } = F(), n = s[e], o = Ze(), i = !!be().location, c = ((l = o.topNavItem) == null ? void 0 : l.id) === e && !i, d = r ?? (n ? Ft(n, (f) => {
1218
- if (f.type === "doc") return q(f.id);
1219
- }) : q(e));
828
+ var c;
829
+ const { sidebars: n } = E(), a = n[t], i = Ke(), o = !!ue().location, u = ((c = i.topNavItem) == null ? void 0 : c.id) === t && !o, d = r ?? (a ? Nt(a, (m) => {
830
+ if (m.type === "doc") return ae(m.id);
831
+ }) : ae(t));
1220
832
  if (!d)
1221
- throw new Sr("Page not found.", {
1222
- developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
833
+ throw new $e("Page not found.", {
834
+ developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
1223
835
  });
1224
836
  return (
1225
837
  // We don't use isActive here because it has to be inside the sidebar,
1226
838
  // the top nav id doesn't necessarily start with the sidebar id
1227
- /* @__PURE__ */ a.jsx(
1228
- ae,
839
+ /* @__PURE__ */ s.jsx(
840
+ xt,
1229
841
  {
1230
- className: ({ isPending: f }) => lr(
1231
- "block lg:py-3.5 font-medium -mb-px border-b-2",
1232
- c || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
842
+ className: ({ isPending: m }) => Nr(
843
+ "block lg:py-3.5 font-medium -mb-px",
844
+ u || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1233
845
  ),
1234
846
  to: d,
1235
- children: t
847
+ children: e
1236
848
  }
1237
849
  )
1238
850
  );
1239
- }, ha = () => {
1240
- const { topNavigation: e } = F(), { isAuthenticated: t } = se(), [r, s] = Q(!1);
1241
- return /* @__PURE__ */ a.jsxs(
1242
- et,
851
+ }, Gr = () => {
852
+ const { topNavigation: t } = E(), { isAuthenticated: e } = L(), [r, n] = z(!1);
853
+ return /* @__PURE__ */ s.jsxs(
854
+ Ve,
1243
855
  {
1244
856
  direction: "right",
1245
857
  open: r,
1246
- onOpenChange: (n) => s(n),
858
+ onOpenChange: (a) => n(a),
1247
859
  children: [
1248
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(tt, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(ar, { size: 22 }) }) }),
1249
- /* @__PURE__ */ a.jsx(
1250
- rt,
860
+ /* @__PURE__ */ s.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ s.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Wt, { size: 22 }) }) }),
861
+ /* @__PURE__ */ s.jsx(
862
+ Ge,
1251
863
  {
1252
864
  className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
1253
865
  "aria-describedby": void 0,
1254
- children: /* @__PURE__ */ a.jsxs("div", { className: "p-6 overflow-y-auto overscroll-none", children: [
1255
- /* @__PURE__ */ a.jsx(st, { children: /* @__PURE__ */ a.jsx(at, { children: "Navigation" }) }),
1256
- /* @__PURE__ */ a.jsx(ct, { className: "flex p-4" }),
1257
- /* @__PURE__ */ a.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1258
- /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ut, {}) }),
1259
- e.filter(dt(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ a.jsx(ht, { ...n }) }) }, n.label))
866
+ children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
867
+ /* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Navigation" }) }),
868
+ /* @__PURE__ */ s.jsx(et, { className: "flex p-4" }),
869
+ /* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
870
+ /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(tt, {}) }),
871
+ t.filter(rt(e)).map((a) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ s.jsx(st, { ...a }) }) }, a.label))
1260
872
  ] })
1261
873
  ] })
1262
874
  }
@@ -1264,191 +876,197 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1264
876
  ]
1265
877
  }
1266
878
  );
1267
- }, re = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(pr, { children: [
1268
- /* @__PURE__ */ a.jsx(vr, { children: e.label }),
1269
- /* @__PURE__ */ a.jsx(xr, { children: /* @__PURE__ */ a.jsx(yr, { children: e.children.map((t, r) => (
879
+ }, ee = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(wr, { children: [
880
+ /* @__PURE__ */ s.jsx(Pr, { children: t.label }),
881
+ /* @__PURE__ */ s.jsx(Cr, { children: /* @__PURE__ */ s.jsx(kr, { children: t.children.map((e, r) => (
1270
882
  // eslint-disable-next-line react/no-array-index-key
1271
- /* @__PURE__ */ a.jsx(re, { item: t }, r)
883
+ /* @__PURE__ */ s.jsx(ee, { item: e }, r)
1272
884
  )) }) })
1273
- ] }, e.label) : /* @__PURE__ */ a.jsx(ge, { to: e.path ?? "", children: /* @__PURE__ */ a.jsxs(br, { className: "flex gap-2", children: [
1274
- e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
1275
- e.label
1276
- ] }, e.label) }), ft = Xe(function() {
1277
- const t = se(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = se(), o = F(), { page: i, plugins: c } = o, d = c.filter((l) => aa(l)).flatMap((l) => l.getProfileMenuItems(o)).sort((l) => l.weight ?? 0);
1278
- return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1279
- /* @__PURE__ */ a.jsx(ua, {}),
1280
- /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1281
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
1282
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(ge, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1283
- (i == null ? void 0 : i.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1284
- /* @__PURE__ */ a.jsx(
1285
- "img",
1286
- {
1287
- src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : q(
1288
- "/",
1289
- i.logo.src.light
1290
- ),
1291
- alt: i.logo.alt ?? i.pageTitle,
1292
- style: { width: i.logo.width },
1293
- className: "h-10 dark:hidden",
1294
- loading: "lazy"
1295
- }
1296
- ),
1297
- /* @__PURE__ */ a.jsx(
1298
- "img",
1299
- {
1300
- src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : q(
1301
- "/",
1302
- i.logo.src.dark
1303
- ),
1304
- alt: i.logo.alt ?? i.pageTitle,
1305
- style: { width: i.logo.width },
1306
- className: "h-10 hidden dark:block",
1307
- loading: "lazy"
1308
- }
1309
- )
1310
- ] }),
1311
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
1312
- ] }) }) }),
1313
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1314
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ct, {}) }),
1315
- /* @__PURE__ */ a.jsx(ha, {}),
1316
- /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1317
- /* @__PURE__ */ a.jsx(O, { name: "head-navigation-start" }),
1318
- n && /* @__PURE__ */ a.jsx(
1319
- je,
1320
- {
1321
- fallback: /* @__PURE__ */ a.jsx(ra, { className: "rounded h-5 w-24 mr-4" }),
1322
- children: r ? Object.values(d).length > 0 && /* @__PURE__ */ a.jsxs(hr, { modal: !1, children: [
1323
- /* @__PURE__ */ a.jsx(fr, { asChild: !0, children: /* @__PURE__ */ a.jsx(de, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
1324
- /* @__PURE__ */ a.jsxs(mr, { className: "w-56", children: [
1325
- /* @__PURE__ */ a.jsxs(gr, { children: [
1326
- s != null && s.name ? `${s.name}` : "My Account",
1327
- (s == null ? void 0 : s.email) && /* @__PURE__ */ a.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
1328
- ] }),
1329
- d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1330
- d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
1331
- d.filter(
1332
- (l) => !l.category || l.category === "middle"
1333
- ).length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1334
- d.filter(
1335
- (l) => !l.category || l.category === "middle"
1336
- ).map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
1337
- d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1338
- d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label))
1339
- ] })
1340
- ] }) : /* @__PURE__ */ a.jsx(de, { variant: "ghost", onClick: () => t.login(), children: "Login" })
1341
- }
1342
- ),
1343
- /* @__PURE__ */ a.jsx(ut, {}),
1344
- /* @__PURE__ */ a.jsx(O, { name: "head-navigation-end" })
1345
- ] })
885
+ ] }, t.label) : /* @__PURE__ */ s.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(Sr, { className: "flex gap-2", children: [
886
+ t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
887
+ t.label
888
+ ] }, t.label) }), nt = Ze(function() {
889
+ const e = L(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = L(), i = E(), { page: o, plugins: u } = i, d = u.filter((c) => dr(c)).flatMap((c) => c.getProfileMenuItems(i)).sort((c) => c.weight ?? 0);
890
+ return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
891
+ /* @__PURE__ */ s.jsx(Vr, {}),
892
+ /* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x 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-8 h-[--top-header-height]", children: [
893
+ /* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(de, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
894
+ (o == null ? void 0 : o.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
895
+ /* @__PURE__ */ s.jsx(
896
+ "img",
897
+ {
898
+ src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : Ne(
899
+ "/",
900
+ o.logo.src.light
901
+ ),
902
+ alt: o.logo.alt ?? o.pageTitle,
903
+ style: { width: o.logo.width },
904
+ className: "h-10 dark:hidden",
905
+ loading: "lazy"
906
+ }
907
+ ),
908
+ /* @__PURE__ */ s.jsx(
909
+ "img",
910
+ {
911
+ src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : Ne(
912
+ "/",
913
+ o.logo.src.dark
914
+ ),
915
+ alt: o.logo.alt ?? o.pageTitle,
916
+ style: { width: o.logo.width },
917
+ className: "h-10 hidden dark:block",
918
+ loading: "lazy"
919
+ }
920
+ )
921
+ ] }),
922
+ /* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
923
+ ] }) }) }),
924
+ /* @__PURE__ */ s.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
925
+ /* @__PURE__ */ s.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ s.jsx(et, {}) }),
926
+ /* @__PURE__ */ s.jsx(Gr, {}),
927
+ /* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
928
+ /* @__PURE__ */ s.jsx(S, { name: "head-navigation-start" }),
929
+ a && /* @__PURE__ */ s.jsx(
930
+ ge,
931
+ {
932
+ fallback: /* @__PURE__ */ s.jsx(Yr, { className: "rounded h-5 w-24 mr-4" }),
933
+ children: r ? Object.values(d).length > 0 && /* @__PURE__ */ s.jsxs(vr, { modal: !1, children: [
934
+ /* @__PURE__ */ s.jsx(yr, { asChild: !0, children: /* @__PURE__ */ s.jsx(ie, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
935
+ /* @__PURE__ */ s.jsxs(br, { className: "w-56", children: [
936
+ /* @__PURE__ */ s.jsxs(jr, { children: [
937
+ n != null && n.name ? `${n.name}` : "My Account",
938
+ (n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
939
+ ] }),
940
+ d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ s.jsx(se, {}),
941
+ d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label)),
942
+ d.filter(
943
+ (c) => !c.category || c.category === "middle"
944
+ ).length > 0 && /* @__PURE__ */ s.jsx(se, {}),
945
+ d.filter(
946
+ (c) => !c.category || c.category === "middle"
947
+ ).map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label)),
948
+ d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(se, {}),
949
+ d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label))
950
+ ] })
951
+ ] }) : /* @__PURE__ */ s.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
952
+ }
953
+ ),
954
+ /* @__PURE__ */ s.jsx(S, { name: "head-navigation-end" }),
955
+ /* @__PURE__ */ s.jsx(tt, {})
1346
956
  ] })
1347
- ] }),
1348
- /* @__PURE__ */ a.jsx(O, { name: "top-navigation-before" }),
1349
- /* @__PURE__ */ a.jsx(da, {}),
1350
- /* @__PURE__ */ a.jsx(O, { name: "top-navigation-after" })
1351
- ] })
957
+ ] })
958
+ ] }) }),
959
+ /* @__PURE__ */ s.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto 2xl:border-x", children: [
960
+ /* @__PURE__ */ s.jsx(S, { name: "top-navigation-before" }),
961
+ /* @__PURE__ */ s.jsx(Xr, {}),
962
+ /* @__PURE__ */ s.jsx(S, { name: "top-navigation-after" })
963
+ ] }) })
1352
964
  ] });
1353
- }), mt = Ht(({ children: e, className: t, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
965
+ }), at = Ht(({ children: t, className: e, pushMainContent: r }, n) => /* @__PURE__ */ s.jsx(
1354
966
  "nav",
1355
967
  {
1356
968
  "data-navigation": String(r),
1357
- className: R(
1358
- "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
1359
- "-mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
969
+ className: Q(
970
+ "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-6",
971
+ "-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
1360
972
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
1361
- t
973
+ !r && "border-r-0",
974
+ e
1362
975
  ),
1363
- ref: s,
1364
- children: e
976
+ ref: n,
977
+ children: t
1365
978
  }
1366
979
  ));
1367
- mt.displayName = "SidebarWrapper";
1368
- const fa = ({
1369
- onRequestClose: e
980
+ at.displayName = "SidebarWrapper";
981
+ const _r = ({
982
+ onRequestClose: t
1370
983
  }) => {
1371
- const t = pe(null), r = Ze();
1372
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1373
- /* @__PURE__ */ a.jsxs(
1374
- mt,
984
+ const e = V(null), r = Ke();
985
+ return I(() => {
986
+ var a;
987
+ const n = (a = e.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
988
+ er(n ?? null);
989
+ }, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
990
+ /* @__PURE__ */ s.jsxs(
991
+ at,
1375
992
  {
1376
- ref: t,
993
+ ref: e,
1377
994
  pushMainContent: r.sidebar.length > 0,
1378
995
  children: [
1379
- /* @__PURE__ */ a.jsx(O, { name: "zudoku-before-navigation" }),
1380
- r.sidebar.map((s) => /* @__PURE__ */ a.jsx(fe, { item: s }, s.label)),
1381
- /* @__PURE__ */ a.jsx(O, { name: "zudoku-after-navigation" })
996
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-before-navigation" }),
997
+ r.sidebar.map((n) => /* @__PURE__ */ s.jsx(Se, { item: n }, n.label)),
998
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-after-navigation" })
1382
999
  ]
1383
1000
  }
1384
1001
  ),
1385
- /* @__PURE__ */ a.jsx(
1386
- rt,
1002
+ /* @__PURE__ */ s.jsx(
1003
+ Ge,
1387
1004
  {
1388
1005
  className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
1389
1006
  "aria-describedby": void 0,
1390
- children: /* @__PURE__ */ a.jsxs("div", { className: "p-6 overflow-y-auto overscroll-none", children: [
1391
- /* @__PURE__ */ a.jsx(st, { children: /* @__PURE__ */ a.jsx(at, { children: "Sidebar" }) }),
1392
- r.sidebar.map((s) => /* @__PURE__ */ a.jsx(
1393
- fe,
1007
+ children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1008
+ /* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Sidebar" }) }),
1009
+ r.sidebar.map((n) => /* @__PURE__ */ s.jsx(
1010
+ Se,
1394
1011
  {
1395
- item: s,
1396
- onRequestClose: e
1012
+ item: n,
1013
+ onRequestClose: t
1397
1014
  },
1398
- s.label
1015
+ n.label
1399
1016
  ))
1400
1017
  ] })
1401
1018
  }
1402
1019
  )
1403
1020
  ] });
1404
- }, qe = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(Nr, {}) }), ma = ({ children: e }) => {
1405
- const t = ye(), { setActiveAnchor: r } = we(), { meta: s, authentication: n } = F();
1406
- ea(), ta();
1407
- const o = pe(t.pathname);
1408
- z(() => {
1409
- var f;
1410
- (f = n == null ? void 0 : n.onPageLoad) == null || f.call(n);
1411
- }, [n]), z(() => {
1412
- t.pathname !== o.current && r(""), o.current = t.pathname;
1413
- }, [t.pathname, r]);
1414
- const i = !!be().location, c = Xr.useSpinDelay(i, {
1021
+ }, Te = () => /* @__PURE__ */ s.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ s.jsx(We, {}) }), Wr = ({ children: t }) => {
1022
+ const e = te(), { setActiveAnchor: r } = nr(), { meta: n, authentication: a } = E();
1023
+ tr(), Zr();
1024
+ const i = V(e.pathname);
1025
+ I(() => {
1026
+ var m;
1027
+ (m = a == null ? void 0 : a.onPageLoad) == null || m.call(a);
1028
+ }, [a]), I(() => {
1029
+ e.pathname !== i.current && r(""), i.current = e.pathname;
1030
+ }, [e.pathname, r]);
1031
+ const o = !!ue().location, u = Ur.useSpinDelay(o, {
1415
1032
  delay: 300,
1416
1033
  minDuration: 500
1417
- }), [d, l] = Q(!1);
1418
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1034
+ }), [d, c] = z(!1);
1035
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1419
1036
  !1,
1420
- /* @__PURE__ */ a.jsxs(me, { titleTemplate: s == null ? void 0 : s.title, children: [
1421
- (s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
1422
- (s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
1037
+ /* @__PURE__ */ s.jsxs(le, { titleTemplate: n == null ? void 0 : n.title, children: [
1038
+ (n == null ? void 0 : n.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: n.description }),
1039
+ (n == null ? void 0 : n.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: n.favicon })
1423
1040
  ] }),
1424
- /* @__PURE__ */ a.jsx(O, { name: "layout-before-head" }),
1425
- /* @__PURE__ */ a.jsx(ft, {}),
1426
- /* @__PURE__ */ a.jsx(O, { name: "layout-after-head" }),
1427
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: c ? /* @__PURE__ */ a.jsx(qe, {}) : /* @__PURE__ */ a.jsx(ve, { fallback: /* @__PURE__ */ a.jsx(qe, {}), children: /* @__PURE__ */ a.jsxs(
1428
- et,
1041
+ /* @__PURE__ */ s.jsx(S, { name: "layout-before-head" }),
1042
+ /* @__PURE__ */ s.jsx(nt, {}),
1043
+ /* @__PURE__ */ s.jsx(S, { name: "layout-after-head" }),
1044
+ /* @__PURE__ */ s.jsx("div", { className: "w-full min-h-[calc(100vh-var(--header-height))] max-w-screen-2xl mx-auto px-4 lg:px-8 2xl:border-x", children: u ? /* @__PURE__ */ s.jsx(Te, {}) : /* @__PURE__ */ s.jsx(fe, { fallback: /* @__PURE__ */ s.jsx(Te, {}), children: /* @__PURE__ */ s.jsxs(
1045
+ Ve,
1429
1046
  {
1430
1047
  direction: "left",
1431
1048
  open: d,
1432
- onOpenChange: (f) => l(f),
1049
+ onOpenChange: (m) => c(m),
1433
1050
  children: [
1434
- /* @__PURE__ */ a.jsx(fa, { onRequestClose: () => l(!1) }),
1435
- /* @__PURE__ */ a.jsx(
1051
+ /* @__PURE__ */ s.jsx(_r, { onRequestClose: () => c(!1) }),
1052
+ /* @__PURE__ */ s.jsx(
1436
1053
  "div",
1437
1054
  {
1438
- className: R(
1439
- "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1055
+ className: Q(
1056
+ "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1440
1057
  "peer-data-[navigation=false]:hidden"
1441
1058
  ),
1442
- children: /* @__PURE__ */ a.jsxs(tt, { className: "flex items-center gap-2", children: [
1443
- /* @__PURE__ */ a.jsx(sr, { size: 16, strokeWidth: 1.5 }),
1444
- /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
1059
+ children: /* @__PURE__ */ s.jsxs(Xe, { className: "flex items-center gap-2", children: [
1060
+ /* @__PURE__ */ s.jsx(Jt, { size: 16, strokeWidth: 1.5 }),
1061
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
1445
1062
  ] })
1446
1063
  }
1447
1064
  ),
1448
- /* @__PURE__ */ a.jsxs(
1065
+ /* @__PURE__ */ s.jsxs(
1449
1066
  "main",
1450
1067
  {
1451
- className: R(
1068
+ "data-pagefind-body": !0,
1069
+ className: Q(
1452
1070
  "h-full dark:border-white/10 translate-x-0",
1453
1071
  "lg:overflow-visible",
1454
1072
  // This works in tandem with the `SidebarWrapper` component
@@ -1456,9 +1074,9 @@ const fa = ({
1456
1074
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1457
1075
  ),
1458
1076
  children: [
1459
- /* @__PURE__ */ a.jsx(O, { name: "zudoku-before-content" }),
1460
- e ?? /* @__PURE__ */ a.jsx(Ge, {}),
1461
- /* @__PURE__ */ a.jsx(O, { name: "zudoku-after-content" })
1077
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-before-content" }),
1078
+ t ?? /* @__PURE__ */ s.jsx(ce, {}),
1079
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-after-content" })
1462
1080
  ]
1463
1081
  }
1464
1082
  )
@@ -1466,193 +1084,315 @@ const fa = ({
1466
1084
  }
1467
1085
  ) }) })
1468
1086
  ] });
1469
- }, ga = Je(null), ce = {
1087
+ }, Jr = ({
1088
+ title: t = "An error occurred",
1089
+ message: e,
1090
+ category: r
1091
+ }) => /* @__PURE__ */ s.jsxs("div", { className: ir + " h-full pt-[--padding-content-top]", children: [
1092
+ r && /* @__PURE__ */ s.jsx(Dr, { children: r }),
1093
+ t && /* @__PURE__ */ s.jsx(ar, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1094
+ /* @__PURE__ */ s.jsx("p", { children: e })
1095
+ ] }), es = (t) => {
1096
+ switch (t) {
1097
+ case 400:
1098
+ return {
1099
+ title: "Bad Request",
1100
+ message: "The request could not be understood by the server due to malformed syntax."
1101
+ };
1102
+ case 403:
1103
+ return {
1104
+ title: "Forbidden",
1105
+ message: "You don't have permission to access this resource."
1106
+ };
1107
+ case 404:
1108
+ return {
1109
+ title: "Not Found",
1110
+ message: "The requested resource could not be found."
1111
+ };
1112
+ case 405:
1113
+ return {
1114
+ title: "Method Not Allowed",
1115
+ message: "The request method is not supported for the requested resource."
1116
+ };
1117
+ case 414:
1118
+ return {
1119
+ title: "Request URI Too Large",
1120
+ message: "The request URI is too large."
1121
+ };
1122
+ case 416:
1123
+ return {
1124
+ title: "Range Not Satisfiable",
1125
+ message: "The server cannot satisfy the request range."
1126
+ };
1127
+ case 500:
1128
+ return {
1129
+ title: "Internal Server Error",
1130
+ message: "An unexpected error occurred while processing your request."
1131
+ };
1132
+ case 501:
1133
+ return {
1134
+ title: "Not Implemented",
1135
+ message: "The server does not support the functionality required to fulfill the request."
1136
+ };
1137
+ case 502:
1138
+ return {
1139
+ title: "Bad Gateway",
1140
+ message: "The server received an invalid response from the upstream server."
1141
+ };
1142
+ case 503:
1143
+ return {
1144
+ title: "Service Unavailable",
1145
+ message: "The server is temporarily unable to handle the request."
1146
+ };
1147
+ case 504:
1148
+ return {
1149
+ title: "Gateway Timeout",
1150
+ message: "The server did not receive a timely response from the upstream server."
1151
+ };
1152
+ default:
1153
+ return {
1154
+ title: "An error occurred",
1155
+ message: "Something went wrong while processing your request."
1156
+ };
1157
+ }
1158
+ }, ts = ({ statusCode: t, message: e }) => {
1159
+ const r = es(t);
1160
+ return /* @__PURE__ */ s.jsx(
1161
+ Jr,
1162
+ {
1163
+ title: r.title,
1164
+ message: e ?? r.message,
1165
+ category: t
1166
+ }
1167
+ );
1168
+ }, rs = he(null), ne = {
1470
1169
  didCatch: !1,
1471
1170
  error: null
1472
1171
  };
1473
- class pa extends Ut {
1474
- constructor(t) {
1475
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ce;
1172
+ class ss extends Bt {
1173
+ constructor(e) {
1174
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
1476
1175
  }
1477
- static getDerivedStateFromError(t) {
1176
+ static getDerivedStateFromError(e) {
1478
1177
  return {
1479
1178
  didCatch: !0,
1480
- error: t
1179
+ error: e
1481
1180
  };
1482
1181
  }
1483
1182
  resetErrorBoundary() {
1484
1183
  const {
1485
- error: t
1184
+ error: e
1486
1185
  } = this.state;
1487
- if (t !== null) {
1488
- for (var r, s, n = arguments.length, o = new Array(n), i = 0; i < n; i++)
1489
- o[i] = arguments[i];
1490
- (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
1491
- args: o,
1186
+ if (e !== null) {
1187
+ for (var r, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1188
+ i[o] = arguments[o];
1189
+ (r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
1190
+ args: i,
1492
1191
  reason: "imperative-api"
1493
- }), this.setState(ce);
1192
+ }), this.setState(ne);
1494
1193
  }
1495
1194
  }
1496
- componentDidCatch(t, r) {
1497
- var s, n;
1498
- (s = (n = this.props).onError) === null || s === void 0 || s.call(n, t, r);
1195
+ componentDidCatch(e, r) {
1196
+ var n, a;
1197
+ (n = (a = this.props).onError) === null || n === void 0 || n.call(a, e, r);
1499
1198
  }
1500
- componentDidUpdate(t, r) {
1199
+ componentDidUpdate(e, r) {
1501
1200
  const {
1502
- didCatch: s
1201
+ didCatch: n
1503
1202
  } = this.state, {
1504
- resetKeys: n
1203
+ resetKeys: a
1505
1204
  } = this.props;
1506
- if (s && r.error !== null && va(t.resetKeys, n)) {
1507
- var o, i;
1508
- (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1509
- next: n,
1510
- prev: t.resetKeys,
1205
+ if (n && r.error !== null && ns(e.resetKeys, a)) {
1206
+ var i, o;
1207
+ (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1208
+ next: a,
1209
+ prev: e.resetKeys,
1511
1210
  reason: "keys"
1512
- }), this.setState(ce);
1211
+ }), this.setState(ne);
1513
1212
  }
1514
1213
  }
1515
1214
  render() {
1516
1215
  const {
1517
- children: t,
1216
+ children: e,
1518
1217
  fallbackRender: r,
1519
- FallbackComponent: s,
1520
- fallback: n
1218
+ FallbackComponent: n,
1219
+ fallback: a
1521
1220
  } = this.props, {
1522
- didCatch: o,
1523
- error: i
1221
+ didCatch: i,
1222
+ error: o
1524
1223
  } = this.state;
1525
- let c = t;
1526
- if (o) {
1224
+ let u = e;
1225
+ if (i) {
1527
1226
  const d = {
1528
- error: i,
1227
+ error: o,
1529
1228
  resetErrorBoundary: this.resetErrorBoundary
1530
1229
  };
1531
1230
  if (typeof r == "function")
1532
- c = r(d);
1533
- else if (s)
1534
- c = Ie(s, d);
1535
- else if (n !== void 0)
1536
- c = n;
1231
+ u = r(d);
1232
+ else if (n)
1233
+ u = ke(n, d);
1234
+ else if (a !== void 0)
1235
+ u = a;
1537
1236
  else
1538
- throw i;
1237
+ throw o;
1539
1238
  }
1540
- return Ie(ga.Provider, {
1239
+ return ke(rs.Provider, {
1541
1240
  value: {
1542
- didCatch: o,
1543
- error: i,
1241
+ didCatch: i,
1242
+ error: o,
1544
1243
  resetErrorBoundary: this.resetErrorBoundary
1545
1244
  }
1546
- }, c);
1245
+ }, u);
1547
1246
  }
1548
1247
  }
1549
- function va() {
1550
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1551
- return e.length !== t.length || e.some((r, s) => !Object.is(r, t[s]));
1248
+ function ns() {
1249
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1250
+ return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
1552
1251
  }
1553
- class xa {
1554
- constructor(t) {
1555
- S(this, "plugins");
1556
- S(this, "sidebars");
1557
- S(this, "topNavigation");
1558
- S(this, "meta");
1559
- S(this, "page");
1560
- S(this, "authentication");
1561
- S(this, "navigationPlugins");
1562
- S(this, "initialize", async () => {
1252
+ let as = () => ({
1253
+ emit(t, ...e) {
1254
+ for (let r = this.events[t] || [], n = 0, a = r.length; n < a; n++)
1255
+ r[n](...e);
1256
+ },
1257
+ events: {},
1258
+ on(t, e) {
1259
+ var r;
1260
+ return ((r = this.events)[t] || (r[t] = [])).push(e), () => {
1261
+ var n;
1262
+ this.events[t] = (n = this.events[t]) == null ? void 0 : n.filter((a) => e !== a);
1263
+ };
1264
+ }
1265
+ });
1266
+ class is {
1267
+ constructor(e) {
1268
+ j(this, "plugins");
1269
+ j(this, "sidebars");
1270
+ j(this, "topNavigation");
1271
+ j(this, "meta");
1272
+ j(this, "page");
1273
+ j(this, "authentication");
1274
+ j(this, "navigationPlugins");
1275
+ j(this, "emitter", as());
1276
+ j(this, "initialize", async () => {
1563
1277
  await Promise.all(
1564
- this.plugins.filter(ia).map((t) => {
1278
+ this.plugins.filter(gr).map((e) => {
1565
1279
  var r;
1566
- return (r = t.initialize) == null ? void 0 : r.call(t, this);
1280
+ return (r = e.initialize) == null ? void 0 : r.call(e, this);
1567
1281
  })
1568
1282
  );
1569
1283
  });
1570
- S(this, "getApiIdentities", async () => (await Promise.all(
1571
- this.plugins.filter(ca).map((r) => r.getIdentities(this))
1284
+ j(this, "getApiIdentities", async () => (await Promise.all(
1285
+ this.plugins.filter(mr).map((r) => r.getIdentities(this))
1572
1286
  )).flat());
1573
- S(this, "getPluginSidebar", async (t) => (await Promise.all(
1287
+ j(this, "emitEvent", (e, ...r) => this.emitter.emit(e, ...r));
1288
+ j(this, "getPluginSidebar", async (e) => (await Promise.all(
1574
1289
  this.navigationPlugins.map(
1575
- (s) => {
1576
- var n;
1577
- return (n = s.getSidebar) == null ? void 0 : n.call(s, q(t));
1290
+ (n) => {
1291
+ var a;
1292
+ return (a = n.getSidebar) == null ? void 0 : a.call(n, ae(e));
1578
1293
  }
1579
1294
  )
1580
- )).flatMap((s) => s ?? []));
1581
- S(this, "signRequest", async (t) => {
1295
+ )).flatMap((n) => n ?? []));
1296
+ j(this, "signRequest", async (e) => {
1582
1297
  if (!this.authentication)
1583
1298
  throw new Error("No authentication provider configured");
1584
1299
  const r = await this.authentication.getAccessToken();
1585
- return t.headers.set("Authorization", `Bearer ${r}`), t;
1300
+ return e.headers.set("Authorization", `Bearer ${r}`), e;
1301
+ });
1302
+ this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(hr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((r) => {
1303
+ fr(r) && Er(r.events).forEach(([n, a]) => {
1304
+ this.emitter.on(n, a);
1305
+ });
1586
1306
  });
1587
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(sa), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
1307
+ }
1308
+ addEventListener(e, r) {
1309
+ return this.emitter.on(e, r);
1588
1310
  }
1589
1311
  }
1590
- function ya({ error: e, resetErrorBoundary: t }) {
1591
- return /* @__PURE__ */ a.jsx(Ue, { error: e });
1312
+ function os({ error: t, resetErrorBoundary: e }) {
1313
+ return /* @__PURE__ */ s.jsx(Ye, { error: t });
1592
1314
  }
1593
- const te = globalThis;
1594
- (!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (e) => setTimeout(e, 1), te.cancelIdleCallback = clearTimeout);
1595
- const gt = {
1596
- Header: ft
1597
- }, ba = Je(gt), ja = ba.Provider, wa = ({
1598
- children: e,
1599
- context: t
1600
- }) => (qt({
1601
- queryFn: async () => (await t.initialize(), !0),
1315
+ const J = globalThis;
1316
+ (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
1317
+ const it = {
1318
+ Header: nt
1319
+ }, ls = he(it), cs = ls.Provider, us = () => {
1320
+ const t = te(), e = E(), r = V(void 0);
1321
+ return I(() => {
1322
+ e.emitEvent("location", {
1323
+ from: r.current,
1324
+ to: t
1325
+ }), r.current = t;
1326
+ }, [e, t]), null;
1327
+ }, ds = ({
1328
+ children: t,
1329
+ context: e
1330
+ }) => (Dt({
1331
+ queryFn: async () => (await e.initialize(), !0),
1602
1332
  queryKey: ["zudoku-initialize"]
1603
- }), /* @__PURE__ */ a.jsx(zt.Provider, { value: t, children: e })), pt = Xe(
1604
- ({ children: e, ...t }) => {
1605
- var m, h;
1606
- const r = ne(
1607
- () => ({ ...gt, ...t.overrides }),
1608
- [t.overrides]
1609
- ), s = ne(() => {
1333
+ }), /* @__PURE__ */ s.jsx(Et.Provider, { value: e, children: t })), ot = Ze(
1334
+ ({ children: t, ...e }) => {
1335
+ var g, h;
1336
+ const r = re(
1337
+ () => ({ ...it, ...e.overrides }),
1338
+ [e.overrides]
1339
+ ), n = re(() => {
1610
1340
  var v;
1611
1341
  return {
1612
- ...(t.plugins ?? []).filter(la).flatMap(
1613
- (g) => g.getMdxComponents ? [g.getMdxComponents()] : []
1342
+ ...(e.plugins ?? []).filter(pr).flatMap(
1343
+ (x) => x.getMdxComponents ? [x.getMdxComponents()] : []
1614
1344
  ).reduce(
1615
- (g, E) => ({ ...g, ...E }),
1345
+ (x, C) => ({ ...x, ...C }),
1616
1346
  {}
1617
1347
  ),
1618
- ...nr,
1619
- ...(v = t.mdx) == null ? void 0 : v.components
1348
+ ...or,
1349
+ ...(v = e.mdx) == null ? void 0 : v.components
1620
1350
  };
1621
- }, [(m = t.mdx) == null ? void 0 : m.components, t.plugins]), { stagger: n } = $t(ue), [o, i] = Q(!1), c = ne(
1622
- () => o ? { stagger: !0 } : { stagger: n },
1623
- [n, o]
1624
- ), d = be();
1625
- z(() => {
1626
- o || i(!0);
1627
- }, [o, d.location]);
1628
- const [l] = Q(() => new xa(t)), f = (h = t.plugins) == null ? void 0 : h.filter(oa).map((p, v) => {
1629
- var g;
1630
- return /* @__PURE__ */ a.jsx(Kt, { children: (g = p.getHead) == null ? void 0 : g.call(p) }, v);
1631
- });
1632
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1633
- /* @__PURE__ */ a.jsx(me, { children: f }),
1634
- /* @__PURE__ */ a.jsx(ue.Provider, { value: c, children: /* @__PURE__ */ a.jsx(wa, { context: l, children: /* @__PURE__ */ a.jsx(ur, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ja, { value: r, children: /* @__PURE__ */ a.jsx(Et, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(ir, { children: e ?? /* @__PURE__ */ a.jsx(Ge, {}) }) }) }) }) }) }) })
1351
+ }, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: a } = Lt(oe), [i, o] = z(!1), u = re(
1352
+ () => i ? { stagger: !0 } : { stagger: a },
1353
+ [a, i]
1354
+ ), d = ue();
1355
+ I(() => {
1356
+ i || o(!0);
1357
+ }, [i, d.location]);
1358
+ const [c] = z(() => new is(e)), m = (h = e.plugins) == null ? void 0 : h.flatMap((f) => {
1359
+ var v;
1360
+ return xr(f) ? ((v = f.getHead) == null ? void 0 : v.call(f)) ?? [] : [];
1361
+ }).map((f, v) => /* @__PURE__ */ s.jsx(le, { children: f }, v));
1362
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1363
+ m,
1364
+ /* @__PURE__ */ s.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ s.jsxs(ds, { context: c, children: [
1365
+ /* @__PURE__ */ s.jsx(us, {}),
1366
+ /* @__PURE__ */ s.jsx(rr, { components: n, children: /* @__PURE__ */ s.jsx(ht, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(cs, { value: r, children: /* @__PURE__ */ s.jsx(zt, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(lr, { children: t ?? /* @__PURE__ */ s.jsx(ce, {}) }) }) }) }) })
1367
+ ] }) })
1635
1368
  ] });
1636
1369
  }
1637
1370
  );
1638
- pt.displayName = "ZudokoInner";
1639
- const vt = (e) => /* @__PURE__ */ a.jsx(pa, { FallbackComponent: ya, children: /* @__PURE__ */ a.jsx(pt, { ...e }) });
1640
- vt.displayName = "Zudoku";
1641
- const Xa = dr, Ja = ma, Ga = Ct, es = Er, ts = Yr, rs = Wr, as = me, ss = F, ns = Nt, is = vt, os = kt, ls = je, cs = Pt, us = ge;
1371
+ ot.displayName = "ZudokoInner";
1372
+ const lt = (t) => /* @__PURE__ */ s.jsx(ss, { FallbackComponent: os, children: /* @__PURE__ */ s.jsx(ot, { ...t }) });
1373
+ lt.displayName = "Zudoku";
1374
+ const Hs = sr, Bs = Wr, Ls = Kt, zs = Fr, Ks = Lr, $s = zr, Us = Rr, Zs = le, Ys = E, Vs = L, Xs = Mt, Gs = Ot, _s = lt, Ws = ts, Js = Ut, en = cr, tn = We, rn = ge, sn = $t, nn = de, an = He;
1642
1375
  export {
1643
- ts as Bootstrap,
1644
- rs as BootstrapStatic,
1645
- cs as Button,
1646
- os as Callout,
1647
- ls as ClientOnly,
1648
- as as Head,
1649
- Ja as Layout,
1650
- us as Link,
1651
- Ga as RouterError,
1652
- es as ServerError,
1653
- is as Zudoku,
1654
- ns as useAuth,
1655
- Xa as useMDXComponents,
1656
- ss as useZudoku
1376
+ Ks as Bootstrap,
1377
+ $s as BootstrapStatic,
1378
+ sn as Button,
1379
+ Gs as CACHE_KEYS,
1380
+ Js as Callout,
1381
+ rn as ClientOnly,
1382
+ Zs as Head,
1383
+ Bs as Layout,
1384
+ nn as Link,
1385
+ en as Markdown,
1386
+ Us as RouteGuard,
1387
+ Ls as RouterError,
1388
+ zs as ServerError,
1389
+ tn as Spinner,
1390
+ Ws as StatusPage,
1391
+ _s as Zudoku,
1392
+ Vs as useAuth,
1393
+ Xs as useCache,
1394
+ Hs as useMDXComponents,
1395
+ an as useTheme,
1396
+ Ys as useZudoku
1657
1397
  };
1658
1398
  //# sourceMappingURL=zudoku.components.js.map