zudoku 0.35.3 → 0.35.4

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 (34) hide show
  1. package/dist/lib/components/Layout.js +1 -1
  2. package/dist/lib/components/Layout.js.map +1 -1
  3. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  4. package/dist/lib/plugins/openapi/ParamInfos.js +34 -0
  5. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  6. package/dist/lib/plugins/openapi/ParameterListItem.js +5 -4
  7. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  8. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +6 -8
  9. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  10. package/dist/lib/ui/Button.d.ts +2 -2
  11. package/dist/lib/ui/Button.js +1 -0
  12. package/dist/lib/ui/Button.js.map +1 -1
  13. package/lib/{OasProvider-7Z9UwS9y.js → OasProvider-BbSqUQka.js} +2 -2
  14. package/lib/{OasProvider-7Z9UwS9y.js.map → OasProvider-BbSqUQka.js.map} +1 -1
  15. package/lib/{OperationList-a7wnHdXv.js → OperationList-CENzwqY8.js} +1063 -1029
  16. package/lib/OperationList-CENzwqY8.js.map +1 -0
  17. package/lib/{Spinner-1KrEmx1V.js → Spinner-C6n4eOvh.js} +13 -12
  18. package/lib/Spinner-C6n4eOvh.js.map +1 -0
  19. package/lib/{index-UmhI2mj7.js → index-BVhQWA89.js} +4 -4
  20. package/lib/{index-UmhI2mj7.js.map → index-BVhQWA89.js.map} +1 -1
  21. package/lib/ui/ActionButton.js +1 -1
  22. package/lib/ui/Button.js +12 -11
  23. package/lib/ui/Button.js.map +1 -1
  24. package/lib/zudoku.components.js +2 -2
  25. package/lib/zudoku.components.js.map +1 -1
  26. package/lib/zudoku.plugin-openapi.js +1 -1
  27. package/package.json +1 -1
  28. package/src/lib/components/Layout.tsx +1 -1
  29. package/src/lib/plugins/openapi/ParamInfos.tsx +64 -0
  30. package/src/lib/plugins/openapi/ParameterListItem.tsx +9 -11
  31. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +17 -33
  32. package/src/lib/ui/Button.tsx +3 -1
  33. package/lib/OperationList-a7wnHdXv.js.map +0 -1
  34. package/lib/Spinner-1KrEmx1V.js.map +0 -1
@@ -1,40 +1,40 @@
1
1
  import { j as u } from "./jsx-runtime-CYK1ROHF.js";
2
- import { b as jr, k as $r, l as Uo } from "./hook-CfCFKZ-2.js";
3
- import { H as Fo } from "./index.esm-CltAN0Tf.js";
4
- import { ChevronsUpDownIcon as to, CheckIcon as _o, CopyIcon as Bo, ChevronUpIcon as Ho, ChevronDownIcon as ro, UnfoldVerticalIcon as Mo, FoldVerticalIcon as zo, CircleIcon as Go, CircleDotIcon as Wo, CircleFadingPlusIcon as Jo, SquareMinusIcon as Vo, SquarePlusIcon as Do, ListPlusIcon as Qo, RefreshCcwDotIcon as Ko, ChevronsDownUpIcon as Yo } from "lucide-react";
5
- import { b as Xo, a as Zo } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
6
- import { a as rt, C as no, b as oo, c as ao, d as yr, P as ea, m as io, e as ta } from "./index-UmhI2mj7.js";
7
- import { S as ra, a as na, b as oa, c as aa, e as ia } from "./Select-FAYHOYTy.js";
8
- import { C as sa } from "./CategoryHeading-DpB47wvk.js";
9
- import { I as la, c as so, M as Se, H as Be, P as qe } from "./Markdown-hBN9vkm5.js";
2
+ import { b as jr, k as $r, l as Fo } from "./hook-CfCFKZ-2.js";
3
+ import { H as _o } from "./index.esm-CltAN0Tf.js";
4
+ import { ChevronsUpDownIcon as to, CheckIcon as Bo, CopyIcon as Ho, ChevronUpIcon as Mo, ChevronDownIcon as ro, UnfoldVerticalIcon as zo, FoldVerticalIcon as Go, CircleIcon as Wo, CircleDotIcon as Jo, CircleFadingPlusIcon as Vo, SquareMinusIcon as Do, SquarePlusIcon as Qo, MinusIcon as Ko, PlusIcon as Yo, RefreshCcwDotIcon as Xo, ChevronsDownUpIcon as Zo } from "lucide-react";
5
+ import { b as ea, a as ta } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
6
+ import { a as tt, C as no, b as oo, c as ao, d as hr, P as ra, m as io, e as na } from "./index-BVhQWA89.js";
7
+ import { S as oa, a as aa, b as ia, c as sa, e as la } from "./Select-FAYHOYTy.js";
8
+ import { C as ca } from "./CategoryHeading-DpB47wvk.js";
9
+ import { I as so, c as lo, M as we, H as _e, P as Ne } from "./Markdown-hBN9vkm5.js";
10
10
  import { c as se } from "./cn-qaFjX9_3.js";
11
- import { useContext as ca, useTransition as lo, useState as ye, useRef as co, useEffect as wr, useLayoutEffect as ua, useMemo as uo, useCallback as fa } from "react";
12
- import { Button as fo } from "./ui/Button.js";
13
- import { a as pa, u as Sr } from "./context-DLCwaMXN.js";
14
- import { VisuallyHidden as mr } from "@radix-ui/react-visually-hidden";
15
- import { c as da } from "./index-CPNSgwSb.js";
16
- import { Tabs as ha, TabsList as ya, TabsTrigger as ma, TabsContent as ga } from "./ui/Tabs.js";
17
- import { Card as be, CardHeader as va, CardTitle as ba, CardContent as xa } from "./ui/Card.js";
18
- import { B as gr } from "./Spinner-1KrEmx1V.js";
19
- import { g as ja, c as Ze, a as $a } from "./_commonjsHelpers-BkfeUUK-.js";
20
- import { S as po } from "./SyntaxHighlight-BEoSoPEo.js";
21
- import { useAuth as wa } from "./zudoku.components.js";
22
- import * as Ye from "@radix-ui/react-tabs";
11
+ import { useContext as ua, useTransition as co, useState as ye, isValidElement as fa, useRef as uo, useEffect as wr, useLayoutEffect as pa, useMemo as fo, useCallback as da } from "react";
12
+ import { Button as po } from "./ui/Button.js";
13
+ import { a as ha, u as Sr } from "./context-DLCwaMXN.js";
14
+ import { VisuallyHidden as yr } from "@radix-ui/react-visually-hidden";
15
+ import { c as ya } from "./index-CPNSgwSb.js";
16
+ import { Tabs as ma, TabsList as ga, TabsTrigger as va, TabsContent as ba } from "./ui/Tabs.js";
17
+ import { Card as be, CardHeader as xa, CardTitle as ja, CardContent as $a } from "./ui/Card.js";
18
+ import { B as mr } from "./Spinner-C6n4eOvh.js";
19
+ import { g as wa, c as Xe, a as Sa } from "./_commonjsHelpers-BkfeUUK-.js";
20
+ import { S as ho } from "./SyntaxHighlight-BEoSoPEo.js";
21
+ import { useAuth as Oa } from "./zudoku.components.js";
22
+ import * as Ke from "@radix-ui/react-tabs";
23
23
  import * as xe from "@radix-ui/react-collapsible";
24
- import { o as Sa } from "./objectEntries-BS7aAgOm.js";
25
- import { C as Oa } from "./circular-v7K6lDDh.js";
26
- function Ta(e, r) {
24
+ import { o as Ta } from "./objectEntries-BS7aAgOm.js";
25
+ import { C as Pa } from "./circular-v7K6lDDh.js";
26
+ function Ca(e, r) {
27
27
  return r;
28
28
  }
29
29
  const Or = (e, ...r) => {
30
- const t = ca(pa);
30
+ const t = ua(ha);
31
31
  if (t === void 0)
32
32
  throw new Error("useGraphQL must be used within a GraphQLProvider");
33
33
  return {
34
34
  queryFn: () => t.fetch(e, ...r),
35
35
  queryKey: [e, r[0]]
36
36
  };
37
- }, et = ({
37
+ }, Ze = ({
38
38
  value: e,
39
39
  onChange: r,
40
40
  className: t,
@@ -51,7 +51,7 @@ const Or = (e, ...r) => {
51
51
  ),
52
52
  value: e,
53
53
  onChange: r,
54
- children: o.map((l) => /* @__PURE__ */ u.jsx("option", { value: l.value, children: l.label }, l.value))
54
+ children: o.map((s) => /* @__PURE__ */ u.jsx("option", { value: s.value, children: s.label }, s.value))
55
55
  }
56
56
  ),
57
57
  /* @__PURE__ */ u.jsx(
@@ -64,7 +64,7 @@ const Or = (e, ...r) => {
64
64
  children: /* @__PURE__ */ u.jsx(to, { size: 14 })
65
65
  }
66
66
  )
67
- ] }), Pa = rt(
67
+ ] }), Na = tt(
68
68
  /* GraphQL */
69
69
  `
70
70
  query ServersQuery($input: JSON!, $type: SchemaType!) {
@@ -79,7 +79,7 @@ const Or = (e, ...r) => {
79
79
  ), Hr = ({ url: e }) => {
80
80
  const [r, t] = ye(!1);
81
81
  return /* @__PURE__ */ u.jsx(
82
- fo,
82
+ po,
83
83
  {
84
84
  onClick: () => {
85
85
  navigator.clipboard.writeText(e).then(() => {
@@ -88,27 +88,27 @@ const Or = (e, ...r) => {
88
88
  },
89
89
  variant: "ghost",
90
90
  size: "icon",
91
- children: r ? /* @__PURE__ */ u.jsx(_o, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ u.jsx(Bo, { size: 14, strokeWidth: 1.3 })
91
+ children: r ? /* @__PURE__ */ u.jsx(Bo, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ u.jsx(Ho, { size: 14, strokeWidth: 1.3 })
92
92
  }
93
93
  );
94
- }, Ca = () => {
95
- const { input: e, type: r } = Sr(), t = Or(Pa, { input: e, type: r }), o = jr(t), [, i] = lo(), { selectedServer: l, setSelectedServer: n } = $r(
94
+ }, qa = () => {
95
+ const { input: e, type: r } = Sr(), t = Or(Na, { input: e, type: r }), o = jr(t), [, i] = co(), { selectedServer: s, setSelectedServer: n } = $r(
96
96
  o.data.schema.servers
97
97
  ), { servers: a } = o.data.schema;
98
98
  if (a.length === 0) return null;
99
- const s = a.at(0);
99
+ const l = a.at(0);
100
100
  return a.length === 1 ? /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", children: [
101
101
  /* @__PURE__ */ u.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
102
- /* @__PURE__ */ u.jsx(la, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: s.url }),
103
- /* @__PURE__ */ u.jsx(Hr, { url: s.url })
102
+ /* @__PURE__ */ u.jsx(so, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: l.url }),
103
+ /* @__PURE__ */ u.jsx(Hr, { url: l.url })
104
104
  ] }) : /* @__PURE__ */ u.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
105
105
  /* @__PURE__ */ u.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
106
106
  /* @__PURE__ */ u.jsx(
107
- et,
107
+ Ze,
108
108
  {
109
109
  className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate",
110
110
  onChange: (c) => i(() => n(c.target.value)),
111
- value: l,
111
+ value: s,
112
112
  showChevrons: a.length > 1,
113
113
  options: a.map((c) => ({
114
114
  value: c.url,
@@ -116,9 +116,9 @@ const Or = (e, ...r) => {
116
116
  }))
117
117
  }
118
118
  ),
119
- /* @__PURE__ */ u.jsx(Hr, { url: l })
119
+ /* @__PURE__ */ u.jsx(Hr, { url: s })
120
120
  ] });
121
- }, Na = da(
121
+ }, Ra = ya(
122
122
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
123
123
  {
124
124
  variants: {
@@ -135,35 +135,67 @@ const Or = (e, ...r) => {
135
135
  }
136
136
  }
137
137
  );
138
- function we({ className: e, variant: r, ...t }) {
139
- return /* @__PURE__ */ u.jsx("div", { className: se(Na({ variant: r }), e), ...t });
138
+ function ka({ className: e, variant: r, ...t }) {
139
+ return /* @__PURE__ */ u.jsx("div", { className: se(Ra({ variant: r }), e), ...t });
140
140
  }
141
- const ho = (e, r) => e.reduce(
141
+ const yo = (e, r) => e.reduce(
142
142
  (t, o) => {
143
143
  const i = r(o);
144
144
  return t[i] || (t[i] = []), t[i].push(o), t;
145
145
  },
146
146
  {}
147
- ), qa = (e, r) => e ? r(e) : void 0, yo = ({
147
+ ), Ea = (e, r) => e ? r(e) : void 0, Aa = (e) => e ? [
148
+ e.type === "array" && e.items.type ? `${e.items.type}[]` : Array.isArray(e.type) ? e.type.join(" | ") : e.type,
149
+ e.enum && "enum",
150
+ e.format,
151
+ e.minimum && `min: ${e.minimum}`,
152
+ e.maximum && `max: ${e.maximum}`,
153
+ e.minLength && `minLength: ${e.minLength}`,
154
+ e.maxLength && `maxLength: ${e.maxLength}`,
155
+ e.minItems && `minItems: ${e.minItems}`,
156
+ e.maxItems && `maxItems: ${e.maxItems}`,
157
+ e.uniqueItems && "unique",
158
+ e.minProperties && `minProps: ${e.minProperties}`,
159
+ e.maxProperties && `maxProps: ${e.maxProperties}`,
160
+ e.readOnly && "readOnly",
161
+ e.writeOnly && "writeOnly",
162
+ e.deprecated && "deprecated",
163
+ e.pattern && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
164
+ "pattern: ",
165
+ /* @__PURE__ */ u.jsx(so, { className: "text-xs", children: e.pattern })
166
+ ] })
167
+ ] : [], gr = ({
168
+ schema: e,
169
+ extraItems: r = [],
170
+ className: t
171
+ }) => {
172
+ const o = [...r, ...Aa(e)].flatMap(
173
+ (i) => typeof i == "string" || fa(i) ? i : []
174
+ );
175
+ return /* @__PURE__ */ u.jsx("div", { className: t, children: o.map((i, s) => /* @__PURE__ */ u.jsxs("span", { className: "text-muted-foreground", children: [
176
+ i,
177
+ s < o.length - 1 && /* @__PURE__ */ u.jsx("span", { className: "text-muted-foreground/50", children: " · " })
178
+ ] }, s)) });
179
+ }, mo = ({
148
180
  values: e,
149
181
  className: r,
150
182
  maxVisibleValues: t = 8
151
183
  }) => {
152
184
  const [o, i] = ye(!1);
153
185
  if (!e.length) return null;
154
- const l = e.length > t, n = l && !o ? e.slice(0, t) : e;
186
+ const s = e.length > t, n = s && !o ? e.slice(0, t) : e;
155
187
  return /* @__PURE__ */ u.jsxs("div", { className: se("flex flex-wrap gap-1.5 text-xs", r), children: [
156
188
  /* @__PURE__ */ u.jsx("span", { className: "text-muted-foreground", children: "Enum values: " }),
157
- n.map((a) => /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx(so, { className: "border rounded px-1 font-mono cursor-pointer", children: a }) }, a)),
158
- l && /* @__PURE__ */ u.jsx(
159
- gr,
189
+ n.map((a) => /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx(lo, { className: "border rounded px-1 font-mono cursor-pointer", children: a }) }, a)),
190
+ s && /* @__PURE__ */ u.jsx(
191
+ mr,
160
192
  {
161
193
  variant: "ghost",
162
194
  size: "sm",
163
195
  className: "h-fit px-0",
164
196
  onClick: () => i(!o),
165
197
  children: o ? /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-1", children: [
166
- /* @__PURE__ */ u.jsx(Ho, { size: 12 }),
198
+ /* @__PURE__ */ u.jsx(Mo, { size: 12 }),
167
199
  /* @__PURE__ */ u.jsx("span", { className: "text-muted-foreground", children: "show less" })
168
200
  ] }) : /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-1", children: [
169
201
  /* @__PURE__ */ u.jsx(ro, { size: 12 }),
@@ -176,14 +208,14 @@ const ho = (e, r) => e.reduce(
176
208
  }
177
209
  )
178
210
  ] });
179
- }, Ra = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
211
+ }, Ia = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
180
212
  type: "string"
181
- }, ka = ({
213
+ }, La = ({
182
214
  parameter: e,
183
215
  group: r,
184
216
  id: t
185
217
  }) => {
186
- const o = Ra(e);
218
+ const o = Ia(e);
187
219
  return /* @__PURE__ */ u.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1.5", children: [
188
220
  /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", children: [
189
221
  /* @__PURE__ */ u.jsx("code", { children: r === "path" ? /* @__PURE__ */ u.jsx(
@@ -191,38 +223,45 @@ const ho = (e, r) => e.reduce(
191
223
  {
192
224
  name: e.name,
193
225
  backgroundOpacity: "15%",
194
- className: "px-1",
226
+ className: "px-2",
195
227
  slug: `${t}-${e.name}`
196
228
  }
197
229
  ) : e.name }),
198
- o.type && /* @__PURE__ */ u.jsx(we, { variant: "muted", children: o.type === "array" ? `${o.items.type}[]` : o.type }),
199
- e.required && /* @__PURE__ */ u.jsx(we, { variant: "outline", children: "required" }),
200
- e.style === "form" && /* @__PURE__ */ u.jsx(we, { variant: "secondary", children: "form" })
230
+ /* @__PURE__ */ u.jsx(
231
+ gr,
232
+ {
233
+ schema: o,
234
+ extraItems: [
235
+ e.required && "required",
236
+ e.style === "form" && "form"
237
+ ]
238
+ }
239
+ )
201
240
  ] }),
202
241
  e.description && /* @__PURE__ */ u.jsx(
203
- Se,
242
+ we,
204
243
  {
205
244
  content: e.description,
206
245
  className: "text-sm prose-p:my-1 prose-code:whitespace-pre-line"
207
246
  }
208
247
  ),
209
- o.enum && /* @__PURE__ */ u.jsx(yo, { values: o.enum })
248
+ o.enum && /* @__PURE__ */ u.jsx(mo, { values: o.enum })
210
249
  ] });
211
- }, Ea = ({
250
+ }, Ua = ({
212
251
  summary: e,
213
252
  group: r,
214
253
  parameters: t,
215
254
  id: o
216
255
  }) => /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
217
- /* @__PURE__ */ u.jsxs(Be, { level: 3, id: `${o}/${r}-parameters`, className: "capitalize", children: [
218
- e && /* @__PURE__ */ u.jsxs(mr, { children: [
256
+ /* @__PURE__ */ u.jsxs(_e, { level: 3, id: `${o}/${r}-parameters`, className: "capitalize", children: [
257
+ e && /* @__PURE__ */ u.jsxs(yr, { children: [
219
258
  e,
220
259
  " › "
221
260
  ] }),
222
261
  r === "header" ? "Headers" : `${r} Parameters`
223
262
  ] }),
224
- /* @__PURE__ */ u.jsx(be, { children: /* @__PURE__ */ u.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((i, l) => i.required === l.required ? 0 : i.required ? -1 : 1).map((i) => /* @__PURE__ */ u.jsx(
225
- ka,
263
+ /* @__PURE__ */ u.jsx(be, { children: /* @__PURE__ */ u.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((i, s) => i.required === s.required ? 0 : i.required ? -1 : 1).map((i) => /* @__PURE__ */ u.jsx(
264
+ La,
226
265
  {
227
266
  parameter: i,
228
267
  id: o,
@@ -251,36 +290,36 @@ var Mr = (e, r) => {
251
290
  this.code.push("");
252
291
  }, this.join = () => {
253
292
  const t = this.code.join(this.lineJoin);
254
- return this.postProcessors.reduce((i, l) => l(i), t);
293
+ return this.postProcessors.reduce((i, s) => s(i), t);
255
294
  }, this.addPostProcessor = (t) => {
256
295
  this.postProcessors = [...this.postProcessors, t];
257
296
  }, this.indentationCharacter = e || zr, this.lineJoin = r ?? Gr;
258
297
  }
259
- }, yt, Wr;
260
- function Aa() {
261
- return Wr || (Wr = 1, yt = function(e) {
298
+ }, ht, Wr;
299
+ function Fa() {
300
+ return Wr || (Wr = 1, ht = function(e) {
262
301
  return Object.prototype.toString.call(e) === "[object RegExp]";
263
- }), yt;
302
+ }), ht;
264
303
  }
265
- var mt, Jr;
266
- function Ia() {
267
- return Jr || (Jr = 1, mt = function(e) {
304
+ var yt, Jr;
305
+ function _a() {
306
+ return Jr || (Jr = 1, yt = function(e) {
268
307
  var r = typeof e;
269
308
  return e !== null && (r === "object" || r === "function");
270
- }), mt;
309
+ }), yt;
271
310
  }
272
- var Ke = {}, Vr;
273
- function La() {
274
- return Vr || (Vr = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.default = (e) => Object.getOwnPropertySymbols(e).filter((r) => Object.prototype.propertyIsEnumerable.call(e, r))), Ke;
311
+ var Qe = {}, Vr;
312
+ function Ba() {
313
+ return Vr || (Vr = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.default = (e) => Object.getOwnPropertySymbols(e).filter((r) => Object.prototype.propertyIsEnumerable.call(e, r))), Qe;
275
314
  }
276
- var gt, Dr;
277
- function Ua() {
278
- if (Dr) return gt;
315
+ var mt, Dr;
316
+ function Ha() {
317
+ if (Dr) return mt;
279
318
  Dr = 1;
280
- const e = Aa(), r = Ia(), t = La().default;
281
- return gt = (o, i, l) => {
319
+ const e = Fa(), r = _a(), t = Ba().default;
320
+ return mt = (o, i, s) => {
282
321
  const n = [];
283
- return function a(s, c, f) {
322
+ return function a(l, c, f) {
284
323
  c = c || {}, c.indent = c.indent || " ", f = f || "";
285
324
  let g;
286
325
  c.inlineCharacterLimit === void 0 ? g = {
@@ -303,48 +342,48 @@ function Ua() {
303
342
  return j.length <= c.inlineCharacterLimit ? j : m.replace(new RegExp(g.newLine + "|" + g.newLineOrSpace, "g"), `
304
343
  `).replace(new RegExp(g.pad, "g"), f).replace(new RegExp(g.indent, "g"), f + c.indent);
305
344
  };
306
- if (n.indexOf(s) !== -1)
345
+ if (n.indexOf(l) !== -1)
307
346
  return '"[Circular]"';
308
- if (s == null || typeof s == "number" || typeof s == "boolean" || typeof s == "function" || typeof s == "symbol" || e(s))
309
- return String(s);
310
- if (s instanceof Date)
311
- return `new Date('${s.toISOString()}')`;
312
- if (Array.isArray(s)) {
313
- if (s.length === 0)
347
+ if (l == null || typeof l == "number" || typeof l == "boolean" || typeof l == "function" || typeof l == "symbol" || e(l))
348
+ return String(l);
349
+ if (l instanceof Date)
350
+ return `new Date('${l.toISOString()}')`;
351
+ if (Array.isArray(l)) {
352
+ if (l.length === 0)
314
353
  return "[]";
315
- n.push(s);
316
- const m = "[" + g.newLine + s.map((j, v) => {
317
- const p = s.length - 1 === v ? g.newLine : "," + g.newLineOrSpace;
354
+ n.push(l);
355
+ const m = "[" + g.newLine + l.map((j, v) => {
356
+ const p = l.length - 1 === v ? g.newLine : "," + g.newLineOrSpace;
318
357
  let h = a(j, c, f + c.indent);
319
- return c.transform && (h = c.transform(s, v, h)), g.indent + h + p;
358
+ return c.transform && (h = c.transform(l, v, h)), g.indent + h + p;
320
359
  }).join("") + g.pad + "]";
321
360
  return n.pop(), b(m);
322
361
  }
323
- if (r(s)) {
324
- let m = Object.keys(s).concat(t(s));
325
- if (c.filter && (m = m.filter((v) => c.filter(s, v))), m.length === 0)
362
+ if (r(l)) {
363
+ let m = Object.keys(l).concat(t(l));
364
+ if (c.filter && (m = m.filter((v) => c.filter(l, v))), m.length === 0)
326
365
  return "{}";
327
- n.push(s);
366
+ n.push(l);
328
367
  const j = "{" + g.newLine + m.map((v, p) => {
329
368
  const h = m.length - 1 === p ? g.newLine : "," + g.newLineOrSpace, y = typeof v == "symbol", S = !y && /^[a-z$_][a-z$_0-9]*$/i.test(v), T = y || S ? v : a(v, c);
330
- let d = a(s[v], c, f + c.indent);
331
- return c.transform && (d = c.transform(s, v, d)), g.indent + String(T) + ": " + d + h;
369
+ let d = a(l[v], c, f + c.indent);
370
+ return c.transform && (d = c.transform(l, v, d)), g.indent + String(T) + ": " + d + h;
332
371
  }).join("") + g.pad + "}";
333
372
  return n.pop(), b(j);
334
373
  }
335
- return s = String(s).replace(/[\r\n]/g, (m) => m === `
336
- ` ? "\\n" : "\\r"), c.singleQuotes === !1 ? (s = s.replace(/"/g, '\\"'), `"${s}"`) : (s = s.replace(/\\?'/g, "\\'"), `'${s}'`);
337
- }(o, i, l);
338
- }, gt;
374
+ return l = String(l).replace(/[\r\n]/g, (m) => m === `
375
+ ` ? "\\n" : "\\r"), c.singleQuotes === !1 ? (l = l.replace(/"/g, '\\"'), `"${l}"`) : (l = l.replace(/\\?'/g, "\\'"), `'${l}'`);
376
+ }(o, i, s);
377
+ }, mt;
339
378
  }
340
- var Fa = Ua();
341
- const fe = /* @__PURE__ */ ja(Fa);
342
- function Me(e, r = {}) {
379
+ var Ma = Ha();
380
+ const fe = /* @__PURE__ */ wa(Ma);
381
+ function He(e, r = {}) {
343
382
  const { delimiter: t = '"', escapeChar: o = "\\", escapeNewlines: i = !0 } = r;
344
383
  return [...e.toString()].map((n) => n === "\b" ? `${o}b` : n === " " ? `${o}t` : n === `
345
384
  ` ? i ? `${o}n` : n : n === "\f" ? `${o}f` : n === "\r" ? i ? `${o}r` : n : n === o ? o + o : n === t ? o + t : n < " " || n > "~" ? JSON.stringify(n).slice(1, -1) : n).join("");
346
385
  }
347
- var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' }), _a = {
386
+ var Me = (e) => He(e, { delimiter: "'" }), ce = (e) => He(e, { delimiter: '"' }), za = {
348
387
  info: {
349
388
  key: "libcurl",
350
389
  title: "Libcurl",
@@ -353,14 +392,14 @@ var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' })
353
392
  extname: ".c"
354
393
  },
355
394
  convert: ({ method: e, fullUrl: r, headersObj: t, allHeaders: o, postData: i }) => {
356
- const { push: l, blank: n, join: a } = new V();
357
- l("CURL *hnd = curl_easy_init();"), n(), l(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`), l("curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);"), l(`curl_easy_setopt(hnd, CURLOPT_URL, "${r}");`);
358
- const s = Object.keys(t);
359
- return s.length && (n(), l("struct curl_slist *headers = NULL;"), s.forEach((c) => {
360
- l(`headers = curl_slist_append(headers, "${c}: ${ce(t[c])}");`);
361
- }), l("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), o.cookie && (n(), l(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${o.cookie}");`)), i.text && (n(), l(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(i.text)});`)), n(), l("CURLcode ret = curl_easy_perform(hnd);"), a();
395
+ const { push: s, blank: n, join: a } = new V();
396
+ s("CURL *hnd = curl_easy_init();"), n(), s(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`), s("curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);"), s(`curl_easy_setopt(hnd, CURLOPT_URL, "${r}");`);
397
+ const l = Object.keys(t);
398
+ return l.length && (n(), s("struct curl_slist *headers = NULL;"), l.forEach((c) => {
399
+ s(`headers = curl_slist_append(headers, "${c}: ${ce(t[c])}");`);
400
+ }), s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), o.cookie && (n(), s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${o.cookie}");`)), i.text && (n(), s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(i.text)});`)), n(), s("CURLcode ret = curl_easy_perform(hnd);"), a();
362
401
  }
363
- }, Ba = {
402
+ }, Ga = {
364
403
  info: {
365
404
  key: "c",
366
405
  title: "C",
@@ -368,30 +407,30 @@ var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' })
368
407
  cli: "c"
369
408
  },
370
409
  clientsById: {
371
- libcurl: _a
410
+ libcurl: za
372
411
  }
373
412
  }, pe = (e, r) => Object.keys(e).find((t) => t.toLowerCase() === r.toLowerCase()), ve = (e, r) => {
374
413
  const t = pe(e, r);
375
414
  if (t)
376
415
  return e[t];
377
- }, nt = (e, r) => !!pe(e, r), Ha = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
416
+ }, rt = (e, r) => !!pe(e, r), Wa = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
378
417
  (r) => e.indexOf(r) > -1
379
418
  ), Qr = class {
380
419
  constructor(e) {
381
420
  this.name = "", this.toString = () => `:${this.name}`, this.name = e;
382
421
  }
383
- }, Ma = class {
422
+ }, Ja = class {
384
423
  constructor(e) {
385
424
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
386
425
  }
387
- }, mo = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), go = (e) => e === void 0 ? !0 : mo(e) === "object" ? Object.keys(e).length === 0 : !1, Kr = (e) => (Object.keys(e).filter((r) => go(e[r])).forEach((r) => {
426
+ }, go = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), vo = (e) => e === void 0 ? !0 : go(e) === "object" ? Object.keys(e).length === 0 : !1, Kr = (e) => (Object.keys(e).filter((r) => vo(e[r])).forEach((r) => {
388
427
  delete e[r];
389
- }), e), Xe = (e, r) => {
428
+ }), e), Ye = (e, r) => {
390
429
  const t = " ".repeat(e);
391
430
  return r.replace(/\n/g, `
392
431
  ${t}`);
393
432
  }, vr = (e) => {
394
- switch (mo(e)) {
433
+ switch (go(e)) {
395
434
  case "string":
396
435
  return `"${e.replace(/"/g, '\\"')}"`;
397
436
  case "file":
@@ -404,20 +443,20 @@ ${t}`);
404
443
  return `#"${e.source}"`;
405
444
  case "object": {
406
445
  const r = Object.keys(e).reduce((t, o) => {
407
- const i = Xe(o.length + 2, vr(e[o]));
446
+ const i = Ye(o.length + 2, vr(e[o]));
408
447
  return `${t}:${o} ${i}
409
448
  `;
410
449
  }, "").trim();
411
- return `{${Xe(1, r)}}`;
450
+ return `{${Ye(1, r)}}`;
412
451
  }
413
452
  case "array": {
414
453
  const r = e.reduce((t, o) => `${t} ${vr(o)}`, "").trim();
415
- return `[${Xe(1, r)}]`;
454
+ return `[${Ye(1, r)}]`;
416
455
  }
417
456
  default:
418
457
  return e.toString();
419
458
  }
420
- }, za = {
459
+ }, Va = {
421
460
  info: {
422
461
  key: "clj_http",
423
462
  title: "clj-http",
@@ -425,9 +464,9 @@ ${t}`);
425
464
  description: "An idiomatic clojure http client wrapping the apache client.",
426
465
  extname: ".clj"
427
466
  },
428
- convert: ({ queryObj: e, method: r, postData: t, url: o, allHeaders: i }, l) => {
429
- const { push: n, join: a } = new V({ indent: l == null ? void 0 : l.indent }), s = ["get", "post", "put", "delete", "patch", "head", "options"];
430
- if (r = r.toLowerCase(), !s.includes(r))
467
+ convert: ({ queryObj: e, method: r, postData: t, url: o, allHeaders: i }, s) => {
468
+ const { push: n, join: a } = new V({ indent: s == null ? void 0 : s.indent }), l = ["get", "post", "put", "delete", "patch", "head", "options"];
469
+ if (r = r.toLowerCase(), !l.includes(r))
431
470
  return n("Method not supported"), a();
432
471
  const c = {
433
472
  headers: i,
@@ -459,7 +498,7 @@ ${t}`);
459
498
  if (t.params) {
460
499
  c.multipart = t.params.map((g) => g.fileName && !g.value ? {
461
500
  name: g.name,
462
- content: new Ma(g.fileName)
501
+ content: new Ja(g.fileName)
463
502
  } : {
464
503
  name: g.name,
465
504
  content: g.value
@@ -480,24 +519,24 @@ ${t}`);
480
519
  break;
481
520
  }
482
521
  if (n(`(require '[clj-http.client :as client])
483
- `), go(Kr(c)))
522
+ `), vo(Kr(c)))
484
523
  n(`(client/${r} "${o}")`);
485
524
  else {
486
- const f = 11 + r.length + o.length, g = Xe(f, vr(Kr(c)));
525
+ const f = 11 + r.length + o.length, g = Ye(f, vr(Kr(c)));
487
526
  n(`(client/${r} "${o}" ${g})`);
488
527
  }
489
528
  return a();
490
529
  }
491
- }, Ga = {
530
+ }, Da = {
492
531
  info: {
493
532
  key: "clojure",
494
533
  title: "Clojure",
495
534
  default: "clj_http"
496
535
  },
497
536
  clientsById: {
498
- clj_http: za
537
+ clj_http: Va
499
538
  }
500
- }, Wa = (e) => {
539
+ }, Qa = (e) => {
501
540
  let r = ve(e, "accept-encoding");
502
541
  if (!r)
503
542
  return [];
@@ -506,15 +545,15 @@ ${t}`);
506
545
  deflate: "DecompressionMethods.Deflate"
507
546
  }, o = [];
508
547
  return typeof r == "string" && (r = [r]), r.forEach((i) => {
509
- i.split(",").forEach((l) => {
510
- const n = /\s*([^;\s]+)/.exec(l);
548
+ i.split(",").forEach((s) => {
549
+ const n = /\s*([^;\s]+)/.exec(s);
511
550
  if (n) {
512
551
  const a = t[n[1]];
513
552
  a && o.push(a);
514
553
  }
515
554
  });
516
555
  }), o;
517
- }, Ja = {
556
+ }, Ka = {
518
557
  info: {
519
558
  key: "httpclient",
520
559
  title: "HttpClient",
@@ -524,14 +563,14 @@ ${t}`);
524
563
  },
