zudoku 0.0.0-e614aaa → 0.0.0-e64b729

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 (1312) hide show
  1. package/README.md +1 -1
  2. package/cli.js +8 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/entry.client.js +36 -0
  7. package/dist/app/entry.client.js.map +1 -1
  8. package/dist/app/entry.server.d.ts +8 -6
  9. package/dist/app/entry.server.js +12 -8
  10. package/dist/app/entry.server.js.map +1 -1
  11. package/dist/app/env.d.ts +33 -0
  12. package/dist/app/env.js +29 -0
  13. package/dist/app/env.js.map +1 -0
  14. package/dist/app/main.js +22 -27
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/cli/build/handler.js +2 -1
  17. package/dist/cli/build/handler.js.map +1 -1
  18. package/dist/cli/cli.js +12 -1
  19. package/dist/cli/cli.js.map +1 -1
  20. package/dist/cli/cmds/dev.d.ts +1 -1
  21. package/dist/cli/cmds/dev.js.map +1 -1
  22. package/dist/cli/common/machine-id/lib.js +1 -0
  23. package/dist/cli/common/machine-id/lib.js.map +1 -1
  24. package/dist/cli/dev/handler.js +2 -1
  25. package/dist/cli/dev/handler.js.map +1 -1
  26. package/dist/cli/preview/handler.js +13 -15
  27. package/dist/cli/preview/handler.js.map +1 -1
  28. package/dist/config/config.d.ts +18 -11
  29. package/dist/config/file-exists.d.ts +1 -0
  30. package/dist/config/file-exists.js +5 -0
  31. package/dist/config/file-exists.js.map +1 -0
  32. package/dist/config/loader.d.ts +18 -17
  33. package/dist/config/loader.js +105 -120
  34. package/dist/config/loader.js.map +1 -1
  35. package/dist/config/validators/BuildSchema.d.ts +60 -0
  36. package/dist/config/validators/BuildSchema.js +31 -0
  37. package/dist/config/validators/BuildSchema.js.map +1 -0
  38. package/dist/config/validators/icon-types.d.ts +1 -1
  39. package/dist/config/validators/validate.d.ts +4117 -459
  40. package/dist/config/validators/validate.js +396 -11
  41. package/dist/config/validators/validate.js.map +1 -1
  42. package/dist/index.d.ts +5 -3
  43. package/dist/index.js +2 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/lib/authentication/AuthenticationPlugin.d.ts +7 -2
  46. package/dist/lib/authentication/AuthenticationPlugin.js +13 -1
  47. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  48. package/dist/lib/authentication/authentication.d.ts +3 -4
  49. package/dist/lib/authentication/components/CallbackHandler.js +5 -1
  50. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  51. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  52. package/dist/lib/authentication/components/SignIn.js +5 -2
  53. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  54. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  55. package/dist/lib/authentication/components/SignUp.js +4 -1
  56. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  57. package/dist/lib/authentication/hook.d.ts +1 -0
  58. package/dist/lib/authentication/hook.js +11 -1
  59. package/dist/lib/authentication/hook.js.map +1 -1
  60. package/dist/lib/authentication/providers/auth0.js +1 -1
  61. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  62. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  63. package/dist/lib/authentication/providers/clerk.js +92 -46
  64. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  65. package/dist/lib/authentication/providers/openid.d.ts +12 -17
  66. package/dist/lib/authentication/providers/openid.js +37 -42
  67. package/dist/lib/authentication/providers/openid.js.map +1 -1
  68. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  69. package/dist/lib/authentication/providers/supabase.js +115 -0
  70. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  71. package/dist/lib/authentication/state.d.ts +0 -26
  72. package/dist/lib/authentication/state.js +1 -16
  73. package/dist/lib/authentication/state.js.map +1 -1
  74. package/dist/lib/components/AnchorLink.d.ts +2 -2
  75. package/dist/lib/components/AnchorLink.js +5 -4
  76. package/dist/lib/components/AnchorLink.js.map +1 -1
  77. package/dist/lib/components/Autocomplete.js +1 -1
  78. package/dist/lib/components/Banner.js +1 -1
  79. package/dist/lib/components/Banner.js.map +1 -1
  80. package/dist/lib/components/Bootstrap.d.ts +2 -1
  81. package/dist/lib/components/Bootstrap.js +3 -2
  82. package/dist/lib/components/Bootstrap.js.map +1 -1
  83. package/dist/lib/components/BuildCheck.d.ts +4 -0
  84. package/dist/lib/components/BuildCheck.js +38 -0
  85. package/dist/lib/components/BuildCheck.js.map +1 -0
  86. package/dist/lib/components/ErrorPage.js +1 -1
  87. package/dist/lib/components/Footer.d.ts +1 -0
  88. package/dist/lib/components/Footer.js +32 -0
  89. package/dist/lib/components/Footer.js.map +1 -0
  90. package/dist/lib/components/Header.js +17 -9
  91. package/dist/lib/components/Header.js.map +1 -1
  92. package/dist/lib/components/Heading.d.ts +3 -3
  93. package/dist/lib/components/Heading.js +6 -1
  94. package/dist/lib/components/Heading.js.map +1 -1
  95. package/dist/lib/components/InlineCode.d.ts +2 -1
  96. package/dist/lib/components/InlineCode.js +2 -9
  97. package/dist/lib/components/InlineCode.js.map +1 -1
  98. package/dist/lib/components/Layout.js +9 -29
  99. package/dist/lib/components/Layout.js.map +1 -1
  100. package/dist/lib/components/Main.d.ts +2 -0
  101. package/dist/lib/components/Main.js +18 -0
  102. package/dist/lib/components/Main.js.map +1 -0
  103. package/dist/lib/components/Markdown.d.ts +3 -1
  104. package/dist/lib/components/Markdown.js +8 -14
  105. package/dist/lib/components/Markdown.js.map +1 -1
  106. package/dist/lib/components/MobileTopNavigation.js +7 -3
  107. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  108. package/dist/lib/components/NotFoundPage.js +1 -1
  109. package/dist/lib/components/Pagination.d.ts +11 -0
  110. package/dist/lib/components/Pagination.js +10 -0
  111. package/dist/lib/components/Pagination.js.map +1 -0
  112. package/dist/lib/components/Search.js +7 -1
  113. package/dist/lib/components/Search.js.map +1 -1
  114. package/dist/lib/components/Slot.d.ts +17 -0
  115. package/dist/lib/components/Slot.js +24 -0
  116. package/dist/lib/components/Slot.js.map +1 -0
  117. package/dist/lib/components/Slot.test.js +168 -0
  118. package/dist/lib/components/Slot.test.js.map +1 -0
  119. package/dist/lib/components/TopNavigation.d.ts +2 -4
  120. package/dist/lib/components/TopNavigation.js +25 -20
  121. package/dist/lib/components/TopNavigation.js.map +1 -1
  122. package/dist/lib/components/Zudoku.js +9 -5
  123. package/dist/lib/components/Zudoku.js.map +1 -1
  124. package/dist/lib/components/cache.d.ts +7 -0
  125. package/dist/lib/components/cache.js +7 -0
  126. package/dist/lib/components/cache.js.map +1 -1
  127. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  128. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  129. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  130. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  131. package/dist/lib/components/context/SlotProvider.js +83 -0
  132. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  133. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  134. package/dist/lib/components/context/ViewportAnchorContext.js +13 -19
  135. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  136. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  137. package/dist/lib/components/context/ZudokuContext.js +10 -5
  138. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  139. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  140. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  141. package/dist/lib/components/index.d.ts +11 -3
  142. package/dist/lib/components/index.js +2 -0
  143. package/dist/lib/components/index.js.map +1 -1
  144. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  145. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  146. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  147. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  148. package/dist/lib/components/navigation/Sidebar.js +4 -13
  149. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  150. package/dist/lib/components/navigation/SidebarBadge.js +1 -1
  151. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  152. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  153. package/dist/lib/components/navigation/SidebarCategory.js +18 -10
  154. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  155. package/dist/lib/components/navigation/SidebarItem.d.ts +1 -0
  156. package/dist/lib/components/navigation/SidebarItem.js +17 -12
  157. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  158. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  159. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  160. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  161. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +6 -8
  162. package/dist/lib/components/navigation/Toc.js.map +1 -0
  163. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  164. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  165. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  166. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  167. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  168. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  169. package/dist/lib/components/navigation/utils.d.ts +3 -0
  170. package/dist/lib/components/navigation/utils.js +8 -0
  171. package/dist/lib/components/navigation/utils.js.map +1 -1
  172. package/dist/lib/core/RouteGuard.d.ts +1 -0
  173. package/dist/lib/core/RouteGuard.js +10 -3
  174. package/dist/lib/core/RouteGuard.js.map +1 -1
  175. package/dist/lib/core/ZudokuContext.d.ts +40 -11
  176. package/dist/lib/core/ZudokuContext.js +17 -9
  177. package/dist/lib/core/ZudokuContext.js.map +1 -1
  178. package/dist/lib/core/plugins.d.ts +14 -9
  179. package/dist/lib/core/plugins.js +1 -0
  180. package/dist/lib/core/plugins.js.map +1 -1
  181. package/dist/lib/errors/ErrorAlert.js +6 -1
  182. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  183. package/dist/lib/hooks/useEvent.test.js +1 -1
  184. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  185. package/dist/lib/oas/graphql/circular.js +23 -18
  186. package/dist/lib/oas/graphql/circular.js.map +1 -1
  187. package/dist/lib/oas/graphql/index.d.ts +17 -4
  188. package/dist/lib/oas/graphql/index.js +148 -38
  189. package/dist/lib/oas/graphql/index.js.map +1 -1
  190. package/dist/lib/oas/parser/dereference/index.js +2 -0
  191. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  192. package/dist/lib/oas/parser/index.d.ts +8 -3
  193. package/dist/lib/oas/parser/index.js +7 -23
  194. package/dist/lib/oas/parser/index.js.map +1 -1
  195. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  196. package/dist/lib/oas/parser/upgrade/index.js +77 -25
  197. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  198. package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
  199. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  200. package/dist/lib/plugins/api-catalog/index.js +19 -17
  201. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  202. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  203. package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
  204. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  205. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  206. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +54 -23
  207. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  208. package/dist/lib/plugins/api-keys/index.d.ts +18 -9
  209. package/dist/lib/plugins/api-keys/index.js +49 -34
  210. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  211. package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
  212. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  213. package/dist/lib/plugins/markdown/MdxPage.js +3 -9
  214. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  215. package/dist/lib/plugins/markdown/index.d.ts +1 -1
  216. package/dist/lib/plugins/markdown/resolver.d.ts +1 -1
  217. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  218. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  219. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  220. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  221. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  222. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  223. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  224. package/dist/lib/plugins/openapi/OperationList.js +67 -21
  225. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  226. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  227. package/dist/lib/plugins/openapi/OperationListItem.js +8 -13
  228. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  229. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  230. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  231. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  232. package/dist/lib/plugins/openapi/ParameterListItem.js +16 -4
  233. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  234. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -2
  235. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  236. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  237. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  238. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  239. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  240. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  241. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  242. package/dist/lib/plugins/openapi/Sidecar.js +69 -10
  243. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  244. package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
  245. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  246. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  247. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  248. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  249. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  250. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  251. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
  252. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -7
  253. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  254. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  255. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  256. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  257. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  258. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  259. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  260. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  261. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  262. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  263. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  264. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  265. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  266. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  267. package/dist/lib/plugins/openapi/graphql/gql.js +5 -4
  268. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  269. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
  270. package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
  271. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  272. package/dist/lib/plugins/openapi/index.d.ts +6 -12
  273. package/dist/lib/plugins/openapi/index.js +43 -60
  274. package/dist/lib/plugins/openapi/index.js.map +1 -1
  275. package/dist/lib/plugins/openapi/interfaces.d.ts +37 -10
  276. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  277. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
  278. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  279. package/dist/lib/plugins/openapi/playground/Headers.js +3 -3
  280. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  281. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  282. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  283. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  284. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  285. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
  286. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  287. package/dist/lib/plugins/openapi/playground/Playground.d.ts +13 -2
  288. package/dist/lib/plugins/openapi/playground/Playground.js +83 -27
  289. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  290. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  291. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  292. package/dist/lib/plugins/openapi/playground/QueryParams.js +3 -3
  293. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  294. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  295. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  296. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  297. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +1 -1
  298. package/dist/lib/plugins/openapi/playground/SubmitButton.js +7 -10
  299. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -1
  300. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  301. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  302. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  303. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
  304. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +19 -13
  305. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  306. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  307. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
  308. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  309. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  310. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
  311. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  312. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
  313. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  314. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
  315. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
  316. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  317. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
  318. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  319. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
  320. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
  321. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  322. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  323. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  324. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  325. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  326. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  327. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  328. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  329. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  330. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  331. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  332. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  333. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  334. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  335. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  336. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  337. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  338. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +24 -16
  339. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  340. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  341. package/dist/lib/plugins/openapi/schema/SchemaView.js +37 -49
  342. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  343. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -1
  344. package/dist/lib/plugins/openapi/schema/utils.js +14 -5
  345. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  346. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  347. package/dist/lib/plugins/openapi/state.js +18 -0
  348. package/dist/lib/plugins/openapi/state.js.map +1 -0
  349. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +5 -7
  350. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -1
  351. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  352. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +44 -0
  353. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  354. package/dist/lib/plugins/openapi/util/getRoutes.js +54 -11
  355. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  356. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  357. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +23 -10
  358. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  359. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -0
  360. package/dist/lib/plugins/search-pagefind/ResultList.js +19 -17
  361. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  362. package/dist/lib/plugins/search-pagefind/get-results.d.ts +8 -1
  363. package/dist/lib/plugins/search-pagefind/get-results.js +9 -4
  364. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  365. package/dist/lib/shiki.d.ts +35 -0
  366. package/dist/lib/shiki.js +103 -0
  367. package/dist/lib/shiki.js.map +1 -0
  368. package/dist/lib/ui/Badge.d.ts +1 -1
  369. package/dist/lib/ui/Badge.js +1 -1
  370. package/dist/lib/ui/Badge.js.map +1 -1
  371. package/dist/lib/ui/Button.d.ts +3 -3
  372. package/dist/lib/ui/Button.js +9 -6
  373. package/dist/lib/ui/Button.js.map +1 -1
  374. package/dist/lib/ui/Callout.d.ts +2 -1
  375. package/dist/lib/ui/Callout.js +3 -2
  376. package/dist/lib/ui/Callout.js.map +1 -1
  377. package/dist/lib/ui/Card.js +1 -1
  378. package/dist/lib/ui/Checkbox.d.ts +2 -8
  379. package/dist/lib/ui/Checkbox.js +1 -13
  380. package/dist/lib/ui/Checkbox.js.map +1 -1
  381. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  382. package/dist/lib/ui/CodeBlock.js +18 -0
  383. package/dist/lib/ui/CodeBlock.js.map +1 -0
  384. package/dist/lib/ui/Command.d.ts +1 -1
  385. package/dist/lib/ui/Command.js +3 -3
  386. package/dist/lib/ui/Command.js.map +1 -1
  387. package/dist/lib/ui/Dialog.js +1 -1
  388. package/dist/lib/ui/Dialog.js.map +1 -1
  389. package/dist/lib/ui/DropdownMenu.js +4 -4
  390. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  391. package/dist/lib/ui/Form.d.ts +1 -1
  392. package/dist/lib/ui/HoverCard.js +1 -1
  393. package/dist/lib/ui/HoverCard.js.map +1 -1
  394. package/dist/lib/ui/Input.js +1 -1
  395. package/dist/lib/ui/Input.js.map +1 -1
  396. package/dist/lib/ui/Popover.js +1 -1
  397. package/dist/lib/ui/Popover.js.map +1 -1
  398. package/dist/lib/ui/RadioGroup.js +1 -1
  399. package/dist/lib/ui/RadioGroup.js.map +1 -1
  400. package/dist/lib/ui/Select.js +2 -2
  401. package/dist/lib/ui/Select.js.map +1 -1
  402. package/dist/lib/ui/Slider.js +1 -1
  403. package/dist/lib/ui/Slider.js.map +1 -1
  404. package/dist/lib/ui/Stepper.d.ts +0 -1
  405. package/dist/lib/ui/Stepper.js +1 -1
  406. package/dist/lib/ui/Stepper.js.map +1 -1
  407. package/dist/lib/ui/Switch.js +1 -1
  408. package/dist/lib/ui/Switch.js.map +1 -1
  409. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -14
  410. package/dist/lib/ui/SyntaxHighlight.js +13 -55
  411. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  412. package/dist/lib/ui/Tabs.js +2 -2
  413. package/dist/lib/ui/Tabs.js.map +1 -1
  414. package/dist/lib/ui/Textarea.js +1 -1
  415. package/dist/lib/ui/Textarea.js.map +1 -1
  416. package/dist/lib/ui/Toggle.js +1 -1
  417. package/dist/lib/ui/Toggle.js.map +1 -1
  418. package/dist/lib/util/MdxComponents.d.ts +12 -4
  419. package/dist/lib/util/MdxComponents.js +13 -12
  420. package/dist/lib/util/MdxComponents.js.map +1 -1
  421. package/dist/lib/util/detectOS.d.ts +1 -0
  422. package/dist/lib/util/detectOS.js +11 -0
  423. package/dist/lib/util/detectOS.js.map +1 -0
  424. package/dist/lib/util/ensureArray.d.ts +1 -0
  425. package/dist/lib/util/ensureArray.js +2 -0
  426. package/dist/lib/util/ensureArray.js.map +1 -0
  427. package/dist/lib/util/joinPath.d.ts +3 -0
  428. package/dist/lib/util/joinPath.js +3 -0
  429. package/dist/lib/util/joinPath.js.map +1 -1
  430. package/dist/lib/util/traverse.d.ts +3 -9
  431. package/dist/lib/util/traverse.js +7 -6
  432. package/dist/lib/util/traverse.js.map +1 -1
  433. package/dist/lib/util/types.d.ts +7 -0
  434. package/dist/lib/util/types.js +2 -0
  435. package/dist/lib/util/types.js.map +1 -0
  436. package/dist/lib/util/url.d.ts +4 -0
  437. package/dist/lib/util/url.js +13 -0
  438. package/dist/lib/util/url.js.map +1 -0
  439. package/dist/lib/util/url.test.js +26 -0
  440. package/dist/lib/util/url.test.js.map +1 -0
  441. package/dist/lib/util/useExposedProps.d.ts +8 -1
  442. package/dist/lib/util/useExposedProps.js.map +1 -1
  443. package/dist/lib/util/useOnScreen.d.ts +3 -2
  444. package/dist/lib/util/useOnScreen.js +3 -3
  445. package/dist/lib/util/useOnScreen.js.map +1 -1
  446. package/dist/lib/util/useScrollToAnchor.js +20 -12
  447. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  448. package/dist/vite/api/SchemaManager.d.ts +36 -0
  449. package/dist/vite/api/SchemaManager.js +137 -0
  450. package/dist/vite/api/SchemaManager.js.map +1 -0
  451. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  452. package/dist/vite/api/SchemaManager.test.js +106 -0
  453. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  454. package/dist/vite/api/schema-codegen.d.ts +1 -1
  455. package/dist/vite/api/schema-codegen.js +35 -12
  456. package/dist/vite/api/schema-codegen.js.map +1 -1
  457. package/dist/vite/api/schema-codegen.test.js +66 -0
  458. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  459. package/dist/vite/build.js +46 -10
  460. package/dist/vite/build.js.map +1 -1
  461. package/dist/vite/config.d.ts +2 -9
  462. package/dist/vite/config.js +50 -103
  463. package/dist/vite/config.js.map +1 -1
  464. package/dist/vite/config.test.js +1 -1
  465. package/dist/vite/config.test.js.map +1 -1
  466. package/dist/vite/create-pagefind-index.d.ts +4 -0
  467. package/dist/vite/create-pagefind-index.js +12 -0
  468. package/dist/vite/create-pagefind-index.js.map +1 -0
  469. package/dist/vite/css/plugin.d.ts +1 -2
  470. package/dist/vite/css/plugin.js +3 -2
  471. package/dist/vite/css/plugin.js.map +1 -1
  472. package/dist/vite/dev-server.d.ts +0 -1
  473. package/dist/vite/dev-server.js +16 -15
  474. package/dist/vite/dev-server.js.map +1 -1
  475. package/dist/vite/html.d.ts +7 -3
  476. package/dist/vite/html.js +15 -9
  477. package/dist/vite/html.js.map +1 -1
  478. package/dist/vite/plugin-api-keys.d.ts +1 -2
  479. package/dist/vite/plugin-api-keys.js +9 -3
  480. package/dist/vite/plugin-api-keys.js.map +1 -1
  481. package/dist/vite/plugin-api.d.ts +1 -2
  482. package/dist/vite/plugin-api.js +74 -123
  483. package/dist/vite/plugin-api.js.map +1 -1
  484. package/dist/vite/plugin-auth.d.ts +1 -2
  485. package/dist/vite/plugin-auth.js +3 -2
  486. package/dist/vite/plugin-auth.js.map +1 -1
  487. package/dist/vite/plugin-component.d.ts +1 -2
  488. package/dist/vite/plugin-component.js +3 -2
  489. package/dist/vite/plugin-component.js.map +1 -1
  490. package/dist/vite/plugin-config-reload.d.ts +1 -2
  491. package/dist/vite/plugin-config-reload.js +23 -23
  492. package/dist/vite/plugin-config-reload.js.map +1 -1
  493. package/dist/vite/plugin-config.d.ts +1 -2
  494. package/dist/vite/plugin-config.js +4 -3
  495. package/dist/vite/plugin-config.js.map +1 -1
  496. package/dist/vite/plugin-configure-tailwind.d.ts +2 -0
  497. package/dist/vite/plugin-configure-tailwind.js +38 -0
  498. package/dist/vite/plugin-configure-tailwind.js.map +1 -0
  499. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  500. package/dist/vite/plugin-custom-pages.js +3 -2
  501. package/dist/vite/plugin-custom-pages.js.map +1 -1
  502. package/dist/vite/plugin-docs.d.ts +2 -3
  503. package/dist/vite/plugin-docs.js +21 -3
  504. package/dist/vite/plugin-docs.js.map +1 -1
  505. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  506. package/dist/vite/plugin-frontmatter.js +3 -2
  507. package/dist/vite/plugin-frontmatter.js.map +1 -1
  508. package/dist/vite/plugin-mdx.d.ts +1 -2
  509. package/dist/vite/plugin-mdx.js +7 -13
  510. package/dist/vite/plugin-mdx.js.map +1 -1
  511. package/dist/vite/plugin-redirect.d.ts +1 -2
  512. package/dist/vite/plugin-redirect.js +3 -2
  513. package/dist/vite/plugin-redirect.js.map +1 -1
  514. package/dist/vite/plugin-search.d.ts +1 -2
  515. package/dist/vite/plugin-search.js +3 -2
  516. package/dist/vite/plugin-search.js.map +1 -1
  517. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  518. package/dist/vite/plugin-shiki-register.js +39 -0
  519. package/dist/vite/plugin-shiki-register.js.map +1 -0
  520. package/dist/vite/plugin-sidebar.d.ts +4 -3
  521. package/dist/vite/plugin-sidebar.js +12 -5
  522. package/dist/vite/plugin-sidebar.js.map +1 -1
  523. package/dist/vite/plugin-theme-css.d.ts +1 -2
  524. package/dist/vite/plugin-theme-css.js +20 -60
  525. package/dist/vite/plugin-theme-css.js.map +1 -1
  526. package/dist/vite/plugin.d.ts +1 -2
  527. package/dist/vite/plugin.js +23 -20
  528. package/dist/vite/plugin.js.map +1 -1
  529. package/dist/vite/prerender/FileWritingResponse.d.ts +9 -5
  530. package/dist/vite/prerender/FileWritingResponse.js +5 -5
  531. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  532. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  533. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  534. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  535. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  536. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  537. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  538. package/dist/vite/prerender/prerender.d.ts +1 -0
  539. package/dist/vite/prerender/prerender.js +38 -13
  540. package/dist/vite/prerender/prerender.js.map +1 -1
  541. package/dist/vite/prerender/worker.js +41 -14
  542. package/dist/vite/prerender/worker.js.map +1 -1
  543. package/dist/vite/sitemap.d.ts +1 -1
  544. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  545. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  546. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  547. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  548. package/dist/zuplo/with-zuplo-processors.js +7 -7
  549. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  550. package/dist/zuplo/with-zuplo.d.ts +5 -2
  551. package/dist/zuplo/with-zuplo.js +6 -5
  552. package/dist/zuplo/with-zuplo.js.map +1 -1
  553. package/lib/Button-u7M2QYds.js +51 -0
  554. package/lib/Button-u7M2QYds.js.map +1 -0
  555. package/lib/Callout-CtCQJ6Cc.js +230 -0
  556. package/lib/Callout-CtCQJ6Cc.js.map +1 -0
  557. package/lib/Card-DkH-AU1V.js +61 -0
  558. package/lib/Card-DkH-AU1V.js.map +1 -0
  559. package/lib/{CategoryHeading-DpB47wvk.js → CategoryHeading-BA7lKNWz.js} +3 -3
  560. package/lib/{CategoryHeading-DpB47wvk.js.map → CategoryHeading-BA7lKNWz.js.map} +1 -1
  561. package/lib/Dialog-irKZWXGg.js +99 -0
  562. package/lib/Dialog-irKZWXGg.js.map +1 -0
  563. package/lib/Drawer-DZ214i5V.js +1133 -0
  564. package/lib/Drawer-DZ214i5V.js.map +1 -0
  565. package/lib/Markdown-ms3FtIha.js +7694 -0
  566. package/lib/Markdown-ms3FtIha.js.map +1 -0
  567. package/lib/MdxPage-D6v_c0tx.js +84 -0
  568. package/lib/MdxPage-D6v_c0tx.js.map +1 -0
  569. package/lib/OasProvider-DCp8HxF4.js +33 -0
  570. package/lib/{OasProvider-BSuptFK-.js.map → OasProvider-DCp8HxF4.js.map} +1 -1
  571. package/lib/OperationList-Ct68OoIk.js +5145 -0
  572. package/lib/OperationList-Ct68OoIk.js.map +1 -0
  573. package/lib/Pagination-C-FbzRep.js +36 -0
  574. package/lib/Pagination-C-FbzRep.js.map +1 -0
  575. package/lib/RouteGuard-CIyGFkFD.js +55 -0
  576. package/lib/RouteGuard-CIyGFkFD.js.map +1 -0
  577. package/lib/SchemaList-_lITigpx.js +160 -0
  578. package/lib/SchemaList-_lITigpx.js.map +1 -0
  579. package/lib/SchemaView-Dbd9iTsb.js +375 -0
  580. package/lib/SchemaView-Dbd9iTsb.js.map +1 -0
  581. package/lib/SignUp-DWvtcgpY.js +63 -0
  582. package/lib/SignUp-DWvtcgpY.js.map +1 -0
  583. package/lib/Slot-CiKlwC-1.js +160 -0
  584. package/lib/Slot-CiKlwC-1.js.map +1 -0
  585. package/lib/Spinner-mNLZ6awP.js +7 -0
  586. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  587. package/lib/SyntaxHighlight-DTgNHbGp.js +9107 -0
  588. package/lib/SyntaxHighlight-DTgNHbGp.js.map +1 -0
  589. package/lib/Toc-CBERuLsq.js +92 -0
  590. package/lib/Toc-CBERuLsq.js.map +1 -0
  591. package/lib/{chunk-IR6S3I6Y-D_3UmFIn.js → chunk-BAXFHI7N-C9WnHsLV.js} +620 -602
  592. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
  593. package/lib/{circular-v7K6lDDh.js → circular-Y7yjLNW1.js} +2997 -3477
  594. package/lib/circular-Y7yjLNW1.js.map +1 -0
  595. package/lib/{cn-qaFjX9_3.js → cn-BOFVZgHd.js} +1017 -552
  596. package/lib/cn-BOFVZgHd.js.map +1 -0
  597. package/lib/{createServer-DmusVVsi.js → createServer-CNtv3YKi.js} +4984 -5218
  598. package/lib/createServer-CNtv3YKi.js.map +1 -0
  599. package/lib/hook-BpiAQVtd.js +1446 -0
  600. package/lib/hook-BpiAQVtd.js.map +1 -0
  601. package/lib/{index-DwT-v3zK.js → index--oeBayMa.js} +2 -2
  602. package/lib/{index-DwT-v3zK.js.map → index--oeBayMa.js.map} +1 -1
  603. package/lib/{index-LNp6rxyU.js → index-BvvmIczU.js} +2 -2
  604. package/lib/{index-LNp6rxyU.js.map → index-BvvmIczU.js.map} +1 -1
  605. package/lib/{index-CPNSgwSb.js → index-C1S4w-gl.js} +5 -5
  606. package/lib/{index-CPNSgwSb.js.map → index-C1S4w-gl.js.map} +1 -1
  607. package/lib/index-C_9WfVu2.js +3268 -0
  608. package/lib/index-C_9WfVu2.js.map +1 -0
  609. package/lib/index-CrcNWbel.js +316 -0
  610. package/lib/index-CrcNWbel.js.map +1 -0
  611. package/lib/index-PL1g52PU.js +4977 -0
  612. package/lib/index-PL1g52PU.js.map +1 -0
  613. package/lib/{index-Dl3Yl0yb.js → index-zddirpDj.js} +621 -636
  614. package/lib/index-zddirpDj.js.map +1 -0
  615. package/lib/index.esm-BFcSKCe-.js +683 -0
  616. package/lib/{index.esm-CQHE3GEU.js.map → index.esm-BFcSKCe-.js.map} +1 -1
  617. package/lib/index.esm-DSfX_eMP.js +1216 -0
  618. package/lib/index.esm-DSfX_eMP.js.map +1 -0
  619. package/lib/invariant-DAFpPywt.js +48 -0
  620. package/lib/{invariant-Caa8-XvF.js.map → invariant-DAFpPywt.js.map} +1 -1
  621. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  622. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  623. package/lib/mutation-CJrIFMgY.js +196 -0
  624. package/lib/mutation-CJrIFMgY.js.map +1 -0
  625. package/lib/{post-processors → processors}/removeExtensions.js +1 -1
  626. package/lib/processors/removeExtensions.js.map +1 -0
  627. package/lib/processors/removeParameters.js +47 -0
  628. package/lib/processors/removeParameters.js.map +1 -0
  629. package/lib/processors/removePaths.js +28 -0
  630. package/lib/processors/removePaths.js.map +1 -0
  631. package/lib/processors/traverse.js +17 -0
  632. package/lib/processors/traverse.js.map +1 -0
  633. package/lib/ui/Accordion.js +2 -2
  634. package/lib/ui/ActionButton.js +11 -10
  635. package/lib/ui/ActionButton.js.map +1 -1
  636. package/lib/ui/Alert.js +3 -3
  637. package/lib/ui/AlertDialog.js +2 -2
  638. package/lib/ui/Badge.js +4 -4
  639. package/lib/ui/Badge.js.map +1 -1
  640. package/lib/ui/Breadcrumb.js +2 -2
  641. package/lib/ui/Button.js +22 -19
  642. package/lib/ui/Button.js.map +1 -1
  643. package/lib/ui/Callout.js +41 -22
  644. package/lib/ui/Callout.js.map +1 -1
  645. package/lib/ui/Card.js +9 -9
  646. package/lib/ui/Card.js.map +1 -1
  647. package/lib/ui/Carousel.js +348 -348
  648. package/lib/ui/Carousel.js.map +1 -1
  649. package/lib/ui/Checkbox.js +16 -26
  650. package/lib/ui/Checkbox.js.map +1 -1
  651. package/lib/ui/CodeBlock.js +83 -0
  652. package/lib/ui/CodeBlock.js.map +1 -0
  653. package/lib/ui/Command.js +58 -58
  654. package/lib/ui/Command.js.map +1 -1
  655. package/lib/ui/Dialog.js +3 -3
  656. package/lib/ui/Dialog.js.map +1 -1
  657. package/lib/ui/Drawer.js +14 -1129
  658. package/lib/ui/Drawer.js.map +1 -1
  659. package/lib/ui/DropdownMenu.js +35 -35
  660. package/lib/ui/DropdownMenu.js.map +1 -1
  661. package/lib/ui/Form.js +3 -3
  662. package/lib/ui/HoverCard.js +6 -6
  663. package/lib/ui/HoverCard.js.map +1 -1
  664. package/lib/ui/Input.js +3 -3
  665. package/lib/ui/Input.js.map +1 -1
  666. package/lib/ui/Label.js +3 -3
  667. package/lib/ui/Pagination.js +2 -2
  668. package/lib/ui/Popover.js +3 -3
  669. package/lib/ui/Popover.js.map +1 -1
  670. package/lib/ui/Progress.js +2 -2
  671. package/lib/ui/RadioGroup.js +11 -11
  672. package/lib/ui/RadioGroup.js.map +1 -1
  673. package/lib/ui/ScrollArea.js +2 -2
  674. package/lib/ui/Select.js +32 -32
  675. package/lib/ui/Select.js.map +1 -1
  676. package/lib/ui/Skeleton.js +2 -2
  677. package/lib/ui/Slider.js +6 -6
  678. package/lib/ui/Slider.js.map +1 -1
  679. package/lib/ui/Stepper.js +1 -1
  680. package/lib/ui/Stepper.js.map +1 -1
  681. package/lib/ui/Switch.js +6 -6
  682. package/lib/ui/Switch.js.map +1 -1
  683. package/lib/ui/SyntaxHighlight.js +7 -2902
  684. package/lib/ui/SyntaxHighlight.js.map +1 -1
  685. package/lib/ui/Tabs.js +17 -17
  686. package/lib/ui/Tabs.js.map +1 -1
  687. package/lib/ui/Textarea.js +6 -6
  688. package/lib/ui/Textarea.js.map +1 -1
  689. package/lib/ui/Toggle.js +8 -8
  690. package/lib/ui/Toggle.js.map +1 -1
  691. package/lib/ui/ToggleGroup.js +2 -2
  692. package/lib/ui/Tooltip.js +2 -2
  693. package/lib/ui/util.js +1 -1
  694. package/lib/{useExposedProps-RIvey2Oy.js → useExposedProps-DG8J6ewJ.js} +2 -2
  695. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
  696. package/lib/useLatest-hmRS46UF.js +11 -0
  697. package/lib/useLatest-hmRS46UF.js.map +1 -0
  698. package/lib/useMutation-B2LNwShM.js +97 -0
  699. package/lib/useMutation-B2LNwShM.js.map +1 -0
  700. package/lib/zudoku.auth-auth0.js +28 -31
  701. package/lib/zudoku.auth-auth0.js.map +1 -1
  702. package/lib/zudoku.auth-clerk.js +107 -78
  703. package/lib/zudoku.auth-clerk.js.map +1 -1
  704. package/lib/zudoku.auth-openid.js +511 -478
  705. package/lib/zudoku.auth-openid.js.map +1 -1
  706. package/lib/zudoku.components.js +34 -1395
  707. package/lib/zudoku.components.js.map +1 -1
  708. package/lib/zudoku.hooks.js +2 -2
  709. package/lib/zudoku.icons.js +1 -1
  710. package/lib/zudoku.plugin-api-catalog.js +95 -99
  711. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  712. package/lib/zudoku.plugin-api-keys.js +5022 -214
  713. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  714. package/lib/zudoku.plugin-custom-pages.js +4 -4
  715. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  716. package/lib/zudoku.plugin-markdown.js +25 -28
  717. package/lib/zudoku.plugin-markdown.js.map +1 -1
  718. package/lib/zudoku.plugin-openapi.js +7 -8
  719. package/lib/zudoku.plugin-openapi.js.map +1 -1
  720. package/lib/zudoku.plugin-redirect.js +1 -1
  721. package/lib/zudoku.plugin-redirect.js.map +1 -1
  722. package/lib/zudoku.plugin-search-inkeep.js +26 -27
  723. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  724. package/lib/zudoku.plugin-search-pagefind.js +230 -0
  725. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  726. package/lib/zudoku.plugins.js +7 -6
  727. package/lib/zudoku.plugins.js.map +1 -1
  728. package/package.json +101 -83
  729. package/src/app/ZuploBuildConfig.ts +33 -0
  730. package/src/app/defaultTheme.css +54 -0
  731. package/src/app/demo.html +1 -1
  732. package/src/app/entry.client.tsx +43 -0
  733. package/src/app/entry.server.tsx +23 -13
  734. package/src/app/env.ts +35 -0
  735. package/src/app/font.geist.css +73 -0
  736. package/src/app/main.css +197 -143
  737. package/src/app/main.tsx +30 -29
  738. package/src/lib/authentication/AuthenticationPlugin.tsx +18 -4
  739. package/src/lib/authentication/authentication.ts +4 -5
  740. package/src/lib/authentication/components/CallbackHandler.tsx +11 -1
  741. package/src/lib/authentication/components/SignIn.tsx +35 -2
  742. package/src/lib/authentication/components/SignUp.tsx +35 -1
  743. package/src/lib/authentication/hook.ts +12 -1
  744. package/src/lib/authentication/providers/auth0.tsx +9 -3
  745. package/src/lib/authentication/providers/clerk.tsx +105 -57
  746. package/src/lib/authentication/providers/openid.tsx +52 -53
  747. package/src/lib/authentication/providers/supabase.tsx +157 -0
  748. package/src/lib/authentication/state.ts +1 -35
  749. package/src/lib/components/AnchorLink.tsx +9 -7
  750. package/src/lib/components/Autocomplete.tsx +1 -1
  751. package/src/lib/components/Banner.tsx +2 -2
  752. package/src/lib/components/Bootstrap.tsx +13 -6
  753. package/src/lib/components/BuildCheck.tsx +75 -0
  754. package/src/lib/components/ErrorPage.tsx +1 -1
  755. package/src/lib/components/Footer.tsx +136 -0
  756. package/src/lib/components/Header.tsx +40 -36
  757. package/src/lib/components/Heading.tsx +11 -7
  758. package/src/lib/components/InlineCode.tsx +13 -16
  759. package/src/lib/components/Layout.tsx +30 -72
  760. package/src/lib/components/Main.tsx +51 -0
  761. package/src/lib/components/Markdown.tsx +29 -24
  762. package/src/lib/components/MobileTopNavigation.tsx +30 -20
  763. package/src/lib/components/NotFoundPage.tsx +1 -1
  764. package/src/lib/components/Pagination.tsx +44 -0
  765. package/src/lib/components/Search.tsx +15 -4
  766. package/src/lib/components/Slot.test.tsx +465 -0
  767. package/src/lib/components/Slot.tsx +64 -0
  768. package/src/lib/components/TopNavigation.tsx +40 -29
  769. package/src/lib/components/Zudoku.tsx +19 -12
  770. package/src/lib/components/cache.ts +8 -0
  771. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  772. package/src/lib/components/context/SlotProvider.tsx +149 -0
  773. package/src/lib/components/context/ViewportAnchorContext.tsx +14 -30
  774. package/src/lib/components/context/ZudokuContext.ts +14 -6
  775. package/src/lib/components/context/ZudokuProvider.tsx +2 -1
  776. package/src/lib/components/index.ts +2 -0
  777. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  778. package/src/lib/components/navigation/Sidebar.tsx +38 -45
  779. package/src/lib/components/navigation/SidebarBadge.tsx +1 -1
  780. package/src/lib/components/navigation/SidebarCategory.tsx +24 -17
  781. package/src/lib/components/navigation/SidebarItem.tsx +21 -30
  782. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
  783. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +9 -18
  784. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  785. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  786. package/src/lib/components/navigation/utils.ts +12 -0
  787. package/src/lib/core/RouteGuard.tsx +27 -4
  788. package/src/lib/core/ZudokuContext.ts +57 -19
  789. package/src/lib/core/plugins.ts +18 -10
  790. package/src/lib/errors/ErrorAlert.tsx +24 -17
  791. package/src/lib/hooks/useEvent.test.tsx +1 -1
  792. package/src/lib/oas/graphql/circular.ts +27 -19
  793. package/src/lib/oas/graphql/index.ts +202 -54
  794. package/src/lib/oas/parser/dereference/index.ts +2 -0
  795. package/src/lib/oas/parser/index.ts +14 -30
  796. package/src/lib/oas/parser/upgrade/index.ts +98 -28
  797. package/src/lib/plugins/api-catalog/Catalog.tsx +1 -4
  798. package/src/lib/plugins/api-catalog/index.tsx +40 -35
  799. package/src/lib/plugins/api-keys/CreateApiKey.tsx +54 -42
  800. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +292 -112
  801. package/src/lib/plugins/api-keys/index.tsx +101 -55
  802. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  803. package/src/lib/plugins/markdown/MdxPage.tsx +11 -47
  804. package/src/lib/plugins/markdown/index.tsx +2 -2
  805. package/src/lib/plugins/markdown/resolver.ts +4 -2
  806. package/src/lib/plugins/openapi/CollapsibleCode.tsx +8 -5
  807. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -3
  808. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  809. package/src/lib/plugins/openapi/OperationList.tsx +177 -87
  810. package/src/lib/plugins/openapi/OperationListItem.tsx +102 -115
  811. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  812. package/src/lib/plugins/openapi/ParameterListItem.tsx +65 -23
  813. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +14 -1
  814. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  815. package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
  816. package/src/lib/plugins/openapi/Sidecar.tsx +83 -14
  817. package/src/lib/plugins/openapi/SidecarExamples.tsx +8 -2
  818. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  819. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  820. package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -7
  821. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  822. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  823. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  824. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  825. package/src/lib/plugins/openapi/graphql/gql.ts +29 -20
  826. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
  827. package/src/lib/plugins/openapi/index.tsx +56 -87
  828. package/src/lib/plugins/openapi/interfaces.ts +45 -15
  829. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
  830. package/src/lib/plugins/openapi/playground/Headers.tsx +2 -3
  831. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  832. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
  833. package/src/lib/plugins/openapi/playground/Playground.tsx +186 -93
  834. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  835. package/src/lib/plugins/openapi/playground/QueryParams.tsx +4 -5
  836. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  837. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +25 -30
  838. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  839. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +2 -2
  840. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +25 -5
  841. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
  842. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
  843. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
  844. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
  845. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
  846. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  847. package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
  848. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  849. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  850. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  851. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  852. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +69 -60
  853. package/src/lib/plugins/openapi/schema/SchemaView.tsx +101 -140
  854. package/src/lib/plugins/openapi/schema/utils.ts +29 -6
  855. package/src/lib/plugins/openapi/state.ts +36 -0
  856. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +5 -7
  857. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +51 -1
  858. package/src/lib/plugins/openapi/util/getRoutes.tsx +89 -14
  859. package/src/lib/plugins/redirect/index.tsx +1 -1
  860. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +39 -14
  861. package/src/lib/plugins/search-pagefind/ResultList.tsx +60 -53
  862. package/src/lib/plugins/search-pagefind/get-results.tsx +31 -10
  863. package/src/lib/shiki.ts +133 -0
  864. package/src/lib/ui/Badge.tsx +2 -2
  865. package/src/lib/ui/Button.tsx +12 -7
  866. package/src/lib/ui/Callout.tsx +29 -10
  867. package/src/lib/ui/Card.tsx +1 -1
  868. package/src/lib/ui/Checkbox.tsx +8 -24
  869. package/src/lib/ui/CodeBlock.tsx +102 -0
  870. package/src/lib/ui/Command.tsx +5 -5
  871. package/src/lib/ui/Dialog.tsx +1 -1
  872. package/src/lib/ui/DropdownMenu.tsx +4 -4
  873. package/src/lib/ui/HoverCard.tsx +1 -1
  874. package/src/lib/ui/Input.tsx +1 -1
  875. package/src/lib/ui/Popover.tsx +1 -1
  876. package/src/lib/ui/RadioGroup.tsx +1 -1
  877. package/src/lib/ui/Select.tsx +3 -3
  878. package/src/lib/ui/Slider.tsx +1 -1
  879. package/src/lib/ui/Stepper.tsx +1 -1
  880. package/src/lib/ui/Switch.tsx +1 -1
  881. package/src/lib/ui/SyntaxHighlight.tsx +21 -180
  882. package/src/lib/ui/Tabs.tsx +2 -2
  883. package/src/lib/ui/Textarea.tsx +1 -1
  884. package/src/lib/ui/Toggle.tsx +1 -1
  885. package/src/lib/util/MdxComponents.tsx +31 -16
  886. package/src/lib/util/detectOS.ts +9 -0
  887. package/src/lib/util/ensureArray.ts +3 -0
  888. package/src/lib/util/joinPath.tsx +3 -0
  889. package/src/lib/util/traverse.ts +12 -13
  890. package/src/lib/util/types.ts +7 -0
  891. package/src/lib/util/url.test.ts +51 -0
  892. package/src/lib/util/url.ts +18 -0
  893. package/src/lib/util/useExposedProps.tsx +12 -1
  894. package/src/lib/util/useOnScreen.ts +6 -4
  895. package/src/lib/util/useScrollToAnchor.ts +22 -12
  896. package/src/shiki/langs/abap.js +1 -0
  897. package/src/shiki/langs/actionscript-3.js +1 -0
  898. package/src/shiki/langs/ada.js +1 -0
  899. package/src/shiki/langs/angular-expression.js +1 -0
  900. package/src/shiki/langs/angular-html.js +1 -0
  901. package/src/shiki/langs/angular-inline-style.js +1 -0
  902. package/src/shiki/langs/angular-inline-template.js +1 -0
  903. package/src/shiki/langs/angular-let-declaration.js +1 -0
  904. package/src/shiki/langs/angular-template-blocks.js +1 -0
  905. package/src/shiki/langs/angular-template.js +1 -0
  906. package/src/shiki/langs/angular-ts.js +1 -0
  907. package/src/shiki/langs/apache.js +1 -0
  908. package/src/shiki/langs/apex.js +1 -0
  909. package/src/shiki/langs/apl.js +1 -0
  910. package/src/shiki/langs/applescript.js +1 -0
  911. package/src/shiki/langs/ara.js +1 -0
  912. package/src/shiki/langs/asciidoc.js +1 -0
  913. package/src/shiki/langs/asm.js +1 -0
  914. package/src/shiki/langs/astro.js +1 -0
  915. package/src/shiki/langs/awk.js +1 -0
  916. package/src/shiki/langs/ballerina.js +1 -0
  917. package/src/shiki/langs/bat.js +1 -0
  918. package/src/shiki/langs/beancount.js +1 -0
  919. package/src/shiki/langs/berry.js +1 -0
  920. package/src/shiki/langs/bibtex.js +1 -0
  921. package/src/shiki/langs/bicep.js +1 -0
  922. package/src/shiki/langs/blade.js +1 -0
  923. package/src/shiki/langs/bsl.js +1 -0
  924. package/src/shiki/langs/c.js +1 -0
  925. package/src/shiki/langs/cadence.js +1 -0
  926. package/src/shiki/langs/cairo.js +1 -0
  927. package/src/shiki/langs/clarity.js +1 -0
  928. package/src/shiki/langs/clojure.js +1 -0
  929. package/src/shiki/langs/cmake.js +1 -0
  930. package/src/shiki/langs/cobol.js +1 -0
  931. package/src/shiki/langs/codeowners.js +1 -0
  932. package/src/shiki/langs/codeql.js +1 -0
  933. package/src/shiki/langs/coffee.js +1 -0
  934. package/src/shiki/langs/common-lisp.js +1 -0
  935. package/src/shiki/langs/coq.js +1 -0
  936. package/src/shiki/langs/cpp-macro.js +1 -0
  937. package/src/shiki/langs/cpp.js +1 -0
  938. package/src/shiki/langs/crystal.js +1 -0
  939. package/src/shiki/langs/csharp.js +1 -0
  940. package/src/shiki/langs/css.js +1 -0
  941. package/src/shiki/langs/csv.js +1 -0
  942. package/src/shiki/langs/cue.js +1 -0
  943. package/src/shiki/langs/cypher.js +1 -0
  944. package/src/shiki/langs/d.js +1 -0
  945. package/src/shiki/langs/dart.js +1 -0
  946. package/src/shiki/langs/dax.js +1 -0
  947. package/src/shiki/langs/desktop.js +1 -0
  948. package/src/shiki/langs/diff.js +1 -0
  949. package/src/shiki/langs/docker.js +1 -0
  950. package/src/shiki/langs/dotenv.js +1 -0
  951. package/src/shiki/langs/dream-maker.js +1 -0
  952. package/src/shiki/langs/edge.js +1 -0
  953. package/src/shiki/langs/elixir.js +1 -0
  954. package/src/shiki/langs/elm.js +1 -0
  955. package/src/shiki/langs/emacs-lisp.js +1 -0
  956. package/src/shiki/langs/erb.js +1 -0
  957. package/src/shiki/langs/erlang.js +1 -0
  958. package/src/shiki/langs/es-tag-css.js +1 -0
  959. package/src/shiki/langs/es-tag-glsl.js +1 -0
  960. package/src/shiki/langs/es-tag-html.js +1 -0
  961. package/src/shiki/langs/es-tag-sql.js +1 -0
  962. package/src/shiki/langs/es-tag-xml.js +1 -0
  963. package/src/shiki/langs/fennel.js +1 -0
  964. package/src/shiki/langs/fish.js +1 -0
  965. package/src/shiki/langs/fluent.js +1 -0
  966. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  967. package/src/shiki/langs/fortran-free-form.js +1 -0
  968. package/src/shiki/langs/fsharp.js +1 -0
  969. package/src/shiki/langs/gdresource.js +1 -0
  970. package/src/shiki/langs/gdscript.js +1 -0
  971. package/src/shiki/langs/gdshader.js +1 -0
  972. package/src/shiki/langs/genie.js +1 -0
  973. package/src/shiki/langs/gherkin.js +1 -0
  974. package/src/shiki/langs/git-commit.js +1 -0
  975. package/src/shiki/langs/git-rebase.js +1 -0
  976. package/src/shiki/langs/gleam.js +1 -0
  977. package/src/shiki/langs/glimmer-js.js +1 -0
  978. package/src/shiki/langs/glimmer-ts.js +1 -0
  979. package/src/shiki/langs/glsl.js +1 -0
  980. package/src/shiki/langs/gnuplot.js +1 -0
  981. package/src/shiki/langs/go.js +1 -0
  982. package/src/shiki/langs/graphql.js +1 -0
  983. package/src/shiki/langs/groovy.js +1 -0
  984. package/src/shiki/langs/hack.js +1 -0
  985. package/src/shiki/langs/haml.js +1 -0
  986. package/src/shiki/langs/handlebars.js +1 -0
  987. package/src/shiki/langs/haskell.js +1 -0
  988. package/src/shiki/langs/haxe.js +1 -0
  989. package/src/shiki/langs/hcl.js +1 -0
  990. package/src/shiki/langs/hjson.js +1 -0
  991. package/src/shiki/langs/hlsl.js +1 -0
  992. package/src/shiki/langs/html-derivative.js +1 -0
  993. package/src/shiki/langs/html.js +1 -0
  994. package/src/shiki/langs/http.js +1 -0
  995. package/src/shiki/langs/hxml.js +1 -0
  996. package/src/shiki/langs/hy.js +1 -0
  997. package/src/shiki/langs/imba.js +1 -0
  998. package/src/shiki/langs/ini.js +1 -0
  999. package/src/shiki/langs/java.js +1 -0
  1000. package/src/shiki/langs/javascript.js +1 -0
  1001. package/src/shiki/langs/jinja-html.js +1 -0
  1002. package/src/shiki/langs/jinja.js +1 -0
  1003. package/src/shiki/langs/jison.js +1 -0
  1004. package/src/shiki/langs/json.js +1 -0
  1005. package/src/shiki/langs/json5.js +1 -0
  1006. package/src/shiki/langs/jsonc.js +1 -0
  1007. package/src/shiki/langs/jsonl.js +1 -0
  1008. package/src/shiki/langs/jsonnet.js +1 -0
  1009. package/src/shiki/langs/jssm.js +1 -0
  1010. package/src/shiki/langs/jsx.js +1 -0
  1011. package/src/shiki/langs/julia.js +1 -0
  1012. package/src/shiki/langs/kotlin.js +1 -0
  1013. package/src/shiki/langs/kusto.js +1 -0
  1014. package/src/shiki/langs/latex.js +1 -0
  1015. package/src/shiki/langs/lean.js +1 -0
  1016. package/src/shiki/langs/less.js +1 -0
  1017. package/src/shiki/langs/liquid.js +1 -0
  1018. package/src/shiki/langs/llvm.js +1 -0
  1019. package/src/shiki/langs/log.js +1 -0
  1020. package/src/shiki/langs/logo.js +1 -0
  1021. package/src/shiki/langs/lua.js +1 -0
  1022. package/src/shiki/langs/luau.js +1 -0
  1023. package/src/shiki/langs/make.js +1 -0
  1024. package/src/shiki/langs/markdown-vue.js +1 -0
  1025. package/src/shiki/langs/markdown.js +1 -0
  1026. package/src/shiki/langs/marko.js +1 -0
  1027. package/src/shiki/langs/matlab.js +1 -0
  1028. package/src/shiki/langs/mdc.js +1 -0
  1029. package/src/shiki/langs/mdx.js +1 -0
  1030. package/src/shiki/langs/mermaid.js +1 -0
  1031. package/src/shiki/langs/mipsasm.js +1 -0
  1032. package/src/shiki/langs/mojo.js +1 -0
  1033. package/src/shiki/langs/move.js +1 -0
  1034. package/src/shiki/langs/narrat.js +1 -0
  1035. package/src/shiki/langs/nextflow.js +1 -0
  1036. package/src/shiki/langs/nginx.js +1 -0
  1037. package/src/shiki/langs/nim.js +1 -0
  1038. package/src/shiki/langs/nix.js +1 -0
  1039. package/src/shiki/langs/nushell.js +1 -0
  1040. package/src/shiki/langs/objective-c.js +1 -0
  1041. package/src/shiki/langs/objective-cpp.js +1 -0
  1042. package/src/shiki/langs/ocaml.js +1 -0
  1043. package/src/shiki/langs/pascal.js +1 -0
  1044. package/src/shiki/langs/perl.js +1 -0
  1045. package/src/shiki/langs/php.js +1 -0
  1046. package/src/shiki/langs/plsql.js +1 -0
  1047. package/src/shiki/langs/po.js +1 -0
  1048. package/src/shiki/langs/polar.js +1 -0
  1049. package/src/shiki/langs/postcss.js +1 -0
  1050. package/src/shiki/langs/powerquery.js +1 -0
  1051. package/src/shiki/langs/powershell.js +1 -0
  1052. package/src/shiki/langs/prisma.js +1 -0
  1053. package/src/shiki/langs/prolog.js +1 -0
  1054. package/src/shiki/langs/proto.js +1 -0
  1055. package/src/shiki/langs/pug.js +1 -0
  1056. package/src/shiki/langs/puppet.js +1 -0
  1057. package/src/shiki/langs/purescript.js +1 -0
  1058. package/src/shiki/langs/python.js +1 -0
  1059. package/src/shiki/langs/qml.js +1 -0
  1060. package/src/shiki/langs/qmldir.js +1 -0
  1061. package/src/shiki/langs/qss.js +1 -0
  1062. package/src/shiki/langs/r.js +1 -0
  1063. package/src/shiki/langs/racket.js +1 -0
  1064. package/src/shiki/langs/raku.js +1 -0
  1065. package/src/shiki/langs/razor.js +1 -0
  1066. package/src/shiki/langs/reg.js +1 -0
  1067. package/src/shiki/langs/regexp.js +1 -0
  1068. package/src/shiki/langs/rel.js +1 -0
  1069. package/src/shiki/langs/riscv.js +1 -0
  1070. package/src/shiki/langs/rst.js +1 -0
  1071. package/src/shiki/langs/ruby.js +1 -0
  1072. package/src/shiki/langs/rust.js +1 -0
  1073. package/src/shiki/langs/sas.js +1 -0
  1074. package/src/shiki/langs/sass.js +1 -0
  1075. package/src/shiki/langs/scala.js +1 -0
  1076. package/src/shiki/langs/scheme.js +1 -0
  1077. package/src/shiki/langs/scss.js +1 -0
  1078. package/src/shiki/langs/sdbl.js +1 -0
  1079. package/src/shiki/langs/shaderlab.js +1 -0
  1080. package/src/shiki/langs/shellscript.js +1 -0
  1081. package/src/shiki/langs/shellsession.js +1 -0
  1082. package/src/shiki/langs/smalltalk.js +1 -0
  1083. package/src/shiki/langs/solidity.js +1 -0
  1084. package/src/shiki/langs/soy.js +1 -0
  1085. package/src/shiki/langs/sparql.js +1 -0
  1086. package/src/shiki/langs/splunk.js +1 -0
  1087. package/src/shiki/langs/sql.js +1 -0
  1088. package/src/shiki/langs/ssh-config.js +1 -0
  1089. package/src/shiki/langs/stata.js +1 -0
  1090. package/src/shiki/langs/stylus.js +1 -0
  1091. package/src/shiki/langs/svelte.js +1 -0
  1092. package/src/shiki/langs/swift.js +1 -0
  1093. package/src/shiki/langs/system-verilog.js +1 -0
  1094. package/src/shiki/langs/systemd.js +1 -0
  1095. package/src/shiki/langs/talonscript.js +1 -0
  1096. package/src/shiki/langs/tasl.js +1 -0
  1097. package/src/shiki/langs/tcl.js +1 -0
  1098. package/src/shiki/langs/templ.js +1 -0
  1099. package/src/shiki/langs/terraform.js +1 -0
  1100. package/src/shiki/langs/tex.js +1 -0
  1101. package/src/shiki/langs/toml.js +1 -0
  1102. package/src/shiki/langs/ts-tags.js +1 -0
  1103. package/src/shiki/langs/tsv.js +1 -0
  1104. package/src/shiki/langs/tsx.js +1 -0
  1105. package/src/shiki/langs/turtle.js +1 -0
  1106. package/src/shiki/langs/twig.js +1 -0
  1107. package/src/shiki/langs/typescript.js +1 -0
  1108. package/src/shiki/langs/typespec.js +1 -0
  1109. package/src/shiki/langs/typst.js +1 -0
  1110. package/src/shiki/langs/v.js +1 -0
  1111. package/src/shiki/langs/vala.js +1 -0
  1112. package/src/shiki/langs/vb.js +1 -0
  1113. package/src/shiki/langs/verilog.js +1 -0
  1114. package/src/shiki/langs/vhdl.js +1 -0
  1115. package/src/shiki/langs/viml.js +1 -0
  1116. package/src/shiki/langs/vue-directives.js +1 -0
  1117. package/src/shiki/langs/vue-html.js +1 -0
  1118. package/src/shiki/langs/vue-interpolations.js +1 -0
  1119. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1120. package/src/shiki/langs/vue.js +1 -0
  1121. package/src/shiki/langs/vyper.js +1 -0
  1122. package/src/shiki/langs/wasm.js +1 -0
  1123. package/src/shiki/langs/wenyan.js +1 -0
  1124. package/src/shiki/langs/wgsl.js +1 -0
  1125. package/src/shiki/langs/wikitext.js +1 -0
  1126. package/src/shiki/langs/wit.js +1 -0
  1127. package/src/shiki/langs/wolfram.js +1 -0
  1128. package/src/shiki/langs/xml.js +1 -0
  1129. package/src/shiki/langs/xsl.js +1 -0
  1130. package/src/shiki/langs/yaml.js +1 -0
  1131. package/src/shiki/langs/zenscript.js +1 -0
  1132. package/src/shiki/langs/zig.js +1 -0
  1133. package/src/shiki/themes/andromeeda.js +1 -0
  1134. package/src/shiki/themes/aurora-x.js +1 -0
  1135. package/src/shiki/themes/ayu-dark.js +1 -0
  1136. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1137. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1138. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1139. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1140. package/src/shiki/themes/dark-plus.js +1 -0
  1141. package/src/shiki/themes/dracula-soft.js +1 -0
  1142. package/src/shiki/themes/dracula.js +1 -0
  1143. package/src/shiki/themes/everforest-dark.js +1 -0
  1144. package/src/shiki/themes/everforest-light.js +1 -0
  1145. package/src/shiki/themes/github-dark-default.js +1 -0
  1146. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1147. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1148. package/src/shiki/themes/github-dark.js +1 -0
  1149. package/src/shiki/themes/github-light-default.js +1 -0
  1150. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1151. package/src/shiki/themes/github-light.js +1 -0
  1152. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1153. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1154. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1155. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1156. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1157. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1158. package/src/shiki/themes/houston.js +1 -0
  1159. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1160. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1161. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1162. package/src/shiki/themes/laserwave.js +1 -0
  1163. package/src/shiki/themes/light-plus.js +1 -0
  1164. package/src/shiki/themes/material-theme-darker.js +1 -0
  1165. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1166. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1167. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1168. package/src/shiki/themes/material-theme.js +1 -0
  1169. package/src/shiki/themes/min-dark.js +1 -0
  1170. package/src/shiki/themes/min-light.js +1 -0
  1171. package/src/shiki/themes/monokai.js +1 -0
  1172. package/src/shiki/themes/night-owl.js +1 -0
  1173. package/src/shiki/themes/nord.js +1 -0
  1174. package/src/shiki/themes/one-dark-pro.js +1 -0
  1175. package/src/shiki/themes/one-light.js +1 -0
  1176. package/src/shiki/themes/plastic.js +1 -0
  1177. package/src/shiki/themes/poimandres.js +1 -0
  1178. package/src/shiki/themes/red.js +1 -0
  1179. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1180. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1181. package/src/shiki/themes/rose-pine.js +1 -0
  1182. package/src/shiki/themes/slack-dark.js +1 -0
  1183. package/src/shiki/themes/slack-ochin.js +1 -0
  1184. package/src/shiki/themes/snazzy-light.js +1 -0
  1185. package/src/shiki/themes/solarized-dark.js +1 -0
  1186. package/src/shiki/themes/solarized-light.js +1 -0
  1187. package/src/shiki/themes/synthwave-84.js +1 -0
  1188. package/src/shiki/themes/tokyo-night.js +1 -0
  1189. package/src/shiki/themes/vesper.js +1 -0
  1190. package/src/shiki/themes/vitesse-black.js +1 -0
  1191. package/src/shiki/themes/vitesse-dark.js +1 -0
  1192. package/src/shiki/themes/vitesse-light.js +1 -0
  1193. package/client.d.ts +0 -8
  1194. package/dist/app/tailwind.d.ts +0 -4
  1195. package/dist/app/tailwind.js +0 -83
  1196. package/dist/app/tailwind.js.map +0 -1
  1197. package/dist/config/common.d.ts +0 -11
  1198. package/dist/config/common.js +0 -2
  1199. package/dist/config/common.js.map +0 -1
  1200. package/dist/config/validators/common.d.ts +0 -5538
  1201. package/dist/config/validators/common.js +0 -331
  1202. package/dist/config/validators/common.js.map +0 -1
  1203. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1204. package/dist/lib/components/SlotletProvider.js +0 -18
  1205. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1206. package/dist/lib/components/context/PluginSystem.js +0 -2
  1207. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1208. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1209. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  1210. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  1211. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  1212. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  1213. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  1214. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  1215. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  1216. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  1217. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  1218. package/dist/vite/pagefind.d.ts +0 -4
  1219. package/dist/vite/pagefind.js +0 -15
  1220. package/dist/vite/pagefind.js.map +0 -1
  1221. package/dist/vite/plugin-docs.test.js +0 -22
  1222. package/dist/vite/plugin-docs.test.js.map +0 -1
  1223. package/dist/zuplo/env.d.ts +0 -7
  1224. package/dist/zuplo/env.js +0 -12
  1225. package/dist/zuplo/env.js.map +0 -1
  1226. package/lib/AuthenticationPlugin-CiO1FM6Q.js +0 -58
  1227. package/lib/AuthenticationPlugin-CiO1FM6Q.js.map +0 -1
  1228. package/lib/Dialog-DIKGQxQc.js +0 -83
  1229. package/lib/Dialog-DIKGQxQc.js.map +0 -1
  1230. package/lib/Markdown-DePfm7oQ.js +0 -15264
  1231. package/lib/Markdown-DePfm7oQ.js.map +0 -1
  1232. package/lib/MdxPage-BN6l6zXL.js +0 -201
  1233. package/lib/MdxPage-BN6l6zXL.js.map +0 -1
  1234. package/lib/OasProvider-BSuptFK-.js +0 -34
  1235. package/lib/OperationList-DOcfDmJP.js +0 -5217
  1236. package/lib/OperationList-DOcfDmJP.js.map +0 -1
  1237. package/lib/Select-Dqtcn53H.js +0 -223
  1238. package/lib/Select-Dqtcn53H.js.map +0 -1
  1239. package/lib/SlotletProvider-DdtIOUi6.js +0 -221
  1240. package/lib/SlotletProvider-DdtIOUi6.js.map +0 -1
  1241. package/lib/Spinner-1KrEmx1V.js +0 -51
  1242. package/lib/Spinner-1KrEmx1V.js.map +0 -1
  1243. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1244. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1245. package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +0 -1
  1246. package/lib/circular-v7K6lDDh.js.map +0 -1
  1247. package/lib/cn-qaFjX9_3.js.map +0 -1
  1248. package/lib/context-DLCwaMXN.js +0 -22
  1249. package/lib/context-DLCwaMXN.js.map +0 -1
  1250. package/lib/createServer-DmusVVsi.js.map +0 -1
  1251. package/lib/hook-CN__aZIt.js +0 -1464
  1252. package/lib/hook-CN__aZIt.js.map +0 -1
  1253. package/lib/index-BTbP6Lgf.js +0 -2103
  1254. package/lib/index-BTbP6Lgf.js.map +0 -1
  1255. package/lib/index-Dl3Yl0yb.js.map +0 -1
  1256. package/lib/index-gQD2h1wX.js +0 -447
  1257. package/lib/index-gQD2h1wX.js.map +0 -1
  1258. package/lib/index.esm--gIChbWs.js +0 -1207
  1259. package/lib/index.esm--gIChbWs.js.map +0 -1
  1260. package/lib/index.esm-CQHE3GEU.js +0 -691
  1261. package/lib/invariant-Caa8-XvF.js +0 -26
  1262. package/lib/joinUrl-10po2Jdj.js +0 -20
  1263. package/lib/joinUrl-10po2Jdj.js.map +0 -1
  1264. package/lib/jsx-runtime-CYK1ROHF.js +0 -446
  1265. package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
  1266. package/lib/mutation-EclmI0is.js +0 -208
  1267. package/lib/mutation-EclmI0is.js.map +0 -1
  1268. package/lib/post-processors/removeExtensions.js.map +0 -1
  1269. package/lib/post-processors/removeParameters.js +0 -48
  1270. package/lib/post-processors/removeParameters.js.map +0 -1
  1271. package/lib/post-processors/removePaths.js +0 -28
  1272. package/lib/post-processors/removePaths.js.map +0 -1
  1273. package/lib/post-processors/traverse.js +0 -15
  1274. package/lib/post-processors/traverse.js.map +0 -1
  1275. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1276. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1277. package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
  1278. package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
  1279. package/lib/prism-java.min-BpvsOuIa.js +0 -35
  1280. package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
  1281. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1282. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1283. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1284. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1285. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1286. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1287. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1288. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1289. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1290. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1291. package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
  1292. package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
  1293. package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
  1294. package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
  1295. package/lib/useExposedProps-RIvey2Oy.js.map +0 -1
  1296. package/lib/useScrollToAnchor-RyqO3lj4.js +0 -290
  1297. package/lib/useScrollToAnchor-RyqO3lj4.js.map +0 -1
  1298. package/lib/zudoku.css +0 -1
  1299. package/src/app/tailwind.ts +0 -89
  1300. package/src/lib/components/SlotletProvider.tsx +0 -55
  1301. package/src/lib/components/context/PluginSystem.ts +0 -0
  1302. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  1303. package/src/lib/ui/Stepper.css +0 -43
  1304. /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
  1305. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1306. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
  1307. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
  1308. /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
  1309. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  1310. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  1311. /package/dist/{vite/plugin-docs.test.d.ts → lib/util/url.test.d.ts} +0 -0
  1312. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -1,1398 +1,37 @@
