zudoku 0.0.0-zacd7778d → 0.0.0-zc17c4c22

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 (180) hide show
  1. package/dist/config/loader.js +3 -1
  2. package/dist/config/loader.js.map +1 -1
  3. package/dist/config/validators/InputNavigationSchema.d.ts +119 -119
  4. package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
  5. package/dist/config/validators/validate.d.ts +28 -10
  6. package/dist/config/validators/validate.js +6 -3
  7. package/dist/config/validators/validate.js.map +1 -1
  8. package/dist/flat-config.d.ts +28 -27
  9. package/dist/lib/components/Heading.d.ts +1 -1
  10. package/dist/lib/components/index.d.ts +18 -74
  11. package/dist/lib/components/index.js +19 -36
  12. package/dist/lib/components/index.js.map +1 -1
  13. package/dist/lib/core/plugins.d.ts +11 -1
  14. package/dist/lib/core/plugins.js +1 -0
  15. package/dist/lib/core/plugins.js.map +1 -1
  16. package/dist/lib/core/transform-config.d.ts +2 -0
  17. package/dist/lib/core/transform-config.js +22 -0
  18. package/dist/lib/core/transform-config.js.map +1 -0
  19. package/dist/lib/hooks/index.d.ts +7 -30
  20. package/dist/lib/hooks/index.js +7 -15
  21. package/dist/lib/hooks/index.js.map +1 -1
  22. package/dist/lib/oas/graphql/circular.d.ts +1 -1
  23. package/dist/lib/oas/graphql/circular.js +18 -35
  24. package/dist/lib/oas/graphql/circular.js.map +1 -1
  25. package/dist/lib/oas/graphql/circular.test.js +33 -2
  26. package/dist/lib/oas/graphql/circular.test.js.map +1 -1
  27. package/dist/lib/oas/parser/index.js +14 -5
  28. package/dist/lib/oas/parser/index.js.map +1 -1
  29. package/dist/lib/plugins/openapi/OasProvider.js +6 -2
  30. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  31. package/dist/lib/plugins/openapi/OperationList.js +4 -8
  32. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  33. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -0
  34. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +3 -0
  35. package/dist/lib/plugins/openapi/util/getRoutes.js +2 -1
  36. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  37. package/dist/lib/ui/Command.d.ts +3 -3
  38. package/dist/lib/util/flattenAllOf.d.ts +0 -2
  39. package/dist/lib/util/flattenAllOf.js +0 -46
  40. package/dist/lib/util/flattenAllOf.js.map +1 -1
  41. package/dist/lib/util/flattenAllOf.test.js +2 -1
  42. package/dist/lib/util/flattenAllOf.test.js.map +1 -1
  43. package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
  44. package/dist/lib/util/flattenAllOfProcessor.js +48 -0
  45. package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
  46. package/dist/lib/util/readFrontmatter.js +2 -1
  47. package/dist/lib/util/readFrontmatter.js.map +1 -1
  48. package/dist/vite/api/SchemaManager.d.ts +11 -1
  49. package/dist/vite/api/SchemaManager.js +29 -18
  50. package/dist/vite/api/SchemaManager.js.map +1 -1
  51. package/dist/vite/api/SchemaManager.test.js +45 -1
  52. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  53. package/dist/vite/build.js +91 -73
  54. package/dist/vite/build.js.map +1 -1
  55. package/dist/vite/error-handler.js +1 -5
  56. package/dist/vite/error-handler.js.map +1 -1
  57. package/dist/vite/mdx/remark-inject-filepath.js +5 -1
  58. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
  59. package/dist/vite/mdx/remark-link-rewrite.js +3 -2
  60. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
  61. package/dist/vite/plugin-api.js +5 -3
  62. package/dist/vite/plugin-api.js.map +1 -1
  63. package/dist/vite/plugin-docs.js +9 -7
  64. package/dist/vite/plugin-docs.js.map +1 -1
  65. package/dist/vite/plugin-markdown-export.js +4 -2
  66. package/dist/vite/plugin-markdown-export.js.map +1 -1
  67. package/lib/{ClaudeLogo-DHxJUhN_.js → ClaudeLogo-C6q-Xn_l.js} +26 -22
  68. package/lib/{ClaudeLogo-DHxJUhN_.js.map → ClaudeLogo-C6q-Xn_l.js.map} +1 -1
  69. package/lib/{MdxPage-CD36PJ17.js → MdxPage-B1G4W1TK.js} +8 -8
  70. package/lib/{MdxPage-CD36PJ17.js.map → MdxPage-B1G4W1TK.js.map} +1 -1
  71. package/lib/{Mermaid-Koc3z8mU.js → Mermaid-B1xNo-pf.js} +3 -2
  72. package/lib/{Mermaid-Koc3z8mU.js.map → Mermaid-B1xNo-pf.js.map} +1 -1
  73. package/lib/{OAuthErrorPage-4mN5DA86.js → OAuthErrorPage-01Ke086W.js} +20 -18
  74. package/lib/{OAuthErrorPage-4mN5DA86.js.map → OAuthErrorPage-01Ke086W.js.map} +1 -1
  75. package/lib/OasProvider-oHPiMJZg.js +48 -0
  76. package/lib/OasProvider-oHPiMJZg.js.map +1 -0
  77. package/lib/{OperationList-CaknPbvq.js → OperationList-CZ4OK8Pm.js} +1284 -1284
  78. package/lib/OperationList-CZ4OK8Pm.js.map +1 -0
  79. package/lib/{RouteGuard--A04ESy8.js → RouteGuard-B1lCR0C_.js} +5 -5
  80. package/lib/{RouteGuard--A04ESy8.js.map → RouteGuard-B1lCR0C_.js.map} +1 -1
  81. package/lib/{SchemaList-Dw3-CJPb.js → SchemaList-DoQFkJgM.js} +7 -7
  82. package/lib/{SchemaList-Dw3-CJPb.js.map → SchemaList-DoQFkJgM.js.map} +1 -1
  83. package/lib/{SchemaView-DyJkiQkD.js → SchemaView-D2k6ZJck.js} +3 -3
  84. package/lib/{SchemaView-DyJkiQkD.js.map → SchemaView-D2k6ZJck.js.map} +1 -1
  85. package/lib/{SignUp-DRvN-8cq.js → SignUp-8kDBaLbO.js} +31 -26
  86. package/lib/{SignUp-DRvN-8cq.js.map → SignUp-8kDBaLbO.js.map} +1 -1
  87. package/lib/{SyntaxHighlight-klTH8c6-.js → SyntaxHighlight-hZOFnYl0.js} +6 -5
  88. package/lib/SyntaxHighlight-hZOFnYl0.js.map +1 -0
  89. package/lib/{Toc-PbuF-u9x.js → Toc-qEIii_-W.js} +2 -2
  90. package/lib/{Toc-PbuF-u9x.js.map → Toc-qEIii_-W.js.map} +1 -1
  91. package/lib/{index-BDsEwofZ.js → Zudoku-DUsdmPME.js} +2250 -2268
  92. package/lib/Zudoku-DUsdmPME.js.map +1 -0
  93. package/lib/{ZudokuContext-BZB1TWdT.js → ZudokuContext-BBI06sOx.js} +5 -5
  94. package/lib/{ZudokuContext-BZB1TWdT.js.map → ZudokuContext-BBI06sOx.js.map} +1 -1
  95. package/lib/{circular-DFquXeY2.js → circular-D9tSKG2c.js} +1327 -1346
  96. package/lib/{circular-DFquXeY2.js.map → circular-D9tSKG2c.js.map} +1 -1
  97. package/lib/createServer-BprC4n85.js +13036 -0
  98. package/lib/createServer-BprC4n85.js.map +1 -0
  99. package/lib/{errors-rWHkzVTd.js → errors-7hgPDs1h.js} +3 -3
  100. package/lib/{errors-rWHkzVTd.js.map → errors-7hgPDs1h.js.map} +1 -1
  101. package/lib/{firebase-BmGU1FuD.js → firebase-Dwn-2ju-.js} +13 -13
  102. package/lib/firebase-Dwn-2ju-.js.map +1 -0
  103. package/lib/{hook-BGlHBdET.js → hook-ZEd1Es7D.js} +2 -2
  104. package/lib/{hook-BGlHBdET.js.map → hook-ZEd1Es7D.js.map} +1 -1
  105. package/lib/{index-BQB9hb6n.js → index-CyIW9rHv.js} +485 -480
  106. package/lib/{index-BQB9hb6n.js.map → index-CyIW9rHv.js.map} +1 -1
  107. package/lib/index-DAWHN3cH.js +86 -0
  108. package/lib/index-DAWHN3cH.js.map +1 -0
  109. package/lib/{index-DRBOFufT.js → index-Dxdhrp-I.js} +2 -2
  110. package/lib/{index-DRBOFufT.js.map → index-Dxdhrp-I.js.map} +1 -1
  111. package/lib/{index.esm-B_0dvNjB.js → index.esm-Ca5zvoff.js} +20 -20
  112. package/lib/{index.esm-B_0dvNjB.js.map → index.esm-Ca5zvoff.js.map} +1 -1
  113. package/lib/{index.esm-Cx8B1YJQ.js → index.esm-DG4KaDKR.js} +2 -2
  114. package/lib/index.esm-DG4KaDKR.js.map +1 -0
  115. package/lib/{invariant-BJAl77rw.js → invariant-B_t_F2s_.js} +3 -3
  116. package/lib/{invariant-BJAl77rw.js.map → invariant-B_t_F2s_.js.map} +1 -1
  117. package/lib/ui/SyntaxHighlight.js +3 -3
  118. package/lib/useExposedProps-CzTDfXfq.js +30 -0
  119. package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
  120. package/lib/zudoku.__internal.js +1492 -1030
  121. package/lib/zudoku.__internal.js.map +1 -1
  122. package/lib/zudoku.auth-auth0.js +1 -1
  123. package/lib/zudoku.auth-azureb2c.js +4 -4
  124. package/lib/zudoku.auth-clerk.js +2 -2
  125. package/lib/zudoku.auth-firebase.js +5 -5
  126. package/lib/zudoku.auth-openid.js +5 -5
  127. package/lib/zudoku.auth-supabase.js +4 -4
  128. package/lib/zudoku.components.js +31 -29
  129. package/lib/zudoku.components.js.map +1 -1
  130. package/lib/zudoku.hooks.js +24 -11
  131. package/lib/zudoku.hooks.js.map +1 -1
  132. package/lib/zudoku.mermaid.js +4 -3
  133. package/lib/zudoku.mermaid.js.map +1 -1
  134. package/lib/zudoku.plugin-api-catalog.js +36 -32
  135. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  136. package/lib/zudoku.plugin-api-keys.js +131 -130
  137. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  138. package/lib/zudoku.plugin-custom-pages.js +1 -1
  139. package/lib/zudoku.plugin-markdown.js +1 -1
  140. package/lib/zudoku.plugin-openapi.js +2 -2
  141. package/lib/zudoku.plugin-search-pagefind.js +2 -2
  142. package/lib/zudoku.plugins.js +9 -8
  143. package/lib/zudoku.plugins.js.map +1 -1
  144. package/package.json +12 -10
  145. package/src/lib/components/index.ts +19 -39
  146. package/src/lib/core/plugins.ts +21 -1
  147. package/src/lib/core/transform-config.ts +29 -0
  148. package/src/lib/hooks/index.ts +7 -16
  149. package/src/lib/oas/graphql/circular.test.ts +37 -2
  150. package/src/lib/oas/graphql/circular.ts +25 -51
  151. package/src/lib/oas/parser/index.ts +17 -6
  152. package/src/lib/plugins/openapi/OasProvider.tsx +10 -2
  153. package/src/lib/plugins/openapi/OperationList.tsx +4 -9
  154. package/src/lib/plugins/openapi/interfaces.ts +6 -1
  155. package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -1
  156. package/src/lib/util/flattenAllOf.test.ts +2 -1
  157. package/src/lib/util/flattenAllOf.ts +0 -57
  158. package/src/lib/util/flattenAllOfProcessor.ts +58 -0
  159. package/src/lib/util/readFrontmatter.ts +2 -1
  160. package/src/shiki/langs/c3.js +1 -0
  161. package/src/shiki/langs/gn.js +1 -0
  162. package/src/shiki/langs/moonbit.js +1 -0
  163. package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
  164. package/src/zuplo/enrich-with-zuplo.ts +254 -0
  165. package/src/zuplo/policy-types.ts +46 -0
  166. package/src/zuplo/with-zuplo-processors.ts +35 -0
  167. package/src/zuplo/with-zuplo.ts +14 -0
  168. package/lib/OasProvider-DSe-hk5Y.js +0 -40
  169. package/lib/OasProvider-DSe-hk5Y.js.map +0 -1
  170. package/lib/OperationList-CaknPbvq.js.map +0 -1
  171. package/lib/SyntaxHighlight-klTH8c6-.js.map +0 -1
  172. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +0 -9
  173. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +0 -1
  174. package/lib/createServer-BXZ0CAUn.js +0 -16693
  175. package/lib/createServer-BXZ0CAUn.js.map +0 -1
  176. package/lib/firebase-BmGU1FuD.js.map +0 -1
  177. package/lib/index-BDsEwofZ.js.map +0 -1
  178. package/lib/index-DBjOT2H1.js +0 -133
  179. package/lib/index-DBjOT2H1.js.map +0 -1
  180. package/lib/index.esm-Cx8B1YJQ.js.map +0 -1
