zudoku 0.0.0-f06d326 → 0.0.0-f0b4321

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 (1455) hide show
  1. package/README.md +2 -2
  2. package/cli.js +8 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +21 -5
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +0 -2
  9. package/dist/app/entry.client.js +36 -2
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +5 -6
  12. package/dist/app/entry.server.js +2 -4
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +37 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +1 -0
  18. package/dist/app/main.js +33 -45
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/standalone.js +7 -6
  21. package/dist/app/standalone.js.map +1 -1
  22. package/dist/cli/build/handler.js +11 -2
  23. package/dist/cli/build/handler.js.map +1 -1
  24. package/dist/cli/cli.js +12 -1
  25. package/dist/cli/cli.js.map +1 -1
  26. package/dist/cli/cmds/dev.js +1 -7
  27. package/dist/cli/cmds/dev.js.map +1 -1
  28. package/dist/cli/common/machine-id/lib.js +1 -0
  29. package/dist/cli/common/machine-id/lib.js.map +1 -1
  30. package/dist/cli/dev/handler.js +2 -1
  31. package/dist/cli/dev/handler.js.map +1 -1
  32. package/dist/config/config.d.ts +16 -3
  33. package/dist/config/file-exists.d.ts +1 -0
  34. package/dist/config/file-exists.js +5 -0
  35. package/dist/config/file-exists.js.map +1 -0
  36. package/dist/config/loader.d.ts +18 -17
  37. package/dist/config/loader.js +95 -103
  38. package/dist/config/loader.js.map +1 -1
  39. package/dist/config/validators/BuildSchema.d.ts +36 -0
  40. package/dist/config/validators/BuildSchema.js +25 -0
  41. package/dist/config/validators/BuildSchema.js.map +1 -0
  42. package/dist/config/validators/InputNavigationSchema.d.ts +7364 -0
  43. package/dist/config/validators/InputNavigationSchema.js +71 -0
  44. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  45. package/dist/config/validators/InputNavigationSchema.test-d.js +145 -0
  46. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  47. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  48. package/dist/config/validators/NavigationSchema.js +95 -0
  49. package/dist/config/validators/NavigationSchema.js.map +1 -0
  50. package/dist/config/validators/icon-types.d.ts +2 -1
  51. package/dist/config/validators/icon-types.js +1813 -1
  52. package/dist/config/validators/icon-types.js.map +1 -1
  53. package/dist/config/validators/validate.d.ts +595 -2497
  54. package/dist/config/validators/validate.js +434 -16
  55. package/dist/config/validators/validate.js.map +1 -1
  56. package/dist/config/validators/validate.test.js +141 -0
  57. package/dist/config/validators/validate.test.js.map +1 -0
  58. package/dist/index.d.ts +7 -4
  59. package/dist/index.js +3 -0
  60. package/dist/index.js.map +1 -1
  61. package/dist/lib/auth/issuer.d.ts +2 -0
  62. package/dist/lib/auth/issuer.js +37 -0
  63. package/dist/lib/auth/issuer.js.map +1 -0
  64. package/dist/lib/auth/issuer.test.js +94 -0
  65. package/dist/lib/auth/issuer.test.js.map +1 -0
  66. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  67. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  68. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  69. package/dist/lib/authentication/authentication.d.ts +4 -4
  70. package/dist/lib/authentication/components/CallbackHandler.js +6 -2
  71. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  72. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  73. package/dist/lib/authentication/components/SignIn.js +5 -1
  74. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  75. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  76. package/dist/lib/authentication/components/SignUp.js +4 -1
  77. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  78. package/dist/lib/authentication/hook.d.ts +6 -0
  79. package/dist/lib/authentication/providers/auth0.js +2 -2
  80. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  81. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  82. package/dist/lib/authentication/providers/azureb2c.js +145 -0
  83. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  84. package/dist/lib/authentication/providers/clerk.js +77 -59
  85. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  86. package/dist/lib/authentication/providers/openid.d.ts +16 -19
  87. package/dist/lib/authentication/providers/openid.js +71 -44
  88. package/dist/lib/authentication/providers/openid.js.map +1 -1
  89. package/dist/lib/authentication/providers/supabase.js +5 -14
  90. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  91. package/dist/lib/authentication/state.d.ts +6 -5
  92. package/dist/lib/authentication/state.js +19 -6
  93. package/dist/lib/authentication/state.js.map +1 -1
  94. package/dist/lib/components/Autocomplete.js +3 -3
  95. package/dist/lib/components/Autocomplete.js.map +1 -1
  96. package/dist/lib/components/Banner.js +2 -2
  97. package/dist/lib/components/Banner.js.map +1 -1
  98. package/dist/lib/components/Bootstrap.d.ts +2 -1
  99. package/dist/lib/components/Bootstrap.js +3 -2
  100. package/dist/lib/components/Bootstrap.js.map +1 -1
  101. package/dist/lib/components/BuildCheck.d.ts +4 -0
  102. package/dist/lib/components/BuildCheck.js +38 -0
  103. package/dist/lib/components/BuildCheck.js.map +1 -0
  104. package/dist/lib/components/CategoryHeading.js +1 -1
  105. package/dist/lib/components/CategoryHeading.js.map +1 -1
  106. package/dist/lib/components/ErrorPage.js +2 -2
  107. package/dist/lib/components/ErrorPage.js.map +1 -1
  108. package/dist/lib/components/Footer.d.ts +1 -0
  109. package/dist/lib/components/Footer.js +32 -0
  110. package/dist/lib/components/Footer.js.map +1 -0
  111. package/dist/lib/components/Framed.d.ts +7 -0
  112. package/dist/lib/components/Framed.js +26 -0
  113. package/dist/lib/components/Framed.js.map +1 -0
  114. package/dist/lib/components/Header.js +24 -15
  115. package/dist/lib/components/Header.js.map +1 -1
  116. package/dist/lib/components/Heading.d.ts +8 -4
  117. package/dist/lib/components/Heading.js +7 -2
  118. package/dist/lib/components/Heading.js.map +1 -1
  119. package/dist/lib/components/InlineCode.js +1 -1
  120. package/dist/lib/components/InlineCode.js.map +1 -1
  121. package/dist/lib/components/Layout.js +4 -2
  122. package/dist/lib/components/Layout.js.map +1 -1
  123. package/dist/lib/components/Main.js +7 -6
  124. package/dist/lib/components/Main.js.map +1 -1
  125. package/dist/lib/components/Markdown.d.ts +3 -2
  126. package/dist/lib/components/Markdown.js +14 -16
  127. package/dist/lib/components/Markdown.js.map +1 -1
  128. package/dist/lib/components/MobileTopNavigation.js +13 -5
  129. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  130. package/dist/lib/components/NotFoundPage.js +2 -2
  131. package/dist/lib/components/NotFoundPage.js.map +1 -1
  132. package/dist/lib/components/PageProgress.d.ts +1 -0
  133. package/dist/lib/components/PageProgress.js +20 -0
  134. package/dist/lib/components/PageProgress.js.map +1 -0
  135. package/dist/lib/components/Pagination.d.ts +2 -1
  136. package/dist/lib/components/Pagination.js +3 -3
  137. package/dist/lib/components/Pagination.js.map +1 -1
  138. package/dist/lib/components/Search.js +7 -1
  139. package/dist/lib/components/Search.js.map +1 -1
  140. package/dist/lib/components/Slot.d.ts +17 -0
  141. package/dist/lib/components/Slot.js +24 -0
  142. package/dist/lib/components/Slot.js.map +1 -0
  143. package/dist/lib/components/Slot.test.js +168 -0
  144. package/dist/lib/components/Slot.test.js.map +1 -0
  145. package/dist/lib/components/StatusPage.js +4 -0
  146. package/dist/lib/components/StatusPage.js.map +1 -1
  147. package/dist/lib/components/TopNavigation.d.ts +7 -5
  148. package/dist/lib/components/TopNavigation.js +51 -54
  149. package/dist/lib/components/TopNavigation.js.map +1 -1
  150. package/dist/lib/components/Typography.d.ts +5 -0
  151. package/dist/lib/components/Typography.js +8 -0
  152. package/dist/lib/components/Typography.js.map +1 -0
  153. package/dist/lib/components/Zudoku.js +4 -3
  154. package/dist/lib/components/Zudoku.js.map +1 -1
  155. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  156. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  157. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  158. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  159. package/dist/lib/components/context/SlotProvider.js +83 -0
  160. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  161. package/dist/lib/components/context/ViewportAnchorContext.js +8 -9
  162. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  163. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  164. package/dist/lib/components/context/ZudokuContext.js +45 -28
  165. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  166. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  167. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  168. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  169. package/dist/lib/components/index.d.ts +46 -24
  170. package/dist/lib/components/index.js +16 -6
  171. package/dist/lib/components/index.js.map +1 -1
  172. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  173. package/dist/lib/components/navigation/Navigation.js +12 -0
  174. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  175. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  176. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +3 -3
  177. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  178. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  179. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +22 -16
  180. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  181. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  182. package/dist/lib/components/navigation/NavigationItem.js +47 -0
  183. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  184. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  185. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  186. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  187. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  188. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  189. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  190. package/dist/lib/components/navigation/Toc.js +2 -2
  191. package/dist/lib/components/navigation/Toc.js.map +1 -1
  192. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  193. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  194. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  195. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  196. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  197. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  198. package/dist/lib/components/navigation/utils.d.ts +12 -6
  199. package/dist/lib/components/navigation/utils.js +46 -18
  200. package/dist/lib/components/navigation/utils.js.map +1 -1
  201. package/dist/lib/core/RouteGuard.d.ts +1 -0
  202. package/dist/lib/core/RouteGuard.js +9 -3
  203. package/dist/lib/core/RouteGuard.js.map +1 -1
  204. package/dist/lib/core/ZudokuContext.d.ts +36 -20
  205. package/dist/lib/core/ZudokuContext.js +26 -14
  206. package/dist/lib/core/ZudokuContext.js.map +1 -1
  207. package/dist/lib/core/plugins.d.ts +7 -4
  208. package/dist/lib/core/plugins.js +1 -0
  209. package/dist/lib/core/plugins.js.map +1 -1
  210. package/dist/lib/errors/ErrorAlert.js +2 -3
  211. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  212. package/dist/lib/hooks/index.d.ts +25 -0
  213. package/dist/lib/hooks/index.js +11 -0
  214. package/dist/lib/hooks/index.js.map +1 -1
  215. package/dist/lib/hooks/useEvent.test.js +5 -3
  216. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  217. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  218. package/dist/lib/hooks/useHotkey.js +58 -0
  219. package/dist/lib/hooks/useHotkey.js.map +1 -0
  220. package/dist/lib/oas/graphql/circular.js +23 -18
  221. package/dist/lib/oas/graphql/circular.js.map +1 -1
  222. package/dist/lib/oas/parser/index.d.ts +3 -0
  223. package/dist/lib/oas/parser/index.js +7 -1
  224. package/dist/lib/oas/parser/index.js.map +1 -1
  225. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  226. package/dist/lib/oas/parser/upgrade/index.js +77 -25
  227. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  228. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  229. package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
  230. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  231. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  232. package/dist/lib/plugins/api-catalog/index.js +25 -23
  233. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  234. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  235. package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
  236. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  237. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  238. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +150 -27
  239. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  240. package/dist/lib/plugins/api-keys/index.d.ts +20 -11
  241. package/dist/lib/plugins/api-keys/index.js +66 -32
  242. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  243. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  244. package/dist/lib/plugins/custom-pages/index.js +15 -10
  245. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  246. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -2
  247. package/dist/lib/plugins/markdown/MdxPage.js +30 -10
  248. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  249. package/dist/lib/plugins/markdown/index.d.ts +11 -3
  250. package/dist/lib/plugins/markdown/index.js +9 -26
  251. package/dist/lib/plugins/markdown/index.js.map +1 -1
  252. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  253. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  254. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  255. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  256. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  257. package/dist/lib/plugins/openapi/OperationList.js +9 -7
  258. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  259. package/dist/lib/plugins/openapi/OperationListItem.js +5 -4
  260. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  261. package/dist/lib/plugins/openapi/ParamInfos.js +4 -1
  262. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  263. package/dist/lib/plugins/openapi/ParameterListItem.js +9 -1
  264. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  265. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
  266. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +5 -1
  267. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  268. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  269. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  270. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  271. package/dist/lib/plugins/openapi/SchemaList.js +7 -7
  272. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  273. package/dist/lib/plugins/openapi/Sidecar.js +11 -61
  274. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  275. package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
  276. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  277. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  278. package/dist/lib/plugins/openapi/client/useCreateQuery.js +10 -4
  279. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  280. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  281. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  282. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  283. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  284. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  285. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  286. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  287. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  288. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  289. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  290. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  291. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +3 -3
  292. package/dist/lib/plugins/openapi/graphql/graphql.js +2 -2
  293. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  294. package/dist/lib/plugins/openapi/index.d.ts +3 -4
  295. package/dist/lib/plugins/openapi/index.js +14 -12
  296. package/dist/lib/plugins/openapi/index.js.map +1 -1
  297. package/dist/lib/plugins/openapi/interfaces.d.ts +7 -6
  298. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  299. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  300. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  301. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  302. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  303. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  304. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  305. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  306. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  307. package/dist/lib/plugins/openapi/playground/Headers.js +54 -32
  308. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  309. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
  310. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
  311. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -4
  312. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  313. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  314. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  315. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  316. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  317. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
  318. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  319. package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -8
  320. package/dist/lib/plugins/openapi/playground/Playground.js +112 -92
  321. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  322. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  323. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  324. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  325. package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
  326. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  327. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  328. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  329. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  330. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  331. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  332. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  333. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  334. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  335. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  336. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  337. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  338. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  339. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  340. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  341. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  342. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  343. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
  344. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  345. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  346. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -31
  347. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  348. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +4 -2
  349. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
  350. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  351. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  352. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  353. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  354. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  355. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
  356. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  357. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
  358. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  359. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
  360. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
  361. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  362. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  363. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
  364. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  365. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
  366. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
  367. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  368. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  369. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  370. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  371. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  372. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  373. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  374. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  375. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  376. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  377. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  378. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  379. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  380. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  381. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  382. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  383. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  384. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  385. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +20 -15
  386. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  387. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  388. package/dist/lib/plugins/openapi/schema/SchemaView.js +37 -56
  389. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  390. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -1
  391. package/dist/lib/plugins/openapi/schema/utils.js +15 -5
  392. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  393. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  394. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  395. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  396. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  397. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +5 -4
  398. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  399. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  400. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +44 -0
  401. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  402. package/dist/lib/plugins/openapi/util/getRoutes.js +52 -15
  403. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  404. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  405. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  406. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  407. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  408. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  409. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  410. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  411. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  412. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +9 -4
  413. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  414. package/dist/lib/plugins/search-pagefind/ResultList.js +12 -11
  415. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  416. package/dist/lib/plugins/search-pagefind/index.d.ts +1 -3
  417. package/dist/lib/shiki.d.ts +31 -0
  418. package/dist/lib/shiki.js +101 -0
  419. package/dist/lib/shiki.js.map +1 -0
  420. package/dist/lib/ui/Alert.d.ts +6 -5
  421. package/dist/lib/ui/Alert.js +12 -10
  422. package/dist/lib/ui/Alert.js.map +1 -1
  423. package/dist/lib/ui/Badge.d.ts +2 -2
  424. package/dist/lib/ui/Badge.js +1 -1
  425. package/dist/lib/ui/Badge.js.map +1 -1
  426. package/dist/lib/ui/Button.d.ts +2 -2
  427. package/dist/lib/ui/Button.js +8 -6
  428. package/dist/lib/ui/Button.js.map +1 -1
  429. package/dist/lib/ui/Callout.js +1 -1
  430. package/dist/lib/ui/Callout.js.map +1 -1
  431. package/dist/lib/ui/Card.js +1 -1
  432. package/dist/lib/ui/Checkbox.js +1 -1
  433. package/dist/lib/ui/Checkbox.js.map +1 -1
  434. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  435. package/dist/lib/ui/CodeBlock.js +17 -0
  436. package/dist/lib/ui/CodeBlock.js.map +1 -0
  437. package/dist/lib/ui/Command.d.ts +2 -2
  438. package/dist/lib/ui/Command.js +3 -3
  439. package/dist/lib/ui/Command.js.map +1 -1
  440. package/dist/lib/ui/Dialog.d.ts +3 -1
  441. package/dist/lib/ui/Dialog.js +2 -2
  442. package/dist/lib/ui/Dialog.js.map +1 -1
  443. package/dist/lib/ui/DropdownMenu.js +4 -4
  444. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  445. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  446. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  447. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  448. package/dist/lib/ui/Form.d.ts +1 -1
  449. package/dist/lib/ui/HoverCard.js +1 -1
  450. package/dist/lib/ui/HoverCard.js.map +1 -1
  451. package/dist/lib/ui/Input.js +1 -1
  452. package/dist/lib/ui/Input.js.map +1 -1
  453. package/dist/lib/ui/Popover.js +1 -1
  454. package/dist/lib/ui/Popover.js.map +1 -1
  455. package/dist/lib/ui/RadioGroup.js +1 -1
  456. package/dist/lib/ui/RadioGroup.js.map +1 -1
  457. package/dist/lib/ui/Select.js +2 -2
  458. package/dist/lib/ui/Select.js.map +1 -1
  459. package/dist/lib/ui/Slider.js +1 -1
  460. package/dist/lib/ui/Slider.js.map +1 -1
  461. package/dist/lib/ui/Switch.js +1 -1
  462. package/dist/lib/ui/Switch.js.map +1 -1
  463. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -15
  464. package/dist/lib/ui/SyntaxHighlight.js +13 -60
  465. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  466. package/dist/lib/ui/Tabs.js +2 -2
  467. package/dist/lib/ui/Tabs.js.map +1 -1
  468. package/dist/lib/ui/Textarea.js +1 -1
  469. package/dist/lib/ui/Textarea.js.map +1 -1
  470. package/dist/lib/ui/Toggle.js +1 -1
  471. package/dist/lib/ui/Toggle.js.map +1 -1
  472. package/dist/lib/ui/Tooltip.d.ts +2 -1
  473. package/dist/lib/ui/Tooltip.js +2 -1
  474. package/dist/lib/ui/Tooltip.js.map +1 -1
  475. package/dist/lib/util/MdxComponents.d.ts +18 -3
  476. package/dist/lib/util/MdxComponents.js +15 -12
  477. package/dist/lib/util/MdxComponents.js.map +1 -1
  478. package/dist/lib/util/detectOS.d.ts +1 -0
  479. package/dist/lib/util/detectOS.js +11 -0
  480. package/dist/lib/util/detectOS.js.map +1 -0
  481. package/dist/lib/util/ensureArray.d.ts +1 -0
  482. package/dist/lib/util/ensureArray.js +2 -0
  483. package/dist/lib/util/ensureArray.js.map +1 -0
  484. package/dist/lib/util/humanFileSize.d.ts +6 -0
  485. package/dist/lib/util/humanFileSize.js +14 -0
  486. package/dist/lib/util/humanFileSize.js.map +1 -0
  487. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  488. package/dist/lib/util/humanFileSize.test.js +22 -0
  489. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  490. package/dist/lib/util/os.d.ts +2 -0
  491. package/dist/lib/util/os.js +21 -0
  492. package/dist/lib/util/os.js.map +1 -0
  493. package/dist/lib/util/traverse.d.ts +1 -1
  494. package/dist/lib/util/traverse.js +6 -5
  495. package/dist/lib/util/traverse.js.map +1 -1
  496. package/dist/lib/util/url.d.ts +4 -0
  497. package/dist/lib/util/url.js +13 -0
  498. package/dist/lib/util/url.js.map +1 -0
  499. package/dist/lib/util/url.test.d.ts +1 -0
  500. package/dist/lib/util/url.test.js +26 -0
  501. package/dist/lib/util/url.test.js.map +1 -0
  502. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  503. package/dist/lib/util/useCopyToClipboard.js +11 -0
  504. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  505. package/dist/lib/util/useExposedProps.d.ts +8 -1
  506. package/dist/lib/util/useExposedProps.js.map +1 -1
  507. package/dist/lib/util/useScrollToAnchor.js +3 -3
  508. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  509. package/dist/vite/api/SchemaManager.d.ts +36 -0
  510. package/dist/vite/api/SchemaManager.js +141 -0
  511. package/dist/vite/api/SchemaManager.js.map +1 -0
  512. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  513. package/dist/vite/api/SchemaManager.test.js +106 -0
  514. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  515. package/dist/vite/api/schema-codegen.js +52 -17
  516. package/dist/vite/api/schema-codegen.js.map +1 -1
  517. package/dist/vite/api/schema-codegen.test.js +82 -0
  518. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  519. package/dist/vite/build.js +22 -15
  520. package/dist/vite/build.js.map +1 -1
  521. package/dist/vite/config.d.ts +2 -9
  522. package/dist/vite/config.js +55 -96
  523. package/dist/vite/config.js.map +1 -1
  524. package/dist/vite/config.test.js +1 -1
  525. package/dist/vite/config.test.js.map +1 -1
  526. package/dist/vite/css/plugin.d.ts +1 -2
  527. package/dist/vite/css/plugin.js +14 -2
  528. package/dist/vite/css/plugin.js.map +1 -1
  529. package/dist/vite/dev-server.d.ts +0 -1
  530. package/dist/vite/dev-server.js +14 -13
  531. package/dist/vite/dev-server.js.map +1 -1
  532. package/dist/vite/html.d.ts +7 -3
  533. package/dist/vite/html.js +15 -9
  534. package/dist/vite/html.js.map +1 -1
  535. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  536. package/dist/vite/mdx/remark-last-modified.js +29 -0
  537. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  538. package/dist/vite/mdx/utils.d.ts +2 -0
  539. package/dist/vite/mdx/utils.js +31 -0
  540. package/dist/vite/mdx/utils.js.map +1 -0
  541. package/dist/vite/plugin-api-keys.d.ts +1 -2
  542. package/dist/vite/plugin-api-keys.js +9 -3
  543. package/dist/vite/plugin-api-keys.js.map +1 -1
  544. package/dist/vite/plugin-api.d.ts +1 -2
  545. package/dist/vite/plugin-api.js +58 -111
  546. package/dist/vite/plugin-api.js.map +1 -1
  547. package/dist/vite/plugin-auth.d.ts +1 -2
  548. package/dist/vite/plugin-auth.js +3 -2
  549. package/dist/vite/plugin-auth.js.map +1 -1
  550. package/dist/vite/plugin-component.d.ts +1 -2
  551. package/dist/vite/plugin-component.js +3 -2
  552. package/dist/vite/plugin-component.js.map +1 -1
  553. package/dist/vite/plugin-config-reload.d.ts +1 -2
  554. package/dist/vite/plugin-config-reload.js +25 -23
  555. package/dist/vite/plugin-config-reload.js.map +1 -1
  556. package/dist/vite/plugin-config.d.ts +1 -2
  557. package/dist/vite/plugin-config.js +4 -3
  558. package/dist/vite/plugin-config.js.map +1 -1
  559. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  560. package/dist/vite/plugin-custom-pages.js +5 -4
  561. package/dist/vite/plugin-custom-pages.js.map +1 -1
  562. package/dist/vite/plugin-docs.d.ts +1 -2
  563. package/dist/vite/plugin-docs.js +64 -61
  564. package/dist/vite/plugin-docs.js.map +1 -1
  565. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  566. package/dist/vite/plugin-frontmatter.js +9 -4
  567. package/dist/vite/plugin-frontmatter.js.map +1 -1
  568. package/dist/vite/plugin-mdx.d.ts +1 -2
  569. package/dist/vite/plugin-mdx.js +24 -51
  570. package/dist/vite/plugin-mdx.js.map +1 -1
  571. package/dist/vite/plugin-navigation.d.ts +4 -0
  572. package/dist/vite/{plugin-sidebar.js → plugin-navigation.js} +26 -18
  573. package/dist/vite/plugin-navigation.js.map +1 -0
  574. package/dist/vite/plugin-redirect.d.ts +1 -2
  575. package/dist/vite/plugin-redirect.js +3 -2
  576. package/dist/vite/plugin-redirect.js.map +1 -1
  577. package/dist/vite/plugin-search.d.ts +1 -2
  578. package/dist/vite/plugin-search.js +4 -3
  579. package/dist/vite/plugin-search.js.map +1 -1
  580. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  581. package/dist/vite/plugin-shiki-register.js +39 -0
  582. package/dist/vite/plugin-shiki-register.js.map +1 -0
  583. package/dist/vite/plugin-theme.d.ts +8 -0
  584. package/dist/vite/plugin-theme.js +234 -0
  585. package/dist/vite/plugin-theme.js.map +1 -0
  586. package/dist/vite/plugin-theme.test.d.ts +1 -0
  587. package/dist/vite/plugin-theme.test.js +312 -0
  588. package/dist/vite/plugin-theme.test.js.map +1 -0
  589. package/dist/vite/plugin.d.ts +1 -2
  590. package/dist/vite/plugin.js +23 -22
  591. package/dist/vite/plugin.js.map +1 -1
  592. package/dist/vite/prerender/FileWritingResponse.d.ts +9 -5
  593. package/dist/vite/prerender/FileWritingResponse.js +5 -5
  594. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  595. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  596. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  597. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  598. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  599. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  600. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  601. package/dist/vite/prerender/prerender.d.ts +1 -0
  602. package/dist/vite/prerender/prerender.js +24 -5
  603. package/dist/vite/prerender/prerender.js.map +1 -1
  604. package/dist/vite/prerender/worker.js +36 -8
  605. package/dist/vite/prerender/worker.js.map +1 -1
  606. package/dist/vite/shadcn-registry.d.ts +45 -0
  607. package/dist/vite/shadcn-registry.js +29 -0
  608. package/dist/vite/shadcn-registry.js.map +1 -0
  609. package/dist/vite/sitemap.d.ts +1 -1
  610. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  611. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  612. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  613. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  614. package/dist/zuplo/with-zuplo-processors.js +7 -7
  615. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  616. package/dist/zuplo/with-zuplo.d.ts +5 -2
  617. package/dist/zuplo/with-zuplo.js +6 -5
  618. package/dist/zuplo/with-zuplo.js.map +1 -1
  619. package/lib/Alert-Cig_8hW6.js +161 -0
  620. package/lib/Alert-Cig_8hW6.js.map +1 -0
  621. package/lib/Button-B3o-2Xdf.js +51 -0
  622. package/lib/Button-B3o-2Xdf.js.map +1 -0
  623. package/lib/Card-CMDQUPM4.js +61 -0
  624. package/lib/Card-CMDQUPM4.js.map +1 -0
  625. package/lib/CodeBlock-BaBgX9Wy.js +85 -0
  626. package/lib/CodeBlock-BaBgX9Wy.js.map +1 -0
  627. package/lib/Command-C9AC5cf-.js +140 -0
  628. package/lib/Command-C9AC5cf-.js.map +1 -0
  629. package/lib/{Dialog-Dv6WG8RN.js → Dialog-DMWw1doX.js} +27 -26
  630. package/lib/Dialog-DMWw1doX.js.map +1 -0
  631. package/lib/{Drawer-kDAfOq_2.js → Drawer-DXGPOKPx.js} +26 -26
  632. package/lib/Drawer-DXGPOKPx.js.map +1 -0
  633. package/lib/MdxPage-D8Med7IR.js +110 -0
  634. package/lib/MdxPage-D8Med7IR.js.map +1 -0
  635. package/lib/OasProvider-YexVRErA.js +35 -0
  636. package/lib/OasProvider-YexVRErA.js.map +1 -0
  637. package/lib/{OperationList-CHuBrSD5.js → OperationList-CL_tp7DC.js} +2224 -2118
  638. package/lib/OperationList-CL_tp7DC.js.map +1 -0
  639. package/lib/Pagination-Bcjbdo_g.js +37 -0
  640. package/lib/Pagination-Bcjbdo_g.js.map +1 -0
  641. package/lib/RouteGuard-Vnlz_t51.js +737 -0
  642. package/lib/RouteGuard-Vnlz_t51.js.map +1 -0
  643. package/lib/SchemaList-BNDTWO1B.js +149 -0
  644. package/lib/SchemaList-BNDTWO1B.js.map +1 -0
  645. package/lib/SchemaView-DdKqED8D.js +366 -0
  646. package/lib/SchemaView-DdKqED8D.js.map +1 -0
  647. package/lib/SignUp-BkAQMKsK.js +56 -0
  648. package/lib/SignUp-BkAQMKsK.js.map +1 -0
  649. package/lib/{Markdown-D-vLL3rw.js → Slot-CrCBhP3G.js} +14304 -15521
  650. package/lib/Slot-CrCBhP3G.js.map +1 -0
  651. package/lib/{Spinner-CE68iCm0.js → Spinner-mNLZ6awP.js} +2 -2
  652. package/lib/{Spinner-CE68iCm0.js.map → Spinner-mNLZ6awP.js.map} +1 -1
  653. package/lib/SyntaxHighlight-CVe58ZSY.js +10306 -0
  654. package/lib/SyntaxHighlight-CVe58ZSY.js.map +1 -0
  655. package/lib/{Toc-COKWpWOX.js → Toc-CpsFSXeD.js} +20 -20
  656. package/lib/Toc-CpsFSXeD.js.map +1 -0
  657. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js +1839 -0
  658. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +1 -0
  659. package/lib/{circular-ByJI6Mci.js → circular-BJUzZQ5q.js} +4799 -5742
  660. package/lib/circular-BJUzZQ5q.js.map +1 -0
  661. package/lib/clerk-BDZ31hjU.js +25190 -0
  662. package/lib/clerk-BDZ31hjU.js.map +1 -0
  663. package/lib/clsx-OuTLNxxd.js +17 -0
  664. package/lib/clsx-OuTLNxxd.js.map +1 -0
  665. package/lib/{cn-qaFjX9_3.js → cn-dYga0KKN.js} +1015 -563
  666. package/lib/cn-dYga0KKN.js.map +1 -0
  667. package/lib/{createServer-mMau3eV_.js → createServer-C8-YhyiB.js} +6282 -6205
  668. package/lib/createServer-C8-YhyiB.js.map +1 -0
  669. package/lib/errors-CKo4K1aM.js +78 -0
  670. package/lib/errors-CKo4K1aM.js.map +1 -0
  671. package/lib/hook-CZjW2buS.js +1510 -0
  672. package/lib/hook-CZjW2buS.js.map +1 -0
  673. package/lib/{index-LNp6rxyU.js → index-4XtG1tlD.js} +3 -3
  674. package/lib/{index-LNp6rxyU.js.map → index-4XtG1tlD.js.map} +1 -1
  675. package/lib/index-B3xhxwZH.js +3469 -0
  676. package/lib/index-B3xhxwZH.js.map +1 -0
  677. package/lib/index-B4yKFxne.js +3980 -0
  678. package/lib/index-B4yKFxne.js.map +1 -0
  679. package/lib/index-Bm35Tkgf.js +107 -0
  680. package/lib/index-Bm35Tkgf.js.map +1 -0
  681. package/lib/index-CrcNWbel.js +316 -0
  682. package/lib/index-CrcNWbel.js.map +1 -0
  683. package/lib/{index-CPNSgwSb.js → index-DI5SPFK9.js} +5 -5
  684. package/lib/{index-CPNSgwSb.js.map → index-DI5SPFK9.js.map} +1 -1
  685. package/lib/{index-Dl3Yl0yb.js → index-DmNq2fbN.js} +785 -795
  686. package/lib/index-DmNq2fbN.js.map +1 -0
  687. package/lib/index.esm-Cp4wkyud.js +1236 -0
  688. package/lib/index.esm-Cp4wkyud.js.map +1 -0
  689. package/lib/invariant-DAFpPywt.js +48 -0
  690. package/lib/{invariant-Caa8-XvF.js.map → invariant-DAFpPywt.js.map} +1 -1
  691. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  692. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  693. package/lib/{post-processors → processors}/removeExtensions.js +1 -1
  694. package/lib/processors/removeExtensions.js.map +1 -0
  695. package/lib/processors/removeParameters.js +47 -0
  696. package/lib/processors/removeParameters.js.map +1 -0
  697. package/lib/processors/removePaths.js +28 -0
  698. package/lib/processors/removePaths.js.map +1 -0
  699. package/lib/processors/traverse.js +17 -0
  700. package/lib/processors/traverse.js.map +1 -0
  701. package/lib/ui/Accordion.js +2 -2
  702. package/lib/ui/ActionButton.js +4 -4
  703. package/lib/ui/Alert.js +55 -39
  704. package/lib/ui/Alert.js.map +1 -1
  705. package/lib/ui/AlertDialog.js +2 -2
  706. package/lib/ui/Badge.js +4 -4
  707. package/lib/ui/Badge.js.map +1 -1
  708. package/lib/ui/Breadcrumb.js +2 -2
  709. package/lib/ui/Button.js +20 -18
  710. package/lib/ui/Button.js.map +1 -1
  711. package/lib/ui/Callout.js +14 -12
  712. package/lib/ui/Callout.js.map +1 -1
  713. package/lib/ui/Card.js +9 -9
  714. package/lib/ui/Card.js.map +1 -1
  715. package/lib/ui/Carousel.js +348 -348
  716. package/lib/ui/Carousel.js.map +1 -1
  717. package/lib/ui/Checkbox.js +8 -8
  718. package/lib/ui/Checkbox.js.map +1 -1
  719. package/lib/ui/CodeBlock.js +9 -0
  720. package/lib/ui/CodeBlock.js.map +1 -0
  721. package/lib/ui/Command.js +58 -58
  722. package/lib/ui/Command.js.map +1 -1
  723. package/lib/ui/Dialog.js +41 -41
  724. package/lib/ui/Dialog.js.map +1 -1
  725. package/lib/ui/Drawer.js +3 -3
  726. package/lib/ui/DropdownMenu.js +35 -35
  727. package/lib/ui/DropdownMenu.js.map +1 -1
  728. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  729. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  730. package/lib/ui/Form.js +3 -3
  731. package/lib/ui/HoverCard.js +6 -6
  732. package/lib/ui/HoverCard.js.map +1 -1
  733. package/lib/ui/Input.js +3 -3
  734. package/lib/ui/Input.js.map +1 -1
  735. package/lib/ui/Label.js +3 -3
  736. package/lib/ui/Pagination.js +2 -2
  737. package/lib/ui/Popover.js +3 -3
  738. package/lib/ui/Popover.js.map +1 -1
  739. package/lib/ui/Progress.js +2 -2
  740. package/lib/ui/RadioGroup.js +11 -11
  741. package/lib/ui/RadioGroup.js.map +1 -1
  742. package/lib/ui/ScrollArea.js +2 -2
  743. package/lib/ui/Select.js +32 -32
  744. package/lib/ui/Select.js.map +1 -1
  745. package/lib/ui/Skeleton.js +2 -2
  746. package/lib/ui/Slider.js +6 -6
  747. package/lib/ui/Slider.js.map +1 -1
  748. package/lib/ui/Stepper.js +1 -1
  749. package/lib/ui/Switch.js +6 -6
  750. package/lib/ui/Switch.js.map +1 -1
  751. package/lib/ui/SyntaxHighlight.js +6 -6
  752. package/lib/ui/Tabs.js +17 -17
  753. package/lib/ui/Tabs.js.map +1 -1
  754. package/lib/ui/Textarea.js +6 -6
  755. package/lib/ui/Textarea.js.map +1 -1
  756. package/lib/ui/Toggle.js +8 -8
  757. package/lib/ui/Toggle.js.map +1 -1
  758. package/lib/ui/ToggleGroup.js +2 -2
  759. package/lib/ui/Tooltip.js +15 -8
  760. package/lib/ui/Tooltip.js.map +1 -1
  761. package/lib/ui/util.js +1 -1
  762. package/lib/{useExposedProps-B9qXJedG.js → useExposedProps-BIYjecPD.js} +2 -2
  763. package/lib/useExposedProps-BIYjecPD.js.map +1 -0
  764. package/lib/zudoku.auth-auth0.js +29 -32
  765. package/lib/zudoku.auth-auth0.js.map +1 -1
  766. package/lib/zudoku.auth-azureb2c.js +9971 -0
  767. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  768. package/lib/zudoku.auth-clerk.js +98 -96
  769. package/lib/zudoku.auth-clerk.js.map +1 -1
  770. package/lib/zudoku.auth-openid.js +556 -552
  771. package/lib/zudoku.auth-openid.js.map +1 -1
  772. package/lib/zudoku.components.js +27 -25
  773. package/lib/zudoku.hooks.js +21 -13
  774. package/lib/zudoku.hooks.js.map +1 -1
  775. package/lib/zudoku.icons.js +1 -1
  776. package/lib/zudoku.plugin-api-catalog.js +99 -101
  777. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  778. package/lib/zudoku.plugin-api-keys.js +556 -207
  779. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  780. package/lib/zudoku.plugin-custom-pages.js +12 -18
  781. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  782. package/lib/zudoku.plugin-markdown.js +20 -73
  783. package/lib/zudoku.plugin-markdown.js.map +1 -1
  784. package/lib/zudoku.plugin-openapi.js +7 -6
  785. package/lib/zudoku.plugin-redirect.js +1 -1
  786. package/lib/zudoku.plugin-redirect.js.map +1 -1
  787. package/lib/zudoku.plugin-search-inkeep.js +55 -59
  788. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  789. package/lib/zudoku.plugin-search-pagefind.js +207 -121
  790. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  791. package/lib/zudoku.plugins.js +7 -6
  792. package/lib/zudoku.plugins.js.map +1 -1
  793. package/package.json +128 -97
  794. package/src/app/ZuploBuildConfig.ts +33 -0
  795. package/src/app/defaultTheme.css +73 -0
  796. package/src/app/demo.html +1 -1
  797. package/src/app/demo.tsx +24 -6
  798. package/src/app/entry.client.tsx +43 -2
  799. package/src/app/entry.server.tsx +6 -5
  800. package/src/app/env.ts +43 -0
  801. package/src/app/font.geist.css +73 -0
  802. package/src/app/main.css +118 -147
  803. package/src/app/main.tsx +44 -51
  804. package/src/app/standalone.tsx +7 -6
  805. package/src/lib/auth/issuer.test.ts +120 -0
  806. package/src/lib/auth/issuer.ts +41 -0
  807. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  808. package/src/lib/authentication/authentication.ts +4 -7
  809. package/src/lib/authentication/components/CallbackHandler.tsx +12 -2
  810. package/src/lib/authentication/components/SignIn.tsx +27 -1
  811. package/src/lib/authentication/components/SignUp.tsx +35 -1
  812. package/src/lib/authentication/providers/auth0.tsx +10 -4
  813. package/src/lib/authentication/providers/azureb2c.tsx +196 -0
  814. package/src/lib/authentication/providers/clerk.tsx +88 -69
  815. package/src/lib/authentication/providers/openid.tsx +111 -53
  816. package/src/lib/authentication/providers/supabase.tsx +9 -16
  817. package/src/lib/authentication/state.ts +37 -7
  818. package/src/lib/components/Autocomplete.tsx +3 -2
  819. package/src/lib/components/Banner.tsx +3 -4
  820. package/src/lib/components/Bootstrap.tsx +13 -6
  821. package/src/lib/components/BuildCheck.tsx +75 -0
  822. package/src/lib/components/CategoryHeading.tsx +4 -1
  823. package/src/lib/components/ErrorPage.tsx +3 -3
  824. package/src/lib/components/Footer.tsx +136 -0
  825. package/src/lib/components/Framed.tsx +51 -0
  826. package/src/lib/components/Header.tsx +43 -40
  827. package/src/lib/components/Heading.tsx +18 -10
  828. package/src/lib/components/InlineCode.tsx +1 -1
  829. package/src/lib/components/Layout.tsx +13 -7
  830. package/src/lib/components/Main.tsx +17 -15
  831. package/src/lib/components/Markdown.tsx +40 -27
  832. package/src/lib/components/MobileTopNavigation.tsx +86 -22
  833. package/src/lib/components/NotFoundPage.tsx +3 -3
  834. package/src/lib/components/PageProgress.tsx +28 -0
  835. package/src/lib/components/Pagination.tsx +10 -12
  836. package/src/lib/components/Search.tsx +15 -4
  837. package/src/lib/components/Slot.test.tsx +465 -0
  838. package/src/lib/components/Slot.tsx +64 -0
  839. package/src/lib/components/StatusPage.tsx +5 -0
  840. package/src/lib/components/TopNavigation.tsx +79 -84
  841. package/src/lib/components/Typography.tsx +14 -0
  842. package/src/lib/components/Zudoku.tsx +12 -12
  843. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  844. package/src/lib/components/context/SlotProvider.tsx +149 -0
  845. package/src/lib/components/context/ViewportAnchorContext.tsx +8 -15
  846. package/src/lib/components/context/ZudokuContext.ts +51 -34
  847. package/src/lib/components/context/ZudokuProvider.tsx +3 -2
  848. package/src/lib/components/index.ts +17 -9
  849. package/src/lib/components/navigation/Navigation.tsx +50 -0
  850. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +2 -2
  851. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +25 -19
  852. package/src/lib/components/navigation/NavigationItem.tsx +151 -0
  853. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  854. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  855. package/src/lib/components/navigation/Toc.tsx +5 -5
  856. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  857. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  858. package/src/lib/components/navigation/utils.ts +63 -28
  859. package/src/lib/core/RouteGuard.tsx +26 -4
  860. package/src/lib/core/ZudokuContext.ts +67 -27
  861. package/src/lib/core/plugins.ts +12 -4
  862. package/src/lib/errors/ErrorAlert.tsx +4 -10
  863. package/src/lib/hooks/index.ts +11 -0
  864. package/src/lib/hooks/useEvent.test.tsx +7 -5
  865. package/src/lib/hooks/useHotkey.ts +70 -0
  866. package/src/lib/oas/graphql/circular.ts +27 -19
  867. package/src/lib/oas/parser/index.ts +7 -1
  868. package/src/lib/oas/parser/upgrade/index.ts +98 -28
  869. package/src/lib/plugins/api-catalog/Catalog.tsx +2 -5
  870. package/src/lib/plugins/api-catalog/index.tsx +54 -49
  871. package/src/lib/plugins/api-keys/CreateApiKey.tsx +54 -42
  872. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +463 -115
  873. package/src/lib/plugins/api-keys/index.tsx +131 -58
  874. package/src/lib/plugins/custom-pages/index.tsx +21 -16
  875. package/src/lib/plugins/markdown/MdxPage.tsx +77 -21
  876. package/src/lib/plugins/markdown/index.tsx +29 -42
  877. package/src/lib/plugins/openapi/CollapsibleCode.tsx +8 -5
  878. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -3
  879. package/src/lib/plugins/openapi/OperationList.tsx +41 -38
  880. package/src/lib/plugins/openapi/OperationListItem.tsx +33 -47
  881. package/src/lib/plugins/openapi/ParamInfos.tsx +4 -1
  882. package/src/lib/plugins/openapi/ParameterListItem.tsx +38 -0
  883. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -2
  884. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  885. package/src/lib/plugins/openapi/SchemaList.tsx +26 -20
  886. package/src/lib/plugins/openapi/Sidecar.tsx +14 -66
  887. package/src/lib/plugins/openapi/SidecarExamples.tsx +9 -2
  888. package/src/lib/plugins/openapi/client/useCreateQuery.ts +23 -4
  889. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  890. package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
  891. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  892. package/src/lib/plugins/openapi/graphql/gql.ts +5 -5
  893. package/src/lib/plugins/openapi/graphql/graphql.ts +6 -6
  894. package/src/lib/plugins/openapi/index.tsx +16 -15
  895. package/src/lib/plugins/openapi/interfaces.ts +7 -6
  896. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  897. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  898. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +8 -1
  899. package/src/lib/plugins/openapi/playground/Headers.tsx +217 -115
  900. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +3 -2
  901. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +19 -35
  902. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  903. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  904. package/src/lib/plugins/openapi/playground/PathParams.tsx +4 -5
  905. package/src/lib/plugins/openapi/playground/Playground.tsx +260 -289
  906. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -2
  907. package/src/lib/plugins/openapi/playground/QueryParams.tsx +105 -59
  908. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  909. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  910. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  911. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  912. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  913. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
  914. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +149 -108
  915. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +68 -89
  916. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  917. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
  918. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
  919. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
  920. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
  921. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  922. package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
  923. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  924. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  925. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  926. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  927. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +47 -37
  928. package/src/lib/plugins/openapi/schema/SchemaView.tsx +90 -147
  929. package/src/lib/plugins/openapi/schema/utils.ts +30 -6
  930. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  931. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +6 -5
  932. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +51 -1
  933. package/src/lib/plugins/openapi/util/getRoutes.tsx +87 -15
  934. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  935. package/src/lib/plugins/redirect/index.tsx +1 -1
  936. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  937. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  938. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +12 -4
  939. package/src/lib/plugins/search-pagefind/ResultList.tsx +13 -15
  940. package/src/lib/plugins/search-pagefind/index.tsx +1 -1
  941. package/src/lib/shiki.ts +132 -0
  942. package/src/lib/ui/Alert.tsx +45 -39
  943. package/src/lib/ui/Badge.tsx +2 -2
  944. package/src/lib/ui/Button.tsx +9 -6
  945. package/src/lib/ui/Callout.tsx +3 -1
  946. package/src/lib/ui/Card.tsx +1 -1
  947. package/src/lib/ui/Checkbox.tsx +1 -1
  948. package/src/lib/ui/CodeBlock.tsx +88 -0
  949. package/src/lib/ui/Command.tsx +5 -5
  950. package/src/lib/ui/Dialog.tsx +11 -7
  951. package/src/lib/ui/DropdownMenu.tsx +4 -4
  952. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  953. package/src/lib/ui/HoverCard.tsx +1 -1
  954. package/src/lib/ui/Input.tsx +1 -1
  955. package/src/lib/ui/Popover.tsx +1 -1
  956. package/src/lib/ui/RadioGroup.tsx +1 -1
  957. package/src/lib/ui/Select.tsx +3 -3
  958. package/src/lib/ui/Slider.tsx +1 -1
  959. package/src/lib/ui/Switch.tsx +1 -1
  960. package/src/lib/ui/SyntaxHighlight.tsx +28 -179
  961. package/src/lib/ui/Tabs.tsx +2 -2
  962. package/src/lib/ui/Textarea.tsx +1 -1
  963. package/src/lib/ui/Toggle.tsx +1 -1
  964. package/src/lib/ui/Tooltip.tsx +16 -1
  965. package/src/lib/util/MdxComponents.tsx +42 -16
  966. package/src/lib/util/detectOS.ts +9 -0
  967. package/src/lib/util/ensureArray.ts +3 -0
  968. package/src/lib/util/humanFileSize.test.ts +24 -0
  969. package/src/lib/util/humanFileSize.ts +16 -0
  970. package/src/lib/util/os.ts +18 -0
  971. package/src/lib/util/traverse.ts +8 -5
  972. package/src/lib/util/url.test.ts +51 -0
  973. package/src/lib/util/url.ts +18 -0
  974. package/src/lib/util/useCopyToClipboard.ts +17 -0
  975. package/src/lib/util/useExposedProps.tsx +12 -1
  976. package/src/lib/util/useScrollToAnchor.ts +3 -3
  977. package/src/shiki/langs/abap.js +1 -0
  978. package/src/shiki/langs/actionscript-3.js +1 -0
  979. package/src/shiki/langs/ada.js +1 -0
  980. package/src/shiki/langs/angular-expression.js +1 -0
  981. package/src/shiki/langs/angular-html.js +1 -0
  982. package/src/shiki/langs/angular-inline-style.js +1 -0
  983. package/src/shiki/langs/angular-inline-template.js +1 -0
  984. package/src/shiki/langs/angular-let-declaration.js +1 -0
  985. package/src/shiki/langs/angular-template-blocks.js +1 -0
  986. package/src/shiki/langs/angular-template.js +1 -0
  987. package/src/shiki/langs/angular-ts.js +1 -0
  988. package/src/shiki/langs/apache.js +1 -0
  989. package/src/shiki/langs/apex.js +1 -0
  990. package/src/shiki/langs/apl.js +1 -0
  991. package/src/shiki/langs/applescript.js +1 -0
  992. package/src/shiki/langs/ara.js +1 -0
  993. package/src/shiki/langs/asciidoc.js +1 -0
  994. package/src/shiki/langs/asm.js +1 -0
  995. package/src/shiki/langs/astro.js +1 -0
  996. package/src/shiki/langs/awk.js +1 -0
  997. package/src/shiki/langs/ballerina.js +1 -0
  998. package/src/shiki/langs/bat.js +1 -0
  999. package/src/shiki/langs/beancount.js +1 -0
  1000. package/src/shiki/langs/berry.js +1 -0
  1001. package/src/shiki/langs/bibtex.js +1 -0
  1002. package/src/shiki/langs/bicep.js +1 -0
  1003. package/src/shiki/langs/blade.js +1 -0
  1004. package/src/shiki/langs/bsl.js +1 -0
  1005. package/src/shiki/langs/c.js +1 -0
  1006. package/src/shiki/langs/cadence.js +1 -0
  1007. package/src/shiki/langs/cairo.js +1 -0
  1008. package/src/shiki/langs/clarity.js +1 -0
  1009. package/src/shiki/langs/clojure.js +1 -0
  1010. package/src/shiki/langs/cmake.js +1 -0
  1011. package/src/shiki/langs/cobol.js +1 -0
  1012. package/src/shiki/langs/codeowners.js +1 -0
  1013. package/src/shiki/langs/codeql.js +1 -0
  1014. package/src/shiki/langs/coffee.js +1 -0
  1015. package/src/shiki/langs/common-lisp.js +1 -0
  1016. package/src/shiki/langs/coq.js +1 -0
  1017. package/src/shiki/langs/cpp-macro.js +1 -0
  1018. package/src/shiki/langs/cpp.js +1 -0
  1019. package/src/shiki/langs/crystal.js +1 -0
  1020. package/src/shiki/langs/csharp.js +1 -0
  1021. package/src/shiki/langs/css.js +1 -0
  1022. package/src/shiki/langs/csv.js +1 -0
  1023. package/src/shiki/langs/cue.js +1 -0
  1024. package/src/shiki/langs/cypher.js +1 -0
  1025. package/src/shiki/langs/d.js +1 -0
  1026. package/src/shiki/langs/dart.js +1 -0
  1027. package/src/shiki/langs/dax.js +1 -0
  1028. package/src/shiki/langs/desktop.js +1 -0
  1029. package/src/shiki/langs/diff.js +1 -0
  1030. package/src/shiki/langs/docker.js +1 -0
  1031. package/src/shiki/langs/dotenv.js +1 -0
  1032. package/src/shiki/langs/dream-maker.js +1 -0
  1033. package/src/shiki/langs/edge.js +1 -0
  1034. package/src/shiki/langs/elixir.js +1 -0
  1035. package/src/shiki/langs/elm.js +1 -0
  1036. package/src/shiki/langs/emacs-lisp.js +1 -0
  1037. package/src/shiki/langs/erb.js +1 -0
  1038. package/src/shiki/langs/erlang.js +1 -0
  1039. package/src/shiki/langs/es-tag-css.js +1 -0
  1040. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1041. package/src/shiki/langs/es-tag-html.js +1 -0
  1042. package/src/shiki/langs/es-tag-sql.js +1 -0
  1043. package/src/shiki/langs/es-tag-xml.js +1 -0
  1044. package/src/shiki/langs/fennel.js +1 -0
  1045. package/src/shiki/langs/fish.js +1 -0
  1046. package/src/shiki/langs/fluent.js +1 -0
  1047. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1048. package/src/shiki/langs/fortran-free-form.js +1 -0
  1049. package/src/shiki/langs/fsharp.js +1 -0
  1050. package/src/shiki/langs/gdresource.js +1 -0
  1051. package/src/shiki/langs/gdscript.js +1 -0
  1052. package/src/shiki/langs/gdshader.js +1 -0
  1053. package/src/shiki/langs/genie.js +1 -0
  1054. package/src/shiki/langs/gherkin.js +1 -0
  1055. package/src/shiki/langs/git-commit.js +1 -0
  1056. package/src/shiki/langs/git-rebase.js +1 -0
  1057. package/src/shiki/langs/gleam.js +1 -0
  1058. package/src/shiki/langs/glimmer-js.js +1 -0
  1059. package/src/shiki/langs/glimmer-ts.js +1 -0
  1060. package/src/shiki/langs/glsl.js +1 -0
  1061. package/src/shiki/langs/gnuplot.js +1 -0
  1062. package/src/shiki/langs/go.js +1 -0
  1063. package/src/shiki/langs/graphql.js +1 -0
  1064. package/src/shiki/langs/groovy.js +1 -0
  1065. package/src/shiki/langs/hack.js +1 -0
  1066. package/src/shiki/langs/haml.js +1 -0
  1067. package/src/shiki/langs/handlebars.js +1 -0
  1068. package/src/shiki/langs/haskell.js +1 -0
  1069. package/src/shiki/langs/haxe.js +1 -0
  1070. package/src/shiki/langs/hcl.js +1 -0
  1071. package/src/shiki/langs/hjson.js +1 -0
  1072. package/src/shiki/langs/hlsl.js +1 -0
  1073. package/src/shiki/langs/html-derivative.js +1 -0
  1074. package/src/shiki/langs/html.js +1 -0
  1075. package/src/shiki/langs/http.js +1 -0
  1076. package/src/shiki/langs/hxml.js +1 -0
  1077. package/src/shiki/langs/hy.js +1 -0
  1078. package/src/shiki/langs/imba.js +1 -0
  1079. package/src/shiki/langs/ini.js +1 -0
  1080. package/src/shiki/langs/java.js +1 -0
  1081. package/src/shiki/langs/javascript.js +1 -0
  1082. package/src/shiki/langs/jinja-html.js +1 -0
  1083. package/src/shiki/langs/jinja.js +1 -0
  1084. package/src/shiki/langs/jison.js +1 -0
  1085. package/src/shiki/langs/json.js +1 -0
  1086. package/src/shiki/langs/json5.js +1 -0
  1087. package/src/shiki/langs/jsonc.js +1 -0
  1088. package/src/shiki/langs/jsonl.js +1 -0
  1089. package/src/shiki/langs/jsonnet.js +1 -0
  1090. package/src/shiki/langs/jssm.js +1 -0
  1091. package/src/shiki/langs/jsx.js +1 -0
  1092. package/src/shiki/langs/julia.js +1 -0
  1093. package/src/shiki/langs/kotlin.js +1 -0
  1094. package/src/shiki/langs/kusto.js +1 -0
  1095. package/src/shiki/langs/latex.js +1 -0
  1096. package/src/shiki/langs/lean.js +1 -0
  1097. package/src/shiki/langs/less.js +1 -0
  1098. package/src/shiki/langs/liquid.js +1 -0
  1099. package/src/shiki/langs/llvm.js +1 -0
  1100. package/src/shiki/langs/log.js +1 -0
  1101. package/src/shiki/langs/logo.js +1 -0
  1102. package/src/shiki/langs/lua.js +1 -0
  1103. package/src/shiki/langs/luau.js +1 -0
  1104. package/src/shiki/langs/make.js +1 -0
  1105. package/src/shiki/langs/markdown-vue.js +1 -0
  1106. package/src/shiki/langs/markdown.js +1 -0
  1107. package/src/shiki/langs/marko.js +1 -0
  1108. package/src/shiki/langs/matlab.js +1 -0
  1109. package/src/shiki/langs/mdc.js +1 -0
  1110. package/src/shiki/langs/mdx.js +1 -0
  1111. package/src/shiki/langs/mermaid.js +1 -0
  1112. package/src/shiki/langs/mipsasm.js +1 -0
  1113. package/src/shiki/langs/mojo.js +1 -0
  1114. package/src/shiki/langs/move.js +1 -0
  1115. package/src/shiki/langs/narrat.js +1 -0
  1116. package/src/shiki/langs/nextflow.js +1 -0
  1117. package/src/shiki/langs/nginx.js +1 -0
  1118. package/src/shiki/langs/nim.js +1 -0
  1119. package/src/shiki/langs/nix.js +1 -0
  1120. package/src/shiki/langs/nushell.js +1 -0
  1121. package/src/shiki/langs/objective-c.js +1 -0
  1122. package/src/shiki/langs/objective-cpp.js +1 -0
  1123. package/src/shiki/langs/ocaml.js +1 -0
  1124. package/src/shiki/langs/pascal.js +1 -0
  1125. package/src/shiki/langs/perl.js +1 -0
  1126. package/src/shiki/langs/php.js +1 -0
  1127. package/src/shiki/langs/plsql.js +1 -0
  1128. package/src/shiki/langs/po.js +1 -0
  1129. package/src/shiki/langs/polar.js +1 -0
  1130. package/src/shiki/langs/postcss.js +1 -0
  1131. package/src/shiki/langs/powerquery.js +1 -0
  1132. package/src/shiki/langs/powershell.js +1 -0
  1133. package/src/shiki/langs/prisma.js +1 -0
  1134. package/src/shiki/langs/prolog.js +1 -0
  1135. package/src/shiki/langs/proto.js +1 -0
  1136. package/src/shiki/langs/pug.js +1 -0
  1137. package/src/shiki/langs/puppet.js +1 -0
  1138. package/src/shiki/langs/purescript.js +1 -0
  1139. package/src/shiki/langs/python.js +1 -0
  1140. package/src/shiki/langs/qml.js +1 -0
  1141. package/src/shiki/langs/qmldir.js +1 -0
  1142. package/src/shiki/langs/qss.js +1 -0
  1143. package/src/shiki/langs/r.js +1 -0
  1144. package/src/shiki/langs/racket.js +1 -0
  1145. package/src/shiki/langs/raku.js +1 -0
  1146. package/src/shiki/langs/razor.js +1 -0
  1147. package/src/shiki/langs/reg.js +1 -0
  1148. package/src/shiki/langs/regexp.js +1 -0
  1149. package/src/shiki/langs/rel.js +1 -0
  1150. package/src/shiki/langs/riscv.js +1 -0
  1151. package/src/shiki/langs/rst.js +1 -0
  1152. package/src/shiki/langs/ruby.js +1 -0
  1153. package/src/shiki/langs/rust.js +1 -0
  1154. package/src/shiki/langs/sas.js +1 -0
  1155. package/src/shiki/langs/sass.js +1 -0
  1156. package/src/shiki/langs/scala.js +1 -0
  1157. package/src/shiki/langs/scheme.js +1 -0
  1158. package/src/shiki/langs/scss.js +1 -0
  1159. package/src/shiki/langs/sdbl.js +1 -0
  1160. package/src/shiki/langs/shaderlab.js +1 -0
  1161. package/src/shiki/langs/shellscript.js +1 -0
  1162. package/src/shiki/langs/shellsession.js +1 -0
  1163. package/src/shiki/langs/smalltalk.js +1 -0
  1164. package/src/shiki/langs/solidity.js +1 -0
  1165. package/src/shiki/langs/soy.js +1 -0
  1166. package/src/shiki/langs/sparql.js +1 -0
  1167. package/src/shiki/langs/splunk.js +1 -0
  1168. package/src/shiki/langs/sql.js +1 -0
  1169. package/src/shiki/langs/ssh-config.js +1 -0
  1170. package/src/shiki/langs/stata.js +1 -0
  1171. package/src/shiki/langs/stylus.js +1 -0
  1172. package/src/shiki/langs/svelte.js +1 -0
  1173. package/src/shiki/langs/swift.js +1 -0
  1174. package/src/shiki/langs/system-verilog.js +1 -0
  1175. package/src/shiki/langs/systemd.js +1 -0
  1176. package/src/shiki/langs/talonscript.js +1 -0
  1177. package/src/shiki/langs/tasl.js +1 -0
  1178. package/src/shiki/langs/tcl.js +1 -0
  1179. package/src/shiki/langs/templ.js +1 -0
  1180. package/src/shiki/langs/terraform.js +1 -0
  1181. package/src/shiki/langs/tex.js +1 -0
  1182. package/src/shiki/langs/toml.js +1 -0
  1183. package/src/shiki/langs/ts-tags.js +1 -0
  1184. package/src/shiki/langs/tsv.js +1 -0
  1185. package/src/shiki/langs/tsx.js +1 -0
  1186. package/src/shiki/langs/turtle.js +1 -0
  1187. package/src/shiki/langs/twig.js +1 -0
  1188. package/src/shiki/langs/typescript.js +1 -0
  1189. package/src/shiki/langs/typespec.js +1 -0
  1190. package/src/shiki/langs/typst.js +1 -0
  1191. package/src/shiki/langs/v.js +1 -0
  1192. package/src/shiki/langs/vala.js +1 -0
  1193. package/src/shiki/langs/vb.js +1 -0
  1194. package/src/shiki/langs/verilog.js +1 -0
  1195. package/src/shiki/langs/vhdl.js +1 -0
  1196. package/src/shiki/langs/viml.js +1 -0
  1197. package/src/shiki/langs/vue-directives.js +1 -0
  1198. package/src/shiki/langs/vue-html.js +1 -0
  1199. package/src/shiki/langs/vue-interpolations.js +1 -0
  1200. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1201. package/src/shiki/langs/vue.js +1 -0
  1202. package/src/shiki/langs/vyper.js +1 -0
  1203. package/src/shiki/langs/wasm.js +1 -0
  1204. package/src/shiki/langs/wenyan.js +1 -0
  1205. package/src/shiki/langs/wgsl.js +1 -0
  1206. package/src/shiki/langs/wikitext.js +1 -0
  1207. package/src/shiki/langs/wit.js +1 -0
  1208. package/src/shiki/langs/wolfram.js +1 -0
  1209. package/src/shiki/langs/xml.js +1 -0
  1210. package/src/shiki/langs/xsl.js +1 -0
  1211. package/src/shiki/langs/yaml.js +1 -0
  1212. package/src/shiki/langs/zenscript.js +1 -0
  1213. package/src/shiki/langs/zig.js +1 -0
  1214. package/src/shiki/themes/andromeeda.js +1 -0
  1215. package/src/shiki/themes/aurora-x.js +1 -0
  1216. package/src/shiki/themes/ayu-dark.js +1 -0
  1217. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1218. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1219. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1220. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1221. package/src/shiki/themes/dark-plus.js +1 -0
  1222. package/src/shiki/themes/dracula-soft.js +1 -0
  1223. package/src/shiki/themes/dracula.js +1 -0
  1224. package/src/shiki/themes/everforest-dark.js +1 -0
  1225. package/src/shiki/themes/everforest-light.js +1 -0
  1226. package/src/shiki/themes/github-dark-default.js +1 -0
  1227. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1228. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1229. package/src/shiki/themes/github-dark.js +1 -0
  1230. package/src/shiki/themes/github-light-default.js +1 -0
  1231. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1232. package/src/shiki/themes/github-light.js +1 -0
  1233. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1234. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1235. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1236. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1237. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1238. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1239. package/src/shiki/themes/houston.js +1 -0
  1240. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1241. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1242. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1243. package/src/shiki/themes/laserwave.js +1 -0
  1244. package/src/shiki/themes/light-plus.js +1 -0
  1245. package/src/shiki/themes/material-theme-darker.js +1 -0
  1246. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1247. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1248. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1249. package/src/shiki/themes/material-theme.js +1 -0
  1250. package/src/shiki/themes/min-dark.js +1 -0
  1251. package/src/shiki/themes/min-light.js +1 -0
  1252. package/src/shiki/themes/monokai.js +1 -0
  1253. package/src/shiki/themes/night-owl.js +1 -0
  1254. package/src/shiki/themes/nord.js +1 -0
  1255. package/src/shiki/themes/one-dark-pro.js +1 -0
  1256. package/src/shiki/themes/one-light.js +1 -0
  1257. package/src/shiki/themes/plastic.js +1 -0
  1258. package/src/shiki/themes/poimandres.js +1 -0
  1259. package/src/shiki/themes/red.js +1 -0
  1260. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1261. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1262. package/src/shiki/themes/rose-pine.js +1 -0
  1263. package/src/shiki/themes/slack-dark.js +1 -0
  1264. package/src/shiki/themes/slack-ochin.js +1 -0
  1265. package/src/shiki/themes/snazzy-light.js +1 -0
  1266. package/src/shiki/themes/solarized-dark.js +1 -0
  1267. package/src/shiki/themes/solarized-light.js +1 -0
  1268. package/src/shiki/themes/synthwave-84.js +1 -0
  1269. package/src/shiki/themes/tokyo-night.js +1 -0
  1270. package/src/shiki/themes/vesper.js +1 -0
  1271. package/src/shiki/themes/vitesse-black.js +1 -0
  1272. package/src/shiki/themes/vitesse-dark.js +1 -0
  1273. package/src/shiki/themes/vitesse-light.js +1 -0
  1274. package/client.d.ts +0 -8
  1275. package/dist/app/tailwind.d.ts +0 -4
  1276. package/dist/app/tailwind.js +0 -97
  1277. package/dist/app/tailwind.js.map +0 -1
  1278. package/dist/cli/dev/pagefind-command.d.ts +0 -3
  1279. package/dist/cli/dev/pagefind-command.js +0 -59
  1280. package/dist/cli/dev/pagefind-command.js.map +0 -1
  1281. package/dist/config/common.d.ts +0 -10
  1282. package/dist/config/common.js +0 -2
  1283. package/dist/config/common.js.map +0 -1
  1284. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1285. package/dist/config/validators/InputSidebarSchema.js +0 -62
  1286. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1287. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1288. package/dist/config/validators/SidebarSchema.js +0 -118
  1289. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1290. package/dist/config/validators/common.d.ts +0 -6849
  1291. package/dist/config/validators/common.js +0 -364
  1292. package/dist/config/validators/common.js.map +0 -1
  1293. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1294. package/dist/lib/components/SlotletProvider.js +0 -18
  1295. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1296. package/dist/lib/components/context/PluginSystem.js +0 -2
  1297. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1298. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  1299. package/dist/lib/components/navigation/Sidebar.js +0 -17
  1300. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1301. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1302. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1303. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1304. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -11
  1305. package/dist/lib/components/navigation/SidebarItem.js +0 -50
  1306. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1307. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -8
  1308. package/dist/lib/components/navigation/SidebarWrapper.js +0 -5
  1309. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1310. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1311. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1312. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1313. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  1314. package/dist/lib/plugins/markdown/resolver.js +0 -46
  1315. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1316. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1317. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
  1318. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1319. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1320. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1321. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1322. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1323. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1324. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1325. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  1326. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  1327. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  1328. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  1329. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  1330. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  1331. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  1332. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  1333. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  1334. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  1335. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  1336. package/dist/vite/plugin-docs.test.js +0 -22
  1337. package/dist/vite/plugin-docs.test.js.map +0 -1
  1338. package/dist/vite/plugin-sidebar.d.ts +0 -3
  1339. package/dist/vite/plugin-sidebar.js.map +0 -1
  1340. package/dist/vite/plugin-theme-css.d.ts +0 -6
  1341. package/dist/vite/plugin-theme-css.js +0 -117
  1342. package/dist/vite/plugin-theme-css.js.map +0 -1
  1343. package/dist/zuplo/env.d.ts +0 -7
  1344. package/dist/zuplo/env.js +0 -12
  1345. package/dist/zuplo/env.js.map +0 -1
  1346. package/lib/AuthenticationPlugin-foqdvvkf.js +0 -58
  1347. package/lib/AuthenticationPlugin-foqdvvkf.js.map +0 -1
  1348. package/lib/Button-Fp19CMUr.js +0 -49
  1349. package/lib/Button-Fp19CMUr.js.map +0 -1
  1350. package/lib/Callout-D5frCCJ0.js +0 -229
  1351. package/lib/Callout-D5frCCJ0.js.map +0 -1
  1352. package/lib/CategoryHeading-DpB47wvk.js +0 -10
  1353. package/lib/CategoryHeading-DpB47wvk.js.map +0 -1
  1354. package/lib/Dialog-Dv6WG8RN.js.map +0 -1
  1355. package/lib/Drawer-kDAfOq_2.js.map +0 -1
  1356. package/lib/Markdown-D-vLL3rw.js.map +0 -1
  1357. package/lib/MdxPage-BY6tJN4Q.js +0 -83
  1358. package/lib/MdxPage-BY6tJN4Q.js.map +0 -1
  1359. package/lib/OasProvider-5ej8C_s6.js +0 -34
  1360. package/lib/OasProvider-5ej8C_s6.js.map +0 -1
  1361. package/lib/OperationList-CHuBrSD5.js.map +0 -1
  1362. package/lib/Pagination-DALsKi79.js +0 -46
  1363. package/lib/Pagination-DALsKi79.js.map +0 -1
  1364. package/lib/SchemaList-BH1kPaT4.js +0 -148
  1365. package/lib/SchemaList-BH1kPaT4.js.map +0 -1
  1366. package/lib/SchemaView-6_qdGR_9.js +0 -356
  1367. package/lib/SchemaView-6_qdGR_9.js.map +0 -1
  1368. package/lib/Select-DVFRKf1R.js +0 -223
  1369. package/lib/Select-DVFRKf1R.js.map +0 -1
  1370. package/lib/SlotletProvider-BPQNhW3Y.js +0 -338
  1371. package/lib/SlotletProvider-BPQNhW3Y.js.map +0 -1
  1372. package/lib/SyntaxHighlight-BEoSoPEo.js +0 -2890
  1373. package/lib/SyntaxHighlight-BEoSoPEo.js.map +0 -1
  1374. package/lib/Toc-COKWpWOX.js.map +0 -1
  1375. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1376. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1377. package/lib/chunk-HA7DTUK3-C4gP41vD.js +0 -1821
  1378. package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +0 -1
  1379. package/lib/circular-ByJI6Mci.js.map +0 -1
  1380. package/lib/cn-qaFjX9_3.js.map +0 -1
  1381. package/lib/context-DLCwaMXN.js +0 -22
  1382. package/lib/context-DLCwaMXN.js.map +0 -1
  1383. package/lib/createServer-mMau3eV_.js.map +0 -1
  1384. package/lib/hook-CqpVYDqN.js +0 -1483
  1385. package/lib/hook-CqpVYDqN.js.map +0 -1
  1386. package/lib/index-Bn6Lc9tq.js +0 -9
  1387. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1388. package/lib/index-CFrxHpoy.js +0 -2514
  1389. package/lib/index-CFrxHpoy.js.map +0 -1
  1390. package/lib/index-DGMVODgw.js +0 -2226
  1391. package/lib/index-DGMVODgw.js.map +0 -1
  1392. package/lib/index-Dl3Yl0yb.js.map +0 -1
  1393. package/lib/index-DwT-v3zK.js +0 -86
  1394. package/lib/index-DwT-v3zK.js.map +0 -1
  1395. package/lib/index-gQD2h1wX.js +0 -447
  1396. package/lib/index-gQD2h1wX.js.map +0 -1
  1397. package/lib/index.esm--gIChbWs.js +0 -1207
  1398. package/lib/index.esm--gIChbWs.js.map +0 -1
  1399. package/lib/invariant-Caa8-XvF.js +0 -26
  1400. package/lib/jsx-runtime-CYK1ROHF.js +0 -446
  1401. package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
  1402. package/lib/mutation-8LjrN7uz.js +0 -208
  1403. package/lib/mutation-8LjrN7uz.js.map +0 -1
  1404. package/lib/objectEntries-BS7aAgOm.js +0 -12
  1405. package/lib/objectEntries-BS7aAgOm.js.map +0 -1
  1406. package/lib/post-processors/removeExtensions.js.map +0 -1
  1407. package/lib/post-processors/removeParameters.js +0 -48
  1408. package/lib/post-processors/removeParameters.js.map +0 -1
  1409. package/lib/post-processors/removePaths.js +0 -28
  1410. package/lib/post-processors/removePaths.js.map +0 -1
  1411. package/lib/post-processors/traverse.js +0 -15
  1412. package/lib/post-processors/traverse.js.map +0 -1
  1413. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1414. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1415. package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
  1416. package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
  1417. package/lib/prism-java.min-BpvsOuIa.js +0 -35
  1418. package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
  1419. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1420. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1421. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1422. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1423. package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
  1424. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
  1425. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1426. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1427. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1428. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1429. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1430. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1431. package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
  1432. package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
  1433. package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
  1434. package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
  1435. package/lib/useExposedProps-B9qXJedG.js.map +0 -1
  1436. package/src/app/tailwind.ts +0 -103
  1437. package/src/lib/components/SlotletProvider.tsx +0 -55
  1438. package/src/lib/components/context/PluginSystem.ts +0 -0
  1439. package/src/lib/components/navigation/Sidebar.tsx +0 -53
  1440. package/src/lib/components/navigation/SidebarItem.tsx +0 -118
  1441. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -25
  1442. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1443. package/src/lib/plugins/markdown/resolver.ts +0 -57
  1444. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
  1445. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1446. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1447. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  1448. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  1449. /package/dist/{lib/plugins/openapi/post-processors/removeExtensions.test.d.ts → config/validators/validate.test.d.ts} +0 -0
  1450. /package/dist/lib/{plugins/openapi/post-processors/removeParameters.test.d.ts → auth/issuer.test.d.ts} +0 -0
  1451. /package/dist/lib/{plugins/openapi/post-processors/removePaths.test.d.ts → components/Slot.test.d.ts} +0 -0
  1452. /package/dist/{vite/plugin-docs.test.d.ts → lib/plugins/openapi/processors/removeExtensions.test.d.ts} +0 -0
  1453. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  1454. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  1455. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -1,151 +1,146 @@
