zudoku 0.0.0-fd8f8ad → 0.0.0-feat-bundled-types.1c7f1db

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