zudoku 0.65.3 → 0.66.1

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 (274) hide show
  1. package/dist/app/sentry.js +1 -1
  2. package/dist/config/validators/BuildSchema.js +18 -3
  3. package/dist/config/validators/BuildSchema.js.map +1 -1
  4. package/dist/config/validators/validate.d.ts +45 -5
  5. package/dist/config/validators/validate.js +7 -2
  6. package/dist/config/validators/validate.js.map +1 -1
  7. package/dist/flat-config.d.ts +10 -3
  8. package/dist/lib/authentication/ui/ZudokuAuthUi.js +5 -1
  9. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -1
  10. package/dist/lib/components/Mermaid.d.ts +7 -0
  11. package/dist/lib/components/Mermaid.js +42 -0
  12. package/dist/lib/components/Mermaid.js.map +1 -0
  13. package/dist/lib/components/PagefindSearchMeta.d.ts +8 -0
  14. package/dist/lib/components/PagefindSearchMeta.js +7 -0
  15. package/dist/lib/components/PagefindSearchMeta.js.map +1 -0
  16. package/dist/lib/components/Zudoku.js +2 -5
  17. package/dist/lib/components/Zudoku.js.map +1 -1
  18. package/dist/lib/core/RouteGuard.js +1 -1
  19. package/dist/lib/core/RouteGuard.js.map +1 -1
  20. package/dist/lib/core/plugins.d.ts +3 -3
  21. package/dist/lib/oas/parser/index.d.ts +1 -0
  22. package/dist/lib/oas/parser/index.js.map +1 -1
  23. package/dist/lib/plugins/openapi/DownloadSchemaButton.d.ts +3 -0
  24. package/dist/lib/plugins/openapi/DownloadSchemaButton.js +47 -0
  25. package/dist/lib/plugins/openapi/DownloadSchemaButton.js.map +1 -0
  26. package/dist/lib/plugins/openapi/Endpoint.js +3 -6
  27. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  28. package/dist/lib/plugins/openapi/OasProvider.js +22 -13
  29. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  30. package/dist/lib/plugins/openapi/OperationList.js +12 -6
  31. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  32. package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
  33. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  34. package/dist/lib/plugins/openapi/SchemaList.js +2 -1
  35. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  36. package/dist/lib/plugins/openapi/index.js +11 -5
  37. package/dist/lib/plugins/openapi/index.js.map +1 -1
  38. package/dist/lib/plugins/openapi/interfaces.d.ts +16 -13
  39. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  40. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  41. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -1
  42. package/dist/lib/plugins/openapi/schema/SchemaView.js +14 -6
  43. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  44. package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -2
  45. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  46. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +6 -1
  47. package/dist/lib/plugins/openapi/util/getRoutes.js +29 -2
  48. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  49. package/dist/lib/plugins/search-pagefind/IndexingDialog.d.ts +3 -0
  50. package/dist/lib/plugins/search-pagefind/IndexingDialog.js +64 -0
  51. package/dist/lib/plugins/search-pagefind/IndexingDialog.js.map +1 -0
  52. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +22 -5
  53. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  54. package/dist/lib/plugins/search-pagefind/ResultList.js +5 -4
  55. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  56. package/dist/lib/shiki.d.ts +1 -1
  57. package/dist/lib/shiki.js +18 -12
  58. package/dist/lib/shiki.js.map +1 -1
  59. package/dist/lib/ui/Button.d.ts +2 -2
  60. package/dist/lib/ui/Button.js +9 -8
  61. package/dist/lib/ui/Button.js.map +1 -1
  62. package/dist/lib/ui/ButtonGroup.d.ts +11 -0
  63. package/dist/lib/ui/ButtonGroup.js +28 -0
  64. package/dist/lib/ui/ButtonGroup.js.map +1 -0
  65. package/dist/lib/ui/Command.js +2 -2
  66. package/dist/lib/ui/Command.js.map +1 -1
  67. package/dist/lib/ui/DropdownMenu.d.ts +21 -23
  68. package/dist/lib/ui/DropdownMenu.js +47 -32
  69. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  70. package/dist/lib/ui/Kbd.d.ts +3 -0
  71. package/dist/lib/ui/Kbd.js +10 -0
  72. package/dist/lib/ui/Kbd.js.map +1 -0
  73. package/dist/lib/util/MdxComponents.d.ts +1 -0
  74. package/dist/lib/util/MdxComponents.js +2 -0
  75. package/dist/lib/util/MdxComponents.js.map +1 -1
  76. package/dist/lib/util/flattenAllOf.js +27 -4
  77. package/dist/lib/util/flattenAllOf.js.map +1 -1
  78. package/dist/lib/util/flattenAllOf.test.js +67 -12
  79. package/dist/lib/util/flattenAllOf.test.js.map +1 -1
  80. package/dist/vite/api/SchemaManager.d.ts +5 -0
  81. package/dist/vite/api/SchemaManager.js +24 -0
  82. package/dist/vite/api/SchemaManager.js.map +1 -1
  83. package/dist/vite/api/SchemaManager.test.js +67 -0
  84. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  85. package/dist/vite/config.js +8 -2
  86. package/dist/vite/config.js.map +1 -1
  87. package/dist/vite/dev-server.js +25 -0
  88. package/dist/vite/dev-server.js.map +1 -1
  89. package/dist/vite/pagefind-dev-index.d.ts +16 -0
  90. package/dist/vite/pagefind-dev-index.js +68 -0
  91. package/dist/vite/pagefind-dev-index.js.map +1 -0
  92. package/dist/vite/plugin-api.js +41 -3
  93. package/dist/vite/plugin-api.js.map +1 -1
  94. package/dist/vite/prerender/prerender.js +1 -19
  95. package/dist/vite/prerender/prerender.js.map +1 -1
  96. package/dist/vite/prerender/utils.d.ts +2 -0
  97. package/dist/vite/prerender/utils.js +24 -0
  98. package/dist/vite/prerender/utils.js.map +1 -0
  99. package/lib/ActionButton-DUgvSylL.js +25 -0
  100. package/lib/ActionButton-DUgvSylL.js.map +1 -0
  101. package/lib/Button-CynVW1JV.js +53 -0
  102. package/lib/Button-CynVW1JV.js.map +1 -0
  103. package/lib/ClaudeLogo-B4Xxt-x_.js +69 -0
  104. package/lib/ClaudeLogo-B4Xxt-x_.js.map +1 -0
  105. package/lib/{Command-CUcrW3qs.js → Command-BpT1iBE6.js} +25 -25
  106. package/lib/Command-BpT1iBE6.js.map +1 -0
  107. package/lib/Drawer-Ci7XwhqT.js.map +1 -1
  108. package/lib/DropdownMenu-C8SX_-S_.js +104 -0
  109. package/lib/DropdownMenu-C8SX_-S_.js.map +1 -0
  110. package/lib/{ErrorAlert-D5LKLFOd.js → ErrorAlert-DrOR8w3f.js} +1017 -1015
  111. package/lib/{ErrorAlert-D5LKLFOd.js.map → ErrorAlert-DrOR8w3f.js.map} +1 -1
  112. package/lib/IndexingDialog-B5zCiUKr.js +100 -0
  113. package/lib/IndexingDialog-B5zCiUKr.js.map +1 -0
  114. package/lib/MdxPage-BagO2c-n.js +210 -0
  115. package/lib/MdxPage-BagO2c-n.js.map +1 -0
  116. package/lib/Mermaid-D_VSX7_Q.js +102 -0
  117. package/lib/Mermaid-D_VSX7_Q.js.map +1 -0
  118. package/lib/{OAuthErrorPage-oXnxcJg4.js → OAuthErrorPage-Fq54RLgt.js} +7 -7
  119. package/lib/{OAuthErrorPage-oXnxcJg4.js.map → OAuthErrorPage-Fq54RLgt.js.map} +1 -1
  120. package/lib/OasProvider-DPH8mwDa.js +40 -0
  121. package/lib/OasProvider-DPH8mwDa.js.map +1 -0
  122. package/lib/{OperationList-CmMoKpGu.js → OperationList-C0jiEaG5.js} +1670 -1573
  123. package/lib/OperationList-C0jiEaG5.js.map +1 -0
  124. package/lib/{RouteGuard-Brz95MSt.js → RouteGuard-9wjejsKm.js} +19 -19
  125. package/lib/{RouteGuard-Brz95MSt.js.map → RouteGuard-9wjejsKm.js.map} +1 -1
  126. package/lib/{RouterError-VGZB_wg4.js → RouterError-DSLXagd5.js} +3 -3
  127. package/lib/{RouterError-VGZB_wg4.js.map → RouterError-DSLXagd5.js.map} +1 -1
  128. package/lib/{SchemaList-BykD27ga.js → SchemaList-BU0zCHn9.js} +28 -27
  129. package/lib/SchemaList-BU0zCHn9.js.map +1 -0
  130. package/lib/{SchemaView-Dt6hbCAt.js → SchemaView-DVae4RO2.js} +198 -187
  131. package/lib/SchemaView-DVae4RO2.js.map +1 -0
  132. package/lib/Select-CkxXP5I7.js +243 -0
  133. package/lib/Select-CkxXP5I7.js.map +1 -0
  134. package/lib/Separator-CTPSeW1S.js +27 -0
  135. package/lib/Separator-CTPSeW1S.js.map +1 -0
  136. package/lib/{SignUp-D2mmQOkg.js → SignUp-BjS4ozA7.js} +13 -13
  137. package/lib/{SignUp-D2mmQOkg.js.map → SignUp-BjS4ozA7.js.map} +1 -1
  138. package/lib/{SyntaxHighlight-C19vH0V_.js → SyntaxHighlight-Kdyskw3C.js} +654 -622
  139. package/lib/SyntaxHighlight-Kdyskw3C.js.map +1 -0
  140. package/lib/{Toc-CBWfFCVf.js → Toc-DJxFPfcS.js} +2 -2
  141. package/lib/{Toc-CBWfFCVf.js.map → Toc-DJxFPfcS.js.map} +1 -1
  142. package/lib/{ZudokuContext-BUZ5hkWB.js → ZudokuContext-BXldanA8.js} +11 -11
  143. package/lib/{ZudokuContext-BUZ5hkWB.js.map → ZudokuContext-BXldanA8.js.map} +1 -1
  144. package/lib/___vite-browser-external_commonjs-proxy-Cga3HsWk.js +9 -0
  145. package/lib/___vite-browser-external_commonjs-proxy-Cga3HsWk.js.map +1 -0
  146. package/lib/{chunk-PVWAREVJ-BMhpCH5D.js → chunk-PVWAREVJ-dLIqswPy.js} +5 -5
  147. package/lib/{chunk-PVWAREVJ-BMhpCH5D.js.map → chunk-PVWAREVJ-dLIqswPy.js.map} +1 -1
  148. package/lib/{circular-CNHs4gAz.js → circular-CzWF1hj5.js} +2 -2
  149. package/lib/{circular-CNHs4gAz.js.map → circular-CzWF1hj5.js.map} +1 -1
  150. package/lib/createServer-BIr2_tGn.js +16693 -0
  151. package/lib/createServer-BIr2_tGn.js.map +1 -0
  152. package/lib/createVariantComponent-B9_dVBvu.js +35 -0
  153. package/lib/createVariantComponent-B9_dVBvu.js.map +1 -0
  154. package/lib/{errors-D7xzOd8X.js → errors-Bs4duWDy.js} +3 -3
  155. package/lib/{errors-D7xzOd8X.js.map → errors-Bs4duWDy.js.map} +1 -1
  156. package/lib/firebase-qUdSEL1p.js +7366 -0
  157. package/lib/firebase-qUdSEL1p.js.map +1 -0
  158. package/lib/{hook-CMeoxziF.js → hook-BNxidGQq.js} +3 -3
  159. package/lib/{hook-CMeoxziF.js.map → hook-BNxidGQq.js.map} +1 -1
  160. package/lib/{index-unv8c40u.js → index-0oT9beQN.js} +568 -576
  161. package/lib/index-0oT9beQN.js.map +1 -0
  162. package/lib/{index-CF7_erXq.js → index-Bh-MffiL.js} +2 -2
  163. package/lib/{index-CF7_erXq.js.map → index-Bh-MffiL.js.map} +1 -1
  164. package/lib/{index-CPws05Tb.js → index-CCmMJp02.js} +10 -10
  165. package/lib/{index-CPws05Tb.js.map → index-CCmMJp02.js.map} +1 -1
  166. package/lib/index-CrcNWbel.js.map +1 -1
  167. package/lib/index-Css56y3F.js +133 -0
  168. package/lib/index-Css56y3F.js.map +1 -0
  169. package/lib/{index.esm-BnYHxCYC.js → index.esm-DtzT_KoE.js} +20 -20
  170. package/lib/{index.esm-BnYHxCYC.js.map → index.esm-DtzT_KoE.js.map} +1 -1
  171. package/lib/index.esm-kW-Utcsi.js +32 -0
  172. package/lib/index.esm-kW-Utcsi.js.map +1 -0
  173. package/lib/{invariant-Bm-FVUQE.js → invariant-CGOLuIIz.js} +3 -3
  174. package/lib/{invariant-Bm-FVUQE.js.map → invariant-CGOLuIIz.js.map} +1 -1
  175. package/lib/{mutation-BSU0xu4m.js → mutation-BoVlx8yA.js} +2 -2
  176. package/lib/{mutation-BSU0xu4m.js.map → mutation-BoVlx8yA.js.map} +1 -1
  177. package/lib/ui/ActionButton.js +1 -1
  178. package/lib/ui/Button.js +25 -24
  179. package/lib/ui/Button.js.map +1 -1
  180. package/lib/ui/ButtonGroup.js +77 -0
  181. package/lib/ui/ButtonGroup.js.map +1 -0
  182. package/lib/ui/Command.js +3 -3
  183. package/lib/ui/Command.js.map +1 -1
  184. package/lib/ui/DropdownMenu.js +227 -140
  185. package/lib/ui/DropdownMenu.js.map +1 -1
  186. package/lib/ui/Kbd.js +32 -0
  187. package/lib/ui/Kbd.js.map +1 -0
  188. package/lib/ui/SyntaxHighlight.js +3 -3
  189. package/lib/useMutation-C6RqWmTS.js +97 -0
  190. package/lib/useMutation-C6RqWmTS.js.map +1 -0
  191. package/lib/zudoku.__internal.js +8 -8
  192. package/lib/zudoku.auth-auth0.js +1 -1
  193. package/lib/zudoku.auth-azureb2c.js +4 -4
  194. package/lib/zudoku.auth-clerk.js +2 -2
  195. package/lib/zudoku.auth-firebase.js +9 -0
  196. package/lib/zudoku.auth-firebase.js.map +1 -0
  197. package/lib/zudoku.auth-openid.js +5 -5
  198. package/lib/zudoku.auth-supabase.js +5 -5
  199. package/lib/zudoku.components.js +7 -7
  200. package/lib/zudoku.hooks.js +11 -24
  201. package/lib/zudoku.hooks.js.map +1 -1
  202. package/lib/zudoku.mermaid.js +10 -0
  203. package/lib/zudoku.mermaid.js.map +1 -0
  204. package/lib/zudoku.plugin-api-catalog.js +6 -6
  205. package/lib/zudoku.plugin-api-keys.js +224 -215
  206. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  207. package/lib/zudoku.plugin-custom-pages.js +1 -1
  208. package/lib/zudoku.plugin-markdown.js +1 -1
  209. package/lib/zudoku.plugin-openapi.js +3 -3
  210. package/lib/zudoku.plugin-redirect.js +1 -1
  211. package/lib/zudoku.plugin-search-pagefind.js +184 -226
  212. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  213. package/lib/zudoku.plugins.js.map +1 -1
  214. package/lib/zudoku.router.js +2 -2
  215. package/package.json +33 -21
  216. package/src/app/sentry.ts +1 -1
  217. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +11 -1
  218. package/src/lib/components/Mermaid.tsx +68 -0
  219. package/src/lib/components/PagefindSearchMeta.tsx +14 -0
  220. package/src/lib/components/Zudoku.tsx +4 -7
  221. package/src/lib/core/RouteGuard.tsx +1 -1
  222. package/src/lib/core/plugins.ts +2 -2
  223. package/src/lib/oas/parser/index.ts +2 -0
  224. package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +115 -0
  225. package/src/lib/plugins/openapi/Endpoint.tsx +20 -27
  226. package/src/lib/plugins/openapi/OasProvider.tsx +30 -17
  227. package/src/lib/plugins/openapi/OperationList.tsx +39 -21
  228. package/src/lib/plugins/openapi/OperationListItem.tsx +5 -5
  229. package/src/lib/plugins/openapi/SchemaList.tsx +4 -0
  230. package/src/lib/plugins/openapi/index.tsx +16 -7
  231. package/src/lib/plugins/openapi/interfaces.ts +16 -7
  232. package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
  233. package/src/lib/plugins/openapi/schema/SchemaView.tsx +36 -27
  234. package/src/lib/plugins/openapi/schema/utils.ts +5 -2
  235. package/src/lib/plugins/openapi/util/getRoutes.tsx +35 -3
  236. package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +163 -0
  237. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +61 -22
  238. package/src/lib/plugins/search-pagefind/ResultList.tsx +8 -3
  239. package/src/lib/shiki.ts +21 -12
  240. package/src/lib/ui/Button.tsx +10 -10
  241. package/src/lib/ui/ButtonGroup.tsx +82 -0
  242. package/src/lib/ui/Command.tsx +3 -3
  243. package/src/lib/ui/DropdownMenu.tsx +226 -170
  244. package/src/lib/ui/Kbd.tsx +28 -0
  245. package/src/lib/util/MdxComponents.tsx +2 -0
  246. package/src/lib/util/flattenAllOf.test.ts +71 -19
  247. package/src/lib/util/flattenAllOf.ts +29 -8
  248. package/src/shiki/langs/markdown-nix.js +1 -0
  249. package/src/shiki/langs/openscad.js +1 -0
  250. package/dist/vite/create-pagefind-index.d.ts +0 -4
  251. package/dist/vite/create-pagefind-index.js +0 -12
  252. package/dist/vite/create-pagefind-index.js.map +0 -1
  253. package/lib/Button-B3ucvvQw.js +0 -52
  254. package/lib/Button-B3ucvvQw.js.map +0 -1
  255. package/lib/Command-CUcrW3qs.js.map +0 -1
  256. package/lib/DropdownMenu-BZ2NKQ3K.js +0 -126
  257. package/lib/DropdownMenu-BZ2NKQ3K.js.map +0 -1
  258. package/lib/MdxPage-hOCN-u-L.js +0 -240
  259. package/lib/MdxPage-hOCN-u-L.js.map +0 -1
  260. package/lib/OasProvider-CpniNNrW.js +0 -36
  261. package/lib/OasProvider-CpniNNrW.js.map +0 -1
  262. package/lib/OperationList-CmMoKpGu.js.map +0 -1
  263. package/lib/Pagination-lLSoHnxa.js +0 -37
  264. package/lib/Pagination-lLSoHnxa.js.map +0 -1
  265. package/lib/SchemaList-BykD27ga.js.map +0 -1
  266. package/lib/SchemaView-Dt6hbCAt.js.map +0 -1
  267. package/lib/Select-DFRCS31-.js +0 -399
  268. package/lib/Select-DFRCS31-.js.map +0 -1
  269. package/lib/SyntaxHighlight-C19vH0V_.js.map +0 -1
  270. package/lib/createServer-BmcVQAOQ.js +0 -13018
  271. package/lib/createServer-BmcVQAOQ.js.map +0 -1
  272. package/lib/index-unv8c40u.js.map +0 -1
  273. package/lib/useExposedProps-U3pmsHaG.js +0 -113
  274. package/lib/useExposedProps-U3pmsHaG.js.map +0 -1
