zudoku 0.0.0-fa903e7 → 0.0.0-fb5b775d

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