zudoku 0.28.1 → 0.28.3

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 (83) hide show
  1. package/dist/app/main.js +1 -2
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/lib/components/index.d.ts +4 -0
  4. package/dist/lib/components/index.js +2 -0
  5. package/dist/lib/components/index.js.map +1 -1
  6. package/dist/lib/components/navigation/Sidebar.js +6 -1
  7. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  8. package/dist/lib/oas/graphql/index.js +11 -10
  9. package/dist/lib/oas/graphql/index.js.map +1 -1
  10. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
  11. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  12. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  13. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +6 -2
  14. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  15. package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
  16. package/dist/lib/plugins/openapi/playground/Headers.js +2 -2
  17. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  18. package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -0
  19. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  20. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  21. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  22. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  23. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  24. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  25. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  26. package/dist/lib/util/useScrollToAnchor.js +1 -13
  27. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  28. package/dist/vite/plugin-api.js +97 -97
  29. package/dist/vite/plugin-api.js.map +1 -1
  30. package/dist/vite/plugin-theme-css.js +7 -4
  31. package/dist/vite/plugin-theme-css.js.map +1 -1
  32. package/lib/{AuthenticationPlugin-Du8cLBSr.js → AuthenticationPlugin-DeEA69mE.js} +3 -3
  33. package/lib/{AuthenticationPlugin-Du8cLBSr.js.map → AuthenticationPlugin-DeEA69mE.js.map} +1 -1
  34. package/lib/{Markdown-Cyrx_JrO.js → Markdown-LcMEZ0Sn.js} +2 -2
  35. package/lib/{Markdown-Cyrx_JrO.js.map → Markdown-LcMEZ0Sn.js.map} +1 -1
  36. package/lib/{MdxPage-BuG8Tuwc.js → MdxPage-DkH3V4hV.js} +5 -5
  37. package/lib/{MdxPage-BuG8Tuwc.js.map → MdxPage-DkH3V4hV.js.map} +1 -1
  38. package/lib/{OpenApiRoute-UrC_t0e5.js → OpenApiRoute-ULLXjfro.js} +3 -3
  39. package/lib/{OpenApiRoute-UrC_t0e5.js.map → OpenApiRoute-ULLXjfro.js.map} +1 -1
  40. package/lib/{OperationList-CDt1xdc4.js → OperationList-wzZNceUl.js} +339 -336
  41. package/lib/{OperationList-CDt1xdc4.js.map → OperationList-wzZNceUl.js.map} +1 -1
  42. package/lib/{Select-CnCZ4WhS.js → Select-DJkXPPD0.js} +3 -3
  43. package/lib/{Select-CnCZ4WhS.js.map → Select-DJkXPPD0.js.map} +1 -1
  44. package/lib/{SlotletProvider-mQiPDQIH.js → SlotletProvider-D1t2ePCI.js} +4 -4
  45. package/lib/{SlotletProvider-mQiPDQIH.js.map → SlotletProvider-D1t2ePCI.js.map} +1 -1
  46. package/lib/{ZudokuContext-BTUJPpQl.js → ZudokuContext-dUyBGMap.js} +2 -2
  47. package/lib/{ZudokuContext-BTUJPpQl.js.map → ZudokuContext-dUyBGMap.js.map} +1 -1
  48. package/lib/{chunk-SYFQ2XB5-BPvC-soB.js → chunk-SYFQ2XB5-QijJrSf0.js} +3 -3
  49. package/lib/{chunk-SYFQ2XB5-BPvC-soB.js.map → chunk-SYFQ2XB5-QijJrSf0.js.map} +1 -1
  50. package/lib/{createServer-CjNktZzL.js → createServer-DIztAu7i.js} +11 -8
  51. package/lib/{createServer-CjNktZzL.js.map → createServer-DIztAu7i.js.map} +1 -1
  52. package/lib/{hook-FT3SJLe_.js → hook-CiX69UZ6.js} +2 -2
  53. package/lib/{hook-FT3SJLe_.js.map → hook-CiX69UZ6.js.map} +1 -1
  54. package/lib/{index-Eb1oiHbM.js → index-DrR58fsJ.js} +234 -223
  55. package/lib/index-DrR58fsJ.js.map +1 -0
  56. package/lib/{useExposedProps-BLKFBylA.js → useExposedProps-Bbf99zic.js} +2 -2
  57. package/lib/{useExposedProps-BLKFBylA.js.map → useExposedProps-Bbf99zic.js.map} +1 -1
  58. package/lib/{useScrollToAnchor-BZsGmBng.js → useScrollToAnchor-DYGn1MT9.js} +11 -10
  59. package/lib/useScrollToAnchor-DYGn1MT9.js.map +1 -0
  60. package/lib/zudoku.auth-clerk.js +1 -1
  61. package/lib/zudoku.auth-openid.js +3 -3
  62. package/lib/zudoku.components.js +530 -443
  63. package/lib/zudoku.components.js.map +1 -1
  64. package/lib/zudoku.plugin-api-catalog.js +3 -3
  65. package/lib/zudoku.plugin-api-keys.js +5 -5
  66. package/lib/zudoku.plugin-custom-pages.js +2 -2
  67. package/lib/zudoku.plugin-markdown.js +1 -1
  68. package/lib/zudoku.plugin-openapi.js +3 -3
  69. package/lib/zudoku.plugin-redirect.js +1 -1
  70. package/package.json +2 -2
  71. package/src/app/main.tsx +7 -2
  72. package/src/lib/components/index.ts +2 -0
  73. package/src/lib/components/navigation/Sidebar.tsx +7 -1
  74. package/src/lib/oas/graphql/index.ts +14 -17
  75. package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
  76. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -2
  77. package/src/lib/plugins/openapi/playground/Headers.tsx +5 -9
  78. package/src/lib/plugins/openapi/playground/Playground.tsx +4 -1
  79. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +5 -2
  80. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  81. package/src/lib/util/useScrollToAnchor.ts +1 -19
  82. package/lib/index-Eb1oiHbM.js.map +0 -1
  83. package/lib/useScrollToAnchor-BZsGmBng.js.map +0 -1
@@ -1,17 +1,17 @@
1
- import { j as m } from "./jsx-runtime-Bdg6XQ1m.js";
2
- import { u as vr, l as Ro } from "./ZudokuContext-BTUJPpQl.js";
1
+ import { j as g } from "./jsx-runtime-Bdg6XQ1m.js";
2
+ import { u as vr, l as Ro } from "./ZudokuContext-dUyBGMap.js";
3
3
  import { H as qo } from "./index.esm-9-TF9KQB.js";
4
- import { b as No, a as ko } from "./chunk-SYFQ2XB5-BPvC-soB.js";
5
- import { S as Eo, a as Ao, b as Io, c as Lo, e as Uo } from "./Select-CnCZ4WhS.js";
4
+ import { b as No, a as ko } from "./chunk-SYFQ2XB5-QijJrSf0.js";
5
+ import { S as Eo, a as Ao, b as Io, c as Lo, e as Uo } from "./Select-DJkXPPD0.js";
6
6
  import { a as br } from "./state-mM7uaXTW.js";
7
7
  import { C as Fo } from "./CategoryHeading-MYL1u_6K.js";
8
- import { I as _o, M as Re, H as Be, P as Le } from "./Markdown-Cyrx_JrO.js";
8
+ import { I as _o, M as Re, H as Be, P as Le } from "./Markdown-LcMEZ0Sn.js";
9
9
  import { c as le } from "./cn-qaFjX9_3.js";
10
10
  import { ChevronsUpDownIcon as Bo, CheckIcon as Ho, CopyIcon as Mo, UnfoldVerticalIcon as zo, FoldVerticalIcon as Go, ChevronDownIcon as Wo, CircleFadingPlusIcon as Jo, CircleDotIcon as Vo, CircleIcon as Do, SquareMinusIcon as Qo, SquarePlusIcon as Ko, ListPlusIcon as Yo, RefreshCcwDotIcon as Xo } from "lucide-react";
11
11
  import { useContext as Zo, useTransition as eo, useState as ge, useRef as xr, useEffect as $r, useLayoutEffect as ea, useMemo as to, useCallback as ta } from "react";
12
12
  import { Button as ro } from "./ui/Button.js";
13
13
  import { a as ra, u as jr } from "./context-rwLGh-6_.js";
14
- import { g as rt, C as no, a as na, b as oa, c as _r, P as aa, m as oo, d as ia } from "./index-Eb1oiHbM.js";
14
+ import { g as rt, C as no, a as na, b as oa, c as _r, P as aa, m as oo, d as ia } from "./index-DrR58fsJ.js";
15
15
  import { Tabs as sa, TabsList as la, TabsTrigger as ca, TabsContent as ua } from "./ui/Tabs.js";
16
16
  import { Card as be, CardHeader as fa, CardTitle as pa, CardContent as da } from "./ui/Card.js";
17
17
  import { c as ha } from "./index-Djenk2Hj.js";