@@ -1,35 +1,36 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
- import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as kn, PlusCircleIcon as Qe, XIcon as Et, CheckIcon as Rt, PaperclipIcon as me, TrashIcon as En, FileInput as Rn, 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 E, useEffect as G, useMemo as zt, useCallback as D, startTransition as us, useState as R, Fragment as le, useLayoutEffect as ms, useTransition as ps, useContext as hs } from "react";
2
+ import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as kn, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as ue, TrashIcon as En, FileInput as Rn, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as In, TableOfContentsIcon as Dn, LockIcon as Fn, CircleAlertIcon as zn, Circle as Vn, Unlink2Icon as Bn, CornerDownRightIcon as _n, MinusCircleIcon as bt, CornerDownLeftIcon as qn, SquareCodeIcon as Mn, DownloadIcon as Un, EyeOffIcon as Gn, EyeIcon as Hn, UnplugIcon as Qn, SendIcon as Jn, CopyIcon as Wn, IdCardLanyardIcon as Kn, ShapesIcon as Xn, PlayIcon as Zn, CirclePlayIcon as Yn } from "lucide-react";
3
+ import { r as es, c as ts, a as ns, N as ss, aL as rs, m as jt } from "./chunk-PVWAREVJ-dLIqswPy.js";
4
+ import { Button as Ft } from "./ui/Button.js";
5
+ import { J as Ze, K as Ye, L as zt, k as as, M as os, O as is, j as V, e as ls } from "./ZudokuContext-BXldanA8.js";
6
+ import { Z as cs } from "./invariant-CGOLuIIz.js";
7
+ import * as xe from "react";
8
+ import { createContext as Vt, use as ds, useRef as k, useEffect as G, useMemo as Bt, useCallback as D, startTransition as us, useState as E, Fragment as ie, useLayoutEffect as ms, useTransition as ps, useContext as hs } from "react";
9
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-CPws05Tb.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 As, g as $s } from "./ErrorAlert-D5LKLFOd.js";
10
+ import { z as gs, b as xs } from "./index-Css56y3F.js";
11
+ import { B as q } from "./Button-CynVW1JV.js";
12
+ import { D as et, a as tt, c as nt, d as _t, e as qt, g as ys } from "./Dialog-BQciPiHN.js";
13
+ import { B as pe, S as vs, b as bs } from "./index-CCmMJp02.js";
14
+ import { u as js } from "./useMutation-C6RqWmTS.js";
15
+ import { u as ae, b as Mt, C as Ct, a as Cs, F as Ns } from "./index.esm-BYObtETB.js";
16
+ import * as st from "@radix-ui/react-collapsible";
17
+ import { S as Ut, a as Gt, b as Ht, c as Qt, e as Te, g as Ss } from "./Select-CkxXP5I7.js";
18
+ import { h as Nt, i as St, j as wt, k as ws, g as Ts } from "./ErrorAlert-DrOR8w3f.js";
18
19
  import { c as w } from "./cn-dYga0KKN.js";
19
- import { u as Os } from "./useCopyToClipboard-B_085nfO.js";
20
- import { u as Ps } from "./useLatest-hmRS46UF.js";
21
- import { D as Ht, a as Qt, b as Jt, d as Ls, e as ks, f as Es, c as Ae } from "./DropdownMenu-BZ2NKQ3K.js";
22
- import { Slot as Rs } from "@radix-ui/react-slot";
23
- import * as St from "@radix-ui/react-checkbox";
20
+ import { u as As } from "./useCopyToClipboard-B_085nfO.js";
21
+ import { u as $s } from "./useLatest-hmRS46UF.js";
22
+ import { D as Jt, a as Wt, b as Kt, d as Ps, e as Os, f as Ls, c as Ae } from "./DropdownMenu-C8SX_-S_.js";
23
+ import { c as ye, I as ks } from "./createVariantComponent-B9_dVBvu.js";
24
+ import * as Tt from "@radix-ui/react-checkbox";
24
25
  import * as $e 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";
26
+ import { PopoverAnchor as Es } from "@radix-ui/react-popover";
27
+ import { P as Rs } from "./index-CrcNWbel.js";
28
+ import { f as Is, g as Ds, C as Fs, b as zs } from "./Command-BpT1iBE6.js";
29
+ import { C as Vs } from "./Card-KFniaZn5.js";
30
+ import * as Xt from "@radix-ui/react-label";
31
+ import { c as Bs } from "./index-DI5SPFK9.js";
32
+ import * as he from "@radix-ui/react-radio-group";
33
+ import { A as _s, a as qs, b as Ms } from "./Mermaid-D_VSX7_Q.js";
33
34
  let _e;
34
35
  const Us = (e) => {
35
36
  if (e.errors?.[0])
@@ -41,7 +42,7 @@ class Gs {
41
42
  constructor(n) {
42
43
  this.config = n;
43
44
  }
44
- #e = async () => (_e || (_e = import("./createServer-BmcVQAOQ.js").then(
45
+ #e = async () => (_e || (_e = import("./createServer-BIr2_tGn.js").then(
45
46
  (n) => n.createServer(this.config)
46
47
  )), _e);
47
48
  #t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
@@ -71,7 +72,7 @@ function Qs(e, n) {
71
72
  );
72
73
  }
73
74
  const Js = /\r\n|[\n\r]/g;
