zudoku 0.3.0-dev.9 → 0.3.0-dev.91

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