zudoku 0.0.0-ff3751f → 0.0.0-fix-display-option-navigation-items.4bdfe991

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