zudoku 0.53.4 → 0.53.6

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 (233) hide show
  1. package/dist/config/validators/InputNavigationSchema.d.ts +64 -5
  2. package/dist/config/validators/InputNavigationSchema.js +0 -3
  3. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  4. package/dist/config/validators/InputNavigationSchema.test-d.js +0 -1
  5. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
  6. package/dist/config/validators/NavigationSchema.js +3 -2
  7. package/dist/config/validators/NavigationSchema.js.map +1 -1
  8. package/dist/config/validators/icon-types.d.ts +1 -1
  9. package/dist/config/validators/icon-types.js +16 -0
  10. package/dist/config/validators/icon-types.js.map +1 -1
  11. package/dist/config/validators/validate.d.ts +3 -0
  12. package/dist/config/validators/validate.js +1 -0
  13. package/dist/config/validators/validate.js.map +1 -1
  14. package/dist/flat-config.d.ts +2 -4
  15. package/dist/lib/components/Header.js +1 -1
  16. package/dist/lib/components/Header.js.map +1 -1
  17. package/dist/lib/components/Markdown.js +2 -2
  18. package/dist/lib/components/Markdown.js.map +1 -1
  19. package/dist/lib/components/NotFoundPage.js +1 -1
  20. package/dist/lib/components/NotFoundPage.js.map +1 -1
  21. package/dist/lib/components/Typography.d.ts +1 -1
  22. package/dist/lib/components/Typography.js +1 -1
  23. package/dist/lib/components/Typography.js.map +1 -1
  24. package/dist/lib/core/ZudokuContext.d.ts +1 -0
  25. package/dist/lib/core/ZudokuContext.js.map +1 -1
  26. package/dist/lib/errors/ErrorAlert.js +1 -1
  27. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  28. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  29. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  30. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  31. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  32. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  33. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  34. package/dist/lib/plugins/openapi/playground/Playground.js +4 -2
  35. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  36. package/dist/lib/ui/CodeBlock.js +1 -1
  37. package/dist/lib/ui/CodeBlock.js.map +1 -1
  38. package/dist/lib/ui/EmbeddedCodeBlock.js +1 -1
  39. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  40. package/dist/vite/dev-server.js +9 -1
  41. package/dist/vite/dev-server.js.map +1 -1
  42. package/dist/vite/plugin-docs.js +20 -13
  43. package/dist/vite/plugin-docs.js.map +1 -1
  44. package/dist/vite/plugin-theme.js +88 -49
  45. package/dist/vite/plugin-theme.js.map +1 -1
  46. package/dist/vite/plugin-theme.test.js +25 -4
  47. package/dist/vite/plugin-theme.test.js.map +1 -1
  48. package/lib/{Alert-SijAp9LN.js → Alert-CWApD0CL.js} +3 -3
  49. package/lib/{Alert-SijAp9LN.js.map → Alert-CWApD0CL.js.map} +1 -1
  50. package/lib/{Button-BE9IVkWV.js → Button-B3o-2Xdf.js} +2 -2
  51. package/lib/{Button-BE9IVkWV.js.map → Button-B3o-2Xdf.js.map} +1 -1
  52. package/lib/CallbackHandler-Dr5Lva9x.js +38 -0
  53. package/lib/CallbackHandler-Dr5Lva9x.js.map +1 -0
  54. package/lib/{Card-DPhGbYUM.js → Card-CMDQUPM4.js} +2 -2
  55. package/lib/{Card-DPhGbYUM.js.map → Card-CMDQUPM4.js.map} +1 -1
  56. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  57. package/lib/{CodeBlock-DAKxs_Tu.js → CodeBlock-B-G0eKtw.js} +3 -3
  58. package/lib/{CodeBlock-DAKxs_Tu.js.map → CodeBlock-B-G0eKtw.js.map} +1 -1
  59. package/lib/{Command-xsbs2uhf.js → Command-C9AC5cf-.js} +3 -3
  60. package/lib/{Command-xsbs2uhf.js.map → Command-C9AC5cf-.js.map} +1 -1
  61. package/lib/{Dialog-CiIdyz6a.js → Dialog-DMWw1doX.js} +2 -2
  62. package/lib/{Dialog-CiIdyz6a.js.map → Dialog-DMWw1doX.js.map} +1 -1
  63. package/lib/{Drawer-BzkOKwgC.js → Drawer-DJ05s2pH.js} +86 -86
  64. package/lib/{Drawer-BzkOKwgC.js.map → Drawer-DJ05s2pH.js.map} +1 -1
  65. package/lib/{MdxPage-BFKqQsmK.js → MdxPage-DVI4iYgW.js} +7 -7
  66. package/lib/{MdxPage-BFKqQsmK.js.map → MdxPage-DVI4iYgW.js.map} +1 -1
  67. package/lib/{OasProvider-Bdyvd6Ic.js → OasProvider-CbwsKPNc.js} +2 -2
  68. package/lib/{OasProvider-Bdyvd6Ic.js.map → OasProvider-CbwsKPNc.js.map} +1 -1
  69. package/lib/{OperationList-YZ7k-Rkt.js → OperationList-Bn9ggxw8.js} +12 -12
  70. package/lib/OperationList-Bn9ggxw8.js.map +1 -0
  71. package/lib/{Pagination-EViy7EHt.js → Pagination-bavPec-z.js} +3 -3
  72. package/lib/{Pagination-EViy7EHt.js.map → Pagination-bavPec-z.js.map} +1 -1
  73. package/lib/{RouteGuard-CX6A77iy.js → RouteGuard-Vnlz_t51.js} +2 -2
  74. package/lib/{RouteGuard-CX6A77iy.js.map → RouteGuard-Vnlz_t51.js.map} +1 -1
  75. package/lib/{SchemaList--_f8Azv0.js → SchemaList-DETyCVqu.js} +8 -8
  76. package/lib/{SchemaList--_f8Azv0.js.map → SchemaList-DETyCVqu.js.map} +1 -1
  77. package/lib/{SchemaView-7XWvSrbX.js → SchemaView-Dvxo2RNe.js} +6 -6
  78. package/lib/{SchemaView-7XWvSrbX.js.map → SchemaView-Dvxo2RNe.js.map} +1 -1
  79. package/lib/{SignUp-CXCezG-m.js → SignUp-ClYhZq9H.js} +3 -3
  80. package/lib/{SignUp-CXCezG-m.js.map → SignUp-ClYhZq9H.js.map} +1 -1
  81. package/lib/{Slot-tFjhrd8V.js → Slot-B31yZlfB.js} +316 -336
  82. package/lib/{Slot-tFjhrd8V.js.map → Slot-B31yZlfB.js.map} +1 -1
  83. package/lib/Spinner-mNLZ6awP.js.map +1 -1
  84. package/lib/{SyntaxHighlight-Bp_UsIXG.js → SyntaxHighlight-bm761HDo.js} +3 -3
  85. package/lib/{SyntaxHighlight-Bp_UsIXG.js.map → SyntaxHighlight-bm761HDo.js.map} +1 -1
  86. package/lib/{Toc-Ck0YQtmd.js → Toc-D4oBWE8D.js} +3 -3
  87. package/lib/{Toc-Ck0YQtmd.js.map → Toc-D4oBWE8D.js.map} +1 -1
  88. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +1 -1
  89. package/lib/{circular-BtKlhs07.js → circular-CRbFI6Zl.js} +2 -2
  90. package/lib/{circular-BtKlhs07.js.map → circular-CRbFI6Zl.js.map} +1 -1
  91. package/lib/{cn-wvCW-ho6.js → cn-dYga0KKN.js} +2 -2
  92. package/lib/cn-dYga0KKN.js.map +1 -0
  93. package/lib/{createServer-Di2U1Dg0.js → createServer-DNyGJJNX.js} +3398 -3552
  94. package/lib/createServer-DNyGJJNX.js.map +1 -0
  95. package/lib/errors-C1GlNcV3.js +44 -0
  96. package/lib/errors-C1GlNcV3.js.map +1 -0
  97. package/lib/hook-CZjW2buS.js.map +1 -1
  98. package/lib/index-Bm35Tkgf.js.map +1 -1
  99. package/lib/{index-CeQqiMIG.js → index-CZTEgYDd.js} +2 -2
  100. package/lib/{index-CeQqiMIG.js.map → index-CZTEgYDd.js.map} +1 -1
  101. package/lib/{index-BTqwnlI5.js → index-C_PXQ8Bx.js} +612 -610
  102. package/lib/{index-BTqwnlI5.js.map → index-C_PXQ8Bx.js.map} +1 -1
  103. package/lib/index-CrcNWbel.js.map +1 -1
  104. package/lib/{index-DKCEJ4Kd.js → index-D09PbNex.js} +911 -911
  105. package/lib/index-D09PbNex.js.map +1 -0
  106. package/lib/index-DI5SPFK9.js.map +1 -1
  107. package/lib/index-DmNq2fbN.js.map +1 -1
  108. package/lib/index.esm-Cp4wkyud.js.map +1 -1
  109. package/lib/invariant-DAFpPywt.js.map +1 -1
  110. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -1
  111. package/lib/processors/removeExtensions.js.map +1 -1
  112. package/lib/processors/removeParameters.js.map +1 -1
  113. package/lib/processors/removePaths.js.map +1 -1
  114. package/lib/processors/traverse.js.map +1 -1
  115. package/lib/ui/Accordion.js +1 -1
  116. package/lib/ui/Accordion.js.map +1 -1
  117. package/lib/ui/ActionButton.js +2 -2
  118. package/lib/ui/ActionButton.js.map +1 -1
  119. package/lib/ui/Alert.js +1 -1
  120. package/lib/ui/Alert.js.map +1 -1
  121. package/lib/ui/AlertDialog.js +1 -1
  122. package/lib/ui/AlertDialog.js.map +1 -1
  123. package/lib/ui/Badge.js +1 -1
  124. package/lib/ui/Badge.js.map +1 -1
  125. package/lib/ui/Breadcrumb.js +1 -1
  126. package/lib/ui/Breadcrumb.js.map +1 -1
  127. package/lib/ui/Button.js +1 -1
  128. package/lib/ui/Button.js.map +1 -1
  129. package/lib/ui/Callout.js +1 -1
  130. package/lib/ui/Callout.js.map +1 -1
  131. package/lib/ui/Card.js +1 -1
  132. package/lib/ui/Card.js.map +1 -1
  133. package/lib/ui/Carousel.js +1 -1
  134. package/lib/ui/Carousel.js.map +1 -1
  135. package/lib/ui/Checkbox.js +1 -1
  136. package/lib/ui/Checkbox.js.map +1 -1
  137. package/lib/ui/CodeBlock.js +2 -2
  138. package/lib/ui/Command.js +2 -2
  139. package/lib/ui/Command.js.map +1 -1
  140. package/lib/ui/Dialog.js +1 -1
  141. package/lib/ui/Dialog.js.map +1 -1
  142. package/lib/ui/Drawer.js +2 -2
  143. package/lib/ui/DropdownMenu.js +1 -1
  144. package/lib/ui/DropdownMenu.js.map +1 -1
  145. package/lib/ui/EmbeddedCodeBlock.js +2 -2
  146. package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  147. package/lib/ui/Form.js +1 -1
  148. package/lib/ui/Form.js.map +1 -1
  149. package/lib/ui/HoverCard.js +1 -1
  150. package/lib/ui/HoverCard.js.map +1 -1
  151. package/lib/ui/Input.js +1 -1
  152. package/lib/ui/Input.js.map +1 -1
  153. package/lib/ui/Label.js +1 -1
  154. package/lib/ui/Label.js.map +1 -1
  155. package/lib/ui/Pagination.js +1 -1
  156. package/lib/ui/Pagination.js.map +1 -1
  157. package/lib/ui/Popover.js +1 -1
  158. package/lib/ui/Popover.js.map +1 -1
  159. package/lib/ui/Progress.js +1 -1
  160. package/lib/ui/Progress.js.map +1 -1
  161. package/lib/ui/RadioGroup.js +1 -1
  162. package/lib/ui/RadioGroup.js.map +1 -1
  163. package/lib/ui/ScrollArea.js +1 -1
  164. package/lib/ui/ScrollArea.js.map +1 -1
  165. package/lib/ui/Select.js +1 -1
  166. package/lib/ui/Select.js.map +1 -1
  167. package/lib/ui/Skeleton.js +1 -1
  168. package/lib/ui/Skeleton.js.map +1 -1
  169. package/lib/ui/Slider.js +1 -1
  170. package/lib/ui/Slider.js.map +1 -1
  171. package/lib/ui/Stepper.js.map +1 -1
  172. package/lib/ui/Switch.js +1 -1
  173. package/lib/ui/Switch.js.map +1 -1
  174. package/lib/ui/SyntaxHighlight.js +2 -2
  175. package/lib/ui/Tabs.js +1 -1
  176. package/lib/ui/Tabs.js.map +1 -1
  177. package/lib/ui/Textarea.js +1 -1
  178. package/lib/ui/Textarea.js.map +1 -1
  179. package/lib/ui/Toggle.js +1 -1
  180. package/lib/ui/Toggle.js.map +1 -1
  181. package/lib/ui/ToggleGroup.js +1 -1
  182. package/lib/ui/ToggleGroup.js.map +1 -1
  183. package/lib/ui/Tooltip.js +1 -1
  184. package/lib/ui/Tooltip.js.map +1 -1
  185. package/lib/ui/util.js +1 -1
  186. package/lib/useExposedProps-BIYjecPD.js.map +1 -1
  187. package/lib/zudoku.auth-auth0.js.map +1 -1
  188. package/lib/zudoku.auth-azureb2c.js +40 -9882
  189. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  190. package/lib/zudoku.auth-clerk.js +2 -2
  191. package/lib/zudoku.auth-clerk.js.map +1 -1
  192. package/lib/zudoku.auth-openid.js +20 -19
  193. package/lib/zudoku.auth-openid.js.map +1 -1
  194. package/lib/zudoku.auth-supabase.js +97 -0
  195. package/lib/zudoku.auth-supabase.js.map +1 -0
  196. package/lib/zudoku.components.js +3 -3
  197. package/lib/zudoku.hooks.js.map +1 -1
  198. package/lib/zudoku.icons.js.map +1 -1
  199. package/lib/zudoku.plugin-api-catalog.js +4 -4
  200. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  201. package/lib/zudoku.plugin-api-keys.js +266 -263
  202. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  203. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  204. package/lib/zudoku.plugin-markdown.js +1 -1
  205. package/lib/zudoku.plugin-markdown.js.map +1 -1
  206. package/lib/zudoku.plugin-openapi.js +1 -1
  207. package/lib/zudoku.plugin-redirect.js.map +1 -1
  208. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  209. package/lib/zudoku.plugin-search-pagefind.js +5 -5
  210. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  211. package/lib/zudoku.plugins.js.map +1 -1
  212. package/package.json +18 -18
  213. package/src/app/main.css +26 -5
  214. package/src/lib/components/Header.tsx +1 -1
  215. package/src/lib/components/Markdown.tsx +3 -3
  216. package/src/lib/components/NotFoundPage.tsx +3 -2
  217. package/src/lib/components/Typography.tsx +1 -1
  218. package/src/lib/core/ZudokuContext.ts +1 -0
  219. package/src/lib/errors/ErrorAlert.tsx +5 -7
  220. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  221. package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -1
  222. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  223. package/src/lib/plugins/openapi/playground/Playground.tsx +8 -2
  224. package/src/lib/ui/CodeBlock.tsx +1 -1
  225. package/src/lib/ui/EmbeddedCodeBlock.tsx +1 -1
  226. package/lib/OperationList-YZ7k-Rkt.js.map +0 -1
  227. package/lib/clerk-BDZ31hjU.js +0 -25190
  228. package/lib/clerk-BDZ31hjU.js.map +0 -1
  229. package/lib/cn-wvCW-ho6.js.map +0 -1
  230. package/lib/createServer-Di2U1Dg0.js.map +0 -1
  231. package/lib/errors-Dv_yAK6M.js +0 -78
  232. package/lib/errors-Dv_yAK6M.js.map +0 -1
  233. package/lib/index-DKCEJ4Kd.js.map +0 -1
@@ -1,49 +1,49 @@
1
1
  import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
- import { ChevronDown as xt, ChevronUp as jn, Check as gt, ChevronUpIcon as Nn, ChevronRightIcon as wn, CheckIcon as yt, DotIcon as Cn, PlusCircleIcon as fe, FileInput as Sn, TableOfContentsIcon as Tn, LockIcon as An, CircleAlertIcon as On, XIcon as vt, Circle as Rn, Unlink2Icon as Pn, CornerDownRightIcon as Ln, CornerDownLeftIcon as $n, DownloadIcon as En, UnplugIcon as In, SendIcon as kn, CopyIcon as Dn, IdCardLanyardIcon as zn, ShapesIcon as Fn, LogInIcon as qn, CirclePlayIcon as Vn } from "lucide-react";
3
- import { r as Bn, c as _n, u as Un, N as Mn, g as Gn, m as rt } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
4
- import { o as $e, p as Ee, q as bt, d as Hn, l as Qn, r as Jn, j as I, c as Wn, e as Xn } from "./hook-CZjW2buS.js";
5
- import { Button as se } from "./ui/Button.js";
6
- import { Z as Zn, i as Yn } from "./invariant-DAFpPywt.js";
2
+ import { ChevronDown as yt, ChevronUp as wn, Check as vt, ChevronUpIcon as Cn, ChevronRightIcon as Sn, CheckIcon as bt, DotIcon as Tn, PlusCircleIcon as fe, FileInput as An, TableOfContentsIcon as On, LockIcon as Rn, CircleAlertIcon as Pn, XIcon as jt, Circle as Ln, Unlink2Icon as $n, CornerDownRightIcon as En, CornerDownLeftIcon as In, DownloadIcon as kn, UnplugIcon as Dn, SendIcon as zn, CopyIcon as Fn, IdCardLanyardIcon as qn, ShapesIcon as Vn, LogInIcon as Bn, CirclePlayIcon as _n } from "lucide-react";
3
+ import { r as Un, c as Mn, u as Gn, N as Hn, g as Qn, m as ot } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
4
+ import { o as $e, p as Ee, q as Nt, d as Jn, l as Wn, r as Xn, j as I, c as Zn, e as Yn } from "./hook-CZjW2buS.js";
5
+ import { Button as re } from "./ui/Button.js";
6
+ import { Z as Kn, i as es } from "./invariant-DAFpPywt.js";
7
7
  import * as w from "react";