1
- var Le = Object.defineProperty;
2
- var xe = (t, e, n) => e in t ? Le(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var b = (t, e, n) => xe(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { j as B } from "./jsx-runtime-CYK1ROHF.js";
5
- import { g as Ce } from "./_commonjsHelpers-BkfeUUK-.js";
6
- import { C as Ie } from "./ClientOnly-E7hGysn1.js";
7
- import { d as je, f as ie, u as x } from "./hook-CqpVYDqN.js";
8
- import { A as Je } from "./AuthenticationPlugin-foqdvvkf.js";
9
- import { N as Oe } from "./chunk-HA7DTUK3-C4gP41vD.js";
10
- import { Z as ze } from "./invariant-Caa8-XvF.js";
11
- var D = { exports: {} }, De = D.exports, ae;
12
- function Ne() {
13
- return ae || (ae = 1, function(t) {
1
+ import { j as ne } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { g as Le } from "./invariant-DAFpPywt.js";
3
+ import { C as Ue } from "./ClientOnly-E7hGysn1.js";
4
+ import { j as xe, u as S } from "./hook-CZjW2buS.js";
5
+ import { C as Ce, O as re, A as R, a as Ie } from "./errors-CKo4K1aM.js";
6
+ var O = { exports: {} }, je = O.exports, oe;
7
+ function De() {
8
+ return oe || (oe = 1, function(t) {
14
9
  (function(e, n) {
15
10
  t.exports ? t.exports = n() : e.log = n();
16
- })(De, function() {
11
+ })(je, function() {
17
12
  var e = function() {
18
- }, n = "undefined", o = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
13
+ }, n = "undefined", o = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), s = [
19
14
  "trace",
20
15
  "debug",
21
16
  "info",
22
17
  "warn",
23
18
  "error"
24
19
  ], r = {}, i = null;
25
- function c(l, m) {
26
- var u = l[m];
27
- if (typeof u.bind == "function")
28
- return u.bind(l);
20
+ function u(l, m) {
21
+ var c = l[m];
22
+ if (typeof c.bind == "function")
23
+ return c.bind(l);
29
24
  try {
30
- return Function.prototype.bind.call(u, l);
25
+ return Function.prototype.bind.call(c, l);
31
26
  } catch {
32
27
  return function() {
33
- return Function.prototype.apply.apply(u, [l, arguments]);
28
+ return Function.prototype.apply.apply(c, [l, arguments]);
34
29
  };
35
30
  }
36
31
  }
37
- function p() {
32
+ function d() {
38
33
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
39
34
  }
40
- function w(l) {
41
- return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? p : console[l] !== void 0 ? c(console, l) : console.log !== void 0 ? c(console, "log") : e;
35
+ function y(l) {
36
+ return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? d : console[l] !== void 0 ? u(console, l) : console.log !== void 0 ? u(console, "log") : e;
42
37
  }
43
- function f() {
44
- for (var l = this.getLevel(), m = 0; m < a.length; m++) {
45
- var u = a[m];
46
- this[u] = m < l ? e : this.methodFactory(u, l, this.name);
38
+ function p() {
39
+ for (var l = this.getLevel(), m = 0; m < s.length; m++) {
40
+ var c = s[m];
41
+ this[c] = m < l ? e : this.methodFactory(c, l, this.name);
47
42
  }
48
43
  if (this.log = this.debug, typeof console === n && l < this.levels.SILENT)
49
44
  return "No console available for logging";
50
45
  }
51
- function v(l) {
46
+ function k(l) {
52
47
  return function() {
53
- typeof console !== n && (f.call(this), this[l].apply(this, arguments));
48
+ typeof console !== n && (p.call(this), this[l].apply(this, arguments));
54
49
  };
55
50
  }
56
- function _(l, m, u) {
57
- return w(l) || v.apply(this, arguments);
51
+ function b(l, m, c) {
52
+ return y(l) || k.apply(this, arguments);
58
53
  }
59
- function h(l, m) {
60
- var u = this, J, $, U, S = "loglevel";
61
- typeof l == "string" ? S += ":" + l : typeof l == "symbol" && (S = void 0);
62
- function Re(d) {
63
- var y = (a[d] || "silent").toUpperCase();
64
- if (!(typeof window === n || !S)) {
54
+ function f(l, m) {
55
+ var c = this, j, K, L, _ = "loglevel";
56
+ typeof l == "string" ? _ += ":" + l : typeof l == "symbol" && (_ = void 0);
57
+ function Ee(h) {
58
+ var g = (s[h] || "silent").toUpperCase();
59
+ if (!(typeof window === n || !_)) {
65
60
  try {
66
- window.localStorage[S] = y;
61
+ window.localStorage[_] = g;
67
62
  return;
68
63
  } catch {
69
64
  }
70
65
  try {
71
- window.document.cookie = encodeURIComponent(S) + "=" + y + ";";
66
+ window.document.cookie = encodeURIComponent(_) + "=" + g + ";";
72
67
  } catch {
73
68
  }
74
69
  }
75
70
  }
76
- function ne() {
77
- var d;
78
- if (!(typeof window === n || !S)) {
71
+ function X() {
72
+ var h;
73
+ if (!(typeof window === n || !_)) {
79
74
  try {
80
- d = window.localStorage[S];
75
+ h = window.localStorage[_];
81
76
  } catch {
82
77
  }
83
- if (typeof d === n)
78
+ if (typeof h === n)
84
79
  try {
85
- var y = window.document.cookie, O = encodeURIComponent(S), oe = y.indexOf(O + "=");
86
- oe !== -1 && (d = /^([^;]+)/.exec(
87
- y.slice(oe + O.length + 1)
80
+ var g = window.document.cookie, D = encodeURIComponent(_), te = g.indexOf(D + "=");
81
+ te !== -1 && (h = /^([^;]+)/.exec(
82
+ g.slice(te + D.length + 1)
88
83
  )[1]);
89
84
  } catch {
90
85
  }
91
- return u.levels[d] === void 0 && (d = void 0), d;
86
+ return c.levels[h] === void 0 && (h = void 0), h;
92
87
  }
93
88
  }
94
- function Pe() {
95
- if (!(typeof window === n || !S)) {
89
+ function Re() {
90
+ if (!(typeof window === n || !_)) {
96
91
  try {
97
- window.localStorage.removeItem(S);
92
+ window.localStorage.removeItem(_);
98
93
  } catch {
99
94
  }
100
95
  try {
101
- window.document.cookie = encodeURIComponent(S) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
96
+ window.document.cookie = encodeURIComponent(_) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
102
97
  } catch {
103
98
  }
104
99
  }
105
100
  }
106
- function L(d) {
107
- var y = d;
108
- if (typeof y == "string" && u.levels[y.toUpperCase()] !== void 0 && (y = u.levels[y.toUpperCase()]), typeof y == "number" && y >= 0 && y <= u.levels.SILENT)
109
- return y;
110
- throw new TypeError("log.setLevel() called with invalid level: " + d);
101
+ function U(h) {
102
+ var g = h;
103
+ if (typeof g == "string" && c.levels[g.toUpperCase()] !== void 0 && (g = c.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= c.levels.SILENT)
104
+ return g;
105
+ throw new TypeError("log.setLevel() called with invalid level: " + h);
111
106
  }
112
- u.name = l, u.levels = {
107
+ c.name = l, c.levels = {
113
108
  TRACE: 0,
114
109
  DEBUG: 1,
115
110
  INFO: 2,
116
111
  WARN: 3,
117
112
  ERROR: 4,
118
113
  SILENT: 5
119
- }, u.methodFactory = m || _, u.getLevel = function() {
120
- return U ?? $ ?? J;
121
- }, u.setLevel = function(d, y) {
122
- return U = L(d), y !== !1 && Re(U), f.call(u);
123
- }, u.setDefaultLevel = function(d) {
124
- $ = L(d), ne() || u.setLevel(d, !1);
125
- }, u.resetLevel = function() {
126
- U = null, Pe(), f.call(u);
127
- }, u.enableAll = function(d) {
128
- u.setLevel(u.levels.TRACE, d);
129
- }, u.disableAll = function(d) {
130
- u.setLevel(u.levels.SILENT, d);
131
- }, u.rebuild = function() {
132
- if (i !== u && (J = L(i.getLevel())), f.call(u), i === u)
133
- for (var d in r)
134
- r[d].rebuild();
135
- }, J = L(
114
+ }, c.methodFactory = m || b, c.getLevel = function() {
115
+ return L ?? K ?? j;
116
+ }, c.setLevel = function(h, g) {
117
+ return L = U(h), g !== !1 && Ee(L), p.call(c);
118
+ }, c.setDefaultLevel = function(h) {
119
+ K = U(h), X() || c.setLevel(h, !1);
120
+ }, c.resetLevel = function() {
121
+ L = null, Re(), p.call(c);
122
+ }, c.enableAll = function(h) {
123
+ c.setLevel(c.levels.TRACE, h);
124
+ }, c.disableAll = function(h) {
125
+ c.setLevel(c.levels.SILENT, h);
126
+ }, c.rebuild = function() {
127
+ if (i !== c && (j = U(i.getLevel())), p.call(c), i === c)
128
+ for (var h in r)
129
+ r[h].rebuild();
130
+ }, j = U(
136
131
  i ? i.getLevel() : "WARN"
137
132
  );
138
- var re = ne();
139
- re != null && (U = L(re)), f.call(u);
133
+ var ee = X();
134
+ ee != null && (L = U(ee)), p.call(c);
140
135
  }
141
- i = new h(), i.getLogger = function(m) {
136
+ i = new f(), i.getLogger = function(m) {
142
137
  if (typeof m != "symbol" && typeof m != "string" || m === "")
143
138
  throw new TypeError("You must supply a name when creating a logger.");
144
- var u = r[m];
145
- return u || (u = r[m] = new h(
139
+ var c = r[m];
140
+ return c || (c = r[m] = new f(
146
141
  m,
147
142
  i.methodFactory
148
- )), u;
143
+ )), c;
149
144
  };
150
145
  var P = typeof window !== n ? window.log : void 0;
151
146
  return i.noConflict = function() {
@@ -154,14 +149,13 @@ function Ne() {
154
149
  return r;
155
150
  }, i.default = i, i;
156
151
  });
157
- }(D)), D.exports;
158
- }
159
- var We = Ne();
160
- const se = /* @__PURE__ */ Ce(We);
161
- let V;
162
- var z, we;
163
- (typeof navigator > "u" || !((we = (z = navigator.userAgent) == null ? void 0 : z.startsWith) != null && we.call(z, "Mozilla/5.0 "))) && (V = "oauth4webapi/v2.17.0");
164
- function Y(t, e) {
152
+ }(O)), O.exports;
153
+ }
154
+ var Oe = De();
155
+ const ie = /* @__PURE__ */ Le(Oe);
156
+ let M;
157
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (M = "oauth4webapi/v2.17.0");
158
+ function q(t, e) {
165
159
  if (t == null)
166
160
  return !1;
167
161
  try {
@@ -170,32 +164,32 @@ function Y(t, e) {
170
164
  return !1;
171
165
  }
172
166
  }
173
- const W = Symbol(), Ke = Symbol(), Z = Symbol(), He = Symbol(), $e = Symbol(), Fe = Symbol(), Me = new TextEncoder(), qe = new TextDecoder();
167
+ const z = Symbol(), Je = Symbol(), V = Symbol(), ze = Symbol(), Ne = Symbol(), We = Symbol(), Ke = new TextEncoder(), He = new TextDecoder();
174
168
  function E(t) {
175
- return typeof t == "string" ? Me.encode(t) : qe.decode(t);
169
+ return typeof t == "string" ? Ke.encode(t) : He.decode(t);
176
170
  }
177
- const ce = 32768;
178
- function Be(t) {
171
+ const se = 32768;
172
+ function $e(t) {
179
173
  t instanceof ArrayBuffer && (t = new Uint8Array(t));
180
174
  const e = [];
181
- for (let n = 0; n < t.byteLength; n += ce)
182
- e.push(String.fromCharCode.apply(null, t.subarray(n, n + ce)));
175
+ for (let n = 0; n < t.byteLength; n += se)
176
+ e.push(String.fromCharCode.apply(null, t.subarray(n, n + se)));
183
177
  return btoa(e.join("")).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
184
178
  }
185
- function Ve(t) {
179
+ function Fe(t) {
186
180
  try {
187
181
  const e = atob(t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "")), n = new Uint8Array(e.length);
188
182
  for (let o = 0; o < e.length; o++)
189
183
  n[o] = e.charCodeAt(o);
190
184
  return n;
191
185
  } catch (e) {
192
- throw new s("The input to be decoded is not correctly encoded.", { cause: e });
186
+ throw new a("The input to be decoded is not correctly encoded.", { cause: e });
193
187
  }
194
188
  }
195
- function k(t) {
196
- return typeof t == "string" ? Ve(t) : Be(t);
189
+ function A(t) {
190
+ return typeof t == "string" ? Fe(t) : $e(t);
197
191
  }
198
- class Ge {
192
+ class Me {
199
193
  constructor(e) {
200
194
  this.cache = /* @__PURE__ */ new Map(), this._cache = /* @__PURE__ */ new Map(), this.maxSize = e;
201
195
  }
@@ -219,60 +213,58 @@ class Ge {
219
213
  this.cache.set(e, n), this.cache.size >= this.maxSize && (this._cache = this.cache, this.cache = /* @__PURE__ */ new Map());
220
214
  }
221
215
  }
222
- class T extends Error {
216
+ class v extends Error {
223
217
  constructor(e) {
224
- var n;
225
- super(e ?? "operation not supported"), this.name = this.constructor.name, (n = Error.captureStackTrace) == null || n.call(Error, this, this.constructor);
218
+ super(e ?? "operation not supported"), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
226
219
  }
227
220
  }
228
- class Ye extends Error {
221
+ class Be extends Error {
229
222
  constructor(e, n) {
230
- var o;
231
- super(e, n), this.name = this.constructor.name, (o = Error.captureStackTrace) == null || o.call(Error, this, this.constructor);
223
+ super(e, n), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
232
224
  }
233
225
  }
234
- const s = Ye, ge = new Ge(100);
226
+ const a = Be, we = new Me(100);
235
227
  function me(t) {
236
228
  return t instanceof CryptoKey;
237
229
  }
238
- function Ze(t) {
230
+ function qe(t) {
239
231
  return me(t) && t.type === "private";
240
232
  }
241
- function Qe(t) {
233
+ function Ve(t) {
242
234
  return me(t) && t.type === "public";
243
235
  }
244
- function Q(t) {
236
+ function G(t) {
245
237
  try {
246
238
  const e = t.headers.get("dpop-nonce");
247
- e && ge.set(new URL(t.url).origin, e);
239
+ e && we.set(new URL(t.url).origin, e);
248
240
  } catch {
249
241
  }
250
242
  return t;
251
243
  }
252
- function C(t) {
244
+ function x(t) {
253
245
  return !(t === null || typeof t != "object" || Array.isArray(t));
254
246
  }
255
- function K(t) {
256
- Y(t, Headers) && (t = Object.fromEntries(t.entries()));
247
+ function N(t) {
248
+ q(t, Headers) && (t = Object.fromEntries(t.entries()));
257
249
  const e = new Headers(t);
258
- if (V && !e.has("user-agent") && e.set("user-agent", V), e.has("authorization"))
250
+ if (M && !e.has("user-agent") && e.set("user-agent", M), e.has("authorization"))
259
251
  throw new TypeError('"options.headers" must not include the "authorization" header name');
260
252
  if (e.has("dpop"))
261
253
  throw new TypeError('"options.headers" must not include the "dpop" header name');
262
254
  return e;
263
255
  }
264
- function Xe(t) {
256
+ function Ge(t) {
265
257
  if (typeof t == "function" && (t = t()), !(t instanceof AbortSignal))
266
258
  throw new TypeError('"options.signal" must return or be an instance of AbortSignal');
267
259
  return t;
268
260
  }
269
- async function et(t, e) {
261
+ async function Ye(t, e) {
270
262
  if (!(t instanceof URL))
271
263
  throw new TypeError('"issuerIdentifier" must be an instance of URL');
272
264
  if (t.protocol !== "https:" && t.protocol !== "http:")
273
265
  throw new TypeError('"issuer.protocol" must be "https:" or "http:"');
274
266
  const n = new URL(t.href);
275
- switch (e == null ? void 0 : e.algorithm) {
267
+ switch (e?.algorithm) {
276
268
  case void 0:
277
269
  case "oidc":
278
270
  n.pathname = `${n.pathname}/.well-known/openid-configuration`.replace("//", "/");
@@ -283,61 +275,61 @@ async function et(t, e) {
283
275
  default:
284
276
  throw new TypeError('"options.algorithm" must be "oidc" (default), or "oauth2"');
285
277
  }
286
- const o = K(e == null ? void 0 : e.headers);
287
- return o.set("accept", "application/json"), ((e == null ? void 0 : e[Z]) || fetch)(n.href, {
278
+ const o = N(e?.headers);
279
+ return o.set("accept", "application/json"), (e?.[V] || fetch)(n.href, {
288
280
  headers: Object.fromEntries(o.entries()),
289
281
  method: "GET",
290
282
  redirect: "manual",
291
283
  signal: null
292
- }).then(Q);
284
+ }).then(G);
293
285
  }
294
- function g(t) {
286
+ function w(t) {
295
287
  return typeof t == "string" && t.length !== 0;
296
288
  }
297
- async function tt(t, e) {
289
+ async function Ze(t, e) {
298
290
  if (!(t instanceof URL))
299
291
  throw new TypeError('"expectedIssuer" must be an instance of URL');
300
- if (!Y(e, Response))
292
+ if (!q(e, Response))
301
293
  throw new TypeError('"response" must be an instance of Response');
302
294
  if (e.status !== 200)
303
- throw new s('"response" is not a conform Authorization Server Metadata response');
304
- te(e);
295
+ throw new a('"response" is not a conform Authorization Server Metadata response');
296
+ Q(e);
305
297
  let n;
306
298
  try {
307
299
  n = await e.json();
308
300
  } catch (o) {
309
- throw new s('failed to parse "response" body as JSON', { cause: o });
301
+ throw new a('failed to parse "response" body as JSON', { cause: o });
310
302
  }
311
- if (!C(n))
312
- throw new s('"response" body must be a top level object');
313
- if (!g(n.issuer))
314
- throw new s('"response" body "issuer" property must be a non-empty string');
303
+ if (!x(n))
304
+ throw new a('"response" body must be a top level object');
305
+ if (!w(n.issuer))
306
+ throw new a('"response" body "issuer" property must be a non-empty string');
315
307
  if (new URL(n.issuer).href !== t.href)
316
- throw new s('"response" body "issuer" does not match "expectedIssuer"');
308
+ throw new a('"response" body "issuer" does not match "expectedIssuer"');
317
309
  return n;
318
310
  }
319
- function X() {
320
- return k(crypto.getRandomValues(new Uint8Array(32)));
311
+ function Y() {
312
+ return A(crypto.getRandomValues(new Uint8Array(32)));
321
313
  }
322
- function nt() {
323
- return X();
314
+ function Qe() {
315
+ return Y();
324
316
  }
325
- function rt() {
326
- return X();
317
+ function Xe() {
318
+ return Y();
327
319
  }
328
- async function ot(t) {
329
- if (!g(t))
320
+ async function et(t) {
321
+ if (!w(t))
330
322
  throw new TypeError('"codeVerifier" must be a non-empty string');
331
- return k(await crypto.subtle.digest("SHA-256", E(t)));
323
+ return A(await crypto.subtle.digest("SHA-256", E(t)));
332
324
  }
333
- function ue(t) {
325
+ function ae(t) {
334
326
  return encodeURIComponent(t).replace(/%20/g, "+");
335
327
  }
336
- function it(t, e) {
337
- const n = ue(t), o = ue(e);
328
+ function tt(t, e) {
329
+ const n = ae(t), o = ae(e);
338
330
  return `Basic ${btoa(`${n}:${o}`)}`;
339
331
  }
340
- function at(t) {
332
+ function nt(t) {
341
333
  switch (t.algorithm.hash.name) {
342
334
  case "SHA-256":
343
335
  return "PS256";
@@ -346,10 +338,10 @@ function at(t) {
346
338
  case "SHA-512":
347
339
  return "PS512";
348
340
  default:
349
- throw new T("unsupported RsaHashedKeyAlgorithm hash name");
341
+ throw new v("unsupported RsaHashedKeyAlgorithm hash name");
350
342
  }
351
343
  }
352
- function st(t) {
344
+ function rt(t) {
353
345
  switch (t.algorithm.hash.name) {
354
346
  case "SHA-256":
355
347
  return "RS256";
@@ -358,10 +350,10 @@ function st(t) {
358
350
  case "SHA-512":
359
351
  return "RS512";
360
352
  default:
361
- throw new T("unsupported RsaHashedKeyAlgorithm hash name");
353
+ throw new v("unsupported RsaHashedKeyAlgorithm hash name");
362
354
  }
363
355
  }
364
- function ct(t) {
356
+ function ot(t) {
365
357
  switch (t.algorithm.namedCurve) {
366
358
  case "P-256":
367
359
  return "ES256";
@@ -370,268 +362,267 @@ function ct(t) {
370
362
  case "P-521":
371
363
  return "ES512";
372
364
  default:
373
- throw new T("unsupported EcKeyAlgorithm namedCurve");
365
+ throw new v("unsupported EcKeyAlgorithm namedCurve");
374
366
  }
375
367
  }
376
- function ut(t) {
368
+ function it(t) {
377
369
  switch (t.algorithm.name) {
378
370
  case "RSA-PSS":
379
- return at(t);
371
+ return nt(t);
380
372
  case "RSASSA-PKCS1-v1_5":
381
- return st(t);
373
+ return rt(t);
382
374
  case "ECDSA":
383
- return ct(t);
375
+ return ot(t);
384
376
  case "Ed25519":
385
377
  case "Ed448":
386
378
  return "EdDSA";
387
379
  default:
388
- throw new T("unsupported CryptoKey algorithm name");
380
+ throw new v("unsupported CryptoKey algorithm name");
389
381
  }
390
382
  }
391
- function H(t) {
392
- const e = t == null ? void 0 : t[W];
383
+ function W(t) {
384
+ const e = t?.[z];
393
385
  return typeof e == "number" && Number.isFinite(e) ? e : 0;
394
386
  }
395
- function ye(t) {
396
- const e = t == null ? void 0 : t[Ke];
387
+ function ge(t) {
388
+ const e = t?.[Je];
397
389
  return typeof e == "number" && Number.isFinite(e) && Math.sign(e) !== -1 ? e : 30;
398
390
  }
399
- function ee() {
391
+ function Z() {
400
392
  return Math.floor(Date.now() / 1e3);
401
393
  }
402
- function I(t) {
394
+ function C(t) {
403
395
  if (typeof t != "object" || t === null)
404
396
  throw new TypeError('"as" must be an object');
405
- if (!g(t.issuer))
397
+ if (!w(t.issuer))
406
398
  throw new TypeError('"as.issuer" property must be a non-empty string');
407
399
  return !0;
408
400
  }
409
- function j(t) {
401
+ function I(t) {
410
402
  if (typeof t != "object" || t === null)
411
403
  throw new TypeError('"client" must be an object');
412
- if (!g(t.client_id))
404
+ if (!w(t.client_id))
413
405
  throw new TypeError('"client.client_id" property must be a non-empty string');
414
406
  return !0;
415
407
  }
416
- function le(t) {
417
- if (!g(t))
408
+ function ce(t) {
409
+ if (!w(t))
418
410
  throw new TypeError('"client.client_secret" property must be a non-empty string');
419
411
  return t;
420
412
  }
421
- function de(t, e) {
413
+ function ue(t, e) {
422
414
  if (e !== void 0)
423
415
  throw new TypeError(`"client.client_secret" property must not be provided when ${t} client authentication method is used.`);
424
416
  }
425
- async function lt(t, e, n, o, a) {
417
+ async function st(t, e, n, o, s) {
426
418
  switch (n.delete("client_secret"), n.delete("client_assertion_type"), n.delete("client_assertion"), e.token_endpoint_auth_method) {
427
419
  case void 0:
428
420
  case "client_secret_basic": {
429
- o.set("authorization", it(e.client_id, le(e.client_secret)));
421
+ o.set("authorization", tt(e.client_id, ce(e.client_secret)));
430
422
  break;
431
423
  }
432
424
  case "client_secret_post": {
433
- n.set("client_id", e.client_id), n.set("client_secret", le(e.client_secret));
425
+ n.set("client_id", e.client_id), n.set("client_secret", ce(e.client_secret));
434
426
  break;
435
427
  }
436
428
  case "private_key_jwt":
437
- throw de("private_key_jwt", e.client_secret), new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
429
+ throw ue("private_key_jwt", e.client_secret), new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
438
430
  case "tls_client_auth":
439
431
  case "self_signed_tls_client_auth":
440
432
  case "none": {
441
- de(e.token_endpoint_auth_method, e.client_secret), e.token_endpoint_auth_method, n.set("client_id", e.client_id);
433
+ ue(e.token_endpoint_auth_method, e.client_secret), e.token_endpoint_auth_method, n.set("client_id", e.client_id);
442
434
  break;
443
435
  }
444
436
  default:
445
- throw new T("unsupported client token_endpoint_auth_method");
437
+ throw new v("unsupported client token_endpoint_auth_method");
446
438
  }
447
439
  }
448
- async function dt(t, e, n) {
440
+ async function at(t, e, n) {
449
441
  if (!n.usages.includes("sign"))
450
442
  throw new TypeError('CryptoKey instances used for signing assertions must include "sign" in their "usages"');
451
- const o = `${k(E(JSON.stringify(t)))}.${k(E(JSON.stringify(e)))}`, a = k(await crypto.subtle.sign(ke(n), n, E(o)));
452
- return `${o}.${a}`;
443
+ const o = `${A(E(JSON.stringify(t)))}.${A(E(JSON.stringify(e)))}`, s = A(await crypto.subtle.sign(Ae(n), n, E(o)));
444
+ return `${o}.${s}`;
453
445
  }
454
- async function ht(t, e, n, o, a, r) {
455
- var _;
456
- const { privateKey: i, publicKey: c, nonce: p = ge.get(n.origin) } = e;
457
- if (!Ze(i))
446
+ async function ct(t, e, n, o, s, r) {
447
+ const { privateKey: i, publicKey: u, nonce: d = we.get(n.origin) } = e;
448
+ if (!qe(i))
458
449
  throw new TypeError('"DPoP.privateKey" must be a private CryptoKey');
459
- if (!Qe(c))
450
+ if (!Ve(u))
460
451
  throw new TypeError('"DPoP.publicKey" must be a public CryptoKey');
461
- if (p !== void 0 && !g(p))
452
+ if (d !== void 0 && !w(d))
462
453
  throw new TypeError('"DPoP.nonce" must be a non-empty string or undefined');
463
- if (!c.extractable)
454
+ if (!u.extractable)
464
455
  throw new TypeError('"DPoP.publicKey.extractable" must be true');
465
- const w = ee() + a, f = {
466
- alg: ut(i),
456
+ const y = Z() + s, p = {
457
+ alg: it(i),
467
458
  typ: "dpop+jwt",
468
- jwk: await pt(c)
469
- }, v = {
470
- iat: w,
471
- jti: X(),
459
+ jwk: await lt(u)
460
+ }, k = {
461
+ iat: y,
462
+ jti: Y(),
472
463
  htm: o,
473
- nonce: p,
464
+ nonce: d,
474
465
  htu: `${n.origin}${n.pathname}`,
475
- ath: r ? k(await crypto.subtle.digest("SHA-256", E(r))) : void 0
466
+ ath: r ? A(await crypto.subtle.digest("SHA-256", E(r))) : void 0
476
467
  };
477
- (_ = e[He]) == null || _.call(e, f, v), t.set("dpop", await dt(f, v, i));
468
+ e[ze]?.(p, k), t.set("dpop", await at(p, k, i));
478
469
  }
479
- let N;
480
- async function ft(t) {
481
- const { kty: e, e: n, n: o, x: a, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), c = { kty: e, e: n, n: o, x: a, y: r, crv: i };
482
- return N.set(t, c), c;
470
+ let J;
471
+ async function ut(t) {
472
+ const { kty: e, e: n, n: o, x: s, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), u = { kty: e, e: n, n: o, x: s, y: r, crv: i };
473
+ return J.set(t, u), u;
483
474
  }
484
- async function pt(t) {
485
- return N || (N = /* @__PURE__ */ new WeakMap()), N.get(t) || ft(t);
475
+ async function lt(t) {
476
+ return J || (J = /* @__PURE__ */ new WeakMap()), J.get(t) || ut(t);
486
477
  }
487
- function he(t, e, n) {
478
+ function le(t, e, n) {
488
479
  if (typeof t != "string")
489
480
  throw n ? new TypeError(`"as.mtls_endpoint_aliases.${e}" must be a string`) : new TypeError(`"as.${e}" must be a string`);
490
481
  return new URL(t);
491
482
  }
492
- function be(t, e, n = !1) {
493
- return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? he(t.mtls_endpoint_aliases[e], e, n) : he(t[e], e, n);
483
+ function ye(t, e, n = !1) {
484
+ return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? le(t.mtls_endpoint_aliases[e], e, n) : le(t[e], e, n);
494
485
  }
495
- function _e(t, e) {
496
- return !!(t.use_mtls_endpoint_aliases || e != null && e[Fe]);
486
+ function be(t, e) {
487
+ return !!(t.use_mtls_endpoint_aliases || e?.[We]);
497
488
  }
498
- function G(t) {
489
+ function B(t) {
499
490
  const e = t;
500
491
  return typeof e != "object" || Array.isArray(e) || e === null ? !1 : e.error !== void 0;
501
492
  }
502
- async function wt(t, e, n, o, a, r) {
503
- if (!g(t))
493
+ async function dt(t, e, n, o, s, r) {
494
+ if (!w(t))
504
495
  throw new TypeError('"accessToken" must be a non-empty string');
505
496
  if (!(n instanceof URL))
506
497
  throw new TypeError('"url" must be an instance of URL');
507
- return o = K(o), (r == null ? void 0 : r.DPoP) === void 0 ? o.set("authorization", `Bearer ${t}`) : (await ht(o, r.DPoP, n, e.toUpperCase(), H({ [W]: r == null ? void 0 : r[W] }), t), o.set("authorization", `DPoP ${t}`)), ((r == null ? void 0 : r[Z]) || fetch)(n.href, {
508
- body: a,
498
+ return o = N(o), r?.DPoP === void 0 ? o.set("authorization", `Bearer ${t}`) : (await ct(o, r.DPoP, n, e.toUpperCase(), W({ [z]: r?.[z] }), t), o.set("authorization", `DPoP ${t}`)), (r?.[V] || fetch)(n.href, {
499
+ body: s,
509
500
  headers: Object.fromEntries(o.entries()),
510
501
  method: e,
511
502
  redirect: "manual",
512
- signal: r != null && r.signal ? Xe(r.signal) : null
513
- }).then(Q);
503
+ signal: r?.signal ? Ge(r.signal) : null
504
+ }).then(G);
514
505
  }
515
- async function gt(t, e, n, o) {
516
- I(t), j(e);
517
- const a = be(t, "userinfo_endpoint", _e(e, o)), r = K(o == null ? void 0 : o.headers);
518
- return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), wt(n, "GET", a, r, null, {
506
+ async function ht(t, e, n, o) {
507
+ C(t), I(e);
508
+ const s = ye(t, "userinfo_endpoint", be(e, o)), r = N(o?.headers);
509
+ return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), dt(n, "GET", s, r, null, {
519
510
  ...o,
520
- [W]: H(e)
511
+ [z]: W(e)
521
512
  });
522
513
  }
523
- async function mt(t, e, n, o, a, r, i) {
524
- return await lt(t, e, a, r), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), ((i == null ? void 0 : i[Z]) || fetch)(o.href, {
525
- body: a,
514
+ async function ft(t, e, n, o, s, r, i) {
515
+ return await st(t, e, s, r), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), (i?.[V] || fetch)(o.href, {
516
+ body: s,
526
517
  headers: Object.fromEntries(r.entries()),
527
518
  method: n,
528
519
  redirect: "manual",
529
520
  signal: null
530
- }).then(Q);
521
+ }).then(G);
531
522
  }
532
- async function ve(t, e, n, o, a) {
533
- const r = be(t, "token_endpoint", _e(e, a));
523
+ async function _e(t, e, n, o, s) {
524
+ const r = ye(t, "token_endpoint", be(e, s));
534
525
  o.set("grant_type", n);
535
- const i = K(a == null ? void 0 : a.headers);
536
- return i.set("accept", "application/json"), mt(t, e, "POST", r, o, i, a);
526
+ const i = N(s?.headers);
527
+ return i.set("accept", "application/json"), ft(t, e, "POST", r, o, i, s);
537
528
  }
538
- async function yt(t, e, n, o) {
539
- if (I(t), j(e), !g(n))
529
+ async function de(t, e, n, o) {
530
+ if (C(t), I(e), !w(n))
540
531
  throw new TypeError('"refreshToken" must be a non-empty string');
541
- const a = new URLSearchParams(o == null ? void 0 : o.additionalParameters);
542
- return a.set("refresh_token", n), ve(t, e, "refresh_token", a, o);
532
+ const s = new URLSearchParams(o?.additionalParameters);
533
+ return s.set("refresh_token", n), _e(t, e, "refresh_token", s, o);
543
534
  }
544
- const Se = /* @__PURE__ */ new WeakMap();
545
- function bt(t) {
535
+ const ve = /* @__PURE__ */ new WeakMap();
536
+ function pt(t) {
546
537
  if (!t.id_token)
547
538
  return;
548
- const e = Se.get(t);
539
+ const e = ve.get(t);
549
540
  if (!e)
550
541
  throw new TypeError('"ref" was already garbage collected or did not resolve from the proper sources');
551
542
  return e[0];
552
543
  }
553
- async function Te(t, e, n, o = !1, a = !1) {
554
- if (I(t), j(e), !Y(n, Response))
544
+ async function Se(t, e, n, o = !1, s = !1) {
545
+ if (C(t), I(e), !q(n, Response))
555
546
  throw new TypeError('"response" must be an instance of Response');
556
547
  if (n.status !== 200) {
557
548
  let i;
558
- if (i = await Ut(n))
549
+ if (i = await Tt(n))
559
550
  return i;
560
- throw new s('"response" is not a conform Token Endpoint response');
551
+ throw new a('"response" is not a conform Token Endpoint response');
561
552
  }
562
- te(n);
553
+ Q(n);
563
554
  let r;
564
555
  try {
565
556
  r = await n.json();
566
557
  } catch (i) {
567
- throw new s('failed to parse "response" body as JSON', { cause: i });
558
+ throw new a('failed to parse "response" body as JSON', { cause: i });
568
559
  }
569
- if (!C(r))
570
- throw new s('"response" body must be a top level object');
571
- if (!g(r.access_token))
572
- throw new s('"response" body "access_token" property must be a non-empty string');
573
- if (!g(r.token_type))
574
- throw new s('"response" body "token_type" property must be a non-empty string');
560
+ if (!x(r))
561
+ throw new a('"response" body must be a top level object');
562
+ if (!w(r.access_token))
563
+ throw new a('"response" body "access_token" property must be a non-empty string');
564
+ if (!w(r.token_type))
565
+ throw new a('"response" body "token_type" property must be a non-empty string');
575
566
  if (r.token_type = r.token_type.toLowerCase(), r.token_type !== "dpop" && r.token_type !== "bearer")
576
- throw new T("unsupported `token_type` value");
567
+ throw new v("unsupported `token_type` value");
577
568
  if (r.expires_in !== void 0 && (typeof r.expires_in != "number" || r.expires_in <= 0))
578
- throw new s('"response" body "expires_in" property must be a positive number');
579
- if (!a && r.refresh_token !== void 0 && !g(r.refresh_token))
580
- throw new s('"response" body "refresh_token" property must be a non-empty string');
569
+ throw new a('"response" body "expires_in" property must be a positive number');
570
+ if (!s && r.refresh_token !== void 0 && !w(r.refresh_token))
571
+ throw new a('"response" body "refresh_token" property must be a non-empty string');
581
572
  if (r.scope !== void 0 && typeof r.scope != "string")
582
- throw new s('"response" body "scope" property must be a string');
573
+ throw new a('"response" body "scope" property must be a string');
583
574
  if (!o) {
584
- if (r.id_token !== void 0 && !g(r.id_token))
585
- throw new s('"response" body "id_token" property must be a non-empty string');
575
+ if (r.id_token !== void 0 && !w(r.id_token))
576
+ throw new a('"response" body "id_token" property must be a non-empty string');
586
577
  if (r.id_token) {
587
- const { claims: i, jwt: c } = await Ct(r.id_token, It.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), Ee, H(e), ye(e), e[$e]).then(Et.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(St.bind(void 0, t.issuer)).then(vt.bind(void 0, e.client_id));
578
+ const { claims: i, jwt: u } = await Et(r.id_token, Rt.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), ke, W(e), ge(e), e[Ne]).then(_t.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(mt.bind(void 0, t.issuer)).then(wt.bind(void 0, e.client_id));
588
579
  if (Array.isArray(i.aud) && i.aud.length !== 1) {
589
580
  if (i.azp === void 0)
590
- throw new s('ID Token "aud" (audience) claim includes additional untrusted audiences');
581
+ throw new a('ID Token "aud" (audience) claim includes additional untrusted audiences');
591
582
  if (i.azp !== e.client_id)
592
- throw new s('unexpected ID Token "azp" (authorized party) claim value');
583
+ throw new a('unexpected ID Token "azp" (authorized party) claim value');
593
584
  }
594
585
  if (i.auth_time !== void 0 && (!Number.isFinite(i.auth_time) || Math.sign(i.auth_time) !== 1))
595
- throw new s('ID Token "auth_time" (authentication time) must be a positive number');
596
- Se.set(r, [i, c]);
586
+ throw new a('ID Token "auth_time" (authentication time) must be a positive number');
587
+ ve.set(r, [i, u]);
597
588
  }
598
589
  }
599
590
  return r;
600
591
  }
601
- async function _t(t, e, n) {
602
- return Te(t, e, n);
592
+ async function he(t, e, n) {
593
+ return Se(t, e, n);
603
594
  }
604
- function vt(t, e) {
595
+ function wt(t, e) {
605
596
  if (Array.isArray(e.claims.aud)) {
606
597
  if (!e.claims.aud.includes(t))
607
- throw new s('unexpected JWT "aud" (audience) claim value');
598
+ throw new a('unexpected JWT "aud" (audience) claim value');
608
599
  } else if (e.claims.aud !== t)
609
- throw new s('unexpected JWT "aud" (audience) claim value');
600
+ throw new a('unexpected JWT "aud" (audience) claim value');
610
601
  return e;
611
602
  }
612
- function St(t, e) {
603
+ function mt(t, e) {
613
604
  if (e.claims.iss !== t)
614
- throw new s('unexpected JWT "iss" (issuer) claim value');
605
+ throw new a('unexpected JWT "iss" (issuer) claim value');
615
606
  return e;
616
607
  }
617
- const Ae = /* @__PURE__ */ new WeakSet();
618
- function Tt(t) {
619
- return Ae.add(t), t;
608
+ const Te = /* @__PURE__ */ new WeakSet();
609
+ function gt(t) {
610
+ return Te.add(t), t;
620
611
  }
621
- async function At(t, e, n, o, a, r) {
622
- if (I(t), j(e), !Ae.has(n))
612
+ async function yt(t, e, n, o, s, r) {
613
+ if (C(t), I(e), !Te.has(n))
623
614
  throw new TypeError('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()');
624
- if (!g(o))
615
+ if (!w(o))
625
616
  throw new TypeError('"redirectUri" must be a non-empty string');
626
- if (!g(a))
617
+ if (!w(s))
627
618
  throw new TypeError('"codeVerifier" must be a non-empty string');
628
- const i = A(n, "code");
619
+ const i = T(n, "code");
629
620
  if (!i)
630
- throw new s('no authorization code in "callbackParameters"');
631
- const c = new URLSearchParams(r == null ? void 0 : r.additionalParameters);
632
- return c.set("redirect_uri", o), c.set("code_verifier", a), c.set("code", i), ve(t, e, "authorization_code", c, r);
621
+ throw new a('no authorization code in "callbackParameters"');
622
+ const u = new URLSearchParams(r?.additionalParameters);
623
+ return u.set("redirect_uri", o), u.set("code_verifier", s), u.set("code", i), _e(t, e, "authorization_code", u, r);
633
624
  }
634
- const kt = {
625
+ const bt = {
635
626
  aud: "audience",
636
627
  c_hash: "code hash",
637
628
  client_id: "client id",
@@ -647,56 +638,56 @@ const kt = {
647
638
  htu: "http uri",
648
639
  cnf: "confirmation"
649
640
  };
650
- function Et(t, e) {
641
+ function _t(t, e) {
651
642
  for (const n of t)
652
643
  if (e.claims[n] === void 0)
653
- throw new s(`JWT "${n}" (${kt[n]}) claim missing`);
644
+ throw new a(`JWT "${n}" (${bt[n]}) claim missing`);
654
645
  return e;
655
646
  }
656
- const Rt = Symbol(), F = Symbol();
657
- async function Pt(t, e, n, o, a) {
658
- const r = await Te(t, e, n);
659
- if (G(r))
647
+ const vt = Symbol(), H = Symbol();
648
+ async function St(t, e, n, o, s) {
649
+ const r = await Se(t, e, n);
650
+ if (B(r))
660
651
  return r;
661
- if (!g(r.id_token))
662
- throw new s('"response" body "id_token" property must be a non-empty string');
663
- a ?? (a = e.default_max_age ?? F);
664
- const i = bt(r);
665
- if ((e.require_auth_time || a !== F) && i.auth_time === void 0)
666
- throw new s('ID Token "auth_time" (authentication time) claim missing');
667
- if (a !== F) {
668
- if (typeof a != "number" || a < 0)
652
+ if (!w(r.id_token))
653
+ throw new a('"response" body "id_token" property must be a non-empty string');
654
+ s ?? (s = e.default_max_age ?? H);
655
+ const i = pt(r);
656
+ if ((e.require_auth_time || s !== H) && i.auth_time === void 0)
657
+ throw new a('ID Token "auth_time" (authentication time) claim missing');
658
+ if (s !== H) {
659
+ if (typeof s != "number" || s < 0)
669
660
  throw new TypeError('"maxAge" must be a non-negative number');
670
- const c = ee() + H(e), p = ye(e);
671
- if (i.auth_time + a < c - p)
672
- throw new s("too much time has elapsed since the last End-User authentication");
661
+ const u = Z() + W(e), d = ge(e);
662
+ if (i.auth_time + s < u - d)
663
+ throw new a("too much time has elapsed since the last End-User authentication");
673
664
  }
674
665
  switch (o) {
675
666
  case void 0:
676
- case Rt:
667
+ case vt:
677
668
  if (i.nonce !== void 0)
678
- throw new s('unexpected ID Token "nonce" claim value');
669
+ throw new a('unexpected ID Token "nonce" claim value');
679
670
  break;
680
671
  default:
681
- if (!g(o))
672
+ if (!w(o))
682
673
  throw new TypeError('"expectedNonce" must be a non-empty string');
683
674
  if (i.nonce === void 0)
684
- throw new s('ID Token "nonce" claim missing');
675
+ throw new a('ID Token "nonce" claim missing');
685
676
  if (i.nonce !== o)
686
- throw new s('unexpected ID Token "nonce" claim value');
677
+ throw new a('unexpected ID Token "nonce" claim value');
687
678
  }
688
679
  return r;
689
680
  }
690
- function te(t) {
681
+ function Q(t) {
691
682
  if (t.bodyUsed)
692
683
  throw new TypeError('"response" body has been used already');
693
684
  }
694
- async function Ut(t) {
685
+ async function Tt(t) {
695
686
  if (t.status > 399 && t.status < 500) {
696
- te(t);
687
+ Q(t);
697
688
  try {
698
689
  const e = await t.json();
699
- if (C(e) && typeof e.error == "string" && e.error.length)
690
+ if (x(e) && typeof e.error == "string" && e.error.length)
700
691
  return e.error_description !== void 0 && typeof e.error_description != "string" && delete e.error_description, e.error_uri !== void 0 && typeof e.error_uri != "string" && delete e.error_uri, e.algs !== void 0 && typeof e.algs != "string" && delete e.algs, e.scope !== void 0 && typeof e.scope != "string" && delete e.scope, e;
701
692
  } catch {
702
693
  }
@@ -704,9 +695,9 @@ async function Ut(t) {
704
695
  }
705
696
  function fe(t) {
706
697
  if (typeof t.modulusLength != "number" || t.modulusLength < 2048)
707
- throw new s(`${t.name} modulusLength must be at least 2048 bits`);
698
+ throw new a(`${t.name} modulusLength must be at least 2048 bits`);
708
699
  }
709
- function Lt(t) {
700
+ function At(t) {
710
701
  switch (t) {
711
702
  case "P-256":
712
703
  return "SHA-256";
@@ -715,15 +706,15 @@ function Lt(t) {
715
706
  case "P-521":
716
707
  return "SHA-512";
717
708
  default:
718
- throw new T();
709
+ throw new v();
719
710
  }
720
711
  }
721
- function ke(t) {
712
+ function Ae(t) {
722
713
  switch (t.algorithm.name) {
723
714
  case "ECDSA":
724
715
  return {
725
716
  name: t.algorithm.name,
726
- hash: Lt(t.algorithm.namedCurve)
717
+ hash: At(t.algorithm.namedCurve)
727
718
  };
728
719
  case "RSA-PSS":
729
720
  switch (fe(t.algorithm), t.algorithm.hash.name) {
@@ -735,7 +726,7 @@ function ke(t) {
735
726
  saltLength: parseInt(t.algorithm.hash.name.slice(-3), 10) >> 3
736
727
  };
737
728
  default:
738
- throw new T();
729
+ throw new v();
739
730
  }
740
731
  case "RSASSA-PKCS1-v1_5":
741
732
  return fe(t.algorithm), t.algorithm.name;
@@ -743,271 +734,155 @@ function ke(t) {
743
734
  case "Ed25519":
744
735
  return t.algorithm.name;
745
736
  }
746
- throw new T();
737
+ throw new v();
747
738
  }
748
- const Ee = Symbol();
749
- async function xt(t, e, n, o) {
750
- const a = `${t}.${e}`;
751
- if (!await crypto.subtle.verify(ke(n), n, o, E(a)))
752
- throw new s("JWT signature verification failed");
739
+ const ke = Symbol();
740
+ async function kt(t, e, n, o) {
741
+ const s = `${t}.${e}`;
742
+ if (!await crypto.subtle.verify(Ae(n), n, o, E(s)))
743
+ throw new a("JWT signature verification failed");
753
744
  }
754
- async function Ct(t, e, n, o, a, r) {
755
- let { 0: i, 1: c, 2: p, length: w } = t.split(".");
756
- if (w === 5)
745
+ async function Et(t, e, n, o, s, r) {
746
+ let { 0: i, 1: u, 2: d, length: y } = t.split(".");
747
+ if (y === 5)
757
748
  if (r !== void 0)
758
- t = await r(t), { 0: i, 1: c, 2: p, length: w } = t.split(".");
749
+ t = await r(t), { 0: i, 1: u, 2: d, length: y } = t.split(".");
759
750
  else
760
- throw new T("JWE structure JWTs are not supported");
761
- if (w !== 3)
762
- throw new s("Invalid JWT");
763
- let f;
751
+ throw new v("JWE structure JWTs are not supported");
752
+ if (y !== 3)
753
+ throw new a("Invalid JWT");
754
+ let p;
764
755
  try {
765
- f = JSON.parse(E(k(i)));
756
+ p = JSON.parse(E(A(i)));
766
757
  } catch (l) {
767
- throw new s("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
758
+ throw new a("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
768
759
  }
769
- if (!C(f))
770
- throw new s("JWT Header must be a top level object");
771
- if (e(f), f.crit !== void 0)
772
- throw new s('unexpected JWT "crit" header parameter');
773
- const v = k(p);
774
- let _;
775
- n !== Ee && (_ = await n(f), await xt(i, c, _, v));
776
- let h;
760
+ if (!x(p))
761
+ throw new a("JWT Header must be a top level object");
762
+ if (e(p), p.crit !== void 0)
763
+ throw new a('unexpected JWT "crit" header parameter');
764
+ const k = A(d);
765
+ let b;
766
+ n !== ke && (b = await n(p), await kt(i, u, b, k));
767
+ let f;
777
768
  try {
778
- h = JSON.parse(E(k(c)));
769
+ f = JSON.parse(E(A(u)));
779
770
  } catch (l) {
780
- throw new s("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
771
+ throw new a("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
781
772
  }
782
- if (!C(h))
783
- throw new s("JWT Payload must be a top level object");
784
- const P = ee() + o;
785
- if (h.exp !== void 0) {
786
- if (typeof h.exp != "number")
787
- throw new s('unexpected JWT "exp" (expiration time) claim type');
788
- if (h.exp <= P - a)
789
- throw new s('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()');
773
+ if (!x(f))
774
+ throw new a("JWT Payload must be a top level object");
775
+ const P = Z() + o;
776
+ if (f.exp !== void 0) {
777
+ if (typeof f.exp != "number")
778
+ throw new a('unexpected JWT "exp" (expiration time) claim type');
779
+ if (f.exp <= P - s)
780
+ throw new a('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()');
790
781
  }
791
- if (h.iat !== void 0 && typeof h.iat != "number")
792
- throw new s('unexpected JWT "iat" (issued at) claim type');
793
- if (h.iss !== void 0 && typeof h.iss != "string")
794
- throw new s('unexpected JWT "iss" (issuer) claim type');
795
- if (h.nbf !== void 0) {
796
- if (typeof h.nbf != "number")
797
- throw new s('unexpected JWT "nbf" (not before) claim type');
798
- if (h.nbf > P + a)
799
- throw new s('unexpected JWT "nbf" (not before) claim value, timestamp is > now()');
782
+ if (f.iat !== void 0 && typeof f.iat != "number")
783
+ throw new a('unexpected JWT "iat" (issued at) claim type');
784
+ if (f.iss !== void 0 && typeof f.iss != "string")
785
+ throw new a('unexpected JWT "iss" (issuer) claim type');
786
+ if (f.nbf !== void 0) {
787
+ if (typeof f.nbf != "number")
788
+ throw new a('unexpected JWT "nbf" (not before) claim type');
789
+ if (f.nbf > P + s)
790
+ throw new a('unexpected JWT "nbf" (not before) claim value, timestamp is > now()');
800
791
  }
801
- if (h.aud !== void 0 && typeof h.aud != "string" && !Array.isArray(h.aud))
802
- throw new s('unexpected JWT "aud" (audience) claim type');
803
- return { header: f, claims: h, signature: v, key: _, jwt: t };
792
+ if (f.aud !== void 0 && typeof f.aud != "string" && !Array.isArray(f.aud))
793
+ throw new a('unexpected JWT "aud" (audience) claim type');
794
+ return { header: p, claims: f, signature: k, key: b, jwt: t };
804
795
  }
805
- function It(t, e, n) {
796
+ function Rt(t, e, n) {
806
797
  if (t !== void 0) {
807
798
  if (n.alg !== t)
808
- throw new s('unexpected JWT "alg" header parameter');
799
+ throw new a('unexpected JWT "alg" header parameter');
809
800
  return;
810
801
  }
811
802
  if (Array.isArray(e)) {
812
803
  if (!e.includes(n.alg))
813
- throw new s('unexpected JWT "alg" header parameter');
804
+ throw new a('unexpected JWT "alg" header parameter');
814
805
  return;
815
806
  }
816
807
  if (n.alg !== "RS256")
817
- throw new s('unexpected JWT "alg" header parameter');
808
+ throw new a('unexpected JWT "alg" header parameter');
818
809
  }
819
- function A(t, e) {
810
+ function T(t, e) {
820
811
  const { 0: n, length: o } = t.getAll(e);
821
812
  if (o > 1)
822
- throw new s(`"${e}" parameter must be provided only once`);
813
+ throw new a(`"${e}" parameter must be provided only once`);
823
814
  return n;
824
815
  }
825
- const jt = Symbol(), Jt = Symbol();
826
- function Ot(t, e, n, o) {
827
- if (I(t), j(e), n instanceof URL && (n = n.searchParams), !(n instanceof URLSearchParams))
816
+ const Pt = Symbol(), Lt = Symbol();
817
+ function Ut(t, e, n, o) {
818
+ if (C(t), I(e), n instanceof URL && (n = n.searchParams), !(n instanceof URLSearchParams))
828
819
  throw new TypeError('"parameters" must be an instance of URLSearchParams, or URL');
829
- if (A(n, "response"))
830
- throw new s('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()');
831
- const a = A(n, "iss"), r = A(n, "state");
832
- if (!a && t.authorization_response_iss_parameter_supported)
833
- throw new s('response parameter "iss" (issuer) missing');
834
- if (a && a !== t.issuer)
835
- throw new s('unexpected "iss" (issuer) response parameter value');
820
+ if (T(n, "response"))
821
+ throw new a('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()');
822
+ const s = T(n, "iss"), r = T(n, "state");
823
+ if (!s && t.authorization_response_iss_parameter_supported)
824
+ throw new a('response parameter "iss" (issuer) missing');
825
+ if (s && s !== t.issuer)
826
+ throw new a('unexpected "iss" (issuer) response parameter value');
836
827
  switch (o) {
837
828
  case void 0:
838
- case Jt:
829
+ case Lt:
839
830
  if (r !== void 0)
840
- throw new s('unexpected "state" response parameter encountered');
831
+ throw new a('unexpected "state" response parameter encountered');
841
832
  break;
842
- case jt:
833
+ case Pt:
843
834
  break;
844
835
  default:
845
- if (!g(o))
846
- throw new s('"expectedState" must be a non-empty string');
836
+ if (!w(o))
837
+ throw new a('"expectedState" must be a non-empty string');
847
838
  if (r === void 0)
848
- throw new s('response parameter "state" missing');
839
+ throw new a('response parameter "state" missing');
849
840
  if (r !== o)
850
- throw new s('unexpected "state" response parameter value');
841
+ throw new a('unexpected "state" response parameter value');
851
842
  }
852
- const i = A(n, "error");
843
+ const i = T(n, "error");
853
844
  if (i)
854
845
  return {
855
846
  error: i,
856
- error_description: A(n, "error_description"),
857
- error_uri: A(n, "error_uri")
847
+ error_description: T(n, "error_description"),
848
+ error_uri: T(n, "error_uri")
858
849
  };
859
- const c = A(n, "id_token"), p = A(n, "token");
860
- if (c !== void 0 || p !== void 0)
861
- throw new T("implicit and hybrid flows are not supported");
862
- return Tt(new URLSearchParams(n));
863
- }
864
- function zt({
865
- handleCallback: t
866
- }) {
867
- const e = je({
868
- retry: !1,
869
- queryKey: ["oauth-callback"],
870
- queryFn: async () => {
871
- try {
872
- return await t();
873
- } catch (n) {
874
- throw new ze("Could not validate user", {
875
- cause: n,
876
- title: "Authentication Error",
877
- developerHint: "Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly."
878
- });
879
- }
880
- }
881
- });
882
- return /* @__PURE__ */ B.jsx(Oe, { to: e.data });
883
- }
884
- class R extends Error {
885
- }
886
- class pe extends R {
887
- constructor(e, n, o) {
888
- super(e, o), this.error = n;
889
- }
890
- }
891
- const M = "code-verifier", q = "oauth-state";
892
- class Dt extends Je {
893
- constructor(e, n) {
894
- super(), this.callbackUrlPath = e, this.handleCallback = n;
895
- }
896
- getRoutes() {
897
- return [
898
- ...super.getRoutes(),
899
- {
900
- path: this.callbackUrlPath,
901
- element: /* @__PURE__ */ B.jsx(Ie, { children: /* @__PURE__ */ B.jsx(zt, { handleCallback: this.handleCallback }) })
902
- }
903
- ];
904
- }
905
- }
906
- class Nt {
850
+ const u = T(n, "id_token"), d = T(n, "token");
851
+ if (u !== void 0 || d !== void 0)
852
+ throw new v("implicit and hybrid flows are not supported");
853
+ return gt(new URLSearchParams(n));
854
+ }
855
+ const $ = "code-verifier", F = "oauth-state", pe = "/oauth/callback";
856
+ class xt extends Ce {
857
+ client;
858
+ issuer;
859
+ authorizationServer;
860
+ callbackUrlPath;
861
+ onAuthorizationUrl;
862
+ redirectToAfterSignUp;
863
+ redirectToAfterSignIn;
864
+ redirectToAfterSignOut;
865
+ audience;
866
+ scopes;
907
867
  constructor({
908
868
  issuer: e,
909
869
  audience: n,
910
870
  clientId: o,
911
- redirectToAfterSignUp: a,
871
+ redirectToAfterSignUp: s,
912
872
  redirectToAfterSignIn: r,
913
- redirectToAfterSignOut: i,
914
- basePath: c,
915
- scopes: p
873
+ redirectToAfterSignOut: i = "/",
874
+ basePath: u,
875
+ scopes: d
916
876
  }) {
917
- b(this, "client");
918
- b(this, "issuer");
919
- b(this, "authorizationServer");
920
- b(this, "callbackUrlPath");
921
- b(this, "logoutRedirectUrlPath");
922
- b(this, "onAuthorizationUrl");
923
- b(this, "redirectToAfterSignUp");
924
- b(this, "redirectToAfterSignIn");
925
- b(this, "redirectToAfterSignOut");
926
- b(this, "audience");
927
- b(this, "scopes");
928
- b(this, "signRequest", async (e) => {
929
- const n = await this.getAccessToken();
930
- return e.headers.set("Authorization", `Bearer ${n}`), e;
931
- });
932
- b(this, "signOut", async () => {
933
- x.setState({
934
- isAuthenticated: !1,
935
- isPending: !1,
936
- profile: void 0,
937
- providerData: void 0
938
- });
939
- const e = await this.getAuthServer(), n = new URL(
940
- window.location.origin + this.redirectToAfterSignOut
941
- );
942
- n.pathname = this.logoutRedirectUrlPath;
943
- let o;
944
- e.end_session_endpoint ? (o = new URL(e.end_session_endpoint), o.searchParams.set(
945
- "post_logout_redirect_uri",
946
- n.toString()
947
- )) : o = n;
948
- });
949
- b(this, "handleCallback", async () => {
950
- const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(q);
951
- if (sessionStorage.removeItem(q), n !== o)
952
- throw new R("Invalid state parameter");
953
- const a = sessionStorage.getItem(M);
954
- if (sessionStorage.removeItem(M), !a)
955
- throw new R("No code verifier found in state.");
956
- const r = await this.getAuthServer(), i = Ot(
957
- r,
958
- this.client,
959
- e.searchParams,
960
- n ?? void 0
961
- );
962
- if (G(i))
963
- throw se.error("Error validating OAuth response", i), new pe(
964
- "Error validating OAuth response",
965
- i
966
- );
967
- const c = new URL(e);
968
- c.pathname = this.callbackUrlPath, c.search = "";
969
- const p = await At(
970
- r,
971
- this.client,
972
- i,
973
- c.toString(),
974
- a
975
- ), w = await Pt(
976
- r,
977
- this.client,
978
- p
979
- );
980
- this.setTokensFromResponse(w);
981
- const f = await this.getAccessToken(), _ = await (await gt(
982
- r,
983
- this.client,
984
- f
985
- )).json(), h = {
986
- sub: _.sub,
987
- email: _.email,
988
- name: _.name,
989
- emailVerified: _.email_verified ?? !1,
990
- pictureUrl: _.picture
991
- };
992
- x.setState({
993
- isAuthenticated: !0,
994
- isPending: !1,
995
- profile: h
996
- });
997
- const P = sessionStorage.getItem("redirect-to") ?? "/";
998
- return sessionStorage.removeItem("redirect-to"), P;
999
- });
1000
- this.client = {
877
+ super(), this.client = {
1001
878
  client_id: o,
1002
879
  token_endpoint_auth_method: "none"
1003
- }, this.audience = n, this.issuer = e, this.callbackUrlPath = ie(c, "/oauth/callback"), this.scopes = p ?? ["openid", "profile", "email"];
1004
- const w = ie(c, "/");
1005
- this.logoutRedirectUrlPath = w, this.redirectToAfterSignUp = a ?? w, this.redirectToAfterSignIn = r ?? w, this.redirectToAfterSignOut = i ?? w;
880
+ }, this.audience = n, this.issuer = e, this.callbackUrlPath = xe(u, pe), this.scopes = d ?? ["openid", "profile", "email"], this.redirectToAfterSignUp = s, this.redirectToAfterSignIn = r, this.redirectToAfterSignOut = i;
1006
881
  }
1007
882
  async getAuthServer() {
1008
883
  if (!this.authorizationServer) {
1009
- const e = new URL(this.issuer), n = await et(e);
1010
- this.authorizationServer = await tt(
884
+ const e = new URL(this.issuer), n = await Ye(e);
885
+ this.authorizationServer = await Ze(
1011
886
  e,
1012
887
  n
1013
888
  );
@@ -1019,8 +894,8 @@ class Nt {
1019
894
  * @param response
1020
895
  */
1021
896
  setTokensFromResponse(e) {
1022
- if (G(e))
1023
- throw se.error("Bad Token Response", e), new pe("Bad Token Response", e);
897
+ if (B(e))
898
+ throw ie.error("Bad Token Response", e), new re("Bad Token Response", e);
1024
899
  if (!e.expires_in)
1025
900
  throw new R("No expires_in in response");
1026
901
  const n = {
@@ -1030,67 +905,75 @@ class Nt {
1030
905
  expiresOn: new Date(Date.now() + e.expires_in * 1e3),
1031
906
  tokenType: e.token_type
1032
907
  };
1033
- x.setState({
908
+ S.setState({
1034
909
  providerData: n
1035
910
  });
1036
911
  }
1037
- async signUp({ redirectTo: e } = {}) {
912
+ async signUp({
913
+ redirectTo: e,
914
+ replace: n = !1
915
+ } = {}) {
1038
916
  return this.authorize({
1039
- redirectTo: e ?? this.redirectToAfterSignUp,
917
+ redirectTo: this.redirectToAfterSignUp ?? e ?? "/",
918
+ replace: n,
1040
919
  isSignUp: !0
1041
920
  });
1042
921
  }
1043
- async signIn({ redirectTo: e } = {}) {
922
+ async signIn({
923
+ redirectTo: e,
924
+ replace: n = !1
925
+ } = {}) {
1044
926
  return this.authorize({
1045
- redirectTo: e ?? this.redirectToAfterSignIn
927
+ redirectTo: this.redirectToAfterSignIn ?? e ?? "/",
928
+ replace: n
1046
929
  });
1047
930
  }
1048
931
  async authorize({
1049
932
  redirectTo: e,
1050
- isSignUp: n = !1
933
+ isSignUp: n = !1,
934
+ replace: o = !1
1051
935
  }) {
1052
- var v;
1053
- const o = "S256", a = await this.getAuthServer();
1054
- if (!a.authorization_endpoint)
936
+ const s = "S256", r = await this.getAuthServer();
937
+ if (!r.authorization_endpoint)
1055
938
  throw new R("No authorization endpoint");
1056
- const r = nt(), i = await ot(r);
1057
- sessionStorage.setItem(M, r);
1058
- const c = new URL(
1059
- a.authorization_endpoint
1060
- ), p = e.startsWith(window.location.origin) ? e.slice(window.location.origin.length) : e;
1061
- sessionStorage.setItem("redirect-to", p);
1062
- const w = new URL(window.location.origin);
1063
- w.pathname = this.callbackUrlPath, w.search = "", c.searchParams.set("client_id", this.client.client_id), c.searchParams.set("redirect_uri", w.toString()), c.searchParams.set("response_type", "code"), c.searchParams.set("scope", this.scopes.join(" ")), c.searchParams.set("code_challenge", i), c.searchParams.set(
939
+ const i = Qe(), u = await et(i);
940
+ sessionStorage.setItem($, i);
941
+ const d = new URL(
942
+ r.authorization_endpoint
943
+ );
944
+ sessionStorage.setItem("redirect-to", e);
945
+ const y = new URL(window.location.origin);
946
+ y.pathname = this.callbackUrlPath, y.search = "", d.searchParams.set("client_id", this.client.client_id), d.searchParams.set("redirect_uri", y.toString()), d.searchParams.set("response_type", "code"), d.searchParams.set("scope", this.scopes.join(" ")), d.searchParams.set("code_challenge", u), d.searchParams.set(
1064
947
  "code_challenge_method",
1065
- o
1066
- ), this.audience && c.searchParams.set("audience", this.audience), (v = this.onAuthorizationUrl) == null || v.call(this, c, {
948
+ s
949
+ ), this.audience && d.searchParams.set("audience", this.audience), this.onAuthorizationUrl?.(d, {
1067
950
  isSignIn: !n,
1068
951
  isSignUp: n
1069
952
  });
1070
- const f = rt();
1071
- sessionStorage.setItem(q, f), c.searchParams.set("state", f), location.href = c.href;
953
+ const p = Xe();
954
+ sessionStorage.setItem(F, p), d.searchParams.set("state", p), o ? location.replace(d.href) : location.href = d.href;
1072
955
  }
1073
956
  async getAccessToken() {
1074
- const e = await this.getAuthServer(), { providerData: n } = x.getState();
957
+ const e = await this.getAuthServer(), { providerData: n } = S.getState();
1075
958
  if (!n)
1076
959
  throw new R("User is not authenticated");
1077
960
  const o = n;
1078
961
  if (new Date(o.expiresOn) < /* @__PURE__ */ new Date()) {
1079
962
  if (!o.refreshToken)
1080
- return x.setState({
963
+ return S.setState({
1081
964
  isAuthenticated: !1,
1082
965
  isPending: !1,
1083
966
  profile: null,
1084
967
  providerData: null
1085
968
  }), "";
1086
- const a = await yt(
969
+ const s = await de(
1087
970
  e,
1088
971
  this.client,
1089
972
  o.refreshToken
1090
- ), r = await _t(
973
+ ), r = await he(
1091
974
  e,
1092
975
  this.client,
1093
- a
976
+ s
1094
977
  );
1095
978
  if (!r.access_token)
1096
979
  throw new R("No access token in response");
@@ -1098,13 +981,134 @@ class Nt {
1098
981
  } else
1099
982
  return o.accessToken;
1100
983
  }
1101
- getAuthenticationPlugin() {
1102
- return new Dt(this.callbackUrlPath, this.handleCallback);
984
+ signRequest = async (e) => {
985
+ const n = await this.getAccessToken();
986
+ return e.headers.set("Authorization", `Bearer ${n}`), e;
987
+ };
988
+ signOut = async () => {
989
+ S.setState({
990
+ isAuthenticated: !1,
991
+ isPending: !1,
992
+ profile: void 0,
993
+ providerData: void 0
994
+ });
995
+ const e = await this.getAuthServer(), n = new URL(
996
+ window.location.origin + this.redirectToAfterSignOut
997
+ );
998
+ n.pathname = this.callbackUrlPath;
999
+ let o;
1000
+ e.end_session_endpoint ? (o = new URL(e.end_session_endpoint), o.searchParams.set(
1001
+ "post_logout_redirect_uri",
1002
+ n.toString()
1003
+ )) : o = n;
1004
+ };
1005
+ onPageLoad = async () => {
1006
+ const { providerData: e } = S.getState();
1007
+ if (!e) {
1008
+ S.setState({ isPending: !1 });
1009
+ return;
1010
+ }
1011
+ const n = e;
1012
+ if (new Date(n.expiresOn) < /* @__PURE__ */ new Date()) {
1013
+ if (!n.refreshToken) {
1014
+ S.setState({
1015
+ isAuthenticated: !1,
1016
+ isPending: !1,
1017
+ profile: null,
1018
+ providerData: null
1019
+ });
1020
+ return;
1021
+ }
1022
+ try {
1023
+ const o = await this.getAuthServer(), s = await de(
1024
+ o,
1025
+ this.client,
1026
+ n.refreshToken
1027
+ ), r = await he(
1028
+ o,
1029
+ this.client,
1030
+ s
1031
+ );
1032
+ if (!r.access_token)
1033
+ throw new R("No access token in response");
1034
+ this.setTokensFromResponse(r);
1035
+ } catch {
1036
+ S.setState({
1037
+ isAuthenticated: !1,
1038
+ isPending: !1,
1039
+ profile: null,
1040
+ providerData: null
1041
+ });
1042
+ return;
1043
+ }
1044
+ }
1045
+ S.setState({ isPending: !1 });
1046
+ };
1047
+ handleCallback = async () => {
1048
+ const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(F);
1049
+ if (sessionStorage.removeItem(F), n !== o)
1050
+ throw new R("Invalid state parameter");
1051
+ const s = sessionStorage.getItem($);
1052
+ if (sessionStorage.removeItem($), !s)
1053
+ throw new R("No code verifier found in state.");
1054
+ const r = await this.getAuthServer(), i = Ut(
1055
+ r,
1056
+ this.client,
1057
+ e.searchParams,
1058
+ n ?? void 0
1059
+ );
1060
+ if (B(i))
1061
+ throw ie.error("Error validating OAuth response", i), new re(
1062
+ "Error validating OAuth response",
1063
+ i
1064
+ );
1065
+ const u = new URL(e);
1066
+ u.pathname = this.callbackUrlPath, u.search = "";
1067
+ const d = await yt(
1068
+ r,
1069
+ this.client,
1070
+ i,
1071
+ u.toString(),
1072
+ s
1073
+ ), y = await St(
1074
+ r,
1075
+ this.client,
1076
+ d
1077
+ );
1078
+ this.setTokensFromResponse(y);
1079
+ const p = await this.getAccessToken(), b = await (await ht(
1080
+ r,
1081
+ this.client,
1082
+ p
1083
+ )).json(), f = {
1084
+ sub: b.sub,
1085
+ email: b.email,
1086
+ name: b.name,
1087
+ emailVerified: b.email_verified ?? !1,
1088
+ pictureUrl: b.picture
1089
+ };
1090
+ S.setState({
1091
+ isAuthenticated: !0,
1092
+ isPending: !1,
1093
+ profile: f
1094
+ });
1095
+ const P = sessionStorage.getItem("redirect-to") ?? "/";
1096
+ return sessionStorage.removeItem("redirect-to"), P;
1097
+ };
1098
+ getRoutes() {
1099
+ return [
1100
+ ...super.getRoutes(),
1101
+ {
1102
+ path: pe,
1103
+ element: /* @__PURE__ */ ne.jsx(Ue, { children: /* @__PURE__ */ ne.jsx(Ie, { handleCallback: this.handleCallback }) })
1104
+ }
1105
+ ];
1103
1106
  }
1104
1107
  }
1105
- const Vt = (t) => new Nt(t);
1108
+ const Jt = (t) => new xt(t);
1106
1109
  export {
1107
- Nt as OpenIDAuthenticationProvider,
1108
- Vt as default
1110
+ pe as OPENID_CALLBACK_PATH,
1111
+ xt as OpenIDAuthenticationProvider,
1112
+ Jt as default
1109
1113
  };
1110
1114
  //# sourceMappingURL=zudoku.auth-openid.js.map