zudoku 0.3.0-dev.5 → 0.3.0-dev.51

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 (483) hide show
  1. package/dist/app/App.d.ts +1 -2
  2. package/dist/app/App.js +1 -28
  3. package/dist/app/App.js.map +1 -1
  4. package/dist/app/demo.d.ts +2 -0
  5. package/dist/app/demo.js +27 -0
  6. package/dist/app/demo.js.map +1 -0
  7. package/dist/app/entry.client.d.ts +2 -0
  8. package/dist/app/entry.client.js +35 -0
  9. package/dist/app/entry.client.js.map +1 -0
  10. package/dist/app/entry.server.d.ts +12 -0
  11. package/dist/app/entry.server.js +104 -0
  12. package/dist/app/entry.server.js.map +1 -0
  13. package/dist/app/main.d.ts +6 -1
  14. package/dist/app/main.js +54 -12
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/app/standalone.d.ts +2 -0
  17. package/dist/app/standalone.js +32 -0
  18. package/dist/app/standalone.js.map +1 -0
  19. package/dist/app/tailwind.d.ts +1 -1
  20. package/dist/app/tailwind.js +0 -4
  21. package/dist/app/tailwind.js.map +1 -1
  22. package/dist/app/zudoku-manifest.d.ts +1 -0
  23. package/dist/app/zudoku-manifest.js +20 -0
  24. package/dist/app/zudoku-manifest.js.map +1 -0
  25. package/dist/cli/cmds/dev.js +5 -0
  26. package/dist/cli/cmds/dev.js.map +1 -1
  27. package/dist/cli/dev/handler.d.ts +1 -0
  28. package/dist/cli/dev/handler.js +3 -1
  29. package/dist/cli/dev/handler.js.map +1 -1
  30. package/dist/config/config.d.ts +5 -39
  31. package/dist/config/validators/validate.d.ts +799 -2
  32. package/dist/config/validators/validate.js +134 -1
  33. package/dist/config/validators/validate.js.map +1 -1
  34. package/dist/internal.d.ts +1 -0
  35. package/dist/internal.js +2 -0
  36. package/dist/internal.js.map +1 -0
  37. package/dist/lib/authentication/Callback.js +1 -1
  38. package/dist/lib/authentication/Callback.js.map +1 -1
  39. package/dist/lib/authentication/authentication.d.ts +2 -2
  40. package/dist/lib/authentication/hook.d.ts +1 -0
  41. package/dist/lib/authentication/hook.js +1 -0
  42. package/dist/lib/authentication/hook.js.map +1 -1
  43. package/dist/lib/authentication/providers/auth0.js +1 -0
  44. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  45. package/dist/lib/authentication/providers/clerk.js +4 -0
  46. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  47. package/dist/lib/authentication/providers/openid.d.ts +1 -1
  48. package/dist/lib/authentication/providers/openid.js +2 -0
  49. package/dist/lib/authentication/providers/openid.js.map +1 -1
  50. package/dist/lib/authentication/state.d.ts +1 -0
  51. package/dist/lib/authentication/state.js +1 -0
  52. package/dist/lib/authentication/state.js.map +1 -1
  53. package/dist/lib/components/Bootstrap.d.ts +12 -0
  54. package/dist/lib/components/Bootstrap.js +9 -0
  55. package/dist/lib/components/Bootstrap.js.map +1 -0
  56. package/dist/lib/components/DevPortal.d.ts +4 -19
  57. package/dist/lib/components/DevPortal.js +17 -12
  58. package/dist/lib/components/DevPortal.js.map +1 -1
  59. package/dist/lib/components/ErrorPage.d.ts +6 -0
  60. package/dist/lib/components/ErrorPage.js +9 -0
  61. package/dist/lib/components/ErrorPage.js.map +1 -0
  62. package/dist/lib/components/Header.js +3 -3
  63. package/dist/lib/components/Header.js.map +1 -1
  64. package/dist/lib/components/Heading.d.ts +9 -4
  65. package/dist/lib/components/Heading.js +17 -2
  66. package/dist/lib/components/Heading.js.map +1 -1
  67. package/dist/lib/components/InlineCode.d.ts +5 -0
  68. package/dist/lib/components/InlineCode.js +4 -0
  69. package/dist/lib/components/InlineCode.js.map +1 -0
  70. package/dist/lib/components/Layout.js +3 -2
  71. package/dist/lib/components/Layout.js.map +1 -1
  72. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  73. package/dist/lib/components/NotFoundPage.js +12 -0
  74. package/dist/lib/components/NotFoundPage.js.map +1 -0
  75. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  76. package/dist/lib/components/SyntaxHighlight.js +21 -19
  77. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  78. package/dist/lib/components/TopNavigation.d.ts +1 -1
  79. package/dist/lib/components/TopNavigation.js +4 -0
  80. package/dist/lib/components/TopNavigation.js.map +1 -1
  81. package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
  82. package/dist/lib/components/context/DevPortalProvider.js +2 -2
  83. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  84. package/dist/lib/components/index.d.ts +28 -3
  85. package/dist/lib/components/index.js +17 -3
  86. package/dist/lib/components/index.js.map +1 -1
  87. package/dist/lib/core/DevPortalContext.d.ts +36 -11
  88. package/dist/lib/core/DevPortalContext.js +11 -12
  89. package/dist/lib/core/DevPortalContext.js.map +1 -1
  90. package/dist/lib/core/plugins.d.ts +7 -4
  91. package/dist/lib/core/plugins.js +1 -0
  92. package/dist/lib/core/plugins.js.map +1 -1
  93. package/dist/lib/errors/ErrorAlert.d.ts +3 -0
  94. package/dist/lib/errors/ErrorAlert.js +8 -0
  95. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  96. package/dist/lib/errors/RouterError.d.ts +1 -0
  97. package/dist/lib/errors/RouterError.js +12 -0
  98. package/dist/lib/errors/RouterError.js.map +1 -0
  99. package/dist/lib/errors/ServerError.d.ts +3 -0
  100. package/dist/lib/errors/ServerError.js +6 -0
  101. package/dist/lib/errors/ServerError.js.map +1 -0
  102. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  103. package/dist/lib/errors/TopLevelError.js +7 -0
  104. package/dist/lib/errors/TopLevelError.js.map +1 -0
  105. package/dist/lib/oas/graphql/index.js +1 -1
  106. package/dist/lib/oas/graphql/index.js.map +1 -1
  107. package/dist/lib/oas/parser/index.d.ts +1 -1
  108. package/dist/lib/oas/parser/index.js +38 -12
  109. package/dist/lib/oas/parser/index.js.map +1 -1
  110. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +4 -0
  111. package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +1 -1
  112. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  113. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +4 -0
  114. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +39 -0
  115. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  116. package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +2 -3
  117. package/dist/lib/plugins/{api-key → api-keys}/index.js +15 -4
  118. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  119. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  120. package/dist/lib/plugins/markdown/MdxPage.js +7 -6
  121. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  122. package/dist/lib/plugins/markdown/Toc.js +1 -1
  123. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  124. package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
  125. package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
  126. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  127. package/dist/lib/plugins/markdown/index.d.ts +4 -1
  128. package/dist/lib/plugins/markdown/index.js +3 -7
  129. package/dist/lib/plugins/markdown/index.js.map +1 -1
  130. package/dist/lib/plugins/openapi/OperationList.js +16 -5
  131. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  132. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  133. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  134. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  135. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  136. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  137. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  138. package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
  139. package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +5 -5
  140. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
  141. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
  142. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  143. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
  144. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  145. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  146. package/dist/lib/plugins/openapi/Route.js +8 -0
  147. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  148. package/dist/lib/plugins/openapi/SchemaListView.js +6 -27
  149. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  150. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
  151. package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
  152. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
  153. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
  154. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
  155. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
  156. package/dist/lib/plugins/openapi/Sidecar.js +10 -8
  157. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  158. package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
  159. package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
  160. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
  161. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
  162. package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
  163. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
  164. package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
  165. package/dist/lib/plugins/openapi/client/createServer.js +30 -0
  166. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
  167. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
  168. package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
  169. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
  170. package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
  171. package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
  172. package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
  173. package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
  174. package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
  175. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  176. package/dist/lib/plugins/openapi/context.js +11 -0
  177. package/dist/lib/plugins/openapi/context.js.map +1 -0
  178. package/dist/lib/plugins/openapi/index.d.ts +4 -18
  179. package/dist/lib/plugins/openapi/index.js +35 -20
  180. package/dist/lib/plugins/openapi/index.js.map +1 -1
  181. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  182. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  183. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  184. package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
  185. package/dist/lib/plugins/openapi/playground/Headers.js +16 -6
  186. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  187. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +1 -1
  188. package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -3
  189. package/dist/lib/plugins/openapi/playground/Playground.js +8 -12
  190. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  191. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
  192. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
  193. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
  194. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  195. package/dist/lib/plugins/openapi/playground/QueryParams.js +2 -1
  196. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  197. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  198. package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
  199. package/dist/lib/plugins/openapi/util/prose.js +4 -0
  200. package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
  201. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  202. package/dist/lib/plugins/openapi-worker.js +1 -1
  203. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  204. package/dist/lib/plugins/redirect/index.d.ts +0 -1
  205. package/dist/lib/plugins/redirect/index.js +3 -4
  206. package/dist/lib/plugins/redirect/index.js.map +1 -1
  207. package/dist/lib/ui/Callout.js +2 -2
  208. package/dist/lib/ui/Callout.js.map +1 -1
  209. package/dist/lib/ui/button-variants.d.ts +1 -1
  210. package/dist/lib/util/MdxComponents.d.ts +2 -2
  211. package/dist/lib/util/MdxComponents.js +6 -4
  212. package/dist/lib/util/MdxComponents.js.map +1 -1
  213. package/dist/lib/util/groupBy.d.ts +1 -6
  214. package/dist/lib/util/groupBy.js +10 -8
  215. package/dist/lib/util/groupBy.js.map +1 -1
  216. package/dist/lib/util/logInit.d.ts +1 -0
  217. package/dist/lib/util/logInit.js +9 -0
  218. package/dist/lib/util/logInit.js.map +1 -0
  219. package/dist/lib/util/objectEntries.d.ts +4 -0
  220. package/dist/lib/util/objectEntries.js +2 -0
  221. package/dist/lib/util/objectEntries.js.map +1 -0
  222. package/dist/lib/util/renderIf.d.ts +1 -0
  223. package/dist/lib/util/renderIf.js +2 -0
  224. package/dist/lib/util/renderIf.js.map +1 -0
  225. package/dist/vite/build.js +26 -6
  226. package/dist/vite/build.js.map +1 -1
  227. package/dist/vite/config.d.ts +13 -12
  228. package/dist/vite/config.js +100 -55
  229. package/dist/vite/config.js.map +1 -1
  230. package/dist/vite/config.test.js +7 -4
  231. package/dist/vite/config.test.js.map +1 -1
  232. package/dist/vite/dev-server.d.ts +2 -1
  233. package/dist/vite/dev-server.js +43 -15
  234. package/dist/vite/dev-server.js.map +1 -1
  235. package/dist/vite/html.js +18 -5
  236. package/dist/vite/html.js.map +1 -1
  237. package/dist/vite/plugin-api-keys.js +7 -8
  238. package/dist/vite/plugin-api-keys.js.map +1 -1
  239. package/dist/vite/plugin-api.js +9 -20
  240. package/dist/vite/plugin-api.js.map +1 -1
  241. package/dist/vite/plugin-auth.js +5 -6
  242. package/dist/vite/plugin-auth.js.map +1 -1
  243. package/dist/vite/plugin-component.js +4 -2
  244. package/dist/vite/plugin-component.js.map +1 -1
  245. package/dist/vite/plugin-config.d.ts +0 -2
  246. package/dist/vite/plugin-config.js +2 -13
  247. package/dist/vite/plugin-config.js.map +1 -1
  248. package/dist/vite/plugin-custom-css.d.ts +6 -0
  249. package/dist/vite/plugin-custom-css.js +55 -0
  250. package/dist/vite/plugin-custom-css.js.map +1 -0
  251. package/dist/vite/plugin-docs.js +15 -5
  252. package/dist/vite/plugin-docs.js.map +1 -1
  253. package/dist/vite/plugin-docs.test.js +1 -1
  254. package/dist/vite/plugin-docs.test.js.map +1 -1
  255. package/dist/vite/plugin-mdx.d.ts +3 -1
  256. package/dist/vite/plugin-mdx.js +5 -5
  257. package/dist/vite/plugin-mdx.js.map +1 -1
  258. package/dist/vite/plugin-metadata.js +1 -1
  259. package/dist/vite/plugin-metadata.js.map +1 -1
  260. package/dist/vite/plugin-redirect.js +10 -10
  261. package/dist/vite/plugin-redirect.js.map +1 -1
  262. package/dist/vite/plugin.js +3 -5
  263. package/dist/vite/plugin.js.map +1 -1
  264. package/dist/vite/prerender.d.ts +17 -0
  265. package/dist/vite/prerender.js +55 -0
  266. package/dist/vite/prerender.js.map +1 -0
  267. package/lib/AnchorLink-CZUp-F0P.js +705 -0
  268. package/lib/AnchorLink-CZUp-F0P.js.map +1 -0
  269. package/lib/DevPortalProvider-Do9oJqme.js +1081 -0
  270. package/lib/DevPortalProvider-Do9oJqme.js.map +1 -0
  271. package/lib/Markdown-Dbzrtopg.js +15030 -0
  272. package/lib/Markdown-Dbzrtopg.js.map +1 -0
  273. package/lib/MdxPage-JvboTsbK.js +190 -0
  274. package/lib/MdxPage-JvboTsbK.js.map +1 -0
  275. package/lib/OperationList-DGdaixGa.js +5562 -0
  276. package/lib/OperationList-DGdaixGa.js.map +1 -0
  277. package/lib/Route-C1LyvITr.js +13 -0
  278. package/lib/Route-C1LyvITr.js.map +1 -0
  279. package/lib/Select-DHm1jDdS.js +4571 -0
  280. package/lib/Select-DHm1jDdS.js.map +1 -0
  281. package/lib/Spinner-BSk0ImmP.js +182 -0
  282. package/lib/Spinner-BSk0ImmP.js.map +1 -0
  283. package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
  284. package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
  285. package/lib/assets/index-BPdJm2ty.js +1 -0
  286. package/lib/assets/index-BPdJm2ty.js.map +1 -0
  287. package/lib/assets/{worker-BCcpCNJ7.js → worker-BjPv-hjP.js} +10742 -10318
  288. package/lib/assets/worker-BjPv-hjP.js.map +1 -0
  289. package/lib/context-_fYfJFgk.js +14 -0
  290. package/lib/context-_fYfJFgk.js.map +1 -0
  291. package/lib/hook-CGFJQf_n.js +77 -0
  292. package/lib/hook-CGFJQf_n.js.map +1 -0
  293. package/lib/index-CXXn0D4E.js +412 -0
  294. package/lib/index-CXXn0D4E.js.map +1 -0
  295. package/lib/index-DSZ4Cj5q.js +725 -0
  296. package/lib/index-DSZ4Cj5q.js.map +1 -0
  297. package/lib/index-pI9JkN46.js +4765 -0
  298. package/lib/index-pI9JkN46.js.map +1 -0
  299. package/lib/jsx-runtime-CJZJivg2.js +1526 -0
  300. package/lib/jsx-runtime-CJZJivg2.js.map +1 -0
  301. package/lib/prism-bash.min-DadFsM4Z.js +1 -0
  302. package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
  303. package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
  304. package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
  305. package/lib/prism-java.min-d5iT_mOd.js +1 -0
  306. package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
  307. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  308. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  309. package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
  310. package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
  311. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  312. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  313. package/lib/prism-php.min-o7FpoMP_.js +1 -0
  314. package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
  315. package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
  316. package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
  317. package/lib/router-CBw2vqJE.js +2973 -0
  318. package/lib/router-CBw2vqJE.js.map +1 -0
  319. package/lib/slugify-CiPVjteN.js +28 -0
  320. package/lib/slugify-CiPVjteN.js.map +1 -0
  321. package/lib/state-DKdaQzvh.js +288 -0
  322. package/lib/state-DKdaQzvh.js.map +1 -0
  323. package/lib/urql-DMlBWUKL.js +1 -0
  324. package/lib/urql-DMlBWUKL.js.map +1 -0
  325. package/lib/util-_jwUlTBU.js +41 -0
  326. package/lib/util-_jwUlTBU.js.map +1 -0
  327. package/lib/zudoku.auth-auth0.js +3 -1
  328. package/lib/zudoku.auth-auth0.js.map +1 -0
  329. package/lib/zudoku.auth-clerk.js +11 -8
  330. package/lib/zudoku.auth-clerk.js.map +1 -0
  331. package/lib/zudoku.auth-openid.js +8 -4
  332. package/lib/zudoku.auth-openid.js.map +1 -0
  333. package/lib/zudoku.components.js +806 -451
  334. package/lib/zudoku.components.js.map +1 -0
  335. package/lib/zudoku.openapi-worker.js +15032 -146
  336. package/lib/zudoku.openapi-worker.js.map +1 -0
  337. package/lib/zudoku.plugin-api-keys.js +302 -0
  338. package/lib/zudoku.plugin-api-keys.js.map +1 -0
  339. package/lib/zudoku.plugin-markdown.js +49 -0
  340. package/lib/zudoku.plugin-markdown.js.map +1 -0
  341. package/lib/zudoku.plugin-openapi.js +10 -0
  342. package/lib/zudoku.plugin-openapi.js.map +1 -0
  343. package/lib/zudoku.plugin-redirect.js +11 -0
  344. package/lib/zudoku.plugin-redirect.js.map +1 -0
  345. package/package.json +37 -15
  346. package/src/app/App.tsx +0 -40
  347. package/src/app/demo-cdn.html +26 -0
  348. package/src/app/demo.html +18 -0
  349. package/src/app/demo.tsx +40 -0
  350. package/src/app/entry.client.tsx +47 -0
  351. package/src/app/entry.server.tsx +158 -0
  352. package/src/app/main.css +74 -0
  353. package/src/app/main.tsx +71 -15
  354. package/src/app/standalone.html +20 -0
  355. package/src/app/standalone.tsx +46 -0
  356. package/src/app/tailwind.ts +2 -6
  357. package/src/app/zudoku-manifest.ts +22 -0
  358. package/src/lib/authentication/Callback.tsx +1 -1
  359. package/src/lib/authentication/authentication.ts +2 -5
  360. package/src/lib/authentication/hook.ts +1 -0
  361. package/src/lib/authentication/providers/auth0.tsx +1 -0
  362. package/src/lib/authentication/providers/clerk.tsx +3 -0
  363. package/src/lib/authentication/providers/openid.tsx +3 -1
  364. package/src/lib/authentication/state.ts +2 -0
  365. package/src/lib/components/Bootstrap.tsx +37 -0
  366. package/src/lib/components/DevPortal.tsx +41 -56
  367. package/src/lib/components/ErrorPage.tsx +28 -0
  368. package/src/lib/components/Header.tsx +13 -7
  369. package/src/lib/components/Heading.tsx +26 -7
  370. package/src/lib/components/InlineCode.tsx +19 -0
  371. package/src/lib/components/Layout.tsx +9 -7
  372. package/src/lib/components/NotFoundPage.tsx +39 -0
  373. package/src/lib/components/SyntaxHighlight.tsx +27 -19
  374. package/src/lib/components/TopNavigation.tsx +5 -0
  375. package/src/lib/components/context/DevPortalProvider.ts +2 -2
  376. package/src/lib/components/index.ts +21 -3
  377. package/src/lib/core/DevPortalContext.ts +47 -28
  378. package/src/lib/core/plugins.ts +10 -5
  379. package/src/lib/errors/ErrorAlert.tsx +21 -0
  380. package/src/lib/errors/RouterError.tsx +13 -0
  381. package/src/lib/errors/ServerError.tsx +5 -0
  382. package/src/lib/errors/TopLevelError.tsx +8 -0
  383. package/src/lib/oas/graphql/index.ts +2 -2
  384. package/src/lib/oas/parser/index.ts +41 -20
  385. package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -8
  386. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +139 -0
  387. package/src/lib/plugins/{api-key → api-keys}/index.tsx +22 -9
  388. package/src/lib/plugins/markdown/MdxPage.tsx +51 -34
  389. package/src/lib/plugins/markdown/Toc.tsx +1 -1
  390. package/src/lib/plugins/markdown/generateRoutes.tsx +16 -6
  391. package/src/lib/plugins/markdown/index.tsx +10 -7
  392. package/src/lib/plugins/openapi/OperationList.tsx +40 -4
  393. package/src/lib/plugins/openapi/OperationListItem.tsx +69 -42
  394. package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
  395. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
  396. package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +4 -4
  397. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
  398. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -1
  399. package/src/lib/plugins/openapi/Route.tsx +21 -0
  400. package/src/lib/plugins/openapi/SchemaListView.tsx +23 -192
  401. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
  402. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
  403. package/src/lib/plugins/openapi/Sidecar.tsx +15 -10
  404. package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
  405. package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
  406. package/src/lib/plugins/openapi/client/createServer.ts +33 -0
  407. package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
  408. package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
  409. package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
  410. package/src/lib/plugins/openapi/context.tsx +16 -0
  411. package/src/lib/plugins/openapi/index.tsx +59 -52
  412. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  413. package/src/lib/plugins/openapi/playground/Headers.tsx +60 -33
  414. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  415. package/src/lib/plugins/openapi/playground/Playground.tsx +158 -193
  416. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
  417. package/src/lib/plugins/openapi/playground/QueryParams.tsx +7 -2
  418. package/src/lib/plugins/openapi/playground/createUrl.ts +1 -1
  419. package/src/lib/plugins/openapi/util/prose.ts +7 -0
  420. package/src/lib/plugins/openapi-worker.ts +1 -1
  421. package/src/lib/plugins/redirect/index.tsx +3 -4
  422. package/src/lib/ui/Callout.tsx +4 -4
  423. package/src/lib/util/MdxComponents.tsx +6 -14
  424. package/src/lib/util/groupBy.ts +7 -12
  425. package/src/lib/util/logInit.ts +9 -0
  426. package/src/lib/util/objectEntries.ts +5 -0
  427. package/src/lib/util/renderIf.ts +4 -0
  428. package/dist/lib/components/Link.d.ts +0 -1
  429. package/dist/lib/components/Link.js +0 -2
  430. package/dist/lib/components/Link.js.map +0 -1
  431. package/dist/lib/components/Router.d.ts +0 -4
  432. package/dist/lib/components/Router.js +0 -20
  433. package/dist/lib/components/Router.js.map +0 -1
  434. package/dist/lib/core/helmet.d.ts +0 -4
  435. package/dist/lib/core/helmet.js +0 -5
  436. package/dist/lib/core/helmet.js.map +0 -1
  437. package/dist/lib/core/icons.d.ts +0 -1
  438. package/dist/lib/core/icons.js +0 -2
  439. package/dist/lib/core/icons.js.map +0 -1
  440. package/dist/lib/core/router.d.ts +0 -1
  441. package/dist/lib/core/router.js +0 -2
  442. package/dist/lib/core/router.js.map +0 -1
  443. package/dist/lib/plugins/api-key/CreateApiKey.d.ts +0 -5
  444. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  445. package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +0 -5
  446. package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -37
  447. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  448. package/dist/lib/plugins/api-key/index.js.map +0 -1
  449. package/dist/lib/plugins/index.d.ts +0 -4
  450. package/dist/lib/plugins/index.js +0 -5
  451. package/dist/lib/plugins/index.js.map +0 -1
  452. package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
  453. package/dist/lib/plugins/openapi/Select.js +0 -5
  454. package/dist/lib/plugins/openapi/Select.js.map +0 -1
  455. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
  456. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  457. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
  458. package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
  459. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
  460. package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
  461. package/dist/vite/common.d.ts +0 -1
  462. package/dist/vite/common.js +0 -5
  463. package/dist/vite/common.js.map +0 -1
  464. package/dist/vite/plugin-html.d.ts +0 -3
  465. package/dist/vite/plugin-html.js +0 -47
  466. package/dist/vite/plugin-html.js.map +0 -1
  467. package/dist/vite/plugin-openapi-worker.d.ts +0 -4
  468. package/dist/vite/plugin-openapi-worker.js +0 -28
  469. package/dist/vite/plugin-openapi-worker.js.map +0 -1
  470. package/lib/Spinner-DWHrSHMP.js +0 -8411
  471. package/lib/clerk-Wslx_mPo.js +0 -19685
  472. package/lib/index-DNx3xWa2.js +0 -3461
  473. package/lib/state-DfftBQ9X.js +0 -312
  474. package/lib/zudoku.plugins.js +0 -19873
  475. package/src/lib/components/Link.tsx +0 -1
  476. package/src/lib/components/Router.tsx +0 -28
  477. package/src/lib/core/helmet.ts +0 -5
  478. package/src/lib/core/icons.tsx +0 -1
  479. package/src/lib/core/router.tsx +0 -1
  480. package/src/lib/plugins/api-key/SettingsApiKeys.tsx +0 -122
  481. package/src/lib/plugins/index.ts +0 -4
  482. package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
  483. /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
