zudoku 0.0.0-ff3bc72 → 0.0.0-zuplo-api-keys.534c6f8

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 (1781) hide show
  1. package/README.md +121 -0
  2. package/cli.js +11 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +1 -4
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -0
  9. package/dist/app/entry.client.js +53 -3
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -6
  12. package/dist/app/entry.server.js +21 -14
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +29 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +3 -2
  18. package/dist/app/main.js +50 -61
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +1 -4
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/cli/build/handler.d.ts +1 -3
  26. package/dist/cli/build/handler.js +9 -1
  27. package/dist/cli/build/handler.js.map +1 -1
  28. package/dist/cli/cli.js +18 -5
  29. package/dist/cli/cli.js.map +1 -1
  30. package/dist/cli/cmds/build.d.ts +11 -3
  31. package/dist/cli/cmds/build.js +21 -13
  32. package/dist/cli/cmds/build.js.map +1 -1
  33. package/dist/cli/cmds/dev.d.ts +1 -1
  34. package/dist/cli/cmds/dev.js +5 -0
  35. package/dist/cli/cmds/dev.js.map +1 -1
  36. package/dist/cli/cmds/preview.d.ts +16 -0
  37. package/dist/cli/cmds/preview.js +25 -0
  38. package/dist/cli/cmds/preview.js.map +1 -0
  39. package/dist/cli/common/logger.js +9 -0
  40. package/dist/cli/common/logger.js.map +1 -1
  41. package/dist/cli/common/machine-id/lib.js +1 -0
  42. package/dist/cli/common/machine-id/lib.js.map +1 -1
  43. package/dist/cli/common/outdated.js +2 -1
  44. package/dist/cli/common/outdated.js.map +1 -1
  45. package/dist/cli/common/output.js.map +1 -1
  46. package/dist/cli/common/utils/box.js.map +1 -1
  47. package/dist/cli/common/utils/ports.d.ts +1 -1
  48. package/dist/cli/common/utils/ports.js +16 -15
  49. package/dist/cli/common/utils/ports.js.map +1 -1
  50. package/dist/cli/dev/handler.d.ts +1 -0
  51. package/dist/cli/dev/handler.js +16 -13
  52. package/dist/cli/dev/handler.js.map +1 -1
  53. package/dist/cli/preview/handler.d.ts +3 -0
  54. package/dist/cli/preview/handler.js +35 -0
  55. package/dist/cli/preview/handler.js.map +1 -0
  56. package/dist/codegen.d.ts +3 -0
  57. package/dist/codegen.js +45 -0
  58. package/dist/codegen.js.map +1 -0
  59. package/dist/config/config.d.ts +20 -16
  60. package/dist/config/file-exists.d.ts +1 -0
  61. package/dist/config/file-exists.js +5 -0
  62. package/dist/config/file-exists.js.map +1 -0
  63. package/dist/config/loader.d.ts +19 -0
  64. package/dist/config/loader.js +135 -0
  65. package/dist/config/loader.js.map +1 -0
  66. package/dist/config/validators/BuildSchema.d.ts +60 -0
  67. package/dist/config/validators/BuildSchema.js +31 -0
  68. package/dist/config/validators/BuildSchema.js.map +1 -0
  69. package/dist/config/validators/InputSidebarSchema.d.ts +63 -32
  70. package/dist/config/validators/InputSidebarSchema.js +17 -28
  71. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  72. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  73. package/dist/config/validators/SidebarSchema.js +80 -44
  74. package/dist/config/validators/SidebarSchema.js.map +1 -1
  75. package/dist/config/validators/icon-types.d.ts +1 -0
  76. package/dist/config/validators/icon-types.js +2 -0
  77. package/dist/config/validators/icon-types.js.map +1 -0
  78. package/dist/config/validators/validate.d.ts +4690 -332
  79. package/dist/config/validators/validate.js +273 -82
  80. package/dist/config/validators/validate.js.map +1 -1
  81. package/dist/index.d.ts +9 -2
  82. package/dist/index.js +4 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/lib/MissingIcon.d.ts +2 -0
  85. package/dist/lib/MissingIcon.js +7 -0
  86. package/dist/lib/MissingIcon.js.map +1 -0
  87. package/dist/lib/authentication/AuthenticationPlugin.d.ts +11 -4
  88. package/dist/lib/authentication/AuthenticationPlugin.js +16 -1
  89. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  90. package/dist/lib/authentication/authentication.d.ts +4 -5
  91. package/dist/lib/authentication/components/CallbackHandler.js +25 -31
  92. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  93. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  94. package/dist/lib/authentication/components/SignIn.js +5 -2
  95. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  96. package/dist/lib/authentication/components/SignOut.js +2 -2
  97. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  98. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  99. package/dist/lib/authentication/components/SignUp.js +4 -1
  100. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  101. package/dist/lib/authentication/hook.d.ts +6 -4
  102. package/dist/lib/authentication/hook.js +12 -4
  103. package/dist/lib/authentication/hook.js.map +1 -1
  104. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  105. package/dist/lib/authentication/providers/auth0.js +15 -13
  106. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  107. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  108. package/dist/lib/authentication/providers/clerk.js +116 -47
  109. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  110. package/dist/lib/authentication/providers/openid.d.ts +21 -19
  111. package/dist/lib/authentication/providers/openid.js +62 -69
  112. package/dist/lib/authentication/providers/openid.js.map +1 -1
  113. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  114. package/dist/lib/authentication/providers/supabase.js +115 -0
  115. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  116. package/dist/lib/authentication/state.d.ts +23 -19
  117. package/dist/lib/authentication/state.js +34 -7
  118. package/dist/lib/authentication/state.js.map +1 -1
  119. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  120. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  121. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  122. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  123. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  124. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  125. package/dist/lib/components/AnchorLink.d.ts +2 -2
  126. package/dist/lib/components/AnchorLink.js +9 -5
  127. package/dist/lib/components/AnchorLink.js.map +1 -1
  128. package/dist/lib/components/Autocomplete.d.ts +13 -0
  129. package/dist/lib/components/Autocomplete.js +47 -0
  130. package/dist/lib/components/Autocomplete.js.map +1 -0
  131. package/dist/lib/components/Banner.js +1 -1
  132. package/dist/lib/components/Banner.js.map +1 -1
  133. package/dist/lib/components/Bootstrap.d.ts +5 -3
  134. package/dist/lib/components/Bootstrap.js +13 -6
  135. package/dist/lib/components/Bootstrap.js.map +1 -1
  136. package/dist/lib/components/BuildCheck.d.ts +4 -0
  137. package/dist/lib/components/BuildCheck.js +38 -0
  138. package/dist/lib/components/BuildCheck.js.map +1 -0
  139. package/dist/lib/components/ClientOnly.d.ts +4 -2
  140. package/dist/lib/components/ClientOnly.js +1 -1
  141. package/dist/lib/components/ClientOnly.js.map +1 -1
  142. package/dist/lib/components/DeveloperHint.js +2 -1
  143. package/dist/lib/components/DeveloperHint.js.map +1 -1
  144. package/dist/lib/components/ErrorPage.js +1 -1
  145. package/dist/lib/components/Footer.d.ts +1 -0
  146. package/dist/lib/components/Footer.js +32 -0
  147. package/dist/lib/components/Footer.js.map +1 -0
  148. package/dist/lib/components/Header.js +31 -12
  149. package/dist/lib/components/Header.js.map +1 -1
  150. package/dist/lib/components/Heading.d.ts +5 -5
  151. package/dist/lib/components/Heading.js +1 -1
  152. package/dist/lib/components/Heading.js.map +1 -1
  153. package/dist/lib/components/InlineCode.d.ts +2 -1
  154. package/dist/lib/components/InlineCode.js +2 -9
  155. package/dist/lib/components/InlineCode.js.map +1 -1
  156. package/dist/lib/components/Layout.js +10 -21
  157. package/dist/lib/components/Layout.js.map +1 -1
  158. package/dist/lib/components/Main.d.ts +2 -0
  159. package/dist/lib/components/Main.js +18 -0
  160. package/dist/lib/components/Main.js.map +1 -0
  161. package/dist/lib/components/Markdown.d.ts +4 -2
  162. package/dist/lib/components/Markdown.js +10 -14
  163. package/dist/lib/components/Markdown.js.map +1 -1
  164. package/dist/lib/components/MobileTopNavigation.js +14 -7
  165. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  166. package/dist/lib/components/NotFoundPage.js +2 -2
  167. package/dist/lib/components/NotFoundPage.js.map +1 -1
  168. package/dist/lib/components/Pagination.d.ts +11 -0
  169. package/dist/lib/components/Pagination.js +10 -0
  170. package/dist/lib/components/Pagination.js.map +1 -0
  171. package/dist/lib/components/PathRenderer.d.ts +11 -0
  172. package/dist/lib/components/PathRenderer.js +28 -0
  173. package/dist/lib/components/PathRenderer.js.map +1 -0
  174. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  175. package/dist/lib/components/ReactMarkdown.js +182 -0
  176. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  177. package/dist/lib/components/Search.d.ts +3 -1
  178. package/dist/lib/components/Search.js +9 -3
  179. package/dist/lib/components/Search.js.map +1 -1
  180. package/dist/lib/components/Slot.d.ts +17 -0
  181. package/dist/lib/components/Slot.js +24 -0
  182. package/dist/lib/components/Slot.js.map +1 -0
  183. package/dist/lib/components/Slot.test.js +163 -0
  184. package/dist/lib/components/Slot.test.js.map +1 -0
  185. package/dist/lib/components/StatusPage.d.ts +7 -0
  186. package/dist/lib/components/StatusPage.js +71 -0
  187. package/dist/lib/components/StatusPage.js.map +1 -0
  188. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  189. package/dist/lib/components/ThemeSwitch.js +16 -0
  190. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  191. package/dist/lib/components/TopNavigation.d.ts +3 -0
  192. package/dist/lib/components/TopNavigation.js +53 -8
  193. package/dist/lib/components/TopNavigation.js.map +1 -1
  194. package/dist/lib/components/Zudoku.d.ts +7 -0
  195. package/dist/lib/components/Zudoku.js +58 -0
  196. package/dist/lib/components/Zudoku.js.map +1 -0
  197. package/dist/lib/components/cache.d.ts +13 -0
  198. package/dist/lib/components/cache.js +20 -0
  199. package/dist/lib/components/cache.js.map +1 -0
  200. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  201. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  202. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  203. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  204. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  205. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  206. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  207. package/dist/lib/components/context/SlotProvider.js +83 -0
  208. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  209. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  210. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  211. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  212. package/dist/lib/components/context/ZudokuContext.d.ts +10 -14
  213. package/dist/lib/components/context/ZudokuContext.js +40 -27
  214. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  215. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  216. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  217. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  218. package/dist/lib/components/index.d.ts +59 -16
  219. package/dist/lib/components/index.js +27 -6
  220. package/dist/lib/components/index.js.map +1 -1
  221. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  222. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  223. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  224. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  225. package/dist/lib/components/navigation/Sidebar.js +4 -8
  226. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  227. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  228. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  229. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  230. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  231. package/dist/lib/components/navigation/SidebarCategory.js +32 -14
  232. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  233. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  234. package/dist/lib/components/navigation/SidebarItem.js +23 -17
  235. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  236. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  237. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  238. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  239. package/dist/lib/components/navigation/Toc.js +46 -0
  240. package/dist/lib/components/navigation/Toc.js.map +1 -0
  241. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  242. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  243. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  244. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  245. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  246. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  247. package/dist/lib/components/navigation/utils.d.ts +3 -0
  248. package/dist/lib/components/navigation/utils.js +19 -15
  249. package/dist/lib/components/navigation/utils.js.map +1 -1
  250. package/dist/lib/core/RouteGuard.d.ts +2 -0
  251. package/dist/lib/core/RouteGuard.js +52 -0
  252. package/dist/lib/core/RouteGuard.js.map +1 -0
  253. package/dist/lib/core/ZudokuContext.d.ts +112 -0
  254. package/dist/lib/core/ZudokuContext.js +70 -0
  255. package/dist/lib/core/ZudokuContext.js.map +1 -0
  256. package/dist/lib/core/plugins.d.ts +35 -17
  257. package/dist/lib/core/plugins.js +4 -0
  258. package/dist/lib/core/plugins.js.map +1 -1
  259. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  260. package/dist/lib/errors/ErrorAlert.js +13 -3
  261. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  262. package/dist/lib/errors/RouterError.js +1 -1
  263. package/dist/lib/errors/RouterError.js.map +1 -1
  264. package/dist/lib/hooks/index.d.ts +3 -0
  265. package/dist/lib/hooks/index.js +5 -0
  266. package/dist/lib/hooks/index.js.map +1 -0
  267. package/dist/lib/hooks/useEvent.d.ts +11 -0
  268. package/dist/lib/hooks/useEvent.js +19 -0
  269. package/dist/lib/hooks/useEvent.js.map +1 -0
  270. package/dist/lib/hooks/useEvent.test.js +100 -0
  271. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  272. package/dist/lib/icons.d.ts +1 -0
  273. package/dist/lib/icons.js +1 -0
  274. package/dist/lib/icons.js.map +1 -1
  275. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  276. package/dist/lib/oas/graphql/circular.js +43 -0
  277. package/dist/lib/oas/graphql/circular.js.map +1 -0
  278. package/dist/lib/oas/graphql/index.d.ts +25 -1
  279. package/dist/lib/oas/graphql/index.js +216 -69
  280. package/dist/lib/oas/graphql/index.js.map +1 -1
  281. package/dist/lib/oas/parser/dereference/index.js +8 -3
  282. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  283. package/dist/lib/oas/parser/index.d.ts +8 -3
  284. package/dist/lib/oas/parser/index.js +7 -23
  285. package/dist/lib/oas/parser/index.js.map +1 -1
  286. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  287. package/dist/lib/oas/parser/upgrade/index.js +83 -31
  288. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  289. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  290. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  291. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  292. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  293. package/dist/lib/plugins/api-catalog/index.js +46 -0
  294. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  295. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  296. package/dist/lib/plugins/api-keys/CreateApiKey.js +16 -8
  297. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  298. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  299. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  300. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  301. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +55 -24
  302. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  303. package/dist/lib/plugins/api-keys/index.d.ts +23 -13
  304. package/dist/lib/plugins/api-keys/index.js +48 -32
  305. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  306. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  307. package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
  308. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  309. package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
  310. package/dist/lib/plugins/custom-pages/index.js +11 -0
  311. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  312. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  313. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  314. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  315. package/dist/lib/plugins/markdown/index.d.ts +8 -7
  316. package/dist/lib/plugins/markdown/index.js +31 -3
  317. package/dist/lib/plugins/markdown/index.js.map +1 -1
  318. package/dist/lib/plugins/markdown/resolver.d.ts +32 -0
  319. package/dist/lib/plugins/markdown/resolver.js +46 -0
  320. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  321. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  322. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  323. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  324. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  325. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  326. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  327. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  328. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  329. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  330. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  331. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  332. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  333. package/dist/lib/plugins/openapi/OperationList.js +107 -27
  334. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  335. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  336. package/dist/lib/plugins/openapi/OperationListItem.js +12 -6
  337. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  338. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  339. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  340. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  341. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  342. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  343. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  344. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  345. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  346. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  347. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  348. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  349. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  350. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  351. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  352. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  353. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
  354. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  355. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  356. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  357. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  358. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  359. package/dist/lib/plugins/openapi/Sidecar.js +114 -65
  360. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  361. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  362. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  363. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  364. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  365. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  366. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  367. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  368. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  369. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  370. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  371. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  372. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  373. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  374. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  375. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  376. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  377. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  378. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  379. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  380. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  381. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  382. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  383. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  384. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  385. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  386. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  387. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  388. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  389. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  390. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  391. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  392. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  393. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  394. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  395. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  396. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  397. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  398. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  399. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
  400. package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
  401. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  402. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  403. package/dist/lib/plugins/openapi/index.js +74 -104
  404. package/dist/lib/plugins/openapi/index.js.map +1 -1
  405. package/dist/lib/plugins/openapi/interfaces.d.ts +57 -3
  406. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  407. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  408. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  409. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  410. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  411. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  412. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  413. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  414. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  415. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  416. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
  417. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  418. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  419. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  420. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  421. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  422. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  423. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  424. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  425. package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
  426. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  427. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  428. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  429. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  430. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  431. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  432. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  433. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  434. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  435. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  436. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  437. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  438. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  439. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  440. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  441. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  442. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  443. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  444. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  445. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  446. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  447. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  448. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  449. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  450. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  451. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  452. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  453. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  454. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  455. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  456. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  457. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  458. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  459. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  460. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  461. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  462. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  463. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  464. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  465. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  466. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  467. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  468. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  469. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  470. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  471. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  472. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  473. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  474. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  475. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  476. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  477. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  478. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  479. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  480. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  481. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  482. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  483. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  484. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  485. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  486. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  487. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  488. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  489. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
  490. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  491. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  492. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  493. package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -49
  494. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  495. package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
  496. package/dist/lib/plugins/openapi/schema/utils.js +15 -4
  497. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  498. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  499. package/dist/lib/plugins/openapi/state.js +18 -0
  500. package/dist/lib/plugins/openapi/state.js.map +1 -0
  501. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  502. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  503. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  504. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
  505. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
  506. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  507. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  508. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  509. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  510. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  511. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  512. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  513. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  514. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  515. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  516. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  517. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  518. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  519. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  520. package/dist/lib/plugins/redirect/index.js +2 -2
  521. package/dist/lib/plugins/redirect/index.js.map +1 -1
  522. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  523. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  524. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  525. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  526. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  527. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  528. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  529. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  530. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  531. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  532. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  533. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  534. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  535. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  536. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  537. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  538. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  539. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  540. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  541. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  542. package/dist/lib/shiki.d.ts +35 -0
  543. package/dist/lib/shiki.js +103 -0
  544. package/dist/lib/shiki.js.map +1 -0
  545. package/dist/lib/ui/Accordion.d.ts +7 -0
  546. package/dist/lib/ui/Accordion.js +14 -0
  547. package/dist/lib/ui/Accordion.js.map +1 -0
  548. package/dist/lib/ui/ActionButton.d.ts +4 -0
  549. package/dist/lib/ui/ActionButton.js +10 -0
  550. package/dist/lib/ui/ActionButton.js.map +1 -0
  551. package/dist/lib/ui/Alert.d.ts +8 -0
  552. package/dist/lib/ui/Alert.js +23 -0
  553. package/dist/lib/ui/Alert.js.map +1 -0
  554. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  555. package/dist/lib/ui/AlertDialog.js +27 -0
  556. package/dist/lib/ui/AlertDialog.js.map +1 -0
  557. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  558. package/dist/lib/ui/AspectRatio.js +4 -0
  559. package/dist/lib/ui/AspectRatio.js.map +1 -0
  560. package/dist/lib/ui/Badge.d.ts +9 -0
  561. package/dist/lib/ui/Badge.js +22 -0
  562. package/dist/lib/ui/Badge.js.map +1 -0
  563. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  564. package/dist/lib/ui/Breadcrumb.js +24 -0
  565. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  566. package/dist/lib/ui/Button.d.ts +4 -5
  567. package/dist/lib/ui/Button.js +9 -6
  568. package/dist/lib/ui/Button.js.map +1 -1
  569. package/dist/lib/ui/Callout.d.ts +38 -36
  570. package/dist/lib/ui/Callout.js +3 -2
  571. package/dist/lib/ui/Callout.js.map +1 -1
  572. package/dist/lib/ui/Card.js +1 -1
  573. package/dist/lib/ui/Card.js.map +1 -1
  574. package/dist/lib/ui/Carousel.d.ts +18 -0
  575. package/dist/lib/ui/Carousel.js +99 -0
  576. package/dist/lib/ui/Carousel.js.map +1 -0
  577. package/dist/lib/ui/Checkbox.d.ts +4 -0
  578. package/dist/lib/ui/Checkbox.js +9 -0
  579. package/dist/lib/ui/Checkbox.js.map +1 -0
  580. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  581. package/dist/lib/ui/CodeBlock.js +18 -0
  582. package/dist/lib/ui/CodeBlock.js.map +1 -0
  583. package/dist/lib/ui/Collapsible.d.ts +5 -0
  584. package/dist/lib/ui/Collapsible.js +6 -0
  585. package/dist/lib/ui/Collapsible.js.map +1 -0
  586. package/dist/lib/ui/Command.d.ts +94 -0
  587. package/dist/lib/ui/Command.js +35 -0
  588. package/dist/lib/ui/Command.js.map +1 -0
  589. package/dist/lib/ui/Dialog.js +23 -0
  590. package/dist/lib/ui/Dialog.js.map +1 -0
  591. package/dist/lib/ui/Drawer.d.ts +8 -10
  592. package/dist/lib/ui/Drawer.js.map +1 -1
  593. package/dist/lib/ui/DropdownMenu.js +4 -4
  594. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  595. package/dist/lib/ui/Form.d.ts +23 -0
  596. package/dist/lib/ui/Form.js +63 -0
  597. package/dist/lib/ui/Form.js.map +1 -0
  598. package/dist/lib/ui/HoverCard.d.ts +6 -0
  599. package/dist/lib/ui/HoverCard.js +10 -0
  600. package/dist/lib/ui/HoverCard.js.map +1 -0
  601. package/dist/lib/ui/Input.d.ts +1 -2
  602. package/dist/lib/ui/Input.js +1 -1
  603. package/dist/lib/ui/Input.js.map +1 -1
  604. package/dist/lib/ui/Label.d.ts +5 -0
  605. package/dist/lib/ui/Label.js +10 -0
  606. package/dist/lib/ui/Label.js.map +1 -0
  607. package/dist/lib/ui/Pagination.d.ts +28 -0
  608. package/dist/lib/ui/Pagination.js +24 -0
  609. package/dist/lib/ui/Pagination.js.map +1 -0
  610. package/dist/lib/ui/Popover.d.ts +6 -0
  611. package/dist/lib/ui/Popover.js +10 -0
  612. package/dist/lib/ui/Popover.js.map +1 -0
  613. package/dist/lib/ui/Progress.d.ts +4 -0
  614. package/dist/lib/ui/Progress.js +8 -0
  615. package/dist/lib/ui/Progress.js.map +1 -0
  616. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  617. package/dist/lib/ui/RadioGroup.js +15 -0
  618. package/dist/lib/ui/RadioGroup.js.map +1 -0
  619. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  620. package/dist/lib/ui/ScrollArea.js +12 -0
  621. package/dist/lib/ui/ScrollArea.js.map +1 -0
  622. package/dist/lib/ui/Select.js +27 -0
  623. package/dist/lib/ui/Select.js.map +1 -0
  624. package/dist/lib/ui/Skeleton.d.ts +2 -0
  625. package/dist/lib/ui/Skeleton.js +7 -0
  626. package/dist/lib/ui/Skeleton.js.map +1 -0
  627. package/dist/lib/ui/Slider.d.ts +4 -0
  628. package/dist/lib/ui/Slider.js +8 -0
  629. package/dist/lib/ui/Slider.js.map +1 -0
  630. package/dist/lib/ui/Stepper.d.ts +3 -0
  631. package/dist/lib/ui/Stepper.js +7 -0
  632. package/dist/lib/ui/Stepper.js.map +1 -0
  633. package/dist/lib/ui/Switch.d.ts +4 -0
  634. package/dist/lib/ui/Switch.js +8 -0
  635. package/dist/lib/ui/Switch.js.map +1 -0
  636. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
  637. package/dist/lib/ui/SyntaxHighlight.js +14 -0
  638. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  639. package/dist/lib/ui/Tabs.js +2 -2
  640. package/dist/lib/ui/Tabs.js.map +1 -1
  641. package/dist/lib/ui/Textarea.d.ts +4 -0
  642. package/dist/lib/ui/Textarea.js +9 -0
  643. package/dist/lib/ui/Textarea.js.map +1 -0
  644. package/dist/lib/ui/Toggle.d.ts +12 -0
  645. package/dist/lib/ui/Toggle.js +26 -0
  646. package/dist/lib/ui/Toggle.js.map +1 -0
  647. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  648. package/dist/lib/ui/ToggleGroup.js +21 -0
  649. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  650. package/dist/lib/ui/Tooltip.d.ts +7 -0
  651. package/dist/lib/ui/Tooltip.js +11 -0
  652. package/dist/lib/ui/Tooltip.js.map +1 -0
  653. package/dist/lib/ui/util.d.ts +2 -0
  654. package/dist/lib/ui/util.js +3 -0
  655. package/dist/lib/ui/util.js.map +1 -0
  656. package/dist/lib/util/MdxComponents.d.ts +30 -21
  657. package/dist/lib/util/MdxComponents.js +17 -15
  658. package/dist/lib/util/MdxComponents.js.map +1 -1
  659. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  660. package/dist/lib/util/detectOS.d.ts +1 -0
  661. package/dist/lib/util/detectOS.js +11 -0
  662. package/dist/lib/util/detectOS.js.map +1 -0
  663. package/dist/lib/util/ensureArray.d.ts +1 -0
  664. package/dist/lib/util/ensureArray.js +2 -0
  665. package/dist/lib/util/ensureArray.js.map +1 -0
  666. package/dist/lib/util/invariant.d.ts +9 -0
  667. package/dist/lib/util/invariant.js +7 -3
  668. package/dist/lib/util/invariant.js.map +1 -1
  669. package/dist/lib/util/joinPath.d.ts +3 -0
  670. package/dist/lib/util/joinPath.js +3 -0
  671. package/dist/lib/util/joinPath.js.map +1 -1
  672. package/dist/lib/util/joinUrl.d.ts +1 -0
  673. package/dist/lib/util/joinUrl.js +40 -0
  674. package/dist/lib/util/joinUrl.js.map +1 -0
  675. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  676. package/dist/lib/util/joinUrl.test.js +43 -0
  677. package/dist/lib/util/joinUrl.test.js.map +1 -0
  678. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  679. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  680. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  681. package/dist/lib/util/traverse.d.ts +3 -0
  682. package/dist/lib/util/traverse.js +23 -0
  683. package/dist/lib/util/traverse.js.map +1 -0
  684. package/dist/lib/util/types.d.ts +7 -0
  685. package/dist/lib/util/types.js +2 -0
  686. package/dist/lib/util/types.js.map +1 -0
  687. package/dist/lib/util/url.d.ts +4 -0
  688. package/dist/lib/util/url.js +13 -0
  689. package/dist/lib/util/url.js.map +1 -0
  690. package/dist/lib/util/url.test.d.ts +1 -0
  691. package/dist/lib/util/url.test.js +26 -0
  692. package/dist/lib/util/url.test.js.map +1 -0
  693. package/dist/lib/util/useExposedProps.d.ts +9 -0
  694. package/dist/lib/util/useExposedProps.js +9 -0
  695. package/dist/lib/util/useExposedProps.js.map +1 -0
  696. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  697. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  698. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  699. package/dist/lib/util/useLatest.d.ts +1 -0
  700. package/dist/lib/util/useLatest.js +15 -0
  701. package/dist/lib/util/useLatest.js.map +1 -0
  702. package/dist/lib/util/useOnScreen.d.ts +5 -0
  703. package/dist/lib/util/useOnScreen.js +19 -0
  704. package/dist/lib/util/useOnScreen.js.map +1 -0
  705. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  706. package/dist/lib/util/useScrollToAnchor.js +42 -37
  707. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  708. package/dist/lib/util/useScrollToTop.js +7 -5
  709. package/dist/lib/util/useScrollToTop.js.map +1 -1
  710. package/dist/vite/api/SchemaManager.d.ts +36 -0
  711. package/dist/vite/api/SchemaManager.js +122 -0
  712. package/dist/vite/api/SchemaManager.js.map +1 -0
  713. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  714. package/dist/vite/api/SchemaManager.test.js +106 -0
  715. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  716. package/dist/vite/api/schema-codegen.d.ts +12 -0
  717. package/dist/vite/api/schema-codegen.js +85 -0
  718. package/dist/vite/api/schema-codegen.js.map +1 -0
  719. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  720. package/dist/vite/api/schema-codegen.test.js +313 -0
  721. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  722. package/dist/vite/build.js +83 -12
  723. package/dist/vite/build.js.map +1 -1
  724. package/dist/vite/config.d.ts +2 -15
  725. package/dist/vite/config.js +121 -144
  726. package/dist/vite/config.js.map +1 -1
  727. package/dist/vite/config.test.js +12 -6
  728. package/dist/vite/config.test.js.map +1 -1
  729. package/dist/vite/create-pagefind-index.d.ts +4 -0
  730. package/dist/vite/create-pagefind-index.js +12 -0
  731. package/dist/vite/create-pagefind-index.js.map +1 -0
  732. package/dist/vite/css/collect.d.ts +2 -0
  733. package/dist/vite/css/collect.js +27 -0
  734. package/dist/vite/css/collect.js.map +1 -0
  735. package/dist/vite/css/plugin.d.ts +5 -0
  736. package/dist/vite/css/plugin.js +79 -0
  737. package/dist/vite/css/plugin.js.map +1 -0
  738. package/dist/vite/debug.d.ts +1 -0
  739. package/dist/vite/debug.js +10 -0
  740. package/dist/vite/debug.js.map +1 -0
  741. package/dist/vite/dev-server.d.ts +11 -4
  742. package/dist/vite/dev-server.js +83 -22
  743. package/dist/vite/dev-server.js.map +1 -1
  744. package/dist/vite/error-handler.d.ts +1 -1
  745. package/dist/vite/error-handler.js +1 -1
  746. package/dist/vite/error-handler.js.map +1 -1
  747. package/dist/vite/html.d.ts +6 -2
  748. package/dist/vite/html.js +11 -10
  749. package/dist/vite/html.js.map +1 -1
  750. package/dist/vite/output.d.ts +113 -0
  751. package/dist/vite/output.js +60 -0
  752. package/dist/vite/output.js.map +1 -0
  753. package/dist/vite/plugin-api-keys.d.ts +2 -2
  754. package/dist/vite/plugin-api-keys.js +10 -5
  755. package/dist/vite/plugin-api-keys.js.map +1 -1
  756. package/dist/vite/plugin-api.d.ts +2 -2
  757. package/dist/vite/plugin-api.js +145 -32
  758. package/dist/vite/plugin-api.js.map +1 -1
  759. package/dist/vite/plugin-auth.d.ts +2 -2
  760. package/dist/vite/plugin-auth.js +7 -4
  761. package/dist/vite/plugin-auth.js.map +1 -1
  762. package/dist/vite/plugin-component.d.ts +2 -2
  763. package/dist/vite/plugin-component.js +22 -13
  764. package/dist/vite/plugin-component.js.map +1 -1
  765. package/dist/vite/plugin-config-reload.d.ts +4 -4
  766. package/dist/vite/plugin-config-reload.js +15 -8
  767. package/dist/vite/plugin-config-reload.js.map +1 -1
  768. package/dist/vite/plugin-config.d.ts +2 -3
  769. package/dist/vite/plugin-config.js +26 -3
  770. package/dist/vite/plugin-config.js.map +1 -1
  771. package/dist/vite/plugin-configure-tailwind.d.ts +3 -0
  772. package/dist/vite/plugin-configure-tailwind.js +37 -0
  773. package/dist/vite/plugin-configure-tailwind.js.map +1 -0
  774. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  775. package/dist/vite/plugin-custom-pages.js +30 -0
  776. package/dist/vite/plugin-custom-pages.js.map +1 -0
  777. package/dist/vite/plugin-docs.d.ts +3 -3
  778. package/dist/vite/plugin-docs.js +57 -29
  779. package/dist/vite/plugin-docs.js.map +1 -1
  780. package/dist/vite/plugin-docs.test.js +15 -23
  781. package/dist/vite/plugin-docs.test.js.map +1 -1
  782. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  783. package/dist/vite/plugin-frontmatter.js +28 -24
  784. package/dist/vite/plugin-frontmatter.js.map +1 -1
  785. package/dist/vite/plugin-mdx.d.ts +2 -8
  786. package/dist/vite/plugin-mdx.js +96 -13
  787. package/dist/vite/plugin-mdx.js.map +1 -1
  788. package/dist/vite/plugin-redirect.d.ts +2 -2
  789. package/dist/vite/plugin-redirect.js +3 -3
  790. package/dist/vite/plugin-redirect.js.map +1 -1
  791. package/dist/vite/plugin-search.d.ts +3 -0
  792. package/dist/vite/plugin-search.js +30 -0
  793. package/dist/vite/plugin-search.js.map +1 -0
  794. package/dist/vite/plugin-shiki-register.d.ts +3 -0
  795. package/dist/vite/plugin-shiki-register.js +38 -0
  796. package/dist/vite/plugin-shiki-register.js.map +1 -0
  797. package/dist/vite/plugin-sidebar.d.ts +5 -3
  798. package/dist/vite/plugin-sidebar.js +26 -10
  799. package/dist/vite/plugin-sidebar.js.map +1 -1
  800. package/dist/vite/plugin-theme-css.d.ts +6 -0
  801. package/dist/vite/plugin-theme-css.js +118 -0
  802. package/dist/vite/plugin-theme-css.js.map +1 -0
  803. package/dist/vite/plugin.d.ts +2 -3
  804. package/dist/vite/plugin.js +18 -6
  805. package/dist/vite/plugin.js.map +1 -1
  806. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  807. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  808. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  809. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  810. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  811. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  812. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  813. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  814. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  815. package/dist/vite/prerender/prerender.d.ts +15 -0
  816. package/dist/vite/prerender/prerender.js +109 -0
  817. package/dist/vite/prerender/prerender.js.map +1 -0
  818. package/dist/vite/prerender/worker.d.ts +13 -0
  819. package/dist/vite/prerender/worker.js +59 -0
  820. package/dist/vite/prerender/worker.js.map +1 -0
  821. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  822. package/dist/vite/remarkStaticGeneration.js +125 -0
  823. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  824. package/dist/vite/reporter.d.ts +3 -0
  825. package/dist/vite/reporter.js +33 -0
  826. package/dist/vite/reporter.js.map +1 -0
  827. package/dist/vite/sitemap.d.ts +1 -1
  828. package/dist/vite/sitemap.js +2 -1
  829. package/dist/vite/sitemap.js.map +1 -1
  830. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  831. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  832. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  833. package/dist/zuplo/policy-types.d.ts +33 -0
  834. package/dist/zuplo/policy-types.js +8 -0
  835. package/dist/zuplo/policy-types.js.map +1 -0
  836. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  837. package/dist/zuplo/with-zuplo-processors.js +26 -0
  838. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  839. package/dist/zuplo/with-zuplo.d.ts +6 -0
  840. package/dist/zuplo/with-zuplo.js +10 -0
  841. package/dist/zuplo/with-zuplo.js.map +1 -0
  842. package/lib/Button-u7M2QYds.js +51 -0
  843. package/lib/Button-u7M2QYds.js.map +1 -0
  844. package/lib/Callout-CtCQJ6Cc.js +230 -0
  845. package/lib/Callout-CtCQJ6Cc.js.map +1 -0
  846. package/lib/Card-DkH-AU1V.js +61 -0
  847. package/lib/Card-DkH-AU1V.js.map +1 -0
  848. package/lib/CategoryHeading-BA7lKNWz.js +10 -0
  849. package/lib/CategoryHeading-BA7lKNWz.js.map +1 -0
  850. package/lib/ClientOnly-E7hGysn1.js +11 -0
  851. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  852. package/lib/Dialog-irKZWXGg.js +99 -0
  853. package/lib/Dialog-irKZWXGg.js.map +1 -0
  854. package/lib/Drawer-DZ214i5V.js +1133 -0
  855. package/lib/Drawer-DZ214i5V.js.map +1 -0
  856. package/lib/Markdown-BNG8bTDA.js +7691 -0
  857. package/lib/Markdown-BNG8bTDA.js.map +1 -0
  858. package/lib/MdxPage-C-P_N-H3.js +84 -0
  859. package/lib/MdxPage-C-P_N-H3.js.map +1 -0
  860. package/lib/OasProvider-DjFXGgWa.js +33 -0
  861. package/lib/OasProvider-DjFXGgWa.js.map +1 -0
  862. package/lib/OperationList-CchpZz4h.js +5141 -0
  863. package/lib/OperationList-CchpZz4h.js.map +1 -0
  864. package/lib/Pagination-BbcrfwgM.js +36 -0
  865. package/lib/Pagination-BbcrfwgM.js.map +1 -0
  866. package/lib/RouteGuard-CIyGFkFD.js +55 -0
  867. package/lib/RouteGuard-CIyGFkFD.js.map +1 -0
  868. package/lib/SchemaList-CrQd3KiR.js +160 -0
  869. package/lib/SchemaList-CrQd3KiR.js.map +1 -0
  870. package/lib/SchemaView-CQ_hMc8m.js +375 -0
  871. package/lib/SchemaView-CQ_hMc8m.js.map +1 -0
  872. package/lib/SignUp-DSn8NjRS.js +63 -0
  873. package/lib/SignUp-DSn8NjRS.js.map +1 -0
  874. package/lib/Slot-Dw-g06lX.js +160 -0
  875. package/lib/Slot-Dw-g06lX.js.map +1 -0
  876. package/lib/Spinner-mNLZ6awP.js +7 -0
  877. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  878. package/lib/SyntaxHighlight-DTgNHbGp.js +9107 -0
  879. package/lib/SyntaxHighlight-DTgNHbGp.js.map +1 -0
  880. package/lib/Toc-Ccycwd-T.js +92 -0
  881. package/lib/Toc-Ccycwd-T.js.map +1 -0
  882. package/lib/chunk-BAXFHI7N-C9WnHsLV.js +1839 -0
  883. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
  884. package/lib/circular-DdByufCW.js +14929 -0
  885. package/lib/circular-DdByufCW.js.map +1 -0
  886. package/lib/cn-BOFVZgHd.js +2744 -0
  887. package/lib/cn-BOFVZgHd.js.map +1 -0
  888. package/lib/createServer-BL0QaN9q.js +12494 -0
  889. package/lib/createServer-BL0QaN9q.js.map +1 -0
  890. package/lib/hook-BpiAQVtd.js +1446 -0
  891. package/lib/hook-BpiAQVtd.js.map +1 -0
  892. package/lib/index--oeBayMa.js +86 -0
  893. package/lib/index--oeBayMa.js.map +1 -0
  894. package/lib/index-BjB1BHZu.js +3268 -0
  895. package/lib/index-BjB1BHZu.js.map +1 -0
  896. package/lib/index-BvvmIczU.js +2094 -0
  897. package/lib/index-BvvmIczU.js.map +1 -0
  898. package/lib/index-C1S4w-gl.js +36 -0
  899. package/lib/index-C1S4w-gl.js.map +1 -0
  900. package/lib/index-CrcNWbel.js +316 -0
  901. package/lib/index-CrcNWbel.js.map +1 -0
  902. package/lib/index-rsSMIHTN.js +4977 -0
  903. package/lib/index-rsSMIHTN.js.map +1 -0
  904. package/lib/index-zddirpDj.js +4822 -0
  905. package/lib/index-zddirpDj.js.map +1 -0
  906. package/lib/index.esm-BFcSKCe-.js +683 -0
  907. package/lib/index.esm-BFcSKCe-.js.map +1 -0
  908. package/lib/index.esm-DSfX_eMP.js +1216 -0
  909. package/lib/index.esm-DSfX_eMP.js.map +1 -0
  910. package/lib/invariant-DAFpPywt.js +48 -0
  911. package/lib/invariant-DAFpPywt.js.map +1 -0
  912. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  913. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  914. package/lib/mutation-CJrIFMgY.js +196 -0
  915. package/lib/mutation-CJrIFMgY.js.map +1 -0
  916. package/lib/objectEntries-yMIkr2mI.js +5 -0
  917. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  918. package/lib/processors/removeExtensions.js +11 -0
  919. package/lib/processors/removeExtensions.js.map +1 -0
  920. package/lib/processors/removeParameters.js +47 -0
  921. package/lib/processors/removeParameters.js.map +1 -0
  922. package/lib/processors/removePaths.js +28 -0
  923. package/lib/processors/removePaths.js.map +1 -0
  924. package/lib/processors/traverse.js +17 -0
  925. package/lib/processors/traverse.js.map +1 -0
  926. package/lib/ui/Accordion.js +47 -0
  927. package/lib/ui/Accordion.js.map +1 -0
  928. package/lib/ui/ActionButton.js +25 -0
  929. package/lib/ui/ActionButton.js.map +1 -0
  930. package/lib/ui/Alert.js +51 -0
  931. package/lib/ui/Alert.js.map +1 -0
  932. package/lib/ui/AlertDialog.js +114 -0
  933. package/lib/ui/AlertDialog.js.map +1 -0
  934. package/lib/ui/AspectRatio.js +6 -0
  935. package/lib/ui/AspectRatio.js.map +1 -0
  936. package/lib/ui/Badge.js +28 -0
  937. package/lib/ui/Badge.js.map +1 -0
  938. package/lib/ui/Breadcrumb.js +94 -0
  939. package/lib/ui/Breadcrumb.js.map +1 -0
  940. package/lib/ui/Button.js +52 -0
  941. package/lib/ui/Button.js.map +1 -0
  942. package/lib/ui/Callout.js +96 -0
  943. package/lib/ui/Callout.js.map +1 -0
  944. package/lib/ui/Card.js +62 -0
  945. package/lib/ui/Card.js.map +1 -0
  946. package/lib/ui/Carousel.js +1416 -0
  947. package/lib/ui/Carousel.js.map +1 -0
  948. package/lib/ui/Checkbox.js +29 -0
  949. package/lib/ui/Checkbox.js.map +1 -0
  950. package/lib/ui/CodeBlock.js +83 -0
  951. package/lib/ui/CodeBlock.js.map +1 -0
  952. package/lib/ui/Collapsible.js +8 -0
  953. package/lib/ui/Collapsible.js.map +1 -0
  954. package/lib/ui/Command.js +156 -0
  955. package/lib/ui/Command.js.map +1 -0
  956. package/lib/ui/Dialog.js +101 -0
  957. package/lib/ui/Dialog.js.map +1 -0
  958. package/lib/ui/Drawer.js +17 -0
  959. package/lib/ui/Drawer.js.map +1 -0
  960. package/lib/ui/DropdownMenu.js +145 -0
  961. package/lib/ui/DropdownMenu.js.map +1 -0
  962. package/lib/ui/Form.js +95 -0
  963. package/lib/ui/Form.js.map +1 -0
  964. package/lib/ui/HoverCard.js +24 -0
  965. package/lib/ui/HoverCard.js.map +1 -0
  966. package/lib/ui/Input.js +22 -0
  967. package/lib/ui/Input.js.map +1 -0
  968. package/lib/ui/Label.js +20 -0
  969. package/lib/ui/Label.js.map +1 -0
  970. package/lib/ui/Pagination.js +106 -0
  971. package/lib/ui/Pagination.js.map +1 -0
  972. package/lib/ui/Popover.js +24 -0
  973. package/lib/ui/Popover.js.map +1 -0
  974. package/lib/ui/Progress.js +27 -0
  975. package/lib/ui/Progress.js.map +1 -0
  976. package/lib/ui/RadioGroup.js +32 -0
  977. package/lib/ui/RadioGroup.js.map +1 -0
  978. package/lib/ui/ScrollArea.js +39 -0
  979. package/lib/ui/ScrollArea.js.map +1 -0
  980. package/lib/ui/Select.js +122 -0
  981. package/lib/ui/Select.js.map +1 -0
  982. package/lib/ui/Skeleton.js +18 -0
  983. package/lib/ui/Skeleton.js.map +1 -0
  984. package/lib/ui/Slider.js +24 -0
  985. package/lib/ui/Slider.js.map +1 -0
  986. package/lib/ui/Stepper.js +6 -0
  987. package/lib/ui/Stepper.js.map +1 -0
  988. package/lib/ui/Switch.js +28 -0
  989. package/lib/ui/Switch.js.map +1 -0
  990. package/lib/ui/SyntaxHighlight.js +10 -0
  991. package/lib/ui/SyntaxHighlight.js.map +1 -0
  992. package/lib/ui/Tabs.js +47 -0
  993. package/lib/ui/Tabs.js.map +1 -0
  994. package/lib/ui/Textarea.js +21 -0
  995. package/lib/ui/Textarea.js.map +1 -0
  996. package/lib/ui/Toggle.js +38 -0
  997. package/lib/ui/Toggle.js.map +1 -0
  998. package/lib/ui/ToggleGroup.js +42 -0
  999. package/lib/ui/ToggleGroup.js.map +1 -0
  1000. package/lib/ui/Tooltip.js +24 -0
  1001. package/lib/ui/Tooltip.js.map +1 -0
  1002. package/lib/ui/util.js +6 -0
  1003. package/lib/ui/util.js.map +1 -0
  1004. package/lib/useExposedProps-DG8J6ewJ.js +9 -0
  1005. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
  1006. package/lib/useLatest-hmRS46UF.js +11 -0
  1007. package/lib/useLatest-hmRS46UF.js.map +1 -0
  1008. package/lib/useMutation-B2LNwShM.js +97 -0
  1009. package/lib/useMutation-B2LNwShM.js.map +1 -0
  1010. package/lib/zudoku.auth-auth0.js +32 -30
  1011. package/lib/zudoku.auth-auth0.js.map +1 -1
  1012. package/lib/zudoku.auth-clerk.js +115 -58
  1013. package/lib/zudoku.auth-clerk.js.map +1 -1
  1014. package/lib/zudoku.auth-openid.js +628 -628
  1015. package/lib/zudoku.auth-openid.js.map +1 -1
  1016. package/lib/zudoku.components.js +34 -3364
  1017. package/lib/zudoku.components.js.map +1 -1
  1018. package/lib/zudoku.hooks.js +19 -0
  1019. package/lib/zudoku.hooks.js.map +1 -0
  1020. package/lib/zudoku.icons.js +10 -0
  1021. package/lib/zudoku.icons.js.map +1 -1
  1022. package/lib/zudoku.plugin-api-catalog.js +117 -0
  1023. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1024. package/lib/zudoku.plugin-api-keys.js +5019 -212
  1025. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1026. package/lib/zudoku.plugin-custom-pages.js +22 -0
  1027. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  1028. package/lib/zudoku.plugin-markdown.js +70 -27
  1029. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1030. package/lib/zudoku.plugin-openapi.js +8 -12
  1031. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1032. package/lib/zudoku.plugin-redirect.js +2 -2
  1033. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1034. package/lib/zudoku.plugin-search-inkeep.js +52 -28
  1035. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1036. package/lib/zudoku.plugin-search-pagefind.js +230 -0
  1037. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1038. package/lib/zudoku.plugins.js +15 -0
  1039. package/lib/zudoku.plugins.js.map +1 -0
  1040. package/package.json +186 -105
  1041. package/src/app/ZuploBuildConfig.ts +33 -0
  1042. package/src/app/defaultTheme.css +54 -0
  1043. package/src/app/demo-cdn.html +31 -31
  1044. package/src/app/demo.html +1 -1
  1045. package/src/app/demo.tsx +1 -5
  1046. package/src/app/entry.client.tsx +71 -3
  1047. package/src/app/entry.server.tsx +81 -60
  1048. package/src/app/env.ts +35 -0
  1049. package/src/app/font.geist.css +73 -0
  1050. package/src/app/main.css +202 -131
  1051. package/src/app/main.tsx +81 -71
  1052. package/src/app/sentry.ts +24 -0
  1053. package/src/app/standalone.tsx +2 -6
  1054. package/src/lib/MissingIcon.tsx +22 -0
  1055. package/src/lib/authentication/AuthenticationPlugin.tsx +22 -5
  1056. package/src/lib/authentication/authentication.ts +5 -6
  1057. package/src/lib/authentication/components/CallbackHandler.tsx +30 -51
  1058. package/src/lib/authentication/components/SignIn.tsx +35 -2
  1059. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1060. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1061. package/src/lib/authentication/hook.ts +13 -4
  1062. package/src/lib/authentication/providers/auth0.tsx +28 -18
  1063. package/src/lib/authentication/providers/clerk.tsx +136 -53
  1064. package/src/lib/authentication/providers/openid.tsx +87 -84
  1065. package/src/lib/authentication/providers/supabase.tsx +157 -0
  1066. package/src/lib/authentication/state.ts +56 -25
  1067. package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
  1068. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1069. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1070. package/src/lib/components/AnchorLink.tsx +13 -8
  1071. package/src/lib/components/Autocomplete.tsx +113 -0
  1072. package/src/lib/components/Banner.tsx +2 -1
  1073. package/src/lib/components/Bootstrap.tsx +43 -16
  1074. package/src/lib/components/BuildCheck.tsx +75 -0
  1075. package/src/lib/components/ClientOnly.tsx +6 -3
  1076. package/src/lib/components/DeveloperHint.tsx +6 -1
  1077. package/src/lib/components/ErrorPage.tsx +1 -1
  1078. package/src/lib/components/Footer.tsx +136 -0
  1079. package/src/lib/components/Header.tsx +108 -55
  1080. package/src/lib/components/Heading.tsx +14 -14
  1081. package/src/lib/components/InlineCode.tsx +13 -16
  1082. package/src/lib/components/Layout.tsx +36 -59
  1083. package/src/lib/components/Main.tsx +51 -0
  1084. package/src/lib/components/Markdown.tsx +33 -29
  1085. package/src/lib/components/MobileTopNavigation.tsx +43 -28
  1086. package/src/lib/components/NotFoundPage.tsx +2 -2
  1087. package/src/lib/components/Pagination.tsx +44 -0
  1088. package/src/lib/components/PathRenderer.tsx +61 -0
  1089. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1090. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1091. package/src/lib/components/Search.tsx +19 -8
  1092. package/src/lib/components/Slot.test.tsx +456 -0
  1093. package/src/lib/components/Slot.tsx +64 -0
  1094. package/src/lib/components/StatusPage.tsx +91 -0
  1095. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1096. package/src/lib/components/TopNavigation.tsx +95 -25
  1097. package/src/lib/components/Zudoku.tsx +119 -0
  1098. package/src/lib/components/cache.ts +23 -0
  1099. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1100. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1101. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1102. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1103. package/src/lib/components/context/ZudokuContext.ts +53 -29
  1104. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1105. package/src/lib/components/index.ts +33 -6
  1106. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1107. package/src/lib/components/navigation/Sidebar.tsx +39 -30
  1108. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  1109. package/src/lib/components/navigation/SidebarCategory.tsx +67 -54
  1110. package/src/lib/components/navigation/SidebarItem.tsx +38 -51
  1111. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  1112. package/src/lib/components/navigation/Toc.tsx +126 -0
  1113. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1114. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1115. package/src/lib/components/navigation/utils.ts +24 -17
  1116. package/src/lib/core/RouteGuard.tsx +96 -0
  1117. package/src/lib/core/ZudokuContext.ts +198 -0
  1118. package/src/lib/core/plugins.ts +54 -22
  1119. package/src/lib/errors/ErrorAlert.tsx +36 -15
  1120. package/src/lib/errors/RouterError.tsx +1 -1
  1121. package/src/lib/hooks/index.ts +5 -0
  1122. package/src/lib/hooks/useEvent.test.tsx +149 -0
  1123. package/src/lib/hooks/useEvent.ts +41 -0
  1124. package/src/lib/icons.ts +1 -0
  1125. package/src/lib/oas/graphql/circular.ts +58 -0
  1126. package/src/lib/oas/graphql/index.ts +298 -104
  1127. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1128. package/src/lib/oas/parser/index.ts +14 -30
  1129. package/src/lib/oas/parser/upgrade/index.ts +103 -38
  1130. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1131. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1132. package/src/lib/plugins/api-keys/CreateApiKey.tsx +63 -47
  1133. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1134. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +293 -113
  1135. package/src/lib/plugins/api-keys/index.tsx +107 -59
  1136. package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
  1137. package/src/lib/plugins/custom-pages/index.tsx +24 -0
  1138. package/src/lib/plugins/markdown/MdxPage.tsx +53 -49
  1139. package/src/lib/plugins/markdown/index.tsx +53 -13
  1140. package/src/lib/plugins/markdown/resolver.ts +59 -0
  1141. package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
  1142. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1143. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1144. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1145. package/src/lib/plugins/openapi/OperationList.tsx +240 -70
  1146. package/src/lib/plugins/openapi/OperationListItem.tsx +122 -93
  1147. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  1148. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1149. package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
  1150. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  1151. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1152. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
  1153. package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
  1154. package/src/lib/plugins/openapi/Sidecar.tsx +181 -114
  1155. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1156. package/src/lib/plugins/openapi/SidecarExamples.tsx +168 -0
  1157. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1158. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1159. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1160. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1161. package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
  1162. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1163. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1164. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1165. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1166. package/src/lib/plugins/openapi/context.tsx +2 -2
  1167. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1168. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1169. package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
  1170. package/src/lib/plugins/openapi/index.tsx +111 -138
  1171. package/src/lib/plugins/openapi/interfaces.ts +58 -3
  1172. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  1173. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  1174. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  1175. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
  1176. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1177. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  1178. package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
  1179. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
  1180. package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -89
  1181. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1182. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  1183. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1184. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  1185. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  1186. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  1187. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1188. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1189. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1190. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1191. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1192. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1193. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1194. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1195. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1196. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1197. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1198. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1199. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1200. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +160 -0
  1201. package/src/lib/plugins/openapi/schema/SchemaView.tsx +105 -138
  1202. package/src/lib/plugins/openapi/schema/utils.ts +32 -5
  1203. package/src/lib/plugins/openapi/state.ts +36 -0
  1204. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1205. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
  1206. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1207. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1208. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1209. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1210. package/src/lib/plugins/redirect/index.tsx +6 -10
  1211. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  1212. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1213. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1214. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1215. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1216. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1217. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1218. package/src/lib/shiki.ts +133 -0
  1219. package/src/lib/ui/Accordion.tsx +56 -0
  1220. package/src/lib/ui/ActionButton.tsx +28 -0
  1221. package/src/lib/ui/Alert.tsx +59 -0
  1222. package/src/lib/ui/AlertDialog.tsx +139 -0
  1223. package/src/lib/ui/AspectRatio.tsx +5 -0
  1224. package/src/lib/ui/Badge.tsx +37 -0
  1225. package/src/lib/ui/Breadcrumb.tsx +115 -0
  1226. package/src/lib/ui/Button.tsx +13 -8
  1227. package/src/lib/ui/Callout.tsx +36 -16
  1228. package/src/lib/ui/Card.tsx +1 -1
  1229. package/src/lib/ui/Carousel.tsx +260 -0
  1230. package/src/lib/ui/Checkbox.tsx +29 -0
  1231. package/src/lib/ui/CodeBlock.tsx +102 -0
  1232. package/src/lib/ui/Collapsible.tsx +9 -0
  1233. package/src/lib/ui/Command.tsx +193 -0
  1234. package/src/lib/ui/Dialog.tsx +120 -0
  1235. package/src/lib/ui/Drawer.tsx +38 -36
  1236. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1237. package/src/lib/ui/Form.tsx +177 -0
  1238. package/src/lib/ui/HoverCard.tsx +27 -0
  1239. package/src/lib/ui/Input.tsx +2 -3
  1240. package/src/lib/ui/Label.tsx +24 -0
  1241. package/src/lib/ui/Pagination.tsx +117 -0
  1242. package/src/lib/ui/Popover.tsx +29 -0
  1243. package/src/lib/ui/Progress.tsx +26 -0
  1244. package/src/lib/ui/RadioGroup.tsx +42 -0
  1245. package/src/lib/ui/ScrollArea.tsx +46 -0
  1246. package/src/lib/ui/Select.tsx +157 -0
  1247. package/src/lib/ui/Skeleton.tsx +15 -0
  1248. package/src/lib/ui/Slider.tsx +26 -0
  1249. package/src/lib/ui/Stepper.tsx +8 -0
  1250. package/src/lib/ui/Switch.tsx +27 -0
  1251. package/src/lib/ui/SyntaxHighlight.tsx +27 -0
  1252. package/src/lib/ui/Tabs.tsx +2 -2
  1253. package/src/lib/ui/Textarea.tsx +23 -0
  1254. package/src/lib/ui/Toggle.tsx +43 -0
  1255. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1256. package/src/lib/ui/Tooltip.tsx +28 -0
  1257. package/src/lib/ui/util.tsx +3 -0
  1258. package/src/lib/util/MdxComponents.tsx +37 -24
  1259. package/src/lib/util/createVariantComponent.tsx +2 -2
  1260. package/src/lib/util/detectOS.ts +9 -0
  1261. package/src/lib/util/ensureArray.ts +3 -0
  1262. package/src/lib/util/invariant.ts +15 -3
  1263. package/src/lib/util/joinPath.tsx +3 -0
  1264. package/src/lib/util/joinUrl.test.ts +62 -0
  1265. package/src/lib/util/joinUrl.ts +57 -0
  1266. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1267. package/src/lib/util/traverse.ts +34 -0
  1268. package/src/lib/util/types.ts +7 -0
  1269. package/src/lib/util/url.test.ts +51 -0
  1270. package/src/lib/util/url.ts +18 -0
  1271. package/src/lib/util/useExposedProps.tsx +27 -0
  1272. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1273. package/src/lib/util/useLatest.ts +18 -0
  1274. package/src/lib/util/useOnScreen.ts +34 -0
  1275. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1276. package/src/lib/util/useScrollToTop.ts +9 -4
  1277. package/src/shiki/langs/abap.js +1 -0
  1278. package/src/shiki/langs/actionscript-3.js +1 -0
  1279. package/src/shiki/langs/ada.js +1 -0
  1280. package/src/shiki/langs/angular-expression.js +1 -0
  1281. package/src/shiki/langs/angular-html.js +1 -0
  1282. package/src/shiki/langs/angular-inline-style.js +1 -0
  1283. package/src/shiki/langs/angular-inline-template.js +1 -0
  1284. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1285. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1286. package/src/shiki/langs/angular-template.js +1 -0
  1287. package/src/shiki/langs/angular-ts.js +1 -0
  1288. package/src/shiki/langs/apache.js +1 -0
  1289. package/src/shiki/langs/apex.js +1 -0
  1290. package/src/shiki/langs/apl.js +1 -0
  1291. package/src/shiki/langs/applescript.js +1 -0
  1292. package/src/shiki/langs/ara.js +1 -0
  1293. package/src/shiki/langs/asciidoc.js +1 -0
  1294. package/src/shiki/langs/asm.js +1 -0
  1295. package/src/shiki/langs/astro.js +1 -0
  1296. package/src/shiki/langs/awk.js +1 -0
  1297. package/src/shiki/langs/ballerina.js +1 -0
  1298. package/src/shiki/langs/bat.js +1 -0
  1299. package/src/shiki/langs/beancount.js +1 -0
  1300. package/src/shiki/langs/berry.js +1 -0
  1301. package/src/shiki/langs/bibtex.js +1 -0
  1302. package/src/shiki/langs/bicep.js +1 -0
  1303. package/src/shiki/langs/blade.js +1 -0
  1304. package/src/shiki/langs/bsl.js +1 -0
  1305. package/src/shiki/langs/c.js +1 -0
  1306. package/src/shiki/langs/cadence.js +1 -0
  1307. package/src/shiki/langs/cairo.js +1 -0
  1308. package/src/shiki/langs/clarity.js +1 -0
  1309. package/src/shiki/langs/clojure.js +1 -0
  1310. package/src/shiki/langs/cmake.js +1 -0
  1311. package/src/shiki/langs/cobol.js +1 -0
  1312. package/src/shiki/langs/codeowners.js +1 -0
  1313. package/src/shiki/langs/codeql.js +1 -0
  1314. package/src/shiki/langs/coffee.js +1 -0
  1315. package/src/shiki/langs/common-lisp.js +1 -0
  1316. package/src/shiki/langs/coq.js +1 -0
  1317. package/src/shiki/langs/cpp-macro.js +1 -0
  1318. package/src/shiki/langs/cpp.js +1 -0
  1319. package/src/shiki/langs/crystal.js +1 -0
  1320. package/src/shiki/langs/csharp.js +1 -0
  1321. package/src/shiki/langs/css.js +1 -0
  1322. package/src/shiki/langs/csv.js +1 -0
  1323. package/src/shiki/langs/cue.js +1 -0
  1324. package/src/shiki/langs/cypher.js +1 -0
  1325. package/src/shiki/langs/d.js +1 -0
  1326. package/src/shiki/langs/dart.js +1 -0
  1327. package/src/shiki/langs/dax.js +1 -0
  1328. package/src/shiki/langs/desktop.js +1 -0
  1329. package/src/shiki/langs/diff.js +1 -0
  1330. package/src/shiki/langs/docker.js +1 -0
  1331. package/src/shiki/langs/dotenv.js +1 -0
  1332. package/src/shiki/langs/dream-maker.js +1 -0
  1333. package/src/shiki/langs/edge.js +1 -0
  1334. package/src/shiki/langs/elixir.js +1 -0
  1335. package/src/shiki/langs/elm.js +1 -0
  1336. package/src/shiki/langs/emacs-lisp.js +1 -0
  1337. package/src/shiki/langs/erb.js +1 -0
  1338. package/src/shiki/langs/erlang.js +1 -0
  1339. package/src/shiki/langs/es-tag-css.js +1 -0
  1340. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1341. package/src/shiki/langs/es-tag-html.js +1 -0
  1342. package/src/shiki/langs/es-tag-sql.js +1 -0
  1343. package/src/shiki/langs/es-tag-xml.js +1 -0
  1344. package/src/shiki/langs/fennel.js +1 -0
  1345. package/src/shiki/langs/fish.js +1 -0
  1346. package/src/shiki/langs/fluent.js +1 -0
  1347. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1348. package/src/shiki/langs/fortran-free-form.js +1 -0
  1349. package/src/shiki/langs/fsharp.js +1 -0
  1350. package/src/shiki/langs/gdresource.js +1 -0
  1351. package/src/shiki/langs/gdscript.js +1 -0
  1352. package/src/shiki/langs/gdshader.js +1 -0
  1353. package/src/shiki/langs/genie.js +1 -0
  1354. package/src/shiki/langs/gherkin.js +1 -0
  1355. package/src/shiki/langs/git-commit.js +1 -0
  1356. package/src/shiki/langs/git-rebase.js +1 -0
  1357. package/src/shiki/langs/gleam.js +1 -0
  1358. package/src/shiki/langs/glimmer-js.js +1 -0
  1359. package/src/shiki/langs/glimmer-ts.js +1 -0
  1360. package/src/shiki/langs/glsl.js +1 -0
  1361. package/src/shiki/langs/gnuplot.js +1 -0
  1362. package/src/shiki/langs/go.js +1 -0
  1363. package/src/shiki/langs/graphql.js +1 -0
  1364. package/src/shiki/langs/groovy.js +1 -0
  1365. package/src/shiki/langs/hack.js +1 -0
  1366. package/src/shiki/langs/haml.js +1 -0
  1367. package/src/shiki/langs/handlebars.js +1 -0
  1368. package/src/shiki/langs/haskell.js +1 -0
  1369. package/src/shiki/langs/haxe.js +1 -0
  1370. package/src/shiki/langs/hcl.js +1 -0
  1371. package/src/shiki/langs/hjson.js +1 -0
  1372. package/src/shiki/langs/hlsl.js +1 -0
  1373. package/src/shiki/langs/html-derivative.js +1 -0
  1374. package/src/shiki/langs/html.js +1 -0
  1375. package/src/shiki/langs/http.js +1 -0
  1376. package/src/shiki/langs/hxml.js +1 -0
  1377. package/src/shiki/langs/hy.js +1 -0
  1378. package/src/shiki/langs/imba.js +1 -0
  1379. package/src/shiki/langs/ini.js +1 -0
  1380. package/src/shiki/langs/java.js +1 -0
  1381. package/src/shiki/langs/javascript.js +1 -0
  1382. package/src/shiki/langs/jinja-html.js +1 -0
  1383. package/src/shiki/langs/jinja.js +1 -0
  1384. package/src/shiki/langs/jison.js +1 -0
  1385. package/src/shiki/langs/json.js +1 -0
  1386. package/src/shiki/langs/json5.js +1 -0
  1387. package/src/shiki/langs/jsonc.js +1 -0
  1388. package/src/shiki/langs/jsonl.js +1 -0
  1389. package/src/shiki/langs/jsonnet.js +1 -0
  1390. package/src/shiki/langs/jssm.js +1 -0
  1391. package/src/shiki/langs/jsx.js +1 -0
  1392. package/src/shiki/langs/julia.js +1 -0
  1393. package/src/shiki/langs/kotlin.js +1 -0
  1394. package/src/shiki/langs/kusto.js +1 -0
  1395. package/src/shiki/langs/latex.js +1 -0
  1396. package/src/shiki/langs/lean.js +1 -0
  1397. package/src/shiki/langs/less.js +1 -0
  1398. package/src/shiki/langs/liquid.js +1 -0
  1399. package/src/shiki/langs/llvm.js +1 -0
  1400. package/src/shiki/langs/log.js +1 -0
  1401. package/src/shiki/langs/logo.js +1 -0
  1402. package/src/shiki/langs/lua.js +1 -0
  1403. package/src/shiki/langs/luau.js +1 -0
  1404. package/src/shiki/langs/make.js +1 -0
  1405. package/src/shiki/langs/markdown-vue.js +1 -0
  1406. package/src/shiki/langs/markdown.js +1 -0
  1407. package/src/shiki/langs/marko.js +1 -0
  1408. package/src/shiki/langs/matlab.js +1 -0
  1409. package/src/shiki/langs/mdc.js +1 -0
  1410. package/src/shiki/langs/mdx.js +1 -0
  1411. package/src/shiki/langs/mermaid.js +1 -0
  1412. package/src/shiki/langs/mipsasm.js +1 -0
  1413. package/src/shiki/langs/mojo.js +1 -0
  1414. package/src/shiki/langs/move.js +1 -0
  1415. package/src/shiki/langs/narrat.js +1 -0
  1416. package/src/shiki/langs/nextflow.js +1 -0
  1417. package/src/shiki/langs/nginx.js +1 -0
  1418. package/src/shiki/langs/nim.js +1 -0
  1419. package/src/shiki/langs/nix.js +1 -0
  1420. package/src/shiki/langs/nushell.js +1 -0
  1421. package/src/shiki/langs/objective-c.js +1 -0
  1422. package/src/shiki/langs/objective-cpp.js +1 -0
  1423. package/src/shiki/langs/ocaml.js +1 -0
  1424. package/src/shiki/langs/pascal.js +1 -0
  1425. package/src/shiki/langs/perl.js +1 -0
  1426. package/src/shiki/langs/php.js +1 -0
  1427. package/src/shiki/langs/plsql.js +1 -0
  1428. package/src/shiki/langs/po.js +1 -0
  1429. package/src/shiki/langs/polar.js +1 -0
  1430. package/src/shiki/langs/postcss.js +1 -0
  1431. package/src/shiki/langs/powerquery.js +1 -0
  1432. package/src/shiki/langs/powershell.js +1 -0
  1433. package/src/shiki/langs/prisma.js +1 -0
  1434. package/src/shiki/langs/prolog.js +1 -0
  1435. package/src/shiki/langs/proto.js +1 -0
  1436. package/src/shiki/langs/pug.js +1 -0
  1437. package/src/shiki/langs/puppet.js +1 -0
  1438. package/src/shiki/langs/purescript.js +1 -0
  1439. package/src/shiki/langs/python.js +1 -0
  1440. package/src/shiki/langs/qml.js +1 -0
  1441. package/src/shiki/langs/qmldir.js +1 -0
  1442. package/src/shiki/langs/qss.js +1 -0
  1443. package/src/shiki/langs/r.js +1 -0
  1444. package/src/shiki/langs/racket.js +1 -0
  1445. package/src/shiki/langs/raku.js +1 -0
  1446. package/src/shiki/langs/razor.js +1 -0
  1447. package/src/shiki/langs/reg.js +1 -0
  1448. package/src/shiki/langs/regexp.js +1 -0
  1449. package/src/shiki/langs/rel.js +1 -0
  1450. package/src/shiki/langs/riscv.js +1 -0
  1451. package/src/shiki/langs/rst.js +1 -0
  1452. package/src/shiki/langs/ruby.js +1 -0
  1453. package/src/shiki/langs/rust.js +1 -0
  1454. package/src/shiki/langs/sas.js +1 -0
  1455. package/src/shiki/langs/sass.js +1 -0
  1456. package/src/shiki/langs/scala.js +1 -0
  1457. package/src/shiki/langs/scheme.js +1 -0
  1458. package/src/shiki/langs/scss.js +1 -0
  1459. package/src/shiki/langs/sdbl.js +1 -0
  1460. package/src/shiki/langs/shaderlab.js +1 -0
  1461. package/src/shiki/langs/shellscript.js +1 -0
  1462. package/src/shiki/langs/shellsession.js +1 -0
  1463. package/src/shiki/langs/smalltalk.js +1 -0
  1464. package/src/shiki/langs/solidity.js +1 -0
  1465. package/src/shiki/langs/soy.js +1 -0
  1466. package/src/shiki/langs/sparql.js +1 -0
  1467. package/src/shiki/langs/splunk.js +1 -0
  1468. package/src/shiki/langs/sql.js +1 -0
  1469. package/src/shiki/langs/ssh-config.js +1 -0
  1470. package/src/shiki/langs/stata.js +1 -0
  1471. package/src/shiki/langs/stylus.js +1 -0
  1472. package/src/shiki/langs/svelte.js +1 -0
  1473. package/src/shiki/langs/swift.js +1 -0
  1474. package/src/shiki/langs/system-verilog.js +1 -0
  1475. package/src/shiki/langs/systemd.js +1 -0
  1476. package/src/shiki/langs/talonscript.js +1 -0
  1477. package/src/shiki/langs/tasl.js +1 -0
  1478. package/src/shiki/langs/tcl.js +1 -0
  1479. package/src/shiki/langs/templ.js +1 -0
  1480. package/src/shiki/langs/terraform.js +1 -0
  1481. package/src/shiki/langs/tex.js +1 -0
  1482. package/src/shiki/langs/toml.js +1 -0
  1483. package/src/shiki/langs/ts-tags.js +1 -0
  1484. package/src/shiki/langs/tsv.js +1 -0
  1485. package/src/shiki/langs/tsx.js +1 -0
  1486. package/src/shiki/langs/turtle.js +1 -0
  1487. package/src/shiki/langs/twig.js +1 -0
  1488. package/src/shiki/langs/typescript.js +1 -0
  1489. package/src/shiki/langs/typespec.js +1 -0
  1490. package/src/shiki/langs/typst.js +1 -0
  1491. package/src/shiki/langs/v.js +1 -0
  1492. package/src/shiki/langs/vala.js +1 -0
  1493. package/src/shiki/langs/vb.js +1 -0
  1494. package/src/shiki/langs/verilog.js +1 -0
  1495. package/src/shiki/langs/vhdl.js +1 -0
  1496. package/src/shiki/langs/viml.js +1 -0
  1497. package/src/shiki/langs/vue-directives.js +1 -0
  1498. package/src/shiki/langs/vue-html.js +1 -0
  1499. package/src/shiki/langs/vue-interpolations.js +1 -0
  1500. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1501. package/src/shiki/langs/vue.js +1 -0
  1502. package/src/shiki/langs/vyper.js +1 -0
  1503. package/src/shiki/langs/wasm.js +1 -0
  1504. package/src/shiki/langs/wenyan.js +1 -0
  1505. package/src/shiki/langs/wgsl.js +1 -0
  1506. package/src/shiki/langs/wikitext.js +1 -0
  1507. package/src/shiki/langs/wit.js +1 -0
  1508. package/src/shiki/langs/wolfram.js +1 -0
  1509. package/src/shiki/langs/xml.js +1 -0
  1510. package/src/shiki/langs/xsl.js +1 -0
  1511. package/src/shiki/langs/yaml.js +1 -0
  1512. package/src/shiki/langs/zenscript.js +1 -0
  1513. package/src/shiki/langs/zig.js +1 -0
  1514. package/src/shiki/themes/andromeeda.js +1 -0
  1515. package/src/shiki/themes/aurora-x.js +1 -0
  1516. package/src/shiki/themes/ayu-dark.js +1 -0
  1517. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1518. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1519. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1520. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1521. package/src/shiki/themes/dark-plus.js +1 -0
  1522. package/src/shiki/themes/dracula-soft.js +1 -0
  1523. package/src/shiki/themes/dracula.js +1 -0
  1524. package/src/shiki/themes/everforest-dark.js +1 -0
  1525. package/src/shiki/themes/everforest-light.js +1 -0
  1526. package/src/shiki/themes/github-dark-default.js +1 -0
  1527. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1528. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1529. package/src/shiki/themes/github-dark.js +1 -0
  1530. package/src/shiki/themes/github-light-default.js +1 -0
  1531. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1532. package/src/shiki/themes/github-light.js +1 -0
  1533. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1534. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1535. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1536. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1537. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1538. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1539. package/src/shiki/themes/houston.js +1 -0
  1540. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1541. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1542. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1543. package/src/shiki/themes/laserwave.js +1 -0
  1544. package/src/shiki/themes/light-plus.js +1 -0
  1545. package/src/shiki/themes/material-theme-darker.js +1 -0
  1546. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1547. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1548. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1549. package/src/shiki/themes/material-theme.js +1 -0
  1550. package/src/shiki/themes/min-dark.js +1 -0
  1551. package/src/shiki/themes/min-light.js +1 -0
  1552. package/src/shiki/themes/monokai.js +1 -0
  1553. package/src/shiki/themes/night-owl.js +1 -0
  1554. package/src/shiki/themes/nord.js +1 -0
  1555. package/src/shiki/themes/one-dark-pro.js +1 -0
  1556. package/src/shiki/themes/one-light.js +1 -0
  1557. package/src/shiki/themes/plastic.js +1 -0
  1558. package/src/shiki/themes/poimandres.js +1 -0
  1559. package/src/shiki/themes/red.js +1 -0
  1560. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1561. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1562. package/src/shiki/themes/rose-pine.js +1 -0
  1563. package/src/shiki/themes/slack-dark.js +1 -0
  1564. package/src/shiki/themes/slack-ochin.js +1 -0
  1565. package/src/shiki/themes/snazzy-light.js +1 -0
  1566. package/src/shiki/themes/solarized-dark.js +1 -0
  1567. package/src/shiki/themes/solarized-light.js +1 -0
  1568. package/src/shiki/themes/synthwave-84.js +1 -0
  1569. package/src/shiki/themes/tokyo-night.js +1 -0
  1570. package/src/shiki/themes/vesper.js +1 -0
  1571. package/src/shiki/themes/vitesse-black.js +1 -0
  1572. package/src/shiki/themes/vitesse-dark.js +1 -0
  1573. package/src/shiki/themes/vitesse-light.js +1 -0
  1574. package/LICENSE.md +0 -9
  1575. package/client.d.ts +0 -1
  1576. package/dist/app/tailwind.d.ts +0 -3
  1577. package/dist/app/tailwind.js +0 -65
  1578. package/dist/app/tailwind.js.map +0 -1
  1579. package/dist/internal.d.ts +0 -1
  1580. package/dist/internal.js +0 -2
  1581. package/dist/internal.js.map +0 -1
  1582. package/dist/lib/components/DevPortal.d.ts +0 -7
  1583. package/dist/lib/components/DevPortal.js +0 -54
  1584. package/dist/lib/components/DevPortal.js.map +0 -1
  1585. package/dist/lib/components/Dialog.js +0 -23
  1586. package/dist/lib/components/Dialog.js.map +0 -1
  1587. package/dist/lib/components/Select.js +0 -27
  1588. package/dist/lib/components/Select.js.map +0 -1
  1589. package/dist/lib/components/SlotletProvider.d.ts +0 -9
  1590. package/dist/lib/components/SlotletProvider.js +0 -16
  1591. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1592. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1593. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1594. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1595. package/dist/lib/components/context/PluginSystem.js +0 -2
  1596. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1597. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1598. package/dist/lib/components/context/ThemeContext.js +0 -7
  1599. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1600. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1601. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1602. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1603. package/dist/lib/core/DevPortalContext.d.ts +0 -78
  1604. package/dist/lib/core/DevPortalContext.js +0 -49
  1605. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1606. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  1607. package/dist/lib/plugins/custom-page/index.js +0 -12
  1608. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  1609. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1610. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1611. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  1612. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  1613. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  1614. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1615. package/dist/lib/plugins/openapi/Route.js +0 -8
  1616. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1617. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1618. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1619. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1620. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1621. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1622. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1623. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1624. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1625. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1626. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1627. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1628. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  1629. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  1630. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  1631. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1632. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1633. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1634. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  1635. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1636. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1637. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  1638. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  1639. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  1640. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1641. package/dist/lib/plugins/openapi-worker.js +0 -2
  1642. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1643. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1644. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1645. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1646. package/dist/lib/themeToggle.d.ts +0 -1
  1647. package/dist/lib/themeToggle.js +0 -7
  1648. package/dist/lib/themeToggle.js.map +0 -1
  1649. package/dist/lib/ui/Note.d.ts +0 -8
  1650. package/dist/lib/ui/Note.js +0 -23
  1651. package/dist/lib/ui/Note.js.map +0 -1
  1652. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1653. package/dist/lib/util/createWaitForNotify.js +0 -15
  1654. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1655. package/dist/vite/plugin-custom-css.d.ts +0 -6
  1656. package/dist/vite/plugin-custom-css.js +0 -55
  1657. package/dist/vite/plugin-custom-css.js.map +0 -1
  1658. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1659. package/dist/vite/plugin-html-transform.js +0 -15
  1660. package/dist/vite/plugin-html-transform.js.map +0 -1
  1661. package/dist/vite/prerender.d.ts +0 -17
  1662. package/dist/vite/prerender.js +0 -87
  1663. package/dist/vite/prerender.js.map +0 -1
  1664. package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
  1665. package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
  1666. package/lib/CategoryHeading-ovR-zHRq.js +0 -10
  1667. package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
  1668. package/lib/DeveloperHint-YeWHKvyr.js +0 -16
  1669. package/lib/DeveloperHint-YeWHKvyr.js.map +0 -1
  1670. package/lib/ErrorPage-CsZAN_za.js +0 -16
  1671. package/lib/ErrorPage-CsZAN_za.js.map +0 -1
  1672. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1673. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1674. package/lib/Input-CtVUl3eT.js +0 -2198
  1675. package/lib/Input-CtVUl3eT.js.map +0 -1
  1676. package/lib/Markdown-DapSf3wG.js +0 -20281
  1677. package/lib/Markdown-DapSf3wG.js.map +0 -1
  1678. package/lib/MdxPage-BqBWsXZ1.js +0 -172
  1679. package/lib/MdxPage-BqBWsXZ1.js.map +0 -1
  1680. package/lib/OperationList-CYrmxPa8.js +0 -602
  1681. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  1682. package/lib/Route-Q5mqNQrv.js +0 -14
  1683. package/lib/Route-Q5mqNQrv.js.map +0 -1
  1684. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  1685. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  1686. package/lib/SlotletProvider-D3UD5Go3.js +0 -238
  1687. package/lib/SlotletProvider-D3UD5Go3.js.map +0 -1
  1688. package/lib/Spinner-3cQDBVGr.js +0 -7
  1689. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  1690. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  1691. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  1692. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1693. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1694. package/lib/assets/index-B9EWVYfo.js +0 -4790
  1695. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  1696. package/lib/assets/worker-BP8Uzflt.js +0 -17916
  1697. package/lib/assets/worker-BP8Uzflt.js.map +0 -1
  1698. package/lib/index-BG0g4WW0.js +0 -1771
  1699. package/lib/index-BG0g4WW0.js.map +0 -1
  1700. package/lib/index-BlJ2rj99.js +0 -5815
  1701. package/lib/index-BlJ2rj99.js.map +0 -1
  1702. package/lib/index-BngPzhKn.js +0 -124
  1703. package/lib/index-BngPzhKn.js.map +0 -1
  1704. package/lib/index-CLd8ycZz.js +0 -4790
  1705. package/lib/index-CLd8ycZz.js.map +0 -1
  1706. package/lib/index-Dolisrci.js +0 -2814
  1707. package/lib/index-Dolisrci.js.map +0 -1
  1708. package/lib/index-LNp6rxyU.js +0 -2094
  1709. package/lib/index-LNp6rxyU.js.map +0 -1
  1710. package/lib/joinPath-B7kNnUX4.js +0 -8
  1711. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  1712. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1713. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1714. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  1715. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  1716. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1717. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  1718. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1719. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  1720. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1721. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1722. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1723. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1724. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  1725. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  1726. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1727. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1728. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1729. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1730. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1731. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1732. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1733. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1734. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1735. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  1736. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1737. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  1738. package/lib/router-D2p7Olpn.js +0 -2971
  1739. package/lib/router-D2p7Olpn.js.map +0 -1
  1740. package/lib/state-hNe1dw4B.js +0 -548
  1741. package/lib/state-hNe1dw4B.js.map +0 -1
  1742. package/lib/urql-YhcsXYy8.js +0 -1591
  1743. package/lib/urql-YhcsXYy8.js.map +0 -1
  1744. package/lib/utils-ByIc_KIM.js +0 -749
  1745. package/lib/utils-ByIc_KIM.js.map +0 -1
  1746. package/lib/zudoku.openapi-worker.js +0 -16059
  1747. package/lib/zudoku.openapi-worker.js.map +0 -1
  1748. package/lib/zudoku.plugin-custom-page.js +0 -13
  1749. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  1750. package/src/app/tailwind.ts +0 -68
  1751. package/src/lib/components/DevPortal.tsx +0 -111
  1752. package/src/lib/components/Dialog.tsx +0 -119
  1753. package/src/lib/components/Select.tsx +0 -157
  1754. package/src/lib/components/SlotletProvider.tsx +0 -30
  1755. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  1756. package/src/lib/components/context/PluginSystem.ts +0 -0
  1757. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1758. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1759. package/src/lib/core/DevPortalContext.ts +0 -135
  1760. package/src/lib/plugins/custom-page/index.tsx +0 -22
  1761. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  1762. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  1763. package/src/lib/plugins/openapi/Route.tsx +0 -21
  1764. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
  1765. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
  1766. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1767. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1768. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  1769. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1770. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1771. package/src/lib/plugins/openapi/util/urql.ts +0 -8
  1772. package/src/lib/plugins/openapi-worker.ts +0 -1
  1773. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1774. package/src/lib/themeToggle.ts +0 -7
  1775. package/src/lib/ui/Note.tsx +0 -58
  1776. package/src/lib/util/createWaitForNotify.ts +0 -18
  1777. /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
  1778. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1779. /package/dist/lib/{plugins/openapi/client/worker.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1780. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  1781. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -0,0 +1,3268 @@
1
+ import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { ChevronDown as bt, ChevronUp as pn, Check as jt, ChevronRightIcon as X, CheckIcon as hn, DotIcon as fn, XIcon as xn, Circle as gn, ChevronDownIcon as yn, InfoIcon as st, LogInIcon as vn, CirclePlayIcon as bn } from "lucide-react";
3
+ import { r as jn, c as Nn, u as wn, N as Cn, h as Sn, m as rt } from "./chunk-BAXFHI7N-C9WnHsLV.js";
4
+ import { M as Nt, O as wt, P as Tn, m as An, T as On, k as L, d as Pn, l as En } from "./hook-BpiAQVtd.js";
5
+ import { Button as Z } from "./ui/Button.js";
6
+ import { Z as $n } from "./invariant-DAFpPywt.js";
7
+ import * as b from "react";
8
+ import { createContext as Ct, use as Rn, Fragment as q, useRef as Q, useEffect as ae, useMemo as Ln, useState as $, useCallback as In, useTransition as kn, useContext as Dn } from "react";
9
+ import { VisuallyHidden as qn } from "@radix-ui/react-visually-hidden";
10
+ import { D as Le, a as Ie, c as ke, d as St, e as Tt, f as Vn } from "./Dialog-irKZWXGg.js";
11
+ import { u as Fn } from "./useMutation-B2LNwShM.js";
12
+ import { a as De, u as qe, C as V, b as Bn, F as zn } from "./index.esm-DSfX_eMP.js";
13
+ import { c as At } from "./index-C1S4w-gl.js";
14
+ import { c as g } from "./cn-BOFVZgHd.js";
15
+ import * as w from "@radix-ui/react-select";
16
+ import { Tabs as Ot, TabsList as Pt, TabsTrigger as M, TabsContent as U } from "./ui/Tabs.js";
17
+ import { o as _n } from "./objectEntries-yMIkr2mI.js";
18
+ import { u as Mn } from "./useLatest-hmRS46UF.js";
19
+ import { z as Un } from "./index--oeBayMa.js";
20
+ import { B as F } from "./Button-u7M2QYds.js";
21
+ import * as j from "@radix-ui/react-dropdown-menu";
22
+ import { C as me } from "./Card-DkH-AU1V.js";
23
+ import * as Se from "@radix-ui/react-checkbox";
24
+ import * as oe from "@radix-ui/react-popover";
25
+ import { PopoverAnchor as Gn } from "@radix-ui/react-popover";
26
+ import { P as Hn } from "./index-CrcNWbel.js";
27
+ import { g as Qn, h as Jn, C as Wn, b as Xn, f as Zn } from "./Callout-CtCQJ6Cc.js";
28
+ import { Input as Ve } from "./ui/Input.js";
29
+ import { Slot as Yn } from "@radix-ui/react-slot";
30
+ import * as Et from "@radix-ui/react-label";
31
+ import * as Y from "@radix-ui/react-radio-group";
32
+ import { S as Kn } from "./Spinner-mNLZ6awP.js";
33
+ import { Callout as es } from "./ui/Callout.js";
34
+ import { Card as $t, CardHeader as ts, CardTitle as ns, CardContent as ss } from "./ui/Card.js";
35
+ import { Collapsible as at, CollapsibleTrigger as ot, CollapsibleContent as it } from "./ui/Collapsible.js";
36
+ import * as Fe from "@radix-ui/react-collapsible";
37
+ import { S as rs } from "./SyntaxHighlight-DTgNHbGp.js";
38
+ let ye;
39
+ const as = (e) => {
40
+ if (e.errors?.[0])
41
+ throw new $n(e.errors[0].message, {
42
+ developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
43
+ });
44
+ };
45
+ class os {
46
+ constructor(t) {
47
+ this.config = t;
48
+ }
49
+ #e = async () => (ye || (ye = import("./createServer-BL0QaN9q.js").then(
50
+ (t) => t.createServer(this.config)
51
+ )), ye);
52
+ #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
53
+ fetch = async (t, s) => {
54
+ const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
55
+ method: "POST",
56
+ body: JSON.stringify({ query: t, variables: s, operationName: a }),
57
+ headers: { "Content-Type": "application/json" }
58
+ });
59
+ if (!r.ok)
60
+ throw new Error("Network response was not ok");
61
+ const o = await r.json();
62
+ return as(o), o.data;
63
+ };
64
+ }
65
+ function ve(e, t) {
66
+ if (!!!e)
67
+ throw new Error(t);
68
+ }
69
+ function is(e) {
70
+ return typeof e == "object" && e !== null;
71
+ }
72
+ function ls(e, t) {
73
+ if (!!!e)
74
+ throw new Error(
75
+ t ?? "Unexpected invariant triggered."
76
+ );
77
+ }
78
+ const cs = /\r\n|[\n\r]/g;
79
+ function Te(e, t) {
80
+ let s = 0, a = 1;
81
+ for (const r of e.body.matchAll(cs)) {
82
+ if (typeof r.index == "number" || ls(!1), r.index >= t)
83
+ break;
84
+ s = r.index + r[0].length, a += 1;
85
+ }
86
+ return {
87
+ line: a,
88
+ column: t + 1 - s
89
+ };
90
+ }
91
+ function ds(e) {
92
+ return Rt(
93
+ e.source,
94
+ Te(e.source, e.start)
95
+ );
96
+ }
97
+ function Rt(e, t) {
98
+ const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, c = t.line === 1 ? s : 0, l = t.column + c, u = `${e.name}:${i}:${l}
99
+ `, p = a.split(/\r\n|[\n\r]/g), v = p[r];
100
+ if (v.length > 120) {
101
+ const f = Math.floor(l / 80), x = l % 80, m = [];
102
+ for (let y = 0; y < v.length; y += 80)
103
+ m.push(v.slice(y, y + 80));
104
+ return u + lt([
105
+ [`${i} |`, m[0]],
106
+ ...m.slice(1, f + 1).map((y) => ["|", y]),
107
+ ["|", "^".padStart(x)],
108
+ ["|", m[f + 1]]
109
+ ]);
110
+ }
111
+ return u + lt([
112
+ // Lines specified like this: ["prefix", "string"],
113
+ [`${i - 1} |`, p[r - 1]],
114
+ [`${i} |`, v],
115
+ ["|", "^".padStart(l)],
116
+ [`${i + 1} |`, p[r + 1]]
117
+ ]);
118
+ }
119
+ function lt(e) {
120
+ const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
121
+ return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
122
+ `);
123
+ }
124
+ function us(e) {
125
+ const t = e[0];
126
+ return t == null || "kind" in t || "length" in t ? {
127
+ nodes: t,
128
+ source: e[1],
129
+ positions: e[2],
130
+ path: e[3],
131
+ originalError: e[4],
132
+ extensions: e[5]
133
+ } : t;
134
+ }
135
+ class Be extends Error {
136
+ /**
137
+ * An array of `{ line, column }` locations within the source GraphQL document
138
+ * which correspond to this error.
139
+ *
140
+ * Errors during validation often contain multiple locations, for example to
141
+ * point out two things with the same name. Errors during execution include a
142
+ * single location, the field which produced the error.
143
+ *
144
+ * Enumerable, and appears in the result of JSON.stringify().
145
+ */
146
+ /**
147
+ * An array describing the JSON-path into the execution response which
148
+ * corresponds to this error. Only included for errors during execution.
149
+ *
150
+ * Enumerable, and appears in the result of JSON.stringify().
151
+ */
152
+ /**
153
+ * An array of GraphQL AST Nodes corresponding to this error.
154
+ */
155
+ /**
156
+ * The source GraphQL document for the first location of this error.
157
+ *
158
+ * Note that if this Error represents more than one node, the source may not
159
+ * represent nodes after the first node.
160
+ */
161
+ /**
162
+ * An array of character offsets within the source GraphQL document
163
+ * which correspond to this error.
164
+ */
165
+ /**
166
+ * The original error thrown from a field resolver during execution.
167
+ */
168
+ /**
169
+ * Extension fields to add to the formatted error.
170
+ */
171
+ /**
172
+ * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
173
+ */
174
+ constructor(t, ...s) {
175
+ var a, r, o;
176
+ const { nodes: i, source: c, positions: l, path: u, originalError: p, extensions: v } = us(s);
177
+ super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = p ?? void 0, this.nodes = ct(
178
+ Array.isArray(i) ? i : i ? [i] : void 0
179
+ );
180
+ const f = ct(
181
+ (a = this.nodes) === null || a === void 0 ? void 0 : a.map((m) => m.loc).filter((m) => m != null)
182
+ );
183
+ this.source = c ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? f?.map((m) => m.start), this.locations = l && c ? l.map((m) => Te(c, m)) : f?.map((m) => Te(m.source, m.start));
184
+ const x = is(
185
+ p?.extensions
186
+ ) ? p?.extensions : void 0;
187
+ this.extensions = (o = v ?? x) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
188
+ message: {
189
+ writable: !0,
190
+ enumerable: !0
191
+ },
192
+ name: {
193
+ enumerable: !1
194
+ },
195
+ nodes: {
196
+ enumerable: !1
197
+ },
198
+ source: {
199
+ enumerable: !1
200
+ },
201
+ positions: {
202
+ enumerable: !1
203
+ },
204
+ originalError: {
205
+ enumerable: !1
206
+ }
207
+ }), p != null && p.stack ? Object.defineProperty(this, "stack", {
208
+ value: p.stack,
209
+ writable: !0,
210
+ configurable: !0
211
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, Be) : Object.defineProperty(this, "stack", {
212
+ value: Error().stack,
213
+ writable: !0,
214
+ configurable: !0
215
+ });
216
+ }
217
+ get [Symbol.toStringTag]() {
218
+ return "GraphQLError";
219
+ }
220
+ toString() {
221
+ let t = this.message;
222
+ if (this.nodes)
223
+ for (const s of this.nodes)
224
+ s.loc && (t += `
225
+
226
+ ` + ds(s.loc));
227
+ else if (this.source && this.locations)
228
+ for (const s of this.locations)
229
+ t += `
230
+
231
+ ` + Rt(this.source, s);
232
+ return t;
233
+ }
234
+ toJSON() {
235
+ const t = {
236
+ message: this.message
237
+ };
238
+ return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
239
+ }
240
+ }
241
+ function ct(e) {
242
+ return e === void 0 || e.length === 0 ? void 0 : e;
243
+ }
244
+ function O(e, t, s) {
245
+ return new Be(`Syntax Error: ${s}`, {
246
+ source: e,
247
+ positions: [t]
248
+ });
249
+ }
250
+ class ga {
251
+ /**
252
+ * The character offset at which this Node begins.
253
+ */
254
+ /**
255
+ * The character offset at which this Node ends.
256
+ */
257
+ /**
258
+ * The Token at which this Node begins.
259
+ */
260
+ /**
261
+ * The Token at which this Node ends.
262
+ */
263
+ /**
264
+ * The Source document the AST represents.
265
+ */
266
+ constructor(t, s, a) {
267
+ this.start = t.start, this.end = s.end, this.startToken = t, this.endToken = s, this.source = a;
268
+ }
269
+ get [Symbol.toStringTag]() {
270
+ return "Location";
271
+ }
272
+ toJSON() {
273
+ return {
274
+ start: this.start,
275
+ end: this.end
276
+ };
277
+ }
278
+ }
279
+ class Lt {
280
+ /**
281
+ * The kind of Token.
282
+ */
283
+ /**
284
+ * The character offset at which this Node begins.
285
+ */
286
+ /**
287
+ * The character offset at which this Node ends.
288
+ */
289
+ /**
290
+ * The 1-indexed line number on which this Token appears.
291
+ */
292
+ /**
293
+ * The 1-indexed column number at which this Token begins.
294
+ */
295
+ /**
296
+ * For non-punctuation tokens, represents the interpreted value of the token.
297
+ *
298
+ * Note: is undefined for punctuation tokens, but typed as string for
299
+ * convenience in the parser.
300
+ */
301
+ /**
302
+ * Tokens exist as nodes in a double-linked-list amongst all tokens
303
+ * including ignored tokens. <SOF> is always the first node and <EOF>
304
+ * the last.
305
+ */
306
+ constructor(t, s, a, r, o, i) {
307
+ this.kind = t, this.start = s, this.end = a, this.line = r, this.column = o, this.value = i, this.prev = null, this.next = null;
308
+ }
309
+ get [Symbol.toStringTag]() {
310
+ return "Token";
311
+ }
312
+ toJSON() {
313
+ return {
314
+ kind: this.kind,
315
+ value: this.value,
316
+ line: this.line,
317
+ column: this.column
318
+ };
319
+ }
320
+ }
321
+ const ms = {
322
+ Name: [],
323
+ Document: ["definitions"],
324
+ OperationDefinition: [
325
+ "name",
326
+ "variableDefinitions",
327
+ "directives",
328
+ "selectionSet"
329
+ ],
330
+ VariableDefinition: ["variable", "type", "defaultValue", "directives"],
331
+ Variable: ["name"],
332
+ SelectionSet: ["selections"],
333
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
334
+ Argument: ["name", "value"],
335
+ FragmentSpread: ["name", "directives"],
336
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
337
+ FragmentDefinition: [
338
+ "name",
339
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
340
+ "variableDefinitions",
341
+ "typeCondition",
342
+ "directives",
343
+ "selectionSet"
344
+ ],
345
+ IntValue: [],
346
+ FloatValue: [],
347
+ StringValue: [],
348
+ BooleanValue: [],
349
+ NullValue: [],
350
+ EnumValue: [],
351
+ ListValue: ["values"],
352
+ ObjectValue: ["fields"],
353
+ ObjectField: ["name", "value"],
354
+ Directive: ["name", "arguments"],
355
+ NamedType: ["name"],
356
+ ListType: ["type"],
357
+ NonNullType: ["type"],
358
+ SchemaDefinition: ["description", "directives", "operationTypes"],
359
+ OperationTypeDefinition: ["type"],
360
+ ScalarTypeDefinition: ["description", "name", "directives"],
361
+ ObjectTypeDefinition: [
362
+ "description",
363
+ "name",
364
+ "interfaces",
365
+ "directives",
366
+ "fields"
367
+ ],
368
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
369
+ InputValueDefinition: [
370
+ "description",
371
+ "name",
372
+ "type",
373
+ "defaultValue",
374
+ "directives"
375
+ ],
376
+ InterfaceTypeDefinition: [
377
+ "description",
378
+ "name",
379
+ "interfaces",
380
+ "directives",
381
+ "fields"
382
+ ],
383
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
384
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
385
+ EnumValueDefinition: ["description", "name", "directives"],
386
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
387
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
388
+ SchemaExtension: ["directives", "operationTypes"],
389
+ ScalarTypeExtension: ["name", "directives"],
390
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
391
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
392
+ UnionTypeExtension: ["name", "directives", "types"],
393
+ EnumTypeExtension: ["name", "directives", "values"],
394
+ InputObjectTypeExtension: ["name", "directives", "fields"]
395
+ }, ps = new Set(Object.keys(ms));
396
+ function ya(e) {
397
+ const t = e?.kind;
398
+ return typeof t == "string" && ps.has(t);
399
+ }
400
+ var dt;
401
+ (function(e) {
402
+ e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
403
+ })(dt || (dt = {}));
404
+ function Ae(e) {
405
+ return e === 9 || e === 32;
406
+ }
407
+ function K(e) {
408
+ return e >= 48 && e <= 57;
409
+ }
410
+ function It(e) {
411
+ return e >= 97 && e <= 122 || // A-Z
412
+ e >= 65 && e <= 90;
413
+ }
414
+ function kt(e) {
415
+ return It(e) || e === 95;
416
+ }
417
+ function hs(e) {
418
+ return It(e) || K(e) || e === 95;
419
+ }
420
+ function fs(e) {
421
+ var t;
422
+ let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
423
+ for (let i = 0; i < e.length; ++i) {
424
+ var o;
425
+ const c = e[i], l = xs(c);
426
+ l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
427
+ }
428
+ return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
429
+ (t = a) !== null && t !== void 0 ? t : 0,
430
+ r + 1
431
+ );
432
+ }
433
+ function xs(e) {
434
+ let t = 0;
435
+ for (; t < e.length && Ae(e.charCodeAt(t)); )
436
+ ++t;
437
+ return t;
438
+ }
439
+ function gs(e, t) {
440
+ const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((x) => x.length === 0 || Ae(x.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), u = c || l, p = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
441
+ (!r || e.length > 70 || u || o || i);
442
+ let v = "";
443
+ const f = r && Ae(e.charCodeAt(0));
444
+ return (p && !f || o) && (v += `
445
+ `), v += s, (p || u) && (v += `
446
+ `), '"""' + v + '"""';
447
+ }
448
+ var h;
449
+ (function(e) {
450
+ e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
451
+ })(h || (h = {}));
452
+ class ys {
453
+ /**
454
+ * The previously focused non-ignored token.
455
+ */
456
+ /**
457
+ * The currently focused non-ignored token.
458
+ */
459
+ /**
460
+ * The (1-indexed) line containing the current token.
461
+ */
462
+ /**
463
+ * The character offset at which the current line begins.
464
+ */
465
+ constructor(t) {
466
+ const s = new Lt(h.SOF, 0, 0, 0, 0);
467
+ this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
468
+ }
469
+ get [Symbol.toStringTag]() {
470
+ return "Lexer";
471
+ }
472
+ /**
473
+ * Advances the token stream to the next non-ignored token.
474
+ */
475
+ advance() {
476
+ return this.lastToken = this.token, this.token = this.lookahead();
477
+ }
478
+ /**
479
+ * Looks ahead and returns the next non-ignored token, but does not change
480
+ * the state of Lexer.
481
+ */
482
+ lookahead() {
483
+ let t = this.token;
484
+ if (t.kind !== h.EOF)
485
+ do
486
+ if (t.next)
487
+ t = t.next;
488
+ else {
489
+ const s = bs(this, t.end);
490
+ t.next = s, s.prev = t, t = s;
491
+ }
492
+ while (t.kind === h.COMMENT);
493
+ return t;
494
+ }
495
+ }
496
+ function vs(e) {
497
+ return e === h.BANG || e === h.DOLLAR || e === h.AMP || e === h.PAREN_L || e === h.PAREN_R || e === h.SPREAD || e === h.COLON || e === h.EQUALS || e === h.AT || e === h.BRACKET_L || e === h.BRACKET_R || e === h.BRACE_L || e === h.PIPE || e === h.BRACE_R;
498
+ }
499
+ function J(e) {
500
+ return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
501
+ }
502
+ function pe(e, t) {
503
+ return Dt(e.charCodeAt(t)) && qt(e.charCodeAt(t + 1));
504
+ }
505
+ function Dt(e) {
506
+ return e >= 55296 && e <= 56319;
507
+ }
508
+ function qt(e) {
509
+ return e >= 56320 && e <= 57343;
510
+ }
511
+ function B(e, t) {
512
+ const s = e.source.body.codePointAt(t);
513
+ if (s === void 0)
514
+ return h.EOF;
515
+ if (s >= 32 && s <= 126) {
516
+ const a = String.fromCodePoint(s);
517
+ return a === '"' ? `'"'` : `"${a}"`;
518
+ }
519
+ return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
520
+ }
521
+ function C(e, t, s, a, r) {
522
+ const o = e.line, i = 1 + s - e.lineStart;
523
+ return new Lt(t, s, a, o, i, r);
524
+ }
525
+ function bs(e, t) {
526
+ const s = e.source.body, a = s.length;
527
+ let r = t;
528
+ for (; r < a; ) {
529
+ const o = s.charCodeAt(r);
530
+ switch (o) {
531
+ // Ignored ::
532
+ // - UnicodeBOM
533
+ // - WhiteSpace
534
+ // - LineTerminator
535
+ // - Comment
536
+ // - Comma
537
+ //
538
+ // UnicodeBOM :: "Byte Order Mark (U+FEFF)"
539
+ //
540
+ // WhiteSpace ::
541
+ // - "Horizontal Tab (U+0009)"
542
+ // - "Space (U+0020)"
543
+ //
544
+ // Comma :: ,
545
+ case 65279:
546
+ // <BOM>
547
+ case 9:
548
+ // \t
549
+ case 32:
550
+ // <space>
551
+ case 44:
552
+ ++r;
553
+ continue;
554
+ // LineTerminator ::
555
+ // - "New Line (U+000A)"
556
+ // - "Carriage Return (U+000D)" [lookahead != "New Line (U+000A)"]
557
+ // - "Carriage Return (U+000D)" "New Line (U+000A)"
558
+ case 10:
559
+ ++r, ++e.line, e.lineStart = r;
560
+ continue;
561
+ case 13:
562
+ s.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++e.line, e.lineStart = r;
563
+ continue;
564
+ // Comment
565
+ case 35:
566
+ return js(e, r);
567
+ // Token ::
568
+ // - Punctuator
569
+ // - Name
570
+ // - IntValue
571
+ // - FloatValue
572
+ // - StringValue
573
+ //
574
+ // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
575
+ case 33:
576
+ return C(e, h.BANG, r, r + 1);
577
+ case 36:
578
+ return C(e, h.DOLLAR, r, r + 1);
579
+ case 38:
580
+ return C(e, h.AMP, r, r + 1);
581
+ case 40:
582
+ return C(e, h.PAREN_L, r, r + 1);
583
+ case 41:
584
+ return C(e, h.PAREN_R, r, r + 1);
585
+ case 46:
586
+ if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
587
+ return C(e, h.SPREAD, r, r + 3);
588
+ break;
589
+ case 58:
590
+ return C(e, h.COLON, r, r + 1);
591
+ case 61:
592
+ return C(e, h.EQUALS, r, r + 1);
593
+ case 64:
594
+ return C(e, h.AT, r, r + 1);
595
+ case 91:
596
+ return C(e, h.BRACKET_L, r, r + 1);
597
+ case 93:
598
+ return C(e, h.BRACKET_R, r, r + 1);
599
+ case 123:
600
+ return C(e, h.BRACE_L, r, r + 1);
601
+ case 124:
602
+ return C(e, h.PIPE, r, r + 1);
603
+ case 125:
604
+ return C(e, h.BRACE_R, r, r + 1);
605
+ // StringValue
606
+ case 34:
607
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? As(e, r) : ws(e, r);
608
+ }
609
+ if (K(o) || o === 45)
610
+ return Ns(e, r, o);
611
+ if (kt(o))
612
+ return Os(e, r);
613
+ throw O(
614
+ e.source,
615
+ r,
616
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : J(o) || pe(s, r) ? `Unexpected character: ${B(e, r)}.` : `Invalid character: ${B(e, r)}.`
617
+ );
618
+ }
619
+ return C(e, h.EOF, a, a);
620
+ }
621
+ function js(e, t) {
622
+ const s = e.source.body, a = s.length;
623
+ let r = t + 1;
624
+ for (; r < a; ) {
625
+ const o = s.charCodeAt(r);
626
+ if (o === 10 || o === 13)
627
+ break;
628
+ if (J(o))
629
+ ++r;
630
+ else if (pe(s, r))
631
+ r += 2;
632
+ else
633
+ break;
634
+ }
635
+ return C(
636
+ e,
637
+ h.COMMENT,
638
+ t,
639
+ r,
640
+ s.slice(t + 1, r)
641
+ );
642
+ }
643
+ function Ns(e, t, s) {
644
+ const a = e.source.body;
645
+ let r = t, o = s, i = !1;
646
+ if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
647
+ if (o = a.charCodeAt(++r), K(o))
648
+ throw O(
649
+ e.source,
650
+ r,
651
+ `Invalid number, unexpected digit after 0: ${B(
652
+ e,
653
+ r
654
+ )}.`
655
+ );
656
+ } else
657
+ r = be(e, r, o), o = a.charCodeAt(r);
658
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = be(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = be(e, r, o), o = a.charCodeAt(r)), o === 46 || kt(o))
659
+ throw O(
660
+ e.source,
661
+ r,
662
+ `Invalid number, expected digit but got: ${B(
663
+ e,
664
+ r
665
+ )}.`
666
+ );
667
+ return C(
668
+ e,
669
+ i ? h.FLOAT : h.INT,
670
+ t,
671
+ r,
672
+ a.slice(t, r)
673
+ );
674
+ }
675
+ function be(e, t, s) {
676
+ if (!K(s))
677
+ throw O(
678
+ e.source,
679
+ t,
680
+ `Invalid number, expected digit but got: ${B(
681
+ e,
682
+ t
683
+ )}.`
684
+ );
685
+ const a = e.source.body;
686
+ let r = t + 1;
687
+ for (; K(a.charCodeAt(r)); )
688
+ ++r;
689
+ return r;
690
+ }
691
+ function ws(e, t) {
692
+ const s = e.source.body, a = s.length;
693
+ let r = t + 1, o = r, i = "";
694
+ for (; r < a; ) {
695
+ const c = s.charCodeAt(r);
696
+ if (c === 34)
697
+ return i += s.slice(o, r), C(e, h.STRING, t, r + 1, i);
698
+ if (c === 92) {
699
+ i += s.slice(o, r);
700
+ const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Cs(e, r) : Ss(e, r) : Ts(e, r);
701
+ i += l.value, r += l.size, o = r;
702
+ continue;
703
+ }
704
+ if (c === 10 || c === 13)
705
+ break;
706
+ if (J(c))
707
+ ++r;
708
+ else if (pe(s, r))
709
+ r += 2;
710
+ else
711
+ throw O(
712
+ e.source,
713
+ r,
714
+ `Invalid character within String: ${B(
715
+ e,
716
+ r
717
+ )}.`
718
+ );
719
+ }
720
+ throw O(e.source, r, "Unterminated string.");
721
+ }
722
+ function Cs(e, t) {
723
+ const s = e.source.body;
724
+ let a = 0, r = 3;
725
+ for (; r < 12; ) {
726
+ const o = s.charCodeAt(t + r++);
727
+ if (o === 125) {
728
+ if (r < 5 || !J(a))
729
+ break;
730
+ return {
731
+ value: String.fromCodePoint(a),
732
+ size: r
733
+ };
734
+ }
735
+ if (a = a << 4 | W(o), a < 0)
736
+ break;
737
+ }
738
+ throw O(
739
+ e.source,
740
+ t,
741
+ `Invalid Unicode escape sequence: "${s.slice(
742
+ t,
743
+ t + r
744
+ )}".`
745
+ );
746
+ }
747
+ function Ss(e, t) {
748
+ const s = e.source.body, a = ut(s, t + 2);
749
+ if (J(a))
750
+ return {
751
+ value: String.fromCodePoint(a),
752
+ size: 6
753
+ };
754
+ if (Dt(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
755
+ const r = ut(s, t + 8);
756
+ if (qt(r))
757
+ return {
758
+ value: String.fromCodePoint(a, r),
759
+ size: 12
760
+ };
761
+ }
762
+ throw O(
763
+ e.source,
764
+ t,
765
+ `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
766
+ );
767
+ }
768
+ function ut(e, t) {
769
+ return W(e.charCodeAt(t)) << 12 | W(e.charCodeAt(t + 1)) << 8 | W(e.charCodeAt(t + 2)) << 4 | W(e.charCodeAt(t + 3));
770
+ }
771
+ function W(e) {
772
+ return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
773
+ }
774
+ function Ts(e, t) {
775
+ const s = e.source.body;
776
+ switch (s.charCodeAt(t + 1)) {
777
+ case 34:
778
+ return {
779
+ value: '"',
780
+ size: 2
781
+ };
782
+ case 92:
783
+ return {
784
+ value: "\\",
785
+ size: 2
786
+ };
787
+ case 47:
788
+ return {
789
+ value: "/",
790
+ size: 2
791
+ };
792
+ case 98:
793
+ return {
794
+ value: "\b",
795
+ size: 2
796
+ };
797
+ case 102:
798
+ return {
799
+ value: "\f",
800
+ size: 2
801
+ };
802
+ case 110:
803
+ return {
804
+ value: `
805
+ `,
806
+ size: 2
807
+ };
808
+ case 114:
809
+ return {
810
+ value: "\r",
811
+ size: 2
812
+ };
813
+ case 116:
814
+ return {
815
+ value: " ",
816
+ size: 2
817
+ };
818
+ }
819
+ throw O(
820
+ e.source,
821
+ t,
822
+ `Invalid character escape sequence: "${s.slice(
823
+ t,
824
+ t + 2
825
+ )}".`
826
+ );
827
+ }
828
+ function As(e, t) {
829
+ const s = e.source.body, a = s.length;
830
+ let r = e.lineStart, o = t + 3, i = o, c = "";
831
+ const l = [];
832
+ for (; o < a; ) {
833
+ const u = s.charCodeAt(o);
834
+ if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
835
+ c += s.slice(i, o), l.push(c);
836
+ const p = C(
837
+ e,
838
+ h.BLOCK_STRING,
839
+ t,
840
+ o + 3,
841
+ // Return a string of the lines joined with U+000A.
842
+ fs(l).join(`
843
+ `)
844
+ );
845
+ return e.line += l.length - 1, e.lineStart = r, p;
846
+ }
847
+ if (u === 92 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34 && s.charCodeAt(o + 3) === 34) {
848
+ c += s.slice(i, o), i = o + 1, o += 4;
849
+ continue;
850
+ }
851
+ if (u === 10 || u === 13) {
852
+ c += s.slice(i, o), l.push(c), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
853
+ continue;
854
+ }
855
+ if (J(u))
856
+ ++o;
857
+ else if (pe(s, o))
858
+ o += 2;
859
+ else
860
+ throw O(
861
+ e.source,
862
+ o,
863
+ `Invalid character within String: ${B(
864
+ e,
865
+ o
866
+ )}.`
867
+ );
868
+ }
869
+ throw O(e.source, o, "Unterminated string.");
870
+ }
871
+ function Os(e, t) {
872
+ const s = e.source.body, a = s.length;
873
+ let r = t + 1;
874
+ for (; r < a; ) {
875
+ const o = s.charCodeAt(r);
876
+ if (hs(o))
877
+ ++r;
878
+ else
879
+ break;
880
+ }
881
+ return C(
882
+ e,
883
+ h.NAME,
884
+ t,
885
+ r,
886
+ s.slice(t, r)
887
+ );
888
+ }
889
+ const Ps = 10, Vt = 2;
890
+ function Ft(e) {
891
+ return he(e, []);
892
+ }
893
+ function he(e, t) {
894
+ switch (typeof e) {
895
+ case "string":
896
+ return JSON.stringify(e);
897
+ case "function":
898
+ return e.name ? `[function ${e.name}]` : "[function]";
899
+ case "object":
900
+ return Es(e, t);
901
+ default:
902
+ return String(e);
903
+ }
904
+ }
905
+ function Es(e, t) {
906
+ if (e === null)
907
+ return "null";
908
+ if (t.includes(e))
909
+ return "[Circular]";
910
+ const s = [...t, e];
911
+ if ($s(e)) {
912
+ const a = e.toJSON();
913
+ if (a !== e)
914
+ return typeof a == "string" ? a : he(a, s);
915
+ } else if (Array.isArray(e))
916
+ return Ls(e, s);
917
+ return Rs(e, s);
918
+ }
919
+ function $s(e) {
920
+ return typeof e.toJSON == "function";
921
+ }
922
+ function Rs(e, t) {
923
+ const s = Object.entries(e);
924
+ return s.length === 0 ? "{}" : t.length > Vt ? "[" + Is(e) + "]" : "{ " + s.map(
925
+ ([r, o]) => r + ": " + he(o, t)
926
+ ).join(", ") + " }";
927
+ }
928
+ function Ls(e, t) {
929
+ if (e.length === 0)
930
+ return "[]";
931
+ if (t.length > Vt)
932
+ return "[Array]";
933
+ const s = Math.min(Ps, e.length), a = e.length - s, r = [];
934
+ for (let o = 0; o < s; ++o)
935
+ r.push(he(e[o], t));
936
+ return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
937
+ }
938
+ function Is(e) {
939
+ const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
940
+ if (t === "Object" && typeof e.constructor == "function") {
941
+ const s = e.constructor.name;
942
+ if (typeof s == "string" && s !== "")
943
+ return s;
944
+ }
945
+ return t;
946
+ }
947
+ const ks = globalThis.process && // eslint-disable-next-line no-undef
948
+ process.env.NODE_ENV === "production", Ds = (
949
+ /* c8 ignore next 6 */
950
+ // FIXME: https://github.com/graphql/graphql-js/issues/2317
951
+ ks ? function(t, s) {
952
+ return t instanceof s;
953
+ } : function(t, s) {
954
+ if (t instanceof s)
955
+ return !0;
956
+ if (typeof t == "object" && t !== null) {
957
+ var a;
958
+ const r = s.prototype[Symbol.toStringTag], o = (
959
+ // We still need to support constructor's name to detect conflicts with older versions of this library.
960
+ Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
961
+ );
962
+ if (r === o) {
963
+ const i = Ft(t);
964
+ throw new Error(`Cannot use ${r} "${i}" from another module or realm.
965
+
966
+ Ensure that there is only one instance of "graphql" in the node_modules
967
+ directory. If different versions of "graphql" are the dependencies of other
968
+ relied on modules, use "resolutions" to ensure only one version is installed.
969
+
970
+ https://yarnpkg.com/en/docs/selective-version-resolutions
971
+
972
+ Duplicate "graphql" modules cannot be used at the same time since different
973
+ versions may have different capabilities and behavior. The data from one
974
+ version used in the function from another could produce confusing and
975
+ spurious results.`);
976
+ }
977
+ }
978
+ return !1;
979
+ }
980
+ );
981
+ class Bt {
982
+ constructor(t, s = "GraphQL request", a = {
983
+ line: 1,
984
+ column: 1
985
+ }) {
986
+ typeof t == "string" || ve(!1, `Body must be a string. Received: ${Ft(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || ve(
987
+ !1,
988
+ "line in locationOffset is 1-indexed and must be positive."
989
+ ), this.locationOffset.column > 0 || ve(
990
+ !1,
991
+ "column in locationOffset is 1-indexed and must be positive."
992
+ );
993
+ }
994
+ get [Symbol.toStringTag]() {
995
+ return "Source";
996
+ }
997
+ }
998
+ function qs(e) {
999
+ return Ds(e, Bt);
1000
+ }
1001
+ function Vs(e) {
1002
+ const t = qs(e) ? e : new Bt(e), s = t.body, a = new ys(t);
1003
+ let r = "", o = !1;
1004
+ for (; a.advance().kind !== h.EOF; ) {
1005
+ const i = a.token, c = i.kind, l = !vs(i.kind);
1006
+ o && (l || i.kind === h.SPREAD) && (r += " ");
1007
+ const u = s.slice(i.start, i.end);
1008
+ c === h.BLOCK_STRING ? r += gs(i.value, {
1009
+ minimize: !0
1010
+ }) : r += u, o = l;
1011
+ }
1012
+ return r;
1013
+ }
1014
+ const zt = Ct(
1015
+ void 0
1016
+ ), va = ({
1017
+ children: e,
1018
+ client: t
1019
+ }) => /* @__PURE__ */ n.jsx(zt.Provider, { value: t, children: e }), _t = (e, t, ...[s]) => ({
1020
+ queryFn: () => e.fetch(t, s),
1021
+ queryKey: [Vs(t.toString()), s]
1022
+ }), Fs = (e, ...[t]) => {
1023
+ const s = Rn(zt);
1024
+ if (s === void 0)
1025
+ throw new Error("useGraphQL must be used within a GraphQLProvider");
1026
+ return _t(s, e, ...t === void 0 ? [] : [t]);
1027
+ };
1028
+ class z extends String {
1029
+ __apiType;
1030
+ value;
1031
+ __meta__;
1032
+ constructor(t, s) {
1033
+ super(t), this.value = t, this.__meta__ = s;
1034
+ }
1035
+ toString() {
1036
+ return this.value;
1037
+ }
1038
+ }
1039
+ const Bs = new z(
1040
+ `
1041
+ fragment OperationsFragment on OperationItem {
1042
+ slug
1043
+ summary
1044
+ method
1045
+ description
1046
+ operationId
1047
+ contentTypes
1048
+ path
1049
+ deprecated
1050
+ extensions
1051
+ parameters {
1052
+ name
1053
+ in
1054
+ description
1055
+ required
1056
+ schema
1057
+ style
1058
+ explode
1059
+ examples {
1060
+ name
1061
+ description
1062
+ externalValue
1063
+ value
1064
+ summary
1065
+ }
1066
+ }
1067
+ requestBody {
1068
+ content {
1069
+ mediaType
1070
+ encoding {
1071
+ name
1072
+ }
1073
+ examples {
1074
+ name
1075
+ description
1076
+ externalValue
1077
+ value
1078
+ summary
1079
+ }
1080
+ schema
1081
+ }
1082
+ description
1083
+ required
1084
+ }
1085
+ responses {
1086
+ statusCode
1087
+ links
1088
+ description
1089
+ content {
1090
+ examples {
1091
+ name
1092
+ description
1093
+ externalValue
1094
+ value
1095
+ summary
1096
+ }
1097
+ mediaType
1098
+ encoding {
1099
+ name
1100
+ }
1101
+ schema
1102
+ }
1103
+ }
1104
+ }
1105
+ `,
1106
+ { fragmentName: "OperationsFragment" }
1107
+ ), zs = new z(`
1108
+ query ServersQuery($input: JSON!, $type: SchemaType!) {
1109
+ schema(input: $input, type: $type) {
1110
+ url
1111
+ servers {
1112
+ url
1113
+ }
1114
+ }
1115
+ }
1116
+ `), _s = new z(`
1117
+ query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1118
+ schema(input: $input, type: $type) {
1119
+ openapi
1120
+ }
1121
+ }
1122
+ `), Ms = new z(`
1123
+ query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1124
+ schema(input: $input, type: $type) {
1125
+ servers {
1126
+ url
1127
+ }
1128
+ description
1129
+ summary
1130
+ title
1131
+ url
1132
+ version
1133
+ tag(slug: $tag, untagged: $untagged) {
1134
+ name
1135
+ description
1136
+ operations {
1137
+ slug
1138
+ ...OperationsFragment
1139
+ }
1140
+ next {
1141
+ name
1142
+ slug
1143
+ }
1144
+ prev {
1145
+ name
1146
+ slug
1147
+ }
1148
+ }
1149
+ }
1150
+ }
1151
+ fragment OperationsFragment on OperationItem {
1152
+ slug
1153
+ summary
1154
+ method
1155
+ description
1156
+ operationId
1157
+ contentTypes
1158
+ path
1159
+ deprecated
1160
+ extensions
1161
+ parameters {
1162
+ name
1163
+ in
1164
+ description
1165
+ required
1166
+ schema
1167
+ style
1168
+ explode
1169
+ examples {
1170
+ name
1171
+ description
1172
+ externalValue
1173
+ value
1174
+ summary
1175
+ }
1176
+ }
1177
+ requestBody {
1178
+ content {
1179
+ mediaType
1180
+ encoding {
1181
+ name
1182
+ }
1183
+ examples {
1184
+ name
1185
+ description
1186
+ externalValue
1187
+ value
1188
+ summary
1189
+ }
1190
+ schema
1191
+ }
1192
+ description
1193
+ required
1194
+ }
1195
+ responses {
1196
+ statusCode
1197
+ links
1198
+ description
1199
+ content {
1200
+ examples {
1201
+ name
1202
+ description
1203
+ externalValue
1204
+ value
1205
+ summary
1206
+ }
1207
+ mediaType
1208
+ encoding {
1209
+ name
1210
+ }
1211
+ schema
1212
+ }
1213
+ }
1214
+ }`), Us = new z(`
1215
+ query GetSchemas($input: JSON!, $type: SchemaType!) {
1216
+ schema(input: $input, type: $type) {
1217
+ title
1218
+ description
1219
+ summary
1220
+ components {
1221
+ schemas {
1222
+ name
1223
+ schema
1224
+ extensions
1225
+ }
1226
+ }
1227
+ }
1228
+ }
1229
+ `), Gs = new z(`
1230
+ query getServerQuery($input: JSON!, $type: SchemaType!) {
1231
+ schema(input: $input, type: $type) {
1232
+ url
1233
+ servers {
1234
+ url
1235
+ }
1236
+ }
1237
+ }
1238
+ `), Hs = new z(`
1239
+ query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
1240
+ schema(input: $input, type: $type) {
1241
+ tags {
1242
+ slug
1243
+ name
1244
+ extensions
1245
+ operations {
1246
+ summary
1247
+ slug
1248
+ method
1249
+ operationId
1250
+ path
1251
+ }
1252
+ }
1253
+ components {
1254
+ schemas {
1255
+ __typename
1256
+ }
1257
+ }
1258
+ }
1259
+ }
1260
+ `), Qs = {
1261
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": zs,
1262
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": Bs,
1263
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": _s,
1264
+ "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": Ms,
1265
+ "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Us,
1266
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Gs,
1267
+ "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Hs
1268
+ };
1269
+ function Js(e) {
1270
+ return Qs[e] ?? {};
1271
+ }
1272
+ const Ws = At(
1273
+ "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
1274
+ {
1275
+ variants: {
1276
+ variant: {
1277
+ default: "bg-background text-foreground",
1278
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
1279
+ }
1280
+ },
1281
+ defaultVariants: {
1282
+ variant: "default"
1283
+ }
1284
+ }
1285
+ ), Oe = b.forwardRef(({ className: e, variant: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1286
+ "div",
1287
+ {
1288
+ ref: a,
1289
+ role: "alert",
1290
+ className: g(Ws({ variant: t }), e),
1291
+ ...s
1292
+ }
1293
+ ));
1294
+ Oe.displayName = "Alert";
1295
+ const Pe = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1296
+ "h5",
1297
+ {
1298
+ ref: s,
1299
+ className: g("mb-1 font-medium leading-none tracking-tight", e),
1300
+ ...t
1301
+ }
1302
+ ));
1303
+ Pe.displayName = "AlertTitle";
1304
+ const Ee = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1305
+ "div",
1306
+ {
1307
+ ref: s,
1308
+ className: g("text-sm [&_p]:leading-relaxed", e),
1309
+ ...t
1310
+ }
1311
+ ));
1312
+ Ee.displayName = "AlertDescription";
1313
+ const Xs = ({
1314
+ path: e,
1315
+ renderParam: t
1316
+ }) => {
1317
+ let s = 0;
1318
+ return e.split("/").map((a, r, o) => {
1319
+ const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
1320
+ let l = 0;
1321
+ return i.forEach((u) => {
1322
+ const [p, v] = u;
1323
+ if (!v) return;
1324
+ const f = u.index;
1325
+ f > l && c.push(
1326
+ /* @__PURE__ */ n.jsx(q, { children: a.slice(l, f) }, `text-${l}-${f}`)
1327
+ ), c.push(
1328
+ /* @__PURE__ */ n.jsx(q, { children: t({ name: v, originalValue: p, index: s++ }) }, `param-${v}`)
1329
+ ), l = f + p.length;
1330
+ }), l < a.length && c.push(
1331
+ /* @__PURE__ */ n.jsx(q, { children: a.slice(l) }, `text-${l}-${a.length}`)
1332
+ ), // eslint-disable-next-line react/no-array-index-key
1333
+ /* @__PURE__ */ n.jsxs(q, { children: [
1334
+ c,
1335
+ r < o.length - 1 && "/",
1336
+ /* @__PURE__ */ n.jsx("wbr", {})
1337
+ ] }, `${a}-${r}`);
1338
+ });
1339
+ }, $e = w.Root, Re = w.Value, ie = b.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1340
+ w.Trigger,
1341
+ {
1342
+ ref: a,
1343
+ className: g(
1344
+ "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1345
+ e
1346
+ ),
1347
+ ...s,
1348
+ children: [
1349
+ /* @__PURE__ */ n.jsx("span", { className: "truncate", children: t }),
1350
+ /* @__PURE__ */ n.jsx(w.Icon, { asChild: !0, children: /* @__PURE__ */ n.jsx(bt, { className: "shrink-0 h-4 w-4 opacity-50" }) })
1351
+ ]
1352
+ }
1353
+ ));
1354
+ ie.displayName = w.Trigger.displayName;
1355
+ const Mt = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1356
+ w.ScrollUpButton,
1357
+ {
1358
+ ref: s,
1359
+ className: g(
1360
+ "flex cursor-default items-center justify-center py-1",
1361
+ e
1362
+ ),
1363
+ ...t,
1364
+ children: /* @__PURE__ */ n.jsx(pn, { className: "h-4 w-4" })
1365
+ }
1366
+ ));
1367
+ Mt.displayName = w.ScrollUpButton.displayName;
1368
+ const Ut = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1369
+ w.ScrollDownButton,
1370
+ {
1371
+ ref: s,
1372
+ className: g(
1373
+ "flex cursor-default items-center justify-center py-1",
1374
+ e
1375
+ ),
1376
+ ...t,
1377
+ children: /* @__PURE__ */ n.jsx(bt, { className: "h-4 w-4" })
1378
+ }
1379
+ ));
1380
+ Ut.displayName = w.ScrollDownButton.displayName;
1381
+ const le = b.forwardRef(({ className: e, children: t, position: s = "popper", ...a }, r) => /* @__PURE__ */ n.jsx(w.Portal, { children: /* @__PURE__ */ n.jsxs(
1382
+ w.Content,
1383
+ {
1384
+ ref: r,
1385
+ className: g(
1386
+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1387
+ s === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1388
+ e
1389
+ ),
1390
+ position: s,
1391
+ ...a,
1392
+ children: [
1393
+ /* @__PURE__ */ n.jsx(Mt, {}),
1394
+ /* @__PURE__ */ n.jsx(
1395
+ w.Viewport,
1396
+ {
1397
+ className: g(
1398
+ s === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
1399
+ "divide-y"
1400
+ ),
1401
+ children: t
1402
+ }
1403
+ ),
1404
+ /* @__PURE__ */ n.jsx(Ut, {})
1405
+ ]
1406
+ }
1407
+ ) }));
1408
+ le.displayName = w.Content.displayName;
1409
+ const Zs = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1410
+ w.Label,
1411
+ {
1412
+ ref: s,
1413
+ className: g("py-1.5 pl-8 pr-2 text-sm font-semibold", e),
1414
+ ...t
1415
+ }
1416
+ ));
1417
+ Zs.displayName = w.Label.displayName;
1418
+ const G = b.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1419
+ w.Item,
1420
+ {
1421
+ ref: a,
1422
+ className: g(
1423
+ "relative flex w-full cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1424
+ e
1425
+ ),
1426
+ ...s,
1427
+ children: [
1428
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(jt, { className: "h-4 w-4" }) }) }),
1429
+ /* @__PURE__ */ n.jsx(w.ItemText, { children: t })
1430
+ ]
1431
+ }
1432
+ ));
1433
+ G.displayName = w.Item.displayName;
1434
+ const Ys = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1435
+ w.Separator,
1436
+ {
1437
+ ref: s,
1438
+ className: g("-mx-1 my-1 h-px bg-muted", e),
1439
+ ...t
1440
+ }
1441
+ ));
1442
+ Ys.displayName = w.Separator.displayName;
1443
+ const Gt = b.forwardRef(
1444
+ ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1445
+ "textarea",
1446
+ {
1447
+ className: g(
1448
+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1449
+ e
1450
+ ),
1451
+ ref: s,
1452
+ ...t
1453
+ }
1454
+ )
1455
+ );
1456
+ Gt.displayName = "Textarea";
1457
+ const je = (e) => Math.abs(
1458
+ isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
1459
+ ), Ne = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${je(t) + je(s)}`)) : je(e), mt = (e, t = {}) => {
1460
+ const s = (3 * Ne(e) + 2 * Ne(e) + Ne(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1461
+ return `${s}deg ${a}% ${r}%`;
1462
+ }, we = "data-linked-param", Ks = (e) => {
1463
+ const { resolvedTheme: t } = Un();
1464
+ return {
1465
+ text: mt(
1466
+ e,
1467
+ t === "light" ? { saturation: 95, lightness: 38 } : {}
1468
+ ),
1469
+ background: mt(
1470
+ e,
1471
+ t === "light" ? { saturation: 85, lightness: 40 } : {}
1472
+ )
1473
+ };
1474
+ }, Ht = ({
1475
+ name: e,
1476
+ className: t,
1477
+ slug: s,
1478
+ title: a,
1479
+ children: r,
1480
+ onClick: o
1481
+ }) => {
1482
+ const i = Q(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: u, background: p } = Ks(l), v = `hsl(${u} / 100%)`, f = `hsl(${p} / 10%)`, x = `hsl(${p} / 50%)`;
1483
+ return ae(() => {
1484
+ if (!c || !i.current) return;
1485
+ const m = () => {
1486
+ document.querySelectorAll(`[${we}="${c}"]`).forEach((N) => {
1487
+ N instanceof HTMLElement && (N.dataset.active = "true");
1488
+ });
1489
+ }, y = () => {
1490
+ document.querySelectorAll(`[${we}="${c}"]`).forEach((N) => {
1491
+ N instanceof HTMLElement && (N.dataset.active = "false");
1492
+ });
1493
+ }, S = i.current;
1494
+ return S.addEventListener("mouseenter", m), S.addEventListener("mouseleave", y), () => {
1495
+ S.removeEventListener("mouseenter", m), S.removeEventListener("mouseleave", y);
1496
+ };
1497
+ }, [c]), /* @__PURE__ */ n.jsx(
1498
+ "span",
1499
+ {
1500
+ [we]: c,
1501
+ className: g(
1502
+ // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
1503
+ "relative transition-all duration-100 rounded-lg",
1504
+ "border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
1505
+ "data-[active=true]:border-(--param-color) data-[active=true]:shadow-sm data-[active=true]:bottom-px",
1506
+ t
1507
+ ),
1508
+ title: a,
1509
+ suppressHydrationWarning: !0,
1510
+ ref: i,
1511
+ onClick: o,
1512
+ style: {
1513
+ "--param-color": v,
1514
+ "--border-color": x,
1515
+ "--background-color": f
1516
+ },
1517
+ children: r ?? e
1518
+ }
1519
+ );
1520
+ }, er = Nt()(
1521
+ wt(
1522
+ (e) => ({
1523
+ selectedServer: void 0,
1524
+ setSelectedServer: (t) => e({ selectedServer: t })
1525
+ }),
1526
+ { name: "zudoku-selected-server" }
1527
+ )
1528
+ ), tr = (e) => {
1529
+ const { selectedServer: t, setSelectedServer: s } = er();
1530
+ return { selectedServer: Ln(
1531
+ () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1532
+ [t, e]
1533
+ ), setSelectedServer: s };
1534
+ }, nr = (e, t, s) => {
1535
+ const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1536
+ const i = o.replace(/[:{}]/g, "");
1537
+ return s.pathParams.find((l) => l.name === i)?.value ?? o;
1538
+ }), r = new URL(
1539
+ a.replace(/^\//, ""),
1540
+ e.endsWith("/") ? e : `${e}/`
1541
+ );
1542
+ return s.queryParams.filter((o) => o.active).forEach((o) => {
1543
+ r.searchParams.set(o.name, o.value);
1544
+ }), r;
1545
+ }, Qt = j.Root, Jt = j.Trigger, sr = j.Group, rr = b.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1546
+ j.SubTrigger,
1547
+ {
1548
+ ref: r,
1549
+ className: g(
1550
+ "flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
1551
+ t && "pl-8",
1552
+ e
1553
+ ),
1554
+ ...a,
1555
+ children: [
1556
+ s,
1557
+ /* @__PURE__ */ n.jsx(X, { className: "ml-auto h-4 w-4" })
1558
+ ]
1559
+ }
1560
+ ));
1561
+ rr.displayName = j.SubTrigger.displayName;
1562
+ const ar = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1563
+ j.SubContent,
1564
+ {
1565
+ ref: s,
1566
+ className: g(
1567
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1568
+ e
1569
+ ),
1570
+ ...t
1571
+ }
1572
+ ));
1573
+ ar.displayName = j.SubContent.displayName;
1574
+ const ze = b.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(j.Portal, { children: /* @__PURE__ */ n.jsx(
1575
+ j.Content,
1576
+ {
1577
+ ref: a,
1578
+ sideOffset: t,
1579
+ className: g(
1580
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1581
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1582
+ e
1583
+ ),
1584
+ ...s
1585
+ }
1586
+ ) }));
1587
+ ze.displayName = j.Content.displayName;
1588
+ const _e = b.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1589
+ j.Item,
1590
+ {
1591
+ ref: a,
1592
+ className: g(
1593
+ "relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1594
+ t && "pl-8",
1595
+ e
1596
+ ),
1597
+ ...s
1598
+ }
1599
+ ));
1600
+ _e.displayName = j.Item.displayName;
1601
+ const or = b.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1602
+ j.CheckboxItem,
1603
+ {
1604
+ ref: r,
1605
+ className: g(
1606
+ "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1607
+ e
1608
+ ),
1609
+ checked: s,
1610
+ ...a,
1611
+ children: [
1612
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(j.ItemIndicator, { children: /* @__PURE__ */ n.jsx(hn, { className: "h-4 w-4" }) }) }),
1613
+ t
1614
+ ]
1615
+ }
1616
+ ));
1617
+ or.displayName = j.CheckboxItem.displayName;
1618
+ const ir = b.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1619
+ j.RadioItem,
1620
+ {
1621
+ ref: a,
1622
+ className: g(
1623
+ "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1624
+ e
1625
+ ),
1626
+ ...s,
1627
+ children: [
1628
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(j.ItemIndicator, { children: /* @__PURE__ */ n.jsx(fn, { className: "h-4 w-4 fill-current" }) }) }),
1629
+ t
1630
+ ]
1631
+ }
1632
+ ));
1633
+ ir.displayName = j.RadioItem.displayName;
1634
+ const Wt = b.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1635
+ j.Label,
1636
+ {
1637
+ ref: a,
1638
+ className: g(
1639
+ "px-2 py-1.5 text-sm font-semibold",
1640
+ t && "pl-8",
1641
+ e
1642
+ ),
1643
+ ...s
1644
+ }
1645
+ ));
1646
+ Wt.displayName = j.Label.displayName;
1647
+ const Xt = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1648
+ j.Separator,
1649
+ {
1650
+ ref: s,
1651
+ className: g("-mx-1 my-1 h-px bg-muted", e),
1652
+ ...t
1653
+ }
1654
+ ));
1655
+ Xt.displayName = j.Separator.displayName;
1656
+ const lr = ({
1657
+ examples: e,
1658
+ onSelect: t
1659
+ }) => /* @__PURE__ */ n.jsxs(Qt, { children: [
1660
+ /* @__PURE__ */ n.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ n.jsx(F, { variant: "outline", children: "Use Example" }) }),
1661
+ /* @__PURE__ */ n.jsx(ze, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1662
+ /* @__PURE__ */ n.jsx(Wt, { children: s.mediaType }),
1663
+ /* @__PURE__ */ n.jsx(Xt, {}),
1664
+ /* @__PURE__ */ n.jsx(sr, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1665
+ _e,
1666
+ {
1667
+ onSelect: () => t(a, s.mediaType),
1668
+ children: /* @__PURE__ */ n.jsx(
1669
+ "span",
1670
+ {
1671
+ className: "line-clamp-1",
1672
+ title: a.summary ?? a.name,
1673
+ children: a.summary ?? a.name
1674
+ }
1675
+ )
1676
+ },
1677
+ a.name
1678
+ )) })
1679
+ ] }, s.mediaType)) })
1680
+ ] }), fe = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1681
+ Se.Root,
1682
+ {
1683
+ ref: s,
1684
+ className: g(
1685
+ "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
1686
+ "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
1687
+ e
1688
+ ),
1689
+ ...t,
1690
+ children: /* @__PURE__ */ n.jsx(
1691
+ Se.Indicator,
1692
+ {
1693
+ className: g("flex items-center justify-center text-current"),
1694
+ children: /* @__PURE__ */ n.jsx(jt, { className: "h-4 w-4" })
1695
+ }
1696
+ )
1697
+ }
1698
+ ));
1699
+ fe.displayName = Se.Root.displayName;
1700
+ const cr = oe.Root, Zt = b.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(oe.Portal, { children: /* @__PURE__ */ n.jsx(
1701
+ oe.Content,
1702
+ {
1703
+ ref: r,
1704
+ align: t,
1705
+ sideOffset: s,
1706
+ className: g(
1707
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1708
+ e
1709
+ ),
1710
+ ...a
1711
+ }
1712
+ ) }));
1713
+ Zt.displayName = oe.Content.displayName;
1714
+ const dr = ({
1715
+ value: e,
1716
+ options: t,
1717
+ onChange: s,
1718
+ className: a,
1719
+ placeholder: r = "Enter value",
1720
+ onEnterPress: o,
1721
+ ref: i
1722
+ }) => {
1723
+ const [c, l] = $(!1), [u, p] = $(!1), v = Hn((x) => x.filtered.count), f = Q(null);
1724
+ return /* @__PURE__ */ n.jsxs(cr, { open: c, children: [
1725
+ /* @__PURE__ */ n.jsx(Gn, { children: /* @__PURE__ */ n.jsx(
1726
+ Jn,
1727
+ {
1728
+ ref: (x) => {
1729
+ f.current = x, typeof i == "function" ? i(x) : i && (i.current = x);
1730
+ },
1731
+ value: e,
1732
+ placeholder: r,
1733
+ className: g("h-9 bg-transparent", a),
1734
+ onFocus: () => l(!0),
1735
+ onBlur: () => {
1736
+ u || l(!1);
1737
+ },
1738
+ onKeyDown: (x) => {
1739
+ x.key === "Enter" && (l(!1), f.current?.blur(), o?.(x));
1740
+ },
1741
+ onValueChange: (x) => s(x)
1742
+ }
1743
+ ) }),
1744
+ /* @__PURE__ */ n.jsx(
1745
+ Zt,
1746
+ {
1747
+ onMouseEnter: () => p(!0),
1748
+ onMouseLeave: () => p(!1),
1749
+ onOpenAutoFocus: (x) => x.preventDefault(),
1750
+ className: g("p-0 w-(--radix-popover-trigger-width)", {
1751
+ "border-0": v === 0
1752
+ }),
1753
+ align: "start",
1754
+ side: "bottom",
1755
+ onWheel: (x) => {
1756
+ x.stopPropagation();
1757
+ },
1758
+ onTouchMove: (x) => {
1759
+ x.stopPropagation();
1760
+ },
1761
+ children: /* @__PURE__ */ n.jsx(Wn, { className: "max-h-[140px]", children: t.map((x) => /* @__PURE__ */ n.jsx(
1762
+ Xn,
1763
+ {
1764
+ value: x,
1765
+ onSelect: (m) => {
1766
+ s(m), l(!1);
1767
+ },
1768
+ className: "cursor-pointer",
1769
+ children: x
1770
+ },
1771
+ x
1772
+ )) })
1773
+ }
1774
+ )
1775
+ ] });
1776
+ }, ce = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(Qn, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(dr, { ...t }) }), Me = (e, t) => {
1777
+ const s = b.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1778
+ const c = r ? Yn : e;
1779
+ return b.createElement(c, {
1780
+ ...o,
1781
+ ref: i,
1782
+ className: typeof t == "function" ? t({ className: a }) : g(t, a)
1783
+ });
1784
+ });
1785
+ return s.displayName = `VariantComponent(${e})`, s;
1786
+ }, Ue = Me(
1787
+ "div",
1788
+ "grid grid-cols-[2fr_3fr] gap-2 items-center"
1789
+ ), Ge = Me(
1790
+ "div",
1791
+ "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
1792
+ ), ur = Object.freeze([
1793
+ "Accept",
1794
+ "Accept-Encoding",
1795
+ "Accept-Language",
1796
+ "Authorization",
1797
+ "Cache-Control",
1798
+ "Connection",
1799
+ "Content-Disposition",
1800
+ "Content-Encoding",
1801
+ "Content-Language",
1802
+ "Content-Length",
1803
+ "Content-Range",
1804
+ "Content-Security-Policy",
1805
+ "Content-Type",
1806
+ "Cookie",
1807
+ "Date",
1808
+ "ETag",
1809
+ "Expires",
1810
+ "Host",
1811
+ "If-Modified-Since",
1812
+ "Location",
1813
+ "Origin",
1814
+ "Pragma",
1815
+ "Referer",
1816
+ "Set-Cookie",
1817
+ "User-Agent",
1818
+ "X-Requested-With"
1819
+ ]), mr = ({
1820
+ control: e,
1821
+ headers: t
1822
+ }) => {
1823
+ const { fields: s, append: a, remove: r } = De({
1824
+ control: e,
1825
+ name: "headers"
1826
+ }), { setValue: o, watch: i } = qe(), c = Q([]), l = Q([]), u = i("headers"), p = In(() => {
1827
+ a({ name: "", value: "", active: !1 });
1828
+ }, [a]);
1829
+ ae(() => {
1830
+ u.length === 0 && p();
1831
+ }, [u, p]);
1832
+ const v = (m) => {
1833
+ c.current[m]?.focus();
1834
+ }, f = (m) => {
1835
+ p(), requestAnimationFrame(() => l.current[m + 1]?.focus());
1836
+ }, x = t.filter((m) => !u.some((y) => y.name === m.name)).map(({ name: m }) => m);
1837
+ return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
1838
+ /* @__PURE__ */ n.jsx(me, { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Ue, { children: s.map((m, y) => {
1839
+ const S = t.find(
1840
+ (N) => N.name === i(`headers.${y}.name`)
1841
+ );
1842
+ return /* @__PURE__ */ n.jsxs(Ge, { children: [
1843
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 ", children: [
1844
+ /* @__PURE__ */ n.jsx(
1845
+ V,
1846
+ {
1847
+ control: e,
1848
+ name: `headers.${y}.active`,
1849
+ render: ({ field: N }) => /* @__PURE__ */ n.jsx(
1850
+ fe,
1851
+ {
1852
+ id: `headers.${y}.active`,
1853
+ checked: N.value,
1854
+ onCheckedChange: (I) => {
1855
+ N.onChange(I);
1856
+ }
1857
+ }
1858
+ )
1859
+ }
1860
+ ),
1861
+ /* @__PURE__ */ n.jsx(
1862
+ V,
1863
+ {
1864
+ control: e,
1865
+ name: `headers.${y}.name`,
1866
+ render: ({ field: N }) => /* @__PURE__ */ n.jsx(
1867
+ ce,
1868
+ {
1869
+ ...N,
1870
+ placeholder: "Name",
1871
+ className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1872
+ options: [...x, ...ur],
1873
+ onEnterPress: () => v(y),
1874
+ onChange: (I) => {
1875
+ N.onChange(I), o(`headers.${y}.active`, !0);
1876
+ },
1877
+ ref: (I) => {
1878
+ l.current[y] = I;
1879
+ }
1880
+ }
1881
+ )
1882
+ }
1883
+ )
1884
+ ] }),
1885
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1886
+ /* @__PURE__ */ n.jsx(
1887
+ V,
1888
+ {
1889
+ control: e,
1890
+ name: `headers.${y}.value`,
1891
+ render: ({ field: N }) => S?.enum && S.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1892
+ ce,
1893
+ {
1894
+ shouldFilter: !1,
1895
+ value: N.value,
1896
+ options: S.enum ?? [],
1897
+ onChange: (k) => {
1898
+ N.onChange(k), o(`headers.${y}.active`, !0);
1899
+ },
1900
+ className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1901
+ }
1902
+ ) : /* @__PURE__ */ n.jsx(
1903
+ Ve,
1904
+ {
1905
+ placeholder: "Value",
1906
+ className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
1907
+ ...N,
1908
+ ref: (k) => {
1909
+ c.current[y] = k;
1910
+ },
1911
+ onKeyDown: (k) => {
1912
+ k.key === "Enter" && k.currentTarget.value.trim() && f(y);
1913
+ },
1914
+ autoComplete: "off"
1915
+ }
1916
+ )
1917
+ }
1918
+ ),
1919
+ /* @__PURE__ */ n.jsx(
1920
+ Z,
1921
+ {
1922
+ size: "icon",
1923
+ variant: "ghost",
1924
+ className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
1925
+ onClick: () => r(y),
1926
+ type: "button",
1927
+ children: /* @__PURE__ */ n.jsx(xn, { size: 16 })
1928
+ }
1929
+ )
1930
+ ] })
1931
+ ] }, m.id);
1932
+ }) }) }),
1933
+ /* @__PURE__ */ n.jsx("div", { className: "text-end", children: /* @__PURE__ */ n.jsx(
1934
+ Z,
1935
+ {
1936
+ className: "",
1937
+ onClick: p,
1938
+ type: "button",
1939
+ variant: "secondary",
1940
+ children: "Add header"
1941
+ }
1942
+ ) })
1943
+ ] });
1944
+ }, pr = At(
1945
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1946
+ ), de = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1947
+ Et.Root,
1948
+ {
1949
+ ref: s,
1950
+ className: g(pr(), e),
1951
+ ...t
1952
+ }
1953
+ ));
1954
+ de.displayName = Et.Root.displayName;
1955
+ const He = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1956
+ Y.Root,
1957
+ {
1958
+ className: g("grid gap-2", e),
1959
+ ...t,
1960
+ ref: s
1961
+ }
1962
+ ));
1963
+ He.displayName = Y.Root.displayName;
1964
+ const ue = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1965
+ Y.Item,
1966
+ {
1967
+ ref: s,
1968
+ className: g(
1969
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1970
+ e
1971
+ ),
1972
+ ...t,
1973
+ children: /* @__PURE__ */ n.jsx(Y.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(gn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1974
+ }
1975
+ ));
1976
+ ue.displayName = Y.Item.displayName;
1977
+ const Yt = ({
1978
+ identities: e,
1979
+ setValue: t,
1980
+ value: s
1981
+ }) => /* @__PURE__ */ n.jsx(me, { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsxs(
1982
+ He,
1983
+ {
1984
+ onValueChange: (a) => t(a),
1985
+ value: s,
1986
+ defaultValue: H,
1987
+ className: "gap-0",
1988
+ disabled: e?.length === 0,
1989
+ children: [
1990
+ /* @__PURE__ */ n.jsxs(de, { className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent", children: [
1991
+ /* @__PURE__ */ n.jsx(ue, { value: H, id: "none" }),
1992
+ /* @__PURE__ */ n.jsx("span", { children: "None" })
1993
+ ] }),
1994
+ e?.map((a) => /* @__PURE__ */ n.jsxs(
1995
+ de,
1996
+ {
1997
+ className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent",
1998
+ children: [
1999
+ /* @__PURE__ */ n.jsx(ue, { value: a.id, id: a.id }),
2000
+ /* @__PURE__ */ n.jsx("span", { children: a.label })
2001
+ ]
2002
+ },
2003
+ a.id
2004
+ ))
2005
+ ]
2006
+ }
2007
+ ) }), hr = ({
2008
+ onSubmit: e,
2009
+ identities: t,
2010
+ open: s,
2011
+ onOpenChange: a
2012
+ }) => {
2013
+ const [r, o] = $(void 0), [i, c] = $(!1);
2014
+ return /* @__PURE__ */ n.jsx(Le, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2015
+ /* @__PURE__ */ n.jsx(ke, { children: "Select an auth identity" }),
2016
+ /* @__PURE__ */ n.jsx(St, { children: "Please select an identity for this request." }),
2017
+ /* @__PURE__ */ n.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
2018
+ Yt,
2019
+ {
2020
+ identities: t,
2021
+ setValue: o,
2022
+ value: r
2023
+ }
2024
+ ) }),
2025
+ /* @__PURE__ */ n.jsxs(Tt, { className: "flex flex-col gap-2", children: [
2026
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2027
+ /* @__PURE__ */ n.jsx(
2028
+ fe,
2029
+ {
2030
+ id: "remember",
2031
+ checked: i,
2032
+ onCheckedChange: (l) => c(
2033
+ l === "indeterminate" ? !1 : !!l
2034
+ )
2035
+ }
2036
+ ),
2037
+ /* @__PURE__ */ n.jsx(de, { htmlFor: "remember", children: "Remember my choice" })
2038
+ ] }),
2039
+ /* @__PURE__ */ n.jsx(
2040
+ F,
2041
+ {
2042
+ onClick: () => e({ identity: r, rememberedIdentity: i }),
2043
+ children: "Send"
2044
+ }
2045
+ )
2046
+ ] })
2047
+ ] }) });
2048
+ }, fr = ({
2049
+ control: e,
2050
+ url: t
2051
+ }) => {
2052
+ const { fields: s } = De({
2053
+ control: e,
2054
+ name: "pathParams"
2055
+ }), a = [...s].sort(
2056
+ (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
2057
+ );
2058
+ return /* @__PURE__ */ n.jsx(me, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx(Ue, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(Ge, { children: [
2059
+ /* @__PURE__ */ n.jsx(
2060
+ V,
2061
+ {
2062
+ control: e,
2063
+ name: `pathParams.${o}.name`,
2064
+ render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
2065
+ Ht,
2066
+ {
2067
+ slug: r.name,
2068
+ name: r.name,
2069
+ className: "font-mono text-xs px-2"
2070
+ }
2071
+ ) })
2072
+ }
2073
+ ),
2074
+ /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ n.jsx(
2075
+ V,
2076
+ {
2077
+ control: e,
2078
+ name: `pathParams.${o}.value`,
2079
+ render: ({ field: i }) => /* @__PURE__ */ n.jsx(
2080
+ Ve,
2081
+ {
2082
+ ...i,
2083
+ required: !0,
2084
+ placeholder: "Enter value",
2085
+ className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0"
2086
+ }
2087
+ )
2088
+ }
2089
+ ) })
2090
+ ] }, r.id)) }) });
2091
+ }, xr = Me(
2092
+ "input",
2093
+ "px-2 bg-transparent h-6 font-mono text-xs m-2"
2094
+ ), gr = ({
2095
+ control: e,
2096
+ queryParams: t
2097
+ }) => {
2098
+ const { fields: s } = De({
2099
+ control: e,
2100
+ name: "queryParams"
2101
+ }), a = qe(), r = t.map((o) => !!o.isRequired);
2102
+ return /* @__PURE__ */ n.jsx(me, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx("div", { className: "w-full ", children: /* @__PURE__ */ n.jsx(Ue, { children: s.map((o, i) => {
2103
+ const c = t.find(
2104
+ (l) => l.name === a.watch(`queryParams.${i}.name`)
2105
+ );
2106
+ return /* @__PURE__ */ n.jsxs(Ge, { children: [
2107
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2108
+ /* @__PURE__ */ n.jsx(
2109
+ V,
2110
+ {
2111
+ control: e,
2112
+ name: `queryParams.${i}.active`,
2113
+ render: ({ field: l }) => /* @__PURE__ */ n.jsx(
2114
+ fe,
2115
+ {
2116
+ id: `queryParams.${i}.active`,
2117
+ className: "me-2",
2118
+ checked: l.value,
2119
+ onCheckedChange: l.onChange
2120
+ }
2121
+ )
2122
+ }
2123
+ ),
2124
+ /* @__PURE__ */ n.jsx(
2125
+ V,
2126
+ {
2127
+ control: e,
2128
+ render: ({ field: l }) => r[i] ? /* @__PURE__ */ n.jsx(xr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2129
+ "label",
2130
+ {
2131
+ className: "flex items-center cursor-pointer gap-1",
2132
+ htmlFor: `queryParams.${i}.active`,
2133
+ title: r[i] ? "Required field" : void 0,
2134
+ children: [
2135
+ l.value,
2136
+ r[i] && /* @__PURE__ */ n.jsx("sup", { children: " *" })
2137
+ ]
2138
+ }
2139
+ ) }) : /* @__PURE__ */ n.jsx(
2140
+ ce,
2141
+ {
2142
+ value: l.value,
2143
+ options: t.map((u) => u.name),
2144
+ onChange: (u) => {
2145
+ l.onChange(u);
2146
+ },
2147
+ className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2148
+ }
2149
+ ),
2150
+ name: `queryParams.${i}.name`
2151
+ }
2152
+ )
2153
+ ] }, o.id),
2154
+ /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ n.jsx(
2155
+ V,
2156
+ {
2157
+ control: e,
2158
+ render: ({ field: l }) => c?.enum && c.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2159
+ ce,
2160
+ {
2161
+ value: l.value,
2162
+ options: c.enum ?? [],
2163
+ onChange: (p) => {
2164
+ l.onChange(p), a.setValue(`queryParams.${i}.active`, !0);
2165
+ },
2166
+ className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2167
+ }
2168
+ ) : /* @__PURE__ */ n.jsx(
2169
+ Ve,
2170
+ {
2171
+ ...l,
2172
+ onChange: (p) => {
2173
+ l.onChange(p.target.value), p.target.value.length > 0 && a.setValue(`queryParams.${i}.active`, !0);
2174
+ },
2175
+ placeholder: "Enter value",
2176
+ className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
2177
+ }
2178
+ ),
2179
+ name: `queryParams.${i}.value`
2180
+ }
2181
+ ) })
2182
+ ] }, o.id);
2183
+ }) }) }) });
2184
+ }, yr = Nt()(
2185
+ wt(
2186
+ (e, t) => ({
2187
+ rememberedIdentity: null,
2188
+ setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
2189
+ getRememberedIdentity: (s) => s.find(
2190
+ (a) => a === t().rememberedIdentity
2191
+ )
2192
+ }),
2193
+ {
2194
+ name: "identity-storage",
2195
+ storage: Tn(() => sessionStorage)
2196
+ }
2197
+ )
2198
+ ), vr = ({
2199
+ open: e,
2200
+ setOpen: t,
2201
+ onSignUp: s,
2202
+ onLogin: a
2203
+ }) => /* @__PURE__ */ n.jsx(Le, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2204
+ /* @__PURE__ */ n.jsx(ke, { children: "Welcome to the Playground!" }),
2205
+ /* @__PURE__ */ n.jsx(St, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2206
+ /* @__PURE__ */ n.jsxs(Tt, { className: "flex gap-2 sm:justify-between", children: [
2207
+ /* @__PURE__ */ n.jsx(F, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2208
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2209
+ s && /* @__PURE__ */ n.jsx(F, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2210
+ a && /* @__PURE__ */ n.jsx(F, { type: "button", variant: "default", onClick: a, children: "Login" })
2211
+ ] })
2212
+ ] })
2213
+ ] }) }), R = {
2214
+ green: "text-green-600",
2215
+ blue: "text-sky-600",
2216
+ yellow: "text-yellow-600",
2217
+ red: "text-red-600",
2218
+ purple: "text-purple-600",
2219
+ indigo: "text-indigo-600",
2220
+ gray: "text-gray-600"
2221
+ }, br = {
2222
+ get: R.green,
2223
+ post: R.blue,
2224
+ put: R.yellow,
2225
+ delete: R.red,
2226
+ patch: R.purple,
2227
+ options: R.indigo,
2228
+ head: R.gray,
2229
+ trace: R.gray
2230
+ }, jr = (e) => br[e.toLocaleLowerCase()] ?? R.gray, Nr = ({
2231
+ method: e,
2232
+ url: t,
2233
+ headers: s,
2234
+ body: a
2235
+ }) => /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
2236
+ /* @__PURE__ */ n.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
2237
+ /* @__PURE__ */ n.jsx("span", { className: g(jr(e), "font-semibold"), children: e }),
2238
+ " ",
2239
+ /* @__PURE__ */ n.jsx("span", { className: "break-all", children: t }),
2240
+ " ",
2241
+ /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
2242
+ ] }),
2243
+ /* @__PURE__ */ n.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
2244
+ /* @__PURE__ */ n.jsxs(at, { defaultOpen: !0, children: [
2245
+ /* @__PURE__ */ n.jsxs(ot, { className: "flex items-center gap-2 hover:text-primary group", children: [
2246
+ /* @__PURE__ */ n.jsx(X, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2247
+ /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2248
+ ] }),
2249
+ /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2", children: s.map(([r, o]) => /* @__PURE__ */ n.jsxs(q, { children: [
2250
+ /* @__PURE__ */ n.jsx("div", { className: "text-primary", children: r }),
2251
+ /* @__PURE__ */ n.jsx("div", { className: "break-all", children: o })
2252
+ ] }, r)) }) })
2253
+ ] }),
2254
+ /* @__PURE__ */ n.jsxs(at, { defaultOpen: !0, children: [
2255
+ /* @__PURE__ */ n.jsxs(ot, { className: "flex items-center gap-2 hover:text-primary group", children: [
2256
+ /* @__PURE__ */ n.jsx(X, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2257
+ /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Body" })
2258
+ ] }),
2259
+ /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx("div", { className: "ps-0 pt-2", children: /* @__PURE__ */ n.jsx(
2260
+ "div",
2261
+ {
2262
+ className: g(
2263
+ "whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
2264
+ !a && "text-muted-foreground"
2265
+ ),
2266
+ children: a ?? "Empty body"
2267
+ }
2268
+ ) }) })
2269
+ ] })
2270
+ ] })
2271
+ ] }), pt = Fe.Root, ht = Fe.CollapsibleTrigger, ft = Fe.CollapsibleContent;
2272
+ function Qe(e) {
2273
+ if (e === null) return "null";
2274
+ if (Array.isArray(e)) {
2275
+ if (e.length === 0) return "any[]";
2276
+ const t = e[0];
2277
+ return t === void 0 ? "any[]" : `${Qe(t)}[]`;
2278
+ }
2279
+ return typeof e == "object" ? wr(e) : typeof e;
2280
+ }
2281
+ function wr(e, t = "") {
2282
+ const s = ["{"];
2283
+ for (const [a, r] of Object.entries(e)) {
2284
+ const o = Qe(r);
2285
+ s.push(` ${a}: ${o};`);
2286
+ }
2287
+ return s.push("}"), s.join(`
2288
+ `);
2289
+ }
2290
+ function Cr(e) {
2291
+ return { lines: [`type GeneratedType = ${Qe(e)};`] };
2292
+ }
2293
+ const Sr = {
2294
+ 200: "OK",
2295
+ 201: "Created",
2296
+ 202: "Accepted",
2297
+ 204: "No Content",
2298
+ 400: "Bad Request",
2299
+ 401: "Unauthorized",
2300
+ 403: "Forbidden",
2301
+ 404: "Not Found",
2302
+ 405: "Method Not Allowed",
2303
+ 500: "Internal Server Error"
2304
+ }, xt = (e) => {
2305
+ const t = Math.floor(Math.log(e) / Math.log(1e3));
2306
+ return `${(e / Math.pow(1e3, t)).toFixed(
2307
+ t ? 2 : 0
2308
+ )} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2309
+ }, Tr = (e) => Object.entries({
2310
+ "application/json": "json",
2311
+ "text/json": "json",
2312
+ "text/html": "html",
2313
+ "text/css": "css",
2314
+ "text/javascript": "javascript",
2315
+ "application/xml": "xml",
2316
+ "application/xhtml+xml": "xhtml"
2317
+ }).find(
2318
+ ([s]) => e.includes(s)
2319
+ )?.[1], Ar = (e) => {
2320
+ const t = e.find(([s, a]) => s === "Content-Type")?.[1] || "";
2321
+ return Tr(t);
2322
+ }, Or = (e) => {
2323
+ try {
2324
+ return JSON.stringify(JSON.parse(e), null, 2);
2325
+ } catch {
2326
+ return null;
2327
+ }
2328
+ }, Pr = (e) => {
2329
+ const t = [
2330
+ "Content-Type",
2331
+ "Content-Length",
2332
+ "Authorization",
2333
+ "X-RateLimit-Remaining",
2334
+ "X-RateLimit-Limit",
2335
+ "Cache-Control",
2336
+ "ETag"
2337
+ ].map((s) => s.toLowerCase());
2338
+ return [...e].sort(([s], [a]) => {
2339
+ const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2340
+ return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2341
+ });
2342
+ }, gt = 64e3, Er = ({
2343
+ body: e = "",
2344
+ headers: t,
2345
+ status: s,
2346
+ time: a,
2347
+ size: r,
2348
+ url: o
2349
+ }) => {
2350
+ const i = Ar(t), c = Or(e), l = c || e, [u, p] = $(
2351
+ c ? "formatted" : "raw"
2352
+ ), v = An({
2353
+ queryKey: ["types", l],
2354
+ queryFn: async () => Cr(JSON.parse(l)),
2355
+ enabled: u === "types"
2356
+ }), f = Pr([...t]), x = r > gt;
2357
+ return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
2358
+ /* @__PURE__ */ n.jsxs(pt, { defaultOpen: !0, children: [
2359
+ /* @__PURE__ */ n.jsxs(ht, { className: "flex items-center gap-2 hover:text-primary group", children: [
2360
+ /* @__PURE__ */ n.jsx(X, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2361
+ /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2362
+ ] }),
2363
+ /* @__PURE__ */ n.jsx(ft, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2 font-mono text-xs", children: [
2364
+ f.slice(0, 5).map(([m, y]) => /* @__PURE__ */ n.jsxs(q, { children: [
2365
+ /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2366
+ /* @__PURE__ */ n.jsx("div", { className: "break-all", children: y })
2367
+ ] }, m)),
2368
+ f.length > 5 && /* @__PURE__ */ n.jsxs(pt, { className: "col-span-full grid-cols-subgrid grid", children: [
2369
+ /* @__PURE__ */ n.jsxs(ht, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
2370
+ /* @__PURE__ */ n.jsx(X, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2371
+ "Show ",
2372
+ f.length - 5,
2373
+ " more headers"
2374
+ ] }),
2375
+ /* @__PURE__ */ n.jsx(ft, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: f.slice(5).map(([m, y]) => /* @__PURE__ */ n.jsxs(q, { children: [
2376
+ /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2377
+ /* @__PURE__ */ n.jsx("div", { className: "break-all", children: y })
2378
+ ] }, m)) })
2379
+ ] })
2380
+ ] }) })
2381
+ ] }),
2382
+ /* @__PURE__ */ n.jsxs($t, { className: "shadow-none", children: [
2383
+ x && /* @__PURE__ */ n.jsxs(Zn, { type: "info", className: "my-0 p-2", children: [
2384
+ "Code highlight is disabled for responses larger than",
2385
+ " ",
2386
+ xt(gt)
2387
+ ] }),
2388
+ /* @__PURE__ */ n.jsx(
2389
+ rs,
2390
+ {
2391
+ language: u === "types" ? "typescript" : u === "raw" ? c ? "plain" : i : "json",
2392
+ showCopy: "always",
2393
+ disabled: x,
2394
+ noBackground: !0,
2395
+ className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
2396
+ code: (u === "raw" ? e : u === "types" ? v.data?.lines.join(`
2397
+ `) : l) ?? ""
2398
+ }
2399
+ )
2400
+ ] }),
2401
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2 justify-between items-center", children: [
2402
+ /* @__PURE__ */ n.jsxs("div", { className: "flex text-xs gap-2 border bg-muted rounded-md p-2 items-center h-8 font-mono divide-x", children: [
2403
+ /* @__PURE__ */ n.jsxs("div", { children: [
2404
+ /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Status" }),
2405
+ " ",
2406
+ s,
2407
+ " ",
2408
+ Sr[s] ?? ""
2409
+ ] }),
2410
+ /* @__PURE__ */ n.jsxs("div", { children: [
2411
+ /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2412
+ " ",
2413
+ a.toFixed(0),
2414
+ "ms"
2415
+ ] }),
2416
+ /* @__PURE__ */ n.jsxs("div", { children: [
2417
+ /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2418
+ " ",
2419
+ xt(r)
2420
+ ] })
2421
+ ] }),
2422
+ c && /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs(
2423
+ $e,
2424
+ {
2425
+ value: u,
2426
+ onValueChange: (m) => p(m),
2427
+ children: [
2428
+ /* @__PURE__ */ n.jsx(ie, { className: "min-w-32", children: /* @__PURE__ */ n.jsx(Re, { placeholder: "View" }) }),
2429
+ /* @__PURE__ */ n.jsxs(le, { children: [
2430
+ /* @__PURE__ */ n.jsx(G, { value: "formatted", children: "Formatted" }),
2431
+ /* @__PURE__ */ n.jsx(G, { value: "raw", children: "Raw" }),
2432
+ /* @__PURE__ */ n.jsx(G, { value: "types", children: "Types" })
2433
+ ] })
2434
+ ]
2435
+ }
2436
+ ) })
2437
+ ] })
2438
+ ] });
2439
+ }, $r = ({
2440
+ queryMutation: e,
2441
+ showPathParamsWarning: t,
2442
+ showLongRunningWarning: s,
2443
+ onCancel: a
2444
+ }) => {
2445
+ const r = ((e.data?.status ?? 0) / 100).toFixed(0);
2446
+ return /* @__PURE__ */ n.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: e.error ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
2447
+ t && /* @__PURE__ */ n.jsx(es, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
2448
+ /* @__PURE__ */ n.jsxs($t, { children: [
2449
+ /* @__PURE__ */ n.jsx(ts, { children: /* @__PURE__ */ n.jsx(ns, { children: "Request failed" }) }),
2450
+ /* @__PURE__ */ n.jsxs(ss, { children: [
2451
+ "Error:",
2452
+ " ",
2453
+ e.error.message || String(e.error) || "Unexpected error"
2454
+ ] })
2455
+ ] })
2456
+ ] }) : e.data ? /* @__PURE__ */ n.jsxs(Ot, { defaultValue: "response", children: [
2457
+ /* @__PURE__ */ n.jsxs(Pt, { children: [
2458
+ /* @__PURE__ */ n.jsx(M, { value: "request", children: "Request" }),
2459
+ /* @__PURE__ */ n.jsxs(M, { value: "response", children: [
2460
+ "Response",
2461
+ /* @__PURE__ */ n.jsxs(
2462
+ "span",
2463
+ {
2464
+ className: g(
2465
+ "text-xs font-mono ms-1",
2466
+ r === "2" && "text-green-500",
2467
+ r === "3" && "text-blue-500",
2468
+ r === "4" && "text-yellow-500",
2469
+ r === "5" && "text-red-500"
2470
+ ),
2471
+ children: [
2472
+ "(",
2473
+ e.data.status,
2474
+ ")"
2475
+ ]
2476
+ }
2477
+ )
2478
+ ] })
2479
+ ] }),
2480
+ /* @__PURE__ */ n.jsx(U, { value: "request", children: /* @__PURE__ */ n.jsx(Nr, { ...e.data.request }) }),
2481
+ /* @__PURE__ */ n.jsx(U, { value: "response", children: /* @__PURE__ */ n.jsx(
2482
+ Er,
2483
+ {
2484
+ status: e.data.status,
2485
+ time: e.data.time,
2486
+ size: e.data.size,
2487
+ headers: e.data.headers,
2488
+ body: e.data.body,
2489
+ url: e.data.request.url
2490
+ }
2491
+ ) })
2492
+ ] }) : /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: e.isPending ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2493
+ /* @__PURE__ */ n.jsx(Kn, { size: 20 }),
2494
+ /* @__PURE__ */ n.jsxs(
2495
+ "div",
2496
+ {
2497
+ className: g(
2498
+ "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2499
+ s && "opacity-100 pointer-events-auto"
2500
+ ),
2501
+ children: [
2502
+ "Looks like the request is taking longer than expected.",
2503
+ /* @__PURE__ */ n.jsx(
2504
+ Z,
2505
+ {
2506
+ type: "button",
2507
+ onClick: a,
2508
+ size: "sm",
2509
+ className: "w-fit",
2510
+ variant: "outline",
2511
+ children: "Cancel"
2512
+ }
2513
+ )
2514
+ ]
2515
+ }
2516
+ )
2517
+ ] }) : /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
2518
+ }, Rr = ({
2519
+ identities: e,
2520
+ formRef: t,
2521
+ disabled: s
2522
+ }) => {
2523
+ const { setValue: a } = qe(), [r, o] = $();
2524
+ return e.length === 0 ? /* @__PURE__ */ n.jsx(F, { disabled: s, children: "Send" }) : /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
2525
+ /* @__PURE__ */ n.jsx(
2526
+ F,
2527
+ {
2528
+ className: "rounded-r-none inset-shadow-xs",
2529
+ disabled: s,
2530
+ onClick: () => t?.current?.requestSubmit(),
2531
+ children: "Send"
2532
+ }
2533
+ ),
2534
+ /* @__PURE__ */ n.jsxs(Qt, { children: [
2535
+ /* @__PURE__ */ n.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ n.jsx(
2536
+ F,
2537
+ {
2538
+ disabled: s,
2539
+ className: "rounded-l-none border-l border-border/40 inset-shadow-xs w-6",
2540
+ size: "icon",
2541
+ children: /* @__PURE__ */ n.jsx(yn, { className: "w-4 h-4" })
2542
+ }
2543
+ ) }),
2544
+ /* @__PURE__ */ n.jsx(He, { value: r, children: /* @__PURE__ */ n.jsx(ze, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: H, label: "None" }, ...e].map(
2545
+ (i) => /* @__PURE__ */ n.jsxs(
2546
+ _e,
2547
+ {
2548
+ onClick: () => {
2549
+ o(i.id), a("identity", i.id), t?.current?.requestSubmit();
2550
+ },
2551
+ onMouseEnter: () => o(i.id),
2552
+ onMouseLeave: () => o(void 0),
2553
+ children: [
2554
+ /* @__PURE__ */ n.jsx(ue, { value: i.id, className: "me-2" }),
2555
+ i.label
2556
+ ]
2557
+ },
2558
+ i.id
2559
+ )
2560
+ ) }) })
2561
+ ] })
2562
+ ] });
2563
+ }, H = "__none", Ce = {
2564
+ Plain: "text/plain",
2565
+ JSON: "application/json",
2566
+ XML: "application/xml",
2567
+ YAML: "application/yaml",
2568
+ CSV: "text/csv"
2569
+ }, Lr = ({
2570
+ server: e,
2571
+ servers: t = [],
2572
+ url: s,
2573
+ method: a,
2574
+ headers: r = [],
2575
+ queryParams: o = [],
2576
+ pathParams: i = [],
2577
+ defaultBody: c = "",
2578
+ examples: l,
2579
+ requiresLogin: u = !1,
2580
+ onLogin: p,
2581
+ onSignUp: v
2582
+ }) => {
2583
+ const { selectedServer: f, setSelectedServer: x } = tr(
2584
+ t.map((d) => ({ url: d }))
2585
+ ), [m, y] = $(!1), S = On(), { setRememberedIdentity: N, getRememberedIdentity: I } = yr(), [, k] = kn(), [rn, an] = $(!1), [on, ee] = $(!1), te = Q(void 0), We = Mn(N), { register: Xe, control: ne, handleSubmit: Ze, watch: Ye, setValue: _, ...xe } = Bn({
2586
+ defaultValues: {
2587
+ body: c,
2588
+ bodyContentType: "JSON",
2589
+ queryParams: o.map((d) => ({
2590
+ name: d.name,
2591
+ value: d.defaultValue ?? "",
2592
+ active: d.defaultActive ?? !1,
2593
+ enum: d.enum ?? []
2594
+ })).concat([
2595
+ {
2596
+ name: "",
2597
+ value: "",
2598
+ active: !1,
2599
+ enum: []
2600
+ }
2601
+ ]),
2602
+ pathParams: i.map((d) => ({
2603
+ name: d.name,
2604
+ value: d.defaultValue ?? ""
2605
+ })),
2606
+ headers: r.map((d) => ({
2607
+ name: d.name,
2608
+ value: d.defaultValue ?? "",
2609
+ active: d.defaultActive ?? !1
2610
+ })).concat([
2611
+ {
2612
+ name: "",
2613
+ value: "",
2614
+ active: !1
2615
+ }
2616
+ ]),
2617
+ identity: I(
2618
+ S.data?.map((d) => d.id) ?? []
2619
+ )
2620
+ }
2621
+ }), A = Ye(), Ke = Q(null);
2622
+ ae(() => {
2623
+ A.identity && We.current(A.identity);
2624
+ }, [We, A.identity]);
2625
+ const ge = Fn({
2626
+ mutationFn: async (d) => {
2627
+ const P = performance.now(), D = !d.headers.some(
2628
+ (T) => T.active && T.name.toLowerCase() === "content-type"
2629
+ ), re = Object.fromEntries([
2630
+ ...d.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value]),
2631
+ ...D ? [["content-type", Ce[d.bodyContentType]]] : []
2632
+ ]), E = new Request(
2633
+ nr(e ?? f, s, d),
2634
+ {
2635
+ method: a.toUpperCase(),
2636
+ headers: re,
2637
+ body: d.body ? d.body : void 0
2638
+ }
2639
+ );
2640
+ d.identity !== H && await S.data?.find((T) => T.id === d.identity)?.authorizeRequest(E);
2641
+ const tt = setTimeout(
2642
+ () => ee(!0),
2643
+ 3210
2644
+ );
2645
+ te.current = new AbortController();
2646
+ try {
2647
+ const T = await fetch(E, {
2648
+ signal: te.current.signal
2649
+ });
2650
+ clearTimeout(tt), ee(!1);
2651
+ const un = performance.now() - P, nt = await T.text(), mn = new URL(E.url);
2652
+ return {
2653
+ status: T.status,
2654
+ headers: Array.from(T.headers.entries()),
2655
+ size: nt.length,
2656
+ body: nt,
2657
+ time: un,
2658
+ request: {
2659
+ method: E.method.toUpperCase(),
2660
+ url: E.url,
2661
+ headers: [
2662
+ ["Host", mn.host],
2663
+ ["User-Agent", "Zudoku Playground"],
2664
+ ...Array.from(E.headers.entries())
2665
+ ],
2666
+ body: d.body ? d.body : void 0
2667
+ }
2668
+ };
2669
+ } catch (T) {
2670
+ throw clearTimeout(tt), ee(!1), T instanceof TypeError ? new Error(
2671
+ "The request failed, possibly due to network issues or CORS policy."
2672
+ ) : T;
2673
+ }
2674
+ }
2675
+ });
2676
+ ae(() => () => {
2677
+ te.current?.abort();
2678
+ }, []);
2679
+ const ln = /* @__PURE__ */ n.jsx(
2680
+ Xs,
2681
+ {
2682
+ path: s,
2683
+ renderParam: ({ name: d, originalValue: P, index: D }) => {
2684
+ const re = A.pathParams.find(
2685
+ (E) => E.name === d
2686
+ )?.value;
2687
+ return /* @__PURE__ */ n.jsx(
2688
+ Ht,
2689
+ {
2690
+ name: d,
2691
+ backgroundOpacity: "0",
2692
+ slug: d,
2693
+ onClick: () => xe.setFocus(`pathParams.${D}.value`),
2694
+ children: re || P
2695
+ }
2696
+ );
2697
+ }
2698
+ }
2699
+ ), et = A.queryParams.filter((d) => d.active).map((d, P, D) => /* @__PURE__ */ n.jsxs(q, { children: [
2700
+ d.name,
2701
+ "=",
2702
+ encodeURIComponent(d.value).replaceAll("%20", "+"),
2703
+ P < D.length - 1 && "&",
2704
+ /* @__PURE__ */ n.jsx("wbr", {})
2705
+ ] }, d.name)), cn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2706
+ $e,
2707
+ {
2708
+ onValueChange: (d) => {
2709
+ k(() => x(d));
2710
+ },
2711
+ value: f,
2712
+ defaultValue: f,
2713
+ children: [
2714
+ /* @__PURE__ */ n.jsx(ie, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Re, {}) }),
2715
+ /* @__PURE__ */ n.jsx(le, { children: t.map((d) => /* @__PURE__ */ n.jsx(G, { value: d, children: d.replace(/^https?:\/\//, "").replace(/\/$/, "") }, d)) })
2716
+ ]
2717
+ }
2718
+ ) }), dn = u && !rn, se = ["POST", "PUT", "PATCH", "DELETE"].includes(
2719
+ a.toUpperCase()
2720
+ );
2721
+ return /* @__PURE__ */ n.jsx(
2722
+ zn,
2723
+ {
2724
+ register: Xe,
2725
+ control: ne,
2726
+ handleSubmit: Ze,
2727
+ watch: Ye,
2728
+ setValue: _,
2729
+ ...xe,
2730
+ children: /* @__PURE__ */ n.jsxs(
2731
+ "form",
2732
+ {
2733
+ onSubmit: Ze((d) => {
2734
+ S.data?.length === 0 || d.identity ? ge.mutate(d) : y(!0);
2735
+ }),
2736
+ ref: Ke,
2737
+ className: "relative",
2738
+ children: [
2739
+ /* @__PURE__ */ n.jsx(
2740
+ hr,
2741
+ {
2742
+ identities: S.data ?? [],
2743
+ open: m,
2744
+ onOpenChange: y,
2745
+ onSubmit: ({ rememberedIdentity: d, identity: P }) => {
2746
+ d && _("identity", P ?? H), y(!1), ge.mutate({ ...A, identity: P });
2747
+ }
2748
+ }
2749
+ ),
2750
+ /* @__PURE__ */ n.jsx(
2751
+ vr,
2752
+ {
2753
+ open: dn,
2754
+ setOpen: (d) => an(!d),
2755
+ onSignUp: v,
2756
+ onLogin: p
2757
+ }
2758
+ ),
2759
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
2760
+ /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 p-4 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:start-auto", children: [
2761
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2 items-stretch", children: [
2762
+ /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
2763
+ /* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
2764
+ /* @__PURE__ */ n.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
2765
+ cn,
2766
+ ln,
2767
+ et.length > 0 ? "?" : "",
2768
+ et
2769
+ ] })
2770
+ ] }),
2771
+ /* @__PURE__ */ n.jsx(
2772
+ Rr,
2773
+ {
2774
+ identities: S.data ?? [],
2775
+ formRef: Ke,
2776
+ disabled: S.isLoading || xe.formState.isSubmitting
2777
+ }
2778
+ )
2779
+ ] }),
2780
+ /* @__PURE__ */ n.jsxs(Ot, { defaultValue: "parameters", children: [
2781
+ /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ n.jsxs(Pt, { children: [
2782
+ /* @__PURE__ */ n.jsxs(M, { value: "parameters", children: [
2783
+ "Parameters",
2784
+ (A.pathParams.some((d) => d.value !== "") || A.queryParams.some((d) => d.active)) && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2785
+ ] }),
2786
+ /* @__PURE__ */ n.jsxs(M, { value: "headers", children: [
2787
+ "Headers",
2788
+ A.headers.filter((d) => d.active).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2789
+ ] }),
2790
+ /* @__PURE__ */ n.jsxs(M, { value: "auth", children: [
2791
+ "Auth",
2792
+ A.identity !== H && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2793
+ ] }),
2794
+ /* @__PURE__ */ n.jsxs(M, { value: "body", children: [
2795
+ "Body",
2796
+ A.body && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2797
+ ] })
2798
+ ] }) }),
2799
+ /* @__PURE__ */ n.jsx(U, { value: "headers", children: /* @__PURE__ */ n.jsx(mr, { control: ne, headers: r }) }),
2800
+ /* @__PURE__ */ n.jsxs(U, { value: "parameters", children: [
2801
+ i.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2802
+ /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
2803
+ /* @__PURE__ */ n.jsx(fr, { url: s, control: ne })
2804
+ ] }),
2805
+ /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2806
+ /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
2807
+ /* @__PURE__ */ n.jsx(gr, { control: ne, queryParams: o })
2808
+ ] })
2809
+ ] }),
2810
+ /* @__PURE__ */ n.jsxs(U, { value: "body", children: [
2811
+ !["POST", "PUT", "PATCH", "DELETE"].includes(
2812
+ a.toUpperCase()
2813
+ ) && /* @__PURE__ */ n.jsxs(Oe, { className: "mb-2", children: [
2814
+ /* @__PURE__ */ n.jsx(st, { className: "w-4 h-4" }),
2815
+ /* @__PURE__ */ n.jsx(Pe, { children: "Body" }),
2816
+ /* @__PURE__ */ n.jsx(Ee, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
2817
+ ] }),
2818
+ /* @__PURE__ */ n.jsx(
2819
+ Gt,
2820
+ {
2821
+ ...Xe("body"),
2822
+ className: g(
2823
+ "border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
2824
+ !se && "h-20 bg-muted"
2825
+ ),
2826
+ placeholder: se ? void 0 : "This request does not support a body",
2827
+ disabled: !se
2828
+ }
2829
+ ),
2830
+ se && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
2831
+ /* @__PURE__ */ n.jsxs(
2832
+ $e,
2833
+ {
2834
+ value: A.bodyContentType,
2835
+ onValueChange: (d) => _(
2836
+ "bodyContentType",
2837
+ d
2838
+ ),
2839
+ children: [
2840
+ /* @__PURE__ */ n.jsx(ie, { className: "w-[100px]", children: /* @__PURE__ */ n.jsx(Re, {}) }),
2841
+ /* @__PURE__ */ n.jsx(le, { children: Object.keys(Ce).map((d) => /* @__PURE__ */ n.jsx(G, { value: d, children: d }, d)) })
2842
+ ]
2843
+ }
2844
+ ),
2845
+ l && l.length > 0 && /* @__PURE__ */ n.jsx(
2846
+ lr,
2847
+ {
2848
+ examples: l,
2849
+ onSelect: (d, P) => {
2850
+ _(
2851
+ "body",
2852
+ JSON.stringify(d.value, null, 2)
2853
+ );
2854
+ const D = _n(Ce).find(
2855
+ ([re, E]) => E === P
2856
+ )?.[0];
2857
+ D && _("bodyContentType", D);
2858
+ }
2859
+ }
2860
+ )
2861
+ ] })
2862
+ ] }),
2863
+ /* @__PURE__ */ n.jsx(U, { value: "auth", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2864
+ S.data?.length === 0 && /* @__PURE__ */ n.jsxs(Oe, { children: [
2865
+ /* @__PURE__ */ n.jsx(st, { className: "w-4 h-4" }),
2866
+ /* @__PURE__ */ n.jsx(Pe, { children: "Authentication" }),
2867
+ /* @__PURE__ */ n.jsx(Ee, { children: "No identities found. Please create an identity first." })
2868
+ ] }),
2869
+ /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ n.jsx(
2870
+ Yt,
2871
+ {
2872
+ value: A.identity,
2873
+ identities: S.data ?? [],
2874
+ setValue: (d) => _("identity", d)
2875
+ }
2876
+ ) })
2877
+ ] }) })
2878
+ ] })
2879
+ ] }),
2880
+ /* @__PURE__ */ n.jsx(
2881
+ $r,
2882
+ {
2883
+ queryMutation: ge,
2884
+ showPathParamsWarning: A.pathParams.some(
2885
+ (d) => d.value === ""
2886
+ ),
2887
+ showLongRunningWarning: on,
2888
+ onCancel: () => {
2889
+ te.current?.abort(
2890
+ "Request cancelled by the user"
2891
+ ), ee(!1);
2892
+ }
2893
+ }
2894
+ )
2895
+ ] })
2896
+ ]
2897
+ }
2898
+ )
2899
+ }
2900
+ );
2901
+ }, Ir = ({
2902
+ className: e,
2903
+ size: t = 16
2904
+ }) => /* @__PURE__ */ n.jsx(
2905
+ "svg",
2906
+ {
2907
+ xmlns: "http://www.w3.org/2000/svg",
2908
+ viewBox: "0 0 24 24",
2909
+ fill: "currentColor",
2910
+ className: e,
2911
+ width: t,
2912
+ height: t,
2913
+ children: /* @__PURE__ */ n.jsx(
2914
+ "path",
2915
+ {
2916
+ fillRule: "evenodd",
2917
+ d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm14.024-.983a1.125 1.125 0 0 1 0 1.966l-5.603 3.113A1.125 1.125 0 0 1 9 15.113V8.887c0-.857.921-1.4 1.671-.983l5.603 3.113Z",
2918
+ clipRule: "evenodd"
2919
+ }
2920
+ )
2921
+ }
2922
+ ), kr = (e) => {
2923
+ const [t, s] = $(!1);
2924
+ return /* @__PURE__ */ n.jsxs(Le, { onOpenChange: (a) => s(a), children: [
2925
+ /* @__PURE__ */ n.jsx(Vn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2926
+ "button",
2927
+ {
2928
+ type: "button",
2929
+ className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
2930
+ children: [
2931
+ "Test",
2932
+ /* @__PURE__ */ n.jsx(Ir, { size: 14 })
2933
+ ]
2934
+ }
2935
+ ) }),
2936
+ /* @__PURE__ */ n.jsxs(
2937
+ Ie,
2938
+ {
2939
+ className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
2940
+ "aria-describedby": void 0,
2941
+ children: [
2942
+ /* @__PURE__ */ n.jsx(qn, { children: /* @__PURE__ */ n.jsx(ke, { children: "Playground" }) }),
2943
+ t && /* @__PURE__ */ n.jsx(Lr, { ...e })
2944
+ ]
2945
+ }
2946
+ )
2947
+ ] });
2948
+ }, Dr = {
2949
+ get: "green",
2950
+ post: "blue",
2951
+ put: "yellow",
2952
+ delete: "red",
2953
+ patch: "purple",
2954
+ options: "gray",
2955
+ head: "gray"
2956
+ }, yt = ({
2957
+ label: e,
2958
+ path: t,
2959
+ operations: s,
2960
+ collapsible: a,
2961
+ collapsed: r
2962
+ }) => ({
2963
+ type: "category",
2964
+ label: e,
2965
+ link: {
2966
+ type: "doc",
2967
+ id: t,
2968
+ label: e
2969
+ },
2970
+ collapsible: a,
2971
+ collapsed: r,
2972
+ items: s.map((o) => ({
2973
+ type: "link",
2974
+ label: o.summary ?? o.path,
2975
+ href: `${t}#${o.slug}`,
2976
+ badge: {
2977
+ label: o.method,
2978
+ color: Dr[o.method.toLowerCase()],
2979
+ invert: !0
2980
+ }
2981
+ }))
2982
+ }), Kt = Ct(
2983
+ void 0
2984
+ ), ba = Kt.Provider, qr = () => {
2985
+ const e = Dn(Kt);
2986
+ if (!e)
2987
+ throw new Error("useOasConfig must be used within a OasConfigProvider");
2988
+ return e.config;
2989
+ }, vt = (e) => ({
2990
+ path: e.routePath,
2991
+ async lazy() {
2992
+ const { OasProvider: t } = await import("./OasProvider-DjFXGgWa.js");
2993
+ return {
2994
+ element: /* @__PURE__ */ n.jsx(
2995
+ t,
2996
+ {
2997
+ basePath: e.basePath,
2998
+ version: e.version,
2999
+ client: e.client,
3000
+ config: e.config
3001
+ }
3002
+ )
3003
+ };
3004
+ },
3005
+ children: e.routes
3006
+ }), en = ({
3007
+ path: e,
3008
+ tag: t,
3009
+ untagged: s
3010
+ }) => ({
3011
+ path: e,
3012
+ async lazy() {
3013
+ const { OperationList: a } = await import("./OperationList-CchpZz4h.js");
3014
+ return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
3015
+ }
3016
+ }), Vr = ({
3017
+ render: e,
3018
+ path: t
3019
+ }) => {
3020
+ const { type: s, input: a } = qr(), { tag: r } = Nn(), o = wn(), i = Fs(sn, { type: s, input: a }), {
3021
+ data: { schema: c }
3022
+ } = Pn(i), l = c.tags.at(0);
3023
+ return !r && l?.slug ? /* @__PURE__ */ n.jsx(
3024
+ Cn,
3025
+ {
3026
+ to: {
3027
+ pathname: Sn(t, { tag: l.slug }),
3028
+ search: o.search
3029
+ }
3030
+ }
3031
+ ) : r && c.tags.some((u) => u.slug === r) ? e(r) : null;
3032
+ }, Fr = ({ path: e }) => ({
3033
+ path: e,
3034
+ async lazy() {
3035
+ const { OperationList: t } = await import("./OperationList-CchpZz4h.js");
3036
+ return {
3037
+ element: /* @__PURE__ */ n.jsx(
3038
+ Vr,
3039
+ {
3040
+ path: e,
3041
+ render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
3042
+ }
3043
+ )
3044
+ };
3045
+ }
3046
+ }), tn = (e) => [
3047
+ // Category without tagged operations
3048
+ en({
3049
+ path: L(e, Je),
3050
+ untagged: !0
3051
+ }),
3052
+ // Schema list route
3053
+ {
3054
+ path: L(e, "~schemas"),
3055
+ lazy: async () => {
3056
+ const { SchemaList: t } = await import("./SchemaList-CrQd3KiR.js");
3057
+ return { element: /* @__PURE__ */ n.jsx(t, {}) };
3058
+ }
3059
+ }
3060
+ ], Br = (e, t) => {
3061
+ const s = L(e, t.at(0) ?? Je);
3062
+ return [
3063
+ // Redirect to first tag on the index route
3064
+ { index: !0, loader: () => jn(s) },
3065
+ // Create routes for each tag
3066
+ ...t.map(
3067
+ (a) => en({
3068
+ path: L(e, a),
3069
+ tag: a
3070
+ })
3071
+ ),
3072
+ ...tn(e)
3073
+ ];
3074
+ }, nn = (e) => e.type === "file" ? Object.keys(e.input) : [], zr = ({
3075
+ basePath: e,
3076
+ config: t,
3077
+ client: s
3078
+ }) => {
3079
+ const a = t.tagPages;
3080
+ if (!a)
3081
+ return [
3082
+ vt({
3083
+ basePath: e,
3084
+ routePath: e,
3085
+ routes: [
3086
+ Fr({ path: e + "/:tag?" }),
3087
+ ...tn(e)
3088
+ ],
3089
+ client: s,
3090
+ config: t
3091
+ })
3092
+ ];
3093
+ const r = nn(t);
3094
+ return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3095
+ const c = L(e, i);
3096
+ return vt({
3097
+ basePath: e,
3098
+ version: i,
3099
+ routePath: c,
3100
+ routes: Br(c, a),
3101
+ client: s,
3102
+ config: t
3103
+ });
3104
+ });
3105
+ }, sn = Js(`
3106
+ query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
3107
+ schema(input: $input, type: $type) {
3108
+ tags {
3109
+ slug
3110
+ name
3111
+ extensions
3112
+ operations {
3113
+ summary
3114
+ slug
3115
+ method
3116
+ operationId
3117
+ path
3118
+ }
3119
+ }
3120
+ components {
3121
+ schemas {
3122
+ __typename
3123
+ }
3124
+ }
3125
+ }
3126
+ }
3127
+ `), Je = "~endpoints", ja = (e) => {
3128
+ const t = L(e.navigationId ?? "/reference"), s = new os(e);
3129
+ return {
3130
+ getHead: () => {
3131
+ if (e.type === "url" && !e.skipPreload)
3132
+ return /* @__PURE__ */ n.jsx(
3133
+ "link",
3134
+ {
3135
+ rel: "preload",
3136
+ href: e.input,
3137
+ as: "fetch",
3138
+ crossOrigin: "anonymous"
3139
+ }
3140
+ );
3141
+ if (e.server)
3142
+ return /* @__PURE__ */ n.jsx("link", { rel: "preconnect", href: e.server });
3143
+ },
3144
+ getMdxComponents: () => ({
3145
+ OpenPlaygroundButton: ({
3146
+ requireAuth: a,
3147
+ server: r,
3148
+ method: o,
3149
+ url: i,
3150
+ children: c,
3151
+ ...l
3152
+ }) => {
3153
+ const u = En();
3154
+ if (!r)
3155
+ throw new Error("Server is required");
3156
+ return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3157
+ Z,
3158
+ {
3159
+ className: "gap-2 items-center",
3160
+ variant: "outline",
3161
+ onClick: u.login,
3162
+ children: [
3163
+ "Login to open in Playground ",
3164
+ /* @__PURE__ */ n.jsx(vn, { size: 16 })
3165
+ ]
3166
+ }
3167
+ ) : /* @__PURE__ */ n.jsx(
3168
+ kr,
3169
+ {
3170
+ url: i ?? "/",
3171
+ method: o ?? "get",
3172
+ server: r,
3173
+ ...l,
3174
+ children: /* @__PURE__ */ n.jsx(Z, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3175
+ "Open in Playground ",
3176
+ /* @__PURE__ */ n.jsx(bn, { size: 16 })
3177
+ ] }) })
3178
+ }
3179
+ );
3180
+ }
3181
+ }),
3182
+ getSidebar: async (a, r) => {
3183
+ if (!rt({ path: t, end: !1 }, a))
3184
+ return [];
3185
+ const o = rt(
3186
+ { path: `${t}/:version?/:tag`, end: !0 },
3187
+ a
3188
+ );
3189
+ try {
3190
+ const i = o?.params.version, c = i ?? nn(e).at(0), { type: l } = e, u = l === "file" ? e.input[c] : e.input, p = _t(s, sn, {
3191
+ type: l,
3192
+ input: u
3193
+ }), v = await r.queryClient.ensureQueryData(p), f = v.schema.tags.flatMap((m) => {
3194
+ if (!m.name || m.operations.length === 0) return [];
3195
+ const y = L(t, i, m.slug), S = m.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, N = m.extensions?.["x-zudoku-collapsible"] ?? !0;
3196
+ return yt({
3197
+ label: m.name,
3198
+ path: y,
3199
+ operations: m.operations,
3200
+ collapsed: S,
3201
+ collapsible: N
3202
+ });
3203
+ }), x = v.schema.tags.find(
3204
+ (m) => !m.name
3205
+ )?.operations;
3206
+ return x && f.push(
3207
+ yt({
3208
+ label: "Other endpoints",
3209
+ path: L(t, i, Je),
3210
+ operations: x,
3211
+ collapsed: !e.options?.expandAllTags
3212
+ })
3213
+ ), v.schema.components?.schemas?.length && f.push({
3214
+ type: "link",
3215
+ label: "Schemas",
3216
+ href: L(t, i, "~schemas")
3217
+ }), f;
3218
+ } catch {
3219
+ return [];
3220
+ }
3221
+ },
3222
+ getRoutes: () => zr({ basePath: t, config: e, client: s })
3223
+ };
3224
+ };
3225
+ export {
3226
+ ya as A,
3227
+ gs as B,
3228
+ pt as C,
3229
+ hs as D,
3230
+ kt as E,
3231
+ sn as F,
3232
+ va as G,
3233
+ ja as H,
3234
+ ys as L,
3235
+ ba as O,
3236
+ kr as P,
3237
+ ms as Q,
3238
+ $e as S,
3239
+ h as T,
3240
+ Je as U,
3241
+ Fs as a,
3242
+ ht as b,
3243
+ ft as c,
3244
+ Js as d,
3245
+ tr as e,
3246
+ Ht as f,
3247
+ nn as g,
3248
+ Xs as h,
3249
+ ie as i,
3250
+ Re as j,
3251
+ le as k,
3252
+ G as l,
3253
+ jr as m,
3254
+ qs as n,
3255
+ Bt as o,
3256
+ dt as p,
3257
+ ga as q,
3258
+ vs as r,
3259
+ O as s,
3260
+ Be as t,
3261
+ qr as u,
3262
+ Ft as v,
3263
+ is as w,
3264
+ Ds as x,
3265
+ ve as y,
3266
+ ls as z
3267
+ };
3268
+ //# sourceMappingURL=index-BjB1BHZu.js.map