@@ -39,8 +39,8 @@ const wr = (e, ...r) => {
39
39
  className: t,
40
40
  options: o,
41
41
  showChevrons: s = !0
42
- }) => /* @__PURE__ */ m.jsxs("div", { className: "grid", children: [
43
- /* @__PURE__ */ m.jsx(
42
+ }) => /* @__PURE__ */ g.jsxs("div", { className: "grid", children: [
43
+ /* @__PURE__ */ g.jsx(
44
44
  "select",
45
45
  {
46
46
  className: le(
@@ -50,17 +50,17 @@ const wr = (e, ...r) => {
50
50
  ),
51
51
  value: e,
52
52
  onChange: r,
53
- children: o.map((l) => /* @__PURE__ */ m.jsx("option", { value: l.value, children: l.label }, l.value))
53
+ children: o.map((l) => /* @__PURE__ */ g.jsx("option", { value: l.value, children: l.label }, l.value))
54
54
  }
55
55
  ),
56
- /* @__PURE__ */ m.jsx(
56
+ /* @__PURE__ */ g.jsx(
57
57
  "div",
58
58
  {
59
59
  className: le(
60
60
  !s && "hidden",
61
61
  "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none"
62
62
  ),
63
- children: /* @__PURE__ */ m.jsx(Bo, { size: 14 })
63
+ children: /* @__PURE__ */ g.jsx(Bo, { size: 14 })
64
64
  }
65
65
  )
66
66
  ] }), xa = rt(
@@ -77,7 +77,7 @@ const wr = (e, ...r) => {
77
77
  `
78
78
  ), Hr = ({ url: e }) => {
79
79
  const [r, t] = ge(!1);
80
- return /* @__PURE__ */ m.jsx(
80
+ return /* @__PURE__ */ g.jsx(
81
81
  ro,
82
82
  {
83
83
  onClick: () => {
@@ -87,18 +87,18 @@ const wr = (e, ...r) => {
87
87
  },
88
88
  variant: "ghost",
89
89
  size: "icon",
90
- children: r ? /* @__PURE__ */ m.jsx(Ho, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ m.jsx(Mo, { size: 14, strokeWidth: 1.3 })
90
+ children: r ? /* @__PURE__ */ g.jsx(Ho, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ g.jsx(Mo, { size: 14, strokeWidth: 1.3 })
91
91
  }
92
92
  );
93
93
  }, $a = () => {
94
94
  const { input: e, type: r } = jr(), t = wr(xa, { input: e, type: r }), o = vr(t), [, s] = eo(), { selectedServer: l, setSelectedServer: n } = br(), { servers: a } = o.data.schema;
95
- return a.length === 0 ? null : a.length === 1 ? /* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-2", children: [
96
- /* @__PURE__ */ m.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
97
- /* @__PURE__ */ m.jsx(_o, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: a[0].url }),
98
- /* @__PURE__ */ m.jsx(Hr, { url: a[0].url })
99
- ] }) : /* @__PURE__ */ m.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
100
- /* @__PURE__ */ m.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
101
- /* @__PURE__ */ m.jsx(
95
+ return a.length === 0 ? null : a.length === 1 ? /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2", children: [
96
+ /* @__PURE__ */ g.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
97
+ /* @__PURE__ */ g.jsx(_o, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: a[0].url }),
98
+ /* @__PURE__ */ g.jsx(Hr, { url: a[0].url })
99
+ ] }) : /* @__PURE__ */ g.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
100
+ /* @__PURE__ */ g.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
101
+ /* @__PURE__ */ g.jsx(
102
102
  et,
103
103
  {
104
104
  className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate",
@@ -113,7 +113,7 @@ const wr = (e, ...r) => {
113
113
  }))
114
114
  }
115
115
  ),
116
- /* @__PURE__ */ m.jsx(Hr, { url: l ?? a.at(0).url })
116
+ /* @__PURE__ */ g.jsx(Hr, { url: l ?? a.at(0).url })
117
117
  ] });
118
118
  }, io = (e, r) => e.reduce(
119
119
  (t, o) => {
@@ -139,7 +139,7 @@ const wr = (e, ...r) => {
139
139
  }
140
140
  );
141
141
  function Ce({ className: e, variant: r, ...t }) {
142
- return /* @__PURE__ */ m.jsx("div", { className: le(wa({ variant: r }), e), ...t });
142
+ return /* @__PURE__ */ g.jsx("div", { className: le(wa({ variant: r }), e), ...t });
143
143
  }
144
144
  const Sa = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
145
145
  type: "string"
@@ -149,9 +149,9 @@ const Sa = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
149
149
  id: t
150
150
  }) => {
151
151
  const o = Sa(e);
152
- return /* @__PURE__ */ m.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1", children: [
153
- /* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-2", children: [
154
- /* @__PURE__ */ m.jsx("code", { children: r === "path" ? /* @__PURE__ */ m.jsx(
152
+ return /* @__PURE__ */ g.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1", children: [
153
+ /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2", children: [
154
+ /* @__PURE__ */ g.jsx("code", { children: r === "path" ? /* @__PURE__ */ g.jsx(
155
155
  no,
156
156
  {
157
157
  name: e.name,
@@ -160,11 +160,11 @@ const Sa = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
160
160
  slug: `${t}-${e.name}`
161
161
  }
162
162
  ) : e.name }),
163
- o.type && /* @__PURE__ */ m.jsx(Ce, { variant: "muted", children: o.type === "array" ? `${o.items.type}[]` : o.type }),
164
- e.required && /* @__PURE__ */ m.jsx(Ce, { variant: "outline", children: "required" }),
165
- e.style === "form" && /* @__PURE__ */ m.jsx(Ce, { variant: "secondary", children: "form" })
163
+ o.type && /* @__PURE__ */ g.jsx(Ce, { variant: "muted", children: o.type === "array" ? `${o.items.type}[]` : o.type }),
164
+ e.required && /* @__PURE__ */ g.jsx(Ce, { variant: "outline", children: "required" }),
165
+ e.style === "form" && /* @__PURE__ */ g.jsx(Ce, { variant: "secondary", children: "form" })
166
166
  ] }),
167
- e.description && /* @__PURE__ */ m.jsx(
167
+ e.description && /* @__PURE__ */ g.jsx(
168
168
  Re,
169
169
  {
170
170
  content: e.description,
@@ -176,9 +176,9 @@ const Sa = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
176
176
  group: e,
177
177
  parameters: r,
178
178
  id: t
179
- }) => /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
180
- /* @__PURE__ */ m.jsx(Be, { level: 3, id: `${t}/${e}-parameters`, className: "capitalize", children: e === "header" ? "Headers" : `${e} Parameters` }),
181
- /* @__PURE__ */ m.jsx(be, { children: /* @__PURE__ */ m.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: r.sort((o, s) => o.required === s.required ? 0 : o.required ? -1 : 1).map((o) => /* @__PURE__ */ m.jsx(
179
+ }) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
180
+ /* @__PURE__ */ g.jsx(Be, { level: 3, id: `${t}/${e}-parameters`, className: "capitalize", children: e === "header" ? "Headers" : `${e} Parameters` }),
181
+ /* @__PURE__ */ g.jsx(be, { children: /* @__PURE__ */ g.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: r.sort((o, s) => o.required === s.required ? 0 : o.required ? -1 : 1).map((o) => /* @__PURE__ */ g.jsx(
182
182
  Oa,
183
183
  {
184
184
  parameter: o,
@@ -272,8 +272,8 @@ function qa() {
272
272
  n.push(i);
273
273
  const y = "[" + f.newLine + i.map(($, x) => {
274
274
  const p = i.length - 1 === x ? f.newLine : "," + f.newLineOrSpace;
275
- let g = a($, c, u + c.indent);
276
- return c.transform && (g = c.transform(i, x, g)), f.indent + g + p;
275
+ let m = a($, c, u + c.indent);
276
+ return c.transform && (m = c.transform(i, x, m)), f.indent + m + p;
277
277
  }).join("") + f.pad + "]";
278
278
  return n.pop(), h(y);
279
279
  }
@@ -283,9 +283,9 @@ function qa() {
283
283
  return "{}";
284
284
  n.push(i);
285
285
  const $ = "{" + f.newLine + y.map((x, p) => {
286
- const g = y.length - 1 === p ? f.newLine : "," + f.newLineOrSpace, v = typeof x == "symbol", O = !v && /^[a-z$_][a-z$_0-9]*$/i.test(x), T = v || O ? x : a(x, c);
286
+ const m = y.length - 1 === p ? f.newLine : "," + f.newLineOrSpace, v = typeof x == "symbol", O = !v && /^[a-z$_][a-z$_0-9]*$/i.test(x), T = v || O ? x : a(x, c);
287
287
  let d = a(i[x], c, u + c.indent);
288
- return c.transform && (d = c.transform(i, x, d)), f.indent + String(T) + ": " + d + g;
288
+ return c.transform && (d = c.transform(i, x, d)), f.indent + String(T) + ": " + d + m;
289
289
  }).join("") + f.pad + "}";
290
290
  return n.pop(), h($);
291
291
  }
@@ -605,10 +605,10 @@ var Ha = {
605
605
  c && (n("if err != nil {", y), n("panic(err)", y + 1), n("}", y));
606
606
  };
607
607
  i && (n("package main"), l(), n("import ("), n('"fmt"', y), f > 0 && n('"time"', y), e.text && n('"strings"', y), n('"net/http"', y), u && n('"io"', y), n(")"), l(), n("func main() {"), l());
608
- const x = f > 0, p = x, g = p ? "client" : "http.DefaultClient";
608
+ const x = f > 0, p = x, m = p ? "client" : "http.DefaultClient";
609
609
  return p && (n("client := http.Client{", y), x && n(`Timeout: time.Duration(${f} * time.Second),`, y + 1), n("}", y), l()), n(`url := "${o}"`, y), l(), e.text ? (n(`payload := strings.NewReader(${JSON.stringify(e.text)})`, y), l(), n(`req, ${h} := http.NewRequest("${r}", url, payload)`, y), l()) : (n(`req, ${h} := http.NewRequest("${r}", url, nil)`, y), l()), $(), Object.keys(t).length && (Object.keys(t).forEach((v) => {
610
610
  n(`req.Header.Add("${v}", "${ce(t[v])}")`, y);
611
- }), l()), n(`res, ${h} := ${g}.Do(req)`, y), $(), u && (l(), n("defer res.Body.Close()", y), n(`body, ${h} := io.ReadAll(res.Body)`, y), $()), l(), u && n("fmt.Println(string(body))", y), i && (l(), n("}")), a();
611
+ }), l()), n(`res, ${h} := ${m}.Do(req)`, y), $(), u && (l(), n("defer res.Body.Close()", y), n(`body, ${h} := io.ReadAll(res.Body)`, y), $()), l(), u && n("fmt.Println(string(body))", y), i && (l(), n("}")), a();
612
612
  }
613
613
  }, Ga = {
614
614
  info: {
@@ -639,7 +639,7 @@ var Ha = {
639
639
  c(`${e} ${f} ${o}`);
640
640
  const h = Object.keys(s);
641
641
  if (h.forEach((x) => {
642
- const p = x.toLowerCase().replace(/(^|-)(\w)/g, (g) => g.toUpperCase());
642
+ const p = x.toLowerCase().replace(/(^|-)(\w)/g, (m) => m.toUpperCase());
643
643
  c(`${p}: ${s[x]}`);
644
644
  }), a.autoHost && !h.includes("host") && c(`Host: ${t.host}`), a.autoContentLength && l.text && !h.includes("content-length")) {
645
645
  const p = new TextEncoder().encode(l.text).length.toString();
@@ -1063,8 +1063,8 @@ var Ha = {
1063
1063
  };
1064
1064
  switch (Object.keys(o).length && (y.headers = o), t.mimeType) {
1065
1065
  case "application/x-www-form-urlencoded":
1066
- f("const { URLSearchParams } = require('url');"), c("const encodedParams = new URLSearchParams();"), i(), (x = t.params) == null || x.forEach((g) => {
1067
- c(`encodedParams.set('${g.name}', '${g.value}');`);
1066
+ f("const { URLSearchParams } = require('url');"), c("const encodedParams = new URLSearchParams();"), i(), (x = t.params) == null || x.forEach((m) => {
1067
+ c(`encodedParams.set('${m.name}', '${m.value}');`);
1068
1068
  }), y.body = "encodedParams";
1069
1069
  break;
1070
1070
  case "application/json":
@@ -1074,19 +1074,19 @@ var Ha = {
1074
1074
  if (!t.params)
1075
1075
  break;
1076
1076
  const p = pe(o, "content-type");
1077
- p && delete o[p], f("const FormData = require('form-data');"), c("const formData = new FormData();"), i(), t.params.forEach((g) => {
1078
- if (!g.fileName && !g.fileName && !g.contentType) {
1079
- c(`formData.append('${g.name}', '${g.value}');`);
1077
+ p && delete o[p], f("const FormData = require('form-data');"), c("const formData = new FormData();"), i(), t.params.forEach((m) => {
1078
+ if (!m.fileName && !m.fileName && !m.contentType) {
1079
+ c(`formData.append('${m.name}', '${m.value}');`);
1080
1080
  return;
1081
1081
  }
1082
- g.fileName && (a = !0, c(`formData.append('${g.name}', fs.createReadStream('${g.fileName}'));`));
1082
+ m.fileName && (a = !0, c(`formData.append('${m.name}', fs.createReadStream('${m.fileName}'));`));
1083
1083
  });
1084
1084
  break;
1085
1085
  default:
1086
1086
  t.text && (y.body = t.text);
1087
1087
  }
1088
1088
  if (s.length) {
1089
- const p = s.map(({ name: g, value: v }) => `${encodeURIComponent(g)}=${encodeURIComponent(v)}`).join("; ");
1089
+ const p = s.map(({ name: m, value: v }) => `${encodeURIComponent(m)}=${encodeURIComponent(v)}`).join("; ");
1090
1090
  y.headers || (y.headers = {}), y.headers.cookie = p;
1091
1091
  }
1092
1092
  i(), c(`const url = '${h}';`), y.headers && !Object.keys(y.headers).length && delete y.headers;
@@ -1096,7 +1096,7 @@ var Ha = {
1096
1096
  // The Fetch API body only accepts string parameters, but stringified JSON can be difficult to
1097
1097
  // read, so we keep the object as a literal and use this transform function to wrap the literal
1098
1098
  // in a `JSON.stringify` call.
1099
- transform: (p, g, v) => g === "body" && t.mimeType === "application/json" ? `JSON.stringify(${v})` : v
1099
+ transform: (p, m, v) => m === "body" && t.mimeType === "application/json" ? `JSON.stringify(${v})` : v
1100
1100
  });
1101
1101
  return c(`const options = ${$};`), i(), a && f("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (c("options.body = formData;"), i()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1102
1102
  }
@@ -1224,7 +1224,7 @@ var Ha = {
1224
1224
  const $ = [];
1225
1225
  s.params.forEach((x) => {
1226
1226
  const p = {};
1227
- x.fileName && !x.value ? (i = !0, p.body = `fs.createReadStream('${x.fileName}')`, c((g) => g.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : x.value && (p.body = x.value), p.body && (x.contentType && (p["content-type"] = x.contentType), $.push(p));
1227
+ x.fileName && !x.value ? (i = !0, p.body = `fs.createReadStream('${x.fileName}')`, c((m) => m.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : x.value && (p.body = x.value), p.body && (x.contentType && (p["content-type"] = x.contentType), $.push(p));
1228
1228
  }), h(`req.multipart(${fe($, { indent: a.indent })});`), u();
1229
1229
  break;
1230
1230
  }
@@ -1446,7 +1446,7 @@ ${t}]`;
1446
1446
  noTags: h = !1,
1447
1447
  shortTags: y = !1,
1448
1448
  timeout: $ = 30
1449
- } = a, { push: x, blank: p, join: g } = new V({ indent: c });
1449
+ } = a, { push: x, blank: p, join: m } = new V({ indent: c });
1450
1450
  h || (x(y ? "<?" : "<?php"), p()), x("$curl = curl_init();"), p();
1451
1451
  const v = [
1452
1452
  {
@@ -1505,7 +1505,7 @@ ${c}` });
1505
1505
  T.length && O.push(`CURLOPT_COOKIE => "${T.join("; ")}",`);
1506
1506
  const d = Object.keys(n).sort().map((S) => `"${S}: ${ce(n[S])}"`);
1507
1507
  return d.length && (O.push("CURLOPT_HTTPHEADER => ["), O.push(d.join(`,
1508
- ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = curl_exec($curl);"), x("$err = curl_error($curl);"), p(), x("curl_close($curl);"), p(), x("if ($err) {"), x(f ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), x("} else {"), x("echo $response;", 1), x("}"), !h && i && (p(), x("?>")), g();
1508
+ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = curl_exec($curl);"), x("$err = curl_error($curl);"), p(), x("curl_close($curl);"), p(), x("if ($err) {"), x(f ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), x("} else {"), x("echo $response;", 1), x("}"), !h && i && (p(), x("?>")), m();
1509
1509
  }
1510
1510
  }, vi = {
1511
1511
  info: {
@@ -1531,21 +1531,21 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1531
1531
  break;
1532
1532
  case "multipart/form-data": {
1533
1533
  const p = [];
1534
- if (e.params && e.params.forEach((g) => {
1535
- if (g.fileName) {
1534
+ if (e.params && e.params.forEach((m) => {
1535
+ if (m.fileName) {
1536
1536
  const v = {
1537
- name: g.name,
1538
- filename: g.fileName,
1539
- contents: g.value
1537
+ name: m.name,
1538
+ filename: m.fileName,
1539
+ contents: m.value
1540
1540
  };
1541
- g.contentType && (v.headers = { "Content-Type": g.contentType }), p.push(v);
1542
- } else g.value && p.push({
1543
- name: g.name,
1544
- contents: g.value
1541
+ m.contentType && (v.headers = { "Content-Type": m.contentType }), p.push(v);
1542
+ } else m.value && p.push({
1543
+ name: m.name,
1544
+ contents: m.value
1545
1545
  });
1546
1546
  }), p.length && (f(`'multipart' => ${te(p, n.indent + n.indent, n.indent)}`, 1), nt(s, "content-type") && (x = ve(s, "content-type")) != null && x.indexOf("boundary"))) {
1547
- const g = pe(s, "content-type");
1548
- g && delete s[g];
1547
+ const m = pe(s, "content-type");
1548
+ m && delete s[m];
1549
1549
  }
1550
1550
  break;
1551
1551
  }
@@ -1599,7 +1599,7 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1599
1599
  case "multipart/form-data": {
1600
1600
  if (!e.params)
1601
1601
  break;
1602
- const p = [], g = {};
1602
+ const p = [], m = {};
1603
1603
  e.params.forEach(({ name: T, fileName: d, value: S, contentType: b }) => {
1604
1604
  if (d) {
1605
1605
  p.push({
@@ -1610,9 +1610,9 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1610
1610
  });
1611
1611
  return;
1612
1612
  }
1613
- S && (g[T] = S);
1613
+ S && (m[T] = S);
1614
1614
  });
1615
- const v = Object.keys(g).length ? te(g, i) : "null", O = p.length ? te(p, i) : "null";
1615
+ const v = Object.keys(m).length ? te(m, i) : "null", O = p.length ? te(p, i) : "null";
1616
1616
  if (f("$body = new http\\Message\\Body;"), f(`$body->addForm(${v}, ${O});`), nt(r, "content-type") && (x = ve(r, "content-type")) != null && x.indexOf("boundary")) {
1617
1617
  const T = pe(r, "content-type");
1618
1618
  T && delete r[T];
@@ -1774,8 +1774,8 @@ var Ie = (e, r, t) => {
1774
1774
  n(v !== p ? `"${O}": "${ce(u[O])}",` : `"${O}": "${ce(u[O])}"`, 1), v += 1;
1775
1775
  }), n("}"), a();
1776
1776
  }
1777
- let g = Oi.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1778
- return $ && (x ? g += ", json=payload" : g += ", data=payload"), y && (g += ", files=files"), p > 0 && (g += ", headers=headers"), g += ")", n(g), a(), n("print(response.text)"), i();
1777
+ let m = Oi.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1778
+ return $ && (x ? m += ", json=payload" : m += ", data=payload"), y && (m += ", files=files"), p > 0 && (m += ", headers=headers"), m += ")", n(m), a(), n("print(response.text)"), i();
1779
1779
  }
1780
1780
  }, Pi = {
1781
1781
  info: {
@@ -1820,7 +1820,7 @@ var Ie = (e, r, t) => {
1820
1820
  n('encode <- "raw"'), a();
1821
1821
  break;
1822
1822
  }
1823
- const h = ve(s, "cookie"), y = ve(s, "accept"), $ = h ? `set_cookies(\`${String(h).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, x = y ? `accept("${ce(y)}")` : void 0, p = `content_type("${ce(o.mimeType)}")`, g = Object.entries(s).filter(([d]) => !["cookie", "accept", "content-type"].includes(d.toLowerCase())).map(([d, S]) => `'${d}' = '${ze(S)}'`).join(", "), v = g ? `add_headers(${g})` : void 0;
1823
+ const h = ve(s, "cookie"), y = ve(s, "accept"), $ = h ? `set_cookies(\`${String(h).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, x = y ? `accept("${ce(y)}")` : void 0, p = `content_type("${ce(o.mimeType)}")`, m = Object.entries(s).filter(([d]) => !["cookie", "accept", "content-type"].includes(d.toLowerCase())).map(([d, S]) => `'${d}' = '${ze(S)}'`).join(", "), v = m ? `add_headers(${m})` : void 0;
1824
1824
  let O = `response <- VERB("${l}", url`;
1825
1825
  f && (O += ", body = payload"), t.length && (O += ", query = queryString");
1826
1826
  const T = [v, p, x, $].filter((d) => !!d).join(", ");
@@ -1908,17 +1908,17 @@ ${a}` : " "
1908
1908
  }), $ = Ai(i);
1909
1909
  let x = ue(e);
1910
1910
  if (h(`curl ${$("request")} ${r}`), u && (x = unescape(x), h($("globoff"))), h(`${$("url ")}${x}`), t === "HTTP/1.0" && h($("http1.0")), ve(s, "accept-encoding") && h("--compressed"), l.mimeType === "multipart/form-data") {
1911
- const g = pe(o, "content-type");
1912
- if (g) {
1913
- const v = o[g];
1914
- if (g && v) {
1911
+ const m = pe(o, "content-type");
1912
+ if (m) {
1913
+ const v = o[m];
1914
+ if (m && v) {
1915
1915
  const O = String(v).replace(/; boundary.+?(?=(;|$))/, "");
1916
- o[g] = O, s[g] = O;
1916
+ o[m] = O, s[m] = O;
1917
1917
  }
1918
1918
  }
1919
1919
  }
1920
- switch (Object.keys(o).sort().forEach((g) => {
1921
- const v = `${g}: ${o[g]}`;
1920
+ switch (Object.keys(o).sort().forEach((m) => {
1921
+ const v = `${m}: ${o[m]}`;
1922
1922
  h(`${$("header")} ${ue(v)}`);
1923
1923
  }), s.cookie && h(`${$("cookie")} ${ue(s.cookie)}`), l.mimeType) {
1924
1924
  case "multipart/form-data":
@@ -1936,11 +1936,11 @@ ${a}` : " "
1936
1936
  default:
1937
1937
  if (!l.text)
1938
1938
  break;
1939
- let g = !1;
1939
+ let m = !1;
1940
1940
  if (Aa(l.mimeType) && l.text.length > 20)
1941
1941
  try {
1942
1942
  const v = JSON.parse(l.text);
1943
- g = !0, l.text.indexOf("'") > 0 ? h(
1943
+ m = !0, l.text.indexOf("'") > 0 ? h(
1944
1944
  `${c ? "--data-binary" : $("data")} @- <<EOF
1945
1945
  ${JSON.stringify(
1946
1946
  v,
@@ -1955,7 +1955,7 @@ ${JSON.stringify(v, null, f)}
1955
1955
  );
1956
1956
  } catch {
1957
1957
  }
1958
- g || h(`${c ? "--data-binary" : $("data")} ${ue(l.text)}`);
1958
+ m || h(`${c ? "--data-binary" : $("data")} ${ue(l.text)}`);
1959
1959
  }
1960
1960
  return y();
1961
1961
  }
@@ -2165,7 +2165,7 @@ function zi() {
2165
2165
  (function(t) {
2166
2166
  var o = r && !r.nodeType && r, s = !e.nodeType && e, l = typeof Ze == "object" && Ze;
2167
2167
  (l.global === l || l.window === l || l.self === l) && (t = l);
2168
- var n, a = 2147483647, i = 36, c = 1, u = 26, f = 38, h = 700, y = 72, $ = 128, x = "-", p = /^xn--/, g = /[^\x20-\x7E]/, v = /[\x2E\u3002\uFF0E\uFF61]/g, O = {
2168
+ var n, a = 2147483647, i = 36, c = 1, u = 26, f = 38, h = 700, y = 72, $ = 128, x = "-", p = /^xn--/, m = /[^\x20-\x7E]/, v = /[\x2E\u3002\uFF0E\uFF61]/g, O = {
2169
2169
  overflow: "Overflow: input needs wider integers to process",
2170
2170
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
2171
2171
  "invalid-input": "Invalid input"
@@ -2244,7 +2244,7 @@ function zi() {
2244
2244
  }
2245
2245
  function re(R) {
2246
2246
  return E(R, function(N) {
2247
- return g.test(N) ? "xn--" + Z(N) : N;
2247
+ return m.test(N) ? "xn--" + Z(N) : N;
2248
2248
  });
2249
2249
  }
2250
2250
  if (n = {
@@ -2456,11 +2456,11 @@ function is() {
2456
2456
  throw new TypeError(e + c);
2457
2457
  for (var u = l(arguments, 1), f, h = function() {
2458
2458
  if (this instanceof f) {
2459
- var g = c.apply(
2459
+ var m = c.apply(
2460
2460
  this,
2461
2461
  s(u, arguments)
2462
2462
  );
2463
- return Object(g) === g ? g : this;
2463
+ return Object(m) === m ? m : this;
2464
2464
  }
2465
2465
  return c.apply(
2466
2466
  i,
@@ -2563,7 +2563,7 @@ var Xt, Fn;
2563
2563
  function Tr() {
2564
2564
  if (Fn) return Xt;
2565
2565
  Fn = 1;
2566
- var e, r = /* @__PURE__ */ uo(), t = /* @__PURE__ */ Gi(), o = /* @__PURE__ */ Wi(), s = /* @__PURE__ */ Ji(), l = /* @__PURE__ */ Vi(), n = /* @__PURE__ */ fo(), a = /* @__PURE__ */ We(), i = /* @__PURE__ */ Di(), c = /* @__PURE__ */ Qi(), u = /* @__PURE__ */ Ki(), f = /* @__PURE__ */ Yi(), h = /* @__PURE__ */ Xi(), y = /* @__PURE__ */ Zi(), $ = /* @__PURE__ */ es(), x = /* @__PURE__ */ rs(), p = Function, g = function(J) {
2566
+ var e, r = /* @__PURE__ */ uo(), t = /* @__PURE__ */ Gi(), o = /* @__PURE__ */ Wi(), s = /* @__PURE__ */ Ji(), l = /* @__PURE__ */ Vi(), n = /* @__PURE__ */ fo(), a = /* @__PURE__ */ We(), i = /* @__PURE__ */ Di(), c = /* @__PURE__ */ Qi(), u = /* @__PURE__ */ Ki(), f = /* @__PURE__ */ Yi(), h = /* @__PURE__ */ Xi(), y = /* @__PURE__ */ Zi(), $ = /* @__PURE__ */ es(), x = /* @__PURE__ */ rs(), p = Function, m = function(J) {
2567
2567
  try {
2568
2568
  return p('"use strict"; return (' + J + ").constructor;")();
2569
2569
  } catch {
@@ -2673,11 +2673,11 @@ function Tr() {
2673
2673
  var se = function J(A) {
2674
2674
  var F;
2675
2675
  if (A === "%AsyncFunction%")
2676
- F = g("async function () {}");
2676
+ F = m("async function () {}");
2677
2677
  else if (A === "%GeneratorFunction%")
2678
- F = g("function* () {}");
2678
+ F = m("function* () {}");
2679
2679
  else if (A === "%AsyncGeneratorFunction%")
2680
- F = g("async function* () {}");
2680
+ F = m("async function* () {}");
2681
2681
  else if (A === "%AsyncGenerator%") {
2682
2682
  var _ = J("%AsyncGeneratorFunction%");
2683
2683
  _ && (F = _.prototype);
@@ -2912,7 +2912,7 @@ var ar, Wn;
2912
2912
  function vs() {
2913
2913
  if (Wn) return ar;
2914
2914
  Wn = 1;
2915
- var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && r && typeof r.get == "function" ? r.get : null, o = e && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = s && l && typeof l.get == "function" ? l.get : null, a = s && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, c = i ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, f = u ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, y = h ? WeakRef.prototype.deref : null, $ = Boolean.prototype.valueOf, x = Object.prototype.toString, p = Function.prototype.toString, g = String.prototype.match, v = String.prototype.slice, O = String.prototype.replace, T = String.prototype.toUpperCase, d = String.prototype.toLowerCase, S = RegExp.prototype.test, b = Array.prototype.concat, q = Array.prototype.join, L = Array.prototype.slice, E = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(j) {
2915
+ var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && r && typeof r.get == "function" ? r.get : null, o = e && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = s && l && typeof l.get == "function" ? l.get : null, a = s && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, c = i ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, f = u ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, y = h ? WeakRef.prototype.deref : null, $ = Boolean.prototype.valueOf, x = Object.prototype.toString, p = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, O = String.prototype.replace, T = String.prototype.toUpperCase, d = String.prototype.toLowerCase, S = RegExp.prototype.test, b = Array.prototype.concat, q = Array.prototype.join, L = Array.prototype.slice, E = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(j) {
2916
2916
  return j.__proto__;
2917
2917
  } : null);
2918
2918
  function k(j, w) {
@@ -3105,7 +3105,7 @@ function vs() {
3105
3105
  function oe(j) {
3106
3106
  if (j.name)
3107
3107
  return j.name;
3108
- var w = g.call(p.call(j), /^function\s*([\w$]+)/);
3108
+ var w = m.call(p.call(j), /^function\s*([\w$]+)/);
3109
3109
  return w ? w[1] : null;
3110
3110
  }
3111
3111
  function he(j, w) {
@@ -3270,36 +3270,36 @@ var ir, Jn;
3270
3270
  function bs() {
3271
3271
  if (Jn) return ir;
3272
3272
  Jn = 1;
3273
- var e = /* @__PURE__ */ Tr(), r = ms(), t = /* @__PURE__ */ vs(), o = /* @__PURE__ */ We(), s = e("%WeakMap%", !0), l = e("%Map%", !0), n = r("WeakMap.prototype.get", !0), a = r("WeakMap.prototype.set", !0), i = r("WeakMap.prototype.has", !0), c = r("Map.prototype.get", !0), u = r("Map.prototype.set", !0), f = r("Map.prototype.has", !0), h = function(p, g) {
3273
+ var e = /* @__PURE__ */ Tr(), r = ms(), t = /* @__PURE__ */ vs(), o = /* @__PURE__ */ We(), s = e("%WeakMap%", !0), l = e("%Map%", !0), n = r("WeakMap.prototype.get", !0), a = r("WeakMap.prototype.set", !0), i = r("WeakMap.prototype.has", !0), c = r("Map.prototype.get", !0), u = r("Map.prototype.set", !0), f = r("Map.prototype.has", !0), h = function(p, m) {
3274
3274
  for (var v = p, O; (O = v.next) !== null; v = O)
3275
- if (O.key === g)
3275
+ if (O.key === m)
3276
3276
  return v.next = O.next, O.next = /** @type {NonNullable<typeof list.next>} */
3277
3277
  p.next, p.next = O, O;
3278
- }, y = function(p, g) {
3279
- var v = h(p, g);
3278
+ }, y = function(p, m) {
3279
+ var v = h(p, m);
3280
3280
  return v && v.value;
3281
- }, $ = function(p, g, v) {
3282
- var O = h(p, g);
3281
+ }, $ = function(p, m, v) {
3282
+ var O = h(p, m);
3283
3283
  O ? O.value = v : p.next = /** @type {import('.').ListNode<typeof value>} */
3284
3284
  {
3285
3285
  // eslint-disable-line no-param-reassign, no-extra-parens
3286
- key: g,
3286
+ key: m,
3287
3287
  next: p.next,
3288
3288
  value: v
3289
3289
  };
3290
- }, x = function(p, g) {
3291
- return !!h(p, g);
3290
+ }, x = function(p, m) {
3291
+ return !!h(p, m);
3292
3292
  };
3293
3293
  return ir = function() {
3294
- var g, v, O, T = {
3294
+ var m, v, O, T = {
3295
3295
  assert: function(d) {
3296
3296
  if (!T.has(d))
3297
3297
  throw new o("Side channel does not contain " + t(d));
3298
3298
  },
3299
3299
  get: function(d) {
3300
3300
  if (s && d && (typeof d == "object" || typeof d == "function")) {
3301
- if (g)
3302
- return n(g, d);
3301
+ if (m)
3302
+ return n(m, d);
3303
3303
  } else if (l) {
3304
3304
  if (v)
3305
3305
  return c(v, d);
@@ -3308,8 +3308,8 @@ function bs() {
3308
3308
  },
3309
3309
  has: function(d) {
3310
3310
  if (s && d && (typeof d == "object" || typeof d == "function")) {
3311
- if (g)
3312
- return i(g, d);
3311
+ if (m)
3312
+ return i(m, d);
3313
3313
  } else if (l) {
3314
3314
  if (v)
3315
3315
  return f(v, d);
@@ -3318,7 +3318,7 @@ function bs() {
3318
3318
  return !1;
3319
3319
  },
3320
3320
  set: function(d, S) {
3321
- s && d && (typeof d == "object" || typeof d == "function") ? (g || (g = new s()), a(g, d, S)) : l ? (v || (v = new l()), u(v, d, S)) : (O || (O = { key: {}, next: null }), $(O, d, S));
3321
+ s && d && (typeof d == "object" || typeof d == "function") ? (m || (m = new s()), a(m, d, S)) : l ? (v || (v = new l()), u(v, d, S)) : (O || (O = { key: {}, next: null }), $(O, d, S));
3322
3322
  }
3323
3323
  };
3324
3324
  return T;
@@ -3351,52 +3351,52 @@ function go() {
3351
3351
  if (Dn) return lr;
3352
3352
  Dn = 1;
3353
3353
  var e = /* @__PURE__ */ Pr(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = function() {
3354
- for (var p = [], g = 0; g < 256; ++g)
3355
- p.push("%" + ((g < 16 ? "0" : "") + g.toString(16)).toUpperCase());
3354
+ for (var p = [], m = 0; m < 256; ++m)
3355
+ p.push("%" + ((m < 16 ? "0" : "") + m.toString(16)).toUpperCase());
3356
3356
  return p;
3357
- }(), s = function(g) {
3358
- for (; g.length > 1; ) {
3359
- var v = g.pop(), O = v.obj[v.prop];
3357
+ }(), s = function(m) {
3358
+ for (; m.length > 1; ) {
3359
+ var v = m.pop(), O = v.obj[v.prop];
3360
3360
  if (t(O)) {
3361
3361
  for (var T = [], d = 0; d < O.length; ++d)
3362
3362
  typeof O[d] < "u" && T.push(O[d]);
3363
3363
  v.obj[v.prop] = T;
3364
3364
  }
3365
3365
  }
3366
- }, l = function(g, v) {
3367
- for (var O = v && v.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, T = 0; T < g.length; ++T)
3368
- typeof g[T] < "u" && (O[T] = g[T]);
3366
+ }, l = function(m, v) {
3367
+ for (var O = v && v.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, T = 0; T < m.length; ++T)
3368
+ typeof m[T] < "u" && (O[T] = m[T]);
3369
3369
  return O;
3370
- }, n = function p(g, v, O) {
3370
+ }, n = function p(m, v, O) {
3371
3371
  if (!v)
3372
- return g;
3372
+ return m;
3373
3373
  if (typeof v != "object") {
3374
- if (t(g))
3375
- g.push(v);
3376
- else if (g && typeof g == "object")
3377
- (O && (O.plainObjects || O.allowPrototypes) || !r.call(Object.prototype, v)) && (g[v] = !0);
3374
+ if (t(m))
3375
+ m.push(v);
3376
+ else if (m && typeof m == "object")
3377
+ (O && (O.plainObjects || O.allowPrototypes) || !r.call(Object.prototype, v)) && (m[v] = !0);
3378
3378
  else
3379
- return [g, v];
3380
- return g;
3379
+ return [m, v];
3380
+ return m;
3381
3381
  }
3382
- if (!g || typeof g != "object")
3383
- return [g].concat(v);
3384
- var T = g;
3385
- return t(g) && !t(v) && (T = l(g, O)), t(g) && t(v) ? (v.forEach(function(d, S) {
3386
- if (r.call(g, S)) {
3387
- var b = g[S];
3388
- b && typeof b == "object" && d && typeof d == "object" ? g[S] = p(b, d, O) : g.push(d);
3382
+ if (!m || typeof m != "object")
3383
+ return [m].concat(v);
3384
+ var T = m;
3385
+ return t(m) && !t(v) && (T = l(m, O)), t(m) && t(v) ? (v.forEach(function(d, S) {
3386
+ if (r.call(m, S)) {
3387
+ var b = m[S];
3388
+ b && typeof b == "object" && d && typeof d == "object" ? m[S] = p(b, d, O) : m.push(d);
3389
3389
  } else
3390
- g[S] = d;
3391
- }), g) : Object.keys(v).reduce(function(d, S) {
3390
+ m[S] = d;
3391
+ }), m) : Object.keys(v).reduce(function(d, S) {
3392
3392
  var b = v[S];
3393
3393
  return r.call(d, S) ? d[S] = p(d[S], b, O) : d[S] = b, d;
3394
3394
  }, T);
3395
- }, a = function(g, v) {
3395
+ }, a = function(m, v) {
3396
3396
  return Object.keys(v).reduce(function(O, T) {
3397
3397
  return O[T] = v[T], O;
3398
- }, g);
3399
- }, i = function(p, g, v) {
3398
+ }, m);
3399
+ }, i = function(p, m, v) {
3400
3400
  var O = p.replace(/\+/g, " ");
3401
3401
  if (v === "iso-8859-1")
3402
3402
  return O.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -3405,11 +3405,11 @@ function go() {
3405
3405
  } catch {
3406
3406
  return O;
3407
3407
  }
3408
- }, c = 1024, u = function(g, v, O, T, d) {
3409
- if (g.length === 0)
3410
- return g;
3411
- var S = g;
3412
- if (typeof g == "symbol" ? S = Symbol.prototype.toString.call(g) : typeof g != "string" && (S = String(g)), O === "iso-8859-1")
3408
+ }, c = 1024, u = function(m, v, O, T, d) {
3409
+ if (m.length === 0)
3410
+ return m;
3411
+ var S = m;
3412
+ if (typeof m == "symbol" ? S = Symbol.prototype.toString.call(m) : typeof m != "string" && (S = String(m)), O === "iso-8859-1")
3413
3413
  return escape(S).replace(/%u[0-9a-f]{4}/gi, function(ae) {
3414
3414
  return "%26%23" + parseInt(ae.slice(2), 16) + "%3B";
3415
3415
  });
@@ -3437,26 +3437,26 @@ function go() {
3437
3437
  b += E.join("");
3438
3438
  }
3439
3439
  return b;
3440
- }, f = function(g) {
3441
- for (var v = [{ obj: { o: g }, prop: "o" }], O = [], T = 0; T < v.length; ++T)
3440
+ }, f = function(m) {
3441
+ for (var v = [{ obj: { o: m }, prop: "o" }], O = [], T = 0; T < v.length; ++T)
3442
3442
  for (var d = v[T], S = d.obj[d.prop], b = Object.keys(S), q = 0; q < b.length; ++q) {
3443
3443
  var L = b[q], E = S[L];
3444
3444
  typeof E == "object" && E !== null && O.indexOf(E) === -1 && (v.push({ obj: S, prop: L }), O.push(E));
3445
3445
  }
3446
- return s(v), g;
3447
- }, h = function(g) {
3448
- return Object.prototype.toString.call(g) === "[object RegExp]";
3449
- }, y = function(g) {
3450
- return !g || typeof g != "object" ? !1 : !!(g.constructor && g.constructor.isBuffer && g.constructor.isBuffer(g));
3451
- }, $ = function(g, v) {
3452
- return [].concat(g, v);
3453
- }, x = function(g, v) {
3454
- if (t(g)) {
3455
- for (var O = [], T = 0; T < g.length; T += 1)
3456
- O.push(v(g[T]));
3446
+ return s(v), m;
3447
+ }, h = function(m) {
3448
+ return Object.prototype.toString.call(m) === "[object RegExp]";
3449
+ }, y = function(m) {
3450
+ return !m || typeof m != "object" ? !1 : !!(m.constructor && m.constructor.isBuffer && m.constructor.isBuffer(m));
3451
+ }, $ = function(m, v) {
3452
+ return [].concat(m, v);
3453
+ }, x = function(m, v) {
3454
+ if (t(m)) {
3455
+ for (var O = [], T = 0; T < m.length; T += 1)
3456
+ O.push(v(m[T]));
3457
3457
  return O;
3458
3458
  }
3459
- return v(g);
3459
+ return v(m);
3460
3460
  };
3461
3461
  return lr = {
3462
3462
  arrayToObject: l,
@@ -3480,8 +3480,8 @@ function xs() {
3480
3480
  return p + "[]";
3481
3481
  },
3482
3482
  comma: "comma",
3483
- indices: function(p, g) {
3484
- return p + "[" + g + "]";
3483
+ indices: function(p, m) {
3484
+ return p + "[" + m + "]";
3485
3485
  },
3486
3486
  repeat: function(p) {
3487
3487
  return p;
@@ -3511,7 +3511,7 @@ function xs() {
3511
3511
  strictNullHandling: !1
3512
3512
  }, f = function(p) {
3513
3513
  return typeof p == "string" || typeof p == "number" || typeof p == "boolean" || typeof p == "symbol" || typeof p == "bigint";
3514
- }, h = {}, y = function x(p, g, v, O, T, d, S, b, q, L, E, B, P, ae, H, D, se, Z) {
3514
+ }, h = {}, y = function x(p, m, v, O, T, d, S, b, q, L, E, B, P, ae, H, D, se, Z) {
3515
3515
  for (var k = p, re = Z, R = 0, N = !1; (re = re.get(h)) !== void 0 && !N; ) {
3516
3516
  var U = re.get(p);
3517
3517
  if (R += 1, typeof U < "u") {
@@ -3521,19 +3521,19 @@ function xs() {
3521
3521
  }
3522
3522
  typeof re.get(h) > "u" && (R = 0);
3523
3523
  }
3524
- if (typeof L == "function" ? k = L(g, k) : k instanceof Date ? k = P(k) : v === "comma" && l(k) && (k = r.maybeMap(k, function(Y) {
3524
+ if (typeof L == "function" ? k = L(m, k) : k instanceof Date ? k = P(k) : v === "comma" && l(k) && (k = r.maybeMap(k, function(Y) {
3525
3525
  return Y instanceof Date ? P(Y) : Y;
3526
3526
  })), k === null) {
3527
3527
  if (d)
3528
- return q && !D ? q(g, u.encoder, se, "key", ae) : g;
3528
+ return q && !D ? q(m, u.encoder, se, "key", ae) : m;
3529
3529
  k = "";
3530
3530
  }
3531
3531
  if (f(k) || r.isBuffer(k)) {
3532
3532
  if (q) {
3533
- var C = D ? g : q(g, u.encoder, se, "key", ae);
3533
+ var C = D ? m : q(m, u.encoder, se, "key", ae);
3534
3534
  return [H(C) + "=" + H(q(k, u.encoder, se, "value", ae))];
3535
3535
  }
3536
- return [H(g) + "=" + H(String(k))];
3536
+ return [H(m) + "=" + H(String(k))];
3537
3537
  }
3538
3538
  var I = [];
3539
3539
  if (typeof k > "u")
@@ -3547,7 +3547,7 @@ function xs() {
3547
3547
  var z = Object.keys(k);
3548
3548
  W = E ? z.sort(E) : z;
3549
3549
  }
3550
- var K = b ? g.replace(/\./g, "%2E") : g, ne = O && l(k) && k.length === 1 ? K + "[]" : K;
3550
+ var K = b ? m.replace(/\./g, "%2E") : m, ne = O && l(k) && k.length === 1 ? K + "[]" : K;
3551
3551
  if (T && l(k) && k.length === 0)
3552
3552
  return ne + "[]";
3553
3553
  for (var J = 0; J < W.length; ++J) {
@@ -3588,7 +3588,7 @@ function xs() {
3588
3588
  throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
3589
3589
  if (p.encoder !== null && typeof p.encoder < "u" && typeof p.encoder != "function")
3590
3590
  throw new TypeError("Encoder has to be a function.");
3591
- var g = p.charset || u.charset;
3591
+ var m = p.charset || u.charset;
3592
3592
  if (typeof p.charset < "u" && p.charset !== "utf-8" && p.charset !== "iso-8859-1")
3593
3593
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3594
3594
  var v = t.default;
@@ -3608,7 +3608,7 @@ function xs() {
3608
3608
  allowDots: S,
3609
3609
  allowEmptyArrays: typeof p.allowEmptyArrays == "boolean" ? !!p.allowEmptyArrays : u.allowEmptyArrays,
3610
3610
  arrayFormat: d,
3611
- charset: g,
3611
+ charset: m,
3612
3612
  charsetSentinel: typeof p.charsetSentinel == "boolean" ? p.charsetSentinel : u.charsetSentinel,
3613
3613
  commaRoundTrip: p.commaRoundTrip,
3614
3614
  delimiter: typeof p.delimiter > "u" ? u.delimiter : p.delimiter,
@@ -3626,17 +3626,17 @@ function xs() {
3626
3626
  };
3627
3627
  };
3628
3628
  return cr = function(x, p) {
3629
- var g = x, v = $(p), O, T;
3630
- typeof v.filter == "function" ? (T = v.filter, g = T("", g)) : l(v.filter) && (T = v.filter, O = T);
3629
+ var m = x, v = $(p), O, T;
3630
+ typeof v.filter == "function" ? (T = v.filter, m = T("", m)) : l(v.filter) && (T = v.filter, O = T);
3631
3631
  var d = [];
3632
- if (typeof g != "object" || g === null)
3632
+ if (typeof m != "object" || m === null)
3633
3633
  return "";
3634
3634
  var S = s[v.arrayFormat], b = S === "comma" && v.commaRoundTrip;
3635
- O || (O = Object.keys(g)), v.sort && O.sort(v.sort);
3635
+ O || (O = Object.keys(m)), v.sort && O.sort(v.sort);
3636
3636
  for (var q = e(), L = 0; L < O.length; ++L) {
3637
3637
  var E = O[L];
3638
- v.skipNulls && g[E] === null || a(d, y(
3639
- g[E],
3638
+ v.skipNulls && m[E] === null || a(d, y(
3639
+ m[E],
3640
3640
  E,
3641
3641
  S,
3642
3642
  b,
@@ -3694,7 +3694,7 @@ function $s() {
3694
3694
  }, n = "utf8=%26%2310003%3B", a = "utf8=%E2%9C%93", i = function(y, $) {
3695
3695
  var x = { __proto__: null }, p = $.ignoreQueryPrefix ? y.replace(/^\?/, "") : y;
3696
3696
  p = p.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3697
- var g = $.parameterLimit === 1 / 0 ? void 0 : $.parameterLimit, v = p.split($.delimiter, g), O = -1, T, d = $.charset;
3697
+ var m = $.parameterLimit === 1 / 0 ? void 0 : $.parameterLimit, v = p.split($.delimiter, m), O = -1, T, d = $.charset;
3698
3698
  if ($.charsetSentinel)
3699
3699
  for (T = 0; T < v.length; ++T)
3700
3700
  v[T].indexOf("utf8=") === 0 && (v[T] === a ? d = "utf-8" : v[T] === n && (d = "iso-8859-1"), O = T, T = v.length);
@@ -3712,8 +3712,8 @@ function $s() {
3712
3712
  }
3713
3713
  return x;
3714
3714
  }, c = function(h, y, $, x) {
3715
- for (var p = x ? y : l(y, $), g = h.length - 1; g >= 0; --g) {
3716
- var v, O = h[g];
3715
+ for (var p = x ? y : l(y, $), m = h.length - 1; m >= 0; --m) {
3716
+ var v, O = h[m];
3717
3717
  if (O === "[]" && $.parseArrays)
3718
3718
  v = $.allowEmptyArrays && (p === "" || $.strictNullHandling && p === null) ? [] : [].concat(p);
3719
3719
  else {
@@ -3726,13 +3726,13 @@ function $s() {
3726
3726
  return p;
3727
3727
  }, u = function(y, $, x, p) {
3728
3728
  if (y) {
3729
- var g = x.allowDots ? y.replace(/\.([^.[]+)/g, "[$1]") : y, v = /(\[[^[\]]*])/, O = /(\[[^[\]]*])/g, T = x.depth > 0 && v.exec(g), d = T ? g.slice(0, T.index) : g, S = [];
3729
+ var m = x.allowDots ? y.replace(/\.([^.[]+)/g, "[$1]") : y, v = /(\[[^[\]]*])/, O = /(\[[^[\]]*])/g, T = x.depth > 0 && v.exec(m), d = T ? m.slice(0, T.index) : m, S = [];
3730
3730
  if (d) {
3731
3731
  if (!x.plainObjects && r.call(Object.prototype, d) && !x.allowPrototypes)
3732
3732
  return;
3733
3733
  S.push(d);
3734
3734
  }
3735
- for (var b = 0; x.depth > 0 && (T = O.exec(g)) !== null && b < x.depth; ) {
3735
+ for (var b = 0; x.depth > 0 && (T = O.exec(m)) !== null && b < x.depth; ) {
3736
3736
  if (b += 1, !x.plainObjects && r.call(Object.prototype, T[1].slice(1, -1)) && !x.allowPrototypes)
3737
3737
  return;
3738
3738
  S.push(T[1]);
@@ -3740,7 +3740,7 @@ function $s() {
3740
3740
  if (T) {
3741
3741
  if (x.strictDepth === !0)
3742
3742
  throw new RangeError("Input depth exceeded depth option of " + x.depth + " and strictDepth is true");
3743
- S.push("[" + g.slice(T.index) + "]");
3743
+ S.push("[" + m.slice(T.index) + "]");
3744
3744
  }
3745
3745
  return c(S, $, x, p);
3746
3746
  }
@@ -3787,8 +3787,8 @@ function $s() {
3787
3787
  var $ = f(y);
3788
3788
  if (h === "" || h === null || typeof h > "u")
3789
3789
  return $.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3790
- for (var x = typeof h == "string" ? i(h, $) : h, p = $.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, g = Object.keys(x), v = 0; v < g.length; ++v) {
3791
- var O = g[v], T = u(O, x[O], $, typeof h == "string");
3790
+ for (var x = typeof h == "string" ? i(h, $) : h, p = $.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, m = Object.keys(x), v = 0; v < m.length; ++v) {
3791
+ var O = m[v], T = u(O, x[O], $, typeof h == "string");
3792
3792
  p = e.merge(p, T, $);
3793
3793
  }
3794
3794
  return $.allowSparse === !0 ? p : e.compact(p);
@@ -3858,7 +3858,7 @@ function js() {
3858
3858
  "gopher:": !0,
3859
3859
  "file:": !0
3860
3860
  }, p = /* @__PURE__ */ vo();
3861
- function g(d, S, b) {
3861
+ function m(d, S, b) {
3862
3862
  if (d && typeof d == "object" && d instanceof r)
3863
3863
  return d;
3864
3864
  var q = new r();
@@ -3933,7 +3933,7 @@ function js() {
3933
3933
  return this.href = this.format(), this;
3934
3934
  };
3935
3935
  function v(d) {
3936
- return typeof d == "string" && (d = g(d)), d instanceof r ? d.format() : r.prototype.format.call(d);
3936
+ return typeof d == "string" && (d = m(d)), d instanceof r ? d.format() : r.prototype.format.call(d);
3937
3937
  }
3938
3938
  r.prototype.format = function() {
3939
3939
  var d = this.auth || "";
@@ -3949,13 +3949,13 @@ function js() {
3949
3949
  }), B = B.replace("#", "%23"), S + L + b + B + q;
3950
3950
  };
3951
3951
  function O(d, S) {
3952
- return g(d, !1, !0).resolve(S);
3952
+ return m(d, !1, !0).resolve(S);
3953
3953
  }
3954
3954
  r.prototype.resolve = function(d) {
3955
- return this.resolveObject(g(d, !1, !0)).format();
3955
+ return this.resolveObject(m(d, !1, !0)).format();
3956
3956
  };
3957
3957
  function T(d, S) {
3958
- return d ? g(d, !1, !0).resolveObject(S) : S;
3958
+ return d ? m(d, !1, !0).resolveObject(S) : S;
3959
3959
  }
3960
3960
  return r.prototype.resolveObject = function(d) {
3961
3961
  if (typeof d == "string") {
@@ -4026,7 +4026,7 @@ function js() {
4026
4026
  }, r.prototype.parseHost = function() {
4027
4027
  var d = this.host, S = o.exec(d);
4028
4028
  S && (S = S[0], S !== ":" && (this.port = S.substr(1)), d = d.substr(0, d.length - S.length)), d && (this.hostname = d);
4029
- }, Pe.parse = g, Pe.resolve = O, Pe.resolveObject = T, Pe.format = v, Pe.Url = r, Pe;
4029
+ }, Pe.parse = m, Pe.resolve = O, Pe.resolveObject = T, Pe.format = v, Pe.Url = r, Pe;
4030
4030
  }
4031
4031
  var pr = js(), dr = /* @__PURE__ */ vo(), ws = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Ss = class {
4032
4032
  constructor(e, r = {}) {
@@ -4071,10 +4071,10 @@ var pr = js(), dr = /* @__PURE__ */ vo(), ws = (e) => typeof e == "object" && "l
4071
4071
  if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(Mr, {})), t.headers && t.headers.length) {
4072
4072
  const y = /^HTTP\/2/;
4073
4073
  t.headersObj = t.headers.reduce(($, { name: x, value: p }) => {
4074
- const g = y.exec(t.httpVersion) ? x.toLocaleLowerCase() : x;
4074
+ const m = y.exec(t.httpVersion) ? x.toLocaleLowerCase() : x;
4075
4075
  return {
4076
4076
  ...$,
4077
- [g]: p
4077
+ [m]: p
4078
4078
  };
4079
4079
  }, {});
4080
4080
  }
@@ -4093,13 +4093,13 @@ var pr = js(), dr = /* @__PURE__ */ vo(), ws = (e) => typeof e == "object" && "l
4093
4093
  case "multipart/alternative":
4094
4094
  if (t.postData.text = "", t.postData.mimeType = "multipart/form-data", (f = t.postData) != null && f.params) {
4095
4095
  const y = "---011000010111000001101001", $ = `${y}--`, x = `\r
4096
- `, p = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), g = (T) => T.replace(/\r?\n|\r/g, `\r
4096
+ `, p = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), m = (T) => T.replace(/\r?\n|\r/g, `\r
4097
4097
  `), v = [`--${y}`];
4098
4098
  (h = t.postData) == null || h.params.forEach((T, d) => {
4099
4099
  const S = T.name, b = T.value || "", q = T.fileName || null, L = T.contentType || "application/octet-stream";
4100
4100
  q ? (v.push(
4101
- `Content-Disposition: form-data; name="${p(g(S))}"; filename="${q}"`
4102
- ), v.push(`Content-Type: ${L}`)) : v.push(`Content-Disposition: form-data; name="${p(g(S))}"`), v.push(""), v.push(g(b)), d !== t.postData.params.length - 1 && v.push(`--${y}`);
4101
+ `Content-Disposition: form-data; name="${p(m(S))}"; filename="${q}"`
4102
+ ), v.push(`Content-Type: ${L}`)) : v.push(`Content-Disposition: form-data; name="${p(m(S))}"`), v.push(""), v.push(m(b)), d !== t.postData.params.length - 1 && v.push(`--${y}`);
4103
4103
  }), v.push(`--${$}`), t.postData.boundary = y, t.postData.text = v.join(x);
4104
4104
  const O = pe(t.headersObj, "content-type") || "content-type";
4105
4105
  t.headersObj[O] = `multipart/form-data; boundary=${y}`;
@@ -4193,7 +4193,7 @@ const Os = ({
4193
4193
  s(a.scrollHeight > r);
4194
4194
  });
4195
4195
  return i.observe(a), () => i.disconnect();
4196
- }, [r]), /* @__PURE__ */ m.jsxs(
4196
+ }, [r]), /* @__PURE__ */ g.jsxs(
4197
4197
  na,
4198
4198
  {
4199
4199
  className: "group",
@@ -4201,7 +4201,7 @@ const Os = ({
4201
4201
  onOpenChange: n,
4202
4202
  style: { "--max-height": `${r}px` },
4203
4203
  children: [
4204
- /* @__PURE__ */ m.jsxs(
4204
+ /* @__PURE__ */ g.jsxs(
4205
4205
  oa,
4206
4206
  {
4207
4207
  forceMount: !0,
@@ -4210,15 +4210,15 @@ const Os = ({
4210
4210
  !l && o && "max-h-[--max-height]"
4211
4211
  ),
4212
4212
  children: [
4213
- !l && o && /* @__PURE__ */ m.jsx("div", { className: " absolute inset-0 bg-gradient-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 group-hover:to-transparent" }),
4214
- /* @__PURE__ */ m.jsx("div", { ref: t, children: e }),
4215
- !l && o && /* @__PURE__ */ m.jsx(
4213
+ !l && o && /* @__PURE__ */ g.jsx("div", { className: " absolute inset-0 bg-gradient-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 group-hover:to-transparent" }),
4214
+ /* @__PURE__ */ g.jsx("div", { ref: t, children: e }),
4215
+ !l && o && /* @__PURE__ */ g.jsx(
4216
4216
  _r,
4217
4217
  {
4218
4218
  className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
4219
4219
  asChild: !0,
4220
- children: /* @__PURE__ */ m.jsx("div", { children: /* @__PURE__ */ m.jsxs(Br, { variant: "outline", className: "hidden group-hover:flex", children: [
4221
- /* @__PURE__ */ m.jsx(zo, { size: 14, className: "mr-1.5" }),
4220
+ children: /* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsxs(Br, { variant: "outline", className: "hidden group-hover:flex", children: [
4221
+ /* @__PURE__ */ g.jsx(zo, { size: 14, className: "mr-1.5" }),
4222
4222
  "Click to expand"
4223
4223
  ] }) })
4224
4224
  }
@@ -4226,13 +4226,13 @@ const Os = ({
4226
4226
  ]
4227
4227
  }
4228
4228
  ),
4229
- o && /* @__PURE__ */ m.jsx(
4229
+ o && /* @__PURE__ */ g.jsx(
4230
4230
  "div",
4231
4231
  {
4232
4232
  className: le("flex justify-center w-full mb-2", !l && "hidden"),
4233
- children: /* @__PURE__ */ m.jsx(_r, { asChild: !0, children: /* @__PURE__ */ m.jsxs(Br, { variant: "outline", size: "sm", children: [
4233
+ children: /* @__PURE__ */ g.jsx(_r, { asChild: !0, children: /* @__PURE__ */ g.jsxs(Br, { variant: "outline", size: "sm", children: [
4234
4234
  "Collapse",
4235
- /* @__PURE__ */ m.jsx(Go, { size: 14, className: "ml-1.5" })
4235
+ /* @__PURE__ */ g.jsx(Go, { size: 14, className: "ml-1.5" })
4236
4236
  ] }) })
4237
4237
  }
4238
4238
  )
@@ -4246,12 +4246,15 @@ const Os = ({
4246
4246
  examples: o
4247
4247
  }) => {
4248
4248
  var a, i, c;
4249
- const s = (a = t.parameters) == null ? void 0 : a.filter((u) => u.in === "header").map((u) => {
4250
- var f, h;
4249
+ const s = (a = t.parameters) == null ? void 0 : a.filter((u) => u.in === "header").sort((u, f) => u.required && !f.required ? -1 : 1).map((u) => {
4250
+ var f, h, y, $, x, p, m, v;
4251
4251
  return {
4252
4252
  name: u.name,
4253
- defaultValue: ((h = (f = u.examples) == null ? void 0 : f.find((y) => y.value)) == null ? void 0 : h.value) ?? "",
4254
- defaultActive: !1
4253
+ defaultValue: ((f = u.schema) == null ? void 0 : f.default) ?? ((y = (h = u.examples) == null ? void 0 : h.find((O) => O.value)) == null ? void 0 : y.value) ?? "",
4254
+ defaultActive: u.required ?? !1,
4255
+ isRequired: u.required ?? !1,
4256
+ enum: (($ = u.schema) == null ? void 0 : $.type) == "array" ? (p = (x = u.schema) == null ? void 0 : x.items) == null ? void 0 : p.enum : (m = u.schema) == null ? void 0 : m.enum,
4257
+ type: ((v = u.schema) == null ? void 0 : v.type) ?? "string"
4255
4258
  };
4256
4259
  }), l = (i = t.parameters) == null ? void 0 : i.filter((u) => u.in === "query").sort((u, f) => u.required && !f.required ? -1 : 1).map((u) => {
4257
4260
  var f, h, y, $, x;
@@ -4263,7 +4266,7 @@ const Os = ({
4263
4266
  type: ((x = u.schema) == null ? void 0 : x.type) ?? "string"
4264
4267
  };
4265
4268
  }), n = (c = t.parameters) == null ? void 0 : c.filter((u) => u.in === "path").map((u) => ({ name: u.name }));
4266
- return /* @__PURE__ */ m.jsx(
4269
+ return /* @__PURE__ */ g.jsx(
4267
4270
  aa,
4268
4271
  {
4269
4272
  server: e,
@@ -4276,13 +4279,13 @@ const Os = ({
4276
4279
  examples: o
4277
4280
  }
4278
4281
  );
4279
- }, Cr = ({ children: e, className: r }) => /* @__PURE__ */ m.jsx(
4282
+ }, Cr = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx(
4280
4283
  "div",
4281
4284
  {
4282
4285
  className: le("rounded-xl overflow-hidden border border-border", r),
4283
4286
  children: e
4284
4287
  }
4285
- ), Rr = ({ children: e, className: r }) => /* @__PURE__ */ m.jsx(
4288
+ ), Rr = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx(
4286
4289
  "div",
4287
4290
  {
4288
4291
  className: le(
@@ -4291,7 +4294,7 @@ const Os = ({
4291
4294
  ),
4292
4295
  children: e
4293
4296
  }
4294
- ), xo = ({ children: e, className: r }) => /* @__PURE__ */ m.jsx("div", { className: le("bg-card overflow-auto p-2", r), children: e }), $o = ({ children: e, className: r }) => /* @__PURE__ */ m.jsx("div", { className: le("border-t bg-muted dark:bg-transparent p-3", r), children: e }), He = (e, r) => {
4297
+ ), xo = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx("div", { className: le("bg-card overflow-auto p-2", r), children: e }), $o = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx("div", { className: le("border-t bg-muted dark:bg-transparent p-3", r), children: e }), He = (e, r) => {
4295
4298
  if (e.example !== void 0)
4296
4299
  return e.example;
4297
4300
  if (e.examples && typeof e.examples == "object" && "default" in e.examples) {
@@ -4350,9 +4353,9 @@ const Os = ({
4350
4353
  u && (t == null || t(u));
4351
4354
  }, [u, t]);
4352
4355
  const f = Cs(u), h = Rs(a == null ? void 0 : a.mediaType);
4353
- return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
4354
- /* @__PURE__ */ m.jsxs(xo, { className: "p-0", children: [
4355
- c != null && c.externalValue ? /* @__PURE__ */ m.jsx("div", { className: "p-2", children: /* @__PURE__ */ m.jsx(
4356
+ return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
4357
+ /* @__PURE__ */ g.jsxs(xo, { className: "p-0", children: [
4358
+ c != null && c.externalValue ? /* @__PURE__ */ g.jsx("div", { className: "p-2", children: /* @__PURE__ */ g.jsx(
4356
4359
  "a",
4357
4360
  {
4358
4361
  href: c.externalValue,
@@ -4361,7 +4364,7 @@ const Os = ({
4361
4364
  className: "text-xs text-primary hover:underline",
4362
4365
  children: "View External Example →"
4363
4366
  }
4364
- ) }) : /* @__PURE__ */ m.jsx(bo, { children: /* @__PURE__ */ m.jsx(
4367
+ ) }) : /* @__PURE__ */ g.jsx(bo, { children: /* @__PURE__ */ g.jsx(
4365
4368
  ao,
4366
4369
  {
4367
4370
  language: h,
@@ -4371,12 +4374,12 @@ const Os = ({
4371
4374
  code: f
4372
4375
  }
4373
4376
  ) }),
4374
- (c == null ? void 0 : c.description) && /* @__PURE__ */ m.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: c.description })
4377
+ (c == null ? void 0 : c.description) && /* @__PURE__ */ g.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: c.description })
4375
4378
  ] }),
4376
- /* @__PURE__ */ m.jsxs($o, { className: "text-xs p-0 divide-y divide-border", children: [
4377
- r && /* @__PURE__ */ m.jsx("div", { className: "text-muted-foreground text-xs px-3 py-2", children: r }),
4378
- (i.length !== 0 || e.length !== 0) && /* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0 px-3 py-2", children: [
4379
- /* @__PURE__ */ m.jsx("div", { className: "flex items-center gap-2 min-w-0", children: e.length > 1 ? /* @__PURE__ */ m.jsx(
4379
+ /* @__PURE__ */ g.jsxs($o, { className: "text-xs p-0 divide-y divide-border", children: [
4380
+ r && /* @__PURE__ */ g.jsx("div", { className: "text-muted-foreground text-xs px-3 py-2", children: r }),
4381
+ (i.length !== 0 || e.length !== 0) && /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0 px-3 py-2", children: [
4382
+ /* @__PURE__ */ g.jsx("div", { className: "flex items-center gap-2 min-w-0", children: e.length > 1 ? /* @__PURE__ */ g.jsx(
4380
4383
  et,
4381
4384
  {
4382
4385
  className: "max-w-[200px]",
@@ -4387,8 +4390,8 @@ const Os = ({
4387
4390
  label: $.mediaType
4388
4391
  }))
4389
4392
  }
4390
- ) : /* @__PURE__ */ m.jsx("span", { className: "font-mono text-[11px]", children: (y = e[0]) == null ? void 0 : y.mediaType }) }),
4391
- i.length > 1 && /* @__PURE__ */ m.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ m.jsx(
4393
+ ) : /* @__PURE__ */ g.jsx("span", { className: "font-mono text-[11px]", children: (y = e[0]) == null ? void 0 : y.mediaType }) }),
4394
+ i.length > 1 && /* @__PURE__ */ g.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ g.jsx(
4392
4395
  et,
4393
4396
  {
4394
4397
  className: "max-w-[180px]",
@@ -4406,10 +4409,10 @@ const Os = ({
4406
4409
  }, qs = ({
4407
4410
  content: e,
4408
4411
  onExampleChange: r
4409
- }) => e.length === 0 ? null : /* @__PURE__ */ m.jsxs(Cr, { children: [
4410
- /* @__PURE__ */ m.jsx(Rr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ m.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
4411
- /* @__PURE__ */ m.jsx(jo, { content: e, onExampleChange: r })
4412
- ] }), Ns = ({ response: e }) => /* @__PURE__ */ m.jsx(Ye.Content, { value: e.statusCode, children: /* @__PURE__ */ m.jsx(
4412
+ }) => e.length === 0 ? null : /* @__PURE__ */ g.jsxs(Cr, { children: [
4413
+ /* @__PURE__ */ g.jsx(Rr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ g.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
4414
+ /* @__PURE__ */ g.jsx(jo, { content: e, onExampleChange: r })
4415
+ ] }), Ns = ({ response: e }) => /* @__PURE__ */ g.jsx(Ye.Content, { value: e.statusCode, children: /* @__PURE__ */ g.jsx(
4413
4416
  jo,
4414
4417
  {
4415
4418
  content: e.content ?? [],
@@ -4421,16 +4424,16 @@ const Os = ({
4421
4424
  onSelectResponse: t
4422
4425
  }) => {
4423
4426
  var o;
4424
- return /* @__PURE__ */ m.jsx(Cr, { children: /* @__PURE__ */ m.jsxs(
4427
+ return /* @__PURE__ */ g.jsx(Cr, { children: /* @__PURE__ */ g.jsxs(
4425
4428
  Ye.Root,
4426
4429
  {
4427
4430
  defaultValue: (o = e[0]) == null ? void 0 : o.statusCode,
4428
4431
  value: r,
4429
4432
  onValueChange: (s) => t(s),
4430
4433
  children: [
4431
- /* @__PURE__ */ m.jsxs(Rr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4432
- /* @__PURE__ */ m.jsx("span", { className: "font-mono", children: "Example Responses" }),
4433
- /* @__PURE__ */ m.jsx(Ye.List, { className: "flex gap-2", children: e.map((s) => /* @__PURE__ */ m.jsx(
4434
+ /* @__PURE__ */ g.jsxs(Rr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4435
+ /* @__PURE__ */ g.jsx("span", { className: "font-mono", children: "Example Responses" }),
4436
+ /* @__PURE__ */ g.jsx(Ye.List, { className: "flex gap-2", children: e.map((s) => /* @__PURE__ */ g.jsx(
4434
4437
  Ye.Trigger,
4435
4438
  {
4436
4439
  value: s.statusCode,
@@ -4444,7 +4447,7 @@ const Os = ({
4444
4447
  s.statusCode
4445
4448
  )) })
4446
4449
  ] }),
4447
- e.map((s) => /* @__PURE__ */ m.jsx(Ns, { response: s }, s.statusCode))
4450
+ e.map((s) => /* @__PURE__ */ g.jsx(Ns, { response: s }, s.statusCode))
4448
4451
  ]
4449
4452
  }
4450
4453
  ) });
@@ -4519,11 +4522,11 @@ const Os = ({
4519
4522
  onSelectResponse: t
4520
4523
  }) => {
4521
4524
  var d;
4522
- const { input: o, type: s, options: l } = jr(), n = wr(As, { input: o, type: s }), a = vr(n), i = oo(e.method), [c, u] = No(), [, f] = eo(), [h, y] = ge(), $ = c.get("lang") ?? (l == null ? void 0 : l.examplesDefaultLanguage) ?? "shell", x = (d = e.requestBody) == null ? void 0 : d.content, p = /* @__PURE__ */ m.jsx(
4525
+ const { input: o, type: s, options: l } = jr(), n = wr(As, { input: o, type: s }), a = vr(n), i = oo(e.method), [c, u] = No(), [, f] = eo(), [h, y] = ge(), $ = c.get("lang") ?? (l == null ? void 0 : l.examplesDefaultLanguage) ?? "shell", x = (d = e.requestBody) == null ? void 0 : d.content, p = /* @__PURE__ */ g.jsx(
4523
4526
  ia,
4524
4527
  {
4525
4528
  path: e.path,
4526
- renderParam: ({ name: S }) => /* @__PURE__ */ m.jsx(
4529
+ renderParam: ({ name: S }) => /* @__PURE__ */ g.jsx(
4527
4530
  no,
4528
4531
  {
4529
4532
  name: S,
@@ -4533,11 +4536,11 @@ const Os = ({
4533
4536
  }
4534
4537
  )
4535
4538
  }
4536
- ), { selectedServer: g } = br(), v = to(() => {
4539
+ ), { selectedServer: m } = br(), v = to(() => {
4537
4540
  var q;
4538
4541
  const S = h ?? ((q = x == null ? void 0 : x[0]) != null && q.schema ? He(x[0].schema) : void 0), b = new Ss({
4539
4542
  method: e.method.toLocaleUpperCase(),
4540
- url: (g ?? a.data.schema.url ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
4543
+ url: (m ?? a.data.schema.url ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
4541
4544
  postData: S ? {
4542
4545
  text: JSON.stringify(S, null, 2),
4543
4546
  mimeType: "application/json"
@@ -4555,24 +4558,24 @@ const Os = ({
4555
4558
  x,
4556
4559
  e.method,
4557
4560
  e.path,
4558
- g,
4561
+ m,
4559
4562
  a.data.schema.url,
4560
4563
  $
4561
4564
  ]), [O, T] = Os({ rootMargin: "200px 0px 200px 0px" });
4562
- return /* @__PURE__ */ m.jsxs(
4565
+ return /* @__PURE__ */ g.jsxs(
4563
4566
  "aside",
4564
4567
  {
4565
4568
  ref: O,
4566
4569
  className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4",
4567
4570
  children: [
4568
- /* @__PURE__ */ m.jsxs(Cr, { children: [
4569
- /* @__PURE__ */ m.jsxs(Rr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
4570
- /* @__PURE__ */ m.jsxs("span", { className: "font-mono break-words", children: [
4571
- /* @__PURE__ */ m.jsx("span", { className: le("font-semibold", i), children: e.method.toLocaleUpperCase() }),
4571
+ /* @__PURE__ */ g.jsxs(Cr, { children: [
4572
+ /* @__PURE__ */ g.jsxs(Rr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
4573
+ /* @__PURE__ */ g.jsxs("span", { className: "font-mono break-words", children: [
4574
+ /* @__PURE__ */ g.jsx("span", { className: le("font-semibold", i), children: e.method.toLocaleUpperCase() }),
4572
4575
  " ",
4573
4576
  p
4574
4577
  ] }),
4575
- T && /* @__PURE__ */ m.jsx(
4578
+ T && /* @__PURE__ */ g.jsx(
4576
4579
  Ps,
4577
4580
  {
4578
4581
  server: a.data.schema.url ?? "",
@@ -4582,8 +4585,8 @@ const Os = ({
4582
4585
  }
4583
4586
  )
4584
4587
  ] }),
4585
- T && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
4586
- /* @__PURE__ */ m.jsx(xo, { className: "p-0", children: /* @__PURE__ */ m.jsx(bo, { children: /* @__PURE__ */ m.jsx(
4588
+ T && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
4589
+ /* @__PURE__ */ g.jsx(xo, { className: "p-0", children: /* @__PURE__ */ g.jsx(bo, { children: /* @__PURE__ */ g.jsx(
4587
4590
  ao,
4588
4591
  {
4589
4592
  language: $,
@@ -4592,9 +4595,9 @@ const Os = ({
4592
4595
  code: v
4593
4596
  }
4594
4597
  ) }) }),
4595
- /* @__PURE__ */ m.jsxs($o, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
4596
- /* @__PURE__ */ m.jsx("span", { children: "Show example in" }),
4597
- /* @__PURE__ */ m.jsx(
4598
+ /* @__PURE__ */ g.jsxs($o, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
4599
+ /* @__PURE__ */ g.jsx("span", { children: "Show example in" }),
4600
+ /* @__PURE__ */ g.jsx(
4598
4601
  et,
4599
4602
  {
4600
4603
  className: "self-start max-w-[150px]",
@@ -4610,14 +4613,14 @@ const Os = ({
4610
4613
  ] })
4611
4614
  ] })
4612
4615
  ] }),
4613
- T && x && /* @__PURE__ */ m.jsx(
4616
+ T && x && /* @__PURE__ */ g.jsx(
4614
4617
  qs,
4615
4618
  {
4616
4619
  content: x,
4617
4620
  onExampleChange: y
4618
4621
  }
4619
4622
  ),
4620
- T && e.responses.length > 0 && /* @__PURE__ */ m.jsx(
4623
+ T && e.responses.length > 0 && /* @__PURE__ */ g.jsx(
4621
4624
  ks,
4622
4625
  {
4623
4626
  selectedResponse: r,
@@ -4629,9 +4632,9 @@ const Os = ({
4629
4632
  }
4630
4633
  );
4631
4634
  }, Us = (e) => Object.entries(e), Fs = {
4632
- AND: /* @__PURE__ */ m.jsx(Jo, { size: 16, className: "fill-card" }),
4633
- OR: /* @__PURE__ */ m.jsx(Vo, { size: 16, className: "fill-card" }),
4634
- ONE: /* @__PURE__ */ m.jsx(Do, { size: 14, className: "fill-card" })
4635
+ AND: /* @__PURE__ */ g.jsx(Jo, { size: 16, className: "fill-card" }),
4636
+ OR: /* @__PURE__ */ g.jsx(Vo, { size: 16, className: "fill-card" }),
4637
+ ONE: /* @__PURE__ */ g.jsx(Do, { size: 14, className: "fill-card" })
4635
4638
  }, _s = {
4636
4639
  AND: "text-green-500 dark:text-green-300/60",
4637
4640
  OR: "text-blue-400 dark:text-blue-500",
@@ -4640,7 +4643,7 @@ const Os = ({
4640
4643
  type: e,
4641
4644
  isOpen: r,
4642
4645
  className: t
4643
- }) => /* @__PURE__ */ m.jsx(
4646
+ }) => /* @__PURE__ */ g.jsx(
4644
4647
  "div",
4645
4648
  {
4646
4649
  className: le(
@@ -4649,32 +4652,32 @@ const Os = ({
4649
4652
  "before:border-l before:absolute before:-top-2 before:-bottom-2 before:border-border before:border-dashed before:content-['']",
4650
4653
  t
4651
4654
  ),
4652
- children: /* @__PURE__ */ m.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
4655
+ children: /* @__PURE__ */ g.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
4653
4656
  Fs[e],
4654
- /* @__PURE__ */ m.jsx(
4657
+ /* @__PURE__ */ g.jsx(
4655
4658
  "div",
4656
4659
  {
4657
4660
  className: le(
4658
4661
  "translate-y-px mx-px opacity-0 group-hover:opacity-100 transition",
4659
4662
  !r && "-rotate-90"
4660
4663
  ),
4661
- children: /* @__PURE__ */ m.jsx(Wo, { size: 16 })
4664
+ children: /* @__PURE__ */ g.jsx(Wo, { size: 16 })
4662
4665
  }
4663
4666
  )
4664
4667
  ] })
4665
4668
  }
4666
4669
  ), Hs = (e) => {
4667
4670
  const [r, t] = ge(!0);
4668
- return /* @__PURE__ */ m.jsxs(
4671
+ return /* @__PURE__ */ g.jsxs(
4669
4672
  xe.Root,
4670
4673
  {
4671
4674
  open: r,
4672
4675
  onOpenChange: () => t((o) => !o),
4673
4676
  className: "group",
4674
4677
  children: [
4675
- /* @__PURE__ */ m.jsx(xe.Trigger, { children: /* @__PURE__ */ m.jsx(Bs, { type: e.type, isOpen: r }) }),
4676
- !r && /* @__PURE__ */ m.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
4677
- /* @__PURE__ */ m.jsx(xe.Content, { children: /* @__PURE__ */ m.jsx(Ge, { schema: e.schema, level: e.level + 1 }) })
4678
+ /* @__PURE__ */ g.jsx(xe.Trigger, { children: /* @__PURE__ */ g.jsx(Bs, { type: e.type, isOpen: r }) }),
4679
+ !r && /* @__PURE__ */ g.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
4680
+ /* @__PURE__ */ g.jsx(xe.Content, { children: /* @__PURE__ */ g.jsx(Ge, { schema: e.schema, level: e.level + 1 }) })
4678
4681
  ]
4679
4682
  }
4680
4683
  );
@@ -4688,14 +4691,14 @@ const Os = ({
4688
4691
  isOpen: t,
4689
4692
  level: o,
4690
4693
  toggleOpen: s
4691
- }) => /* @__PURE__ */ m.jsx(xe.Root, { open: t, onOpenChange: s, asChild: !0, children: /* @__PURE__ */ m.jsxs(be, { className: "px-6", children: [
4692
- /* @__PURE__ */ m.jsxs(xe.Trigger, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
4693
- t ? /* @__PURE__ */ m.jsx(Qo, { size: 14 }) : /* @__PURE__ */ m.jsx(Ko, { size: 14 }),
4694
- /* @__PURE__ */ m.jsx("span", { children: Ms[r] })
4694
+ }) => /* @__PURE__ */ g.jsx(xe.Root, { open: t, onOpenChange: s, asChild: !0, children: /* @__PURE__ */ g.jsxs(be, { className: "px-6", children: [
4695
+ /* @__PURE__ */ g.jsxs(xe.Trigger, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
4696
+ t ? /* @__PURE__ */ g.jsx(Qo, { size: 14 }) : /* @__PURE__ */ g.jsx(Ko, { size: 14 }),
4697
+ /* @__PURE__ */ g.jsx("span", { children: Ms[r] })
4695
4698
  ] }),
4696
- /* @__PURE__ */ m.jsx(xe.Content, { className: "pb-4", children: e.map((l, n) => (
4699
+ /* @__PURE__ */ g.jsx(xe.Content, { className: "pb-4", children: e.map((l, n) => (
4697
4700
  // eslint-disable-next-line react/no-array-index-key
4698
- /* @__PURE__ */ m.jsx(
4701
+ /* @__PURE__ */ g.jsx(
4699
4702
  Hs,
4700
4703
  {
4701
4704
  type: r,
@@ -4716,7 +4719,7 @@ const Os = ({
4716
4719
  const [t, o] = ge(!0), s = ta(() => o((l) => !l), []);
4717
4720
  for (const [l, n] of Us(Ws))
4718
4721
  if (e[l])
4719
- return /* @__PURE__ */ m.jsx(
4722
+ return /* @__PURE__ */ g.jsx(
4720
4723
  zs,
4721
4724
  {
4722
4725
  schemas: e[l],
@@ -4726,9 +4729,9 @@ const Os = ({
4726
4729
  level: r
4727
4730
  }
4728
4731
  );
4729
- }, Zn = () => /* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-2 italic text-sm text-muted-foreground font-mono bg-muted px-2 py-0.5 rounded-md", children: [
4730
- /* @__PURE__ */ m.jsx(Xo, { size: 16 }),
4731
- /* @__PURE__ */ m.jsx("span", { children: "circular" })
4732
+ }, Zn = () => /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2 italic text-sm text-muted-foreground font-mono bg-muted px-2 py-0.5 rounded-md", children: [
4733
+ /* @__PURE__ */ g.jsx(Xo, { size: 16 }),
4734
+ /* @__PURE__ */ g.jsx("span", { children: "circular" })
4732
4735
  ] }), Js = ({
4733
4736
  name: e,
4734
4737
  schema: r,
@@ -4738,48 +4741,48 @@ const Os = ({
4738
4741
  showCollapseButton: l = !0
4739
4742
  }) => {
4740
4743
  const [n, a] = ge(s);
4741
- return hr(r) ? /* @__PURE__ */ m.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ m.jsx("div", { className: "flex flex-col gap-1 justify-between text-sm", children: /* @__PURE__ */ m.jsxs("div", { className: "flex gap-2 items-center", children: [
4742
- /* @__PURE__ */ m.jsx("code", { children: e }),
4743
- /* @__PURE__ */ m.jsx(Ce, { variant: "muted", children: "object" }),
4744
- t === "optional" && /* @__PURE__ */ m.jsx(Ce, { variant: "outline", children: "optional" }),
4745
- /* @__PURE__ */ m.jsx(Zn, {})
4746
- ] }) }) }) : /* @__PURE__ */ m.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col gap-1 justify-between text-sm", children: [
4747
- /* @__PURE__ */ m.jsxs("div", { className: "flex gap-2 items-center", children: [
4748
- /* @__PURE__ */ m.jsx("code", { children: e }),
4749
- /* @__PURE__ */ m.jsx(Ce, { variant: "muted", children: r.type === "array" && r.items.type ? /* @__PURE__ */ m.jsxs("span", { children: [
4744
+ return hr(r) ? /* @__PURE__ */ g.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-1 justify-between text-sm", children: /* @__PURE__ */ g.jsxs("div", { className: "flex gap-2 items-center", children: [
4745
+ /* @__PURE__ */ g.jsx("code", { children: e }),
4746
+ /* @__PURE__ */ g.jsx(Ce, { variant: "muted", children: "object" }),
4747
+ t === "optional" && /* @__PURE__ */ g.jsx(Ce, { variant: "outline", children: "optional" }),
4748
+ /* @__PURE__ */ g.jsx(Zn, {})
4749
+ ] }) }) }) : /* @__PURE__ */ g.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col gap-1 justify-between text-sm", children: [
4750
+ /* @__PURE__ */ g.jsxs("div", { className: "flex gap-2 items-center", children: [
4751
+ /* @__PURE__ */ g.jsx("code", { children: e }),
4752
+ /* @__PURE__ */ g.jsx(Ce, { variant: "muted", children: r.type === "array" && r.items.type ? /* @__PURE__ */ g.jsxs("span", { children: [
4750
4753
  r.items.type,
4751
4754
  "[]"
4752
- ] }) : Array.isArray(r.type) ? /* @__PURE__ */ m.jsx("span", { children: r.type.join(" | ") }) : /* @__PURE__ */ m.jsx("span", { children: r.type }) }),
4753
- t === "optional" && /* @__PURE__ */ m.jsx(Ce, { variant: "outline", children: "optional" }),
4754
- r.type === "array" && "items" in r && hr(r.items) && /* @__PURE__ */ m.jsx(Zn, {})
4755
+ ] }) : Array.isArray(r.type) ? /* @__PURE__ */ g.jsx("span", { children: r.type.join(" | ") }) : /* @__PURE__ */ g.jsx("span", { children: r.type }) }),
4756
+ t === "optional" && /* @__PURE__ */ g.jsx(Ce, { variant: "outline", children: "optional" }),
4757
+ r.type === "array" && "items" in r && hr(r.items) && /* @__PURE__ */ g.jsx(Zn, {})
4755
4758
  ] }),
4756
- r.description && /* @__PURE__ */ m.jsx(
4759
+ r.description && /* @__PURE__ */ g.jsx(
4757
4760
  Re,
4758
4761
  {
4759
4762
  className: le(Le, "text-sm leading-normal line-clamp-4"),
4760
4763
  content: r.description
4761
4764
  }
4762
4765
  ),
4763
- (gr(r) || Gs(r)) && /* @__PURE__ */ m.jsxs(
4766
+ (gr(r) || Gs(r)) && /* @__PURE__ */ g.jsxs(
4764
4767
  xe.Root,
4765
4768
  {
4766
4769
  defaultOpen: s,
4767
4770
  open: n,
4768
4771
  onOpenChange: () => a(!n),
4769
4772
  children: [
4770
- l && /* @__PURE__ */ m.jsx(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ m.jsxs(
4773
+ l && /* @__PURE__ */ g.jsx(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ g.jsxs(
4771
4774
  ro,
4772
4775
  {
4773
4776
  variant: "outline",
4774
4777
  size: "sm",
4775
4778
  className: "mt-2 flex gap-1.5",
4776
4779
  children: [
4777
- /* @__PURE__ */ m.jsx(Yo, { size: 18 }),
4780
+ /* @__PURE__ */ g.jsx(Yo, { size: 18 }),
4778
4781
  n ? "Hide nested properties" : "Show nested properties"
4779
4782
  ]
4780
4783
  }
4781
4784
  ) }),
4782
- /* @__PURE__ */ m.jsx(xe.Content, { children: /* @__PURE__ */ m.jsx("div", { className: "mt-2", children: gr(r) ? /* @__PURE__ */ m.jsx(wo, { schema: r, level: o + 1 }) : r.type === "object" ? /* @__PURE__ */ m.jsx(Ge, { schema: r, level: o + 1 }) : r.type === "array" && "items" in r && typeof r.items == "object" && !hr(r.items) && /* @__PURE__ */ m.jsx(Ge, { schema: r.items, level: o + 1 }) }) })
4785
+ /* @__PURE__ */ g.jsx(xe.Content, { children: /* @__PURE__ */ g.jsx("div", { className: "mt-2", children: gr(r) ? /* @__PURE__ */ g.jsx(wo, { schema: r, level: o + 1 }) : r.type === "object" ? /* @__PURE__ */ g.jsx(Ge, { schema: r, level: o + 1 }) : r.type === "array" && "items" in r && typeof r.items == "object" && !hr(r.items) && /* @__PURE__ */ g.jsx(Ge, { schema: r.items, level: o + 1 }) }) })
4783
4786
  ]
4784
4787
  }
4785
4788
  )
@@ -4790,18 +4793,18 @@ const Os = ({
4790
4793
  defaultOpen: t = !1
4791
4794
  }) => {
4792
4795
  if (!e || Object.keys(e).length === 0)
4793
- return /* @__PURE__ */ m.jsx(be, { className: "p-4", children: /* @__PURE__ */ m.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
4796
+ return /* @__PURE__ */ g.jsx(be, { className: "p-4", children: /* @__PURE__ */ g.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
4794
4797
  const o = (s, l) => {
4795
4798
  if (gr(s))
4796
- return /* @__PURE__ */ m.jsx(wo, { schema: s, level: l });
4799
+ return /* @__PURE__ */ g.jsx(wo, { schema: s, level: l });
4797
4800
  if (s.type === "array" && s.items) {
4798
4801
  const n = s.items;
4799
- return typeof n.type == "string" && ["string", "number", "boolean", "integer"].includes(n.type) ? /* @__PURE__ */ m.jsxs(be, { className: "p-4", children: [
4800
- /* @__PURE__ */ m.jsxs("span", { className: "text-sm text-muted-foreground", children: [
4802
+ return typeof n.type == "string" && ["string", "number", "boolean", "integer"].includes(n.type) ? /* @__PURE__ */ g.jsxs(be, { className: "p-4", children: [
4803
+ /* @__PURE__ */ g.jsxs("span", { className: "text-sm text-muted-foreground", children: [
4801
4804
  n.type,
4802
4805
  "[]"
4803
4806
  ] }),
4804
- s.description && /* @__PURE__ */ m.jsx(
4807
+ s.description && /* @__PURE__ */ g.jsx(
4805
4808
  Re,
4806
4809
  {
4807
4810
  className: le(
@@ -4811,16 +4814,16 @@ const Os = ({
4811
4814
  content: s.description
4812
4815
  }
4813
4816
  )
4814
- ] }) : n.type === "object" ? /* @__PURE__ */ m.jsxs(be, { className: "flex flex-col gap-2 bg-border/30 p-4", children: [
4815
- /* @__PURE__ */ m.jsx("span", { className: "text-sm text-muted-foreground", children: "object[]" }),
4817
+ ] }) : n.type === "object" ? /* @__PURE__ */ g.jsxs(be, { className: "flex flex-col gap-2 bg-border/30 p-4", children: [
4818
+ /* @__PURE__ */ g.jsx("span", { className: "text-sm text-muted-foreground", children: "object[]" }),
4816
4819
  o(n, l + 1)
4817
4820
  ] }) : o(n, l + 1);
4818
4821
  }
4819
4822
  if (s.type === "object" && (!s.properties || Object.keys(s.properties).length === 0))
4820
- return /* @__PURE__ */ m.jsxs(be, { className: "p-4 flex gap-2 items-center", children: [
4821
- "name" in s && /* @__PURE__ */ m.jsx(m.Fragment, { children: s.name }),
4822
- /* @__PURE__ */ m.jsx("span", { className: "text-sm text-muted-foreground", children: "object" }),
4823
- s.description && /* @__PURE__ */ m.jsx(
4823
+ return /* @__PURE__ */ g.jsxs(be, { className: "p-4 flex gap-2 items-center", children: [
4824
+ "name" in s && /* @__PURE__ */ g.jsx(g.Fragment, { children: s.name }),
4825
+ /* @__PURE__ */ g.jsx("span", { className: "text-sm text-muted-foreground", children: "object" }),
4826
+ s.description && /* @__PURE__ */ g.jsx(
4824
4827
  Re,
4825
4828
  {
4826
4829
  className: le(
@@ -4839,8 +4842,8 @@ const Os = ({
4839
4842
  return c.deprecated ? "deprecated" : (u = s.required) != null && u.includes(i) ? "required" : "optional";
4840
4843
  }
4841
4844
  ), a = ["required", "optional", "deprecated"];
4842
- return /* @__PURE__ */ m.jsx(be, { className: "divide-y overflow-hidden", children: a.map(
4843
- (i) => n[i] && /* @__PURE__ */ m.jsx("ul", { className: "divide-y", children: n[i].map(([c, u]) => /* @__PURE__ */ m.jsx(
4845
+ return /* @__PURE__ */ g.jsx(be, { className: "divide-y overflow-hidden", children: a.map(
4846
+ (i) => n[i] && /* @__PURE__ */ g.jsx("ul", { className: "divide-y", children: n[i].map(([c, u]) => /* @__PURE__ */ g.jsx(
4844
4847
  Js,
4845
4848
  {
4846
4849
  name: c,
@@ -4853,9 +4856,9 @@ const Os = ({
4853
4856
  )) }, i)
4854
4857
  ) });
4855
4858
  }
4856
- return typeof s.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(s.type) ? /* @__PURE__ */ m.jsxs(be, { className: "p-4", children: [
4857
- /* @__PURE__ */ m.jsx("span", { className: "text-sm text-muted-foreground", children: s.type }),
4858
- s.description && /* @__PURE__ */ m.jsx(
4859
+ return typeof s.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(s.type) ? /* @__PURE__ */ g.jsxs(be, { className: "p-4", children: [
4860
+ /* @__PURE__ */ g.jsx("span", { className: "text-sm text-muted-foreground", children: s.type }),
4861
+ s.description && /* @__PURE__ */ g.jsx(
4859
4862
  Re,
4860
4863
  {
4861
4864
  className: le(
@@ -4865,9 +4868,9 @@ const Os = ({
4865
4868
  content: s.description
4866
4869
  }
4867
4870
  )
4868
- ] }) : s.additionalProperties ? /* @__PURE__ */ m.jsxs(be, { className: "my-2", children: [
4869
- /* @__PURE__ */ m.jsx(fa, { children: /* @__PURE__ */ m.jsx(pa, { children: "Additional Properties:" }) }),
4870
- /* @__PURE__ */ m.jsx(da, { children: o(
4871
+ ] }) : s.additionalProperties ? /* @__PURE__ */ g.jsxs(be, { className: "my-2", children: [
4872
+ /* @__PURE__ */ g.jsx(fa, { children: /* @__PURE__ */ g.jsx(pa, { children: "Additional Properties:" }) }),
4873
+ /* @__PURE__ */ g.jsx(da, { children: o(
4871
4874
  s.additionalProperties,
4872
4875
  l + 1
4873
4876
  ) })
@@ -4883,13 +4886,13 @@ const Os = ({
4883
4886
  t.parameters ?? [],
4884
4887
  (f) => f.in
4885
4888
  ), s = xr(null), l = t.responses.at(0), [n, a] = ge(l == null ? void 0 : l.statusCode);
4886
- return /* @__PURE__ */ m.jsxs(
4889
+ return /* @__PURE__ */ g.jsxs(
4887
4890
  "div",
4888
4891
  {
4889
4892
  className: "grid grid-cols-1 lg:grid-cols-[minmax(0,4fr)_minmax(0,3fr)] gap-8 items-start border-b-2 mb-16 pb-16",
4890
4893
  children: [
4891
- /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col gap-4", children: [
4892
- /* @__PURE__ */ m.jsx(
4894
+ /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col gap-4", children: [
4895
+ /* @__PURE__ */ g.jsx(
4893
4896
  Be,
4894
4897
  {
4895
4898
  level: 2,
@@ -4899,9 +4902,9 @@ const Os = ({
4899
4902
  children: t.summary
4900
4903
  }
4901
4904
  ),
4902
- /* @__PURE__ */ m.jsxs("div", { className: "text-sm flex gap-2 font-mono", children: [
4903
- /* @__PURE__ */ m.jsx("span", { className: oo(t.method), children: t.method.toUpperCase() }),
4904
- /* @__PURE__ */ m.jsxs(
4905
+ /* @__PURE__ */ g.jsxs("div", { className: "text-sm flex gap-2 font-mono", children: [
4906
+ /* @__PURE__ */ g.jsx("span", { className: oo(t.method), children: t.method.toUpperCase() }),
4907
+ /* @__PURE__ */ g.jsxs(
4905
4908
  "div",
4906
4909
  {
4907
4910
  ref: s,
@@ -4915,23 +4918,23 @@ const Os = ({
4915
4918
  }
4916
4919
  },
4917
4920
  children: [
4918
- r && /* @__PURE__ */ m.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: r }),
4919
- /* @__PURE__ */ m.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: t.path })
4921
+ r && /* @__PURE__ */ g.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: r }),
4922
+ /* @__PURE__ */ g.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: t.path })
4920
4923
  ]
4921
4924
  }
4922
4925
  )
4923
4926
  ] }),
4924
- t.description && /* @__PURE__ */ m.jsx(
4927
+ t.description && /* @__PURE__ */ g.jsx(
4925
4928
  Re,
4926
4929
  {
4927
4930
  className: `${Le} max-w-full prose-img:max-w-prose`,
4928
4931
  content: t.description
4929
4932
  }
4930
4933
  ),
4931
- t.parameters && t.parameters.length > 0 && /* @__PURE__ */ m.jsx(m.Fragment, { children: Vs.flatMap(
4934
+ t.parameters && t.parameters.length > 0 && /* @__PURE__ */ g.jsx(g.Fragment, { children: Vs.flatMap(
4932
4935
  (f) => {
4933
4936
  var h;
4934
- return (h = o[f]) != null && h.length ? /* @__PURE__ */ m.jsx(
4937
+ return (h = o[f]) != null && h.length ? /* @__PURE__ */ g.jsx(
4935
4938
  Ta,
4936
4939
  {
4937
4940
  id: t.slug,
@@ -4942,8 +4945,8 @@ const Os = ({
4942
4945
  ) : [];
4943
4946
  }
4944
4947
  ) }),
4945
- ja((u = (c = (i = t.requestBody) == null ? void 0 : i.content) == null ? void 0 : c.at(0)) == null ? void 0 : u.schema, (f) => /* @__PURE__ */ m.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4946
- /* @__PURE__ */ m.jsx(
4948
+ ja((u = (c = (i = t.requestBody) == null ? void 0 : i.content) == null ? void 0 : c.at(0)) == null ? void 0 : u.schema, (f) => /* @__PURE__ */ g.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4949
+ /* @__PURE__ */ g.jsx(
4947
4950
  Be,
4948
4951
  {
4949
4952
  level: 3,
@@ -4952,10 +4955,10 @@ const Os = ({
4952
4955
  children: "Request Body"
4953
4956
  }
4954
4957
  ),
4955
- /* @__PURE__ */ m.jsx(Ge, { schema: f })
4958
+ /* @__PURE__ */ g.jsx(Ge, { schema: f })
4956
4959
  ] })),
4957
- t.responses.length > 0 && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
4958
- /* @__PURE__ */ m.jsx(
4960
+ t.responses.length > 0 && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
4961
+ /* @__PURE__ */ g.jsx(
4959
4962
  Be,
4960
4963
  {
4961
4964
  level: 3,
@@ -4964,13 +4967,13 @@ const Os = ({
4964
4967
  children: "Responses"
4965
4968
  }
4966
4969
  ),
4967
- /* @__PURE__ */ m.jsxs(
4970
+ /* @__PURE__ */ g.jsxs(
4968
4971
  sa,
4969
4972
  {
4970
4973
  onValueChange: (f) => a(f),
4971
4974
  value: n,
4972
4975
  children: [
4973
- t.responses.length > 1 && /* @__PURE__ */ m.jsx(la, { children: t.responses.map((f) => /* @__PURE__ */ m.jsx(
4976
+ t.responses.length > 1 && /* @__PURE__ */ g.jsx(la, { children: t.responses.map((f) => /* @__PURE__ */ g.jsx(
4974
4977
  ca,
4975
4978
  {
4976
4979
  value: f.statusCode,
@@ -4979,13 +4982,13 @@ const Os = ({
4979
4982
  },
4980
4983
  f.statusCode
4981
4984
  )) }),
4982
- /* @__PURE__ */ m.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
4985
+ /* @__PURE__ */ g.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
4983
4986
  var h, y;
4984
- return /* @__PURE__ */ m.jsx(
4987
+ return /* @__PURE__ */ g.jsx(
4985
4988
  ua,
4986
4989
  {
4987
4990
  value: f.statusCode,
4988
- children: /* @__PURE__ */ m.jsx(
4991
+ children: /* @__PURE__ */ g.jsx(
4989
4992
  Ge,
4990
4993
  {
4991
4994
  schema: (y = (h = f.content) == null ? void 0 : h.find(($) => $.schema)) == null ? void 0 : y.schema
@@ -5000,7 +5003,7 @@ const Os = ({
5000
5003
  )
5001
5004
  ] })
5002
5005
  ] }),
5003
- /* @__PURE__ */ m.jsx(
5006
+ /* @__PURE__ */ g.jsx(
5004
5007
  Ls,
5005
5008
  {
5006
5009
  selectedResponse: n,
@@ -5119,40 +5122,40 @@ const Ks = rt(
5119
5122
  }), { selectedServer: a } = br(), i = vr(n), c = i.data.schema.title, u = i.data.schema.summary, f = i.data.schema.description, h = ko(), y = i.data.schema.operations;
5120
5123
  Ro();
5121
5124
  const $ = u || (f ? Qs(f) : void 0);
5122
- return /* @__PURE__ */ m.jsxs("div", { className: "pt-[--padding-content-top]", children: [
5123
- /* @__PURE__ */ m.jsxs(qo, { children: [
5124
- /* @__PURE__ */ m.jsx("title", { children: c }),
5125
- $ && /* @__PURE__ */ m.jsx("meta", { name: "description", content: $ })
5125
+ return /* @__PURE__ */ g.jsxs("div", { className: "pt-[--padding-content-top]", children: [
5126
+ /* @__PURE__ */ g.jsxs(qo, { children: [
5127
+ /* @__PURE__ */ g.jsx("title", { children: c }),
5128
+ $ && /* @__PURE__ */ g.jsx("meta", { name: "description", content: $ })
5126
5129
  ] }),
5127
- /* @__PURE__ */ m.jsxs(
5130
+ /* @__PURE__ */ g.jsxs(
5128
5131
  "div",
5129
5132
  {
5130
5133
  className: le(Le, "mb-16 max-w-full prose-img:max-w-prose"),
5131
5134
  children: [
5132
- /* @__PURE__ */ m.jsxs("div", { className: "flex", children: [
5133
- /* @__PURE__ */ m.jsxs("div", { className: "flex-1", children: [
5134
- /* @__PURE__ */ m.jsx(Fo, { children: "Overview" }),
5135
- /* @__PURE__ */ m.jsx(Be, { level: 1, id: "description", registerSidebarAnchor: !0, children: c })
5135
+ /* @__PURE__ */ g.jsxs("div", { className: "flex", children: [
5136
+ /* @__PURE__ */ g.jsxs("div", { className: "flex-1", children: [
5137
+ /* @__PURE__ */ g.jsx(Fo, { children: "Overview" }),
5138
+ /* @__PURE__ */ g.jsx(Be, { level: 1, id: "description", registerSidebarAnchor: !0, children: c })
5136
5139
  ] }),
5137
- /* @__PURE__ */ m.jsx("div", { children: Object.entries(s).length > 1 && /* @__PURE__ */ m.jsxs(
5140
+ /* @__PURE__ */ g.jsx("div", { children: Object.entries(s).length > 1 && /* @__PURE__ */ g.jsxs(
5138
5141
  Eo,
5139
5142
  {
5140
5143
  onValueChange: (x) => h(s[x]),
5141
5144
  defaultValue: l,
5142
5145
  children: [
5143
- /* @__PURE__ */ m.jsx(Ao, { className: "w-[180px]", children: /* @__PURE__ */ m.jsx(Io, { placeholder: "Select version" }) }),
5144
- /* @__PURE__ */ m.jsx(Lo, { children: Object.entries(s).map(([x]) => /* @__PURE__ */ m.jsx(Uo, { value: x, children: x }, x)) })
5146
+ /* @__PURE__ */ g.jsx(Ao, { className: "w-[180px]", children: /* @__PURE__ */ g.jsx(Io, { placeholder: "Select version" }) }),
5147
+ /* @__PURE__ */ g.jsx(Lo, { children: Object.entries(s).map(([x]) => /* @__PURE__ */ g.jsx(Uo, { value: x, children: x }, x)) })
5145
5148
  ]
5146
5149
  }
5147
5150
  ) })
5148
5151
  ] }),
5149
- /* @__PURE__ */ m.jsx(Re, { content: i.data.schema.description ?? "" })
5152
+ /* @__PURE__ */ g.jsx(Re, { content: i.data.schema.description ?? "" })
5150
5153
  ]
5151
5154
  }
5152
5155
  ),
5153
- /* @__PURE__ */ m.jsx("hr", {}),
5154
- /* @__PURE__ */ m.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ m.jsx($a, {}) }),
5155
- y.map((x) => /* @__PURE__ */ m.jsx(
5156
+ /* @__PURE__ */ g.jsx("hr", {}),
5157
+ /* @__PURE__ */ g.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ g.jsx($a, {}) }),
5158
+ y.map((x) => /* @__PURE__ */ g.jsx(
5156
5159
  Ds,
5157
5160
  {
5158
5161
  serverUrl: a ?? i.data.schema.url ?? "",
@@ -5166,4 +5169,4 @@ export {
5166
5169
  xl as OperationList,
5167
5170
  Ks as OperationsFragment
5168
5171
  };
5169
- //# sourceMappingURL=OperationList-CDt1xdc4.js.map
5172
+ //# sourceMappingURL=OperationList-wzZNceUl.js.map