zudoku 0.0.0-f3f6db5 → 0.0.0-f40ea27

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