zudoku 0.0.0-feat-openapi-docs-redesign.dab3fc6a → 0.0.0-feat-navigation-at-property.z8cd07fa5

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 (656) hide show
  1. package/dist/app/main.d.ts +6 -6
  2. package/dist/app/main.js +1 -1
  3. package/dist/app/main.js.map +1 -1
  4. package/dist/app/sentry.js +1 -1
  5. package/dist/cli/common/version-check.js +12 -3
  6. package/dist/cli/common/version-check.js.map +1 -1
  7. package/dist/config/create-plugin.d.ts +2 -0
  8. package/dist/config/create-plugin.js +55 -0
  9. package/dist/config/create-plugin.js.map +1 -0
  10. package/dist/config/loader.js +3 -1
  11. package/dist/config/loader.js.map +1 -1
  12. package/dist/config/validators/BuildSchema.js +18 -3
  13. package/dist/config/validators/BuildSchema.js.map +1 -1
  14. package/dist/config/validators/InputNavigationSchema.d.ts +133 -45
  15. package/dist/config/validators/InputNavigationSchema.js +30 -0
  16. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  17. package/dist/config/validators/NavigationSchema.d.ts +18 -4
  18. package/dist/config/validators/NavigationSchema.js +15 -5
  19. package/dist/config/validators/NavigationSchema.js.map +1 -1
  20. package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
  21. package/dist/config/validators/validate.d.ts +104 -14
  22. package/dist/config/validators/validate.js +15 -4
  23. package/dist/config/validators/validate.js.map +1 -1
  24. package/dist/config/validators/validate.test.js +43 -0
  25. package/dist/config/validators/validate.test.js.map +1 -1
  26. package/dist/flat-config.d.ts +68 -32
  27. package/dist/index.d.ts +4 -2
  28. package/dist/index.js +3 -1
  29. package/dist/index.js.map +1 -1
  30. package/dist/lib/auth/issuer.js +1 -1
  31. package/dist/lib/auth/issuer.js.map +1 -1
  32. package/dist/lib/authentication/authentication.d.ts +3 -2
  33. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  34. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  35. package/dist/lib/authentication/components/SignIn.js +4 -2
  36. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  37. package/dist/lib/authentication/components/SignUp.js +4 -2
  38. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  39. package/dist/lib/authentication/hook.d.ts +2 -0
  40. package/dist/lib/authentication/hook.js +10 -0
  41. package/dist/lib/authentication/hook.js.map +1 -1
  42. package/dist/lib/authentication/providers/auth0.js +17 -8
  43. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  44. package/dist/lib/authentication/providers/clerk.js +0 -22
  45. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  46. package/dist/lib/authentication/providers/firebase.js +67 -9
  47. package/dist/lib/authentication/providers/firebase.js.map +1 -1
  48. package/dist/lib/authentication/providers/supabase.js +6 -15
  49. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  50. package/dist/lib/authentication/ui/EmailVerificationUi.d.ts +4 -0
  51. package/dist/lib/authentication/ui/EmailVerificationUi.js +34 -0
  52. package/dist/lib/authentication/ui/EmailVerificationUi.js.map +1 -0
  53. package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +7 -2
  54. package/dist/lib/authentication/ui/ZudokuAuthUi.js +48 -12
  55. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -1
  56. package/dist/lib/authentication/utils/relativeRedirectUrl.d.ts +1 -0
  57. package/dist/lib/authentication/utils/relativeRedirectUrl.js +8 -0
  58. package/dist/lib/authentication/utils/relativeRedirectUrl.js.map +1 -0
  59. package/dist/lib/components/Bootstrap.js +1 -2
  60. package/dist/lib/components/Bootstrap.js.map +1 -1
  61. package/dist/lib/components/Heading.d.ts +1 -1
  62. package/dist/lib/components/Mermaid.d.ts +7 -0
  63. package/dist/lib/components/Mermaid.js +42 -0
  64. package/dist/lib/components/Mermaid.js.map +1 -0
  65. package/dist/lib/components/MobileTopNavigation.js +3 -2
  66. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  67. package/dist/lib/components/PagefindSearchMeta.d.ts +8 -0
  68. package/dist/lib/components/PagefindSearchMeta.js +7 -0
  69. package/dist/lib/components/PagefindSearchMeta.js.map +1 -0
  70. package/dist/lib/components/Pagination.js +2 -2
  71. package/dist/lib/components/Pagination.js.map +1 -1
  72. package/dist/lib/components/Slot.test.js +1 -1
  73. package/dist/lib/components/Slot.test.js.map +1 -1
  74. package/dist/lib/components/TopNavigation.d.ts +7 -1
  75. package/dist/lib/components/TopNavigation.js +8 -3
  76. package/dist/lib/components/TopNavigation.js.map +1 -1
  77. package/dist/lib/components/Zudoku.d.ts +4 -1
  78. package/dist/lib/components/Zudoku.js +5 -11
  79. package/dist/lib/components/Zudoku.js.map +1 -1
  80. package/dist/lib/components/context/ZudokuContext.d.ts +9 -4
  81. package/dist/lib/components/context/ZudokuContext.js +26 -8
  82. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  83. package/dist/lib/components/context/ZudokuProvider.js +1 -1
  84. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  85. package/dist/lib/components/context/ZudokuReactContext.d.ts +11 -0
  86. package/dist/lib/components/context/ZudokuReactContext.js +4 -0
  87. package/dist/lib/components/context/ZudokuReactContext.js.map +1 -0
  88. package/dist/lib/components/index.d.ts +18 -69
  89. package/dist/lib/components/index.js +19 -32
  90. package/dist/lib/components/index.js.map +1 -1
  91. package/dist/lib/components/navigation/Navigation.js +4 -3
  92. package/dist/lib/components/navigation/Navigation.js.map +1 -1
  93. package/dist/lib/components/navigation/NavigationCategory.js +8 -0
  94. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
  95. package/dist/lib/components/navigation/NavigationFilterContext.d.ts +8 -0
  96. package/dist/lib/components/navigation/NavigationFilterContext.js +12 -0
  97. package/dist/lib/components/navigation/NavigationFilterContext.js.map +1 -0
  98. package/dist/lib/components/navigation/NavigationFilterInput.d.ts +3 -0
  99. package/dist/lib/components/navigation/NavigationFilterInput.js +9 -0
  100. package/dist/lib/components/navigation/NavigationFilterInput.js.map +1 -0
  101. package/dist/lib/components/navigation/NavigationItem.js +13 -3
  102. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  103. package/dist/lib/components/navigation/NavigationWrapper.js +1 -1
  104. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -1
  105. package/dist/lib/components/navigation/utils.d.ts +6 -1
  106. package/dist/lib/components/navigation/utils.js +26 -2
  107. package/dist/lib/components/navigation/utils.js.map +1 -1
  108. package/dist/lib/core/RouteGuard.js +12 -7
  109. package/dist/lib/core/RouteGuard.js.map +1 -1
  110. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  111. package/dist/lib/core/ZudokuContext.js +3 -1
  112. package/dist/lib/core/ZudokuContext.js.map +1 -1
  113. package/dist/lib/core/__internal.d.ts +1 -0
  114. package/dist/lib/core/__internal.js +2 -0
  115. package/dist/lib/core/__internal.js.map +1 -1
  116. package/dist/lib/core/plugins.d.ts +18 -4
  117. package/dist/lib/core/plugins.js +1 -0
  118. package/dist/lib/core/plugins.js.map +1 -1
  119. package/dist/lib/core/react-query.d.ts +1 -0
  120. package/dist/lib/core/react-query.js +2 -0
  121. package/dist/lib/core/react-query.js.map +1 -0
  122. package/dist/lib/core/transform-config.d.ts +4 -0
  123. package/dist/lib/core/transform-config.js +42 -0
  124. package/dist/lib/core/transform-config.js.map +1 -0
  125. package/dist/lib/core/transform-config.test.d.ts +1 -0
  126. package/dist/lib/core/transform-config.test.js +83 -0
  127. package/dist/lib/core/transform-config.test.js.map +1 -0
  128. package/dist/lib/errors/ErrorAlert.js +1 -2
  129. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  130. package/dist/lib/errors/ErrorMessage.d.ts +3 -0
  131. package/dist/lib/errors/ErrorMessage.js +16 -0
  132. package/dist/lib/errors/ErrorMessage.js.map +1 -0
  133. package/dist/lib/hooks/index.d.ts +7 -28
  134. package/dist/lib/hooks/index.js +7 -15
  135. package/dist/lib/hooks/index.js.map +1 -1
  136. package/dist/lib/hooks/useEvent.test.js +1 -1
  137. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  138. package/dist/lib/navigation/pathMatcher.d.ts +8 -0
  139. package/dist/lib/navigation/pathMatcher.js +62 -0
  140. package/dist/lib/navigation/pathMatcher.js.map +1 -0
  141. package/dist/lib/navigation/pathMatcher.test.d.ts +1 -0
  142. package/dist/lib/navigation/pathMatcher.test.js +115 -0
  143. package/dist/lib/navigation/pathMatcher.test.js.map +1 -0
  144. package/dist/lib/navigation/positionItems.d.ts +10 -0
  145. package/dist/lib/navigation/positionItems.js +54 -0
  146. package/dist/lib/navigation/positionItems.js.map +1 -0
  147. package/dist/lib/navigation/positionItems.test.d.ts +1 -0
  148. package/dist/lib/navigation/positionItems.test.js +229 -0
  149. package/dist/lib/navigation/positionItems.test.js.map +1 -0
  150. package/dist/lib/oas/graphql/circular.d.ts +2 -0
  151. package/dist/lib/oas/graphql/circular.js +21 -16
  152. package/dist/lib/oas/graphql/circular.js.map +1 -1
  153. package/dist/lib/oas/graphql/circular.test.d.ts +1 -0
  154. package/dist/lib/oas/graphql/circular.test.js +183 -0
  155. package/dist/lib/oas/graphql/circular.test.js.map +1 -0
  156. package/dist/lib/oas/graphql/index.js +7 -3
  157. package/dist/lib/oas/graphql/index.js.map +1 -1
  158. package/dist/lib/oas/parser/index.d.ts +1 -0
  159. package/dist/lib/oas/parser/index.js +14 -5
  160. package/dist/lib/oas/parser/index.js.map +1 -1
  161. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +9 -172
  162. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  163. package/dist/lib/plugins/api-keys/index.d.ts +11 -4
  164. package/dist/lib/plugins/api-keys/index.js +36 -22
  165. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  166. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.d.ts +12 -0
  167. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js +133 -0
  168. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js.map +1 -0
  169. package/dist/lib/plugins/api-keys/settings/ApiKeyList.d.ts +4 -0
  170. package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +33 -0
  171. package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -0
  172. package/dist/lib/plugins/api-keys/settings/RevealApiKey.d.ts +6 -0
  173. package/dist/lib/plugins/api-keys/settings/RevealApiKey.js +39 -0
  174. package/dist/lib/plugins/api-keys/settings/RevealApiKey.js.map +1 -0
  175. package/dist/lib/plugins/openapi/DownloadSchemaButton.d.ts +3 -0
  176. package/dist/lib/plugins/openapi/DownloadSchemaButton.js +47 -0
  177. package/dist/lib/plugins/openapi/DownloadSchemaButton.js.map +1 -0
  178. package/dist/lib/plugins/openapi/Endpoint.js +3 -6
  179. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  180. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +1 -1
  181. package/dist/lib/plugins/openapi/OasProvider.js +26 -13
  182. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  183. package/dist/lib/plugins/openapi/OperationList.js +20 -10
  184. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  185. package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
  186. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  187. package/dist/lib/plugins/openapi/ParamInfos.js +1 -0
  188. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  189. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  190. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  191. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -1
  192. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -3
  193. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  194. package/dist/lib/plugins/openapi/SchemaList.js +2 -1
  195. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  196. package/dist/lib/plugins/openapi/Sidecar.js +12 -3
  197. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  198. package/dist/lib/plugins/openapi/index.js +11 -5
  199. package/dist/lib/plugins/openapi/index.js.map +1 -1
  200. package/dist/lib/plugins/openapi/interfaces.d.ts +19 -13
  201. package/dist/lib/plugins/openapi/playground/Playground.js +8 -4
  202. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  203. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +1 -0
  204. package/dist/lib/plugins/openapi/playground/fileUtils.js +3 -0
  205. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
  206. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.d.ts +6 -0
  207. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js +20 -0
  208. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js.map +1 -0
  209. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +7 -2
  210. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  211. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -1
  212. package/dist/lib/plugins/openapi/schema/SchemaView.js +16 -7
  213. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  214. package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -2
  215. package/dist/lib/plugins/openapi/schema/utils.js +11 -3
  216. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  217. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +24 -1
  218. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
  219. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +9 -1
  220. package/dist/lib/plugins/openapi/util/getRoutes.js +30 -2
  221. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  222. package/dist/lib/plugins/search-pagefind/IndexingDialog.d.ts +3 -0
  223. package/dist/lib/plugins/search-pagefind/IndexingDialog.js +64 -0
  224. package/dist/lib/plugins/search-pagefind/IndexingDialog.js.map +1 -0
  225. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +22 -5
  226. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  227. package/dist/lib/plugins/search-pagefind/ResultList.js +5 -4
  228. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  229. package/dist/lib/shiki.d.ts +1 -1
  230. package/dist/lib/shiki.js +18 -12
  231. package/dist/lib/shiki.js.map +1 -1
  232. package/dist/lib/ui/Alert.d.ts +3 -2
  233. package/dist/lib/ui/Alert.js +9 -5
  234. package/dist/lib/ui/Alert.js.map +1 -1
  235. package/dist/lib/ui/Button.d.ts +2 -2
  236. package/dist/lib/ui/Button.js +10 -9
  237. package/dist/lib/ui/Button.js.map +1 -1
  238. package/dist/lib/ui/ButtonGroup.d.ts +11 -0
  239. package/dist/lib/ui/ButtonGroup.js +28 -0
  240. package/dist/lib/ui/ButtonGroup.js.map +1 -0
  241. package/dist/lib/ui/Command.d.ts +3 -3
  242. package/dist/lib/ui/Command.js +2 -2
  243. package/dist/lib/ui/Command.js.map +1 -1
  244. package/dist/lib/ui/DropdownMenu.d.ts +21 -23
  245. package/dist/lib/ui/DropdownMenu.js +47 -32
  246. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  247. package/dist/lib/ui/InputGroup.d.ts +16 -0
  248. package/dist/lib/ui/InputGroup.js +65 -0
  249. package/dist/lib/ui/InputGroup.js.map +1 -0
  250. package/dist/lib/ui/Kbd.d.ts +3 -0
  251. package/dist/lib/ui/Kbd.js +10 -0
  252. package/dist/lib/ui/Kbd.js.map +1 -0
  253. package/dist/lib/ui/Secret.js +2 -2
  254. package/dist/lib/ui/Secret.js.map +1 -1
  255. package/dist/lib/util/MdxComponents.d.ts +1 -0
  256. package/dist/lib/util/MdxComponents.js +2 -0
  257. package/dist/lib/util/MdxComponents.js.map +1 -1
  258. package/dist/lib/util/flattenAllOf.d.ts +0 -2
  259. package/dist/lib/util/flattenAllOf.js +0 -23
  260. package/dist/lib/util/flattenAllOf.js.map +1 -1
  261. package/dist/lib/util/flattenAllOf.test.js +69 -13
  262. package/dist/lib/util/flattenAllOf.test.js.map +1 -1
  263. package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
  264. package/dist/lib/util/flattenAllOfProcessor.js +48 -0
  265. package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
  266. package/dist/lib/util/invariant.d.ts +1 -1
  267. package/dist/lib/util/invariant.js +2 -2
  268. package/dist/lib/util/invariant.js.map +1 -1
  269. package/dist/lib/util/readFrontmatter.d.ts +6 -0
  270. package/dist/lib/util/readFrontmatter.js +13 -0
  271. package/dist/lib/util/readFrontmatter.js.map +1 -0
  272. package/dist/vite/api/SchemaManager.d.ts +17 -1
  273. package/dist/vite/api/SchemaManager.js +52 -11
  274. package/dist/vite/api/SchemaManager.js.map +1 -1
  275. package/dist/vite/api/SchemaManager.test.js +111 -0
  276. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  277. package/dist/vite/build.js +91 -73
  278. package/dist/vite/build.js.map +1 -1
  279. package/dist/vite/config.js +16 -1
  280. package/dist/vite/config.js.map +1 -1
  281. package/dist/vite/dev-server.js +25 -0
  282. package/dist/vite/dev-server.js.map +1 -1
  283. package/dist/vite/error-handler.js +1 -5
  284. package/dist/vite/error-handler.js.map +1 -1
  285. package/dist/vite/mdx/remark-inject-filepath.js +5 -1
  286. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
  287. package/dist/vite/mdx/remark-last-modified.js +57 -3
  288. package/dist/vite/mdx/remark-last-modified.js.map +1 -1
  289. package/dist/vite/mdx/remark-link-rewrite.js +4 -3
  290. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
  291. package/dist/vite/pagefind-dev-index.d.ts +16 -0
  292. package/dist/vite/pagefind-dev-index.js +68 -0
  293. package/dist/vite/pagefind-dev-index.js.map +1 -0
  294. package/dist/vite/plugin-api-keys.js +5 -1
  295. package/dist/vite/plugin-api-keys.js.map +1 -1
  296. package/dist/vite/plugin-api.js +44 -4
  297. package/dist/vite/plugin-api.js.map +1 -1
  298. package/dist/vite/plugin-config.js +16 -4
  299. package/dist/vite/plugin-config.js.map +1 -1
  300. package/dist/vite/plugin-docs.js +9 -7
  301. package/dist/vite/plugin-docs.js.map +1 -1
  302. package/dist/vite/plugin-frontmatter.js +3 -5
  303. package/dist/vite/plugin-frontmatter.js.map +1 -1
  304. package/dist/vite/plugin-markdown-export.js +8 -7
  305. package/dist/vite/plugin-markdown-export.js.map +1 -1
  306. package/dist/vite/plugin-theme.js +2 -1
  307. package/dist/vite/plugin-theme.js.map +1 -1
  308. package/dist/vite/prerender/prerender.js +4 -20
  309. package/dist/vite/prerender/prerender.js.map +1 -1
  310. package/dist/vite/prerender/utils.d.ts +2 -0
  311. package/dist/vite/prerender/utils.js +30 -0
  312. package/dist/vite/prerender/utils.js.map +1 -0
  313. package/dist/vite/prerender/worker.js +6 -1
  314. package/dist/vite/prerender/worker.js.map +1 -1
  315. package/dist/vite/zuplo.d.ts +13 -0
  316. package/dist/vite/zuplo.js +15 -0
  317. package/dist/vite/zuplo.js.map +1 -0
  318. package/lib/ActionButton-B0CXL1Lq.js +25 -0
  319. package/lib/ActionButton-B0CXL1Lq.js.map +1 -0
  320. package/lib/Button-GUVe7pmt.js +54 -0
  321. package/lib/Button-GUVe7pmt.js.map +1 -0
  322. package/lib/{Card-KFniaZn5.js → Card-DCdq37aA.js} +2 -2
  323. package/lib/{Card-KFniaZn5.js.map → Card-DCdq37aA.js.map} +1 -1
  324. package/lib/ClaudeLogo-DoZ7fHHk.js +73 -0
  325. package/lib/ClaudeLogo-DoZ7fHHk.js.map +1 -0
  326. package/lib/{Command-CUcrW3qs.js → Command-N6VujV30.js} +26 -26
  327. package/lib/Command-N6VujV30.js.map +1 -0
  328. package/lib/{Dialog-BQciPiHN.js → Dialog-hlvmmQ_c.js} +2 -2
  329. package/lib/{Dialog-BQciPiHN.js.map → Dialog-hlvmmQ_c.js.map} +1 -1
  330. package/lib/{Drawer-Ci7XwhqT.js → Drawer-Ch7927PF.js} +7 -7
  331. package/lib/{Drawer-Ci7XwhqT.js.map → Drawer-Ch7927PF.js.map} +1 -1
  332. package/lib/DropdownMenu-DN0jNrjj.js +104 -0
  333. package/lib/DropdownMenu-DN0jNrjj.js.map +1 -0
  334. package/lib/Frame-DKlOmSkU.js +205 -0
  335. package/lib/Frame-DKlOmSkU.js.map +1 -0
  336. package/lib/HydrationBoundary-CJu4vUlG.js +601 -0
  337. package/lib/HydrationBoundary-CJu4vUlG.js.map +1 -0
  338. package/lib/IndexingDialog-D0YdGfbn.js +100 -0
  339. package/lib/IndexingDialog-D0YdGfbn.js.map +1 -0
  340. package/lib/Input-Cx-GeKoF.js +22 -0
  341. package/lib/Input-Cx-GeKoF.js.map +1 -0
  342. package/lib/MdxPage-Bc_5OsQ5.js +210 -0
  343. package/lib/MdxPage-Bc_5OsQ5.js.map +1 -0
  344. package/lib/Mermaid-Chx5BPHn.js +104 -0
  345. package/lib/Mermaid-Chx5BPHn.js.map +1 -0
  346. package/lib/{OAuthErrorPage-DnKnq4xK.js → OAuthErrorPage-D-VcZ5cO.js} +26 -23
  347. package/lib/OAuthErrorPage-D-VcZ5cO.js.map +1 -0
  348. package/lib/OasProvider-CZqLHoRo.js +48 -0
  349. package/lib/OasProvider-CZqLHoRo.js.map +1 -0
  350. package/lib/{OperationList-D8EDc9v7.js → OperationList-BmV1XvEY.js} +2136 -2002
  351. package/lib/OperationList-BmV1XvEY.js.map +1 -0
  352. package/lib/RouteGuard-Dns7HD7C.js +77 -0
  353. package/lib/RouteGuard-Dns7HD7C.js.map +1 -0
  354. package/lib/{SchemaList-E6lF7dID.js → SchemaList-D23IyrX5.js} +28 -27
  355. package/lib/SchemaList-D23IyrX5.js.map +1 -0
  356. package/lib/SchemaView-DVbiGPo3.js +438 -0
  357. package/lib/SchemaView-DVbiGPo3.js.map +1 -0
  358. package/lib/Secret-CyhXSA8i.js +263 -0
  359. package/lib/Secret-CyhXSA8i.js.map +1 -0
  360. package/lib/SignUp-DfEe1w5X.js +55 -0
  361. package/lib/SignUp-DfEe1w5X.js.map +1 -0
  362. package/lib/{SyntaxHighlight-C19vH0V_.js → SyntaxHighlight-N2RffYNz.js} +1469 -1411
  363. package/lib/SyntaxHighlight-N2RffYNz.js.map +1 -0
  364. package/lib/{Toc-DbWS75JZ.js → Toc-Cpo_HSYx.js} +3 -3
  365. package/lib/{Toc-DbWS75JZ.js.map → Toc-Cpo_HSYx.js.map} +1 -1
  366. package/lib/{ErrorAlert-_1Zmhr68.js → Zudoku-GbutmWzP.js} +5663 -4482
  367. package/lib/Zudoku-GbutmWzP.js.map +1 -0
  368. package/lib/ZudokuContext-LPkD2SQs.js +250 -0
  369. package/lib/ZudokuContext-LPkD2SQs.js.map +1 -0
  370. package/lib/ZudokuReactContext-DGJAP1sN.js +222 -0
  371. package/lib/ZudokuReactContext-DGJAP1sN.js.map +1 -0
  372. package/lib/chunk-EPOLDU6W-C6C8jAwd.js +8558 -0
  373. package/lib/chunk-EPOLDU6W-C6C8jAwd.js.map +1 -0
  374. package/lib/{circular-BoYo7au5.js → circular-DfSpMuY7.js} +6429 -6019
  375. package/lib/circular-DfSpMuY7.js.map +1 -0
  376. package/lib/{cn-dYga0KKN.js → cn-5-Gd1Dss.js} +531 -498
  377. package/lib/cn-5-Gd1Dss.js.map +1 -0
  378. package/lib/{createServer-B_BZ7xX8.js → createServer-4kaAMuIM.js} +2790 -2737
  379. package/lib/createServer-4kaAMuIM.js.map +1 -0
  380. package/lib/createVariantComponent-Dc0vtOvr.js +18 -0
  381. package/lib/createVariantComponent-Dc0vtOvr.js.map +1 -0
  382. package/lib/{errors-CD873hrG.js → errors-CtZTDEB6.js} +3 -3
  383. package/lib/{errors-CD873hrG.js.map → errors-CtZTDEB6.js.map} +1 -1
  384. package/lib/firebase-D286uF4e.js +7615 -0
  385. package/lib/firebase-D286uF4e.js.map +1 -0
  386. package/lib/hook-DyEn6D2Q.js +53 -0
  387. package/lib/hook-DyEn6D2Q.js.map +1 -0
  388. package/lib/{index-HNVs5cgX.js → index-B7bvsQHg.js} +853 -802
  389. package/lib/index-B7bvsQHg.js.map +1 -0
  390. package/lib/{index-BK0jKRrX.js → index-CVumYRba.js} +2 -2
  391. package/lib/{index-BK0jKRrX.js.map → index-CVumYRba.js.map} +1 -1
  392. package/lib/index-CrcNWbel.js.map +1 -1
  393. package/lib/index-DAWHN3cH.js +86 -0
  394. package/lib/index-DAWHN3cH.js.map +1 -0
  395. package/lib/index.esm-BYObtETB.js.map +1 -1
  396. package/lib/index.esm-BkpWrvLZ.js +34 -0
  397. package/lib/index.esm-BkpWrvLZ.js.map +1 -0
  398. package/lib/{index.esm-BnYHxCYC.js → index.esm-Ca5zvoff.js} +2 -2
  399. package/lib/{index.esm-BnYHxCYC.js.map → index.esm-Ca5zvoff.js.map} +1 -1
  400. package/lib/{invariant-Bm-FVUQE.js → invariant-B_t_F2s_.js} +4 -4
  401. package/lib/invariant-B_t_F2s_.js.map +1 -0
  402. package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
  403. package/lib/{mutation-BSU0xu4m.js → mutation-B7eFBLZY.js} +70 -44
  404. package/lib/mutation-B7eFBLZY.js.map +1 -0
  405. package/lib/ui/Accordion.js +1 -1
  406. package/lib/ui/ActionButton.js +2 -2
  407. package/lib/ui/Alert.js +32 -20
  408. package/lib/ui/Alert.js.map +1 -1
  409. package/lib/ui/AlertDialog.js +1 -1
  410. package/lib/ui/Badge.js +1 -1
  411. package/lib/ui/Breadcrumb.js +1 -1
  412. package/lib/ui/Button.js +27 -25
  413. package/lib/ui/Button.js.map +1 -1
  414. package/lib/ui/ButtonGroup.js +77 -0
  415. package/lib/ui/ButtonGroup.js.map +1 -0
  416. package/lib/ui/Callout.js +1 -1
  417. package/lib/ui/Card.js +1 -1
  418. package/lib/ui/Carousel.js +1 -1
  419. package/lib/ui/Carousel.js.map +1 -1
  420. package/lib/ui/Checkbox.js +1 -1
  421. package/lib/ui/CodeBlock.js +1 -1
  422. package/lib/ui/Command.js +5 -5
  423. package/lib/ui/Command.js.map +1 -1
  424. package/lib/ui/Dialog.js +1 -1
  425. package/lib/ui/Drawer.js +3 -3
  426. package/lib/ui/DropdownMenu.js +227 -140
  427. package/lib/ui/DropdownMenu.js.map +1 -1
  428. package/lib/ui/EmbeddedCodeBlock.js +1 -1
  429. package/lib/ui/Form.js +1 -1
  430. package/lib/ui/Frame.js +1 -1
  431. package/lib/ui/HoverCard.js +1 -1
  432. package/lib/ui/Input.js +1 -1
  433. package/lib/ui/InputGroup.js +155 -0
  434. package/lib/ui/InputGroup.js.map +1 -0
  435. package/lib/ui/Item.js +1 -1
  436. package/lib/ui/Kbd.js +32 -0
  437. package/lib/ui/Kbd.js.map +1 -0
  438. package/lib/ui/Label.js +1 -1
  439. package/lib/ui/NativeSelect.js +1 -1
  440. package/lib/ui/Pagination.js +1 -1
  441. package/lib/ui/Popover.js +1 -1
  442. package/lib/ui/Progress.js +1 -1
  443. package/lib/ui/RadioGroup.js +1 -1
  444. package/lib/ui/ScrollArea.js +1 -1
  445. package/lib/ui/Secret.js +3 -3
  446. package/lib/ui/Secret.js.map +1 -1
  447. package/lib/ui/Separator.js +1 -1
  448. package/lib/ui/Skeleton.js +1 -1
  449. package/lib/ui/Slider.js +1 -1
  450. package/lib/ui/Switch.js +1 -1
  451. package/lib/ui/SyntaxHighlight.js +3 -3
  452. package/lib/ui/Tabs.js +1 -1
  453. package/lib/ui/Textarea.js +1 -1
  454. package/lib/ui/Toggle.js +1 -1
  455. package/lib/ui/ToggleGroup.js +1 -1
  456. package/lib/ui/Value.js +1 -1
  457. package/lib/ui/util.js +1 -1
  458. package/lib/useExposedProps-CzTDfXfq.js +30 -0
  459. package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
  460. package/lib/useMutation-CErliDZ9.js +119 -0
  461. package/lib/useMutation-CErliDZ9.js.map +1 -0
  462. package/lib/useQuery-ht7aWJ3S.js +1212 -0
  463. package/lib/useQuery-ht7aWJ3S.js.map +1 -0
  464. package/lib/useSuspenseQuery-DQH4Bmc2.js +18 -0
  465. package/lib/useSuspenseQuery-DQH4Bmc2.js.map +1 -0
  466. package/lib/zudoku.__internal.js +1540 -1553
  467. package/lib/zudoku.__internal.js.map +1 -1
  468. package/lib/zudoku.auth-auth0.js +19 -18
  469. package/lib/zudoku.auth-auth0.js.map +1 -1
  470. package/lib/zudoku.auth-azureb2c.js +14 -13
  471. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  472. package/lib/zudoku.auth-clerk.js +52 -75
  473. package/lib/zudoku.auth-clerk.js.map +1 -1
  474. package/lib/zudoku.auth-firebase.js +10 -0
  475. package/lib/zudoku.auth-firebase.js.map +1 -0
  476. package/lib/zudoku.auth-openid.js +8 -7
  477. package/lib/zudoku.auth-openid.js.map +1 -1
  478. package/lib/zudoku.auth-supabase.js +31 -40
  479. package/lib/zudoku.auth-supabase.js.map +1 -1
  480. package/lib/zudoku.components.js +29 -25
  481. package/lib/zudoku.components.js.map +1 -1
  482. package/lib/zudoku.hooks.js +20 -20
  483. package/lib/zudoku.hooks.js.map +1 -1
  484. package/lib/zudoku.mermaid.js +11 -0
  485. package/lib/zudoku.mermaid.js.map +1 -0
  486. package/lib/zudoku.plugin-api-catalog.js +42 -37
  487. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  488. package/lib/zudoku.plugin-api-keys.js +617 -550
  489. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  490. package/lib/zudoku.plugin-custom-pages.js +1 -1
  491. package/lib/zudoku.plugin-markdown.js +1 -1
  492. package/lib/zudoku.plugin-openapi.js +3 -3
  493. package/lib/zudoku.plugin-redirect.js +1 -1
  494. package/lib/zudoku.plugin-search-pagefind.js +186 -226
  495. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  496. package/lib/zudoku.plugins.js +9 -8
  497. package/lib/zudoku.plugins.js.map +1 -1
  498. package/lib/zudoku.react-query.js +441 -0
  499. package/lib/zudoku.react-query.js.map +1 -0
  500. package/lib/zudoku.router.js +1130 -1404
  501. package/lib/zudoku.router.js.map +1 -1
  502. package/package.json +63 -37
  503. package/src/app/defaultTheme.css +4 -0
  504. package/src/app/main.css +2 -0
  505. package/src/app/main.tsx +1 -1
  506. package/src/app/sentry.ts +1 -1
  507. package/src/lib/auth/issuer.ts +1 -1
  508. package/src/lib/authentication/authentication.ts +8 -2
  509. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  510. package/src/lib/authentication/components/SignIn.tsx +5 -2
  511. package/src/lib/authentication/components/SignUp.tsx +5 -2
  512. package/src/lib/authentication/hook.ts +16 -0
  513. package/src/lib/authentication/providers/auth0.tsx +21 -10
  514. package/src/lib/authentication/providers/clerk.tsx +0 -26
  515. package/src/lib/authentication/providers/firebase.tsx +98 -6
  516. package/src/lib/authentication/providers/supabase.tsx +6 -15
  517. package/src/lib/authentication/ui/EmailVerificationUi.tsx +129 -0
  518. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +181 -39
  519. package/src/lib/authentication/utils/relativeRedirectUrl.ts +12 -0
  520. package/src/lib/components/Bootstrap.tsx +1 -4
  521. package/src/lib/components/Mermaid.tsx +68 -0
  522. package/src/lib/components/MobileTopNavigation.tsx +16 -9
  523. package/src/lib/components/PagefindSearchMeta.tsx +14 -0
  524. package/src/lib/components/Pagination.tsx +4 -5
  525. package/src/lib/components/Slot.test.tsx +1 -1
  526. package/src/lib/components/TopNavigation.tsx +26 -8
  527. package/src/lib/components/Zudoku.tsx +22 -21
  528. package/src/lib/components/context/ZudokuContext.ts +33 -12
  529. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  530. package/src/lib/components/context/ZudokuReactContext.tsx +17 -0
  531. package/src/lib/components/index.ts +19 -35
  532. package/src/lib/components/navigation/Navigation.tsx +4 -3
  533. package/src/lib/components/navigation/NavigationCategory.tsx +9 -0
  534. package/src/lib/components/navigation/NavigationFilterContext.tsx +28 -0
  535. package/src/lib/components/navigation/NavigationFilterInput.tsx +35 -0
  536. package/src/lib/components/navigation/NavigationItem.tsx +26 -4
  537. package/src/lib/components/navigation/NavigationWrapper.tsx +1 -1
  538. package/src/lib/components/navigation/utils.ts +44 -2
  539. package/src/lib/core/RouteGuard.tsx +30 -24
  540. package/src/lib/core/ZudokuContext.ts +7 -1
  541. package/src/lib/core/__internal.tsx +2 -0
  542. package/src/lib/core/plugins.ts +27 -3
  543. package/src/lib/core/react-query.ts +1 -0
  544. package/src/lib/core/transform-config.test.tsx +99 -0
  545. package/src/lib/core/transform-config.ts +67 -0
  546. package/src/lib/errors/ErrorAlert.tsx +1 -6
  547. package/src/lib/errors/ErrorMessage.tsx +38 -0
  548. package/src/lib/hooks/index.ts +7 -16
  549. package/src/lib/hooks/useEvent.test.tsx +1 -1
  550. package/src/lib/navigation/pathMatcher.test.ts +136 -0
  551. package/src/lib/navigation/pathMatcher.ts +93 -0
  552. package/src/lib/navigation/positionItems.test.ts +265 -0
  553. package/src/lib/navigation/positionItems.ts +111 -0
  554. package/src/lib/oas/graphql/circular.test.ts +221 -0
  555. package/src/lib/oas/graphql/circular.ts +31 -18
  556. package/src/lib/oas/graphql/index.ts +7 -3
  557. package/src/lib/oas/parser/index.ts +19 -6
  558. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +36 -476
  559. package/src/lib/plugins/api-keys/index.tsx +76 -32
  560. package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -0
  561. package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +67 -0
  562. package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +124 -0
  563. package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +115 -0
  564. package/src/lib/plugins/openapi/Endpoint.tsx +20 -27
  565. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +1 -1
  566. package/src/lib/plugins/openapi/OasProvider.tsx +38 -17
  567. package/src/lib/plugins/openapi/OperationList.tsx +48 -28
  568. package/src/lib/plugins/openapi/OperationListItem.tsx +5 -5
  569. package/src/lib/plugins/openapi/ParamInfos.tsx +1 -0
  570. package/src/lib/plugins/openapi/ParameterList.tsx +2 -2
  571. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +37 -15
  572. package/src/lib/plugins/openapi/SchemaList.tsx +4 -0
  573. package/src/lib/plugins/openapi/Sidecar.tsx +20 -3
  574. package/src/lib/plugins/openapi/index.tsx +16 -7
  575. package/src/lib/plugins/openapi/interfaces.ts +21 -7
  576. package/src/lib/plugins/openapi/playground/Playground.tsx +8 -4
  577. package/src/lib/plugins/openapi/playground/fileUtils.ts +4 -0
  578. package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +50 -0
  579. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +33 -17
  580. package/src/lib/plugins/openapi/schema/SchemaView.tsx +56 -43
  581. package/src/lib/plugins/openapi/schema/utils.ts +20 -6
  582. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +29 -1
  583. package/src/lib/plugins/openapi/util/getRoutes.tsx +38 -3
  584. package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +163 -0
  585. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +61 -22
  586. package/src/lib/plugins/search-pagefind/ResultList.tsx +8 -3
  587. package/src/lib/shiki.ts +21 -12
  588. package/src/lib/ui/Alert.tsx +17 -5
  589. package/src/lib/ui/Button.tsx +11 -10
  590. package/src/lib/ui/ButtonGroup.tsx +82 -0
  591. package/src/lib/ui/Command.tsx +3 -3
  592. package/src/lib/ui/DropdownMenu.tsx +226 -170
  593. package/src/lib/ui/InputGroup.tsx +168 -0
  594. package/src/lib/ui/Kbd.tsx +28 -0
  595. package/src/lib/ui/Secret.tsx +2 -2
  596. package/src/lib/util/MdxComponents.tsx +2 -0
  597. package/src/lib/util/flattenAllOf.test.ts +73 -20
  598. package/src/lib/util/flattenAllOf.ts +0 -36
  599. package/src/lib/util/flattenAllOfProcessor.ts +58 -0
  600. package/src/lib/util/invariant.ts +2 -1
  601. package/src/lib/util/readFrontmatter.ts +14 -0
  602. package/src/shiki/langs/c3.js +1 -0
  603. package/src/shiki/langs/gn.js +1 -0
  604. package/src/shiki/langs/markdown-nix.js +1 -0
  605. package/src/shiki/langs/moonbit.js +1 -0
  606. package/src/shiki/langs/openscad.js +1 -0
  607. package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
  608. package/src/zuplo/enrich-with-zuplo.ts +254 -0
  609. package/src/zuplo/policy-types.ts +46 -0
  610. package/src/zuplo/with-zuplo-processors.ts +35 -0
  611. package/src/zuplo/with-zuplo.ts +14 -0
  612. package/dist/vite/create-pagefind-index.d.ts +0 -4
  613. package/dist/vite/create-pagefind-index.js +0 -12
  614. package/dist/vite/create-pagefind-index.js.map +0 -1
  615. package/lib/Button-B3ucvvQw.js +0 -52
  616. package/lib/Button-B3ucvvQw.js.map +0 -1
  617. package/lib/Command-CUcrW3qs.js.map +0 -1
  618. package/lib/DropdownMenu-BZ2NKQ3K.js +0 -126
  619. package/lib/DropdownMenu-BZ2NKQ3K.js.map +0 -1
  620. package/lib/ErrorAlert-_1Zmhr68.js.map +0 -1
  621. package/lib/MdxPage-B2t1EShN.js +0 -240
  622. package/lib/MdxPage-B2t1EShN.js.map +0 -1
  623. package/lib/OAuthErrorPage-DnKnq4xK.js.map +0 -1
  624. package/lib/OasProvider-BhuIkD4Z.js +0 -36
  625. package/lib/OasProvider-BhuIkD4Z.js.map +0 -1
  626. package/lib/OperationList-D8EDc9v7.js.map +0 -1
  627. package/lib/Pagination-hk-llhpw.js +0 -37
  628. package/lib/Pagination-hk-llhpw.js.map +0 -1
  629. package/lib/RouteGuard-Brz95MSt.js +0 -77
  630. package/lib/RouteGuard-Brz95MSt.js.map +0 -1
  631. package/lib/RouterError-CMaIfdjb.js +0 -42
  632. package/lib/RouterError-CMaIfdjb.js.map +0 -1
  633. package/lib/SchemaList-E6lF7dID.js.map +0 -1
  634. package/lib/SchemaView-CIv-OXgv.js +0 -572
  635. package/lib/SchemaView-CIv-OXgv.js.map +0 -1
  636. package/lib/Select-DFRCS31-.js +0 -399
  637. package/lib/Select-DFRCS31-.js.map +0 -1
  638. package/lib/SignUp-sGYAsj2K.js +0 -50
  639. package/lib/SignUp-sGYAsj2K.js.map +0 -1
  640. package/lib/SyntaxHighlight-C19vH0V_.js.map +0 -1
  641. package/lib/ZudokuContext-BUZ5hkWB.js +0 -1508
  642. package/lib/ZudokuContext-BUZ5hkWB.js.map +0 -1
  643. package/lib/chunk-PVWAREVJ-BMhpCH5D.js +0 -7965
  644. package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +0 -1
  645. package/lib/circular-BoYo7au5.js.map +0 -1
  646. package/lib/cn-dYga0KKN.js.map +0 -1
  647. package/lib/createServer-B_BZ7xX8.js.map +0 -1
  648. package/lib/hook-CMeoxziF.js +0 -40
  649. package/lib/hook-CMeoxziF.js.map +0 -1
  650. package/lib/index-HNVs5cgX.js.map +0 -1
  651. package/lib/index-pMMX55GH.js +0 -1059
  652. package/lib/index-pMMX55GH.js.map +0 -1
  653. package/lib/invariant-Bm-FVUQE.js.map +0 -1
  654. package/lib/mutation-BSU0xu4m.js.map +0 -1
  655. package/lib/useExposedProps-U3pmsHaG.js +0 -113
  656. package/lib/useExposedProps-U3pmsHaG.js.map +0 -1
