zudoku 0.0.0-e614aaa → 0.0.0-e64b729

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