zudoku 0.3.0-dev.7 → 0.3.0-dev.70

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