8
- import { createContext as jt, use as Kn, useRef as L, useEffect as z, useMemo as Nt, useState as k, useCallback as wt, Fragment as K, useLayoutEffect as es, useTransition as ts, useContext as ns } from "react";
9
- import { VisuallyHidden as ss } from "@radix-ui/react-visually-hidden";
10
- import { D as Ie, a as ke, b as De, d as Ct, f as St, e as rs } from "./Dialog-CiIdyz6a.js";
11
- import { S as as, a as os } from "./index-DKCEJ4Kd.js";
12
- import { A as is, a as cs, b as ls, u as ds } from "./Alert-SijAp9LN.js";
13
- import { u as oe, a as ze, C as F, b as us, F as ms } from "./index.esm-Cp4wkyud.js";
14
- import { B as E } from "./Button-BE9IVkWV.js";
8
+ import { createContext as wt, use as ts, useRef as L, useEffect as z, useMemo as Ct, useState as k, useCallback as St, Fragment as ee, useLayoutEffect as ns, useTransition as ss, useContext as rs } from "react";
9
+ import { VisuallyHidden as as } from "@radix-ui/react-visually-hidden";
10
+ import { D as Ie, a as ke, b as De, d as Tt, f as At, e as os } from "./Dialog-DMWw1doX.js";
11
+ import { S as is, a as cs } from "./index-D09PbNex.js";
12
+ import { A as ls, a as ds, b as us, u as ms } from "./Alert-CWApD0CL.js";
13
+ import { u as ie, a as ze, C as F, b as ps, F as hs } from "./index.esm-Cp4wkyud.js";
14
+ import { B as E } from "./Button-B3o-2Xdf.js";
15
15
  import * as Fe from "@radix-ui/react-collapsible";
16
16
  import * as S from "@radix-ui/react-select";
17
- import { c as v } from "./cn-wvCW-ho6.js";
18
- import { b as at, c as ot, d as it, f as ps } from "./Slot-tFjhrd8V.js";
19
- import { u as hs } from "./CodeBlock-DAKxs_Tu.js";
20
- import { u as fs } from "./RouteGuard-CX6A77iy.js";
17
+ import { c as v } from "./cn-dYga0KKN.js";
18
+ import { b as it, c as ct, d as lt, f as fs } from "./Slot-B31yZlfB.js";
19
+ import { u as xs } from "./CodeBlock-B-G0eKtw.js";
20
+ import { u as gs } from "./RouteGuard-Vnlz_t51.js";
21
21
  import * as C from "@radix-ui/react-dropdown-menu";
22
22
  import * as Re from "@radix-ui/react-checkbox";
23
23
  import * as ue from "@radix-ui/react-popover";
24
- import { PopoverAnchor as xs } from "@radix-ui/react-popover";
25
- import { P as gs } from "./index-CrcNWbel.js";
26
- import { f as ys, g as vs, C as bs, b as js } from "./Command-xsbs2uhf.js";
24
+ import { PopoverAnchor as ys } from "@radix-ui/react-popover";
25
+ import { P as vs } from "./index-CrcNWbel.js";
26
+ import { f as bs, g as js, C as Ns, b as ws } from "./Command-C9AC5cf-.js";
27
27
  import { Input as me } from "./ui/Input.js";
28
- import { Slot as Ns } from "@radix-ui/react-slot";
29
- import { C as ws } from "./Card-DPhGbYUM.js";
30
- import * as Tt from "@radix-ui/react-label";
31
- import { c as Cs } from "./index-DI5SPFK9.js";
32
- import * as re from "@radix-ui/react-radio-group";
33
- import { z as Ss } from "./index-Bm35Tkgf.js";
34
- import { h as Ts } from "./SyntaxHighlight-Bp_UsIXG.js";
28
+ import { Slot as Cs } from "@radix-ui/react-slot";
29
+ import { C as Ss } from "./Card-CMDQUPM4.js";
30
+ import * as Ot from "@radix-ui/react-label";
31
+ import { c as Ts } from "./index-DI5SPFK9.js";
32
+ import * as ae from "@radix-ui/react-radio-group";
33
+ import { z as As } from "./index-Bm35Tkgf.js";
34
+ import { h as Os } from "./SyntaxHighlight-bm761HDo.js";
35
35
  let Ne;
