zudoku 0.0.0-ed94abf → 0.0.0-edd80c1

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