@@ -1,49 +1,51 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
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 Xn, ShapesIcon as Kn, PlayIcon as Zn, CirclePlayIcon as Yn } from "lucide-react";
3
- import { r as es, d as ts, a as ns, N as ss, aL as rs, m as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
4
- import { Button as Ft } from "./ui/Button.js";
5
- import { f as Ze, p as Ye, g as zt, s as as, h as os, j as V } from "./ZudokuContext-BZB1TWdT.js";
6
- import { Z as is } from "./invariant-BJAl77rw.js";
2
+ import { ChevronsDownUpIcon as On, ChevronsUpDownIcon as Ln, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as me, TrashIcon as En, FileInput as kn, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as Rn, TableOfContentsIcon as In, LockIcon as Dn, CircleAlertIcon as Fn, Circle as zn, Unlink2Icon as Vn, CornerDownRightIcon as Bn, MinusCircleIcon as bt, CornerDownLeftIcon as _n, SquareCodeIcon as qn, DownloadIcon as Mn, EyeOffIcon as Un, EyeIcon as Gn, UnplugIcon as Hn, SendIcon as Qn, CopyIcon as Jn, IdCardLanyardIcon as Wn, ShapesIcon as Xn, PlayIcon as Kn, CirclePlayIcon as Zn } from "lucide-react";
3
+ import { r as Yn, d as es, a as ts, N as ns, aL as ss, m as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
4
+ import { Button as K } from "./ui/Button.js";
5
+ import { f as Ze, p as Ye, g as Ft, s as rs, h as as, j as V } from "./ZudokuContext-BBI06sOx.js";
6
+ import { Z as os } from "./invariant-B_t_F2s_.js";
7
7
  import * as xe from "react";
8
- import { createContext as Vt, use as ls, useRef as k, useEffect as G, useMemo as Bt, useCallback as D, startTransition as cs, useState as E, Fragment as ie, useLayoutEffect as ds, useTransition as us, useContext as ms } from "react";
9
- import { VisuallyHidden as ps } from "@radix-ui/react-visually-hidden";
10
- import { z as hs, b as fs } from "./index-DBjOT2H1.js";
8
+ import { createContext as zt, use as is, useRef as E, useEffect as G, useMemo as Vt, useCallback as D, startTransition as ls, useState as k, Fragment as le, useLayoutEffect as cs, useTransition as ds, useContext as us } from "react";
9
+ import { VisuallyHidden as ms } from "@radix-ui/react-visually-hidden";
10
+ import { z as ps } from "./index-DAWHN3cH.js";
11
+ import { u as hs } from "./hook-ZEd1Es7D.js";
11
12
  import { B as q } from "./Button-GUVe7pmt.js";
12
- import { D as et, a as tt, c as nt, d as _t, e as qt, g as gs } from "./Dialog-hlvmmQ_c.js";
13
- import { B as pe, k as Ct, l as Nt, m as St, c as xs, S as ys, n as vs, h as bs } from "./index-BDsEwofZ.js";
14
- import { u as js } from "./useMutation-CFMGlAMW.js";
15
- import { u as ae, b as Mt, C as wt, a as Cs, F as Ns } from "./index.esm-BYObtETB.js";
13
+ import { D as et, a as tt, c as nt, d as Bt, e as _t, g as fs } from "./Dialog-hlvmmQ_c.js";
14
+ import { j as Ct, k as Nt, l as St, c as gs, m as xs, g as ys } from "./Zudoku-DUsdmPME.js";
15
+ import { u as vs } from "./useMutation-CFMGlAMW.js";
16
+ import { u as oe, b as qt, C as wt, a as bs, F as js } from "./index.esm-BYObtETB.js";
16
17
  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 "./Secret-BDBqq4p3.js";
18
+ import { S as Mt, a as Ut, b as Gt, c as Ht, e as Te, g as Cs } from "./Secret-BDBqq4p3.js";
18
19
  import { c as w } from "./cn-5-Gd1Dss.js";
19
- import { u as ws } from "./useCopyToClipboard-B_085nfO.js";
20
- import { u as Ts } from "./useLatest-hmRS46UF.js";
21
- import { D as Jt, a as Wt, b as Xt, d as As, e as $s, f as Ps, c as Ae } from "./DropdownMenu-DN0jNrjj.js";
22
- import { I as Os } from "./Input-Cx-GeKoF.js";
20
+ import { u as Ns } from "./useCopyToClipboard-B_085nfO.js";
21
+ import { u as Ss } from "./useLatest-hmRS46UF.js";
22
+ import { D as Qt, a as Jt, b as Wt, d as ws, e as Ts, f as As, c as Ae } from "./DropdownMenu-DN0jNrjj.js";
23
+ import { I as $s } from "./Input-Cx-GeKoF.js";
23
24
  import { c as ye } from "./createVariantComponent-Dc0vtOvr.js";
24
25
  import * as Tt from "@radix-ui/react-checkbox";
25
26
  import * as $e from "@radix-ui/react-popover";
26
- import { PopoverAnchor as Ls } from "@radix-ui/react-popover";
27
- import { P as ks } from "./index-CrcNWbel.js";
28
- import { f as Es, g as Rs, C as Is, b as Ds } from "./Command-N6VujV30.js";
29
- import { C as Fs } from "./Card-DCdq37aA.js";
30
- import * as Kt from "@radix-ui/react-label";
31
- import { c as zs } from "./index-DI5SPFK9.js";
27
+ import { PopoverAnchor as Ps } from "@radix-ui/react-popover";
28
+ import { P as Os } from "./index-CrcNWbel.js";
29
+ import { f as Ls, g as Es, C as ks, b as Rs } from "./Command-N6VujV30.js";
30
+ import { C as Is } from "./Card-DCdq37aA.js";
31
+ import * as Xt from "@radix-ui/react-label";
32
+ import { c as Ds } from "./index-DI5SPFK9.js";
32
33
  import * as he from "@radix-ui/react-radio-group";
33
- import { A as Vs, a as Bs, b as _s } from "./Mermaid-Koc3z8mU.js";
34
- import { e as qs, u as Ms } from "./useSuspenseQuery-CSB_rVek.js";
34
+ import { S as Fs } from "./Spinner-CI6bRyZw.js";
35
+ import { A as zs, a as Vs, b as Bs } from "./Mermaid-B1xNo-pf.js";
36
+ import { e as _s, u as qs } from "./useSuspenseQuery-CSB_rVek.js";
35
37
  let _e;
36
- const Us = (e) => {
38
+ const Ms = (e) => {
37
39
  if (e.errors?.[0])
38
- throw new is(e.errors[0].message, {
40
+ throw new os(e.errors[0].message, {
39
41
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
40
42
  });
41
43
  };
42
- class Gs {
44
+ class Us {
43
45
  constructor(n) {
44
46
  this.config = n;
45
47
  }
46
- #e = async () => (_e || (_e = import("./createServer-BXZ0CAUn.js").then(
48
+ #e = async () => (_e || (_e = import("./createServer-BprC4n85.js").then(
47
49
  (n) => n.createServer(this.config)
48
50
  )), _e);
49
51
  #t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
@@ -56,27 +58,27 @@ class Gs {
56
58
  if (!r.ok)
57
59
  throw new Error("Network response was not ok");
58
60
  const o = await r.json();
59
- return Us(o), o.data;
61
+ return Ms(o), o.data;
60
62
  };
61
63
  }
62
64
  function qe(e, n) {
63
65
  if (!!!e)
64
66
  throw new Error(n);
65
67
  }
66
- function Hs(e) {
68
+ function Gs(e) {
67
69
  return typeof e == "object" && e !== null;
68
70
  }
69
- function Qs(e, n) {
71
+ function Hs(e, n) {
70
72
  if (!!!e)
71
73
  throw new Error(
72
74
  n ?? "Unexpected invariant triggered."
73
75
  );
74
76
  }
75
- const Js = /\r\n|[\n\r]/g;
77
+ const Qs = /\r\n|[\n\r]/g;
76
78
  function We(e, n) {
77
79
  let s = 0, a = 1;
78
- for (const r of e.body.matchAll(Js)) {
79
- if (typeof r.index == "number" || Qs(!1), r.index >= n)
80
+ for (const r of e.body.matchAll(Qs)) {
81
+ if (typeof r.index == "number" || Hs(!1), r.index >= n)
80
82
  break;
81
83
  s = r.index + r[0].length, a += 1;
82
84
  }
@@ -85,13 +87,13 @@ function We(e, n) {
85
87
  column: n + 1 - s
86
88
  };
87
89
  }
88
- function Ws(e) {
89
- return Zt(
90
+ function Js(e) {
91
+ return Kt(
90
92
  e.source,
91
93
  We(e.source, e.start)
92
94
  );
93
95
  }
94
- function Zt(e, n) {
96
+ function Kt(e, n) {
95
97
  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}
96
98
  `, d = a.split(/\r\n|[\n\r]/g), f = d[r];
97
99
  if (f.length > 120) {
@@ -118,7 +120,7 @@ function At(e) {
118
120
  return n.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
119
121
  `);
120
122
  }
121
- function Xs(e) {
123
+ function Ws(e) {
122
124
  const n = e[0];
123
125
  return n == null || "kind" in n || "length" in n ? {
124
126
  nodes: n,
@@ -170,7 +172,7 @@ class rt extends Error {
170
172
  */
171
173
  constructor(n, ...s) {
172
174
  var a, r, o;
173
- const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Xs(s);
175
+ const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Ws(s);
174
176
  super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = $t(
175
177
  Array.isArray(i) ? i : i ? [i] : void 0
176
178
  );
@@ -178,7 +180,7 @@ class rt extends Error {
178
180
  (a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
179
181
  );
180
182
  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));
181
- const h = Hs(
183
+ const h = Gs(
182
184
  d?.extensions
183
185
  ) ? d?.extensions : void 0;
184
186
  this.extensions = (o = f ?? h) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
@@ -220,12 +222,12 @@ class rt extends Error {
220
222
  for (const s of this.nodes)
221
223
  s.loc && (n += `
222
224
 
223
- ` + Ws(s.loc));
225
+ ` + Js(s.loc));
224
226
  else if (this.source && this.locations)
225
227
  for (const s of this.locations)
226
228
  n += `
227
229
 
228
- ` + Zt(this.source, s);
230
+ ` + Kt(this.source, s);
229
231
  return n;
230
232
  }
231
233
  toJSON() {
@@ -244,7 +246,7 @@ function F(e, n, s) {
244
246
  positions: [n]
245
247
  });
246
248
  }
247
- class Ka {
249
+ class Za {
248
250
  /**
249
251
  * The character offset at which this Node begins.
250
252
  */
@@ -273,7 +275,7 @@ class Ka {
273
275
  };
274
276
  }
275
277
  }
276
- class Yt {
278
+ class Zt {
277
279
  /**
278
280
  * The kind of Token.
279
281
  */
@@ -315,7 +317,7 @@ class Yt {
315
317
  };
316
318
  }
317
319
  }
318
- const Ks = {
320
+ const Xs = {
319
321
  Name: [],
320
322
  Document: ["definitions"],
321
323
  OperationDefinition: [
@@ -402,10 +404,10 @@ const Ks = {
402
404
  ArgumentCoordinate: ["name", "fieldName", "argumentName"],
403
405
  DirectiveCoordinate: ["name"],
404
406
  DirectiveArgumentCoordinate: ["name", "argumentName"]
405
- }, Zs = new Set(Object.keys(Ks));
406
- function Za(e) {
407
+ }, Ks = new Set(Object.keys(Xs));
408
+ function Ya(e) {
407
409
  const n = e?.kind;
408
- return typeof n == "string" && Zs.has(n);
410
+ return typeof n == "string" && Ks.has(n);
409
411
  }
410
412
  var Pt;
411
413
  (function(e) {
@@ -417,22 +419,22 @@ function Xe(e) {
417
419
  function fe(e) {
418
420
  return e >= 48 && e <= 57;
419
421
  }
420
- function en(e) {
422
+ function Yt(e) {
421
423
  return e >= 97 && e <= 122 || // A-Z
422
424
  e >= 65 && e <= 90;
423
425
  }
424
- function tn(e) {
425
- return en(e) || e === 95;
426
+ function en(e) {
427
+ return Yt(e) || e === 95;
426
428
  }
427
- function Ys(e) {
428
- return en(e) || fe(e) || e === 95;
429
+ function Zs(e) {
430
+ return Yt(e) || fe(e) || e === 95;
429
431
  }
430
- function er(e) {
432
+ function Ys(e) {
431
433
  var n;
432
434
  let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
433
435
  for (let i = 0; i < e.length; ++i) {
434
436
  var o;
435
- const c = e[i], l = tr(c);
437
+ const c = e[i], l = er(c);
436
438
  l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
437
439
  }
438
440
  return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
@@ -440,13 +442,13 @@ function er(e) {
440
442
  r + 1
441
443
  );
442
444
  }
443
- function tr(e) {
445
+ function er(e) {
444
446
  let n = 0;
445
447
  for (; n < e.length && Xe(e.charCodeAt(n)); )
446
448
  ++n;
447
449
  return n;
448
450
  }
449
- function nr(e, n) {
451
+ function tr(e, n) {
450
452
  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 || Xe(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
451
453
  (!r || e.length > 70 || m || o || i);
452
454
  let f = "";
@@ -459,7 +461,7 @@ var b;
459
461
  (function(e) {
460
462
  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";
461
463
  })(b || (b = {}));
462
- class sr {
464
+ class nr {
463
465
  /**
464
466
  * The previously focused non-ignored token.
465
467
  */
@@ -473,7 +475,7 @@ class sr {
473
475
  * The character offset at which the current line begins.
474
476
  */
475
477
  constructor(n) {
476
- const s = new Yt(b.SOF, 0, 0, 0, 0);
478
+ const s = new Zt(b.SOF, 0, 0, 0, 0);
477
479
  this.source = n, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
478
480
  }
479
481
  get [Symbol.toStringTag]() {
@@ -496,29 +498,29 @@ class sr {
496
498
  if (n.next)
497
499
  n = n.next;
498
500
  else {
499
- const s = ar(this, n.end);
501
+ const s = rr(this, n.end);
500
502
  n.next = s, s.prev = n, n = s;
501
503
  }
502
504
  while (n.kind === b.COMMENT);
503
505
  return n;
504
506
  }
505
507
  }
506
- function rr(e) {
508
+ function sr(e) {
507
509
  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;
508
510
  }
509
- function oe(e) {
511
+ function ie(e) {
510
512
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
511
513
  }
512
514
  function Oe(e, n) {
513
- return nn(e.charCodeAt(n)) && sn(e.charCodeAt(n + 1));
515
+ return tn(e.charCodeAt(n)) && nn(e.charCodeAt(n + 1));
514
516
  }
515
- function nn(e) {
517
+ function tn(e) {
516
518
  return e >= 55296 && e <= 56319;
517
519
  }
518
- function sn(e) {
520
+ function nn(e) {
519
521
  return e >= 56320 && e <= 57343;
520
522
  }
521
- function K(e, n) {
523
+ function Z(e, n) {
522
524
  const s = e.source.body.codePointAt(n);
523
525
  if (s === void 0)
524
526
  return b.EOF;
@@ -530,9 +532,9 @@ function K(e, n) {
530
532
  }
531
533
  function P(e, n, s, a, r) {
532
534
  const o = e.line, i = 1 + s - e.lineStart;
533
- return new Yt(n, s, a, o, i, r);
535
+ return new Zt(n, s, a, o, i, r);
534
536
  }
535
- function ar(e, n) {
537
+ function rr(e, n) {
536
538
  const s = e.source.body, a = s.length;
537
539
  let r = n;
538
540
  for (; r < a; ) {
@@ -573,7 +575,7 @@ function ar(e, n) {
573
575
  continue;
574
576
  // Comment
575
577
  case 35:
576
- return or(e, r);
578
+ return ar(e, r);
577
579
  // Token ::
578
580
  // - Punctuator
579
581
  // - Name
@@ -614,28 +616,28 @@ function ar(e, n) {
614
616
  return P(e, b.BRACE_R, r, r + 1);
615
617
  // StringValue
616
618
  case 34:
617
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? mr(e, r) : lr(e, r);
619
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? ur(e, r) : ir(e, r);
618
620
  }
619
621
  if (fe(o) || o === 45)
620
- return ir(e, r, o);
621
- if (tn(o))
622
- return pr(e, r);
622
+ return or(e, r, o);
623
+ if (en(o))
624
+ return mr(e, r);
623
625
  throw F(
624
626
  e.source,
625
627
  r,
626
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : oe(o) || Oe(s, r) ? `Unexpected character: ${K(e, r)}.` : `Invalid character: ${K(e, r)}.`
628
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ie(o) || Oe(s, r) ? `Unexpected character: ${Z(e, r)}.` : `Invalid character: ${Z(e, r)}.`
627
629
  );
628
630
  }
629
631
  return P(e, b.EOF, a, a);
630
632
  }
631
- function or(e, n) {
633
+ function ar(e, n) {
632
634
  const s = e.source.body, a = s.length;
633
635
  let r = n + 1;
634
636
  for (; r < a; ) {
635
637
  const o = s.charCodeAt(r);
636
638
  if (o === 10 || o === 13)
637
639
  break;
638
- if (oe(o))
640
+ if (ie(o))
639
641
  ++r;
640
642
  else if (Oe(s, r))
641
643
  r += 2;
@@ -650,7 +652,7 @@ function or(e, n) {
650
652
  s.slice(n + 1, r)
651
653
  );
652
654
  }
653
- function ir(e, n, s) {
655
+ function or(e, n, s) {
654
656
  const a = e.source.body;
655
657
  let r = n, o = s, i = !1;
656
658
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
@@ -658,18 +660,18 @@ function ir(e, n, s) {
658
660
  throw F(
659
661
  e.source,
660
662
  r,
661
- `Invalid number, unexpected digit after 0: ${K(
663
+ `Invalid number, unexpected digit after 0: ${Z(
662
664
  e,
663
665
  r
664
666
  )}.`
665
667
  );
666
668
  } else
667
669
  r = Me(e, r, o), o = a.charCodeAt(r);
668
- 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))
670
+ 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 || en(o))
669
671
  throw F(
670
672
  e.source,
671
673
  r,
672
- `Invalid number, expected digit but got: ${K(
674
+ `Invalid number, expected digit but got: ${Z(
673
675
  e,
674
676
  r
675
677
  )}.`
@@ -687,7 +689,7 @@ function Me(e, n, s) {
687
689
  throw F(
688
690
  e.source,
689
691
  n,
690
- `Invalid number, expected digit but got: ${K(
692
+ `Invalid number, expected digit but got: ${Z(
691
693
  e,
692
694
  n
693
695
  )}.`
@@ -698,7 +700,7 @@ function Me(e, n, s) {
698
700
  ++r;
699
701
  return r;
700
702
  }
701
- function lr(e, n) {
703
+ function ir(e, n) {
702
704
  const s = e.source.body, a = s.length;
703
705
  let r = n + 1, o = r, i = "";
704
706
  for (; r < a; ) {
@@ -707,13 +709,13 @@ function lr(e, n) {
707
709
  return i += s.slice(o, r), P(e, b.STRING, n, r + 1, i);
708
710
  if (c === 92) {
709
711
  i += s.slice(o, r);
710
- const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? cr(e, r) : dr(e, r) : ur(e, r);
712
+ const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? lr(e, r) : cr(e, r) : dr(e, r);
711
713
  i += l.value, r += l.size, o = r;
712
714
  continue;
713
715
  }
714
716
  if (c === 10 || c === 13)
715
717
  break;
716
- if (oe(c))
718
+ if (ie(c))
717
719
  ++r;
718
720
  else if (Oe(s, r))
719
721
  r += 2;
@@ -721,7 +723,7 @@ function lr(e, n) {
721
723
  throw F(
722
724
  e.source,
723
725
  r,
724
- `Invalid character within String: ${K(
726
+ `Invalid character within String: ${Z(
725
727
  e,
726
728
  r
727
729
  )}.`
@@ -729,20 +731,20 @@ function lr(e, n) {
729
731
  }
730
732
  throw F(e.source, r, "Unterminated string.");
731
733
  }
732
- function cr(e, n) {
734
+ function lr(e, n) {
733
735
  const s = e.source.body;
734
736
  let a = 0, r = 3;
735
737
  for (; r < 12; ) {
736
738
  const o = s.charCodeAt(n + r++);
737
739
  if (o === 125) {
738
- if (r < 5 || !oe(a))
740
+ if (r < 5 || !ie(a))
739
741
  break;
740
742
  return {
741
743
  value: String.fromCodePoint(a),
742
744
  size: r
743
745
  };
744
746
  }
745
- if (a = a << 4 | le(o), a < 0)
747
+ if (a = a << 4 | ce(o), a < 0)
746
748
  break;
747
749
  }
748
750
  throw F(
@@ -754,16 +756,16 @@ function cr(e, n) {
754
756
  )}".`
755
757
  );
756
758
  }
757
- function dr(e, n) {
759
+ function cr(e, n) {
758
760
  const s = e.source.body, a = Ot(s, n + 2);
759
- if (oe(a))
761
+ if (ie(a))
760
762
  return {
761
763
  value: String.fromCodePoint(a),
762
764
  size: 6
763
765
  };
764
- if (nn(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
766
+ if (tn(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
765
767
  const r = Ot(s, n + 8);
766
- if (sn(r))
768
+ if (nn(r))
767
769
  return {
768
770
  value: String.fromCodePoint(a, r),
769
771
  size: 12
@@ -776,12 +778,12 @@ function dr(e, n) {
776
778
  );
777
779
  }
778
780
  function Ot(e, n) {
779
- return le(e.charCodeAt(n)) << 12 | le(e.charCodeAt(n + 1)) << 8 | le(e.charCodeAt(n + 2)) << 4 | le(e.charCodeAt(n + 3));
781
+ return ce(e.charCodeAt(n)) << 12 | ce(e.charCodeAt(n + 1)) << 8 | ce(e.charCodeAt(n + 2)) << 4 | ce(e.charCodeAt(n + 3));
780
782
  }
781
- function le(e) {
783
+ function ce(e) {
782
784
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
783
785
  }
784
- function ur(e, n) {
786
+ function dr(e, n) {
785
787
  const s = e.source.body;
786
788
  switch (s.charCodeAt(n + 1)) {
787
789
  case 34:
@@ -835,7 +837,7 @@ function ur(e, n) {
835
837
  )}".`
836
838
  );
837
839
  }
838
- function mr(e, n) {
840
+ function ur(e, n) {
839
841
  const s = e.source.body, a = s.length;
840
842
  let r = e.lineStart, o = n + 3, i = o, c = "";
841
843
  const l = [];
@@ -849,7 +851,7 @@ function mr(e, n) {
849
851
  n,
850
852
  o + 3,
851
853
  // Return a string of the lines joined with U+000A.
852
- er(l).join(`
854
+ Ys(l).join(`
853
855
  `)
854
856
  );
855
857
  return e.line += l.length - 1, e.lineStart = r, d;
@@ -862,7 +864,7 @@ function mr(e, n) {
862
864
  c += s.slice(i, o), l.push(c), m === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
863
865
  continue;
864
866
  }
865
- if (oe(m))
867
+ if (ie(m))
866
868
  ++o;
867
869
  else if (Oe(s, o))
868
870
  o += 2;
@@ -870,7 +872,7 @@ function mr(e, n) {
870
872
  throw F(
871
873
  e.source,
872
874
  o,
873
- `Invalid character within String: ${K(
875
+ `Invalid character within String: ${Z(
874
876
  e,
875
877
  o
876
878
  )}.`
@@ -878,12 +880,12 @@ function mr(e, n) {
878
880
  }
879
881
  throw F(e.source, o, "Unterminated string.");
880
882
  }
881
- function pr(e, n) {
883
+ function mr(e, n) {
882
884
  const s = e.source.body, a = s.length;
883
885
  let r = n + 1;
884
886
  for (; r < a; ) {
885
887
  const o = s.charCodeAt(r);
886
- if (Ys(o))
888
+ if (Zs(o))
887
889
  ++r;
888
890
  else
889
891
  break;
@@ -896,8 +898,8 @@ function pr(e, n) {
896
898
  s.slice(n, r)
897
899
  );
898
900
  }
899
- const hr = 10, rn = 2;
900
- function an(e) {
901
+ const pr = 10, sn = 2;
902
+ function rn(e) {
901
903
  return Le(e, []);
902
904
  }
903
905
  function Le(e, n) {
@@ -907,45 +909,45 @@ function Le(e, n) {
907
909
  case "function":
908
910
  return e.name ? `[function ${e.name}]` : "[function]";
909
911
  case "object":
910
- return fr(e, n);
912
+ return hr(e, n);
911
913
  default:
912
914
  return String(e);
913
915
  }
914
916
  }
915
- function fr(e, n) {
917
+ function hr(e, n) {
916
918
  if (e === null)
917
919
  return "null";
918
920
  if (n.includes(e))
919
921
  return "[Circular]";
920
922
  const s = [...n, e];
921
- if (gr(e)) {
923
+ if (fr(e)) {
922
924
  const a = e.toJSON();
923
925
  if (a !== e)
924
926
  return typeof a == "string" ? a : Le(a, s);
925
927
  } else if (Array.isArray(e))
926
- return yr(e, s);
927
- return xr(e, s);
928
+ return xr(e, s);
929
+ return gr(e, s);
928
930
  }
929
- function gr(e) {
931
+ function fr(e) {
930
932
  return typeof e.toJSON == "function";
931
933
  }
932
- function xr(e, n) {
934
+ function gr(e, n) {
933
935
  const s = Object.entries(e);
934
- return s.length === 0 ? "{}" : n.length > rn ? "[" + vr(e) + "]" : "{ " + s.map(
936
+ return s.length === 0 ? "{}" : n.length > sn ? "[" + yr(e) + "]" : "{ " + s.map(
935
937
  ([r, o]) => r + ": " + Le(o, n)
936
938
  ).join(", ") + " }";
937
939
  }
938
- function yr(e, n) {
940
+ function xr(e, n) {
939
941
  if (e.length === 0)
940
942
  return "[]";
941
- if (n.length > rn)
943
+ if (n.length > sn)
942
944
  return "[Array]";
943
- const s = Math.min(hr, e.length), a = e.length - s, r = [];
945
+ const s = Math.min(pr, e.length), a = e.length - s, r = [];
944
946
  for (let o = 0; o < s; ++o)
945
947
  r.push(Le(e[o], n));
946
948
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
947
949
  }
948
- function vr(e) {
950
+ function yr(e) {
949
951
  const n = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
950
952
  if (n === "Object" && typeof e.constructor == "function") {
951
953
  const s = e.constructor.name;
@@ -954,11 +956,11 @@ function vr(e) {
954
956
  }
955
957
  return n;
956
958
  }
957
- const br = globalThis.process && // eslint-disable-next-line no-undef
958
- process.env.NODE_ENV === "production", jr = (
959
+ const vr = globalThis.process && // eslint-disable-next-line no-undef
960
+ process.env.NODE_ENV === "production", br = (
959
961
  /* c8 ignore next 6 */
960
962
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
961
- br ? function(n, s) {
963
+ vr ? function(n, s) {
962
964
  return n instanceof s;
963
965
  } : function(n, s) {
964
966
  if (n instanceof s)
@@ -970,7 +972,7 @@ process.env.NODE_ENV === "production", jr = (
970
972
  Symbol.toStringTag in n ? n[Symbol.toStringTag] : (a = n.constructor) === null || a === void 0 ? void 0 : a.name
971
973
  );
972
974
  if (r === o) {
973
- const i = an(n);
975
+ const i = rn(n);
974
976
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
975
977
 
976
978
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -988,12 +990,12 @@ spurious results.`);
988
990
  return !1;
989
991
  }
990
992
  );
991
- class on {
993
+ class an {
992
994
  constructor(n, s = "GraphQL request", a = {
993
995
  line: 1,
994
996
  column: 1
995
997
  }) {
996
- 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(
998
+ typeof n == "string" || qe(!1, `Body must be a string. Received: ${rn(n)}.`), this.body = n, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || qe(
997
999
  !1,
998
1000
  "line in locationOffset is 1-indexed and must be positive."
999
1001
  ), this.locationOffset.column > 0 || qe(
@@ -1005,37 +1007,37 @@ class on {
1005
1007
  return "Source";
1006
1008
  }
1007
1009
  }
1008
- function Cr(e) {
1009
- return jr(e, on);
1010
+ function jr(e) {
1011
+ return br(e, an);
1010
1012
  }
1011
- function Nr(e) {
1012
- const n = Cr(e) ? e : new on(e), s = n.body, a = new sr(n);
1013
+ function Cr(e) {
1014
+ const n = jr(e) ? e : new an(e), s = n.body, a = new nr(n);
1013
1015
  let r = "", o = !1;
1014
1016
  for (; a.advance().kind !== b.EOF; ) {
1015
- const i = a.token, c = i.kind, l = !rr(i.kind);
1017
+ const i = a.token, c = i.kind, l = !sr(i.kind);
1016
1018
  o && (l || i.kind === b.SPREAD) && (r += " ");
1017
1019
  const m = s.slice(i.start, i.end);
1018
- c === b.BLOCK_STRING ? r += nr(i.value, {
1020
+ c === b.BLOCK_STRING ? r += tr(i.value, {
1019
1021
  minimize: !0
1020
1022
  }) : r += m, o = l;
1021
1023
  }
1022
1024
  return r;
1023
1025
  }
1024
- const ln = Vt(
1026
+ const on = zt(
1025
1027
  void 0
1026
- ), Ya = ({
1028
+ ), eo = ({
1027
1029
  children: e,
1028
1030
  client: n
1029
- }) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
1031
+ }) => /* @__PURE__ */ t.jsx(on.Provider, { value: n, children: e }), ln = (e, n, ...[s]) => ({
1030
1032
  queryFn: () => e.fetch(n, s),
1031
- queryKey: [Nr(n.toString()), s]
1032
- }), Sr = (e, ...[n]) => {
1033
- const s = ls(ln);
1033
+ queryKey: [Cr(n.toString()), s]
1034
+ }), Nr = (e, ...[n]) => {
1035
+ const s = is(on);
1034
1036
  if (s === void 0)
1035
1037
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1036
- return cn(s, e, ...n === void 0 ? [] : [n]);
1038
+ return ln(s, e, ...n === void 0 ? [] : [n]);
1037
1039
  };
1038
- class Y extends String {
1040
+ class ee extends String {
1039
1041
  __apiType;
1040
1042
  value;
1041
1043
  __meta__;
@@ -1046,7 +1048,7 @@ class Y extends String {
1046
1048
  return this.value;
1047
1049
  }
1048
1050
  }
1049
- const wr = new Y(
1051
+ const Sr = new ee(
1050
1052
  `
1051
1053
  fragment OperationsFragment on OperationItem {
1052
1054
  slug
@@ -1118,7 +1120,7 @@ const wr = new Y(
1118
1120
  }
1119
1121
  `,
1120
1122
  { fragmentName: "OperationsFragment" }
1121
- ), Tr = new Y(`
1123
+ ), wr = new ee(`
1122
1124
  query ServersQuery($input: JSON!, $type: SchemaType!) {
1123
1125
  schema(input: $input, type: $type) {
1124
1126
  url
@@ -1127,13 +1129,13 @@ const wr = new Y(
1127
1129
  }
1128
1130
  }
1129
1131
  }
1130
- `), Ar = new Y(`
1132
+ `), Tr = new ee(`
1131
1133
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1132
1134
  schema(input: $input, type: $type) {
1133
1135
  openapi
1134
1136
  }
1135
1137
  }
1136
- `), $r = new Y(`
1138
+ `), Ar = new ee(`
1137
1139
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1138
1140
  schema(input: $input, type: $type) {
1139
1141
  servers {
@@ -1232,7 +1234,7 @@ const wr = new Y(
1232
1234
  schema
1233
1235
  }
1234
1236
  }
1235
- }`), Pr = new Y(`
1237
+ }`), $r = new ee(`
1236
1238
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1237
1239
  schema(input: $input, type: $type) {
1238
1240
  title
@@ -1247,7 +1249,7 @@ const wr = new Y(
1247
1249
  }
1248
1250
  }
1249
1251
  }
1250
- `), Or = new Y(`
1252
+ `), Pr = new ee(`
1251
1253
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1252
1254
  schema(input: $input, type: $type) {
1253
1255
  url
@@ -1256,7 +1258,7 @@ const wr = new Y(
1256
1258
  }
1257
1259
  }
1258
1260
  }
1259
- `), Lr = new Y(`
1261
+ `), Or = new ee(`
1260
1262
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1261
1263
  schema(input: $input, type: $type) {
1262
1264
  extensions
@@ -1279,24 +1281,24 @@ const wr = new Y(
1279
1281
  }
1280
1282
  }
1281
1283
  }
1282
- `), kr = {
1283
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Tr,
1284
- "\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,
1285
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Ar,
1286
- "\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,
1287
- "\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,
1288
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Or,
1289
- "\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
1284
+ `), Lr = {
1285
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": wr,
1286
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": Sr,
1287
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Tr,
1288
+ "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": Ar,
1289
+ "\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": $r,
1290
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Pr,
1291
+ "\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": Or
1290
1292
  };
1291
1293
  function Er(e) {
1292
- return kr[e] ?? {};
1294
+ return Lr[e] ?? {};
1293
1295
  }
1294
1296
  function B({
1295
1297
  ...e
1296
1298
  }) {
1297
1299
  return /* @__PURE__ */ t.jsx(st.Root, { "data-slot": "collapsible", ...e });
1298
1300
  }
1299
- function ce({
1301
+ function de({
1300
1302
  ...e
1301
1303
  }) {
1302
1304
  return /* @__PURE__ */ t.jsx(
@@ -1318,7 +1320,7 @@ function _({
1318
1320
  }
1319
1321
  );
1320
1322
  }
1321
- function Rr() {
1323
+ function kr() {
1322
1324
  const n = navigator.userAgent.toLowerCase();
1323
1325
  if (n.indexOf("win") !== -1)
1324
1326
  return "windows";
@@ -1329,10 +1331,10 @@ function Rr() {
1329
1331
  if (n.indexOf("x11") !== -1)
1330
1332
  return "unix";
1331
1333
  }
1332
- function Ir() {
1333
- return Rr() === "apple";
1334
+ function Rr() {
1335
+ return kr() === "apple";
1334
1336
  }
1335
- const Dr = {
1337
+ const Ir = {
1336
1338
  other: {
1337
1339
  alt: "Alt",
1338
1340
  meta: "Ctrl",
@@ -1347,8 +1349,8 @@ const Dr = {
1347
1349
  shift: "⇧",
1348
1350
  option: "⌥"
1349
1351
  }
1350
- }, Fr = (e, n) => {
1351
- 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);
1352
+ }, Dr = (e, n) => {
1353
+ 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);
1352
1354
  return G(() => {
1353
1355
  l.current = n;
1354
1356
  }, [n]), G(() => {
@@ -1361,10 +1363,10 @@ const Dr = {
1361
1363
  }, [c, a, r, o, i]), {
1362
1364
  trigger: () => l.current(),
1363
1365
  label: s.map(
1364
- (m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Dr[Ir() ? "apple" : "other"][m] : m
1366
+ (m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Ir[Rr() ? "apple" : "other"][m] : m
1365
1367
  )
1366
1368
  };
1367
- }, zr = Ze()(
1369
+ }, Fr = Ze()(
1368
1370
  Ye(
1369
1371
  (e) => ({
1370
1372
  selectedServer: void 0,
@@ -1372,13 +1374,13 @@ const Dr = {
1372
1374
  }),
1373
1375
  { name: "zudoku-selected-server" }
1374
1376
  )
1375
- ), Vr = (e) => {
1376
- const { selectedServer: n, setSelectedServer: s } = zr();
1377
- return { selectedServer: Bt(
1377
+ ), zr = (e) => {
1378
+ const { selectedServer: n, setSelectedServer: s } = Fr();
1379
+ return { selectedServer: Vt(
1378
1380
  () => n && e.some((r) => r.url === n) ? n : e.at(0)?.url ?? "",
1379
1381
  [n, e]
1380
1382
  ), setSelectedServer: s };
1381
- }, dn = xe.forwardRef(
1383
+ }, cn = xe.forwardRef(
1382
1384
  ({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
1383
1385
  "textarea",
1384
1386
  {
@@ -1391,13 +1393,13 @@ const Dr = {
1391
1393
  }
1392
1394
  )
1393
1395
  );
1394
- dn.displayName = "Textarea";
1395
- const ke = (e = 0) => {
1396
+ cn.displayName = "Textarea";
1397
+ const Ee = (e = 0) => {
1396
1398
  if (e === 0)
1397
1399
  return "0 B";
1398
1400
  const n = Math.floor(Math.log(e) / Math.log(1e3));
1399
1401
  return `${(e / 1e3 ** n).toFixed(n ? 2 : 0)} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
1400
- }, Z = ({
1402
+ }, Y = ({
1401
1403
  children: e,
1402
1404
  className: n
1403
1405
  }) => /* @__PURE__ */ t.jsxs(
@@ -1410,7 +1412,7 @@ const ke = (e = 0) => {
1410
1412
  children: [
1411
1413
  e,
1412
1414
  /* @__PURE__ */ t.jsxs(
1413
- ce,
1415
+ de,
1414
1416
  {
1415
1417
  className: w(
1416
1418
  "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 opacity-75 rounded-md",
@@ -1418,14 +1420,14 @@ const ke = (e = 0) => {
1418
1420
  ),
1419
1421
  children: [
1420
1422
  /* @__PURE__ */ t.jsx(
1421
- Ln,
1423
+ On,
1422
1424
  {
1423
1425
  className: "group-data-[state=closed]:hidden shrink-0",
1424
1426
  size: 14
1425
1427
  }
1426
1428
  ),
1427
1429
  /* @__PURE__ */ t.jsx(
1428
- kn,
1430
+ Ln,
1429
1431
  {
1430
1432
  className: "group-data-[state=open]:hidden shrink-0",
1431
1433
  size: 14
@@ -1439,11 +1441,11 @@ const ke = (e = 0) => {
1439
1441
  ), H = ({
1440
1442
  children: e,
1441
1443
  className: n
1442
- }) => /* @__PURE__ */ t.jsx("span", { className: w("font-semibold w-full text-start", n), children: e }), Br = ({
1444
+ }) => /* @__PURE__ */ t.jsx("span", { className: w("font-semibold w-full text-start", n), children: e }), Vr = ({
1443
1445
  examples: e,
1444
1446
  onSelect: n
1445
- }) => /* @__PURE__ */ t.jsxs(Jt, { children: [
1446
- /* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1447
+ }) => /* @__PURE__ */ t.jsxs(Qt, { children: [
1448
+ /* @__PURE__ */ t.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1447
1449
  q,
1448
1450
  {
1449
1451
  variant: "ghost",
@@ -1455,10 +1457,10 @@ const ke = (e = 0) => {
1455
1457
  ]
1456
1458
  }
1457
1459
  ) }),
1458
- /* @__PURE__ */ t.jsx(Xt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
1459
- /* @__PURE__ */ t.jsx(As, { children: s.mediaType }),
1460
- /* @__PURE__ */ t.jsx($s, {}),
1461
- /* @__PURE__ */ t.jsx(Ps, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
1460
+ /* @__PURE__ */ t.jsx(Wt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
1461
+ /* @__PURE__ */ t.jsx(ws, { children: s.mediaType }),
1462
+ /* @__PURE__ */ t.jsx(Ts, {}),
1463
+ /* @__PURE__ */ t.jsx(As, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
1462
1464
  Ae,
1463
1465
  {
1464
1466
  onSelect: () => n(a, s.mediaType),
@@ -1474,20 +1476,20 @@ const ke = (e = 0) => {
1474
1476
  a.name
1475
1477
  )) })
1476
1478
  ] }, s.mediaType)) })
1477
- ] }), Ee = ye(
1479
+ ] }), ke = ye(
1478
1480
  "div",
1479
1481
  "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
1480
1482
  ), ge = ye(
1481
1483
  "div",
1482
1484
  "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1483
1485
  ), I = ye(
1484
- Os,
1486
+ $s,
1485
1487
  "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
1486
1488
  ), at = ({
1487
1489
  onClick: e,
1488
1490
  className: n
1489
1491
  }) => /* @__PURE__ */ t.jsx(
1490
- pe,
1492
+ K,
1491
1493
  {
1492
1494
  size: "icon-xs",
1493
1495
  variant: "ghost",
@@ -1525,8 +1527,8 @@ function ve({
1525
1527
  }
1526
1528
  );
1527
1529
  }
1528
- const _r = ({ index: e, manager: n }) => {
1529
- const s = k(null), a = n.getValue(e, "value");
1530
+ const Br = ({ index: e, manager: n }) => {
1531
+ const s = E(null), a = n.getValue(e, "value");
1530
1532
  return /* @__PURE__ */ t.jsxs(ge, { children: [
1531
1533
  /* @__PURE__ */ t.jsx(
1532
1534
  ve,
@@ -1545,18 +1547,18 @@ const _r = ({ index: e, manager: n }) => {
1545
1547
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 flex-1", children: [
1546
1548
  a instanceof File ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 flex-1 min-w-0", children: [
1547
1549
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 border-b cursor-default", children: [
1548
- /* @__PURE__ */ t.jsx(ue, { size: 12, className: "text-muted-foreground" }),
1550
+ /* @__PURE__ */ t.jsx(me, { size: 12, className: "text-muted-foreground" }),
1549
1551
  /* @__PURE__ */ t.jsx(
1550
1552
  "span",
1551
1553
  {
1552
1554
  className: "text-xs truncate",
1553
- title: `${a.name} (${ke(a.size)})`,
1555
+ title: `${a.name} (${Ee(a.size)})`,
1554
1556
  children: a.name
1555
1557
  }
1556
1558
  )
1557
1559
  ] }),
1558
1560
  /* @__PURE__ */ t.jsx(
1559
- pe,
1561
+ K,
1560
1562
  {
1561
1563
  type: "button",
1562
1564
  variant: "ghost",
@@ -1587,7 +1589,7 @@ const _r = ({ index: e, manager: n }) => {
1587
1589
  }
1588
1590
  ),
1589
1591
  /* @__PURE__ */ t.jsx(
1590
- pe,
1592
+ K,
1591
1593
  {
1592
1594
  type: "button",
1593
1595
  variant: "ghost",
@@ -1595,7 +1597,7 @@ const _r = ({ index: e, manager: n }) => {
1595
1597
  onClick: () => s.current?.click(),
1596
1598
  title: "Attach file",
1597
1599
  className: "opacity-0 focus-visible:opacity-100 group-hover:opacity-100 group-hover:brightness-95 transition-opacity",
1598
- children: /* @__PURE__ */ t.jsx(ue, { size: 14 })
1600
+ children: /* @__PURE__ */ t.jsx(me, { size: 14 })
1599
1601
  }
1600
1602
  )
1601
1603
  ] }),
@@ -1614,7 +1616,7 @@ const _r = ({ index: e, manager: n }) => {
1614
1616
  watch: c,
1615
1617
  setFocus: l,
1616
1618
  register: m
1617
- } = ae(), { fields: d, append: f, remove: x } = Mt({ control: n, name: s }), h = c(s), v = k(-1), u = k(-1), y = D(
1619
+ } = oe(), { fields: d, append: f, remove: x } = qt({ control: n, name: s }), h = c(s), v = E(-1), u = E(-1), y = D(
1618
1620
  (g, C, T, A) => {
1619
1621
  (C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
1620
1622
  C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
@@ -1686,7 +1688,7 @@ const _r = ({ index: e, manager: n }) => {
1686
1688
  const A = R(T);
1687
1689
  T.active !== A && g.push(() => y(C, "active", A));
1688
1690
  }
1689
- g.length !== 0 && cs(() => g.forEach((C) => C()));
1691
+ g.length !== 0 && ls(() => g.forEach((C) => C()));
1690
1692
  }, [h, R, y]);
1691
1693
  const N = D(
1692
1694
  (g) => {
@@ -1699,8 +1701,8 @@ const _r = ({ index: e, manager: n }) => {
1699
1701
  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;
1700
1702
  return (L) => {
1701
1703
  if (!(L.target instanceof HTMLInputElement)) return;
1702
- const De = L.target.selectionStart === 0, te = L.target.selectionStart === L.target.value.length, je = !L.target.value;
1703
- L.key === "Enter" ? l(T) : L.key === "Backspace" && je && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" && te && (L.preventDefault(), l(T));
1704
+ const De = L.target.selectionStart === 0, ne = L.target.selectionStart === L.target.value.length, je = !L.target.value;
1705
+ L.key === "Enter" ? l(T) : L.key === "Backspace" && je && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" && ne && (L.preventDefault(), l(T));
1704
1706
  };
1705
1707
  },
1706
1708
  [s, l]
@@ -1731,7 +1733,7 @@ const _r = ({ index: e, manager: n }) => {
1731
1733
  ), Ie = D(
1732
1734
  (g, C) => h?.[g]?.[C],
1733
1735
  [h]
1734
- ), ee = D(
1736
+ ), te = D(
1735
1737
  (g) => ({
1736
1738
  onClick: () => x(g),
1737
1739
  disabled: g === d.length - 1
@@ -1743,18 +1745,18 @@ const _r = ({ index: e, manager: n }) => {
1743
1745
  getNameInputProps: O,
1744
1746
  getValueInputProps: Q,
1745
1747
  getCheckboxProps: be,
1746
- getRemoveButtonProps: ee,
1748
+ getRemoveButtonProps: te,
1747
1749
  setValue: y,
1748
1750
  getValue: Ie
1749
1751
  };
1750
- }, qr = ({ content: e }) => {
1751
- const { register: n, setValue: s, watch: a, control: r } = ae(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
1752
+ }, _r = ({ content: e }) => {
1753
+ const { register: n, setValue: s, watch: a, control: r } = oe(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
1752
1754
  "headers",
1753
1755
  "file",
1754
1756
  "bodyMode",
1755
1757
  "body",
1756
1758
  "multipartFormFields"
1757
- ]), f = k(null), [x, h] = E(!1), v = (j) => {
1759
+ ]), f = E(null), [x, h] = k(!1), v = (j) => {
1758
1760
  s("file", j), j && s(
1759
1761
  "headers",
1760
1762
  i.filter(
@@ -1779,14 +1781,14 @@ const _r = ({ index: e, manager: n }) => {
1779
1781
  isEmpty: (j) => j.value instanceof File ? !1 : !j.name && !j.value
1780
1782
  });
1781
1783
  return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
1782
- /* @__PURE__ */ t.jsxs(Z, { className: "items-center", children: [
1783
- /* @__PURE__ */ t.jsx(Rn, { size: 16 }),
1784
+ /* @__PURE__ */ t.jsxs(Y, { className: "items-center", children: [
1785
+ /* @__PURE__ */ t.jsx(kn, { size: 16 }),
1784
1786
  /* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
1785
1787
  "Body",
1786
1788
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
1787
- /* @__PURE__ */ t.jsxs(Jt, { children: [
1788
- /* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1789
- pe,
1789
+ /* @__PURE__ */ t.jsxs(Qt, { children: [
1790
+ /* @__PURE__ */ t.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1791
+ K,
1790
1792
  {
1791
1793
  variant: "ghost",
1792
1794
  size: "sm",
@@ -1796,17 +1798,17 @@ const _r = ({ index: e, manager: n }) => {
1796
1798
  /* @__PURE__ */ t.jsx(yt, { size: 14 }),
1797
1799
  "Text"
1798
1800
  ] }) : l === "file" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1799
- /* @__PURE__ */ t.jsx(ue, { size: 14 }),
1801
+ /* @__PURE__ */ t.jsx(me, { size: 14 }),
1800
1802
  "File"
1801
1803
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1802
1804
  /* @__PURE__ */ t.jsx(vt, { size: 14 }),
1803
1805
  "Multipart"
1804
1806
  ] }),
1805
- /* @__PURE__ */ t.jsx(In, { size: 14 })
1807
+ /* @__PURE__ */ t.jsx(Rn, { size: 14 })
1806
1808
  ]
1807
1809
  }
1808
1810
  ) }),
1809
- /* @__PURE__ */ t.jsxs(Xt, { className: "min-w-40", children: [
1811
+ /* @__PURE__ */ t.jsxs(Wt, { className: "min-w-40", children: [
1810
1812
  /* @__PURE__ */ t.jsxs(
1811
1813
  Ae,
1812
1814
  {
@@ -1825,7 +1827,7 @@ const _r = ({ index: e, manager: n }) => {
1825
1827
  onSelect: () => s("bodyMode", "file"),
1826
1828
  className: "gap-2",
1827
1829
  children: [
1828
- /* @__PURE__ */ t.jsx(ue, { size: 14 }),
1830
+ /* @__PURE__ */ t.jsx(me, { size: 14 }),
1829
1831
  /* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "File" }),
1830
1832
  /* @__PURE__ */ t.jsx("span", { children: c && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
1831
1833
  ]
@@ -1856,7 +1858,7 @@ const _r = ({ index: e, manager: n }) => {
1856
1858
  ),
1857
1859
  /* @__PURE__ */ t.jsx("div", { className: "w-px mx-1 h-5 bg-border" }),
1858
1860
  e && o.length > 0 ? /* @__PURE__ */ t.jsx(
1859
- Br,
1861
+ Vr,
1860
1862
  {
1861
1863
  examples: e,
1862
1864
  onSelect: (j, O) => {
@@ -1876,7 +1878,7 @@ const _r = ({ index: e, manager: n }) => {
1876
1878
  ] }),
1877
1879
  /* @__PURE__ */ t.jsxs(_, { className: "CollapsibleContent flex flex-col gap-2", children: [
1878
1880
  l === "text" && /* @__PURE__ */ t.jsx(
1879
- dn,
1881
+ cn,
1880
1882
  {
1881
1883
  ...n("body"),
1882
1884
  className: w(
@@ -1908,7 +1910,7 @@ const _r = ({ index: e, manager: n }) => {
1908
1910
  x && "bg-accent border-primary"
1909
1911
  ),
1910
1912
  children: /* @__PURE__ */ t.jsx(
1911
- ue,
1913
+ me,
1912
1914
  {
1913
1915
  className: w(
1914
1916
  "text-muted-foreground",
@@ -1925,12 +1927,12 @@ const _r = ({ index: e, manager: n }) => {
1925
1927
  " ",
1926
1928
  /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
1927
1929
  "(",
1928
- ke(c.size),
1930
+ Ee(c.size),
1929
1931
  ")"
1930
1932
  ] })
1931
1933
  ] }),
1932
1934
  /* @__PURE__ */ t.jsx(
1933
- pe,
1935
+ K,
1934
1936
  {
1935
1937
  type: "button",
1936
1938
  variant: "ghost",
@@ -1943,7 +1945,7 @@ const _r = ({ index: e, manager: n }) => {
1943
1945
  ]
1944
1946
  }
1945
1947
  ),
1946
- l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: N.fields.map((j, O) => /* @__PURE__ */ t.jsx(_r, { index: O, manager: N }, j.id)) })
1948
+ l === "multipart" && /* @__PURE__ */ t.jsx(ke, { children: N.fields.map((j, O) => /* @__PURE__ */ t.jsx(Br, { index: O, manager: N }, j.id)) })
1947
1949
  ] })
1948
1950
  ] });
1949
1951
  }, Lt = (e, n, s) => {
@@ -1958,12 +1960,12 @@ const _r = ({ index: e, manager: n }) => {
1958
1960
  r.searchParams.set(o.name, o.value);
1959
1961
  }), r;
1960
1962
  };
1961
- function Mr(e) {
1963
+ function qr(e) {
1962
1964
  return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1963
1965
  e
1964
1966
  );
1965
1967
  }
1966
- const Ur = (e, n) => {
1968
+ const Mr = (e, n) => {
1967
1969
  const s = e.find(
1968
1970
  ([a]) => a.toLowerCase() === "content-disposition"
1969
1971
  )?.[1];
@@ -1980,7 +1982,7 @@ const Ur = (e, n) => {
1980
1982
  } catch {
1981
1983
  return "download";
1982
1984
  }
1983
- }, 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(
1985
+ }, Ur = $e.Root, dn = xe.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx($e.Portal, { children: /* @__PURE__ */ t.jsx(
1984
1986
  $e.Content,
1985
1987
  {
1986
1988
  ref: r,
@@ -1993,8 +1995,8 @@ const Ur = (e, n) => {
1993
1995
  ...a
1994
1996
  }
1995
1997
  ) }));
1996
- un.displayName = $e.Content.displayName;
1997
- const Hr = ({
1998
+ dn.displayName = $e.Content.displayName;
1999
+ const Gr = ({
1998
2000
  value: e,
1999
2001
  options: n,
2000
2002
  onChange: s,
@@ -2005,10 +2007,10 @@ const Hr = ({
2005
2007
  ref: c,
2006
2008
  onSelect: l
2007
2009
  }) => {
2008
- const [m, d] = E(!1), [f, x] = E(!1), h = ks((u) => u.filtered.count), v = k(null);
2009
- return /* @__PURE__ */ t.jsxs(Gr, { open: m, children: [
2010
- /* @__PURE__ */ t.jsx(Ls, { children: /* @__PURE__ */ t.jsx(
2011
- Rs,
2010
+ const [m, d] = k(!1), [f, x] = k(!1), h = Os((u) => u.filtered.count), v = E(null);
2011
+ return /* @__PURE__ */ t.jsxs(Ur, { open: m, children: [
2012
+ /* @__PURE__ */ t.jsx(Ps, { children: /* @__PURE__ */ t.jsx(
2013
+ Es,
2012
2014
  {
2013
2015
  autoComplete: "off",
2014
2016
  ref: (u) => {
@@ -2028,7 +2030,7 @@ const Hr = ({
2028
2030
  }
2029
2031
  ) }),
2030
2032
  /* @__PURE__ */ t.jsx(
2031
- un,
2033
+ dn,
2032
2034
  {
2033
2035
  onMouseEnter: () => x(!0),
2034
2036
  onMouseLeave: () => x(!1),
@@ -2044,8 +2046,8 @@ const Hr = ({
2044
2046
  onTouchMove: (u) => {
2045
2047
  u.stopPropagation();
2046
2048
  },
2047
- children: /* @__PURE__ */ t.jsx(Is, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
2048
- Ds,
2049
+ children: /* @__PURE__ */ t.jsx(ks, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
2050
+ Rs,
2049
2051
  {
2050
2052
  value: u,
2051
2053
  onSelect: (y) => {
@@ -2059,7 +2061,7 @@ const Hr = ({
2059
2061
  }
2060
2062
  )
2061
2063
  ] });
2062
- }, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Es, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Hr, { ...n }) }), Qr = Object.freeze([
2064
+ }, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Ls, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Gr, { ...n }) }), Hr = Object.freeze([
2063
2065
  "Accept",
2064
2066
  "Accept-Encoding",
2065
2067
  "Accept-Language",
@@ -2086,12 +2088,12 @@ const Hr = ({
2086
2088
  "Set-Cookie",
2087
2089
  "User-Agent",
2088
2090
  "X-Requested-With"
2089
- ]), Jr = ({
2091
+ ]), Qr = ({
2090
2092
  control: e,
2091
2093
  schemaHeaders: n,
2092
2094
  lockedHeaders: s
2093
2095
  }) => {
2094
- const { watch: a, formState: r } = ae(), o = a("headers"), i = ot({
2096
+ const { watch: a, formState: r } = oe(), o = a("headers"), i = ot({
2095
2097
  control: e,
2096
2098
  name: "headers",
2097
2099
  defaultValue: { name: "", value: "", active: !1 }
@@ -2103,18 +2105,18 @@ const Hr = ({
2103
2105
  locked: !0
2104
2106
  })) ?? [];
2105
2107
  return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2106
- /* @__PURE__ */ t.jsxs(Z, { children: [
2107
- /* @__PURE__ */ t.jsx(Dn, { size: 14 }),
2108
+ /* @__PURE__ */ t.jsxs(Y, { children: [
2109
+ /* @__PURE__ */ t.jsx(In, { size: 14 }),
2108
2110
  /* @__PURE__ */ t.jsx(H, { children: "Headers" })
2109
2111
  ] }),
2110
- /* @__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: [
2112
+ /* @__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(ke, { children: [
2111
2113
  m.map((d) => /* @__PURE__ */ t.jsxs(Ct, { children: [
2112
2114
  /* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2113
2115
  ge,
2114
2116
  {
2115
2117
  className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
2116
2118
  children: [
2117
- /* @__PURE__ */ t.jsx(Fn, { size: 16 }),
2119
+ /* @__PURE__ */ t.jsx(Dn, { size: 16 }),
2118
2120
  /* @__PURE__ */ t.jsx(I, { value: d.name, disabled: !0 }),
2119
2121
  /* @__PURE__ */ t.jsx("div", { children: d.value })
2120
2122
  ]
@@ -2144,7 +2146,7 @@ const Hr = ({
2144
2146
  ),
2145
2147
  /* @__PURE__ */ t.jsxs(Ct, { children: [
2146
2148
  /* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2147
- zn,
2149
+ Fn,
2148
2150
  {
2149
2151
  className: w(
2150
2152
  "text-amber-600",
@@ -2169,7 +2171,7 @@ const Hr = ({
2169
2171
  ...u,
2170
2172
  value: String(i.getValue(f, "name")),
2171
2173
  placeholder: "Name",
2172
- options: [...c, ...Qr],
2174
+ options: [...c, ...Hr],
2173
2175
  onChange: (S) => i.setValue(f, "name", S),
2174
2176
  onSelect: (S) => i.setValue(f, "name", S, { focus: "next" })
2175
2177
  }
@@ -2207,18 +2209,18 @@ const Hr = ({
2207
2209
  })
2208
2210
  ] }) }) }) })
2209
2211
  ] });
2210
- }, Wr = zs(
2212
+ }, Jr = Ds(
2211
2213
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2212
2214
  ), Re = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2213
- Kt.Root,
2215
+ Xt.Root,
2214
2216
  {
2215
2217
  ref: s,
2216
- className: w(Wr(), e),
2218
+ className: w(Jr(), e),
2217
2219
  ...n
2218
2220
  }
2219
2221
  ));
2220
- Re.displayName = Kt.Root.displayName;
2221
- const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2222
+ Re.displayName = Xt.Root.displayName;
2223
+ const un = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2222
2224
  he.Root,
2223
2225
  {
2224
2226
  className: w("grid gap-2", e),
@@ -2226,8 +2228,8 @@ const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2226
2228
  ref: s
2227
2229
  }
2228
2230
  ));
2229
- mn.displayName = he.Root.displayName;
2230
- const pn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2231
+ un.displayName = he.Root.displayName;
2232
+ const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2231
2233
  he.Item,
2232
2234
  {
2233
2235
  ref: s,
@@ -2236,29 +2238,29 @@ const pn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2236
2238
  e
2237
2239
  ),
2238
2240
  ...n,
2239
- 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" }) })
2241
+ children: /* @__PURE__ */ t.jsx(he.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(zn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
2240
2242
  }
2241
2243
  ));
2242
- pn.displayName = he.Item.displayName;
2243
- const hn = ({
2244
+ mn.displayName = he.Item.displayName;
2245
+ const pn = ({
2244
2246
  identities: e,
2245
2247
  setValue: n,
2246
2248
  value: s
2247
2249
  }) => /* @__PURE__ */ t.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ t.jsx(
2248
- mn,
2250
+ un,
2249
2251
  {
2250
2252
  onValueChange: (a) => n(a),
2251
2253
  value: s,
2252
- defaultValue: me,
2254
+ defaultValue: pe,
2253
2255
  className: "gap-0",
2254
2256
  disabled: e?.length === 0,
2255
- children: [{ id: me, label: "None" }, ...e ?? []].map(
2257
+ children: [{ id: pe, label: "None" }, ...e ?? []].map(
2256
2258
  (a) => /* @__PURE__ */ t.jsxs(
2257
2259
  Re,
2258
2260
  {
2259
2261
  className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
2260
2262
  children: [
2261
- /* @__PURE__ */ t.jsx(pn, { value: a.id, id: a.id }),
2263
+ /* @__PURE__ */ t.jsx(mn, { value: a.id, id: a.id }),
2262
2264
  /* @__PURE__ */ t.jsx("span", { children: a.label })
2263
2265
  ]
2264
2266
  },
@@ -2266,25 +2268,25 @@ const hn = ({
2266
2268
  )
2267
2269
  )
2268
2270
  }
2269
- ) }), Xr = ({
2271
+ ) }), Wr = ({
2270
2272
  onSubmit: e,
2271
2273
  identities: n,
2272
2274
  open: s,
2273
2275
  onOpenChange: a
2274
2276
  }) => {
2275
- const [r, o] = E(void 0), [i, c] = E(!1);
2277
+ const [r, o] = k(void 0), [i, c] = k(!1);
2276
2278
  return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
2277
2279
  /* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
2278
- /* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
2279
- /* @__PURE__ */ t.jsx(Fs, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
2280
- hn,
2280
+ /* @__PURE__ */ t.jsx(Bt, { children: "Please select an identity for this request." }),
2281
+ /* @__PURE__ */ t.jsx(Is, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
2282
+ pn,
2281
2283
  {
2282
2284
  identities: n,
2283
2285
  setValue: o,
2284
2286
  value: r
2285
2287
  }
2286
2288
  ) }),
2287
- /* @__PURE__ */ t.jsxs(qt, { className: "flex flex-col gap-2", children: [
2289
+ /* @__PURE__ */ t.jsxs(_t, { className: "flex flex-col gap-2", children: [
2288
2290
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2289
2291
  /* @__PURE__ */ t.jsx(
2290
2292
  ve,
@@ -2309,22 +2311,22 @@ const hn = ({
2309
2311
  ] }) });
2310
2312
  }, Ue = (e) => Math.abs(
2311
2313
  Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
2312
- ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), kt = (e, n = {}) => {
2314
+ ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), Et = (e, n = {}) => {
2313
2315
  const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
2314
2316
  return `${s}deg ${a}% ${r}%`;
2315
- }, He = "data-linked-param", Kr = (e) => {
2316
- const { resolvedTheme: n } = hs();
2317
+ }, He = "data-linked-param", Xr = (e) => {
2318
+ const { resolvedTheme: n } = ps();
2317
2319
  return {
2318
- text: kt(
2320
+ text: Et(
2319
2321
  e,
2320
2322
  n === "light" ? { saturation: 95, lightness: 38 } : {}
2321
2323
  ),
2322
- background: kt(
2324
+ background: Et(
2323
2325
  e,
2324
2326
  n === "light" ? { saturation: 85, lightness: 40 } : {}
2325
2327
  )
2326
2328
  };
2327
- }, fn = ({
2329
+ }, hn = ({
2328
2330
  name: e,
2329
2331
  className: n,
2330
2332
  slug: s,
@@ -2332,7 +2334,7 @@ const hn = ({
2332
2334
  children: r,
2333
2335
  onClick: o
2334
2336
  }) => {
2335
- const i = k(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Kr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, h = `hsl(${d} / 50%)`;
2337
+ const i = E(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%)`;
2336
2338
  return G(() => {
2337
2339
  if (!c || !i.current) return;
2338
2340
  const v = () => {
@@ -2372,24 +2374,24 @@ const hn = ({
2372
2374
  children: r ?? e
2373
2375
  }
2374
2376
  );
2375
- }, Zr = ({
2377
+ }, Kr = ({
2376
2378
  control: e,
2377
2379
  url: n
2378
2380
  }) => {
2379
- const { fields: s } = Mt({
2381
+ const { fields: s } = qt({
2380
2382
  control: e,
2381
2383
  name: "pathParams"
2382
2384
  }), a = [...s].sort(
2383
2385
  (r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
2384
2386
  );
2385
- return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
2387
+ return /* @__PURE__ */ t.jsx(ke, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
2386
2388
  /* @__PURE__ */ t.jsx(
2387
2389
  wt,
2388
2390
  {
2389
2391
  control: e,
2390
2392
  name: `pathParams.${o}.name`,
2391
2393
  render: () => /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsx(
2392
- fn,
2394
+ hn,
2393
2395
  {
2394
2396
  slug: r.name,
2395
2397
  name: r.name,
@@ -2407,11 +2409,11 @@ const hn = ({
2407
2409
  }
2408
2410
  ) })
2409
2411
  ] }, r.id)) });
2410
- }, Yr = ({
2412
+ }, Zr = ({
2411
2413
  control: e,
2412
2414
  schemaQueryParams: n
2413
2415
  }) => {
2414
- const { watch: s } = ae(), a = s("queryParams"), r = ot({
2416
+ const { watch: s } = oe(), a = s("queryParams"), r = ot({
2415
2417
  control: e,
2416
2418
  name: "queryParams",
2417
2419
  defaultValue: { name: "", value: "", active: !1 }
@@ -2419,11 +2421,11 @@ const hn = ({
2419
2421
  (c) => !!c.isRequired
2420
2422
  ), i = n.length > 0;
2421
2423
  return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2422
- /* @__PURE__ */ t.jsxs(Z, { children: [
2423
- /* @__PURE__ */ t.jsx(Bn, { size: 16 }),
2424
+ /* @__PURE__ */ t.jsxs(Y, { children: [
2425
+ /* @__PURE__ */ t.jsx(Vn, { size: 16 }),
2424
2426
  /* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
2425
2427
  ] }),
2426
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Ee, { children: r.fields.map((c, l) => {
2428
+ /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(ke, { children: r.fields.map((c, l) => {
2427
2429
  const m = n.find(
2428
2430
  (h) => h.name === a.at(l)?.name
2429
2431
  ), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
@@ -2480,19 +2482,19 @@ const hn = ({
2480
2482
  ] }, c.id);
2481
2483
  }) }) })
2482
2484
  ] });
2483
- }, ea = ({
2485
+ }, Yr = ({
2484
2486
  open: e,
2485
2487
  setOpen: n,
2486
2488
  onSignUp: s,
2487
2489
  onLogin: a,
2488
2490
  onSkip: r
2489
2491
  }) => {
2490
- const [o, i] = E(!1), c = () => {
2492
+ const [o, i] = k(!1), c = () => {
2491
2493
  r?.(o), n(!1);
2492
2494
  };
2493
2495
  return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
2494
2496
  /* @__PURE__ */ t.jsx(nt, { children: "Welcome to the Playground!" }),
2495
- /* @__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." }),
2497
+ /* @__PURE__ */ t.jsx(Bt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2496
2498
  /* @__PURE__ */ t.jsxs(Re, { className: "flex items-center gap-2 font-normal", children: [
2497
2499
  /* @__PURE__ */ t.jsx(
2498
2500
  ve,
@@ -2503,7 +2505,7 @@ const hn = ({
2503
2505
  ),
2504
2506
  "Don't show this again"
2505
2507
  ] }),
2506
- /* @__PURE__ */ t.jsxs(qt, { className: "flex gap-2 sm:justify-between", children: [
2508
+ /* @__PURE__ */ t.jsxs(_t, { className: "flex gap-2 sm:justify-between", children: [
2507
2509
  /* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: c, children: "Skip" }),
2508
2510
  /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2", children: [
2509
2511
  s && /* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
@@ -2511,7 +2513,7 @@ const hn = ({
2511
2513
  ] })
2512
2514
  ] })
2513
2515
  ] }) });
2514
- }, ta = Ze()(
2516
+ }, ea = Ze()(
2515
2517
  Ye(
2516
2518
  (e, n) => ({
2517
2519
  rememberedIdentity: null,
@@ -2522,10 +2524,10 @@ const hn = ({
2522
2524
  }),
2523
2525
  {
2524
2526
  name: "identity-storage",
2525
- storage: zt(() => sessionStorage)
2527
+ storage: Ft(() => sessionStorage)
2526
2528
  }
2527
2529
  )
2528
- ), na = ({
2530
+ ), ta = ({
2529
2531
  path: e,
2530
2532
  renderParam: n
2531
2533
  }) => {
@@ -2538,23 +2540,23 @@ const hn = ({
2538
2540
  if (!f) return;
2539
2541
  const x = m.index;
2540
2542
  x > l && c.push(
2541
- /* @__PURE__ */ t.jsx(ie, { children: a.slice(l, x) }, `text-${l}-${x}`)
2543
+ /* @__PURE__ */ t.jsx(le, { children: a.slice(l, x) }, `text-${l}-${x}`)
2542
2544
  ), c.push(
2543
- /* @__PURE__ */ t.jsx(ie, { children: n({ name: f, originalValue: d, index: s++ }) }, `param-${f}`)
2545
+ /* @__PURE__ */ t.jsx(le, { children: n({ name: f, originalValue: d, index: s++ }) }, `param-${f}`)
2544
2546
  ), l = x + d.length;
2545
2547
  }), l < a.length && c.push(
2546
- /* @__PURE__ */ t.jsx(ie, { children: a.slice(l) }, `text-${l}-${a.length}`)
2548
+ /* @__PURE__ */ t.jsx(le, { children: a.slice(l) }, `text-${l}-${a.length}`)
2547
2549
  ), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
2548
- /* @__PURE__ */ t.jsxs(ie, { children: [
2550
+ /* @__PURE__ */ t.jsxs(le, { children: [
2549
2551
  c,
2550
2552
  r < o.length - 1 && "/",
2551
2553
  /* @__PURE__ */ t.jsx("wbr", {})
2552
2554
  ] }, `${a}-${r}`);
2553
2555
  });
2554
- }, sa = ({ url: e }) => {
2555
- const { watch: n, setFocus: s } = ae(), [a] = n(["pathParams"]);
2556
+ }, na = ({ url: e }) => {
2557
+ const { watch: n, setFocus: s } = oe(), [a] = n(["pathParams"]);
2556
2558
  return /* @__PURE__ */ t.jsx(
2557
- na,
2559
+ ta,
2558
2560
  {
2559
2561
  path: e,
2560
2562
  renderParam: ({ name: r, originalValue: o, index: i }) => {
@@ -2562,7 +2564,7 @@ const hn = ({
2562
2564
  (l) => l.name === r
2563
2565
  )?.value;
2564
2566
  return /* @__PURE__ */ t.jsx(
2565
- fn,
2567
+ hn,
2566
2568
  {
2567
2569
  name: r,
2568
2570
  backgroundOpacity: "0",
@@ -2574,8 +2576,8 @@ const hn = ({
2574
2576
  }
2575
2577
  }
2576
2578
  );
2577
- }, ra = () => {
2578
- const { watch: e } = ae(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(ie, { children: [
2579
+ }, sa = () => {
2580
+ const { watch: e } = oe(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(le, { children: [
2579
2581
  a.name,
2580
2582
  "=",
2581
2583
  encodeURIComponent(a.value).replaceAll("%20", "+"),
@@ -2586,7 +2588,7 @@ const hn = ({
2586
2588
  s.length > 0 ? "?" : "",
2587
2589
  s
2588
2590
  ] });
2589
- }, aa = ({ status: e }) => {
2591
+ }, ra = ({ status: e }) => {
2590
2592
  if (!e) return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2591
2593
  switch (Number(e.toString().slice(0, 1))) {
2592
2594
  case 2:
@@ -2598,15 +2600,15 @@ const hn = ({
2598
2600
  default:
2599
2601
  return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2600
2602
  }
2601
- }, oa = () => {
2602
- const e = k(null), n = k(null), s = k(Date.now()), a = k(null), r = D(() => {
2603
+ }, aa = () => {
2604
+ const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
2603
2605
  if (n.current) {
2604
2606
  const o = Date.now() - s.current;
2605
2607
  n.current.nodeValue = o.toFixed();
2606
2608
  }
2607
2609
  a.current = requestAnimationFrame(r);
2608
2610
  }, []);
2609
- return ds(() => {
2611
+ return cs(() => {
2610
2612
  const o = e.current;
2611
2613
  if (!o) return;
2612
2614
  const i = document.createTextNode("0");
@@ -2614,7 +2616,7 @@ const hn = ({
2614
2616
  a.current && cancelAnimationFrame(a.current), n.current && o.contains(i) && o.removeChild(i);
2615
2617
  };
2616
2618
  }, [r]), /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
2617
- }, ia = ({
2619
+ }, oa = ({
2618
2620
  status: e,
2619
2621
  time: n,
2620
2622
  size: s,
@@ -2635,7 +2637,7 @@ const hn = ({
2635
2637
  };
2636
2638
  return /* @__PURE__ */ t.jsxs("div", { className: "relative shrink-0 flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
2637
2639
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2638
- /* @__PURE__ */ t.jsx(aa, { status: e }),
2640
+ /* @__PURE__ */ t.jsx(ra, { status: e }),
2639
2641
  " ",
2640
2642
  e ?? "Sending Request...",
2641
2643
  e ? ` ${o[e]}` : ""
@@ -2644,12 +2646,12 @@ const hn = ({
2644
2646
  /* @__PURE__ */ t.jsxs("div", { children: [
2645
2647
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2646
2648
  " ",
2647
- /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? ke(s) : "- B" })
2649
+ /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Ee(s) : "- B" })
2648
2650
  ] }),
2649
2651
  /* @__PURE__ */ t.jsxs("div", { children: [
2650
2652
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2651
2653
  " ",
2652
- n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(oa, {}),
2654
+ n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(aa, {}),
2653
2655
  "ms"
2654
2656
  ] })
2655
2657
  ] }),
@@ -2672,9 +2674,9 @@ function it(e) {
2672
2674
  const n = e[0];
2673
2675
  return n === void 0 ? "any[]" : `${it(n)}[]`;
2674
2676
  }
2675
- return typeof e == "object" ? la(e) : typeof e;
2677
+ return typeof e == "object" ? ia(e) : typeof e;
2676
2678
  }
2677
- function la(e, n = "") {
2679
+ function ia(e, n = "") {
2678
2680
  const s = ["{"];
2679
2681
  for (const [a, r] of Object.entries(e)) {
2680
2682
  const o = it(r);
@@ -2683,10 +2685,10 @@ function la(e, n = "") {
2683
2685
  return s.push("}"), s.join(`
2684
2686
  `);
2685
2687
  }
2686
- function ca(e) {
2688
+ function la(e) {
2687
2689
  return { lines: [`type GeneratedType = ${it(e)};`] };
2688
2690
  }
2689
- const da = (e) => Object.entries({
2691
+ const ca = (e) => Object.entries({
2690
2692
  "application/json": "json",
2691
2693
  "text/json": "json",
2692
2694
  "text/html": "html",
@@ -2696,16 +2698,16 @@ const da = (e) => Object.entries({
2696
2698
  "application/xhtml+xml": "xhtml"
2697
2699
  }).find(
2698
2700
  ([s]) => e.includes(s)
2699
- )?.[1], ua = (e) => {
2701
+ )?.[1], da = (e) => {
2700
2702
  const n = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
2701
- return da(n);
2702
- }, ma = (e) => {
2703
+ return ca(n);
2704
+ }, ua = (e) => {
2703
2705
  try {
2704
2706
  return JSON.stringify(JSON.parse(e), null, 2);
2705
2707
  } catch {
2706
2708
  return null;
2707
2709
  }
2708
- }, pa = (e) => {
2710
+ }, ma = (e) => {
2709
2711
  const n = [
2710
2712
  "Content-Type",
2711
2713
  "Content-Length",
@@ -2722,10 +2724,10 @@ const da = (e) => Object.entries({
2722
2724
  }, z = 3, Se = ye(
2723
2725
  "div",
2724
2726
  "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2725
- ), de = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
2726
- const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = E(!a);
2727
+ ), ue = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
2728
+ const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = k(!a);
2727
2729
  return /* @__PURE__ */ t.jsx(
2728
- de,
2730
+ ue,
2729
2731
  {
2730
2732
  className: w(
2731
2733
  "max-h-28 overflow-auto",
@@ -2735,12 +2737,12 @@ const da = (e) => Object.entries({
2735
2737
  a && o((i) => !i);
2736
2738
  },
2737
2739
  children: a ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2738
- /* @__PURE__ */ t.jsx(Ss, { secret: e, previewChars: 0, revealed: r }),
2739
- 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") })
2740
+ /* @__PURE__ */ t.jsx(Cs, { secret: e, previewChars: 0, revealed: r }),
2741
+ r ? /* @__PURE__ */ t.jsx(Un, { size: 14, className: w("hidden group-hover:block") }) : /* @__PURE__ */ t.jsx(Gn, { size: 14, className: w("hidden group-hover:block") })
2740
2742
  ] }) : e
2741
2743
  }
2742
2744
  );
2743
- }, ha = ({
2745
+ }, pa = ({
2744
2746
  body: e = "",
2745
2747
  headers: n,
2746
2748
  request: s,
@@ -2749,31 +2751,31 @@ const da = (e) => Object.entries({
2749
2751
  fileName: o,
2750
2752
  blob: i
2751
2753
  }) => {
2752
- const c = ua(n), l = ma(e), m = l || e, [d, f] = E(
2754
+ const c = da(n), l = ua(e), m = l || e, [d, f] = k(
2753
2755
  l ? "formatted" : "raw"
2754
- ), x = qs({
2756
+ ), x = _s({
2755
2757
  queryKey: ["types", m],
2756
- queryFn: async () => ca(JSON.parse(m)),
2758
+ queryFn: async () => la(JSON.parse(m)),
2757
2759
  enabled: d === "types" && !r
2758
2760
  }), h = () => {
2759
2761
  if (i && o) {
2760
2762
  const u = URL.createObjectURL(i), y = document.createElement("a");
2761
2763
  y.href = u, y.download = o, document.body.appendChild(y), y.click(), document.body.removeChild(y), URL.revokeObjectURL(u);
2762
2764
  }
2763
- }, v = pa([...n]);
2765
+ }, v = ma([...n]);
2764
2766
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2765
2767
  /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2766
- /* @__PURE__ */ t.jsxs(Z, { children: [
2767
- /* @__PURE__ */ t.jsx(_n, { size: 14 }),
2768
+ /* @__PURE__ */ t.jsxs(Y, { children: [
2769
+ /* @__PURE__ */ t.jsx(Bn, { size: 14 }),
2768
2770
  /* @__PURE__ */ t.jsx(H, { children: "Request Headers" })
2769
2771
  ] }),
2770
2772
  /* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2771
2773
  s.headers.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2772
- /* @__PURE__ */ t.jsx(de, { children: u }),
2774
+ /* @__PURE__ */ t.jsx(ue, { children: u }),
2773
2775
  /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2774
2776
  ] }, u)),
2775
2777
  s.headers.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
2776
- /* @__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: [
2778
+ /* @__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: [
2777
2779
  "Show ",
2778
2780
  s.headers.length - z,
2779
2781
  " more headers",
@@ -2781,10 +2783,10 @@ const da = (e) => Object.entries({
2781
2783
  ] }),
2782
2784
  /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
2783
2785
  s.headers.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2784
- /* @__PURE__ */ t.jsx(de, { children: u }),
2786
+ /* @__PURE__ */ t.jsx(ue, { children: u }),
2785
2787
  /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2786
2788
  ] }, u)),
2787
- /* @__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: [
2789
+ /* @__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: [
2788
2790
  "Hide ",
2789
2791
  s.headers.length - z,
2790
2792
  " headers",
@@ -2801,17 +2803,17 @@ const da = (e) => Object.entries({
2801
2803
  ] }) })
2802
2804
  ] }),
2803
2805
  /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2804
- /* @__PURE__ */ t.jsxs(Z, { children: [
2805
- /* @__PURE__ */ t.jsx(qn, { size: 14 }),
2806
+ /* @__PURE__ */ t.jsxs(Y, { children: [
2807
+ /* @__PURE__ */ t.jsx(_n, { size: 14 }),
2806
2808
  /* @__PURE__ */ t.jsx(H, { children: "Response Headers" })
2807
2809
  ] }),
2808
2810
  /* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2809
2811
  v.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2810
- /* @__PURE__ */ t.jsx(de, { children: u }),
2812
+ /* @__PURE__ */ t.jsx(ue, { children: u }),
2811
2813
  /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2812
2814
  ] }, u)),
2813
2815
  v.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
2814
- /* @__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: [
2816
+ /* @__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: [
2815
2817
  "Show ",
2816
2818
  v.length - z,
2817
2819
  " more headers",
@@ -2819,10 +2821,10 @@ const da = (e) => Object.entries({
2819
2821
  ] }),
2820
2822
  /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
2821
2823
  v.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2822
- /* @__PURE__ */ t.jsx(de, { children: u }),
2824
+ /* @__PURE__ */ t.jsx(ue, { children: u }),
2823
2825
  /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2824
2826
  ] }, u)),
2825
- /* @__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: [
2827
+ /* @__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: [
2826
2828
  "Hide ",
2827
2829
  v.length - z,
2828
2830
  " headers",
@@ -2840,17 +2842,17 @@ const da = (e) => Object.entries({
2840
2842
  ] }),
2841
2843
  /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 justify-between items-center border-b px-2 flex-0", children: [
2842
2844
  /* @__PURE__ */ t.jsxs(H, { className: "flex items-center gap-2", children: [
2843
- /* @__PURE__ */ t.jsx(Mn, { size: 14 }),
2845
+ /* @__PURE__ */ t.jsx(qn, { size: 14 }),
2844
2846
  "Response body"
2845
2847
  ] }),
2846
2848
  l && !r && /* @__PURE__ */ t.jsxs(
2847
- Ut,
2849
+ Mt,
2848
2850
  {
2849
2851
  value: d,
2850
2852
  onValueChange: (u) => f(u),
2851
2853
  children: [
2852
- /* @__PURE__ */ t.jsx(Gt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Ht, { placeholder: "View" }) }),
2853
- /* @__PURE__ */ t.jsxs(Qt, { children: [
2854
+ /* @__PURE__ */ t.jsx(Ut, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Gt, { placeholder: "View" }) }),
2855
+ /* @__PURE__ */ t.jsxs(Ht, { children: [
2854
2856
  /* @__PURE__ */ t.jsx(Te, { value: "formatted", children: "Formatted" }),
2855
2857
  /* @__PURE__ */ t.jsx(Te, { value: "raw", children: "Raw" }),
2856
2858
  /* @__PURE__ */ t.jsx(Te, { value: "types", children: "Types" })
@@ -2869,17 +2871,17 @@ const da = (e) => Object.entries({
2869
2871
  className: "flex items-center gap-2",
2870
2872
  disabled: !i,
2871
2873
  children: [
2872
- /* @__PURE__ */ t.jsx(Un, { className: "h-4 w-4" }),
2874
+ /* @__PURE__ */ t.jsx(Mn, { className: "h-4 w-4" }),
2873
2875
  "Download ",
2874
2876
  o || "file",
2875
2877
  " (",
2876
- ke(a),
2878
+ Ee(a),
2877
2879
  ")"
2878
2880
  ]
2879
2881
  }
2880
2882
  )
2881
2883
  ] }) }) : /* @__PURE__ */ t.jsx(
2882
- xs,
2884
+ gs,
2883
2885
  {
2884
2886
  className: "text-xs flex-1",
2885
2887
  embedded: !0,
@@ -2890,7 +2892,7 @@ const da = (e) => Object.entries({
2890
2892
  }
2891
2893
  ) })
2892
2894
  ] });
2893
- }, fa = ({
2895
+ }, ha = ({
2894
2896
  queryMutation: e,
2895
2897
  showLongRunningWarning: n,
2896
2898
  onCancel: s,
@@ -2899,7 +2901,7 @@ const da = (e) => Object.entries({
2899
2901
  progress: o
2900
2902
  }) => /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col overflow-y-auto h-[80vh] bg-muted/50", children: [
2901
2903
  (e.isPending || e.data) && /* @__PURE__ */ t.jsx(
2902
- ia,
2904
+ oa,
2903
2905
  {
2904
2906
  status: e.data?.status,
2905
2907
  time: e.data?.time,
@@ -2908,12 +2910,12 @@ const da = (e) => Object.entries({
2908
2910
  progress: o
2909
2911
  }
2910
2912
  ),
2911
- e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(Vs, { children: [
2912
- /* @__PURE__ */ t.jsx(Qn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2913
- /* @__PURE__ */ t.jsx(Bs, { children: "Request failed" }),
2914
- /* @__PURE__ */ t.jsx(_s, { children: e.error.message || String(e.error) || "Unexpected error" })
2913
+ e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(zs, { children: [
2914
+ /* @__PURE__ */ t.jsx(Hn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2915
+ /* @__PURE__ */ t.jsx(Vs, { children: "Request failed" }),
2916
+ /* @__PURE__ */ t.jsx(Bs, { children: e.error.message || String(e.error) || "Unexpected error" })
2915
2917
  ] }) }) : e.data ? /* @__PURE__ */ t.jsx(
2916
- ha,
2918
+ pa,
2917
2919
  {
2918
2920
  request: e.data.request,
2919
2921
  size: e.data.size,
@@ -2924,7 +2926,7 @@ const da = (e) => Object.entries({
2924
2926
  blob: e.data.blob
2925
2927
  }
2926
2928
  ) : 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: [
2927
- /* @__PURE__ */ t.jsx(ys, {}),
2929
+ /* @__PURE__ */ t.jsx(Fs, {}),
2928
2930
  /* @__PURE__ */ t.jsxs(
2929
2931
  "div",
2930
2932
  {
@@ -2935,7 +2937,7 @@ const da = (e) => Object.entries({
2935
2937
  children: [
2936
2938
  "Looks like the request is taking longer than expected.",
2937
2939
  /* @__PURE__ */ t.jsx(
2938
- Ft,
2940
+ K,
2939
2941
  {
2940
2942
  type: "button",
2941
2943
  onClick: s,
@@ -2950,7 +2952,7 @@ const da = (e) => Object.entries({
2950
2952
  )
2951
2953
  ] }) }) : /* @__PURE__ */ t.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
2952
2954
  /* @__PURE__ */ t.jsx(
2953
- Jn,
2955
+ Qn,
2954
2956
  {
2955
2957
  size: 64,
2956
2958
  className: "text-muted-foreground",
@@ -2960,7 +2962,7 @@ const da = (e) => Object.entries({
2960
2962
  /* @__PURE__ */ t.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2961
2963
  a
2962
2964
  ] }) })
2963
- ] }), gn = Ze()(
2965
+ ] }), fn = Ze()(
2964
2966
  Ye(
2965
2967
  (e) => ({
2966
2968
  skipLogin: !1,
@@ -2968,12 +2970,12 @@ const da = (e) => Object.entries({
2968
2970
  }),
2969
2971
  {
2970
2972
  name: "remember-skip-login",
2971
- storage: zt(() => sessionStorage)
2973
+ storage: Ft(() => sessionStorage)
2972
2974
  }
2973
2975
  )
2974
2976
  );
2975
- as(gn);
2976
- const me = "__none", ga = ({
2977
+ rs(fn);
2978
+ const pe = "__none", fa = ({
2977
2979
  server: e,
2978
2980
  servers: n = [],
2979
2981
  url: s,
@@ -2987,13 +2989,13 @@ const me = "__none", ga = ({
2987
2989
  onLogin: d,
2988
2990
  onSignUp: f
2989
2991
  }) => {
2990
- const { selectedServer: x, setSelectedServer: h } = Vr(
2992
+ const { selectedServer: x, setSelectedServer: h } = zr(
2991
2993
  n.map((p) => ({ url: p }))
2992
- ), [v, u] = E(!1), y = os(), { setRememberedIdentity: S, getRememberedIdentity: R } = ta(), [, N] = us(), { skipLogin: j, setSkipLogin: O } = gn(), [Q, be] = E(!1), [Ie, ee] = E(!1), g = k(void 0), C = Ts(S), T = k(null), { label: A } = Fr("meta+enter", () => {
2994
+ ), [v, u] = k(!1), y = as(), { setRememberedIdentity: S, getRememberedIdentity: R } = ea(), [, N] = ds(), { skipLogin: j, setSkipLogin: O } = fn(), [Q, be] = k(!1), [Ie, te] = k(!1), g = E(void 0), C = Ss(S), T = E(null), { label: A } = Dr("meta+enter", () => {
2993
2995
  T.current?.requestSubmit();
2994
2996
  }), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
2995
- (p, se) => M.indexOf(p.name) - M.indexOf(se.name)
2996
- ), { register: De, control: te, handleSubmit: je, watch: ct, setValue: Fe, ...ze } = Cs({
2997
+ (p, re) => M.indexOf(p.name) - M.indexOf(re.name)
2998
+ ), { register: De, control: ne, handleSubmit: je, watch: ct, setValue: Fe, ...ze } = bs({
2997
2999
  defaultValues: {
2998
3000
  body: c,
2999
3001
  bodyMode: "text",
@@ -3015,21 +3017,21 @@ const me = "__none", ga = ({
3015
3017
  active: p.defaultActive ?? !1
3016
3018
  })) : [{ name: "", value: "", active: !1 }],
3017
3019
  identity: R([
3018
- me,
3020
+ pe,
3019
3021
  ...y.data?.map((p) => p.id) ?? []
3020
3022
  ])
3021
3023
  }
3022
- }), ne = ct("identity"), jn = Bt(
3023
- () => y.data?.find((p) => p.id === ne)?.authorizationFields,
3024
- [y.data, ne]
3024
+ }), se = ct("identity"), bn = Vt(
3025
+ () => y.data?.find((p) => p.id === se)?.authorizationFields,
3026
+ [y.data, se]
3025
3027
  );
3026
3028
  G(() => {
3027
- ne && C.current(ne);
3028
- }, [C, ne]);
3029
- const J = js({
3029
+ se && C.current(se);
3030
+ }, [C, se]);
3031
+ const J = vs({
3030
3032
  gcTime: 0,
3031
3033
  mutationFn: async (p) => {
3032
- const se = performance.now(), Ve = new window.Headers(
3034
+ const re = performance.now(), Ve = new window.Headers(
3033
3035
  p.headers.filter(($) => $.name && $.active).map(($) => [$.name, $.value])
3034
3036
  );
3035
3037
  let Ce;
@@ -3054,9 +3056,9 @@ const me = "__none", ga = ({
3054
3056
  body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ce
3055
3057
  }
3056
3058
  );
3057
- p.identity !== me && await y.data?.find(($) => $.id === p.identity)?.authorizeRequest(W);
3059
+ p.identity !== pe && await y.data?.find(($) => $.id === p.identity)?.authorizeRequest(W);
3058
3060
  const Be = setTimeout(
3059
- () => ee(!0),
3061
+ () => te(!0),
3060
3062
  3210
3061
3063
  );
3062
3064
  g.current = new AbortController(), g.current.signal.addEventListener("abort", () => {
@@ -3067,28 +3069,28 @@ const me = "__none", ga = ({
3067
3069
  cache: "no-store",
3068
3070
  signal: g.current.signal
3069
3071
  });
3070
- clearTimeout(Be), ee(!1);
3071
- const X = performance.now() - se, On = new URL(W.url), mt = Array.from($.headers.entries()), pt = $.headers.get("content-type") || "", ht = Mr(pt);
3072
+ clearTimeout(Be), te(!1);
3073
+ const X = performance.now() - re, Pn = new URL(W.url), mt = Array.from($.headers.entries()), pt = $.headers.get("content-type") || "", ht = qr(pt);
3072
3074
  let Ne = "", ft, gt;
3073
- ht ? (ft = await $.blob(), gt = Ur(mt, W.url), Ne = `Binary content (${pt})`) : Ne = await $.text();
3075
+ ht ? (ft = await $.blob(), gt = Mr(mt, W.url), Ne = `Binary content (${pt})`) : Ne = await $.text();
3074
3076
  const xt = $.headers.get("content-length");
3075
- let re = "";
3077
+ let ae = "";
3076
3078
  switch (p.bodyMode) {
3077
3079
  case "text":
3078
- re = p.body;
3080
+ ae = p.body;
3079
3081
  break;
3080
3082
  case "file":
3081
- re = `[File: ${p.file?.name ?? "Unknown"}]`;
3083
+ ae = `[File: ${p.file?.name ?? "Unknown"}]`;
3082
3084
  break;
3083
3085
  case "multipart":
3084
- re = `[Multipart Form Data]
3085
- `, re += p.multipartFormFields?.filter((U) => U.name && U.active).map(
3086
+ ae = `[Multipart Form Data]
3087
+ `, ae += p.multipartFormFields?.filter((U) => U.name && U.active).map(
3086
3088
  (U) => U.value instanceof File ? `${U.name}: [File: ${U.value.name}]` : `${U.name}: ${U.value}`
3087
3089
  ).join(`
3088
3090
  `);
3089
3091
  break;
3090
3092
  default:
3091
- re = p.body;
3093
+ ae = p.body;
3092
3094
  break;
3093
3095
  }
3094
3096
  return {
@@ -3104,30 +3106,30 @@ const me = "__none", ga = ({
3104
3106
  method: W.method.toUpperCase(),
3105
3107
  url: W.url,
3106
3108
  headers: [
3107
- ["Host", On.host],
3109
+ ["Host", Pn.host],
3108
3110
  ["User-Agent", "Zudoku Playground"],
3109
3111
  ...Array.from(W.headers.entries())
3110
3112
  ],
3111
- body: re
3113
+ body: ae
3112
3114
  }
3113
3115
  };
3114
3116
  } catch ($) {
3115
- throw clearTimeout(Be), ee(!1), $ instanceof TypeError ? new Error(
3117
+ throw clearTimeout(Be), te(!1), $ instanceof TypeError ? new Error(
3116
3118
  "The request failed, possibly due to network issues or CORS policy."
3117
3119
  ) : $;
3118
3120
  }
3119
3121
  }
3120
- }), dt = J.isPending, [Cn, Nn] = E(!1);
3122
+ }), dt = J.isPending, [jn, Cn] = k(!1);
3121
3123
  G(() => {
3122
- const p = setTimeout(() => Nn(dt), 100);
3124
+ const p = setTimeout(() => Cn(dt), 100);
3123
3125
  return () => clearTimeout(p);
3124
3126
  }, [dt]);
3125
- const { isFinished: Sn, progress: wn } = vs({ isAnimating: Cn });
3127
+ const { isFinished: Nn, progress: Sn } = xs({ isAnimating: jn });
3126
3128
  G(() => () => {
3127
3129
  g.current?.abort();
3128
3130
  }, []);
3129
- 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(
3130
- Ut,
3131
+ const wn = /* @__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(
3132
+ Mt,
3131
3133
  {
3132
3134
  onValueChange: (p) => {
3133
3135
  N(() => h(p));
@@ -3135,23 +3137,23 @@ const me = "__none", ga = ({
3135
3137
  value: x,
3136
3138
  defaultValue: x,
3137
3139
  children: [
3138
- /* @__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, {}) }),
3139
- /* @__PURE__ */ t.jsx(Qt, { children: n.map((p) => /* @__PURE__ */ t.jsx(Te, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
3140
+ /* @__PURE__ */ t.jsx(Ut, { 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(Gt, {}) }),
3141
+ /* @__PURE__ */ t.jsx(Ht, { children: n.map((p) => /* @__PURE__ */ t.jsx(Te, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
3140
3142
  ]
3141
3143
  }
3142
- ) }), An = m && !j && !Q, $n = ["POST", "PUT", "PATCH", "DELETE"].includes(
3144
+ ) }), Tn = m && !j && !Q, An = ["POST", "PUT", "PATCH", "DELETE"].includes(
3143
3145
  a.toUpperCase()
3144
- ), [ut, Pn] = ws();
3146
+ ), [ut, $n] = Ns();
3145
3147
  return /* @__PURE__ */ t.jsx(
3146
- Ns,
3148
+ js,
3147
3149
  {
3148
3150
  register: De,
3149
- control: te,
3151
+ control: ne,
3150
3152
  handleSubmit: je,
3151
3153
  watch: ct,
3152
3154
  setValue: Fe,
3153
3155
  ...ze,
3154
- children: /* @__PURE__ */ t.jsx(bs, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
3156
+ children: /* @__PURE__ */ t.jsx(ys, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
3155
3157
  "form",
3156
3158
  {
3157
3159
  ref: T,
@@ -3164,20 +3166,20 @@ const me = "__none", ga = ({
3164
3166
  className: "relative",
3165
3167
  children: [
3166
3168
  /* @__PURE__ */ t.jsx(
3167
- Xr,
3169
+ Wr,
3168
3170
  {
3169
3171
  identities: y.data ?? [],
3170
3172
  open: v,
3171
3173
  onOpenChange: u,
3172
- onSubmit: ({ rememberedIdentity: p, identity: se }) => {
3173
- p && Fe("identity", se ?? me), u(!1), J.mutate({ ...ze.getValues(), identity: se });
3174
+ onSubmit: ({ rememberedIdentity: p, identity: re }) => {
3175
+ p && Fe("identity", re ?? pe), u(!1), J.mutate({ ...ze.getValues(), identity: re });
3174
3176
  }
3175
3177
  }
3176
3178
  ),
3177
3179
  /* @__PURE__ */ t.jsx(
3178
- ea,
3180
+ Yr,
3179
3181
  {
3180
- open: An,
3182
+ open: Tn,
3181
3183
  setOpen: (p) => {
3182
3184
  p || be(!0);
3183
3185
  },
@@ -3193,16 +3195,16 @@ const me = "__none", ga = ({
3193
3195
  /* @__PURE__ */ t.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
3194
3196
  /* @__PURE__ */ t.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
3195
3197
  /* @__PURE__ */ t.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ t.jsxs("div", { className: "h-full py-1.5", children: [
3196
- Tn,
3197
- /* @__PURE__ */ t.jsx(sa, { url: s }),
3198
- /* @__PURE__ */ t.jsx(ra, {})
3198
+ wn,
3199
+ /* @__PURE__ */ t.jsx(na, { url: s }),
3200
+ /* @__PURE__ */ t.jsx(sa, {})
3199
3201
  ] }) }),
3200
3202
  /* @__PURE__ */ t.jsx("div", { className: "px-1", children: /* @__PURE__ */ t.jsx(
3201
3203
  q,
3202
3204
  {
3203
3205
  type: "button",
3204
3206
  onClick: () => {
3205
- Pn(
3207
+ $n(
3206
3208
  Lt(
3207
3209
  e ?? x,
3208
3210
  s,
@@ -3216,7 +3218,7 @@ const me = "__none", ga = ({
3216
3218
  "hover:opacity-100 transition",
3217
3219
  ut ? "text-emerald-600 opacity-100" : "opacity-50"
3218
3220
  ),
3219
- children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Wn, { size: 14 })
3221
+ children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Jn, { size: 14 })
3220
3222
  }
3221
3223
  ) })
3222
3224
  ] }),
@@ -3237,45 +3239,45 @@ const me = "__none", ga = ({
3237
3239
  ] }),
3238
3240
  /* @__PURE__ */ t.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
3239
3241
  y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
3240
- /* @__PURE__ */ t.jsxs(Z, { children: [
3241
- /* @__PURE__ */ t.jsx(Xn, { size: 16 }),
3242
+ /* @__PURE__ */ t.jsxs(Y, { children: [
3243
+ /* @__PURE__ */ t.jsx(Wn, { size: 16 }),
3242
3244
  /* @__PURE__ */ t.jsx(H, { children: "Authentication" })
3243
3245
  ] }),
3244
3246
  /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
3245
- hn,
3247
+ pn,
3246
3248
  {
3247
- value: ne,
3249
+ value: se,
3248
3250
  identities: y.data ?? [],
3249
3251
  setValue: (p) => Fe("identity", p)
3250
3252
  }
3251
3253
  ) })
3252
3254
  ] }),
3253
3255
  L.length > 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
3254
- /* @__PURE__ */ t.jsxs(Z, { children: [
3255
- /* @__PURE__ */ t.jsx(Kn, { size: 16 }),
3256
+ /* @__PURE__ */ t.jsxs(Y, { children: [
3257
+ /* @__PURE__ */ t.jsx(Xn, { size: 16 }),
3256
3258
  /* @__PURE__ */ t.jsx(H, { children: "Path Parameters" })
3257
3259
  ] }),
3258
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Zr, { url: s, control: te }) })
3260
+ /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Kr, { url: s, control: ne }) })
3259
3261
  ] }),
3260
- /* @__PURE__ */ t.jsx(Yr, { control: te, schemaQueryParams: o }),
3262
+ /* @__PURE__ */ t.jsx(Zr, { control: ne, schemaQueryParams: o }),
3261
3263
  /* @__PURE__ */ t.jsx(
3262
- Jr,
3264
+ Qr,
3263
3265
  {
3264
- control: te,
3266
+ control: ne,
3265
3267
  schemaHeaders: r,
3266
- lockedHeaders: jn?.headers
3268
+ lockedHeaders: bn?.headers
3267
3269
  }
3268
3270
  ),
3269
- $n && /* @__PURE__ */ t.jsx(qr, { content: l })
3271
+ An && /* @__PURE__ */ t.jsx(_r, { content: l })
3270
3272
  ] }),
3271
3273
  /* @__PURE__ */ t.jsx("div", { className: "w-full bg-muted-foreground/20" }),
3272
3274
  /* @__PURE__ */ t.jsx(
3273
- fa,
3275
+ ha,
3274
3276
  {
3275
3277
  queryMutation: J,
3276
3278
  showLongRunningWarning: Ie,
3277
- isFinished: Sn,
3278
- progress: wn,
3279
+ isFinished: Nn,
3280
+ progress: Sn,
3279
3281
  tip: /* @__PURE__ */ t.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
3280
3282
  "Press",
3281
3283
  " ",
@@ -3286,7 +3288,7 @@ const me = "__none", ga = ({
3286
3288
  onCancel: () => {
3287
3289
  g.current?.abort(
3288
3290
  "Request cancelled by the user"
3289
- ), ee(!1);
3291
+ ), te(!1);
3290
3292
  }
3291
3293
  }
3292
3294
  )
@@ -3296,11 +3298,11 @@ const me = "__none", ga = ({
3296
3298
  ) })
3297
3299
  }
3298
3300
  );
3299
- }, xa = (e) => {
3300
- const [n, s] = E(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = fs();
3301
+ }, ga = (e) => {
3302
+ const [n, s] = k(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = hs();
3301
3303
  return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
3302
- /* @__PURE__ */ t.jsx(gs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
3303
- Zn,
3304
+ /* @__PURE__ */ t.jsx(fs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
3305
+ Kn,
3304
3306
  {
3305
3307
  className: "fill-muted-foreground group-hover:fill-foreground transition",
3306
3308
  size: 16,
@@ -3314,9 +3316,9 @@ const me = "__none", ga = ({
3314
3316
  "aria-describedby": void 0,
3315
3317
  showCloseButton: !0,
3316
3318
  children: [
3317
- /* @__PURE__ */ t.jsx(ps, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
3319
+ /* @__PURE__ */ t.jsx(ms, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
3318
3320
  n && /* @__PURE__ */ t.jsx(
3319
- ga,
3321
+ fa,
3320
3322
  {
3321
3323
  requiresLogin: a && !c && !i,
3322
3324
  onLogin: () => r(),
@@ -3328,7 +3330,7 @@ const me = "__none", ga = ({
3328
3330
  }
3329
3331
  )
3330
3332
  ] });
3331
- }, ya = {
3333
+ }, xa = {
3332
3334
  get: "green",
3333
3335
  post: "blue",
3334
3336
  put: "yellow",
@@ -3336,7 +3338,7 @@ const me = "__none", ga = ({
3336
3338
  patch: "purple",
3337
3339
  options: "gray",
3338
3340
  head: "gray"
3339
- }, Et = ({
3341
+ }, kt = ({
3340
3342
  label: e,
3341
3343
  path: n,
3342
3344
  operations: s,
@@ -3360,21 +3362,21 @@ const me = "__none", ga = ({
3360
3362
  badge: {
3361
3363
  label: o.method,
3362
3364
  // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
3363
- color: ya[o.method.toLowerCase()],
3365
+ color: xa[o.method.toLowerCase()],
3364
3366
  invert: !0
3365
3367
  }
3366
3368
  }))
3367
- }), xn = Vt(
3369
+ }), gn = zt(
3368
3370
  void 0
3369
- ), eo = xn.Provider, va = () => {
3370
- const e = ms(xn);
3371
+ ), to = gn.Provider, ya = () => {
3372
+ const e = us(gn);
3371
3373
  if (!e)
3372
3374
  throw new Error("useOasConfig must be used within a OasConfigProvider");
3373
3375
  return e.config;
3374
3376
  }, Qe = (e) => ({
3375
3377
  path: e.routePath,
3376
3378
  async lazy() {
3377
- const { OasProvider: n } = await import("./OasProvider-DSe-hk5Y.js");
3379
+ const { OasProvider: n } = await import("./OasProvider-oHPiMJZg.js");
3378
3380
  return {
3379
3381
  element: /* @__PURE__ */ t.jsx(
3380
3382
  n,
@@ -3388,28 +3390,28 @@ const me = "__none", ga = ({
3388
3390
  };
3389
3391
  },
3390
3392
  children: e.routes
3391
- }), yn = ({
3393
+ }), xn = ({
3392
3394
  path: e,
3393
3395
  tag: n,
3394
3396
  untagged: s
3395
3397
  }) => ({
3396
3398
  path: e,
3397
3399
  async lazy() {
3398
- const { OperationList: a } = await import("./OperationList-CaknPbvq.js");
3400
+ const { OperationList: a } = await import("./OperationList-CZ4OK8Pm.js");
3399
3401
  return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
3400
3402
  }
3401
- }), ba = ({
3403
+ }), va = ({
3402
3404
  render: e,
3403
3405
  path: n
3404
3406
  }) => {
3405
- const { type: s, input: a } = va(), { tag: r } = ts(), o = ns(), i = Sr(bn, { type: s, input: a }), {
3407
+ const { type: s, input: a } = ya(), { tag: r } = es(), o = ts(), i = Nr(vn, { type: s, input: a }), {
3406
3408
  data: { schema: c }
3407
- } = Ms(i), l = c.tags.at(0);
3409
+ } = qs(i), l = c.tags.at(0);
3408
3410
  return !r && l?.slug ? /* @__PURE__ */ t.jsx(
3409
- ss,
3411
+ ns,
3410
3412
  {
3411
3413
  to: {
3412
- pathname: rs(n, { tag: l.slug }),
3414
+ pathname: ss(n, { tag: l.slug }),
3413
3415
  search: o.search
3414
3416
  }
3415
3417
  }
@@ -3417,10 +3419,10 @@ const me = "__none", ga = ({
3417
3419
  }, Rt = ({ path: e }) => ({
3418
3420
  path: e,
3419
3421
  async lazy() {
3420
- const { OperationList: n } = await import("./OperationList-CaknPbvq.js");
3422
+ const { OperationList: n } = await import("./OperationList-CZ4OK8Pm.js");
3421
3423
  return {
3422
3424
  element: /* @__PURE__ */ t.jsx(
3423
- ba,
3425
+ va,
3424
3426
  {
3425
3427
  path: e,
3426
3428
  render: (s) => /* @__PURE__ */ t.jsx(n, { tag: s })
@@ -3430,7 +3432,7 @@ const me = "__none", ga = ({
3430
3432
  }
3431
3433
  }), Ke = (e) => [
3432
3434
  // Category without tagged operations
3433
- yn({
3435
+ xn({
3434
3436
  path: V(e, lt),
3435
3437
  untagged: !0
3436
3438
  }),
@@ -3438,42 +3440,45 @@ const me = "__none", ga = ({
3438
3440
  {
3439
3441
  path: V(e, "~schemas"),
3440
3442
  lazy: async () => {
3441
- const { SchemaList: n } = await import("./SchemaList-Dw3-CJPb.js");
3443
+ const { SchemaList: n } = await import("./SchemaList-DoQFkJgM.js");
3442
3444
  return { element: /* @__PURE__ */ t.jsx(n, {}) };
3443
3445
  }
3444
3446
  }
3445
- ], ja = (e, n) => {
3447
+ ], ba = (e, n) => {
3446
3448
  const s = V(e, n.at(0) ?? lt);
3447
3449
  return [
3448
3450
  // Redirect to first tag on the index route
3449
- { index: !0, loader: () => es(s) },
3451
+ { index: !0, loader: () => Yn(s) },
3450
3452
  // Create routes for each tag
3451
3453
  ...n.map(
3452
- (a) => yn({
3454
+ (a) => xn({
3453
3455
  path: V(e, a),
3454
3456
  tag: a
3455
3457
  })
3456
3458
  ),
3457
3459
  ...Ke(e)
3458
3460
  ];
3459
- }, vn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {} } : {
3461
+ }, yn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {}, downloadUrls: {} } : {
3460
3462
  versions: e.input.map((n) => n.path),
3461
3463
  labels: Object.fromEntries(
3462
3464
  e.input.map((n) => [n.path, n.label ?? n.path])
3465
+ ),
3466
+ downloadUrls: Object.fromEntries(
3467
+ e.input.map((n) => [n.path, n.downloadUrl])
3463
3468
  )
3464
- }, Ca = ({
3469
+ }, ja = ({
3465
3470
  basePath: e,
3466
3471
  config: n,
3467
3472
  client: s
3468
3473
  }) => {
3469
- const a = n.tagPages, { versions: r } = vn(n);
3474
+ const a = n.tagPages, { versions: r } = yn(n);
3470
3475
  return a ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3471
3476
  const c = V(e, i);
3472
3477
  return Qe({
3473
3478
  basePath: e,
3474
3479
  version: i,
3475
3480
  routePath: c,
3476
- routes: ja(c, a),
3481
+ routes: ba(c, a),
3477
3482
  client: s,
3478
3483
  config: n
3479
3484
  });
@@ -3502,7 +3507,7 @@ const me = "__none", ga = ({
3502
3507
  config: n
3503
3508
  })
3504
3509
  ];
3505
- }, bn = Er(`
3510
+ }, vn = Er(`
3506
3511
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3507
3512
  schema(input: $input, type: $type) {
3508
3513
  extensions
@@ -3525,8 +3530,8 @@ const me = "__none", ga = ({
3525
3530
  }
3526
3531
  }
3527
3532
  }
3528
- `), lt = "~endpoints", to = (e) => {
3529
- const n = V(e.path), s = new Gs(e);
3533
+ `), lt = "~endpoints", no = (e) => {
3534
+ const n = V(e.path), s = new Us(e);
3530
3535
  return {
3531
3536
  getHead: () => {
3532
3537
  if (e.type === "url" && !e.skipPreload)
@@ -3554,15 +3559,15 @@ const me = "__none", ga = ({
3554
3559
  if (!a)
3555
3560
  throw new Error("Server is required");
3556
3561
  return /* @__PURE__ */ t.jsx(
3557
- xa,
3562
+ ga,
3558
3563
  {
3559
3564
  url: o,
3560
3565
  method: r,
3561
3566
  server: a,
3562
3567
  ...c,
3563
- children: /* @__PURE__ */ t.jsx(Ft, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3568
+ children: /* @__PURE__ */ t.jsx(K, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3564
3569
  "Open in Playground",
3565
- /* @__PURE__ */ t.jsx(Yn, { size: 16 })
3570
+ /* @__PURE__ */ t.jsx(Zn, { size: 16 })
3566
3571
  ] }) })
3567
3572
  }
3568
3573
  );
@@ -3576,7 +3581,7 @@ const me = "__none", ga = ({
3576
3581
  a
3577
3582
  );
3578
3583
  try {
3579
- 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, {
3584
+ const i = o?.params.version, { versions: c } = yn(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 = ln(s, vn, {
3580
3585
  type: m,
3581
3586
  input: d
3582
3587
  }), x = await r.queryClient.ensureQueryData(f), h = new Map(
@@ -3586,7 +3591,7 @@ const me = "__none", ga = ({
3586
3591
  const j = V(n, i, N.slug), O = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
3587
3592
  return [
3588
3593
  N.name,
3589
- Et({
3594
+ kt({
3590
3595
  label: N.extensions?.["x-displayName"] ?? N.name,
3591
3596
  path: j,
3592
3597
  operations: N.operations,
@@ -3619,7 +3624,7 @@ const me = "__none", ga = ({
3619
3624
  (N) => !N.name
3620
3625
  )?.operations;
3621
3626
  return R && R.length > 0 && S.push(
3622
- Et({
3627
+ kt({
3623
3628
  label: S.length === 0 ? "Endpoints" : "Other endpoints",
3624
3629
  path: V(n, i, lt),
3625
3630
  operations: R,
@@ -3634,44 +3639,44 @@ const me = "__none", ga = ({
3634
3639
  return [];
3635
3640
  }
3636
3641
  },
3637
- getRoutes: () => Ca({ basePath: n, config: e, client: s })
3642
+ getRoutes: () => ja({ basePath: n, config: e, client: s })
3638
3643
  };
3639
3644
  };
3640
3645
  export {
3641
3646
  B as C,
3642
- Ya as G,
3643
- sr as L,
3644
- eo as O,
3645
- xa as P,
3646
- Ks as Q,
3647
- on as S,
3647
+ eo as G,
3648
+ nr as L,
3649
+ to as O,
3650
+ ga as P,
3651
+ Xs as Q,
3652
+ an as S,
3648
3653
  b as T,
3649
3654
  lt as U,
3650
- Sr as a,
3651
- ce as b,
3655
+ Nr as a,
3656
+ de as b,
3652
3657
  _ as c,
3653
3658
  Er as d,
3654
- Vr as e,
3655
- fn as f,
3656
- vn as g,
3657
- na as h,
3658
- Za as i,
3659
- qe as j,
3660
- an as k,
3661
- rt as l,
3662
- Ys as m,
3663
- tn as n,
3664
- jr as o,
3665
- nr as p,
3666
- Hs as q,
3667
- Cr as r,
3659
+ zr as e,
3660
+ hn as f,
3661
+ yn as g,
3662
+ ta as h,
3663
+ jr as i,
3664
+ Pt as j,
3665
+ Za as k,
3666
+ sr as l,
3667
+ rt as m,
3668
+ rn as n,
3669
+ Gs as o,
3670
+ br as p,
3671
+ qe as q,
3672
+ Hs as r,
3668
3673
  F as s,
3669
- Pt as t,
3670
- va as u,
3671
- Ka as v,
3672
- rr as w,
3673
- Qs as x,
3674
- bn as y,
3675
- to as z
3674
+ Ya as t,
3675
+ ya as u,
3676
+ tr as v,
3677
+ Zs as w,
3678
+ en as x,
3679
+ vn as y,
3680
+ no as z
3676
3681
  };
3677
- //# sourceMappingURL=index-BQB9hb6n.js.map
3682
+ //# sourceMappingURL=index-CyIW9rHv.js.map