@@ -1,651 +1,1041 @@
1
- var De = Object.defineProperty;
2
- var se = (t) => {
1
+ var $e = Object.defineProperty;
2
+ var ce = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Te = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var x = (t, e, s) => Te(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
7
- var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), m = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
- var F = (t, e, s, a) => ({
9
- set _(r) {
10
- u(t, e, r, s);
5
+ var Ve = (t, e, r) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var v = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r), ue = (t, e, r) => e.has(t) || ce("Cannot " + r);
7
+ var l = (t, e, r) => (ue(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? ce("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), d = (t, e, r, a) => (ue(t, e, "write to private field"), a ? a.call(t, r) : e.set(t, r), r);
8
+ var L = (t, e, r, a) => ({
9
+ set _(s) {
10
+ d(t, e, s, r);
11
11
  },
12
12
  get _() {
13
- return i(t, e, a);
13
+ return l(t, e, a);
14
14
  }
15
15
  });
16
- import { j as n, u as D, O as Ie } from "./index-DNx3xWa2.js";
17
- import { S as me, h as ge, Q as Se, n as p, m as ne, M as Ee, a as re, b as j, e as Fe, c as Re, d as He, f as Le, o as ie, r as oe, g as ze, i as le, p as ce, s as Ke, j as I, u as U, N as B, k as _e, l as Be, q as Ve, t as W, v as X, w as V, x as ve, y as Ue, z, R as xe, T as ye, C as be, A as We, B as Xe, D as $e, E as Ge, H as Je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, U as it, V as ot } from "./Spinner-DWHrSHMP.js";
18
- import { X as Bt, W as Vt } from "./Spinner-DWHrSHMP.js";
19
- import { memo as je, createContext as lt, useEffect as S, useRef as K, useState as ct, forwardRef as ht, Suspense as Pe, useMemo as L } from "react";
20
- import { c as ut } from "./state-DfftBQ9X.js";
21
- var y, de, dt = (de = class extends me {
16
+ import { c as U, d as Ye, R as Je, N as J, a as Xe, u as We, M as Ge, T as Ze, V as et, b as W, e as F, f as tt, C as rt, L as at } from "./Markdown-Dbzrtopg.js";
17
+ import { E as Ee, u as st, R as nt } from "./hook-CGFJQf_n.js";
18
+ import { j as n, d as it, u as T, O as ot } from "./jsx-runtime-CJZJivg2.js";
19
+ import { H as Pe, a as je, M as lt, A as ct, u as ut } from "./AnchorLink-CZUp-F0P.js";
20
+ import ht, { StrictMode as Se, createContext as Ne, Component as dt, createElement as he, isValidElement as ft, memo as Ce, useMemo as V, useEffect as I, Fragment as pt, useRef as K, useState as mt, forwardRef as gt, Suspense as vt } from "react";
21
+ import { g as G } from "./_commonjsHelpers-BVfed4GL.js";
22
+ import { r as yt } from "./router-CBw2vqJE.js";
23
+ import { S as Oe, h as Ae, Q as bt, n as g, m as de, a as fe, b as P, e as xt, c as wt, d as Et, f as Pt, o as pe, r as me, g as jt, i as ge, p as ve, s as St, u as Z, j as Nt, D as Ct, k as Ot, l as At } from "./DevPortalProvider-Do9oJqme.js";
24
+ import { M as Rt } from "./index-CXXn0D4E.js";
25
+ import { R as Re, T as ke, C as Me, S as kt } from "./Spinner-BSk0ImmP.js";
26
+ import { c as ee, i as X, j as De, a as Mt } from "./util-_jwUlTBU.js";
27
+ /**
28
+ * @license lucide-react v0.378.0 - ISC
29
+ *
30
+ * This source code is licensed under the ISC license.
31
+ * See the LICENSE file in the root directory of this source tree.
32
+ */
33
+ const _e = U("ChevronRight", [
34
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
35
+ ]);
36
+ /**
37
+ * @license lucide-react v0.378.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */
42
+ const Dt = U("ExternalLink", [
43
+ ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
44
+ ["path", { d: "M10 14 21 3", key: "gplh6r" }],
45
+ ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
46
+ ]);
47
+ /**
48
+ * @license lucide-react v0.378.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
52
+ */
53
+ const _t = U("MoonStar", [
54
+ ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
55
+ ["path", { d: "M20 3v4", key: "1olli1" }],
56
+ ["path", { d: "M22 5h-4", key: "1gvqau" }]
57
+ ]);
58
+ /**
59
+ * @license lucide-react v0.378.0 - ISC
60
+ *
61
+ * This source code is licensed under the ISC license.
62
+ * See the LICENSE file in the root directory of this source tree.
63
+ */
64
+ const Tt = U("Sun", [
65
+ ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
66
+ ["path", { d: "M12 2v2", key: "tus03m" }],
67
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
68
+ ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
69
+ ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
70
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
71
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
72
+ ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
73
+ ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
74
+ ]);
75
+ function Ft({ error: t }) {
76
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
77
+ }
78
+ var q = {};
79
+ const Qt = /* @__PURE__ */ G(yt), It = /* @__PURE__ */ G(it), qt = /* @__PURE__ */ G(Ye);
80
+ Object.defineProperty(q, "__esModule", { value: !0 });
81
+ var Ht = ht, E = Qt, te = It, j = qt;
82
+ function Lt(t) {
83
+ if (t && t.__esModule) return t;
84
+ var e = /* @__PURE__ */ Object.create(null);
85
+ return t && Object.keys(t).forEach(function(r) {
86
+ if (r !== "default") {
87
+ var a = Object.getOwnPropertyDescriptor(t, r);
88
+ Object.defineProperty(e, r, a.get ? a : {
89
+ enumerable: !0,
90
+ get: function() {
91
+ return t[r];
92
+ }
93
+ });
94
+ }
95
+ }), e.default = t, Object.freeze(e);
96
+ }
97
+ var x = /* @__PURE__ */ Lt(Ht);
98
+ function Bt({
99
+ basename: t,
100
+ children: e,
101
+ location: r = "/",
102
+ future: a
103
+ }) {
104
+ typeof r == "string" && (r = j.parsePath(r));
105
+ let s = E.Action.Pop, o = {
106
+ pathname: r.pathname || "/",
107
+ search: r.search || "",
108
+ hash: r.hash || "",
109
+ state: r.state != null ? r.state : null,
110
+ key: r.key || "default"
111
+ }, i = Te();
112
+ return /* @__PURE__ */ x.createElement(j.Router, {
113
+ basename: t,
114
+ children: e,
115
+ location: o,
116
+ navigationType: s,
117
+ navigator: i,
118
+ future: a,
119
+ static: !0
120
+ });
121
+ }
122
+ function zt({
123
+ context: t,
124
+ router: e,
125
+ hydrate: r = !0,
126
+ nonce: a
127
+ }) {
128
+ e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
129
+ let s = {
130
+ router: e,
131
+ navigator: Te(),
132
+ static: !0,
133
+ staticContext: t,
134
+ basename: t.basename || "/"
135
+ }, o = /* @__PURE__ */ new Map(), i = "";
136
+ if (r !== !1) {
137
+ let u = {
138
+ loaderData: t.loaderData,
139
+ actionData: t.actionData,
140
+ errors: Kt(t.errors)
141
+ };
142
+ i = `window.__staticRouterHydrationData = JSON.parse(${Wt(JSON.stringify(JSON.stringify(u)))});`;
143
+ }
144
+ let {
145
+ state: c
146
+ } = s.router;
147
+ return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterContext.Provider, {
148
+ value: s
149
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterStateContext.Provider, {
150
+ value: c
151
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_FetchersContext.Provider, {
152
+ value: o
153
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_ViewTransitionContext.Provider, {
154
+ value: {
155
+ isTransitioning: !1
156
+ }
157
+ }, /* @__PURE__ */ x.createElement(j.Router, {
158
+ basename: s.basename,
159
+ location: c.location,
160
+ navigationType: c.historyAction,
161
+ navigator: s.navigator,
162
+ static: s.static,
163
+ future: {
164
+ v7_relativeSplatPath: e.future.v7_relativeSplatPath
165
+ }
166
+ }, /* @__PURE__ */ x.createElement(Ut, {
167
+ routes: e.routes,
168
+ future: e.future,
169
+ state: c
170
+ })))))), i ? /* @__PURE__ */ x.createElement("script", {
171
+ suppressHydrationWarning: !0,
172
+ nonce: a,
173
+ dangerouslySetInnerHTML: {
174
+ __html: i
175
+ }
176
+ }) : null);
177
+ }
178
+ function Ut({
179
+ routes: t,
180
+ future: e,
181
+ state: r
182
+ }) {
183
+ return te.UNSAFE_useRoutesImpl(t, void 0, r, e);
184
+ }
185
+ function Kt(t) {
186
+ if (!t) return null;
187
+ let e = Object.entries(t), r = {};
188
+ for (let [a, s] of e)
189
+ E.isRouteErrorResponse(s) ? r[a] = {
190
+ ...s,
191
+ __type: "RouteErrorResponse"
192
+ } : s instanceof Error ? r[a] = {
193
+ message: s.message,
194
+ __type: "Error",
195
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
196
+ // can re-create the same type during hydration.
197
+ ...s.name !== "Error" ? {
198
+ __subType: s.name
199
+ } : {}
200
+ } : r[a] = s;
201
+ return r;
202
+ }
203
+ function Te() {
204
+ return {
205
+ createHref: Fe,
206
+ encodeLocation: Qe,
207
+ push(t) {
208
+ throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)})\` somewhere in your app.`);
209
+ },
210
+ replace(t) {
211
+ throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)}, { replace: true })\` somewhere in your app.`);
212
+ },
213
+ go(t) {
214
+ throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${t})\` somewhere in your app.`);
215
+ },
216
+ back() {
217
+ throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
218
+ },
219
+ forward() {
220
+ throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
221
+ }
222
+ };
223
+ }
224
+ function $t(t, e) {
225
+ return E.createStaticHandler(t, {
226
+ ...e,
227
+ mapRouteProperties: te.UNSAFE_mapRouteProperties
228
+ });
229
+ }
230
+ function Vt(t, e, r = {}) {
231
+ let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t, te.UNSAFE_mapRouteProperties, void 0, a), o = e.matches.map((c) => {
232
+ let u = a[c.route.id] || c.route;
233
+ return {
234
+ ...c,
235
+ route: u
236
+ };
237
+ }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
238
+ return {
239
+ get basename() {
240
+ return e.basename;
241
+ },
242
+ get future() {
243
+ var c, u;
244
+ return {
245
+ v7_fetcherPersist: !1,
246
+ v7_normalizeFormMethod: !1,
247
+ v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
248
+ v7_prependBasename: !1,
249
+ v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
250
+ unstable_skipActionErrorRevalidation: !1
251
+ };
252
+ },
253
+ get state() {
254
+ return {
255
+ historyAction: E.Action.Pop,
256
+ location: e.location,
257
+ matches: o,
258
+ loaderData: e.loaderData,
259
+ actionData: e.actionData,
260
+ errors: e.errors,
261
+ initialized: !0,
262
+ navigation: E.IDLE_NAVIGATION,
263
+ restoreScrollPosition: null,
264
+ preventScrollReset: !1,
265
+ revalidation: "idle",
266
+ fetchers: /* @__PURE__ */ new Map(),
267
+ blockers: /* @__PURE__ */ new Map()
268
+ };
269
+ },
270
+ get routes() {
271
+ return s;
272
+ },
273
+ get window() {
274
+ },
275
+ initialize() {
276
+ throw i("initialize");
277
+ },
278
+ subscribe() {
279
+ throw i("subscribe");
280
+ },
281
+ enableScrollRestoration() {
282
+ throw i("enableScrollRestoration");
283
+ },
284
+ navigate() {
285
+ throw i("navigate");
286
+ },
287
+ fetch() {
288
+ throw i("fetch");
289
+ },
290
+ revalidate() {
291
+ throw i("revalidate");
292
+ },
293
+ createHref: Fe,
294
+ encodeLocation: Qe,
295
+ getFetcher() {
296
+ return E.IDLE_FETCHER;
297
+ },
298
+ deleteFetcher() {
299
+ throw i("deleteFetcher");
300
+ },
301
+ dispose() {
302
+ throw i("dispose");
303
+ },
304
+ getBlocker() {
305
+ return E.IDLE_BLOCKER;
306
+ },
307
+ deleteBlocker() {
308
+ throw i("deleteBlocker");
309
+ },
310
+ patchRoutes() {
311
+ throw i("patchRoutes");
312
+ },
313
+ _internalFetchControllers: /* @__PURE__ */ new Map(),
314
+ _internalActiveDeferreds: /* @__PURE__ */ new Map(),
315
+ _internalSetRoutes() {
316
+ throw i("_internalSetRoutes");
317
+ }
318
+ };
319
+ }
320
+ function Fe(t) {
321
+ return typeof t == "string" ? t : j.createPath(t);
322
+ }
323
+ function Qe(t) {
324
+ let e = typeof t == "string" ? t : j.createPath(t);
325
+ e = e.replace(/ $/, "%20");
326
+ let r = Yt.test(e) ? new URL(e) : new URL(e, "http://localhost");
327
+ return {
328
+ pathname: r.pathname,
329
+ search: r.search,
330
+ hash: r.hash
331
+ };
332
+ }
333
+ const Yt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Jt = {
334
+ "&": "\\u0026",
335
+ ">": "\\u003e",
336
+ "<": "\\u003c",
337
+ "\u2028": "\\u2028",
338
+ "\u2029": "\\u2029"
339
+ }, Xt = /[&><\u2028\u2029]/g;
340
+ function Wt(t) {
341
+ return t.replace(Xt, (e) => Jt[e]);
342
+ }
343
+ q.StaticRouter = Bt;
344
+ var Gt = q.StaticRouterProvider = zt;
345
+ q.createStaticHandler = $t;
346
+ q.createStaticRouter = Vt;
347
+ const Zt = ({
348
+ router: t
349
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), er = ({
350
+ router: t,
351
+ context: e,
352
+ helmetContext: r
353
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { context: r, children: /* @__PURE__ */ n.jsx(Gt, { router: t, context: e }) }) });
354
+ var w, be, tr = (be = class extends Oe {
22
355
  constructor(e = {}) {
23
356
  super();
24
- m(this, y);
25
- this.config = e, u(this, y, /* @__PURE__ */ new Map());
357
+ y(this, w);
358
+ this.config = e, d(this, w, /* @__PURE__ */ new Map());
26
359
  }
27
- build(e, s, a) {
28
- const r = s.queryKey, o = s.queryHash ?? ge(r, s);
29
- let l = this.get(o);
30
- return l || (l = new Se({
360
+ build(e, r, a) {
361
+ const s = r.queryKey, o = r.queryHash ?? Ae(s, r);
362
+ let i = this.get(o);
363
+ return i || (i = new bt({
31
364
  cache: this,
32
- queryKey: r,
365
+ queryKey: s,
33
366
  queryHash: o,
34
- options: e.defaultQueryOptions(s),
367
+ options: e.defaultQueryOptions(r),
35
368
  state: a,
36
- defaultOptions: e.getQueryDefaults(r)
37
- }), this.add(l)), l;
369
+ defaultOptions: e.getQueryDefaults(s)
370
+ }), this.add(i)), i;
38
371
  }
39
372
  add(e) {
40
- i(this, y).has(e.queryHash) || (i(this, y).set(e.queryHash, e), this.notify({
373
+ l(this, w).has(e.queryHash) || (l(this, w).set(e.queryHash, e), this.notify({
41
374
  type: "added",
42
375
  query: e
43
376
  }));
44
377
  }
45
378
  remove(e) {
46
- const s = i(this, y).get(e.queryHash);
47
- s && (e.destroy(), s === e && i(this, y).delete(e.queryHash), this.notify({ type: "removed", query: e }));
379
+ const r = l(this, w).get(e.queryHash);
380
+ r && (e.destroy(), r === e && l(this, w).delete(e.queryHash), this.notify({ type: "removed", query: e }));
48
381
  }
49
382
  clear() {
50
- p.batch(() => {
383
+ g.batch(() => {
51
384
  this.getAll().forEach((e) => {
52
385
  this.remove(e);
53
386
  });
54
387
  });
55
388
  }
56
389
  get(e) {
57
- return i(this, y).get(e);
390
+ return l(this, w).get(e);
58
391
  }
59
392
  getAll() {
60
- return [...i(this, y).values()];
393
+ return [...l(this, w).values()];
61
394
  }
62
395
  find(e) {
63
- const s = { exact: !0, ...e };
396
+ const r = { exact: !0, ...e };
64
397
  return this.getAll().find(
65
- (a) => ne(s, a)
398
+ (a) => de(r, a)
66
399
  );
67
400
  }
68
401
  findAll(e = {}) {
69
- const s = this.getAll();
70
- return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
402
+ const r = this.getAll();
403
+ return Object.keys(e).length > 0 ? r.filter((a) => de(e, a)) : r;
71
404
  }
72
405
  notify(e) {
73
- p.batch(() => {
74
- this.listeners.forEach((s) => {
75
- s(e);
406
+ g.batch(() => {
407
+ this.listeners.forEach((r) => {
408
+ r(e);
76
409
  });
77
410
  });
78
411
  }
79
412
  onFocus() {
80
- p.batch(() => {
413
+ g.batch(() => {
81
414
  this.getAll().forEach((e) => {
82
415
  e.onFocus();
83
416
  });
84
417
  });
85
418
  }
86
419
  onOnline() {
87
- p.batch(() => {
420
+ g.batch(() => {
88
421
  this.getAll().forEach((e) => {
89
422
  e.onOnline();
90
423
  });
91
424
  });
92
425
  }
93
- }, y = new WeakMap(), de), f, T, fe, ft = (fe = class extends me {
426
+ }, w = new WeakMap(), be), m, Q, xe, rr = (xe = class extends Oe {
94
427
  constructor(e = {}) {
95
428
  super();
96
- m(this, f);
97
- m(this, T);
98
- this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, T, Date.now());
429
+ y(this, m);
430
+ y(this, Q);
431
+ this.config = e, d(this, m, /* @__PURE__ */ new Map()), d(this, Q, Date.now());
99
432
  }
100
- build(e, s, a) {
101
- const r = new Ee({
433
+ build(e, r, a) {
434
+ const s = new Rt({
102
435
  mutationCache: this,
103
- mutationId: ++F(this, T)._,
104
- options: e.defaultMutationOptions(s),
436
+ mutationId: ++L(this, Q)._,
437
+ options: e.defaultMutationOptions(r),
105
438
  state: a
106
439
  });
107
- return this.add(r), r;
440
+ return this.add(s), s;
108
441
  }
109
442
  add(e) {
110
- const s = R(e), a = i(this, f).get(s) ?? [];
111
- a.push(e), i(this, f).set(s, a), this.notify({ type: "added", mutation: e });
443
+ const r = B(e), a = l(this, m).get(r) ?? [];
444
+ a.push(e), l(this, m).set(r, a), this.notify({ type: "added", mutation: e });
112
445
  }
113
446
  remove(e) {
114
447
  var a;
115
- const s = R(e);
116
- if (i(this, f).has(s)) {
117
- const r = (a = i(this, f).get(s)) == null ? void 0 : a.filter((o) => o !== e);
118
- r && (r.length === 0 ? i(this, f).delete(s) : i(this, f).set(s, r));
448
+ const r = B(e);
449
+ if (l(this, m).has(r)) {
450
+ const s = (a = l(this, m).get(r)) == null ? void 0 : a.filter((o) => o !== e);
451
+ s && (s.length === 0 ? l(this, m).delete(r) : l(this, m).set(r, s));
119
452
  }
120
453
  this.notify({ type: "removed", mutation: e });
121
454
  }
122
455
  canRun(e) {
123
456
  var a;
124
- const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
125
- return !s || s === e;
457
+ const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
458
+ return !r || r === e;
126
459
  }
127
460
  runNext(e) {
128
461
  var a;
129
- const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
130
- return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
462
+ const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
463
+ return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
131
464
  }
132
465
  clear() {
133
- p.batch(() => {
466
+ g.batch(() => {
134
467
  this.getAll().forEach((e) => {
135
468
  this.remove(e);
136
469
  });
137
470
  });
138
471
  }
139
472
  getAll() {
140
- return [...i(this, f).values()].flat();
473
+ return [...l(this, m).values()].flat();
141
474
  }
142
475
  find(e) {
143
- const s = { exact: !0, ...e };
476
+ const r = { exact: !0, ...e };
144
477
  return this.getAll().find(
145
- (a) => re(s, a)
478
+ (a) => fe(r, a)
146
479
  );
147
480
  }
148
481
  findAll(e = {}) {
149
- return this.getAll().filter((s) => re(e, s));
482
+ return this.getAll().filter((r) => fe(e, r));
150
483
  }
151
484
  notify(e) {
152
- p.batch(() => {
153
- this.listeners.forEach((s) => {
154
- s(e);
485
+ g.batch(() => {
486
+ this.listeners.forEach((r) => {
487
+ r(e);
155
488
  });
156
489
  });
157
490
  }
158
491
  resumePausedMutations() {
159
- const e = this.getAll().filter((s) => s.state.isPaused);
160
- return p.batch(
492
+ const e = this.getAll().filter((r) => r.state.isPaused);
493
+ return g.batch(
161
494
  () => Promise.all(
162
- e.map((s) => s.continue().catch(j))
495
+ e.map((r) => r.continue().catch(P))
163
496
  )
164
497
  );
165
498
  }
166
- }, f = new WeakMap(), T = new WeakMap(), fe);
167
- function R(t) {
499
+ }, m = new WeakMap(), Q = new WeakMap(), xe);
500
+ function B(t) {
168
501
  var e;
169
502
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
170
503
  }
171
- function pt(t) {
504
+ function ar(t) {
172
505
  return {
173
- onFetch: (e, s) => {
506
+ onFetch: (e, r) => {
174
507
  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", {
508
+ var re, ae, se, ne, ie;
509
+ const s = e.options, o = (se = (ae = (re = e.fetchOptions) == null ? void 0 : re.meta) == null ? void 0 : ae.fetchMore) == null ? void 0 : se.direction, i = ((ne = e.state.data) == null ? void 0 : ne.pages) || [], c = ((ie = e.state.data) == null ? void 0 : ie.pageParams) || [], u = { pages: [], pageParams: [] };
510
+ let f = !1;
511
+ const p = (b) => {
512
+ Object.defineProperty(b, "signal", {
180
513
  enumerable: !0,
181
- get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
182
- b = !0;
514
+ get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
515
+ f = !0;
183
516
  }), e.signal)
184
517
  });
185
- }, Qe = Fe(e.options, e.fetchOptions), _ = async (v, P, O) => {
186
- if (b)
518
+ }, Ue = xt(e.options, e.fetchOptions), $ = async (b, S, A) => {
519
+ if (f)
187
520
  return Promise.reject();
188
- if (P == null && v.pages.length)
189
- return Promise.resolve(v);
190
- const E = {
521
+ if (S == null && b.pages.length)
522
+ return Promise.resolve(b);
523
+ const H = {
191
524
  queryKey: e.queryKey,
192
- pageParam: P,
193
- direction: O ? "backward" : "forward",
525
+ pageParam: S,
526
+ direction: A ? "backward" : "forward",
194
527
  meta: e.options.meta
195
528
  };
196
- d(E);
197
- const qe = await Qe(
198
- E
199
- ), { maxPages: ee } = e.options, te = O ? Re : He;
529
+ p(H);
530
+ const Ke = await Ue(
531
+ H
532
+ ), { maxPages: oe } = e.options, le = A ? wt : Et;
200
533
  return {
201
- pages: te(v.pages, qe, ee),
202
- pageParams: te(v.pageParams, P, ee)
534
+ pages: le(b.pages, Ke, oe),
535
+ pageParams: le(b.pageParams, S, oe)
203
536
  };
204
537
  };
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);
538
+ let R;
539
+ if (o && i.length) {
540
+ const b = o === "backward", S = b ? sr : ye, A = {
541
+ pages: i,
542
+ pageParams: c
543
+ }, H = S(s, A);
544
+ R = await $(A, H, b);
212
545
  } else {
213
- C = await _(
214
- g,
215
- h[0] ?? r.initialPageParam
546
+ R = await $(
547
+ u,
548
+ c[0] ?? s.initialPageParam
216
549
  );
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);
550
+ const b = t ?? i.length;
551
+ for (let S = 1; S < b; S++) {
552
+ const A = ye(s, R);
553
+ R = await $(R, A);
221
554
  }
222
555
  }
223
- return C;
556
+ return R;
224
557
  };
225
558
  e.options.persister ? e.fetchFn = () => {
226
- var r, o;
227
- return (o = (r = e.options).persister) == null ? void 0 : o.call(
228
- r,
559
+ var s, o;
560
+ return (o = (s = e.options).persister) == null ? void 0 : o.call(
561
+ s,
229
562
  a,
230
563
  {
231
564
  queryKey: e.queryKey,
232
565
  meta: e.options.meta,
233
566
  signal: e.signal
234
567
  },
235
- s
568
+ r
236
569
  );
237
570
  } : e.fetchFn = a;
238
571
  }
239
572
  };
240
573
  }
241
- function he(t, { pages: e, pageParams: s }) {
574
+ function ye(t, { pages: e, pageParams: r }) {
242
575
  const a = e.length - 1;
243
576
  return t.getNextPageParam(
244
577
  e[a],
245
578
  e,
246
- s[a],
247
- s
579
+ r[a],
580
+ r
248
581
  );
249
582
  }
250
- function mt(t, { pages: e, pageParams: s }) {
583
+ function sr(t, { pages: e, pageParams: r }) {
251
584
  var a;
252
585
  return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
253
586
  t,
254
587
  e[0],
255
588
  e,
256
- s[0],
257
- s
589
+ r[0],
590
+ r
258
591
  );
259
592
  }
260
- var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
593
+ var h, N, C, k, M, O, D, _, we, nr = (we = class {
261
594
  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);
595
+ y(this, h);
596
+ y(this, N);
597
+ y(this, C);
598
+ y(this, k);
599
+ y(this, M);
600
+ y(this, O);
601
+ y(this, D);
602
+ y(this, _);
603
+ d(this, h, t.queryCache || new tr()), d(this, N, t.mutationCache || new rr()), d(this, C, t.defaultOptions || {}), d(this, k, /* @__PURE__ */ new Map()), d(this, M, /* @__PURE__ */ new Map()), d(this, O, 0);
271
604
  }
272
605
  mount() {
273
- F(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
274
- t && (await this.resumePausedMutations(), i(this, c).onFocus());
275
- })), u(this, q, ie.subscribe(async (t) => {
276
- t && (await this.resumePausedMutations(), i(this, c).onOnline());
606
+ L(this, O)._++, l(this, O) === 1 && (d(this, D, Pt.subscribe(async (t) => {
607
+ t && (await this.resumePausedMutations(), l(this, h).onFocus());
608
+ })), d(this, _, pe.subscribe(async (t) => {
609
+ t && (await this.resumePausedMutations(), l(this, h).onOnline());
277
610
  })));
278
611
  }
279
612
  unmount() {
280
613
  var t, e;
281
- F(this, k)._--, i(this, k) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, q)) == null || e.call(this), u(this, q, void 0));
614
+ L(this, O)._--, l(this, O) === 0 && ((t = l(this, D)) == null || t.call(this), d(this, D, void 0), (e = l(this, _)) == null || e.call(this), d(this, _, void 0));
282
615
  }
283
616
  isFetching(t) {
284
- return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
617
+ return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
285
618
  }
286
619
  isMutating(t) {
287
- return i(this, w).findAll({ ...t, status: "pending" }).length;
620
+ return l(this, N).findAll({ ...t, status: "pending" }).length;
288
621
  }
289
622
  getQueryData(t) {
290
- var s;
623
+ var r;
291
624
  const e = this.defaultQueryOptions({ queryKey: t });
292
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state.data;
625
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state.data;
293
626
  }
294
627
  ensureQueryData(t) {
295
628
  const e = this.getQueryData(t.queryKey);
296
629
  if (e === void 0)
297
630
  return this.fetchQuery(t);
298
631
  {
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);
632
+ const r = this.defaultQueryOptions(t), a = l(this, h).build(this, r);
633
+ return t.revalidateIfStale && a.isStaleByTime(me(r.staleTime, a)) && this.prefetchQuery(r), Promise.resolve(e);
301
634
  }
302
635
  }
303
636
  getQueriesData(t) {
304
- return i(this, c).findAll(t).map(({ queryKey: e, state: s }) => {
305
- const a = s.data;
637
+ return l(this, h).findAll(t).map(({ queryKey: e, state: r }) => {
638
+ const a = r.data;
306
639
  return [e, a];
307
640
  });
308
641
  }
309
- setQueryData(t, e, s) {
310
- const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
642
+ setQueryData(t, e, r) {
643
+ const a = this.defaultQueryOptions({ queryKey: t }), s = l(this, h).get(
311
644
  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 });
645
+ ), o = s == null ? void 0 : s.state.data, i = jt(e, o);
646
+ if (i !== void 0)
647
+ return l(this, h).build(this, a).setData(i, { ...r, manual: !0 });
315
648
  }
316
- setQueriesData(t, e, s) {
317
- return p.batch(
318
- () => i(this, c).findAll(t).map(({ queryKey: a }) => [
649
+ setQueriesData(t, e, r) {
650
+ return g.batch(
651
+ () => l(this, h).findAll(t).map(({ queryKey: a }) => [
319
652
  a,
320
- this.setQueryData(a, e, s)
653
+ this.setQueryData(a, e, r)
321
654
  ])
322
655
  );
323
656
  }
324
657
  getQueryState(t) {
325
- var s;
658
+ var r;
326
659
  const e = this.defaultQueryOptions({ queryKey: t });
327
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state;
660
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state;
328
661
  }
329
662
  removeQueries(t) {
330
- const e = i(this, c);
331
- p.batch(() => {
332
- e.findAll(t).forEach((s) => {
333
- e.remove(s);
663
+ const e = l(this, h);
664
+ g.batch(() => {
665
+ e.findAll(t).forEach((r) => {
666
+ e.remove(r);
334
667
  });
335
668
  });
336
669
  }
337
670
  resetQueries(t, e) {
338
- const s = i(this, c), a = {
671
+ const r = l(this, h), a = {
339
672
  type: "active",
340
673
  ...t
341
674
  };
342
- return p.batch(() => (s.findAll(t).forEach((r) => {
343
- r.reset();
675
+ return g.batch(() => (r.findAll(t).forEach((s) => {
676
+ s.reset();
344
677
  }), this.refetchQueries(a, e)));
345
678
  }
346
679
  cancelQueries(t = {}, e = {}) {
347
- const s = { revert: !0, ...e }, a = p.batch(
348
- () => i(this, c).findAll(t).map((r) => r.cancel(s))
680
+ const r = { revert: !0, ...e }, a = g.batch(
681
+ () => l(this, h).findAll(t).map((s) => s.cancel(r))
349
682
  );
350
- return Promise.all(a).then(j).catch(j);
683
+ return Promise.all(a).then(P).catch(P);
351
684
  }
352
685
  invalidateQueries(t = {}, e = {}) {
353
- return p.batch(() => {
354
- if (i(this, c).findAll(t).forEach((a) => {
686
+ return g.batch(() => {
687
+ if (l(this, h).findAll(t).forEach((a) => {
355
688
  a.invalidate();
356
689
  }), t.refetchType === "none")
357
690
  return Promise.resolve();
358
- const s = {
691
+ const r = {
359
692
  ...t,
360
693
  type: t.refetchType ?? t.type ?? "active"
361
694
  };
362
- return this.refetchQueries(s, e);
695
+ return this.refetchQueries(r, e);
363
696
  });
364
697
  }
365
698
  refetchQueries(t = {}, e) {
366
- const s = {
699
+ const r = {
367
700
  ...e,
368
701
  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;
702
+ }, a = g.batch(
703
+ () => l(this, h).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
704
+ let o = s.fetch(void 0, r);
705
+ return r.throwOnError || (o = o.catch(P)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
373
706
  })
374
707
  );
375
- return Promise.all(a).then(j);
708
+ return Promise.all(a).then(P);
376
709
  }
377
710
  fetchQuery(t) {
378
711
  const e = this.defaultQueryOptions(t);
379
712
  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);
713
+ const r = l(this, h).build(this, e);
714
+ return r.isStaleByTime(
715
+ me(e.staleTime, r)
716
+ ) ? r.fetch(e) : Promise.resolve(r.state.data);
384
717
  }
385
718
  prefetchQuery(t) {
386
- return this.fetchQuery(t).then(j).catch(j);
719
+ return this.fetchQuery(t).then(P).catch(P);
387
720
  }
388
721
  fetchInfiniteQuery(t) {
389
- return t.behavior = pt(t.pages), this.fetchQuery(t);
722
+ return t.behavior = ar(t.pages), this.fetchQuery(t);
390
723
  }
391
724
  prefetchInfiniteQuery(t) {
392
- return this.fetchInfiniteQuery(t).then(j).catch(j);
725
+ return this.fetchInfiniteQuery(t).then(P).catch(P);
393
726
  }
394
727
  resumePausedMutations() {
395
- return ie.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
728
+ return pe.isOnline() ? l(this, N).resumePausedMutations() : Promise.resolve();
396
729
  }
397
730
  getQueryCache() {
398
- return i(this, c);
731
+ return l(this, h);
399
732
  }
400
733
  getMutationCache() {
401
- return i(this, w);
734
+ return l(this, N);
402
735
  }
403
736
  getDefaultOptions() {
404
- return i(this, N);
737
+ return l(this, C);
405
738
  }
406
739
  setDefaultOptions(t) {
407
- u(this, N, t);
740
+ d(this, C, t);
408
741
  }
409
742
  setQueryDefaults(t, e) {
410
- i(this, M).set(le(t), {
743
+ l(this, k).set(ge(t), {
411
744
  queryKey: t,
412
745
  defaultOptions: e
413
746
  });
414
747
  }
415
748
  getQueryDefaults(t) {
416
- const e = [...i(this, M).values()];
417
- let s = {};
749
+ const e = [...l(this, k).values()];
750
+ let r = {};
418
751
  return e.forEach((a) => {
419
- ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
420
- }), s;
752
+ ve(t, a.queryKey) && (r = { ...r, ...a.defaultOptions });
753
+ }), r;
421
754
  }
422
755
  setMutationDefaults(t, e) {
423
- i(this, A).set(le(t), {
756
+ l(this, M).set(ge(t), {
424
757
  mutationKey: t,
425
758
  defaultOptions: e
426
759
  });
427
760
  }
428
761
  getMutationDefaults(t) {
429
- const e = [...i(this, A).values()];
430
- let s = {};
762
+ const e = [...l(this, M).values()];
763
+ let r = {};
431
764
  return e.forEach((a) => {
432
- ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
433
- }), s;
765
+ ve(t, a.mutationKey) && (r = { ...r, ...a.defaultOptions });
766
+ }), r;
434
767
  }
435
768
  defaultQueryOptions(t) {
436
769
  if (t._defaulted)
437
770
  return t;
438
771
  const e = {
439
- ...i(this, N).queries,
772
+ ...l(this, C).queries,
440
773
  ...this.getQueryDefaults(t.queryKey),
441
774
  ...t,
442
775
  _defaulted: !0
443
776
  };
444
- return e.queryHash || (e.queryHash = ge(
777
+ return e.queryHash || (e.queryHash = Ae(
445
778
  e.queryKey,
446
779
  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;
780
+ )), 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 === St && (e.enabled = !1), e;
448
781
  }
449
782
  defaultMutationOptions(t) {
450
783
  return t != null && t._defaulted ? t : {
451
- ...i(this, N).mutations,
784
+ ...l(this, C).mutations,
452
785
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
453
786
  ...t,
454
787
  _defaulted: !0
455
788
  };
456
789
  }
457
790
  clear() {
458
- i(this, c).clear(), i(this, w).clear();
791
+ l(this, h).clear(), l(this, N).clear();
792
+ }
793
+ }, h = new WeakMap(), N = new WeakMap(), C = new WeakMap(), k = new WeakMap(), M = new WeakMap(), O = new WeakMap(), D = new WeakMap(), _ = new WeakMap(), we);
794
+ const ir = Ne(null), Y = {
795
+ didCatch: !1,
796
+ error: null
797
+ };
798
+ class or extends dt {
799
+ constructor(e) {
800
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Y;
801
+ }
802
+ static getDerivedStateFromError(e) {
803
+ return {
804
+ didCatch: !0,
805
+ error: e
806
+ };
459
807
  }
460
- }, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), M = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
461
- const we = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function", xt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = new gt(), yt = ut(() => ({}));
462
- class bt {
808
+ resetErrorBoundary() {
809
+ const {
810
+ error: e
811
+ } = this.state;
812
+ if (e !== null) {
813
+ for (var r, a, s = arguments.length, o = new Array(s), i = 0; i < s; i++)
814
+ o[i] = arguments[i];
815
+ (r = (a = this.props).onReset) === null || r === void 0 || r.call(a, {
816
+ args: o,
817
+ reason: "imperative-api"
818
+ }), this.setState(Y);
819
+ }
820
+ }
821
+ componentDidCatch(e, r) {
822
+ var a, s;
823
+ (a = (s = this.props).onError) === null || a === void 0 || a.call(s, e, r);
824
+ }
825
+ componentDidUpdate(e, r) {
826
+ const {
827
+ didCatch: a
828
+ } = this.state, {
829
+ resetKeys: s
830
+ } = this.props;
831
+ if (a && r.error !== null && lr(e.resetKeys, s)) {
832
+ var o, i;
833
+ (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
834
+ next: s,
835
+ prev: e.resetKeys,
836
+ reason: "keys"
837
+ }), this.setState(Y);
838
+ }
839
+ }
840
+ render() {
841
+ const {
842
+ children: e,
843
+ fallbackRender: r,
844
+ FallbackComponent: a,
845
+ fallback: s
846
+ } = this.props, {
847
+ didCatch: o,
848
+ error: i
849
+ } = this.state;
850
+ let c = e;
851
+ if (o) {
852
+ const u = {
853
+ error: i,
854
+ resetErrorBoundary: this.resetErrorBoundary
855
+ };
856
+ if (typeof r == "function")
857
+ c = r(u);
858
+ else if (a)
859
+ c = he(a, u);
860
+ else if (s === null || ft(s))
861
+ c = s;
862
+ else
863
+ throw i;
864
+ }
865
+ return he(ir.Provider, {
866
+ value: {
867
+ didCatch: o,
868
+ error: i,
869
+ resetErrorBoundary: this.resetErrorBoundary
870
+ }
871
+ }, c);
872
+ }
873
+ }
874
+ function lr() {
875
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
876
+ return t.length !== e.length || t.some((r, a) => !Object.is(r, e[a]));
877
+ }
878
+ const cr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", ur = (t) => "initialize" in t && typeof t.initialize == "function", hr = (t) => "getHead" in t && typeof t.getHead == "function", dr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ie = new nr();
879
+ class fr {
463
880
  constructor(e) {
464
- x(this, "plugins", []);
465
- x(this, "navigationPlugins");
466
- x(this, "navigation");
467
- x(this, "meta");
468
- x(this, "authentication");
469
- x(this, "state");
470
- x(this, "initialize", async () => {
471
- var e;
472
- this.plugins.filter(vt).forEach((s) => s.initialize(this)), (e = this.authentication) == null || e.initialize(this);
881
+ v(this, "plugins", []);
882
+ v(this, "navigation");
883
+ v(this, "meta");
884
+ v(this, "page");
885
+ v(this, "authentication");
886
+ v(this, "navigationPlugins");
887
+ v(this, "initialize", async () => {
888
+ await Promise.all([
889
+ this.plugins.filter(ur).map((e) => {
890
+ var r;
891
+ return (r = e.initialize) == null ? void 0 : r.call(e, this);
892
+ })
893
+ ]);
473
894
  });
474
- x(this, "invalidateCache", async (e) => {
475
- await Ne.invalidateQueries({ queryKey: e });
895
+ v(this, "invalidateCache", async (e) => {
896
+ await Ie.invalidateQueries({ queryKey: e });
476
897
  });
477
- x(this, "getApiIdentities", async () => (await Promise.all(
478
- this.plugins.filter(xt).map((s) => s.getIdentities(this))
898
+ v(this, "getApiIdentities", async () => (await Promise.all(
899
+ this.plugins.filter(dr).map((r) => r.getIdentities(this))
479
900
  )).flat());
480
- x(this, "getNavigation", async (e) => (await Promise.all(
901
+ v(this, "getNavigation", async (e) => (await Promise.all(
481
902
  this.navigationPlugins.map(
482
903
  async (a) => {
483
- var r;
484
- return (r = a.getNavigation) == null ? void 0 : r.call(a, e);
904
+ var s;
905
+ return (s = a.getNavigation) == null ? void 0 : s.call(a, e);
485
906
  }
486
907
  )
487
908
  )).flatMap((a) => a ?? []));
488
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(we), this.authentication = e.authentication, this.meta = e.meta, this.state = yt;
489
- }
490
- async signRequest(e) {
491
- if (!this.authentication)
492
- throw new Error("No authentication provider configured");
493
- const s = await this.authentication.getAccessToken();
494
- return e.headers.set("Authorization", `Bearer ${s}`), e;
909
+ v(this, "signRequest", async (e) => {
910
+ if (!this.authentication)
911
+ throw new Error("No authentication provider configured");
912
+ const r = await this.authentication.getAccessToken();
913
+ return e.headers.set("Authorization", `Bearer ${r}`), e;
914
+ });
915
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(cr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
495
916
  }
496
917
  }
497
- /**
498
- * @license lucide-react v0.378.0 - ISC
499
- *
500
- * This source code is licensed under the ISC license.
501
- * See the LICENSE file in the root directory of this source tree.
502
- */
503
- const ke = I("ChevronRight", [
504
- ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
505
- ]);
506
- /**
507
- * @license lucide-react v0.378.0 - ISC
508
- *
509
- * This source code is licensed under the ISC license.
510
- * See the LICENSE file in the root directory of this source tree.
511
- */
512
- const jt = I("ExternalLink", [
513
- ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
514
- ["path", { d: "M10 14 21 3", key: "gplh6r" }],
515
- ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
516
- ]);
517
- /**
518
- * @license lucide-react v0.378.0 - ISC
519
- *
520
- * This source code is licensed under the ISC license.
521
- * See the LICENSE file in the root directory of this source tree.
522
- */
523
- const Pt = I("MoonStar", [
524
- ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
525
- ["path", { d: "M20 3v4", key: "1olli1" }],
526
- ["path", { d: "M22 5h-4", key: "1gvqau" }]
527
- ]);
528
- /**
529
- * @license lucide-react v0.378.0 - ISC
530
- *
531
- * This source code is licensed under the ISC license.
532
- * See the LICENSE file in the root directory of this source tree.
533
- */
534
- const wt = I("Search", [
535
- ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
536
- ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
537
- ]);
538
- /**
539
- * @license lucide-react v0.378.0 - ISC
540
- *
541
- * This source code is licensed under the ISC license.
542
- * See the LICENSE file in the root directory of this source tree.
543
- */
544
- const Nt = I("Sun", [
545
- ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
546
- ["path", { d: "M12 2v2", key: "tus03m" }],
547
- ["path", { d: "M12 20v2", key: "1lh1kg" }],
548
- ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
549
- ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
550
- ["path", { d: "M2 12h2", key: "1t8f8n" }],
551
- ["path", { d: "M20 12h2", key: "1q8mjw" }],
552
- ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
553
- ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
554
- ]), kt = () => {
555
- const { navigation: t } = U();
556
- 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(
557
- B,
918
+ function pr({ error: t, resetErrorBoundary: e }) {
919
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
920
+ }
921
+ const mr = () => {
922
+ const { navigation: t } = Z();
923
+ return t.length <= 1 ? null : /* @__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(
924
+ J,
558
925
  {
559
- className: ({ isActive: s }) => _e(
926
+ className: ({ isActive: r }) => Xe(
560
927
  "block py-3.5 font-medium -mb-px border-b-2",
561
- s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
928
+ r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
562
929
  ),
563
930
  to: e.path,
564
931
  children: e.label
565
932
  }
566
933
  ) }, e.label)) }) });
567
- }, Oe = je(function() {
568
- const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ve(), { meta: g } = U(), b = e ? Pt : Nt;
934
+ }, qe = Ce(function() {
935
+ const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: c } = st(), { page: u } = Z(), f = e ? _t : Tt;
569
936
  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: [
570
937
  /* @__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: [
571
938
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
572
- (g == null ? void 0 : g.logo) && /* @__PURE__ */ n.jsx("img", { src: g.logo, alt: "My Dev Portal", className: "h-10" }),
573
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: g == null ? void 0 : g.headerTitle })
939
+ (u == null ? void 0 : u.logo) && /* @__PURE__ */ n.jsx("img", { src: u.logo, alt: u.pageTitle, className: "h-10" }),
940
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
574
941
  ] }),
575
942
  /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
576
- /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ n.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
577
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
578
- /* @__PURE__ */ n.jsx(wt, { size: 14 }),
579
- "Search"
580
- ] }),
581
- /* @__PURE__ */ n.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
582
- ] }) }),
943
+ /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
583
944
  /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
584
945
  o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
585
946
  "button",
586
947
  {
948
+ type: "button",
587
949
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
588
- onClick: h,
950
+ onClick: c,
589
951
  children: [
590
952
  "Logout ",
591
- r != null && r.email ? `(${r.email})` : null
953
+ s != null && s.email ? `(${s.email})` : null
592
954
  ]
593
955
  }
594
956
  ) : /* @__PURE__ */ n.jsx(
595
957
  "button",
596
958
  {
959
+ type: "button",
597
960
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
598
- onClick: l,
961
+ onClick: i,
599
962
  children: "Login"
600
963
  }
601
964
  ) }),
602
965
  /* @__PURE__ */ n.jsx(
603
966
  "button",
604
967
  {
968
+ type: "button",
969
+ "aria-label": e ? "Switch to light mode" : "Switch to dark mode",
605
970
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
606
- onClick: s,
607
- children: /* @__PURE__ */ n.jsx(b, { size: 18 })
971
+ onClick: r,
972
+ children: /* @__PURE__ */ n.jsx(f, { size: 18 })
608
973
  }
609
974
  )
610
975
  ] })
611
976
  ] })
612
977
  ] }),
613
- /* @__PURE__ */ n.jsx(kt, {})
978
+ /* @__PURE__ */ n.jsx(mr, {})
614
979
  ] }) });
615
- }), Ce = {
616
- Header: Oe
617
- }, Ot = lt(Ce), Ct = Ot.Provider, Mt = () => {
618
- const t = D(), { setActiveAnchor: e } = W();
619
- S(() => {
980
+ }), He = {
981
+ Header: qe
982
+ }, gr = Ne(He), vr = gr.Provider, yr = ({
983
+ children: t,
984
+ ...e
985
+ }) => {
986
+ var i;
987
+ const r = V(
988
+ () => ({ ...He, ...e.overrides }),
989
+ [e.overrides]
990
+ ), a = V(
991
+ () => ({ ...Ge, ...e.mdxComponents }),
992
+ [e.mdxComponents]
993
+ ), s = V(() => new fr(e), [e]);
994
+ I(() => {
995
+ s.initialize();
996
+ }, [s]);
997
+ const o = (i = e.plugins) == null ? void 0 : i.filter(hr).map((c, u) => {
998
+ var f;
999
+ return /* @__PURE__ */ n.jsx(pt, { children: (f = c.getHead) == null ? void 0 : f.call(c) }, u);
1000
+ });
1001
+ return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
1002
+ /* @__PURE__ */ n.jsx(je, { children: o }),
1003
+ /* @__PURE__ */ n.jsx(Ct, { value: s, children: /* @__PURE__ */ n.jsx(lt, { components: a, children: /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsx(vr, { value: r, children: /* @__PURE__ */ n.jsx(et, { children: t }) }) }) }) })
1004
+ ] });
1005
+ }, br = Ce(yr), Le = (t) => /* @__PURE__ */ n.jsx(or, { FallbackComponent: pr, children: /* @__PURE__ */ n.jsx(br, { ...t }) });
1006
+ Le.displayName = "DevPortal";
1007
+ const xr = () => {
1008
+ const t = T(), { setActiveAnchor: e } = W();
1009
+ I(() => {
620
1010
  if (!t.hash) return;
621
- const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
1011
+ const r = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(r));
622
1012
  if (a) {
623
1013
  requestAnimationFrame(() => {
624
- a.scrollIntoView(), requestIdleCallback(() => e(s));
1014
+ a.scrollIntoView(), requestIdleCallback(() => e(r));
625
1015
  });
626
1016
  return;
627
1017
  }
628
- const r = new MutationObserver((o, l) => {
629
- const h = document.getElementById(decodeURIComponent(s));
630
- h && (h.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
1018
+ const s = new MutationObserver((o, i) => {
1019
+ const c = document.getElementById(decodeURIComponent(r));
1020
+ c && (c.scrollIntoView(), requestIdleCallback(() => e(r)), i.disconnect());
631
1021
  });
632
- return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
1022
+ return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
633
1023
  }, [t.hash, e]);
634
- }, At = () => {
635
- const t = D(), e = K(t.pathname);
636
- S(() => {
1024
+ }, wr = () => {
1025
+ const t = T(), e = K(t.pathname);
1026
+ I(() => {
637
1027
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
638
1028
  }, [t.pathname]);
639
- }, Me = ({
1029
+ }, Be = ({
640
1030
  item: t,
641
1031
  defaultOpen: e,
642
- path: s
1032
+ path: r
643
1033
  }) => {
644
- const [a, r] = ct(e), o = D(), l = K(o.pathname);
645
- return S(() => {
646
- !a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
647
- }, [a, t, s, o.pathname]), [a, r];
648
- }, H = Xe(
1034
+ const [a, s] = mt(e), o = T(), i = K(o.pathname);
1035
+ return I(() => {
1036
+ !a && i.current !== o.pathname && s(ee(t, o.pathname, r)), i.current = o.pathname;
1037
+ }, [a, t, r, o.pathname]), [a, s];
1038
+ }, z = tt(
649
1039
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
650
1040
  {
651
1041
  variants: {
@@ -659,46 +1049,46 @@ const Nt = I("Sun", [
659
1049
  }
660
1050
  }
661
1051
  }
662
- ), Qt = "data-anchor", Ae = ({
1052
+ ), Er = "data-anchor", ze = ({
663
1053
  category: t,
664
1054
  item: e,
665
- activeAnchor: s,
1055
+ activeAnchor: r,
666
1056
  currentTopNavItem: a,
667
- basePath: r = ""
1057
+ basePath: s = ""
668
1058
  }) => {
669
- const o = V(e) ? ve(r, e.path) : "", l = D(), [h, g] = Me({
1059
+ const o = X(e) ? De(s, e.path) : "", i = T(), [c, u] = Be({
670
1060
  item: e,
671
1061
  path: o,
672
- defaultOpen: () => X(e, l.pathname, o)
1062
+ defaultOpen: () => ee(e, i.pathname, o)
673
1063
  });
674
- if (Ue(e)) {
675
- const d = z(
1064
+ if (Mt(e)) {
1065
+ const p = F(
676
1066
  "flex items-center gap-2",
677
- H({
678
- isActive: e.href === l.pathname
1067
+ z({
1068
+ isActive: e.href === i.pathname
679
1069
  })
680
1070
  );
681
1071
  return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
682
1072
  "a",
683
1073
  {
684
- className: d,
1074
+ className: p,
685
1075
  href: e.href,
686
1076
  target: "_blank",
687
1077
  rel: "noopener noreferrer",
688
1078
  children: [
689
1079
  e.label,
690
- /* @__PURE__ */ n.jsx(jt, { size: 14 })
1080
+ /* @__PURE__ */ n.jsx(Dt, { size: 14 })
691
1081
  ]
692
1082
  }
693
- ) : /* @__PURE__ */ n.jsx(B, { className: d, to: e.href, children: e.label });
1083
+ ) : /* @__PURE__ */ n.jsx(J, { className: p, to: e.href, children: e.label });
694
1084
  }
695
- const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
1085
+ const f = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
696
1086
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
697
1087
  e.icon,
698
1088
  typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
699
1089
  ] }),
700
1090
  e.children && /* @__PURE__ */ n.jsx(
701
- ke,
1091
+ _e,
702
1092
  {
703
1093
  size: 16,
704
1094
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
@@ -706,79 +1096,79 @@ const Nt = I("Sun", [
706
1096
  )
707
1097
  ] });
708
1098
  return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
709
- xe,
1099
+ Re,
710
1100
  {
711
- open: h,
712
- onOpenChange: () => g((d) => !d),
1101
+ open: c,
1102
+ onOpenChange: () => u((p) => !p),
713
1103
  className: "flex flex-col",
714
1104
  children: [
715
1105
  /* @__PURE__ */ n.jsx(
716
- ye,
1106
+ ke,
717
1107
  {
718
- className: z(
1108
+ className: F(
719
1109
  "group text-start",
720
- H({ isActive: !1 })
1110
+ z({ isActive: !1 })
721
1111
  ),
722
- children: b
1112
+ children: f
723
1113
  }
724
1114
  ),
725
- /* @__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(
726
- Ae,
1115
+ /* @__PURE__ */ n.jsx(Me, { 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((p) => /* @__PURE__ */ n.jsx(
1116
+ ze,
727
1117
  {
728
1118
  category: t,
729
- item: d,
730
- activeAnchor: s,
1119
+ item: p,
1120
+ activeAnchor: r,
731
1121
  currentTopNavItem: a,
732
1122
  basePath: o
733
1123
  },
734
- V(d) ? d.path : d.href
1124
+ X(p) ? p.path : p.href
735
1125
  )) }) })
736
1126
  ]
737
1127
  }
738
1128
  ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
739
- We,
1129
+ ct,
740
1130
  {
741
1131
  to: e.path,
742
- [Qt]: e.path,
743
- className: H({
744
- isActive: e.path.slice(1) === s,
1132
+ [Er]: e.path,
1133
+ className: z({
1134
+ isActive: e.path.slice(1) === r,
745
1135
  isMuted: e.muted
746
1136
  }),
747
- children: b
1137
+ children: f
748
1138
  }
749
1139
  ) : /* @__PURE__ */ n.jsx(
750
- B,
1140
+ J,
751
1141
  {
752
- className: ({ isActive: d }) => H({ isActive: d }),
1142
+ className: ({ isActive: p }) => z({ isActive: p }),
753
1143
  to: o,
754
- children: b
1144
+ children: f
755
1145
  }
756
1146
  ) });
757
- }, qt = ({
1147
+ }, Pr = ({
758
1148
  category: t
759
1149
  }) => {
760
- const { activeAnchor: e } = W(), s = $e(), a = D(), r = t.collapsible ?? !0, [o, l] = Me({
1150
+ const { activeAnchor: e } = W(), r = Ot(), a = T(), s = t.collapsible ?? !0, [o, i] = Be({
761
1151
  item: t,
762
- path: (s == null ? void 0 : s.path) ?? "",
763
- defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
1152
+ path: (r == null ? void 0 : r.path) ?? "",
1153
+ defaultOpen: () => !s || t.expanded || ee(t, a.pathname, (r == null ? void 0 : r.path) ?? "")
764
1154
  });
765
1155
  return /* @__PURE__ */ n.jsxs(
766
- xe,
1156
+ Re,
767
1157
  {
768
1158
  open: o,
769
- onOpenChange: () => l((h) => !h),
1159
+ onOpenChange: () => i((c) => !c),
770
1160
  children: [
771
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(ye, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
1161
+ t.label.length > 0 ? /* @__PURE__ */ n.jsx(ke, { asChild: s, disabled: !s, children: /* @__PURE__ */ n.jsxs(
772
1162
  "h5",
773
1163
  {
774
- className: z(
1164
+ className: F(
775
1165
  "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]",
776
- r ? "hover:bg-accent" : "cursor-auto"
1166
+ s ? "hover:bg-accent" : "cursor-auto"
777
1167
  ),
778
1168
  children: [
779
1169
  t.label,
780
- r && /* @__PURE__ */ n.jsx(
781
- ke,
1170
+ s && /* @__PURE__ */ n.jsx(
1171
+ _e,
782
1172
  {
783
1173
  className: "group-data-[state=open]:rotate-90 transition",
784
1174
  size: 16
@@ -787,123 +1177,88 @@ const Nt = I("Sun", [
787
1177
  ]
788
1178
  }
789
1179
  ) }) : "Endpoints",
790
- /* @__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(
791
- Ae,
1180
+ /* @__PURE__ */ n.jsx(Me, { 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((c) => /* @__PURE__ */ n.jsx(
1181
+ ze,
792
1182
  {
793
1183
  category: t,
794
- item: h,
1184
+ item: c,
795
1185
  activeAnchor: e,
796
- currentTopNavItem: s,
797
- basePath: ve(s == null ? void 0 : s.path, t.path)
1186
+ currentTopNavItem: r,
1187
+ basePath: De(r == null ? void 0 : r.path, t.path)
798
1188
  },
799
- V(h) ? h.path + h.label : h.href
1189
+ X(c) ? c.path + c.label : c.href
800
1190
  )) }) })
801
1191
  ]
802
1192
  },
803
1193
  t.label
804
1194
  );
805
- }, Dt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
1195
+ }, jr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
806
1196
  return /* @__PURE__ */ n.jsx(
807
1197
  "nav",
808
1198
  {
809
1199
  "data-navigation": String(a),
810
- className: z(
1200
+ className: F(
811
1201
  "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",
812
- s
1202
+ r
813
1203
  ),
814
- ref: r,
1204
+ ref: s,
815
1205
  children: e
816
1206
  }
817
1207
  );
818
- }), Tt = () => {
819
- const t = K(null), e = Ge();
1208
+ }), Sr = () => {
1209
+ const t = K(null), e = At();
820
1210
  return /* @__PURE__ */ n.jsx(
821
- Dt,
1211
+ jr,
822
1212
  {
823
1213
  ref: t,
824
1214
  pushMainContent: e.data.items.length > 0,
825
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(qt, { category: s }, s.label))
1215
+ children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Pr, { category: r }, r.label))
826
1216
  }
827
1217
  );
828
- }, ue = ({ children: t }) => {
829
- const e = D(), { setActiveAnchor: s } = W(), { meta: a } = U();
830
- Mt(), At();
831
- const r = K(e.pathname);
832
- return S(() => {
833
- e.pathname !== r.current && s(""), r.current = e.pathname;
834
- }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
835
- /* @__PURE__ */ n.jsxs(Je, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
836
- /* @__PURE__ */ n.jsx("title", { children: "Home" }),
1218
+ }, Nr = ({ children: t }) => {
1219
+ const e = T(), { setActiveAnchor: r } = W(), { meta: a } = Z();
1220
+ xr(), wr();
1221
+ const s = K(e.pathname);
1222
+ return I(() => {
1223
+ e.pathname !== s.current && r(""), s.current = e.pathname;
1224
+ }, [e.pathname, r]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1225
+ /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
837
1226
  (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
838
1227
  (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
839
1228
  ] }),
840
- /* @__PURE__ */ n.jsx(Oe, {}),
1229
+ /* @__PURE__ */ n.jsx(qe, {}),
841
1230
  /* @__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(
842
- Pe,
1231
+ vt,
843
1232
  {
844
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Ye, {}) }),
1233
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(kt, {}) }),
845
1234
  children: [
846
- /* @__PURE__ */ n.jsx(Tt, {}),
1235
+ /* @__PURE__ */ n.jsx(Sr, {}),
847
1236
  /* @__PURE__ */ n.jsx(
848
1237
  "main",
849
1238
  {
850
- className: `dark:border-white/10 translate-x-0 h-full
851
- lg:overflow-visible
852
- lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
853
- lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
854
- children: t ?? /* @__PURE__ */ n.jsx(Ie, {})
1239
+ className: F(
1240
+ "dark:border-white/10 translate-x-0 h-full",
1241
+ "lg:overflow-visible",
1242
+ "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1243
+ "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1244
+ ),
1245
+ children: t ?? /* @__PURE__ */ n.jsx(ot, {})
855
1246
  }
856
1247
  )
857
1248
  ]
858
1249
  }
859
1250
  ) })
860
1251
  ] });
861
- };
862
- function It({ plugins: t }) {
863
- const e = L(() => {
864
- const s = (t ?? []).flatMap(
865
- (a) => we(a) ? a.getRoutes() : []
866
- );
867
- return Ze([
868
- {
869
- path: "/",
870
- element: /* @__PURE__ */ n.jsx(ue, {}),
871
- errorElement: /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
872
- children: s
873
- }
874
- ]);
875
- }, [t]);
876
- return /* @__PURE__ */ n.jsx(et, { router: e });
877
- }
878
- const St = (t) => {
879
- const e = L(
880
- () => ({ ...Ce, ...t.overrides }),
881
- [t.overrides]
882
- ), s = L(
883
- () => ({ ...tt, ...t.mdxComponents }),
884
- [t.mdxComponents]
885
- ), a = L(() => new bt(t), [t]);
886
- return S(() => {
887
- a.initialize();
888
- }, [a]), /* @__PURE__ */ n.jsx(st, { client: Ne, children: /* @__PURE__ */ n.jsx(at, { children: /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Ct, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
889
- Pe,
890
- {
891
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
892
- children: /* @__PURE__ */ n.jsx(
893
- It,
894
- {
895
- plugins: [
896
- ...t.plugins ?? [],
897
- ...t.authentication ? [t.authentication] : []
898
- ]
899
- }
900
- )
901
- }
902
- ) }) }) }) }) }) }) });
903
- }, Et = je(St);
904
- Et.displayName = "DevPortal";
1252
+ }, qr = ut, Hr = rt, Lr = Le, Br = Nr, zr = at, Ur = nt, Kr = Ft, $r = Zt, Vr = er;
905
1253
  export {
906
- Et as DevPortal,
907
- Bt as Link,
908
- Vt as useMDXComponents
1254
+ $r as Bootstrap,
1255
+ Vr as BootstrapStatic,
1256
+ Hr as Callout,
1257
+ Lr as DevPortal,
1258
+ Br as Layout,
1259
+ zr as Link,
1260
+ Ur as RouterError,
1261
+ Kr as ServerError,
1262
+ qr as useMDXComponents
909
1263
  };
1264
+ //# sourceMappingURL=zudoku.components.js.map