36
- const As = (e) => {
36
+ const Rs = (e) => {
37
37
  if (e.errors?.[0])
38
- throw new Zn(e.errors[0].message, {
38
+ throw new Kn(e.errors[0].message, {
39
39
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
40
40
  });
41
41
  };
42
- class Os {
42
+ class Ps {
43
43
  constructor(t) {
44
44
  this.config = t;
45
45
  }
46
- #e = async () => (Ne || (Ne = import("./createServer-Di2U1Dg0.js").then(
46
+ #e = async () => (Ne || (Ne = import("./createServer-DNyGJJNX.js").then(
47
47
  (t) => t.createServer(this.config)
48
48
  )), Ne);
49
49
  #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
@@ -56,27 +56,27 @@ class Os {
56
56
  if (!r.ok)
57
57
  throw new Error("Network response was not ok");
58
58
  const o = await r.json();
59
- return As(o), o.data;
59
+ return Rs(o), o.data;
60
60
  };
61
61
  }
62
62
  function we(e, t) {
63
63
  if (!!!e)
64
64
  throw new Error(t);
65
65
  }
66
- function Rs(e) {
66
+ function Ls(e) {
67
67
  return typeof e == "object" && e !== null;
68
68
  }
69
- function Ps(e, t) {
69
+ function $s(e, t) {
70
70
  if (!!!e)
71
71
  throw new Error(
72
72
  t ?? "Unexpected invariant triggered."
73
73
  );
74
74
  }
75
- const Ls = /\r\n|[\n\r]/g;
75
+ const Es = /\r\n|[\n\r]/g;
76
76
  function Pe(e, t) {
77
77
  let s = 0, a = 1;
78
- for (const r of e.body.matchAll(Ls)) {
79
- if (typeof r.index == "number" || Ps(!1), r.index >= t)
78
+ for (const r of e.body.matchAll(Es)) {
79
+ if (typeof r.index == "number" || $s(!1), r.index >= t)
80
80
  break;
81
81
  s = r.index + r[0].length, a += 1;
82
82
  }
@@ -85,40 +85,40 @@ function Pe(e, t) {
85
85
  column: t + 1 - s
86
86
  };
87
87
  }
88
- function $s(e) {
89
- return At(
88
+ function Is(e) {
89
+ return Rt(
90
90
  e.source,
91
91
  Pe(e.source, e.start)
92
92
  );
93
93
  }
94
- function At(e, t) {
94
+ function Rt(e, t) {
95
95
  const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, l = t.line === 1 ? s : 0, c = t.column + l, u = `${e.name}:${i}:${c}
96
- `, d = a.split(/\r\n|[\n\r]/g), p = d[r];
97
- if (p.length > 120) {
98
- const h = Math.floor(c / 80), m = c % 80, x = [];
99
- for (let y = 0; y < p.length; y += 80)
100
- x.push(p.slice(y, y + 80));
101
- return u + ct([
96
+ `, d = a.split(/\r\n|[\n\r]/g), h = d[r];
97
+ if (h.length > 120) {
98
+ const f = Math.floor(c / 80), m = c % 80, x = [];
99
+ for (let y = 0; y < h.length; y += 80)
100
+ x.push(h.slice(y, y + 80));
101
+ return u + dt([
102
102
  [`${i} |`, x[0]],
103
- ...x.slice(1, h + 1).map((y) => ["|", y]),
103
+ ...x.slice(1, f + 1).map((y) => ["|", y]),
104
104
  ["|", "^".padStart(m)],
105
- ["|", x[h + 1]]
105
+ ["|", x[f + 1]]
106
106
  ]);
107
107
  }
108
- return u + ct([
108
+ return u + dt([
109
109
  // Lines specified like this: ["prefix", "string"],
110
110
  [`${i - 1} |`, d[r - 1]],
111
- [`${i} |`, p],
111
+ [`${i} |`, h],
112
112
  ["|", "^".padStart(c)],
113
113
  [`${i + 1} |`, d[r + 1]]
114
114
  ]);
115
115
  }
116
- function ct(e) {
116
+ function dt(e) {
117
117
  const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
118
118
  return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
119
119
  `);
120
120
  }
121
- function Es(e) {
121
+ function ks(e) {
122
122
  const t = e[0];
123
123
  return t == null || "kind" in t || "length" in t ? {
124
124
  nodes: t,
@@ -170,18 +170,18 @@ class qe extends Error {
170
170
  */
171
171
  constructor(t, ...s) {
172
172
  var a, r, o;
173
- const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: p } = Es(s);
174
- super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = lt(
173
+ const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = ks(s);
174
+ super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ut(
175
175
  Array.isArray(i) ? i : i ? [i] : void 0
176
176
  );
177
- const h = lt(
177
+ const f = ut(
178
178
  (a = this.nodes) === null || a === void 0 ? void 0 : a.map((x) => x.loc).filter((x) => x != null)
179
179
  );
180
- this.source = l ?? (h == null || (r = h[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? h?.map((x) => x.start), this.locations = c && l ? c.map((x) => Pe(l, x)) : h?.map((x) => Pe(x.source, x.start));
181
- const m = Rs(
180
+ this.source = l ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? f?.map((x) => x.start), this.locations = c && l ? c.map((x) => Pe(l, x)) : f?.map((x) => Pe(x.source, x.start));
181
+ const m = Ls(
182
182
  d?.extensions
183
183
  ) ? d?.extensions : void 0;
184
- this.extensions = (o = p ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
184
+ this.extensions = (o = h ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
185
185
  message: {
186
186
  writable: !0,
187
187
  enumerable: !0
@@ -220,12 +220,12 @@ class qe extends Error {
220
220
  for (const s of this.nodes)
221
221
  s.loc && (t += `
222
222
 
223
- ` + $s(s.loc));
223
+ ` + Is(s.loc));
224
224
  else if (this.source && this.locations)
225
225
  for (const s of this.locations)
226
226
  t += `
227
227
 
228
- ` + At(this.source, s);
228
+ ` + Rt(this.source, s);
229
229
  return t;
230
230
  }
231
231
  toJSON() {
@@ -235,7 +235,7 @@ class qe extends Error {
235
235
  return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
236
236
  }
237
237
  }
238
- function lt(e) {
238
+ function ut(e) {
239
239
  return e === void 0 || e.length === 0 ? void 0 : e;
240
240
  }
241
241
  function $(e, t, s) {
@@ -244,7 +244,7 @@ function $(e, t, s) {
244
244
  positions: [t]
245
245
  });
246
246
  }
247
- class Ma {
247
+ class Ha {
248
248
  /**
249
249
  * The character offset at which this Node begins.
250
250
  */
@@ -273,7 +273,7 @@ class Ma {
273
273
  };
274
274
  }
275
275
  }
276
- class Ot {
276
+ class Pt {
277
277
  /**
278
278
  * The kind of Token.
279
279
  */
@@ -315,7 +315,7 @@ class Ot {
315
315
  };
316
316
  }
317
317
  }
318
- const Is = {
318
+ const Ds = {
319
319
  Name: [],
320
320
  Document: ["definitions"],
321
321
  OperationDefinition: [
@@ -389,37 +389,37 @@ const Is = {
389
389
  UnionTypeExtension: ["name", "directives", "types"],
390
390
  EnumTypeExtension: ["name", "directives", "values"],
391
391
  InputObjectTypeExtension: ["name", "directives", "fields"]
392
- }, ks = new Set(Object.keys(Is));
393
- function Ga(e) {
392
+ }, zs = new Set(Object.keys(Ds));
393
+ function Qa(e) {
394
394
  const t = e?.kind;
395
- return typeof t == "string" && ks.has(t);
395
+ return typeof t == "string" && zs.has(t);
396
396
  }
397
- var dt;
397
+ var mt;
398
398
  (function(e) {
399
399
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
400
- })(dt || (dt = {}));
400
+ })(mt || (mt = {}));
401
401
  function Le(e) {
402
402
  return e === 9 || e === 32;
403
403
  }
404
- function ae(e) {
404
+ function oe(e) {
405
405
  return e >= 48 && e <= 57;
406
406
  }
407
- function Rt(e) {
407
+ function Lt(e) {
408
408
  return e >= 97 && e <= 122 || // A-Z
409
409
  e >= 65 && e <= 90;
410
410
  }
411
- function Pt(e) {
412
- return Rt(e) || e === 95;
411
+ function $t(e) {
412
+ return Lt(e) || e === 95;
413
413
  }
414
- function Ds(e) {
415
- return Rt(e) || ae(e) || e === 95;
414
+ function Fs(e) {
415
+ return Lt(e) || oe(e) || e === 95;
416
416
  }
417
- function zs(e) {
417
+ function qs(e) {
418
418
  var t;
419
419
  let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
420
420
  for (let i = 0; i < e.length; ++i) {
421
421
  var o;
422
- const l = e[i], c = Fs(l);
422
+ const l = e[i], c = Vs(l);
423
423
  c !== l.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && c < s && (s = c));
424
424
  }
425
425
  return e.map((i, l) => l === 0 ? i : i.slice(s)).slice(
@@ -427,26 +427,26 @@ function zs(e) {
427
427
  r + 1
428
428
  );
429
429
  }
430
- function Fs(e) {
430
+ function Vs(e) {
431
431
  let t = 0;
432
432
  for (; t < e.length && Le(e.charCodeAt(t)); )
433
433
  ++t;
434
434
  return t;
435
435
  }
436
- function qs(e, t) {
436
+ function Bs(e, t) {
437
437
  const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((m) => m.length === 0 || Le(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
438
438
  (!r || e.length > 70 || u || o || i);
439
- let p = "";
440
- const h = r && Le(e.charCodeAt(0));
441
- return (d && !h || o) && (p += `
442
- `), p += s, (d || u) && (p += `
443
- `), '"""' + p + '"""';
439
+ let h = "";
440
+ const f = r && Le(e.charCodeAt(0));
441
+ return (d && !f || o) && (h += `
442
+ `), h += s, (d || u) && (h += `
443
+ `), '"""' + h + '"""';
444
444
  }
445
445
  var g;
446
446
  (function(e) {
447
447
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
448
448
  })(g || (g = {}));
449
- class Vs {
449
+ class _s {
450
450
  /**
451
451
  * The previously focused non-ignored token.
452
452
  */
@@ -460,7 +460,7 @@ class Vs {
460
460
  * The character offset at which the current line begins.
461
461
  */
462
462
  constructor(t) {
463
- const s = new Ot(g.SOF, 0, 0, 0, 0);
463
+ const s = new Pt(g.SOF, 0, 0, 0, 0);
464
464
  this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
465
465
  }
466
466
  get [Symbol.toStringTag]() {
@@ -483,26 +483,26 @@ class Vs {
483
483
  if (t.next)
484
484
  t = t.next;
485
485
  else {
486
- const s = _s(this, t.end);
486
+ const s = Ms(this, t.end);
487
487
  t.next = s, s.prev = t, t = s;
488
488
  }
489
489
  while (t.kind === g.COMMENT);
490
490
  return t;
491
491
  }
492
492
  }
493
- function Bs(e) {
493
+ function Us(e) {
494
494
  return e === g.BANG || e === g.DOLLAR || e === g.AMP || e === g.PAREN_L || e === g.PAREN_R || e === g.SPREAD || e === g.COLON || e === g.EQUALS || e === g.AT || e === g.BRACKET_L || e === g.BRACKET_R || e === g.BRACE_L || e === g.PIPE || e === g.BRACE_R;
495
495
  }
496
- function Z(e) {
496
+ function Y(e) {
497
497
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
498
498
  }
499
499
  function xe(e, t) {
500
- return Lt(e.charCodeAt(t)) && $t(e.charCodeAt(t + 1));
500
+ return Et(e.charCodeAt(t)) && It(e.charCodeAt(t + 1));
501
501
  }
502
- function Lt(e) {
502
+ function Et(e) {
503
503
  return e >= 55296 && e <= 56319;
504
504
  }
505
- function $t(e) {
505
+ function It(e) {
506
506
  return e >= 56320 && e <= 57343;
507
507
  }
508
508
  function U(e, t) {
@@ -517,9 +517,9 @@ function U(e, t) {
517
517
  }
518
518
  function T(e, t, s, a, r) {
519
519
  const o = e.line, i = 1 + s - e.lineStart;
520
- return new Ot(t, s, a, o, i, r);
520
+ return new Pt(t, s, a, o, i, r);
521
521
  }
522
- function _s(e, t) {
522
+ function Ms(e, t) {
523
523
  const s = e.source.body, a = s.length;
524
524
  let r = t;
525
525
  for (; r < a; ) {
@@ -560,7 +560,7 @@ function _s(e, t) {
560
560
  continue;
561
561
  // Comment
562
562
  case 35:
563
- return Us(e, r);
563
+ return Gs(e, r);
564
564
  // Token ::
565
565
  // - Punctuator
566
566
  // - Name
@@ -601,28 +601,28 @@ function _s(e, t) {
601
601
  return T(e, g.BRACE_R, r, r + 1);
602
602
  // StringValue
603
603
  case 34:
604
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ws(e, r) : Gs(e, r);
604
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Zs(e, r) : Qs(e, r);
605
605
  }
606
- if (ae(o) || o === 45)
607
- return Ms(e, r, o);
608
- if (Pt(o))
609
- return Xs(e, r);
606
+ if (oe(o) || o === 45)
607
+ return Hs(e, r, o);
608
+ if ($t(o))
609
+ return Ys(e, r);
610
610
  throw $(
611
611
  e.source,
612
612
  r,
613
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(o) || xe(s, r) ? `Unexpected character: ${U(e, r)}.` : `Invalid character: ${U(e, r)}.`
613
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Y(o) || xe(s, r) ? `Unexpected character: ${U(e, r)}.` : `Invalid character: ${U(e, r)}.`
614
614
  );
615
615
  }
616
616
  return T(e, g.EOF, a, a);
617
617
  }
618
- function Us(e, t) {
618
+ function Gs(e, t) {
619
619
  const s = e.source.body, a = s.length;
620
620
  let r = t + 1;
621
621
  for (; r < a; ) {
622
622
  const o = s.charCodeAt(r);
623
623
  if (o === 10 || o === 13)
624
624
  break;
625
- if (Z(o))
625
+ if (Y(o))
626
626
  ++r;
627
627
  else if (xe(s, r))
628
628
  r += 2;
@@ -637,11 +637,11 @@ function Us(e, t) {
637
637
  s.slice(t + 1, r)
638
638
  );
639
639
  }
640
- function Ms(e, t, s) {
640
+ function Hs(e, t, s) {
641
641
  const a = e.source.body;
642
642
  let r = t, o = s, i = !1;
643
643
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
644
- if (o = a.charCodeAt(++r), ae(o))
644
+ if (o = a.charCodeAt(++r), oe(o))
645
645
  throw $(
646
646
  e.source,
647
647
  r,
@@ -652,7 +652,7 @@ function Ms(e, t, s) {
652
652
  );
653
653
  } else
654
654
  r = Ce(e, r, o), o = a.charCodeAt(r);
655
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ce(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Ce(e, r, o), o = a.charCodeAt(r)), o === 46 || Pt(o))
655
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ce(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Ce(e, r, o), o = a.charCodeAt(r)), o === 46 || $t(o))
656
656
  throw $(
657
657
  e.source,
658
658
  r,
@@ -670,7 +670,7 @@ function Ms(e, t, s) {
670
670
  );
671
671
  }
672
672
  function Ce(e, t, s) {
673
- if (!ae(s))
673
+ if (!oe(s))
674
674
  throw $(
675
675
  e.source,
676
676
  t,
@@ -681,11 +681,11 @@ function Ce(e, t, s) {
681
681
  );
682
682
  const a = e.source.body;
683
683
  let r = t + 1;
684
- for (; ae(a.charCodeAt(r)); )
684
+ for (; oe(a.charCodeAt(r)); )
685
685
  ++r;
686
686
  return r;
687
687
  }
688
- function Gs(e, t) {
688
+ function Qs(e, t) {
689
689
  const s = e.source.body, a = s.length;
690
690
  let r = t + 1, o = r, i = "";
691
691
  for (; r < a; ) {
@@ -694,13 +694,13 @@ function Gs(e, t) {
694
694
  return i += s.slice(o, r), T(e, g.STRING, t, r + 1, i);
695
695
  if (l === 92) {
696
696
  i += s.slice(o, r);
697
- const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Hs(e, r) : Qs(e, r) : Js(e, r);
697
+ const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Js(e, r) : Ws(e, r) : Xs(e, r);
698
698
  i += c.value, r += c.size, o = r;
699
699
  continue;
700
700
  }
701
701
  if (l === 10 || l === 13)
702
702
  break;
703
- if (Z(l))
703
+ if (Y(l))
704
704
  ++r;
705
705
  else if (xe(s, r))
706
706
  r += 2;
@@ -716,20 +716,20 @@ function Gs(e, t) {
716
716
  }
717
717
  throw $(e.source, r, "Unterminated string.");
718
718
  }
719
- function Hs(e, t) {
719
+ function Js(e, t) {
720
720
  const s = e.source.body;
721
721
  let a = 0, r = 3;
722
722
  for (; r < 12; ) {
723
723
  const o = s.charCodeAt(t + r++);
724
724
  if (o === 125) {
725
- if (r < 5 || !Z(a))
725
+ if (r < 5 || !Y(a))
726
726
  break;
727
727
  return {
728
728
  value: String.fromCodePoint(a),
729
729
  size: r
730
730
  };
731
731
  }
732
- if (a = a << 4 | ee(o), a < 0)
732
+ if (a = a << 4 | te(o), a < 0)
733
733
  break;
734
734
  }
735
735
  throw $(
@@ -741,16 +741,16 @@ function Hs(e, t) {
741
741
  )}".`
742
742
  );
743
743
  }
744
- function Qs(e, t) {
745
- const s = e.source.body, a = ut(s, t + 2);
746
- if (Z(a))
744
+ function Ws(e, t) {
745
+ const s = e.source.body, a = pt(s, t + 2);
746
+ if (Y(a))
747
747
  return {
748
748
  value: String.fromCodePoint(a),
749
749
  size: 6
750
750
  };
751
- if (Lt(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
752
- const r = ut(s, t + 8);
753
- if ($t(r))
751
+ if (Et(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
752
+ const r = pt(s, t + 8);
753
+ if (It(r))
754
754
  return {
755
755
  value: String.fromCodePoint(a, r),
756
756
  size: 12
@@ -762,13 +762,13 @@ function Qs(e, t) {
762
762
  `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
763
763
  );
764
764
  }
765
- function ut(e, t) {
766
- return ee(e.charCodeAt(t)) << 12 | ee(e.charCodeAt(t + 1)) << 8 | ee(e.charCodeAt(t + 2)) << 4 | ee(e.charCodeAt(t + 3));
765
+ function pt(e, t) {
766
+ return te(e.charCodeAt(t)) << 12 | te(e.charCodeAt(t + 1)) << 8 | te(e.charCodeAt(t + 2)) << 4 | te(e.charCodeAt(t + 3));
767
767
  }
768
- function ee(e) {
768
+ function te(e) {
769
769
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
770
770
  }
771
- function Js(e, t) {
771
+ function Xs(e, t) {
772
772
  const s = e.source.body;
773
773
  switch (s.charCodeAt(t + 1)) {
774
774
  case 34:
@@ -822,7 +822,7 @@ function Js(e, t) {
822
822
  )}".`
823
823
  );
824
824
  }
825
- function Ws(e, t) {
825
+ function Zs(e, t) {
826
826
  const s = e.source.body, a = s.length;
827
827
  let r = e.lineStart, o = t + 3, i = o, l = "";
828
828
  const c = [];
@@ -836,7 +836,7 @@ function Ws(e, t) {
836
836
  t,
837
837
  o + 3,
838
838
  // Return a string of the lines joined with U+000A.
839
- zs(c).join(`
839
+ qs(c).join(`
840
840
  `)
841
841
  );
842
842
  return e.line += c.length - 1, e.lineStart = r, d;
@@ -849,7 +849,7 @@ function Ws(e, t) {
849
849
  l += s.slice(i, o), c.push(l), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, l = "", i = o, r = o;
850
850
  continue;
851
851
  }
852
- if (Z(u))
852
+ if (Y(u))
853
853
  ++o;
854
854
  else if (xe(s, o))
855
855
  o += 2;
@@ -865,12 +865,12 @@ function Ws(e, t) {
865
865
  }
866
866
  throw $(e.source, o, "Unterminated string.");
867
867
  }
868
- function Xs(e, t) {
868
+ function Ys(e, t) {
869
869
  const s = e.source.body, a = s.length;
870
870
  let r = t + 1;
871
871
  for (; r < a; ) {
872
872
  const o = s.charCodeAt(r);
873
- if (Ds(o))
873
+ if (Fs(o))
874
874
  ++r;
875
875
  else
876
876
  break;
@@ -883,8 +883,8 @@ function Xs(e, t) {
883
883
  s.slice(t, r)
884
884
  );
885
885
  }
886
- const Zs = 10, Et = 2;
887
- function It(e) {
886
+ const Ks = 10, kt = 2;
887
+ function Dt(e) {
888
888
  return ge(e, []);
889
889
  }
890
890
  function ge(e, t) {
@@ -894,45 +894,45 @@ function ge(e, t) {
894
894
  case "function":
895
895
  return e.name ? `[function ${e.name}]` : "[function]";
896
896
  case "object":
897
- return Ys(e, t);
897
+ return er(e, t);
898
898
  default:
899
899
  return String(e);
900
900
  }
901
901
  }
902
- function Ys(e, t) {
902
+ function er(e, t) {
903
903
  if (e === null)
904
904
  return "null";
905
905
  if (t.includes(e))
906
906
  return "[Circular]";
907
907
  const s = [...t, e];
908
- if (Ks(e)) {
908
+ if (tr(e)) {
909
909
  const a = e.toJSON();
910
910
  if (a !== e)
911
911
  return typeof a == "string" ? a : ge(a, s);
912
912
  } else if (Array.isArray(e))
913
- return tr(e, s);
914
- return er(e, s);
913
+ return sr(e, s);
914
+ return nr(e, s);
915
915
  }
916
- function Ks(e) {
916
+ function tr(e) {
917
917
  return typeof e.toJSON == "function";
918
918
  }
919
- function er(e, t) {
919
+ function nr(e, t) {
920
920
  const s = Object.entries(e);
921
- return s.length === 0 ? "{}" : t.length > Et ? "[" + nr(e) + "]" : "{ " + s.map(
921
+ return s.length === 0 ? "{}" : t.length > kt ? "[" + rr(e) + "]" : "{ " + s.map(
922
922
  ([r, o]) => r + ": " + ge(o, t)
923
923
  ).join(", ") + " }";
924
924
  }
925
- function tr(e, t) {
925
+ function sr(e, t) {
926
926
  if (e.length === 0)
927
927
  return "[]";
928
- if (t.length > Et)
928
+ if (t.length > kt)
929
929
  return "[Array]";
930
- const s = Math.min(Zs, e.length), a = e.length - s, r = [];
930
+ const s = Math.min(Ks, e.length), a = e.length - s, r = [];
931
931
  for (let o = 0; o < s; ++o)
932
932
  r.push(ge(e[o], t));
933
933
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
934
934
  }
935
- function nr(e) {
935
+ function rr(e) {
936
936
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
937
937
  if (t === "Object" && typeof e.constructor == "function") {
938
938
  const s = e.constructor.name;
@@ -941,11 +941,11 @@ function nr(e) {
941
941
  }
942
942
  return t;
943
943
  }
944
- const sr = globalThis.process && // eslint-disable-next-line no-undef
945
- process.env.NODE_ENV === "production", rr = (
944
+ const ar = globalThis.process && // eslint-disable-next-line no-undef
945
+ process.env.NODE_ENV === "production", or = (
946
946
  /* c8 ignore next 6 */
947
947
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
948
- sr ? function(t, s) {
948
+ ar ? function(t, s) {
949
949
  return t instanceof s;
950
950
  } : function(t, s) {
951
951
  if (t instanceof s)
@@ -957,7 +957,7 @@ process.env.NODE_ENV === "production", rr = (
957
957
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
958
958
  );
959
959
  if (r === o) {
960
- const i = It(t);
960
+ const i = Dt(t);
961
961
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
962
962
 
963
963
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -975,12 +975,12 @@ spurious results.`);
975
975
  return !1;
976
976
  }
977
977
  );
978
- class kt {
978
+ class zt {
979
979
  constructor(t, s = "GraphQL request", a = {
980
980
  line: 1,
981
981
  column: 1
982
982
  }) {
983
- typeof t == "string" || we(!1, `Body must be a string. Received: ${It(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || we(
983
+ typeof t == "string" || we(!1, `Body must be a string. Received: ${Dt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || we(
984
984
  !1,
985
985
  "line in locationOffset is 1-indexed and must be positive."
986
986
  ), this.locationOffset.column > 0 || we(
@@ -992,35 +992,35 @@ class kt {
992
992
  return "Source";
993
993
  }
994
994
  }
995
- function ar(e) {
996
- return rr(e, kt);
995
+ function ir(e) {
996
+ return or(e, zt);
997
997
  }
998
- function or(e) {
999
- const t = ar(e) ? e : new kt(e), s = t.body, a = new Vs(t);
998
+ function cr(e) {
999
+ const t = ir(e) ? e : new zt(e), s = t.body, a = new _s(t);
1000
1000
  let r = "", o = !1;
1001
1001
  for (; a.advance().kind !== g.EOF; ) {
1002
- const i = a.token, l = i.kind, c = !Bs(i.kind);
1002
+ const i = a.token, l = i.kind, c = !Us(i.kind);
1003
1003
  o && (c || i.kind === g.SPREAD) && (r += " ");
1004
1004
  const u = s.slice(i.start, i.end);
1005
- l === g.BLOCK_STRING ? r += qs(i.value, {
1005
+ l === g.BLOCK_STRING ? r += Bs(i.value, {
1006
1006
  minimize: !0
1007
1007
  }) : r += u, o = c;
1008
1008
  }
1009
1009
  return r;
1010
1010
  }
1011
- const Dt = jt(
1011
+ const Ft = wt(
1012
1012
  void 0
1013
- ), Ha = ({
1013
+ ), Ja = ({
1014
1014
  children: e,
1015
1015
  client: t
1016
- }) => /* @__PURE__ */ n.jsx(Dt.Provider, { value: t, children: e }), zt = (e, t, ...[s]) => ({
1016
+ }) => /* @__PURE__ */ n.jsx(Ft.Provider, { value: t, children: e }), qt = (e, t, ...[s]) => ({
1017
1017
  queryFn: () => e.fetch(t, s),
1018
- queryKey: [or(t.toString()), s]
1019
- }), ir = (e, ...[t]) => {
1020
- const s = Kn(Dt);
1018
+ queryKey: [cr(t.toString()), s]
1019
+ }), lr = (e, ...[t]) => {
1020
+ const s = ts(Ft);
1021
1021
  if (s === void 0)
1022
1022
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1023
- return zt(s, e, ...t === void 0 ? [] : [t]);
1023
+ return qt(s, e, ...t === void 0 ? [] : [t]);
1024
1024
  };
1025
1025
  class H extends String {
1026
1026
  __apiType;
@@ -1033,7 +1033,7 @@ class H extends String {
1033
1033
  return this.value;
1034
1034
  }
1035
1035
  }
1036
- const cr = new H(
1036
+ const dr = new H(
1037
1037
  `
1038
1038
  fragment OperationsFragment on OperationItem {
1039
1039
  slug
@@ -1101,7 +1101,7 @@ const cr = new H(
1101
1101
  }
1102
1102
  `,
1103
1103
  { fragmentName: "OperationsFragment" }
1104
- ), lr = new H(`
1104
+ ), ur = new H(`
1105
1105
  query ServersQuery($input: JSON!, $type: SchemaType!) {
1106
1106
  schema(input: $input, type: $type) {
1107
1107
  url
@@ -1110,13 +1110,13 @@ const cr = new H(
1110
1110
  }
1111
1111
  }
1112
1112
  }
1113
- `), dr = new H(`
1113
+ `), mr = new H(`
1114
1114
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1115
1115
  schema(input: $input, type: $type) {
1116
1116
  openapi
1117
1117
  }
1118
1118
  }
1119
- `), ur = new H(`
1119
+ `), pr = new H(`
1120
1120
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1121
1121
  schema(input: $input, type: $type) {
1122
1122
  servers {
@@ -1208,7 +1208,7 @@ const cr = new H(
1208
1208
  schema
1209
1209
  }
1210
1210
  }
1211
- }`), mr = new H(`
1211
+ }`), hr = new H(`
1212
1212
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1213
1213
  schema(input: $input, type: $type) {
1214
1214
  title
@@ -1223,7 +1223,7 @@ const cr = new H(
1223
1223
  }
1224
1224
  }
1225
1225
  }
1226
- `), pr = new H(`
1226
+ `), fr = new H(`
1227
1227
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1228
1228
  schema(input: $input, type: $type) {
1229
1229
  url
@@ -1232,7 +1232,7 @@ const cr = new H(
1232
1232
  }
1233
1233
  }
1234
1234
  }
1235
- `), hr = new H(`
1235
+ `), xr = new H(`
1236
1236
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1237
1237
  schema(input: $input, type: $type) {
1238
1238
  tags {
@@ -1254,19 +1254,19 @@ const cr = new H(
1254
1254
  }
1255
1255
  }
1256
1256
  }
1257
- `), fr = {
1258
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": lr,
1259
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": cr,
1260
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": dr,
1261
- "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": ur,
1262
- "\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": mr,
1263
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": pr,
1264
- "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\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": hr
1257
+ `), gr = {
1258
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": ur,
1259
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": dr,
1260
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": mr,
1261
+ "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": pr,
1262
+ "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": hr,
1263
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": fr,
1264
+ "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": xr
1265
1265
  };
1266
- function xr(e) {
1267
- return fr[e] ?? {};
1266
+ function yr(e) {
1267
+ return gr[e] ?? {};
1268
1268
  }
1269
- const q = Fe.Root, Ft = Fe.CollapsibleTrigger, V = Fe.CollapsibleContent, qt = S.Root, Vt = S.Value, Ve = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1269
+ const q = Fe.Root, Vt = Fe.CollapsibleTrigger, V = Fe.CollapsibleContent, Bt = S.Root, _t = S.Value, Ve = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1270
1270
  S.Trigger,
1271
1271
  {
1272
1272
  ref: a,
@@ -1277,12 +1277,12 @@ const q = Fe.Root, Ft = Fe.CollapsibleTrigger, V = Fe.CollapsibleContent, qt = S
1277
1277
  ...s,
1278
1278
  children: [
1279
1279
  /* @__PURE__ */ n.jsx("span", { className: "truncate", children: t }),
1280
- /* @__PURE__ */ n.jsx(S.Icon, { asChild: !0, children: /* @__PURE__ */ n.jsx(xt, { className: "shrink-0 h-4 w-4 opacity-50" }) })
1280
+ /* @__PURE__ */ n.jsx(S.Icon, { asChild: !0, children: /* @__PURE__ */ n.jsx(yt, { className: "shrink-0 h-4 w-4 opacity-50" }) })
1281
1281
  ]
1282
1282
  }
1283
1283
  ));
1284
1284
  Ve.displayName = S.Trigger.displayName;
1285
- const Bt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1285
+ const Ut = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1286
1286
  S.ScrollUpButton,
1287
1287
  {
1288
1288
  ref: s,
@@ -1291,11 +1291,11 @@ const Bt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1291
1291
  e
1292
1292
  ),
1293
1293
  ...t,
1294
- children: /* @__PURE__ */ n.jsx(jn, { className: "h-4 w-4" })
1294
+ children: /* @__PURE__ */ n.jsx(wn, { className: "h-4 w-4" })
1295
1295
  }
1296
1296
  ));
1297
- Bt.displayName = S.ScrollUpButton.displayName;
1298
- const _t = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1297
+ Ut.displayName = S.ScrollUpButton.displayName;
1298
+ const Mt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1299
1299
  S.ScrollDownButton,
1300
1300
  {
1301
1301
  ref: s,
@@ -1304,10 +1304,10 @@ const _t = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1304
1304
  e
1305
1305
  ),
1306
1306
  ...t,
1307
- children: /* @__PURE__ */ n.jsx(xt, { className: "h-4 w-4" })
1307
+ children: /* @__PURE__ */ n.jsx(yt, { className: "h-4 w-4" })
1308
1308
  }
1309
1309
  ));
1310
- _t.displayName = S.ScrollDownButton.displayName;
1310
+ Mt.displayName = S.ScrollDownButton.displayName;
1311
1311
  const Be = w.forwardRef(({ className: e, children: t, position: s = "popper", ...a }, r) => /* @__PURE__ */ n.jsx(S.Portal, { children: /* @__PURE__ */ n.jsxs(
1312
1312
  S.Content,
1313
1313
  {
@@ -1320,7 +1320,7 @@ const Be = w.forwardRef(({ className: e, children: t, position: s = "popper", ..
1320
1320
  position: s,
1321
1321
  ...a,
1322
1322
  children: [
1323
- /* @__PURE__ */ n.jsx(Bt, {}),
1323
+ /* @__PURE__ */ n.jsx(Ut, {}),
1324
1324
  /* @__PURE__ */ n.jsx(
1325
1325
  S.Viewport,
1326
1326
  {
@@ -1331,12 +1331,12 @@ const Be = w.forwardRef(({ className: e, children: t, position: s = "popper", ..
1331
1331
  children: t
1332
1332
  }
1333
1333
  ),
1334
- /* @__PURE__ */ n.jsx(_t, {})
1334
+ /* @__PURE__ */ n.jsx(Mt, {})
1335
1335
  ]
1336
1336
  }
1337
1337
  ) }));
1338
1338
  Be.displayName = S.Content.displayName;
1339
- const gr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1339
+ const vr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1340
1340
  S.Label,
1341
1341
  {
1342
1342
  ref: s,
@@ -1344,8 +1344,8 @@ const gr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1344
1344
  ...t
1345
1345
  }
1346
1346
  ));
1347
- gr.displayName = S.Label.displayName;
1348
- const te = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1347
+ vr.displayName = S.Label.displayName;
1348
+ const ne = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1349
1349
  S.Item,
1350
1350
  {
1351
1351
  ref: a,
@@ -1355,13 +1355,13 @@ const te = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__
1355
1355
  ),
1356
1356
  ...s,
1357
1357
  children: [
1358
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(S.ItemIndicator, { children: /* @__PURE__ */ n.jsx(gt, { className: "h-4 w-4" }) }) }),
1358
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(S.ItemIndicator, { children: /* @__PURE__ */ n.jsx(vt, { className: "h-4 w-4" }) }) }),
1359
1359
  /* @__PURE__ */ n.jsx(S.ItemText, { children: t })
1360
1360
  ]
1361
1361
  }
1362
1362
  ));
1363
- te.displayName = S.Item.displayName;
1364
- const yr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1363
+ ne.displayName = S.Item.displayName;
1364
+ const br = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1365
1365
  S.Separator,
1366
1366
  {
1367
1367
  ref: s,
@@ -1369,8 +1369,8 @@ const yr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1369
1369
  ...t
1370
1370
  }
1371
1371
  ));
1372
- yr.displayName = S.Separator.displayName;
1373
- function vr() {
1372
+ br.displayName = S.Separator.displayName;
1373
+ function jr() {
1374
1374
  const t = navigator.userAgent.toLowerCase();
1375
1375
  if (t.indexOf("win") !== -1)
1376
1376
  return "windows";
@@ -1381,10 +1381,10 @@ function vr() {
1381
1381
  if (t.indexOf("x11") !== -1)
1382
1382
  return "unix";
1383
1383
  }
1384
- function br() {
1385
- return vr() === "apple";
1384
+ function Nr() {
1385
+ return jr() === "apple";
1386
1386
  }
1387
- const jr = {
1387
+ const wr = {
1388
1388
  other: {
1389
1389
  alt: "Alt",
1390
1390
  meta: "Ctrl",
@@ -1399,7 +1399,7 @@ const jr = {
1399
1399
  shift: "⇧",
1400
1400
  option: "⌥"
1401
1401
  }
1402
- }, Nr = (e, t) => {
1402
+ }, Cr = (e, t) => {
1403
1403
  const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = L(t);
1404
1404
  return z(() => {
1405
1405
  c.current = t;
@@ -1413,10 +1413,10 @@ const jr = {
1413
1413
  }, [l, a, r, o, i]), {
1414
1414
  trigger: () => c.current(),
1415
1415
  label: s.map(
1416
- (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? jr[br() ? "apple" : "other"][u] : u
1416
+ (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? wr[Nr() ? "apple" : "other"][u] : u
1417
1417
  )
1418
1418
  };
1419
- }, wr = $e()(
1419
+ }, Sr = $e()(
1420
1420
  Ee(
1421
1421
  (e) => ({
1422
1422
  selectedServer: void 0,
@@ -1424,13 +1424,13 @@ const jr = {
1424
1424
  }),
1425
1425
  { name: "zudoku-selected-server" }
1426
1426
  )
1427
- ), Cr = (e) => {
1428
- const { selectedServer: t, setSelectedServer: s } = wr();
1429
- return { selectedServer: Nt(
1427
+ ), Tr = (e) => {
1428
+ const { selectedServer: t, setSelectedServer: s } = Sr();
1429
+ return { selectedServer: Ct(
1430
1430
  () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1431
1431
  [t, e]
1432
1432
  ), setSelectedServer: s };
1433
- }, Ut = w.forwardRef(
1433
+ }, Gt = w.forwardRef(
1434
1434
  ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1435
1435
  "textarea",
1436
1436
  {
@@ -1443,7 +1443,7 @@ const jr = {
1443
1443
  }
1444
1444
  )
1445
1445
  );
1446
- Ut.displayName = "Textarea";
1446
+ Gt.displayName = "Textarea";
1447
1447
  const M = ({
1448
1448
  children: e,
1449
1449
  className: t
@@ -1457,14 +1457,14 @@ const M = ({
1457
1457
  children: [
1458
1458
  e,
1459
1459
  /* @__PURE__ */ n.jsx(
1460
- Ft,
1460
+ Vt,
1461
1461
  {
1462
1462
  className: v(
1463
1463
  "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 rounded-md",
1464
1464
  t
1465
1465
  ),
1466
1466
  children: /* @__PURE__ */ n.jsx(
1467
- Nn,
1467
+ Cn,
1468
1468
  {
1469
1469
  className: "group-data-[state=open]:rotate-180 transition-transform flex-shrink-0",
1470
1470
  size: 16
@@ -1477,7 +1477,7 @@ const M = ({
1477
1477
  ), G = ({
1478
1478
  children: e,
1479
1479
  className: t
1480
- }) => /* @__PURE__ */ n.jsx("span", { className: v("font-semibold w-full text-start", t), children: e }), Sr = C.Root, Tr = C.Trigger, Ar = C.Group, Or = w.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1480
+ }) => /* @__PURE__ */ n.jsx("span", { className: v("font-semibold w-full text-start", t), children: e }), Ar = C.Root, Or = C.Trigger, Rr = C.Group, Pr = w.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1481
1481
  C.SubTrigger,
1482
1482
  {
1483
1483
  ref: r,
@@ -1489,12 +1489,12 @@ const M = ({
1489
1489
  ...a,
1490
1490
  children: [
1491
1491
  s,
1492
- /* @__PURE__ */ n.jsx(wn, { className: "ml-auto h-4 w-4" })
1492
+ /* @__PURE__ */ n.jsx(Sn, { className: "ml-auto h-4 w-4" })
1493
1493
  ]
1494
1494
  }
1495
1495
  ));
1496
- Or.displayName = C.SubTrigger.displayName;
1497
- const Rr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1496
+ Pr.displayName = C.SubTrigger.displayName;
1497
+ const Lr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1498
1498
  C.SubContent,
1499
1499
  {
1500
1500
  ref: s,
@@ -1505,8 +1505,8 @@ const Rr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1505
1505
  ...t
1506
1506
  }
1507
1507
  ));
1508
- Rr.displayName = C.SubContent.displayName;
1509
- const Mt = w.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(C.Portal, { children: /* @__PURE__ */ n.jsx(
1508
+ Lr.displayName = C.SubContent.displayName;
1509
+ const Ht = w.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(C.Portal, { children: /* @__PURE__ */ n.jsx(
1510
1510
  C.Content,
1511
1511
  {
1512
1512
  ref: a,
@@ -1519,8 +1519,8 @@ const Mt = w.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__
1519
1519
  ...s
1520
1520
  }
1521
1521
  ) }));
1522
- Mt.displayName = C.Content.displayName;
1523
- const Gt = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1522
+ Ht.displayName = C.Content.displayName;
1523
+ const Qt = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1524
1524
  C.Item,
1525
1525
  {
1526
1526
  ref: a,
@@ -1532,8 +1532,8 @@ const Gt = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */
1532
1532
  ...s
1533
1533
  }
1534
1534
  ));
1535
- Gt.displayName = C.Item.displayName;
1536
- const Pr = w.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1535
+ Qt.displayName = C.Item.displayName;
1536
+ const $r = w.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1537
1537
  C.CheckboxItem,
1538
1538
  {
1539
1539
  ref: r,
@@ -1544,13 +1544,13 @@ const Pr = w.forwardRef(({ className: e, children: t, checked: s, ...a }, r) =>
1544
1544
  checked: s,
1545
1545
  ...a,
1546
1546
  children: [
1547
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(C.ItemIndicator, { children: /* @__PURE__ */ n.jsx(yt, { className: "h-4 w-4" }) }) }),
1547
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(C.ItemIndicator, { children: /* @__PURE__ */ n.jsx(bt, { className: "h-4 w-4" }) }) }),
1548
1548
  t
1549
1549
  ]
1550
1550
  }
1551
1551
  ));
1552
- Pr.displayName = C.CheckboxItem.displayName;
1553
- const Lr = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1552
+ $r.displayName = C.CheckboxItem.displayName;
1553
+ const Er = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1554
1554
  C.RadioItem,
1555
1555
  {
1556
1556
  ref: a,
@@ -1560,13 +1560,13 @@ const Lr = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__
1560
1560
  ),
1561
1561
  ...s,
1562
1562
  children: [
1563
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(C.ItemIndicator, { children: /* @__PURE__ */ n.jsx(Cn, { className: "h-4 w-4 fill-current" }) }) }),
1563
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(C.ItemIndicator, { children: /* @__PURE__ */ n.jsx(Tn, { className: "h-4 w-4 fill-current" }) }) }),
1564
1564
  t
1565
1565
  ]
1566
1566
  }
1567
1567
  ));
1568
- Lr.displayName = C.RadioItem.displayName;
1569
- const Ht = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1568
+ Er.displayName = C.RadioItem.displayName;
1569
+ const Jt = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1570
1570
  C.Label,
1571
1571
  {
1572
1572
  ref: a,
@@ -1578,8 +1578,8 @@ const Ht = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */
1578
1578
  ...s
1579
1579
  }
1580
1580
  ));
1581
- Ht.displayName = C.Label.displayName;
1582
- const Qt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1581
+ Jt.displayName = C.Label.displayName;
1582
+ const Wt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1583
1583
  C.Separator,
1584
1584
  {
1585
1585
  ref: s,
@@ -1587,12 +1587,12 @@ const Qt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1587
1587
  ...t
1588
1588
  }
1589
1589
  ));
1590
- Qt.displayName = C.Separator.displayName;
1591
- const $r = ({
1590
+ Wt.displayName = C.Separator.displayName;
1591
+ const Ir = ({
1592
1592
  examples: e,
1593
1593
  onSelect: t
1594
- }) => /* @__PURE__ */ n.jsxs(Sr, { children: [
1595
- /* @__PURE__ */ n.jsx(Tr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1594
+ }) => /* @__PURE__ */ n.jsxs(Ar, { children: [
1595
+ /* @__PURE__ */ n.jsx(Or, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1596
1596
  E,
1597
1597
  {
1598
1598
  variant: "ghost",
@@ -1604,11 +1604,11 @@ const $r = ({
1604
1604
  ]
1605
1605
  }
1606
1606
  ) }),
1607
- /* @__PURE__ */ n.jsx(Mt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1608
- /* @__PURE__ */ n.jsx(Ht, { children: s.mediaType }),
1609
- /* @__PURE__ */ n.jsx(Qt, {}),
1610
- /* @__PURE__ */ n.jsx(Ar, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1611
- Gt,
1607
+ /* @__PURE__ */ n.jsx(Ht, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1608
+ /* @__PURE__ */ n.jsx(Jt, { children: s.mediaType }),
1609
+ /* @__PURE__ */ n.jsx(Wt, {}),
1610
+ /* @__PURE__ */ n.jsx(Rr, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1611
+ Qt,
1612
1612
  {
1613
1613
  onSelect: () => t(a, s.mediaType),
1614
1614
  children: /* @__PURE__ */ n.jsx(
@@ -1623,14 +1623,14 @@ const $r = ({
1623
1623
  a.name
1624
1624
  )) })
1625
1625
  ] }, s.mediaType)) })
1626
- ] }), Er = ({ content: e }) => {
1627
- const { register: t, setValue: s, watch: a } = oe(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1626
+ ] }), kr = ({ content: e }) => {
1627
+ const { register: t, setValue: s, watch: a } = ie(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1628
1628
  return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1629
1629
  /* @__PURE__ */ n.jsxs(M, { children: [
1630
- /* @__PURE__ */ n.jsx(Sn, { size: 16 }),
1630
+ /* @__PURE__ */ n.jsx(An, { size: 16 }),
1631
1631
  /* @__PURE__ */ n.jsx(G, { children: "Body" }),
1632
1632
  e && r.length > 0 ? /* @__PURE__ */ n.jsx(
1633
- $r,
1633
+ Ir,
1634
1634
  {
1635
1635
  examples: e,
1636
1636
  onSelect: (i, l) => {
@@ -1647,7 +1647,7 @@ const $r = ({
1647
1647
  ) : /* @__PURE__ */ n.jsx("div", {})
1648
1648
  ] }),
1649
1649
  /* @__PURE__ */ n.jsx(V, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
1650
- Ut,
1650
+ Gt,
1651
1651
  {
1652
1652
  ...t("body"),
1653
1653
  className: v(
@@ -1657,7 +1657,7 @@ const $r = ({
1657
1657
  }
1658
1658
  ) })
1659
1659
  ] });
1660
- }, mt = (e, t, s) => {
1660
+ }, ht = (e, t, s) => {
1661
1661
  const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1662
1662
  const i = o.replace(/[:{}]/g, "");
1663
1663
  return s.pathParams.find((c) => c.name === i)?.value ?? o;
@@ -1669,12 +1669,12 @@ const $r = ({
1669
1669
  r.searchParams.set(o.name, o.value);
1670
1670
  }), r;
1671
1671
  };
1672
- function Ir(e) {
1672
+ function Dr(e) {
1673
1673
  return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1674
1674
  e
1675
1675
  );
1676
1676
  }
1677
- const kr = (e, t) => {
1677
+ const zr = (e, t) => {
1678
1678
  const s = e.find(
1679
1679
  ([a]) => a.toLowerCase() === "content-disposition"
1680
1680
  )?.[1];
@@ -1705,13 +1705,13 @@ const kr = (e, t) => {
1705
1705
  Re.Indicator,
1706
1706
  {
1707
1707
  className: v("flex items-center justify-center text-current"),
1708
- children: /* @__PURE__ */ n.jsx(gt, { className: "h-4 w-4" })
1708
+ children: /* @__PURE__ */ n.jsx(vt, { className: "h-4 w-4" })
1709
1709
  }
1710
1710
  )
1711
1711
  }
1712
1712
  ));
1713
1713
  ye.displayName = Re.Root.displayName;
1714
- const Dr = ue.Root, Jt = w.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(ue.Portal, { children: /* @__PURE__ */ n.jsx(
1714
+ const Fr = ue.Root, Xt = w.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(ue.Portal, { children: /* @__PURE__ */ n.jsx(
1715
1715
  ue.Content,
1716
1716
  {
1717
1717
  ref: r,
@@ -1724,8 +1724,8 @@ const Dr = ue.Root, Jt = w.forwardRef(({ className: e, align: t = "center", side
1724
1724
  ...a
1725
1725
  }
1726
1726
  ) }));
1727
- Jt.displayName = ue.Content.displayName;
1728
- const zr = ({
1727
+ Xt.displayName = ue.Content.displayName;
1728
+ const qr = ({
1729
1729
  value: e,
1730
1730
  options: t,
1731
1731
  onChange: s,
@@ -1734,14 +1734,14 @@ const zr = ({
1734
1734
  onEnterPress: o,
1735
1735
  ref: i
1736
1736
  }) => {
1737
- const [l, c] = k(!1), [u, d] = k(!1), p = gs((m) => m.filtered.count), h = L(null);
1738
- return /* @__PURE__ */ n.jsxs(Dr, { open: l, children: [
1739
- /* @__PURE__ */ n.jsx(xs, { children: /* @__PURE__ */ n.jsx(
1740
- vs,
1737
+ const [l, c] = k(!1), [u, d] = k(!1), h = vs((m) => m.filtered.count), f = L(null);
1738
+ return /* @__PURE__ */ n.jsxs(Fr, { open: l, children: [
1739
+ /* @__PURE__ */ n.jsx(ys, { children: /* @__PURE__ */ n.jsx(
1740
+ js,
1741
1741
  {
1742
1742
  autoComplete: "off",
1743
1743
  ref: (m) => {
1744
- h.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1744
+ f.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1745
1745
  },
1746
1746
  value: e,
1747
1747
  placeholder: r,
@@ -1751,19 +1751,19 @@ const zr = ({
1751
1751
  u || c(!1);
1752
1752
  },
1753
1753
  onKeyDown: (m) => {
1754
- m.key === "Enter" && (c(!1), h.current?.blur(), o?.(m));
1754
+ m.key === "Enter" && (c(!1), f.current?.blur(), o?.(m));
1755
1755
  },
1756
1756
  onValueChange: (m) => s(m)
1757
1757
  }
1758
1758
  ) }),
1759
1759
  /* @__PURE__ */ n.jsx(
1760
- Jt,
1760
+ Xt,
1761
1761
  {
1762
1762
  onMouseEnter: () => d(!0),
1763
1763
  onMouseLeave: () => d(!1),
1764
1764
  onOpenAutoFocus: (m) => m.preventDefault(),
1765
1765
  className: v("p-0 w-(--radix-popover-trigger-width)", {
1766
- "border-0": p === 0
1766
+ "border-0": h === 0
1767
1767
  }),
1768
1768
  align: "start",
1769
1769
  side: "bottom",
@@ -1773,8 +1773,8 @@ const zr = ({
1773
1773
  onTouchMove: (m) => {
1774
1774
  m.stopPropagation();
1775
1775
  },
1776
- children: /* @__PURE__ */ n.jsx(bs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1777
- js,
1776
+ children: /* @__PURE__ */ n.jsx(Ns, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1777
+ ws,
1778
1778
  {
1779
1779
  value: m,
1780
1780
  onSelect: (x) => {
@@ -1788,9 +1788,9 @@ const zr = ({
1788
1788
  }
1789
1789
  )
1790
1790
  ] });
1791
- }, pe = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(ys, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(zr, { ...t }) }), ie = (e, t) => {
1791
+ }, pe = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(bs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(qr, { ...t }) }), ce = (e, t) => {
1792
1792
  const s = w.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1793
- const l = r ? Ns : e;
1793
+ const l = r ? Cs : e;
1794
1794
  return w.createElement(l, {
1795
1795
  ...o,
1796
1796
  ref: i,
@@ -1798,13 +1798,13 @@ const zr = ({
1798
1798
  });
1799
1799
  });
1800
1800
  return s.displayName = `VariantComponent(${e})`, s;
1801
- }, _e = ie(
1801
+ }, _e = ce(
1802
1802
  "div",
1803
1803
  "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5"
1804
- ), he = ie(
1804
+ ), he = ce(
1805
1805
  "div",
1806
1806
  "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1807
- ), Fr = Object.freeze([
1807
+ ), Vr = Object.freeze([
1808
1808
  "Accept",
1809
1809
  "Accept-Encoding",
1810
1810
  "Accept-Language",
@@ -1831,7 +1831,7 @@ const zr = ({
1831
1831
  "Set-Cookie",
1832
1832
  "User-Agent",
1833
1833
  "X-Requested-With"
1834
- ]), qr = ({
1834
+ ]), Br = ({
1835
1835
  control: e,
1836
1836
  schemaHeaders: t,
1837
1837
  lockedHeaders: s
@@ -1839,20 +1839,20 @@ const zr = ({
1839
1839
  const { fields: a, append: r, remove: o } = ze({
1840
1840
  control: e,
1841
1841
  name: "headers"
1842
- }), { setValue: i, watch: l, formState: c } = oe(), u = L([]), d = L([]), p = l("headers"), h = wt(
1842
+ }), { setValue: i, watch: l, formState: c } = ie(), u = L([]), d = L([]), h = l("headers"), f = St(
1843
1843
  (j) => {
1844
1844
  j?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
1845
1845
  },
1846
1846
  [r]
1847
1847
  );
1848
1848
  z(() => {
1849
- p.length === 0 && h();
1850
- }, [p, h]);
1849
+ h.length === 0 && f();
1850
+ }, [h, f]);
1851
1851
  const m = (j) => {
1852
1852
  u.current[j]?.focus();
1853
1853
  }, x = (j) => {
1854
- h(), requestAnimationFrame(() => d.current[j + 1]?.focus());
1855
- }, y = t.filter((j) => !p.some((N) => N.name === j.name)).map(({ name: j }) => j), b = a.flatMap((j, N) => !s?.map((O) => O.toLowerCase()).includes(j.name.toLowerCase()) ? [] : [N]), R = s?.map((j) => ({
1854
+ f(), requestAnimationFrame(() => d.current[j + 1]?.focus());
1855
+ }, y = t.filter((j) => !h.some((N) => N.name === j.name)).map(({ name: j }) => j), b = a.flatMap((j, N) => !s?.map((O) => O.toLowerCase()).includes(j.name.toLowerCase()) ? [] : [N]), R = s?.map((j) => ({
1856
1856
  name: j,
1857
1857
  id: `locked-${j}`,
1858
1858
  value: "••••••••••",
@@ -1861,12 +1861,12 @@ const zr = ({
1861
1861
  })) ?? [];
1862
1862
  return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1863
1863
  /* @__PURE__ */ n.jsxs(M, { children: [
1864
- /* @__PURE__ */ n.jsx(Tn, { size: 16 }),
1864
+ /* @__PURE__ */ n.jsx(On, { size: 16 }),
1865
1865
  /* @__PURE__ */ n.jsx(G, { children: "Headers" }),
1866
1866
  /* @__PURE__ */ n.jsxs(
1867
- se,
1867
+ re,
1868
1868
  {
1869
- onClick: h,
1869
+ onClick: f,
1870
1870
  type: "button",
1871
1871
  size: "sm",
1872
1872
  variant: "ghost",
@@ -1879,13 +1879,13 @@ const zr = ({
1879
1879
  )
1880
1880
  ] }),
1881
1881
  /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(_e, { children: [
1882
- R.map((j) => /* @__PURE__ */ n.jsxs(at, { children: [
1883
- /* @__PURE__ */ n.jsx(ot, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1882
+ R.map((j) => /* @__PURE__ */ n.jsxs(it, { children: [
1883
+ /* @__PURE__ */ n.jsx(ct, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1884
1884
  he,
1885
1885
  {
1886
1886
  className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
1887
1887
  children: [
1888
- /* @__PURE__ */ n.jsx(An, { size: 16 }),
1888
+ /* @__PURE__ */ n.jsx(Rn, { size: 16 }),
1889
1889
  /* @__PURE__ */ n.jsx(
1890
1890
  me,
1891
1891
  {
@@ -1900,7 +1900,7 @@ const zr = ({
1900
1900
  j.id
1901
1901
  ) }),
1902
1902
  /* @__PURE__ */ n.jsx(
1903
- it,
1903
+ lt,
1904
1904
  {
1905
1905
  alignOffset: 10,
1906
1906
  side: "bottom",
@@ -1911,7 +1911,7 @@ const zr = ({
1911
1911
  ] }, j.id)),
1912
1912
  a.map((j, N) => {
1913
1913
  const Q = t.find(
1914
- (O) => O.name === p.at(N)?.name
1914
+ (O) => O.name === h.at(N)?.name
1915
1915
  );
1916
1916
  return /* @__PURE__ */ n.jsxs(
1917
1917
  he,
@@ -1940,9 +1940,9 @@ const zr = ({
1940
1940
  }
1941
1941
  }
1942
1942
  ),
1943
- /* @__PURE__ */ n.jsxs(at, { children: [
1944
- /* @__PURE__ */ n.jsx(ot, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1945
- On,
1943
+ /* @__PURE__ */ n.jsxs(it, { children: [
1944
+ /* @__PURE__ */ n.jsx(ct, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1945
+ Pn,
1946
1946
  {
1947
1947
  className: v(
1948
1948
  "text-amber-600",
@@ -1952,7 +1952,7 @@ const zr = ({
1952
1952
  }
1953
1953
  ) }),
1954
1954
  /* @__PURE__ */ n.jsx(
1955
- it,
1955
+ lt,
1956
1956
  {
1957
1957
  alignOffset: 10,
1958
1958
  side: "bottom",
@@ -1975,7 +1975,7 @@ const zr = ({
1975
1975
  ...O,
1976
1976
  placeholder: "Name",
1977
1977
  className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1978
- options: [...y, ...Fr],
1978
+ options: [...y, ...Vr],
1979
1979
  onEnterPress: () => m(N),
1980
1980
  onChange: (D) => {
1981
1981
  O.onChange(D), i(`headers.${N}.active`, !0);
@@ -2022,14 +2022,14 @@ const zr = ({
2022
2022
  }
2023
2023
  ),
2024
2024
  /* @__PURE__ */ n.jsx(
2025
- se,
2025
+ re,
2026
2026
  {
2027
2027
  size: "icon-xs",
2028
2028
  variant: "ghost",
2029
2029
  className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
2030
2030
  onClick: () => o(N),
2031
2031
  type: "button",
2032
- children: /* @__PURE__ */ n.jsx(vt, { size: 16 })
2032
+ children: /* @__PURE__ */ n.jsx(jt, { size: 16 })
2033
2033
  }
2034
2034
  )
2035
2035
  ] })
@@ -2040,28 +2040,28 @@ const zr = ({
2040
2040
  })
2041
2041
  ] }) }) }) })
2042
2042
  ] });
2043
- }, Vr = Cs(
2043
+ }, _r = Ts(
2044
2044
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2045
2045
  ), Ue = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
2046
- Tt.Root,
2046
+ Ot.Root,
2047
2047
  {
2048
2048
  ref: s,
2049
- className: v(Vr(), e),
2049
+ className: v(_r(), e),
2050
2050
  ...t
2051
2051
  }
2052
2052
  ));
2053
- Ue.displayName = Tt.Root.displayName;
2054
- const Wt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
2055
- re.Root,
2053
+ Ue.displayName = Ot.Root.displayName;
2054
+ const Zt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
2055
+ ae.Root,
2056
2056
  {
2057
2057
  className: v("grid gap-2", e),
2058
2058
  ...t,
2059
2059
  ref: s
2060
2060
  }
2061
2061
  ));
2062
- Wt.displayName = re.Root.displayName;
2063
- const Xt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
2064
- re.Item,
2062
+ Zt.displayName = ae.Root.displayName;
2063
+ const Yt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
2064
+ ae.Item,
2065
2065
  {
2066
2066
  ref: s,
2067
2067
  className: v(
@@ -2069,29 +2069,29 @@ const Xt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
2069
2069
  e
2070
2070
  ),
2071
2071
  ...t,
2072
- children: /* @__PURE__ */ n.jsx(re.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(Rn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
2072
+ children: /* @__PURE__ */ n.jsx(ae.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(Ln, { className: "h-2.5 w-2.5 fill-current text-current" }) })
2073
2073
  }
2074
2074
  ));
2075
- Xt.displayName = re.Item.displayName;
2076
- const Zt = ({
2075
+ Yt.displayName = ae.Item.displayName;
2076
+ const Kt = ({
2077
2077
  identities: e,
2078
2078
  setValue: t,
2079
2079
  value: s
2080
2080
  }) => /* @__PURE__ */ n.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
2081
- Wt,
2081
+ Zt,
2082
2082
  {
2083
2083
  onValueChange: (a) => t(a),
2084
2084
  value: s,
2085
- defaultValue: ne,
2085
+ defaultValue: se,
2086
2086
  className: "gap-0",
2087
2087
  disabled: e?.length === 0,
2088
- children: [{ id: ne, label: "None" }, ...e ?? []].map(
2088
+ children: [{ id: se, label: "None" }, ...e ?? []].map(
2089
2089
  (a) => /* @__PURE__ */ n.jsxs(
2090
2090
  Ue,
2091
2091
  {
2092
2092
  className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
2093
2093
  children: [
2094
- /* @__PURE__ */ n.jsx(Xt, { value: a.id, id: a.id }),
2094
+ /* @__PURE__ */ n.jsx(Yt, { value: a.id, id: a.id }),
2095
2095
  /* @__PURE__ */ n.jsx("span", { children: a.label })
2096
2096
  ]
2097
2097
  },
@@ -2099,7 +2099,7 @@ const Zt = ({
2099
2099
  )
2100
2100
  )
2101
2101
  }
2102
- ) }), Br = ({
2102
+ ) }), Ur = ({
2103
2103
  onSubmit: e,
2104
2104
  identities: t,
2105
2105
  open: s,
@@ -2108,16 +2108,16 @@ const Zt = ({
2108
2108
  const [r, o] = k(void 0), [i, l] = k(!1);
2109
2109
  return /* @__PURE__ */ n.jsx(Ie, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2110
2110
  /* @__PURE__ */ n.jsx(De, { children: "Select an auth identity" }),
2111
- /* @__PURE__ */ n.jsx(Ct, { children: "Please select an identity for this request." }),
2112
- /* @__PURE__ */ n.jsx(ws, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
2113
- Zt,
2111
+ /* @__PURE__ */ n.jsx(Tt, { children: "Please select an identity for this request." }),
2112
+ /* @__PURE__ */ n.jsx(Ss, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
2113
+ Kt,
2114
2114
  {
2115
2115
  identities: t,
2116
2116
  setValue: o,
2117
2117
  value: r
2118
2118
  }
2119
2119
  ) }),
2120
- /* @__PURE__ */ n.jsxs(St, { className: "flex flex-col gap-2", children: [
2120
+ /* @__PURE__ */ n.jsxs(At, { className: "flex flex-col gap-2", children: [
2121
2121
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2122
2122
  /* @__PURE__ */ n.jsx(
2123
2123
  ye,
@@ -2142,22 +2142,22 @@ const Zt = ({
2142
2142
  ] }) });
2143
2143
  }, Se = (e) => Math.abs(
2144
2144
  isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
2145
- ), Te = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${Se(t) + Se(s)}`)) : Se(e), pt = (e, t = {}) => {
2145
+ ), Te = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${Se(t) + Se(s)}`)) : Se(e), ft = (e, t = {}) => {
2146
2146
  const s = (3 * Te(e) + 2 * Te(e) + Te(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
2147
2147
  return `${s}deg ${a}% ${r}%`;
2148
- }, Ae = "data-linked-param", _r = (e) => {
2149
- const { resolvedTheme: t } = Ss();
2148
+ }, Ae = "data-linked-param", Mr = (e) => {
2149
+ const { resolvedTheme: t } = As();
2150
2150
  return {
2151
- text: pt(
2151
+ text: ft(
2152
2152
  e,
2153
2153
  t === "light" ? { saturation: 95, lightness: 38 } : {}
2154
2154
  ),
2155
- background: pt(
2155
+ background: ft(
2156
2156
  e,
2157
2157
  t === "light" ? { saturation: 85, lightness: 40 } : {}
2158
2158
  )
2159
2159
  };
2160
- }, Yt = ({
2160
+ }, en = ({
2161
2161
  name: e,
2162
2162
  className: t,
2163
2163
  slug: s,
@@ -2165,7 +2165,7 @@ const Zt = ({
2165
2165
  children: r,
2166
2166
  onClick: o
2167
2167
  }) => {
2168
- const i = L(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = _r(c), p = `hsl(${u} / 100%)`, h = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
2168
+ const i = L(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = Mr(c), h = `hsl(${u} / 100%)`, f = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
2169
2169
  return z(() => {
2170
2170
  if (!l || !i.current) return;
2171
2171
  const x = () => {
@@ -2196,14 +2196,14 @@ const Zt = ({
2196
2196
  ref: i,
2197
2197
  onClick: o,
2198
2198
  style: {
2199
- "--param-color": p,
2199
+ "--param-color": h,
2200
2200
  "--border-color": m,
2201
- "--background-color": h
2201
+ "--background-color": f
2202
2202
  },
2203
2203
  children: r ?? e
2204
2204
  }
2205
2205
  );
2206
- }, Ur = ({
2206
+ }, Gr = ({
2207
2207
  control: e,
2208
2208
  url: t
2209
2209
  }) => {
@@ -2220,7 +2220,7 @@ const Zt = ({
2220
2220
  control: e,
2221
2221
  name: `pathParams.${o}.name`,
2222
2222
  render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
2223
- Yt,
2223
+ en,
2224
2224
  {
2225
2225
  slug: r.name,
2226
2226
  name: r.name,
@@ -2229,7 +2229,7 @@ const Zt = ({
2229
2229
  ) })
2230
2230
  }
2231
2231
  ),
2232
- /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ n.jsx(
2232
+ /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ n.jsx(
2233
2233
  F,
2234
2234
  {
2235
2235
  control: e,
@@ -2246,17 +2246,17 @@ const Zt = ({
2246
2246
  }
2247
2247
  ) })
2248
2248
  ] }, r.id)) }) });
2249
- }, Mr = ie(
2249
+ }, Hr = ce(
2250
2250
  "input",
2251
2251
  "bg-transparent h-9 font-mono text-xs"
2252
- ), Gr = ({
2252
+ ), Qr = ({
2253
2253
  control: e,
2254
2254
  schemaQueryParams: t
2255
2255
  }) => {
2256
2256
  const { fields: s, remove: a, append: r } = ze({
2257
2257
  control: e,
2258
2258
  name: "queryParams"
2259
- }), { setValue: o, getValues: i, watch: l } = oe(), c = l("queryParams");
2259
+ }), { setValue: o, getValues: i, watch: l } = ie(), c = l("queryParams");
2260
2260
  z(() => {
2261
2261
  c.length === 0 && r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
2262
2262
  }, [c, r]);
@@ -2265,7 +2265,7 @@ const Zt = ({
2265
2265
  );
2266
2266
  return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2267
2267
  /* @__PURE__ */ n.jsxs(M, { children: [
2268
- /* @__PURE__ */ n.jsx(Pn, { size: 16 }),
2268
+ /* @__PURE__ */ n.jsx($n, { size: 16 }),
2269
2269
  /* @__PURE__ */ n.jsx(G, { children: "Query Parameters" }),
2270
2270
  /* @__PURE__ */ n.jsxs(
2271
2271
  E,
@@ -2287,20 +2287,20 @@ const Zt = ({
2287
2287
  }
2288
2288
  )
2289
2289
  ] }),
2290
- /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(_e, { children: s.map((d, p) => {
2291
- const h = t.find(
2292
- (m) => m.name === c.at(p)?.name
2290
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(_e, { children: s.map((d, h) => {
2291
+ const f = t.find(
2292
+ (m) => m.name === c.at(h)?.name
2293
2293
  );
2294
2294
  return /* @__PURE__ */ n.jsxs(he, { children: [
2295
2295
  /* @__PURE__ */ n.jsx(
2296
2296
  F,
2297
2297
  {
2298
2298
  control: e,
2299
- name: `queryParams.${p}.active`,
2299
+ name: `queryParams.${h}.active`,
2300
2300
  render: ({ field: m }) => /* @__PURE__ */ n.jsx(
2301
2301
  ye,
2302
2302
  {
2303
- id: `queryParams.${p}.active`,
2303
+ id: `queryParams.${h}.active`,
2304
2304
  checked: m.value,
2305
2305
  onCheckedChange: m.onChange
2306
2306
  }
@@ -2311,15 +2311,15 @@ const Zt = ({
2311
2311
  F,
2312
2312
  {
2313
2313
  control: e,
2314
- render: ({ field: m }) => u[p] ? /* @__PURE__ */ n.jsx(Mr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2314
+ render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(Hr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2315
2315
  "label",
2316
2316
  {
2317
2317
  className: "flex items-center cursor-pointer gap-1",
2318
- htmlFor: `queryParams.${p}.active`,
2319
- title: u[p] ? "Required field" : void 0,
2318
+ htmlFor: `queryParams.${h}.active`,
2319
+ title: u[h] ? "Required field" : void 0,
2320
2320
  children: [
2321
2321
  m.value,
2322
- u[p] && /* @__PURE__ */ n.jsx("sup", { children: " *" })
2322
+ u[h] && /* @__PURE__ */ n.jsx("sup", { children: " *" })
2323
2323
  ]
2324
2324
  }
2325
2325
  ) }) : /* @__PURE__ */ n.jsx(
@@ -2334,7 +2334,7 @@ const Zt = ({
2334
2334
  className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2335
2335
  }
2336
2336
  ),
2337
- name: `queryParams.${p}.name`
2337
+ name: `queryParams.${h}.name`
2338
2338
  }
2339
2339
  ),
2340
2340
  /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center", children: [
@@ -2342,13 +2342,13 @@ const Zt = ({
2342
2342
  F,
2343
2343
  {
2344
2344
  control: e,
2345
- render: ({ field: m }) => h?.enum && h.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2345
+ render: ({ field: m }) => f?.enum && f.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2346
2346
  pe,
2347
2347
  {
2348
2348
  value: m.value,
2349
- options: h.enum ?? [],
2349
+ options: f.enum ?? [],
2350
2350
  onChange: (y) => {
2351
- m.onChange(y), o(`queryParams.${p}.active`, !0);
2351
+ m.onChange(y), o(`queryParams.${h}.active`, !0);
2352
2352
  },
2353
2353
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2354
2354
  }
@@ -2357,14 +2357,14 @@ const Zt = ({
2357
2357
  {
2358
2358
  ...m,
2359
2359
  onChange: (y) => {
2360
- m.onChange(y.target.value), y.target.value.length > 0 && o(`queryParams.${p}.active`, !0);
2360
+ m.onChange(y.target.value), y.target.value.length > 0 && o(`queryParams.${h}.active`, !0);
2361
2361
  },
2362
2362
  placeholder: "Value",
2363
2363
  "aria-label": "Query parameter value",
2364
2364
  className: "w-full border-0 p-0 m-0 shadow-none focus-visible:ring-0 text-xs font-mono"
2365
2365
  }
2366
2366
  ),
2367
- name: `queryParams.${p}.value`
2367
+ name: `queryParams.${h}.value`
2368
2368
  }
2369
2369
  ),
2370
2370
  /* @__PURE__ */ n.jsx(
@@ -2373,16 +2373,16 @@ const Zt = ({
2373
2373
  size: "icon-xs",
2374
2374
  variant: "ghost",
2375
2375
  className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
2376
- onClick: () => a(p),
2376
+ onClick: () => a(h),
2377
2377
  type: "button",
2378
- children: /* @__PURE__ */ n.jsx(vt, { size: 16 })
2378
+ children: /* @__PURE__ */ n.jsx(jt, { size: 16 })
2379
2379
  }
2380
2380
  )
2381
2381
  ] })
2382
2382
  ] }, d.id);
2383
2383
  }) }) }) })
2384
2384
  ] });
2385
- }, Hr = $e()(
2385
+ }, Jr = $e()(
2386
2386
  Ee(
2387
2387
  (e, t) => ({
2388
2388
  rememberedIdentity: null,
@@ -2393,10 +2393,10 @@ const Zt = ({
2393
2393
  }),
2394
2394
  {
2395
2395
  name: "identity-storage",
2396
- storage: bt(() => sessionStorage)
2396
+ storage: Nt(() => sessionStorage)
2397
2397
  }
2398
2398
  )
2399
- ), Qr = ({
2399
+ ), Wr = ({
2400
2400
  path: e,
2401
2401
  renderParam: t
2402
2402
  }) => {
@@ -2405,27 +2405,27 @@ const Zt = ({
2405
2405
  const i = Array.from(a.matchAll(/{([^}]+)}/g)), l = [];
2406
2406
  let c = 0;
2407
2407
  return i.forEach((u) => {
2408
- const [d, p] = u;
2409
- if (!p) return;
2410
- const h = u.index;
2411
- h > c && l.push(
2412
- /* @__PURE__ */ n.jsx(K, { children: a.slice(c, h) }, `text-${c}-${h}`)
2408
+ const [d, h] = u;
2409
+ if (!h) return;
2410
+ const f = u.index;
2411
+ f > c && l.push(
2412
+ /* @__PURE__ */ n.jsx(ee, { children: a.slice(c, f) }, `text-${c}-${f}`)
2413
2413
  ), l.push(
2414
- /* @__PURE__ */ n.jsx(K, { children: t({ name: p, originalValue: d, index: s++ }) }, `param-${p}`)
2415
- ), c = h + d.length;
2414
+ /* @__PURE__ */ n.jsx(ee, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2415
+ ), c = f + d.length;
2416
2416
  }), c < a.length && l.push(
2417
- /* @__PURE__ */ n.jsx(K, { children: a.slice(c) }, `text-${c}-${a.length}`)
2417
+ /* @__PURE__ */ n.jsx(ee, { children: a.slice(c) }, `text-${c}-${a.length}`)
2418
2418
  ), // eslint-disable-next-line react/no-array-index-key
2419
- /* @__PURE__ */ n.jsxs(K, { children: [
2419
+ /* @__PURE__ */ n.jsxs(ee, { children: [
2420
2420
  l,
2421
2421
  r < o.length - 1 && "/",
2422
2422
  /* @__PURE__ */ n.jsx("wbr", {})
2423
2423
  ] }, `${a}-${r}`);
2424
2424
  });
2425
- }, Jr = ({ url: e }) => {
2426
- const { watch: t, setFocus: s } = oe(), [a] = t(["pathParams"]);
2425
+ }, Xr = ({ url: e }) => {
2426
+ const { watch: t, setFocus: s } = ie(), [a] = t(["pathParams"]);
2427
2427
  return /* @__PURE__ */ n.jsx(
2428
- Qr,
2428
+ Wr,
2429
2429
  {
2430
2430
  path: e,
2431
2431
  renderParam: ({ name: r, originalValue: o, index: i }) => {
@@ -2433,7 +2433,7 @@ const Zt = ({
2433
2433
  (c) => c.name === r
2434
2434
  )?.value;
2435
2435
  return /* @__PURE__ */ n.jsx(
2436
- Yt,
2436
+ en,
2437
2437
  {
2438
2438
  name: r,
2439
2439
  backgroundOpacity: "0",
@@ -2445,8 +2445,8 @@ const Zt = ({
2445
2445
  }
2446
2446
  }
2447
2447
  );
2448
- }, Wr = () => {
2449
- const { watch: e } = oe(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(K, { children: [
2448
+ }, Zr = () => {
2449
+ const { watch: e } = ie(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(ee, { children: [
2450
2450
  a.name,
2451
2451
  "=",
2452
2452
  encodeURIComponent(a.value).replaceAll("%20", "+"),
@@ -2457,29 +2457,29 @@ const Zt = ({
2457
2457
  s.length > 0 ? "?" : "",
2458
2458
  s
2459
2459
  ] });
2460
- }, Xr = ({
2460
+ }, Yr = ({
2461
2461
  open: e,
2462
2462
  setOpen: t,
2463
2463
  onSignUp: s,
2464
2464
  onLogin: a
2465
2465
  }) => /* @__PURE__ */ n.jsx(Ie, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2466
2466
  /* @__PURE__ */ n.jsx(De, { children: "Welcome to the Playground!" }),
2467
- /* @__PURE__ */ n.jsx(Ct, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2468
- /* @__PURE__ */ n.jsxs(St, { className: "flex gap-2 sm:justify-between", children: [
2467
+ /* @__PURE__ */ n.jsx(Tt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2468
+ /* @__PURE__ */ n.jsxs(At, { className: "flex gap-2 sm:justify-between", children: [
2469
2469
  /* @__PURE__ */ n.jsx(E, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2470
2470
  /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2471
2471
  s && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2472
2472
  a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
2473
2473
  ] })
2474
2474
  ] })
2475
- ] }) }), Kt = (e = 0) => {
2475
+ ] }) }), tn = (e = 0) => {
2476
2476
  if (e === 0)
2477
2477
  return "0 B";
2478
2478
  const t = Math.floor(Math.log(e) / Math.log(1e3));
2479
2479
  return `${(e / Math.pow(1e3, t)).toFixed(
2480
2480
  t ? 2 : 0
2481
2481
  )} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2482
- }, Zr = ({ status: e }) => {
2482
+ }, Kr = ({ status: e }) => {
2483
2483
  if (!e) return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2484
2484
  switch (Number(e.toString().slice(0, 1))) {
2485
2485
  case 2:
@@ -2491,21 +2491,21 @@ const Zt = ({
2491
2491
  default:
2492
2492
  return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2493
2493
  }
2494
- }, Yr = () => {
2495
- const e = L(null), t = L(null), s = L(Date.now()), a = L(null), r = wt(() => {
2494
+ }, ea = () => {
2495
+ const e = L(null), t = L(null), s = L(Date.now()), a = L(null), r = St(() => {
2496
2496
  if (t.current) {
2497
2497
  const o = Date.now() - s.current;
2498
2498
  t.current.nodeValue = o.toFixed();
2499
2499
  }
2500
2500
  a.current = requestAnimationFrame(r);
2501
2501
  }, []);
2502
- return es(() => {
2502
+ return ns(() => {
2503
2503
  const o = document.createTextNode("0"), i = e.current;
2504
2504
  return i.appendChild(o), t.current = o, s.current = Date.now(), a.current = requestAnimationFrame(r), () => {
2505
2505
  a.current && cancelAnimationFrame(a.current), t.current && i.contains(o) && i.removeChild(o);
2506
2506
  };
2507
2507
  }, [r]), /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
2508
- }, Kr = ({
2508
+ }, ta = ({
2509
2509
  status: e,
2510
2510
  time: t,
2511
2511
  size: s,
@@ -2526,7 +2526,7 @@ const Zt = ({
2526
2526
  };
2527
2527
  return /* @__PURE__ */ n.jsxs("div", { className: "relative flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
2528
2528
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2529
- /* @__PURE__ */ n.jsx(Zr, { status: e }),
2529
+ /* @__PURE__ */ n.jsx(Kr, { status: e }),
2530
2530
  " ",
2531
2531
  e ?? "Sending Request...",
2532
2532
  e ? ` ${o[e]}` : ""
@@ -2535,12 +2535,12 @@ const Zt = ({
2535
2535
  /* @__PURE__ */ n.jsxs("div", { children: [
2536
2536
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2537
2537
  " ",
2538
- /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Kt(s) : "- B" })
2538
+ /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? tn(s) : "- B" })
2539
2539
  ] }),
2540
2540
  /* @__PURE__ */ n.jsxs("div", { children: [
2541
2541
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2542
2542
  " ",
2543
- t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Yr, {}),
2543
+ t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(ea, {}),
2544
2544
  "ms"
2545
2545
  ] })
2546
2546
  ] }),
@@ -2563,9 +2563,9 @@ function Me(e) {
2563
2563
  const t = e[0];
2564
2564
  return t === void 0 ? "any[]" : `${Me(t)}[]`;
2565
2565
  }
2566
- return typeof e == "object" ? ea(e) : typeof e;
2566
+ return typeof e == "object" ? na(e) : typeof e;
2567
2567
  }
2568
- function ea(e, t = "") {
2568
+ function na(e, t = "") {
2569
2569
  const s = ["{"];
2570
2570
  for (const [a, r] of Object.entries(e)) {
2571
2571
  const o = Me(r);
@@ -2574,24 +2574,24 @@ function ea(e, t = "") {
2574
2574
  return s.push("}"), s.join(`
2575
2575
  `);
2576
2576
  }
2577
- function ta(e) {
2577
+ function sa(e) {
2578
2578
  return { lines: [`type GeneratedType = ${Me(e)};`] };
2579
2579
  }
2580
- const en = ({
2580
+ const nn = ({
2581
2581
  code: e,
2582
2582
  language: t,
2583
2583
  children: s
2584
2584
  }) => {
2585
- const { syntaxHighlighting: a } = Hn().options;
2586
- return Yn(a?.highlighter, "Highlighter not found"), Ts(
2585
+ const { syntaxHighlighting: a } = Jn().options;
2586
+ return es(a?.highlighter, "Highlighter not found"), Os(
2587
2587
  a.highlighter,
2588
2588
  e ?? s ?? "",
2589
2589
  t,
2590
2590
  a.themes
2591
2591
  );
2592
2592
  };
2593
- en.displayName = "Highlight";
2594
- const na = (e) => Object.entries({
2593
+ nn.displayName = "Highlight";
2594
+ const ra = (e) => Object.entries({
2595
2595
  "application/json": "json",
2596
2596
  "text/json": "json",
2597
2597
  "text/html": "html",
@@ -2601,16 +2601,16 @@ const na = (e) => Object.entries({
2601
2601
  "application/xhtml+xml": "xhtml"
2602
2602
  }).find(
2603
2603
  ([s]) => e.includes(s)
2604
- )?.[1], sa = (e) => {
2604
+ )?.[1], aa = (e) => {
2605
2605
  const t = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
2606
- return na(t);
2607
- }, ra = (e) => {
2606
+ return ra(t);
2607
+ }, oa = (e) => {
2608
2608
  try {
2609
2609
  return JSON.stringify(JSON.parse(e), null, 2);
2610
2610
  } catch {
2611
2611
  return null;
2612
2612
  }
2613
- }, aa = (e) => {
2613
+ }, ia = (e) => {
2614
2614
  const t = [
2615
2615
  "Content-Type",
2616
2616
  "Content-Length",
@@ -2624,10 +2624,10 @@ const na = (e) => Object.entries({
2624
2624
  const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2625
2625
  return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2626
2626
  });
2627
- }, Y = 3, Oe = ie(
2627
+ }, K = 3, Oe = ce(
2628
2628
  "div",
2629
2629
  "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2630
- ), X = ie("div", "py-1 break-all"), oa = ({
2630
+ ), Z = ce("div", "py-1 break-all"), ca = ({
2631
2631
  body: e = "",
2632
2632
  headers: t,
2633
2633
  request: s,
@@ -2636,66 +2636,66 @@ const na = (e) => Object.entries({
2636
2636
  fileName: o,
2637
2637
  blob: i
2638
2638
  }) => {
2639
- const l = sa(t), c = ra(e), u = c || e, [d, p] = k(
2639
+ const l = aa(t), c = oa(e), u = c || e, [d, h] = k(
2640
2640
  c ? "formatted" : "raw"
2641
- ), h = Qn({
2641
+ ), f = Wn({
2642
2642
  queryKey: ["types", u],
2643
- queryFn: async () => ta(JSON.parse(u)),
2643
+ queryFn: async () => sa(JSON.parse(u)),
2644
2644
  enabled: d === "types" && !r
2645
2645
  }), m = () => {
2646
2646
  if (i && o) {
2647
2647
  const y = URL.createObjectURL(i), b = document.createElement("a");
2648
2648
  b.href = y, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(y);
2649
2649
  }
2650
- }, x = aa([...t]);
2650
+ }, x = ia([...t]);
2651
2651
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2652
2652
  /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2653
2653
  /* @__PURE__ */ n.jsxs(M, { children: [
2654
- /* @__PURE__ */ n.jsx(Ln, { size: 16 }),
2654
+ /* @__PURE__ */ n.jsx(En, { size: 16 }),
2655
2655
  /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Request" })
2656
2656
  ] }),
2657
- /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, Y).map(([y, b]) => /* @__PURE__ */ n.jsxs(Oe, { children: [
2658
- /* @__PURE__ */ n.jsx(X, { children: y }),
2659
- /* @__PURE__ */ n.jsx(X, { children: b })
2657
+ /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, K).map(([y, b]) => /* @__PURE__ */ n.jsxs(Oe, { children: [
2658
+ /* @__PURE__ */ n.jsx(Z, { children: y }),
2659
+ /* @__PURE__ */ n.jsx(Z, { children: b })
2660
2660
  ] }, y)) }) })
2661
2661
  ] }),
2662
2662
  /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2663
2663
  /* @__PURE__ */ n.jsxs(M, { children: [
2664
- /* @__PURE__ */ n.jsx($n, { size: 16 }),
2664
+ /* @__PURE__ */ n.jsx(In, { size: 16 }),
2665
2665
  /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Response" })
2666
2666
  ] }),
2667
2667
  /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
2668
- x.slice(0, Y).map(([y, b]) => /* @__PURE__ */ n.jsxs(Oe, { children: [
2669
- /* @__PURE__ */ n.jsx(X, { children: y }),
2670
- /* @__PURE__ */ n.jsx(X, { children: b })
2668
+ x.slice(0, K).map(([y, b]) => /* @__PURE__ */ n.jsxs(Oe, { children: [
2669
+ /* @__PURE__ */ n.jsx(Z, { children: y }),
2670
+ /* @__PURE__ */ n.jsx(Z, { children: b })
2671
2671
  ] }, y)),
2672
- x.length > Y && /* @__PURE__ */ n.jsxs(q, { className: "col-span-full grid-cols-subgrid grid group", children: [
2673
- /* @__PURE__ */ n.jsxs(Ft, { 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: [
2672
+ x.length > K && /* @__PURE__ */ n.jsxs(q, { className: "col-span-full grid-cols-subgrid grid group", children: [
2673
+ /* @__PURE__ */ n.jsxs(Vt, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2674
2674
  /* @__PURE__ */ n.jsxs("span", { children: [
2675
2675
  "Show ",
2676
- x.length - Y,
2676
+ x.length - K,
2677
2677
  " more headers"
2678
2678
  ] }),
2679
2679
  /* @__PURE__ */ n.jsx(fe, { size: 12, className: "text-muted-foreground" })
2680
2680
  ] }),
2681
- /* @__PURE__ */ n.jsx(V, { className: "col-span-full grid grid-cols-subgrid", children: x.slice(Y).map(([y, b]) => /* @__PURE__ */ n.jsxs(Oe, { children: [
2682
- /* @__PURE__ */ n.jsx(X, { children: y }),
2683
- /* @__PURE__ */ n.jsx(X, { children: b })
2681
+ /* @__PURE__ */ n.jsx(V, { className: "col-span-full grid grid-cols-subgrid", children: x.slice(K).map(([y, b]) => /* @__PURE__ */ n.jsxs(Oe, { children: [
2682
+ /* @__PURE__ */ n.jsx(Z, { children: y }),
2683
+ /* @__PURE__ */ n.jsx(Z, { children: b })
2684
2684
  ] }, y)) })
2685
2685
  ] })
2686
2686
  ] }) })
2687
2687
  ] }),
2688
2688
  /* @__PURE__ */ n.jsx("div", { className: "flex gap-2 justify-between items-center border-b h-10", children: c && !r && /* @__PURE__ */ n.jsx("div", { className: "px-2", children: /* @__PURE__ */ n.jsxs(
2689
- qt,
2689
+ Bt,
2690
2690
  {
2691
2691
  value: d,
2692
- onValueChange: (y) => p(y),
2692
+ onValueChange: (y) => h(y),
2693
2693
  children: [
2694
- /* @__PURE__ */ n.jsx(Ve, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(Vt, { placeholder: "View" }) }),
2694
+ /* @__PURE__ */ n.jsx(Ve, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(_t, { placeholder: "View" }) }),
2695
2695
  /* @__PURE__ */ n.jsxs(Be, { children: [
2696
- /* @__PURE__ */ n.jsx(te, { value: "formatted", children: "Formatted" }),
2697
- /* @__PURE__ */ n.jsx(te, { value: "raw", children: "Raw" }),
2698
- /* @__PURE__ */ n.jsx(te, { value: "types", children: "Types" })
2696
+ /* @__PURE__ */ n.jsx(ne, { value: "formatted", children: "Formatted" }),
2697
+ /* @__PURE__ */ n.jsx(ne, { value: "raw", children: "Raw" }),
2698
+ /* @__PURE__ */ n.jsx(ne, { value: "types", children: "Types" })
2699
2699
  ] })
2700
2700
  ]
2701
2701
  }
@@ -2710,25 +2710,25 @@ const na = (e) => Object.entries({
2710
2710
  className: "flex items-center gap-2",
2711
2711
  disabled: !i,
2712
2712
  children: [
2713
- /* @__PURE__ */ n.jsx(En, { className: "h-4 w-4" }),
2713
+ /* @__PURE__ */ n.jsx(kn, { className: "h-4 w-4" }),
2714
2714
  "Download ",
2715
2715
  o || "file",
2716
2716
  " (",
2717
- Kt(a),
2717
+ tn(a),
2718
2718
  ")"
2719
2719
  ]
2720
2720
  }
2721
2721
  )
2722
2722
  ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "overflow-auto max-w-full p-4 text-xs max-h-[calc(83.333vh-180px)]", children: /* @__PURE__ */ n.jsx(
2723
- en,
2723
+ nn,
2724
2724
  {
2725
2725
  language: d === "types" ? "typescript" : d === "raw" ? c ? "plain" : l : "json",
2726
- code: (d === "raw" ? e : d === "types" ? h.data?.lines.join(`
2726
+ code: (d === "raw" ? e : d === "types" ? f.data?.lines.join(`
2727
2727
  `) : u) ?? ""
2728
2728
  }
2729
2729
  ) }) })
2730
2730
  ] });
2731
- }, ia = ({
2731
+ }, la = ({
2732
2732
  queryMutation: e,
2733
2733
  showLongRunningWarning: t,
2734
2734
  onCancel: s,
@@ -2737,7 +2737,7 @@ const na = (e) => Object.entries({
2737
2737
  progress: o
2738
2738
  }) => /* @__PURE__ */ n.jsxs("div", { className: "overflow-y-auto h-[80vh] bg-muted/50", children: [
2739
2739
  (e.isPending || e.data) && /* @__PURE__ */ n.jsx(
2740
- Kr,
2740
+ ta,
2741
2741
  {
2742
2742
  status: e.data?.status,
2743
2743
  time: e.data?.time,
@@ -2746,12 +2746,12 @@ const na = (e) => Object.entries({
2746
2746
  progress: o
2747
2747
  }
2748
2748
  ),
2749
- e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(is, { children: [
2750
- /* @__PURE__ */ n.jsx(In, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2751
- /* @__PURE__ */ n.jsx(cs, { children: "Request failed" }),
2752
- /* @__PURE__ */ n.jsx(ls, { children: e.error.message || String(e.error) || "Unexpected error" })
2749
+ e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(ls, { children: [
2750
+ /* @__PURE__ */ n.jsx(Dn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2751
+ /* @__PURE__ */ n.jsx(ds, { children: "Request failed" }),
2752
+ /* @__PURE__ */ n.jsx(us, { children: e.error.message || String(e.error) || "Unexpected error" })
2753
2753
  ] }) }) : e.data ? /* @__PURE__ */ n.jsx(
2754
- oa,
2754
+ ca,
2755
2755
  {
2756
2756
  request: e.data.request,
2757
2757
  size: e.data.size,
@@ -2762,7 +2762,7 @@ const na = (e) => Object.entries({
2762
2762
  blob: e.data.blob
2763
2763
  }
2764
2764
  ) : e.isPending ? /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2765
- /* @__PURE__ */ n.jsx(as, {}),
2765
+ /* @__PURE__ */ n.jsx(is, {}),
2766
2766
  /* @__PURE__ */ n.jsxs(
2767
2767
  "div",
2768
2768
  {
@@ -2773,7 +2773,7 @@ const na = (e) => Object.entries({
2773
2773
  children: [
2774
2774
  "Looks like the request is taking longer than expected.",
2775
2775
  /* @__PURE__ */ n.jsx(
2776
- se,
2776
+ re,
2777
2777
  {
2778
2778
  type: "button",
2779
2779
  onClick: s,
@@ -2788,7 +2788,7 @@ const na = (e) => Object.entries({
2788
2788
  )
2789
2789
  ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
2790
2790
  /* @__PURE__ */ n.jsx(
2791
- kn,
2791
+ zn,
2792
2792
  {
2793
2793
  size: 64,
2794
2794
  className: "text-muted-foreground",
@@ -2798,7 +2798,7 @@ const na = (e) => Object.entries({
2798
2798
  /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2799
2799
  a
2800
2800
  ] }) })
2801
- ] }), ca = $e()(
2801
+ ] }), da = $e()(
2802
2802
  Ee(
2803
2803
  (e) => ({
2804
2804
  skipLogin: !1,
@@ -2806,10 +2806,10 @@ const na = (e) => Object.entries({
2806
2806
  }),
2807
2807
  {
2808
2808
  name: "remember-skip-login",
2809
- storage: bt(() => sessionStorage)
2809
+ storage: Nt(() => sessionStorage)
2810
2810
  }
2811
2811
  )
2812
- ), ne = "__none", la = ({
2812
+ ), se = "__none", ua = ({
2813
2813
  server: e,
2814
2814
  servers: t = [],
2815
2815
  url: s,
@@ -2821,20 +2821,22 @@ const na = (e) => Object.entries({
2821
2821
  examples: c,
2822
2822
  requiresLogin: u = !1,
2823
2823
  onLogin: d,
2824
- onSignUp: p
2824
+ onSignUp: h
2825
2825
  }) => {
2826
- const { selectedServer: h, setSelectedServer: m } = Cr(
2827
- t.map((f) => ({ url: f }))
2828
- ), [x, y] = k(!1), b = Jn(), { setRememberedIdentity: R, getRememberedIdentity: j } = Hr(), [, N] = ts(), { skipLogin: Q, setSkipLogin: O } = ca(), [D, P] = k(!1), J = L(void 0), He = fs(R), Qe = L(null), { label: on } = Nr("meta+enter", () => {
2826
+ const { selectedServer: f, setSelectedServer: m } = Tr(
2827
+ t.map((p) => ({ url: p }))
2828
+ ), [x, y] = k(!1), b = Xn(), { setRememberedIdentity: R, getRememberedIdentity: j } = Jr(), [, N] = ss(), { skipLogin: Q, setSkipLogin: O } = da(), [D, P] = k(!1), J = L(void 0), He = gs(R), Qe = L(null), { label: ln } = Cr("meta+enter", () => {
2829
2829
  Qe.current?.requestSubmit();
2830
- }), { register: cn, control: ce, handleSubmit: Je, watch: We, setValue: ve, ...be } = us({
2830
+ }), Je = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], We = [...i].sort(
2831
+ (p, X) => Je.indexOf(p.name) - Je.indexOf(X.name)
2832
+ ), { register: dn, control: le, handleSubmit: Xe, watch: Ze, setValue: ve, ...be } = ps({
2831
2833
  defaultValues: {
2832
2834
  body: l,
2833
- queryParams: o.length > 0 ? o.map((f) => ({
2834
- name: f.name,
2835
- value: f.defaultValue ?? "",
2836
- active: f.defaultActive ?? !1,
2837
- enum: f.enum ?? []
2835
+ queryParams: o.length > 0 ? o.map((p) => ({
2836
+ name: p.name,
2837
+ value: p.defaultValue ?? "",
2838
+ active: p.defaultActive ?? !1,
2839
+ enum: p.enum ?? []
2838
2840
  })) : [
2839
2841
  {
2840
2842
  name: "",
@@ -2843,14 +2845,14 @@ const na = (e) => Object.entries({
2843
2845
  enum: []
2844
2846
  }
2845
2847
  ],
2846
- pathParams: i.map((f) => ({
2847
- name: f.name,
2848
- value: f.defaultValue ?? ""
2848
+ pathParams: We.map((p) => ({
2849
+ name: p.name,
2850
+ value: p.defaultValue ?? ""
2849
2851
  })),
2850
- headers: r.length > 0 ? r.map((f) => ({
2851
- name: f.name,
2852
- value: f.defaultValue ?? "",
2853
- active: f.defaultActive ?? !1
2852
+ headers: r.length > 0 ? r.map((p) => ({
2853
+ name: p.name,
2854
+ value: p.defaultValue ?? "",
2855
+ active: p.defaultActive ?? !1
2854
2856
  })) : [
2855
2857
  {
2856
2858
  name: "",
@@ -2859,31 +2861,31 @@ const na = (e) => Object.entries({
2859
2861
  }
2860
2862
  ],
2861
2863
  identity: j([
2862
- ne,
2863
- ...b.data?.map((f) => f.id) ?? []
2864
+ se,
2865
+ ...b.data?.map((p) => p.id) ?? []
2864
2866
  ])
2865
2867
  }
2866
- }), W = We("identity"), ln = Nt(
2867
- () => b.data?.find((f) => f.id === W)?.authorizationFields,
2868
+ }), W = Ze("identity"), un = Ct(
2869
+ () => b.data?.find((p) => p.id === W)?.authorizationFields,
2868
2870
  [b.data, W]
2869
2871
  );
2870
2872
  z(() => {
2871
2873
  W && He.current(W);
2872
2874
  }, [He, W]);
2873
- const B = ds({
2875
+ const B = ms({
2874
2876
  gcTime: 0,
2875
- mutationFn: async (f) => {
2876
- const le = performance.now(), yn = Object.fromEntries([
2877
- ...f.headers.filter((A) => A.name && A.active).map((A) => [A.name, A.value])
2877
+ mutationFn: async (p) => {
2878
+ const X = performance.now(), bn = Object.fromEntries([
2879
+ ...p.headers.filter((A) => A.name && A.active).map((A) => [A.name, A.value])
2878
2880
  ]), _ = new Request(
2879
- mt(e ?? h, s, f),
2881
+ ht(e ?? f, s, p),
2880
2882
  {
2881
2883
  method: a.toUpperCase(),
2882
- headers: yn,
2883
- body: f.body ? f.body : void 0
2884
+ headers: bn,
2885
+ body: p.body ? p.body : void 0
2884
2886
  }
2885
2887
  );
2886
- f.identity !== ne && await b.data?.find((A) => A.id === f.identity)?.authorizeRequest(_);
2888
+ p.identity !== se && await b.data?.find((A) => A.id === p.identity)?.authorizeRequest(_);
2887
2889
  const je = setTimeout(
2888
2890
  () => P(!0),
2889
2891
  3210
@@ -2897,28 +2899,28 @@ const na = (e) => Object.entries({
2897
2899
  signal: J.current.signal
2898
2900
  });
2899
2901
  clearTimeout(je), P(!1);
2900
- const vn = performance.now() - le, bn = new URL(_.url), Ye = Array.from(A.headers.entries()), Ke = A.headers.get("content-type") || "", et = Ir(Ke);
2901
- let de = "", tt, nt;
2902
- et ? (tt = await A.blob(), nt = kr(Ye, _.url), de = `Binary content (${Ke})`) : de = await A.text();
2903
- const st = A.headers.get("content-length");
2902
+ const jn = performance.now() - X, Nn = new URL(_.url), et = Array.from(A.headers.entries()), tt = A.headers.get("content-type") || "", nt = Dr(tt);
2903
+ let de = "", st, rt;
2904
+ nt ? (st = await A.blob(), rt = zr(et, _.url), de = `Binary content (${tt})`) : de = await A.text();
2905
+ const at = A.headers.get("content-length");
2904
2906
  return {
2905
2907
  status: A.status,
2906
- headers: Ye,
2907
- size: st ? parseInt(st) : de.length,
2908
+ headers: et,
2909
+ size: at ? parseInt(at) : de.length,
2908
2910
  body: de,
2909
- time: vn,
2910
- isBinary: et,
2911
- fileName: nt,
2912
- blob: tt,
2911
+ time: jn,
2912
+ isBinary: nt,
2913
+ fileName: rt,
2914
+ blob: st,
2913
2915
  request: {
2914
2916
  method: _.method.toUpperCase(),
2915
2917
  url: _.url,
2916
2918
  headers: [
2917
- ["Host", bn.host],
2919
+ ["Host", Nn.host],
2918
2920
  ["User-Agent", "Zudoku Playground"],
2919
2921
  ...Array.from(_.headers.entries())
2920
2922
  ],
2921
- body: f.body ? f.body : void 0
2923
+ body: p.body ? p.body : void 0
2922
2924
  }
2923
2925
  };
2924
2926
  } catch (A) {
@@ -2927,66 +2929,66 @@ const na = (e) => Object.entries({
2927
2929
  ) : A;
2928
2930
  }
2929
2931
  }
2930
- }), Xe = B.isPending, [dn, un] = k(!1);
2932
+ }), Ye = B.isPending, [mn, pn] = k(!1);
2931
2933
  z(() => {
2932
- const f = setTimeout(() => un(Xe), 100);
2933
- return () => clearTimeout(f);
2934
- }, [Xe]);
2935
- const { isFinished: mn, progress: pn } = os({ isAnimating: dn });
2934
+ const p = setTimeout(() => pn(Ye), 100);
2935
+ return () => clearTimeout(p);
2936
+ }, [Ye]);
2937
+ const { isFinished: hn, progress: fn } = cs({ isAnimating: mn });
2936
2938
  z(() => () => {
2937
2939
  J.current?.abort();
2938
2940
  }, []);
2939
- const hn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2940
- qt,
2941
+ const xn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2942
+ Bt,
2941
2943
  {
2942
- onValueChange: (f) => {
2943
- N(() => m(f));
2944
+ onValueChange: (p) => {
2945
+ N(() => m(p));
2944
2946
  },
2945
- value: h,
2946
- defaultValue: h,
2947
+ value: f,
2948
+ defaultValue: f,
2947
2949
  children: [
2948
- /* @__PURE__ */ n.jsx(Ve, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Vt, {}) }),
2949
- /* @__PURE__ */ n.jsx(Be, { children: t.map((f) => /* @__PURE__ */ n.jsx(te, { value: f, children: f.replace(/^https?:\/\//, "").replace(/\/$/, "") }, f)) })
2950
+ /* @__PURE__ */ n.jsx(Ve, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(_t, {}) }),
2951
+ /* @__PURE__ */ n.jsx(Be, { children: t.map((p) => /* @__PURE__ */ n.jsx(ne, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
2950
2952
  ]
2951
2953
  }
2952
- ) }), fn = u && !Q, xn = ["POST", "PUT", "PATCH", "DELETE"].includes(
2954
+ ) }), gn = u && !Q, yn = ["POST", "PUT", "PATCH", "DELETE"].includes(
2953
2955
  a.toUpperCase()
2954
- ), [Ze, gn] = hs();
2956
+ ), [Ke, vn] = xs();
2955
2957
  return /* @__PURE__ */ n.jsx(
2956
- ms,
2958
+ hs,
2957
2959
  {
2958
- register: cn,
2959
- control: ce,
2960
- handleSubmit: Je,
2961
- watch: We,
2960
+ register: dn,
2961
+ control: le,
2962
+ handleSubmit: Xe,
2963
+ watch: Ze,
2962
2964
  setValue: ve,
2963
2965
  ...be,
2964
- children: /* @__PURE__ */ n.jsx(ps, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2966
+ children: /* @__PURE__ */ n.jsx(fs, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2965
2967
  "form",
2966
2968
  {
2967
2969
  ref: Qe,
2968
- onSubmit: Je((f) => {
2969
- b.data?.length === 0 || f.identity ? B.mutate(f) : y(!0);
2970
+ onSubmit: Xe((p) => {
2971
+ b.data?.length === 0 || p.identity ? B.mutate(p) : y(!0);
2970
2972
  }),
2971
2973
  className: "relative",
2972
2974
  children: [
2973
2975
  /* @__PURE__ */ n.jsx(
2974
- Br,
2976
+ Ur,
2975
2977
  {
2976
2978
  identities: b.data ?? [],
2977
2979
  open: x,
2978
2980
  onOpenChange: y,
2979
- onSubmit: ({ rememberedIdentity: f, identity: le }) => {
2980
- f && ve("identity", le ?? ne), y(!1), B.mutate({ ...be.getValues(), identity: le });
2981
+ onSubmit: ({ rememberedIdentity: p, identity: X }) => {
2982
+ p && ve("identity", X ?? se), y(!1), B.mutate({ ...be.getValues(), identity: X });
2981
2983
  }
2982
2984
  }
2983
2985
  ),
2984
2986
  /* @__PURE__ */ n.jsx(
2985
- Xr,
2987
+ Yr,
2986
2988
  {
2987
- open: fn,
2988
- setOpen: (f) => O(!f),
2989
- onSignUp: p,
2989
+ open: gn,
2990
+ setOpen: (p) => O(!p),
2991
+ onSignUp: h,
2990
2992
  onLogin: d
2991
2993
  }
2992
2994
  ),
@@ -2995,18 +2997,18 @@ const na = (e) => Object.entries({
2995
2997
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
2996
2998
  /* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
2997
2999
  /* @__PURE__ */ n.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ n.jsxs("div", { className: "h-full py-1.5", children: [
2998
- hn,
2999
- /* @__PURE__ */ n.jsx(Jr, { url: s }),
3000
- /* @__PURE__ */ n.jsx(Wr, {})
3000
+ xn,
3001
+ /* @__PURE__ */ n.jsx(Xr, { url: s }),
3002
+ /* @__PURE__ */ n.jsx(Zr, {})
3001
3003
  ] }) }),
3002
3004
  /* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
3003
3005
  E,
3004
3006
  {
3005
3007
  type: "button",
3006
3008
  onClick: () => {
3007
- gn(
3008
- mt(
3009
- e ?? h,
3009
+ vn(
3010
+ ht(
3011
+ e ?? f,
3010
3012
  s,
3011
3013
  be.getValues()
3012
3014
  ).toString()
@@ -3016,9 +3018,9 @@ const na = (e) => Object.entries({
3016
3018
  size: "icon-xs",
3017
3019
  className: v(
3018
3020
  "hover:opacity-100 transition",
3019
- Ze ? "text-emerald-600 opacity-100" : "opacity-50"
3021
+ Ke ? "text-emerald-600 opacity-100" : "opacity-50"
3020
3022
  ),
3021
- children: Ze ? /* @__PURE__ */ n.jsx(yt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(Dn, { size: 14 })
3023
+ children: Ke ? /* @__PURE__ */ n.jsx(bt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(Fn, { size: 14 })
3022
3024
  }
3023
3025
  ) })
3024
3026
  ] }),
@@ -3027,10 +3029,10 @@ const na = (e) => Object.entries({
3027
3029
  {
3028
3030
  type: "submit",
3029
3031
  variant: B.isPending ? "destructive" : "default",
3030
- onClick: (f) => {
3032
+ onClick: (p) => {
3031
3033
  B.isPending && (J.current?.abort(
3032
3034
  "Request cancelled by user"
3033
- ), f.preventDefault());
3035
+ ), p.preventDefault());
3034
3036
  },
3035
3037
  className: "w-18",
3036
3038
  children: B.isPending ? "Cancel" : "Send"
@@ -3040,48 +3042,48 @@ const na = (e) => Object.entries({
3040
3042
  /* @__PURE__ */ n.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
3041
3043
  b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
3042
3044
  /* @__PURE__ */ n.jsxs(M, { children: [
3043
- /* @__PURE__ */ n.jsx(zn, { size: 16 }),
3045
+ /* @__PURE__ */ n.jsx(qn, { size: 16 }),
3044
3046
  /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Authentication" })
3045
3047
  ] }),
3046
3048
  /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
3047
- Zt,
3049
+ Kt,
3048
3050
  {
3049
3051
  value: W,
3050
3052
  identities: b.data ?? [],
3051
- setValue: (f) => ve("identity", f)
3053
+ setValue: (p) => ve("identity", p)
3052
3054
  }
3053
3055
  ) })
3054
3056
  ] }),
3055
- i.length > 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
3057
+ We.length > 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
3056
3058
  /* @__PURE__ */ n.jsxs(M, { children: [
3057
- /* @__PURE__ */ n.jsx(Fn, { size: 16 }),
3059
+ /* @__PURE__ */ n.jsx(Vn, { size: 16 }),
3058
3060
  /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Path Parameters" })
3059
3061
  ] }),
3060
- /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(Ur, { url: s, control: ce }) })
3062
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(Gr, { url: s, control: le }) })
3061
3063
  ] }),
3062
- /* @__PURE__ */ n.jsx(Gr, { control: ce, schemaQueryParams: o }),
3064
+ /* @__PURE__ */ n.jsx(Qr, { control: le, schemaQueryParams: o }),
3063
3065
  /* @__PURE__ */ n.jsx(
3064
- qr,
3066
+ Br,
3065
3067
  {
3066
- control: ce,
3068
+ control: le,
3067
3069
  schemaHeaders: r,
3068
- lockedHeaders: ln?.headers
3070
+ lockedHeaders: un?.headers
3069
3071
  }
3070
3072
  ),
3071
- xn && /* @__PURE__ */ n.jsx(Er, { content: c })
3073
+ yn && /* @__PURE__ */ n.jsx(kr, { content: c })
3072
3074
  ] }),
3073
3075
  /* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
3074
3076
  /* @__PURE__ */ n.jsx(
3075
- ia,
3077
+ la,
3076
3078
  {
3077
3079
  queryMutation: B,
3078
3080
  showLongRunningWarning: D,
3079
- isFinished: mn,
3080
- progress: pn,
3081
+ isFinished: hn,
3082
+ progress: fn,
3081
3083
  tip: /* @__PURE__ */ n.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ n.jsxs("span", { className: "text-muted-foreground", children: [
3082
3084
  "Press",
3083
3085
  " ",
3084
- /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: on.join(" + ") }),
3086
+ /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: ln.join(" + ") }),
3085
3087
  " ",
3086
3088
  "to send a request"
3087
3089
  ] }) }),
@@ -3098,7 +3100,7 @@ const na = (e) => Object.entries({
3098
3100
  ) })
3099
3101
  }
3100
3102
  );
3101
- }, da = ({
3103
+ }, ma = ({
3102
3104
  className: e,
3103
3105
  size: t = 16
3104
3106
  }) => /* @__PURE__ */ n.jsx(
@@ -3119,17 +3121,17 @@ const na = (e) => Object.entries({
3119
3121
  }
3120
3122
  )
3121
3123
  }
3122
- ), ua = (e) => {
3124
+ ), pa = (e) => {
3123
3125
  const [t, s] = k(!1);
3124
3126
  return /* @__PURE__ */ n.jsxs(Ie, { onOpenChange: (a) => s(a), children: [
3125
- /* @__PURE__ */ n.jsx(rs, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
3127
+ /* @__PURE__ */ n.jsx(os, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
3126
3128
  "button",
3127
3129
  {
3128
3130
  type: "button",
3129
3131
  className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
3130
3132
  children: [
3131
3133
  "Test",
3132
- /* @__PURE__ */ n.jsx(da, { size: 14 })
3134
+ /* @__PURE__ */ n.jsx(ma, { size: 14 })
3133
3135
  ]
3134
3136
  }
3135
3137
  ) }),
@@ -3140,13 +3142,13 @@ const na = (e) => Object.entries({
3140
3142
  "aria-describedby": void 0,
3141
3143
  showCloseButton: !0,
3142
3144
  children: [
3143
- /* @__PURE__ */ n.jsx(ss, { children: /* @__PURE__ */ n.jsx(De, { children: "Playground" }) }),
3144
- t && /* @__PURE__ */ n.jsx(la, { ...e })
3145
+ /* @__PURE__ */ n.jsx(as, { children: /* @__PURE__ */ n.jsx(De, { children: "Playground" }) }),
3146
+ t && /* @__PURE__ */ n.jsx(ua, { ...e })
3145
3147
  ]
3146
3148
  }
3147
3149
  )
3148
3150
  ] });
3149
- }, ma = {
3151
+ }, ha = {
3150
3152
  get: "green",
3151
3153
  post: "blue",
3152
3154
  put: "yellow",
@@ -3154,7 +3156,7 @@ const na = (e) => Object.entries({
3154
3156
  patch: "purple",
3155
3157
  options: "gray",
3156
3158
  head: "gray"
3157
- }, ht = ({
3159
+ }, xt = ({
3158
3160
  label: e,
3159
3161
  path: t,
3160
3162
  operations: s,
@@ -3177,21 +3179,21 @@ const na = (e) => Object.entries({
3177
3179
  to: `${t}#${o.slug}`,
3178
3180
  badge: {
3179
3181
  label: o.method,
3180
- color: ma[o.method.toLowerCase()],
3182
+ color: ha[o.method.toLowerCase()],
3181
3183
  invert: !0
3182
3184
  }
3183
3185
  }))
3184
- }), tn = jt(
3186
+ }), sn = wt(
3185
3187
  void 0
3186
- ), Qa = tn.Provider, pa = () => {
3187
- const e = ns(tn);
3188
+ ), Wa = sn.Provider, fa = () => {
3189
+ const e = rs(sn);
3188
3190
  if (!e)
3189
3191
  throw new Error("useOasConfig must be used within a OasConfigProvider");
3190
3192
  return e.config;
3191
- }, ft = (e) => ({
3193
+ }, gt = (e) => ({
3192
3194
  path: e.routePath,
3193
3195
  async lazy() {
3194
- const { OasProvider: t } = await import("./OasProvider-Bdyvd6Ic.js");
3196
+ const { OasProvider: t } = await import("./OasProvider-CbwsKPNc.js");
3195
3197
  return {
3196
3198
  element: /* @__PURE__ */ n.jsx(
3197
3199
  t,
@@ -3205,39 +3207,39 @@ const na = (e) => Object.entries({
3205
3207
  };
3206
3208
  },
3207
3209
  children: e.routes
3208
- }), nn = ({
3210
+ }), rn = ({
3209
3211
  path: e,
3210
3212
  tag: t,
3211
3213
  untagged: s
3212
3214
  }) => ({
3213
3215
  path: e,
3214
3216
  async lazy() {
3215
- const { OperationList: a } = await import("./OperationList-YZ7k-Rkt.js");
3217
+ const { OperationList: a } = await import("./OperationList-Bn9ggxw8.js");
3216
3218
  return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
3217
3219
  }
3218
- }), ha = ({
3220
+ }), xa = ({
3219
3221
  render: e,
3220
3222
  path: t
3221
3223
  }) => {
3222
- const { type: s, input: a } = pa(), { tag: r } = _n(), o = Un(), i = ir(an, { type: s, input: a }), {
3224
+ const { type: s, input: a } = fa(), { tag: r } = Mn(), o = Gn(), i = lr(cn, { type: s, input: a }), {
3223
3225
  data: { schema: l }
3224
- } = Wn(i), c = l.tags.at(0);
3226
+ } = Zn(i), c = l.tags.at(0);
3225
3227
  return !r && c?.slug ? /* @__PURE__ */ n.jsx(
3226
- Mn,
3228
+ Hn,
3227
3229
  {
3228
3230
  to: {
3229
- pathname: Gn(t, { tag: c.slug }),
3231
+ pathname: Qn(t, { tag: c.slug }),
3230
3232
  search: o.search
3231
3233
  }
3232
3234
  }
3233
3235
  ) : r && l.tags.some((u) => u.slug === r) ? e(r) : null;
3234
- }, fa = ({ path: e }) => ({
3236
+ }, ga = ({ path: e }) => ({
3235
3237
  path: e,
3236
3238
  async lazy() {
3237
- const { OperationList: t } = await import("./OperationList-YZ7k-Rkt.js");
3239
+ const { OperationList: t } = await import("./OperationList-Bn9ggxw8.js");
3238
3240
  return {
3239
3241
  element: /* @__PURE__ */ n.jsx(
3240
- ha,
3242
+ xa,
3241
3243
  {
3242
3244
  path: e,
3243
3245
  render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
@@ -3245,9 +3247,9 @@ const na = (e) => Object.entries({
3245
3247
  )
3246
3248
  };
3247
3249
  }
3248
- }), sn = (e) => [
3250
+ }), an = (e) => [
3249
3251
  // Category without tagged operations
3250
- nn({
3252
+ rn({
3251
3253
  path: I(e, Ge),
3252
3254
  untagged: !0
3253
3255
  }),
@@ -3255,25 +3257,25 @@ const na = (e) => Object.entries({
3255
3257
  {
3256
3258
  path: I(e, "~schemas"),
3257
3259
  lazy: async () => {
3258
- const { SchemaList: t } = await import("./SchemaList--_f8Azv0.js");
3260
+ const { SchemaList: t } = await import("./SchemaList-DETyCVqu.js");
3259
3261
  return { element: /* @__PURE__ */ n.jsx(t, {}) };
3260
3262
  }
3261
3263
  }
3262
- ], xa = (e, t) => {
3264
+ ], ya = (e, t) => {
3263
3265
  const s = I(e, t.at(0) ?? Ge);
3264
3266
  return [
3265
3267
  // Redirect to first tag on the index route
3266
- { index: !0, loader: () => Bn(s) },
3268
+ { index: !0, loader: () => Un(s) },
3267
3269
  // Create routes for each tag
3268
3270
  ...t.map(
3269
- (a) => nn({
3271
+ (a) => rn({
3270
3272
  path: I(e, a),
3271
3273
  tag: a
3272
3274
  })
3273
3275
  ),
3274
- ...sn(e)
3276
+ ...an(e)
3275
3277
  ];
3276
- }, rn = (e) => e.type === "file" ? Object.keys(e.input) : [], ga = ({
3278
+ }, on = (e) => e.type === "file" ? Object.keys(e.input) : [], va = ({
3277
3279
  basePath: e,
3278
3280
  config: t,
3279
3281
  client: s
@@ -3281,30 +3283,30 @@ const na = (e) => Object.entries({
3281
3283
  const a = t.tagPages;
3282
3284
  if (!a)
3283
3285
  return [
3284
- ft({
3286
+ gt({
3285
3287
  basePath: e,
3286
3288
  routePath: e,
3287
3289
  routes: [
3288
- fa({ path: e + "/:tag?" }),
3289
- ...sn(e)
3290
+ ga({ path: e + "/:tag?" }),
3291
+ ...an(e)
3290
3292
  ],
3291
3293
  client: s,
3292
3294
  config: t
3293
3295
  })
3294
3296
  ];
3295
- const r = rn(t);
3297
+ const r = on(t);
3296
3298
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3297
3299
  const l = I(e, i);
3298
- return ft({
3300
+ return gt({
3299
3301
  basePath: e,
3300
3302
  version: i,
3301
3303
  routePath: l,
3302
- routes: xa(l, a),
3304
+ routes: ya(l, a),
3303
3305
  client: s,
3304
3306
  config: t
3305
3307
  });
3306
3308
  });
3307
- }, an = xr(`
3309
+ }, cn = yr(`
3308
3310
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3309
3311
  schema(input: $input, type: $type) {
3310
3312
  tags {
@@ -3326,8 +3328,8 @@ const na = (e) => Object.entries({
3326
3328
  }
3327
3329
  }
3328
3330
  }
3329
- `), Ge = "~endpoints", Ja = (e) => {
3330
- const t = I(e.path), s = new Os(e);
3331
+ `), Ge = "~endpoints", Xa = (e) => {
3332
+ const t = I(e.path), s = new Ps(e);
3331
3333
  return {
3332
3334
  getHead: () => {
3333
3335
  if (e.type === "url" && !e.skipPreload)
@@ -3352,118 +3354,118 @@ const na = (e) => Object.entries({
3352
3354
  children: l,
3353
3355
  ...c
3354
3356
  }) => {
3355
- const u = Xn();
3357
+ const u = Yn();
3356
3358
  if (!r)
3357
3359
  throw new Error("Server is required");
3358
3360
  return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3359
- se,
3361
+ re,
3360
3362
  {
3361
3363
  className: "gap-2 items-center",
3362
3364
  variant: "outline",
3363
3365
  onClick: u.login,
3364
3366
  children: [
3365
3367
  "Login to open in Playground ",
3366
- /* @__PURE__ */ n.jsx(qn, { size: 16 })
3368
+ /* @__PURE__ */ n.jsx(Bn, { size: 16 })
3367
3369
  ]
3368
3370
  }
3369
3371
  ) : /* @__PURE__ */ n.jsx(
3370
- ua,
3372
+ pa,
3371
3373
  {
3372
3374
  url: i ?? "/",
3373
3375
  method: o ?? "get",
3374
3376
  server: r,
3375
3377
  ...c,
3376
- children: /* @__PURE__ */ n.jsx(se, { className: "gap-2 items-center", variant: "outline", children: l ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3378
+ children: /* @__PURE__ */ n.jsx(re, { className: "gap-2 items-center", variant: "outline", children: l ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3377
3379
  "Open in Playground ",
3378
- /* @__PURE__ */ n.jsx(Vn, { size: 16 })
3380
+ /* @__PURE__ */ n.jsx(_n, { size: 16 })
3379
3381
  ] }) })
3380
3382
  }
3381
3383
  );
3382
3384
  }
3383
3385
  }),
3384
3386
  getNavigation: async (a, r) => {
3385
- if (!rt({ path: t, end: !1 }, a))
3387
+ if (!ot({ path: t, end: !1 }, a))
3386
3388
  return [];
3387
- const o = rt(
3389
+ const o = ot(
3388
3390
  { path: `${t}/:version?/:tag`, end: !0 },
3389
3391
  a
3390
3392
  );
3391
3393
  try {
3392
- const i = o?.params.version, l = i ?? rn(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = zt(s, an, {
3394
+ const i = o?.params.version, l = i ?? on(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = qt(s, cn, {
3393
3395
  type: c,
3394
3396
  input: u
3395
- }), p = await r.queryClient.ensureQueryData(d), h = p.schema.tags.flatMap((x) => {
3397
+ }), h = await r.queryClient.ensureQueryData(d), f = h.schema.tags.flatMap((x) => {
3396
3398
  if (!x.name || x.operations.length === 0) return [];
3397
3399
  const y = I(t, i, x.slug), b = x.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, R = x.extensions?.["x-zudoku-collapsible"] ?? !0;
3398
- return ht({
3400
+ return xt({
3399
3401
  label: x.name,
3400
3402
  path: y,
3401
3403
  operations: x.operations,
3402
3404
  collapsed: b,
3403
3405
  collapsible: R
3404
3406
  });
3405
- }), m = p.schema.tags.find(
3407
+ }), m = h.schema.tags.find(
3406
3408
  (x) => !x.name
3407
3409
  )?.operations;
3408
- return m && h.push(
3409
- ht({
3410
- label: h.length === 0 ? "Endpoints" : "Other endpoints",
3410
+ return m && f.push(
3411
+ xt({
3412
+ label: f.length === 0 ? "Endpoints" : "Other endpoints",
3411
3413
  path: I(t, i, Ge),
3412
3414
  operations: m,
3413
3415
  collapsed: !e.options?.expandAllTags
3414
3416
  })
3415
- ), p.schema.components?.schemas?.length && h.push({
3417
+ ), h.schema.components?.schemas?.length && f.push({
3416
3418
  type: "link",
3417
3419
  label: "Schemas",
3418
3420
  to: I(t, i, "~schemas")
3419
- }), h;
3421
+ }), f;
3420
3422
  } catch {
3421
3423
  return [];
3422
3424
  }
3423
3425
  },
3424
- getRoutes: () => ga({ basePath: t, config: e, client: s })
3426
+ getRoutes: () => va({ basePath: t, config: e, client: s })
3425
3427
  };
3426
3428
  };
3427
3429
  export {
3428
- qs as A,
3429
- Ds as B,
3430
+ Bs as A,
3431
+ Fs as B,
3430
3432
  q as C,
3431
- Pt as D,
3432
- an as E,
3433
- Ja as F,
3434
- Ha as G,
3435
- Vs as L,
3436
- Qa as O,
3437
- ua as P,
3438
- Is as Q,
3439
- qt as S,
3433
+ $t as D,
3434
+ cn as E,
3435
+ Xa as F,
3436
+ Ja as G,
3437
+ _s as L,
3438
+ Wa as O,
3439
+ pa as P,
3440
+ Ds as Q,
3441
+ Bt as S,
3440
3442
  g as T,
3441
3443
  Ge as U,
3442
- ir as a,
3443
- Ft as b,
3444
+ lr as a,
3445
+ Vt as b,
3444
3446
  V as c,
3445
- rn as d,
3446
- Cr as e,
3447
- Yt as f,
3448
- xr as g,
3449
- Qr as h,
3447
+ on as d,
3448
+ Tr as e,
3449
+ en as f,
3450
+ yr as g,
3451
+ Wr as h,
3450
3452
  Ve as i,
3451
- Vt as j,
3453
+ _t as j,
3452
3454
  Be as k,
3453
- te as l,
3454
- ar as m,
3455
- kt as n,
3456
- dt as o,
3457
- Ma as p,
3458
- Bs as q,
3455
+ ne as l,
3456
+ ir as m,
3457
+ zt as n,
3458
+ mt as o,
3459
+ Ha as p,
3460
+ Us as q,
3459
3461
  qe as r,
3460
3462
  $ as s,
3461
- It as t,
3462
- pa as u,
3463
- Rs as v,
3464
- rr as w,
3463
+ Dt as t,
3464
+ fa as u,
3465
+ Ls as v,
3466
+ or as w,
3465
3467
  we as x,
3466
- Ps as y,
3467
- Ga as z
3468
+ $s as y,
3469
+ Qa as z
3468
3470
  };
3469
- //# sourceMappingURL=index-BTqwnlI5.js.map
3471
+ //# sourceMappingURL=index-C_PXQ8Bx.js.map