74
- function Je(e, n) {
75
+ function We(e, n) {
75
76
  let s = 0, a = 1;
76
77
  for (const r of e.body.matchAll(Js)) {
77
78
  if (typeof r.index == "number" || Qs(!1), r.index >= n)
@@ -84,34 +85,34 @@ function Je(e, n) {
84
85
  };
85
86
  }
86
87
  function Ws(e) {
87
- return Kt(
88
+ return Zt(
88
89
  e.source,
89
- Je(e.source, e.start)
90
+ We(e.source, e.start)
90
91
  );
91
92
  }
92
- function Kt(e, n) {
93
+ function Zt(e, n) {
93
94
  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, b = [];
97
- for (let u = 0; u < h.length; u += 80)
98
- b.push(h.slice(u, u + 80));
99
- return m + wt([
100
- [`${i} |`, b[0]],
101
- ...b.slice(1, x + 1).map((u) => ["|", u]),
102
- ["|", "^".padStart(f)],
103
- ["|", b[x + 1]]
95
+ `, d = a.split(/\r\n|[\n\r]/g), f = d[r];
96
+ if (f.length > 120) {
97
+ const x = Math.floor(l / 80), h = l % 80, v = [];
98
+ for (let u = 0; u < f.length; u += 80)
99
+ v.push(f.slice(u, u + 80));
100
+ return m + At([
101
+ [`${i} |`, v[0]],
102
+ ...v.slice(1, x + 1).map((u) => ["|", u]),
103
+ ["|", "^".padStart(h)],
104
+ ["|", v[x + 1]]
104
105
  ]);
105
106
  }
106
- return m + wt([
107
+ return m + At([
107
108
  // Lines specified like this: ["prefix", "string"],
108
109
  [`${i - 1} |`, d[r - 1]],
109
- [`${i} |`, h],
110
+ [`${i} |`, f],
110
111
  ["|", "^".padStart(l)],
111
112
  [`${i + 1} |`, d[r + 1]]
112
113
  ]);
113
114
  }
114
- function wt(e) {
115
+ function At(e) {
115
116
  const n = e.filter(([a, r]) => r !== void 0), s = Math.max(...n.map(([a]) => a.length));
116
117
  return n.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
117
118
  `);
@@ -127,7 +128,7 @@ function Ks(e) {
127
128
  extensions: e[5]
128
129
  } : n;
129
130
  }
130
- class nt extends Error {
131
+ class rt extends Error {
131
132
  /**
132
133
  * An array of `{ line, column }` locations within the source GraphQL document
133
134
  * which correspond to this error.
@@ -168,18 +169,18 @@ class nt extends Error {
168
169
  */
169
170
  constructor(n, ...s) {
170
171
  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(
172
+ const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Ks(s);
173
+ super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = $t(
173
174
  Array.isArray(i) ? i : i ? [i] : void 0
174
175
  );
175
- const x = Tt(
176
- (a = this.nodes) === null || a === void 0 ? void 0 : a.map((b) => b.loc).filter((b) => b != null)
176
+ const x = $t(
177
+ (a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
177
178
  );
178
- this.source = c ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? x?.map((b) => b.start), this.locations = l && c ? l.map((b) => Je(c, b)) : x?.map((b) => Je(b.source, b.start));
179
- const f = Hs(
179
+ 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));
180
+ const h = Hs(
180
181
  d?.extensions
181
182
  ) ? d?.extensions : void 0;
182
- this.extensions = (o = h ?? f) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
183
+ this.extensions = (o = f ?? h) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
183
184
  message: {
184
185
  writable: !0,
185
186
  enumerable: !0
@@ -203,7 +204,7 @@ class nt extends Error {
203
204
  value: d.stack,
204
205
  writable: !0,
205
206
  configurable: !0
206
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, nt) : Object.defineProperty(this, "stack", {
207
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, rt) : Object.defineProperty(this, "stack", {
207
208
  value: Error().stack,
208
209
  writable: !0,
209
210
  configurable: !0
@@ -223,7 +224,7 @@ class nt extends Error {
223
224
  for (const s of this.locations)
224
225
  n += `
225
226
 
226
- ` + Kt(this.source, s);
227
+ ` + Zt(this.source, s);
227
228
  return n;
228
229
  }
229
230
  toJSON() {
@@ -233,11 +234,11 @@ class nt extends Error {
233
234
  return this.locations != null && (n.locations = this.locations), this.path != null && (n.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (n.extensions = this.extensions), n;
234
235
  }
235
236
  }
236
- function Tt(e) {
237
+ function $t(e) {
237
238
  return e === void 0 || e.length === 0 ? void 0 : e;
238
239
  }
239
240
  function F(e, n, s) {
240
- return new nt(`Syntax Error: ${s}`, {
241
+ return new rt(`Syntax Error: ${s}`, {
241
242
  source: e,
242
243
  positions: [n]
243
244
  });
@@ -271,7 +272,7 @@ class Ka {
271
272
  };
272
273
  }
273
274
  }
274
- class Xt {
275
+ class Yt {
275
276
  /**
276
277
  * The kind of Token.
277
278
  */
@@ -405,25 +406,25 @@ function Xa(e) {
405
406
  const n = e?.kind;
406
407
  return typeof n == "string" && Zs.has(n);
407
408
  }
408
- var At;
409
+ var Pt;
409
410
  (function(e) {
410
411
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
411
- })(At || (At = {}));
412
- function We(e) {
412
+ })(Pt || (Pt = {}));
413
+ function Ke(e) {
413
414
  return e === 9 || e === 32;
414
415
  }
415
- function ge(e) {
416
+ function fe(e) {
416
417
  return e >= 48 && e <= 57;
417
418
  }
418
- function Zt(e) {
419
+ function en(e) {
419
420
  return e >= 97 && e <= 122 || // A-Z
420
421
  e >= 65 && e <= 90;
421
422
  }
422
- function Yt(e) {
423
- return Zt(e) || e === 95;
423
+ function tn(e) {
424
+ return en(e) || e === 95;
424
425
  }
425
426
  function Ys(e) {
426
- return Zt(e) || ge(e) || e === 95;
427
+ return en(e) || fe(e) || e === 95;
427
428
  }
428
429
  function er(e) {
429
430
  var n;
@@ -440,23 +441,23 @@ function er(e) {
440
441
  }
441
442
  function tr(e) {
442
443
  let n = 0;
443
- for (; n < e.length && We(e.charCodeAt(n)); )
444
+ for (; n < e.length && Ke(e.charCodeAt(n)); )
444
445
  ++n;
445
446
  return n;
446
447
  }
447
448
  function nr(e, n) {
448
- const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((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
449
+ const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((h) => h.length === 0 || Ke(h.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), m = c || l, d = !(n != null && n.minimize) && // add leading and trailing new lines only if it improves readability
449
450
  (!r || e.length > 70 || m || o || i);
450
- let h = "";
451
- const x = r && We(e.charCodeAt(0));
452
- return (d && !x || o) && (h += `
453
- `), h += s, (d || m) && (h += `
454
- `), '"""' + h + '"""';
451
+ let f = "";
452
+ const x = r && Ke(e.charCodeAt(0));
453
+ return (d && !x || o) && (f += `
454
+ `), f += s, (d || m) && (f += `
455
+ `), '"""' + f + '"""';
455
456
  }
456
- var v;
457
+ var b;
457
458
  (function(e) {
458
459
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.DOT = ".", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
459
- })(v || (v = {}));
460
+ })(b || (b = {}));
460
461
  class sr {
461
462
  /**
462
463
  * The previously focused non-ignored token.
@@ -471,7 +472,7 @@ class sr {
471
472
  * The character offset at which the current line begins.
472
473
  */
473
474
  constructor(n) {
474
- const s = new Xt(v.SOF, 0, 0, 0, 0);
475
+ const s = new Yt(b.SOF, 0, 0, 0, 0);
475
476
  this.source = n, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
476
477
  }
477
478
  get [Symbol.toStringTag]() {
@@ -489,7 +490,7 @@ class sr {
489
490
  */
490
491
  lookahead() {
491
492
  let n = this.token;
492
- if (n.kind !== v.EOF)
493
+ if (n.kind !== b.EOF)
493
494
  do
494
495
  if (n.next)
495
496
  n = n.next;
@@ -497,38 +498,38 @@ class sr {
497
498
  const s = ar(this, n.end);
498
499
  n.next = s, s.prev = n, n = s;
499
500
  }
500
- while (n.kind === v.COMMENT);
501
+ while (n.kind === b.COMMENT);
501
502
  return n;
502
503
  }
503
504
  }
504
505
  function rr(e) {
505
- return e === v.BANG || e === v.DOLLAR || e === v.AMP || e === v.PAREN_L || e === v.PAREN_R || e === v.DOT || e === v.SPREAD || e === v.COLON || e === v.EQUALS || e === v.AT || e === v.BRACKET_L || e === v.BRACKET_R || e === v.BRACE_L || e === v.PIPE || e === v.BRACE_R;
506
+ return e === b.BANG || e === b.DOLLAR || e === b.AMP || e === b.PAREN_L || e === b.PAREN_R || e === b.DOT || e === b.SPREAD || e === b.COLON || e === b.EQUALS || e === b.AT || e === b.BRACKET_L || e === b.BRACKET_R || e === b.BRACE_L || e === b.PIPE || e === b.BRACE_R;
506
507
  }
507
508
  function oe(e) {
508
509
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
509
510
  }
510
- function Pe(e, n) {
511
- return en(e.charCodeAt(n)) && tn(e.charCodeAt(n + 1));
511
+ function Oe(e, n) {
512
+ return nn(e.charCodeAt(n)) && sn(e.charCodeAt(n + 1));
512
513
  }
513
- function en(e) {
514
+ function nn(e) {
514
515
  return e >= 55296 && e <= 56319;
515
516
  }
516
- function tn(e) {
517
+ function sn(e) {
517
518
  return e >= 56320 && e <= 57343;
518
519
  }
519
520
  function X(e, n) {
520
521
  const s = e.source.body.codePointAt(n);
521
522
  if (s === void 0)
522
- return v.EOF;
523
+ return b.EOF;
523
524
  if (s >= 32 && s <= 126) {
524
525
  const a = String.fromCodePoint(s);
525
526
  return a === '"' ? `'"'` : `"${a}"`;
526
527
  }
527
528
  return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
528
529
  }
529
- function O(e, n, s, a, r) {
530
+ function P(e, n, s, a, r) {
530
531
  const o = e.line, i = 1 + s - e.lineStart;
531
- return new Xt(n, s, a, o, i, r);
532
+ return new Yt(n, s, a, o, i, r);
532
533
  }
533
534
  function ar(e, n) {
534
535
  const s = e.source.body, a = s.length;
@@ -581,50 +582,50 @@ function ar(e, n) {
581
582
  //
582
583
  // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
583
584
  case 33:
584
- return O(e, v.BANG, r, r + 1);
585
+ return P(e, b.BANG, r, r + 1);
585
586
  case 36:
586
- return O(e, v.DOLLAR, r, r + 1);
587
+ return P(e, b.DOLLAR, r, r + 1);
587
588
  case 38:
588
- return O(e, v.AMP, r, r + 1);
589
+ return P(e, b.AMP, r, r + 1);
589
590
  case 40:
590
- return O(e, v.PAREN_L, r, r + 1);
591
+ return P(e, b.PAREN_L, r, r + 1);
591
592
  case 41:
592
- return O(e, v.PAREN_R, r, r + 1);
593
+ return P(e, b.PAREN_R, r, r + 1);
593
594
  case 46:
594
595
  if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
595
- return O(e, v.SPREAD, r, r + 3);
596
+ return P(e, b.SPREAD, r, r + 3);
596
597
  break;
597
598
  case 58:
598
- return O(e, v.COLON, r, r + 1);
599
+ return P(e, b.COLON, r, r + 1);
599
600
  case 61:
600
- return O(e, v.EQUALS, r, r + 1);
601
+ return P(e, b.EQUALS, r, r + 1);
601
602
  case 64:
602
- return O(e, v.AT, r, r + 1);
603
+ return P(e, b.AT, r, r + 1);
603
604
  case 91:
604
- return O(e, v.BRACKET_L, r, r + 1);
605
+ return P(e, b.BRACKET_L, r, r + 1);
605
606
  case 93:
606
- return O(e, v.BRACKET_R, r, r + 1);
607
+ return P(e, b.BRACKET_R, r, r + 1);
607
608
  case 123:
608
- return O(e, v.BRACE_L, r, r + 1);
609
+ return P(e, b.BRACE_L, r, r + 1);
609
610
  case 124:
610
- return O(e, v.PIPE, r, r + 1);
611
+ return P(e, b.PIPE, r, r + 1);
611
612
  case 125:
612
- return O(e, v.BRACE_R, r, r + 1);
613
+ return P(e, b.BRACE_R, r, r + 1);
613
614
  // StringValue
614
615
  case 34:
615
616
  return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? mr(e, r) : lr(e, r);
616
617
  }
617
- if (ge(o) || o === 45)
618
+ if (fe(o) || o === 45)
618
619
  return ir(e, r, o);
619
- if (Yt(o))
620
+ if (tn(o))
620
621
  return pr(e, r);
621
622
  throw F(
622
623
  e.source,
623
624
  r,
624
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : oe(o) || Pe(s, r) ? `Unexpected character: ${X(e, r)}.` : `Invalid character: ${X(e, r)}.`
625
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : oe(o) || Oe(s, r) ? `Unexpected character: ${X(e, r)}.` : `Invalid character: ${X(e, r)}.`
625
626
  );
626
627
  }
627
- return O(e, v.EOF, a, a);
628
+ return P(e, b.EOF, a, a);
628
629
  }
629
630
  function or(e, n) {
630
631
  const s = e.source.body, a = s.length;
@@ -635,14 +636,14 @@ function or(e, n) {
635
636
  break;
636
637
  if (oe(o))
637
638
  ++r;
638
- else if (Pe(s, r))
639
+ else if (Oe(s, r))
639
640
  r += 2;
640
641
  else
641
642
  break;
642
643
  }
643
- return O(
644
+ return P(
644
645
  e,
645
- v.COMMENT,
646
+ b.COMMENT,
646
647
  n,
647
648
  r,
648
649
  s.slice(n + 1, r)
@@ -652,7 +653,7 @@ function ir(e, n, s) {
652
653
  const a = e.source.body;
653
654
  let r = n, o = s, i = !1;
654
655
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
655
- if (o = a.charCodeAt(++r), ge(o))
656
+ if (o = a.charCodeAt(++r), fe(o))
656
657
  throw F(
657
658
  e.source,
658
659
  r,
@@ -663,7 +664,7 @@ function ir(e, n, s) {
663
664
  );
664
665
  } else
665
666
  r = Me(e, r, o), o = a.charCodeAt(r);
666
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Me(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Me(e, r, o), o = a.charCodeAt(r)), o === 46 || Yt(o))
667
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Me(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Me(e, r, o), o = a.charCodeAt(r)), o === 46 || tn(o))
667
668
  throw F(
668
669
  e.source,
669
670
  r,
@@ -672,16 +673,16 @@ function ir(e, n, s) {
672
673
  r
673
674
  )}.`
674
675
  );
675
- return O(
676
+ return P(
676
677
  e,
677
- i ? v.FLOAT : v.INT,
678
+ i ? b.FLOAT : b.INT,
678
679
  n,
679
680
  r,
680
681
  a.slice(n, r)
681
682
  );
682
683
  }
683
684
  function Me(e, n, s) {
684
- if (!ge(s))
685
+ if (!fe(s))
685
686
  throw F(
686
687
  e.source,
687
688
  n,
@@ -692,7 +693,7 @@ function Me(e, n, s) {
692
693
  );
693
694
  const a = e.source.body;
694
695
  let r = n + 1;
695
- for (; ge(a.charCodeAt(r)); )
696
+ for (; fe(a.charCodeAt(r)); )
696
697
  ++r;
697
698
  return r;
698
699
  }
@@ -702,7 +703,7 @@ function lr(e, n) {
702
703
  for (; r < a; ) {
703
704
  const c = s.charCodeAt(r);
704
705
  if (c === 34)
705
- return i += s.slice(o, r), O(e, v.STRING, n, r + 1, i);
706
+ return i += s.slice(o, r), P(e, b.STRING, n, r + 1, i);
706
707
  if (c === 92) {
707
708
  i += s.slice(o, r);
708
709
  const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? cr(e, r) : dr(e, r) : ur(e, r);
@@ -713,7 +714,7 @@ function lr(e, n) {
713
714
  break;
714
715
  if (oe(c))
715
716
  ++r;
716
- else if (Pe(s, r))
717
+ else if (Oe(s, r))
717
718
  r += 2;
718
719
  else
719
720
  throw F(
@@ -740,7 +741,7 @@ function cr(e, n) {
740
741
  size: r
741
742
  };
742
743
  }
743
- if (a = a << 4 | ce(o), a < 0)
744
+ if (a = a << 4 | le(o), a < 0)
744
745
  break;
745
746
  }
746
747
  throw F(
@@ -753,15 +754,15 @@ function cr(e, n) {
753
754
  );
754
755
  }
755
756
  function dr(e, n) {
756
- const s = e.source.body, a = $t(s, n + 2);
757
+ const s = e.source.body, a = Ot(s, n + 2);
757
758
  if (oe(a))
758
759
  return {
759
760
  value: String.fromCodePoint(a),
760
761
  size: 6
761
762
  };
762
- if (en(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
763
- const r = $t(s, n + 8);
764
- if (tn(r))
763
+ if (nn(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
764
+ const r = Ot(s, n + 8);
765
+ if (sn(r))
765
766
  return {
766
767
  value: String.fromCodePoint(a, r),
767
768
  size: 12
@@ -773,10 +774,10 @@ function dr(e, n) {
773
774
  `Invalid Unicode escape sequence: "${s.slice(n, n + 6)}".`
774
775
  );
775
776
  }
776
- function $t(e, n) {
777
- return ce(e.charCodeAt(n)) << 12 | ce(e.charCodeAt(n + 1)) << 8 | ce(e.charCodeAt(n + 2)) << 4 | ce(e.charCodeAt(n + 3));
777
+ function Ot(e, n) {
778
+ return le(e.charCodeAt(n)) << 12 | le(e.charCodeAt(n + 1)) << 8 | le(e.charCodeAt(n + 2)) << 4 | le(e.charCodeAt(n + 3));
778
779
  }
779
- function ce(e) {
780
+ function le(e) {
780
781
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
781
782
  }
782
783
  function ur(e, n) {
@@ -841,9 +842,9 @@ function mr(e, n) {
841
842
  const m = s.charCodeAt(o);
842
843
  if (m === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
843
844
  c += s.slice(i, o), l.push(c);
844
- const d = O(
845
+ const d = P(
845
846
  e,
846
- v.BLOCK_STRING,
847
+ b.BLOCK_STRING,
847
848
  n,
848
849
  o + 3,
849
850
  // Return a string of the lines joined with U+000A.
@@ -862,7 +863,7 @@ function mr(e, n) {
862
863
  }
863
864
  if (oe(m))
864
865
  ++o;
865
- else if (Pe(s, o))
866
+ else if (Oe(s, o))
866
867
  o += 2;
867
868
  else
868
869
  throw F(
@@ -886,16 +887,16 @@ function pr(e, n) {
886
887
  else
887
888
  break;
888
889
  }
889
- return O(
890
+ return P(
890
891
  e,
891
- v.NAME,
892
+ b.NAME,
892
893
  n,
893
894
  r,
894
895
  s.slice(n, r)
895
896
  );
896
897
  }
897
- const hr = 10, nn = 2;
898
- function sn(e) {
898
+ const hr = 10, rn = 2;
899
+ function an(e) {
899
900
  return Le(e, []);
900
901
  }
901
902
  function Le(e, n) {
@@ -929,14 +930,14 @@ function gr(e) {
929
930
  }
930
931
  function xr(e, n) {
931
932
  const s = Object.entries(e);
932
- return s.length === 0 ? "{}" : n.length > nn ? "[" + vr(e) + "]" : "{ " + s.map(
933
+ return s.length === 0 ? "{}" : n.length > rn ? "[" + vr(e) + "]" : "{ " + s.map(
933
934
  ([r, o]) => r + ": " + Le(o, n)
934
935
  ).join(", ") + " }";
935
936
  }
936
937
  function yr(e, n) {
937
938
  if (e.length === 0)
938
939
  return "[]";
939
- if (n.length > nn)
940
+ if (n.length > rn)
940
941
  return "[Array]";
941
942
  const s = Math.min(hr, e.length), a = e.length - s, r = [];
942
943
  for (let o = 0; o < s; ++o)
@@ -968,7 +969,7 @@ process.env.NODE_ENV === "production", jr = (
968
969
  Symbol.toStringTag in n ? n[Symbol.toStringTag] : (a = n.constructor) === null || a === void 0 ? void 0 : a.name
969
970
  );
970
971
  if (r === o) {
971
- const i = sn(n);
972
+ const i = an(n);
972
973
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
973
974
 
974
975
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -986,12 +987,12 @@ spurious results.`);
986
987
  return !1;
987
988
  }
988
989
  );
989
- class rn {
990
+ class on {
990
991
  constructor(n, s = "GraphQL request", a = {
991
992
  line: 1,
992
993
  column: 1
993
994
  }) {
994
- 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(
995
+ typeof n == "string" || qe(!1, `Body must be a string. Received: ${an(n)}.`), this.body = n, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || qe(
995
996
  !1,
996
997
  "line in locationOffset is 1-indexed and must be positive."
997
998
  ), this.locationOffset.column > 0 || qe(
@@ -1004,34 +1005,34 @@ class rn {
1004
1005
  }
1005
1006
  }
1006
1007
  function Cr(e) {
1007
- return jr(e, rn);
1008
+ return jr(e, on);
1008
1009
  }
1009
1010
  function Nr(e) {
1010
- const n = Cr(e) ? e : new rn(e), s = n.body, a = new sr(n);
1011
+ const n = Cr(e) ? e : new on(e), s = n.body, a = new sr(n);
1011
1012
  let r = "", o = !1;
1012
- for (; a.advance().kind !== v.EOF; ) {
1013
+ for (; a.advance().kind !== b.EOF; ) {
1013
1014
  const i = a.token, c = i.kind, l = !rr(i.kind);
1014
- o && (l || i.kind === v.SPREAD) && (r += " ");
1015
+ o && (l || i.kind === b.SPREAD) && (r += " ");
1015
1016
  const m = s.slice(i.start, i.end);
1016
- c === v.BLOCK_STRING ? r += nr(i.value, {
1017
+ c === b.BLOCK_STRING ? r += nr(i.value, {
1017
1018
  minimize: !0
1018
1019
  }) : r += m, o = l;
1019
1020
  }
1020
1021
  return r;
1021
1022
  }
1022
- const an = Ft(
1023
+ const ln = Vt(
1023
1024
  void 0
1024
1025
  ), Za = ({
1025
1026
  children: e,
1026
1027
  client: n
1027
- }) => /* @__PURE__ */ t.jsx(an.Provider, { value: n, children: e }), on = (e, n, ...[s]) => ({
1028
+ }) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
1028
1029
  queryFn: () => e.fetch(n, s),
1029
1030
  queryKey: [Nr(n.toString()), s]
1030
1031
  }), Sr = (e, ...[n]) => {
1031
- const s = ds(an);
1032
+ const s = ds(ln);
1032
1033
  if (s === void 0)
1033
1034
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1034
- return on(s, e, ...n === void 0 ? [] : [n]);
1035
+ return cn(s, e, ...n === void 0 ? [] : [n]);
1035
1036
  };
1036
1037
  class Y extends String {
1037
1038
  __apiType;
@@ -1230,7 +1231,7 @@ const wr = new Y(
1230
1231
  schema
1231
1232
  }
1232
1233
  }
1233
- }`), Or = new Y(`
1234
+ }`), Pr = new Y(`
1234
1235
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1235
1236
  schema(input: $input, type: $type) {
1236
1237
  title
@@ -1245,7 +1246,7 @@ const wr = new Y(
1245
1246
  }
1246
1247
  }
1247
1248
  }
1248
- `), Pr = new Y(`
1249
+ `), Or = new Y(`
1249
1250
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1250
1251
  schema(input: $input, type: $type) {
1251
1252
  url
@@ -1282,8 +1283,8 @@ const wr = new Y(
1282
1283
  "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": wr,
1283
1284
  "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Ar,
1284
1285
  "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": $r,
1285
- "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Or,
1286
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Pr,
1286
+ "\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,
1287
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Or,
1287
1288
  "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Lr
1288
1289
  };
1289
1290
  function Er(e) {
@@ -1292,13 +1293,13 @@ function Er(e) {
1292
1293
  function B({
1293
1294
  ...e
1294
1295
  }) {
1295
- return /* @__PURE__ */ t.jsx(tt.Root, { "data-slot": "collapsible", ...e });
1296
+ return /* @__PURE__ */ t.jsx(st.Root, { "data-slot": "collapsible", ...e });
1296
1297
  }
1297
- function de({
1298
+ function ce({
1298
1299
  ...e
1299
1300
  }) {
1300
1301
  return /* @__PURE__ */ t.jsx(
1301
- tt.CollapsibleTrigger,
1302
+ st.CollapsibleTrigger,
1302
1303
  {
1303
1304
  "data-slot": "collapsible-trigger",
1304
1305
  ...e
@@ -1309,7 +1310,7 @@ function _({
1309
1310
  ...e
1310
1311
  }) {
1311
1312
  return /* @__PURE__ */ t.jsx(
1312
- tt.CollapsibleContent,
1313
+ st.CollapsibleContent,
1313
1314
  {
1314
1315
  "data-slot": "collapsible-content",
1315
1316
  ...e
@@ -1346,7 +1347,7 @@ const Dr = {
1346
1347
  option: "⌥"
1347
1348
  }
1348
1349
  }, Fr = (e, n) => {
1349
- const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l = E(n);
1350
+ const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l = k(n);
1350
1351
  return G(() => {
1351
1352
  l.current = n;
1352
1353
  }, [n]), G(() => {
@@ -1362,8 +1363,8 @@ const Dr = {
1362
1363
  (m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Dr[Ir() ? "apple" : "other"][m] : m
1363
1364
  )
1364
1365
  };
1365
- }, zr = Ke()(
1366
- Xe(
1366
+ }, zr = Ze()(
1367
+ Ye(
1367
1368
  (e) => ({
1368
1369
  selectedServer: void 0,
1369
1370
  setSelectedServer: (n) => e({ selectedServer: n })
@@ -1372,11 +1373,11 @@ const Dr = {
1372
1373
  )
1373
1374
  ), Vr = (e) => {
1374
1375
  const { selectedServer: n, setSelectedServer: s } = zr();
1375
- return { selectedServer: zt(
1376
+ return { selectedServer: Bt(
1376
1377
  () => n && e.some((r) => r.url === n) ? n : e.at(0)?.url ?? "",
1377
1378
  [n, e]
1378
1379
  ), setSelectedServer: s };
1379
- }, ln = Q.forwardRef(
1380
+ }, dn = xe.forwardRef(
1380
1381
  ({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
1381
1382
  "textarea",
1382
1383
  {
@@ -1389,7 +1390,7 @@ const Dr = {
1389
1390
  }
1390
1391
  )
1391
1392
  );
1392
- ln.displayName = "Textarea";
1393
+ dn.displayName = "Textarea";
1393
1394
  const ke = (e = 0) => {
1394
1395
  if (e === 0)
1395
1396
  return "0 B";
@@ -1408,7 +1409,7 @@ const ke = (e = 0) => {
1408
1409
  children: [
1409
1410
  e,
1410
1411
  /* @__PURE__ */ t.jsxs(
1411
- de,
1412
+ ce,
1412
1413
  {
1413
1414
  className: w(
1414
1415
  "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 opacity-75 rounded-md",
@@ -1440,8 +1441,8 @@ const ke = (e = 0) => {
1440
1441
  }) => /* @__PURE__ */ t.jsx("span", { className: w("font-semibold w-full text-start", n), children: e }), Br = ({
1441
1442
  examples: e,
1442
1443
  onSelect: n
1443
- }) => /* @__PURE__ */ t.jsxs(Ht, { children: [
1444
- /* @__PURE__ */ t.jsx(Qt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1444
+ }) => /* @__PURE__ */ t.jsxs(Jt, { children: [
1445
+ /* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1445
1446
  q,
1446
1447
  {
1447
1448
  variant: "ghost",
@@ -1449,14 +1450,14 @@ const ke = (e = 0) => {
1449
1450
  className: "hover:bg-accent hover:brightness-95 gap-2",
1450
1451
  children: [
1451
1452
  "Use Example",
1452
- /* @__PURE__ */ t.jsx(Qe, { size: 14 })
1453
+ /* @__PURE__ */ t.jsx(Je, { size: 14 })
1453
1454
  ]
1454
1455
  }
1455
1456
  ) }),
1456
- /* @__PURE__ */ t.jsx(Jt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
1457
- /* @__PURE__ */ t.jsx(Ls, { children: s.mediaType }),
1458
- /* @__PURE__ */ t.jsx(ks, {}),
1459
- /* @__PURE__ */ t.jsx(Es, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
1457
+ /* @__PURE__ */ t.jsx(Kt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
1458
+ /* @__PURE__ */ t.jsx(Ps, { children: s.mediaType }),
1459
+ /* @__PURE__ */ t.jsx(Os, {}),
1460
+ /* @__PURE__ */ t.jsx(Ls, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
1460
1461
  Ae,
1461
1462
  {
1462
1463
  onSelect: () => n(a, s.mediaType),
@@ -1472,45 +1473,20 @@ const ke = (e = 0) => {
1472
1473
  a.name
1473
1474
  )) })
1474
1475
  ] }, s.mediaType)) })
1475
- ] }), cn = Q.forwardRef(
1476
- ({ className: e, type: n, ...s }, a) => /* @__PURE__ */ t.jsx(
1477
- "input",
1478
- {
1479
- type: n,
1480
- className: w(
1481
- "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",
1482
- e
1483
- ),
1484
- ref: a,
1485
- ...s
1486
- }
1487
- )
1488
- );
1489
- cn.displayName = "Input";
1490
- const ye = (e, n) => {
1491
- const s = Q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1492
- const c = r ? Rs : e;
1493
- return Q.createElement(c, {
1494
- ...o,
1495
- ref: i,
1496
- className: typeof n == "function" ? n({ className: a }) : w(n, a)
1497
- });
1498
- });
1499
- return s.displayName = typeof e == "string" ? `VariantComponent(${e})` : `VariantComponent(${e.displayName || e.name || "Component"})`, s;
1500
- }, Ee = ye(
1476
+ ] }), Ee = ye(
1501
1477
  "div",
1502
1478
  "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
1503
- ), xe = ye(
1479
+ ), ge = ye(
1504
1480
  "div",
1505
1481
  "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1506
1482
  ), I = ye(
1507
- cn,
1483
+ ks,
1508
1484
  "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
1509
- ), st = ({
1485
+ ), at = ({
1510
1486
  onClick: e,
1511
1487
  className: n
1512
1488
  }) => /* @__PURE__ */ t.jsx(
1513
- he,
1489
+ pe,
1514
1490
  {
1515
1491
  size: "icon-xs",
1516
1492
  variant: "ghost",
@@ -1521,7 +1497,7 @@ const ye = (e, n) => {
1521
1497
  onClick: e,
1522
1498
  type: "button",
1523
1499
  "data-slot": "remove-button",
1524
- children: /* @__PURE__ */ t.jsx(Et, { size: 14 })
1500
+ children: /* @__PURE__ */ t.jsx(It, { size: 14 })
1525
1501
  }
1526
1502
  );
1527
1503
  function ve({
@@ -1529,7 +1505,7 @@ function ve({
1529
1505
  ...n
1530
1506
  }) {
1531
1507
  return /* @__PURE__ */ t.jsx(
1532
- St.Root,
1508
+ Tt.Root,
1533
1509
  {
1534
1510
  "data-slot": "checkbox",
1535
1511
  className: w(
@@ -1538,19 +1514,19 @@ function ve({
1538
1514
  ),
1539
1515
  ...n,
1540
1516
  children: /* @__PURE__ */ t.jsx(
1541
- St.Indicator,
1517
+ Tt.Indicator,
1542
1518
  {
1543
1519
  "data-slot": "checkbox-indicator",
1544
1520
  className: "grid place-content-center text-current transition-none",
1545
- children: /* @__PURE__ */ t.jsx(Rt, { className: "size-3.5" })
1521
+ children: /* @__PURE__ */ t.jsx(Dt, { className: "size-3.5" })
1546
1522
  }
1547
1523
  )
1548
1524
  }
1549
1525
  );
1550
1526
  }
1551
1527
  const _r = ({ index: e, manager: n }) => {
1552
- const s = E(null), a = n.getValue(e, "value");
1553
- return /* @__PURE__ */ t.jsxs(xe, { children: [
1528
+ const s = k(null), a = n.getValue(e, "value");
1529
+ return /* @__PURE__ */ t.jsxs(ge, { children: [
1554
1530
  /* @__PURE__ */ t.jsx(
1555
1531
  ve,
1556
1532
  {
@@ -1568,7 +1544,7 @@ const _r = ({ index: e, manager: n }) => {
1568
1544
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 flex-1", children: [
1569
1545
  a instanceof File ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 flex-1 min-w-0", children: [
1570
1546
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 border-b cursor-default", children: [
1571
- /* @__PURE__ */ t.jsx(me, { size: 12, className: "text-muted-foreground" }),
1547
+ /* @__PURE__ */ t.jsx(ue, { size: 12, className: "text-muted-foreground" }),
1572
1548
  /* @__PURE__ */ t.jsx(
1573
1549
  "span",
1574
1550
  {
@@ -1579,7 +1555,7 @@ const _r = ({ index: e, manager: n }) => {
1579
1555
  )
1580
1556
  ] }),
1581
1557
  /* @__PURE__ */ t.jsx(
1582
- he,
1558
+ pe,
1583
1559
  {
1584
1560
  type: "button",
1585
1561
  variant: "ghost",
@@ -1610,7 +1586,7 @@ const _r = ({ index: e, manager: n }) => {
1610
1586
  }
1611
1587
  ),
1612
1588
  /* @__PURE__ */ t.jsx(
1613
- he,
1589
+ pe,
1614
1590
  {
1615
1591
  type: "button",
1616
1592
  variant: "ghost",
@@ -1618,14 +1594,14 @@ const _r = ({ index: e, manager: n }) => {
1618
1594
  onClick: () => s.current?.click(),
1619
1595
  title: "Attach file",
1620
1596
  className: "opacity-0 focus-visible:opacity-100 group-hover:opacity-100 group-hover:brightness-95 transition-opacity",
1621
- children: /* @__PURE__ */ t.jsx(me, { size: 14 })
1597
+ children: /* @__PURE__ */ t.jsx(ue, { size: 14 })
1622
1598
  }
1623
1599
  )
1624
1600
  ] }),
1625
- /* @__PURE__ */ t.jsx(st, { ...n.getRemoveButtonProps(e) })
1601
+ /* @__PURE__ */ t.jsx(at, { ...n.getRemoveButtonProps(e) })
1626
1602
  ] })
1627
1603
  ] });
1628
- }, rt = (e) => {
1604
+ }, ot = (e) => {
1629
1605
  const {
1630
1606
  control: n,
1631
1607
  name: s,
@@ -1637,9 +1613,9 @@ const _r = ({ index: e, manager: n }) => {
1637
1613
  watch: c,
1638
1614
  setFocus: l,
1639
1615
  register: m
1640
- } = ae(), { fields: d, append: h, remove: x } = Gt({ control: n, name: s }), f = c(s), b = E(-1), u = E(-1), y = D(
1616
+ } = ae(), { fields: d, append: f, remove: x } = Mt({ control: n, name: s }), h = c(s), v = k(-1), u = k(-1), y = D(
1641
1617
  (g, C, T, A) => {
1642
- (C === "value" || C === "name") && (b.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
1618
+ (C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
1643
1619
  C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
1644
1620
  ) : A?.focus === "previous" && l(
1645
1621
  C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`
@@ -1649,29 +1625,29 @@ const _r = ({ index: e, manager: n }) => {
1649
1625
  ), S = D(
1650
1626
  (g) => r ? r(g) : !g.name && !g.value,
1651
1627
  [r]
1652
- ), N = D(
1628
+ ), R = D(
1653
1629
  (g) => o ? o(g) : !!(g.name || g.value),
1654
1630
  [o]
1655
1631
  );
1656
1632
  G(() => {
1657
- if (!f) return;
1633
+ if (!h) return;
1658
1634
  if (u.current === -1) {
1659
- u.current = f.length, f.length === 0 && h(a, {
1635
+ u.current = h.length, h.length === 0 && f(a, {
1660
1636
  shouldFocus: !1
1661
1637
  });
1662
1638
  return;
1663
1639
  }
1664
- if (u.current = f.length, f.length === 0) {
1665
- h(a, {
1640
+ if (u.current = h.length, h.length === 0) {
1641
+ f(a, {
1666
1642
  shouldFocus: !1
1667
1643
  });
1668
1644
  return;
1669
1645
  }
1670
- if (f.length > 1) {
1646
+ if (h.length > 1) {
1671
1647
  const C = [];
1672
- for (let T = 0; T < f.length - 1; T++) {
1673
- const A = f[T];
1674
- A && S(A) && !N(A) && C.push(T);
1648
+ for (let T = 0; T < h.length - 1; T++) {
1649
+ const A = h[T];
1650
+ A && S(A) && !R(A) && C.push(T);
1675
1651
  }
1676
1652
  if (C.length > 0) {
1677
1653
  const T = C[0];
@@ -1680,43 +1656,43 @@ const _r = ({ index: e, manager: n }) => {
1680
1656
  const M = C[A];
1681
1657
  M !== void 0 && x(M);
1682
1658
  }
1683
- if (b.current === T) {
1684
- const A = f.length - C.length;
1659
+ if (v.current === T) {
1660
+ const A = h.length - C.length;
1685
1661
  T < A ? l(`${s}.${T}.name`) : T > 0 ? l(`${s}.${T - 1}.name`) : l(`${s}.0.name`);
1686
1662
  }
1687
- b.current = -1;
1663
+ v.current = -1;
1688
1664
  }
1689
1665
  }
1690
- const g = f[f.length - 1];
1691
- g && !S(g) && h(a, {
1666
+ const g = h[h.length - 1];
1667
+ g && !S(g) && f(a, {
1692
1668
  shouldFocus: !1
1693
1669
  });
1694
1670
  }, [
1695
- f,
1696
1671
  h,
1672
+ f,
1697
1673
  x,
1698
1674
  a,
1699
1675
  S,
1700
1676
  s,
1701
1677
  l,
1702
- N
1678
+ R
1703
1679
  ]), G(() => {
1704
- if (!f) return;
1680
+ if (!h) return;
1705
1681
  const g = [];
1706
- for (let C = 0; C < f.length; C++) {
1707
- const T = f[C];
1682
+ for (let C = 0; C < h.length; C++) {
1683
+ const T = h[C];
1708
1684
  if (!T) continue;
1709
- const A = N(T);
1685
+ const A = R(T);
1710
1686
  T.active !== A && g.push(() => y(C, "active", A));
1711
1687
  }
1712
1688
  g.length !== 0 && us(() => g.forEach((C) => C()));
1713
- }, [f, N, y]);
1714
- const k = D(
1689
+ }, [h, R, y]);
1690
+ const N = D(
1715
1691
  (g) => {
1716
- const C = f?.[g];
1692
+ const C = h?.[g];
1717
1693
  return C ? S(C) : !0;
1718
1694
  },
1719
- [f, S]
1695
+ [h, S]
1720
1696
  ), j = D(
1721
1697
  (g, C) => {
1722
1698
  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;
@@ -1727,14 +1703,14 @@ const _r = ({ index: e, manager: n }) => {
1727
1703
  };
1728
1704
  },
1729
1705
  [s, l]
1730
- ), P = D(
1706
+ ), O = D(
1731
1707
  (g) => ({
1732
1708
  ...m(`${s}.${g}.name`),
1733
1709
  onChange: (C) => y(g, "name", C.target.value),
1734
1710
  onKeyDown: j(g, "name")
1735
1711
  }),
1736
1712
  [m, s, y, j]
1737
- ), ie = D(
1713
+ ), Q = D(
1738
1714
  (g) => ({
1739
1715
  ...m(`${s}.${g}.value`),
1740
1716
  onChange: (C) => y(g, "value", C.target.value),
@@ -1745,15 +1721,15 @@ const _r = ({ index: e, manager: n }) => {
1745
1721
  (g) => ({
1746
1722
  ...m(`${s}.${g}.active`),
1747
1723
  checked: c(`${s}.${g}.active`) ?? !1,
1748
- disabled: k(g),
1724
+ disabled: N(g),
1749
1725
  onCheckedChange: (C) => {
1750
1726
  y(g, "active", C === !0);
1751
1727
  }
1752
1728
  }),
1753
- [s, m, k, c, y]
1729
+ [s, m, N, c, y]
1754
1730
  ), Ie = D(
1755
- (g, C) => f?.[g]?.[C],
1756
- [f]
1731
+ (g, C) => h?.[g]?.[C],
1732
+ [h]
1757
1733
  ), ee = D(
1758
1734
  (g) => ({
1759
1735
  onClick: () => x(g),
@@ -1763,8 +1739,8 @@ const _r = ({ index: e, manager: n }) => {
1763
1739
  );
1764
1740
  return {
1765
1741
  fields: d,
1766
- getNameInputProps: P,
1767
- getValueInputProps: ie,
1742
+ getNameInputProps: O,
1743
+ getValueInputProps: Q,
1768
1744
  getCheckboxProps: be,
1769
1745
  getRemoveButtonProps: ee,
1770
1746
  setValue: y,
@@ -1777,25 +1753,25 @@ const _r = ({ index: e, manager: n }) => {
1777
1753
  "bodyMode",
1778
1754
  "body",
1779
1755
  "multipartFormFields"
1780
- ]), h = E(null), [x, f] = R(!1), b = (j) => {
1756
+ ]), f = k(null), [x, h] = E(!1), v = (j) => {
1781
1757
  s("file", j), j && s(
1782
1758
  "headers",
1783
1759
  i.filter(
1784
- (P) => P.name.toLowerCase() !== "content-type" || !P.active
1760
+ (O) => O.name.toLowerCase() !== "content-type" || !O.active
1785
1761
  )
1786
1762
  );
1787
1763
  }, u = (j) => {
1788
- const P = j.target.files?.[0] ?? null;
1789
- b(P);
1764
+ const O = j.target.files?.[0] ?? null;
1765
+ v(O);
1790
1766
  }, y = (j) => {
1791
- j.preventDefault(), j.stopPropagation(), f(!0);
1767
+ j.preventDefault(), j.stopPropagation(), h(!0);
1792
1768
  }, S = (j) => {
1793
- j.preventDefault(), j.stopPropagation(), f(!1);
1794
- }, N = (j) => {
1795
- j.preventDefault(), j.stopPropagation(), f(!1);
1796
- const P = j.dataTransfer.files?.[0] ?? null;
1797
- b(P);
1798
- }, k = rt({
1769
+ j.preventDefault(), j.stopPropagation(), h(!1);
1770
+ }, R = (j) => {
1771
+ j.preventDefault(), j.stopPropagation(), h(!1);
1772
+ const O = j.dataTransfer.files?.[0] ?? null;
1773
+ v(O);
1774
+ }, N = ot({
1799
1775
  control: r,
1800
1776
  name: "multipartFormFields",
1801
1777
  defaultValue: { name: "", value: "", active: !1 },
@@ -1807,36 +1783,36 @@ const _r = ({ index: e, manager: n }) => {
1807
1783
  /* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
1808
1784
  "Body",
1809
1785
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
1810
- /* @__PURE__ */ t.jsxs(Ht, { children: [
1811
- /* @__PURE__ */ t.jsx(Qt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1812
- he,
1786
+ /* @__PURE__ */ t.jsxs(Jt, { children: [
1787
+ /* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1788
+ pe,
1813
1789
  {
1814
1790
  variant: "ghost",
1815
1791
  size: "sm",
1816
1792
  className: "hover:bg-accent hover:brightness-95 gap-2",
1817
1793
  children: [
1818
1794
  l === "text" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1819
- /* @__PURE__ */ t.jsx(gt, { size: 14 }),
1795
+ /* @__PURE__ */ t.jsx(yt, { size: 14 }),
1820
1796
  "Text"
1821
1797
  ] }) : l === "file" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1822
- /* @__PURE__ */ t.jsx(me, { size: 14 }),
1798
+ /* @__PURE__ */ t.jsx(ue, { size: 14 }),
1823
1799
  "File"
1824
1800
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1825
- /* @__PURE__ */ t.jsx(xt, { size: 14 }),
1801
+ /* @__PURE__ */ t.jsx(vt, { size: 14 }),
1826
1802
  "Multipart"
1827
1803
  ] }),
1828
1804
  /* @__PURE__ */ t.jsx(In, { size: 14 })
1829
1805
  ]
1830
1806
  }
1831
1807
  ) }),
1832
- /* @__PURE__ */ t.jsxs(Jt, { className: "min-w-40", children: [
1808
+ /* @__PURE__ */ t.jsxs(Kt, { className: "min-w-40", children: [
1833
1809
  /* @__PURE__ */ t.jsxs(
1834
1810
  Ae,
1835
1811
  {
1836
1812
  onSelect: () => s("bodyMode", "text"),
1837
1813
  className: "gap-2",
1838
1814
  children: [
1839
- /* @__PURE__ */ t.jsx(gt, { size: 14 }),
1815
+ /* @__PURE__ */ t.jsx(yt, { size: 14 }),
1840
1816
  /* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "Text" }),
1841
1817
  /* @__PURE__ */ t.jsx("span", { children: m.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
1842
1818
  ]
@@ -1848,7 +1824,7 @@ const _r = ({ index: e, manager: n }) => {
1848
1824
  onSelect: () => s("bodyMode", "file"),
1849
1825
  className: "gap-2",
1850
1826
  children: [
1851
- /* @__PURE__ */ t.jsx(me, { size: 14 }),
1827
+ /* @__PURE__ */ t.jsx(ue, { size: 14 }),
1852
1828
  /* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "File" }),
1853
1829
  /* @__PURE__ */ t.jsx("span", { children: c && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
1854
1830
  ]
@@ -1860,7 +1836,7 @@ const _r = ({ index: e, manager: n }) => {
1860
1836
  onSelect: () => s("bodyMode", "multipart"),
1861
1837
  className: "gap-2",
1862
1838
  children: [
1863
- /* @__PURE__ */ t.jsx(xt, { size: 14, strokeWidth: 1.5 }),
1839
+ /* @__PURE__ */ t.jsx(vt, { size: 14, strokeWidth: 1.5 }),
1864
1840
  /* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "Multipart" }),
1865
1841
  /* @__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" }) })
1866
1842
  ]
@@ -1871,7 +1847,7 @@ const _r = ({ index: e, manager: n }) => {
1871
1847
  /* @__PURE__ */ t.jsx(
1872
1848
  "input",
1873
1849
  {
1874
- ref: h,
1850
+ ref: f,
1875
1851
  type: "file",
1876
1852
  className: "hidden",
1877
1853
  onChange: u
@@ -1882,12 +1858,12 @@ const _r = ({ index: e, manager: n }) => {
1882
1858
  Br,
1883
1859
  {
1884
1860
  examples: e,
1885
- onSelect: (j, P) => {
1861
+ onSelect: (j, O) => {
1886
1862
  s("body", JSON.stringify(j.value, null, 2)), s("headers", [
1887
- ...i.filter((ie) => ie.name !== "Content-Type"),
1863
+ ...i.filter((Q) => Q.name !== "Content-Type"),
1888
1864
  {
1889
1865
  name: "Content-Type",
1890
- value: P,
1866
+ value: O,
1891
1867
  active: !0
1892
1868
  }
1893
1869
  ]);
@@ -1899,7 +1875,7 @@ const _r = ({ index: e, manager: n }) => {
1899
1875
  ] }),
1900
1876
  /* @__PURE__ */ t.jsxs(_, { className: "CollapsibleContent flex flex-col gap-2", children: [
1901
1877
  l === "text" && /* @__PURE__ */ t.jsx(
1902
- ln,
1878
+ dn,
1903
1879
  {
1904
1880
  ...n("body"),
1905
1881
  className: w(
@@ -1918,20 +1894,20 @@ const _r = ({ index: e, manager: n }) => {
1918
1894
  ),
1919
1895
  onDragOver: y,
1920
1896
  onDragLeave: S,
1921
- onDrop: N,
1897
+ onDrop: R,
1922
1898
  children: [
1923
1899
  /* @__PURE__ */ t.jsx(
1924
1900
  "button",
1925
1901
  {
1926
1902
  type: "button",
1927
- onClick: () => h.current?.click(),
1903
+ onClick: () => f.current?.click(),
1928
1904
  className: w(
1929
1905
  "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",
1930
1906
  (c || x) && "border-solid",
1931
1907
  x && "bg-accent border-primary"
1932
1908
  ),
1933
1909
  children: /* @__PURE__ */ t.jsx(
1934
- me,
1910
+ ue,
1935
1911
  {
1936
1912
  className: w(
1937
1913
  "text-muted-foreground",
@@ -1953,23 +1929,23 @@ const _r = ({ index: e, manager: n }) => {
1953
1929
  ] })
1954
1930
  ] }),
1955
1931
  /* @__PURE__ */ t.jsx(
1956
- he,
1932
+ pe,
1957
1933
  {
1958
1934
  type: "button",
1959
1935
  variant: "ghost",
1960
1936
  size: "icon-xxs",
1961
- onClick: () => b(null),
1962
- children: /* @__PURE__ */ t.jsx(Et, { size: 14 })
1937
+ onClick: () => v(null),
1938
+ children: /* @__PURE__ */ t.jsx(It, { size: 14 })
1963
1939
  }
1964
1940
  )
1965
1941
  ] }) : /* @__PURE__ */ t.jsx("span", { className: "text-lg font-semibold text-muted-foreground", children: "Select or drop a file" })
1966
1942
  ]
1967
1943
  }
1968
1944
  ),
1969
- l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: k.fields.map((j, P) => /* @__PURE__ */ t.jsx(_r, { index: P, manager: k }, j.id)) })
1945
+ l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: N.fields.map((j, O) => /* @__PURE__ */ t.jsx(_r, { index: O, manager: N }, j.id)) })
1970
1946
  ] })
1971
1947
  ] });
1972
- }, Ot = (e, n, s) => {
1948
+ }, Lt = (e, n, s) => {
1973
1949
  const a = n.replace(/(:\w+|\{\w+})/g, (o) => {
1974
1950
  const i = o.replace(/[:{}]/g, "");
1975
1951
  return s.pathParams.find((l) => l.name === i)?.value ?? o;
@@ -2003,7 +1979,7 @@ const Ur = (e, n) => {
2003
1979
  } catch {
2004
1980
  return "download";
2005
1981
  }
2006
- }, Gr = $e.Root, dn = Q.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx($e.Portal, { children: /* @__PURE__ */ t.jsx(
1982
+ }, Gr = $e.Root, un = xe.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx($e.Portal, { children: /* @__PURE__ */ t.jsx(
2007
1983
  $e.Content,
2008
1984
  {
2009
1985
  ref: r,
@@ -2016,7 +1992,7 @@ const Ur = (e, n) => {
2016
1992
  ...a
2017
1993
  }
2018
1994
  ) }));
2019
- dn.displayName = $e.Content.displayName;
1995
+ un.displayName = $e.Content.displayName;
2020
1996
  const Hr = ({
2021
1997
  value: e,
2022
1998
  options: n,
@@ -2028,36 +2004,36 @@ const Hr = ({
2028
2004
  ref: c,
2029
2005
  onSelect: l
2030
2006
  }) => {
2031
- const [m, d] = R(!1), [h, x] = R(!1), f = Ds((u) => u.filtered.count), b = E(null);
2007
+ const [m, d] = E(!1), [f, x] = E(!1), h = Rs((u) => u.filtered.count), v = k(null);
2032
2008
  return /* @__PURE__ */ t.jsxs(Gr, { open: m, children: [
2033
- /* @__PURE__ */ t.jsx(Is, { children: /* @__PURE__ */ t.jsx(
2034
- zs,
2009
+ /* @__PURE__ */ t.jsx(Es, { children: /* @__PURE__ */ t.jsx(
2010
+ Ds,
2035
2011
  {
2036
2012
  autoComplete: "off",
2037
2013
  ref: (u) => {
2038
- b.current = u, typeof c == "function" ? c(u) : c && (c.current = u);
2014
+ v.current = u, typeof c == "function" ? c(u) : c && (c.current = u);
2039
2015
  },
2040
2016
  value: e ? String(e) : void 0,
2041
2017
  placeholder: r,
2042
2018
  className: w("h-9 bg-transparent", a),
2043
2019
  onFocus: () => d(!0),
2044
2020
  onBlur: () => {
2045
- h || d(!1);
2021
+ f || d(!1);
2046
2022
  },
2047
2023
  onKeyDown: (u) => {
2048
- i?.(u), !u.defaultPrevented && u.key === "Enter" && (d(!1), b.current?.blur(), o?.(u));
2024
+ i?.(u), !u.defaultPrevented && u.key === "Enter" && (d(!1), v.current?.blur(), o?.(u));
2049
2025
  },
2050
2026
  onValueChange: (u) => s(u)
2051
2027
  }
2052
2028
  ) }),
2053
2029
  /* @__PURE__ */ t.jsx(
2054
- dn,
2030
+ un,
2055
2031
  {
2056
2032
  onMouseEnter: () => x(!0),
2057
2033
  onMouseLeave: () => x(!1),
2058
2034
  onOpenAutoFocus: (u) => u.preventDefault(),
2059
2035
  className: w("p-0 w-(--radix-popover-trigger-width)", {
2060
- "border-0": f === 0
2036
+ "border-0": h === 0
2061
2037
  }),
2062
2038
  align: "start",
2063
2039
  side: "bottom",
@@ -2067,8 +2043,8 @@ const Hr = ({
2067
2043
  onTouchMove: (u) => {
2068
2044
  u.stopPropagation();
2069
2045
  },
2070
- children: /* @__PURE__ */ t.jsx(Vs, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
2071
- Bs,
2046
+ children: /* @__PURE__ */ t.jsx(Fs, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
2047
+ zs,
2072
2048
  {
2073
2049
  value: u,
2074
2050
  onSelect: (y) => {
@@ -2082,7 +2058,7 @@ const Hr = ({
2082
2058
  }
2083
2059
  )
2084
2060
  ] });
2085
- }, Oe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Fs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Hr, { ...n }) }), Qr = Object.freeze([
2061
+ }, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Is, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Hr, { ...n }) }), Qr = Object.freeze([
2086
2062
  "Accept",
2087
2063
  "Accept-Encoding",
2088
2064
  "Accept-Language",
@@ -2114,11 +2090,11 @@ const Hr = ({
2114
2090
  schemaHeaders: n,
2115
2091
  lockedHeaders: s
2116
2092
  }) => {
2117
- const { watch: a, formState: r } = ae(), o = a("headers"), i = rt({
2093
+ const { watch: a, formState: r } = ae(), o = a("headers"), i = ot({
2118
2094
  control: e,
2119
2095
  name: "headers",
2120
2096
  defaultValue: { name: "", value: "", active: !1 }
2121
- }), 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) => ({
2097
+ }), c = n.filter((d) => !o.some((f) => f.name === d.name)).map(({ name: d }) => d), l = i.fields.flatMap((d, f) => !s?.map((h) => h.toLowerCase()).includes(d.name.toLowerCase()) ? [] : [f]), m = s?.map((d) => ({
2122
2098
  name: d,
2123
2099
  id: `locked-${d}`,
2124
2100
  value: "••••••••••",
@@ -2131,9 +2107,9 @@ const Hr = ({
2131
2107
  /* @__PURE__ */ t.jsx(H, { children: "Headers" })
2132
2108
  ] }),
2133
2109
  /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(Ee, { children: [
2134
- m.map((d) => /* @__PURE__ */ t.jsxs(jt, { children: [
2135
- /* @__PURE__ */ t.jsx(Ct, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2136
- xe,
2110
+ m.map((d) => /* @__PURE__ */ t.jsxs(Nt, { children: [
2111
+ /* @__PURE__ */ t.jsx(St, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2112
+ ge,
2137
2113
  {
2138
2114
  className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
2139
2115
  children: [
@@ -2144,40 +2120,40 @@ const Hr = ({
2144
2120
  },
2145
2121
  d.id
2146
2122
  ) }),
2147
- /* @__PURE__ */ t.jsx(Nt, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
2123
+ /* @__PURE__ */ t.jsx(wt, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
2148
2124
  ] }, d.id)),
2149
- i.fields.map((d, h) => {
2125
+ i.fields.map((d, f) => {
2150
2126
  const x = n.find(
2151
- (S) => S.name === o.at(h)?.name
2152
- ), f = x?.enum && x.enum.length > 0, b = l.includes(h), u = i.getNameInputProps(h), y = i.getValueInputProps(h);
2127
+ (S) => S.name === o.at(f)?.name
2128
+ ), h = x?.enum && x.enum.length > 0, v = l.includes(f), u = i.getNameInputProps(f), y = i.getValueInputProps(f);
2153
2129
  return /* @__PURE__ */ t.jsxs(
2154
- xe,
2130
+ ge,
2155
2131
  {
2156
2132
  className: w(
2157
- b && "text-amber-600",
2158
- b && !r.dirtyFields.headers?.[h]?.value && "hidden"
2133
+ v && "text-amber-600",
2134
+ v && !r.dirtyFields.headers?.[f]?.value && "hidden"
2159
2135
  ),
2160
2136
  children: [
2161
2137
  /* @__PURE__ */ t.jsx(
2162
2138
  ve,
2163
2139
  {
2164
- className: w(b && "hidden"),
2165
- ...i.getCheckboxProps(h)
2140
+ className: w(v && "hidden"),
2141
+ ...i.getCheckboxProps(f)
2166
2142
  }
2167
2143
  ),
2168
- /* @__PURE__ */ t.jsxs(jt, { children: [
2169
- /* @__PURE__ */ t.jsx(Ct, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2144
+ /* @__PURE__ */ t.jsxs(Nt, { children: [
2145
+ /* @__PURE__ */ t.jsx(St, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2170
2146
  zn,
2171
2147
  {
2172
2148
  className: w(
2173
2149
  "text-amber-600",
2174
- !b && "hidden"
2150
+ !v && "hidden"
2175
2151
  ),
2176
2152
  size: 16
2177
2153
  }
2178
2154
  ) }),
2179
2155
  /* @__PURE__ */ t.jsx(
2180
- Nt,
2156
+ wt,
2181
2157
  {
2182
2158
  alignOffset: 10,
2183
2159
  side: "bottom",
@@ -2187,26 +2163,26 @@ const Hr = ({
2187
2163
  )
2188
2164
  ] }),
2189
2165
  /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2190
- Oe,
2166
+ Pe,
2191
2167
  {
2192
2168
  ...u,
2193
- value: String(i.getValue(h, "name")),
2169
+ value: String(i.getValue(f, "name")),
2194
2170
  placeholder: "Name",
2195
2171
  options: [...c, ...Qr],
2196
- onChange: (S) => i.setValue(h, "name", S),
2197
- onSelect: (S) => i.setValue(h, "name", S, { focus: "next" })
2172
+ onChange: (S) => i.setValue(f, "name", S),
2173
+ onSelect: (S) => i.setValue(f, "name", S, { focus: "next" })
2198
2174
  }
2199
2175
  ) }),
2200
2176
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2201
- f ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2202
- Oe,
2177
+ h ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2178
+ Pe,
2203
2179
  {
2204
2180
  ...y,
2205
- value: String(i.getValue(h, "value")),
2181
+ value: String(i.getValue(f, "value")),
2206
2182
  shouldFilter: !1,
2207
2183
  options: x.enum ?? [],
2208
- onChange: (S) => i.setValue(h, "value", S),
2209
- onSelect: (S) => i.setValue(h, "value", S, { focus: "next" })
2184
+ onChange: (S) => i.setValue(f, "value", S),
2185
+ onSelect: (S) => i.setValue(f, "value", S, { focus: "next" })
2210
2186
  }
2211
2187
  ) }) : /* @__PURE__ */ t.jsx(
2212
2188
  I,
@@ -2217,9 +2193,9 @@ const Hr = ({
2217
2193
  }
2218
2194
  ),
2219
2195
  /* @__PURE__ */ t.jsx(
2220
- st,
2196
+ at,
2221
2197
  {
2222
- ...i.getRemoveButtonProps(h)
2198
+ ...i.getRemoveButtonProps(f)
2223
2199
  }
2224
2200
  )
2225
2201
  ] })
@@ -2230,28 +2206,28 @@ const Hr = ({
2230
2206
  })
2231
2207
  ] }) }) }) })
2232
2208
  ] });
2233
- }, Wr = qs(
2209
+ }, Wr = Bs(
2234
2210
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2235
- ), Re = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2236
- Wt.Root,
2211
+ ), Re = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2212
+ Xt.Root,
2237
2213
  {
2238
2214
  ref: s,
2239
2215
  className: w(Wr(), e),
2240
2216
  ...n
2241
2217
  }
2242
2218
  ));
2243
- Re.displayName = Wt.Root.displayName;
2244
- const un = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2245
- fe.Root,
2219
+ Re.displayName = Xt.Root.displayName;
2220
+ const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2221
+ he.Root,
2246
2222
  {
2247
2223
  className: w("grid gap-2", e),
2248
2224
  ...n,
2249
2225
  ref: s
2250
2226
  }
2251
2227
  ));
2252
- un.displayName = fe.Root.displayName;
2253
- const mn = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2254
- fe.Item,
2228
+ mn.displayName = he.Root.displayName;
2229
+ const pn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2230
+ he.Item,
2255
2231
  {
2256
2232
  ref: s,
2257
2233
  className: w(
@@ -2259,29 +2235,29 @@ const mn = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2259
2235
  e
2260
2236
  ),
2261
2237
  ...n,
2262
- 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" }) })
2238
+ children: /* @__PURE__ */ t.jsx(he.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Vn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
2263
2239
  }
2264
2240
  ));
2265
- mn.displayName = fe.Item.displayName;
2266
- const pn = ({
2241
+ pn.displayName = he.Item.displayName;
2242
+ const hn = ({
2267
2243
  identities: e,
2268
2244
  setValue: n,
2269
2245
  value: s
2270
2246
  }) => /* @__PURE__ */ t.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ t.jsx(
2271
- un,
2247
+ mn,
2272
2248
  {
2273
2249
  onValueChange: (a) => n(a),
2274
2250
  value: s,
2275
- defaultValue: pe,
2251
+ defaultValue: me,
2276
2252
  className: "gap-0",
2277
2253
  disabled: e?.length === 0,
2278
- children: [{ id: pe, label: "None" }, ...e ?? []].map(
2254
+ children: [{ id: me, label: "None" }, ...e ?? []].map(
2279
2255
  (a) => /* @__PURE__ */ t.jsxs(
2280
2256
  Re,
2281
2257
  {
2282
2258
  className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
2283
2259
  children: [
2284
- /* @__PURE__ */ t.jsx(mn, { value: a.id, id: a.id }),
2260
+ /* @__PURE__ */ t.jsx(pn, { value: a.id, id: a.id }),
2285
2261
  /* @__PURE__ */ t.jsx("span", { children: a.label })
2286
2262
  ]
2287
2263
  },
@@ -2295,19 +2271,19 @@ const pn = ({
2295
2271
  open: s,
2296
2272
  onOpenChange: a
2297
2273
  }) => {
2298
- const [r, o] = R(void 0), [i, c] = R(!1);
2299
- return /* @__PURE__ */ t.jsx(Ze, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(Ye, { children: [
2300
- /* @__PURE__ */ t.jsx(et, { children: "Select an auth identity" }),
2301
- /* @__PURE__ */ t.jsx(Vt, { children: "Please select an identity for this request." }),
2302
- /* @__PURE__ */ t.jsx(_s, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
2303
- pn,
2274
+ const [r, o] = E(void 0), [i, c] = E(!1);
2275
+ return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
2276
+ /* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
2277
+ /* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
2278
+ /* @__PURE__ */ t.jsx(Vs, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
2279
+ hn,
2304
2280
  {
2305
2281
  identities: n,
2306
2282
  setValue: o,
2307
2283
  value: r
2308
2284
  }
2309
2285
  ) }),
2310
- /* @__PURE__ */ t.jsxs(Bt, { className: "flex flex-col gap-2", children: [
2286
+ /* @__PURE__ */ t.jsxs(qt, { className: "flex flex-col gap-2", children: [
2311
2287
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2312
2288
  /* @__PURE__ */ t.jsx(
2313
2289
  ve,
@@ -2332,22 +2308,22 @@ const pn = ({
2332
2308
  ] }) });
2333
2309
  }, Ue = (e) => Math.abs(
2334
2310
  Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
2335
- ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), Pt = (e, n = {}) => {
2311
+ ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), kt = (e, n = {}) => {
2336
2312
  const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
2337
2313
  return `${s}deg ${a}% ${r}%`;
2338
2314
  }, He = "data-linked-param", Xr = (e) => {
2339
- const { resolvedTheme: n } = Ms();
2315
+ const { resolvedTheme: n } = gs();
2340
2316
  return {
2341
- text: Pt(
2317
+ text: kt(
2342
2318
  e,
2343
2319
  n === "light" ? { saturation: 95, lightness: 38 } : {}
2344
2320
  ),
2345
- background: Pt(
2321
+ background: kt(
2346
2322
  e,
2347
2323
  n === "light" ? { saturation: 85, lightness: 40 } : {}
2348
2324
  )
2349
2325
  };
2350
- }, hn = ({
2326
+ }, fn = ({
2351
2327
  name: e,
2352
2328
  className: n,
2353
2329
  slug: s,
@@ -2355,10 +2331,10 @@ const pn = ({
2355
2331
  children: r,
2356
2332
  onClick: o
2357
2333
  }) => {
2358
- const i = E(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%)`;
2334
+ const i = k(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Xr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, h = `hsl(${d} / 50%)`;
2359
2335
  return G(() => {
2360
2336
  if (!c || !i.current) return;
2361
- const b = () => {
2337
+ const v = () => {
2362
2338
  document.querySelectorAll(`[${He}="${c}"]`).forEach((S) => {
2363
2339
  S instanceof HTMLElement && (S.dataset.active = "true");
2364
2340
  });
@@ -2367,8 +2343,8 @@ const pn = ({
2367
2343
  S instanceof HTMLElement && (S.dataset.active = "false");
2368
2344
  });
2369
2345
  }, y = i.current;
2370
- return y.addEventListener("mouseenter", b), y.addEventListener("mouseleave", u), () => {
2371
- y.removeEventListener("mouseenter", b), y.removeEventListener("mouseleave", u);
2346
+ return y.addEventListener("mouseenter", v), y.addEventListener("mouseleave", u), () => {
2347
+ y.removeEventListener("mouseenter", v), y.removeEventListener("mouseleave", u);
2372
2348
  };
2373
2349
  }, [c]), // biome-ignore lint/a11y/noStaticElementInteractions: Just passing props through
2374
2350
  // biome-ignore lint/a11y/useKeyWithClickEvents: Just passing props through
@@ -2388,8 +2364,8 @@ const pn = ({
2388
2364
  ref: i,
2389
2365
  onClick: o,
2390
2366
  style: {
2391
- "--param-color": h,
2392
- "--border-color": f,
2367
+ "--param-color": f,
2368
+ "--border-color": h,
2393
2369
  "--background-color": x
2394
2370
  },
2395
2371
  children: r ?? e
@@ -2399,20 +2375,20 @@ const pn = ({
2399
2375
  control: e,
2400
2376
  url: n
2401
2377
  }) => {
2402
- const { fields: s } = Gt({
2378
+ const { fields: s } = Mt({
2403
2379
  control: e,
2404
2380
  name: "pathParams"
2405
2381
  }), a = [...s].sort(
2406
2382
  (r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
2407
2383
  );
2408
- return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(xe, { children: [
2384
+ return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
2409
2385
  /* @__PURE__ */ t.jsx(
2410
- bt,
2386
+ Ct,
2411
2387
  {
2412
2388
  control: e,
2413
2389
  name: `pathParams.${o}.name`,
2414
2390
  render: () => /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsx(
2415
- hn,
2391
+ fn,
2416
2392
  {
2417
2393
  slug: r.name,
2418
2394
  name: r.name,
@@ -2422,7 +2398,7 @@ const pn = ({
2422
2398
  }
2423
2399
  ),
2424
2400
  /* @__PURE__ */ t.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ t.jsx(
2425
- bt,
2401
+ Ct,
2426
2402
  {
2427
2403
  control: e,
2428
2404
  name: `pathParams.${o}.value`,
@@ -2434,7 +2410,7 @@ const pn = ({
2434
2410
  control: e,
2435
2411
  schemaQueryParams: n
2436
2412
  }) => {
2437
- const { watch: s } = ae(), a = s("queryParams"), r = rt({
2413
+ const { watch: s } = ae(), a = s("queryParams"), r = ot({
2438
2414
  control: e,
2439
2415
  name: "queryParams",
2440
2416
  defaultValue: { name: "", value: "", active: !1 }
@@ -2448,9 +2424,9 @@ const pn = ({
2448
2424
  ] }),
2449
2425
  /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Ee, { children: r.fields.map((c, l) => {
2450
2426
  const m = n.find(
2451
- (f) => f.name === a.at(l)?.name
2452
- ), d = m?.enum && m.enum.length > 0, h = r.getNameInputProps(l), x = r.getValueInputProps(l);
2453
- return /* @__PURE__ */ t.jsxs(xe, { children: [
2427
+ (h) => h.name === a.at(l)?.name
2428
+ ), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
2429
+ return /* @__PURE__ */ t.jsxs(ge, { children: [
2454
2430
  /* @__PURE__ */ t.jsx(ve, { ...r.getCheckboxProps(l) }),
2455
2431
  o[l] ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2456
2432
  "label",
@@ -2464,26 +2440,26 @@ const pn = ({
2464
2440
  ]
2465
2441
  }
2466
2442
  ) }) : i ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2467
- Oe,
2443
+ Pe,
2468
2444
  {
2469
- ...h,
2445
+ ...f,
2470
2446
  value: String(r.getValue(l, "name")),
2471
2447
  placeholder: "Name",
2472
- options: n.map((f) => f.name),
2473
- onChange: (f) => r.setValue(l, "name", f),
2474
- onSelect: (f) => r.setValue(l, "name", f, { focus: "next" })
2448
+ options: n.map((h) => h.name),
2449
+ onChange: (h) => r.setValue(l, "name", h),
2450
+ onSelect: (h) => r.setValue(l, "name", h, { focus: "next" })
2475
2451
  }
2476
- ) }) : /* @__PURE__ */ t.jsx(I, { ...h, placeholder: "Name" }),
2452
+ ) }) : /* @__PURE__ */ t.jsx(I, { ...f, placeholder: "Name" }),
2477
2453
  /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between items-center", children: [
2478
2454
  d ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2479
- Oe,
2455
+ Pe,
2480
2456
  {
2481
2457
  ...x,
2482
2458
  value: String(r.getValue(l, "value")),
2483
2459
  shouldFilter: !1,
2484
2460
  options: m.enum ?? [],
2485
- onChange: (f) => r.setValue(l, "value", f),
2486
- onSelect: (f) => r.setValue(l, "value", f, { focus: "next" })
2461
+ onChange: (h) => r.setValue(l, "value", h),
2462
+ onSelect: (h) => r.setValue(l, "value", h, { focus: "next" })
2487
2463
  }
2488
2464
  ) }) : /* @__PURE__ */ t.jsx(
2489
2465
  I,
@@ -2494,7 +2470,7 @@ const pn = ({
2494
2470
  }
2495
2471
  ),
2496
2472
  /* @__PURE__ */ t.jsx(
2497
- st,
2473
+ at,
2498
2474
  {
2499
2475
  ...r.getRemoveButtonProps(l)
2500
2476
  }
@@ -2510,12 +2486,12 @@ const pn = ({
2510
2486
  onLogin: a,
2511
2487
  onSkip: r
2512
2488
  }) => {
2513
- const [o, i] = R(!1), c = () => {
2489
+ const [o, i] = E(!1), c = () => {
2514
2490
  r?.(o), n(!1);
2515
2491
  };
2516
- return /* @__PURE__ */ t.jsx(Ze, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(Ye, { children: [
2517
- /* @__PURE__ */ t.jsx(et, { children: "Welcome to the Playground!" }),
2518
- /* @__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." }),
2492
+ return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
2493
+ /* @__PURE__ */ t.jsx(nt, { children: "Welcome to the Playground!" }),
2494
+ /* @__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." }),
2519
2495
  /* @__PURE__ */ t.jsxs(Re, { className: "flex items-center gap-2 font-normal", children: [
2520
2496
  /* @__PURE__ */ t.jsx(
2521
2497
  ve,
@@ -2526,7 +2502,7 @@ const pn = ({
2526
2502
  ),
2527
2503
  "Don't show this again"
2528
2504
  ] }),
2529
- /* @__PURE__ */ t.jsxs(Bt, { className: "flex gap-2 sm:justify-between", children: [
2505
+ /* @__PURE__ */ t.jsxs(qt, { className: "flex gap-2 sm:justify-between", children: [
2530
2506
  /* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: c, children: "Skip" }),
2531
2507
  /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2", children: [
2532
2508
  s && /* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
@@ -2534,8 +2510,8 @@ const pn = ({
2534
2510
  ] })
2535
2511
  ] })
2536
2512
  ] }) });
2537
- }, ta = Ke()(
2538
- Xe(
2513
+ }, ta = Ze()(
2514
+ Ye(
2539
2515
  (e, n) => ({
2540
2516
  rememberedIdentity: null,
2541
2517
  setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
@@ -2545,7 +2521,7 @@ const pn = ({
2545
2521
  }),
2546
2522
  {
2547
2523
  name: "identity-storage",
2548
- storage: Dt(() => sessionStorage)
2524
+ storage: zt(() => sessionStorage)
2549
2525
  }
2550
2526
  )
2551
2527
  ), na = ({
@@ -2557,18 +2533,18 @@ const pn = ({
2557
2533
  const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
2558
2534
  let l = 0;
2559
2535
  return i.forEach((m) => {
2560
- const [d, h] = m;
2561
- if (!h) return;
2536
+ const [d, f] = m;
2537
+ if (!f) return;
2562
2538
  const x = m.index;
2563
2539
  x > l && c.push(
2564
- /* @__PURE__ */ t.jsx(le, { children: a.slice(l, x) }, `text-${l}-${x}`)
2540
+ /* @__PURE__ */ t.jsx(ie, { children: a.slice(l, x) }, `text-${l}-${x}`)
2565
2541
  ), c.push(
2566
- /* @__PURE__ */ t.jsx(le, { children: n({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2542
+ /* @__PURE__ */ t.jsx(ie, { children: n({ name: f, originalValue: d, index: s++ }) }, `param-${f}`)
2567
2543
  ), l = x + d.length;
2568
2544
  }), l < a.length && c.push(
2569
- /* @__PURE__ */ t.jsx(le, { children: a.slice(l) }, `text-${l}-${a.length}`)
2545
+ /* @__PURE__ */ t.jsx(ie, { children: a.slice(l) }, `text-${l}-${a.length}`)
2570
2546
  ), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
2571
- /* @__PURE__ */ t.jsxs(le, { children: [
2547
+ /* @__PURE__ */ t.jsxs(ie, { children: [
2572
2548
  c,
2573
2549
  r < o.length - 1 && "/",
2574
2550
  /* @__PURE__ */ t.jsx("wbr", {})
@@ -2585,7 +2561,7 @@ const pn = ({
2585
2561
  (l) => l.name === r
2586
2562
  )?.value;
2587
2563
  return /* @__PURE__ */ t.jsx(
2588
- hn,
2564
+ fn,
2589
2565
  {
2590
2566
  name: r,
2591
2567
  backgroundOpacity: "0",
@@ -2598,7 +2574,7 @@ const pn = ({
2598
2574
  }
2599
2575
  );
2600
2576
  }, ra = () => {
2601
- const { watch: e } = ae(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(le, { children: [
2577
+ const { watch: e } = ae(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(ie, { children: [
2602
2578
  a.name,
2603
2579
  "=",
2604
2580
  encodeURIComponent(a.value).replaceAll("%20", "+"),
@@ -2622,7 +2598,7 @@ const pn = ({
2622
2598
  return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2623
2599
  }
2624
2600
  }, oa = () => {
2625
- const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
2601
+ const e = k(null), n = k(null), s = k(Date.now()), a = k(null), r = D(() => {
2626
2602
  if (n.current) {
2627
2603
  const o = Date.now() - s.current;
2628
2604
  n.current.nodeValue = o.toFixed();
@@ -2688,26 +2664,26 @@ const pn = ({
2688
2664
  )
2689
2665
  ] });
2690
2666
  };
2691
- function at(e) {
2667
+ function it(e) {
2692
2668
  if (e === null) return "null";
2693
2669
  if (Array.isArray(e)) {
2694
2670
  if (e.length === 0) return "any[]";
2695
2671
  const n = e[0];
2696
- return n === void 0 ? "any[]" : `${at(n)}[]`;
2672
+ return n === void 0 ? "any[]" : `${it(n)}[]`;
2697
2673
  }
2698
2674
  return typeof e == "object" ? la(e) : typeof e;
2699
2675
  }
2700
2676
  function la(e, n = "") {
2701
2677
  const s = ["{"];
2702
2678
  for (const [a, r] of Object.entries(e)) {
2703
- const o = at(r);
2679
+ const o = it(r);
2704
2680
  s.push(` ${a}: ${o};`);
2705
2681
  }
2706
2682
  return s.push("}"), s.join(`
2707
2683
  `);
2708
2684
  }
2709
2685
  function ca(e) {
2710
- return { lines: [`type GeneratedType = ${at(e)};`] };
2686
+ return { lines: [`type GeneratedType = ${it(e)};`] };
2711
2687
  }
2712
2688
  const da = (e) => Object.entries({
2713
2689
  "application/json": "json",
@@ -2745,10 +2721,10 @@ const da = (e) => Object.entries({
2745
2721
  }, z = 3, Se = ye(
2746
2722
  "div",
2747
2723
  "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2748
- ), ue = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
2749
- const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = R(!a);
2724
+ ), de = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
2725
+ const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = E(!a);
2750
2726
  return /* @__PURE__ */ t.jsx(
2751
- ue,
2727
+ de,
2752
2728
  {
2753
2729
  className: w(
2754
2730
  "max-h-28 overflow-auto",
@@ -2758,7 +2734,7 @@ const da = (e) => Object.entries({
2758
2734
  a && o((i) => !i);
2759
2735
  },
2760
2736
  children: a ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2761
- /* @__PURE__ */ t.jsx(bs, { secret: e, previewChars: 0, revealed: r }),
2737
+ /* @__PURE__ */ t.jsx(Ss, { secret: e, previewChars: 0, revealed: r }),
2762
2738
  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") })
2763
2739
  ] }) : e
2764
2740
  }
@@ -2772,18 +2748,18 @@ const da = (e) => Object.entries({
2772
2748
  fileName: o,
2773
2749
  blob: i
2774
2750
  }) => {
2775
- const c = ua(n), l = ma(e), m = l || e, [d, h] = R(
2751
+ const c = ua(n), l = ma(e), m = l || e, [d, f] = E(
2776
2752
  l ? "formatted" : "raw"
2777
2753
  ), x = as({
2778
2754
  queryKey: ["types", m],
2779
2755
  queryFn: async () => ca(JSON.parse(m)),
2780
2756
  enabled: d === "types" && !r
2781
- }), f = () => {
2757
+ }), h = () => {
2782
2758
  if (i && o) {
2783
2759
  const u = URL.createObjectURL(i), y = document.createElement("a");
2784
2760
  y.href = u, y.download = o, document.body.appendChild(y), y.click(), document.body.removeChild(y), URL.revokeObjectURL(u);
2785
2761
  }
2786
- }, b = pa([...n]);
2762
+ }, v = pa([...n]);
2787
2763
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2788
2764
  /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2789
2765
  /* @__PURE__ */ t.jsxs(Z, { children: [
@@ -2792,27 +2768,27 @@ const da = (e) => Object.entries({
2792
2768
  ] }),
2793
2769
  /* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2794
2770
  s.headers.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2795
- /* @__PURE__ */ t.jsx(ue, { children: u }),
2771
+ /* @__PURE__ */ t.jsx(de, { children: u }),
2796
2772
  /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2797
2773
  ] }, u)),
2798
2774
  s.headers.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
2799
- /* @__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: [
2775
+ /* @__PURE__ */ t.jsxs(ce, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2800
2776
  "Show ",
2801
2777
  s.headers.length - z,
2802
2778
  " more headers",
2803
- /* @__PURE__ */ t.jsx(Qe, { size: 12, className: "text-muted-foreground" })
2779
+ /* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
2804
2780
  ] }),
2805
2781
  /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
2806
2782
  s.headers.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2807
- /* @__PURE__ */ t.jsx(ue, { children: u }),
2783
+ /* @__PURE__ */ t.jsx(de, { children: u }),
2808
2784
  /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2809
2785
  ] }, u)),
2810
- /* @__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: [
2786
+ /* @__PURE__ */ t.jsxs(ce, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2811
2787
  "Hide ",
2812
2788
  s.headers.length - z,
2813
2789
  " headers",
2814
2790
  /* @__PURE__ */ t.jsx(
2815
- yt,
2791
+ bt,
2816
2792
  {
2817
2793
  size: 12,
2818
2794
  className: "text-muted-foreground"
@@ -2829,28 +2805,28 @@ const da = (e) => Object.entries({
2829
2805
  /* @__PURE__ */ t.jsx(H, { children: "Response Headers" })
2830
2806
  ] }),
2831
2807
  /* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2832
- b.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2833
- /* @__PURE__ */ t.jsx(ue, { children: u }),
2808
+ v.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2809
+ /* @__PURE__ */ t.jsx(de, { children: u }),
2834
2810
  /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2835
2811
  ] }, u)),
2836
- b.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
2837
- /* @__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: [
2812
+ v.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
2813
+ /* @__PURE__ */ t.jsxs(ce, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2838
2814
  "Show ",
2839
- b.length - z,
2815
+ v.length - z,
2840
2816
  " more headers",
2841
- /* @__PURE__ */ t.jsx(Qe, { size: 12, className: "text-muted-foreground" })
2817
+ /* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
2842
2818
  ] }),
2843
2819
  /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
2844
- b.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2845
- /* @__PURE__ */ t.jsx(ue, { children: u }),
2820
+ v.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2821
+ /* @__PURE__ */ t.jsx(de, { children: u }),
2846
2822
  /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2847
2823
  ] }, u)),
2848
- /* @__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: [
2824
+ /* @__PURE__ */ t.jsxs(ce, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2849
2825
  "Hide ",
2850
- b.length - z,
2826
+ v.length - z,
2851
2827
  " headers",
2852
2828
  /* @__PURE__ */ t.jsx(
2853
- yt,
2829
+ bt,
2854
2830
  {
2855
2831
  size: 12,
2856
2832
  className: "text-muted-foreground"
@@ -2867,13 +2843,13 @@ const da = (e) => Object.entries({
2867
2843
  "Response body"
2868
2844
  ] }),
2869
2845
  l && !r && /* @__PURE__ */ t.jsxs(
2870
- _t,
2846
+ Ut,
2871
2847
  {
2872
2848
  value: d,
2873
- onValueChange: (u) => h(u),
2849
+ onValueChange: (u) => f(u),
2874
2850
  children: [
2875
- /* @__PURE__ */ t.jsx(qt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Mt, { placeholder: "View" }) }),
2876
- /* @__PURE__ */ t.jsxs(Ut, { children: [
2851
+ /* @__PURE__ */ t.jsx(Gt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Ht, { placeholder: "View" }) }),
2852
+ /* @__PURE__ */ t.jsxs(Qt, { children: [
2877
2853
  /* @__PURE__ */ t.jsx(Te, { value: "formatted", children: "Formatted" }),
2878
2854
  /* @__PURE__ */ t.jsx(Te, { value: "raw", children: "Raw" }),
2879
2855
  /* @__PURE__ */ t.jsx(Te, { value: "types", children: "Types" })
@@ -2888,7 +2864,7 @@ const da = (e) => Object.entries({
2888
2864
  /* @__PURE__ */ t.jsxs(
2889
2865
  q,
2890
2866
  {
2891
- onClick: f,
2867
+ onClick: h,
2892
2868
  className: "flex items-center gap-2",
2893
2869
  disabled: !i,
2894
2870
  children: [
@@ -2902,7 +2878,7 @@ const da = (e) => Object.entries({
2902
2878
  }
2903
2879
  )
2904
2880
  ] }) }) : /* @__PURE__ */ t.jsx(
2905
- As,
2881
+ ws,
2906
2882
  {
2907
2883
  className: "text-xs flex-1",
2908
2884
  embedded: !0,
@@ -2931,10 +2907,10 @@ const da = (e) => Object.entries({
2931
2907
  progress: o
2932
2908
  }
2933
2909
  ),
2934
- e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(js, { children: [
2910
+ e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(_s, { children: [
2935
2911
  /* @__PURE__ */ t.jsx(Qn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2936
- /* @__PURE__ */ t.jsx(Cs, { children: "Request failed" }),
2937
- /* @__PURE__ */ t.jsx(Ns, { children: e.error.message || String(e.error) || "Unexpected error" })
2912
+ /* @__PURE__ */ t.jsx(qs, { children: "Request failed" }),
2913
+ /* @__PURE__ */ t.jsx(Ms, { children: e.error.message || String(e.error) || "Unexpected error" })
2938
2914
  ] }) }) : e.data ? /* @__PURE__ */ t.jsx(
2939
2915
  ha,
2940
2916
  {
@@ -2947,7 +2923,7 @@ const da = (e) => Object.entries({
2947
2923
  blob: e.data.blob
2948
2924
  }
2949
2925
  ) : 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: [
2950
- /* @__PURE__ */ t.jsx(ys, {}),
2926
+ /* @__PURE__ */ t.jsx(vs, {}),
2951
2927
  /* @__PURE__ */ t.jsxs(
2952
2928
  "div",
2953
2929
  {
@@ -2958,7 +2934,7 @@ const da = (e) => Object.entries({
2958
2934
  children: [
2959
2935
  "Looks like the request is taking longer than expected.",
2960
2936
  /* @__PURE__ */ t.jsx(
2961
- It,
2937
+ Ft,
2962
2938
  {
2963
2939
  type: "button",
2964
2940
  onClick: s,
@@ -2983,20 +2959,20 @@ const da = (e) => Object.entries({
2983
2959
  /* @__PURE__ */ t.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2984
2960
  a
2985
2961
  ] }) })
2986
- ] }), fn = Ke()(
2987
- Xe(
2962
+ ] }), gn = Ze()(
2963
+ Ye(
2988
2964
  (e) => ({
2989
2965
  skipLogin: !1,
2990
2966
  setSkipLogin: (n) => e({ skipLogin: n })
2991
2967
  }),
2992
2968
  {
2993
2969
  name: "remember-skip-login",
2994
- storage: Dt(() => sessionStorage)
2970
+ storage: zt(() => sessionStorage)
2995
2971
  }
2996
2972
  )
2997
2973
  );
2998
- os(fn);
2999
- const pe = "__none", ga = ({
2974
+ os(gn);
2975
+ const me = "__none", ga = ({
3000
2976
  server: e,
3001
2977
  servers: n = [],
3002
2978
  url: s,
@@ -3008,15 +2984,15 @@ const pe = "__none", ga = ({
3008
2984
  examples: l,
3009
2985
  requiresLogin: m = !1,
3010
2986
  onLogin: d,
3011
- onSignUp: h
2987
+ onSignUp: f
3012
2988
  }) => {
3013
- const { selectedServer: x, setSelectedServer: f } = Vr(
2989
+ const { selectedServer: x, setSelectedServer: h } = Vr(
3014
2990
  n.map((p) => ({ url: p }))
3015
- ), [b, u] = R(!1), y = is(), { setRememberedIdentity: S, getRememberedIdentity: N } = ta(), [, k] = ps(), { skipLogin: j, setSkipLogin: P } = fn(), [ie, be] = R(!1), [Ie, ee] = R(!1), g = E(void 0), C = Ps(S), T = E(null), { label: A } = Fr("meta+enter", () => {
2991
+ ), [v, u] = E(!1), y = is(), { setRememberedIdentity: S, getRememberedIdentity: R } = ta(), [, N] = ps(), { skipLogin: j, setSkipLogin: O } = gn(), [Q, be] = E(!1), [Ie, ee] = E(!1), g = k(void 0), C = $s(S), T = k(null), { label: A } = Fr("meta+enter", () => {
3016
2992
  T.current?.requestSubmit();
3017
2993
  }), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
3018
2994
  (p, se) => M.indexOf(p.name) - M.indexOf(se.name)
3019
- ), { register: De, control: te, handleSubmit: je, watch: it, setValue: Fe, ...ze } = ws({
2995
+ ), { register: De, control: te, handleSubmit: je, watch: ct, setValue: Fe, ...ze } = Cs({
3020
2996
  defaultValues: {
3021
2997
  body: c,
3022
2998
  bodyMode: "text",
@@ -3037,19 +3013,19 @@ const pe = "__none", ga = ({
3037
3013
  value: p.defaultValue ?? "",
3038
3014
  active: p.defaultActive ?? !1
3039
3015
  })) : [{ name: "", value: "", active: !1 }],
3040
- identity: N([
3041
- pe,
3016
+ identity: R([
3017
+ me,
3042
3018
  ...y.data?.map((p) => p.id) ?? []
3043
3019
  ])
3044
3020
  }
3045
- }), ne = it("identity"), jn = zt(
3021
+ }), ne = ct("identity"), jn = Bt(
3046
3022
  () => y.data?.find((p) => p.id === ne)?.authorizationFields,
3047
3023
  [y.data, ne]
3048
3024
  );
3049
3025
  G(() => {
3050
3026
  ne && C.current(ne);
3051
3027
  }, [C, ne]);
3052
- const J = Ss({
3028
+ const J = js({
3053
3029
  gcTime: 0,
3054
3030
  mutationFn: async (p) => {
3055
3031
  const se = performance.now(), Ve = new window.Headers(
@@ -3070,14 +3046,14 @@ const pe = "__none", ga = ({
3070
3046
  break;
3071
3047
  }
3072
3048
  const W = new Request(
3073
- Ot(e ?? x, s, p),
3049
+ Lt(e ?? x, s, p),
3074
3050
  {
3075
3051
  method: a,
3076
3052
  headers: Ve,
3077
3053
  body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ce
3078
3054
  }
3079
3055
  );
3080
- p.identity !== pe && await y.data?.find(($) => $.id === p.identity)?.authorizeRequest(W);
3056
+ p.identity !== me && await y.data?.find(($) => $.id === p.identity)?.authorizeRequest(W);
3081
3057
  const Be = setTimeout(
3082
3058
  () => ee(!0),
3083
3059
  3210
@@ -3091,10 +3067,10 @@ const pe = "__none", ga = ({
3091
3067
  signal: g.current.signal
3092
3068
  });
3093
3069
  clearTimeout(Be), ee(!1);
3094
- const K = performance.now() - se, Pn = new URL(W.url), dt = Array.from($.headers.entries()), ut = $.headers.get("content-type") || "", mt = Mr(ut);
3095
- let Ne = "", pt, ht;
3096
- mt ? (pt = await $.blob(), ht = Ur(dt, W.url), Ne = `Binary content (${ut})`) : Ne = await $.text();
3097
- const ft = $.headers.get("content-length");
3070
+ const K = performance.now() - se, On = new URL(W.url), mt = Array.from($.headers.entries()), pt = $.headers.get("content-type") || "", ht = Mr(pt);
3071
+ let Ne = "", ft, gt;
3072
+ ht ? (ft = await $.blob(), gt = Ur(mt, W.url), Ne = `Binary content (${pt})`) : Ne = await $.text();
3073
+ const xt = $.headers.get("content-length");
3098
3074
  let re = "";
3099
3075
  switch (p.bodyMode) {
3100
3076
  case "text":
@@ -3116,18 +3092,18 @@ const pe = "__none", ga = ({
3116
3092
  }
3117
3093
  return {
3118
3094
  status: $.status,
3119
- headers: dt,
3120
- size: ft ? Number(ft) : Ne.length,
3095
+ headers: mt,
3096
+ size: xt ? Number(xt) : Ne.length,
3121
3097
  body: Ne,
3122
3098
  time: K,
3123
- isBinary: mt,
3124
- fileName: ht,
3125
- blob: pt,
3099
+ isBinary: ht,
3100
+ fileName: gt,
3101
+ blob: ft,
3126
3102
  request: {
3127
3103
  method: W.method.toUpperCase(),
3128
3104
  url: W.url,
3129
3105
  headers: [
3130
- ["Host", Pn.host],
3106
+ ["Host", On.host],
3131
3107
  ["User-Agent", "Zudoku Playground"],
3132
3108
  ...Array.from(W.headers.entries())
3133
3109
  ],
@@ -3140,41 +3116,41 @@ const pe = "__none", ga = ({
3140
3116
  ) : $;
3141
3117
  }
3142
3118
  }
3143
- }), lt = J.isPending, [Cn, Nn] = R(!1);
3119
+ }), dt = J.isPending, [Cn, Nn] = E(!1);
3144
3120
  G(() => {
3145
- const p = setTimeout(() => Nn(lt), 100);
3121
+ const p = setTimeout(() => Nn(dt), 100);
3146
3122
  return () => clearTimeout(p);
3147
- }, [lt]);
3148
- const { isFinished: Sn, progress: wn } = vs({ isAnimating: Cn });
3123
+ }, [dt]);
3124
+ const { isFinished: Sn, progress: wn } = bs({ isAnimating: Cn });
3149
3125
  G(() => () => {
3150
3126
  g.current?.abort();
3151
3127
  }, []);
3152
3128
  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(
3153
- _t,
3129
+ Ut,
3154
3130
  {
3155
3131
  onValueChange: (p) => {
3156
- k(() => f(p));
3132
+ N(() => h(p));
3157
3133
  },
3158
3134
  value: x,
3159
3135
  defaultValue: x,
3160
3136
  children: [
3161
- /* @__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, {}) }),
3162
- /* @__PURE__ */ t.jsx(Ut, { children: n.map((p) => /* @__PURE__ */ t.jsx(Te, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
3137
+ /* @__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, {}) }),
3138
+ /* @__PURE__ */ t.jsx(Qt, { children: n.map((p) => /* @__PURE__ */ t.jsx(Te, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
3163
3139
  ]
3164
3140
  }
3165
- ) }), An = m && !j && !ie, $n = ["POST", "PUT", "PATCH", "DELETE"].includes(
3141
+ ) }), An = m && !j && !Q, $n = ["POST", "PUT", "PATCH", "DELETE"].includes(
3166
3142
  a.toUpperCase()
3167
- ), [ct, On] = Os();
3143
+ ), [ut, Pn] = As();
3168
3144
  return /* @__PURE__ */ t.jsx(
3169
- Ts,
3145
+ Ns,
3170
3146
  {
3171
3147
  register: De,
3172
3148
  control: te,
3173
3149
  handleSubmit: je,
3174
- watch: it,
3150
+ watch: ct,
3175
3151
  setValue: Fe,
3176
3152
  ...ze,
3177
- children: /* @__PURE__ */ t.jsx($s, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
3153
+ children: /* @__PURE__ */ t.jsx(Ts, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
3178
3154
  "form",
3179
3155
  {
3180
3156
  ref: T,
@@ -3190,10 +3166,10 @@ const pe = "__none", ga = ({
3190
3166
  Kr,
3191
3167
  {
3192
3168
  identities: y.data ?? [],
3193
- open: b,
3169
+ open: v,
3194
3170
  onOpenChange: u,
3195
3171
  onSubmit: ({ rememberedIdentity: p, identity: se }) => {
3196
- p && Fe("identity", se ?? pe), u(!1), J.mutate({ ...ze.getValues(), identity: se });
3172
+ p && Fe("identity", se ?? me), u(!1), J.mutate({ ...ze.getValues(), identity: se });
3197
3173
  }
3198
3174
  }
3199
3175
  ),
@@ -3205,9 +3181,9 @@ const pe = "__none", ga = ({
3205
3181
  p || be(!0);
3206
3182
  },
3207
3183
  onSkip: (p) => {
3208
- be(!0), p && P(!0);
3184
+ be(!0), p && O(!0);
3209
3185
  },
3210
- onSignUp: h,
3186
+ onSignUp: f,
3211
3187
  onLogin: d
3212
3188
  }
3213
3189
  ),
@@ -3225,8 +3201,8 @@ const pe = "__none", ga = ({
3225
3201
  {
3226
3202
  type: "button",
3227
3203
  onClick: () => {
3228
- On(
3229
- Ot(
3204
+ Pn(
3205
+ Lt(
3230
3206
  e ?? x,
3231
3207
  s,
3232
3208
  ze.getValues()
@@ -3237,9 +3213,9 @@ const pe = "__none", ga = ({
3237
3213
  size: "icon-xs",
3238
3214
  className: w(
3239
3215
  "hover:opacity-100 transition",
3240
- ct ? "text-emerald-600 opacity-100" : "opacity-50"
3216
+ ut ? "text-emerald-600 opacity-100" : "opacity-50"
3241
3217
  ),
3242
- children: ct ? /* @__PURE__ */ t.jsx(Rt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Wn, { size: 14 })
3218
+ children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Wn, { size: 14 })
3243
3219
  }
3244
3220
  ) })
3245
3221
  ] }),
@@ -3265,7 +3241,7 @@ const pe = "__none", ga = ({
3265
3241
  /* @__PURE__ */ t.jsx(H, { children: "Authentication" })
3266
3242
  ] }),
3267
3243
  /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
3268
- pn,
3244
+ hn,
3269
3245
  {
3270
3246
  value: ne,
3271
3247
  identities: y.data ?? [],
@@ -3320,9 +3296,9 @@ const pe = "__none", ga = ({
3320
3296
  }
3321
3297
  );
3322
3298
  }, xa = (e) => {
3323
- const [n, s] = R(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = gs();
3324
- return /* @__PURE__ */ t.jsxs(Ze, { onOpenChange: (l) => s(l), children: [
3325
- /* @__PURE__ */ t.jsx(xs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
3299
+ const [n, s] = E(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = xs();
3300
+ return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
3301
+ /* @__PURE__ */ t.jsx(ys, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
3326
3302
  Zn,
3327
3303
  {
3328
3304
  className: "fill-muted-foreground group-hover:fill-foreground transition",
@@ -3331,13 +3307,13 @@ const pe = "__none", ga = ({
3331
3307
  }
3332
3308
  ) }) }),
3333
3309
  /* @__PURE__ */ t.jsxs(
3334
- Ye,
3310
+ tt,
3335
3311
  {
3336
3312
  className: "max-w-screen-xl! w-full overflow-hidden p-0",
3337
3313
  "aria-describedby": void 0,
3338
3314
  showCloseButton: !0,
3339
3315
  children: [
3340
- /* @__PURE__ */ t.jsx(fs, { children: /* @__PURE__ */ t.jsx(et, { children: "Playground" }) }),
3316
+ /* @__PURE__ */ t.jsx(fs, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
3341
3317
  n && /* @__PURE__ */ t.jsx(
3342
3318
  ga,
3343
3319
  {
@@ -3359,7 +3335,7 @@ const pe = "__none", ga = ({
3359
3335
  patch: "purple",
3360
3336
  options: "gray",
3361
3337
  head: "gray"
3362
- }, Lt = ({
3338
+ }, Et = ({
3363
3339
  label: e,
3364
3340
  path: n,
3365
3341
  operations: s,
@@ -3387,17 +3363,17 @@ const pe = "__none", ga = ({
3387
3363
  invert: !0
3388
3364
  }
3389
3365
  }))
3390
- }), gn = Ft(
3366
+ }), xn = Vt(
3391
3367
  void 0
3392
- ), Ya = gn.Provider, va = () => {
3393
- const e = hs(gn);
3368
+ ), Ya = xn.Provider, va = () => {
3369
+ const e = hs(xn);
3394
3370
  if (!e)
3395
3371
  throw new Error("useOasConfig must be used within a OasConfigProvider");
3396
3372
  return e.config;
3397
- }, kt = (e) => ({
3373
+ }, Qe = (e) => ({
3398
3374
  path: e.routePath,
3399
3375
  async lazy() {
3400
- const { OasProvider: n } = await import("./OasProvider-CpniNNrW.js");
3376
+ const { OasProvider: n } = await import("./OasProvider-DPH8mwDa.js");
3401
3377
  return {
3402
3378
  element: /* @__PURE__ */ t.jsx(
3403
3379
  n,
@@ -3411,14 +3387,14 @@ const pe = "__none", ga = ({
3411
3387
  };
3412
3388
  },
3413
3389
  children: e.routes
3414
- }), xn = ({
3390
+ }), yn = ({
3415
3391
  path: e,
3416
3392
  tag: n,
3417
3393
  untagged: s
3418
3394
  }) => ({
3419
3395
  path: e,
3420
3396
  async lazy() {
3421
- const { OperationList: a } = await import("./OperationList-CmMoKpGu.js");
3397
+ const { OperationList: a } = await import("./OperationList-C0jiEaG5.js");
3422
3398
  return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
3423
3399
  }
3424
3400
  }), ba = ({
@@ -3437,10 +3413,10 @@ const pe = "__none", ga = ({
3437
3413
  }
3438
3414
  }
3439
3415
  ) : r && c.tags.some((m) => m.slug === r) ? e(r) : null;
3440
- }, ja = ({ path: e }) => ({
3416
+ }, Rt = ({ path: e }) => ({
3441
3417
  path: e,
3442
3418
  async lazy() {
3443
- const { OperationList: n } = await import("./OperationList-CmMoKpGu.js");
3419
+ const { OperationList: n } = await import("./OperationList-C0jiEaG5.js");
3444
3420
  return {
3445
3421
  element: /* @__PURE__ */ t.jsx(
3446
3422
  ba,
@@ -3451,65 +3427,80 @@ const pe = "__none", ga = ({
3451
3427
  )
3452
3428
  };
3453
3429
  }
3454
- }), yn = (e) => [
3430
+ }), Xe = (e) => [
3455
3431
  // Category without tagged operations
3456
- xn({
3457
- path: V(e, ot),
3432
+ yn({
3433
+ path: V(e, lt),
3458
3434
  untagged: !0
3459
3435
  }),
3460
3436
  // Schema list route
3461
3437
  {
3462
3438
  path: V(e, "~schemas"),
3463
3439
  lazy: async () => {
3464
- const { SchemaList: n } = await import("./SchemaList-BykD27ga.js");
3440
+ const { SchemaList: n } = await import("./SchemaList-BU0zCHn9.js");
3465
3441
  return { element: /* @__PURE__ */ t.jsx(n, {}) };
3466
3442
  }
3467
3443
  }
3468
- ], Ca = (e, n) => {
3469
- const s = V(e, n.at(0) ?? ot);
3444
+ ], ja = (e, n) => {
3445
+ const s = V(e, n.at(0) ?? lt);
3470
3446
  return [
3471
3447
  // Redirect to first tag on the index route
3472
3448
  { index: !0, loader: () => es(s) },
3473
3449
  // Create routes for each tag
3474
3450
  ...n.map(
3475
- (a) => xn({
3451
+ (a) => yn({
3476
3452
  path: V(e, a),
3477
3453
  tag: a
3478
3454
  })
3479
3455
  ),
3480
- ...yn(e)
3456
+ ...Xe(e)
3481
3457
  ];
3482
- }, vn = (e) => e.type === "file" ? Object.keys(e.input) : [], Na = ({
3458
+ }, vn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {} } : {
3459
+ versions: e.input.map((n) => n.path),
3460
+ labels: Object.fromEntries(
3461
+ e.input.map((n) => [n.path, n.label ?? n.path])
3462
+ )
3463
+ }, Ca = ({
3483
3464
  basePath: e,
3484
3465
  config: n,
3485
3466
  client: s
3486
3467
  }) => {
3487
- const a = n.tagPages;
3488
- if (!a)
3489
- return [
3490
- kt({
3491
- basePath: e,
3492
- routePath: e,
3493
- routes: [
3494
- ja({ path: `${e}/:tag?` }),
3495
- ...yn(e)
3496
- ],
3497
- client: s,
3498
- config: n
3499
- })
3500
- ];
3501
- const r = vn(n);
3502
- return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3468
+ const a = n.tagPages, { versions: r } = vn(n);
3469
+ return a ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3503
3470
  const c = V(e, i);
3504
- return kt({
3471
+ return Qe({
3505
3472
  basePath: e,
3506
3473
  version: i,
3507
3474
  routePath: c,
3508
- routes: Ca(c, a),
3475
+ routes: ja(c, a),
3509
3476
  client: s,
3510
3477
  config: n
3511
3478
  });
3512
- });
3479
+ }) : r.length > 0 ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((c) => {
3480
+ const l = V(e, c);
3481
+ return Qe({
3482
+ basePath: e,
3483
+ version: c,
3484
+ routePath: l,
3485
+ routes: [
3486
+ Rt({ path: `${l}/:tag?` }),
3487
+ ...Xe(l)
3488
+ ],
3489
+ client: s,
3490
+ config: n
3491
+ });
3492
+ }) : [
3493
+ Qe({
3494
+ basePath: e,
3495
+ routePath: e,
3496
+ routes: [
3497
+ Rt({ path: `${e}/:tag?` }),
3498
+ ...Xe(e)
3499
+ ],
3500
+ client: s,
3501
+ config: n
3502
+ })
3503
+ ];
3513
3504
  }, bn = Er(`
3514
3505
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3515
3506
  schema(input: $input, type: $type) {
@@ -3533,20 +3524,21 @@ const pe = "__none", ga = ({
3533
3524
  }
3534
3525
  }
3535
3526
  }
3536
- `), ot = "~endpoints", eo = (e) => {
3527
+ `), lt = "~endpoints", eo = (e) => {
3537
3528
  const n = V(e.path), s = new Gs(e);
3538
3529
  return {
3539
3530
  getHead: () => {
3540
3531
  if (e.type === "url" && !e.skipPreload)
3541
- return /* @__PURE__ */ t.jsx(
3532
+ return (Array.isArray(e.input) ? e.input.map((r) => r.input) : [e.input]).map((r) => /* @__PURE__ */ t.jsx(
3542
3533
  "link",
3543
3534
  {
3535
+ href: r,
3544
3536
  rel: "preload",
3545
- href: e.input,
3546
3537
  as: "fetch",
3547
3538
  crossOrigin: "anonymous"
3548
- }
3549
- );
3539
+ },
3540
+ r
3541
+ ));
3550
3542
  if (e.server)
3551
3543
  return /* @__PURE__ */ t.jsx("link", { rel: "preconnect", href: e.server });
3552
3544
  },
@@ -3567,7 +3559,7 @@ const pe = "__none", ga = ({
3567
3559
  method: r,
3568
3560
  server: a,
3569
3561
  ...c,
3570
- children: /* @__PURE__ */ t.jsx(It, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3562
+ children: /* @__PURE__ */ t.jsx(Ft, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3571
3563
  "Open in Playground",
3572
3564
  /* @__PURE__ */ t.jsx(Yn, { size: 16 })
3573
3565
  ] }) })
@@ -3576,72 +3568,72 @@ const pe = "__none", ga = ({
3576
3568
  }
3577
3569
  }),
3578
3570
  getNavigation: async (a, r) => {
3579
- if (!vt({ path: n, end: !1 }, a))
3571
+ if (!jt({ path: n, end: !1 }, a))
3580
3572
  return [];
3581
- const o = vt(
3573
+ const o = jt(
3582
3574
  { path: `${n}/:version?/:tag`, end: !0 },
3583
3575
  a
3584
3576
  );
3585
3577
  try {
3586
- 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, {
3587
- type: l,
3588
- input: m
3589
- }), h = await r.queryClient.ensureQueryData(d), x = new Map(
3590
- h.schema.tags.filter((N) => N.name && N.operations.length > 0).map((N) => {
3578
+ const i = o?.params.version, { versions: c } = vn(e), l = i ?? c.at(0), { type: m } = e, d = Array.isArray(e.input) ? e.input.find((N) => N.path === l)?.input ?? e.input[0]?.input : e.input, f = cn(s, bn, {
3579
+ type: m,
3580
+ input: d
3581
+ }), x = await r.queryClient.ensureQueryData(f), h = new Map(
3582
+ x.schema.tags.filter((N) => N.name && N.operations.length > 0).map((N) => {
3591
3583
  if (!N.name)
3592
3584
  throw new Error(`Tag ${N.slug} has no name`);
3593
- const k = V(n, i, N.slug), j = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, P = N.extensions?.["x-zudoku-collapsible"] ?? !0;
3585
+ const j = V(n, i, N.slug), O = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
3594
3586
  return [
3595
3587
  N.name,
3596
- Lt({
3588
+ Et({
3597
3589
  label: N.extensions?.["x-displayName"] ?? N.name,
3598
- path: k,
3590
+ path: j,
3599
3591
  operations: N.operations,
3600
- collapsed: j,
3601
- collapsible: P
3592
+ collapsed: O,
3593
+ collapsible: Q
3602
3594
  })
3603
3595
  ];
3604
3596
  })
3605
- ), f = h.schema.extensions?.["x-tagGroups"] ?? [], b = new Set(
3606
- f.flatMap(
3607
- (N) => N.tags.filter((k) => x.has(k))
3597
+ ), v = x.schema.extensions?.["x-tagGroups"] ?? [], u = new Set(
3598
+ v.flatMap(
3599
+ (N) => N.tags.filter((j) => h.has(j))
3608
3600
  )
3609
- ), y = [
3610
- ...f.flatMap(
3601
+ ), S = [
3602
+ ...v.flatMap(
3611
3603
  (N) => {
3612
- const k = N.tags.map((j) => x.get(j)).filter(Boolean);
3613
- return k.length === 0 ? [] : [
3604
+ const j = N.tags.map((O) => h.get(O)).filter(Boolean);
3605
+ return j.length === 0 ? [] : [
3614
3606
  {
3615
3607
  type: "category",
3616
3608
  label: N.name,
3617
- items: k,
3609
+ items: j,
3618
3610
  collapsible: !0,
3619
3611
  collapsed: !e.options?.expandAllTags
3620
3612
  }
3621
3613
  ];
3622
3614
  }
3623
3615
  ),
3624
- ...Array.from(x.entries()).filter(([N]) => !b.has(N)).map(([, N]) => N)
3625
- ], S = h.schema.tags.find(
3616
+ ...Array.from(h.entries()).filter(([N]) => !u.has(N)).map(([, N]) => N)
3617
+ ], R = x.schema.tags.find(
3626
3618
  (N) => !N.name
3627
3619
  )?.operations;
3628
- return S && S.length > 0 && y.push(
3629
- Lt({
3630
- label: y.length === 0 ? "Endpoints" : "Other endpoints",
3631
- path: V(n, i, ot),
3632
- operations: S,
3620
+ return R && R.length > 0 && S.push(
3621
+ Et({
3622
+ label: S.length === 0 ? "Endpoints" : "Other endpoints",
3623
+ path: V(n, i, lt),
3624
+ operations: R,
3633
3625
  collapsed: !e.options?.expandAllTags
3634
3626
  })
3635
- ), h.schema.components?.schemas?.length && y.push({
3627
+ ), x.schema.components?.schemas?.length && S.push({
3636
3628
  type: "link",
3637
3629
  label: "Schemas",
3638
3630
  to: V(n, i, "~schemas")
3639
- }), y;
3631
+ }), S;
3640
3632
  } catch {
3641
3633
  return [];
3642
3634
  }
3643
3635
  },
3644
- getRoutes: () => Na({ basePath: n, config: e, client: s })
3636
+ getRoutes: () => Ca({ basePath: n, config: e, client: s })
3645
3637
  };
3646
3638
  };
3647
3639
  export {
@@ -3651,34 +3643,34 @@ export {
3651
3643
  Ya as O,
3652
3644
  xa as P,
3653
3645
  Xs as Q,
3654
- rn as S,
3655
- v as T,
3656
- ot as U,
3646
+ on as S,
3647
+ b as T,
3648
+ lt as U,
3657
3649
  Sr as a,
3658
- de as b,
3650
+ ce as b,
3659
3651
  _ as c,
3660
- vn as d,
3652
+ Er as d,
3661
3653
  Vr as e,
3662
- hn as f,
3663
- Er as g,
3654
+ fn as f,
3655
+ vn as g,
3664
3656
  na as h,
3665
- Cr as i,
3666
- At as j,
3667
- Ka as k,
3668
- rr as l,
3669
- nt as m,
3670
- sn as n,
3671
- Hs as o,
3672
- jr as p,
3673
- qe as q,
3674
- Qs as r,
3657
+ Xa as i,
3658
+ qe as j,
3659
+ an as k,
3660
+ rt as l,
3661
+ Ys as m,
3662
+ tn as n,
3663
+ jr as o,
3664
+ nr as p,
3665
+ Hs as q,
3666
+ Cr as r,
3675
3667
  F as s,
3676
- Xa as t,
3668
+ Pt as t,
3677
3669
  va as u,
3678
- nr as v,
3679
- Ys as w,
3680
- Yt as x,
3670
+ Ka as v,
3671
+ rr as w,
3672
+ Qs as x,
3681
3673
  bn as y,
3682
3674
  eo as z
3683
3675
  };
3684
- //# sourceMappingURL=index-unv8c40u.js.map
3676
+ //# sourceMappingURL=index-0oT9beQN.js.map