1
- var ut = Object.defineProperty;
2
- var xe = (t) => {
3
- throw TypeError(t);
4
- };
5
- var dt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
- var j = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), ve = (t, e, r) => e.has(t) || xe("Cannot " + r);
7
- var l = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), w = (t, e, r) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), y = (t, e, r, n) => (ve(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
8
- var _ = (t, e, r, n) => ({
9
- set _(a) {
10
- y(t, e, a, r);
11
- },
12
- get _() {
13
- return l(t, e, n);
14
- }
15
- });
16
- import { a as Fe, H as le } from "./index.esm-CQHE3GEU.js";
17
- import { z as He, J as ht } from "./index-DwT-v3zK.js";
18
- import { a as ft, u as te, m as gt, O as ce, R as mt, S as pt, h as ue, f as xt, L as de } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
19
- import { S as Be, q as Le, Q as vt, n as P, r as ye, t as be, v as M, w as yt, x as bt, y as jt, z as wt, A as je, B as we, C as Pt, h as Pe, D as Ce, E as Ct, f as kt, k as L, a as E, m as St, F as ze, G as Ke, H as Nt, j as ae, b as Dt, Z as Et, I as Mt, J as Ot } from "./hook-CN__aZIt.js";
20
- import { j as s } from "./jsx-runtime-CYK1ROHF.js";
21
- import { D as At, a as qt, d as Tt, c as It, e as Qt } from "./Dialog-DIKGQxQc.js";
22
- import { Z as $e } from "./invariant-Caa8-XvF.js";
23
- import * as U from "react";
24
- import Rt, { useRef as V, useEffect as I, createContext as he, StrictMode as Ue, useState as z, useCallback as Ft, Suspense as fe, memo as Ze, forwardRef as Ht, Component as Bt, createElement as ke, useMemo as re, useContext as Lt } from "react";
25
- import { E as Ye, S, a as zt, R as Kt } from "./SlotletProvider-DdtIOUi6.js";
26
- import { Button as $t } from "./ui/Button.js";
27
- import { Callout as Ut } from "./ui/Callout.js";
28
- import { M as Zt } from "./mutation-EclmI0is.js";
29
- import * as Yt from "react-dom";
30
- import { C as ge } from "./ClientOnly-E7hGysn1.js";
31
- import { CircleXIcon as Vt, SearchIcon as Xt, SunIcon as Gt, MoonIcon as _t, MenuIcon as Wt, PanelLeftIcon as Jt } from "lucide-react";
32
- import { Drawer as Ve, DrawerTrigger as Xe, DrawerContent as Ge, DrawerTitle as _e } from "./ui/Drawer.js";
33
- import { c as Q } from "./cn-qaFjX9_3.js";
34
- import { s as er, S as Se, a as tr, M as rr, u as sr } from "./useScrollToAnchor-RyqO3lj4.js";
35
- import { u as nr, H as ar, P as ir, a as or, V as lr, M as cr } from "./Markdown-DePfm7oQ.js";
36
- import { B as ie, S as We } from "./Spinner-1KrEmx1V.js";
37
- import { isSearchPlugin as ur, isProfileMenuPlugin as dr, isNavigationPlugin as hr, isEventConsumerPlugin as fr, needsInitialization as gr, isApiIdentityPlugin as mr, isMdxProviderPlugin as pr, hasHead as xr } from "./zudoku.plugins.js";
38
- import { DropdownMenu as vr, DropdownMenuTrigger as yr, DropdownMenuContent as br, DropdownMenuLabel as jr, DropdownMenuSeparator as se, DropdownMenuSub as wr, DropdownMenuSubTrigger as Pr, DropdownMenuPortal as Cr, DropdownMenuSubContent as kr, DropdownMenuItem as Sr } from "./ui/DropdownMenu.js";
39
- import { j as Ne } from "./joinUrl-10po2Jdj.js";
40
- import { VisuallyHidden as Je } from "@radix-ui/react-visually-hidden";
41
- import { a as Nr } from "./index-CPNSgwSb.js";
42
- import { C as Dr } from "./CategoryHeading-DpB47wvk.js";
43
- import { o as Er } from "./objectEntries-yMIkr2mI.js";
44
- var D, Ie, Mr = (Ie = class extends Be {
45
- constructor(e = {}) {
46
- super();
47
- w(this, D);
48
- this.config = e, y(this, D, /* @__PURE__ */ new Map());
49
- }
50
- build(e, r, n) {
51
- const a = r.queryKey, i = r.queryHash ?? Le(a, r);
52
- let o = this.get(i);
53
- return o || (o = new vt({
54
- client: e,
55
- queryKey: a,
56
- queryHash: i,
57
- options: e.defaultQueryOptions(r),
58
- state: n,
59
- defaultOptions: e.getQueryDefaults(a)
60
- }), this.add(o)), o;
61
- }
62
- add(e) {
63
- l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
64
- type: "added",
65
- query: e
66
- }));
67
- }
68
- remove(e) {
69
- const r = l(this, D).get(e.queryHash);
70
- r && (e.destroy(), r === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
71
- }
72
- clear() {
73
- P.batch(() => {
74
- this.getAll().forEach((e) => {
75
- this.remove(e);
76
- });
77
- });
78
- }
79
- get(e) {
80
- return l(this, D).get(e);
81
- }
82
- getAll() {
83
- return [...l(this, D).values()];
84
- }
85
- find(e) {
86
- const r = { exact: !0, ...e };
87
- return this.getAll().find(
88
- (n) => ye(r, n)
89
- );
90
- }
91
- findAll(e = {}) {
92
- const r = this.getAll();
93
- return Object.keys(e).length > 0 ? r.filter((n) => ye(e, n)) : r;
94
- }
95
- notify(e) {
96
- P.batch(() => {
97
- this.listeners.forEach((r) => {
98
- r(e);
99
- });
100
- });
101
- }
102
- onFocus() {
103
- P.batch(() => {
104
- this.getAll().forEach((e) => {
105
- e.onFocus();
106
- });
107
- });
108
- }
109
- onOnline() {
110
- P.batch(() => {
111
- this.getAll().forEach((e) => {
112
- e.onOnline();
113
- });
114
- });
115
- }
116
- }, D = new WeakMap(), Ie), O, k, Y, Qe, Or = (Qe = class extends Be {
117
- constructor(e = {}) {
118
- super();
119
- w(this, O);
120
- w(this, k);
121
- w(this, Y);
122
- this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, k, /* @__PURE__ */ new Map()), y(this, Y, 0);
123
- }
124
- build(e, r, n) {
125
- const a = new Zt({
126
- mutationCache: this,
127
- mutationId: ++_(this, Y)._,
128
- options: e.defaultMutationOptions(r),
129
- state: n
130
- });
131
- return this.add(a), a;
132
- }
133
- add(e) {
134
- l(this, O).add(e);
135
- const r = W(e);
136
- if (typeof r == "string") {
137
- const n = l(this, k).get(r);
138
- n ? n.push(e) : l(this, k).set(r, [e]);
139
- }
140
- this.notify({ type: "added", mutation: e });
141
- }
142
- remove(e) {
143
- if (l(this, O).delete(e)) {
144
- const r = W(e);
145
- if (typeof r == "string") {
146
- const n = l(this, k).get(r);
147
- if (n)
148
- if (n.length > 1) {
149
- const a = n.indexOf(e);
150
- a !== -1 && n.splice(a, 1);
151
- } else n[0] === e && l(this, k).delete(r);
152
- }
153
- }
154
- this.notify({ type: "removed", mutation: e });
155
- }
156
- canRun(e) {
157
- const r = W(e);
158
- if (typeof r == "string") {
159
- const n = l(this, k).get(r), a = n == null ? void 0 : n.find(
160
- (i) => i.state.status === "pending"
161
- );
162
- return !a || a === e;
163
- } else
164
- return !0;
165
- }
166
- runNext(e) {
167
- var n;
168
- const r = W(e);
169
- if (typeof r == "string") {
170
- const a = (n = l(this, k).get(r)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
171
- return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
172
- } else
173
- return Promise.resolve();
174
- }
175
- clear() {
176
- P.batch(() => {
177
- l(this, O).forEach((e) => {
178
- this.notify({ type: "removed", mutation: e });
179
- }), l(this, O).clear(), l(this, k).clear();
180
- });
181
- }
182
- getAll() {
183
- return Array.from(l(this, O));
184
- }
185
- find(e) {
186
- const r = { exact: !0, ...e };
187
- return this.getAll().find(
188
- (n) => be(r, n)
189
- );
190
- }
191
- findAll(e = {}) {
192
- return this.getAll().filter((r) => be(e, r));
193
- }
194
- notify(e) {
195
- P.batch(() => {
196
- this.listeners.forEach((r) => {
197
- r(e);
198
- });
199
- });
200
- }
201
- resumePausedMutations() {
202
- const e = this.getAll().filter((r) => r.state.isPaused);
203
- return P.batch(
204
- () => Promise.all(
205
- e.map((r) => r.continue().catch(M))
206
- )
207
- );
208
- }
209
- }, O = new WeakMap(), k = new WeakMap(), Y = new WeakMap(), Qe);
210
- function W(t) {
211
- var e;
212
- return (e = t.options.scope) == null ? void 0 : e.id;
213
- }
214
- function De(t) {
215
- return {
216
- onFetch: (e, r) => {
217
- var m, g, h, f, v;
218
- const n = e.options, a = (h = (g = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((f = e.state.data) == null ? void 0 : f.pages) || [], o = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
219
- let u = { pages: [], pageParams: [] }, d = 0;
220
- const c = async () => {
221
- let x = !1;
222
- const C = (b) => {
223
- Object.defineProperty(b, "signal", {
224
- enumerable: !0,
225
- get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
226
- x = !0;
227
- }), e.signal)
228
- });
229
- }, X = yt(e.options, e.fetchOptions), K = async (b, N, $) => {
230
- if (x)
231
- return Promise.reject();
232
- if (N == null && b.pages.length)
233
- return Promise.resolve(b);
234
- const G = {
235
- client: e.client,
236
- queryKey: e.queryKey,
237
- pageParam: N,
238
- direction: $ ? "backward" : "forward",
239
- meta: e.options.meta
240
- };
241
- C(G);
242
- const ct = await X(
243
- G
244
- ), { maxPages: me } = e.options, pe = $ ? bt : jt;
245
- return {
246
- pages: pe(b.pages, ct, me),
247
- pageParams: pe(b.pageParams, N, me)
248
- };
249
- };
250
- if (a && i.length) {
251
- const b = a === "backward", N = b ? Ar : Ee, $ = {
252
- pages: i,
253
- pageParams: o
254
- }, G = N(n, $);
255
- u = await K($, G, b);
256
- } else {
257
- const b = t ?? i.length;
258
- do {
259
- const N = d === 0 ? o[0] ?? n.initialPageParam : Ee(n, u);
260
- if (d > 0 && N == null)
261
- break;
262
- u = await K(u, N), d++;
263
- } while (d < b);
264
- }
265
- return u;
266
- };
267
- e.options.persister ? e.fetchFn = () => {
268
- var x, C;
269
- return (C = (x = e.options).persister) == null ? void 0 : C.call(
270
- x,
271
- c,
272
- {
273
- client: e.client,
274
- queryKey: e.queryKey,
275
- meta: e.options.meta,
276
- signal: e.signal
277
- },
278
- r
279
- );
280
- } : e.fetchFn = c;
281
- }
282
- };
283
- }
284
- function Ee(t, { pages: e, pageParams: r }) {
285
- const n = e.length - 1;
286
- return e.length > 0 ? t.getNextPageParam(
287
- e[n],
288
- e,
289
- r[n],
290
- r
291
- ) : void 0;
292
- }
293
- function Ar(t, { pages: e, pageParams: r }) {
294
- var n;
295
- return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, r[0], r) : void 0;
296
- }
297
- var p, A, q, R, F, T, H, B, Re, qr = (Re = class {
298
- constructor(t = {}) {
299
- w(this, p);
300
- w(this, A);
301
- w(this, q);
302
- w(this, R);
303
- w(this, F);
304
- w(this, T);
305
- w(this, H);
306
- w(this, B);
307
- y(this, p, t.queryCache || new Mr()), y(this, A, t.mutationCache || new Or()), y(this, q, t.defaultOptions || {}), y(this, R, /* @__PURE__ */ new Map()), y(this, F, /* @__PURE__ */ new Map()), y(this, T, 0);
308
- }
309
- mount() {
310
- _(this, T)._++, l(this, T) === 1 && (y(this, H, wt.subscribe(async (t) => {
311
- t && (await this.resumePausedMutations(), l(this, p).onFocus());
312
- })), y(this, B, je.subscribe(async (t) => {
313
- t && (await this.resumePausedMutations(), l(this, p).onOnline());
314
- })));
315
- }
316
- unmount() {
317
- var t, e;
318
- _(this, T)._--, l(this, T) === 0 && ((t = l(this, H)) == null || t.call(this), y(this, H, void 0), (e = l(this, B)) == null || e.call(this), y(this, B, void 0));
319
- }
320
- isFetching(t) {
321
- return l(this, p).findAll({ ...t, fetchStatus: "fetching" }).length;
322
- }
323
- isMutating(t) {
324
- return l(this, A).findAll({ ...t, status: "pending" }).length;
325
- }
326
- getQueryData(t) {
327
- var r;
328
- const e = this.defaultQueryOptions({ queryKey: t });
329
- return (r = l(this, p).get(e.queryHash)) == null ? void 0 : r.state.data;
330
- }
331
- ensureQueryData(t) {
332
- const e = this.defaultQueryOptions(t), r = l(this, p).build(this, e), n = r.state.data;
333
- return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(we(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(n));
334
- }
335
- getQueriesData(t) {
336
- return l(this, p).findAll(t).map(({ queryKey: e, state: r }) => {
337
- const n = r.data;
338
- return [e, n];
339
- });
340
- }
341
- setQueryData(t, e, r) {
342
- const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
343
- n.queryHash
344
- ), i = a == null ? void 0 : a.state.data, o = Pt(e, i);
345
- if (o !== void 0)
346
- return l(this, p).build(this, n).setData(o, { ...r, manual: !0 });
347
- }
348
- setQueriesData(t, e, r) {
349
- return P.batch(
350
- () => l(this, p).findAll(t).map(({ queryKey: n }) => [
351
- n,
352
- this.setQueryData(n, e, r)
353
- ])
354
- );
355
- }
356
- getQueryState(t) {
357
- var r;
358
- const e = this.defaultQueryOptions({ queryKey: t });
359
- return (r = l(this, p).get(
360
- e.queryHash
361
- )) == null ? void 0 : r.state;
362
- }
363
- removeQueries(t) {
364
- const e = l(this, p);
365
- P.batch(() => {
366
- e.findAll(t).forEach((r) => {
367
- e.remove(r);
368
- });
369
- });
370
- }
371
- resetQueries(t, e) {
372
- const r = l(this, p), n = {
373
- type: "active",
374
- ...t
375
- };
376
- return P.batch(() => (r.findAll(t).forEach((a) => {
377
- a.reset();
378
- }), this.refetchQueries(n, e)));
379
- }
380
- cancelQueries(t, e = {}) {
381
- const r = { revert: !0, ...e }, n = P.batch(
382
- () => l(this, p).findAll(t).map((a) => a.cancel(r))
383
- );
384
- return Promise.all(n).then(M).catch(M);
385
- }
386
- invalidateQueries(t, e = {}) {
387
- return P.batch(() => {
388
- if (l(this, p).findAll(t).forEach((n) => {
389
- n.invalidate();
390
- }), (t == null ? void 0 : t.refetchType) === "none")
391
- return Promise.resolve();
392
- const r = {
393
- ...t,
394
- type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
395
- };
396
- return this.refetchQueries(r, e);
397
- });
398
- }
399
- refetchQueries(t, e = {}) {
400
- const r = {
401
- ...e,
402
- cancelRefetch: e.cancelRefetch ?? !0
403
- }, n = P.batch(
404
- () => l(this, p).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
405
- let i = a.fetch(void 0, r);
406
- return r.throwOnError || (i = i.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
407
- })
408
- );
409
- return Promise.all(n).then(M);
410
- }
411
- fetchQuery(t) {
412
- const e = this.defaultQueryOptions(t);
413
- e.retry === void 0 && (e.retry = !1);
414
- const r = l(this, p).build(this, e);
415
- return r.isStaleByTime(
416
- we(e.staleTime, r)
417
- ) ? r.fetch(e) : Promise.resolve(r.state.data);
418
- }
419
- prefetchQuery(t) {
420
- return this.fetchQuery(t).then(M).catch(M);
421
- }
422
- fetchInfiniteQuery(t) {
423
- return t.behavior = De(t.pages), this.fetchQuery(t);
424
- }
425
- prefetchInfiniteQuery(t) {
426
- return this.fetchInfiniteQuery(t).then(M).catch(M);
427
- }
428
- ensureInfiniteQueryData(t) {
429
- return t.behavior = De(t.pages), this.ensureQueryData(t);
430
- }
431
- resumePausedMutations() {
432
- return je.isOnline() ? l(this, A).resumePausedMutations() : Promise.resolve();
433
- }
434
- getQueryCache() {
435
- return l(this, p);
436
- }
437
- getMutationCache() {
438
- return l(this, A);
439
- }
440
- getDefaultOptions() {
441
- return l(this, q);
442
- }
443
- setDefaultOptions(t) {
444
- y(this, q, t);
445
- }
446
- setQueryDefaults(t, e) {
447
- l(this, R).set(Pe(t), {
448
- queryKey: t,
449
- defaultOptions: e
450
- });
451
- }
452
- getQueryDefaults(t) {
453
- const e = [...l(this, R).values()], r = {};
454
- return e.forEach((n) => {
455
- Ce(t, n.queryKey) && Object.assign(r, n.defaultOptions);
456
- }), r;
457
- }
458
- setMutationDefaults(t, e) {
459
- l(this, F).set(Pe(t), {
460
- mutationKey: t,
461
- defaultOptions: e
462
- });
463
- }
464
- getMutationDefaults(t) {
465
- const e = [...l(this, F).values()];
466
- let r = {};
467
- return e.forEach((n) => {
468
- Ce(t, n.mutationKey) && (r = { ...r, ...n.defaultOptions });
469
- }), r;
470
- }
471
- defaultQueryOptions(t) {
472
- if (t._defaulted)
473
- return t;
474
- const e = {
475
- ...l(this, q).queries,
476
- ...this.getQueryDefaults(t.queryKey),
477
- ...t,
478
- _defaulted: !0
479
- };
480
- return e.queryHash || (e.queryHash = Le(
481
- e.queryKey,
482
- e
483
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Ct && (e.enabled = !1), e;
484
- }
485
- defaultMutationOptions(t) {
486
- return t != null && t._defaulted ? t : {
487
- ...l(this, q).mutations,
488
- ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
489
- ...t,
490
- _defaulted: !0
491
- };
492
- }
493
- clear() {
494
- l(this, p).clear(), l(this, A).clear();
495
- }
496
- }, p = new WeakMap(), A = new WeakMap(), q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), T = new WeakMap(), H = new WeakMap(), B = new WeakMap(), Re);
497
- function Tr(t) {
498
- return t;
499
- }
500
- function Me(t, e, r) {
501
- var d, c;
502
- if (typeof e != "object" || e === null)
503
- return;
504
- const n = t.getMutationCache(), a = t.getQueryCache(), i = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Tr, o = e.mutations || [], u = e.queries || [];
505
- o.forEach(({ state: m, ...g }) => {
506
- var h, f;
507
- n.build(
508
- t,
509
- {
510
- ...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
511
- ...(f = r == null ? void 0 : r.defaultOptions) == null ? void 0 : f.mutations,
512
- ...g
513
- },
514
- m
515
- );
516
- }), u.forEach(({ queryKey: m, state: g, queryHash: h, meta: f, promise: v }) => {
517
- var X, K;
518
- let x = a.get(h);
519
- const C = g.data === void 0 ? g.data : i(g.data);
520
- if (x) {
521
- if (x.state.dataUpdatedAt < g.dataUpdatedAt) {
522
- const { fetchStatus: b, ...N } = g;
523
- x.setState({
524
- ...N,
525
- data: C
526
- });
527
- }
528
- } else
529
- x = a.build(
530
- t,
531
- {
532
- ...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
533
- ...(K = r == null ? void 0 : r.defaultOptions) == null ? void 0 : K.queries,
534
- queryKey: m,
535
- queryHash: h,
536
- meta: f
537
- },
538
- // Reset fetch status to idle to avoid
539
- // query being stuck in fetching state upon hydration
540
- {
541
- ...g,
542
- data: C,
543
- fetchStatus: "idle"
544
- }
545
- );
546
- if (v) {
547
- const b = Promise.resolve(v).then(i);
548
- x.fetch(void 0, { initialPromise: b });
549
- }
550
- });
551
- }
552
- var Oe = (t, e) => typeof t == "object" && t !== null && e in t, Ir = ({
553
- children: t,
554
- options: e = {},
555
- state: r,
556
- queryClient: n
557
- }) => {
558
- const a = kt(n), [i, o] = U.useState(), u = U.useRef(e);
559
- return u.current = e, U.useMemo(() => {
560
- if (r) {
561
- if (typeof r != "object")
562
- return;
563
- const d = a.getQueryCache(), c = r.queries || [], m = [], g = [];
564
- for (const h of c) {
565
- const f = d.get(h.queryHash);
566
- if (!f)
567
- m.push(h);
568
- else {
569
- const v = h.state.dataUpdatedAt > f.state.dataUpdatedAt || // RSC special serialized then-able chunks
570
- Oe(h.promise, "status") && Oe(f.promise, "status") && h.promise.status !== f.promise.status, x = i == null ? void 0 : i.find(
571
- (C) => C.queryHash === h.queryHash
572
- );
573
- v && (!x || h.state.dataUpdatedAt > x.state.dataUpdatedAt) && g.push(h);
574
- }
575
- }
576
- m.length > 0 && Me(a, { queries: m }, u.current), g.length > 0 && o(
577
- (h) => h ? [...h, ...g] : g
578
- );
579
- }
580
- }, [a, i, r]), U.useEffect(() => {
581
- i && (Me(a, { queries: i }, u.current), o(void 0));
582
- }, [a, i]), t;
583
- };
584
- const Qr = (t) => {
585
- const e = V(t);
586
- return e.current = t, I(() => {
587
- e.current = t;
588
- }, [t]), e;
589
- }, Rr = () => {
590
- var o;
591
- const t = L(), e = E(), r = ft(), n = te(), a = Qr(n.pathname), i = (o = e.options.protectedRoutes) == null ? void 0 : o.some(
592
- (u) => gt({ path: u, end: !0 }, n.pathname)
593
- );
594
- if (St({
595
- queryKey: ["login-redirect"],
596
- queryFn: async () => {
597
- var u;
598
- return await new Promise((d) => setTimeout(d, 1200)), await ((u = e.authentication) == null ? void 0 : u.signIn({
599
- redirectTo: a.current
600
- })), !0;
601
- },
602
- enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
603
- }), i && !t.isAuthenticated)
604
- return /* @__PURE__ */ s.jsx(
605
- At,
606
- {
607
- open: !0,
608
- onOpenChange: (u) => {
609
- u || r(-1);
610
- },
611
- children: /* @__PURE__ */ s.jsxs(qt, { children: [
612
- /* @__PURE__ */ s.jsx(Tt, { children: /* @__PURE__ */ s.jsx(It, { children: "Logging you in..." }) }),
613
- /* @__PURE__ */ s.jsx(Qt, { children: "Please wait while we log you in." })
614
- ] })
615
- }
616
- );
617
- if (i && !t.isAuthEnabled)
618
- throw new $e("Authentication is not enabled", {
619
- title: "Authentication is not enabled",
620
- developerHint: "To use protectedRoutes you need authentication to be enabled"
621
- });
622
- return /* @__PURE__ */ s.jsx(ce, {});
623
- };
624
- function Fr({ error: t }) {
625
- return /* @__PURE__ */ s.jsx(Ye, { error: t });
626
- }
627
- /**
628
- * react-router v7.1.5
629
- *
630
- * Copyright (c) Remix Software Inc.
631
- *
632
- * This source code is licensed under the MIT license found in the
633
- * LICENSE.md file in the root directory of this source tree.
634
- *
635
- * @license MIT
636
- */
637
- function Hr(t) {
638
- return /* @__PURE__ */ U.createElement(mt, { flushSync: Yt.flushSync, ...t });
639
- }
640
- const oe = he({ stagger: !1 }), Br = new qr({
641
- defaultOptions: {
642
- queries: {
643
- staleTime: 1e3 * 60 * 5
644
- }
645
- }
646
- }), Lr = ({
647
- router: t,
648
- hydrate: e = !1
649
- }) => /* @__PURE__ */ s.jsx(Ue, { children: /* @__PURE__ */ s.jsx(ze, { client: Br, children: /* @__PURE__ */ s.jsx(Ir, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Hr, { router: t }) }) }) }) }) }), zr = ({
650
- router: t,
651
- context: e,
652
- queryClient: r,
653
- helmetContext: n
654
- }) => /* @__PURE__ */ s.jsx(Ue, { children: /* @__PURE__ */ s.jsx(ze, { client: r, children: /* @__PURE__ */ s.jsx(Fe, { context: n, children: /* @__PURE__ */ s.jsx(pt, { router: t, context: e }) }) }) });
655
- var Z = { exports: {} }, Kr = Z.exports, Ae;
656
- function $r() {
657
- return Ae || (Ae = 1, function(t, e) {
658
- (function(r, n) {
659
- n(e, Rt);
660
- })(Kr, function(r, n) {
661
- const a = {
662
- delay: 500,
663
- minDuration: 200,
664
- ssr: !0
665
- };
666
- function i() {
667
- const [u, d] = n.useState(!0);
668
- return n.useEffect(() => {
669
- d(!1);
670
- }, []), u;
671
- }
672
- function o(u, d) {
673
- d = Object.assign({}, a, d);
674
- const c = i() && d.ssr, m = c && u ? "DISPLAY" : "IDLE", [g, h] = n.useState(m), f = n.useRef(null);
675
- return n.useEffect(() => {
676
- if (u && (g === "IDLE" || c)) {
677
- clearTimeout(f.current);
678
- const v = c ? 0 : d.delay;
679
- f.current = setTimeout(() => {
680
- if (!u)
681
- return h("IDLE");
682
- f.current = setTimeout(() => {
683
- h("EXPIRE");
684
- }, d.minDuration), h("DISPLAY");
685
- }, v), c || h("DELAY");
686
- }
687
- !u && g !== "DISPLAY" && (clearTimeout(f.current), h("IDLE"));
688
- }, [u, g, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(f.current), []), g === "DISPLAY" || g === "EXPIRE";
689
- }
690
- r.defaultOptions = a, r.useSpinDelay = o;
691
- });
692
- }(Z, Z.exports)), Z.exports;
693
- }
694
- var Ur = $r();
695
- const Zr = () => {
696
- const t = te(), e = V(t.pathname);
697
- I(() => {
698
- const r = e.current !== t.pathname, n = t.hash !== "";
699
- r && !n && window.scrollTo(0, 0), e.current = t.pathname;
700
- }, [t.pathname, t.hash]);
701
- };
702
- function Yr({
703
- className: t,
704
- ...e
705
- }) {
706
- return /* @__PURE__ */ s.jsx(
707
- "div",
708
- {
709
- className: Q("animate-pulse rounded-md bg-muted", t),
710
- ...e
711
- }
712
- );
713
- }
714
- const qe = {
715
- info: "bg-blue-500",
716
- note: "bg-gray-500",
717
- tip: "bg-green-600",
718
- caution: "bg-orange-500",
719
- danger: "bg-rose-500"
720
- }, Vr = () => {
721
- const { page: t } = E(), [e, r] = z(!0);
722
- if (!(t != null && t.banner) || !e)
723
- return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
724
- const n = t.banner.color && t.banner.color in qe ? qe[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
725
- return /* @__PURE__ */ s.jsxs(
726
- "div",
727
- {
728
- className: Q(
729
- "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
730
- n
731
- ),
732
- "data-pagefind-ignore": "all",
733
- style: a,
734
- children: [
735
- /* @__PURE__ */ s.jsx("div", { className: "w-full", children: t.banner.message }),
736
- t.banner.dismissible && /* @__PURE__ */ s.jsx(
737
- "button",
738
- {
739
- type: "button",
740
- className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
741
- onClick: () => r(!1),
742
- children: /* @__PURE__ */ s.jsx(Vt, { size: 16 })
743
- }
744
- )
745
- ]
746
- }
747
- );
748
- }, et = ({ className: t }) => {
749
- const e = E(), [r, n] = z(!1), a = Ft(() => n(!1), []);
750
- I(() => {
751
- if (r)
752
- return;
753
- function o(u) {
754
- u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
755
- }
756
- return window.addEventListener("keydown", o), () => {
757
- window.removeEventListener("keydown", o);
758
- };
759
- }, [r, n]);
760
- const i = e.plugins.find(ur);
761
- return i ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
762
- /* @__PURE__ */ s.jsxs(
763
- "button",
764
- {
765
- type: "button",
766
- onClick: () => n(!0),
767
- className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
768
- children: [
769
- /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
770
- /* @__PURE__ */ s.jsx(Xt, { size: 14 }),
771
- "Search"
772
- ] }),
773
- /* @__PURE__ */ s.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
774
- ]
775
- }
776
- ),
777
- /* @__PURE__ */ s.jsx(fe, { fallback: null, children: i.renderSearch({
778
- isOpen: r,
779
- onClose: a
780
- }) })
781
- ] }) : null;
782
- }, tt = () => {
783
- const { resolvedTheme: t, setTheme: e } = He();
784
- return /* @__PURE__ */ s.jsx(ge, { fallback: /* @__PURE__ */ s.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
785
- "button",
786
- {
787
- type: "button",
788
- className: "flex rounded-full border p-0.5 gap-0.5 group",
789
- onClick: () => e(t === "dark" ? "light" : "dark"),
790
- "aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
791
- children: [
792
- /* @__PURE__ */ s.jsx(
793
- "div",
794
- {
795
- className: Q(
796
- "border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
797
- t === "light" && "border-border bg-muted",
798
- t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
799
- ),
800
- children: /* @__PURE__ */ s.jsx(Gt, { size: 16 })
801
- }
802
- ),
803
- /* @__PURE__ */ s.jsx(
804
- "div",
805
- {
806
- className: Q(
807
- "border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
808
- t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
809
- t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
810
- ),
811
- children: /* @__PURE__ */ s.jsx(_t, { size: 16 })
812
- }
813
- )
814
- ]
815
- }
816
- ) });
817
- }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Xr = () => {
818
- const { topNavigation: t } = E(), { isAuthenticated: e } = L();
819
- return t.length <= 1 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(fe, { children: /* @__PURE__ */ s.jsxs("div", { className: " items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
820
- /* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(st, { ...r }) }, r.id)) }) }),
821
- /* @__PURE__ */ s.jsx(S, { name: "top-navigation-side" })
822
- ] }) });
823
- }, st = ({
824
- id: t,
825
- label: e,
826
- default: r
827
- }) => {
828
- var c;
829
- const { sidebars: n } = E(), a = n[t], i = Ke(), o = !!ue().location, u = ((c = i.topNavItem) == null ? void 0 : c.id) === t && !o, d = r ?? (a ? Nt(a, (m) => {
830
- if (m.type === "doc") return ae(m.id);
831
- }) : ae(t));
832
- if (!d)
833
- throw new $e("Page not found.", {
834
- developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
835
- });
836
- return (
837
- // We don't use isActive here because it has to be inside the sidebar,
838
- // the top nav id doesn't necessarily start with the sidebar id
839
- /* @__PURE__ */ s.jsx(
840
- xt,
841
- {
842
- className: ({ isPending: m }) => Nr(
843
- "block lg:py-3.5 font-medium -mb-px",
844
- u || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
845
- ),
846
- to: d,
847
- children: e
848
- }
849
- )
850
- );
851
- }, Gr = () => {
852
- const { topNavigation: t } = E(), { isAuthenticated: e } = L(), [r, n] = z(!1);
853
- return /* @__PURE__ */ s.jsxs(
854
- Ve,
855
- {
856
- direction: "right",
857
- open: r,
858
- onOpenChange: (a) => n(a),
859
- children: [
860
- /* @__PURE__ */ s.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ s.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Wt, { size: 22 }) }) }),
861
- /* @__PURE__ */ s.jsx(
862
- Ge,
863
- {
864
- className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
865
- "aria-describedby": void 0,
866
- children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
867
- /* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Navigation" }) }),
868
- /* @__PURE__ */ s.jsx(et, { className: "flex p-4" }),
869
- /* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
870
- /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(tt, {}) }),
871
- t.filter(rt(e)).map((a) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ s.jsx(st, { ...a }) }) }, a.label))
872
- ] })
873
- ] })
874
- }
875
- )
876
- ]
877
- }
878
- );
879
- }, ee = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(wr, { children: [
880
- /* @__PURE__ */ s.jsx(Pr, { children: t.label }),
881
- /* @__PURE__ */ s.jsx(Cr, { children: /* @__PURE__ */ s.jsx(kr, { children: t.children.map((e, r) => (
882
- // eslint-disable-next-line react/no-array-index-key
883
- /* @__PURE__ */ s.jsx(ee, { item: e }, r)
884
- )) }) })
885
- ] }, t.label) : /* @__PURE__ */ s.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(Sr, { className: "flex gap-2", children: [
886
- t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
887
- t.label
888
- ] }, t.label) }), nt = Ze(function() {
889
- const e = L(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = L(), i = E(), { page: o, plugins: u } = i, d = u.filter((c) => dr(c)).flatMap((c) => c.getProfileMenuItems(i)).sort((c) => c.weight ?? 0);
890
- return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
891
- /* @__PURE__ */ s.jsx(Vr, {}),
892
- /* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-8 h-[--top-header-height]", children: [
893
- /* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(de, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
894
- (o == null ? void 0 : o.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
895
- /* @__PURE__ */ s.jsx(
896
- "img",
897
- {
898
- src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : Ne(
899
- "/",
900
- o.logo.src.light
901
- ),
902
- alt: o.logo.alt ?? o.pageTitle,
903
- style: { width: o.logo.width },
904
- className: "h-10 dark:hidden",
905
- loading: "lazy"
906
- }
907
- ),
908
- /* @__PURE__ */ s.jsx(
909
- "img",
910
- {
911
- src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : Ne(
912
- "/",
913
- o.logo.src.dark
914
- ),
915
- alt: o.logo.alt ?? o.pageTitle,
916
- style: { width: o.logo.width },
917
- className: "h-10 hidden dark:block",
918
- loading: "lazy"
919
- }
920
- )
921
- ] }),
922
- /* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
923
- ] }) }) }),
924
- /* @__PURE__ */ s.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
925
- /* @__PURE__ */ s.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ s.jsx(et, {}) }),
926
- /* @__PURE__ */ s.jsx(Gr, {}),
927
- /* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
928
- /* @__PURE__ */ s.jsx(S, { name: "head-navigation-start" }),
929
- a && /* @__PURE__ */ s.jsx(
930
- ge,
931
- {
932
- fallback: /* @__PURE__ */ s.jsx(Yr, { className: "rounded h-5 w-24 mr-4" }),
933
- children: r ? Object.values(d).length > 0 && /* @__PURE__ */ s.jsxs(vr, { modal: !1, children: [
934
- /* @__PURE__ */ s.jsx(yr, { asChild: !0, children: /* @__PURE__ */ s.jsx(ie, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
935
- /* @__PURE__ */ s.jsxs(br, { className: "w-56", children: [
936
- /* @__PURE__ */ s.jsxs(jr, { children: [
937
- n != null && n.name ? `${n.name}` : "My Account",
938
- (n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
939
- ] }),
940
- d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ s.jsx(se, {}),
941
- d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label)),
942
- d.filter(
943
- (c) => !c.category || c.category === "middle"
944
- ).length > 0 && /* @__PURE__ */ s.jsx(se, {}),
945
- d.filter(
946
- (c) => !c.category || c.category === "middle"
947
- ).map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label)),
948
- d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(se, {}),
949
- d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label))
950
- ] })
951
- ] }) : /* @__PURE__ */ s.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
952
- }
953
- ),
954
- /* @__PURE__ */ s.jsx(S, { name: "head-navigation-end" }),
955
- /* @__PURE__ */ s.jsx(tt, {})
956
- ] })
957
- ] })
958
- ] }) }),
959
- /* @__PURE__ */ s.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto 2xl:border-x", children: [
960
- /* @__PURE__ */ s.jsx(S, { name: "top-navigation-before" }),
961
- /* @__PURE__ */ s.jsx(Xr, {}),
962
- /* @__PURE__ */ s.jsx(S, { name: "top-navigation-after" })
963
- ] }) })
964
- ] });
965
- }), at = Ht(({ children: t, className: e, pushMainContent: r }, n) => /* @__PURE__ */ s.jsx(
966
- "nav",
967
- {
968
- "data-navigation": String(r),
969
- className: Q(
970
- "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-6",
971
- "-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
972
- "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
973
- !r && "border-r-0",
974
- e
975
- ),
976
- ref: n,
977
- children: t
978
- }
979
- ));
980
- at.displayName = "SidebarWrapper";
981
- const _r = ({
982
- onRequestClose: t
983
- }) => {
984
- const e = V(null), r = Ke();
985
- return I(() => {
986
- var a;
987
- const n = (a = e.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
988
- er(n ?? null);
989
- }, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
990
- /* @__PURE__ */ s.jsxs(
991
- at,
992
- {
993
- ref: e,
994
- pushMainContent: r.sidebar.length > 0,
995
- children: [
996
- /* @__PURE__ */ s.jsx(S, { name: "zudoku-before-navigation" }),
997
- r.sidebar.map((n) => /* @__PURE__ */ s.jsx(Se, { item: n }, n.label)),
998
- /* @__PURE__ */ s.jsx(S, { name: "zudoku-after-navigation" })
999
- ]
1000
- }
1001
- ),
1002
- /* @__PURE__ */ s.jsx(
1003
- Ge,
1004
- {
1005
- className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
1006
- "aria-describedby": void 0,
1007
- children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1008
- /* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Sidebar" }) }),
1009
- r.sidebar.map((n) => /* @__PURE__ */ s.jsx(
1010
- Se,
1011
- {
1012
- item: n,
1013
- onRequestClose: t
1014
- },
1015
- n.label
1016
- ))
1017
- ] })
1018
- }
1019
- )
1020
- ] });
1021
- }, Te = () => /* @__PURE__ */ s.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ s.jsx(We, {}) }), Wr = ({ children: t }) => {
1022
- const e = te(), { setActiveAnchor: r } = nr(), { meta: n, authentication: a } = E();
1023
- tr(), Zr();
1024
- const i = V(e.pathname);
1025
- I(() => {
1026
- var m;
1027
- (m = a == null ? void 0 : a.onPageLoad) == null || m.call(a);
1028
- }, [a]), I(() => {
1029
- e.pathname !== i.current && r(""), i.current = e.pathname;
1030
- }, [e.pathname, r]);
1031
- const o = !!ue().location, u = Ur.useSpinDelay(o, {
1032
- delay: 300,
1033
- minDuration: 500
1034
- }), [d, c] = z(!1);
1035
- return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1036
- !1,
1037
- /* @__PURE__ */ s.jsxs(le, { titleTemplate: n == null ? void 0 : n.title, children: [
1038
- (n == null ? void 0 : n.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: n.description }),
1039
- (n == null ? void 0 : n.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: n.favicon })
1040
- ] }),
1041
- /* @__PURE__ */ s.jsx(S, { name: "layout-before-head" }),
1042
- /* @__PURE__ */ s.jsx(nt, {}),
1043
- /* @__PURE__ */ s.jsx(S, { name: "layout-after-head" }),
1044
- /* @__PURE__ */ s.jsx("div", { className: "w-full min-h-[calc(100vh-var(--header-height))] max-w-screen-2xl mx-auto px-4 lg:px-8 2xl:border-x", children: u ? /* @__PURE__ */ s.jsx(Te, {}) : /* @__PURE__ */ s.jsx(fe, { fallback: /* @__PURE__ */ s.jsx(Te, {}), children: /* @__PURE__ */ s.jsxs(
1045
- Ve,
1046
- {
1047
- direction: "left",
1048
- open: d,
1049
- onOpenChange: (m) => c(m),
1050
- children: [
1051
- /* @__PURE__ */ s.jsx(_r, { onRequestClose: () => c(!1) }),
1052
- /* @__PURE__ */ s.jsx(
1053
- "div",
1054
- {
1055
- className: Q(
1056
- "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1057
- "peer-data-[navigation=false]:hidden"
1058
- ),
1059
- children: /* @__PURE__ */ s.jsxs(Xe, { className: "flex items-center gap-2", children: [
1060
- /* @__PURE__ */ s.jsx(Jt, { size: 16, strokeWidth: 1.5 }),
1061
- /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
1062
- ] })
1063
- }
1064
- ),
1065
- /* @__PURE__ */ s.jsxs(
1066
- "main",
1067
- {
1068
- "data-pagefind-body": !0,
1069
- className: Q(
1070
- "h-full dark:border-white/10 translate-x-0",
1071
- "lg:overflow-visible",
1072
- // This works in tandem with the `SidebarWrapper` component
1073
- "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1074
- "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1075
- ),
1076
- children: [
1077
- /* @__PURE__ */ s.jsx(S, { name: "zudoku-before-content" }),
1078
- t ?? /* @__PURE__ */ s.jsx(ce, {}),
1079
- /* @__PURE__ */ s.jsx(S, { name: "zudoku-after-content" })
1080
- ]
1081
- }
1082
- )
1083
- ]
1084
- }
1085
- ) }) })
1086
- ] });
1087
- }, Jr = ({
1088
- title: t = "An error occurred",
1089
- message: e,
1090
- category: r
1091
- }) => /* @__PURE__ */ s.jsxs("div", { className: ir + " h-full pt-[--padding-content-top]", children: [
1092
- r && /* @__PURE__ */ s.jsx(Dr, { children: r }),
1093
- t && /* @__PURE__ */ s.jsx(ar, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1094
- /* @__PURE__ */ s.jsx("p", { children: e })
1095
- ] }), es = (t) => {
1096
- switch (t) {
1097
- case 400:
1098
- return {
1099
- title: "Bad Request",
1100
- message: "The request could not be understood by the server due to malformed syntax."
1101
- };
1102
- case 403:
1103
- return {
1104
- title: "Forbidden",
1105
- message: "You don't have permission to access this resource."
1106
- };
1107
- case 404:
1108
- return {
1109
- title: "Not Found",
1110
- message: "The requested resource could not be found."
1111
- };
1112
- case 405:
1113
- return {
1114
- title: "Method Not Allowed",
1115
- message: "The request method is not supported for the requested resource."
1116
- };
1117
- case 414:
1118
- return {
1119
- title: "Request URI Too Large",
1120
- message: "The request URI is too large."
1121
- };
1122
- case 416:
1123
- return {
1124
- title: "Range Not Satisfiable",
1125
- message: "The server cannot satisfy the request range."
1126
- };
1127
- case 500:
1128
- return {
1129
- title: "Internal Server Error",
1130
- message: "An unexpected error occurred while processing your request."
1131
- };
1132
- case 501:
1133
- return {
1134
- title: "Not Implemented",
1135
- message: "The server does not support the functionality required to fulfill the request."
1136
- };
1137
- case 502:
1138
- return {
1139
- title: "Bad Gateway",
1140
- message: "The server received an invalid response from the upstream server."
1141
- };
1142
- case 503:
1143
- return {
1144
- title: "Service Unavailable",
1145
- message: "The server is temporarily unable to handle the request."
1146
- };
1147
- case 504:
1148
- return {
1149
- title: "Gateway Timeout",
1150
- message: "The server did not receive a timely response from the upstream server."
1151
- };
1152
- default:
1153
- return {
1154
- title: "An error occurred",
1155
- message: "Something went wrong while processing your request."
1156
- };
1157
- }
1158
- }, ts = ({ statusCode: t, message: e }) => {
1159
- const r = es(t);
1160
- return /* @__PURE__ */ s.jsx(
1161
- Jr,
1162
- {
1163
- title: r.title,
1164
- message: e ?? r.message,
1165
- category: t
1166
- }
1167
- );
1168
- }, rs = he(null), ne = {
1169
- didCatch: !1,
1170
- error: null
1171
- };
1172
- class ss extends Bt {
1173
- constructor(e) {
1174
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
1175
- }
1176
- static getDerivedStateFromError(e) {
1177
- return {
1178
- didCatch: !0,
1179
- error: e
1180
- };
1181
- }
1182
- resetErrorBoundary() {
1183
- const {
1184
- error: e
1185
- } = this.state;
1186
- if (e !== null) {
1187
- for (var r, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1188
- i[o] = arguments[o];
1189
- (r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
1190
- args: i,
1191
- reason: "imperative-api"
1192
- }), this.setState(ne);
1193
- }
1194
- }
1195
- componentDidCatch(e, r) {
1196
- var n, a;
1197
- (n = (a = this.props).onError) === null || n === void 0 || n.call(a, e, r);
1198
- }
1199
- componentDidUpdate(e, r) {
1200
- const {
1201
- didCatch: n
1202
- } = this.state, {
1203
- resetKeys: a
1204
- } = this.props;
1205
- if (n && r.error !== null && ns(e.resetKeys, a)) {
1206
- var i, o;
1207
- (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1208
- next: a,
1209
- prev: e.resetKeys,
1210
- reason: "keys"
1211
- }), this.setState(ne);
1212
- }
1213
- }
1214
- render() {
1215
- const {
1216
- children: e,
1217
- fallbackRender: r,
1218
- FallbackComponent: n,
1219
- fallback: a
1220
- } = this.props, {
1221
- didCatch: i,
1222
- error: o
1223
- } = this.state;
1224
- let u = e;
1225
- if (i) {
1226
- const d = {
1227
- error: o,
1228
- resetErrorBoundary: this.resetErrorBoundary
1229
- };
1230
- if (typeof r == "function")
1231
- u = r(d);
1232
- else if (n)
1233
- u = ke(n, d);
1234
- else if (a !== void 0)
1235
- u = a;
1236
- else
1237
- throw o;
1238
- }
1239
- return ke(rs.Provider, {
1240
- value: {
1241
- didCatch: i,
1242
- error: o,
1243
- resetErrorBoundary: this.resetErrorBoundary
1244
- }
1245
- }, u);
1246
- }
1247
- }
1248
- function ns() {
1249
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1250
- return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
1251
- }
1252
- let as = () => ({
1253
- emit(t, ...e) {
1254
- for (let r = this.events[t] || [], n = 0, a = r.length; n < a; n++)
1255
- r[n](...e);
1256
- },
1257
- events: {},
1258
- on(t, e) {
1259
- var r;
1260
- return ((r = this.events)[t] || (r[t] = [])).push(e), () => {
1261
- var n;
1262
- this.events[t] = (n = this.events[t]) == null ? void 0 : n.filter((a) => e !== a);
1263
- };
1264
- }
1265
- });
1266
- class is {
1267
- constructor(e) {
1268
- j(this, "plugins");
1269
- j(this, "sidebars");
1270
- j(this, "topNavigation");
1271
- j(this, "meta");
1272
- j(this, "page");
1273
- j(this, "authentication");
1274
- j(this, "navigationPlugins");
1275
- j(this, "emitter", as());
1276
- j(this, "initialize", async () => {
1277
- await Promise.all(
1278
- this.plugins.filter(gr).map((e) => {
1279
- var r;
1280
- return (r = e.initialize) == null ? void 0 : r.call(e, this);
1281
- })
1282
- );
1283
- });
1284
- j(this, "getApiIdentities", async () => (await Promise.all(
1285
- this.plugins.filter(mr).map((r) => r.getIdentities(this))
1286
- )).flat());
1287
- j(this, "emitEvent", (e, ...r) => this.emitter.emit(e, ...r));
1288
- j(this, "getPluginSidebar", async (e) => (await Promise.all(
1289
- this.navigationPlugins.map(
1290
- (n) => {
1291
- var a;
1292
- return (a = n.getSidebar) == null ? void 0 : a.call(n, ae(e));
1293
- }
1294
- )
1295
- )).flatMap((n) => n ?? []));
1296
- j(this, "signRequest", async (e) => {
1297
- if (!this.authentication)
1298
- throw new Error("No authentication provider configured");
1299
- const r = await this.authentication.getAccessToken();
1300
- return e.headers.set("Authorization", `Bearer ${r}`), e;
1301
- });
1302
- this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(hr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((r) => {
1303
- fr(r) && Er(r.events).forEach(([n, a]) => {
1304
- this.emitter.on(n, a);
1305
- });
1306
- });
1307
- }
1308
- addEventListener(e, r) {
1309
- return this.emitter.on(e, r);
1310
- }
1311
- }
1312
- function os({ error: t, resetErrorBoundary: e }) {
1313
- return /* @__PURE__ */ s.jsx(Ye, { error: t });
1314
- }
1315
- const J = globalThis;
1316
- (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
1317
- const it = {
1318
- Header: nt
1319
- }, ls = he(it), cs = ls.Provider, us = () => {
1320
- const t = te(), e = E(), r = V(void 0);
1321
- return I(() => {
1322
- e.emitEvent("location", {
1323
- from: r.current,
1324
- to: t
1325
- }), r.current = t;
1326
- }, [e, t]), null;
1327
- }, ds = ({
1328
- children: t,
1329
- context: e
1330
- }) => (Dt({
1331
- queryFn: async () => (await e.initialize(), !0),
1332
- queryKey: ["zudoku-initialize"]
1333
- }), /* @__PURE__ */ s.jsx(Et.Provider, { value: e, children: t })), ot = Ze(
1334
- ({ children: t, ...e }) => {
1335
- var g, h;
1336
- const r = re(
1337
- () => ({ ...it, ...e.overrides }),
1338
- [e.overrides]
1339
- ), n = re(() => {
1340
- var v;
1341
- return {
1342
- ...(e.plugins ?? []).filter(pr).flatMap(
1343
- (x) => x.getMdxComponents ? [x.getMdxComponents()] : []
1344
- ).reduce(
1345
- (x, C) => ({ ...x, ...C }),
1346
- {}
1347
- ),
1348
- ...or,
1349
- ...(v = e.mdx) == null ? void 0 : v.components
1350
- };
1351
- }, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: a } = Lt(oe), [i, o] = z(!1), u = re(
1352
- () => i ? { stagger: !0 } : { stagger: a },
1353
- [a, i]
1354
- ), d = ue();
1355
- I(() => {
1356
- i || o(!0);
1357
- }, [i, d.location]);
1358
- const [c] = z(() => new is(e)), m = (h = e.plugins) == null ? void 0 : h.flatMap((f) => {
1359
- var v;
1360
- return xr(f) ? ((v = f.getHead) == null ? void 0 : v.call(f)) ?? [] : [];
1361
- }).map((f, v) => /* @__PURE__ */ s.jsx(le, { children: f }, v));
1362
- return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1363
- m,
1364
- /* @__PURE__ */ s.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ s.jsxs(ds, { context: c, children: [
1365
- /* @__PURE__ */ s.jsx(us, {}),
1366
- /* @__PURE__ */ s.jsx(rr, { components: n, children: /* @__PURE__ */ s.jsx(ht, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(cs, { value: r, children: /* @__PURE__ */ s.jsx(zt, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(lr, { children: t ?? /* @__PURE__ */ s.jsx(ce, {}) }) }) }) }) })
1367
- ] }) })
1368
- ] });
1369
- }
1370
- );
1371
- ot.displayName = "ZudokoInner";
1372
- const lt = (t) => /* @__PURE__ */ s.jsx(ss, { FallbackComponent: os, children: /* @__PURE__ */ s.jsx(ot, { ...t }) });
1373
- lt.displayName = "Zudoku";
1374
- const Hs = sr, Bs = Wr, Ls = Kt, zs = Fr, Ks = Lr, $s = zr, Us = Rr, Zs = le, Ys = E, Vs = L, Xs = Mt, Gs = Ot, _s = lt, Ws = ts, Js = Ut, en = cr, tn = We, rn = ge, sn = $t, nn = de, an = He;
1
+ import "./index.esm-BFcSKCe-.js";
2
+ import "./index--oeBayMa.js";
3
+ import "./chunk-BAXFHI7N-C9WnHsLV.js";
4
+ import "./hook-BpiAQVtd.js";
5
+ import "./RouteGuard-CIyGFkFD.js";
6
+ import "./Slot-CiKlwC-1.js";
7
+ import { e as k, f as l, n as S, B as h, C as B, j as c, l as E, H, d as L, L as M, M as R, g as Z, R as f, S as g, k as y, i as A, Z as b, b as j, h as v, c as w, m as x, a as D } from "./index-PL1g52PU.js";
8
+ import "./ui/Button.js";
9
+ import "./ui/Callout.js";
10
+ import "./ClientOnly-E7hGysn1.js";
11
+ import "./Markdown-ms3FtIha.js";
12
+ import "./Spinner-mNLZ6awP.js";
1375
13
  export {
1376
- Ks as Bootstrap,
1377
- $s as BootstrapStatic,
1378
- sn as Button,
1379
- Gs as CACHE_KEYS,
1380
- Js as Callout,
1381
- rn as ClientOnly,
1382
- Zs as Head,
1383
- Bs as Layout,
1384
- nn as Link,
1385
- en as Markdown,
1386
- Us as RouteGuard,
1387
- Ls as RouterError,
1388
- zs as ServerError,
1389
- tn as Spinner,
1390
- Ws as StatusPage,
1391
- _s as Zudoku,
1392
- Vs as useAuth,
1393
- Xs as useCache,
1394
- Hs as useMDXComponents,
1395
- an as useTheme,
1396
- Ys as useZudoku
14
+ k as Bootstrap,
15
+ l as BootstrapStatic,
16
+ S as BuildCheck,
17
+ h as Button,
18
+ B as CACHE_KEYS,
19
+ c as Callout,
20
+ E as ClientOnly,
21
+ H as Head,
22
+ L as Layout,
23
+ M as Link,
24
+ R as Markdown,
25
+ Z as RouteGuard,
26
+ f as RouterError,
27
+ g as ServerError,
28
+ y as Spinner,
29
+ A as StatusPage,
30
+ b as Zudoku,
31
+ j as useAuth,
32
+ v as useCache,
33
+ w as useMDXComponents,
34
+ x as useTheme,
35
+ D as useZudoku
1397
36
  };
1398
37
  //# sourceMappingURL=zudoku.components.js.map