@@ -1,39 +1,45 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
- import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as kn, PlusCircleIcon as Qe, XIcon as Rt, CheckIcon as Et, PaperclipIcon as me, TrashIcon as Rn, FileInput as En, ScanTextIcon as gt, Grid2x2PlusIcon as xt, ChevronDownIcon as In, TableOfContentsIcon as Dn, LockIcon as Fn, CircleAlertIcon as zn, Circle as Vn, Unlink2Icon as Bn, CornerDownRightIcon as _n, MinusCircleIcon as yt, 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, b as ts, d as ns, N as ss, aL as rs, m as vt } from "./chunk-PVWAREVJ-BMhpCH5D.js";
4
- import { Button as It } from "./ui/Button.js";
5
- import { J as Ke, K as Xe, L as Dt, l as as, M as os, O as is, j as V, b as ls } from "./ZudokuContext-BUZ5hkWB.js";
6
- import { Z as cs } from "./invariant-Bm-FVUQE.js";
7
- import * as Q from "react";
8
- import { createContext as Ft, use as ds, useRef as R, useEffect as G, useMemo as zt, useCallback as D, startTransition as us, useState as E, Fragment as le, useLayoutEffect as ms, useTransition as ps, useContext as hs } from "react";
9
- import { VisuallyHidden as fs } from "@radix-ui/react-visually-hidden";
10
- import { useAuth as gs } from "./zudoku.hooks.js";
11
- import { B as q } from "./Button-B3ucvvQw.js";
12
- import { D as Ze, a as Ye, c as et, d as Vt, e as Bt, g as xs } from "./Dialog-BQciPiHN.js";
13
- import { B as he, S as ys, b as vs } from "./index-pMMX55GH.js";
14
- import { S as _t, c as qt, d as Mt, e as Ut, g as Te, i as bs, A as js, a as Cs, b as Ns, u as Ss } from "./Select-DFRCS31-.js";
15
- import { u as ae, b as Gt, C as bt, a as ws, F as Ts } from "./index.esm-BYObtETB.js";
16
- import * as tt from "@radix-ui/react-collapsible";
17
- import { h as jt, i as Ct, j as Nt, k as $s, g as As } from "./ErrorAlert-_1Zmhr68.js";
18
- import { c as w } from "./cn-dYga0KKN.js";
19
- import { u as Ps } from "./useCopyToClipboard-B_085nfO.js";
20
- import { u as Os } from "./useLatest-hmRS46UF.js";
21
- import { D as Ht, a as Qt, b as Jt, d as Ls, e as ks, f as Rs, c as $e } from "./DropdownMenu-BZ2NKQ3K.js";
22
- import { Slot as Es } from "@radix-ui/react-slot";
23
- import * as St from "@radix-ui/react-checkbox";
24
- import * as Ae from "@radix-ui/react-popover";
25
- import { PopoverAnchor as Is } from "@radix-ui/react-popover";
26
- import { P as Ds } from "./index-CrcNWbel.js";
27
- import { f as Fs, g as zs, C as Vs, b as Bs } from "./Command-CUcrW3qs.js";
28
- import { C as _s } from "./Card-KFniaZn5.js";
29
- import * as Wt from "@radix-ui/react-label";
30
- import { c as qs } from "./index-DI5SPFK9.js";
31
- import * as fe from "@radix-ui/react-radio-group";
32
- import { z as Ms } from "./useExposedProps-U3pmsHaG.js";
2
+ import { ChevronsDownUpIcon as kn, ChevronsUpDownIcon as En, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as me, TrashIcon as Rn, FileInput as In, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as Dn, TableOfContentsIcon as Fn, LockIcon as zn, CircleAlertIcon as Vn, Circle as Bn, Unlink2Icon as _n, DownloadIcon as Ft, CornerDownRightIcon as qn, MinusCircleIcon as bt, CornerDownLeftIcon as Un, SquareCodeIcon as Mn, EyeOffIcon as Gn, EyeIcon as Hn, UnplugIcon as Qn, SendIcon as Jn, CopyIcon as Wn, IdCardLanyardIcon as Xn, ShapesIcon as Kn, 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-EPOLDU6W-C6C8jAwd.js";
4
+ import { Button as K } from "./ui/Button.js";
5
+ import { e as as, j as V } from "./ZudokuContext-LPkD2SQs.js";
6
+ import { Z as os } from "./invariant-B_t_F2s_.js";
7
+ import * as xe from "react";
8
+ import { createContext as zt, use as is, useRef as E, useEffect as U, useMemo as Vt, useCallback as D, startTransition as ls, useState as k, Fragment as le, useLayoutEffect as cs, useTransition as ds, useContext as us } from "react";
9
+ import { VisuallyHidden as ms } from "@radix-ui/react-visually-hidden";
10
+ import { z as ps } from "./index-DAWHN3cH.js";
11
+ import { u as hs } from "./hook-DyEn6D2Q.js";
12
+ import { c as Ze, p as Ye, a as Bt, s as fs } from "./ZudokuReactContext-DGJAP1sN.js";
13
+ import { B } from "./Button-GUVe7pmt.js";
14
+ import { D as et, a as tt, c as nt, d as _t, e as qt, g as gs } from "./Dialog-hlvmmQ_c.js";
15
+ import { j as Ct, k as Nt, l as wt, m as xs, g as ys } from "./Zudoku-GbutmWzP.js";
16
+ import { u as vs } from "./useMutation-CErliDZ9.js";
17
+ import { u as oe, b as Ut, C as St, a as bs, F as js } from "./index.esm-BYObtETB.js";
18
+ import * as st from "@radix-ui/react-collapsible";
19
+ import { a as Mt, b as Gt, c as Ht, d as Qt, f as Ae, S as Cs, h as Ns } from "./Secret-CyhXSA8i.js";
20
+ import { c as S } from "./cn-5-Gd1Dss.js";
21
+ import { u as ws } from "./useCopyToClipboard-B_085nfO.js";
22
+ import { u as Ss } from "./useLatest-hmRS46UF.js";
23
+ import { D as Jt, a as Wt, b as Xt, d as Ts, e as As, f as Os, c as Oe } from "./DropdownMenu-DN0jNrjj.js";
24
+ import { I as Ps } from "./Input-Cx-GeKoF.js";
25
+ import { c as ye } from "./createVariantComponent-Dc0vtOvr.js";
26
+ import * as Tt from "@radix-ui/react-checkbox";
27
+ import * as Pe from "@radix-ui/react-popover";
28
+ import { PopoverAnchor as $s } from "@radix-ui/react-popover";
29
+ import { P as Ls } from "./index-CrcNWbel.js";
30
+ import { f as ks, g as Es, C as Rs, b as Is } from "./Command-N6VujV30.js";
31
+ import { C as Ds } from "./Card-DCdq37aA.js";
32
+ import * as Kt from "@radix-ui/react-label";
33
+ import { c as Fs } from "./index-DI5SPFK9.js";
34
+ import * as he from "@radix-ui/react-radio-group";
35
+ import { S as zs } from "./Spinner-CI6bRyZw.js";
36
+ import { A as Vs, a as Bs, b as _s } from "./Mermaid-Chx5BPHn.js";
37
+ import { g as qs } from "./useQuery-ht7aWJ3S.js";
38
+ import { u as Us } from "./useSuspenseQuery-DQH4Bmc2.js";
33
39
  let _e;
34
- const Us = (e) => {
40
+ const Ms = (e) => {
35
41
  if (e.errors?.[0])
36
- throw new cs(e.errors[0].message, {
42
+ throw new os(e.errors[0].message, {
37
43
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
38
44
  });
39
45
  };
@@ -41,7 +47,7 @@ class Gs {
41
47
  constructor(n) {
42
48
  this.config = n;
43
49
  }
44
- #e = async () => (_e || (_e = import("./createServer-B_BZ7xX8.js").then(
50
+ #e = async () => (_e || (_e = import("./createServer-4kaAMuIM.js").then(
45
51
  (n) => n.createServer(this.config)
46
52
  )), _e);
47
53
  #t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
@@ -54,7 +60,7 @@ class Gs {
54
60
  if (!r.ok)
55
61
  throw new Error("Network response was not ok");
56
62
  const o = await r.json();
57
- return Us(o), o.data;
63
+ return Ms(o), o.data;
58
64
  };
59
65
  }
60
66
  function qe(e, n) {
@@ -71,7 +77,7 @@ function Qs(e, n) {
71
77
  );
72
78
  }
73
79
  const Js = /\r\n|[\n\r]/g;
74
- function Je(e, n) {
80
+ function We(e, n) {
75
81
  let s = 0, a = 1;
76
82
  for (const r of e.body.matchAll(Js)) {
77
83
  if (typeof r.index == "number" || Qs(!1), r.index >= n)
@@ -84,39 +90,39 @@ function Je(e, n) {
84
90
  };
85
91
  }
86
92
  function Ws(e) {
87
- return Kt(
93
+ return Zt(
88
94
  e.source,
89
- Je(e.source, e.start)
95
+ We(e.source, e.start)
90
96
  );
91
97
  }
92
- function Kt(e, n) {
98
+ function Zt(e, n) {
93
99
  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), h = d[r];
95
- if (h.length > 120) {
96
- const x = Math.floor(l / 80), f = l % 80, v = [];
97
- for (let u = 0; u < h.length; u += 80)
98
- v.push(h.slice(u, u + 80));
99
- return m + wt([
100
+ `, d = a.split(/\r\n|[\n\r]/g), f = d[r];
101
+ if (f.length > 120) {
102
+ const x = Math.floor(l / 80), p = l % 80, v = [];
103
+ for (let u = 0; u < f.length; u += 80)
104
+ v.push(f.slice(u, u + 80));
105
+ return m + At([
100
106
  [`${i} |`, v[0]],
101
107
  ...v.slice(1, x + 1).map((u) => ["|", u]),
102
- ["|", "^".padStart(f)],
108
+ ["|", "^".padStart(p)],
103
109
  ["|", v[x + 1]]
104
110
  ]);
105
111
  }
106
- return m + wt([
112
+ return m + At([
107
113
  // Lines specified like this: ["prefix", "string"],
108
114
  [`${i - 1} |`, d[r - 1]],
109
- [`${i} |`, h],
115
+ [`${i} |`, f],
110
116
  ["|", "^".padStart(l)],
111
117
  [`${i + 1} |`, d[r + 1]]
112
118
  ]);
113
119
  }
114
- function wt(e) {
120
+ function At(e) {
115
121
  const n = e.filter(([a, r]) => r !== void 0), s = Math.max(...n.map(([a]) => a.length));
116
122
  return n.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
117
123
  `);
118
124
  }
119
- function Ks(e) {
125
+ function Xs(e) {
120
126
  const n = e[0];
121
127
  return n == null || "kind" in n || "length" in n ? {
122
128
  nodes: n,
@@ -127,7 +133,7 @@ function Ks(e) {
127
133
  extensions: e[5]
128
134
  } : n;
129
135
  }
130
- class nt extends Error {
136
+ class rt extends Error {
131
137
  /**
132
138
  * An array of `{ line, column }` locations within the source GraphQL document
133
139
  * which correspond to this error.
@@ -168,18 +174,18 @@ class nt extends Error {
168
174
  */
169
175
  constructor(n, ...s) {
170
176
  var a, r, o;
171
- const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: h } = Ks(s);
172
- super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = Tt(
177
+ const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Xs(s);
178
+ super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = Ot(
173
179
  Array.isArray(i) ? i : i ? [i] : void 0
174
180
  );
175
- const x = Tt(
181
+ const x = Ot(
176
182
  (a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
177
183
  );
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) => Je(c, v)) : x?.map((v) => Je(v.source, v.start));
179
- const f = Hs(
184
+ 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));
185
+ const p = Hs(
180
186
  d?.extensions
181
187
  ) ? d?.extensions : void 0;
182
- this.extensions = (o = h ?? f) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
188
+ this.extensions = (o = f ?? p) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
183
189
  message: {
184
190
  writable: !0,
185
191
  enumerable: !0
@@ -203,7 +209,7 @@ class nt extends Error {
203
209
  value: d.stack,
204
210
  writable: !0,
205
211
  configurable: !0
206
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, nt) : Object.defineProperty(this, "stack", {
212
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, rt) : Object.defineProperty(this, "stack", {
207
213
  value: Error().stack,
208
214
  writable: !0,
209
215
  configurable: !0
@@ -223,7 +229,7 @@ class nt extends Error {
223
229
  for (const s of this.locations)
224
230
  n += `
225
231
 
226
- ` + Kt(this.source, s);
232
+ ` + Zt(this.source, s);
227
233
  return n;
228
234
  }
229
235
  toJSON() {
@@ -233,16 +239,16 @@ class nt extends Error {
233
239
  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
240
  }
235
241
  }
236
- function Tt(e) {
242
+ function Ot(e) {
237
243
  return e === void 0 || e.length === 0 ? void 0 : e;
238
244
  }
239
245
  function F(e, n, s) {
240
- return new nt(`Syntax Error: ${s}`, {
246
+ return new rt(`Syntax Error: ${s}`, {
241
247
  source: e,
242
248
  positions: [n]
243
249
  });
244
250
  }
245
- class Ka {
251
+ class so {
246
252
  /**
247
253
  * The character offset at which this Node begins.
248
254
  */
@@ -271,7 +277,7 @@ class Ka {
271
277
  };
272
278
  }
273
279
  }
274
- class Xt {
280
+ class Yt {
275
281
  /**
276
282
  * The kind of Token.
277
283
  */
@@ -313,16 +319,23 @@ class Xt {
313
319
  };
314
320
  }
315
321
  }
316
- const Xs = {
322
+ const Ks = {
317
323
  Name: [],
318
324
  Document: ["definitions"],
319
325
  OperationDefinition: [
326
+ "description",
320
327
  "name",
321
328
  "variableDefinitions",
322
329
  "directives",
323
330
  "selectionSet"
324
331
  ],
325
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
332
+ VariableDefinition: [
333
+ "description",
334
+ "variable",
335
+ "type",
336
+ "defaultValue",
337
+ "directives"
338
+ ],
326
339
  Variable: ["name"],
327
340
  SelectionSet: ["selections"],
328
341
  Field: ["alias", "name", "arguments", "directives", "selectionSet"],
@@ -330,6 +343,7 @@ const Xs = {
330
343
  FragmentSpread: ["name", "directives"],
331
344
  InlineFragment: ["typeCondition", "directives", "selectionSet"],
332
345
  FragmentDefinition: [
346
+ "description",
333
347
  "name",
334
348
  // Note: fragment variable definitions are deprecated and will removed in v17.0.0
335
349
  "variableDefinitions",
@@ -386,31 +400,36 @@ const Xs = {
386
400
  InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
387
401
  UnionTypeExtension: ["name", "directives", "types"],
388
402
  EnumTypeExtension: ["name", "directives", "values"],
389
- InputObjectTypeExtension: ["name", "directives", "fields"]
390
- }, Zs = new Set(Object.keys(Xs));
391
- function Xa(e) {
403
+ InputObjectTypeExtension: ["name", "directives", "fields"],
404
+ TypeCoordinate: ["name"],
405
+ MemberCoordinate: ["name", "memberName"],
406
+ ArgumentCoordinate: ["name", "fieldName", "argumentName"],
407
+ DirectiveCoordinate: ["name"],
408
+ DirectiveArgumentCoordinate: ["name", "argumentName"]
409
+ }, Zs = new Set(Object.keys(Ks));
410
+ function ro(e) {
392
411
  const n = e?.kind;
393
412
  return typeof n == "string" && Zs.has(n);
394
413
  }
395
- var $t;
414
+ var Pt;
396
415
  (function(e) {
397
416
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
398
- })($t || ($t = {}));
399
- function We(e) {
417
+ })(Pt || (Pt = {}));
418
+ function Xe(e) {
400
419
  return e === 9 || e === 32;
401
420
  }
402
- function ge(e) {
421
+ function fe(e) {
403
422
  return e >= 48 && e <= 57;
404
423
  }
405
- function Zt(e) {
424
+ function en(e) {
406
425
  return e >= 97 && e <= 122 || // A-Z
407
426
  e >= 65 && e <= 90;
408
427
  }
409
- function Yt(e) {
410
- return Zt(e) || e === 95;
428
+ function tn(e) {
429
+ return en(e) || e === 95;
411
430
  }
412
431
  function Ys(e) {
413
- return Zt(e) || ge(e) || e === 95;
432
+ return en(e) || fe(e) || e === 95;
414
433
  }
415
434
  function er(e) {
416
435
  var n;
@@ -427,22 +446,22 @@ function er(e) {
427
446
  }
428
447
  function tr(e) {
429
448
  let n = 0;
430
- for (; n < e.length && We(e.charCodeAt(n)); )
449
+ for (; n < e.length && Xe(e.charCodeAt(n)); )
431
450
  ++n;
432
451
  return n;
433
452
  }
434
453
  function nr(e, n) {
435
- 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((f) => f.length === 0 || We(f.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
454
+ 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((p) => p.length === 0 || Xe(p.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
436
455
  (!r || e.length > 70 || m || o || i);
437
- let h = "";
438
- const x = r && We(e.charCodeAt(0));
439
- return (d && !x || o) && (h += `
440
- `), h += s, (d || m) && (h += `
441
- `), '"""' + h + '"""';
456
+ let f = "";
457
+ const x = r && Xe(e.charCodeAt(0));
458
+ return (d && !x || o) && (f += `
459
+ `), f += s, (d || m) && (f += `
460
+ `), '"""' + f + '"""';
442
461
  }
443
462
  var b;
444
463
  (function(e) {
445
- e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
464
+ 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";
446
465
  })(b || (b = {}));
447
466
  class sr {
448
467
  /**
@@ -458,7 +477,7 @@ class sr {
458
477
  * The character offset at which the current line begins.
459
478
  */
460
479
  constructor(n) {
461
- const s = new Xt(b.SOF, 0, 0, 0, 0);
480
+ const s = new Yt(b.SOF, 0, 0, 0, 0);
462
481
  this.source = n, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
463
482
  }
464
483
  get [Symbol.toStringTag]() {
@@ -489,21 +508,21 @@ class sr {
489
508
  }
490
509
  }
491
510
  function rr(e) {
492
- return e === b.BANG || e === b.DOLLAR || e === b.AMP || e === b.PAREN_L || e === b.PAREN_R || 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;
511
+ 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;
493
512
  }
494
- function oe(e) {
513
+ function ie(e) {
495
514
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
496
515
  }
497
- function Oe(e, n) {
498
- return en(e.charCodeAt(n)) && tn(e.charCodeAt(n + 1));
516
+ function Le(e, n) {
517
+ return nn(e.charCodeAt(n)) && sn(e.charCodeAt(n + 1));
499
518
  }
500
- function en(e) {
519
+ function nn(e) {
501
520
  return e >= 55296 && e <= 56319;
502
521
  }
503
- function tn(e) {
522
+ function sn(e) {
504
523
  return e >= 56320 && e <= 57343;
505
524
  }
506
- function X(e, n) {
525
+ function Z(e, n) {
507
526
  const s = e.source.body.codePointAt(n);
508
527
  if (s === void 0)
509
528
  return b.EOF;
@@ -515,7 +534,7 @@ function X(e, n) {
515
534
  }
516
535
  function P(e, n, s, a, r) {
517
536
  const o = e.line, i = 1 + s - e.lineStart;
518
- return new Xt(n, s, a, o, i, r);
537
+ return new Yt(n, s, a, o, i, r);
519
538
  }
520
539
  function ar(e, n) {
521
540
  const s = e.source.body, a = s.length;
@@ -601,14 +620,14 @@ function ar(e, n) {
601
620
  case 34:
602
621
  return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? mr(e, r) : lr(e, r);
603
622
  }
604
- if (ge(o) || o === 45)
623
+ if (fe(o) || o === 45)
605
624
  return ir(e, r, o);
606
- if (Yt(o))
625
+ if (tn(o))
607
626
  return pr(e, r);
608
627
  throw F(
609
628
  e.source,
610
629
  r,
611
- 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)}.`
630
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ie(o) || Le(s, r) ? `Unexpected character: ${Z(e, r)}.` : `Invalid character: ${Z(e, r)}.`
612
631
  );
613
632
  }
614
633
  return P(e, b.EOF, a, a);
@@ -620,9 +639,9 @@ function or(e, n) {
620
639
  const o = s.charCodeAt(r);
621
640
  if (o === 10 || o === 13)
622
641
  break;
623
- if (oe(o))
642
+ if (ie(o))
624
643
  ++r;
625
- else if (Oe(s, r))
644
+ else if (Le(s, r))
626
645
  r += 2;
627
646
  else
628
647
  break;
@@ -639,22 +658,22 @@ function ir(e, n, s) {
639
658
  const a = e.source.body;
640
659
  let r = n, o = s, i = !1;
641
660
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
642
- if (o = a.charCodeAt(++r), ge(o))
661
+ if (o = a.charCodeAt(++r), fe(o))
643
662
  throw F(
644
663
  e.source,
645
664
  r,
646
- `Invalid number, unexpected digit after 0: ${X(
665
+ `Invalid number, unexpected digit after 0: ${Z(
647
666
  e,
648
667
  r
649
668
  )}.`
650
669
  );
651
670
  } else
652
- r = Me(e, r, o), o = a.charCodeAt(r);
653
- 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 || Yt(o))
671
+ r = Ue(e, r, o), o = a.charCodeAt(r);
672
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ue(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 = Ue(e, r, o), o = a.charCodeAt(r)), o === 46 || tn(o))
654
673
  throw F(
655
674
  e.source,
656
675
  r,
657
- `Invalid number, expected digit but got: ${X(
676
+ `Invalid number, expected digit but got: ${Z(
658
677
  e,
659
678
  r
660
679
  )}.`
@@ -667,19 +686,19 @@ function ir(e, n, s) {
667
686
  a.slice(n, r)
668
687
  );
669
688
  }
670
- function Me(e, n, s) {
671
- if (!ge(s))
689
+ function Ue(e, n, s) {
690
+ if (!fe(s))
672
691
  throw F(
673
692
  e.source,
674
693
  n,
675
- `Invalid number, expected digit but got: ${X(
694
+ `Invalid number, expected digit but got: ${Z(
676
695
  e,
677
696
  n
678
697
  )}.`
679
698
  );
680
699
  const a = e.source.body;
681
700
  let r = n + 1;
682
- for (; ge(a.charCodeAt(r)); )
701
+ for (; fe(a.charCodeAt(r)); )
683
702
  ++r;
684
703
  return r;
685
704
  }
@@ -698,15 +717,15 @@ function lr(e, n) {
698
717
  }
699
718
  if (c === 10 || c === 13)
700
719
  break;
701
- if (oe(c))
720
+ if (ie(c))
702
721
  ++r;
703
- else if (Oe(s, r))
722
+ else if (Le(s, r))
704
723
  r += 2;
705
724
  else
706
725
  throw F(
707
726
  e.source,
708
727
  r,
709
- `Invalid character within String: ${X(
728
+ `Invalid character within String: ${Z(
710
729
  e,
711
730
  r
712
731
  )}.`
@@ -720,7 +739,7 @@ function cr(e, n) {
720
739
  for (; r < 12; ) {
721
740
  const o = s.charCodeAt(n + r++);
722
741
  if (o === 125) {
723
- if (r < 5 || !oe(a))
742
+ if (r < 5 || !ie(a))
724
743
  break;
725
744
  return {
726
745
  value: String.fromCodePoint(a),
@@ -740,15 +759,15 @@ function cr(e, n) {
740
759
  );
741
760
  }
742
761
  function dr(e, n) {
743
- const s = e.source.body, a = At(s, n + 2);
744
- if (oe(a))
762
+ const s = e.source.body, a = $t(s, n + 2);
763
+ if (ie(a))
745
764
  return {
746
765
  value: String.fromCodePoint(a),
747
766
  size: 6
748
767
  };
749
- if (en(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
750
- const r = At(s, n + 8);
751
- if (tn(r))
768
+ if (nn(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
769
+ const r = $t(s, n + 8);
770
+ if (sn(r))
752
771
  return {
753
772
  value: String.fromCodePoint(a, r),
754
773
  size: 12
@@ -760,7 +779,7 @@ function dr(e, n) {
760
779
  `Invalid Unicode escape sequence: "${s.slice(n, n + 6)}".`
761
780
  );
762
781
  }
763
- function At(e, n) {
782
+ function $t(e, n) {
764
783
  return ce(e.charCodeAt(n)) << 12 | ce(e.charCodeAt(n + 1)) << 8 | ce(e.charCodeAt(n + 2)) << 4 | ce(e.charCodeAt(n + 3));
765
784
  }
766
785
  function ce(e) {
@@ -847,15 +866,15 @@ function mr(e, n) {
847
866
  c += s.slice(i, o), l.push(c), m === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
848
867
  continue;
849
868
  }
850
- if (oe(m))
869
+ if (ie(m))
851
870
  ++o;
852
- else if (Oe(s, o))
871
+ else if (Le(s, o))
853
872
  o += 2;
854
873
  else
855
874
  throw F(
856
875
  e.source,
857
876
  o,
858
- `Invalid character within String: ${X(
877
+ `Invalid character within String: ${Z(
859
878
  e,
860
879
  o
861
880
  )}.`
@@ -881,11 +900,11 @@ function pr(e, n) {
881
900
  s.slice(n, r)
882
901
  );
883
902
  }
884
- const hr = 10, nn = 2;
885
- function sn(e) {
886
- return Le(e, []);
903
+ const hr = 10, rn = 2;
904
+ function an(e) {
905
+ return ke(e, []);
887
906
  }
888
- function Le(e, n) {
907
+ function ke(e, n) {
889
908
  switch (typeof e) {
890
909
  case "string":
891
910
  return JSON.stringify(e);
@@ -906,7 +925,7 @@ function fr(e, n) {
906
925
  if (gr(e)) {
907
926
  const a = e.toJSON();
908
927
  if (a !== e)
909
- return typeof a == "string" ? a : Le(a, s);
928
+ return typeof a == "string" ? a : ke(a, s);
910
929
  } else if (Array.isArray(e))
911
930
  return yr(e, s);
912
931
  return xr(e, s);
@@ -916,18 +935,18 @@ function gr(e) {
916
935
  }
917
936
  function xr(e, n) {
918
937
  const s = Object.entries(e);
919
- return s.length === 0 ? "{}" : n.length > nn ? "[" + vr(e) + "]" : "{ " + s.map(
920
- ([r, o]) => r + ": " + Le(o, n)
938
+ return s.length === 0 ? "{}" : n.length > rn ? "[" + vr(e) + "]" : "{ " + s.map(
939
+ ([r, o]) => r + ": " + ke(o, n)
921
940
  ).join(", ") + " }";
922
941
  }
923
942
  function yr(e, n) {
924
943
  if (e.length === 0)
925
944
  return "[]";
926
- if (n.length > nn)
945
+ if (n.length > rn)
927
946
  return "[Array]";
928
947
  const s = Math.min(hr, e.length), a = e.length - s, r = [];
929
948
  for (let o = 0; o < s; ++o)
930
- r.push(Le(e[o], n));
949
+ r.push(ke(e[o], n));
931
950
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
932
951
  }
933
952
  function vr(e) {
@@ -955,7 +974,7 @@ process.env.NODE_ENV === "production", jr = (
955
974
  Symbol.toStringTag in n ? n[Symbol.toStringTag] : (a = n.constructor) === null || a === void 0 ? void 0 : a.name
956
975
  );
957
976
  if (r === o) {
958
- const i = sn(n);
977
+ const i = an(n);
959
978
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
960
979
 
961
980
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -973,12 +992,12 @@ spurious results.`);
973
992
  return !1;
974
993
  }
975
994
  );
976
- class rn {
995
+ class on {
977
996
  constructor(n, s = "GraphQL request", a = {
978
997
  line: 1,
979
998
  column: 1
980
999
  }) {
981
- typeof n == "string" || qe(!1, `Body must be a string. Received: ${sn(n)}.`), this.body = n, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || qe(
1000
+ 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(
982
1001
  !1,
983
1002
  "line in locationOffset is 1-indexed and must be positive."
984
1003
  ), this.locationOffset.column > 0 || qe(
@@ -991,10 +1010,10 @@ class rn {
991
1010
  }
992
1011
  }
993
1012
  function Cr(e) {
994
- return jr(e, rn);
1013
+ return jr(e, on);
995
1014
  }
996
1015
  function Nr(e) {
997
- const n = Cr(e) ? e : new rn(e), s = n.body, a = new sr(n);
1016
+ const n = Cr(e) ? e : new on(e), s = n.body, a = new sr(n);
998
1017
  let r = "", o = !1;
999
1018
  for (; a.advance().kind !== b.EOF; ) {
1000
1019
  const i = a.token, c = i.kind, l = !rr(i.kind);
@@ -1006,21 +1025,21 @@ function Nr(e) {
1006
1025
  }
1007
1026
  return r;
1008
1027
  }
1009
- const an = Ft(
1028
+ const ln = zt(
1010
1029
  void 0
1011
- ), Za = ({
1030
+ ), ao = ({
1012
1031
  children: e,
1013
1032
  client: n
1014
- }) => /* @__PURE__ */ t.jsx(an.Provider, { value: n, children: e }), on = (e, n, ...[s]) => ({
1033
+ }) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
1015
1034
  queryFn: () => e.fetch(n, s),
1016
1035
  queryKey: [Nr(n.toString()), s]
1017
- }), Sr = (e, ...[n]) => {
1018
- const s = ds(an);
1036
+ }), wr = (e, ...[n]) => {
1037
+ const s = is(ln);
1019
1038
  if (s === void 0)
1020
1039
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1021
- return on(s, e, ...n === void 0 ? [] : [n]);
1040
+ return cn(s, e, ...n === void 0 ? [] : [n]);
1022
1041
  };
1023
- class Y extends String {
1042
+ class ee extends String {
1024
1043
  __apiType;
1025
1044
  value;
1026
1045
  __meta__;
@@ -1031,7 +1050,7 @@ class Y extends String {
1031
1050
  return this.value;
1032
1051
  }
1033
1052
  }
1034
- const wr = new Y(
1053
+ const Sr = new ee(
1035
1054
  `
1036
1055
  fragment OperationsFragment on OperationItem {
1037
1056
  slug
@@ -1103,7 +1122,7 @@ const wr = new Y(
1103
1122
  }
1104
1123
  `,
1105
1124
  { fragmentName: "OperationsFragment" }
1106
- ), Tr = new Y(`
1125
+ ), Tr = new ee(`
1107
1126
  query ServersQuery($input: JSON!, $type: SchemaType!) {
1108
1127
  schema(input: $input, type: $type) {
1109
1128
  url
@@ -1112,13 +1131,13 @@ const wr = new Y(
1112
1131
  }
1113
1132
  }
1114
1133
  }
1115
- `), $r = new Y(`
1134
+ `), Ar = new ee(`
1116
1135
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1117
1136
  schema(input: $input, type: $type) {
1118
1137
  openapi
1119
1138
  }
1120
1139
  }
1121
- `), Ar = new Y(`
1140
+ `), Or = new ee(`
1122
1141
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1123
1142
  schema(input: $input, type: $type) {
1124
1143
  servers {
@@ -1217,7 +1236,7 @@ const wr = new Y(
1217
1236
  schema
1218
1237
  }
1219
1238
  }
1220
- }`), Pr = new Y(`
1239
+ }`), Pr = new ee(`
1221
1240
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1222
1241
  schema(input: $input, type: $type) {
1223
1242
  title
@@ -1232,7 +1251,7 @@ const wr = new Y(
1232
1251
  }
1233
1252
  }
1234
1253
  }
1235
- `), Or = new Y(`
1254
+ `), $r = new ee(`
1236
1255
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1237
1256
  schema(input: $input, type: $type) {
1238
1257
  url
@@ -1241,7 +1260,7 @@ const wr = new Y(
1241
1260
  }
1242
1261
  }
1243
1262
  }
1244
- `), Lr = new Y(`
1263
+ `), Lr = new ee(`
1245
1264
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1246
1265
  schema(input: $input, type: $type) {
1247
1266
  extensions
@@ -1266,44 +1285,44 @@ const wr = new Y(
1266
1285
  }
1267
1286
  `), kr = {
1268
1287
  "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Tr,
1269
- "\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,
1270
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": $r,
1271
- "\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": Ar,
1288
+ "\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": Sr,
1289
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Ar,
1290
+ "\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": Or,
1272
1291
  "\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,
1273
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Or,
1292
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": $r,
1274
1293
  "\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
1275
1294
  };
1276
- function Rr(e) {
1295
+ function Er(e) {
1277
1296
  return kr[e] ?? {};
1278
1297
  }
1279
- function B({
1298
+ function _({
1280
1299
  ...e
1281
1300
  }) {
1282
- return /* @__PURE__ */ t.jsx(tt.Root, { "data-slot": "collapsible", ...e });
1301
+ return /* @__PURE__ */ t.jsx(st.Root, { "data-slot": "collapsible", ...e });
1283
1302
  }
1284
1303
  function de({
1285
1304
  ...e
1286
1305
  }) {
1287
1306
  return /* @__PURE__ */ t.jsx(
1288
- tt.CollapsibleTrigger,
1307
+ st.CollapsibleTrigger,
1289
1308
  {
1290
1309
  "data-slot": "collapsible-trigger",
1291
1310
  ...e
1292
1311
  }
1293
1312
  );
1294
1313
  }
1295
- function _({
1314
+ function q({
1296
1315
  ...e
1297
1316
  }) {
1298
1317
  return /* @__PURE__ */ t.jsx(
1299
- tt.CollapsibleContent,
1318
+ st.CollapsibleContent,
1300
1319
  {
1301
1320
  "data-slot": "collapsible-content",
1302
1321
  ...e
1303
1322
  }
1304
1323
  );
1305
1324
  }
1306
- function Er() {
1325
+ function Rr() {
1307
1326
  const n = navigator.userAgent.toLowerCase();
1308
1327
  if (n.indexOf("win") !== -1)
1309
1328
  return "windows";
@@ -1315,7 +1334,7 @@ function Er() {
1315
1334
  return "unix";
1316
1335
  }
1317
1336
  function Ir() {
1318
- return Er() === "apple";
1337
+ return Rr() === "apple";
1319
1338
  }
1320
1339
  const Dr = {
1321
1340
  other: {
@@ -1333,10 +1352,10 @@ const Dr = {
1333
1352
  option: "⌥"
1334
1353
  }
1335
1354
  }, Fr = (e, n) => {
1336
- 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 = R(n);
1337
- return G(() => {
1355
+ 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 = E(n);
1356
+ return U(() => {
1338
1357
  l.current = n;
1339
- }, [n]), G(() => {
1358
+ }, [n]), U(() => {
1340
1359
  const m = (d) => {
1341
1360
  (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());
1342
1361
  };
@@ -1349,8 +1368,8 @@ const Dr = {
1349
1368
  (m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Dr[Ir() ? "apple" : "other"][m] : m
1350
1369
  )
1351
1370
  };
1352
- }, zr = Ke()(
1353
- Xe(
1371
+ }, zr = Ze()(
1372
+ Ye(
1354
1373
  (e) => ({
1355
1374
  selectedServer: void 0,
1356
1375
  setSelectedServer: (n) => e({ selectedServer: n })
@@ -1359,15 +1378,15 @@ const Dr = {
1359
1378
  )
1360
1379
  ), Vr = (e) => {
1361
1380
  const { selectedServer: n, setSelectedServer: s } = zr();
1362
- return { selectedServer: zt(
1381
+ return { selectedServer: Vt(
1363
1382
  () => n && e.some((r) => r.url === n) ? n : e.at(0)?.url ?? "",
1364
1383
  [n, e]
1365
1384
  ), setSelectedServer: s };
1366
- }, ln = Q.forwardRef(
1385
+ }, dn = xe.forwardRef(
1367
1386
  ({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
1368
1387
  "textarea",
1369
1388
  {
1370
- className: w(
1389
+ className: S(
1371
1390
  "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",
1372
1391
  e
1373
1392
  ),
@@ -1376,19 +1395,19 @@ const Dr = {
1376
1395
  }
1377
1396
  )
1378
1397
  );
1379
- ln.displayName = "Textarea";
1380
- const ke = (e = 0) => {
1398
+ dn.displayName = "Textarea";
1399
+ const ve = (e = 0) => {
1381
1400
  if (e === 0)
1382
1401
  return "0 B";
1383
1402
  const n = Math.floor(Math.log(e) / Math.log(1e3));
1384
1403
  return `${(e / 1e3 ** n).toFixed(n ? 2 : 0)} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
1385
- }, Z = ({
1404
+ }, Y = ({
1386
1405
  children: e,
1387
1406
  className: n
1388
1407
  }) => /* @__PURE__ */ t.jsxs(
1389
1408
  "div",
1390
1409
  {
1391
- className: w(
1410
+ className: S(
1392
1411
  "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",
1393
1412
  n
1394
1413
  ),
@@ -1397,20 +1416,20 @@ const ke = (e = 0) => {
1397
1416
  /* @__PURE__ */ t.jsxs(
1398
1417
  de,
1399
1418
  {
1400
- className: w(
1419
+ className: S(
1401
1420
  "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 opacity-75 rounded-md",
1402
1421
  n
1403
1422
  ),
1404
1423
  children: [
1405
1424
  /* @__PURE__ */ t.jsx(
1406
- Ln,
1425
+ kn,
1407
1426
  {
1408
1427
  className: "group-data-[state=closed]:hidden shrink-0",
1409
1428
  size: 14
1410
1429
  }
1411
1430
  ),
1412
1431
  /* @__PURE__ */ t.jsx(
1413
- kn,
1432
+ En,
1414
1433
  {
1415
1434
  className: "group-data-[state=open]:hidden shrink-0",
1416
1435
  size: 14
@@ -1424,27 +1443,27 @@ const ke = (e = 0) => {
1424
1443
  ), H = ({
1425
1444
  children: e,
1426
1445
  className: n
1427
- }) => /* @__PURE__ */ t.jsx("span", { className: w("font-semibold w-full text-start", n), children: e }), Br = ({
1446
+ }) => /* @__PURE__ */ t.jsx("span", { className: S("font-semibold w-full text-start", n), children: e }), Br = ({
1428
1447
  examples: e,
1429
1448
  onSelect: n
1430
- }) => /* @__PURE__ */ t.jsxs(Ht, { children: [
1431
- /* @__PURE__ */ t.jsx(Qt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1432
- q,
1449
+ }) => /* @__PURE__ */ t.jsxs(Jt, { children: [
1450
+ /* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1451
+ B,
1433
1452
  {
1434
1453
  variant: "ghost",
1435
1454
  size: "sm",
1436
1455
  className: "hover:bg-accent hover:brightness-95 gap-2",
1437
1456
  children: [
1438
1457
  "Use Example",
1439
- /* @__PURE__ */ t.jsx(Qe, { size: 14 })
1458
+ /* @__PURE__ */ t.jsx(Je, { size: 14 })
1440
1459
  ]
1441
1460
  }
1442
1461
  ) }),
1443
- /* @__PURE__ */ t.jsx(Jt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
1444
- /* @__PURE__ */ t.jsx(Ls, { children: s.mediaType }),
1445
- /* @__PURE__ */ t.jsx(ks, {}),
1446
- /* @__PURE__ */ t.jsx(Rs, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
1447
- $e,
1462
+ /* @__PURE__ */ t.jsx(Xt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
1463
+ /* @__PURE__ */ t.jsx(Ts, { children: s.mediaType }),
1464
+ /* @__PURE__ */ t.jsx(As, {}),
1465
+ /* @__PURE__ */ t.jsx(Os, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
1466
+ Oe,
1448
1467
  {
1449
1468
  onSelect: () => n(a, s.mediaType),
1450
1469
  children: /* @__PURE__ */ t.jsx(
@@ -1459,87 +1478,62 @@ const ke = (e = 0) => {
1459
1478
  a.name
1460
1479
  )) })
1461
1480
  ] }, s.mediaType)) })
1462
- ] }), cn = Q.forwardRef(
1463
- ({ className: e, type: n, ...s }, a) => /* @__PURE__ */ t.jsx(
1464
- "input",
1465
- {
1466
- type: n,
1467
- className: w(
1468
- "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
1469
- e
1470
- ),
1471
- ref: a,
1472
- ...s
1473
- }
1474
- )
1475
- );
1476
- cn.displayName = "Input";
1477
- const ye = (e, n) => {
1478
- const s = Q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1479
- const c = r ? Es : e;
1480
- return Q.createElement(c, {
1481
- ...o,
1482
- ref: i,
1483
- className: typeof n == "function" ? n({ className: a }) : w(n, a)
1484
- });
1485
- });
1486
- return s.displayName = typeof e == "string" ? `VariantComponent(${e})` : `VariantComponent(${e.displayName || e.name || "Component"})`, s;
1487
- }, Re = ye(
1481
+ ] }), Ee = ye(
1488
1482
  "div",
1489
1483
  "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
1490
- ), xe = ye(
1484
+ ), ge = ye(
1491
1485
  "div",
1492
1486
  "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1493
1487
  ), I = ye(
1494
- cn,
1488
+ Ps,
1495
1489
  "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
1496
- ), st = ({
1490
+ ), at = ({
1497
1491
  onClick: e,
1498
1492
  className: n
1499
1493
  }) => /* @__PURE__ */ t.jsx(
1500
- he,
1494
+ K,
1501
1495
  {
1502
1496
  size: "icon-xs",
1503
1497
  variant: "ghost",
1504
- className: w(
1498
+ className: S(
1505
1499
  "text-muted-foreground opacity-0 group-hover:brightness-95 focus-visible:opacity-100 group-hover:opacity-100",
1506
1500
  n
1507
1501
  ),
1508
1502
  onClick: e,
1509
1503
  type: "button",
1510
1504
  "data-slot": "remove-button",
1511
- children: /* @__PURE__ */ t.jsx(Rt, { size: 14 })
1505
+ children: /* @__PURE__ */ t.jsx(It, { size: 14 })
1512
1506
  }
1513
1507
  );
1514
- function ve({
1508
+ function be({
1515
1509
  className: e,
1516
1510
  ...n
1517
1511
  }) {
1518
1512
  return /* @__PURE__ */ t.jsx(
1519
- St.Root,
1513
+ Tt.Root,
1520
1514
  {
1521
1515
  "data-slot": "checkbox",
1522
- className: w(
1516
+ className: S(
1523
1517
  "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",
1524
1518
  e
1525
1519
  ),
1526
1520
  ...n,
1527
1521
  children: /* @__PURE__ */ t.jsx(
1528
- St.Indicator,
1522
+ Tt.Indicator,
1529
1523
  {
1530
1524
  "data-slot": "checkbox-indicator",
1531
1525
  className: "grid place-content-center text-current transition-none",
1532
- children: /* @__PURE__ */ t.jsx(Et, { className: "size-3.5" })
1526
+ children: /* @__PURE__ */ t.jsx(Dt, { className: "size-3.5" })
1533
1527
  }
1534
1528
  )
1535
1529
  }
1536
1530
  );
1537
1531
  }
1538
1532
  const _r = ({ index: e, manager: n }) => {
1539
- const s = R(null), a = n.getValue(e, "value");
1540
- return /* @__PURE__ */ t.jsxs(xe, { children: [
1533
+ const s = E(null), a = n.getValue(e, "value");
1534
+ return /* @__PURE__ */ t.jsxs(ge, { children: [
1541
1535
  /* @__PURE__ */ t.jsx(
1542
- ve,
1536
+ be,
1543
1537
  {
1544
1538
  ...n.getCheckboxProps(e),
1545
1539
  disabled: !n.getValue(e, "name")
@@ -1560,13 +1554,13 @@ const _r = ({ index: e, manager: n }) => {
1560
1554
  "span",
1561
1555
  {
1562
1556
  className: "text-xs truncate",
1563
- title: `${a.name} (${ke(a.size)})`,
1557
+ title: `${a.name} (${ve(a.size)})`,
1564
1558
  children: a.name
1565
1559
  }
1566
1560
  )
1567
1561
  ] }),
1568
1562
  /* @__PURE__ */ t.jsx(
1569
- he,
1563
+ K,
1570
1564
  {
1571
1565
  type: "button",
1572
1566
  variant: "ghost",
@@ -1597,7 +1591,7 @@ const _r = ({ index: e, manager: n }) => {
1597
1591
  }
1598
1592
  ),
1599
1593
  /* @__PURE__ */ t.jsx(
1600
- he,
1594
+ K,
1601
1595
  {
1602
1596
  type: "button",
1603
1597
  variant: "ghost",
@@ -1609,10 +1603,10 @@ const _r = ({ index: e, manager: n }) => {
1609
1603
  }
1610
1604
  )
1611
1605
  ] }),
1612
- /* @__PURE__ */ t.jsx(st, { ...n.getRemoveButtonProps(e) })
1606
+ /* @__PURE__ */ t.jsx(at, { ...n.getRemoveButtonProps(e) })
1613
1607
  ] })
1614
1608
  ] });
1615
- }, rt = (e) => {
1609
+ }, ot = (e) => {
1616
1610
  const {
1617
1611
  control: n,
1618
1612
  name: s,
@@ -1624,124 +1618,124 @@ const _r = ({ index: e, manager: n }) => {
1624
1618
  watch: c,
1625
1619
  setFocus: l,
1626
1620
  register: m
1627
- } = ae(), { fields: d, append: h, remove: x } = Gt({ control: n, name: s }), f = c(s), v = R(-1), u = R(-1), y = D(
1628
- (g, C, T, $) => {
1629
- (C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), $?.focus === "next" ? l(
1621
+ } = oe(), { fields: d, append: f, remove: x } = Ut({ control: n, name: s }), p = c(s), v = E(-1), u = E(-1), y = D(
1622
+ (g, C, T, A) => {
1623
+ (C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
1630
1624
  C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
1631
- ) : $?.focus === "previous" && l(
1625
+ ) : A?.focus === "previous" && l(
1632
1626
  C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`
1633
1627
  );
1634
1628
  },
1635
1629
  [s, i, l]
1636
- ), S = D(
1630
+ ), w = D(
1637
1631
  (g) => r ? r(g) : !g.name && !g.value,
1638
1632
  [r]
1639
- ), N = D(
1633
+ ), R = D(
1640
1634
  (g) => o ? o(g) : !!(g.name || g.value),
1641
1635
  [o]
1642
1636
  );
1643
- G(() => {
1644
- if (!f) return;
1637
+ U(() => {
1638
+ if (!p) return;
1645
1639
  if (u.current === -1) {
1646
- u.current = f.length, f.length === 0 && h(a, {
1640
+ u.current = p.length, p.length === 0 && f(a, {
1647
1641
  shouldFocus: !1
1648
1642
  });
1649
1643
  return;
1650
1644
  }
1651
- if (u.current = f.length, f.length === 0) {
1652
- h(a, {
1645
+ if (u.current = p.length, p.length === 0) {
1646
+ f(a, {
1653
1647
  shouldFocus: !1
1654
1648
  });
1655
1649
  return;
1656
1650
  }
1657
- if (f.length > 1) {
1651
+ if (p.length > 1) {
1658
1652
  const C = [];
1659
- for (let T = 0; T < f.length - 1; T++) {
1660
- const $ = f[T];
1661
- $ && S($) && !N($) && C.push(T);
1653
+ for (let T = 0; T < p.length - 1; T++) {
1654
+ const A = p[T];
1655
+ A && w(A) && !R(A) && C.push(T);
1662
1656
  }
1663
1657
  if (C.length > 0) {
1664
1658
  const T = C[0];
1665
1659
  if (T === void 0) return;
1666
- for (let $ = C.length - 1; $ >= 0; $--) {
1667
- const M = C[$];
1660
+ for (let A = C.length - 1; A >= 0; A--) {
1661
+ const M = C[A];
1668
1662
  M !== void 0 && x(M);
1669
1663
  }
1670
1664
  if (v.current === T) {
1671
- const $ = f.length - C.length;
1672
- T < $ ? l(`${s}.${T}.name`) : T > 0 ? l(`${s}.${T - 1}.name`) : l(`${s}.0.name`);
1665
+ const A = p.length - C.length;
1666
+ T < A ? l(`${s}.${T}.name`) : T > 0 ? l(`${s}.${T - 1}.name`) : l(`${s}.0.name`);
1673
1667
  }
1674
1668
  v.current = -1;
1675
1669
  }
1676
1670
  }
1677
- const g = f[f.length - 1];
1678
- g && !S(g) && h(a, {
1671
+ const g = p[p.length - 1];
1672
+ g && !w(g) && f(a, {
1679
1673
  shouldFocus: !1
1680
1674
  });
1681
1675
  }, [
1676
+ p,
1682
1677
  f,
1683
- h,
1684
1678
  x,
1685
1679
  a,
1686
- S,
1680
+ w,
1687
1681
  s,
1688
1682
  l,
1689
- N
1690
- ]), G(() => {
1691
- if (!f) return;
1683
+ R
1684
+ ]), U(() => {
1685
+ if (!p) return;
1692
1686
  const g = [];
1693
- for (let C = 0; C < f.length; C++) {
1694
- const T = f[C];
1687
+ for (let C = 0; C < p.length; C++) {
1688
+ const T = p[C];
1695
1689
  if (!T) continue;
1696
- const $ = N(T);
1697
- T.active !== $ && g.push(() => y(C, "active", $));
1690
+ const A = R(T);
1691
+ T.active !== A && g.push(() => y(C, "active", A));
1698
1692
  }
1699
- g.length !== 0 && us(() => g.forEach((C) => C()));
1700
- }, [f, N, y]);
1701
- const k = D(
1693
+ g.length !== 0 && ls(() => g.forEach((C) => C()));
1694
+ }, [p, R, y]);
1695
+ const N = D(
1702
1696
  (g) => {
1703
- const C = f?.[g];
1704
- return C ? S(C) : !0;
1697
+ const C = p?.[g];
1698
+ return C ? w(C) : !0;
1705
1699
  },
1706
- [f, S]
1700
+ [p, w]
1707
1701
  ), j = D(
1708
1702
  (g, C) => {
1709
- const T = C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`, $ = C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`, M = C === "value" || g > 0;
1703
+ 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;
1710
1704
  return (L) => {
1711
1705
  if (!(L.target instanceof HTMLInputElement)) return;
1712
- const De = L.target.selectionStart === 0, te = L.target.selectionStart === L.target.value.length, je = !L.target.value;
1713
- L.key === "Enter" ? l(T) : L.key === "Backspace" && je && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l($)) : L.key === "ArrowRight" && te && (L.preventDefault(), l(T));
1706
+ const De = L.target.selectionStart === 0, ne = L.target.selectionStart === L.target.value.length, Ce = !L.target.value;
1707
+ L.key === "Enter" ? l(T) : L.key === "Backspace" && Ce && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" && ne && (L.preventDefault(), l(T));
1714
1708
  };
1715
1709
  },
1716
1710
  [s, l]
1717
- ), O = D(
1711
+ ), $ = D(
1718
1712
  (g) => ({
1719
1713
  ...m(`${s}.${g}.name`),
1720
1714
  onChange: (C) => y(g, "name", C.target.value),
1721
1715
  onKeyDown: j(g, "name")
1722
1716
  }),
1723
1717
  [m, s, y, j]
1724
- ), ie = D(
1718
+ ), Q = D(
1725
1719
  (g) => ({
1726
1720
  ...m(`${s}.${g}.value`),
1727
1721
  onChange: (C) => y(g, "value", C.target.value),
1728
1722
  onKeyDown: j(g, "value")
1729
1723
  }),
1730
1724
  [m, s, y, j]
1731
- ), be = D(
1725
+ ), je = D(
1732
1726
  (g) => ({
1733
1727
  ...m(`${s}.${g}.active`),
1734
1728
  checked: c(`${s}.${g}.active`) ?? !1,
1735
- disabled: k(g),
1729
+ disabled: N(g),
1736
1730
  onCheckedChange: (C) => {
1737
1731
  y(g, "active", C === !0);
1738
1732
  }
1739
1733
  }),
1740
- [s, m, k, c, y]
1734
+ [s, m, N, c, y]
1741
1735
  ), Ie = D(
1742
- (g, C) => f?.[g]?.[C],
1743
- [f]
1744
- ), ee = D(
1736
+ (g, C) => p?.[g]?.[C],
1737
+ [p]
1738
+ ), te = D(
1745
1739
  (g) => ({
1746
1740
  onClick: () => x(g),
1747
1741
  disabled: g === d.length - 1
@@ -1750,87 +1744,87 @@ const _r = ({ index: e, manager: n }) => {
1750
1744
  );
1751
1745
  return {
1752
1746
  fields: d,
1753
- getNameInputProps: O,
1754
- getValueInputProps: ie,
1755
- getCheckboxProps: be,
1756
- getRemoveButtonProps: ee,
1747
+ getNameInputProps: $,
1748
+ getValueInputProps: Q,
1749
+ getCheckboxProps: je,
1750
+ getRemoveButtonProps: te,
1757
1751
  setValue: y,
1758
1752
  getValue: Ie
1759
1753
  };
1760
1754
  }, qr = ({ content: e }) => {
1761
- const { register: n, setValue: s, watch: a, control: r } = ae(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
1755
+ const { register: n, setValue: s, watch: a, control: r } = oe(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
1762
1756
  "headers",
1763
1757
  "file",
1764
1758
  "bodyMode",
1765
1759
  "body",
1766
1760
  "multipartFormFields"
1767
- ]), h = R(null), [x, f] = E(!1), v = (j) => {
1761
+ ]), f = E(null), [x, p] = k(!1), v = (j) => {
1768
1762
  s("file", j), j && s(
1769
1763
  "headers",
1770
1764
  i.filter(
1771
- (O) => O.name.toLowerCase() !== "content-type" || !O.active
1765
+ ($) => $.name.toLowerCase() !== "content-type" || !$.active
1772
1766
  )
1773
1767
  );
1774
1768
  }, u = (j) => {
1775
- const O = j.target.files?.[0] ?? null;
1776
- v(O);
1769
+ const $ = j.target.files?.[0] ?? null;
1770
+ v($);
1777
1771
  }, y = (j) => {
1778
- j.preventDefault(), j.stopPropagation(), f(!0);
1779
- }, S = (j) => {
1780
- j.preventDefault(), j.stopPropagation(), f(!1);
1781
- }, N = (j) => {
1782
- j.preventDefault(), j.stopPropagation(), f(!1);
1783
- const O = j.dataTransfer.files?.[0] ?? null;
1784
- v(O);
1785
- }, k = rt({
1772
+ j.preventDefault(), j.stopPropagation(), p(!0);
1773
+ }, w = (j) => {
1774
+ j.preventDefault(), j.stopPropagation(), p(!1);
1775
+ }, R = (j) => {
1776
+ j.preventDefault(), j.stopPropagation(), p(!1);
1777
+ const $ = j.dataTransfer.files?.[0] ?? null;
1778
+ v($);
1779
+ }, N = ot({
1786
1780
  control: r,
1787
1781
  name: "multipartFormFields",
1788
1782
  defaultValue: { name: "", value: "", active: !1 },
1789
1783
  isEmpty: (j) => j.value instanceof File ? !1 : !j.name && !j.value
1790
1784
  });
1791
- return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
1792
- /* @__PURE__ */ t.jsxs(Z, { className: "items-center", children: [
1793
- /* @__PURE__ */ t.jsx(En, { size: 16 }),
1785
+ return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
1786
+ /* @__PURE__ */ t.jsxs(Y, { className: "items-center", children: [
1787
+ /* @__PURE__ */ t.jsx(In, { size: 16 }),
1794
1788
  /* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
1795
1789
  "Body",
1796
1790
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
1797
- /* @__PURE__ */ t.jsxs(Ht, { children: [
1798
- /* @__PURE__ */ t.jsx(Qt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1799
- he,
1791
+ /* @__PURE__ */ t.jsxs(Jt, { children: [
1792
+ /* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1793
+ K,
1800
1794
  {
1801
1795
  variant: "ghost",
1802
1796
  size: "sm",
1803
1797
  className: "hover:bg-accent hover:brightness-95 gap-2",
1804
1798
  children: [
1805
1799
  l === "text" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1806
- /* @__PURE__ */ t.jsx(gt, { size: 14 }),
1800
+ /* @__PURE__ */ t.jsx(yt, { size: 14 }),
1807
1801
  "Text"
1808
1802
  ] }) : l === "file" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1809
1803
  /* @__PURE__ */ t.jsx(me, { size: 14 }),
1810
1804
  "File"
1811
1805
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1812
- /* @__PURE__ */ t.jsx(xt, { size: 14 }),
1806
+ /* @__PURE__ */ t.jsx(vt, { size: 14 }),
1813
1807
  "Multipart"
1814
1808
  ] }),
1815
- /* @__PURE__ */ t.jsx(In, { size: 14 })
1809
+ /* @__PURE__ */ t.jsx(Dn, { size: 14 })
1816
1810
  ]
1817
1811
  }
1818
1812
  ) }),
1819
- /* @__PURE__ */ t.jsxs(Jt, { className: "min-w-40", children: [
1813
+ /* @__PURE__ */ t.jsxs(Xt, { className: "min-w-40", children: [
1820
1814
  /* @__PURE__ */ t.jsxs(
1821
- $e,
1815
+ Oe,
1822
1816
  {
1823
1817
  onSelect: () => s("bodyMode", "text"),
1824
1818
  className: "gap-2",
1825
1819
  children: [
1826
- /* @__PURE__ */ t.jsx(gt, { size: 14 }),
1820
+ /* @__PURE__ */ t.jsx(yt, { size: 14 }),
1827
1821
  /* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "Text" }),
1828
1822
  /* @__PURE__ */ t.jsx("span", { children: m.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
1829
1823
  ]
1830
1824
  }
1831
1825
  ),
1832
1826
  /* @__PURE__ */ t.jsxs(
1833
- $e,
1827
+ Oe,
1834
1828
  {
1835
1829
  onSelect: () => s("bodyMode", "file"),
1836
1830
  className: "gap-2",
@@ -1842,12 +1836,12 @@ const _r = ({ index: e, manager: n }) => {
1842
1836
  }
1843
1837
  ),
1844
1838
  /* @__PURE__ */ t.jsxs(
1845
- $e,
1839
+ Oe,
1846
1840
  {
1847
1841
  onSelect: () => s("bodyMode", "multipart"),
1848
1842
  className: "gap-2",
1849
1843
  children: [
1850
- /* @__PURE__ */ t.jsx(xt, { size: 14, strokeWidth: 1.5 }),
1844
+ /* @__PURE__ */ t.jsx(vt, { size: 14, strokeWidth: 1.5 }),
1851
1845
  /* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "Multipart" }),
1852
1846
  /* @__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" }) })
1853
1847
  ]
@@ -1858,7 +1852,7 @@ const _r = ({ index: e, manager: n }) => {
1858
1852
  /* @__PURE__ */ t.jsx(
1859
1853
  "input",
1860
1854
  {
1861
- ref: h,
1855
+ ref: f,
1862
1856
  type: "file",
1863
1857
  className: "hidden",
1864
1858
  onChange: u
@@ -1869,12 +1863,12 @@ const _r = ({ index: e, manager: n }) => {
1869
1863
  Br,
1870
1864
  {
1871
1865
  examples: e,
1872
- onSelect: (j, O) => {
1866
+ onSelect: (j, $) => {
1873
1867
  s("body", JSON.stringify(j.value, null, 2)), s("headers", [
1874
- ...i.filter((ie) => ie.name !== "Content-Type"),
1868
+ ...i.filter((Q) => Q.name !== "Content-Type"),
1875
1869
  {
1876
1870
  name: "Content-Type",
1877
- value: O,
1871
+ value: $,
1878
1872
  active: !0
1879
1873
  }
1880
1874
  ]);
@@ -1884,12 +1878,12 @@ const _r = ({ index: e, manager: n }) => {
1884
1878
  ] })
1885
1879
  ] })
1886
1880
  ] }),
1887
- /* @__PURE__ */ t.jsxs(_, { className: "CollapsibleContent flex flex-col gap-2", children: [
1881
+ /* @__PURE__ */ t.jsxs(q, { className: "CollapsibleContent flex flex-col gap-2", children: [
1888
1882
  l === "text" && /* @__PURE__ */ t.jsx(
1889
- ln,
1883
+ dn,
1890
1884
  {
1891
1885
  ...n("body"),
1892
- className: w(
1886
+ className: S(
1893
1887
  "w-full px-4 py-2.5 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0 transition-colors"
1894
1888
  ),
1895
1889
  placeholder: "Body content"
@@ -1900,19 +1894,19 @@ const _r = ({ index: e, manager: n }) => {
1900
1894
  {
1901
1895
  role: "region",
1902
1896
  "aria-label": "File upload drop zone",
1903
- className: w(
1897
+ className: S(
1904
1898
  "flex flex-col items-center justify-center gap-4 min-h-[300px]"
1905
1899
  ),
1906
1900
  onDragOver: y,
1907
- onDragLeave: S,
1908
- onDrop: N,
1901
+ onDragLeave: w,
1902
+ onDrop: R,
1909
1903
  children: [
1910
1904
  /* @__PURE__ */ t.jsx(
1911
1905
  "button",
1912
1906
  {
1913
1907
  type: "button",
1914
- onClick: () => h.current?.click(),
1915
- className: w(
1908
+ onClick: () => f.current?.click(),
1909
+ className: S(
1916
1910
  "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",
1917
1911
  (c || x) && "border-solid",
1918
1912
  x && "bg-accent border-primary"
@@ -1920,7 +1914,7 @@ const _r = ({ index: e, manager: n }) => {
1920
1914
  children: /* @__PURE__ */ t.jsx(
1921
1915
  me,
1922
1916
  {
1923
- className: w(
1917
+ className: S(
1924
1918
  "text-muted-foreground",
1925
1919
  x && "text-primary"
1926
1920
  ),
@@ -1935,28 +1929,28 @@ const _r = ({ index: e, manager: n }) => {
1935
1929
  " ",
1936
1930
  /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
1937
1931
  "(",
1938
- ke(c.size),
1932
+ ve(c.size),
1939
1933
  ")"
1940
1934
  ] })
1941
1935
  ] }),
1942
1936
  /* @__PURE__ */ t.jsx(
1943
- he,
1937
+ K,
1944
1938
  {
1945
1939
  type: "button",
1946
1940
  variant: "ghost",
1947
1941
  size: "icon-xxs",
1948
1942
  onClick: () => v(null),
1949
- children: /* @__PURE__ */ t.jsx(Rt, { size: 14 })
1943
+ children: /* @__PURE__ */ t.jsx(It, { size: 14 })
1950
1944
  }
1951
1945
  )
1952
1946
  ] }) : /* @__PURE__ */ t.jsx("span", { className: "text-lg font-semibold text-muted-foreground", children: "Select or drop a file" })
1953
1947
  ]
1954
1948
  }
1955
1949
  ),
1956
- l === "multipart" && /* @__PURE__ */ t.jsx(Re, { children: k.fields.map((j, O) => /* @__PURE__ */ t.jsx(_r, { index: O, manager: k }, j.id)) })
1950
+ l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: N.fields.map((j, $) => /* @__PURE__ */ t.jsx(_r, { index: $, manager: N }, j.id)) })
1957
1951
  ] })
1958
1952
  ] });
1959
- }, Pt = (e, n, s) => {
1953
+ }, Lt = (e, n, s) => {
1960
1954
  const a = n.replace(/(:\w+|\{\w+})/g, (o) => {
1961
1955
  const i = o.replace(/[:{}]/g, "");
1962
1956
  return s.pathParams.find((l) => l.name === i)?.value ?? o;
@@ -1968,12 +1962,15 @@ const _r = ({ index: e, manager: n }) => {
1968
1962
  r.searchParams.set(o.name, o.value);
1969
1963
  }), r;
1970
1964
  };
1971
- function Mr(e) {
1965
+ function Ur(e) {
1972
1966
  return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1973
1967
  e
1974
1968
  );
1975
1969
  }
1976
- const Ur = (e, n) => {
1970
+ function Mr(e) {
1971
+ return /^audio\//i.test(e);
1972
+ }
1973
+ const Gr = (e, n) => {
1977
1974
  const s = e.find(
1978
1975
  ([a]) => a.toLowerCase() === "content-disposition"
1979
1976
  )?.[1];
@@ -1990,21 +1987,21 @@ const Ur = (e, n) => {
1990
1987
  } catch {
1991
1988
  return "download";
1992
1989
  }
1993
- }, Gr = Ae.Root, dn = Q.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx(Ae.Portal, { children: /* @__PURE__ */ t.jsx(
1994
- Ae.Content,
1990
+ }, Hr = Pe.Root, un = xe.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx(Pe.Portal, { children: /* @__PURE__ */ t.jsx(
1991
+ Pe.Content,
1995
1992
  {
1996
1993
  ref: r,
1997
1994
  align: n,
1998
1995
  sideOffset: s,
1999
- className: w(
1996
+ className: S(
2000
1997
  "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",
2001
1998
  e
2002
1999
  ),
2003
2000
  ...a
2004
2001
  }
2005
2002
  ) }));
2006
- dn.displayName = Ae.Content.displayName;
2007
- const Hr = ({
2003
+ un.displayName = Pe.Content.displayName;
2004
+ const Qr = ({
2008
2005
  value: e,
2009
2006
  options: n,
2010
2007
  onChange: s,
@@ -2015,10 +2012,10 @@ const Hr = ({
2015
2012
  ref: c,
2016
2013
  onSelect: l
2017
2014
  }) => {
2018
- const [m, d] = E(!1), [h, x] = E(!1), f = Ds((u) => u.filtered.count), v = R(null);
2019
- return /* @__PURE__ */ t.jsxs(Gr, { open: m, children: [
2020
- /* @__PURE__ */ t.jsx(Is, { children: /* @__PURE__ */ t.jsx(
2021
- zs,
2015
+ const [m, d] = k(!1), [f, x] = k(!1), p = Ls((u) => u.filtered.count), v = E(null);
2016
+ return /* @__PURE__ */ t.jsxs(Hr, { open: m, children: [
2017
+ /* @__PURE__ */ t.jsx($s, { children: /* @__PURE__ */ t.jsx(
2018
+ Es,
2022
2019
  {
2023
2020
  autoComplete: "off",
2024
2021
  ref: (u) => {
@@ -2026,10 +2023,10 @@ const Hr = ({
2026
2023
  },
2027
2024
  value: e ? String(e) : void 0,
2028
2025
  placeholder: r,
2029
- className: w("h-9 bg-transparent", a),
2026
+ className: S("h-9 bg-transparent", a),
2030
2027
  onFocus: () => d(!0),
2031
2028
  onBlur: () => {
2032
- h || d(!1);
2029
+ f || d(!1);
2033
2030
  },
2034
2031
  onKeyDown: (u) => {
2035
2032
  i?.(u), !u.defaultPrevented && u.key === "Enter" && (d(!1), v.current?.blur(), o?.(u));
@@ -2038,13 +2035,13 @@ const Hr = ({
2038
2035
  }
2039
2036
  ) }),
2040
2037
  /* @__PURE__ */ t.jsx(
2041
- dn,
2038
+ un,
2042
2039
  {
2043
2040
  onMouseEnter: () => x(!0),
2044
2041
  onMouseLeave: () => x(!1),
2045
2042
  onOpenAutoFocus: (u) => u.preventDefault(),
2046
- className: w("p-0 w-(--radix-popover-trigger-width)", {
2047
- "border-0": f === 0
2043
+ className: S("p-0 w-(--radix-popover-trigger-width)", {
2044
+ "border-0": p === 0
2048
2045
  }),
2049
2046
  align: "start",
2050
2047
  side: "bottom",
@@ -2054,8 +2051,8 @@ const Hr = ({
2054
2051
  onTouchMove: (u) => {
2055
2052
  u.stopPropagation();
2056
2053
  },
2057
- children: /* @__PURE__ */ t.jsx(Vs, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
2058
- Bs,
2054
+ children: /* @__PURE__ */ t.jsx(Rs, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
2055
+ Is,
2059
2056
  {
2060
2057
  value: u,
2061
2058
  onSelect: (y) => {
@@ -2069,7 +2066,7 @@ const Hr = ({
2069
2066
  }
2070
2067
  )
2071
2068
  ] });
2072
- }, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Fs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Hr, { ...n }) }), Qr = Object.freeze([
2069
+ }, $e = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(ks, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Qr, { ...n }) }), Jr = Object.freeze([
2073
2070
  "Accept",
2074
2071
  "Accept-Encoding",
2075
2072
  "Accept-Language",
@@ -2096,67 +2093,67 @@ const Hr = ({
2096
2093
  "Set-Cookie",
2097
2094
  "User-Agent",
2098
2095
  "X-Requested-With"
2099
- ]), Jr = ({
2096
+ ]), Wr = ({
2100
2097
  control: e,
2101
2098
  schemaHeaders: n,
2102
2099
  lockedHeaders: s
2103
2100
  }) => {
2104
- const { watch: a, formState: r } = ae(), o = a("headers"), i = rt({
2101
+ const { watch: a, formState: r } = oe(), o = a("headers"), i = ot({
2105
2102
  control: e,
2106
2103
  name: "headers",
2107
2104
  defaultValue: { name: "", value: "", active: !1 }
2108
- }), c = n.filter((d) => !o.some((h) => h.name === d.name)).map(({ name: d }) => d), l = i.fields.flatMap((d, h) => !s?.map((f) => f.toLowerCase()).includes(d.name.toLowerCase()) ? [] : [h]), m = s?.map((d) => ({
2105
+ }), c = n.filter((d) => !o.some((f) => f.name === d.name)).map(({ name: d }) => d), l = i.fields.flatMap((d, f) => !s?.map((p) => p.toLowerCase()).includes(d.name.toLowerCase()) ? [] : [f]), m = s?.map((d) => ({
2109
2106
  name: d,
2110
2107
  id: `locked-${d}`,
2111
2108
  value: "••••••••••",
2112
2109
  active: !0,
2113
2110
  locked: !0
2114
2111
  })) ?? [];
2115
- return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2116
- /* @__PURE__ */ t.jsxs(Z, { children: [
2117
- /* @__PURE__ */ t.jsx(Dn, { size: 14 }),
2112
+ return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
2113
+ /* @__PURE__ */ t.jsxs(Y, { children: [
2114
+ /* @__PURE__ */ t.jsx(Fn, { size: 14 }),
2118
2115
  /* @__PURE__ */ t.jsx(H, { children: "Headers" })
2119
2116
  ] }),
2120
- /* @__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(Re, { children: [
2121
- m.map((d) => /* @__PURE__ */ t.jsxs(jt, { children: [
2122
- /* @__PURE__ */ t.jsx(Ct, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2123
- xe,
2117
+ /* @__PURE__ */ t.jsx(q, { 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: [
2118
+ m.map((d) => /* @__PURE__ */ t.jsxs(Ct, { children: [
2119
+ /* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2120
+ ge,
2124
2121
  {
2125
2122
  className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
2126
2123
  children: [
2127
- /* @__PURE__ */ t.jsx(Fn, { size: 16 }),
2124
+ /* @__PURE__ */ t.jsx(zn, { size: 16 }),
2128
2125
  /* @__PURE__ */ t.jsx(I, { value: d.name, disabled: !0 }),
2129
2126
  /* @__PURE__ */ t.jsx("div", { children: d.value })
2130
2127
  ]
2131
2128
  },
2132
2129
  d.id
2133
2130
  ) }),
2134
- /* @__PURE__ */ t.jsx(Nt, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
2131
+ /* @__PURE__ */ t.jsx(wt, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
2135
2132
  ] }, d.id)),
2136
- i.fields.map((d, h) => {
2133
+ i.fields.map((d, f) => {
2137
2134
  const x = n.find(
2138
- (S) => S.name === o.at(h)?.name
2139
- ), f = x?.enum && x.enum.length > 0, v = l.includes(h), u = i.getNameInputProps(h), y = i.getValueInputProps(h);
2135
+ (w) => w.name === o.at(f)?.name
2136
+ ), p = x?.enum && x.enum.length > 0, v = l.includes(f), u = i.getNameInputProps(f), y = i.getValueInputProps(f);
2140
2137
  return /* @__PURE__ */ t.jsxs(
2141
- xe,
2138
+ ge,
2142
2139
  {
2143
- className: w(
2140
+ className: S(
2144
2141
  v && "text-amber-600",
2145
- v && !r.dirtyFields.headers?.[h]?.value && "hidden"
2142
+ v && !r.dirtyFields.headers?.[f]?.value && "hidden"
2146
2143
  ),
2147
2144
  children: [
2148
2145
  /* @__PURE__ */ t.jsx(
2149
- ve,
2146
+ be,
2150
2147
  {
2151
- className: w(v && "hidden"),
2152
- ...i.getCheckboxProps(h)
2148
+ className: S(v && "hidden"),
2149
+ ...i.getCheckboxProps(f)
2153
2150
  }
2154
2151
  ),
2155
- /* @__PURE__ */ t.jsxs(jt, { children: [
2156
- /* @__PURE__ */ t.jsx(Ct, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2157
- zn,
2152
+ /* @__PURE__ */ t.jsxs(Ct, { children: [
2153
+ /* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2154
+ Vn,
2158
2155
  {
2159
- className: w(
2156
+ className: S(
2160
2157
  "text-amber-600",
2161
2158
  !v && "hidden"
2162
2159
  ),
@@ -2164,7 +2161,7 @@ const Hr = ({
2164
2161
  }
2165
2162
  ) }),
2166
2163
  /* @__PURE__ */ t.jsx(
2167
- Nt,
2164
+ wt,
2168
2165
  {
2169
2166
  alignOffset: 10,
2170
2167
  side: "bottom",
@@ -2174,26 +2171,26 @@ const Hr = ({
2174
2171
  )
2175
2172
  ] }),
2176
2173
  /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2177
- Pe,
2174
+ $e,
2178
2175
  {
2179
2176
  ...u,
2180
- value: String(i.getValue(h, "name")),
2177
+ value: String(i.getValue(f, "name")),
2181
2178
  placeholder: "Name",
2182
- options: [...c, ...Qr],
2183
- onChange: (S) => i.setValue(h, "name", S),
2184
- onSelect: (S) => i.setValue(h, "name", S, { focus: "next" })
2179
+ options: [...c, ...Jr],
2180
+ onChange: (w) => i.setValue(f, "name", w),
2181
+ onSelect: (w) => i.setValue(f, "name", w, { focus: "next" })
2185
2182
  }
2186
2183
  ) }),
2187
2184
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2188
- f ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2189
- Pe,
2185
+ p ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2186
+ $e,
2190
2187
  {
2191
2188
  ...y,
2192
- value: String(i.getValue(h, "value")),
2189
+ value: String(i.getValue(f, "value")),
2193
2190
  shouldFilter: !1,
2194
2191
  options: x.enum ?? [],
2195
- onChange: (S) => i.setValue(h, "value", S),
2196
- onSelect: (S) => i.setValue(h, "value", S, { focus: "next" })
2192
+ onChange: (w) => i.setValue(f, "value", w),
2193
+ onSelect: (w) => i.setValue(f, "value", w, { focus: "next" })
2197
2194
  }
2198
2195
  ) }) : /* @__PURE__ */ t.jsx(
2199
2196
  I,
@@ -2204,9 +2201,9 @@ const Hr = ({
2204
2201
  }
2205
2202
  ),
2206
2203
  /* @__PURE__ */ t.jsx(
2207
- st,
2204
+ at,
2208
2205
  {
2209
- ...i.getRemoveButtonProps(h)
2206
+ ...i.getRemoveButtonProps(f)
2210
2207
  }
2211
2208
  )
2212
2209
  ] })
@@ -2217,45 +2214,45 @@ const Hr = ({
2217
2214
  })
2218
2215
  ] }) }) }) })
2219
2216
  ] });
2220
- }, Wr = qs(
2217
+ }, Xr = Fs(
2221
2218
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2222
- ), Ee = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2223
- Wt.Root,
2219
+ ), Re = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2220
+ Kt.Root,
2224
2221
  {
2225
2222
  ref: s,
2226
- className: w(Wr(), e),
2223
+ className: S(Xr(), e),
2227
2224
  ...n
2228
2225
  }
2229
2226
  ));
2230
- Ee.displayName = Wt.Root.displayName;
2231
- const un = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2232
- fe.Root,
2227
+ Re.displayName = Kt.Root.displayName;
2228
+ const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2229
+ he.Root,
2233
2230
  {
2234
- className: w("grid gap-2", e),
2231
+ className: S("grid gap-2", e),
2235
2232
  ...n,
2236
2233
  ref: s
2237
2234
  }
2238
2235
  ));
2239
- un.displayName = fe.Root.displayName;
2240
- const mn = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2241
- fe.Item,
2236
+ mn.displayName = he.Root.displayName;
2237
+ const pn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2238
+ he.Item,
2242
2239
  {
2243
2240
  ref: s,
2244
- className: w(
2241
+ className: S(
2245
2242
  "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",
2246
2243
  e
2247
2244
  ),
2248
2245
  ...n,
2249
- children: /* @__PURE__ */ t.jsx(fe.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Vn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
2246
+ children: /* @__PURE__ */ t.jsx(he.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Bn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
2250
2247
  }
2251
2248
  ));
2252
- mn.displayName = fe.Item.displayName;
2253
- const pn = ({
2249
+ pn.displayName = he.Item.displayName;
2250
+ const hn = ({
2254
2251
  identities: e,
2255
2252
  setValue: n,
2256
2253
  value: s
2257
2254
  }) => /* @__PURE__ */ t.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ t.jsx(
2258
- un,
2255
+ mn,
2259
2256
  {
2260
2257
  onValueChange: (a) => n(a),
2261
2258
  value: s,
@@ -2264,11 +2261,11 @@ const pn = ({
2264
2261
  disabled: e?.length === 0,
2265
2262
  children: [{ id: pe, label: "None" }, ...e ?? []].map(
2266
2263
  (a) => /* @__PURE__ */ t.jsxs(
2267
- Ee,
2264
+ Re,
2268
2265
  {
2269
2266
  className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
2270
2267
  children: [
2271
- /* @__PURE__ */ t.jsx(mn, { value: a.id, id: a.id }),
2268
+ /* @__PURE__ */ t.jsx(pn, { value: a.id, id: a.id }),
2272
2269
  /* @__PURE__ */ t.jsx("span", { children: a.label })
2273
2270
  ]
2274
2271
  },
@@ -2282,22 +2279,22 @@ const pn = ({
2282
2279
  open: s,
2283
2280
  onOpenChange: a
2284
2281
  }) => {
2285
- const [r, o] = E(void 0), [i, c] = E(!1);
2286
- return /* @__PURE__ */ t.jsx(Ze, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(Ye, { children: [
2287
- /* @__PURE__ */ t.jsx(et, { children: "Select an auth identity" }),
2288
- /* @__PURE__ */ t.jsx(Vt, { children: "Please select an identity for this request." }),
2289
- /* @__PURE__ */ t.jsx(_s, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
2290
- pn,
2282
+ const [r, o] = k(void 0), [i, c] = k(!1);
2283
+ return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
2284
+ /* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
2285
+ /* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
2286
+ /* @__PURE__ */ t.jsx(Ds, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
2287
+ hn,
2291
2288
  {
2292
2289
  identities: n,
2293
2290
  setValue: o,
2294
2291
  value: r
2295
2292
  }
2296
2293
  ) }),
2297
- /* @__PURE__ */ t.jsxs(Bt, { className: "flex flex-col gap-2", children: [
2294
+ /* @__PURE__ */ t.jsxs(qt, { className: "flex flex-col gap-2", children: [
2298
2295
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2299
2296
  /* @__PURE__ */ t.jsx(
2300
- ve,
2297
+ be,
2301
2298
  {
2302
2299
  id: "remember",
2303
2300
  checked: i,
@@ -2306,10 +2303,10 @@ const pn = ({
2306
2303
  )
2307
2304
  }
2308
2305
  ),
2309
- /* @__PURE__ */ t.jsx(Ee, { htmlFor: "remember", children: "Remember my choice" })
2306
+ /* @__PURE__ */ t.jsx(Re, { htmlFor: "remember", children: "Remember my choice" })
2310
2307
  ] }),
2311
2308
  /* @__PURE__ */ t.jsx(
2312
- q,
2309
+ B,
2313
2310
  {
2314
2311
  onClick: () => e({ identity: r, rememberedIdentity: i }),
2315
2312
  children: "Send"
@@ -2317,24 +2314,24 @@ const pn = ({
2317
2314
  )
2318
2315
  ] })
2319
2316
  ] }) });
2320
- }, Ue = (e) => Math.abs(
2317
+ }, Me = (e) => Math.abs(
2321
2318
  Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
2322
- ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), Ot = (e, n = {}) => {
2319
+ ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Me(n) + Me(s)}`)) : Me(e), kt = (e, n = {}) => {
2323
2320
  const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
2324
2321
  return `${s}deg ${a}% ${r}%`;
2325
- }, He = "data-linked-param", Xr = (e) => {
2326
- const { resolvedTheme: n } = Ms();
2322
+ }, He = "data-linked-param", Zr = (e) => {
2323
+ const { resolvedTheme: n } = ps();
2327
2324
  return {
2328
- text: Ot(
2325
+ text: kt(
2329
2326
  e,
2330
2327
  n === "light" ? { saturation: 95, lightness: 38 } : {}
2331
2328
  ),
2332
- background: Ot(
2329
+ background: kt(
2333
2330
  e,
2334
2331
  n === "light" ? { saturation: 85, lightness: 40 } : {}
2335
2332
  )
2336
2333
  };
2337
- }, hn = ({
2334
+ }, fn = ({
2338
2335
  name: e,
2339
2336
  className: n,
2340
2337
  slug: s,
@@ -2342,16 +2339,16 @@ const pn = ({
2342
2339
  children: r,
2343
2340
  onClick: o
2344
2341
  }) => {
2345
- const i = R(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Xr(l), h = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, f = `hsl(${d} / 50%)`;
2346
- return G(() => {
2342
+ const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Zr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, p = `hsl(${d} / 50%)`;
2343
+ return U(() => {
2347
2344
  if (!c || !i.current) return;
2348
2345
  const v = () => {
2349
- document.querySelectorAll(`[${He}="${c}"]`).forEach((S) => {
2350
- S instanceof HTMLElement && (S.dataset.active = "true");
2346
+ document.querySelectorAll(`[${He}="${c}"]`).forEach((w) => {
2347
+ w instanceof HTMLElement && (w.dataset.active = "true");
2351
2348
  });
2352
2349
  }, u = () => {
2353
- document.querySelectorAll(`[${He}="${c}"]`).forEach((S) => {
2354
- S instanceof HTMLElement && (S.dataset.active = "false");
2350
+ document.querySelectorAll(`[${He}="${c}"]`).forEach((w) => {
2351
+ w instanceof HTMLElement && (w.dataset.active = "false");
2355
2352
  });
2356
2353
  }, y = i.current;
2357
2354
  return y.addEventListener("mouseenter", v), y.addEventListener("mouseleave", u), () => {
@@ -2363,7 +2360,7 @@ const pn = ({
2363
2360
  "span",
2364
2361
  {
2365
2362
  [He]: c,
2366
- className: w(
2363
+ className: S(
2367
2364
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
2368
2365
  "relative transition-all duration-100 rounded-lg",
2369
2366
  "border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
@@ -2375,31 +2372,31 @@ const pn = ({
2375
2372
  ref: i,
2376
2373
  onClick: o,
2377
2374
  style: {
2378
- "--param-color": h,
2379
- "--border-color": f,
2375
+ "--param-color": f,
2376
+ "--border-color": p,
2380
2377
  "--background-color": x
2381
2378
  },
2382
2379
  children: r ?? e
2383
2380
  }
2384
2381
  );
2385
- }, Zr = ({
2382
+ }, Yr = ({
2386
2383
  control: e,
2387
2384
  url: n
2388
2385
  }) => {
2389
- const { fields: s } = Gt({
2386
+ const { fields: s } = Ut({
2390
2387
  control: e,
2391
2388
  name: "pathParams"
2392
2389
  }), a = [...s].sort(
2393
2390
  (r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
2394
2391
  );
2395
- return /* @__PURE__ */ t.jsx(Re, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(xe, { children: [
2392
+ return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
2396
2393
  /* @__PURE__ */ t.jsx(
2397
- bt,
2394
+ St,
2398
2395
  {
2399
2396
  control: e,
2400
2397
  name: `pathParams.${o}.name`,
2401
2398
  render: () => /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsx(
2402
- hn,
2399
+ fn,
2403
2400
  {
2404
2401
  slug: r.name,
2405
2402
  name: r.name,
@@ -2409,7 +2406,7 @@ const pn = ({
2409
2406
  }
2410
2407
  ),
2411
2408
  /* @__PURE__ */ t.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ t.jsx(
2412
- bt,
2409
+ St,
2413
2410
  {
2414
2411
  control: e,
2415
2412
  name: `pathParams.${o}.value`,
@@ -2417,28 +2414,28 @@ const pn = ({
2417
2414
  }
2418
2415
  ) })
2419
2416
  ] }, r.id)) });
2420
- }, Yr = ({
2417
+ }, ea = ({
2421
2418
  control: e,
2422
2419
  schemaQueryParams: n
2423
2420
  }) => {
2424
- const { watch: s } = ae(), a = s("queryParams"), r = rt({
2421
+ const { watch: s } = oe(), a = s("queryParams"), r = ot({
2425
2422
  control: e,
2426
2423
  name: "queryParams",
2427
2424
  defaultValue: { name: "", value: "", active: !1 }
2428
2425
  }), o = n.map(
2429
2426
  (c) => !!c.isRequired
2430
2427
  ), i = n.length > 0;
2431
- return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2432
- /* @__PURE__ */ t.jsxs(Z, { children: [
2433
- /* @__PURE__ */ t.jsx(Bn, { size: 16 }),
2428
+ return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
2429
+ /* @__PURE__ */ t.jsxs(Y, { children: [
2430
+ /* @__PURE__ */ t.jsx(_n, { size: 16 }),
2434
2431
  /* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
2435
2432
  ] }),
2436
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Re, { children: r.fields.map((c, l) => {
2433
+ /* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Ee, { children: r.fields.map((c, l) => {
2437
2434
  const m = n.find(
2438
- (f) => f.name === a.at(l)?.name
2439
- ), d = m?.enum && m.enum.length > 0, h = r.getNameInputProps(l), x = r.getValueInputProps(l);
2440
- return /* @__PURE__ */ t.jsxs(xe, { children: [
2441
- /* @__PURE__ */ t.jsx(ve, { ...r.getCheckboxProps(l) }),
2435
+ (p) => p.name === a.at(l)?.name
2436
+ ), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
2437
+ return /* @__PURE__ */ t.jsxs(ge, { children: [
2438
+ /* @__PURE__ */ t.jsx(be, { ...r.getCheckboxProps(l) }),
2442
2439
  o[l] ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2443
2440
  "label",
2444
2441
  {
@@ -2451,26 +2448,26 @@ const pn = ({
2451
2448
  ]
2452
2449
  }
2453
2450
  ) }) : i ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2454
- Pe,
2451
+ $e,
2455
2452
  {
2456
- ...h,
2453
+ ...f,
2457
2454
  value: String(r.getValue(l, "name")),
2458
2455
  placeholder: "Name",
2459
- options: n.map((f) => f.name),
2460
- onChange: (f) => r.setValue(l, "name", f),
2461
- onSelect: (f) => r.setValue(l, "name", f, { focus: "next" })
2456
+ options: n.map((p) => p.name),
2457
+ onChange: (p) => r.setValue(l, "name", p),
2458
+ onSelect: (p) => r.setValue(l, "name", p, { focus: "next" })
2462
2459
  }
2463
- ) }) : /* @__PURE__ */ t.jsx(I, { ...h, placeholder: "Name" }),
2460
+ ) }) : /* @__PURE__ */ t.jsx(I, { ...f, placeholder: "Name" }),
2464
2461
  /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between items-center", children: [
2465
2462
  d ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2466
- Pe,
2463
+ $e,
2467
2464
  {
2468
2465
  ...x,
2469
2466
  value: String(r.getValue(l, "value")),
2470
2467
  shouldFilter: !1,
2471
2468
  options: m.enum ?? [],
2472
- onChange: (f) => r.setValue(l, "value", f),
2473
- onSelect: (f) => r.setValue(l, "value", f, { focus: "next" })
2469
+ onChange: (p) => r.setValue(l, "value", p),
2470
+ onSelect: (p) => r.setValue(l, "value", p, { focus: "next" })
2474
2471
  }
2475
2472
  ) }) : /* @__PURE__ */ t.jsx(
2476
2473
  I,
@@ -2481,7 +2478,7 @@ const pn = ({
2481
2478
  }
2482
2479
  ),
2483
2480
  /* @__PURE__ */ t.jsx(
2484
- st,
2481
+ at,
2485
2482
  {
2486
2483
  ...r.getRemoveButtonProps(l)
2487
2484
  }
@@ -2490,22 +2487,22 @@ const pn = ({
2490
2487
  ] }, c.id);
2491
2488
  }) }) })
2492
2489
  ] });
2493
- }, ea = ({
2490
+ }, ta = ({
2494
2491
  open: e,
2495
2492
  setOpen: n,
2496
2493
  onSignUp: s,
2497
2494
  onLogin: a,
2498
2495
  onSkip: r
2499
2496
  }) => {
2500
- const [o, i] = E(!1), c = () => {
2497
+ const [o, i] = k(!1), c = () => {
2501
2498
  r?.(o), n(!1);
2502
2499
  };
2503
- return /* @__PURE__ */ t.jsx(Ze, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(Ye, { children: [
2504
- /* @__PURE__ */ t.jsx(et, { children: "Welcome to the Playground!" }),
2505
- /* @__PURE__ */ t.jsx(Vt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2506
- /* @__PURE__ */ t.jsxs(Ee, { className: "flex items-center gap-2 font-normal", children: [
2500
+ return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
2501
+ /* @__PURE__ */ t.jsx(nt, { children: "Welcome to the Playground!" }),
2502
+ /* @__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." }),
2503
+ /* @__PURE__ */ t.jsxs(Re, { className: "flex items-center gap-2 font-normal", children: [
2507
2504
  /* @__PURE__ */ t.jsx(
2508
- ve,
2505
+ be,
2509
2506
  {
2510
2507
  checked: o,
2511
2508
  onCheckedChange: (l) => i(l === !0)
@@ -2513,16 +2510,16 @@ const pn = ({
2513
2510
  ),
2514
2511
  "Don't show this again"
2515
2512
  ] }),
2516
- /* @__PURE__ */ t.jsxs(Bt, { className: "flex gap-2 sm:justify-between", children: [
2517
- /* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: c, children: "Skip" }),
2513
+ /* @__PURE__ */ t.jsxs(qt, { className: "flex gap-2 sm:justify-between", children: [
2514
+ /* @__PURE__ */ t.jsx(B, { type: "button", variant: "outline", onClick: c, children: "Skip" }),
2518
2515
  /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2", children: [
2519
- s && /* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2520
- a && /* @__PURE__ */ t.jsx(q, { type: "button", variant: "default", onClick: a, children: "Login" })
2516
+ s && /* @__PURE__ */ t.jsx(B, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2517
+ a && /* @__PURE__ */ t.jsx(B, { type: "button", variant: "default", onClick: a, children: "Login" })
2521
2518
  ] })
2522
2519
  ] })
2523
2520
  ] }) });
2524
- }, ta = Ke()(
2525
- Xe(
2521
+ }, na = Ze()(
2522
+ Ye(
2526
2523
  (e, n) => ({
2527
2524
  rememberedIdentity: null,
2528
2525
  setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
@@ -2532,10 +2529,10 @@ const pn = ({
2532
2529
  }),
2533
2530
  {
2534
2531
  name: "identity-storage",
2535
- storage: Dt(() => sessionStorage)
2532
+ storage: Bt(() => sessionStorage)
2536
2533
  }
2537
2534
  )
2538
- ), na = ({
2535
+ ), sa = ({
2539
2536
  path: e,
2540
2537
  renderParam: n
2541
2538
  }) => {
@@ -2544,13 +2541,13 @@ const pn = ({
2544
2541
  const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
2545
2542
  let l = 0;
2546
2543
  return i.forEach((m) => {
2547
- const [d, h] = m;
2548
- if (!h) return;
2544
+ const [d, f] = m;
2545
+ if (!f) return;
2549
2546
  const x = m.index;
2550
2547
  x > l && c.push(
2551
2548
  /* @__PURE__ */ t.jsx(le, { children: a.slice(l, x) }, `text-${l}-${x}`)
2552
2549
  ), c.push(
2553
- /* @__PURE__ */ t.jsx(le, { children: n({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2550
+ /* @__PURE__ */ t.jsx(le, { children: n({ name: f, originalValue: d, index: s++ }) }, `param-${f}`)
2554
2551
  ), l = x + d.length;
2555
2552
  }), l < a.length && c.push(
2556
2553
  /* @__PURE__ */ t.jsx(le, { children: a.slice(l) }, `text-${l}-${a.length}`)
@@ -2561,10 +2558,10 @@ const pn = ({
2561
2558
  /* @__PURE__ */ t.jsx("wbr", {})
2562
2559
  ] }, `${a}-${r}`);
2563
2560
  });
2564
- }, sa = ({ url: e }) => {
2565
- const { watch: n, setFocus: s } = ae(), [a] = n(["pathParams"]);
2561
+ }, ra = ({ url: e }) => {
2562
+ const { watch: n, setFocus: s } = oe(), [a] = n(["pathParams"]);
2566
2563
  return /* @__PURE__ */ t.jsx(
2567
- na,
2564
+ sa,
2568
2565
  {
2569
2566
  path: e,
2570
2567
  renderParam: ({ name: r, originalValue: o, index: i }) => {
@@ -2572,7 +2569,7 @@ const pn = ({
2572
2569
  (l) => l.name === r
2573
2570
  )?.value;
2574
2571
  return /* @__PURE__ */ t.jsx(
2575
- hn,
2572
+ fn,
2576
2573
  {
2577
2574
  name: r,
2578
2575
  backgroundOpacity: "0",
@@ -2584,8 +2581,8 @@ const pn = ({
2584
2581
  }
2585
2582
  }
2586
2583
  );
2587
- }, ra = () => {
2588
- const { watch: e } = ae(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(le, { children: [
2584
+ }, aa = () => {
2585
+ const { watch: e } = oe(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(le, { children: [
2589
2586
  a.name,
2590
2587
  "=",
2591
2588
  encodeURIComponent(a.value).replaceAll("%20", "+"),
@@ -2596,7 +2593,7 @@ const pn = ({
2596
2593
  s.length > 0 ? "?" : "",
2597
2594
  s
2598
2595
  ] });
2599
- }, aa = ({ status: e }) => {
2596
+ }, oa = ({ status: e }) => {
2600
2597
  if (!e) return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2601
2598
  switch (Number(e.toString().slice(0, 1))) {
2602
2599
  case 2:
@@ -2608,15 +2605,15 @@ const pn = ({
2608
2605
  default:
2609
2606
  return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2610
2607
  }
2611
- }, oa = () => {
2612
- const e = R(null), n = R(null), s = R(Date.now()), a = R(null), r = D(() => {
2608
+ }, ia = () => {
2609
+ const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
2613
2610
  if (n.current) {
2614
2611
  const o = Date.now() - s.current;
2615
2612
  n.current.nodeValue = o.toFixed();
2616
2613
  }
2617
2614
  a.current = requestAnimationFrame(r);
2618
2615
  }, []);
2619
- return ms(() => {
2616
+ return cs(() => {
2620
2617
  const o = e.current;
2621
2618
  if (!o) return;
2622
2619
  const i = document.createTextNode("0");
@@ -2624,7 +2621,7 @@ const pn = ({
2624
2621
  a.current && cancelAnimationFrame(a.current), n.current && o.contains(i) && o.removeChild(i);
2625
2622
  };
2626
2623
  }, [r]), /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
2627
- }, ia = ({
2624
+ }, la = ({
2628
2625
  status: e,
2629
2626
  time: n,
2630
2627
  size: s,
@@ -2645,7 +2642,7 @@ const pn = ({
2645
2642
  };
2646
2643
  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: [
2647
2644
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2648
- /* @__PURE__ */ t.jsx(aa, { status: e }),
2645
+ /* @__PURE__ */ t.jsx(oa, { status: e }),
2649
2646
  " ",
2650
2647
  e ?? "Sending Request...",
2651
2648
  e ? ` ${o[e]}` : ""
@@ -2654,12 +2651,12 @@ const pn = ({
2654
2651
  /* @__PURE__ */ t.jsxs("div", { children: [
2655
2652
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2656
2653
  " ",
2657
- /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? ke(s) : "- B" })
2654
+ /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? ve(s) : "- B" })
2658
2655
  ] }),
2659
2656
  /* @__PURE__ */ t.jsxs("div", { children: [
2660
2657
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2661
2658
  " ",
2662
- n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(oa, {}),
2659
+ n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(ia, {}),
2663
2660
  "ms"
2664
2661
  ] })
2665
2662
  ] }),
@@ -2674,29 +2671,52 @@ const pn = ({
2674
2671
  }
2675
2672
  )
2676
2673
  ] });
2674
+ }, ca = ({
2675
+ blob: e,
2676
+ fileName: n,
2677
+ size: s,
2678
+ onDownload: a
2679
+ }) => {
2680
+ const [r, o] = k(null);
2681
+ return U(() => {
2682
+ const i = URL.createObjectURL(e);
2683
+ return o(i), () => {
2684
+ URL.revokeObjectURL(i);
2685
+ };
2686
+ }, [e]), r ? /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
2687
+ /* @__PURE__ */ t.jsx("audio", { controls: !0, src: r, className: "w-full max-w-md", children: "Your browser does not support the audio element." }),
2688
+ /* @__PURE__ */ t.jsxs(B, { onClick: a, className: "flex items-center gap-2", children: [
2689
+ /* @__PURE__ */ t.jsx(Ft, { className: "h-4 w-4" }),
2690
+ "Download ",
2691
+ n,
2692
+ " (",
2693
+ ve(s),
2694
+ ")"
2695
+ ] })
2696
+ ] }) }) : /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsx("div", { className: "text-sm text-muted-foreground", children: "Loading audio..." }) });
2677
2697
  };
2678
- function at(e) {
2698
+ function it(e) {
2679
2699
  if (e === null) return "null";
2680
2700
  if (Array.isArray(e)) {
2681
2701
  if (e.length === 0) return "any[]";
2682
2702
  const n = e[0];
2683
- return n === void 0 ? "any[]" : `${at(n)}[]`;
2703
+ return n === void 0 ? "any[]" : `${it(n)}[]`;
2684
2704
  }
2685
- return typeof e == "object" ? la(e) : typeof e;
2705
+ return typeof e == "object" ? da(e) : typeof e;
2686
2706
  }
2687
- function la(e, n = "") {
2707
+ function da(e, n = "") {
2688
2708
  const s = ["{"];
2689
2709
  for (const [a, r] of Object.entries(e)) {
2690
- const o = at(r);
2710
+ const o = it(r);
2691
2711
  s.push(` ${a}: ${o};`);
2692
2712
  }
2693
2713
  return s.push("}"), s.join(`
2694
2714
  `);
2695
2715
  }
2696
- function ca(e) {
2697
- return { lines: [`type GeneratedType = ${at(e)};`] };
2716
+ function ua(e) {
2717
+ return { lines: [`type GeneratedType = ${it(e)};`] };
2698
2718
  }
2699
- const da = (e) => Object.entries({
2719
+ const ma = (e) => Object.entries({
2700
2720
  "application/json": "json",
2701
2721
  "text/json": "json",
2702
2722
  "text/html": "html",
@@ -2706,16 +2726,16 @@ const da = (e) => Object.entries({
2706
2726
  "application/xhtml+xml": "xhtml"
2707
2727
  }).find(
2708
2728
  ([s]) => e.includes(s)
2709
- )?.[1], ua = (e) => {
2710
- const n = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
2711
- return da(n);
2712
- }, ma = (e) => {
2729
+ )?.[1], gn = (e) => e.find(([n]) => n.toLowerCase() === "content-type")?.[1] || "", pa = (e) => {
2730
+ const n = gn(e);
2731
+ return ma(n);
2732
+ }, ha = (e) => {
2713
2733
  try {
2714
2734
  return JSON.stringify(JSON.parse(e), null, 2);
2715
2735
  } catch {
2716
2736
  return null;
2717
2737
  }
2718
- }, pa = (e) => {
2738
+ }, fa = (e) => {
2719
2739
  const n = [
2720
2740
  "Content-Type",
2721
2741
  "Content-Length",
@@ -2732,12 +2752,12 @@ const da = (e) => Object.entries({
2732
2752
  }, z = 3, Se = ye(
2733
2753
  "div",
2734
2754
  "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2735
- ), ue = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
2736
- const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = E(!a);
2755
+ ), ue = ye("div", "py-1 break-words"), Te = ({ value: e, header: n }) => {
2756
+ const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = k(!a);
2737
2757
  return /* @__PURE__ */ t.jsx(
2738
2758
  ue,
2739
2759
  {
2740
- className: w(
2760
+ className: S(
2741
2761
  "max-h-28 overflow-auto",
2742
2762
  a && "cursor-pointer flex group"
2743
2763
  ),
@@ -2745,12 +2765,12 @@ const da = (e) => Object.entries({
2745
2765
  a && o((i) => !i);
2746
2766
  },
2747
2767
  children: a ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2748
- /* @__PURE__ */ t.jsx(bs, { secret: e, previewChars: 0, revealed: r }),
2749
- 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") })
2768
+ /* @__PURE__ */ t.jsx(Ns, { secret: e, previewChars: 0, revealed: r }),
2769
+ r ? /* @__PURE__ */ t.jsx(Gn, { size: 14, className: S("hidden group-hover:block") }) : /* @__PURE__ */ t.jsx(Hn, { size: 14, className: S("hidden group-hover:block") })
2750
2770
  ] }) : e
2751
2771
  }
2752
2772
  );
2753
- }, ha = ({
2773
+ }, ga = ({
2754
2774
  body: e = "",
2755
2775
  headers: n,
2756
2776
  request: s,
@@ -2759,47 +2779,47 @@ const da = (e) => Object.entries({
2759
2779
  fileName: o,
2760
2780
  blob: i
2761
2781
  }) => {
2762
- const c = ua(n), l = ma(e), m = l || e, [d, h] = E(
2782
+ const c = pa(n), l = ha(e), m = l || e, [d, f] = k(
2763
2783
  l ? "formatted" : "raw"
2764
- ), x = as({
2784
+ ), x = qs({
2765
2785
  queryKey: ["types", m],
2766
- queryFn: async () => ca(JSON.parse(m)),
2786
+ queryFn: async () => ua(JSON.parse(m)),
2767
2787
  enabled: d === "types" && !r
2768
- }), f = () => {
2788
+ }), p = () => {
2769
2789
  if (i && o) {
2770
2790
  const u = URL.createObjectURL(i), y = document.createElement("a");
2771
2791
  y.href = u, y.download = o, document.body.appendChild(y), y.click(), document.body.removeChild(y), URL.revokeObjectURL(u);
2772
2792
  }
2773
- }, v = pa([...n]);
2793
+ }, v = fa([...n]);
2774
2794
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2775
- /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2776
- /* @__PURE__ */ t.jsxs(Z, { children: [
2777
- /* @__PURE__ */ t.jsx(_n, { size: 14 }),
2795
+ /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
2796
+ /* @__PURE__ */ t.jsxs(Y, { children: [
2797
+ /* @__PURE__ */ t.jsx(qn, { size: 14 }),
2778
2798
  /* @__PURE__ */ t.jsx(H, { children: "Request Headers" })
2779
2799
  ] }),
2780
- /* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2800
+ /* @__PURE__ */ t.jsx(q, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2781
2801
  s.headers.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2782
2802
  /* @__PURE__ */ t.jsx(ue, { children: u }),
2783
- /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2803
+ /* @__PURE__ */ t.jsx(Te, { value: y, header: u })
2784
2804
  ] }, u)),
2785
- s.headers.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
2805
+ s.headers.length > z && /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid-cols-subgrid grid group", children: [
2786
2806
  /* @__PURE__ */ t.jsxs(de, { 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: [
2787
2807
  "Show ",
2788
2808
  s.headers.length - z,
2789
2809
  " more headers",
2790
- /* @__PURE__ */ t.jsx(Qe, { size: 12, className: "text-muted-foreground" })
2810
+ /* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
2791
2811
  ] }),
2792
- /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
2812
+ /* @__PURE__ */ t.jsxs(q, { className: "col-span-full grid grid-cols-subgrid", children: [
2793
2813
  s.headers.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2794
2814
  /* @__PURE__ */ t.jsx(ue, { children: u }),
2795
- /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2815
+ /* @__PURE__ */ t.jsx(Te, { value: y, header: u })
2796
2816
  ] }, u)),
2797
2817
  /* @__PURE__ */ t.jsxs(de, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2798
2818
  "Hide ",
2799
2819
  s.headers.length - z,
2800
2820
  " headers",
2801
2821
  /* @__PURE__ */ t.jsx(
2802
- yt,
2822
+ bt,
2803
2823
  {
2804
2824
  size: 12,
2805
2825
  className: "text-muted-foreground"
@@ -2810,34 +2830,34 @@ const da = (e) => Object.entries({
2810
2830
  ] })
2811
2831
  ] }) })
2812
2832
  ] }),
2813
- /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2814
- /* @__PURE__ */ t.jsxs(Z, { children: [
2815
- /* @__PURE__ */ t.jsx(qn, { size: 14 }),
2833
+ /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
2834
+ /* @__PURE__ */ t.jsxs(Y, { children: [
2835
+ /* @__PURE__ */ t.jsx(Un, { size: 14 }),
2816
2836
  /* @__PURE__ */ t.jsx(H, { children: "Response Headers" })
2817
2837
  ] }),
2818
- /* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2838
+ /* @__PURE__ */ t.jsx(q, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2819
2839
  v.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2820
2840
  /* @__PURE__ */ t.jsx(ue, { children: u }),
2821
- /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2841
+ /* @__PURE__ */ t.jsx(Te, { value: y, header: u })
2822
2842
  ] }, u)),
2823
- v.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
2843
+ v.length > z && /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid-cols-subgrid grid group", children: [
2824
2844
  /* @__PURE__ */ t.jsxs(de, { 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: [
2825
2845
  "Show ",
2826
2846
  v.length - z,
2827
2847
  " more headers",
2828
- /* @__PURE__ */ t.jsx(Qe, { size: 12, className: "text-muted-foreground" })
2848
+ /* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
2829
2849
  ] }),
2830
- /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
2850
+ /* @__PURE__ */ t.jsxs(q, { className: "col-span-full grid grid-cols-subgrid", children: [
2831
2851
  v.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2832
2852
  /* @__PURE__ */ t.jsx(ue, { children: u }),
2833
- /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2853
+ /* @__PURE__ */ t.jsx(Te, { value: y, header: u })
2834
2854
  ] }, u)),
2835
2855
  /* @__PURE__ */ t.jsxs(de, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2836
2856
  "Hide ",
2837
2857
  v.length - z,
2838
2858
  " headers",
2839
2859
  /* @__PURE__ */ t.jsx(
2840
- yt,
2860
+ bt,
2841
2861
  {
2842
2862
  size: 12,
2843
2863
  className: "text-muted-foreground"
@@ -2854,42 +2874,50 @@ const da = (e) => Object.entries({
2854
2874
  "Response body"
2855
2875
  ] }),
2856
2876
  l && !r && /* @__PURE__ */ t.jsxs(
2857
- _t,
2877
+ Mt,
2858
2878
  {
2859
2879
  value: d,
2860
- onValueChange: (u) => h(u),
2880
+ onValueChange: (u) => f(u),
2861
2881
  children: [
2862
- /* @__PURE__ */ t.jsx(qt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Mt, { placeholder: "View" }) }),
2863
- /* @__PURE__ */ t.jsxs(Ut, { children: [
2864
- /* @__PURE__ */ t.jsx(Te, { value: "formatted", children: "Formatted" }),
2865
- /* @__PURE__ */ t.jsx(Te, { value: "raw", children: "Raw" }),
2866
- /* @__PURE__ */ t.jsx(Te, { value: "types", children: "Types" })
2882
+ /* @__PURE__ */ t.jsx(Gt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Ht, { placeholder: "View" }) }),
2883
+ /* @__PURE__ */ t.jsxs(Qt, { children: [
2884
+ /* @__PURE__ */ t.jsx(Ae, { value: "formatted", children: "Formatted" }),
2885
+ /* @__PURE__ */ t.jsx(Ae, { value: "raw", children: "Raw" }),
2886
+ /* @__PURE__ */ t.jsx(Ae, { value: "types", children: "Types" })
2867
2887
  ] })
2868
2888
  ]
2869
2889
  }
2870
2890
  )
2871
2891
  ] }),
2872
- /* @__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: [
2892
+ /* @__PURE__ */ t.jsx("div", { className: "flex-1", children: r ? i && Mr(gn(n)) ? /* @__PURE__ */ t.jsx(
2893
+ ca,
2894
+ {
2895
+ blob: i,
2896
+ fileName: o ?? "audio",
2897
+ size: a,
2898
+ onDownload: p
2899
+ }
2900
+ ) : /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
2873
2901
  /* @__PURE__ */ t.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
2874
2902
  /* @__PURE__ */ t.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
2875
2903
  /* @__PURE__ */ t.jsxs(
2876
- q,
2904
+ B,
2877
2905
  {
2878
- onClick: f,
2906
+ onClick: p,
2879
2907
  className: "flex items-center gap-2",
2880
2908
  disabled: !i,
2881
2909
  children: [
2882
- /* @__PURE__ */ t.jsx(Un, { className: "h-4 w-4" }),
2910
+ /* @__PURE__ */ t.jsx(Ft, { className: "h-4 w-4" }),
2883
2911
  "Download ",
2884
2912
  o || "file",
2885
2913
  " (",
2886
- ke(a),
2914
+ ve(a),
2887
2915
  ")"
2888
2916
  ]
2889
2917
  }
2890
2918
  )
2891
2919
  ] }) }) : /* @__PURE__ */ t.jsx(
2892
- $s,
2920
+ Cs,
2893
2921
  {
2894
2922
  className: "text-xs flex-1",
2895
2923
  embedded: !0,
@@ -2900,7 +2928,7 @@ const da = (e) => Object.entries({
2900
2928
  }
2901
2929
  ) })
2902
2930
  ] });
2903
- }, fa = ({
2931
+ }, xa = ({
2904
2932
  queryMutation: e,
2905
2933
  showLongRunningWarning: n,
2906
2934
  onCancel: s,
@@ -2909,7 +2937,7 @@ const da = (e) => Object.entries({
2909
2937
  progress: o
2910
2938
  }) => /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col overflow-y-auto h-[80vh] bg-muted/50", children: [
2911
2939
  (e.isPending || e.data) && /* @__PURE__ */ t.jsx(
2912
- ia,
2940
+ la,
2913
2941
  {
2914
2942
  status: e.data?.status,
2915
2943
  time: e.data?.time,
@@ -2918,12 +2946,12 @@ const da = (e) => Object.entries({
2918
2946
  progress: o
2919
2947
  }
2920
2948
  ),
2921
- e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(js, { children: [
2949
+ e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(Vs, { children: [
2922
2950
  /* @__PURE__ */ t.jsx(Qn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2923
- /* @__PURE__ */ t.jsx(Cs, { children: "Request failed" }),
2924
- /* @__PURE__ */ t.jsx(Ns, { children: e.error.message || String(e.error) || "Unexpected error" })
2951
+ /* @__PURE__ */ t.jsx(Bs, { children: "Request failed" }),
2952
+ /* @__PURE__ */ t.jsx(_s, { children: e.error.message || String(e.error) || "Unexpected error" })
2925
2953
  ] }) }) : e.data ? /* @__PURE__ */ t.jsx(
2926
- ha,
2954
+ ga,
2927
2955
  {
2928
2956
  request: e.data.request,
2929
2957
  size: e.data.size,
@@ -2934,18 +2962,18 @@ const da = (e) => Object.entries({
2934
2962
  blob: e.data.blob
2935
2963
  }
2936
2964
  ) : 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: [
2937
- /* @__PURE__ */ t.jsx(ys, {}),
2965
+ /* @__PURE__ */ t.jsx(zs, {}),
2938
2966
  /* @__PURE__ */ t.jsxs(
2939
2967
  "div",
2940
2968
  {
2941
- className: w(
2969
+ className: S(
2942
2970
  "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2943
2971
  n && "opacity-100 pointer-events-auto"
2944
2972
  ),
2945
2973
  children: [
2946
2974
  "Looks like the request is taking longer than expected.",
2947
2975
  /* @__PURE__ */ t.jsx(
2948
- It,
2976
+ K,
2949
2977
  {
2950
2978
  type: "button",
2951
2979
  onClick: s,
@@ -2970,20 +2998,20 @@ const da = (e) => Object.entries({
2970
2998
  /* @__PURE__ */ t.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2971
2999
  a
2972
3000
  ] }) })
2973
- ] }), fn = Ke()(
2974
- Xe(
3001
+ ] }), xn = Ze()(
3002
+ Ye(
2975
3003
  (e) => ({
2976
3004
  skipLogin: !1,
2977
3005
  setSkipLogin: (n) => e({ skipLogin: n })
2978
3006
  }),
2979
3007
  {
2980
3008
  name: "remember-skip-login",
2981
- storage: Dt(() => sessionStorage)
3009
+ storage: Bt(() => sessionStorage)
2982
3010
  }
2983
3011
  )
2984
3012
  );
2985
- os(fn);
2986
- const pe = "__none", ga = ({
3013
+ fs(xn);
3014
+ const pe = "__none", ya = ({
2987
3015
  server: e,
2988
3016
  servers: n = [],
2989
3017
  url: s,
@@ -2995,177 +3023,181 @@ const pe = "__none", ga = ({
2995
3023
  examples: l,
2996
3024
  requiresLogin: m = !1,
2997
3025
  onLogin: d,
2998
- onSignUp: h
3026
+ onSignUp: f
2999
3027
  }) => {
3000
- const { selectedServer: x, setSelectedServer: f } = Vr(
3001
- n.map((p) => ({ url: p }))
3002
- ), [v, u] = E(!1), y = is(), { setRememberedIdentity: S, getRememberedIdentity: N } = ta(), [, k] = ps(), { skipLogin: j, setSkipLogin: O } = fn(), [ie, be] = E(!1), [Ie, ee] = E(!1), g = R(void 0), C = Os(S), T = R(null), { label: $ } = Fr("meta+enter", () => {
3028
+ const { selectedServer: x, setSelectedServer: p } = Vr(
3029
+ n.map((h) => ({ url: h }))
3030
+ ), [v, u] = k(!1), y = as(), { setRememberedIdentity: w, getRememberedIdentity: R } = na(), [, N] = ds(), { skipLogin: j, setSkipLogin: $ } = xn(), [Q, je] = k(!1), [Ie, te] = k(!1), g = E(void 0), C = Ss(w), T = E(null), { label: A } = Fr("meta+enter", () => {
3003
3031
  T.current?.requestSubmit();
3004
- }), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
3005
- (p, se) => M.indexOf(p.name) - M.indexOf(se.name)
3006
- ), { register: De, control: te, handleSubmit: je, watch: it, setValue: Fe, ...ze } = ws({
3032
+ }), M = s.match(/\{([^}]+)\}/g)?.map((h) => h.slice(1, -1)) ?? [], L = [...i].sort(
3033
+ (h, re) => M.indexOf(h.name) - M.indexOf(re.name)
3034
+ ), { register: De, control: ne, handleSubmit: Ce, watch: ct, setValue: Fe, ...ze } = bs({
3007
3035
  defaultValues: {
3008
3036
  body: c,
3009
3037
  bodyMode: "text",
3010
3038
  file: null,
3011
3039
  multipartFormFields: [],
3012
- queryParams: o.length > 0 ? o.map((p) => ({
3013
- name: p.name,
3014
- value: p.defaultValue ?? "",
3015
- active: p.defaultActive ?? !1,
3016
- enum: p.enum ?? []
3040
+ queryParams: o.length > 0 ? o.map((h) => ({
3041
+ name: h.name,
3042
+ value: h.defaultValue ?? "",
3043
+ active: h.defaultActive ?? !1,
3044
+ enum: h.enum ?? []
3017
3045
  })) : [{ name: "", value: "", active: !1, enum: [] }],
3018
- pathParams: L.map((p) => ({
3019
- name: p.name,
3020
- value: p.defaultValue ?? ""
3046
+ pathParams: L.map((h) => ({
3047
+ name: h.name,
3048
+ value: h.defaultValue ?? ""
3021
3049
  })),
3022
- headers: r.length > 0 ? r.map((p) => ({
3023
- name: p.name,
3024
- value: p.defaultValue ?? "",
3025
- active: p.defaultActive ?? !1
3050
+ headers: r.length > 0 ? r.map((h) => ({
3051
+ name: h.name,
3052
+ value: h.defaultValue ?? "",
3053
+ active: h.defaultActive ?? !1
3026
3054
  })) : [{ name: "", value: "", active: !1 }],
3027
- identity: N([
3055
+ identity: R([
3028
3056
  pe,
3029
- ...y.data?.map((p) => p.id) ?? []
3057
+ ...y.data?.map((h) => h.id) ?? []
3030
3058
  ])
3031
3059
  }
3032
- }), ne = it("identity"), jn = zt(
3033
- () => y.data?.find((p) => p.id === ne)?.authorizationFields,
3034
- [y.data, ne]
3060
+ }), se = ct("identity"), Cn = Vt(
3061
+ () => y.data?.find((h) => h.id === se)?.authorizationFields,
3062
+ [y.data, se]
3035
3063
  );
3036
- G(() => {
3037
- ne && C.current(ne);
3038
- }, [C, ne]);
3039
- const J = Ss({
3064
+ U(() => {
3065
+ se && C.current(se);
3066
+ }, [C, se]);
3067
+ const J = vs({
3040
3068
  gcTime: 0,
3041
- mutationFn: async (p) => {
3042
- const se = performance.now(), Ve = new window.Headers(
3043
- p.headers.filter((A) => A.name && A.active).map((A) => [A.name, A.value])
3069
+ mutationFn: async (h) => {
3070
+ const re = performance.now(), Ve = new window.Headers(
3071
+ h.headers.filter((O) => O.name && O.active).map((O) => [O.name, O.value])
3044
3072
  );
3045
- let Ce;
3046
- switch (p.bodyMode) {
3073
+ let Ne;
3074
+ switch (h.bodyMode) {
3047
3075
  case "file":
3048
- Ce = p.file ?? void 0, Ve.delete("Content-Type");
3076
+ Ne = h.file || void 0, Ve.delete("Content-Type");
3049
3077
  break;
3050
3078
  case "multipart": {
3051
- const A = new FormData();
3052
- p.multipartFormFields?.filter((K) => K.name && K.active).forEach((K) => A.append(K.name, K.value)), Ce = A, Ve.delete("Content-Type");
3079
+ const O = new FormData();
3080
+ h.multipartFormFields?.filter((X) => X.name && X.active).forEach((X) => O.append(X.name, X.value)), Ne = O, Ve.delete("Content-Type");
3053
3081
  break;
3054
3082
  }
3055
3083
  default:
3056
- Ce = p.body ?? void 0;
3084
+ Ne = h.body || void 0;
3057
3085
  break;
3058
3086
  }
3059
3087
  const W = new Request(
3060
- Pt(e ?? x, s, p),
3061
- { method: a, headers: Ve, body: Ce }
3088
+ Lt(e ?? x, s, h),
3089
+ {
3090
+ method: a,
3091
+ headers: Ve,
3092
+ body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ne
3093
+ }
3062
3094
  );
3063
- p.identity !== pe && await y.data?.find((A) => A.id === p.identity)?.authorizeRequest(W);
3095
+ h.identity !== pe && await y.data?.find((O) => O.id === h.identity)?.authorizeRequest(W);
3064
3096
  const Be = setTimeout(
3065
- () => ee(!0),
3097
+ () => te(!0),
3066
3098
  3210
3067
3099
  );
3068
3100
  g.current = new AbortController(), g.current.signal.addEventListener("abort", () => {
3069
3101
  clearTimeout(Be);
3070
3102
  });
3071
3103
  try {
3072
- const A = await fetch(W, {
3104
+ const O = await fetch(W, {
3073
3105
  cache: "no-store",
3074
3106
  signal: g.current.signal
3075
3107
  });
3076
- clearTimeout(Be), ee(!1);
3077
- const K = performance.now() - se, On = new URL(W.url), dt = Array.from(A.headers.entries()), ut = A.headers.get("content-type") || "", mt = Mr(ut);
3078
- let Ne = "", pt, ht;
3079
- mt ? (pt = await A.blob(), ht = Ur(dt, W.url), Ne = `Binary content (${ut})`) : Ne = await A.text();
3080
- const ft = A.headers.get("content-length");
3081
- let re = "";
3082
- switch (p.bodyMode) {
3108
+ clearTimeout(Be), te(!1);
3109
+ const X = performance.now() - re, Ln = new URL(W.url), mt = Array.from(O.headers.entries()), pt = O.headers.get("content-type") || "", ht = Ur(pt);
3110
+ let we = "", ft, gt;
3111
+ ht ? (ft = await O.blob(), gt = Gr(mt, W.url), we = `Binary content (${pt})`) : we = await O.text();
3112
+ const xt = O.headers.get("content-length");
3113
+ let ae = "";
3114
+ switch (h.bodyMode) {
3083
3115
  case "text":
3084
- re = p.body;
3116
+ ae = h.body;
3085
3117
  break;
3086
3118
  case "file":
3087
- re = `[File: ${p.file?.name ?? "Unknown"}]`;
3119
+ ae = `[File: ${h.file?.name ?? "Unknown"}]`;
3088
3120
  break;
3089
3121
  case "multipart":
3090
- re = `[Multipart Form Data]
3091
- `, re += p.multipartFormFields?.filter((U) => U.name && U.active).map(
3092
- (U) => U.value instanceof File ? `${U.name}: [File: ${U.value.name}]` : `${U.name}: ${U.value}`
3122
+ ae = `[Multipart Form Data]
3123
+ `, ae += h.multipartFormFields?.filter((G) => G.name && G.active).map(
3124
+ (G) => G.value instanceof File ? `${G.name}: [File: ${G.value.name}]` : `${G.name}: ${G.value}`
3093
3125
  ).join(`
3094
3126
  `);
3095
3127
  break;
3096
3128
  default:
3097
- re = p.body;
3129
+ ae = h.body;
3098
3130
  break;
3099
3131
  }
3100
3132
  return {
3101
- status: A.status,
3102
- headers: dt,
3103
- size: ft ? Number(ft) : Ne.length,
3104
- body: Ne,
3105
- time: K,
3106
- isBinary: mt,
3107
- fileName: ht,
3108
- blob: pt,
3133
+ status: O.status,
3134
+ headers: mt,
3135
+ size: xt ? Number(xt) : we.length,
3136
+ body: we,
3137
+ time: X,
3138
+ isBinary: ht,
3139
+ fileName: gt,
3140
+ blob: ft,
3109
3141
  request: {
3110
3142
  method: W.method.toUpperCase(),
3111
3143
  url: W.url,
3112
3144
  headers: [
3113
- ["Host", On.host],
3145
+ ["Host", Ln.host],
3114
3146
  ["User-Agent", "Zudoku Playground"],
3115
3147
  ...Array.from(W.headers.entries())
3116
3148
  ],
3117
- body: re
3149
+ body: ae
3118
3150
  }
3119
3151
  };
3120
- } catch (A) {
3121
- throw clearTimeout(Be), ee(!1), A instanceof TypeError ? new Error(
3152
+ } catch (O) {
3153
+ throw clearTimeout(Be), te(!1), O instanceof TypeError ? new Error(
3122
3154
  "The request failed, possibly due to network issues or CORS policy."
3123
- ) : A;
3155
+ ) : O;
3124
3156
  }
3125
3157
  }
3126
- }), lt = J.isPending, [Cn, Nn] = E(!1);
3127
- G(() => {
3128
- const p = setTimeout(() => Nn(lt), 100);
3129
- return () => clearTimeout(p);
3130
- }, [lt]);
3131
- const { isFinished: Sn, progress: wn } = vs({ isAnimating: Cn });
3132
- G(() => () => {
3158
+ }), dt = J.isPending, [Nn, wn] = k(!1);
3159
+ U(() => {
3160
+ const h = setTimeout(() => wn(dt), 100);
3161
+ return () => clearTimeout(h);
3162
+ }, [dt]);
3163
+ const { isFinished: Sn, progress: Tn } = xs({ isAnimating: Nn });
3164
+ U(() => () => {
3133
3165
  g.current?.abort();
3134
3166
  }, []);
3135
- 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(
3136
- _t,
3167
+ const An = /* @__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(
3168
+ Mt,
3137
3169
  {
3138
- onValueChange: (p) => {
3139
- k(() => f(p));
3170
+ onValueChange: (h) => {
3171
+ N(() => p(h));
3140
3172
  },
3141
3173
  value: x,
3142
3174
  defaultValue: x,
3143
3175
  children: [
3144
- /* @__PURE__ */ t.jsx(qt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ t.jsx(Mt, {}) }),
3145
- /* @__PURE__ */ t.jsx(Ut, { children: n.map((p) => /* @__PURE__ */ t.jsx(Te, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
3176
+ /* @__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, {}) }),
3177
+ /* @__PURE__ */ t.jsx(Qt, { children: n.map((h) => /* @__PURE__ */ t.jsx(Ae, { value: h, children: h.replace(/^https?:\/\//, "").replace(/\/$/, "") }, h)) })
3146
3178
  ]
3147
3179
  }
3148
- ) }), $n = m && !j && !ie, An = ["POST", "PUT", "PATCH", "DELETE"].includes(
3180
+ ) }), On = m && !j && !Q, Pn = ["POST", "PUT", "PATCH", "DELETE"].includes(
3149
3181
  a.toUpperCase()
3150
- ), [ct, Pn] = Ps();
3182
+ ), [ut, $n] = ws();
3151
3183
  return /* @__PURE__ */ t.jsx(
3152
- Ts,
3184
+ js,
3153
3185
  {
3154
3186
  register: De,
3155
- control: te,
3156
- handleSubmit: je,
3157
- watch: it,
3187
+ control: ne,
3188
+ handleSubmit: Ce,
3189
+ watch: ct,
3158
3190
  setValue: Fe,
3159
3191
  ...ze,
3160
- children: /* @__PURE__ */ t.jsx(As, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
3192
+ children: /* @__PURE__ */ t.jsx(ys, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
3161
3193
  "form",
3162
3194
  {
3163
3195
  ref: T,
3164
- onKeyDown: (p) => {
3165
- p.key === "Enter" && p.target instanceof HTMLInputElement && p.preventDefault();
3196
+ onKeyDown: (h) => {
3197
+ h.key === "Enter" && h.target instanceof HTMLInputElement && h.preventDefault();
3166
3198
  },
3167
- onSubmit: je((p) => {
3168
- y.data?.length === 0 || p.identity ? J.mutate(p) : u(!0);
3199
+ onSubmit: Ce((h) => {
3200
+ y.data?.length === 0 || h.identity ? J.mutate(h) : u(!0);
3169
3201
  }),
3170
3202
  className: "relative",
3171
3203
  children: [
@@ -3175,22 +3207,22 @@ const pe = "__none", ga = ({
3175
3207
  identities: y.data ?? [],
3176
3208
  open: v,
3177
3209
  onOpenChange: u,
3178
- onSubmit: ({ rememberedIdentity: p, identity: se }) => {
3179
- p && Fe("identity", se ?? pe), u(!1), J.mutate({ ...ze.getValues(), identity: se });
3210
+ onSubmit: ({ rememberedIdentity: h, identity: re }) => {
3211
+ h && Fe("identity", re ?? pe), u(!1), J.mutate({ ...ze.getValues(), identity: re });
3180
3212
  }
3181
3213
  }
3182
3214
  ),
3183
3215
  /* @__PURE__ */ t.jsx(
3184
- ea,
3216
+ ta,
3185
3217
  {
3186
- open: $n,
3187
- setOpen: (p) => {
3188
- p || be(!0);
3218
+ open: On,
3219
+ setOpen: (h) => {
3220
+ h || je(!0);
3189
3221
  },
3190
- onSkip: (p) => {
3191
- be(!0), p && O(!0);
3222
+ onSkip: (h) => {
3223
+ je(!0), h && $(!0);
3192
3224
  },
3193
- onSignUp: h,
3225
+ onSignUp: f,
3194
3226
  onLogin: d
3195
3227
  }
3196
3228
  ),
@@ -3199,17 +3231,17 @@ const pe = "__none", ga = ({
3199
3231
  /* @__PURE__ */ t.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
3200
3232
  /* @__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() }),
3201
3233
  /* @__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: [
3202
- Tn,
3203
- /* @__PURE__ */ t.jsx(sa, { url: s }),
3204
- /* @__PURE__ */ t.jsx(ra, {})
3234
+ An,
3235
+ /* @__PURE__ */ t.jsx(ra, { url: s }),
3236
+ /* @__PURE__ */ t.jsx(aa, {})
3205
3237
  ] }) }),
3206
3238
  /* @__PURE__ */ t.jsx("div", { className: "px-1", children: /* @__PURE__ */ t.jsx(
3207
- q,
3239
+ B,
3208
3240
  {
3209
3241
  type: "button",
3210
3242
  onClick: () => {
3211
- Pn(
3212
- Pt(
3243
+ $n(
3244
+ Lt(
3213
3245
  e ?? x,
3214
3246
  s,
3215
3247
  ze.getValues()
@@ -3218,23 +3250,23 @@ const pe = "__none", ga = ({
3218
3250
  },
3219
3251
  variant: "ghost",
3220
3252
  size: "icon-xs",
3221
- className: w(
3253
+ className: S(
3222
3254
  "hover:opacity-100 transition",
3223
- ct ? "text-emerald-600 opacity-100" : "opacity-50"
3255
+ ut ? "text-emerald-600 opacity-100" : "opacity-50"
3224
3256
  ),
3225
- children: ct ? /* @__PURE__ */ t.jsx(Et, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Wn, { size: 14 })
3257
+ children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Wn, { size: 14 })
3226
3258
  }
3227
3259
  ) })
3228
3260
  ] }),
3229
3261
  /* @__PURE__ */ t.jsx(
3230
- q,
3262
+ B,
3231
3263
  {
3232
3264
  type: "submit",
3233
3265
  variant: J.isPending ? "destructive" : "default",
3234
- onClick: (p) => {
3266
+ onClick: (h) => {
3235
3267
  J.isPending && (g.current?.abort(
3236
3268
  "Request cancelled by user"
3237
- ), p.preventDefault());
3269
+ ), h.preventDefault());
3238
3270
  },
3239
3271
  className: "w-18",
3240
3272
  children: J.isPending ? "Cancel" : "Send"
@@ -3242,57 +3274,57 @@ const pe = "__none", ga = ({
3242
3274
  )
3243
3275
  ] }),
3244
3276
  /* @__PURE__ */ t.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
3245
- y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
3246
- /* @__PURE__ */ t.jsxs(Z, { children: [
3247
- /* @__PURE__ */ t.jsx(Kn, { size: 16 }),
3277
+ y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
3278
+ /* @__PURE__ */ t.jsxs(Y, { children: [
3279
+ /* @__PURE__ */ t.jsx(Xn, { size: 16 }),
3248
3280
  /* @__PURE__ */ t.jsx(H, { children: "Authentication" })
3249
3281
  ] }),
3250
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
3251
- pn,
3282
+ /* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
3283
+ hn,
3252
3284
  {
3253
- value: ne,
3285
+ value: se,
3254
3286
  identities: y.data ?? [],
3255
- setValue: (p) => Fe("identity", p)
3287
+ setValue: (h) => Fe("identity", h)
3256
3288
  }
3257
3289
  ) })
3258
3290
  ] }),
3259
- L.length > 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
3260
- /* @__PURE__ */ t.jsxs(Z, { children: [
3261
- /* @__PURE__ */ t.jsx(Xn, { size: 16 }),
3291
+ L.length > 0 && /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
3292
+ /* @__PURE__ */ t.jsxs(Y, { children: [
3293
+ /* @__PURE__ */ t.jsx(Kn, { size: 16 }),
3262
3294
  /* @__PURE__ */ t.jsx(H, { children: "Path Parameters" })
3263
3295
  ] }),
3264
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Zr, { url: s, control: te }) })
3296
+ /* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Yr, { url: s, control: ne }) })
3265
3297
  ] }),
3266
- /* @__PURE__ */ t.jsx(Yr, { control: te, schemaQueryParams: o }),
3298
+ /* @__PURE__ */ t.jsx(ea, { control: ne, schemaQueryParams: o }),
3267
3299
  /* @__PURE__ */ t.jsx(
3268
- Jr,
3300
+ Wr,
3269
3301
  {
3270
- control: te,
3302
+ control: ne,
3271
3303
  schemaHeaders: r,
3272
- lockedHeaders: jn?.headers
3304
+ lockedHeaders: Cn?.headers
3273
3305
  }
3274
3306
  ),
3275
- An && /* @__PURE__ */ t.jsx(qr, { content: l })
3307
+ Pn && /* @__PURE__ */ t.jsx(qr, { content: l })
3276
3308
  ] }),
3277
3309
  /* @__PURE__ */ t.jsx("div", { className: "w-full bg-muted-foreground/20" }),
3278
3310
  /* @__PURE__ */ t.jsx(
3279
- fa,
3311
+ xa,
3280
3312
  {
3281
3313
  queryMutation: J,
3282
3314
  showLongRunningWarning: Ie,
3283
3315
  isFinished: Sn,
3284
- progress: wn,
3316
+ progress: Tn,
3285
3317
  tip: /* @__PURE__ */ t.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
3286
3318
  "Press",
3287
3319
  " ",
3288
- /* @__PURE__ */ t.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: $.join(" + ") }),
3320
+ /* @__PURE__ */ t.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: A.join(" + ") }),
3289
3321
  " ",
3290
3322
  "to send a request"
3291
3323
  ] }) }),
3292
3324
  onCancel: () => {
3293
3325
  g.current?.abort(
3294
3326
  "Request cancelled by the user"
3295
- ), ee(!1);
3327
+ ), te(!1);
3296
3328
  }
3297
3329
  }
3298
3330
  )
@@ -3302,10 +3334,10 @@ const pe = "__none", ga = ({
3302
3334
  ) })
3303
3335
  }
3304
3336
  );
3305
- }, xa = (e) => {
3306
- const [n, s] = E(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = gs();
3307
- return /* @__PURE__ */ t.jsxs(Ze, { onOpenChange: (l) => s(l), children: [
3308
- /* @__PURE__ */ t.jsx(xs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
3337
+ }, va = (e) => {
3338
+ const [n, s] = k(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = hs();
3339
+ return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
3340
+ /* @__PURE__ */ t.jsx(gs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(B, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
3309
3341
  Zn,
3310
3342
  {
3311
3343
  className: "fill-muted-foreground group-hover:fill-foreground transition",
@@ -3314,15 +3346,15 @@ const pe = "__none", ga = ({
3314
3346
  }
3315
3347
  ) }) }),
3316
3348
  /* @__PURE__ */ t.jsxs(
3317
- Ye,
3349
+ tt,
3318
3350
  {
3319
3351
  className: "max-w-screen-xl! w-full overflow-hidden p-0",
3320
3352
  "aria-describedby": void 0,
3321
3353
  showCloseButton: !0,
3322
3354
  children: [
3323
- /* @__PURE__ */ t.jsx(fs, { children: /* @__PURE__ */ t.jsx(et, { children: "Playground" }) }),
3355
+ /* @__PURE__ */ t.jsx(ms, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
3324
3356
  n && /* @__PURE__ */ t.jsx(
3325
- ga,
3357
+ ya,
3326
3358
  {
3327
3359
  requiresLogin: a && !c && !i,
3328
3360
  onLogin: () => r(),
@@ -3334,7 +3366,7 @@ const pe = "__none", ga = ({
3334
3366
  }
3335
3367
  )
3336
3368
  ] });
3337
- }, ya = {
3369
+ }, ba = {
3338
3370
  get: "green",
3339
3371
  post: "blue",
3340
3372
  put: "yellow",
@@ -3342,7 +3374,7 @@ const pe = "__none", ga = ({
3342
3374
  patch: "purple",
3343
3375
  options: "gray",
3344
3376
  head: "gray"
3345
- }, Lt = ({
3377
+ }, Et = ({
3346
3378
  label: e,
3347
3379
  path: n,
3348
3380
  operations: s,
@@ -3366,21 +3398,21 @@ const pe = "__none", ga = ({
3366
3398
  badge: {
3367
3399
  label: o.method,
3368
3400
  // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
3369
- color: ya[o.method.toLowerCase()],
3401
+ color: ba[o.method.toLowerCase()],
3370
3402
  invert: !0
3371
3403
  }
3372
3404
  }))
3373
- }), gn = Ft(
3405
+ }), yn = zt(
3374
3406
  void 0
3375
- ), Ya = gn.Provider, va = () => {
3376
- const e = hs(gn);
3407
+ ), oo = yn.Provider, ja = () => {
3408
+ const e = us(yn);
3377
3409
  if (!e)
3378
3410
  throw new Error("useOasConfig must be used within a OasConfigProvider");
3379
3411
  return e.config;
3380
- }, kt = (e) => ({
3412
+ }, Qe = (e) => ({
3381
3413
  path: e.routePath,
3382
3414
  async lazy() {
3383
- const { OasProvider: n } = await import("./OasProvider-BhuIkD4Z.js");
3415
+ const { OasProvider: n } = await import("./OasProvider-CZqLHoRo.js");
3384
3416
  return {
3385
3417
  element: /* @__PURE__ */ t.jsx(
3386
3418
  n,
@@ -3394,23 +3426,23 @@ const pe = "__none", ga = ({
3394
3426
  };
3395
3427
  },
3396
3428
  children: e.routes
3397
- }), xn = ({
3429
+ }), vn = ({
3398
3430
  path: e,
3399
3431
  tag: n,
3400
3432
  untagged: s
3401
3433
  }) => ({
3402
3434
  path: e,
3403
3435
  async lazy() {
3404
- const { OperationList: a } = await import("./OperationList-D8EDc9v7.js");
3436
+ const { OperationList: a } = await import("./OperationList-BmV1XvEY.js");
3405
3437
  return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
3406
3438
  }
3407
- }), ba = ({
3439
+ }), Ca = ({
3408
3440
  render: e,
3409
3441
  path: n
3410
3442
  }) => {
3411
- const { type: s, input: a } = va(), { tag: r } = ts(), o = ns(), i = Sr(bn, { type: s, input: a }), {
3443
+ const { type: s, input: a } = ja(), { tag: r } = ts(), o = ns(), i = wr(jn, { type: s, input: a }), {
3412
3444
  data: { schema: c }
3413
- } = ls(i), l = c.tags.at(0);
3445
+ } = Us(i), l = c.tags.at(0);
3414
3446
  return !r && l?.slug ? /* @__PURE__ */ t.jsx(
3415
3447
  ss,
3416
3448
  {
@@ -3420,13 +3452,13 @@ const pe = "__none", ga = ({
3420
3452
  }
3421
3453
  }
3422
3454
  ) : r && c.tags.some((m) => m.slug === r) ? e(r) : null;
3423
- }, ja = ({ path: e }) => ({
3455
+ }, Rt = ({ path: e }) => ({
3424
3456
  path: e,
3425
3457
  async lazy() {
3426
- const { OperationList: n } = await import("./OperationList-D8EDc9v7.js");
3458
+ const { OperationList: n } = await import("./OperationList-BmV1XvEY.js");
3427
3459
  return {
3428
3460
  element: /* @__PURE__ */ t.jsx(
3429
- ba,
3461
+ Ca,
3430
3462
  {
3431
3463
  path: e,
3432
3464
  render: (s) => /* @__PURE__ */ t.jsx(n, { tag: s })
@@ -3434,66 +3466,84 @@ const pe = "__none", ga = ({
3434
3466
  )
3435
3467
  };
3436
3468
  }
3437
- }), yn = (e) => [
3469
+ }), Ke = (e) => [
3438
3470
  // Category without tagged operations
3439
- xn({
3440
- path: V(e, ot),
3471
+ vn({
3472
+ path: V(e, lt),
3441
3473
  untagged: !0
3442
3474
  }),
3443
3475
  // Schema list route
3444
3476
  {
3445
3477
  path: V(e, "~schemas"),
3446
3478
  lazy: async () => {
3447
- const { SchemaList: n } = await import("./SchemaList-E6lF7dID.js");
3479
+ const { SchemaList: n } = await import("./SchemaList-D23IyrX5.js");
3448
3480
  return { element: /* @__PURE__ */ t.jsx(n, {}) };
3449
3481
  }
3450
3482
  }
3451
- ], Ca = (e, n) => {
3452
- const s = V(e, n.at(0) ?? ot);
3483
+ ], Na = (e, n) => {
3484
+ const s = V(e, n.at(0) ?? lt);
3453
3485
  return [
3454
3486
  // Redirect to first tag on the index route
3455
3487
  { index: !0, loader: () => es(s) },
3456
3488
  // Create routes for each tag
3457
3489
  ...n.map(
3458
- (a) => xn({
3490
+ (a) => vn({
3459
3491
  path: V(e, a),
3460
3492
  tag: a
3461
3493
  })
3462
3494
  ),
3463
- ...yn(e)
3495
+ ...Ke(e)
3464
3496
  ];
3465
- }, vn = (e) => e.type === "file" ? Object.keys(e.input) : [], Na = ({
3497
+ }, bn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {}, downloadUrls: {} } : {
3498
+ versions: e.input.map((n) => n.path),
3499
+ labels: Object.fromEntries(
3500
+ e.input.map((n) => [n.path, n.label ?? n.path])
3501
+ ),
3502
+ downloadUrls: Object.fromEntries(
3503
+ e.input.map((n) => [n.path, n.downloadUrl])
3504
+ )
3505
+ }, wa = ({
3466
3506
  basePath: e,
3467
3507
  config: n,
3468
3508
  client: s
3469
3509
  }) => {
3470
- const a = n.tagPages;
3471
- if (!a)
3472
- return [
3473
- kt({
3474
- basePath: e,
3475
- routePath: e,
3476
- routes: [
3477
- ja({ path: `${e}/:tag?` }),
3478
- ...yn(e)
3479
- ],
3480
- client: s,
3481
- config: n
3482
- })
3483
- ];
3484
- const r = vn(n);
3485
- return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3510
+ const a = n.tagPages, { versions: r } = bn(n);
3511
+ return a ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3486
3512
  const c = V(e, i);
3487
- return kt({
3513
+ return Qe({
3488
3514
  basePath: e,
3489
3515
  version: i,
3490
3516
  routePath: c,
3491
- routes: Ca(c, a),
3517
+ routes: Na(c, a),
3492
3518
  client: s,
3493
3519
  config: n
3494
3520
  });
3495
- });
3496
- }, bn = Rr(`
3521
+ }) : r.length > 0 ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((c) => {
3522
+ const l = V(e, c);
3523
+ return Qe({
3524
+ basePath: e,
3525
+ version: c,
3526
+ routePath: l,
3527
+ routes: [
3528
+ Rt({ path: `${l}/:tag?` }),
3529
+ ...Ke(l)
3530
+ ],
3531
+ client: s,
3532
+ config: n
3533
+ });
3534
+ }) : [
3535
+ Qe({
3536
+ basePath: e,
3537
+ routePath: e,
3538
+ routes: [
3539
+ Rt({ path: `${e}/:tag?` }),
3540
+ ...Ke(e)
3541
+ ],
3542
+ client: s,
3543
+ config: n
3544
+ })
3545
+ ];
3546
+ }, jn = Er(`
3497
3547
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3498
3548
  schema(input: $input, type: $type) {
3499
3549
  extensions
@@ -3516,20 +3566,21 @@ const pe = "__none", ga = ({
3516
3566
  }
3517
3567
  }
3518
3568
  }
3519
- `), ot = "~endpoints", eo = (e) => {
3569
+ `), lt = "~endpoints", io = (e) => {
3520
3570
  const n = V(e.path), s = new Gs(e);
3521
3571
  return {
3522
3572
  getHead: () => {
3523
3573
  if (e.type === "url" && !e.skipPreload)
3524
- return /* @__PURE__ */ t.jsx(
3574
+ return (Array.isArray(e.input) ? e.input.map((r) => r.input) : [e.input]).map((r) => /* @__PURE__ */ t.jsx(
3525
3575
  "link",
3526
3576
  {
3577
+ href: r,
3527
3578
  rel: "preload",
3528
- href: e.input,
3529
3579
  as: "fetch",
3530
3580
  crossOrigin: "anonymous"
3531
- }
3532
- );
3581
+ },
3582
+ r
3583
+ ));
3533
3584
  if (e.server)
3534
3585
  return /* @__PURE__ */ t.jsx("link", { rel: "preconnect", href: e.server });
3535
3586
  },
@@ -3544,13 +3595,13 @@ const pe = "__none", ga = ({
3544
3595
  if (!a)
3545
3596
  throw new Error("Server is required");
3546
3597
  return /* @__PURE__ */ t.jsx(
3547
- xa,
3598
+ va,
3548
3599
  {
3549
3600
  url: o,
3550
3601
  method: r,
3551
3602
  server: a,
3552
3603
  ...c,
3553
- children: /* @__PURE__ */ t.jsx(It, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3604
+ children: /* @__PURE__ */ t.jsx(K, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3554
3605
  "Open in Playground",
3555
3606
  /* @__PURE__ */ t.jsx(Yn, { size: 16 })
3556
3607
  ] }) })
@@ -3559,109 +3610,109 @@ const pe = "__none", ga = ({
3559
3610
  }
3560
3611
  }),
3561
3612
  getNavigation: async (a, r) => {
3562
- if (!vt({ path: n, end: !1 }, a))
3613
+ if (!jt({ path: n, end: !1 }, a))
3563
3614
  return [];
3564
- const o = vt(
3615
+ const o = jt(
3565
3616
  { path: `${n}/:version?/:tag`, end: !0 },
3566
3617
  a
3567
3618
  );
3568
3619
  try {
3569
- const i = o?.params.version, c = i ?? vn(e).at(0), { type: l } = e, m = l === "file" ? e.input[c] : e.input, d = on(s, bn, {
3570
- type: l,
3571
- input: m
3572
- }), h = await r.queryClient.ensureQueryData(d), x = new Map(
3573
- h.schema.tags.filter((N) => N.name && N.operations.length > 0).map((N) => {
3620
+ const i = o?.params.version, { versions: c } = bn(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, jn, {
3621
+ type: m,
3622
+ input: d
3623
+ }), x = await r.queryClient.ensureQueryData(f), p = new Map(
3624
+ x.schema.tags.filter((N) => N.name && N.operations.length > 0).map((N) => {
3574
3625
  if (!N.name)
3575
3626
  throw new Error(`Tag ${N.slug} has no name`);
3576
- const k = V(n, i, N.slug), j = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, O = N.extensions?.["x-zudoku-collapsible"] ?? !0;
3627
+ const j = V(n, i, N.slug), $ = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
3577
3628
  return [
3578
3629
  N.name,
3579
- Lt({
3630
+ Et({
3580
3631
  label: N.extensions?.["x-displayName"] ?? N.name,
3581
- path: k,
3632
+ path: j,
3582
3633
  operations: N.operations,
3583
- collapsed: j,
3584
- collapsible: O
3634
+ collapsed: $,
3635
+ collapsible: Q
3585
3636
  })
3586
3637
  ];
3587
3638
  })
3588
- ), f = h.schema.extensions?.["x-tagGroups"] ?? [], v = new Set(
3589
- f.flatMap(
3590
- (N) => N.tags.filter((k) => x.has(k))
3639
+ ), v = x.schema.extensions?.["x-tagGroups"] ?? [], u = new Set(
3640
+ v.flatMap(
3641
+ (N) => N.tags.filter((j) => p.has(j))
3591
3642
  )
3592
- ), y = [
3593
- ...f.flatMap(
3643
+ ), w = [
3644
+ ...v.flatMap(
3594
3645
  (N) => {
3595
- const k = N.tags.map((j) => x.get(j)).filter(Boolean);
3596
- return k.length === 0 ? [] : [
3646
+ const j = N.tags.map(($) => p.get($)).filter(Boolean);
3647
+ return j.length === 0 ? [] : [
3597
3648
  {
3598
3649
  type: "category",
3599
3650
  label: N.name,
3600
- items: k,
3651
+ items: j,
3601
3652
  collapsible: !0,
3602
3653
  collapsed: !e.options?.expandAllTags
3603
3654
  }
3604
3655
  ];
3605
3656
  }
3606
3657
  ),
3607
- ...Array.from(x.entries()).filter(([N]) => !v.has(N)).map(([, N]) => N)
3608
- ], S = h.schema.tags.find(
3658
+ ...Array.from(p.entries()).filter(([N]) => !u.has(N)).map(([, N]) => N)
3659
+ ], R = x.schema.tags.find(
3609
3660
  (N) => !N.name
3610
3661
  )?.operations;
3611
- return S && S.length > 0 && y.push(
3612
- Lt({
3613
- label: y.length === 0 ? "Endpoints" : "Other endpoints",
3614
- path: V(n, i, ot),
3615
- operations: S,
3662
+ return R && R.length > 0 && w.push(
3663
+ Et({
3664
+ label: w.length === 0 ? "Endpoints" : "Other endpoints",
3665
+ path: V(n, i, lt),
3666
+ operations: R,
3616
3667
  collapsed: !e.options?.expandAllTags
3617
3668
  })
3618
- ), h.schema.components?.schemas?.length && y.push({
3669
+ ), x.schema.components?.schemas?.length && w.push({
3619
3670
  type: "link",
3620
3671
  label: "Schemas",
3621
3672
  to: V(n, i, "~schemas")
3622
- }), y;
3673
+ }), w;
3623
3674
  } catch {
3624
3675
  return [];
3625
3676
  }
3626
3677
  },
3627
- getRoutes: () => Na({ basePath: n, config: e, client: s })
3678
+ getRoutes: () => wa({ basePath: n, config: e, client: s })
3628
3679
  };
3629
3680
  };
3630
3681
  export {
3631
- B as C,
3632
- Za as G,
3682
+ _ as C,
3683
+ ao as G,
3633
3684
  sr as L,
3634
- Ya as O,
3635
- xa as P,
3636
- Xs as Q,
3637
- rn as S,
3685
+ oo as O,
3686
+ va as P,
3687
+ Ks as Q,
3688
+ on as S,
3638
3689
  b as T,
3639
- ot as U,
3640
- Sr as a,
3690
+ lt as U,
3691
+ wr as a,
3641
3692
  de as b,
3642
- _ as c,
3643
- vn as d,
3693
+ q as c,
3694
+ Er as d,
3644
3695
  Vr as e,
3645
- hn as f,
3646
- Rr as g,
3647
- na as h,
3696
+ fn as f,
3697
+ bn as g,
3698
+ sa as h,
3648
3699
  Cr as i,
3649
- $t as j,
3650
- Ka as k,
3700
+ Pt as j,
3701
+ so as k,
3651
3702
  rr as l,
3652
- nt as m,
3653
- sn as n,
3703
+ rt as m,
3704
+ an as n,
3654
3705
  Hs as o,
3655
3706
  jr as p,
3656
3707
  qe as q,
3657
3708
  Qs as r,
3658
3709
  F as s,
3659
- Xa as t,
3660
- va as u,
3710
+ ro as t,
3711
+ ja as u,
3661
3712
  nr as v,
3662
3713
  Ys as w,
3663
- Yt as x,
3664
- bn as y,
3665
- eo as z
3714
+ tn as x,
3715
+ jn as y,
3716
+ io as z
3666
3717
  };
3667
- //# sourceMappingURL=index-HNVs5cgX.js.map
3718
+ //# sourceMappingURL=index-B7bvsQHg.js.map