525
564
  convert: ({ allHeaders: e, postData: r, method: t, fullUrl: o }, i) => {
526
565
  var m, j;
527
- const l = {
566
+ const s = {
528
567
  indent: " ",
529
568
  ...i
530
- }, { push: n, join: a } = new V({ indent: l.indent });
569
+ }, { push: n, join: a } = new V({ indent: s.indent });
531
570
  n("using System.Net.Http.Headers;");
532
- let s = "";
533
- const c = !!e.cookie, f = Wa(e);
534
- (c || f.length) && (s = "clientHandler", n("var clientHandler = new HttpClientHandler"), n("{"), c && n("UseCookies = false,", 1), f.length && n(`AutomaticDecompression = ${f.join(" | ")},`, 1), n("};")), n(`var client = new HttpClient(${s});`), n("var request = new HttpRequestMessage"), n("{");
571
+ let l = "";
572
+ const c = !!e.cookie, f = Qa(e);
573
+ (c || f.length) && (l = "clientHandler", n("var clientHandler = new HttpClientHandler"), n("{"), c && n("UseCookies = false,", 1), f.length && n(`AutomaticDecompression = ${f.join(" | ")},`, 1), n("};")), n(`var client = new HttpClient(${l});`), n("var request = new HttpRequestMessage"), n("{");
535
574
  const g = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
536
575
  t = t.toUpperCase(), t && g.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, n(`Method = ${t},`, 1), n(`RequestUri = new Uri("${o}"),`, 1);
537
576
  const b = Object.keys(e).filter((v) => {
@@ -567,10 +606,10 @@ ${t}`);
567
606
  return n("};"), n("using (var response = await client.SendAsync(request))"), n("{"), n("response.EnsureSuccessStatusCode();", 1), n("var body = await response.Content.ReadAsStringAsync();", 1), n("Console.WriteLine(body);", 1), n("}"), a();
568
607
  }
569
608
  };
570
- function Va(e) {
609
+ function Ya(e) {
571
610
  return e[0].toUpperCase() + e.slice(1).toLowerCase();
572
611
  }
573
- var Da = {
612
+ var Xa = {
574
613
  info: {
575
614
  key: "restsharp",
576
615
  title: "RestSharp",
@@ -579,7 +618,7 @@ var Da = {
579
618
  extname: ".cs",
580
619
  installation: "dotnet add package RestSharp"
581
620
  },
582
- convert: ({ method: e, fullUrl: r, headersObj: t, cookies: o, postData: i, uriObj: l }) => {
621
+ convert: ({ method: e, fullUrl: r, headersObj: t, cookies: o, postData: i, uriObj: s }) => {
583
622
  const { push: n, join: a } = new V();
584
623
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(
585
624
  e.toUpperCase()
@@ -596,7 +635,7 @@ var Da = {
596
635
  }
597
636
  n(`request.AddHeader("${f}", "${ce(t[f])}");`);
598
637
  }), o.forEach(({ name: f, value: g }) => {
599
- n(`request.AddCookie("${f}", "${ce(g)}", "${l.pathname}", "${l.host}");`);
638
+ n(`request.AddCookie("${f}", "${ce(g)}", "${s.pathname}", "${s.host}");`);
600
639
  }), i.mimeType) {
601
640
  case "multipart/form-data":
602
641
  if (!i.params) break;
@@ -620,11 +659,11 @@ var Da = {
620
659
  if (!i.text) break;
621
660
  n(`request.AddStringBody("${i.text}", "${i.mimeType}");`);
622
661
  }
623
- return n(`var response = await client.${Va(e)}Async(request);
662
+ return n(`var response = await client.${Ya(e)}Async(request);
624
663
  `), n(`Console.WriteLine("{0}", response.Content);
625
664
  `), a();
626
665
  }
627
- }, Qa = {
666
+ }, Za = {
628
667
  info: {
629
668
  key: "csharp",
630
669
  title: "C#",
@@ -632,10 +671,10 @@ var Da = {
632
671
  cli: "dotnet"
633
672
  },
634
673
  clientsById: {
635
- httpclient: Ja,
636
- restsharp: Da
674
+ httpclient: Ka,
675
+ restsharp: Xa
637
676
  }
638
- }, Ka = {
677
+ }, ei = {
639
678
  info: {
640
679
  key: "native",
641
680
  title: "NewRequest",
@@ -644,16 +683,16 @@ var Da = {
644
683
  extname: ".go"
645
684
  },
646
685
  convert: ({ postData: e, method: r, allHeaders: t, fullUrl: o }, i = {}) => {
647
- const { blank: l, push: n, join: a } = new V({ indent: " " }), { showBoilerplate: s = !0, checkErrors: c = !1, printBody: f = !0, timeout: g = -1 } = i, b = c ? "err" : "_", m = s ? 1 : 0, j = () => {
686
+ const { blank: s, push: n, join: a } = new V({ indent: " " }), { showBoilerplate: l = !0, checkErrors: c = !1, printBody: f = !0, timeout: g = -1 } = i, b = c ? "err" : "_", m = l ? 1 : 0, j = () => {
648
687
  c && (n("if err != nil {", m), n("panic(err)", m + 1), n("}", m));
649
688
  };
650
- s && (n("package main"), l(), n("import ("), n('"fmt"', m), g > 0 && n('"time"', m), e.text && n('"strings"', m), n('"net/http"', m), f && n('"io"', m), n(")"), l(), n("func main() {"), l());
689
+ l && (n("package main"), s(), n("import ("), n('"fmt"', m), g > 0 && n('"time"', m), e.text && n('"strings"', m), n('"net/http"', m), f && n('"io"', m), n(")"), s(), n("func main() {"), s());
651
690
  const v = g > 0, p = v, h = p ? "client" : "http.DefaultClient";
652
- return p && (n("client := http.Client{", m), v && n(`Timeout: time.Duration(${g} * time.Second),`, m + 1), n("}", m), l()), n(`url := "${o}"`, m), l(), e.text ? (n(`payload := strings.NewReader(${JSON.stringify(e.text)})`, m), l(), n(`req, ${b} := http.NewRequest("${r}", url, payload)`, m), l()) : (n(`req, ${b} := http.NewRequest("${r}", url, nil)`, m), l()), j(), Object.keys(t).length && (Object.keys(t).forEach((y) => {
691
+ return p && (n("client := http.Client{", m), v && n(`Timeout: time.Duration(${g} * time.Second),`, m + 1), n("}", m), s()), n(`url := "${o}"`, m), s(), e.text ? (n(`payload := strings.NewReader(${JSON.stringify(e.text)})`, m), s(), n(`req, ${b} := http.NewRequest("${r}", url, payload)`, m), s()) : (n(`req, ${b} := http.NewRequest("${r}", url, nil)`, m), s()), j(), Object.keys(t).length && (Object.keys(t).forEach((y) => {
653
692
  n(`req.Header.Add("${y}", "${ce(t[y])}")`, m);
654
- }), l()), n(`res, ${b} := ${h}.Do(req)`, m), j(), f && (l(), n("defer res.Body.Close()", m), n(`body, ${b} := io.ReadAll(res.Body)`, m), j()), l(), f && n("fmt.Println(string(body))", m), s && (l(), n("}")), a();
693
+ }), s()), n(`res, ${b} := ${h}.Do(req)`, m), j(), f && (s(), n("defer res.Body.Close()", m), n(`body, ${b} := io.ReadAll(res.Body)`, m), j()), s(), f && n("fmt.Println(string(body))", m), l && (s(), n("}")), a();
655
694
  }
656
- }, Ya = {
695
+ }, ti = {
657
696
  info: {
658
697
  key: "go",
659
698
  title: "Go",
@@ -661,10 +700,10 @@ var Da = {
661
700
  cli: "go"
662
701
  },
663
702
  clientsById: {
664
- native: Ka
703
+ native: ei
665
704
  }
666
705
  }, Yr = `\r
667
- `, Xa = {
706
+ `, ri = {
668
707
  info: {
669
708
  key: "http1.1",
670
709
  title: "HTTP/1.1",
@@ -672,36 +711,36 @@ var Da = {
672
711
  description: "HTTP/1.1 request string in accordance with RFC 7230",
673
712
  extname: null
674
713
  },
675
- convert: ({ method: e, fullUrl: r, uriObj: t, httpVersion: o, allHeaders: i, postData: l }, n) => {
714
+ convert: ({ method: e, fullUrl: r, uriObj: t, httpVersion: o, allHeaders: i, postData: s }, n) => {
676
715
  const a = {
677
716
  absoluteURI: !1,
678
717
  autoContentLength: !0,
679
718
  autoHost: !0,
680
719
  ...n
681
- }, { blank: s, push: c, join: f } = new V({ indent: "", join: Yr }), g = a.absoluteURI ? r : t.path;
720
+ }, { blank: l, push: c, join: f } = new V({ indent: "", join: Yr }), g = a.absoluteURI ? r : t.path;
682
721
  c(`${e} ${g} ${o}`);
683
722
  const b = Object.keys(i);
684
723
  if (b.forEach((v) => {
685
724
  const p = v.toLowerCase().replace(/(^|-)(\w)/g, (h) => h.toUpperCase());
686
725
  c(`${p}: ${i[v]}`);
687
- }), a.autoHost && !b.includes("host") && c(`Host: ${t.host}`), a.autoContentLength && l.text && !b.includes("content-length")) {
688
- const p = new TextEncoder().encode(l.text).length.toString();
726
+ }), a.autoHost && !b.includes("host") && c(`Host: ${t.host}`), a.autoContentLength && s.text && !b.includes("content-length")) {
727
+ const p = new TextEncoder().encode(s.text).length.toString();
689
728
  c(`Content-Length: ${p}`);
690
729
  }
691
- s();
692
- const m = f(), j = l.text || "";
730
+ l();
731
+ const m = f(), j = s.text || "";
693
732
  return `${m}${Yr}${j}`;
694
733
  }
695
- }, Za = {
734
+ }, ni = {
696
735
  info: {
697
736
  key: "http",
698
737
  title: "HTTP",
699
738
  default: "http1.1"
700
739
  },
701
740
  clientsById: {
702
- "http1.1": Xa
741
+ "http1.1": ri
703
742
  }
704
- }, ei = {
743
+ }, oi = {
705
744
  info: {
706
745
  key: "asynchttp",
707
746
  title: "AsyncHttp",
@@ -710,15 +749,15 @@ var Da = {
710
749
  extname: ".java"
711
750
  },
712
751
  convert: ({ method: e, allHeaders: r, postData: t, fullUrl: o }, i) => {
713
- const l = {
752
+ const s = {
714
753
  indent: " ",
715
754
  ...i
716
- }, { blank: n, push: a, join: s } = new V({ indent: l.indent });
755
+ }, { blank: n, push: a, join: l } = new V({ indent: s.indent });
717
756
  return a("AsyncHttpClient client = new DefaultAsyncHttpClient();"), a(`client.prepare("${e.toUpperCase()}", "${o}")`), Object.keys(r).forEach((c) => {
718
757
  a(`.setHeader("${c}", "${ce(r[c])}")`, 1);
719
- }), t.text && a(`.setBody(${JSON.stringify(t.text)})`, 1), a(".execute()", 1), a(".toCompletableFuture()", 1), a(".thenAccept(System.out::println)", 1), a(".join();", 1), n(), a("client.close();"), s();
758
+ }), t.text && a(`.setBody(${JSON.stringify(t.text)})`, 1), a(".execute()", 1), a(".toCompletableFuture()", 1), a(".thenAccept(System.out::println)", 1), a(".join();", 1), n(), a("client.close();"), l();
720
759
  }
721
- }, ti = {
760
+ }, ai = {
722
761
  info: {
723
762
  key: "nethttp",
724
763
  title: "java.net.http",
@@ -727,12 +766,12 @@ var Da = {
727
766
  extname: ".java"
728
767
  },
729
768
  convert: ({ allHeaders: e, fullUrl: r, method: t, postData: o }, i) => {
730
- const l = {
769
+ const s = {
731
770
  indent: " ",
732
771
  ...i
733
- }, { push: n, join: a } = new V({ indent: l.indent });
734
- return n("HttpRequest request = HttpRequest.newBuilder()"), n(`.uri(URI.create("${r}"))`, 2), Object.keys(e).forEach((s) => {
735
- n(`.header("${s}", "${ce(e[s])}")`, 2);
772
+ }, { push: n, join: a } = new V({ indent: s.indent });
773
+ return n("HttpRequest request = HttpRequest.newBuilder()"), n(`.uri(URI.create("${r}"))`, 2), Object.keys(e).forEach((l) => {
774
+ n(`.header("${l}", "${ce(e[l])}")`, 2);
736
775
  }), o.text ? n(
737
776
  `.method("${t.toUpperCase()}", HttpRequest.BodyPublishers.ofString(${JSON.stringify(o.text)}))`,
738
777
  2
@@ -740,7 +779,7 @@ var Da = {
740
779
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
741
780
  ), n("System.out.println(response.body());"), a();
742
781
  }
743
- }, ri = {
782
+ }, ii = {
744
783
  info: {
745
784
  key: "okhttp",
746
785
  title: "OkHttp",
@@ -749,15 +788,15 @@ var Da = {
749
788
  extname: ".java"
750
789
  },
751
790
  convert: ({ postData: e, method: r, fullUrl: t, allHeaders: o }, i) => {
752
- const l = {
791
+ const s = {
753
792
  indent: " ",
754
793
  ...i
755
- }, { push: n, blank: a, join: s } = new V({ indent: l.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], f = ["POST", "PUT", "DELETE", "PATCH"];
794
+ }, { push: n, blank: a, join: l } = new V({ indent: s.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], f = ["POST", "PUT", "DELETE", "PATCH"];
756
795
  return n("OkHttpClient client = new OkHttpClient();"), a(), e.text && (e.boundary ? n(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : n(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), n(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), n("Request request = new Request.Builder()"), n(`.url("${t}")`, 1), c.includes(r.toUpperCase()) ? f.includes(r.toUpperCase()) ? e.text ? n(`.${r.toLowerCase()}(body)`, 1) : n(`.${r.toLowerCase()}(null)`, 1) : n(`.${r.toLowerCase()}()`, 1) : e.text ? n(`.method("${r.toUpperCase()}", body)`, 1) : n(`.method("${r.toUpperCase()}", null)`, 1), Object.keys(o).forEach((g) => {
757
796
  n(`.addHeader("${g}", "${ce(o[g])}")`, 1);
758
- }), n(".build();", 1), a(), n("Response response = client.newCall(request).execute();"), s();
797
+ }), n(".build();", 1), a(), n("Response response = client.newCall(request).execute();"), l();
759
798
  }
760
- }, ni = {
799
+ }, si = {
761
800
  info: {
762
801
  key: "unirest",
763
802
  title: "Unirest",
@@ -766,27 +805,27 @@ var Da = {
766
805
  extname: ".java"
767
806
  },
768
807
  convert: ({ method: e, allHeaders: r, postData: t, fullUrl: o }, i) => {
769
- const l = {
808
+ const s = {
770
809
  indent: " ",
771
810
  ...i
772
- }, { join: n, push: a } = new V({ indent: l.indent });
811
+ }, { join: n, push: a } = new V({ indent: s.indent });
773
812
  return ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(e.toUpperCase()) ? a(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${o}")`) : a(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${o}")`), Object.keys(r).forEach((c) => {
774
813
  a(`.header("${c}", "${ce(r[c])}")`, 1);
775
814
  }), t.text && a(`.body(${JSON.stringify(t.text)})`, 1), a(".asString();", 1), n();
776
815
  }
777
- }, oi = {
816
+ }, li = {
778
817
  info: {
779
818
  key: "java",
780
819
  title: "Java",
781
820
  default: "unirest"
782
821
  },
783
822
  clientsById: {
784
- asynchttp: ei,
785
- nethttp: ti,
786
- okhttp: ri,
787
- unirest: ni
823
+ asynchttp: oi,
824
+ nethttp: ai,
825
+ okhttp: ii,
826
+ unirest: si
788
827
  }
789
- }, ai = {
828
+ }, ci = {
790
829
  info: {
791
830
  key: "axios",
792
831
  title: "Axios",
@@ -795,20 +834,20 @@ var Da = {
795
834
  extname: ".js",
796
835
  installation: "npm install axios --save"
797
836
  },
798
- convert: ({ allHeaders: e, method: r, url: t, queryObj: o, postData: i }, l) => {
837
+ convert: ({ allHeaders: e, method: r, url: t, queryObj: o, postData: i }, s) => {
799
838
  const n = {
800
839
  indent: " ",
801
- ...l
802
- }, { blank: a, push: s, join: c, addPostProcessor: f } = new V({ indent: n.indent });
803
- s("import axios from 'axios';"), a();
840
+ ...s
841
+ }, { blank: a, push: l, join: c, addPostProcessor: f } = new V({ indent: n.indent });
842
+ l("import axios from 'axios';"), a();
804
843
  const g = {
805
844
  method: r,
806
845
  url: t
807
846
  };
808
847
  switch (Object.keys(o).length && (g.params = o), Object.keys(e).length && (g.headers = e), i.mimeType) {
809
848
  case "application/x-www-form-urlencoded":
810
- i.params && (s("const encodedParams = new URLSearchParams();"), i.params.forEach((m) => {
811
- s(`encodedParams.set('${m.name}', '${m.value}');`);
849
+ i.params && (l("const encodedParams = new URLSearchParams();"), i.params.forEach((m) => {
850
+ l(`encodedParams.set('${m.name}', '${m.value}');`);
812
851
  }), a(), g.data = "encodedParams,", f((m) => m.replace(/'encodedParams,'/, "encodedParams,")));
813
852
  break;
814
853
  case "application/json":
@@ -817,8 +856,8 @@ var Da = {
817
856
  case "multipart/form-data":
818
857
  if (!i.params)
819
858
  break;
820
- s("const form = new FormData();"), i.params.forEach((m) => {
821
- s(`form.append('${m.name}', '${m.value || m.fileName || ""}');`);
859
+ l("const form = new FormData();"), i.params.forEach((m) => {
860
+ l(`form.append('${m.name}', '${m.value || m.fileName || ""}');`);
822
861
  }), a(), g.data = "[form]";
823
862
  break;
824
863
  default:
@@ -828,9 +867,9 @@ var Da = {
828
867
  indent: " ",
829
868
  inlineCharacterLimit: 80
830
869
  }).replace('"[form]"', "form");
831
- return s(`const options = ${b};`), a(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), c();
870
+ return l(`const options = ${b};`), a(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), c();
832
871
  }
833
- }, ii = {
872
+ }, ui = {
834
873
  info: {
835
874
  key: "fetch",
836
875
  title: "fetch",
@@ -839,14 +878,14 @@ var Da = {
839
878
  extname: ".js"
840
879
  },
841
880
  convert: ({ method: e, allHeaders: r, postData: t, fullUrl: o }, i) => {
842
- const l = {
881
+ const s = {
843
882
  indent: " ",
844
883
  credentials: null,
845
884
  ...i
846
- }, { blank: n, join: a, push: s } = new V({ indent: l.indent }), c = {
885
+ }, { blank: n, join: a, push: l } = new V({ indent: s.indent }), c = {
847
886
  method: e
848
887
  };
849
- switch (Object.keys(r).length && (c.headers = r), l.credentials !== null && (c.credentials = l.credentials), t.mimeType) {
888
+ switch (Object.keys(r).length && (c.headers = r), s.credentials !== null && (c.credentials = s.credentials), t.mimeType) {
850
889
  case "application/x-www-form-urlencoded":
851
890
  c.body = t.paramsObj ? t.paramsObj : t.text;
852
891
  break;
@@ -857,16 +896,16 @@ var Da = {
857
896
  if (!t.params)
858
897
  break;
859
898
  const f = pe(r, "content-type");
860
- f && delete r[f], s("const form = new FormData();"), t.params.forEach((g) => {
861
- s(`form.append('${g.name}', '${g.value || g.fileName || ""}');`);
899
+ f && delete r[f], l("const form = new FormData();"), t.params.forEach((g) => {
900
+ l(`form.append('${g.name}', '${g.value || g.fileName || ""}');`);
862
901
  }), n();
863
902
  break;
864
903
  default:
865
904
  t.text && (c.body = t.text);
866
905
  }
867
- return c.headers && !Object.keys(c.headers).length && delete c.headers, s(
906
+ return c.headers && !Object.keys(c.headers).length && delete c.headers, l(
868
907
  `const options = ${fe(c, {
869
- indent: l.indent,
908
+ indent: s.indent,
870
909
  inlineCharacterLimit: 80,
871
910
  // The Fetch API body only accepts string parameters, but stringified JSON can be difficult
872
911
  // to read, so we keep the object as a literal and use this transform function to wrap the
@@ -881,9 +920,9 @@ var Da = {
881
920
  return b;
882
921
  }
883
922
  })};`
884
- ), n(), t.params && t.mimeType === "multipart/form-data" && (s("options.body = form;"), n()), s(`fetch('${o}', options)`), s(".then(response => response.json())", 1), s(".then(response => console.log(response))", 1), s(".catch(err => console.error(err));", 1), a();
923
+ ), n(), t.params && t.mimeType === "multipart/form-data" && (l("options.body = form;"), n()), l(`fetch('${o}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), a();
885
924
  }
886
- }, si = {
925
+ }, fi = {
887
926
  info: {
888
927
  key: "jquery",
889
928
  title: "jQuery",
@@ -893,10 +932,10 @@ var Da = {
893
932
  },
894
933
  convert: ({ fullUrl: e, method: r, allHeaders: t, postData: o }, i) => {
895
934
  var g;
896
- const l = {
935
+ const s = {
897
936
  indent: " ",
898
937
  ...i
899
- }, { blank: n, push: a, join: s } = new V({ indent: l.indent }), c = {
938
+ }, { blank: n, push: a, join: l } = new V({ indent: s.indent }), c = {
900
939
  async: !0,
901
940
  crossDomain: !0,
902
941
  url: e,
@@ -915,7 +954,7 @@ var Da = {
915
954
  break;
916
955
  if (a("const form = new FormData();"), o.params.forEach((b) => {
917
956
  a(`form.append('${b.name}', '${b.value || b.fileName || ""}');`);
918
- }), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]", nt(t, "content-type") && (g = ve(t, "content-type")) != null && g.includes("boundary")) {
957
+ }), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]", rt(t, "content-type") && (g = ve(t, "content-type")) != null && g.includes("boundary")) {
919
958
  const b = pe(t, "content-type");
920
959
  b && delete c.headers[b];
921
960
  }
@@ -924,10 +963,10 @@ var Da = {
924
963
  default:
925
964
  o.text && (c.data = o.text);
926
965
  }
927
- const f = fe(c, { indent: l.indent }).replace("'[form]'", "form");
928
- return a(`const settings = ${f};`), n(), a("$.ajax(settings).done(function (response) {"), a("console.log(response);", 1), a("});"), s();
966
+ const f = fe(c, { indent: s.indent }).replace("'[form]'", "form");
967
+ return a(`const settings = ${f};`), n(), a("$.ajax(settings).done(function (response) {"), a("console.log(response);", 1), a("});"), l();
929
968
  }
930
- }, li = {
969
+ }, pi = {
931
970
  info: {
932
971
  key: "xhr",
933
972
  title: "XMLHttpRequest",
@@ -937,16 +976,16 @@ var Da = {
937
976
  },
938
977
  convert: ({ postData: e, allHeaders: r, method: t, fullUrl: o }, i) => {
939
978
  var c;
940
- const l = {
979
+ const s = {
941
980
  indent: " ",
942
981
  cors: !0,
943
982
  ...i
944
- }, { blank: n, push: a, join: s } = new V({ indent: l.indent });
983
+ }, { blank: n, push: a, join: l } = new V({ indent: s.indent });
945
984
  switch (e.mimeType) {
946
985
  case "application/json":
947
986
  a(
948
987
  `const data = JSON.stringify(${fe(e.jsonObj, {
949
- indent: l.indent
988
+ indent: s.indent
950
989
  })});`
951
990
  ), n();
952
991
  break;
@@ -955,7 +994,7 @@ var Da = {
955
994
  break;
956
995
  if (a("const data = new FormData();"), e.params.forEach((f) => {
957
996
  a(`data.append('${f.name}', '${f.value || f.fileName || ""}');`);
958
- }), nt(r, "content-type") && (c = ve(r, "content-type")) != null && c.includes("boundary")) {
997
+ }), rt(r, "content-type") && (c = ve(r, "content-type")) != null && c.includes("boundary")) {
959
998
  const f = pe(r, "content-type");
960
999
  f && delete r[f];
961
1000
  }
@@ -964,23 +1003,23 @@ var Da = {
964
1003
  default:
965
1004
  a(`const data = ${e.text ? `'${e.text}'` : "null"};`), n();
966
1005
  }
967
- return a("const xhr = new XMLHttpRequest();"), l.cors && a("xhr.withCredentials = true;"), n(), a("xhr.addEventListener('readystatechange', function () {"), a("if (this.readyState === this.DONE) {", 1), a("console.log(this.responseText);", 2), a("}", 1), a("});"), n(), a(`xhr.open('${t}', '${o}');`), Object.keys(r).forEach((f) => {
968
- a(`xhr.setRequestHeader('${f}', '${ze(r[f])}');`);
969
- }), n(), a("xhr.send(data);"), s();
1006
+ return a("const xhr = new XMLHttpRequest();"), s.cors && a("xhr.withCredentials = true;"), n(), a("xhr.addEventListener('readystatechange', function () {"), a("if (this.readyState === this.DONE) {", 1), a("console.log(this.responseText);", 2), a("}", 1), a("});"), n(), a(`xhr.open('${t}', '${o}');`), Object.keys(r).forEach((f) => {
1007
+ a(`xhr.setRequestHeader('${f}', '${Me(r[f])}');`);
1008
+ }), n(), a("xhr.send(data);"), l();
970
1009
  }
971
- }, ci = {
1010
+ }, di = {
972
1011
  info: {
973
1012
  key: "javascript",
974
1013
  title: "JavaScript",
975
1014
  default: "xhr"
976
1015
  },
977
1016
  clientsById: {
978
- xhr: li,
979
- axios: ai,
980
- fetch: ii,
981
- jquery: si
1017
+ xhr: pi,
1018
+ axios: ci,
1019
+ fetch: ui,
1020
+ jquery: fi
982
1021
  }
983
- }, ui = {
1022
+ }, hi = {
984
1023
  info: {
985
1024
  key: "native",
986
1025
  title: "Native JSON",
@@ -1005,8 +1044,8 @@ var Da = {
1005
1044
  if (!e.params)
1006
1045
  break;
1007
1046
  const i = {};
1008
- e.params.forEach((l) => {
1009
- i[l.name] = l.value;
1047
+ e.params.forEach((s) => {
1048
+ i[s.name] = s.value;
1010
1049
  }), o = i;
1011
1050
  break;
1012
1051
  default:
@@ -1014,16 +1053,16 @@ var Da = {
1014
1053
  }
1015
1054
  return typeof o > "u" || o === "" ? "No JSON body" : JSON.stringify(o, null, t.indent);
1016
1055
  }
1017
- }, fi = {
1056
+ }, yi = {
1018
1057
  info: {
1019
1058
  key: "json",
1020
1059
  title: "JSON",
1021
1060
  default: "native"
1022
1061
  },
1023
1062
  clientsById: {
1024
- native: ui
1063
+ native: hi
1025
1064
  }
1026
- }, pi = {
1065
+ }, mi = {
1027
1066
  info: {
1028
1067
  key: "okhttp",
1029
1068
  title: "OkHttp",
@@ -1032,24 +1071,24 @@ var Da = {
1032
1071
  extname: ".kt"
1033
1072
  },
1034
1073
  convert: ({ postData: e, fullUrl: r, method: t, allHeaders: o }, i) => {
1035
- const l = {
1074
+ const s = {
1036
1075
  indent: " ",
1037
1076
  ...i
1038
- }, { blank: n, join: a, push: s } = new V({ indent: l.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], f = ["POST", "PUT", "DELETE", "PATCH"];
1039
- return s("val client = OkHttpClient()"), n(), e.text && (e.boundary ? s(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : s(`val mediaType = MediaType.parse("${e.mimeType}")`), s(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), s("val request = Request.Builder()"), s(`.url("${r}")`, 1), c.includes(t.toUpperCase()) ? f.includes(t.toUpperCase()) ? e.text ? s(`.${t.toLowerCase()}(body)`, 1) : s(`.${t.toLowerCase()}(null)`, 1) : s(`.${t.toLowerCase()}()`, 1) : e.text ? s(`.method("${t.toUpperCase()}", body)`, 1) : s(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(o).forEach((g) => {
1040
- s(`.addHeader("${g}", "${ce(o[g])}")`, 1);
1041
- }), s(".build()", 1), n(), s("val response = client.newCall(request).execute()"), a();
1077
+ }, { blank: n, join: a, push: l } = new V({ indent: s.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], f = ["POST", "PUT", "DELETE", "PATCH"];
1078
+ return l("val client = OkHttpClient()"), n(), e.text && (e.boundary ? l(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : l(`val mediaType = MediaType.parse("${e.mimeType}")`), l(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), l("val request = Request.Builder()"), l(`.url("${r}")`, 1), c.includes(t.toUpperCase()) ? f.includes(t.toUpperCase()) ? e.text ? l(`.${t.toLowerCase()}(body)`, 1) : l(`.${t.toLowerCase()}(null)`, 1) : l(`.${t.toLowerCase()}()`, 1) : e.text ? l(`.method("${t.toUpperCase()}", body)`, 1) : l(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(o).forEach((g) => {
1079
+ l(`.addHeader("${g}", "${ce(o[g])}")`, 1);
1080
+ }), l(".build()", 1), n(), l("val response = client.newCall(request).execute()"), a();
1042
1081
  }
1043
- }, di = {
1082
+ }, gi = {
1044
1083
  info: {
1045
1084
  key: "kotlin",
1046
1085
  title: "Kotlin",
1047
1086
  default: "okhttp"
1048
1087
  },
1049
1088
  clientsById: {
1050
- okhttp: pi
1089
+ okhttp: mi
1051
1090
  }
1052
- }, hi = {
1091
+ }, vi = {
1053
1092
  info: {
1054
1093
  key: "axios",
1055
1094
  title: "Axios",
@@ -1059,19 +1098,19 @@ var Da = {
1059
1098
  installation: "npm install axios --save"
1060
1099
  },
1061
1100
  convert: ({ method: e, fullUrl: r, allHeaders: t, postData: o }, i) => {
1062
- const l = {
1101
+ const s = {
1063
1102
  indent: " ",
1064
1103
  ...i
1065
- }, { blank: n, join: a, push: s, addPostProcessor: c } = new V({ indent: l.indent });
1066
- s("const axios = require('axios');");
1104
+ }, { blank: n, join: a, push: l, addPostProcessor: c } = new V({ indent: s.indent });
1105
+ l("const axios = require('axios');");
1067
1106
  const f = {
1068
1107
  method: e,
1069
1108
  url: r
1070
1109
  };
1071
1110
  switch (Object.keys(t).length && (f.headers = t), o.mimeType) {
1072
1111
  case "application/x-www-form-urlencoded":
1073
- o.params && (s("const { URLSearchParams } = require('url');"), n(), s("const encodedParams = new URLSearchParams();"), o.params.forEach((b) => {
1074
- s(`encodedParams.set('${b.name}', '${b.value}');`);
1112
+ o.params && (l("const { URLSearchParams } = require('url');"), n(), l("const encodedParams = new URLSearchParams();"), o.params.forEach((b) => {
1113
+ l(`encodedParams.set('${b.name}', '${b.value}');`);
1075
1114
  }), n(), f.data = "encodedParams,", c((b) => b.replace(/'encodedParams,'/, "encodedParams,")));
1076
1115
  break;
1077
1116
  case "application/json":
@@ -1081,9 +1120,9 @@ var Da = {
1081
1120
  n(), o.text && (f.data = o.text);
1082
1121
  }
1083
1122
  const g = fe(f, { indent: " ", inlineCharacterLimit: 80 });
1084
- return s(`const options = ${g};`), n(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), a();
1123
+ return l(`const options = ${g};`), n(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), a();
1085
1124
  }
1086
- }, yi = {
1125
+ }, bi = {
1087
1126
  info: {
1088
1127
  key: "fetch",
1089
1128
  title: "Fetch",
@@ -1092,21 +1131,21 @@ var Da = {
1092
1131
  extname: ".cjs",
1093
1132
  installation: "npm install node-fetch@2 --save"
1094
1133
  },
1095
- convert: ({ method: e, fullUrl: r, postData: t, headersObj: o, cookies: i }, l) => {
1134
+ convert: ({ method: e, fullUrl: r, postData: t, headersObj: o, cookies: i }, s) => {
1096
1135
  var v;
1097
1136
  const n = {
1098
1137
  indent: " ",
1099
- ...l
1138
+ ...s
1100
1139
  };
1101
1140
  let a = !1;
1102
- const { blank: s, push: c, join: f, unshift: g } = new V({ indent: n.indent });
1141
+ const { blank: l, push: c, join: f, unshift: g } = new V({ indent: n.indent });
1103
1142
  c("const fetch = require('node-fetch');");
1104
1143
  const b = r, m = {
1105
1144
  method: e
1106
1145
  };
1107
1146
  switch (Object.keys(o).length && (m.headers = o), t.mimeType) {
1108
1147
  case "application/x-www-form-urlencoded":
1109
- g("const { URLSearchParams } = require('url');"), c("const encodedParams = new URLSearchParams();"), s(), (v = t.params) == null || v.forEach((h) => {
1148
+ g("const { URLSearchParams } = require('url');"), c("const encodedParams = new URLSearchParams();"), l(), (v = t.params) == null || v.forEach((h) => {
1110
1149
  c(`encodedParams.set('${h.name}', '${h.value}');`);
1111
1150
  }), m.body = "encodedParams";
1112
1151
  break;
@@ -1117,7 +1156,7 @@ var Da = {
1117
1156
  if (!t.params)
1118
1157
  break;
1119
1158
  const p = pe(o, "content-type");
1120
- p && delete o[p], g("const FormData = require('form-data');"), c("const formData = new FormData();"), s(), t.params.forEach((h) => {
1159
+ p && delete o[p], g("const FormData = require('form-data');"), c("const formData = new FormData();"), l(), t.params.forEach((h) => {
1121
1160
  if (!h.fileName && !h.fileName && !h.contentType) {
1122
1161
  c(`formData.append('${h.name}', '${h.value}');`);
1123
1162
  return;
@@ -1132,7 +1171,7 @@ var Da = {
1132
1171
  const p = i.map(({ name: h, value: y }) => `${encodeURIComponent(h)}=${encodeURIComponent(y)}`).join("; ");
1133
1172
  m.headers || (m.headers = {}), m.headers.cookie = p;
1134
1173
  }
1135
- s(), c(`const url = '${b}';`), m.headers && !Object.keys(m.headers).length && delete m.headers;
1174
+ l(), c(`const url = '${b}';`), m.headers && !Object.keys(m.headers).length && delete m.headers;
1136
1175
  const j = fe(m, {
1137
1176
  indent: " ",
1138
1177
  inlineCharacterLimit: 80,
@@ -1141,9 +1180,9 @@ var Da = {
1141
1180
  // in a `JSON.stringify` call.
1142
1181
  transform: (p, h, y) => h === "body" && t.mimeType === "application/json" ? `JSON.stringify(${y})` : y
1143
1182
  });
1144
- return c(`const options = ${j};`), s(), a && g("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (c("options.body = formData;"), s()), 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), f().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1183
+ return c(`const options = ${j};`), l(), a && g("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (c("options.body = formData;"), l()), 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), f().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1145
1184
  }
1146
- }, mi = {
1185
+ }, xi = {
1147
1186
  info: {
1148
1187
  key: "native",
1149
1188
  title: "HTTP",
@@ -1153,16 +1192,16 @@ var Da = {
1153
1192
  },
1154
1193
  convert: ({ uriObj: e, method: r, allHeaders: t, postData: o }, i = {}) => {
1155
1194
  var g;
1156
- const { indent: l = " " } = i, { blank: n, join: a, push: s, unshift: c } = new V({ indent: l }), f = {
1195
+ const { indent: s = " " } = i, { blank: n, join: a, push: l, unshift: c } = new V({ indent: s }), f = {
1157
1196
  method: r,
1158
1197
  hostname: e.hostname,
1159
1198
  port: e.port,
1160
1199
  path: e.path,
1161
1200
  headers: t
1162
1201
  };
1163
- switch (s(`const http = require('${(g = e.protocol) == null ? void 0 : g.replace(":", "")}');`), n(), s(`const options = ${fe(f, { indent: l })};`), n(), s("const req = http.request(options, function (res) {"), s("const chunks = [];", 1), n(), s("res.on('data', function (chunk) {", 1), s("chunks.push(chunk);", 2), s("});", 1), n(), s("res.on('end', function () {", 1), s("const body = Buffer.concat(chunks);", 2), s("console.log(body.toString());", 2), s("});", 1), s("});"), n(), o.mimeType) {
1202
+ switch (l(`const http = require('${(g = e.protocol) == null ? void 0 : g.replace(":", "")}');`), n(), l(`const options = ${fe(f, { indent: s })};`), n(), l("const req = http.request(options, function (res) {"), l("const chunks = [];", 1), n(), l("res.on('data', function (chunk) {", 1), l("chunks.push(chunk);", 2), l("});", 1), n(), l("res.on('end', function () {", 1), l("const body = Buffer.concat(chunks);", 2), l("console.log(body.toString());", 2), l("});", 1), l("});"), n(), o.mimeType) {
1164
1203
  case "application/x-www-form-urlencoded":
1165
- o.paramsObj && (c("const qs = require('querystring');"), s(
1204
+ o.paramsObj && (c("const qs = require('querystring');"), l(
1166
1205
  `req.write(qs.stringify(${fe(o.paramsObj, {
1167
1206
  indent: " ",
1168
1207
  inlineCharacterLimit: 80
@@ -1170,7 +1209,7 @@ var Da = {
1170
1209
  ));
1171
1210
  break;
1172
1211
  case "application/json":
1173
- o.jsonObj && s(
1212
+ o.jsonObj && l(
1174
1213
  `req.write(JSON.stringify(${fe(o.jsonObj, {
1175
1214
  indent: " ",
1176
1215
  inlineCharacterLimit: 80
@@ -1178,11 +1217,11 @@ var Da = {
1178
1217
  );
1179
1218
  break;
1180
1219
  default:
1181
- o.text && s(`req.write(${fe(o.text, { indent: l })});`);
1220
+ o.text && l(`req.write(${fe(o.text, { indent: s })});`);
1182
1221
  }
1183
- return s("req.end();"), a();
1222
+ return l("req.end();"), a();
1184
1223
  }
1185
- }, gi = {
1224
+ }, ji = {
1186
1225
  info: {
1187
1226
  key: "request",
1188
1227
  title: "Request",
@@ -1191,12 +1230,12 @@ var Da = {
1191
1230
  extname: ".cjs",
1192
1231
  installation: "npm install request --save"
1193
1232
  },
1194
- convert: ({ method: e, url: r, fullUrl: t, postData: o, headersObj: i, cookies: l }, n) => {
1233
+ convert: ({ method: e, url: r, fullUrl: t, postData: o, headersObj: i, cookies: s }, n) => {
1195
1234
  const a = {
1196
1235
  indent: " ",
1197
1236
  ...n
1198
1237
  };
1199
- let s = !1;
1238
+ let l = !1;
1200
1239
  const { push: c, blank: f, join: g, unshift: b, addPostProcessor: m } = new V({ indent: a.indent });
1201
1240
  c("const request = require('request');"), f();
1202
1241
  const j = {
@@ -1219,7 +1258,7 @@ var Da = {
1219
1258
  return;
1220
1259
  }
1221
1260
  let p = {};
1222
- v.fileName ? (s = !0, p = {
1261
+ v.fileName ? (l = !0, p = {
1223
1262
  value: `fs.createReadStream(${v.fileName})`,
1224
1263
  options: {
1225
1264
  filename: v.fileName,
@@ -1231,11 +1270,11 @@ var Da = {
1231
1270
  default:
1232
1271
  o.text && (j.body = o.text);
1233
1272
  }
1234
- return l.length && (j.jar = "JAR", c("const jar = request.jar();"), l.forEach(({ name: v, value: p }) => {
1273
+ return s.length && (j.jar = "JAR", c("const jar = request.jar();"), s.forEach(({ name: v, value: p }) => {
1235
1274
  c(`jar.setCookie(request.cookie('${encodeURIComponent(v)}=${encodeURIComponent(p)}'), '${r}');`);
1236
- }), f(), m((v) => v.replace(/'JAR'/, "jar"))), s && b("const fs = require('fs');"), c(`const options = ${fe(j, { indent: " ", inlineCharacterLimit: 80 })};`), f(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), f(), c("console.log(body);", 1), c("});"), g();
1275
+ }), f(), m((v) => v.replace(/'JAR'/, "jar"))), l && b("const fs = require('fs');"), c(`const options = ${fe(j, { indent: " ", inlineCharacterLimit: 80 })};`), f(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), f(), c("console.log(body);", 1), c("});"), g();
1237
1276
  }
1238
- }, vi = {
1277
+ }, $i = {
1239
1278
  info: {
1240
1279
  key: "unirest",
1241
1280
  title: "Unirest",
@@ -1243,18 +1282,18 @@ var Da = {
1243
1282
  description: "Lightweight HTTP Request Client Library",
1244
1283
  extname: ".cjs"
1245
1284
  },
1246
- convert: ({ method: e, url: r, cookies: t, queryObj: o, postData: i, headersObj: l }, n) => {
1285
+ convert: ({ method: e, url: r, cookies: t, queryObj: o, postData: i, headersObj: s }, n) => {
1247
1286
  const a = {
1248
1287
  indent: " ",
1249
1288
  ...n
1250
1289
  };
1251
- let s = !1;
1290
+ let l = !1;
1252
1291
  const { addPostProcessor: c, blank: f, join: g, push: b, unshift: m } = new V({
1253
1292
  indent: a.indent
1254
1293
  });
1255
1294
  switch (b("const unirest = require('unirest');"), f(), b(`const req = unirest('${e}', '${r}');`), f(), t.length && (b("const CookieJar = unirest.jar();"), t.forEach((j) => {
1256
1295
  b(`CookieJar.add('${encodeURIComponent(j.name)}=${encodeURIComponent(j.value)}', '${r}');`);
1257
- }), b("req.jar(CookieJar);"), f()), Object.keys(o).length && (b(`req.query(${fe(o, { indent: a.indent })});`), f()), Object.keys(l).length && (b(`req.headers(${fe(l, { indent: a.indent })});`), f()), i.mimeType) {
1296
+ }), b("req.jar(CookieJar);"), f()), Object.keys(o).length && (b(`req.query(${fe(o, { indent: a.indent })});`), f()), Object.keys(s).length && (b(`req.headers(${fe(s, { indent: a.indent })});`), f()), i.mimeType) {
1258
1297
  case "application/x-www-form-urlencoded":
1259
1298
  i.paramsObj && (b(`req.form(${fe(i.paramsObj, { indent: a.indent })});`), f());
1260
1299
  break;
@@ -1267,16 +1306,16 @@ var Da = {
1267
1306
  const j = [];
1268
1307
  i.params.forEach((v) => {
1269
1308
  const p = {};
1270
- v.fileName && !v.value ? (s = !0, p.body = `fs.createReadStream('${v.fileName}')`, c((h) => h.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : v.value && (p.body = v.value), p.body && (v.contentType && (p["content-type"] = v.contentType), j.push(p));
1309
+ v.fileName && !v.value ? (l = !0, p.body = `fs.createReadStream('${v.fileName}')`, c((h) => h.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : v.value && (p.body = v.value), p.body && (v.contentType && (p["content-type"] = v.contentType), j.push(p));
1271
1310
  }), b(`req.multipart(${fe(j, { indent: a.indent })});`), f();
1272
1311
  break;
1273
1312
  }
1274
1313
  default:
1275
1314
  i.text && (b(`req.send(${fe(i.text, { indent: a.indent })});`), f());
1276
1315
  }
1277
- return s && m("const fs = require('fs');"), b("req.end(function (res) {"), b("if (res.error) throw new Error(res.error);", 1), f(), b("console.log(res.body);", 1), b("});"), g();
1316
+ return l && m("const fs = require('fs');"), b("req.end(function (res) {"), b("if (res.error) throw new Error(res.error);", 1), f(), b("console.log(res.body);", 1), b("});"), g();
1278
1317
  }
1279
- }, bi = {
1318
+ }, wi = {
1280
1319
  info: {
1281
1320
  key: "node",
1282
1321
  title: "Node.js",
@@ -1284,15 +1323,15 @@ var Da = {
1284
1323
  cli: "node %s"
1285
1324
  },
1286
1325
  clientsById: {
1287
- native: mi,
1288
- request: gi,
1289
- unirest: vi,
1290
- axios: hi,
1291
- fetch: yi
1326
+ native: xi,
1327
+ request: ji,
1328
+ unirest: $i,
1329
+ axios: vi,
1330
+ fetch: bi
1292
1331
  }
1293
- }, vt = (e, r, t, o) => {
1294
- const i = `${e} *${r} = `, l = br(t, o ? i.length : void 0);
1295
- return `${i}${l};`;
1332
+ }, gt = (e, r, t, o) => {
1333
+ const i = `${e} *${r} = `, s = br(t, o ? i.length : void 0);
1334
+ return `${i}${s};`;
1296
1335
  }, br = (e, r) => {
1297
1336
  const t = r === void 0 ? ", " : `,
1298
1337
  ${" ".repeat(r)}`;
@@ -1312,7 +1351,7 @@ var Da = {
1312
1351
  default:
1313
1352
  return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
1314
1353
  }
1315
- }, xi = {
1354
+ }, Si = {
1316
1355
  info: {
1317
1356
  key: "nsurlsession",
1318
1357
  title: "NSURLSession",
@@ -1322,20 +1361,20 @@ var Da = {
1322
1361
  },
1323
1362
  convert: ({ allHeaders: e, postData: r, method: t, fullUrl: o }, i) => {
1324
1363
  var f;
1325
- const l = {
1364
+ const s = {
1326
1365
  indent: " ",
1327
1366
  pretty: !0,
1328
1367
  timeout: 10,
1329
1368
  ...i
1330
- }, { push: n, join: a, blank: s } = new V({ indent: l.indent }), c = {
1369
+ }, { push: n, join: a, blank: l } = new V({ indent: s.indent }), c = {
1331
1370
  hasHeaders: !1,
1332
1371
  hasBody: !1
1333
1372
  };
1334
- if (n("#import <Foundation/Foundation.h>"), Object.keys(e).length && (c.hasHeaders = !0, s(), n(vt("NSDictionary", "headers", e, l.pretty))), r.text || r.jsonObj || r.params)
1373
+ if (n("#import <Foundation/Foundation.h>"), Object.keys(e).length && (c.hasHeaders = !0, l(), n(gt("NSDictionary", "headers", e, s.pretty))), r.text || r.jsonObj || r.params)
1335
1374
  switch (c.hasBody = !0, r.mimeType) {
1336
1375
  case "application/x-www-form-urlencoded":
1337
1376
  if ((f = r.params) != null && f.length) {
1338
- s();
1377
+ l();
1339
1378
  const [g, ...b] = r.params;
1340
1379
  n(
1341
1380
  `NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${g.name}=${g.value}" dataUsingEncoding:NSUTF8StringEncoding]];`
@@ -1346,10 +1385,10 @@ var Da = {
1346
1385
  c.hasBody = !1;
1347
1386
  break;
1348
1387
  case "application/json":
1349
- r.jsonObj && (n(vt("NSDictionary", "parameters", r.jsonObj, l.pretty)), s(), n("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));
1388
+ r.jsonObj && (n(gt("NSDictionary", "parameters", r.jsonObj, s.pretty)), l(), n("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));
1350
1389
  break;
1351
1390
  case "multipart/form-data":
1352
- n(vt("NSArray", "parameters", r.params || [], l.pretty)), n(`NSString *boundary = @"${r.boundary}";`), s(), n("NSError *error;"), n("NSMutableString *body = [NSMutableString string];"), n("for (NSDictionary *param in parameters) {"), n('[body appendFormat:@"--%@\\r\\n", boundary];', 1), n('if (param[@"fileName"]) {', 1), n(
1391
+ n(gt("NSArray", "parameters", r.params || [], s.pretty)), n(`NSString *boundary = @"${r.boundary}";`), l(), n("NSError *error;"), n("NSMutableString *body = [NSMutableString string];"), n("for (NSDictionary *param in parameters) {"), n('[body appendFormat:@"--%@\\r\\n", boundary];', 1), n('if (param[@"fileName"]) {', 1), n(
1353
1392
  '[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',
1354
1393
  2
1355
1394
  ), n('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];', 2), n(
@@ -1358,27 +1397,27 @@ var Da = {
1358
1397
  ), n("if (error) {", 2), n('NSLog(@"%@", error);', 3), n("}", 2), n("} else {", 1), n('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];', 2), n('[body appendFormat:@"%@", param[@"value"]];', 2), n("}", 1), n("}"), n('[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];'), n("NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];");
1359
1398
  break;
1360
1399
  default:
1361
- s(), n(
1400
+ l(), n(
1362
1401
  `NSData *postData = [[NSData alloc] initWithData:[@"${r.text}" dataUsingEncoding:NSUTF8StringEncoding]];`
1363
1402
  );
1364
1403
  }
1365
- return s(), n(`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"${o}"]`), n(" cachePolicy:NSURLRequestUseProtocolCachePolicy"), n(` timeoutInterval:${l.timeout.toFixed(1)}];`), n(`[request setHTTPMethod:@"${t}"];`), c.hasHeaders && n("[request setAllHTTPHeaderFields:headers];"), c.hasBody && n("[request setHTTPBody:postData];"), s(), n("NSURLSession *session = [NSURLSession sharedSession];"), n("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"), n(
1404
+ return l(), n(`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"${o}"]`), n(" cachePolicy:NSURLRequestUseProtocolCachePolicy"), n(` timeoutInterval:${s.timeout.toFixed(1)}];`), n(`[request setHTTPMethod:@"${t}"];`), c.hasHeaders && n("[request setAllHTTPHeaderFields:headers];"), c.hasBody && n("[request setHTTPBody:postData];"), l(), n("NSURLSession *session = [NSURLSession sharedSession];"), n("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"), n(
1366
1405
  " completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"
1367
1406
  ), n(" if (error) {", 1), n(' NSLog(@"%@", error);', 2), n(" } else {", 1), n(
1368
1407
  " NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",
1369
1408
  2
1370
1409
  ), n(' NSLog(@"%@", httpResponse);', 2), n(" }", 1), n(" }];"), n("[dataTask resume];"), a();
1371
1410
  }
1372
- }, ji = {
1411
+ }, Oi = {
1373
1412
  info: {
1374
1413
  key: "objc",
1375
1414
  title: "Objective-C",
1376
1415
  default: "nsurlsession"
1377
1416
  },
1378
1417
  clientsById: {
1379
- nsurlsession: xi
1418
+ nsurlsession: Si
1380
1419
  }
1381
- }, $i = {
1420
+ }, Ti = {
1382
1421
  info: {
1383
1422
  key: "cohttp",
1384
1423
  title: "CoHTTP",
@@ -1388,11 +1427,11 @@ var Da = {
1388
1427
  installation: "opam install cohttp-lwt-unix cohttp-async"
1389
1428
  },
1390
1429
  convert: ({ fullUrl: e, allHeaders: r, postData: t, method: o }, i) => {
1391
- const l = {
1430
+ const s = {
1392
1431
  indent: " ",
1393
1432
  ...i
1394
- }, n = ["get", "post", "head", "delete", "patch", "put", "options"], { push: a, blank: s, join: c } = new V({ indent: l.indent });
1395
- a("open Cohttp_lwt_unix"), a("open Cohttp"), a("open Lwt"), s(), a(`let uri = Uri.of_string "${e}" in`);
1433
+ }, n = ["get", "post", "head", "delete", "patch", "put", "options"], { push: a, blank: l, join: c } = new V({ indent: s.indent });
1434
+ a("open Cohttp_lwt_unix"), a("open Cohttp"), a("open Lwt"), l(), a(`let uri = Uri.of_string "${e}" in`);
1396
1435
  const f = Object.keys(r);
1397
1436
  f.length === 1 ? a(
1398
1437
  `let headers = Header.add (Header.init ()) "${f[0]}" "${ce(
@@ -1400,18 +1439,18 @@ var Da = {
1400
1439
  )}" in`
1401
1440
  ) : f.length > 1 && (a("let headers = Header.add_list (Header.init ()) ["), f.forEach((j) => {
1402
1441
  a(`("${j}", "${ce(r[j])}");`, 1);
1403
- }), a("] in")), t.text && a(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(t.text)} in`), s();
1442
+ }), a("] in")), t.text && a(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(t.text)} in`), l();
1404
1443
  const g = f.length ? "~headers " : "", b = t.text ? "~body " : "", m = n.includes(o.toLowerCase()) ? `\`${o.toUpperCase()}` : `(Code.method_of_string "${o}")`;
1405
1444
  return a(`Client.call ${g}${b}${m} uri`), a(">>= fun (res, body_stream) ->"), a("(* Do stuff with the result *)", 1), c();
1406
1445
  }
1407
- }, wi = {
1446
+ }, Pi = {
1408
1447
  info: {
1409
1448
  key: "ocaml",
1410
1449
  title: "OCaml",
1411
1450
  default: "cohttp"
1412
1451
  },
1413
1452
  clientsById: {
1414
- cohttp: $i
1453
+ cohttp: Ti
1415
1454
  }
1416
1455
  }, te = (e, r, t) => {
1417
1456
  switch (t = t || "", r = r || "", Object.prototype.toString.call(e)) {
@@ -1422,7 +1461,7 @@ var Da = {
1422
1461
  case "[object Undefined]":
1423
1462
  return "null";
1424
1463
  case "[object String]":
1425
- return `'${Me(e, { delimiter: "'", escapeNewlines: !1 })}'`;
1464
+ return `'${He(e, { delimiter: "'", escapeNewlines: !1 })}'`;
1426
1465
  case "[object Number]":
1427
1466
  return e.toString();
1428
1467
  case "[object Array]": {
@@ -1472,7 +1511,7 @@ ${t}]`;
1472
1511
  "UNLOCK",
1473
1512
  "UPDATE",
1474
1513
  "VERSION_CONTROL"
1475
- ], Si = {
1514
+ ], Ci = {
1476
1515
  info: {
1477
1516
  key: "curl",
1478
1517
  title: "cURL",
@@ -1480,9 +1519,9 @@ ${t}]`;
1480
1519
  description: "PHP with ext-curl",
1481
1520
  extname: ".php"
1482
1521
  },
1483
- convert: ({ uriObj: e, postData: r, fullUrl: t, method: o, httpVersion: i, cookies: l, headersObj: n }, a = {}) => {
1522
+ convert: ({ uriObj: e, postData: r, fullUrl: t, method: o, httpVersion: i, cookies: s, headersObj: n }, a = {}) => {
1484
1523
  const {
1485
- closingTag: s = !1,
1524
+ closingTag: l = !1,
1486
1525
  indent: c = " ",
1487
1526
  maxRedirects: f = 10,
1488
1527
  namedErrors: g = !1,
@@ -1544,13 +1583,13 @@ ${c}` });
1544
1583
  y.forEach(({ value: O, name: x, escape: N }) => {
1545
1584
  O != null && S.push(`${x} => ${N ? JSON.stringify(O) : O},`);
1546
1585
  });
1547
- const T = l.map((O) => `${encodeURIComponent(O.name)}=${encodeURIComponent(O.value)}`);
1586
+ const T = s.map((O) => `${encodeURIComponent(O.name)}=${encodeURIComponent(O.value)}`);
1548
1587
  T.length && S.push(`CURLOPT_COOKIE => "${T.join("; ")}",`);
1549
1588
  const d = Object.keys(n).sort().map((O) => `"${O}: ${ce(n[O])}"`);
1550
1589
  return d.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(d.join(`,
1551
- ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = curl_exec($curl);"), v("$err = curl_error($curl);"), p(), v("curl_close($curl);"), p(), v("if ($err) {"), v(g ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), v("} else {"), v("echo $response;", 1), v("}"), !b && s && (p(), v("?>")), h();
1590
+ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = curl_exec($curl);"), v("$err = curl_error($curl);"), p(), v("curl_close($curl);"), p(), v("if ($err) {"), v(g ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), v("} else {"), v("echo $response;", 1), v("}"), !b && l && (p(), v("?>")), h();
1552
1591
  }
1553
- }, Oi = {
1592
+ }, Ni = {
1554
1593
  info: {
1555
1594
  key: "guzzle",
1556
1595
  title: "Guzzle",
@@ -1559,16 +1598,16 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1559
1598
  extname: ".php",
1560
1599
  installation: "composer require guzzlehttp/guzzle"
1561
1600
  },
1562
- convert: ({ postData: e, fullUrl: r, method: t, cookies: o, headersObj: i }, l) => {
1601
+ convert: ({ postData: e, fullUrl: r, method: t, cookies: o, headersObj: i }, s) => {
1563
1602
  var v;
1564
1603
  const n = {
1565
1604
  closingTag: !1,
1566
1605
  indent: " ",
1567
1606
  noTags: !1,
1568
1607
  shortTags: !1,
1569
- ...l
1570
- }, { push: a, blank: s, join: c } = new V({ indent: n.indent }), { code: f, push: g, join: b } = new V({ indent: n.indent });
1571
- switch (n.noTags || a(n.shortTags ? "<?" : "<?php"), a("require_once('vendor/autoload.php');"), s(), e.mimeType) {
1608
+ ...s
1609
+ }, { push: a, blank: l, join: c } = new V({ indent: n.indent }), { code: f, push: g, join: b } = new V({ indent: n.indent });
1610
+ switch (n.noTags || a(n.shortTags ? "<?" : "<?php"), a("require_once('vendor/autoload.php');"), l(), e.mimeType) {
1572
1611
  case "application/x-www-form-urlencoded":
1573
1612
  g(`'form_params' => ${te(e.paramsObj, n.indent + n.indent, n.indent)},`, 1);
1574
1613
  break;
@@ -1586,7 +1625,7 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1586
1625
  name: h.name,
1587
1626
  contents: h.value
1588
1627
  });
1589
- }), p.length && (g(`'multipart' => ${te(p, n.indent + n.indent, n.indent)}`, 1), nt(i, "content-type") && (v = ve(i, "content-type")) != null && v.indexOf("boundary"))) {
1628
+ }), p.length && (g(`'multipart' => ${te(p, n.indent + n.indent, n.indent)}`, 1), rt(i, "content-type") && (v = ve(i, "content-type")) != null && v.indexOf("boundary"))) {
1590
1629
  const h = pe(i, "content-type");
1591
1630
  h && delete i[h];
1592
1631
  }
@@ -1596,12 +1635,12 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1596
1635
  e.text && g(`'body' => ${te(e.text)},`, 1);
1597
1636
  }
1598
1637
  const m = Object.keys(i).sort().map(function(p) {
1599
- return `${n.indent}${n.indent}'${p}' => '${ze(i[p])}',`;
1638
+ return `${n.indent}${n.indent}'${p}' => '${Me(i[p])}',`;
1600
1639
  }), j = o.map((p) => `${encodeURIComponent(p.name)}=${encodeURIComponent(p.value)}`).join("; ");
1601
- return j.length && m.push(`${n.indent}${n.indent}'cookie' => '${ze(j)}',`), m.length && (g("'headers' => [", 1), g(m.join(`
1602
- `)), g("],", 1)), a("$client = new \\GuzzleHttp\\Client();"), s(), f.length ? (a(`$response = $client->request('${t}', '${r}', [`), a(b()), a("]);")) : a(`$response = $client->request('${t}', '${r}');`), s(), a("echo $response->getBody();"), !n.noTags && n.closingTag && (s(), a("?>")), c();
1640
+ return j.length && m.push(`${n.indent}${n.indent}'cookie' => '${Me(j)}',`), m.length && (g("'headers' => [", 1), g(m.join(`
1641
+ `)), g("],", 1)), a("$client = new \\GuzzleHttp\\Client();"), l(), f.length ? (a(`$response = $client->request('${t}', '${r}', [`), a(b()), a("]);")) : a(`$response = $client->request('${t}', '${r}');`), l(), a("echo $response->getBody();"), !n.noTags && n.closingTag && (l(), a("?>")), c();
1603
1642
  }
1604
- }, Ti = {
1643
+ }, qi = {
1605
1644
  info: {
1606
1645
  key: "http1",
1607
1646
  title: "HTTP v1",
@@ -1609,21 +1648,21 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1609
1648
  description: "PHP with pecl/http v1",
1610
1649
  extname: ".php"
1611
1650
  },
1612
- convert: ({ method: e, url: r, postData: t, queryObj: o, headersObj: i, cookiesObj: l }, n = {}) => {
1613
- const { closingTag: a = !1, indent: s = " ", noTags: c = !1, shortTags: f = !1 } = n, { push: g, blank: b, join: m } = new V({ indent: s });
1614
- switch (c || (g(f ? "<?" : "<?php"), b()), Xr.includes(e.toUpperCase()) || g(`HttpRequest::methodRegister('${e}');`), g("$request = new HttpRequest();"), g(`$request->setUrl(${te(r)});`), Xr.includes(e.toUpperCase()) ? g(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : g(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), b(), Object.keys(o).length && (g(`$request->setQueryData(${te(o, s)});`), b()), Object.keys(i).length && (g(`$request->setHeaders(${te(i, s)});`), b()), Object.keys(l).length && (g(`$request->setCookies(${te(l, s)});`), b()), t.mimeType) {
1651
+ convert: ({ method: e, url: r, postData: t, queryObj: o, headersObj: i, cookiesObj: s }, n = {}) => {
1652
+ const { closingTag: a = !1, indent: l = " ", noTags: c = !1, shortTags: f = !1 } = n, { push: g, blank: b, join: m } = new V({ indent: l });
1653
+ switch (c || (g(f ? "<?" : "<?php"), b()), Xr.includes(e.toUpperCase()) || g(`HttpRequest::methodRegister('${e}');`), g("$request = new HttpRequest();"), g(`$request->setUrl(${te(r)});`), Xr.includes(e.toUpperCase()) ? g(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : g(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), b(), Object.keys(o).length && (g(`$request->setQueryData(${te(o, l)});`), b()), Object.keys(i).length && (g(`$request->setHeaders(${te(i, l)});`), b()), Object.keys(s).length && (g(`$request->setCookies(${te(s, l)});`), b()), t.mimeType) {
1615
1654
  case "application/x-www-form-urlencoded":
1616
- g(`$request->setContentType(${te(t.mimeType)});`), g(`$request->setPostFields(${te(t.paramsObj, s)});`), b();
1655
+ g(`$request->setContentType(${te(t.mimeType)});`), g(`$request->setPostFields(${te(t.paramsObj, l)});`), b();
1617
1656
  break;
1618
1657
  case "application/json":
1619
- g(`$request->setContentType(${te(t.mimeType)});`), g(`$request->setBody(json_encode(${te(t.jsonObj, s)}));`), b();
1658
+ g(`$request->setContentType(${te(t.mimeType)});`), g(`$request->setBody(json_encode(${te(t.jsonObj, l)}));`), b();
1620
1659
  break;
1621
1660
  default:
1622
1661
  t.text && (g(`$request->setBody(${te(t.text)});`), b());
1623
1662
  }
1624
1663
  return g("try {"), g("$response = $request->send();", 1), b(), g("echo $response->getBody();", 1), g("} catch (HttpException $ex) {"), g("echo $ex;", 1), g("}"), !c && a && (b(), g("?>")), m();
1625
1664
  }
1626
- }, Pi = {
1665
+ }, Ri = {
1627
1666
  info: {
1628
1667
  key: "http2",
1629
1668
  title: "HTTP v2",
@@ -1631,13 +1670,13 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1631
1670
  description: "PHP with pecl/http v2",
1632
1671
  extname: ".php"
1633
1672
  },
1634
- convert: ({ postData: e, headersObj: r, method: t, queryObj: o, cookiesObj: i, url: l }, n = {}) => {
1673
+ convert: ({ postData: e, headersObj: r, method: t, queryObj: o, cookiesObj: i, url: s }, n = {}) => {
1635
1674
  var v;
1636
- const { closingTag: a = !1, indent: s = " ", noTags: c = !1, shortTags: f = !1 } = n, { push: g, blank: b, join: m } = new V({ indent: s });
1675
+ const { closingTag: a = !1, indent: l = " ", noTags: c = !1, shortTags: f = !1 } = n, { push: g, blank: b, join: m } = new V({ indent: l });
1637
1676
  let j = !1;
1638
1677
  switch (c || (g(f ? "<?" : "<?php"), b()), g("$client = new http\\Client;"), g("$request = new http\\Client\\Request;"), b(), e.mimeType) {
1639
1678
  case "application/x-www-form-urlencoded":
1640
- g("$body = new http\\Message\\Body;"), g(`$body->append(new http\\QueryString(${te(e.paramsObj, s)}));`), b(), j = !0;
1679
+ g("$body = new http\\Message\\Body;"), g(`$body->append(new http\\QueryString(${te(e.paramsObj, l)}));`), b(), j = !0;
1641
1680
  break;
1642
1681
  case "multipart/form-data": {
1643
1682
  if (!e.params)
@@ -1655,8 +1694,8 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1655
1694
  }
1656
1695
  O && (h[T] = O);
1657
1696
  });
1658
- const y = Object.keys(h).length ? te(h, s) : "null", S = p.length ? te(p, s) : "null";
1659
- if (g("$body = new http\\Message\\Body;"), g(`$body->addForm(${y}, ${S});`), nt(r, "content-type") && (v = ve(r, "content-type")) != null && v.indexOf("boundary")) {
1697
+ const y = Object.keys(h).length ? te(h, l) : "null", S = p.length ? te(p, l) : "null";
1698
+ if (g("$body = new http\\Message\\Body;"), g(`$body->addForm(${y}, ${S});`), rt(r, "content-type") && (v = ve(r, "content-type")) != null && v.indexOf("boundary")) {
1660
1699
  const T = pe(r, "content-type");
1661
1700
  T && delete r[T];
1662
1701
  }
@@ -1664,14 +1703,14 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1664
1703
  break;
1665
1704
  }
1666
1705
  case "application/json":
1667
- g("$body = new http\\Message\\Body;"), g(`$body->append(json_encode(${te(e.jsonObj, s)}));`), j = !0;
1706
+ g("$body = new http\\Message\\Body;"), g(`$body->append(json_encode(${te(e.jsonObj, l)}));`), j = !0;
1668
1707
  break;
1669
1708
  default:
1670
1709
  e.text && (g("$body = new http\\Message\\Body;"), g(`$body->append(${te(e.text)});`), b(), j = !0);
1671
1710
  }
1672
- return g(`$request->setRequestUrl(${te(l)});`), g(`$request->setRequestMethod(${te(t)});`), j && (g("$request->setBody($body);"), b()), Object.keys(o).length && (g(`$request->setQuery(new http\\QueryString(${te(o, s)}));`), b()), Object.keys(r).length && (g(`$request->setHeaders(${te(r, s)});`), b()), Object.keys(i).length && (b(), g(`$client->setCookies(${te(i, s)});`), b()), g("$client->enqueue($request)->send();"), g("$response = $client->getResponse();"), b(), g("echo $response->getBody();"), !c && a && (b(), g("?>")), m();
1711
+ return g(`$request->setRequestUrl(${te(s)});`), g(`$request->setRequestMethod(${te(t)});`), j && (g("$request->setBody($body);"), b()), Object.keys(o).length && (g(`$request->setQuery(new http\\QueryString(${te(o, l)}));`), b()), Object.keys(r).length && (g(`$request->setHeaders(${te(r, l)});`), b()), Object.keys(i).length && (b(), g(`$client->setCookies(${te(i, l)});`), b()), g("$client->enqueue($request)->send();"), g("$response = $client->getResponse();"), b(), g("echo $response->getBody();"), !c && a && (b(), g("?>")), m();
1673
1712
  }
1674
- }, Ci = {
1713
+ }, ki = {
1675
1714
  info: {
1676
1715
  key: "php",
1677
1716
  title: "PHP",
@@ -1679,24 +1718,24 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1679
1718
  cli: "php %s"
1680
1719
  },
1681
1720
  clientsById: {
1682
- curl: Si,
1683
- guzzle: Oi,
1684
- http1: Ti,
1685
- http2: Pi
1721
+ curl: Ci,
1722
+ guzzle: Ni,
1723
+ http1: qi,
1724
+ http2: Ri
1686
1725
  }
1687
- }, vo = (e) => ({ method: t, headersObj: o, cookies: i, uriObj: l, fullUrl: n, postData: a, allHeaders: s }) => {
1726
+ }, bo = (e) => ({ method: t, headersObj: o, cookies: i, uriObj: s, fullUrl: n, postData: a, allHeaders: l }) => {
1688
1727
  const { push: c, join: f } = new V();
1689
1728
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()))
1690
1729
  return "Method not supported";
1691
1730
  const b = [], m = Object.keys(o);
1692
1731
  return m.length && (c("$headers=@{}"), m.forEach((j) => {
1693
- j !== "connection" && c(`$headers.Add("${j}", "${Me(o[j], { escapeChar: "`" })}")`);
1732
+ j !== "connection" && c(`$headers.Add("${j}", "${He(o[j], { escapeChar: "`" })}")`);
1694
1733
  }), b.push("-Headers $headers")), i.length && (c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), i.forEach((j) => {
1695
- c("$cookie = New-Object System.Net.Cookie"), c(`$cookie.Name = '${j.name}'`), c(`$cookie.Value = '${j.value}'`), c(`$cookie.Domain = '${l.host}'`), c("$session.Cookies.Add($cookie)");
1734
+ c("$cookie = New-Object System.Net.Cookie"), c(`$cookie.Name = '${j.name}'`), c(`$cookie.Value = '${j.value}'`), c(`$cookie.Domain = '${s.host}'`), c("$session.Cookies.Add($cookie)");
1696
1735
  }), b.push("-WebSession $session")), a.text && (b.push(
1697
- `-ContentType '${Me(ve(s, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
1736
+ `-ContentType '${He(ve(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
1698
1737
  ), b.push(`-Body '${a.text}'`)), c(`$response = ${e} -Uri '${n}' -Method ${t} ${b.join(" ")}`.trim()), f();
1699
- }, Ni = {
1738
+ }, Ei = {
1700
1739
  info: {
1701
1740
  key: "restmethod",
1702
1741
  title: "Invoke-RestMethod",
@@ -1704,8 +1743,8 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1704
1743
  description: "Powershell Invoke-RestMethod client",
1705
1744
  extname: ".ps1"
1706
1745
  },
1707
- convert: vo("Invoke-RestMethod")
1708
- }, qi = {
1746
+ convert: bo("Invoke-RestMethod")
1747
+ }, Ai = {
1709
1748
  info: {
1710
1749
  key: "webrequest",
1711
1750
  title: "Invoke-WebRequest",
@@ -1713,38 +1752,38 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
1713
1752
  description: "Powershell Invoke-WebRequest client",
1714
1753
  extname: ".ps1"
1715
1754
  },
1716
- convert: vo("Invoke-WebRequest")
1717
- }, Ri = {
1755
+ convert: bo("Invoke-WebRequest")
1756
+ }, Ii = {
1718
1757
  info: {
1719
1758
  key: "powershell",
1720
1759
  title: "Powershell",
1721
1760
  default: "webrequest"
1722
1761
  },
1723
1762
  clientsById: {
1724
- webrequest: qi,
1725
- restmethod: Ni
1763
+ webrequest: Ai,
1764
+ restmethod: Ei
1726
1765
  }
1727
1766
  };
1728
1767
  function Zr(e, r, t, o, i) {
1729
- const l = o.repeat(i), n = o.repeat(i - 1), a = t ? `,
1730
- ${l}` : ", ", s = e === "object" ? "{" : "[", c = e === "object" ? "}" : "]";
1731
- return t ? `${s}
1732
- ${l}${r.join(a)}
1733
- ${n}${c}` : e === "object" && r.length > 0 ? `${s} ${r.join(a)} ${c}` : `${s}${r.join(a)}${c}`;
1768
+ const s = o.repeat(i), n = o.repeat(i - 1), a = t ? `,
1769
+ ${s}` : ", ", l = e === "object" ? "{" : "[", c = e === "object" ? "}" : "]";
1770
+ return t ? `${l}
1771
+ ${s}${r.join(a)}
1772
+ ${n}${c}` : e === "object" && r.length > 0 ? `${l} ${r.join(a)} ${c}` : `${l}${r.join(a)}${c}`;
1734
1773
  }
1735
- var Le = (e, r, t) => {
1774
+ var Ie = (e, r, t) => {
1736
1775
  switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
1737
1776
  case "[object Number]":
1738
1777
  return e;
1739
1778
  case "[object Array]": {
1740
1779
  let o = !1;
1741
- const i = e.map((l) => (Object.prototype.toString.call(l) === "[object Object]" && (o = Object.keys(l).length > 1), Le(l, r, t)));
1780
+ const i = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (o = Object.keys(s).length > 1), Ie(s, r, t)));
1742
1781
  return Zr("array", i, o, r.indent, t);
1743
1782
  }
1744
1783
  case "[object Object]": {
1745
1784
  const o = [];
1746
1785
  for (const i in e)
1747
- o.push(`"${i}": ${Le(e[i], r, t)}`);
1786
+ o.push(`"${i}": ${Ie(e[i], r, t)}`);
1748
1787
  return Zr("object", o, r.pretty && o.length > 1, r.indent, t);
1749
1788
  }
1750
1789
  case "[object Null]":
@@ -1754,7 +1793,7 @@ var Le = (e, r, t) => {
1754
1793
  default:
1755
1794
  return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
1756
1795
  }
1757
- }, ki = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Ei = {
1796
+ }, Li = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Ui = {
1758
1797
  info: {
1759
1798
  key: "requests",
1760
1799
  title: "Requests",
@@ -1764,11 +1803,11 @@ var Le = (e, r, t) => {
1764
1803
  installation: "python -m pip install requests"
1765
1804
  },
1766
1805
  convert: ({ fullUrl: e, postData: r, allHeaders: t, method: o }, i) => {
1767
- const l = {
1806
+ const s = {
1768
1807
  indent: " ",
1769
1808
  pretty: !0,
1770
1809
  ...i
1771
- }, { push: n, blank: a, join: s, addPostProcessor: c } = new V({ indent: l.indent });
1810
+ }, { push: n, blank: a, join: l, addPostProcessor: c } = new V({ indent: s.indent });
1772
1811
  n("import requests"), a(), n(`url = "${e}"`), a();
1773
1812
  const f = t;
1774
1813
  let g = {};
@@ -1776,7 +1815,7 @@ var Le = (e, r, t) => {
1776
1815
  let m = !1, j = !1, v = !1;
1777
1816
  switch (r.mimeType) {
1778
1817
  case "application/json":
1779
- r.jsonObj && (n(`payload = ${Le(r.jsonObj, l)}`), v = !0, j = !0);
1818
+ r.jsonObj && (n(`payload = ${Ie(r.jsonObj, s)}`), v = !0, j = !0);
1780
1819
  break;
1781
1820
  case "multipart/form-data":
1782
1821
  if (!r.params)
@@ -1784,7 +1823,7 @@ var Le = (e, r, t) => {
1784
1823
  if (g = {}, r.params.forEach((y) => {
1785
1824
  y.fileName ? (y.contentType ? b[y.name] = `('${y.fileName}', open('${y.fileName}', 'rb'), '${y.contentType}')` : b[y.name] = `('${y.fileName}', open('${y.fileName}', 'rb'))`, m = !0) : (g[y.name] = y.value, j = !0);
1786
1825
  }), m) {
1787
- n(`files = ${Le(b, l)}`), j && n(`payload = ${Le(g, l)}`);
1826
+ n(`files = ${Ie(b, s)}`), j && n(`payload = ${Ie(g, s)}`);
1788
1827
  const y = pe(f, "content-type");
1789
1828
  y && delete f[y];
1790
1829
  } else {
@@ -1797,7 +1836,7 @@ var Le = (e, r, t) => {
1797
1836
  break;
1798
1837
  default: {
1799
1838
  if (r.mimeType === "application/x-www-form-urlencoded" && r.paramsObj) {
1800
- n(`payload = ${Le(r.paramsObj, l)}`), j = !0;
1839
+ n(`payload = ${Ie(r.paramsObj, s)}`), j = !0;
1801
1840
  break;
1802
1841
  }
1803
1842
  const y = JSON.stringify(r.text);
@@ -1817,10 +1856,10 @@ var Le = (e, r, t) => {
1817
1856
  n(y !== p ? `"${S}": "${ce(f[S])}",` : `"${S}": "${ce(f[S])}"`, 1), y += 1;
1818
1857
  }), n("}"), a();
1819
1858
  }
1820
- let h = ki.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1821
- return j && (v ? h += ", json=payload" : h += ", data=payload"), m && (h += ", files=files"), p > 0 && (h += ", headers=headers"), h += ")", n(h), a(), n("print(response.text)"), s();
1859
+ let h = Li.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1860
+ return j && (v ? h += ", json=payload" : h += ", data=payload"), m && (h += ", files=files"), p > 0 && (h += ", headers=headers"), h += ")", n(h), a(), n("print(response.text)"), l();
1822
1861
  }
1823
- }, Ai = {
1862
+ }, Fi = {
1824
1863
  info: {
1825
1864
  key: "python",
1826
1865
  title: "Python",
@@ -1828,9 +1867,9 @@ var Le = (e, r, t) => {
1828
1867
  cli: "python3 %s"
1829
1868
  },
1830
1869
  clientsById: {
1831
- requests: Ei
1870
+ requests: Ui
1832
1871
  }
1833
- }, Ii = {
1872
+ }, _i = {
1834
1873
  info: {
1835
1874
  key: "httr",
1836
1875
  title: "httr",
@@ -1838,8 +1877,8 @@ var Le = (e, r, t) => {
1838
1877
  description: "httr: Tools for Working with URLs and HTTP",
1839
1878
  extname: ".r"
1840
1879
  },
1841
- convert: ({ url: e, queryObj: r, queryString: t, postData: o, allHeaders: i, method: l }) => {
1842
- const { push: n, blank: a, join: s } = new V();
1880
+ convert: ({ url: e, queryObj: r, queryString: t, postData: o, allHeaders: i, method: s }) => {
1881
+ const { push: n, blank: a, join: l } = new V();
1843
1882
  n("library(httr)"), a(), n(`url <- "${e}"`), a();
1844
1883
  const c = r;
1845
1884
  delete r.key;
@@ -1863,22 +1902,22 @@ var Le = (e, r, t) => {
1863
1902
  n('encode <- "raw"'), a();
1864
1903
  break;
1865
1904
  }
1866
- const b = ve(i, "cookie"), m = ve(i, "accept"), j = b ? `set_cookies(\`${String(b).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, v = m ? `accept("${ce(m)}")` : void 0, p = `content_type("${ce(o.mimeType)}")`, h = Object.entries(i).filter(([d]) => !["cookie", "accept", "content-type"].includes(d.toLowerCase())).map(([d, O]) => `'${d}' = '${ze(O)}'`).join(", "), y = h ? `add_headers(${h})` : void 0;
1867
- let S = `response <- VERB("${l}", url`;
1905
+ const b = ve(i, "cookie"), m = ve(i, "accept"), j = b ? `set_cookies(\`${String(b).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, v = m ? `accept("${ce(m)}")` : void 0, p = `content_type("${ce(o.mimeType)}")`, h = Object.entries(i).filter(([d]) => !["cookie", "accept", "content-type"].includes(d.toLowerCase())).map(([d, O]) => `'${d}' = '${Me(O)}'`).join(", "), y = h ? `add_headers(${h})` : void 0;
1906
+ let S = `response <- VERB("${s}", url`;
1868
1907
  g && (S += ", body = payload"), t.length && (S += ", query = queryString");
1869
1908
  const T = [y, p, v, j].filter((d) => !!d).join(", ");
1870
- return T && (S += `, ${T}`), (o.text || o.jsonObj || o.params) && (S += ", encode = encode"), S += ")", n(S), a(), n('content(response, "text")'), s();
1909
+ return T && (S += `, ${T}`), (o.text || o.jsonObj || o.params) && (S += ", encode = encode"), S += ")", n(S), a(), n('content(response, "text")'), l();
1871
1910
  }
1872
- }, Li = {
1911
+ }, Bi = {
1873
1912
  info: {
1874
1913
  key: "r",
1875
1914
  title: "R",
1876
1915
  default: "httr"
1877
1916
  },
1878
1917
  clientsById: {
1879
- httr: Ii
1918
+ httr: _i
1880
1919
  }
1881
- }, Ui = {
1920
+ }, Hi = {
1882
1921
  info: {
1883
1922
  key: "native",
1884
1923
  title: "net::http",
@@ -1887,9 +1926,9 @@ var Le = (e, r, t) => {
1887
1926
  extname: ".rb"
1888
1927
  },
1889
1928
  convert: ({ uriObj: e, method: r, fullUrl: t, postData: o, allHeaders: i }) => {
1890
- const { push: l, blank: n, join: a } = new V();
1891
- l("require 'uri'"), l("require 'net/http'"), n();
1892
- const s = r.toUpperCase(), c = [
1929
+ const { push: s, blank: n, join: a } = new V();
1930
+ s("require 'uri'"), s("require 'net/http'"), n();
1931
+ const l = r.toUpperCase(), c = [
1893
1932
  "GET",
1894
1933
  "POST",
1895
1934
  "HEAD",
@@ -1902,23 +1941,23 @@ var Le = (e, r, t) => {
1902
1941
  "UNLOCK",
1903
1942
  "MOVE",
1904
1943
  "TRACE"
1905
- ], f = s.charAt(0) + s.substring(1).toLowerCase();
1906
- c.includes(s) || (l(`class Net::HTTP::${f} < Net::HTTPRequest`), l(` METHOD = '${s.toUpperCase()}'`), l(` REQUEST_HAS_BODY = '${o.text ? "true" : "false"}'`), l(" RESPONSE_HAS_BODY = true"), l("end"), n()), l(`url = URI("${t}")`), n(), l("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && l("http.use_ssl = true"), n(), l(`request = Net::HTTP::${f}.new(url)`);
1944
+ ], f = l.charAt(0) + l.substring(1).toLowerCase();
1945
+ c.includes(l) || (s(`class Net::HTTP::${f} < Net::HTTPRequest`), s(` METHOD = '${l.toUpperCase()}'`), s(` REQUEST_HAS_BODY = '${o.text ? "true" : "false"}'`), s(" RESPONSE_HAS_BODY = true"), s("end"), n()), s(`url = URI("${t}")`), n(), s("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && s("http.use_ssl = true"), n(), s(`request = Net::HTTP::${f}.new(url)`);
1907
1946
  const g = Object.keys(i);
1908
1947
  return g.length && g.forEach((b) => {
1909
- l(`request["${b}"] = '${ze(i[b])}'`);
1910
- }), o.text && l(`request.body = ${JSON.stringify(o.text)}`), n(), l("response = http.request(request)"), l("puts response.read_body"), a();
1948
+ s(`request["${b}"] = '${Me(i[b])}'`);
1949
+ }), o.text && s(`request.body = ${JSON.stringify(o.text)}`), n(), s("response = http.request(request)"), s("puts response.read_body"), a();
1911
1950
  }
1912
- }, Fi = {
1951
+ }, Mi = {
1913
1952
  info: {
1914
1953
  key: "ruby",
1915
1954
  title: "Ruby",
1916
1955
  default: "native"
1917
1956
  },
1918
1957
  clientsById: {
1919
- native: Ui
1958
+ native: Hi
1920
1959
  }
1921
- }, ue = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, _i = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Bi = {
1960
+ }, ue = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, zi = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Gi = {
1922
1961
  "http1.0": "0",
1923
1962
  "url ": "",
1924
1963
  cookie: "b",
@@ -1928,13 +1967,13 @@ var Le = (e, r, t) => {
1928
1967
  header: "H",
1929
1968
  insecure: "k",
1930
1969
  request: "X"
1931
- }, Hi = (e) => (r) => {
1970
+ }, Wi = (e) => (r) => {
1932
1971
  if (e) {
1933
- const t = Bi[r];
1972
+ const t = Gi[r];
1934
1973
  return t ? `-${t}` : "";
1935
1974
  }
1936
1975
  return `--${r}`;
1937
- }, Mi = {
1976
+ }, Ji = {
1938
1977
  info: {
1939
1978
  key: "curl",
1940
1979
  title: "cURL",
@@ -1942,15 +1981,15 @@ var Le = (e, r, t) => {
1942
1981
  description: "cURL is a command line tool and library for transferring data with URL syntax",
1943
1982
  extname: ".sh"
1944
1983
  },
1945
- convert: ({ fullUrl: e, method: r, httpVersion: t, headersObj: o, allHeaders: i, postData: l }, n = {}) => {
1984
+ convert: ({ fullUrl: e, method: r, httpVersion: t, headersObj: o, allHeaders: i, postData: s }, n = {}) => {
1946
1985
  var p;
1947
- const { indent: a = " ", short: s = !1, binary: c = !1, globOff: f = !1 } = n, g = " ", { push: b, join: m } = new V({
1986
+ const { indent: a = " ", short: l = !1, binary: c = !1, globOff: f = !1 } = n, g = " ", { push: b, join: m } = new V({
1948
1987
  ...typeof a == "string" ? { indent: a } : {},
1949
1988
  join: a !== !1 ? ` \\
1950
1989
  ${a}` : " "
1951
- }), j = Hi(s);
1990
+ }), j = Wi(l);
1952
1991
  let v = ue(e);
1953
- if (b(`curl ${j("request")} ${r}`), f && (v = unescape(v), b(j("globoff"))), b(`${j("url ")}${v}`), t === "HTTP/1.0" && b(j("http1.0")), ve(i, "accept-encoding") && b("--compressed"), l.mimeType === "multipart/form-data") {
1992
+ if (b(`curl ${j("request")} ${r}`), f && (v = unescape(v), b(j("globoff"))), b(`${j("url ")}${v}`), t === "HTTP/1.0" && b(j("http1.0")), ve(i, "accept-encoding") && b("--compressed"), s.mimeType === "multipart/form-data") {
1954
1993
  const h = pe(o, "content-type");
1955
1994
  if (h) {
1956
1995
  const y = o[h];
@@ -1963,27 +2002,27 @@ ${a}` : " "
1963
2002
  switch (Object.keys(o).sort().forEach((h) => {
1964
2003
  const y = `${h}: ${o[h]}`;
1965
2004
  b(`${j("header")} ${ue(y)}`);
1966
- }), i.cookie && b(`${j("cookie")} ${ue(i.cookie)}`), l.mimeType) {
2005
+ }), i.cookie && b(`${j("cookie")} ${ue(i.cookie)}`), s.mimeType) {
1967
2006
  case "multipart/form-data":
1968
- (p = l.params) == null || p.forEach((y) => {
2007
+ (p = s.params) == null || p.forEach((y) => {
1969
2008
  let S = "";
1970
2009
  y.fileName ? S = `${y.name}='@${y.fileName}'` : S = ue(`${y.name}=${y.value}`), b(`${j("form")} ${S}`);
1971
2010
  });
1972
2011
  break;
1973
2012
  case "application/x-www-form-urlencoded":
1974
- l.params ? l.params.forEach((y) => {
2013
+ s.params ? s.params.forEach((y) => {
1975
2014
  const S = y.name, T = encodeURIComponent(y.name), d = T !== S, O = d ? T : S, x = c ? "--data-binary" : d ? "--data-urlencode" : j("data");
1976
2015
  b(`${x} ${ue(`${O}=${y.value}`)}`);
1977
- }) : b(`${c ? "--data-binary" : j("data")} ${ue(l.text)}`);
2016
+ }) : b(`${c ? "--data-binary" : j("data")} ${ue(s.text)}`);
1978
2017
  break;
1979
2018
  default:
1980
- if (!l.text)
2019
+ if (!s.text)
1981
2020
  break;
1982
2021
  let h = !1;
1983
- if (Ha(l.mimeType) && l.text.length > 20)
2022
+ if (Wa(s.mimeType) && s.text.length > 20)
1984
2023
  try {
1985
- const y = JSON.parse(l.text);
1986
- h = !0, l.text.indexOf("'") > 0 ? b(
2024
+ const y = JSON.parse(s.text);
2025
+ h = !0, s.text.indexOf("'") > 0 ? b(
1987
2026
  `${c ? "--data-binary" : j("data")} @- <<EOF
1988
2027
  ${JSON.stringify(
1989
2028
  y,
@@ -1998,11 +2037,11 @@ ${JSON.stringify(y, null, g)}
1998
2037
  );
1999
2038
  } catch {
2000
2039
  }
2001
- h || b(`${c ? "--data-binary" : j("data")} ${ue(l.text)}`);
2040
+ h || b(`${c ? "--data-binary" : j("data")} ${ue(s.text)}`);
2002
2041
  }
2003
2042
  return m();
2004
2043
  }
2005
- }, zi = {
2044
+ }, Vi = {
2006
2045
  info: {
2007
2046
  key: "httpie",
2008
2047
  title: "HTTPie",
@@ -2011,7 +2050,7 @@ ${JSON.stringify(y, null, g)}
2011
2050
  extname: ".sh",
2012
2051
  installation: "brew install httpie"
2013
2052
  },
2014
- convert: ({ allHeaders: e, postData: r, queryObj: t, fullUrl: o, method: i, url: l }, n) => {
2053
+ convert: ({ allHeaders: e, postData: r, queryObj: t, fullUrl: o, method: i, url: s }, n) => {
2015
2054
  const a = {
2016
2055
  body: !1,
2017
2056
  cert: !1,
@@ -2026,7 +2065,7 @@ ${JSON.stringify(y, null, g)}
2026
2065
  verbose: !1,
2027
2066
  verify: !1,
2028
2067
  ...n
2029
- }, { push: s, join: c, unshift: f } = new V({
2068
+ }, { push: l, join: c, unshift: f } = new V({
2030
2069
  indent: a.indent,
2031
2070
  // @ts-expect-error SEEMS LEGIT
2032
2071
  join: a.indent !== !1 ? ` \\
@@ -2037,21 +2076,21 @@ ${a.indent}` : " "
2037
2076
  a.headers && b.push(a.short ? "-h" : "--headers"), a.body && b.push(a.short ? "-b" : "--body"), a.verbose && b.push(a.short ? "-v" : "--verbose"), a.print && b.push(`${a.short ? "-p" : "--print"}=${a.print}`), a.verify && b.push(`--verify=${a.verify}`), a.cert && b.push(`--cert=${a.cert}`), a.pretty && b.push(`--pretty=${a.pretty}`), a.style && b.push(`--style=${a.style}`), a.timeout && b.push(`--timeout=${a.timeout}`), a.queryParams && Object.keys(t).forEach((j) => {
2038
2077
  const v = t[j];
2039
2078
  Array.isArray(v) ? v.forEach((p) => {
2040
- s(`${j}==${ue(p)}`);
2041
- }) : s(`${j}==${ue(v)}`);
2079
+ l(`${j}==${ue(p)}`);
2080
+ }) : l(`${j}==${ue(v)}`);
2042
2081
  }), Object.keys(e).sort().forEach((j) => {
2043
- s(`${j}:${ue(e[j])}`);
2082
+ l(`${j}:${ue(e[j])}`);
2044
2083
  }), r.mimeType === "application/x-www-form-urlencoded" ? r.params && r.params.length && (b.push(a.short ? "-f" : "--form"), r.params.forEach((j) => {
2045
- s(`${j.name}=${ue(j.value)}`);
2084
+ l(`${j.name}=${ue(j.value)}`);
2046
2085
  })) : g = !0;
2047
2086
  const m = b.length ? `${b.join(" ")} ` : "";
2048
- if (l = ue(a.queryParams ? l : o), f(`http ${m}${i} ${l}`), g && r.text) {
2087
+ if (s = ue(a.queryParams ? s : o), f(`http ${m}${i} ${s}`), g && r.text) {
2049
2088
  const j = ue(r.text);
2050
2089
  f(`echo ${j} | `);
2051
2090
  }
2052
2091
  return c();
2053
2092
  }
2054
- }, Gi = {
2093
+ }, Di = {
2055
2094
  info: {
2056
2095
  key: "wget",
2057
2096
  title: "Wget",
@@ -2060,22 +2099,22 @@ ${a.indent}` : " "
2060
2099
  extname: ".sh"
2061
2100
  },
2062
2101
  convert: ({ method: e, postData: r, allHeaders: t, fullUrl: o }, i) => {
2063
- const l = {
2102
+ const s = {
2064
2103
  indent: " ",
2065
2104
  short: !1,
2066
2105
  verbose: !1,
2067
2106
  ...i
2068
2107
  }, { push: n, join: a } = new V({
2069
- ...typeof l.indent == "string" ? { indent: l.indent } : {},
2070
- join: l.indent !== !1 ? ` \\
2071
- ${l.indent}` : " "
2108
+ ...typeof s.indent == "string" ? { indent: s.indent } : {},
2109
+ join: s.indent !== !1 ? ` \\
2110
+ ${s.indent}` : " "
2072
2111
  });
2073
- return l.verbose ? n(`wget ${l.short ? "-v" : "--verbose"}`) : n(`wget ${l.short ? "-q" : "--quiet"}`), n(`--method ${ue(e)}`), Object.keys(t).forEach((s) => {
2074
- const c = `${s}: ${t[s]}`;
2112
+ return s.verbose ? n(`wget ${s.short ? "-v" : "--verbose"}`) : n(`wget ${s.short ? "-q" : "--quiet"}`), n(`--method ${ue(e)}`), Object.keys(t).forEach((l) => {
2113
+ const c = `${l}: ${t[l]}`;
2075
2114
  n(`--header ${ue(c)}`);
2076
- }), r.text && n(`--body-data ${_i(ue(r.text))}`), n(l.short ? "-O" : "--output-document"), n(`- ${ue(o)}`), a();
2115
+ }), r.text && n(`--body-data ${zi(ue(r.text))}`), n(s.short ? "-O" : "--output-document"), n(`- ${ue(o)}`), a();
2077
2116
  }
2078
- }, Wi = {
2117
+ }, Qi = {
2079
2118
  info: {
2080
2119
  key: "shell",
2081
2120
  title: "Shell",
@@ -2083,29 +2122,29 @@ ${l.indent}` : " "
2083
2122
  cli: "%s"
2084
2123
  },
2085
2124
  clientsById: {
2086
- curl: Mi,
2087
- httpie: zi,
2088
- wget: Gi
2125
+ curl: Ji,
2126
+ httpie: Vi,
2127
+ wget: Di
2089
2128
  }
2090
2129
  }, en = (e, r) => r.repeat(e), tn = (e, r, t, o) => {
2091
- const i = en(o, t), l = en(o - 1, t), n = r ? `,
2130
+ const i = en(o, t), s = en(o - 1, t), n = r ? `,
2092
2131
  ${i}` : ", ";
2093
2132
  return r ? `[
2094
2133
  ${i}${e.join(n)}
2095
- ${l}]` : `[${e.join(n)}]`;
2096
- }, rn = (e, r, t) => `let ${e} = ${tt(r, t)}`, tt = (e, r, t) => {
2134
+ ${s}]` : `[${e.join(n)}]`;
2135
+ }, rn = (e, r, t) => `let ${e} = ${et(r, t)}`, et = (e, r, t) => {
2097
2136
  switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
2098
2137
  case "[object Number]":
2099
2138
  return e;
2100
2139
  case "[object Array]": {
2101
2140
  let o = !1;
2102
- const i = e.map((l) => (Object.prototype.toString.call(l) === "[object Object]" && (o = Object.keys(l).length > 1), tt(l, r, t)));
2141
+ const i = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (o = Object.keys(s).length > 1), et(s, r, t)));
2103
2142
  return tn(i, o, r.indent, t);
2104
2143
  }
2105
2144
  case "[object Object]": {
2106
2145
  const o = [];
2107
2146
  for (const i in e)
2108
- o.push(`"${i}": ${tt(e[i], r, t)}`);
2147
+ o.push(`"${i}": ${et(e[i], r, t)}`);
2109
2148
  return tn(
2110
2149
  o,
2111
2150
  // @ts-expect-error needs better types
@@ -2120,7 +2159,7 @@ ${l}]` : `[${e.join(n)}]`;
2120
2159
  default:
2121
2160
  return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
2122
2161
  }
2123
- }, Ji = {
2162
+ }, Ki = {
2124
2163
  info: {
2125
2164
  key: "urlsession",
2126
2165
  title: "URLSession",
@@ -2128,32 +2167,32 @@ ${l}]` : `[${e.join(n)}]`;
2128
2167
  description: "Foundation's URLSession request",
2129
2168
  extname: ".swift"
2130
2169
  },
2131
- convert: ({ allHeaders: e, postData: r, uriObj: t, queryObj: o, method: i }, l) => {
2170
+ convert: ({ allHeaders: e, postData: r, uriObj: t, queryObj: o, method: i }, s) => {
2132
2171
  var b;
2133
2172
  const n = {
2134
2173
  indent: " ",
2135
2174
  pretty: !0,
2136
2175
  timeout: 10,
2137
- ...l
2138
- }, { push: a, blank: s, join: c } = new V({ indent: n.indent });
2139
- a("import Foundation"), s();
2176
+ ...s
2177
+ }, { push: a, blank: l, join: c } = new V({ indent: n.indent });
2178
+ a("import Foundation"), l();
2140
2179
  const f = r.text || r.jsonObj || r.params;
2141
2180
  if (f)
2142
2181
  switch (r.mimeType) {
2143
2182
  case "application/x-www-form-urlencoded":
2144
2183
  if ((b = r.params) != null && b.length) {
2145
2184
  const m = r.params.map((j) => `"${j.name}": "${j.value}"`);
2146
- n.pretty ? (a("let parameters = ["), m.forEach((j) => a(`${j},`, 1)), a("]")) : a(`let parameters = [${m.join(", ")}]`), a('let joinedParameters = parameters.map { "\\($0.key)=\\($0.value)" }.joined(separator: "&")'), a("let postData = Data(joinedParameters.utf8)"), s();
2185
+ n.pretty ? (a("let parameters = ["), m.forEach((j) => a(`${j},`, 1)), a("]")) : a(`let parameters = [${m.join(", ")}]`), a('let joinedParameters = parameters.map { "\\($0.key)=\\($0.value)" }.joined(separator: "&")'), a("let postData = Data(joinedParameters.utf8)"), l();
2147
2186
  }
2148
2187
  break;
2149
2188
  case "application/json":
2150
- r.jsonObj && (a(`${rn("parameters", r.jsonObj, n)} as [String : Any?]`), s(), a("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), s());
2189
+ r.jsonObj && (a(`${rn("parameters", r.jsonObj, n)} as [String : Any?]`), l(), a("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), l());
2151
2190
  break;
2152
2191
  case "multipart/form-data":
2153
- a(rn("parameters", r.params, n)), s(), a(`let boundary = "${r.boundary}"`), s(), a('var body = ""'), a("for param in parameters {"), a('let paramName = param["name"]!', 1), a('body += "--\\(boundary)\\r\\n"', 1), a('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), a('if let filename = param["fileName"] {', 1), a('let contentType = param["contentType"]!', 2), a("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), a('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), a('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), a("body += fileContent", 2), a('} else if let paramValue = param["value"] {', 1), a('body += "\\r\\n\\r\\n\\(paramValue)"', 2), a("}", 1), a("}"), s(), a("let postData = Data(body.utf8)"), s();
2192
+ a(rn("parameters", r.params, n)), l(), a(`let boundary = "${r.boundary}"`), l(), a('var body = ""'), a("for param in parameters {"), a('let paramName = param["name"]!', 1), a('body += "--\\(boundary)\\r\\n"', 1), a('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), a('if let filename = param["fileName"] {', 1), a('let contentType = param["contentType"]!', 2), a("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), a('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), a('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), a("body += fileContent", 2), a('} else if let paramValue = param["value"] {', 1), a('body += "\\r\\n\\r\\n\\(paramValue)"', 2), a("}", 1), a("}"), l(), a("let postData = Data(body.utf8)"), l();
2154
2193
  break;
2155
2194
  default:
2156
- a(`let postData = Data("${r.text}".utf8)`), s();
2195
+ a(`let postData = Data("${r.text}".utf8)`), l();
2157
2196
  }
2158
2197
  a(`let url = URL(string: "${t.href}")!`);
2159
2198
  const g = o ? Object.entries(o) : [];
@@ -2169,50 +2208,50 @@ ${l}]` : `[${e.join(n)}]`;
2169
2208
  });
2170
2209
  break;
2171
2210
  }
2172
- }), a("]"), a("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), s(), a("var request = URLRequest(url: components.url!)")), a(`request.httpMethod = "${i}"`), a(`request.timeoutInterval = ${n.timeout}`), Object.keys(e).length && a(`request.allHTTPHeaderFields = ${tt(e, n)}`), f && a("request.httpBody = postData"), s(), a("let (data, _) = try await URLSession.shared.data(for: request)"), a("print(String(decoding: data, as: UTF8.self))"), c();
2211
+ }), a("]"), a("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), a("var request = URLRequest(url: components.url!)")), a(`request.httpMethod = "${i}"`), a(`request.timeoutInterval = ${n.timeout}`), Object.keys(e).length && a(`request.allHTTPHeaderFields = ${et(e, n)}`), f && a("request.httpBody = postData"), l(), a("let (data, _) = try await URLSession.shared.data(for: request)"), a("print(String(decoding: data, as: UTF8.self))"), c();
2173
2212
  }
2174
- }, Vi = {
2213
+ }, Yi = {
2175
2214
  info: {
2176
2215
  key: "swift",
2177
2216
  title: "Swift",
2178
2217
  default: "urlsession"
2179
2218
  },
2180
2219
  clientsById: {
2181
- urlsession: Ji
2220
+ urlsession: Ki
2182
2221
  }
2183
- }, Di = {
2184
- c: Ba,
2185
- clojure: Ga,
2186
- csharp: Qa,
2187
- go: Ya,
2188
- http: Za,
2189
- java: oi,
2190
- javascript: ci,
2191
- json: fi,
2192
- kotlin: di,
2193
- node: bi,
2194
- objc: ji,
2195
- ocaml: wi,
2196
- php: Ci,
2197
- powershell: Ri,
2198
- python: Ai,
2199
- r: Li,
2200
- ruby: Fi,
2201
- shell: Wi,
2202
- swift: Vi
2203
- }, Ne = {}, _e = { exports: {} };
2222
+ }, Xi = {
2223
+ c: Ga,
2224
+ clojure: Da,
2225
+ csharp: Za,
2226
+ go: ti,
2227
+ http: ni,
2228
+ java: li,
2229
+ javascript: di,
2230
+ json: yi,
2231
+ kotlin: gi,
2232
+ node: wi,
2233
+ objc: Oi,
2234
+ ocaml: Pi,
2235
+ php: ki,
2236
+ powershell: Ii,
2237
+ python: Fi,
2238
+ r: Bi,
2239
+ ruby: Mi,
2240
+ shell: Qi,
2241
+ swift: Yi
2242
+ }, Ce = {}, Fe = { exports: {} };
2204
2243
  /*! https://mths.be/punycode v1.4.1 by @mathias */
2205
- var Qi = _e.exports, nn;
2206
- function Ki() {
2244
+ var Zi = Fe.exports, nn;
2245
+ function es() {
2207
2246
  return nn || (nn = 1, function(e, r) {
2208
2247
  (function(t) {
2209
- var o = r && !r.nodeType && r, i = e && !e.nodeType && e, l = typeof Ze == "object" && Ze;
2210
- (l.global === l || l.window === l || l.self === l) && (t = l);
2211
- var n, a = 2147483647, s = 36, c = 1, f = 26, g = 38, b = 700, m = 72, j = 128, v = "-", p = /^xn--/, h = /[^\x20-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, S = {
2248
+ var o = r && !r.nodeType && r, i = e && !e.nodeType && e, s = typeof Xe == "object" && Xe;
2249
+ (s.global === s || s.window === s || s.self === s) && (t = s);
2250
+ var n, a = 2147483647, l = 36, c = 1, f = 26, g = 38, b = 700, m = 72, j = 128, v = "-", p = /^xn--/, h = /[^\x20-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, S = {
2212
2251
  overflow: "Overflow: input needs wider integers to process",
2213
2252
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
2214
2253
  "invalid-input": "Invalid input"
2215
- }, T = s - c, d = Math.floor, O = String.fromCharCode, x;
2254
+ }, T = l - c, d = Math.floor, O = String.fromCharCode, x;
2216
2255
  function N(q) {
2217
2256
  throw new RangeError(S[q]);
2218
2257
  }
@@ -2239,14 +2278,14 @@ function Ki() {
2239
2278
  }).join("");
2240
2279
  }
2241
2280
  function ae(q) {
2242
- return q - 48 < 10 ? q - 22 : q - 65 < 26 ? q - 65 : q - 97 < 26 ? q - 97 : s;
2281
+ return q - 48 < 10 ? q - 22 : q - 65 < 26 ? q - 65 : q - 97 < 26 ? q - 97 : l;
2243
2282
  }
2244
2283
  function H(q, R) {
2245
2284
  return q + 22 + 75 * (q < 26) - ((R != 0) << 5);
2246
2285
  }
2247
2286
  function D(q, R, U) {
2248
2287
  var C = 0;
2249
- for (q = U ? d(q / b) : q >> 1, q += d(q / R); q > T * f >> 1; C += s)
2288
+ for (q = U ? d(q / b) : q >> 1, q += d(q / R); q > T * f >> 1; C += l)
2250
2289
  q = d(q / T);
2251
2290
  return d(C + (T + 1) * q / (q + g));
2252
2291
  }
@@ -2255,8 +2294,8 @@ function Ki() {
2255
2294
  for (K = q.lastIndexOf(v), K < 0 && (K = 0), ne = 0; ne < K; ++ne)
2256
2295
  q.charCodeAt(ne) >= 128 && N("not-basic"), R.push(q.charCodeAt(ne));
2257
2296
  for (J = K > 0 ? K + 1 : 0; J < U; ) {
2258
- for (I = L, F = 1, _ = s; J >= U && N("invalid-input"), Q = ae(q.charCodeAt(J++)), (Q >= s || Q > d((a - L) / F)) && N("overflow"), L += Q * F, G = _ <= z ? c : _ >= z + f ? f : _ - z, !(Q < G); _ += s)
2259
- Y = s - G, F > d(a / Y) && N("overflow"), F *= Y;
2297
+ for (I = L, F = 1, _ = l; J >= U && N("invalid-input"), Q = ae(q.charCodeAt(J++)), (Q >= l || Q > d((a - L) / F)) && N("overflow"), L += Q * F, G = _ <= z ? c : _ >= z + f ? f : _ - z, !(Q < G); _ += l)
2298
+ Y = l - G, F > d(a / Y) && N("overflow"), F *= Y;
2260
2299
  C = R.length + 1, z = D(L - I, C, I == 0), d(L / C) > a - W && N("overflow"), W += d(L / C), L %= C, R.splice(L++, 0, W);
2261
2300
  }
2262
2301
  return P(R);
@@ -2270,8 +2309,8 @@ function Ki() {
2270
2309
  F = q[z], F >= R && F < K && (K = F);
2271
2310
  for (G = C + 1, K - R > d((a - U) / G) && N("overflow"), U += (K - R) * G, R = K, z = 0; z < Q; ++z)
2272
2311
  if (F = q[z], F < R && ++U > a && N("overflow"), F == R) {
2273
- for (ne = U, J = s; I = J <= W ? c : J >= W + f ? f : J - W, !(ne < I); J += s)
2274
- oe = ne - I, Y = s - I, _.push(
2312
+ for (ne = U, J = l; I = J <= W ? c : J >= W + f ? f : J - W, !(ne < I); J += l)
2313
+ oe = ne - I, Y = l - I, _.push(
2275
2314
  O(H(I + oe % Y, 0))
2276
2315
  ), ne = d(oe / Y);
2277
2316
  _.push(O(H(ne, 0))), W = D(U, G, C == L), U = 0, ++C;
@@ -2320,100 +2359,100 @@ function Ki() {
2320
2359
  n.hasOwnProperty(x) && (o[x] = n[x]);
2321
2360
  else
2322
2361
  t.punycode = n;
2323
- })(Qi);
2324
- }(_e, _e.exports)), _e.exports;
2325
- }
2326
- var bt, on;
2327
- function bo() {
2328
- return on || (on = 1, bt = Object), bt;
2362
+ })(Zi);
2363
+ }(Fe, Fe.exports)), Fe.exports;
2329
2364
  }
2330
- var xt, an;
2331
- function Yi() {
2332
- return an || (an = 1, xt = Error), xt;
2333
- }
2334
- var jt, sn;
2335
- function Xi() {
2336
- return sn || (sn = 1, jt = EvalError), jt;
2337
- }
2338
- var $t, ln;
2339
- function Zi() {
2340
- return ln || (ln = 1, $t = RangeError), $t;
2341
- }
2342
- var wt, cn;
2343
- function es() {
2344
- return cn || (cn = 1, wt = ReferenceError), wt;
2345
- }
2346
- var St, un;
2365
+ var vt, on;
2347
2366
  function xo() {
2348
- return un || (un = 1, St = SyntaxError), St;
2367
+ return on || (on = 1, vt = Object), vt;
2349
2368
  }
2350
- var Ot, fn;
2351
- function We() {
2352
- return fn || (fn = 1, Ot = TypeError), Ot;
2353
- }
2354
- var Tt, pn;
2369
+ var bt, an;
2355
2370
  function ts() {
2356
- return pn || (pn = 1, Tt = URIError), Tt;
2371
+ return an || (an = 1, bt = Error), bt;
2357
2372
  }
2358
- var Pt, dn;
2373
+ var xt, sn;
2359
2374
  function rs() {
2360
- return dn || (dn = 1, Pt = Math.abs), Pt;
2375
+ return sn || (sn = 1, xt = EvalError), xt;
2361
2376
  }
2362
- var Ct, hn;
2377
+ var jt, ln;
2363
2378
  function ns() {
2364
- return hn || (hn = 1, Ct = Math.floor), Ct;
2379
+ return ln || (ln = 1, jt = RangeError), jt;
2365
2380
  }
2366
- var Nt, yn;
2381
+ var $t, cn;
2367
2382
  function os() {
2368
- return yn || (yn = 1, Nt = Math.max), Nt;
2383
+ return cn || (cn = 1, $t = ReferenceError), $t;
2384
+ }
2385
+ var wt, un;
2386
+ function jo() {
2387
+ return un || (un = 1, wt = SyntaxError), wt;
2369
2388
  }
2370
- var qt, mn;
2389
+ var St, fn;
2390
+ function Ge() {
2391
+ return fn || (fn = 1, St = TypeError), St;
2392
+ }
2393
+ var Ot, pn;
2371
2394
  function as() {
2372
- return mn || (mn = 1, qt = Math.min), qt;
2395
+ return pn || (pn = 1, Ot = URIError), Ot;
2373
2396
  }
2374
- var Rt, gn;
2397
+ var Tt, dn;
2375
2398
  function is() {
2376
- return gn || (gn = 1, Rt = Math.pow), Rt;
2399
+ return dn || (dn = 1, Tt = Math.abs), Tt;
2377
2400
  }
2378
- var kt, vn;
2401
+ var Pt, hn;
2379
2402
  function ss() {
2380
- return vn || (vn = 1, kt = Math.round), kt;
2403
+ return hn || (hn = 1, Pt = Math.floor), Pt;
2381
2404
  }
2382
- var Et, bn;
2405
+ var Ct, yn;
2383
2406
  function ls() {
2384
- return bn || (bn = 1, Et = Number.isNaN || function(r) {
2385
- return r !== r;
2386
- }), Et;
2407
+ return yn || (yn = 1, Ct = Math.max), Ct;
2387
2408
  }
2388
- var At, xn;
2409
+ var Nt, mn;
2389
2410
  function cs() {
2390
- if (xn) return At;
2411
+ return mn || (mn = 1, Nt = Math.min), Nt;
2412
+ }
2413
+ var qt, gn;
2414
+ function us() {
2415
+ return gn || (gn = 1, qt = Math.pow), qt;
2416
+ }
2417
+ var Rt, vn;
2418
+ function fs() {
2419
+ return vn || (vn = 1, Rt = Math.round), Rt;
2420
+ }
2421
+ var kt, bn;
2422
+ function ps() {
2423
+ return bn || (bn = 1, kt = Number.isNaN || function(r) {
2424
+ return r !== r;
2425
+ }), kt;
2426
+ }
2427
+ var Et, xn;
2428
+ function ds() {
2429
+ if (xn) return Et;
2391
2430
  xn = 1;
2392
- var e = /* @__PURE__ */ ls();
2393
- return At = function(t) {
2431
+ var e = /* @__PURE__ */ ps();
2432
+ return Et = function(t) {
2394
2433
  return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
2395
- }, At;
2434
+ }, Et;
2396
2435
  }
2397
- var It, jn;
2398
- function us() {
2399
- return jn || (jn = 1, It = Object.getOwnPropertyDescriptor), It;
2436
+ var At, jn;
2437
+ function hs() {
2438
+ return jn || (jn = 1, At = Object.getOwnPropertyDescriptor), At;
2400
2439
  }
2401
- var Lt, $n;
2402
- function ot() {
2403
- if ($n) return Lt;
2440
+ var It, $n;
2441
+ function nt() {
2442
+ if ($n) return It;
2404
2443
  $n = 1;
2405
- var e = /* @__PURE__ */ us();
2444
+ var e = /* @__PURE__ */ hs();
2406
2445
  if (e)
2407
2446
  try {
2408
2447
  e([], "length");
2409
2448
  } catch {
2410
2449
  e = null;
2411
2450
  }
2412
- return Lt = e, Lt;
2451
+ return It = e, It;
2413
2452
  }
2414
- var Ut, wn;
2415
- function at() {
2416
- if (wn) return Ut;
2453
+ var Lt, wn;
2454
+ function ot() {
2455
+ if (wn) return Lt;
2417
2456
  wn = 1;
2418
2457
  var e = Object.defineProperty || !1;
2419
2458
  if (e)
@@ -2422,11 +2461,11 @@ function at() {
2422
2461
  } catch {
2423
2462
  e = !1;
2424
2463
  }
2425
- return Ut = e, Ut;
2464
+ return Lt = e, Lt;
2426
2465
  }
2427
- var Ft, Sn;
2428
- function fs() {
2429
- return Sn || (Sn = 1, Ft = function() {
2466
+ var Ut, Sn;
2467
+ function ys() {
2468
+ return Sn || (Sn = 1, Ut = function() {
2430
2469
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2431
2470
  return !1;
2432
2471
  if (typeof Symbol.iterator == "symbol")
@@ -2436,7 +2475,7 @@ function fs() {
2436
2475
  return !1;
2437
2476
  var i = 42;
2438
2477
  r[t] = i;
2439
- for (var l in r)
2478
+ for (var s in r)
2440
2479
  return !1;
2441
2480
  if (typeof Object.keys == "function" && Object.keys(r).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(r).length !== 0)
2442
2481
  return !1;
@@ -2452,52 +2491,52 @@ function fs() {
2452
2491
  return !1;
2453
2492
  }
2454
2493
  return !0;
2455
- }), Ft;
2494
+ }), Ut;
2456
2495
  }
2457
- var _t, On;
2458
- function ps() {
2459
- if (On) return _t;
2496
+ var Ft, On;
2497
+ function ms() {
2498
+ if (On) return Ft;
2460
2499
  On = 1;
2461
- var e = typeof Symbol < "u" && Symbol, r = fs();
2462
- return _t = function() {
2500
+ var e = typeof Symbol < "u" && Symbol, r = ys();
2501
+ return Ft = function() {
2463
2502
  return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
2464
- }, _t;
2503
+ }, Ft;
2465
2504
  }
2466
- var Bt, Tn;
2467
- function jo() {
2468
- return Tn || (Tn = 1, Bt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Bt;
2469
- }
2470
- var Ht, Pn;
2505
+ var _t, Tn;
2471
2506
  function $o() {
2472
- if (Pn) return Ht;
2507
+ return Tn || (Tn = 1, _t = typeof Reflect < "u" && Reflect.getPrototypeOf || null), _t;
2508
+ }
2509
+ var Bt, Pn;
2510
+ function wo() {
2511
+ if (Pn) return Bt;
2473
2512
  Pn = 1;
2474
- var e = /* @__PURE__ */ bo();
2475
- return Ht = e.getPrototypeOf || null, Ht;
2513
+ var e = /* @__PURE__ */ xo();
2514
+ return Bt = e.getPrototypeOf || null, Bt;
2476
2515
  }
2477
- var Mt, Cn;
2478
- function ds() {
2479
- if (Cn) return Mt;
2516
+ var Ht, Cn;
2517
+ function gs() {
2518
+ if (Cn) return Ht;
2480
2519
  Cn = 1;
2481
- var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, t = Math.max, o = "[object Function]", i = function(s, c) {
2482
- for (var f = [], g = 0; g < s.length; g += 1)
2483
- f[g] = s[g];
2520
+ var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, t = Math.max, o = "[object Function]", i = function(l, c) {
2521
+ for (var f = [], g = 0; g < l.length; g += 1)
2522
+ f[g] = l[g];
2484
2523
  for (var b = 0; b < c.length; b += 1)
2485
- f[b + s.length] = c[b];
2524
+ f[b + l.length] = c[b];
2486
2525
  return f;
2487
- }, l = function(s, c) {
2488
- for (var f = [], g = c, b = 0; g < s.length; g += 1, b += 1)
2489
- f[b] = s[g];
2526
+ }, s = function(l, c) {
2527
+ for (var f = [], g = c, b = 0; g < l.length; g += 1, b += 1)
2528
+ f[b] = l[g];
2490
2529
  return f;
2491
- }, n = function(a, s) {
2530
+ }, n = function(a, l) {
2492
2531
  for (var c = "", f = 0; f < a.length; f += 1)
2493
- c += a[f], f + 1 < a.length && (c += s);
2532
+ c += a[f], f + 1 < a.length && (c += l);
2494
2533
  return c;
2495
2534
  };
2496
- return Mt = function(s) {
2535
+ return Ht = function(l) {
2497
2536
  var c = this;
2498
2537
  if (typeof c != "function" || r.apply(c) !== o)
2499
2538
  throw new TypeError(e + c);
2500
- for (var f = l(arguments, 1), g, b = function() {
2539
+ for (var f = s(arguments, 1), g, b = function() {
2501
2540
  if (this instanceof g) {
2502
2541
  var h = c.apply(
2503
2542
  this,
@@ -2506,7 +2545,7 @@ function ds() {
2506
2545
  return Object(h) === h ? h : this;
2507
2546
  }
2508
2547
  return c.apply(
2509
- s,
2548
+ l,
2510
2549
  i(f, arguments)
2511
2550
  );
2512
2551
  }, m = t(0, c.length - f.length), j = [], v = 0; v < m; v++)
@@ -2517,50 +2556,50 @@ function ds() {
2517
2556
  p.prototype = c.prototype, g.prototype = new p(), p.prototype = null;
2518
2557
  }
2519
2558
  return g;
2520
- }, Mt;
2559
+ }, Ht;
2521
2560
  }
2522
- var zt, Nn;
2523
- function Je() {
2524
- if (Nn) return zt;
2561
+ var Mt, Nn;
2562
+ function We() {
2563
+ if (Nn) return Mt;
2525
2564
  Nn = 1;
2526
- var e = ds();
2527
- return zt = Function.prototype.bind || e, zt;
2565
+ var e = gs();
2566
+ return Mt = Function.prototype.bind || e, Mt;
2528
2567
  }
2529
- var Gt, qn;
2568
+ var zt, qn;
2530
2569
  function Tr() {
2531
- return qn || (qn = 1, Gt = Function.prototype.call), Gt;
2570
+ return qn || (qn = 1, zt = Function.prototype.call), zt;
2532
2571
  }
2533
- var Wt, Rn;
2572
+ var Gt, Rn;
2534
2573
  function Pr() {
2535
- return Rn || (Rn = 1, Wt = Function.prototype.apply), Wt;
2574
+ return Rn || (Rn = 1, Gt = Function.prototype.apply), Gt;
2536
2575
  }
2537
- var Jt, kn;
2538
- function hs() {
2539
- return kn || (kn = 1, Jt = typeof Reflect < "u" && Reflect && Reflect.apply), Jt;
2576
+ var Wt, kn;
2577
+ function vs() {
2578
+ return kn || (kn = 1, Wt = typeof Reflect < "u" && Reflect && Reflect.apply), Wt;
2540
2579
  }
2541
- var Vt, En;
2542
- function wo() {
2543
- if (En) return Vt;
2580
+ var Jt, En;
2581
+ function So() {
2582
+ if (En) return Jt;
2544
2583
  En = 1;
2545
- var e = Je(), r = Pr(), t = Tr(), o = hs();
2546
- return Vt = o || e.call(t, r), Vt;
2584
+ var e = We(), r = Pr(), t = Tr(), o = vs();
2585
+ return Jt = o || e.call(t, r), Jt;
2547
2586
  }
2548
- var Dt, An;
2549
- function So() {
2550
- if (An) return Dt;
2587
+ var Vt, An;
2588
+ function Oo() {
2589
+ if (An) return Vt;
2551
2590
  An = 1;
2552
- var e = Je(), r = /* @__PURE__ */ We(), t = Tr(), o = wo();
2553
- return Dt = function(l) {
2554
- if (l.length < 1 || typeof l[0] != "function")
2591
+ var e = We(), r = /* @__PURE__ */ Ge(), t = Tr(), o = So();
2592
+ return Vt = function(s) {
2593
+ if (s.length < 1 || typeof s[0] != "function")
2555
2594
  throw new r("a function is required");
2556
- return o(e, t, l);
2557
- }, Dt;
2595
+ return o(e, t, s);
2596
+ }, Vt;
2558
2597
  }
2559
- var Qt, In;
2560
- function ys() {
2561
- if (In) return Qt;
2598
+ var Dt, In;
2599
+ function bs() {
2600
+ if (In) return Dt;
2562
2601
  In = 1;
2563
- var e = So(), r = /* @__PURE__ */ ot(), t;
2602
+ var e = Oo(), r = /* @__PURE__ */ nt(), t;
2564
2603
  try {
2565
2604
  t = /** @type {{ __proto__?: typeof Array.prototype }} */
2566
2605
  [].__proto__ === Array.prototype;
@@ -2572,20 +2611,20 @@ function ys() {
2572
2611
  Object.prototype,
2573
2612
  /** @type {keyof typeof Object.prototype} */
2574
2613
  "__proto__"
2575
- ), i = Object, l = i.getPrototypeOf;
2576
- return Qt = o && typeof o.get == "function" ? e([o.get]) : typeof l == "function" ? (
2614
+ ), i = Object, s = i.getPrototypeOf;
2615
+ return Dt = o && typeof o.get == "function" ? e([o.get]) : typeof s == "function" ? (
2577
2616
  /** @type {import('./get')} */
2578
2617
  function(a) {
2579
- return l(a == null ? a : i(a));
2618
+ return s(a == null ? a : i(a));
2580
2619
  }
2581
- ) : !1, Qt;
2620
+ ) : !1, Dt;
2582
2621
  }
2583
- var Kt, Ln;
2584
- function ms() {
2585
- if (Ln) return Kt;
2622
+ var Qt, Ln;
2623
+ function xs() {
2624
+ if (Ln) return Qt;
2586
2625
  Ln = 1;
2587
- var e = jo(), r = $o(), t = /* @__PURE__ */ ys();
2588
- return Kt = e ? function(i) {
2626
+ var e = $o(), r = wo(), t = /* @__PURE__ */ bs();
2627
+ return Qt = e ? function(i) {
2589
2628
  return e(i);
2590
2629
  } : r ? function(i) {
2591
2630
  if (!i || typeof i != "object" && typeof i != "function")
@@ -2593,25 +2632,25 @@ function ms() {
2593
2632
  return r(i);
2594
2633
  } : t ? function(i) {
2595
2634
  return t(i);
2596
- } : null, Kt;
2635
+ } : null, Qt;
2597
2636
  }
2598
- var Yt, Un;
2599
- function gs() {
2600
- if (Un) return Yt;
2637
+ var Kt, Un;
2638
+ function js() {
2639
+ if (Un) return Kt;
2601
2640
  Un = 1;
2602
- var e = Function.prototype.call, r = Object.prototype.hasOwnProperty, t = Je();
2603
- return Yt = t.call(e, r), Yt;
2641
+ var e = Function.prototype.call, r = Object.prototype.hasOwnProperty, t = We();
2642
+ return Kt = t.call(e, r), Kt;
2604
2643
  }
2605
- var Xt, Fn;
2644
+ var Yt, Fn;
2606
2645
  function Cr() {
2607
- if (Fn) return Xt;
2646
+ if (Fn) return Yt;
2608
2647
  Fn = 1;
2609
- var e, r = /* @__PURE__ */ bo(), t = /* @__PURE__ */ Yi(), o = /* @__PURE__ */ Xi(), i = /* @__PURE__ */ Zi(), l = /* @__PURE__ */ es(), n = /* @__PURE__ */ xo(), a = /* @__PURE__ */ We(), s = /* @__PURE__ */ ts(), c = /* @__PURE__ */ rs(), f = /* @__PURE__ */ ns(), g = /* @__PURE__ */ os(), b = /* @__PURE__ */ as(), m = /* @__PURE__ */ is(), j = /* @__PURE__ */ ss(), v = /* @__PURE__ */ cs(), p = Function, h = function(J) {
2648
+ var e, r = /* @__PURE__ */ xo(), t = /* @__PURE__ */ ts(), o = /* @__PURE__ */ rs(), i = /* @__PURE__ */ ns(), s = /* @__PURE__ */ os(), n = /* @__PURE__ */ jo(), a = /* @__PURE__ */ Ge(), l = /* @__PURE__ */ as(), c = /* @__PURE__ */ is(), f = /* @__PURE__ */ ss(), g = /* @__PURE__ */ ls(), b = /* @__PURE__ */ cs(), m = /* @__PURE__ */ us(), j = /* @__PURE__ */ fs(), v = /* @__PURE__ */ ds(), p = Function, h = function(J) {
2610
2649
  try {
2611
2650
  return p('"use strict"; return (' + J + ").constructor;")();
2612
2651
  } catch {
2613
2652
  }
2614
- }, y = /* @__PURE__ */ ot(), S = /* @__PURE__ */ at(), T = function() {
2653
+ }, y = /* @__PURE__ */ nt(), S = /* @__PURE__ */ ot(), T = function() {
2615
2654
  throw new a();
2616
2655
  }, d = y ? function() {
2617
2656
  try {
@@ -2623,7 +2662,7 @@ function Cr() {
2623
2662
  return T;
2624
2663
  }
2625
2664
  }
2626
- }() : T, O = ps()(), x = ms(), N = $o(), A = jo(), E = Pr(), B = Tr(), P = {}, ae = typeof Uint8Array > "u" || !x ? e : x(Uint8Array), H = {
2665
+ }() : T, O = ms()(), x = xs(), N = wo(), A = $o(), E = Pr(), B = Tr(), P = {}, ae = typeof Uint8Array > "u" || !x ? e : x(Uint8Array), H = {
2627
2666
  __proto__: null,
2628
2667
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
2629
2668
  "%Array%": Array,
@@ -2672,7 +2711,7 @@ function Cr() {
2672
2711
  "%Promise%": typeof Promise > "u" ? e : Promise,
2673
2712
  "%Proxy%": typeof Proxy > "u" ? e : Proxy,
2674
2713
  "%RangeError%": i,
2675
- "%ReferenceError%": l,
2714
+ "%ReferenceError%": s,
2676
2715
  "%Reflect%": typeof Reflect > "u" ? e : Reflect,
2677
2716
  "%RegExp%": RegExp,
2678
2717
  "%Set%": typeof Set > "u" ? e : Set,
@@ -2689,7 +2728,7 @@ function Cr() {
2689
2728
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
2690
2729
  "%Uint16Array%": typeof Uint16Array > "u" ? e : Uint16Array,
2691
2730
  "%Uint32Array%": typeof Uint32Array > "u" ? e : Uint32Array,
2692
- "%URIError%": s,
2731
+ "%URIError%": l,
2693
2732
  "%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
2694
2733
  "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
2695
2734
  "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
@@ -2782,7 +2821,7 @@ function Cr() {
2782
2821
  "%URIErrorPrototype%": ["URIError", "prototype"],
2783
2822
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2784
2823
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2785
- }, k = Je(), re = /* @__PURE__ */ gs(), q = k.call(B, Array.prototype.concat), R = k.call(E, Array.prototype.splice), U = k.call(B, String.prototype.replace), C = k.call(B, String.prototype.slice), L = k.call(B, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(I) {
2824
+ }, k = We(), re = /* @__PURE__ */ js(), q = k.call(B, Array.prototype.concat), R = k.call(E, Array.prototype.splice), U = k.call(B, String.prototype.replace), C = k.call(B, String.prototype.slice), L = k.call(B, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(I) {
2786
2825
  var F = C(I, 0, 1), _ = C(I, -1);
2787
2826
  if (F === "%" && _ !== "%")
2788
2827
  throw new n("invalid intrinsic syntax, expected closing `%`");
@@ -2806,20 +2845,20 @@ function Cr() {
2806
2845
  }
2807
2846
  throw new n("intrinsic " + I + " does not exist!");
2808
2847
  };
2809
- return Xt = function(I, F) {
2848
+ return Yt = function(I, F) {
2810
2849
  if (typeof I != "string" || I.length === 0)
2811
2850
  throw new a("intrinsic name must be a non-empty string");
2812
2851
  if (arguments.length > 1 && typeof F != "boolean")
2813
2852
  throw new a('"allowMissing" argument must be a boolean');
2814
2853
  if (L(/^%?[^%]*%?$/, I) === null)
2815
2854
  throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
2816
- var _ = K(I), Q = _.length > 0 ? _[0] : "", G = ne("%" + Q + "%", F), Y = G.name, oe = G.value, he = !1, Oe = G.alias;
2817
- Oe && (Q = Oe[0], R(_, q([0, 1], Oe)));
2818
- for (var Re = 1, Te = !0; Re < _.length; Re += 1) {
2819
- var me = _[Re], ke = C(me, 0, 1), Ee = C(me, -1);
2820
- if ((ke === '"' || ke === "'" || ke === "`" || Ee === '"' || Ee === "'" || Ee === "`") && ke !== Ee)
2855
+ var _ = K(I), Q = _.length > 0 ? _[0] : "", G = ne("%" + Q + "%", F), Y = G.name, oe = G.value, he = !1, Se = G.alias;
2856
+ Se && (Q = Se[0], R(_, q([0, 1], Se)));
2857
+ for (var qe = 1, Oe = !0; qe < _.length; qe += 1) {
2858
+ var me = _[qe], Re = C(me, 0, 1), ke = C(me, -1);
2859
+ if ((Re === '"' || Re === "'" || Re === "`" || ke === '"' || ke === "'" || ke === "`") && Re !== ke)
2821
2860
  throw new n("property names with quotes must have matching quotes");
2822
- if ((me === "constructor" || !Te) && (he = !0), Q += "." + me, Y = "%" + Q + "%", re(H, Y))
2861
+ if ((me === "constructor" || !Oe) && (he = !0), Q += "." + me, Y = "%" + Q + "%", re(H, Y))
2823
2862
  oe = H[Y];
2824
2863
  else if (oe != null) {
2825
2864
  if (!(me in oe)) {
@@ -2827,24 +2866,24 @@ function Cr() {
2827
2866
  throw new a("base intrinsic for " + I + " exists, but the property is not available.");
2828
2867
  return;
2829
2868
  }
2830
- if (y && Re + 1 >= _.length) {
2831
- var Pe = y(oe, me);
2832
- Te = !!Pe, Te && "get" in Pe && !("originalValue" in Pe.get) ? oe = Pe.get : oe = oe[me];
2869
+ if (y && qe + 1 >= _.length) {
2870
+ var Te = y(oe, me);
2871
+ Oe = !!Te, Oe && "get" in Te && !("originalValue" in Te.get) ? oe = Te.get : oe = oe[me];
2833
2872
  } else
2834
- Te = re(oe, me), oe = oe[me];
2835
- Te && !he && (H[Y] = oe);
2873
+ Oe = re(oe, me), oe = oe[me];
2874
+ Oe && !he && (H[Y] = oe);
2836
2875
  }
2837
2876
  }
2838
2877
  return oe;
2839
- }, Xt;
2878
+ }, Yt;
2840
2879
  }
2841
- var Zt = { exports: {} }, er, _n;
2842
- function vs() {
2843
- if (_n) return er;
2880
+ var Xt = { exports: {} }, Zt, _n;
2881
+ function $s() {
2882
+ if (_n) return Zt;
2844
2883
  _n = 1;
2845
- var e = /* @__PURE__ */ at(), r = /* @__PURE__ */ xo(), t = /* @__PURE__ */ We(), o = /* @__PURE__ */ ot();
2846
- return er = function(l, n, a) {
2847
- if (!l || typeof l != "object" && typeof l != "function")
2884
+ var e = /* @__PURE__ */ ot(), r = /* @__PURE__ */ jo(), t = /* @__PURE__ */ Ge(), o = /* @__PURE__ */ nt();
2885
+ return Zt = function(s, n, a) {
2886
+ if (!s || typeof s != "object" && typeof s != "function")
2848
2887
  throw new t("`obj` must be an object or a function`");
2849
2888
  if (typeof n != "string" && typeof n != "symbol")
2850
2889
  throw new t("`property` must be a string or a symbol`");
@@ -2856,25 +2895,25 @@ function vs() {
2856
2895
  throw new t("`nonConfigurable`, if provided, must be a boolean or null");
2857
2896
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
2858
2897
  throw new t("`loose`, if provided, must be a boolean");
2859
- var s = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, f = arguments.length > 5 ? arguments[5] : null, g = arguments.length > 6 ? arguments[6] : !1, b = !!o && o(l, n);
2898
+ var l = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, f = arguments.length > 5 ? arguments[5] : null, g = arguments.length > 6 ? arguments[6] : !1, b = !!o && o(s, n);
2860
2899
  if (e)
2861
- e(l, n, {
2900
+ e(s, n, {
2862
2901
  configurable: f === null && b ? b.configurable : !f,
2863
- enumerable: s === null && b ? b.enumerable : !s,
2902
+ enumerable: l === null && b ? b.enumerable : !l,
2864
2903
  value: a,
2865
2904
  writable: c === null && b ? b.writable : !c
2866
2905
  });
2867
- else if (g || !s && !c && !f)
2868
- l[n] = a;
2906
+ else if (g || !l && !c && !f)
2907
+ s[n] = a;
2869
2908
  else
2870
2909
  throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2871
- }, er;
2910
+ }, Zt;
2872
2911
  }
2873
- var tr, Bn;
2874
- function bs() {
2875
- if (Bn) return tr;
2912
+ var er, Bn;
2913
+ function ws() {
2914
+ if (Bn) return er;
2876
2915
  Bn = 1;
2877
- var e = /* @__PURE__ */ at(), r = function() {
2916
+ var e = /* @__PURE__ */ ot(), r = function() {
2878
2917
  return !!e;
2879
2918
  };
2880
2919
  return r.hasArrayLengthDefineBug = function() {
@@ -2885,17 +2924,17 @@ function bs() {
2885
2924
  } catch {
2886
2925
  return !0;
2887
2926
  }
2888
- }, tr = r, tr;
2927
+ }, er = r, er;
2889
2928
  }
2890
- var rr, Hn;
2891
- function xs() {
2892
- if (Hn) return rr;
2929
+ var tr, Hn;
2930
+ function Ss() {
2931
+ if (Hn) return tr;
2893
2932
  Hn = 1;
2894
- var e = /* @__PURE__ */ Cr(), r = /* @__PURE__ */ vs(), t = /* @__PURE__ */ bs()(), o = /* @__PURE__ */ ot(), i = /* @__PURE__ */ We(), l = e("%Math.floor%");
2895
- return rr = function(a, s) {
2933
+ var e = /* @__PURE__ */ Cr(), r = /* @__PURE__ */ $s(), t = /* @__PURE__ */ ws()(), o = /* @__PURE__ */ nt(), i = /* @__PURE__ */ Ge(), s = e("%Math.floor%");
2934
+ return tr = function(a, l) {
2896
2935
  if (typeof a != "function")
2897
2936
  throw new i("`fn` is not a function");
2898
- if (typeof s != "number" || s < 0 || s > 4294967295 || l(s) !== s)
2937
+ if (typeof l != "number" || l < 0 || l > 4294967295 || s(l) !== l)
2899
2938
  throw new i("`length` must be a positive 32-bit integer");
2900
2939
  var c = arguments.length > 2 && !!arguments[2], f = !0, g = !0;
2901
2940
  if ("length" in a && o) {
@@ -2906,59 +2945,59 @@ function xs() {
2906
2945
  /** @type {Parameters<define>[0]} */
2907
2946
  a,
2908
2947
  "length",
2909
- s,
2948
+ l,
2910
2949
  !0,
2911
2950
  !0
2912
2951
  ) : r(
2913
2952
  /** @type {Parameters<define>[0]} */
2914
2953
  a,
2915
2954
  "length",
2916
- s
2955
+ l
2917
2956
  )), a;
2918
- }, rr;
2957
+ }, tr;
2919
2958
  }
2920
- var nr, Mn;
2921
- function js() {
2922
- if (Mn) return nr;
2959
+ var rr, Mn;
2960
+ function Os() {
2961
+ if (Mn) return rr;
2923
2962
  Mn = 1;
2924
- var e = Je(), r = Pr(), t = wo();
2925
- return nr = function() {
2963
+ var e = We(), r = Pr(), t = So();
2964
+ return rr = function() {
2926
2965
  return t(e, r, arguments);
2927
- }, nr;
2966
+ }, rr;
2928
2967
  }
2929
2968
  var zn;
2930
- function $s() {
2969
+ function Ts() {
2931
2970
  return zn || (zn = 1, function(e) {
2932
- var r = /* @__PURE__ */ xs(), t = /* @__PURE__ */ at(), o = So(), i = js();
2971
+ var r = /* @__PURE__ */ Ss(), t = /* @__PURE__ */ ot(), o = Oo(), i = Os();
2933
2972
  e.exports = function(n) {
2934
- var a = o(arguments), s = n.length - (arguments.length - 1);
2973
+ var a = o(arguments), l = n.length - (arguments.length - 1);
2935
2974
  return r(
2936
2975
  a,
2937
- 1 + (s > 0 ? s : 0),
2976
+ 1 + (l > 0 ? l : 0),
2938
2977
  !0
2939
2978
  );
2940
2979
  }, t ? t(e.exports, "apply", { value: i }) : e.exports.apply = i;
2941
- }(Zt)), Zt.exports;
2980
+ }(Xt)), Xt.exports;
2942
2981
  }
2943
- var or, Gn;
2944
- function ws() {
2945
- if (Gn) return or;
2982
+ var nr, Gn;
2983
+ function Ps() {
2984
+ if (Gn) return nr;
2946
2985
  Gn = 1;
2947
- var e = /* @__PURE__ */ Cr(), r = $s(), t = r(e("String.prototype.indexOf"));
2948
- return or = function(i, l) {
2949
- var n = e(i, !!l);
2986
+ var e = /* @__PURE__ */ Cr(), r = Ts(), t = r(e("String.prototype.indexOf"));
2987
+ return nr = function(i, s) {
2988
+ var n = e(i, !!s);
2950
2989
  return typeof n == "function" && t(i, ".prototype.") > -1 ? r(n) : n;
2951
- }, or;
2990
+ }, nr;
2952
2991
  }
2953
- const Ss = {}, Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2992
+ const Cs = {}, Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2954
2993
  __proto__: null,
2955
- default: Ss
2956
- }, Symbol.toStringTag, { value: "Module" })), Ts = /* @__PURE__ */ $a(Os);
2957
- var ar, Wn;
2958
- function Ps() {
2959
- if (Wn) return ar;
2994
+ default: Cs
2995
+ }, Symbol.toStringTag, { value: "Module" })), qs = /* @__PURE__ */ Sa(Ns);
2996
+ var or, Wn;
2997
+ function Rs() {
2998
+ if (Wn) return or;
2960
2999
  Wn = 1;
2961
- 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, i = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = i && l && typeof l.get == "function" ? l.get : null, a = i && Set.prototype.forEach, s = typeof WeakMap == "function" && WeakMap.prototype, c = s ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, g = f ? WeakSet.prototype.has : null, b = typeof WeakRef == "function" && WeakRef.prototype, m = b ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, v = Object.prototype.toString, p = Function.prototype.toString, h = String.prototype.match, y = String.prototype.slice, S = String.prototype.replace, T = String.prototype.toUpperCase, d = String.prototype.toLowerCase, O = RegExp.prototype.test, x = Array.prototype.concat, N = Array.prototype.join, A = 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, le = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function($) {
3000
+ 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, i = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = i && s && typeof s.get == "function" ? s.get : null, a = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, g = f ? WeakSet.prototype.has : null, b = typeof WeakRef == "function" && WeakRef.prototype, m = b ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, v = Object.prototype.toString, p = Function.prototype.toString, h = String.prototype.match, y = String.prototype.slice, S = String.prototype.replace, T = String.prototype.toUpperCase, d = String.prototype.toLowerCase, O = RegExp.prototype.test, x = Array.prototype.concat, N = Array.prototype.join, A = 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, le = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function($) {
2962
3001
  return $.__proto__;
2963
3002
  } : null);
2964
3003
  function k($, w) {
@@ -2974,8 +3013,8 @@ function Ps() {
2974
3013
  }
2975
3014
  return S.call(w, X, "$&_");
2976
3015
  }
2977
- var re = Ts, q = re.custom, R = F(q) ? q : null;
2978
- ar = function $(w, X, ee, ie) {
3016
+ var re = qs, q = re.custom, R = F(q) ? q : null;
3017
+ or = function $(w, X, ee, ie) {
2979
3018
  var M = X || {};
2980
3019
  if (G(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
2981
3020
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -2988,7 +3027,7 @@ function Ps() {
2988
3027
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
2989
3028
  if (G(M, "numericSeparator") && typeof M.numericSeparator != "boolean")
2990
3029
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
2991
- var Ce = M.numericSeparator;
3030
+ var Pe = M.numericSeparator;
2992
3031
  if (typeof w > "u")
2993
3032
  return "undefined";
2994
3033
  if (w === null)
@@ -2996,96 +3035,96 @@ function Ps() {
2996
3035
  if (typeof w == "boolean")
2997
3036
  return w ? "true" : "false";
2998
3037
  if (typeof w == "string")
2999
- return Pe(w, M);
3038
+ return Te(w, M);
3000
3039
  if (typeof w == "number") {
3001
3040
  if (w === 0)
3002
3041
  return 1 / 0 / w > 0 ? "0" : "-0";
3003
3042
  var de = String(w);
3004
- return Ce ? k(w, de) : de;
3043
+ return Pe ? k(w, de) : de;
3005
3044
  }
3006
3045
  if (typeof w == "bigint") {
3007
3046
  var $e = String(w) + "n";
3008
- return Ce ? k(w, $e) : $e;
3047
+ return Pe ? k(w, $e) : $e;
3009
3048
  }
3010
- var lt = typeof M.depth > "u" ? 5 : M.depth;
3011
- if (typeof ee > "u" && (ee = 0), ee >= lt && lt > 0 && typeof w == "object")
3049
+ var st = typeof M.depth > "u" ? 5 : M.depth;
3050
+ if (typeof ee > "u" && (ee = 0), ee >= st && st > 0 && typeof w == "object")
3012
3051
  return L(w) ? "[Array]" : "[Object]";
3013
- var Ae = Ao(M, ee);
3052
+ var Ee = Io(M, ee);
3014
3053
  if (typeof ie > "u")
3015
3054
  ie = [];
3016
3055
  else if (he(ie, w) >= 0)
3017
3056
  return "[Circular]";
3018
- function ge(Ie, Qe, Lo) {
3019
- if (Qe && (ie = A.call(ie), ie.push(Qe)), Lo) {
3057
+ function ge(Ae, De, Uo) {
3058
+ if (De && (ie = A.call(ie), ie.push(De)), Uo) {
3020
3059
  var Br = {
3021
3060
  depth: M.depth
3022
3061
  };
3023
- return G(M, "quoteStyle") && (Br.quoteStyle = M.quoteStyle), $(Ie, Br, ee + 1, ie);
3062
+ return G(M, "quoteStyle") && (Br.quoteStyle = M.quoteStyle), $(Ae, Br, ee + 1, ie);
3024
3063
  }
3025
- return $(Ie, M, ee + 1, ie);
3064
+ return $(Ae, M, ee + 1, ie);
3026
3065
  }
3027
3066
  if (typeof w == "function" && !z(w)) {
3028
- var Er = oe(w), Ar = Ve(w, ge);
3067
+ var Er = oe(w), Ar = Je(w, ge);
3029
3068
  return "[Function" + (Er ? ": " + Er : " (anonymous)") + "]" + (Ar.length > 0 ? " { " + N.call(Ar, ", ") + " }" : "");
3030
3069
  }
3031
3070
  if (F(w)) {
3032
3071
  var Ir = H ? S.call(String(w), /^(Symbol\(.*\))_[^)]*$/, "$1") : ae.call(w);
3033
- return typeof w == "object" && !H ? Ue(Ir) : Ir;
3072
+ return typeof w == "object" && !H ? Le(Ir) : Ir;
3034
3073
  }
3035
- if (Ee(w)) {
3036
- for (var Fe = "<" + d.call(String(w.nodeName)), ct = w.attributes || [], De = 0; De < ct.length; De++)
3037
- Fe += " " + ct[De].name + "=" + U(C(ct[De].value), "double", M);
3038
- return Fe += ">", w.childNodes && w.childNodes.length && (Fe += "..."), Fe += "</" + d.call(String(w.nodeName)) + ">", Fe;
3074
+ if (ke(w)) {
3075
+ for (var Ue = "<" + d.call(String(w.nodeName)), lt = w.attributes || [], Ve = 0; Ve < lt.length; Ve++)
3076
+ Ue += " " + lt[Ve].name + "=" + U(C(lt[Ve].value), "double", M);
3077
+ return Ue += ">", w.childNodes && w.childNodes.length && (Ue += "..."), Ue += "</" + d.call(String(w.nodeName)) + ">", Ue;
3039
3078
  }
3040
3079
  if (L(w)) {
3041
3080
  if (w.length === 0)
3042
3081
  return "[]";
3043
- var ut = Ve(w, ge);
3044
- return Ae && !Eo(ut) ? "[" + st(ut, Ae) + "]" : "[ " + N.call(ut, ", ") + " ]";
3082
+ var ct = Je(w, ge);
3083
+ return Ee && !Ao(ct) ? "[" + it(ct, Ee) + "]" : "[ " + N.call(ct, ", ") + " ]";
3045
3084
  }
3046
3085
  if (K(w)) {
3047
- var ft = Ve(w, ge);
3048
- return !("cause" in Error.prototype) && "cause" in w && !le.call(w, "cause") ? "{ [" + String(w) + "] " + N.call(x.call("[cause]: " + ge(w.cause), ft), ", ") + " }" : ft.length === 0 ? "[" + String(w) + "]" : "{ [" + String(w) + "] " + N.call(ft, ", ") + " }";
3086
+ var ut = Je(w, ge);
3087
+ return !("cause" in Error.prototype) && "cause" in w && !le.call(w, "cause") ? "{ [" + String(w) + "] " + N.call(x.call("[cause]: " + ge(w.cause), ut), ", ") + " }" : ut.length === 0 ? "[" + String(w) + "]" : "{ [" + String(w) + "] " + N.call(ut, ", ") + " }";
3049
3088
  }
3050
3089
  if (typeof w == "object" && je) {
3051
3090
  if (R && typeof w[R] == "function" && re)
3052
- return re(w, { depth: lt - ee });
3091
+ return re(w, { depth: st - ee });
3053
3092
  if (je !== "symbol" && typeof w.inspect == "function")
3054
3093
  return w.inspect();
3055
3094
  }
3056
- if (Oe(w)) {
3095
+ if (Se(w)) {
3057
3096
  var Lr = [];
3058
- return o && o.call(w, function(Ie, Qe) {
3059
- Lr.push(ge(Qe, w, !0) + " => " + ge(Ie, w));
3060
- }), kr("Map", t.call(w), Lr, Ae);
3097
+ return o && o.call(w, function(Ae, De) {
3098
+ Lr.push(ge(De, w, !0) + " => " + ge(Ae, w));
3099
+ }), kr("Map", t.call(w), Lr, Ee);
3061
3100
  }
3062
3101
  if (me(w)) {
3063
3102
  var Ur = [];
3064
- return a && a.call(w, function(Ie) {
3065
- Ur.push(ge(Ie, w));
3066
- }), kr("Set", n.call(w), Ur, Ae);
3103
+ return a && a.call(w, function(Ae) {
3104
+ Ur.push(ge(Ae, w));
3105
+ }), kr("Set", n.call(w), Ur, Ee);
3067
3106
  }
3107
+ if (qe(w))
3108
+ return at("WeakMap");
3068
3109
  if (Re(w))
3069
- return it("WeakMap");
3070
- if (ke(w))
3071
- return it("WeakSet");
3072
- if (Te(w))
3073
- return it("WeakRef");
3110
+ return at("WeakSet");
3111
+ if (Oe(w))
3112
+ return at("WeakRef");
3074
3113
  if (J(w))
3075
- return Ue(ge(Number(w)));
3114
+ return Le(ge(Number(w)));
3076
3115
  if (_(w))
3077
- return Ue(ge(B.call(w)));
3116
+ return Le(ge(B.call(w)));
3078
3117
  if (I(w))
3079
- return Ue(j.call(w));
3118
+ return Le(j.call(w));
3080
3119
  if (ne(w))
3081
- return Ue(ge(String(w)));
3120
+ return Le(ge(String(w)));
3082
3121
  if (typeof window < "u" && w === window)
3083
3122
  return "{ [object Window] }";
3084
- if (typeof globalThis < "u" && w === globalThis || typeof Ze < "u" && w === Ze)
3123
+ if (typeof globalThis < "u" && w === globalThis || typeof Xe < "u" && w === Xe)
3085
3124
  return "{ [object globalThis] }";
3086
3125
  if (!W(w) && !z(w)) {
3087
- var pt = Ve(w, ge), Fr = Z ? Z(w) === Object.prototype : w instanceof Object || w.constructor === Object, dt = w instanceof Object ? "" : "null prototype", _r = !Fr && D && Object(w) === w && D in w ? y.call(Y(w), 8, -1) : dt ? "Object" : "", Io = Fr || typeof w.constructor != "function" ? "" : w.constructor.name ? w.constructor.name + " " : "", ht = Io + (_r || dt ? "[" + N.call(x.call([], _r || [], dt || []), ": ") + "] " : "");
3088
- return pt.length === 0 ? ht + "{}" : Ae ? ht + "{" + st(pt, Ae) + "}" : ht + "{ " + N.call(pt, ", ") + " }";
3126
+ var ft = Je(w, ge), Fr = Z ? Z(w) === Object.prototype : w instanceof Object || w.constructor === Object, pt = w instanceof Object ? "" : "null prototype", _r = !Fr && D && Object(w) === w && D in w ? y.call(Y(w), 8, -1) : pt ? "Object" : "", Lo = Fr || typeof w.constructor != "function" ? "" : w.constructor.name ? w.constructor.name + " " : "", dt = Lo + (_r || pt ? "[" + N.call(x.call([], _r || [], pt || []), ": ") + "] " : "");
3127
+ return ft.length === 0 ? dt + "{}" : Ee ? dt + "{" + it(ft, Ee) + "}" : dt + "{ " + N.call(ft, ", ") + " }";
3089
3128
  }
3090
3129
  return String(w);
3091
3130
  };
@@ -3162,7 +3201,7 @@ function Ps() {
3162
3201
  return X;
3163
3202
  return -1;
3164
3203
  }
3165
- function Oe($) {
3204
+ function Se($) {
3166
3205
  if (!t || !$ || typeof $ != "object")
3167
3206
  return !1;
3168
3207
  try {
@@ -3177,7 +3216,7 @@ function Ps() {
3177
3216
  }
3178
3217
  return !1;
3179
3218
  }
3180
- function Re($) {
3219
+ function qe($) {
3181
3220
  if (!c || !$ || typeof $ != "object")
3182
3221
  return !1;
3183
3222
  try {
@@ -3192,7 +3231,7 @@ function Ps() {
3192
3231
  }
3193
3232
  return !1;
3194
3233
  }
3195
- function Te($) {
3234
+ function Oe($) {
3196
3235
  if (!m || !$ || typeof $ != "object")
3197
3236
  return !1;
3198
3237
  try {
@@ -3216,7 +3255,7 @@ function Ps() {
3216
3255
  }
3217
3256
  return !1;
3218
3257
  }
3219
- function ke($) {
3258
+ function Re($) {
3220
3259
  if (!g || !$ || typeof $ != "object")
3221
3260
  return !1;
3222
3261
  try {
@@ -3231,18 +3270,18 @@ function Ps() {
3231
3270
  }
3232
3271
  return !1;
3233
3272
  }
3234
- function Ee($) {
3273
+ function ke($) {
3235
3274
  return !$ || typeof $ != "object" ? !1 : typeof HTMLElement < "u" && $ instanceof HTMLElement ? !0 : typeof $.nodeName == "string" && typeof $.getAttribute == "function";
3236
3275
  }
3237
- function Pe($, w) {
3276
+ function Te($, w) {
3238
3277
  if ($.length > w.maxStringLength) {
3239
3278
  var X = $.length - w.maxStringLength, ee = "... " + X + " more character" + (X > 1 ? "s" : "");
3240
- return Pe(y.call($, 0, w.maxStringLength), w) + ee;
3279
+ return Te(y.call($, 0, w.maxStringLength), w) + ee;
3241
3280
  }
3242
- var ie = S.call(S.call($, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ko);
3281
+ var ie = S.call(S.call($, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Eo);
3243
3282
  return U(ie, "single", w);
3244
3283
  }
3245
- function ko($) {
3284
+ function Eo($) {
3246
3285
  var w = $.charCodeAt(0), X = {
3247
3286
  8: "b",
3248
3287
  9: "t",
@@ -3252,24 +3291,24 @@ function Ps() {
3252
3291
  }[w];
3253
3292
  return X ? "\\" + X : "\\x" + (w < 16 ? "0" : "") + T.call(w.toString(16));
3254
3293
  }
3255
- function Ue($) {
3294
+ function Le($) {
3256
3295
  return "Object(" + $ + ")";
3257
3296
  }
3258
- function it($) {
3297
+ function at($) {
3259
3298
  return $ + " { ? }";
3260
3299
  }
3261
3300
  function kr($, w, X, ee) {
3262
- var ie = ee ? st(X, ee) : N.call(X, ", ");
3301
+ var ie = ee ? it(X, ee) : N.call(X, ", ");
3263
3302
  return $ + " (" + w + ") {" + ie + "}";
3264
3303
  }
3265
- function Eo($) {
3304
+ function Ao($) {
3266
3305
  for (var w = 0; w < $.length; w++)
3267
3306
  if (he($[w], `
3268
3307
  `) >= 0)
3269
3308
  return !1;
3270
3309
  return !0;
3271
3310
  }
3272
- function Ao($, w) {
3311
+ function Io($, w) {
3273
3312
  var X;
3274
3313
  if ($.indent === " ")
3275
3314
  X = " ";
@@ -3282,7 +3321,7 @@ function Ps() {
3282
3321
  prev: N.call(Array(w + 1), X)
3283
3322
  };
3284
3323
  }
3285
- function st($, w) {
3324
+ function it($, w) {
3286
3325
  if ($.length === 0)
3287
3326
  return "";
3288
3327
  var X = `
@@ -3290,7 +3329,7 @@ function Ps() {
3290
3329
  return X + N.call($, "," + X) + `
3291
3330
  ` + w.prev;
3292
3331
  }
3293
- function Ve($, w) {
3332
+ function Je($, w) {
3294
3333
  var X = L($), ee = [];
3295
3334
  if (X) {
3296
3335
  ee.length = $.length;
@@ -3300,8 +3339,8 @@ function Ps() {
3300
3339
  var M = typeof P == "function" ? P($) : [], je;
3301
3340
  if (H) {
3302
3341
  je = {};
3303
- for (var Ce = 0; Ce < M.length; Ce++)
3304
- je["$" + M[Ce]] = M[Ce];
3342
+ for (var Pe = 0; Pe < M.length; Pe++)
3343
+ je["$" + M[Pe]] = M[Pe];
3305
3344
  }
3306
3345
  for (var de in $)
3307
3346
  G($, de) && (X && String(Number(de)) === de && de < $.length || H && je["$" + de] instanceof Symbol || (O.call(/[^\w$]/, de) ? ee.push(w(de, $) + ": " + w($[de], $)) : ee.push(de + ": " + w($[de], $))));
@@ -3310,13 +3349,13 @@ function Ps() {
3310
3349
  le.call($, M[$e]) && ee.push("[" + w(M[$e]) + "]: " + w($[M[$e]], $));
3311
3350
  return ee;
3312
3351
  }
3313
- return ar;
3352
+ return or;
3314
3353
  }
3315
- var ir, Jn;
3316
- function Cs() {
3317
- if (Jn) return ir;
3354
+ var ar, Jn;
3355
+ function ks() {
3356
+ if (Jn) return ar;
3318
3357
  Jn = 1;
3319
- var e = /* @__PURE__ */ Cr(), r = ws(), t = /* @__PURE__ */ Ps(), o = /* @__PURE__ */ We(), i = e("%WeakMap%", !0), l = e("%Map%", !0), n = r("WeakMap.prototype.get", !0), a = r("WeakMap.prototype.set", !0), s = r("WeakMap.prototype.has", !0), c = r("Map.prototype.get", !0), f = r("Map.prototype.set", !0), g = r("Map.prototype.has", !0), b = function(p, h) {
3358
+ var e = /* @__PURE__ */ Cr(), r = Ps(), t = /* @__PURE__ */ Rs(), o = /* @__PURE__ */ Ge(), i = e("%WeakMap%", !0), s = e("%Map%", !0), n = r("WeakMap.prototype.get", !0), a = r("WeakMap.prototype.set", !0), l = r("WeakMap.prototype.has", !0), c = r("Map.prototype.get", !0), f = r("Map.prototype.set", !0), g = r("Map.prototype.has", !0), b = function(p, h) {
3320
3359
  for (var y = p, S; (S = y.next) !== null; y = S)
3321
3360
  if (S.key === h)
3322
3361
  return y.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
@@ -3336,7 +3375,7 @@ function Cs() {
3336
3375
  }, v = function(p, h) {
3337
3376
  return !!b(p, h);
3338
3377
  };
3339
- return ir = function() {
3378
+ return ar = function() {
3340
3379
  var h, y, S, T = {
3341
3380
  assert: function(d) {
3342
3381
  if (!T.has(d))
@@ -3346,7 +3385,7 @@ function Cs() {
3346
3385
  if (i && d && (typeof d == "object" || typeof d == "function")) {
3347
3386
  if (h)
3348
3387
  return n(h, d);
3349
- } else if (l) {
3388
+ } else if (s) {
3350
3389
  if (y)
3351
3390
  return c(y, d);
3352
3391
  } else if (S)
@@ -3355,8 +3394,8 @@ function Cs() {
3355
3394
  has: function(d) {
3356
3395
  if (i && d && (typeof d == "object" || typeof d == "function")) {
3357
3396
  if (h)
3358
- return s(h, d);
3359
- } else if (l) {
3397
+ return l(h, d);
3398
+ } else if (s) {
3360
3399
  if (y)
3361
3400
  return g(y, d);
3362
3401
  } else if (S)
@@ -3364,21 +3403,21 @@ function Cs() {
3364
3403
  return !1;
3365
3404
  },
3366
3405
  set: function(d, O) {
3367
- i && d && (typeof d == "object" || typeof d == "function") ? (h || (h = new i()), a(h, d, O)) : l ? (y || (y = new l()), f(y, d, O)) : (S || (S = { key: {}, next: null }), j(S, d, O));
3406
+ i && d && (typeof d == "object" || typeof d == "function") ? (h || (h = new i()), a(h, d, O)) : s ? (y || (y = new s()), f(y, d, O)) : (S || (S = { key: {}, next: null }), j(S, d, O));
3368
3407
  }
3369
3408
  };
3370
3409
  return T;
3371
- }, ir;
3410
+ }, ar;
3372
3411
  }
3373
- var sr, Vn;
3412
+ var ir, Vn;
3374
3413
  function Nr() {
3375
- if (Vn) return sr;
3414
+ if (Vn) return ir;
3376
3415
  Vn = 1;
3377
3416
  var e = String.prototype.replace, r = /%20/g, t = {
3378
3417
  RFC1738: "RFC1738",
3379
3418
  RFC3986: "RFC3986"
3380
3419
  };
3381
- return sr = {
3420
+ return ir = {
3382
3421
  default: t.RFC3986,
3383
3422
  formatters: {
3384
3423
  RFC1738: function(o) {
@@ -3390,11 +3429,11 @@ function Nr() {
3390
3429
  },
3391
3430
  RFC1738: t.RFC1738,
3392
3431
  RFC3986: t.RFC3986
3393
- }, sr;
3432
+ }, ir;
3394
3433
  }
3395
- var lr, Dn;
3396
- function Oo() {
3397
- if (Dn) return lr;
3434
+ var sr, Dn;
3435
+ function To() {
3436
+ if (Dn) return sr;
3398
3437
  Dn = 1;
3399
3438
  var e = /* @__PURE__ */ Nr(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = function() {
3400
3439
  for (var p = [], h = 0; h < 256; ++h)
@@ -3409,7 +3448,7 @@ function Oo() {
3409
3448
  y.obj[y.prop] = T;
3410
3449
  }
3411
3450
  }
3412
- }, l = function(h, y) {
3451
+ }, s = function(h, y) {
3413
3452
  for (var S = y && y.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, T = 0; T < h.length; ++T)
3414
3453
  typeof h[T] < "u" && (S[T] = h[T]);
3415
3454
  return S;
@@ -3428,7 +3467,7 @@ function Oo() {
3428
3467
  if (!h || typeof h != "object")
3429
3468
  return [h].concat(y);
3430
3469
  var T = h;
3431
- return t(h) && !t(y) && (T = l(h, S)), t(h) && t(y) ? (y.forEach(function(d, O) {
3470
+ return t(h) && !t(y) && (T = s(h, S)), t(h) && t(y) ? (y.forEach(function(d, O) {
3432
3471
  if (r.call(h, O)) {
3433
3472
  var x = h[O];
3434
3473
  x && typeof x == "object" && d && typeof d == "object" ? h[O] = p(x, d, S) : h.push(d);
@@ -3442,7 +3481,7 @@ function Oo() {
3442
3481
  return Object.keys(y).reduce(function(S, T) {
3443
3482
  return S[T] = y[T], S;
3444
3483
  }, h);
3445
- }, s = function(p, h, y) {
3484
+ }, l = function(p, h, y) {
3446
3485
  var S = p.replace(/\+/g, " ");
3447
3486
  if (y === "iso-8859-1")
3448
3487
  return S.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -3504,24 +3543,24 @@ function Oo() {
3504
3543
  }
3505
3544
  return y(h);
3506
3545
  };
3507
- return lr = {
3508
- arrayToObject: l,
3546
+ return sr = {
3547
+ arrayToObject: s,
3509
3548
  assign: a,
3510
3549
  combine: j,
3511
3550
  compact: g,
3512
- decode: s,
3551
+ decode: l,
3513
3552
  encode: f,
3514
3553
  isBuffer: m,
3515
3554
  isRegExp: b,
3516
3555
  maybeMap: v,
3517
3556
  merge: n
3518
- }, lr;
3557
+ }, sr;
3519
3558
  }
3520
- var cr, Qn;
3521
- function Ns() {
3522
- if (Qn) return cr;
3559
+ var lr, Qn;
3560
+ function Es() {
3561
+ if (Qn) return lr;
3523
3562
  Qn = 1;
3524
- var e = Cs(), r = /* @__PURE__ */ Oo(), t = /* @__PURE__ */ Nr(), o = Object.prototype.hasOwnProperty, i = {
3563
+ var e = ks(), r = /* @__PURE__ */ To(), t = /* @__PURE__ */ Nr(), o = Object.prototype.hasOwnProperty, i = {
3525
3564
  brackets: function(p) {
3526
3565
  return p + "[]";
3527
3566
  },
@@ -3532,9 +3571,9 @@ function Ns() {
3532
3571
  repeat: function(p) {
3533
3572
  return p;
3534
3573
  }
3535
- }, l = Array.isArray, n = Array.prototype.push, a = function(v, p) {
3536
- n.apply(v, l(p) ? p : [p]);
3537
- }, s = Date.prototype.toISOString, c = t.default, f = {
3574
+ }, s = Array.isArray, n = Array.prototype.push, a = function(v, p) {
3575
+ n.apply(v, s(p) ? p : [p]);
3576
+ }, l = Date.prototype.toISOString, c = t.default, f = {
3538
3577
  addQueryPrefix: !1,
3539
3578
  allowDots: !1,
3540
3579
  allowEmptyArrays: !1,
@@ -3551,7 +3590,7 @@ function Ns() {
3551
3590
  // deprecated
3552
3591
  indices: !1,
3553
3592
  serializeDate: function(p) {
3554
- return s.call(p);
3593
+ return l.call(p);
3555
3594
  },
3556
3595
  skipNulls: !1,
3557
3596
  strictNullHandling: !1
@@ -3567,7 +3606,7 @@ function Ns() {
3567
3606
  }
3568
3607
  typeof re.get(b) > "u" && (q = 0);
3569
3608
  }
3570
- if (typeof A == "function" ? k = A(h, k) : k instanceof Date ? k = P(k) : y === "comma" && l(k) && (k = r.maybeMap(k, function(Y) {
3609
+ if (typeof A == "function" ? k = A(h, k) : k instanceof Date ? k = P(k) : y === "comma" && s(k) && (k = r.maybeMap(k, function(Y) {
3571
3610
  return Y instanceof Date ? P(Y) : Y;
3572
3611
  })), k === null) {
3573
3612
  if (d)
@@ -3585,21 +3624,21 @@ function Ns() {
3585
3624
  if (typeof k > "u")
3586
3625
  return L;
3587
3626
  var W;
3588
- if (y === "comma" && l(k))
3627
+ if (y === "comma" && s(k))
3589
3628
  D && N && (k = r.maybeMap(k, N)), W = [{ value: k.length > 0 ? k.join(",") || null : void 0 }];
3590
- else if (l(A))
3629
+ else if (s(A))
3591
3630
  W = A;
3592
3631
  else {
3593
3632
  var z = Object.keys(k);
3594
3633
  W = E ? z.sort(E) : z;
3595
3634
  }
3596
- var K = x ? h.replace(/\./g, "%2E") : h, ne = S && l(k) && k.length === 1 ? K + "[]" : K;
3597
- if (T && l(k) && k.length === 0)
3635
+ var K = x ? h.replace(/\./g, "%2E") : h, ne = S && s(k) && k.length === 1 ? K + "[]" : K;
3636
+ if (T && s(k) && k.length === 0)
3598
3637
  return ne + "[]";
3599
3638
  for (var J = 0; J < W.length; ++J) {
3600
3639
  var I = W[J], F = typeof I == "object" && typeof I.value < "u" ? I.value : k[I];
3601
3640
  if (!(O && F === null)) {
3602
- var _ = B && x ? I.replace(/\./g, "%2E") : I, Q = l(k) ? typeof y == "function" ? y(ne, _) : ne : ne + (B ? "." + _ : "[" + _ + "]");
3641
+ var _ = B && x ? I.replace(/\./g, "%2E") : I, Q = s(k) ? typeof y == "function" ? y(ne, _) : ne : ne + (B ? "." + _ : "[" + _ + "]");
3603
3642
  Z.set(p, q);
3604
3643
  var G = e();
3605
3644
  G.set(b, Z), a(L, v(
@@ -3611,7 +3650,7 @@ function Ns() {
3611
3650
  d,
3612
3651
  O,
3613
3652
  x,
3614
- y === "comma" && D && l(k) ? null : N,
3653
+ y === "comma" && D && s(k) ? null : N,
3615
3654
  A,
3616
3655
  E,
3617
3656
  B,
@@ -3644,7 +3683,7 @@ function Ns() {
3644
3683
  y = p.format;
3645
3684
  }
3646
3685
  var S = t.formatters[y], T = f.filter;
3647
- (typeof p.filter == "function" || l(p.filter)) && (T = p.filter);
3686
+ (typeof p.filter == "function" || s(p.filter)) && (T = p.filter);
3648
3687
  var d;
3649
3688
  if (p.arrayFormat in i ? d = p.arrayFormat : "indices" in p ? d = p.indices ? "indices" : "repeat" : d = f.arrayFormat, "commaRoundTrip" in p && typeof p.commaRoundTrip != "boolean")
3650
3689
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
@@ -3671,9 +3710,9 @@ function Ns() {
3671
3710
  strictNullHandling: typeof p.strictNullHandling == "boolean" ? p.strictNullHandling : f.strictNullHandling
3672
3711
  };
3673
3712
  };
3674
- return cr = function(v, p) {
3713
+ return lr = function(v, p) {
3675
3714
  var h = v, y = j(p), S, T;
3676
- typeof y.filter == "function" ? (T = y.filter, h = T("", h)) : l(y.filter) && (T = y.filter, S = T);
3715
+ typeof y.filter == "function" ? (T = y.filter, h = T("", h)) : s(y.filter) && (T = y.filter, S = T);
3677
3716
  var d = [];
3678
3717
  if (typeof h != "object" || h === null)
3679
3718
  return "";
@@ -3704,13 +3743,13 @@ function Ns() {
3704
3743
  }
3705
3744
  var B = d.join(y.delimiter), P = y.addQueryPrefix === !0 ? "?" : "";
3706
3745
  return y.charsetSentinel && (y.charset === "iso-8859-1" ? P += "utf8=%26%2310003%3B&" : P += "utf8=%E2%9C%93&"), B.length > 0 ? P + B : "";
3707
- }, cr;
3746
+ }, lr;
3708
3747
  }
3709
- var ur, Kn;
3710
- function qs() {
3711
- if (Kn) return ur;
3748
+ var cr, Kn;
3749
+ function As() {
3750
+ if (Kn) return cr;
3712
3751
  Kn = 1;
3713
- var e = /* @__PURE__ */ Oo(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = {
3752
+ var e = /* @__PURE__ */ To(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = {
3714
3753
  allowDots: !1,
3715
3754
  allowEmptyArrays: !1,
3716
3755
  allowPrototypes: !1,
@@ -3735,9 +3774,9 @@ function qs() {
3735
3774
  return b.replace(/&#(\d+);/g, function(m, j) {
3736
3775
  return String.fromCharCode(parseInt(j, 10));
3737
3776
  });
3738
- }, l = function(b, m) {
3777
+ }, s = function(b, m) {
3739
3778
  return b && typeof b == "string" && m.comma && b.indexOf(",") > -1 ? b.split(",") : b;
3740
- }, n = "utf8=%26%2310003%3B", a = "utf8=%E2%9C%93", s = function(m, j) {
3779
+ }, n = "utf8=%26%2310003%3B", a = "utf8=%E2%9C%93", l = function(m, j) {
3741
3780
  var v = { __proto__: null }, p = j.ignoreQueryPrefix ? m.replace(/^\?/, "") : m;
3742
3781
  p = p.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3743
3782
  var h = j.parameterLimit === 1 / 0 ? void 0 : j.parameterLimit, y = p.split(j.delimiter, h), S = -1, T, d = j.charset;
@@ -3748,7 +3787,7 @@ function qs() {
3748
3787
  if (T !== S) {
3749
3788
  var O = y[T], x = O.indexOf("]="), N = x === -1 ? O.indexOf("=") : x + 1, A, E;
3750
3789
  N === -1 ? (A = j.decoder(O, o.decoder, d, "key"), E = j.strictNullHandling ? null : "") : (A = j.decoder(O.slice(0, N), o.decoder, d, "key"), E = e.maybeMap(
3751
- l(O.slice(N + 1), j),
3790
+ s(O.slice(N + 1), j),
3752
3791
  function(P) {
3753
3792
  return j.decoder(P, o.decoder, d, "value");
3754
3793
  }
@@ -3758,7 +3797,7 @@ function qs() {
3758
3797
  }
3759
3798
  return v;
3760
3799
  }, c = function(b, m, j, v) {
3761
- for (var p = v ? m : l(m, j), h = b.length - 1; h >= 0; --h) {
3800
+ for (var p = v ? m : s(m, j), h = b.length - 1; h >= 0; --h) {
3762
3801
  var y, S = b[h];
3763
3802
  if (S === "[]" && j.parseArrays)
3764
3803
  y = j.allowEmptyArrays && (p === "" || j.strictNullHandling && p === null) ? [] : [].concat(p);
@@ -3829,37 +3868,37 @@ function qs() {
3829
3868
  strictNullHandling: typeof m.strictNullHandling == "boolean" ? m.strictNullHandling : o.strictNullHandling
3830
3869
  };
3831
3870
  };
3832
- return ur = function(b, m) {
3871
+ return cr = function(b, m) {
3833
3872
  var j = g(m);
3834
3873
  if (b === "" || b === null || typeof b > "u")
3835
3874
  return j.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3836
- for (var v = typeof b == "string" ? s(b, j) : b, p = j.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, h = Object.keys(v), y = 0; y < h.length; ++y) {
3875
+ for (var v = typeof b == "string" ? l(b, j) : b, p = j.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, h = Object.keys(v), y = 0; y < h.length; ++y) {
3837
3876
  var S = h[y], T = f(S, v[S], j, typeof b == "string");
3838
3877
  p = e.merge(p, T, j);
3839
3878
  }
3840
3879
  return j.allowSparse === !0 ? p : e.compact(p);
3841
- }, ur;
3880
+ }, cr;
3842
3881
  }
3843
- var fr, Yn;
3844
- function To() {
3845
- if (Yn) return fr;
3882
+ var ur, Yn;
3883
+ function Po() {
3884
+ if (Yn) return ur;
3846
3885
  Yn = 1;
3847
- var e = /* @__PURE__ */ Ns(), r = /* @__PURE__ */ qs(), t = /* @__PURE__ */ Nr();
3848
- return fr = {
3886
+ var e = /* @__PURE__ */ Es(), r = /* @__PURE__ */ As(), t = /* @__PURE__ */ Nr();
3887
+ return ur = {
3849
3888
  formats: t,
3850
3889
  parse: r,
3851
3890
  stringify: e
3852
- }, fr;
3891
+ }, ur;
3853
3892
  }
3854
3893
  var Xn;
3855
- function Rs() {
3856
- if (Xn) return Ne;
3894
+ function Is() {
3895
+ if (Xn) return Ce;
3857
3896
  Xn = 1;
3858
- var e = Ki();
3897
+ var e = es();
3859
3898
  function r() {
3860
3899
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
3861
3900
  }
3862
- var t = /^([a-z0-9.+-]+:)/i, o = /:[0-9]*$/, i = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, l = [
3901
+ var t = /^([a-z0-9.+-]+:)/i, o = /:[0-9]*$/, i = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, s = [
3863
3902
  "<",
3864
3903
  ">",
3865
3904
  '"',
@@ -3876,7 +3915,7 @@ function Rs() {
3876
3915
  "\\",
3877
3916
  "^",
3878
3917
  "`"
3879
- ].concat(l), a = ["'"].concat(n), s = [
3918
+ ].concat(s), a = ["'"].concat(n), l = [
3880
3919
  "%",
3881
3920
  "/",
3882
3921
  "?",
@@ -3903,7 +3942,7 @@ function Rs() {
3903
3942
  "ftp:": !0,
3904
3943
  "gopher:": !0,
3905
3944
  "file:": !0
3906
- }, p = /* @__PURE__ */ To();
3945
+ }, p = /* @__PURE__ */ Po();
3907
3946
  function h(d, O, x) {
3908
3947
  if (d && typeof d == "object" && d instanceof r)
3909
3948
  return d;
@@ -3938,8 +3977,8 @@ function Rs() {
3938
3977
  }
3939
3978
  var q, R;
3940
3979
  Z === -1 ? R = P.lastIndexOf("@") : R = P.lastIndexOf("@", Z), R !== -1 && (q = P.slice(0, R), P = P.slice(R + 1), this.auth = decodeURIComponent(q)), Z = -1;
3941
- for (var k = 0; k < s.length; k++) {
3942
- var re = P.indexOf(s[k]);
3980
+ for (var k = 0; k < l.length; k++) {
3981
+ var re = P.indexOf(l[k]);
3943
3982
  re !== -1 && (Z === -1 || re < Z) && (Z = re);
3944
3983
  }
3945
3984
  Z === -1 && (Z = P.length), this.host = P.slice(0, Z), P = P.slice(Z), this.parseHost(), this.hostname = this.hostname || "";
@@ -3973,8 +4012,8 @@ function Rs() {
3973
4012
  oe !== -1 && (this.hash = P.substr(oe), P = P.slice(0, oe));
3974
4013
  var he = P.indexOf("?");
3975
4014
  if (he !== -1 ? (this.search = P.substr(he), this.query = P.substr(he + 1), O && (this.query = p.parse(this.query)), P = P.slice(0, he)) : O && (this.search = "", this.query = {}), P && (this.pathname = P), v[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3976
- var _ = this.pathname || "", Oe = this.search || "";
3977
- this.path = _ + Oe;
4015
+ var _ = this.pathname || "", Se = this.search || "";
4016
+ this.path = _ + Se;
3978
4017
  }
3979
4018
  return this.href = this.format(), this;
3980
4019
  };
@@ -4072,14 +4111,14 @@ function Rs() {
4072
4111
  }, r.prototype.parseHost = function() {
4073
4112
  var d = this.host, O = o.exec(d);
4074
4113
  O && (O = O[0], O !== ":" && (this.port = O.substr(1)), d = d.substr(0, d.length - O.length)), d && (this.hostname = d);
4075
- }, Ne.parse = h, Ne.resolve = S, Ne.resolveObject = T, Ne.format = y, Ne.Url = r, Ne;
4114
+ }, Ce.parse = h, Ce.resolve = S, Ce.resolveObject = T, Ce.format = y, Ce.Url = r, Ce;
4076
4115
  }
4077
- var pr = Rs(), dr = /* @__PURE__ */ To(), ks = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Es = class {
4116
+ var fr = Is(), pr = /* @__PURE__ */ Po(), Ls = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Us = class {
4078
4117
  constructor(e, r = {}) {
4079
4118
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
4080
4119
  harIsAlreadyEncoded: !1,
4081
4120
  ...r
4082
- }, this.requests = [], ks(e) ? this.entries = e.log.entries : this.entries = [
4121
+ }, this.requests = [], Ls(e) ? this.entries = e.log.entries : this.entries = [
4083
4122
  {
4084
4123
  request: e
4085
4124
  }
@@ -4152,7 +4191,7 @@ var pr = Rs(), dr = /* @__PURE__ */ To(), ks = (e) => typeof e == "object" && "l
4152
4191
  }
4153
4192
  break;
4154
4193
  case "application/x-www-form-urlencoded":
4155
- t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Mr, {}), t.postData.text = dr.stringify(t.postData.paramsObj)) : t.postData.text = "";
4194
+ t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Mr, {}), t.postData.text = pr.stringify(t.postData.paramsObj)) : t.postData.text = "";
4156
4195
  break;
4157
4196
  case "text/json":
4158
4197
  case "text/x-json":
@@ -4169,81 +4208,81 @@ var pr = Rs(), dr = /* @__PURE__ */ To(), ks = (e) => typeof e == "object" && "l
4169
4208
  const i = {
4170
4209
  ...t.allHeaders,
4171
4210
  ...t.headersObj
4172
- }, l = pr.parse(t.url, !0, !0);
4211
+ }, s = fr.parse(t.url, !0, !0);
4173
4212
  t.queryObj = {
4174
4213
  ...t.queryObj,
4175
- ...l.query
4214
+ ...s.query
4176
4215
  };
4177
4216
  let n;
4178
- r.harIsAlreadyEncoded ? n = dr.stringify(t.queryObj, {
4217
+ r.harIsAlreadyEncoded ? n = pr.stringify(t.queryObj, {
4179
4218
  encode: !1,
4180
4219
  indices: !1
4181
- }) : n = dr.stringify(t.queryObj, {
4220
+ }) : n = pr.stringify(t.queryObj, {
4182
4221
  indices: !1
4183
4222
  });
4184
4223
  const a = {
4185
- ...l,
4224
+ ...s,
4186
4225
  query: t.queryObj,
4187
4226
  search: n,
4188
- path: n ? `${l.pathname}?${n}` : l.pathname
4189
- }, s = pr.format({
4190
- ...l,
4227
+ path: n ? `${s.pathname}?${n}` : s.pathname
4228
+ }, l = fr.format({
4229
+ ...s,
4191
4230
  query: null,
4192
4231
  search: null
4193
- }), c = pr.format({
4194
- ...l,
4232
+ }), c = fr.format({
4233
+ ...s,
4195
4234
  ...a
4196
4235
  });
4197
4236
  return {
4198
4237
  ...t,
4199
4238
  allHeaders: i,
4200
4239
  fullUrl: c,
4201
- url: s,
4240
+ url: l,
4202
4241
  uriObj: a
4203
4242
  };
4204
4243
  }
4205
4244
  convert(e, r, t) {
4206
4245
  this.initCalled || this.init(), !t && r && (t = r);
4207
- const o = Di[e];
4246
+ const o = Xi[e];
4208
4247
  if (!o)
4209
4248
  return !1;
4210
4249
  const { convert: i } = o.clientsById[r || o.info.default];
4211
4250
  return this.requests.map((n) => i(n, t));
4212
4251
  }
4213
4252
  };
4214
- const As = ({
4253
+ const Fs = ({
4215
4254
  rootMargin: e = "0px",
4216
4255
  threshold: r
4217
4256
  } = {}) => {
4218
- const [t, o] = ye(!1), i = co(null);
4257
+ const [t, o] = ye(!1), i = uo(null);
4219
4258
  return wr(() => {
4220
- const l = new IntersectionObserver(
4259
+ const s = new IntersectionObserver(
4221
4260
  ([a]) => {
4222
4261
  a && o(a.isIntersecting);
4223
4262
  },
4224
4263
  { rootMargin: e, threshold: r }
4225
4264
  ), n = i.current;
4226
4265
  if (n)
4227
- return l.observe(n), () => l.unobserve(n);
4266
+ return s.observe(n), () => s.unobserve(n);
4228
4267
  }, [e, r]), [i, t];
4229
- }, Is = typeof window < "u" ? ua : wr, Po = ({
4268
+ }, _s = typeof window < "u" ? pa : wr, Co = ({
4230
4269
  children: e,
4231
4270
  maxHeight: r = 250
4232
4271
  }) => {
4233
- const t = co(null), [o, i] = ye(!1), [l, n] = ye(!1);
4234
- return Is(() => {
4272
+ const t = uo(null), [o, i] = ye(!1), [s, n] = ye(!1);
4273
+ return _s(() => {
4235
4274
  const a = t.current;
4236
4275
  if (!a) return;
4237
4276
  i(a.scrollHeight > r);
4238
- const s = new ResizeObserver(() => {
4277
+ const l = new ResizeObserver(() => {
4239
4278
  i(a.scrollHeight > r);
4240
4279
  });
4241
- return s.observe(a), () => s.disconnect();
4280
+ return l.observe(a), () => l.disconnect();
4242
4281
  }, [r]), /* @__PURE__ */ u.jsxs(
4243
4282
  oo,
4244
4283
  {
4245
4284
  className: "group",
4246
- open: l,
4285
+ open: s,
4247
4286
  onOpenChange: n,
4248
4287
  style: { "--max-height": `${r}px` },
4249
4288
  children: [
@@ -4253,18 +4292,18 @@ const As = ({
4253
4292
  forceMount: !0,
4254
4293
  className: se(
4255
4294
  "relative overflow-hidden group",
4256
- !l && o && "max-h-[--max-height]"
4295
+ !s && o && "max-h-[--max-height]"
4257
4296
  ),
4258
4297
  children: [
4259
- !l && o && /* @__PURE__ */ u.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" }),
4298
+ !s && o && /* @__PURE__ */ u.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" }),
4260
4299
  /* @__PURE__ */ u.jsx("div", { ref: t, children: e }),
4261
- !l && o && /* @__PURE__ */ u.jsx(
4262
- yr,
4300
+ !s && o && /* @__PURE__ */ u.jsx(
4301
+ hr,
4263
4302
  {
4264
4303
  className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
4265
4304
  asChild: !0,
4266
- children: /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsxs(gr, { variant: "outline", className: "hidden group-hover:flex", children: [
4267
- /* @__PURE__ */ u.jsx(Mo, { size: 14, className: "mr-1.5" }),
4305
+ children: /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsxs(mr, { variant: "outline", className: "hidden group-hover:flex", children: [
4306
+ /* @__PURE__ */ u.jsx(zo, { size: 14, className: "mr-1.5" }),
4268
4307
  "Click to expand"
4269
4308
  ] }) })
4270
4309
  }
@@ -4275,24 +4314,24 @@ const As = ({
4275
4314
  o && /* @__PURE__ */ u.jsx(
4276
4315
  "div",
4277
4316
  {
4278
- className: se("flex justify-center w-full mb-2", !l && "hidden"),
4279
- children: /* @__PURE__ */ u.jsx(yr, { asChild: !0, children: /* @__PURE__ */ u.jsxs(gr, { variant: "outline", size: "sm", children: [
4317
+ className: se("flex justify-center w-full mb-2", !s && "hidden"),
4318
+ children: /* @__PURE__ */ u.jsx(hr, { asChild: !0, children: /* @__PURE__ */ u.jsxs(mr, { variant: "outline", size: "sm", children: [
4280
4319
  "Collapse",
4281
- /* @__PURE__ */ u.jsx(zo, { size: 14, className: "ml-1.5" })
4320
+ /* @__PURE__ */ u.jsx(Go, { size: 14, className: "ml-1.5" })
4282
4321
  ] }) })
4283
4322
  }
4284
4323
  )
4285
4324
  ]
4286
4325
  }
4287
4326
  );
4288
- }, Ls = ({
4327
+ }, Bs = ({
4289
4328
  server: e,
4290
4329
  servers: r,
4291
4330
  operation: t,
4292
4331
  examples: o
4293
4332
  }) => {
4294
4333
  var b, m, j;
4295
- const { isAuthEnabled: i, login: l, signup: n, isPending: a, isAuthenticated: s } = wa(), c = (b = t.parameters) == null ? void 0 : b.filter((v) => v.in === "header").sort((v, p) => v.required && !p.required ? -1 : 1).map((v) => {
4334
+ const { isAuthEnabled: i, login: s, signup: n, isPending: a, isAuthenticated: l } = Oa(), c = (b = t.parameters) == null ? void 0 : b.filter((v) => v.in === "header").sort((v, p) => v.required && !p.required ? -1 : 1).map((v) => {
4296
4335
  var p, h, y, S, T, d, O, x;
4297
4336
  return {
4298
4337
  name: v.name,
@@ -4313,7 +4352,7 @@ const As = ({
4313
4352
  };
4314
4353
  }), g = (j = t.parameters) == null ? void 0 : j.filter((v) => v.in === "path").map((v) => ({ name: v.name }));
4315
4354
  return /* @__PURE__ */ u.jsx(
4316
- ea,
4355
+ ra,
4317
4356
  {
4318
4357
  server: e,
4319
4358
  servers: r,
@@ -4323,8 +4362,8 @@ const As = ({
4323
4362
  queryParams: f,
4324
4363
  pathParams: g,
4325
4364
  examples: o,
4326
- requiresLogin: i && !s && !a,
4327
- onLogin: () => l(),
4365
+ requiresLogin: i && !l && !a,
4366
+ onLogin: () => s(),
4328
4367
  onSignUp: () => n()
4329
4368
  }
4330
4369
  );
@@ -4343,7 +4382,7 @@ const As = ({
4343
4382
  ),
4344
4383
  children: e
4345
4384
  }
4346
- ), Co = ({ children: e, className: r }) => /* @__PURE__ */ u.jsx("div", { className: se("bg-card overflow-auto p-2", r), children: e }), No = ({ children: e, className: r }) => /* @__PURE__ */ u.jsx("div", { className: se("border-t bg-muted dark:bg-transparent p-3", r), children: e }), He = (e, r) => {
4385
+ ), No = ({ children: e, className: r }) => /* @__PURE__ */ u.jsx("div", { className: se("bg-card overflow-auto p-2", r), children: e }), qo = ({ children: e, className: r }) => /* @__PURE__ */ u.jsx("div", { className: se("border-t bg-muted dark:bg-transparent p-3", r), children: e }), Be = (e, r) => {
4347
4386
  if (e.example !== void 0)
4348
4387
  return e.example;
4349
4388
  if (e.examples && typeof e.examples == "object" && "default" in e.examples) {
@@ -4354,13 +4393,13 @@ const As = ({
4354
4393
  if (e.type === "object" && e.properties) {
4355
4394
  const t = {};
4356
4395
  for (const [o, i] of Object.entries(e.properties))
4357
- typeof i == "object" && (t[o] = He(i, o));
4396
+ typeof i == "object" && (t[o] = Be(i, o));
4358
4397
  return t;
4359
4398
  }
4360
4399
  if (e.type === "array")
4361
4400
  return Array.isArray(e.items) ? e.items.map(
4362
- (t) => He(t)
4363
- ) : e.items ? [He(e.items)] : [];
4401
+ (t) => Be(t)
4402
+ ) : e.items ? [Be(e.items)] : [];
4364
4403
  if (e.enum)
4365
4404
  return e.enum[0];
4366
4405
  switch (e.type) {
@@ -4379,31 +4418,31 @@ const As = ({
4379
4418
  default:
4380
4419
  return {};
4381
4420
  }
4382
- }, Us = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Fs = (e) => e ? {
4421
+ }, Hs = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Ms = (e) => e ? {
4383
4422
  "application/json": "json",
4384
4423
  "application/xml": "xml",
4385
4424
  "application/x-yaml": "yaml",
4386
4425
  "text/csv": "csv",
4387
4426
  "application/javascript": "javascript",
4388
4427
  "application/graphql": "graphql"
4389
- }[e] ?? "plain" : "plain", qo = ({
4428
+ }[e] ?? "plain" : "plain", Ro = ({
4390
4429
  content: e,
4391
4430
  description: r,
4392
4431
  onExampleChange: t
4393
4432
  }) => {
4394
4433
  var m;
4395
- const [o, i] = ye(0), [l, n] = ye(0), a = Array.isArray(e) && e.length === 1 ? e[0] : e[o], s = (a == null ? void 0 : a.examples) ?? [], c = s[l], f = uo(() => {
4434
+ const [o, i] = ye(0), [s, n] = ye(0), a = Array.isArray(e) && e.length === 1 ? e[0] : e[o], l = (a == null ? void 0 : a.examples) ?? [], c = l[s], f = fo(() => {
4396
4435
  if (c)
4397
4436
  return "value" in c ? c.value : c;
4398
4437
  if (a != null && a.schema)
4399
- return He(a.schema);
4438
+ return Be(a.schema);
4400
4439
  }, [c, a == null ? void 0 : a.schema]);
4401
4440
  wr(() => {
4402
4441
  f && (t == null || t(f));
4403
4442
  }, [f, t]);
4404
- const g = Us(f), b = Fs(a == null ? void 0 : a.mediaType);
4443
+ const g = Hs(f), b = Ms(a == null ? void 0 : a.mediaType);
4405
4444
  return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
4406
- /* @__PURE__ */ u.jsxs(Co, { className: "p-0", children: [
4445
+ /* @__PURE__ */ u.jsxs(No, { className: "p-0", children: [
4407
4446
  c != null && c.externalValue ? /* @__PURE__ */ u.jsx("div", { className: "p-2", children: /* @__PURE__ */ u.jsx(
4408
4447
  "a",
4409
4448
  {
@@ -4413,8 +4452,8 @@ const As = ({
4413
4452
  className: "text-xs text-primary hover:underline",
4414
4453
  children: "View External Example →"
4415
4454
  }
4416
- ) }) : /* @__PURE__ */ u.jsx(Po, { children: /* @__PURE__ */ u.jsx(
4417
- po,
4455
+ ) }) : /* @__PURE__ */ u.jsx(Co, { children: /* @__PURE__ */ u.jsx(
4456
+ ho,
4418
4457
  {
4419
4458
  language: b,
4420
4459
  noBackground: !0,
@@ -4424,11 +4463,11 @@ const As = ({
4424
4463
  ) }),
4425
4464
  (c == null ? void 0 : c.description) && /* @__PURE__ */ u.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: c.description })
4426
4465
  ] }),
4427
- /* @__PURE__ */ u.jsxs(No, { className: "text-xs p-0 divide-y divide-border", children: [
4466
+ /* @__PURE__ */ u.jsxs(qo, { className: "text-xs p-0 divide-y divide-border", children: [
4428
4467
  r && /* @__PURE__ */ u.jsx("div", { className: "text-muted-foreground text-xs px-3 py-2", children: r }),
4429
- (s.length !== 0 || e.length !== 0) && /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0 px-3 py-2", children: [
4468
+ (l.length !== 0 || e.length !== 0) && /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0 px-3 py-2", children: [
4430
4469
  /* @__PURE__ */ u.jsx("div", { className: "flex items-center gap-2 min-w-0", children: e.length > 1 ? /* @__PURE__ */ u.jsx(
4431
- et,
4470
+ Ze,
4432
4471
  {
4433
4472
  className: "max-w-[200px]",
4434
4473
  value: o.toString(),
@@ -4439,13 +4478,13 @@ const As = ({
4439
4478
  }))
4440
4479
  }
4441
4480
  ) : /* @__PURE__ */ u.jsx("span", { className: "font-mono text-[11px]", children: (m = e[0]) == null ? void 0 : m.mediaType }) }),
4442
- s.length > 1 && /* @__PURE__ */ u.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ u.jsx(
4443
- et,
4481
+ l.length > 1 && /* @__PURE__ */ u.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ u.jsx(
4482
+ Ze,
4444
4483
  {
4445
4484
  className: "max-w-[180px]",
4446
- value: l.toString(),
4485
+ value: s.toString(),
4447
4486
  onChange: (j) => n(Number(j.target.value)),
4448
- options: s.map((j, v) => ({
4487
+ options: l.map((j, v) => ({
4449
4488
  value: v.toString(),
4450
4489
  label: j.summary || j.name || j.description || `Example ${v + 1}`
4451
4490
  }))
@@ -4454,26 +4493,26 @@ const As = ({
4454
4493
  ] })
4455
4494
  ] })
4456
4495
  ] });
4457
- }, _s = ({
4496
+ }, zs = ({
4458
4497
  content: e,
4459
4498
  onExampleChange: r
4460
4499
  }) => e.length === 0 ? null : /* @__PURE__ */ u.jsxs(qr, { children: [
4461
4500
  /* @__PURE__ */ u.jsx(Rr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ u.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
4462
- /* @__PURE__ */ u.jsx(qo, { content: e, onExampleChange: r })
4463
- ] }), Bs = ({ response: e }) => /* @__PURE__ */ u.jsx(Ye.Content, { value: e.statusCode, children: /* @__PURE__ */ u.jsx(
4464
- qo,
4501
+ /* @__PURE__ */ u.jsx(Ro, { content: e, onExampleChange: r })
4502
+ ] }), Gs = ({ response: e }) => /* @__PURE__ */ u.jsx(Ke.Content, { value: e.statusCode, children: /* @__PURE__ */ u.jsx(
4503
+ Ro,
4465
4504
  {
4466
4505
  content: e.content ?? [],
4467
4506
  description: e.description ?? void 0
4468
4507
  }
4469
- ) }), Hs = ({
4508
+ ) }), Ws = ({
4470
4509
  responses: e,
4471
4510
  selectedResponse: r,
4472
4511
  onSelectResponse: t
4473
4512
  }) => {
4474
4513
  var o;
4475
4514
  return /* @__PURE__ */ u.jsx(qr, { children: /* @__PURE__ */ u.jsxs(
4476
- Ye.Root,
4515
+ Ke.Root,
4477
4516
  {
4478
4517
  defaultValue: (o = e[0]) == null ? void 0 : o.statusCode,
4479
4518
  value: r,
@@ -4481,8 +4520,8 @@ const As = ({
4481
4520
  children: [
4482
4521
  /* @__PURE__ */ u.jsxs(Rr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4483
4522
  /* @__PURE__ */ u.jsx("span", { className: "font-mono", children: "Example Responses" }),
4484
- /* @__PURE__ */ u.jsx(Ye.List, { className: "flex gap-2", children: e.map((i) => /* @__PURE__ */ u.jsx(
4485
- Ye.Trigger,
4523
+ /* @__PURE__ */ u.jsx(Ke.List, { className: "flex gap-2", children: e.map((i) => /* @__PURE__ */ u.jsx(
4524
+ Ke.Trigger,
4486
4525
  {
4487
4526
  value: i.statusCode,
4488
4527
  className: se(
@@ -4495,11 +4534,11 @@ const As = ({
4495
4534
  i.statusCode
4496
4535
  )) })
4497
4536
  ] }),
4498
- e.map((i) => /* @__PURE__ */ u.jsx(Bs, { response: i }, i.statusCode))
4537
+ e.map((i) => /* @__PURE__ */ u.jsx(Gs, { response: i }, i.statusCode))
4499
4538
  ]
4500
4539
  }
4501
4540
  ) });
4502
- }, Ms = (e, r) => {
4541
+ }, Js = (e, r) => {
4503
4542
  let t;
4504
4543
  switch (r) {
4505
4544
  case "shell":
@@ -4540,7 +4579,7 @@ const As = ({
4540
4579
  break;
4541
4580
  }
4542
4581
  return t ? t[0] : "";
4543
- }, zs = rt(
4582
+ }, Vs = tt(
4544
4583
  /* GraphQL */
4545
4584
  `
4546
4585
  query getServerQuery($input: JSON!, $type: SchemaType!) {
@@ -4552,7 +4591,7 @@ const As = ({
4552
4591
  }
4553
4592
  }
4554
4593
  `
4555
- ), Gs = [
4594
+ ), Ds = [
4556
4595
  { value: "shell", label: "cURL" },
4557
4596
  { value: "js", label: "JavaScript" },
4558
4597
  { value: "python", label: "Python" },
@@ -4564,14 +4603,14 @@ const As = ({
4564
4603
  { value: "php", label: "PHP" },
4565
4604
  { value: "ruby", label: "Ruby" },
4566
4605
  { value: "swift", label: "Swift" }
4567
- ], Ws = ({
4606
+ ], Qs = ({
4568
4607
  operation: e,
4569
4608
  selectedResponse: r,
4570
4609
  onSelectResponse: t
4571
4610
  }) => {
4572
4611
  var O;
4573
- const { input: o, type: i, options: l } = Sr(), n = Or(zs, { input: o, type: i }), a = jr(n), s = io(e.method), [c, f] = Xo(), [, g] = lo(), [b, m] = ye(), j = c.get("lang") ?? (l == null ? void 0 : l.examplesLanguage) ?? "shell", v = (O = e.requestBody) == null ? void 0 : O.content, p = /* @__PURE__ */ u.jsx(
4574
- ta,
4612
+ const { input: o, type: i, options: s } = Sr(), n = Or(Vs, { input: o, type: i }), a = jr(n), l = io(e.method), [c, f] = ea(), [, g] = co(), [b, m] = ye(), j = c.get("lang") ?? (s == null ? void 0 : s.examplesLanguage) ?? "shell", v = (O = e.requestBody) == null ? void 0 : O.content, p = /* @__PURE__ */ u.jsx(
4613
+ na,
4575
4614
  {
4576
4615
  path: e.path,
4577
4616
  renderParam: ({ name: x }) => /* @__PURE__ */ u.jsx(
@@ -4584,9 +4623,9 @@ const As = ({
4584
4623
  }
4585
4624
  )
4586
4625
  }
4587
- ), { selectedServer: h } = $r(a.data.schema.servers), y = uo(() => {
4626
+ ), { selectedServer: h } = $r(a.data.schema.servers), y = fo(() => {
4588
4627
  var A;
4589
- const x = b ?? ((A = v == null ? void 0 : v[0]) != null && A.schema ? He(v[0].schema) : void 0), N = new Es({
4628
+ const x = b ?? ((A = v == null ? void 0 : v[0]) != null && A.schema ? Be(v[0].schema) : void 0), N = new Us({
4590
4629
  method: e.method.toLocaleUpperCase(),
4591
4630
  url: h + e.path.replaceAll("{", ":").replaceAll("}", ""),
4592
4631
  postData: x ? {
@@ -4600,7 +4639,7 @@ const As = ({
4600
4639
  headersSize: 0,
4601
4640
  bodySize: 0
4602
4641
  });
4603
- return Ms(N, j);
4642
+ return Js(N, j);
4604
4643
  }, [
4605
4644
  b,
4606
4645
  v,
@@ -4608,7 +4647,7 @@ const As = ({
4608
4647
  e.path,
4609
4648
  h,
4610
4649
  j
4611
- ]), [S, T] = As({ rootMargin: "200px 0px 200px 0px" }), d = T && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-playground-enabled"] === void 0 && !(l != null && l.disablePlayground));
4650
+ ]), [S, T] = Fs({ rootMargin: "200px 0px 200px 0px" }), d = T && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-playground-enabled"] === void 0 && !(s != null && s.disablePlayground));
4612
4651
  return /* @__PURE__ */ u.jsxs(
4613
4652
  "aside",
4614
4653
  {
@@ -4619,12 +4658,12 @@ const As = ({
4619
4658
  /* @__PURE__ */ u.jsxs(qr, { children: [
4620
4659
  /* @__PURE__ */ u.jsxs(Rr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
4621
4660
  /* @__PURE__ */ u.jsxs("span", { className: "font-mono break-words leading-6", children: [
4622
- /* @__PURE__ */ u.jsx("span", { className: se("font-semibold", s), children: e.method.toLocaleUpperCase() }),
4661
+ /* @__PURE__ */ u.jsx("span", { className: se("font-semibold", l), children: e.method.toLocaleUpperCase() }),
4623
4662
  " ",
4624
4663
  p
4625
4664
  ] }),
4626
4665
  d && /* @__PURE__ */ u.jsx(
4627
- Ls,
4666
+ Bs,
4628
4667
  {
4629
4668
  servers: a.data.schema.servers.map((x) => x.url),
4630
4669
  operation: e,
@@ -4633,8 +4672,8 @@ const As = ({
4633
4672
  )
4634
4673
  ] }),
4635
4674
  T && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
4636
- /* @__PURE__ */ u.jsx(Co, { className: "p-0", children: /* @__PURE__ */ u.jsx(Po, { children: /* @__PURE__ */ u.jsx(
4637
- po,
4675
+ /* @__PURE__ */ u.jsx(No, { className: "p-0", children: /* @__PURE__ */ u.jsx(Co, { children: /* @__PURE__ */ u.jsx(
4676
+ ho,
4638
4677
  {
4639
4678
  language: j,
4640
4679
  noBackground: !0,
@@ -4642,10 +4681,10 @@ const As = ({
4642
4681
  code: y
4643
4682
  }
4644
4683
  ) }) }),
4645
- /* @__PURE__ */ u.jsxs(No, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
4684
+ /* @__PURE__ */ u.jsxs(qo, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
4646
4685
  /* @__PURE__ */ u.jsx("span", { children: "Show example in" }),
4647
4686
  /* @__PURE__ */ u.jsx(
4648
- et,
4687
+ Ze,
4649
4688
  {
4650
4689
  className: "self-start max-w-[150px]",
4651
4690
  value: j,
@@ -4654,21 +4693,21 @@ const As = ({
4654
4693
  f((N) => (N.set("lang", x.target.value), N));
4655
4694
  });
4656
4695
  },
4657
- options: Gs
4696
+ options: Ds
4658
4697
  }
4659
4698
  )
4660
4699
  ] })
4661
4700
  ] })
4662
4701
  ] }),
4663
4702
  T && v && /* @__PURE__ */ u.jsx(
4664
- _s,
4703
+ zs,
4665
4704
  {
4666
4705
  content: v,
4667
4706
  onExampleChange: m
4668
4707
  }
4669
4708
  ),
4670
4709
  T && e.responses.length > 0 && /* @__PURE__ */ u.jsx(
4671
- Hs,
4710
+ Ws,
4672
4711
  {
4673
4712
  selectedResponse: r,
4674
4713
  onSelectResponse: t,
@@ -4678,15 +4717,15 @@ const As = ({
4678
4717
  ]
4679
4718
  }
4680
4719
  );
4681
- }, Js = {
4682
- AND: /* @__PURE__ */ u.jsx(Jo, { size: 16, className: "fill-card" }),
4683
- OR: /* @__PURE__ */ u.jsx(Wo, { size: 16, className: "fill-card" }),
4684
- ONE: /* @__PURE__ */ u.jsx(Go, { size: 14, className: "fill-card" })
4685
- }, Vs = {
4720
+ }, Ks = {
4721
+ AND: /* @__PURE__ */ u.jsx(Vo, { size: 16, className: "fill-card" }),
4722
+ OR: /* @__PURE__ */ u.jsx(Jo, { size: 16, className: "fill-card" }),
4723
+ ONE: /* @__PURE__ */ u.jsx(Wo, { size: 14, className: "fill-card" })
4724
+ }, Ys = {
4686
4725
  AND: "text-green-500 dark:text-green-300/60",
4687
4726
  OR: "text-blue-400 dark:text-blue-500",
4688
4727
  ONE: "text-purple-500 dark:text-purple-300/60"
4689
- }, Ds = ({
4728
+ }, Xs = ({
4690
4729
  type: e,
4691
4730
  isOpen: r,
4692
4731
  className: t
@@ -4694,13 +4733,13 @@ const As = ({
4694
4733
  "div",
4695
4734
  {
4696
4735
  className: se(
4697
- Vs[e],
4736
+ Ys[e],
4698
4737
  "relative text-sm flex py-2",
4699
4738
  "before:border-l before:absolute before:-top-2 before:-bottom-2 before:border-border before:border-dashed before:content-['']",
4700
4739
  t
4701
4740
  ),
4702
4741
  children: /* @__PURE__ */ u.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
4703
- Js[e],
4742
+ Ks[e],
4704
4743
  /* @__PURE__ */ u.jsx(
4705
4744
  "div",
4706
4745
  {
@@ -4713,7 +4752,7 @@ const As = ({
4713
4752
  )
4714
4753
  ] })
4715
4754
  }
4716
- ), Qs = (e) => {
4755
+ ), Zs = (e) => {
4717
4756
  const [r, t] = ye(!0);
4718
4757
  return /* @__PURE__ */ u.jsxs(
4719
4758
  xe.Root,
@@ -4722,17 +4761,17 @@ const As = ({
4722
4761
  onOpenChange: () => t((o) => !o),
4723
4762
  className: "group",
4724
4763
  children: [
4725
- /* @__PURE__ */ u.jsx(xe.Trigger, { children: /* @__PURE__ */ u.jsx(Ds, { type: e.type, isOpen: r }) }),
4764
+ /* @__PURE__ */ u.jsx(xe.Trigger, { children: /* @__PURE__ */ u.jsx(Xs, { type: e.type, isOpen: r }) }),
4726
4765
  !r && /* @__PURE__ */ u.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
4727
- /* @__PURE__ */ u.jsx(xe.Content, { children: /* @__PURE__ */ u.jsx(Ge, { schema: e.schema, level: e.level + 1 }) })
4766
+ /* @__PURE__ */ u.jsx(xe.Content, { children: /* @__PURE__ */ u.jsx(ze, { schema: e.schema, level: e.level + 1 }) })
4728
4767
  ]
4729
4768
  }
4730
4769
  );
4731
- }, Ks = {
4770
+ }, el = {
4732
4771
  AND: "All of",
4733
4772
  OR: "Any of",
4734
4773
  ONE: "One of"
4735
- }, Ys = ({
4774
+ }, tl = ({
4736
4775
  schemas: e,
4737
4776
  type: r,
4738
4777
  isOpen: t,
@@ -4740,115 +4779,110 @@ const As = ({
4740
4779
  toggleOpen: i
4741
4780
  }) => /* @__PURE__ */ u.jsx(xe.Root, { open: t, onOpenChange: i, asChild: !0, children: /* @__PURE__ */ u.jsxs(be, { className: "px-6", children: [
4742
4781
  /* @__PURE__ */ u.jsxs(xe.Trigger, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
4743
- t ? /* @__PURE__ */ u.jsx(Vo, { size: 14 }) : /* @__PURE__ */ u.jsx(Do, { size: 14 }),
4744
- /* @__PURE__ */ u.jsx("span", { children: Ks[r] })
4782
+ t ? /* @__PURE__ */ u.jsx(Do, { size: 14 }) : /* @__PURE__ */ u.jsx(Qo, { size: 14 }),
4783
+ /* @__PURE__ */ u.jsx("span", { children: el[r] })
4745
4784
  ] }),
4746
- /* @__PURE__ */ u.jsx(xe.Content, { className: "pb-4", children: e.map((l, n) => (
4785
+ /* @__PURE__ */ u.jsx(xe.Content, { className: "pb-4", children: e.map((s, n) => (
4747
4786
  // eslint-disable-next-line react/no-array-index-key
4748
4787
  /* @__PURE__ */ u.jsx(
4749
- Qs,
4788
+ Zs,
4750
4789
  {
4751
4790
  type: r,
4752
- schema: l,
4791
+ schema: s,
4753
4792
  level: o
4754
4793
  },
4755
4794
  n
4756
4795
  )
4757
4796
  )) })
4758
- ] }) }), Xs = (e) => e.type === "object" || e.type === "array" && typeof e.items == "object" && (!e.items.type || e.items.type === "object"), xr = (e) => !!(e.oneOf ?? e.allOf ?? e.anyOf), Zs = {
4797
+ ] }) }), rl = (e) => e.type === "object" || e.type === "array" && typeof e.items == "object" && (!e.items.type || e.items.type === "object"), xr = (e) => !!(e.oneOf ?? e.allOf ?? e.anyOf), nl = {
4759
4798
  allOf: "AND",
4760
4799
  anyOf: "OR",
4761
4800
  oneOf: "ONE"
4762
- }, hr = (e) => e === Oa, Ro = ({
4801
+ }, dr = (e) => e === Pa, ko = ({
4763
4802
  schema: e,
4764
4803
  level: r
4765
4804
  }) => {
4766
- const [t, o] = ye(!0), i = fa(() => o((l) => !l), []);
4767
- for (const [l, n] of Sa(Zs))
4768
- if (e[l])
4805
+ const [t, o] = ye(!0), i = da(() => o((s) => !s), []);
4806
+ for (const [s, n] of Ta(nl))
4807
+ if (e[s])
4769
4808
  return /* @__PURE__ */ u.jsx(
4770
- Ys,
4809
+ tl,
4771
4810
  {
4772
- schemas: e[l],
4811
+ schemas: e[s],
4773
4812
  type: n,
4774
4813
  isOpen: t,
4775
4814
  toggleOpen: i,
4776
4815
  level: r
4777
4816
  }
4778
4817
  );
4779
- }, Zn = () => /* @__PURE__ */ u.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: [
4780
- /* @__PURE__ */ u.jsx(Ko, { size: 16 }),
4818
+ }, Zn = () => /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-1.5 italic text-xs text-muted-foreground font-mono bg-muted px-2 py-0.5 rounded-md", children: [
4819
+ /* @__PURE__ */ u.jsx(Xo, { size: 13 }),
4781
4820
  /* @__PURE__ */ u.jsx("span", { children: "circular" })
4782
- ] }), el = ({
4821
+ ] }), ol = ({
4783
4822
  name: e,
4784
4823
  schema: r,
4785
4824
  group: t,
4786
4825
  level: o,
4787
4826
  defaultOpen: i = !1,
4788
- showCollapseButton: l = !0
4827
+ showCollapseButton: s = !0
4789
4828
  }) => {
4790
4829
  const [n, a] = ye(i);
4791
- return hr(r) ? /* @__PURE__ */ u.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ u.jsx("div", { className: "flex flex-col gap-1 justify-between text-sm", children: /* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 items-center", children: [
4830
+ return dr(r) ? /* @__PURE__ */ u.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ u.jsx("div", { className: "flex flex-col gap-2.5 justify-between text-sm", children: /* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 items-center", children: [
4792
4831
  /* @__PURE__ */ u.jsx("code", { children: e }),
4793
- /* @__PURE__ */ u.jsx(we, { variant: "muted", children: "object" }),
4794
- t === "optional" && /* @__PURE__ */ u.jsx(we, { variant: "outline", children: "optional" }),
4832
+ /* @__PURE__ */ u.jsx(
4833
+ gr,
4834
+ {
4835
+ schema: r,
4836
+ extraItems: [t === "optional" && "optional"]
4837
+ }
4838
+ ),
4795
4839
  /* @__PURE__ */ u.jsx(Zn, {})
4796
- ] }) }) }) : /* @__PURE__ */ u.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-1.5 justify-between text-sm", children: [
4840
+ ] }) }) }) : /* @__PURE__ */ u.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-2.5 justify-between text-sm", children: [
4797
4841
  /* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 items-center", children: [
4798
4842
  /* @__PURE__ */ u.jsx("code", { children: e }),
4799
- /* @__PURE__ */ u.jsx(we, { variant: "muted", children: r.type === "array" && r.items.type ? /* @__PURE__ */ u.jsxs("span", { children: [
4800
- r.items.type,
4801
- "[]"
4802
- ] }) : Array.isArray(r.type) ? /* @__PURE__ */ u.jsx("span", { children: r.type.join(" | ") }) : /* @__PURE__ */ u.jsx("span", { children: r.type }) }),
4803
- t === "optional" && /* @__PURE__ */ u.jsx(we, { variant: "outline", children: "optional" }),
4804
- r.type === "array" && "items" in r && hr(r.items) && /* @__PURE__ */ u.jsx(Zn, {})
4843
+ /* @__PURE__ */ u.jsx(
4844
+ gr,
4845
+ {
4846
+ schema: r,
4847
+ extraItems: [t === "optional" && "optional"]
4848
+ }
4849
+ ),
4850
+ r.type === "array" && "items" in r && dr(r.items) && /* @__PURE__ */ u.jsx(Zn, {})
4805
4851
  ] }),
4806
4852
  r.description && /* @__PURE__ */ u.jsx(
4807
- Se,
4853
+ we,
4808
4854
  {
4809
- className: se(qe, "text-sm leading-normal line-clamp-4"),
4855
+ className: se(Ne, "text-sm leading-normal line-clamp-4"),
4810
4856
  content: r.description
4811
4857
  }
4812
4858
  ),
4813
- r.format && /* @__PURE__ */ u.jsxs("div", { children: [
4814
- /* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: "Format: " }),
4815
- /* @__PURE__ */ u.jsx("code", { children: r.format })
4816
- ] }),
4817
- r.enum && /* @__PURE__ */ u.jsx(yo, { values: r.enum }),
4818
- (xr(r) || Xs(r)) && /* @__PURE__ */ u.jsxs(
4859
+ r.enum && /* @__PURE__ */ u.jsx(mo, { values: r.enum }),
4860
+ (xr(r) || rl(r)) && /* @__PURE__ */ u.jsxs(
4819
4861
  xe.Root,
4820
4862
  {
4821
4863
  defaultOpen: i,
4822
4864
  open: n,
4823
4865
  onOpenChange: () => a(!n),
4824
4866
  children: [
4825
- l && /* @__PURE__ */ u.jsx(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ u.jsxs(
4826
- fo,
4827
- {
4828
- variant: "outline",
4829
- size: "sm",
4830
- className: "mt-2 flex gap-1.5",
4831
- children: [
4832
- /* @__PURE__ */ u.jsx(Qo, { size: 18 }),
4833
- n ? "Hide nested properties" : "Show nested properties"
4834
- ]
4835
- }
4836
- ) }),
4837
- /* @__PURE__ */ u.jsx(xe.Content, { children: /* @__PURE__ */ u.jsx("div", { className: "mt-2", children: xr(r) ? /* @__PURE__ */ u.jsx(Ro, { schema: r, level: o + 1 }) : r.type === "object" ? /* @__PURE__ */ u.jsx(Ge, { schema: r, level: o + 1 }) : r.type === "array" && "items" in r && typeof r.items == "object" && !hr(r.items) && /* @__PURE__ */ u.jsx(Ge, { schema: r.items, level: o + 1 }) }) })
4867
+ s && /* @__PURE__ */ u.jsx(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ u.jsxs(po, { variant: "expand", size: "sm", className: "h-7", children: [
4868
+ n ? /* @__PURE__ */ u.jsx(Ko, { size: 12 }) : /* @__PURE__ */ u.jsx(Yo, { size: 12 }),
4869
+ n ? "Hide properties" : "Show properties"
4870
+ ] }) }),
4871
+ /* @__PURE__ */ u.jsx(xe.Content, { children: /* @__PURE__ */ u.jsx("div", { className: "mt-2", children: xr(r) ? /* @__PURE__ */ u.jsx(ko, { schema: r, level: o + 1 }) : r.type === "object" ? /* @__PURE__ */ u.jsx(ze, { schema: r, level: o + 1 }) : r.type === "array" && "items" in r && typeof r.items == "object" && !dr(r.items) && /* @__PURE__ */ u.jsx(ze, { schema: r.items, level: o + 1 }) }) })
4838
4872
  ]
4839
4873
  }
4840
4874
  )
4841
4875
  ] }) });
4842
- }, Ge = ({
4876
+ }, ze = ({
4843
4877
  schema: e,
4844
4878
  level: r = 0,
4845
4879
  defaultOpen: t = !1
4846
4880
  }) => {
4847
4881
  if (!e || Object.keys(e).length === 0)
4848
4882
  return /* @__PURE__ */ u.jsx(be, { className: "p-4", children: /* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
4849
- const o = (i, l) => {
4883
+ const o = (i, s) => {
4850
4884
  if (xr(i))
4851
- return /* @__PURE__ */ u.jsx(Ro, { schema: i, level: l });
4885
+ return /* @__PURE__ */ u.jsx(ko, { schema: i, level: s });
4852
4886
  if (i.type === "array" && i.items) {
4853
4887
  const n = i.items;
4854
4888
  return typeof n.type == "string" && ["string", "number", "boolean", "integer"].includes(n.type) ? /* @__PURE__ */ u.jsxs(be, { className: "p-4", children: [
@@ -4857,10 +4891,10 @@ const As = ({
4857
4891
  "[]"
4858
4892
  ] }),
4859
4893
  i.description && /* @__PURE__ */ u.jsx(
4860
- Se,
4894
+ we,
4861
4895
  {
4862
4896
  className: se(
4863
- qe,
4897
+ Ne,
4864
4898
  "text-sm leading-normal line-clamp-4"
4865
4899
  ),
4866
4900
  content: i.description
@@ -4868,18 +4902,18 @@ const As = ({
4868
4902
  )
4869
4903
  ] }) : n.type === "object" ? /* @__PURE__ */ u.jsxs(be, { className: "flex flex-col gap-2 bg-border/30 p-4", children: [
4870
4904
  /* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: "object[]" }),
4871
- o(n, l + 1)
4872
- ] }) : o(n, l + 1);
4905
+ o(n, s + 1)
4906
+ ] }) : o(n, s + 1);
4873
4907
  }
4874
4908
  if (i.type === "object" && (!i.properties || Object.keys(i.properties).length === 0))
4875
4909
  return /* @__PURE__ */ u.jsxs(be, { className: "p-4 flex gap-2 items-center", children: [
4876
4910
  "name" in i && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.name }),
4877
4911
  /* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: "object" }),
4878
4912
  i.description && /* @__PURE__ */ u.jsx(
4879
- Se,
4913
+ we,
4880
4914
  {
4881
4915
  className: se(
4882
- qe,
4916
+ Ne,
4883
4917
  "text-sm leading-normal line-clamp-4"
4884
4918
  ),
4885
4919
  content: i.description
@@ -4887,59 +4921,59 @@ const As = ({
4887
4921
  )
4888
4922
  ] });
4889
4923
  if (i.properties) {
4890
- const n = ho(
4924
+ const n = yo(
4891
4925
  Object.entries(i.properties),
4892
- ([s, c]) => {
4926
+ ([l, c]) => {
4893
4927
  var f;
4894
- return c.deprecated ? "deprecated" : (f = i.required) != null && f.includes(s) ? "required" : "optional";
4928
+ return c.deprecated ? "deprecated" : (f = i.required) != null && f.includes(l) ? "required" : "optional";
4895
4929
  }
4896
4930
  ), a = ["required", "optional", "deprecated"];
4897
4931
  return /* @__PURE__ */ u.jsx(be, { className: "divide-y overflow-hidden", children: a.map(
4898
- (s) => n[s] && /* @__PURE__ */ u.jsx("ul", { className: "divide-y", children: n[s].map(([c, f]) => /* @__PURE__ */ u.jsx(
4899
- el,
4932
+ (l) => n[l] && /* @__PURE__ */ u.jsx("ul", { className: "divide-y", children: n[l].map(([c, f]) => /* @__PURE__ */ u.jsx(
4933
+ ol,
4900
4934
  {
4901
4935
  name: c,
4902
4936
  schema: f,
4903
- group: s,
4904
- level: l,
4937
+ group: l,
4938
+ level: s,
4905
4939
  defaultOpen: t
4906
4940
  },
4907
4941
  c
4908
- )) }, s)
4942
+ )) }, l)
4909
4943
  ) });
4910
4944
  }
4911
4945
  return typeof i.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(i.type) ? /* @__PURE__ */ u.jsxs(be, { className: "p-4", children: [
4912
4946
  /* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: i.type }),
4913
4947
  i.description && /* @__PURE__ */ u.jsx(
4914
- Se,
4948
+ we,
4915
4949
  {
4916
4950
  className: se(
4917
- qe,
4951
+ Ne,
4918
4952
  "text-sm leading-normal line-clamp-4"
4919
4953
  ),
4920
4954
  content: i.description
4921
4955
  }
4922
4956
  )
4923
4957
  ] }) : i.additionalProperties ? /* @__PURE__ */ u.jsxs(be, { className: "my-2", children: [
4924
- /* @__PURE__ */ u.jsx(va, { children: /* @__PURE__ */ u.jsx(ba, { children: "Additional Properties:" }) }),
4925
- /* @__PURE__ */ u.jsx(xa, { children: o(
4958
+ /* @__PURE__ */ u.jsx(xa, { children: /* @__PURE__ */ u.jsx(ja, { children: "Additional Properties:" }) }),
4959
+ /* @__PURE__ */ u.jsx($a, { children: o(
4926
4960
  i.additionalProperties,
4927
- l + 1
4961
+ s + 1
4928
4962
  ) })
4929
4963
  ] }) : null;
4930
4964
  };
4931
4965
  return o(e, r);
4932
- }, tl = ["path", "query", "header", "cookie"], rl = ({
4966
+ }, al = ["path", "query", "header", "cookie"], il = ({
4933
4967
  operationFragment: e,
4934
4968
  serverUrl: r
4935
4969
  }) => {
4936
- var a, s, c;
4937
- const t = Ta(nl, e), o = ho(
4970
+ var a, l, c;
4971
+ const t = Ca(sl, e), o = yo(
4938
4972
  t.parameters ?? [],
4939
4973
  (f) => f.in
4940
- ), i = t.responses.at(0), [l, n] = ye(i == null ? void 0 : i.statusCode);
4974
+ ), i = t.responses.at(0), [s, n] = ye(i == null ? void 0 : i.statusCode);
4941
4975
  return /* @__PURE__ */ u.jsxs("div", { className: "border-b-2 mb-16 pb-16", children: [
4942
- t.deprecated && /* @__PURE__ */ u.jsx(we, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
4976
+ t.deprecated && /* @__PURE__ */ u.jsx(ka, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
4943
4977
  /* @__PURE__ */ u.jsxs(
4944
4978
  "div",
4945
4979
  {
@@ -4949,7 +4983,7 @@ const As = ({
4949
4983
  ),
4950
4984
  children: [
4951
4985
  /* @__PURE__ */ u.jsx(
4952
- Be,
4986
+ _e,
4953
4987
  {
4954
4988
  level: 2,
4955
4989
  id: t.slug,
@@ -4960,24 +4994,24 @@ const As = ({
4960
4994
  ),
4961
4995
  /* @__PURE__ */ u.jsxs("div", { className: "text-sm flex gap-2 font-mono col-span-full", children: [
4962
4996
  /* @__PURE__ */ u.jsx("span", { className: io(t.method), children: t.method.toUpperCase() }),
4963
- /* @__PURE__ */ u.jsxs(so, { className: "max-w-full truncate flex cursor-pointer", children: [
4997
+ /* @__PURE__ */ u.jsxs(lo, { className: "max-w-full truncate flex cursor-pointer", children: [
4964
4998
  r && /* @__PURE__ */ u.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: r }),
4965
4999
  /* @__PURE__ */ u.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: t.path })
4966
5000
  ] })
4967
5001
  ] }),
4968
5002
  /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-4", children: [
4969
5003
  t.description && /* @__PURE__ */ u.jsx(
4970
- Se,
5004
+ we,
4971
5005
  {
4972
- className: `${qe} max-w-full prose-img:max-w-prose`,
5006
+ className: `${Ne} max-w-full prose-img:max-w-prose`,
4973
5007
  content: t.description
4974
5008
  }
4975
5009
  ),
4976
- t.parameters && t.parameters.length > 0 && /* @__PURE__ */ u.jsx(u.Fragment, { children: tl.flatMap(
5010
+ t.parameters && t.parameters.length > 0 && /* @__PURE__ */ u.jsx(u.Fragment, { children: al.flatMap(
4977
5011
  (f) => {
4978
5012
  var g;
4979
5013
  return (g = o[f]) != null && g.length ? /* @__PURE__ */ u.jsx(
4980
- Ea,
5014
+ Ua,
4981
5015
  {
4982
5016
  summary: t.summary ?? void 0,
4983
5017
  id: t.slug,
@@ -4988,15 +5022,15 @@ const As = ({
4988
5022
  ) : [];
4989
5023
  }
4990
5024
  ) }),
4991
- qa((c = (s = (a = t.requestBody) == null ? void 0 : a.content) == null ? void 0 : s.at(0)) == null ? void 0 : c.schema, (f) => /* @__PURE__ */ u.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
5025
+ Ea((c = (l = (a = t.requestBody) == null ? void 0 : a.content) == null ? void 0 : l.at(0)) == null ? void 0 : c.schema, (f) => /* @__PURE__ */ u.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4992
5026
  /* @__PURE__ */ u.jsxs(
4993
- Be,
5027
+ _e,
4994
5028
  {
4995
5029
  level: 3,
4996
5030
  className: "capitalize",
4997
5031
  id: `${t.slug}/request-body`,
4998
5032
  children: [
4999
- t.summary && /* @__PURE__ */ u.jsxs(mr, { children: [
5033
+ t.summary && /* @__PURE__ */ u.jsxs(yr, { children: [
5000
5034
  t.summary,
5001
5035
  " › "
5002
5036
  ] }),
@@ -5004,17 +5038,17 @@ const As = ({
5004
5038
  ]
5005
5039
  }
5006
5040
  ),
5007
- /* @__PURE__ */ u.jsx(Ge, { schema: f })
5041
+ /* @__PURE__ */ u.jsx(ze, { schema: f })
5008
5042
  ] })),
5009
5043
  t.responses.length > 0 && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
5010
5044
  /* @__PURE__ */ u.jsxs(
5011
- Be,
5045
+ _e,
5012
5046
  {
5013
5047
  level: 3,
5014
5048
  className: "capitalize mt-8 pt-8 border-t",
5015
5049
  id: `${t.slug}/responses`,
5016
5050
  children: [
5017
- t.summary && /* @__PURE__ */ u.jsxs(mr, { children: [
5051
+ t.summary && /* @__PURE__ */ u.jsxs(yr, { children: [
5018
5052
  t.summary,
5019
5053
  " › "
5020
5054
  ] }),
@@ -5023,13 +5057,13 @@ const As = ({
5023
5057
  }
5024
5058
  ),
5025
5059
  /* @__PURE__ */ u.jsxs(
5026
- ha,
5060
+ ma,
5027
5061
  {
5028
5062
  onValueChange: (f) => n(f),
5029
- value: l,
5063
+ value: s,
5030
5064
  children: [
5031
- t.responses.length > 1 && /* @__PURE__ */ u.jsx(ya, { children: t.responses.map((f) => /* @__PURE__ */ u.jsx(
5032
- ma,
5065
+ t.responses.length > 1 && /* @__PURE__ */ u.jsx(ga, { children: t.responses.map((f) => /* @__PURE__ */ u.jsx(
5066
+ va,
5033
5067
  {
5034
5068
  value: f.statusCode,
5035
5069
  title: f.description ?? void 0,
@@ -5040,11 +5074,11 @@ const As = ({
5040
5074
  /* @__PURE__ */ u.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
5041
5075
  var g, b;
5042
5076
  return /* @__PURE__ */ u.jsx(
5043
- ga,
5077
+ ba,
5044
5078
  {
5045
5079
  value: f.statusCode,
5046
5080
  children: /* @__PURE__ */ u.jsx(
5047
- Ge,
5081
+ ze,
5048
5082
  {
5049
5083
  schema: (b = (g = f.content) == null ? void 0 : g.find((m) => m.schema)) == null ? void 0 : b.schema
5050
5084
  }
@@ -5059,9 +5093,9 @@ const As = ({
5059
5093
  ] })
5060
5094
  ] }),
5061
5095
  /* @__PURE__ */ u.jsx(
5062
- Ws,
5096
+ Qs,
5063
5097
  {
5064
- selectedResponse: l,
5098
+ selectedResponse: s,
5065
5099
  onSelectResponse: n,
5066
5100
  operation: t
5067
5101
  }
@@ -5075,7 +5109,7 @@ const As = ({
5075
5109
  function eo(e, r = 160) {
5076
5110
  return e ? e.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/!\[.*?\]\(.*?\)/g, "").replace(/[_*`~]/g, "").replace(/^(?:>|\s*#+|-{3,}|\*{3,})/gm, "").replace(/[|>{}[\]]/g, "").replace(/\s+/g, " ").trim().substring(0, r).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;") : "";
5077
5111
  }
5078
- const nl = rt(
5112
+ const sl = tt(
5079
5113
  /* GraphQL */
5080
5114
  `
5081
5115
  fragment OperationsFragment on OperationItem {
@@ -5142,7 +5176,7 @@ const nl = rt(
5142
5176
  }
5143
5177
  }
5144
5178
  `
5145
- ), ol = rt(
5179
+ ), ll = tt(
5146
5180
  /* GraphQL */
5147
5181
  `
5148
5182
  query AllOperations(
@@ -5171,20 +5205,20 @@ const nl = rt(
5171
5205
  }
5172
5206
  }
5173
5207
  `
5174
- ), Cl = ({
5208
+ ), kl = ({
5175
5209
  tag: e,
5176
5210
  untagged: r
5177
5211
  }) => {
5178
5212
  var T;
5179
- const { input: t, type: o, versions: i, version: l, options: n } = Sr(), a = Or(ol, {
5213
+ const { input: t, type: o, versions: i, version: s, options: n } = Sr(), a = Or(ll, {
5180
5214
  input: t,
5181
5215
  type: o,
5182
5216
  tag: e,
5183
5217
  untagged: r
5184
- }), s = jr(a), {
5218
+ }), l = jr(a), {
5185
5219
  data: { schema: c }
5186
- } = s, { selectedServer: f } = $r(c.servers), g = c.title, b = c.summary, m = c.description, j = Zo(), v = c.operations, p = (T = c.tags.find((d) => d.name === e)) == null ? void 0 : T.description;
5187
- Uo();
5220
+ } = l, { selectedServer: f } = $r(c.servers), g = c.title, b = c.summary, m = c.description, j = ta(), v = c.operations, p = (T = c.tags.find((d) => d.name === e)) == null ? void 0 : T.description;
5221
+ Fo();
5188
5222
  const h = p ? eo(p) : b || (m ? eo(m) : void 0), y = Object.entries(i).length > 1, S = (n == null ? void 0 : n.showVersionSelect) === "always" || y && (n == null ? void 0 : n.showVersionSelect) !== "hide";
5189
5223
  return /* @__PURE__ */ u.jsxs(
5190
5224
  "div",
@@ -5193,7 +5227,7 @@ const nl = rt(
5193
5227
  "data-pagefind-filter": "section:openapi",
5194
5228
  "data-pagefind-meta": "section:openapi",
5195
5229
  children: [
5196
- /* @__PURE__ */ u.jsxs(Fo, { children: [
5230
+ /* @__PURE__ */ u.jsxs(_o, { children: [
5197
5231
  /* @__PURE__ */ u.jsx("title", { children: [e, g].filter(Boolean).join(" - ") }),
5198
5232
  h && /* @__PURE__ */ u.jsx("meta", { name: "description", content: h })
5199
5233
  ] }),
@@ -5201,9 +5235,9 @@ const nl = rt(
5201
5235
  /* @__PURE__ */ u.jsxs(oo, { className: "w-full", children: [
5202
5236
  /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end", children: [
5203
5237
  /* @__PURE__ */ u.jsxs("div", { className: "flex-1", children: [
5204
- /* @__PURE__ */ u.jsx(sa, { children: g }),
5238
+ /* @__PURE__ */ u.jsx(ca, { children: g }),
5205
5239
  /* @__PURE__ */ u.jsxs(
5206
- Be,
5240
+ _e,
5207
5241
  {
5208
5242
  level: 1,
5209
5243
  id: "description",
@@ -5214,7 +5248,7 @@ const nl = rt(
5214
5248
  S && /* @__PURE__ */ u.jsxs("span", { className: "text-xl text-muted-foreground ml-1.5", children: [
5215
5249
  " ",
5216
5250
  "(",
5217
- l,
5251
+ s,
5218
5252
  ")"
5219
5253
  ] })
5220
5254
  ]
@@ -5223,18 +5257,18 @@ const nl = rt(
5223
5257
  ] }),
5224
5258
  /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
5225
5259
  S && /* @__PURE__ */ u.jsxs(
5226
- ra,
5260
+ oa,
5227
5261
  {
5228
5262
  onValueChange: (d) => j(i[d]),
5229
- defaultValue: l,
5263
+ defaultValue: s,
5230
5264
  disabled: !y,
5231
5265
  children: [
5232
- /* @__PURE__ */ u.jsx(na, { className: "w-[180px]", children: /* @__PURE__ */ u.jsx(oa, { placeholder: "Select version" }) }),
5233
- /* @__PURE__ */ u.jsx(aa, { children: Object.entries(i).map(([d]) => /* @__PURE__ */ u.jsx(ia, { value: d, children: d }, d)) })
5266
+ /* @__PURE__ */ u.jsx(aa, { className: "w-[180px]", children: /* @__PURE__ */ u.jsx(ia, { placeholder: "Select version" }) }),
5267
+ /* @__PURE__ */ u.jsx(sa, { children: Object.entries(i).map(([d]) => /* @__PURE__ */ u.jsx(la, { value: d, children: d }, d)) })
5234
5268
  ]
5235
5269
  }
5236
5270
  ),
5237
- c.description && /* @__PURE__ */ u.jsxs(yr, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
5271
+ c.description && /* @__PURE__ */ u.jsxs(hr, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
5238
5272
  /* @__PURE__ */ u.jsx("span", { children: "Schema description" }),
5239
5273
  /* @__PURE__ */ u.jsx(
5240
5274
  to,
@@ -5244,7 +5278,7 @@ const nl = rt(
5244
5278
  }
5245
5279
  ),
5246
5280
  /* @__PURE__ */ u.jsx(
5247
- Yo,
5281
+ Zo,
5248
5282
  {
5249
5283
  className: "group-data-[state=closed]:hidden translate-y-px",
5250
5284
  size: 13
@@ -5257,11 +5291,11 @@ const nl = rt(
5257
5291
  "div",
5258
5292
  {
5259
5293
  className: se(
5260
- qe,
5294
+ Ne,
5261
5295
  "pt-4 max-w-full prose-img:max-w-prose"
5262
5296
  ),
5263
5297
  children: /* @__PURE__ */ u.jsx(
5264
- Se,
5298
+ we,
5265
5299
  {
5266
5300
  className: "border rounded bg-muted/25 border-border px-2.5 md:px-4",
5267
5301
  content: c.description
@@ -5274,17 +5308,17 @@ const nl = rt(
5274
5308
  "div",
5275
5309
  {
5276
5310
  className: se(
5277
- qe,
5311
+ Ne,
5278
5312
  "my-4 max-w-full prose-img:max-w-prose"
5279
5313
  ),
5280
- children: /* @__PURE__ */ u.jsx(Se, { content: p })
5314
+ children: /* @__PURE__ */ u.jsx(we, { content: p })
5281
5315
  }
5282
5316
  )
5283
5317
  ] }),
5284
5318
  /* @__PURE__ */ u.jsx("hr", {}),
5285
- /* @__PURE__ */ u.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ u.jsx(Ca, {}) }),
5319
+ /* @__PURE__ */ u.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ u.jsx(qa, {}) }),
5286
5320
  v.map((d) => /* @__PURE__ */ u.jsx(
5287
- rl,
5321
+ il,
5288
5322
  {
5289
5323
  serverUrl: f,
5290
5324
  operationFragment: d
@@ -5296,7 +5330,7 @@ const nl = rt(
5296
5330
  );
5297
5331
  };
5298
5332
  export {
5299
- Cl as OperationList,
5300
- nl as OperationsFragment
5333
+ kl as OperationList,
5334
+ sl as OperationsFragment
5301
5335
  };
5302
- //# sourceMappingURL=OperationList-a7wnHdXv.js.map
5336
+ //# sourceMappingURL=OperationList-CENzwqY8.js.map