zudoku 0.23.9 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/cli/cmds/dev.js +5 -0
  2. package/dist/cli/cmds/dev.js.map +1 -1
  3. package/dist/cli/dev/handler.d.ts +1 -0
  4. package/dist/cli/dev/handler.js +1 -1
  5. package/dist/cli/dev/handler.js.map +1 -1
  6. package/dist/lib/authentication/providers/openid.js +2 -1
  7. package/dist/lib/authentication/providers/openid.js.map +1 -1
  8. package/dist/lib/components/index.d.ts +17 -13
  9. package/dist/lib/components/index.js +6 -2
  10. package/dist/lib/components/index.js.map +1 -1
  11. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  12. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  13. package/dist/lib/oas/parser/dereference/index.d.ts +1 -0
  14. package/dist/lib/oas/parser/dereference/index.js +6 -3
  15. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  16. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +7 -1
  17. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
  18. package/dist/vite/dev-server.d.ts +1 -0
  19. package/dist/vite/dev-server.js +4 -0
  20. package/dist/vite/dev-server.js.map +1 -1
  21. package/lib/{AuthenticationPlugin-fB7viE7A.js → AuthenticationPlugin-DVLEc6cm.js} +2 -2
  22. package/lib/{AuthenticationPlugin-fB7viE7A.js.map → AuthenticationPlugin-DVLEc6cm.js.map} +1 -1
  23. package/lib/{MdxPage-CPBw4_lf.js → MdxPage-DKMbBROv.js} +2 -2
  24. package/lib/{MdxPage-CPBw4_lf.js.map → MdxPage-DKMbBROv.js.map} +1 -1
  25. package/lib/{OperationList-ChQR0IcQ.js → OperationList-CqLL5P5l.js} +574 -568
  26. package/lib/{OperationList-ChQR0IcQ.js.map → OperationList-CqLL5P5l.js.map} +1 -1
  27. package/lib/{Route-Ag5MH86N.js → Route-DYwKZ_c_.js} +2 -2
  28. package/lib/{Route-Ag5MH86N.js.map → Route-DYwKZ_c_.js.map} +1 -1
  29. package/lib/{Select-D3XuKKuH.js → Select-B_IxRUUC.js} +3 -3
  30. package/lib/{Select-D3XuKKuH.js.map → Select-B_IxRUUC.js.map} +1 -1
  31. package/lib/{utils-B4O1uet5.js → ZudokuContext-hmLMUdf2.js} +37 -37
  32. package/lib/ZudokuContext-hmLMUdf2.js.map +1 -0
  33. package/lib/assets/{worker-D2kRl-cG.js → worker-DV9Ecqy9.js} +348 -346
  34. package/lib/assets/{worker-D2kRl-cG.js.map → worker-DV9Ecqy9.js.map} +1 -1
  35. package/lib/{createServer-69sLlmQA.js → createServer-C4C0OO0m.js} +1250 -1285
  36. package/lib/createServer-C4C0OO0m.js.map +1 -0
  37. package/lib/{hook-DgGeo5iL.js → hook-CHq7pFyz.js} +2 -2
  38. package/lib/{hook-DgGeo5iL.js.map → hook-CHq7pFyz.js.map} +1 -1
  39. package/lib/index-DyBL--Kz.js +826 -0
  40. package/lib/index-DyBL--Kz.js.map +1 -0
  41. package/lib/{index-DtJxZrbj.js → index-DzRORsY1.js} +7 -7
  42. package/lib/{index-DtJxZrbj.js.map → index-DzRORsY1.js.map} +1 -1
  43. package/lib/zudoku.auth-clerk.js +1 -1
  44. package/lib/zudoku.auth-openid.js +176 -175
  45. package/lib/zudoku.auth-openid.js.map +1 -1
  46. package/lib/zudoku.components.js +173 -172
  47. package/lib/zudoku.components.js.map +1 -1
  48. package/lib/zudoku.openapi-worker.js +1 -1
  49. package/lib/zudoku.plugin-api-catalog.js +1 -1
  50. package/lib/zudoku.plugin-api-keys.js +3 -3
  51. package/lib/zudoku.plugin-markdown.js +1 -1
  52. package/lib/zudoku.plugin-openapi.js +3 -3
  53. package/package.json +3 -3
  54. package/src/lib/authentication/providers/openid.tsx +6 -1
  55. package/src/lib/components/index.ts +7 -3
  56. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  57. package/src/lib/oas/parser/dereference/index.ts +9 -4
  58. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +25 -1
  59. package/lib/createServer-69sLlmQA.js.map +0 -1
  60. package/lib/object_hash-BNWPnMN9.js +0 -787
  61. package/lib/object_hash-BNWPnMN9.js.map +0 -1
  62. package/lib/utils-B4O1uet5.js.map +0 -1
@@ -1,40 +1,40 @@
1
- import { j as b } from "./jsx-runtime-Dx-03ztt.js";
2
- import { u as mr } from "./utils-B4O1uet5.js";
1
+ import { j as v } from "./jsx-runtime-Dx-03ztt.js";
2
+ import { u as mr } from "./ZudokuContext-hmLMUdf2.js";
3
3
  import { H as Po } from "./index.esm-BSV1C092.js";
4
4
  import { b as Co, a as Ro } from "./chunk-D52XG6IA-Dl7HLe6j.js";
5
- import { S as qo, a as ko, b as Eo, c as No, e as Ao } from "./Select-D3XuKKuH.js";
5
+ import { S as qo, a as ko, b as No, c as Eo, e as Ao } from "./Select-B_IxRUUC.js";
6
6
  import { a as gr } from "./state-CFQsUZUP.js";
7
7
  import { C as _r } from "./CategoryHeading-CBconmtI.js";
8
8
  import { I as Io, M as we, H as He, P as qe } from "./Markdown-CZDLNOFc.js";
9
9
  import { c as pe } from "./cn-qaFjX9_3.js";
10
- import { CheckIcon as Lo, CopyIcon as Uo, ChevronDownIcon as Fo, CircleFadingPlusIcon as _o, CircleDotIcon as Bo, CircleIcon as Ho, SquareMinusIcon as Mo, SquarePlusIcon as zo, ListPlusIcon as Go } from "lucide-react";
11
- import { useContext as Wo, useMemo as eo, useTransition as to, useState as Se, useRef as vr, useEffect as ro, useLayoutEffect as Jo, Fragment as Vo, useCallback as Do } from "react";
10
+ import { CheckIcon as Lo, CopyIcon as Uo, ChevronDownIcon as Fo, CircleFadingPlusIcon as _o, CircleDotIcon as Bo, CircleIcon as Ho, SquareMinusIcon as Mo, SquarePlusIcon as zo, ListPlusIcon as Go, RefreshCcwDotIcon as Wo } from "lucide-react";
11
+ import { useContext as Jo, useMemo as eo, useTransition as to, useState as Se, useRef as vr, useEffect as ro, useLayoutEffect as Vo, Fragment as Do, useCallback as Qo } from "react";
12
12
  import { Button as no } from "./ui/Button.js";
13
- import { h as Qo } from "./object_hash-BNWPnMN9.js";
14
- import { a as Ko, u as br } from "./context-h_UkBLvr.js";
15
- import { g as tt, S as oo, C as ao, P as Yo } from "./index-DtJxZrbj.js";
16
- import { Tabs as Xo, TabsList as Zo, TabsTrigger as ea, TabsContent as ta } from "./ui/Tabs.js";
17
- import { a as ra } from "./StaggeredRender-DgsamH_G.js";
18
- import { Card as xe, CardHeader as na, CardTitle as oa, CardContent as aa } from "./ui/Card.js";
19
- import { g as ia, c as Ze, a as sa } from "./_commonjsHelpers-BkfeUUK-.js";
20
- import { _ as ca } from "./__vite-browser-external-BYRIRx8p.js";
13
+ import { h as Ko, C as Yo } from "./index-DyBL--Kz.js";
14
+ import { a as Xo, u as br } from "./context-h_UkBLvr.js";
15
+ import { g as tt, S as oo, C as ao, P as Zo } from "./index-DzRORsY1.js";
16
+ import { Tabs as ea, TabsList as ta, TabsTrigger as ra, TabsContent as na } from "./ui/Tabs.js";
17
+ import { a as oa } from "./StaggeredRender-DgsamH_G.js";
18
+ import { Card as xe, CardHeader as aa, CardTitle as ia, CardContent as sa } from "./ui/Card.js";
19
+ import { g as ca, c as Ze, a as la } from "./_commonjsHelpers-BkfeUUK-.js";
20
+ import { _ as ua } from "./__vite-browser-external-BYRIRx8p.js";
21
21
  import { S as xr } from "./SyntaxHighlight-Bz-lOJtH.js";
22
22
  import { B as Br } from "./Button-DeAoTouo.js";
23
23
  import * as ye from "@radix-ui/react-collapsible";
24
24
  import * as Ke from "@radix-ui/react-tabs";
25
- function la(e, n) {
25
+ function fa(e, n) {
26
26
  return n;
27
27
  }
28
28
  const $r = (e, ...n) => {
29
- const t = Wo(Ko);
29
+ const t = Jo(Xo);
30
30
  if (t === void 0)
31
31
  throw new Error("useGraphQL must be used within a GraphQLProvider");
32
- const o = eo(() => typeof n[0] == "object" && n[0] != null && "input" in n[0] && typeof n[0].input == "function" ? n[0].input.name : Qo(n[0] ?? {}), [n]);
32
+ const o = eo(() => typeof n[0] == "object" && n[0] != null && "input" in n[0] && typeof n[0].input == "function" ? n[0].input.name : Ko(n[0] ?? {}), [n]);
33
33
  return {
34
34
  queryFn: () => t.fetch(e, ...n),
35
35
  queryKey: [e, o]
36
36
  };
37
- }, ua = tt(
37
+ }, pa = tt(
38
38
  /* GraphQL */
39
39
  `
40
40
  query ServersQuery($input: JSON!, $type: SchemaType!) {
@@ -48,7 +48,7 @@ const $r = (e, ...n) => {
48
48
  `
49
49
  ), Hr = ({ url: e }) => {
50
50
  const [n, t] = Se(!1);
51
- return /* @__PURE__ */ b.jsx(
51
+ return /* @__PURE__ */ v.jsx(
52
52
  no,
53
53
  {
54
54
  onClick: () => {
@@ -58,21 +58,21 @@ const $r = (e, ...n) => {
58
58
  },
59
59
  variant: "ghost",
60
60
  size: "icon",
61
- children: n ? /* @__PURE__ */ b.jsx(Lo, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ b.jsx(Uo, { size: 14, strokeWidth: 1.3 })
61
+ children: n ? /* @__PURE__ */ v.jsx(Lo, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ v.jsx(Uo, { size: 14, strokeWidth: 1.3 })
62
62
  }
63
63
  );
64
- }, fa = () => {
65
- const { input: e, type: n } = br(), t = $r(ua, { input: e, type: n }), o = mr(t), [, s] = to(), { selectedServer: c, setSelectedServer: r } = gr(), { servers: a } = o.data.schema;
66
- return a.length === 1 ? /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
67
- /* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
68
- /* @__PURE__ */ b.jsx(Io, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: a[0].url }),
69
- /* @__PURE__ */ b.jsx(Hr, { url: a[0].url })
70
- ] }) : /* @__PURE__ */ b.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
71
- /* @__PURE__ */ b.jsxs("span", { className: "font-medium text-sm", children: [
64
+ }, da = () => {
65
+ const { input: e, type: n } = br(), t = $r(pa, { input: e, type: n }), o = mr(t), [, s] = to(), { selectedServer: c, setSelectedServer: r } = gr(), { servers: a } = o.data.schema;
66
+ return a.length === 1 ? /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-2", children: [
67
+ /* @__PURE__ */ v.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
68
+ /* @__PURE__ */ v.jsx(Io, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: a[0].url }),
69
+ /* @__PURE__ */ v.jsx(Hr, { url: a[0].url })
70
+ ] }) : /* @__PURE__ */ v.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
71
+ /* @__PURE__ */ v.jsxs("span", { className: "font-medium text-sm", children: [
72
72
  a.length > 1 ? "Endpoints" : "Endpoint",
73
73
  ":"
74
74
  ] }),
75
- /* @__PURE__ */ b.jsx(
75
+ /* @__PURE__ */ v.jsx(
76
76
  oo,
77
77
  {
78
78
  className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate",
@@ -87,7 +87,7 @@ const $r = (e, ...n) => {
87
87
  }))
88
88
  }
89
89
  ),
90
- /* @__PURE__ */ b.jsx(Hr, { url: c ?? o.data.schema.url })
90
+ /* @__PURE__ */ v.jsx(Hr, { url: c ?? o.data.schema.url })
91
91
  ] });
92
92
  }, io = (e, n) => e.reduce(
93
93
  (t, o) => {
@@ -95,17 +95,17 @@ const $r = (e, ...n) => {
95
95
  return t[s] || (t[s] = []), t[s].push(o), t;
96
96
  },
97
97
  {}
98
- ), pa = (e, n) => e ? n(e) : void 0, da = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
98
+ ), ha = (e, n) => e ? n(e) : void 0, ya = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
99
99
  type: "string"
100
- }, ha = ({
100
+ }, ma = ({
101
101
  parameter: e,
102
102
  group: n,
103
103
  id: t
104
104
  }) => {
105
- const o = da(e);
106
- return /* @__PURE__ */ b.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1", children: [
107
- /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
108
- /* @__PURE__ */ b.jsx("code", { children: n === "path" ? /* @__PURE__ */ b.jsx(
105
+ const o = ya(e);
106
+ return /* @__PURE__ */ v.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1", children: [
107
+ /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-2", children: [
108
+ /* @__PURE__ */ v.jsx("code", { children: n === "path" ? /* @__PURE__ */ v.jsx(
109
109
  ao,
110
110
  {
111
111
  name: e.name,
@@ -113,10 +113,10 @@ const $r = (e, ...n) => {
113
113
  slug: t + "-" + e.name.toLocaleLowerCase()
114
114
  }
115
115
  ) : e.name }),
116
- e.required && /* @__PURE__ */ b.jsx("span", { className: "py-px px-1.5 font-medium bg-primary/75 text-muted rounded-lg", children: "required" }),
117
- o.type && /* @__PURE__ */ b.jsx("span", { className: "text-muted-foreground", children: o.type === "array" ? `${o.items.type}[]` : o.type })
116
+ e.required && /* @__PURE__ */ v.jsx("span", { className: "py-px px-1.5 font-medium bg-primary/75 text-muted rounded-lg", children: "required" }),
117
+ o.type && /* @__PURE__ */ v.jsx("span", { className: "text-muted-foreground", children: o.type === "array" ? `${o.items.type}[]` : o.type })
118
118
  ] }),
119
- e.description && /* @__PURE__ */ b.jsx(
119
+ e.description && /* @__PURE__ */ v.jsx(
120
120
  we,
121
121
  {
122
122
  content: e.description,
@@ -124,14 +124,14 @@ const $r = (e, ...n) => {
124
124
  }
125
125
  )
126
126
  ] });
127
- }, ya = ({
127
+ }, ga = ({
128
128
  group: e,
129
129
  parameters: n,
130
130
  id: t
131
- }) => /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
132
- /* @__PURE__ */ b.jsx(He, { level: 3, id: `${t}/${e}-parameters`, className: "capitalize", children: e === "header" ? "Headers" : `${e} Parameters` }),
133
- /* @__PURE__ */ b.jsx(xe, { children: /* @__PURE__ */ b.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: n.sort((o, s) => o.required === s.required ? 0 : o.required ? -1 : 1).map((o) => /* @__PURE__ */ b.jsx(
134
- ha,
131
+ }) => /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
132
+ /* @__PURE__ */ v.jsx(He, { level: 3, id: `${t}/${e}-parameters`, className: "capitalize", children: e === "header" ? "Headers" : `${e} Parameters` }),
133
+ /* @__PURE__ */ v.jsx(xe, { children: /* @__PURE__ */ v.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: n.sort((o, s) => o.required === s.required ? 0 : o.required ? -1 : 1).map((o) => /* @__PURE__ */ v.jsx(
134
+ ma,
135
135
  {
136
136
  parameter: o,
137
137
  id: t,
@@ -166,27 +166,27 @@ var Mr = (e, n) => {
166
166
  }, this.indentationCharacter = e || zr, this.lineJoin = n ?? Gr;
167
167
  }
168
168
  }, ht, Wr;
169
- function ma() {
169
+ function va() {
170
170
  return Wr || (Wr = 1, ht = function(e) {
171
171
  return Object.prototype.toString.call(e) === "[object RegExp]";
172
172
  }), ht;
173
173
  }
174
174
  var yt, Jr;
175
- function ga() {
175
+ function ba() {
176
176
  return Jr || (Jr = 1, yt = function(e) {
177
177
  var n = typeof e;
178
178
  return e !== null && (n === "object" || n === "function");
179
179
  }), yt;
180
180
  }
181
181
  var Ye = {}, Vr;
182
- function va() {
182
+ function xa() {
183
183
  return Vr || (Vr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), Ye;
184
184
  }
185
185
  var mt, Dr;
186
- function ba() {
186
+ function $a() {
187
187
  if (Dr) return mt;
188
188
  Dr = 1;
189
- const e = ma(), n = ga(), t = va().default;
189
+ const e = va(), n = ba(), t = xa().default;
190
190
  return mt = (o, s, c) => {
191
191
  const r = [];
192
192
  return function a(i, l, h) {
@@ -246,14 +246,14 @@ function ba() {
246
246
  }(o, s, c);
247
247
  }, mt;
248
248
  }
249
- var xa = ba();
250
- const ue = /* @__PURE__ */ ia(xa);
249
+ var ja = $a();
250
+ const ue = /* @__PURE__ */ ca(ja);
251
251
  function Me(e, n = {}) {
252
252
  const { delimiter: t = '"', escapeChar: o = "\\", escapeNewlines: s = !0 } = n;
253
253
  return [...e.toString()].map((r) => r === "\b" ? `${o}b` : r === " " ? `${o}t` : r === `
254
254
  ` ? s ? `${o}n` : r : r === "\f" ? `${o}f` : r === "\r" ? s ? `${o}r` : r : r === o ? o + o : r === t ? o + t : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
255
255
  }
256
- var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' }), $a = {
256
+ var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' }), wa = {
257
257
  info: {
258
258
  key: "libcurl",
259
259
  title: "Libcurl",
@@ -269,7 +269,7 @@ var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' })
269
269
  c(`headers = curl_slist_append(headers, "${l}: ${ce(t[l])}");`);
270
270
  }), c("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), o.cookie && (r(), c(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${o.cookie}");`)), s.text && (r(), c(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(s.text)});`)), r(), c("CURLcode ret = curl_easy_perform(hnd);"), a();
271
271
  }
272
- }, ja = {
272
+ }, Sa = {
273
273
  info: {
274
274
  key: "c",
275
275
  title: "C",
@@ -277,19 +277,19 @@ var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' })
277
277
  cli: "c"
278
278
  },
279
279
  clientsById: {
280
- libcurl: $a
280
+ libcurl: wa
281
281
  }
282
282
  }, fe = (e, n) => Object.keys(e).find((t) => t.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
283
283
  const t = fe(e, n);
284
284
  if (t)
285
285
  return e[t];
286
- }, rt = (e, n) => !!fe(e, n), wa = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
286
+ }, rt = (e, n) => !!fe(e, n), Oa = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
287
287
  (n) => e.indexOf(n) > -1
288
288
  ), Qr = class {
289
289
  constructor(e) {
290
290
  this.name = "", this.toString = () => `:${this.name}`, this.name = e;
291
291
  }
292
- }, Sa = class {
292
+ }, Ta = class {
293
293
  constructor(e) {
294
294
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
295
295
  }
@@ -326,7 +326,7 @@ ${t}`);
326
326
  default:
327
327
  return e.toString();
328
328
  }
329
- }, Oa = {
329
+ }, Pa = {
330
330
  info: {
331
331
  key: "clj_http",
332
332
  title: "clj-http",
@@ -368,7 +368,7 @@ ${t}`);
368
368
  if (t.params) {
369
369
  l.multipart = t.params.map((f) => f.fileName && !f.value ? {
370
370
  name: f.name,
371
- content: new Sa(f.fileName)
371
+ content: new Ta(f.fileName)
372
372
  } : {
373
373
  name: f.name,
374
374
  content: f.value
@@ -397,16 +397,16 @@ ${t}`);
397
397
  }
398
398
  return a();
399
399
  }
400
- }, Ta = {
400
+ }, Ca = {
401
401
  info: {
402
402
  key: "clojure",
403
403
  title: "Clojure",
404
404
  default: "clj_http"
405
405
  },
406
406
  clientsById: {
407
- clj_http: Oa
407
+ clj_http: Pa
408
408
  }
409
- }, Pa = (e) => {
409
+ }, Ra = (e) => {
410
410
  let n = ve(e, "accept-encoding");
411
411
  if (!n)
412
412
  return [];
@@ -423,7 +423,7 @@ ${t}`);
423
423
  }
424
424
  });
425
425
  }), o;
426
- }, Ca = {
426
+ }, qa = {
427
427
  info: {
428
428
  key: "httpclient",
429
429
  title: "HttpClient",
@@ -439,7 +439,7 @@ ${t}`);
439
439
  }, { push: r, join: a } = new V({ indent: c.indent });
440
440
  r("using System.Net.Http.Headers;");
441
441
  let i = "";
442
- const l = !!e.cookie, h = Pa(e);
442
+ const l = !!e.cookie, h = Ra(e);
443
443
  (l || h.length) && (i = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), l && r("UseCookies = false,", 1), h.length && r(`AutomaticDecompression = ${h.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${i});`), r("var request = new HttpRequestMessage"), r("{");
444
444
  const f = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
445
445
  t = t.toUpperCase(), t && f.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, r(`Method = ${t},`, 1), r(`RequestUri = new Uri("${o}"),`, 1);
@@ -476,10 +476,10 @@ ${t}`);
476
476
  return r("};"), r("using (var response = await client.SendAsync(request))"), r("{"), r("response.EnsureSuccessStatusCode();", 1), r("var body = await response.Content.ReadAsStringAsync();", 1), r("Console.WriteLine(body);", 1), r("}"), a();
477
477
  }
478
478
  };
479
- function Ra(e) {
479
+ function ka(e) {
480
480
  return e[0].toUpperCase() + e.slice(1).toLowerCase();
481
481
  }
482
- var qa = {
482
+ var Na = {
483
483
  info: {
484
484
  key: "restsharp",
485
485
  title: "RestSharp",
@@ -529,11 +529,11 @@ var qa = {
529
529
  if (!s.text) break;
530
530
  r(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
531
531
  }
532
- return r(`var response = await client.${Ra(e)}Async(request);
532
+ return r(`var response = await client.${ka(e)}Async(request);
533
533
  `), r(`Console.WriteLine("{0}", response.Content);
534
534
  `), a();
535
535
  }
536
- }, ka = {
536
+ }, Ea = {
537
537
  info: {
538
538
  key: "csharp",
539
539
  title: "C#",
@@ -541,10 +541,10 @@ var qa = {
541
541
  cli: "dotnet"
542
542
  },
543
543
  clientsById: {
544
- httpclient: Ca,
545
- restsharp: qa
544
+ httpclient: qa,
545
+ restsharp: Na
546
546
  }
547
- }, Ea = {
547
+ }, Aa = {
548
548
  info: {
549
549
  key: "native",
550
550
  title: "NewRequest",
@@ -562,7 +562,7 @@ var qa = {
562
562
  r(`req.Header.Add("${g}", "${ce(t[g])}")`, m);
563
563
  }), c()), r(`res, ${u} := ${y}.Do(req)`, m), x(), h && (c(), r("defer res.Body.Close()", m), r(`body, ${u} := io.ReadAll(res.Body)`, m), x()), c(), h && r("fmt.Println(string(body))", m), i && (c(), r("}")), a();
564
564
  }
565
- }, Na = {
565
+ }, Ia = {
566
566
  info: {
567
567
  key: "go",
568
568
  title: "Go",
@@ -570,10 +570,10 @@ var qa = {
570
570
  cli: "go"
571
571
  },
572
572
  clientsById: {
573
- native: Ea
573
+ native: Aa
574
574
  }
575
575
  }, Yr = `\r
576
- `, Aa = {
576
+ `, La = {
577
577
  info: {
578
578
  key: "http1.1",
579
579
  title: "HTTP/1.1",
@@ -601,16 +601,16 @@ var qa = {
601
601
  const m = h(), x = c.text || "";
602
602
  return `${m}${Yr}${x}`;
603
603
  }
604
- }, Ia = {
604
+ }, Ua = {
605
605
  info: {
606
606
  key: "http",
607
607
  title: "HTTP",
608
608
  default: "http1.1"
609
609
  },
610
610
  clientsById: {
611
- "http1.1": Aa
611
+ "http1.1": La
612
612
  }
613
- }, La = {
613
+ }, Fa = {
614
614
  info: {
615
615
  key: "asynchttp",
616
616
  title: "AsyncHttp",
@@ -627,7 +627,7 @@ var qa = {
627
627
  a(`.setHeader("${l}", "${ce(n[l])}")`, 1);
628
628
  }), t.text && a(`.setBody(${JSON.stringify(t.text)})`, 1), a(".execute()", 1), a(".toCompletableFuture()", 1), a(".thenAccept(System.out::println)", 1), a(".join();", 1), r(), a("client.close();"), i();
629
629
  }
630
- }, Ua = {
630
+ }, _a = {
631
631
  info: {
632
632
  key: "nethttp",
633
633
  title: "java.net.http",
@@ -649,7 +649,7 @@ var qa = {
649
649
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
650
650
  ), r("System.out.println(response.body());"), a();
651
651
  }
652
- }, Fa = {
652
+ }, Ba = {
653
653
  info: {
654
654
  key: "okhttp",
655
655
  title: "OkHttp",
@@ -666,7 +666,7 @@ var qa = {
666
666
  r(`.addHeader("${f}", "${ce(o[f])}")`, 1);
667
667
  }), r(".build();", 1), a(), r("Response response = client.newCall(request).execute();"), i();
668
668
  }
669
- }, _a = {
669
+ }, Ha = {
670
670
  info: {
671
671
  key: "unirest",
672
672
  title: "Unirest",
@@ -683,19 +683,19 @@ var qa = {
683
683
  a(`.header("${l}", "${ce(n[l])}")`, 1);
684
684
  }), t.text && a(`.body(${JSON.stringify(t.text)})`, 1), a(".asString();", 1), r();
685
685
  }
686
- }, Ba = {
686
+ }, Ma = {
687
687
  info: {
688
688
  key: "java",
689
689
  title: "Java",
690
690
  default: "unirest"
691
691
  },
692
692
  clientsById: {
693
- asynchttp: La,
694
- nethttp: Ua,
695
- okhttp: Fa,
696
- unirest: _a
693
+ asynchttp: Fa,
694
+ nethttp: _a,
695
+ okhttp: Ba,
696
+ unirest: Ha
697
697
  }
698
- }, Ha = {
698
+ }, za = {
699
699
  info: {
700
700
  key: "axios",
701
701
  title: "Axios",
@@ -739,7 +739,7 @@ var qa = {
739
739
  }).replace('"[form]"', "form");
740
740
  return i(`const options = ${u};`), a(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), l();
741
741
  }
742
- }, Ma = {
742
+ }, Ga = {
743
743
  info: {
744
744
  key: "fetch",
745
745
  title: "fetch",
@@ -792,7 +792,7 @@ var qa = {
792
792
  })};`
793
793
  ), r(), t.params && t.mimeType === "multipart/form-data" && (i("options.body = form;"), r()), i(`fetch('${o}', options)`), i(".then(response => response.json())", 1), i(".then(response => console.log(response))", 1), i(".catch(err => console.error(err));", 1), a();
794
794
  }
795
- }, za = {
795
+ }, Wa = {
796
796
  info: {
797
797
  key: "jquery",
798
798
  title: "jQuery",
@@ -836,7 +836,7 @@ var qa = {
836
836
  const h = ue(l, { indent: c.indent }).replace("'[form]'", "form");
837
837
  return a(`const settings = ${h};`), r(), a("$.ajax(settings).done(function (response) {"), a("console.log(response);", 1), a("});"), i();
838
838
  }
839
- }, Ga = {
839
+ }, Ja = {
840
840
  info: {
841
841
  key: "xhr",
842
842
  title: "XMLHttpRequest",
@@ -877,19 +877,19 @@ var qa = {
877
877
  a(`xhr.setRequestHeader('${h}', '${ze(n[h])}');`);
878
878
  }), r(), a("xhr.send(data);"), i();
879
879
  }
880
- }, Wa = {
880
+ }, Va = {
881
881
  info: {
882
882
  key: "javascript",
883
883
  title: "JavaScript",
884
884
  default: "xhr"
885
885
  },
886
886
  clientsById: {
887
- xhr: Ga,
888
- axios: Ha,
889
- fetch: Ma,
890
- jquery: za
887
+ xhr: Ja,
888
+ axios: za,
889
+ fetch: Ga,
890
+ jquery: Wa
891
891
  }
892
- }, Ja = {
892
+ }, Da = {
893
893
  info: {
894
894
  key: "native",
895
895
  title: "Native JSON",
@@ -923,16 +923,16 @@ var qa = {
923
923
  }
924
924
  return typeof o > "u" || o === "" ? "No JSON body" : JSON.stringify(o, null, t.indent);
925
925
  }
926
- }, Va = {
926
+ }, Qa = {
927
927
  info: {
928
928
  key: "json",
929
929
  title: "JSON",
930
930
  default: "native"
931
931
  },
932
932
  clientsById: {
933
- native: Ja
933
+ native: Da
934
934
  }
935
- }, Da = {
935
+ }, Ka = {
936
936
  info: {
937
937
  key: "okhttp",
938
938
  title: "OkHttp",
@@ -949,16 +949,16 @@ var qa = {
949
949
  i(`.addHeader("${f}", "${ce(o[f])}")`, 1);
950
950
  }), i(".build()", 1), r(), i("val response = client.newCall(request).execute()"), a();
951
951
  }
952
- }, Qa = {
952
+ }, Ya = {
953
953
  info: {
954
954
  key: "kotlin",
955
955
  title: "Kotlin",
956
956
  default: "okhttp"
957
957
  },
958
958
  clientsById: {
959
- okhttp: Da
959
+ okhttp: Ka
960
960
  }
961
- }, Ka = {
961
+ }, Xa = {
962
962
  info: {
963
963
  key: "axios",
964
964
  title: "Axios",
@@ -992,7 +992,7 @@ var qa = {
992
992
  const f = ue(h, { indent: " ", inlineCharacterLimit: 80 });
993
993
  return i(`const options = ${f};`), r(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), a();
994
994
  }
995
- }, Ya = {
995
+ }, Za = {
996
996
  info: {
997
997
  key: "fetch",
998
998
  title: "Fetch",
@@ -1052,7 +1052,7 @@ var qa = {
1052
1052
  });
1053
1053
  return l(`const options = ${x};`), i(), a && f("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (l("options.body = formData;"), i()), l("fetch(url, options)"), l(".then(res => res.json())", 1), l(".then(json => console.log(json))", 1), l(".catch(err => console.error('error:' + err));", 1), h().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1054
1054
  }
1055
- }, Xa = {
1055
+ }, ei = {
1056
1056
  info: {
1057
1057
  key: "native",
1058
1058
  title: "HTTP",
@@ -1091,7 +1091,7 @@ var qa = {
1091
1091
  }
1092
1092
  return i("req.end();"), a();
1093
1093
  }
1094
- }, Za = {
1094
+ }, ti = {
1095
1095
  info: {
1096
1096
  key: "request",
1097
1097
  title: "Request",
@@ -1144,7 +1144,7 @@ var qa = {
1144
1144
  l(`jar.setCookie(request.cookie('${encodeURIComponent($)}=${encodeURIComponent(d)}'), '${n}');`);
1145
1145
  }), h(), m(($) => $.replace(/'JAR'/, "jar"))), i && u("const fs = require('fs');"), l(`const options = ${ue(x, { indent: " ", inlineCharacterLimit: 80 })};`), h(), l("request(options, function (error, response, body) {"), l("if (error) throw new Error(error);", 1), h(), l("console.log(body);", 1), l("});"), f();
1146
1146
  }
1147
- }, ei = {
1147
+ }, ri = {
1148
1148
  info: {
1149
1149
  key: "unirest",
1150
1150
  title: "Unirest",
@@ -1185,7 +1185,7 @@ var qa = {
1185
1185
  }
1186
1186
  return i && m("const fs = require('fs');"), u("req.end(function (res) {"), u("if (res.error) throw new Error(res.error);", 1), h(), u("console.log(res.body);", 1), u("});"), f();
1187
1187
  }
1188
- }, ti = {
1188
+ }, ni = {
1189
1189
  info: {
1190
1190
  key: "node",
1191
1191
  title: "Node.js",
@@ -1193,11 +1193,11 @@ var qa = {
1193
1193
  cli: "node %s"
1194
1194
  },
1195
1195
  clientsById: {
1196
- native: Xa,
1197
- request: Za,
1198
- unirest: ei,
1199
- axios: Ka,
1200
- fetch: Ya
1196
+ native: ei,
1197
+ request: ti,
1198
+ unirest: ri,
1199
+ axios: Xa,
1200
+ fetch: Za
1201
1201
  }
1202
1202
  }, gt = (e, n, t, o) => {
1203
1203
  const s = `${e} *${n} = `, c = hr(t, o ? s.length : void 0);
@@ -1221,7 +1221,7 @@ var qa = {
1221
1221
  default:
1222
1222
  return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
1223
1223
  }
1224
- }, ri = {
1224
+ }, oi = {
1225
1225
  info: {
1226
1226
  key: "nsurlsession",
1227
1227
  title: "NSURLSession",
@@ -1278,16 +1278,16 @@ var qa = {
1278
1278
  2
1279
1279
  ), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), a();
1280
1280
  }
1281
- }, ni = {
1281
+ }, ai = {
1282
1282
  info: {
1283
1283
  key: "objc",
1284
1284
  title: "Objective-C",
1285
1285
  default: "nsurlsession"
1286
1286
  },
1287
1287
  clientsById: {
1288
- nsurlsession: ri
1288
+ nsurlsession: oi
1289
1289
  }
1290
- }, oi = {
1290
+ }, ii = {
1291
1291
  info: {
1292
1292
  key: "cohttp",
1293
1293
  title: "CoHTTP",
@@ -1313,14 +1313,14 @@ var qa = {
1313
1313
  const f = h.length ? "~headers " : "", u = t.text ? "~body " : "", m = r.includes(o.toLowerCase()) ? `\`${o.toUpperCase()}` : `(Code.method_of_string "${o}")`;
1314
1314
  return a(`Client.call ${f}${u}${m} uri`), a(">>= fun (res, body_stream) ->"), a("(* Do stuff with the result *)", 1), l();
1315
1315
  }
1316
- }, ai = {
1316
+ }, si = {
1317
1317
  info: {
1318
1318
  key: "ocaml",
1319
1319
  title: "OCaml",
1320
1320
  default: "cohttp"
1321
1321
  },
1322
1322
  clientsById: {
1323
- cohttp: oi
1323
+ cohttp: ii
1324
1324
  }
1325
1325
  }, te = (e, n, t) => {
1326
1326
  switch (t = t || "", n = n || "", Object.prototype.toString.call(e)) {
@@ -1381,7 +1381,7 @@ ${t}]`;
1381
1381
  "UNLOCK",
1382
1382
  "UPDATE",
1383
1383
  "VERSION_CONTROL"
1384
- ], ii = {
1384
+ ], ci = {
1385
1385
  info: {
1386
1386
  key: "curl",
1387
1387
  title: "cURL",
@@ -1450,8 +1450,8 @@ ${t}]`;
1450
1450
  $("curl_setopt_array($curl, [");
1451
1451
  const w = new V({ indent: l, join: `
1452
1452
  ${l}` });
1453
- g.forEach(({ value: O, name: v, escape: q }) => {
1454
- O != null && w.push(`${v} => ${q ? JSON.stringify(O) : O},`);
1453
+ g.forEach(({ value: O, name: b, escape: q }) => {
1454
+ O != null && w.push(`${b} => ${q ? JSON.stringify(O) : O},`);
1455
1455
  });
1456
1456
  const T = c.map((O) => `${encodeURIComponent(O.name)}=${encodeURIComponent(O.value)}`);
1457
1457
  T.length && w.push(`CURLOPT_COOKIE => "${T.join("; ")}",`);
@@ -1459,7 +1459,7 @@ ${l}` });
1459
1459
  return p.length && (w.push("CURLOPT_HTTPHEADER => ["), w.push(p.join(`,
1460
1460
  ${l}${l}`), 1), w.push("],")), $(w.join(), 1), $("]);"), d(), $("$response = curl_exec($curl);"), $("$err = curl_error($curl);"), d(), $("curl_close($curl);"), d(), $("if ($err) {"), $(f ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), $("} else {"), $("echo $response;", 1), $("}"), !u && i && (d(), $("?>")), y();
1461
1461
  }
1462
- }, si = {
1462
+ }, li = {
1463
1463
  info: {
1464
1464
  key: "guzzle",
1465
1465
  title: "Guzzle",
@@ -1510,7 +1510,7 @@ ${l}${l}`), 1), w.push("],")), $(w.join(), 1), $("]);"), d(), $("$response = cur
1510
1510
  return x.length && m.push(`${r.indent}${r.indent}'cookie' => '${ze(x)}',`), m.length && (f("'headers' => [", 1), f(m.join(`
1511
1511
  `)), f("],", 1)), a("$client = new \\GuzzleHttp\\Client();"), i(), h.length ? (a(`$response = $client->request('${t}', '${n}', [`), a(u()), a("]);")) : a(`$response = $client->request('${t}', '${n}');`), i(), a("echo $response->getBody();"), !r.noTags && r.closingTag && (i(), a("?>")), l();
1512
1512
  }
1513
- }, ci = {
1513
+ }, ui = {
1514
1514
  info: {
1515
1515
  key: "http1",
1516
1516
  title: "HTTP v1",
@@ -1532,7 +1532,7 @@ ${l}${l}`), 1), w.push("],")), $(w.join(), 1), $("]);"), d(), $("$response = cur
1532
1532
  }
1533
1533
  return f("try {"), f("$response = $request->send();", 1), u(), f("echo $response->getBody();", 1), f("} catch (HttpException $ex) {"), f("echo $ex;", 1), f("}"), !l && a && (u(), f("?>")), m();
1534
1534
  }
1535
- }, li = {
1535
+ }, fi = {
1536
1536
  info: {
1537
1537
  key: "http2",
1538
1538
  title: "HTTP v2",
@@ -1552,11 +1552,11 @@ ${l}${l}`), 1), w.push("],")), $(w.join(), 1), $("]);"), d(), $("$response = cur
1552
1552
  if (!e.params)
1553
1553
  break;
1554
1554
  const d = [], y = {};
1555
- e.params.forEach(({ name: T, fileName: p, value: O, contentType: v }) => {
1555
+ e.params.forEach(({ name: T, fileName: p, value: O, contentType: b }) => {
1556
1556
  if (p) {
1557
1557
  d.push({
1558
1558
  name: T,
1559
- type: v,
1559
+ type: b,
1560
1560
  file: p,
1561
1561
  data: O
1562
1562
  });
@@ -1580,7 +1580,7 @@ ${l}${l}`), 1), w.push("],")), $(w.join(), 1), $("]);"), d(), $("$response = cur
1580
1580
  }
1581
1581
  return f(`$request->setRequestUrl(${te(c)});`), f(`$request->setRequestMethod(${te(t)});`), x && (f("$request->setBody($body);"), u()), Object.keys(o).length && (f(`$request->setQuery(new http\\QueryString(${te(o, i)}));`), u()), Object.keys(n).length && (f(`$request->setHeaders(${te(n, i)});`), u()), Object.keys(s).length && (u(), f(`$client->setCookies(${te(s, i)});`), u()), f("$client->enqueue($request)->send();"), f("$response = $client->getResponse();"), u(), f("echo $response->getBody();"), !l && a && (u(), f("?>")), m();
1582
1582
  }
1583
- }, ui = {
1583
+ }, pi = {
1584
1584
  info: {
1585
1585
  key: "php",
1586
1586
  title: "PHP",
@@ -1588,10 +1588,10 @@ ${l}${l}`), 1), w.push("],")), $(w.join(), 1), $("]);"), d(), $("$response = cur
1588
1588
  cli: "php %s"
1589
1589
  },
1590
1590
  clientsById: {
1591
- curl: ii,
1592
- guzzle: si,
1593
- http1: ci,
1594
- http2: li
1591
+ curl: ci,
1592
+ guzzle: li,
1593
+ http1: ui,
1594
+ http2: fi
1595
1595
  }
1596
1596
  }, lo = (e) => ({ method: t, headersObj: o, cookies: s, uriObj: c, fullUrl: r, postData: a, allHeaders: i }) => {
1597
1597
  const { push: l, join: h } = new V();
@@ -1605,7 +1605,7 @@ ${l}${l}`), 1), w.push("],")), $(w.join(), 1), $("]);"), d(), $("$response = cur
1605
1605
  }), u.push("-WebSession $session")), a.text && (u.push(
1606
1606
  `-ContentType '${Me(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
1607
1607
  ), u.push(`-Body '${a.text}'`)), l(`$response = ${e} -Uri '${r}' -Method ${t} ${u.join(" ")}`.trim()), h();
1608
- }, fi = {
1608
+ }, di = {
1609
1609
  info: {
1610
1610
  key: "restmethod",
1611
1611
  title: "Invoke-RestMethod",
@@ -1614,7 +1614,7 @@ ${l}${l}`), 1), w.push("],")), $(w.join(), 1), $("]);"), d(), $("$response = cur
1614
1614
  extname: ".ps1"
1615
1615
  },
1616
1616
  convert: lo("Invoke-RestMethod")
1617
- }, pi = {
1617
+ }, hi = {
1618
1618
  info: {
1619
1619
  key: "webrequest",
1620
1620
  title: "Invoke-WebRequest",
@@ -1623,15 +1623,15 @@ ${l}${l}`), 1), w.push("],")), $(w.join(), 1), $("]);"), d(), $("$response = cur
1623
1623
  extname: ".ps1"
1624
1624
  },
1625
1625
  convert: lo("Invoke-WebRequest")
1626
- }, di = {
1626
+ }, yi = {
1627
1627
  info: {
1628
1628
  key: "powershell",
1629
1629
  title: "Powershell",
1630
1630
  default: "webrequest"
1631
1631
  },
1632
1632
  clientsById: {
1633
- webrequest: pi,
1634
- restmethod: fi
1633
+ webrequest: hi,
1634
+ restmethod: di
1635
1635
  }
1636
1636
  };
1637
1637
  function Zr(e, n, t, o, s) {
@@ -1663,7 +1663,7 @@ var Le = (e, n, t) => {
1663
1663
  default:
1664
1664
  return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
1665
1665
  }
1666
- }, hi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], yi = {
1666
+ }, mi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], gi = {
1667
1667
  info: {
1668
1668
  key: "requests",
1669
1669
  title: "Requests",
@@ -1726,10 +1726,10 @@ var Le = (e, n, t) => {
1726
1726
  r(g !== d ? `"${w}": "${ce(h[w])}",` : `"${w}": "${ce(h[w])}"`, 1), g += 1;
1727
1727
  }), r("}"), a();
1728
1728
  }
1729
- let y = hi.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1729
+ let y = mi.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1730
1730
  return x && ($ ? y += ", json=payload" : y += ", data=payload"), m && (y += ", files=files"), d > 0 && (y += ", headers=headers"), y += ")", r(y), a(), r("print(response.text)"), i();
1731
1731
  }
1732
- }, mi = {
1732
+ }, vi = {
1733
1733
  info: {
1734
1734
  key: "python",
1735
1735
  title: "Python",
@@ -1737,9 +1737,9 @@ var Le = (e, n, t) => {
1737
1737
  cli: "python3 %s"
1738
1738
  },
1739
1739
  clientsById: {
1740
- requests: yi
1740
+ requests: gi
1741
1741
  }
1742
- }, gi = {
1742
+ }, bi = {
1743
1743
  info: {
1744
1744
  key: "httr",
1745
1745
  title: "httr",
@@ -1778,16 +1778,16 @@ var Le = (e, n, t) => {
1778
1778
  const T = [g, d, $, x].filter((p) => !!p).join(", ");
1779
1779
  return T && (w += `, ${T}`), (o.text || o.jsonObj || o.params) && (w += ", encode = encode"), w += ")", r(w), a(), r('content(response, "text")'), i();
1780
1780
  }
1781
- }, vi = {
1781
+ }, xi = {
1782
1782
  info: {
1783
1783
  key: "r",
1784
1784
  title: "R",
1785
1785
  default: "httr"
1786
1786
  },
1787
1787
  clientsById: {
1788
- httr: gi
1788
+ httr: bi
1789
1789
  }
1790
- }, bi = {
1790
+ }, $i = {
1791
1791
  info: {
1792
1792
  key: "native",
1793
1793
  title: "net::http",
@@ -1818,16 +1818,16 @@ var Le = (e, n, t) => {
1818
1818
  c(`request["${u}"] = '${ze(s[u])}'`);
1819
1819
  }), o.text && c(`request.body = ${JSON.stringify(o.text)}`), r(), c("response = http.request(request)"), c("puts response.read_body"), a();
1820
1820
  }
1821
- }, xi = {
1821
+ }, ji = {
1822
1822
  info: {
1823
1823
  key: "ruby",
1824
1824
  title: "Ruby",
1825
1825
  default: "native"
1826
1826
  },
1827
1827
  clientsById: {
1828
- native: bi
1828
+ native: $i
1829
1829
  }
1830
- }, le = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, $i = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), ji = {
1830
+ }, le = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, wi = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Si = {
1831
1831
  "http1.0": "0",
1832
1832
  "url ": "",
1833
1833
  cookie: "b",
@@ -1837,13 +1837,13 @@ var Le = (e, n, t) => {
1837
1837
  header: "H",
1838
1838
  insecure: "k",
1839
1839
  request: "X"
1840
- }, wi = (e) => (n) => {
1840
+ }, Oi = (e) => (n) => {
1841
1841
  if (e) {
1842
- const t = ji[n];
1842
+ const t = Si[n];
1843
1843
  return t ? `-${t}` : "";
1844
1844
  }
1845
1845
  return `--${n}`;
1846
- }, Si = {
1846
+ }, Ti = {
1847
1847
  info: {
1848
1848
  key: "curl",
1849
1849
  title: "cURL",
@@ -1857,7 +1857,7 @@ var Le = (e, n, t) => {
1857
1857
  ...typeof a == "string" ? { indent: a } : {},
1858
1858
  join: a !== !1 ? ` \\
1859
1859
  ${a}` : " "
1860
- }), x = wi(i);
1860
+ }), x = Oi(i);
1861
1861
  let $ = le(e);
1862
1862
  if (u(`curl ${x("request")} ${n}`), h && ($ = unescape($), u(x("globoff"))), u(`${x("url ")}${$}`), t === "HTTP/1.0" && u(x("http1.0")), ve(s, "accept-encoding") && u("--compressed"), c.mimeType === "multipart/form-data") {
1863
1863
  const y = fe(o, "content-type");
@@ -1881,15 +1881,15 @@ ${a}` : " "
1881
1881
  break;
1882
1882
  case "application/x-www-form-urlencoded":
1883
1883
  c.params ? c.params.forEach((g) => {
1884
- const w = g.name, T = encodeURIComponent(g.name), p = T !== w, O = p ? T : w, v = l ? "--data-binary" : p ? "--data-urlencode" : x("data");
1885
- u(`${v} ${le(`${O}=${g.value}`)}`);
1884
+ const w = g.name, T = encodeURIComponent(g.name), p = T !== w, O = p ? T : w, b = l ? "--data-binary" : p ? "--data-urlencode" : x("data");
1885
+ u(`${b} ${le(`${O}=${g.value}`)}`);
1886
1886
  }) : u(`${l ? "--data-binary" : x("data")} ${le(c.text)}`);
1887
1887
  break;
1888
1888
  default:
1889
1889
  if (!c.text)
1890
1890
  break;
1891
1891
  let y = !1;
1892
- if (wa(c.mimeType) && c.text.length > 20)
1892
+ if (Oa(c.mimeType) && c.text.length > 20)
1893
1893
  try {
1894
1894
  const g = JSON.parse(c.text);
1895
1895
  y = !0, c.text.indexOf("'") > 0 ? u(
@@ -1911,7 +1911,7 @@ ${JSON.stringify(g, null, f)}
1911
1911
  }
1912
1912
  return m();
1913
1913
  }
1914
- }, Oi = {
1914
+ }, Pi = {
1915
1915
  info: {
1916
1916
  key: "httpie",
1917
1917
  title: "HTTPie",
@@ -1960,7 +1960,7 @@ ${a.indent}` : " "
1960
1960
  }
1961
1961
  return l();
1962
1962
  }
1963
- }, Ti = {
1963
+ }, Ci = {
1964
1964
  info: {
1965
1965
  key: "wget",
1966
1966
  title: "Wget",
@@ -1982,9 +1982,9 @@ ${c.indent}` : " "
1982
1982
  return c.verbose ? r(`wget ${c.short ? "-v" : "--verbose"}`) : r(`wget ${c.short ? "-q" : "--quiet"}`), r(`--method ${le(e)}`), Object.keys(t).forEach((i) => {
1983
1983
  const l = `${i}: ${t[i]}`;
1984
1984
  r(`--header ${le(l)}`);
1985
- }), n.text && r(`--body-data ${$i(le(n.text))}`), r(c.short ? "-O" : "--output-document"), r(`- ${le(o)}`), a();
1985
+ }), n.text && r(`--body-data ${wi(le(n.text))}`), r(c.short ? "-O" : "--output-document"), r(`- ${le(o)}`), a();
1986
1986
  }
1987
- }, Pi = {
1987
+ }, Ri = {
1988
1988
  info: {
1989
1989
  key: "shell",
1990
1990
  title: "Shell",
@@ -1992,9 +1992,9 @@ ${c.indent}` : " "
1992
1992
  cli: "%s"
1993
1993
  },
1994
1994
  clientsById: {
1995
- curl: Si,
1996
- httpie: Oi,
1997
- wget: Ti
1995
+ curl: Ti,
1996
+ httpie: Pi,
1997
+ wget: Ci
1998
1998
  }
1999
1999
  }, en = (e, n) => n.repeat(e), tn = (e, n, t, o) => {
2000
2000
  const s = en(o, t), c = en(o - 1, t), r = n ? `,
@@ -2029,7 +2029,7 @@ ${c}]` : `[${e.join(r)}]`;
2029
2029
  default:
2030
2030
  return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
2031
2031
  }
2032
- }, Ci = {
2032
+ }, qi = {
2033
2033
  info: {
2034
2034
  key: "urlsession",
2035
2035
  title: "URLSession",
@@ -2080,39 +2080,39 @@ ${c}]` : `[${e.join(r)}]`;
2080
2080
  }
2081
2081
  }), a("]"), a("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), a("var request = URLRequest(url: components.url!)")), a(`request.httpMethod = "${s}"`), a(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && a(`request.allHTTPHeaderFields = ${et(e, r)}`), h && a("request.httpBody = postData"), i(), a("let (data, _) = try await URLSession.shared.data(for: request)"), a("print(String(decoding: data, as: UTF8.self))"), l();
2082
2082
  }
2083
- }, Ri = {
2083
+ }, ki = {
2084
2084
  info: {
2085
2085
  key: "swift",
2086
2086
  title: "Swift",
2087
2087
  default: "urlsession"
2088
2088
  },
2089
2089
  clientsById: {
2090
- urlsession: Ci
2090
+ urlsession: qi
2091
2091
  }
2092
- }, qi = {
2093
- c: ja,
2094
- clojure: Ta,
2095
- csharp: ka,
2096
- go: Na,
2097
- http: Ia,
2098
- java: Ba,
2099
- javascript: Wa,
2100
- json: Va,
2101
- kotlin: Qa,
2102
- node: ti,
2103
- objc: ni,
2104
- ocaml: ai,
2105
- php: ui,
2106
- powershell: di,
2107
- python: mi,
2108
- r: vi,
2109
- ruby: xi,
2110
- shell: Pi,
2111
- swift: Ri
2092
+ }, Ni = {
2093
+ c: Sa,
2094
+ clojure: Ca,
2095
+ csharp: Ea,
2096
+ go: Ia,
2097
+ http: Ua,
2098
+ java: Ma,
2099
+ javascript: Va,
2100
+ json: Qa,
2101
+ kotlin: Ya,
2102
+ node: ni,
2103
+ objc: ai,
2104
+ ocaml: si,
2105
+ php: pi,
2106
+ powershell: yi,
2107
+ python: vi,
2108
+ r: xi,
2109
+ ruby: ji,
2110
+ shell: Ri,
2111
+ swift: ki
2112
2112
  }, Re = {}, Be = { exports: {} };
2113
2113
  /*! https://mths.be/punycode v1.4.1 by @mathias */
2114
- var ki = Be.exports, nn;
2115
- function Ei() {
2114
+ var Ei = Be.exports, nn;
2115
+ function Ai() {
2116
2116
  return nn || (nn = 1, function(e, n) {
2117
2117
  (function(t) {
2118
2118
  var o = n && !n.nodeType && n, s = e && !e.nodeType && e, c = typeof Ze == "object" && Ze;
@@ -2121,7 +2121,7 @@ function Ei() {
2121
2121
  overflow: "Overflow: input needs wider integers to process",
2122
2122
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
2123
2123
  "invalid-input": "Invalid input"
2124
- }, T = i - l, p = Math.floor, O = String.fromCharCode, v;
2124
+ }, T = i - l, p = Math.floor, O = String.fromCharCode, b;
2125
2125
  function q(R) {
2126
2126
  throw new RangeError(w[R]);
2127
2127
  }
@@ -2130,7 +2130,7 @@ function Ei() {
2130
2130
  C[U] = k(R[U]);
2131
2131
  return C;
2132
2132
  }
2133
- function N(R, k) {
2133
+ function E(R, k) {
2134
2134
  var U = R.split("@"), C = "";
2135
2135
  U.length > 1 && (C = U[0] + "@", R = U[1]), R = R.replace(g, ".");
2136
2136
  var I = R.split("."), W = L(I, k).join(".");
@@ -2189,13 +2189,13 @@ function Ei() {
2189
2189
  }
2190
2190
  return _.join("");
2191
2191
  }
2192
- function E(R) {
2193
- return N(R, function(k) {
2192
+ function N(R) {
2193
+ return E(R, function(k) {
2194
2194
  return d.test(k) ? se(k.slice(4).toLowerCase()) : k;
2195
2195
  });
2196
2196
  }
2197
2197
  function re(R) {
2198
- return N(R, function(k) {
2198
+ return E(R, function(k) {
2199
2199
  return y.test(k) ? "xn--" + Z(k) : k;
2200
2200
  });
2201
2201
  }
@@ -2220,16 +2220,16 @@ function Ei() {
2220
2220
  decode: se,
2221
2221
  encode: Z,
2222
2222
  toASCII: re,
2223
- toUnicode: E
2223
+ toUnicode: N
2224
2224
  }, o && s)
2225
2225
  if (e.exports == o)
2226
2226
  s.exports = r;
2227
2227
  else
2228
- for (v in r)
2229
- r.hasOwnProperty(v) && (o[v] = r[v]);
2228
+ for (b in r)
2229
+ r.hasOwnProperty(b) && (o[b] = r[b]);
2230
2230
  else
2231
2231
  t.punycode = r;
2232
- })(ki);
2232
+ })(Ei);
2233
2233
  }(Be, Be.exports)), Be.exports;
2234
2234
  }
2235
2235
  var vt, on;
@@ -2237,19 +2237,19 @@ function uo() {
2237
2237
  return on || (on = 1, vt = Object), vt;
2238
2238
  }
2239
2239
  var bt, an;
2240
- function Ni() {
2240
+ function Ii() {
2241
2241
  return an || (an = 1, bt = Error), bt;
2242
2242
  }
2243
2243
  var xt, sn;
2244
- function Ai() {
2244
+ function Li() {
2245
2245
  return sn || (sn = 1, xt = EvalError), xt;
2246
2246
  }
2247
2247
  var $t, cn;
2248
- function Ii() {
2248
+ function Ui() {
2249
2249
  return cn || (cn = 1, $t = RangeError), $t;
2250
2250
  }
2251
2251
  var jt, ln;
2252
- function Li() {
2252
+ function Fi() {
2253
2253
  return ln || (ln = 1, jt = ReferenceError), jt;
2254
2254
  }
2255
2255
  var wt, un;
@@ -2261,57 +2261,57 @@ function We() {
2261
2261
  return fn || (fn = 1, St = TypeError), St;
2262
2262
  }
2263
2263
  var Ot, pn;
2264
- function Ui() {
2264
+ function _i() {
2265
2265
  return pn || (pn = 1, Ot = URIError), Ot;
2266
2266
  }
2267
2267
  var Tt, dn;
2268
- function Fi() {
2268
+ function Bi() {
2269
2269
  return dn || (dn = 1, Tt = Math.abs), Tt;
2270
2270
  }
2271
2271
  var Pt, hn;
2272
- function _i() {
2272
+ function Hi() {
2273
2273
  return hn || (hn = 1, Pt = Math.floor), Pt;
2274
2274
  }
2275
2275
  var Ct, yn;
2276
- function Bi() {
2276
+ function Mi() {
2277
2277
  return yn || (yn = 1, Ct = Math.max), Ct;
2278
2278
  }
2279
2279
  var Rt, mn;
2280
- function Hi() {
2280
+ function zi() {
2281
2281
  return mn || (mn = 1, Rt = Math.min), Rt;
2282
2282
  }
2283
2283
  var qt, gn;
2284
- function Mi() {
2284
+ function Gi() {
2285
2285
  return gn || (gn = 1, qt = Math.pow), qt;
2286
2286
  }
2287
2287
  var kt, vn;
2288
- function zi() {
2288
+ function Wi() {
2289
2289
  return vn || (vn = 1, kt = Math.round), kt;
2290
2290
  }
2291
- var Et, bn;
2292
- function Gi() {
2293
- return bn || (bn = 1, Et = Number.isNaN || function(n) {
2291
+ var Nt, bn;
2292
+ function Ji() {
2293
+ return bn || (bn = 1, Nt = Number.isNaN || function(n) {
2294
2294
  return n !== n;
2295
- }), Et;
2295
+ }), Nt;
2296
2296
  }
2297
- var Nt, xn;
2298
- function Wi() {
2299
- if (xn) return Nt;
2297
+ var Et, xn;
2298
+ function Vi() {
2299
+ if (xn) return Et;
2300
2300
  xn = 1;
2301
- var e = /* @__PURE__ */ Gi();
2302
- return Nt = function(t) {
2301
+ var e = /* @__PURE__ */ Ji();
2302
+ return Et = function(t) {
2303
2303
  return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
2304
- }, Nt;
2304
+ }, Et;
2305
2305
  }
2306
2306
  var At, $n;
2307
- function Ji() {
2307
+ function Di() {
2308
2308
  return $n || ($n = 1, At = Object.getOwnPropertyDescriptor), At;
2309
2309
  }
2310
2310
  var It, jn;
2311
2311
  function nt() {
2312
2312
  if (jn) return It;
2313
2313
  jn = 1;
2314
- var e = /* @__PURE__ */ Ji();
2314
+ var e = /* @__PURE__ */ Di();
2315
2315
  if (e)
2316
2316
  try {
2317
2317
  e([], "length");
@@ -2334,7 +2334,7 @@ function ot() {
2334
2334
  return Lt = e, Lt;
2335
2335
  }
2336
2336
  var Ut, Sn;
2337
- function Vi() {
2337
+ function Qi() {
2338
2338
  return Sn || (Sn = 1, Ut = function() {
2339
2339
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2340
2340
  return !1;
@@ -2364,10 +2364,10 @@ function Vi() {
2364
2364
  }), Ut;
2365
2365
  }
2366
2366
  var Ft, On;
2367
- function Di() {
2367
+ function Ki() {
2368
2368
  if (On) return Ft;
2369
2369
  On = 1;
2370
- var e = typeof Symbol < "u" && Symbol, n = Vi();
2370
+ var e = typeof Symbol < "u" && Symbol, n = Qi();
2371
2371
  return Ft = function() {
2372
2372
  return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
2373
2373
  }, Ft;
@@ -2384,7 +2384,7 @@ function ho() {
2384
2384
  return Bt = e.getPrototypeOf || null, Bt;
2385
2385
  }
2386
2386
  var Ht, Cn;
2387
- function Qi() {
2387
+ function Yi() {
2388
2388
  if (Cn) return Ht;
2389
2389
  Cn = 1;
2390
2390
  var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, t = Math.max, o = "[object Function]", s = function(i, l) {
@@ -2432,7 +2432,7 @@ var Mt, Rn;
2432
2432
  function Je() {
2433
2433
  if (Rn) return Mt;
2434
2434
  Rn = 1;
2435
- var e = Qi();
2435
+ var e = Yi();
2436
2436
  return Mt = Function.prototype.bind || e, Mt;
2437
2437
  }
2438
2438
  var zt, qn;
@@ -2443,15 +2443,15 @@ var Gt, kn;
2443
2443
  function wr() {
2444
2444
  return kn || (kn = 1, Gt = Function.prototype.apply), Gt;
2445
2445
  }
2446
- var Wt, En;
2447
- function Ki() {
2448
- return En || (En = 1, Wt = typeof Reflect < "u" && Reflect && Reflect.apply), Wt;
2446
+ var Wt, Nn;
2447
+ function Xi() {
2448
+ return Nn || (Nn = 1, Wt = typeof Reflect < "u" && Reflect && Reflect.apply), Wt;
2449
2449
  }
2450
- var Jt, Nn;
2450
+ var Jt, En;
2451
2451
  function yo() {
2452
- if (Nn) return Jt;
2453
- Nn = 1;
2454
- var e = Je(), n = wr(), t = jr(), o = Ki();
2452
+ if (En) return Jt;
2453
+ En = 1;
2454
+ var e = Je(), n = wr(), t = jr(), o = Xi();
2455
2455
  return Jt = o || e.call(t, n), Jt;
2456
2456
  }
2457
2457
  var Vt, An;
@@ -2466,7 +2466,7 @@ function mo() {
2466
2466
  }, Vt;
2467
2467
  }
2468
2468
  var Dt, In;
2469
- function Yi() {
2469
+ function Zi() {
2470
2470
  if (In) return Dt;
2471
2471
  In = 1;
2472
2472
  var e = mo(), n = /* @__PURE__ */ nt(), t;
@@ -2490,10 +2490,10 @@ function Yi() {
2490
2490
  ) : !1, Dt;
2491
2491
  }
2492
2492
  var Qt, Ln;
2493
- function Xi() {
2493
+ function es() {
2494
2494
  if (Ln) return Qt;
2495
2495
  Ln = 1;
2496
- var e = po(), n = ho(), t = /* @__PURE__ */ Yi();
2496
+ var e = po(), n = ho(), t = /* @__PURE__ */ Zi();
2497
2497
  return Qt = e ? function(s) {
2498
2498
  return e(s);
2499
2499
  } : n ? function(s) {
@@ -2505,7 +2505,7 @@ function Xi() {
2505
2505
  } : null, Qt;
2506
2506
  }
2507
2507
  var Kt, Un;
2508
- function Zi() {
2508
+ function ts() {
2509
2509
  if (Un) return Kt;
2510
2510
  Un = 1;
2511
2511
  var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t = Je();
@@ -2515,7 +2515,7 @@ var Yt, Fn;
2515
2515
  function Sr() {
2516
2516
  if (Fn) return Yt;
2517
2517
  Fn = 1;
2518
- var e, n = /* @__PURE__ */ uo(), t = /* @__PURE__ */ Ni(), o = /* @__PURE__ */ Ai(), s = /* @__PURE__ */ Ii(), c = /* @__PURE__ */ Li(), r = /* @__PURE__ */ fo(), a = /* @__PURE__ */ We(), i = /* @__PURE__ */ Ui(), l = /* @__PURE__ */ Fi(), h = /* @__PURE__ */ _i(), f = /* @__PURE__ */ Bi(), u = /* @__PURE__ */ Hi(), m = /* @__PURE__ */ Mi(), x = /* @__PURE__ */ zi(), $ = /* @__PURE__ */ Wi(), d = Function, y = function(J) {
2518
+ var e, n = /* @__PURE__ */ uo(), t = /* @__PURE__ */ Ii(), o = /* @__PURE__ */ Li(), s = /* @__PURE__ */ Ui(), c = /* @__PURE__ */ Fi(), r = /* @__PURE__ */ fo(), a = /* @__PURE__ */ We(), i = /* @__PURE__ */ _i(), l = /* @__PURE__ */ Bi(), h = /* @__PURE__ */ Hi(), f = /* @__PURE__ */ Mi(), u = /* @__PURE__ */ zi(), m = /* @__PURE__ */ Gi(), x = /* @__PURE__ */ Wi(), $ = /* @__PURE__ */ Vi(), d = Function, y = function(J) {
2519
2519
  try {
2520
2520
  return d('"use strict"; return (' + J + ").constructor;")();
2521
2521
  } catch {
@@ -2532,12 +2532,12 @@ function Sr() {
2532
2532
  return T;
2533
2533
  }
2534
2534
  }
2535
- }() : T, O = Di()(), v = Xi(), q = ho(), L = po(), N = wr(), B = jr(), P = {}, ae = typeof Uint8Array > "u" || !v ? e : v(Uint8Array), H = {
2535
+ }() : T, O = Ki()(), b = es(), q = ho(), L = po(), E = wr(), B = jr(), P = {}, ae = typeof Uint8Array > "u" || !b ? e : b(Uint8Array), H = {
2536
2536
  __proto__: null,
2537
2537
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
2538
2538
  "%Array%": Array,
2539
2539
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
2540
- "%ArrayIteratorPrototype%": O && v ? v([][Symbol.iterator]()) : e,
2540
+ "%ArrayIteratorPrototype%": O && b ? b([][Symbol.iterator]()) : e,
2541
2541
  "%AsyncFromSyncIteratorPrototype%": e,
2542
2542
  "%AsyncFunction%": P,
2543
2543
  "%AsyncGenerator%": P,
@@ -2568,10 +2568,10 @@ function Sr() {
2568
2568
  "%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
2569
2569
  "%isFinite%": isFinite,
2570
2570
  "%isNaN%": isNaN,
2571
- "%IteratorPrototype%": O && v ? v(v([][Symbol.iterator]())) : e,
2571
+ "%IteratorPrototype%": O && b ? b(b([][Symbol.iterator]())) : e,
2572
2572
  "%JSON%": typeof JSON == "object" ? JSON : e,
2573
2573
  "%Map%": typeof Map > "u" ? e : Map,
2574
- "%MapIteratorPrototype%": typeof Map > "u" || !O || !v ? e : v((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2574
+ "%MapIteratorPrototype%": typeof Map > "u" || !O || !b ? e : b((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2575
2575
  "%Math%": Math,
2576
2576
  "%Number%": Number,
2577
2577
  "%Object%": n,
@@ -2585,10 +2585,10 @@ function Sr() {
2585
2585
  "%Reflect%": typeof Reflect > "u" ? e : Reflect,
2586
2586
  "%RegExp%": RegExp,
2587
2587
  "%Set%": typeof Set > "u" ? e : Set,
2588
- "%SetIteratorPrototype%": typeof Set > "u" || !O || !v ? e : v((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2588
+ "%SetIteratorPrototype%": typeof Set > "u" || !O || !b ? e : b((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2589
2589
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
2590
2590
  "%String%": String,
2591
- "%StringIteratorPrototype%": O && v ? v(""[Symbol.iterator]()) : e,
2591
+ "%StringIteratorPrototype%": O && b ? b(""[Symbol.iterator]()) : e,
2592
2592
  "%Symbol%": O ? Symbol : e,
2593
2593
  "%SyntaxError%": r,
2594
2594
  "%ThrowTypeError%": p,
@@ -2603,7 +2603,7 @@ function Sr() {
2603
2603
  "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
2604
2604
  "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
2605
2605
  "%Function.prototype.call%": B,
2606
- "%Function.prototype.apply%": N,
2606
+ "%Function.prototype.apply%": E,
2607
2607
  "%Object.defineProperty%": w,
2608
2608
  "%Object.getPrototypeOf%": q,
2609
2609
  "%Math.abs%": l,
@@ -2615,11 +2615,11 @@ function Sr() {
2615
2615
  "%Math.sign%": $,
2616
2616
  "%Reflect.getPrototypeOf%": L
2617
2617
  };
2618
- if (v)
2618
+ if (b)
2619
2619
  try {
2620
2620
  null.error;
2621
2621
  } catch (J) {
2622
- var D = v(v(J));
2622
+ var D = b(b(J));
2623
2623
  H["%Error.prototype%"] = D;
2624
2624
  }
2625
2625
  var se = function J(A) {
@@ -2635,7 +2635,7 @@ function Sr() {
2635
2635
  _ && (F = _.prototype);
2636
2636
  } else if (A === "%AsyncIteratorPrototype%") {
2637
2637
  var Q = J("%AsyncGenerator%");
2638
- Q && v && (F = v(Q.prototype));
2638
+ Q && b && (F = b(Q.prototype));
2639
2639
  }
2640
2640
  return H[A] = F, F;
2641
2641
  }, Z = {
@@ -2691,7 +2691,7 @@ function Sr() {
2691
2691
  "%URIErrorPrototype%": ["URIError", "prototype"],
2692
2692
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2693
2693
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2694
- }, E = Je(), re = /* @__PURE__ */ Zi(), R = E.call(B, Array.prototype.concat), k = E.call(N, Array.prototype.splice), U = E.call(B, String.prototype.replace), C = E.call(B, String.prototype.slice), I = E.call(B, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(A) {
2694
+ }, N = Je(), re = /* @__PURE__ */ ts(), R = N.call(B, Array.prototype.concat), k = N.call(E, Array.prototype.splice), U = N.call(B, String.prototype.replace), C = N.call(B, String.prototype.slice), I = N.call(B, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(A) {
2695
2695
  var F = C(A, 0, 1), _ = C(A, -1);
2696
2696
  if (F === "%" && _ !== "%")
2697
2697
  throw new r("invalid intrinsic syntax, expected closing `%`");
@@ -2725,8 +2725,8 @@ function Sr() {
2725
2725
  var _ = K(A), Q = _.length > 0 ? _[0] : "", G = ne("%" + Q + "%", F), Y = G.name, oe = G.value, he = !1, Oe = G.alias;
2726
2726
  Oe && (Q = Oe[0], k(_, R([0, 1], Oe)));
2727
2727
  for (var ke = 1, Te = !0; ke < _.length; ke += 1) {
2728
- var me = _[ke], Ee = C(me, 0, 1), Ne = C(me, -1);
2729
- if ((Ee === '"' || Ee === "'" || Ee === "`" || Ne === '"' || Ne === "'" || Ne === "`") && Ee !== Ne)
2728
+ var me = _[ke], Ne = C(me, 0, 1), Ee = C(me, -1);
2729
+ if ((Ne === '"' || Ne === "'" || Ne === "`" || Ee === '"' || Ee === "'" || Ee === "`") && Ne !== Ee)
2730
2730
  throw new r("property names with quotes must have matching quotes");
2731
2731
  if ((me === "constructor" || !Te) && (he = !0), Q += "." + me, Y = "%" + Q + "%", re(H, Y))
2732
2732
  oe = H[Y];
@@ -2748,7 +2748,7 @@ function Sr() {
2748
2748
  }, Yt;
2749
2749
  }
2750
2750
  var Xt = { exports: {} }, Zt, _n;
2751
- function es() {
2751
+ function rs() {
2752
2752
  if (_n) return Zt;
2753
2753
  _n = 1;
2754
2754
  var e = /* @__PURE__ */ ot(), n = /* @__PURE__ */ fo(), t = /* @__PURE__ */ We(), o = /* @__PURE__ */ nt();
@@ -2780,7 +2780,7 @@ function es() {
2780
2780
  }, Zt;
2781
2781
  }
2782
2782
  var er, Bn;
2783
- function ts() {
2783
+ function ns() {
2784
2784
  if (Bn) return er;
2785
2785
  Bn = 1;
2786
2786
  var e = /* @__PURE__ */ ot(), n = function() {
@@ -2797,10 +2797,10 @@ function ts() {
2797
2797
  }, er = n, er;
2798
2798
  }
2799
2799
  var tr, Hn;
2800
- function rs() {
2800
+ function os() {
2801
2801
  if (Hn) return tr;
2802
2802
  Hn = 1;
2803
- var e = /* @__PURE__ */ Sr(), n = /* @__PURE__ */ es(), t = /* @__PURE__ */ ts()(), o = /* @__PURE__ */ nt(), s = /* @__PURE__ */ We(), c = e("%Math.floor%");
2803
+ var e = /* @__PURE__ */ Sr(), n = /* @__PURE__ */ rs(), t = /* @__PURE__ */ ns()(), o = /* @__PURE__ */ nt(), s = /* @__PURE__ */ We(), c = e("%Math.floor%");
2804
2804
  return tr = function(a, i) {
2805
2805
  if (typeof a != "function")
2806
2806
  throw new s("`fn` is not a function");
@@ -2827,7 +2827,7 @@ function rs() {
2827
2827
  }, tr;
2828
2828
  }
2829
2829
  var rr, Mn;
2830
- function ns() {
2830
+ function as() {
2831
2831
  if (Mn) return rr;
2832
2832
  Mn = 1;
2833
2833
  var e = Je(), n = wr(), t = yo();
@@ -2836,9 +2836,9 @@ function ns() {
2836
2836
  }, rr;
2837
2837
  }
2838
2838
  var zn;
2839
- function os() {
2839
+ function is() {
2840
2840
  return zn || (zn = 1, function(e) {
2841
- var n = /* @__PURE__ */ rs(), t = /* @__PURE__ */ ot(), o = mo(), s = ns();
2841
+ var n = /* @__PURE__ */ os(), t = /* @__PURE__ */ ot(), o = mo(), s = as();
2842
2842
  e.exports = function(r) {
2843
2843
  var a = o(arguments), i = r.length - (arguments.length - 1);
2844
2844
  return n(
@@ -2850,29 +2850,29 @@ function os() {
2850
2850
  }(Xt)), Xt.exports;
2851
2851
  }
2852
2852
  var nr, Gn;
2853
- function as() {
2853
+ function ss() {
2854
2854
  if (Gn) return nr;
2855
2855
  Gn = 1;
2856
- var e = /* @__PURE__ */ Sr(), n = os(), t = n(e("String.prototype.indexOf"));
2856
+ var e = /* @__PURE__ */ Sr(), n = is(), t = n(e("String.prototype.indexOf"));
2857
2857
  return nr = function(s, c) {
2858
2858
  var r = e(s, !!c);
2859
2859
  return typeof r == "function" && t(s, ".prototype.") > -1 ? n(r) : r;
2860
2860
  }, nr;
2861
2861
  }
2862
- const is = /* @__PURE__ */ sa(ca);
2862
+ const cs = /* @__PURE__ */ la(ua);
2863
2863
  var or, Wn;
2864
- function ss() {
2864
+ function ls() {
2865
2865
  if (Wn) return or;
2866
2866
  Wn = 1;
2867
- var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && n && typeof n.get == "function" ? n.get : null, o = e && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, c = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = s && c && typeof c.get == "function" ? c.get : null, a = s && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, h = typeof WeakSet == "function" && WeakSet.prototype, f = h ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, m = u ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, $ = Object.prototype.toString, d = Function.prototype.toString, y = String.prototype.match, g = String.prototype.slice, w = String.prototype.replace, T = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, v = Array.prototype.concat, q = Array.prototype.join, L = Array.prototype.slice, N = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(j) {
2867
+ var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && n && typeof n.get == "function" ? n.get : null, o = e && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, c = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = s && c && typeof c.get == "function" ? c.get : null, a = s && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, h = typeof WeakSet == "function" && WeakSet.prototype, f = h ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, m = u ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, $ = Object.prototype.toString, d = Function.prototype.toString, y = String.prototype.match, g = String.prototype.slice, w = String.prototype.replace, T = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, b = Array.prototype.concat, q = Array.prototype.join, L = Array.prototype.slice, E = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(j) {
2868
2868
  return j.__proto__;
2869
2869
  } : null);
2870
- function E(j, S) {
2870
+ function N(j, S) {
2871
2871
  if (j === 1 / 0 || j === -1 / 0 || j !== j || j && j > -1e3 && j < 1e3 || O.call(/e/, S))
2872
2872
  return S;
2873
2873
  var X = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
2874
2874
  if (typeof j == "number") {
2875
- var ee = j < 0 ? -N(-j) : N(j);
2875
+ var ee = j < 0 ? -E(-j) : E(j);
2876
2876
  if (ee !== j) {
2877
2877
  var ie = String(ee), M = g.call(S, ie.length + 1);
2878
2878
  return w.call(ie, X, "$&_") + "." + w.call(w.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
@@ -2880,7 +2880,7 @@ function ss() {
2880
2880
  }
2881
2881
  return w.call(S, X, "$&_");
2882
2882
  }
2883
- var re = is, R = re.custom, k = F(R) ? R : null;
2883
+ var re = cs, R = re.custom, k = F(R) ? R : null;
2884
2884
  or = function j(S, X, ee, ie) {
2885
2885
  var M = X || {};
2886
2886
  if (G(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
@@ -2907,11 +2907,11 @@ function ss() {
2907
2907
  if (S === 0)
2908
2908
  return 1 / 0 / S > 0 ? "0" : "-0";
2909
2909
  var de = String(S);
2910
- return Ce ? E(S, de) : de;
2910
+ return Ce ? N(S, de) : de;
2911
2911
  }
2912
2912
  if (typeof S == "bigint") {
2913
2913
  var je = String(S) + "n";
2914
- return Ce ? E(S, je) : je;
2914
+ return Ce ? N(S, je) : je;
2915
2915
  }
2916
2916
  var st = typeof M.depth > "u" ? 5 : M.depth;
2917
2917
  if (typeof ee > "u" && (ee = 0), ee >= st && st > 0 && typeof S == "object")
@@ -2931,14 +2931,14 @@ function ss() {
2931
2931
  return j(Ie, M, ee + 1, ie);
2932
2932
  }
2933
2933
  if (typeof S == "function" && !z(S)) {
2934
- var kr = oe(S), Er = Ve(S, ge);
2935
- return "[Function" + (kr ? ": " + kr : " (anonymous)") + "]" + (Er.length > 0 ? " { " + q.call(Er, ", ") + " }" : "");
2934
+ var kr = oe(S), Nr = Ve(S, ge);
2935
+ return "[Function" + (kr ? ": " + kr : " (anonymous)") + "]" + (Nr.length > 0 ? " { " + q.call(Nr, ", ") + " }" : "");
2936
2936
  }
2937
2937
  if (F(S)) {
2938
- var Nr = H ? w.call(String(S), /^(Symbol\(.*\))_[^)]*$/, "$1") : ae.call(S);
2939
- return typeof S == "object" && !H ? Fe(Nr) : Nr;
2938
+ var Er = H ? w.call(String(S), /^(Symbol\(.*\))_[^)]*$/, "$1") : ae.call(S);
2939
+ return typeof S == "object" && !H ? Fe(Er) : Er;
2940
2940
  }
2941
- if (Ne(S)) {
2941
+ if (Ee(S)) {
2942
2942
  for (var _e = "<" + p.call(String(S.nodeName)), ct = S.attributes || [], De = 0; De < ct.length; De++)
2943
2943
  _e += " " + ct[De].name + "=" + U(C(ct[De].value), "double", M);
2944
2944
  return _e += ">", S.childNodes && S.childNodes.length && (_e += "..."), _e += "</" + p.call(String(S.nodeName)) + ">", _e;
@@ -2951,7 +2951,7 @@ function ss() {
2951
2951
  }
2952
2952
  if (K(S)) {
2953
2953
  var ut = Ve(S, ge);
2954
- return !("cause" in Error.prototype) && "cause" in S && !se.call(S, "cause") ? "{ [" + String(S) + "] " + q.call(v.call("[cause]: " + ge(S.cause), ut), ", ") + " }" : ut.length === 0 ? "[" + String(S) + "]" : "{ [" + String(S) + "] " + q.call(ut, ", ") + " }";
2954
+ return !("cause" in Error.prototype) && "cause" in S && !se.call(S, "cause") ? "{ [" + String(S) + "] " + q.call(b.call("[cause]: " + ge(S.cause), ut), ", ") + " }" : ut.length === 0 ? "[" + String(S) + "]" : "{ [" + String(S) + "] " + q.call(ut, ", ") + " }";
2955
2955
  }
2956
2956
  if (typeof S == "object" && $e) {
2957
2957
  if (k && typeof S[k] == "function" && re)
@@ -2973,7 +2973,7 @@ function ss() {
2973
2973
  }
2974
2974
  if (ke(S))
2975
2975
  return at("WeakMap");
2976
- if (Ee(S))
2976
+ if (Ne(S))
2977
2977
  return at("WeakSet");
2978
2978
  if (Te(S))
2979
2979
  return at("WeakRef");
@@ -2990,7 +2990,7 @@ function ss() {
2990
2990
  if (typeof globalThis < "u" && S === globalThis || typeof Ze < "u" && S === Ze)
2991
2991
  return "{ [object globalThis] }";
2992
2992
  if (!W(S) && !z(S)) {
2993
- var ft = Ve(S, ge), Lr = Z ? Z(S) === Object.prototype : S instanceof Object || S.constructor === Object, pt = S instanceof Object ? "" : "null prototype", Ur = !Lr && D && Object(S) === S && D in S ? g.call(Y(S), 8, -1) : pt ? "Object" : "", Oo = Lr || typeof S.constructor != "function" ? "" : S.constructor.name ? S.constructor.name + " " : "", dt = Oo + (Ur || pt ? "[" + q.call(v.call([], Ur || [], pt || []), ": ") + "] " : "");
2993
+ var ft = Ve(S, ge), Lr = Z ? Z(S) === Object.prototype : S instanceof Object || S.constructor === Object, pt = S instanceof Object ? "" : "null prototype", Ur = !Lr && D && Object(S) === S && D in S ? g.call(Y(S), 8, -1) : pt ? "Object" : "", Oo = Lr || typeof S.constructor != "function" ? "" : S.constructor.name ? S.constructor.name + " " : "", dt = Oo + (Ur || pt ? "[" + q.call(b.call([], Ur || [], pt || []), ": ") + "] " : "");
2994
2994
  return ft.length === 0 ? dt + "{}" : Ae ? dt + "{" + it(ft, Ae) + "}" : dt + "{ " + q.call(ft, ", ") + " }";
2995
2995
  }
2996
2996
  return String(S);
@@ -3122,7 +3122,7 @@ function ss() {
3122
3122
  }
3123
3123
  return !1;
3124
3124
  }
3125
- function Ee(j) {
3125
+ function Ne(j) {
3126
3126
  if (!f || !j || typeof j != "object")
3127
3127
  return !1;
3128
3128
  try {
@@ -3137,7 +3137,7 @@ function ss() {
3137
3137
  }
3138
3138
  return !1;
3139
3139
  }
3140
- function Ne(j) {
3140
+ function Ee(j) {
3141
3141
  return !j || typeof j != "object" ? !1 : typeof HTMLElement < "u" && j instanceof HTMLElement ? !0 : typeof j.nodeName == "string" && typeof j.getAttribute == "function";
3142
3142
  }
3143
3143
  function Pe(j, S) {
@@ -3219,10 +3219,10 @@ function ss() {
3219
3219
  return or;
3220
3220
  }
3221
3221
  var ar, Jn;
3222
- function cs() {
3222
+ function us() {
3223
3223
  if (Jn) return ar;
3224
3224
  Jn = 1;
3225
- var e = /* @__PURE__ */ Sr(), n = as(), t = /* @__PURE__ */ ss(), o = /* @__PURE__ */ We(), s = e("%WeakMap%", !0), c = e("%Map%", !0), r = n("WeakMap.prototype.get", !0), a = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), h = n("Map.prototype.set", !0), f = n("Map.prototype.has", !0), u = function(d, y) {
3225
+ var e = /* @__PURE__ */ Sr(), n = ss(), t = /* @__PURE__ */ ls(), o = /* @__PURE__ */ We(), s = e("%WeakMap%", !0), c = e("%Map%", !0), r = n("WeakMap.prototype.get", !0), a = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), h = n("Map.prototype.set", !0), f = n("Map.prototype.has", !0), u = function(d, y) {
3226
3226
  for (var g = d, w; (w = g.next) !== null; g = w)
3227
3227
  if (w.key === y)
3228
3228
  return g.next = w.next, w.next = /** @type {NonNullable<typeof list.next>} */
@@ -3336,13 +3336,13 @@ function go() {
3336
3336
  var T = y;
3337
3337
  return t(y) && !t(g) && (T = c(y, w)), t(y) && t(g) ? (g.forEach(function(p, O) {
3338
3338
  if (n.call(y, O)) {
3339
- var v = y[O];
3340
- v && typeof v == "object" && p && typeof p == "object" ? y[O] = d(v, p, w) : y.push(p);
3339
+ var b = y[O];
3340
+ b && typeof b == "object" && p && typeof p == "object" ? y[O] = d(b, p, w) : y.push(p);
3341
3341
  } else
3342
3342
  y[O] = p;
3343
3343
  }), y) : Object.keys(g).reduce(function(p, O) {
3344
- var v = g[O];
3345
- return n.call(p, O) ? p[O] = d(p[O], v, w) : p[O] = v, p;
3344
+ var b = g[O];
3345
+ return n.call(p, O) ? p[O] = d(p[O], b, w) : p[O] = b, p;
3346
3346
  }, T);
3347
3347
  }, a = function(y, g) {
3348
3348
  return Object.keys(g).reduce(function(w, T) {
@@ -3365,35 +3365,35 @@ function go() {
3365
3365
  return escape(O).replace(/%u[0-9a-f]{4}/gi, function(ae) {
3366
3366
  return "%26%23" + parseInt(ae.slice(2), 16) + "%3B";
3367
3367
  });
3368
- for (var v = "", q = 0; q < O.length; q += l) {
3369
- for (var L = O.length >= l ? O.slice(q, q + l) : O, N = [], B = 0; B < L.length; ++B) {
3368
+ for (var b = "", q = 0; q < O.length; q += l) {
3369
+ for (var L = O.length >= l ? O.slice(q, q + l) : O, E = [], B = 0; B < L.length; ++B) {
3370
3370
  var P = L.charCodeAt(B);
3371
3371
  if (P === 45 || P === 46 || P === 95 || P === 126 || P >= 48 && P <= 57 || P >= 65 && P <= 90 || P >= 97 && P <= 122 || p === e.RFC1738 && (P === 40 || P === 41)) {
3372
- N[N.length] = L.charAt(B);
3372
+ E[E.length] = L.charAt(B);
3373
3373
  continue;
3374
3374
  }
3375
3375
  if (P < 128) {
3376
- N[N.length] = o[P];
3376
+ E[E.length] = o[P];
3377
3377
  continue;
3378
3378
  }
3379
3379
  if (P < 2048) {
3380
- N[N.length] = o[192 | P >> 6] + o[128 | P & 63];
3380
+ E[E.length] = o[192 | P >> 6] + o[128 | P & 63];
3381
3381
  continue;
3382
3382
  }
3383
3383
  if (P < 55296 || P >= 57344) {
3384
- N[N.length] = o[224 | P >> 12] + o[128 | P >> 6 & 63] + o[128 | P & 63];
3384
+ E[E.length] = o[224 | P >> 12] + o[128 | P >> 6 & 63] + o[128 | P & 63];
3385
3385
  continue;
3386
3386
  }
3387
- B += 1, P = 65536 + ((P & 1023) << 10 | L.charCodeAt(B) & 1023), N[N.length] = o[240 | P >> 18] + o[128 | P >> 12 & 63] + o[128 | P >> 6 & 63] + o[128 | P & 63];
3387
+ B += 1, P = 65536 + ((P & 1023) << 10 | L.charCodeAt(B) & 1023), E[E.length] = o[240 | P >> 18] + o[128 | P >> 12 & 63] + o[128 | P >> 6 & 63] + o[128 | P & 63];
3388
3388
  }
3389
- v += N.join("");
3389
+ b += E.join("");
3390
3390
  }
3391
- return v;
3391
+ return b;
3392
3392
  }, f = function(y) {
3393
3393
  for (var g = [{ obj: { o: y }, prop: "o" }], w = [], T = 0; T < g.length; ++T)
3394
- for (var p = g[T], O = p.obj[p.prop], v = Object.keys(O), q = 0; q < v.length; ++q) {
3395
- var L = v[q], N = O[L];
3396
- typeof N == "object" && N !== null && w.indexOf(N) === -1 && (g.push({ obj: O, prop: L }), w.push(N));
3394
+ for (var p = g[T], O = p.obj[p.prop], b = Object.keys(O), q = 0; q < b.length; ++q) {
3395
+ var L = b[q], E = O[L];
3396
+ typeof E == "object" && E !== null && w.indexOf(E) === -1 && (g.push({ obj: O, prop: L }), w.push(E));
3397
3397
  }
3398
3398
  return s(g), y;
3399
3399
  }, u = function(y) {
@@ -3424,10 +3424,10 @@ function go() {
3424
3424
  }, sr;
3425
3425
  }
3426
3426
  var cr, Qn;
3427
- function ls() {
3427
+ function fs() {
3428
3428
  if (Qn) return cr;
3429
3429
  Qn = 1;
3430
- var e = cs(), n = /* @__PURE__ */ go(), t = /* @__PURE__ */ Or(), o = Object.prototype.hasOwnProperty, s = {
3430
+ var e = us(), n = /* @__PURE__ */ go(), t = /* @__PURE__ */ Or(), o = Object.prototype.hasOwnProperty, s = {
3431
3431
  brackets: function(d) {
3432
3432
  return d + "[]";
3433
3433
  },
@@ -3463,8 +3463,8 @@ function ls() {
3463
3463
  strictNullHandling: !1
3464
3464
  }, f = function(d) {
3465
3465
  return typeof d == "string" || typeof d == "number" || typeof d == "boolean" || typeof d == "symbol" || typeof d == "bigint";
3466
- }, u = {}, m = function $(d, y, g, w, T, p, O, v, q, L, N, B, P, ae, H, D, se, Z) {
3467
- for (var E = d, re = Z, R = 0, k = !1; (re = re.get(u)) !== void 0 && !k; ) {
3466
+ }, u = {}, m = function $(d, y, g, w, T, p, O, b, q, L, E, B, P, ae, H, D, se, Z) {
3467
+ for (var N = d, re = Z, R = 0, k = !1; (re = re.get(u)) !== void 0 && !k; ) {
3468
3468
  var U = re.get(d);
3469
3469
  if (R += 1, typeof U < "u") {
3470
3470
  if (U === R)
@@ -3473,39 +3473,39 @@ function ls() {
3473
3473
  }
3474
3474
  typeof re.get(u) > "u" && (R = 0);
3475
3475
  }
3476
- if (typeof L == "function" ? E = L(y, E) : E instanceof Date ? E = P(E) : g === "comma" && c(E) && (E = n.maybeMap(E, function(Y) {
3476
+ if (typeof L == "function" ? N = L(y, N) : N instanceof Date ? N = P(N) : g === "comma" && c(N) && (N = n.maybeMap(N, function(Y) {
3477
3477
  return Y instanceof Date ? P(Y) : Y;
3478
- })), E === null) {
3478
+ })), N === null) {
3479
3479
  if (p)
3480
3480
  return q && !D ? q(y, h.encoder, se, "key", ae) : y;
3481
- E = "";
3481
+ N = "";
3482
3482
  }
3483
- if (f(E) || n.isBuffer(E)) {
3483
+ if (f(N) || n.isBuffer(N)) {
3484
3484
  if (q) {
3485
3485
  var C = D ? y : q(y, h.encoder, se, "key", ae);
3486
- return [H(C) + "=" + H(q(E, h.encoder, se, "value", ae))];
3486
+ return [H(C) + "=" + H(q(N, h.encoder, se, "value", ae))];
3487
3487
  }
3488
- return [H(y) + "=" + H(String(E))];
3488
+ return [H(y) + "=" + H(String(N))];
3489
3489
  }
3490
3490
  var I = [];
3491
- if (typeof E > "u")
3491
+ if (typeof N > "u")
3492
3492
  return I;
3493
3493
  var W;
3494
- if (g === "comma" && c(E))
3495
- D && q && (E = n.maybeMap(E, q)), W = [{ value: E.length > 0 ? E.join(",") || null : void 0 }];
3494
+ if (g === "comma" && c(N))
3495
+ D && q && (N = n.maybeMap(N, q)), W = [{ value: N.length > 0 ? N.join(",") || null : void 0 }];
3496
3496
  else if (c(L))
3497
3497
  W = L;
3498
3498
  else {
3499
- var z = Object.keys(E);
3500
- W = N ? z.sort(N) : z;
3499
+ var z = Object.keys(N);
3500
+ W = E ? z.sort(E) : z;
3501
3501
  }
3502
- var K = v ? y.replace(/\./g, "%2E") : y, ne = w && c(E) && E.length === 1 ? K + "[]" : K;
3503
- if (T && c(E) && E.length === 0)
3502
+ var K = b ? y.replace(/\./g, "%2E") : y, ne = w && c(N) && N.length === 1 ? K + "[]" : K;
3503
+ if (T && c(N) && N.length === 0)
3504
3504
  return ne + "[]";
3505
3505
  for (var J = 0; J < W.length; ++J) {
3506
- var A = W[J], F = typeof A == "object" && typeof A.value < "u" ? A.value : E[A];
3506
+ var A = W[J], F = typeof A == "object" && typeof A.value < "u" ? A.value : N[A];
3507
3507
  if (!(O && F === null)) {
3508
- var _ = B && v ? A.replace(/\./g, "%2E") : A, Q = c(E) ? typeof g == "function" ? g(ne, _) : ne : ne + (B ? "." + _ : "[" + _ + "]");
3508
+ var _ = B && b ? A.replace(/\./g, "%2E") : A, Q = c(N) ? typeof g == "function" ? g(ne, _) : ne : ne + (B ? "." + _ : "[" + _ + "]");
3509
3509
  Z.set(d, R);
3510
3510
  var G = e();
3511
3511
  G.set(u, Z), a(I, $(
@@ -3516,10 +3516,10 @@ function ls() {
3516
3516
  T,
3517
3517
  p,
3518
3518
  O,
3519
- v,
3520
- g === "comma" && D && c(E) ? null : q,
3519
+ b,
3520
+ g === "comma" && D && c(N) ? null : q,
3521
3521
  L,
3522
- N,
3522
+ E,
3523
3523
  B,
3524
3524
  P,
3525
3525
  ae,
@@ -3583,15 +3583,15 @@ function ls() {
3583
3583
  var p = [];
3584
3584
  if (typeof y != "object" || y === null)
3585
3585
  return "";
3586
- var O = s[g.arrayFormat], v = O === "comma" && g.commaRoundTrip;
3586
+ var O = s[g.arrayFormat], b = O === "comma" && g.commaRoundTrip;
3587
3587
  w || (w = Object.keys(y)), g.sort && w.sort(g.sort);
3588
3588
  for (var q = e(), L = 0; L < w.length; ++L) {
3589
- var N = w[L];
3590
- g.skipNulls && y[N] === null || a(p, m(
3591
- y[N],
3592
- N,
3589
+ var E = w[L];
3590
+ g.skipNulls && y[E] === null || a(p, m(
3591
+ y[E],
3592
+ E,
3593
3593
  O,
3594
- v,
3594
+ b,
3595
3595
  g.allowEmptyArrays,
3596
3596
  g.strictNullHandling,
3597
3597
  g.skipNulls,
@@ -3613,7 +3613,7 @@ function ls() {
3613
3613
  }, cr;
3614
3614
  }
3615
3615
  var lr, Kn;
3616
- function us() {
3616
+ function ps() {
3617
3617
  if (Kn) return lr;
3618
3618
  Kn = 1;
3619
3619
  var e = /* @__PURE__ */ go(), n = Object.prototype.hasOwnProperty, t = Array.isArray, o = {
@@ -3652,15 +3652,15 @@ function us() {
3652
3652
  g[T].indexOf("utf8=") === 0 && (g[T] === a ? p = "utf-8" : g[T] === r && (p = "iso-8859-1"), w = T, T = g.length);
3653
3653
  for (T = 0; T < g.length; ++T)
3654
3654
  if (T !== w) {
3655
- var O = g[T], v = O.indexOf("]="), q = v === -1 ? O.indexOf("=") : v + 1, L, N;
3656
- q === -1 ? (L = x.decoder(O, o.decoder, p, "key"), N = x.strictNullHandling ? null : "") : (L = x.decoder(O.slice(0, q), o.decoder, p, "key"), N = e.maybeMap(
3655
+ var O = g[T], b = O.indexOf("]="), q = b === -1 ? O.indexOf("=") : b + 1, L, E;
3656
+ q === -1 ? (L = x.decoder(O, o.decoder, p, "key"), E = x.strictNullHandling ? null : "") : (L = x.decoder(O.slice(0, q), o.decoder, p, "key"), E = e.maybeMap(
3657
3657
  c(O.slice(q + 1), x),
3658
3658
  function(P) {
3659
3659
  return x.decoder(P, o.decoder, p, "value");
3660
3660
  }
3661
- )), N && x.interpretNumericEntities && p === "iso-8859-1" && (N = s(N)), O.indexOf("[]=") > -1 && (N = t(N) ? [N] : N);
3661
+ )), E && x.interpretNumericEntities && p === "iso-8859-1" && (E = s(E)), O.indexOf("[]=") > -1 && (E = t(E) ? [E] : E);
3662
3662
  var B = n.call($, L);
3663
- B && x.duplicates === "combine" ? $[L] = e.combine($[L], N) : (!B || x.duplicates === "last") && ($[L] = N);
3663
+ B && x.duplicates === "combine" ? $[L] = e.combine($[L], E) : (!B || x.duplicates === "last") && ($[L] = E);
3664
3664
  }
3665
3665
  return $;
3666
3666
  }, l = function(u, m, x, $) {
@@ -3684,8 +3684,8 @@ function us() {
3684
3684
  return;
3685
3685
  O.push(p);
3686
3686
  }
3687
- for (var v = 0; $.depth > 0 && (T = w.exec(y)) !== null && v < $.depth; ) {
3688
- if (v += 1, !$.plainObjects && n.call(Object.prototype, T[1].slice(1, -1)) && !$.allowPrototypes)
3687
+ for (var b = 0; $.depth > 0 && (T = w.exec(y)) !== null && b < $.depth; ) {
3688
+ if (b += 1, !$.plainObjects && n.call(Object.prototype, T[1].slice(1, -1)) && !$.allowPrototypes)
3689
3689
  return;
3690
3690
  O.push(T[1]);
3691
3691
  }
@@ -3750,7 +3750,7 @@ var ur, Yn;
3750
3750
  function vo() {
3751
3751
  if (Yn) return ur;
3752
3752
  Yn = 1;
3753
- var e = /* @__PURE__ */ ls(), n = /* @__PURE__ */ us(), t = /* @__PURE__ */ Or();
3753
+ var e = /* @__PURE__ */ fs(), n = /* @__PURE__ */ ps(), t = /* @__PURE__ */ Or();
3754
3754
  return ur = {
3755
3755
  formats: t,
3756
3756
  parse: n,
@@ -3758,10 +3758,10 @@ function vo() {
3758
3758
  }, ur;
3759
3759
  }
3760
3760
  var Xn;
3761
- function fs() {
3761
+ function ds() {
3762
3762
  if (Xn) return Re;
3763
3763
  Xn = 1;
3764
- var e = Ei();
3764
+ var e = Ai();
3765
3765
  function n() {
3766
3766
  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;
3767
3767
  }
@@ -3810,19 +3810,19 @@ function fs() {
3810
3810
  "gopher:": !0,
3811
3811
  "file:": !0
3812
3812
  }, d = /* @__PURE__ */ vo();
3813
- function y(p, O, v) {
3813
+ function y(p, O, b) {
3814
3814
  if (p && typeof p == "object" && p instanceof n)
3815
3815
  return p;
3816
3816
  var q = new n();
3817
- return q.parse(p, O, v), q;
3817
+ return q.parse(p, O, b), q;
3818
3818
  }
3819
- n.prototype.parse = function(p, O, v) {
3819
+ n.prototype.parse = function(p, O, b) {
3820
3820
  if (typeof p != "string")
3821
3821
  throw new TypeError("Parameter 'url' must be a string, not " + typeof p);
3822
- var q = p.indexOf("?"), L = q !== -1 && q < p.indexOf("#") ? "?" : "#", N = p.split(L), B = /\\/g;
3823
- N[0] = N[0].replace(B, "/"), p = N.join(L);
3822
+ var q = p.indexOf("?"), L = q !== -1 && q < p.indexOf("#") ? "?" : "#", E = p.split(L), B = /\\/g;
3823
+ E[0] = E[0].replace(B, "/"), p = E.join(L);
3824
3824
  var P = p;
3825
- if (P = P.trim(), !v && p.split("#").length === 1) {
3825
+ if (P = P.trim(), !b && p.split("#").length === 1) {
3826
3826
  var ae = s.exec(P);
3827
3827
  if (ae)
3828
3828
  return this.path = P, this.href = P, this.pathname = ae[1], ae[2] ? (this.search = ae[2], O ? this.query = d.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : O && (this.search = "", this.query = {}), this;
@@ -3833,31 +3833,31 @@ function fs() {
3833
3833
  var D = H.toLowerCase();
3834
3834
  this.protocol = D, P = P.substr(H.length);
3835
3835
  }
3836
- if (v || H || P.match(/^\/\/[^@/]+@[^@/]+/)) {
3836
+ if (b || H || P.match(/^\/\/[^@/]+@[^@/]+/)) {
3837
3837
  var se = P.substr(0, 2) === "//";
3838
3838
  se && !(H && x[H]) && (P = P.substr(2), this.slashes = !0);
3839
3839
  }
3840
3840
  if (!x[H] && (se || H && !$[H])) {
3841
- for (var Z = -1, E = 0; E < l.length; E++) {
3842
- var re = P.indexOf(l[E]);
3841
+ for (var Z = -1, N = 0; N < l.length; N++) {
3842
+ var re = P.indexOf(l[N]);
3843
3843
  re !== -1 && (Z === -1 || re < Z) && (Z = re);
3844
3844
  }
3845
3845
  var R, k;
3846
3846
  Z === -1 ? k = P.lastIndexOf("@") : k = P.lastIndexOf("@", Z), k !== -1 && (R = P.slice(0, k), P = P.slice(k + 1), this.auth = decodeURIComponent(R)), Z = -1;
3847
- for (var E = 0; E < i.length; E++) {
3848
- var re = P.indexOf(i[E]);
3847
+ for (var N = 0; N < i.length; N++) {
3848
+ var re = P.indexOf(i[N]);
3849
3849
  re !== -1 && (Z === -1 || re < Z) && (Z = re);
3850
3850
  }
3851
3851
  Z === -1 && (Z = P.length), this.host = P.slice(0, Z), P = P.slice(Z), this.parseHost(), this.hostname = this.hostname || "";
3852
3852
  var U = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
3853
3853
  if (!U)
3854
- for (var C = this.hostname.split(/\./), E = 0, I = C.length; E < I; E++) {
3855
- var W = C[E];
3854
+ for (var C = this.hostname.split(/\./), N = 0, I = C.length; N < I; N++) {
3855
+ var W = C[N];
3856
3856
  if (W && !W.match(f)) {
3857
3857
  for (var z = "", K = 0, ne = W.length; K < ne; K++)
3858
3858
  W.charCodeAt(K) > 127 ? z += "x" : z += W[K];
3859
3859
  if (!z.match(f)) {
3860
- var J = C.slice(0, E), A = C.slice(E + 1), F = W.match(u);
3860
+ var J = C.slice(0, N), A = C.slice(N + 1), F = W.match(u);
3861
3861
  F && (J.push(F[1]), A.unshift(F[2])), A.length && (P = "/" + A.join(".") + P), this.hostname = J.join(".");
3862
3862
  break;
3863
3863
  }
@@ -3868,8 +3868,8 @@ function fs() {
3868
3868
  this.host = Q + _, this.href += this.host, U && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), P[0] !== "/" && (P = "/" + P));
3869
3869
  }
3870
3870
  if (!m[D])
3871
- for (var E = 0, I = a.length; E < I; E++) {
3872
- var G = a[E];
3871
+ for (var N = 0, I = a.length; N < I; N++) {
3872
+ var G = a[N];
3873
3873
  if (P.indexOf(G) !== -1) {
3874
3874
  var Y = encodeURIComponent(G);
3875
3875
  Y === G && (Y = escape(G)), P = P.split(G).join(Y);
@@ -3890,15 +3890,15 @@ function fs() {
3890
3890
  n.prototype.format = function() {
3891
3891
  var p = this.auth || "";
3892
3892
  p && (p = encodeURIComponent(p), p = p.replace(/%3A/i, ":"), p += "@");
3893
- var O = this.protocol || "", v = this.pathname || "", q = this.hash || "", L = !1, N = "";
3894
- this.host ? L = p + this.host : this.hostname && (L = p + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (L += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (N = d.stringify(this.query, {
3893
+ var O = this.protocol || "", b = this.pathname || "", q = this.hash || "", L = !1, E = "";
3894
+ this.host ? L = p + this.host : this.hostname && (L = p + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (L += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (E = d.stringify(this.query, {
3895
3895
  arrayFormat: "repeat",
3896
3896
  addQueryPrefix: !1
3897
3897
  }));
3898
- var B = this.search || N && "?" + N || "";
3899
- return O && O.substr(-1) !== ":" && (O += ":"), this.slashes || (!O || $[O]) && L !== !1 ? (L = "//" + (L || ""), v && v.charAt(0) !== "/" && (v = "/" + v)) : L || (L = ""), q && q.charAt(0) !== "#" && (q = "#" + q), B && B.charAt(0) !== "?" && (B = "?" + B), v = v.replace(/[?#]/g, function(P) {
3898
+ var B = this.search || E && "?" + E || "";
3899
+ return O && O.substr(-1) !== ":" && (O += ":"), this.slashes || (!O || $[O]) && L !== !1 ? (L = "//" + (L || ""), b && b.charAt(0) !== "/" && (b = "/" + b)) : L || (L = ""), q && q.charAt(0) !== "#" && (q = "#" + q), B && B.charAt(0) !== "?" && (B = "?" + B), b = b.replace(/[?#]/g, function(P) {
3900
3900
  return encodeURIComponent(P);
3901
- }), B = B.replace("#", "%23"), O + L + v + B + q;
3901
+ }), B = B.replace("#", "%23"), O + L + b + B + q;
3902
3902
  };
3903
3903
  function w(p, O) {
3904
3904
  return y(p, !1, !0).resolve(O);
@@ -3914,55 +3914,55 @@ function fs() {
3914
3914
  var O = new n();
3915
3915
  O.parse(p, !1, !0), p = O;
3916
3916
  }
3917
- for (var v = new n(), q = Object.keys(this), L = 0; L < q.length; L++) {
3918
- var N = q[L];
3919
- v[N] = this[N];
3917
+ for (var b = new n(), q = Object.keys(this), L = 0; L < q.length; L++) {
3918
+ var E = q[L];
3919
+ b[E] = this[E];
3920
3920
  }
3921
- if (v.hash = p.hash, p.href === "")
3922
- return v.href = v.format(), v;
3921
+ if (b.hash = p.hash, p.href === "")
3922
+ return b.href = b.format(), b;
3923
3923
  if (p.slashes && !p.protocol) {
3924
3924
  for (var B = Object.keys(p), P = 0; P < B.length; P++) {
3925
3925
  var ae = B[P];
3926
- ae !== "protocol" && (v[ae] = p[ae]);
3926
+ ae !== "protocol" && (b[ae] = p[ae]);
3927
3927
  }
3928
- return $[v.protocol] && v.hostname && !v.pathname && (v.pathname = "/", v.path = v.pathname), v.href = v.format(), v;
3928
+ return $[b.protocol] && b.hostname && !b.pathname && (b.pathname = "/", b.path = b.pathname), b.href = b.format(), b;
3929
3929
  }
3930
- if (p.protocol && p.protocol !== v.protocol) {
3930
+ if (p.protocol && p.protocol !== b.protocol) {
3931
3931
  if (!$[p.protocol]) {
3932
3932
  for (var H = Object.keys(p), D = 0; D < H.length; D++) {
3933
3933
  var se = H[D];
3934
- v[se] = p[se];
3934
+ b[se] = p[se];
3935
3935
  }
3936
- return v.href = v.format(), v;
3936
+ return b.href = b.format(), b;
3937
3937
  }
3938
- if (v.protocol = p.protocol, !p.host && !x[p.protocol]) {
3938
+ if (b.protocol = p.protocol, !p.host && !x[p.protocol]) {
3939
3939
  for (var I = (p.pathname || "").split("/"); I.length && !(p.host = I.shift()); )
3940
3940
  ;
3941
- p.host || (p.host = ""), p.hostname || (p.hostname = ""), I[0] !== "" && I.unshift(""), I.length < 2 && I.unshift(""), v.pathname = I.join("/");
3941
+ p.host || (p.host = ""), p.hostname || (p.hostname = ""), I[0] !== "" && I.unshift(""), I.length < 2 && I.unshift(""), b.pathname = I.join("/");
3942
3942
  } else
3943
- v.pathname = p.pathname;
3944
- if (v.search = p.search, v.query = p.query, v.host = p.host || "", v.auth = p.auth, v.hostname = p.hostname || p.host, v.port = p.port, v.pathname || v.search) {
3945
- var Z = v.pathname || "", E = v.search || "";
3946
- v.path = Z + E;
3943
+ b.pathname = p.pathname;
3944
+ if (b.search = p.search, b.query = p.query, b.host = p.host || "", b.auth = p.auth, b.hostname = p.hostname || p.host, b.port = p.port, b.pathname || b.search) {
3945
+ var Z = b.pathname || "", N = b.search || "";
3946
+ b.path = Z + N;
3947
3947
  }
3948
- return v.slashes = v.slashes || p.slashes, v.href = v.format(), v;
3948
+ return b.slashes = b.slashes || p.slashes, b.href = b.format(), b;
3949
3949
  }
3950
- var re = v.pathname && v.pathname.charAt(0) === "/", R = p.host || p.pathname && p.pathname.charAt(0) === "/", k = R || re || v.host && p.pathname, U = k, C = v.pathname && v.pathname.split("/") || [], I = p.pathname && p.pathname.split("/") || [], W = v.protocol && !$[v.protocol];
3951
- if (W && (v.hostname = "", v.port = null, v.host && (C[0] === "" ? C[0] = v.host : C.unshift(v.host)), v.host = "", p.protocol && (p.hostname = null, p.port = null, p.host && (I[0] === "" ? I[0] = p.host : I.unshift(p.host)), p.host = null), k = k && (I[0] === "" || C[0] === "")), R)
3952
- v.host = p.host || p.host === "" ? p.host : v.host, v.hostname = p.hostname || p.hostname === "" ? p.hostname : v.hostname, v.search = p.search, v.query = p.query, C = I;
3950
+ var re = b.pathname && b.pathname.charAt(0) === "/", R = p.host || p.pathname && p.pathname.charAt(0) === "/", k = R || re || b.host && p.pathname, U = k, C = b.pathname && b.pathname.split("/") || [], I = p.pathname && p.pathname.split("/") || [], W = b.protocol && !$[b.protocol];
3951
+ if (W && (b.hostname = "", b.port = null, b.host && (C[0] === "" ? C[0] = b.host : C.unshift(b.host)), b.host = "", p.protocol && (p.hostname = null, p.port = null, p.host && (I[0] === "" ? I[0] = p.host : I.unshift(p.host)), p.host = null), k = k && (I[0] === "" || C[0] === "")), R)
3952
+ b.host = p.host || p.host === "" ? p.host : b.host, b.hostname = p.hostname || p.hostname === "" ? p.hostname : b.hostname, b.search = p.search, b.query = p.query, C = I;
3953
3953
  else if (I.length)
3954
- C || (C = []), C.pop(), C = C.concat(I), v.search = p.search, v.query = p.query;
3954
+ C || (C = []), C.pop(), C = C.concat(I), b.search = p.search, b.query = p.query;
3955
3955
  else if (p.search != null) {
3956
3956
  if (W) {
3957
- v.host = C.shift(), v.hostname = v.host;
3958
- var z = v.host && v.host.indexOf("@") > 0 ? v.host.split("@") : !1;
3959
- z && (v.auth = z.shift(), v.hostname = z.shift(), v.host = v.hostname);
3957
+ b.host = C.shift(), b.hostname = b.host;
3958
+ var z = b.host && b.host.indexOf("@") > 0 ? b.host.split("@") : !1;
3959
+ z && (b.auth = z.shift(), b.hostname = z.shift(), b.host = b.hostname);
3960
3960
  }
3961
- return v.search = p.search, v.query = p.query, (v.pathname !== null || v.search !== null) && (v.path = (v.pathname ? v.pathname : "") + (v.search ? v.search : "")), v.href = v.format(), v;
3961
+ return b.search = p.search, b.query = p.query, (b.pathname !== null || b.search !== null) && (b.path = (b.pathname ? b.pathname : "") + (b.search ? b.search : "")), b.href = b.format(), b;
3962
3962
  }
3963
3963
  if (!C.length)
3964
- return v.pathname = null, v.search ? v.path = "/" + v.search : v.path = null, v.href = v.format(), v;
3965
- for (var K = C.slice(-1)[0], ne = (v.host || p.host || C.length > 1) && (K === "." || K === "..") || K === "", J = 0, A = C.length; A >= 0; A--)
3964
+ return b.pathname = null, b.search ? b.path = "/" + b.search : b.path = null, b.href = b.format(), b;
3965
+ for (var K = C.slice(-1)[0], ne = (b.host || p.host || C.length > 1) && (K === "." || K === "..") || K === "", J = 0, A = C.length; A >= 0; A--)
3966
3966
  K = C[A], K === "." ? C.splice(A, 1) : K === ".." ? (C.splice(A, 1), J++) : J && (C.splice(A, 1), J--);
3967
3967
  if (!k && !U)
3968
3968
  for (; J--; J)
@@ -3970,22 +3970,22 @@ function fs() {
3970
3970
  k && C[0] !== "" && (!C[0] || C[0].charAt(0) !== "/") && C.unshift(""), ne && C.join("/").substr(-1) !== "/" && C.push("");
3971
3971
  var F = C[0] === "" || C[0] && C[0].charAt(0) === "/";
3972
3972
  if (W) {
3973
- v.hostname = F ? "" : C.length ? C.shift() : "", v.host = v.hostname;
3974
- var z = v.host && v.host.indexOf("@") > 0 ? v.host.split("@") : !1;
3975
- z && (v.auth = z.shift(), v.hostname = z.shift(), v.host = v.hostname);
3973
+ b.hostname = F ? "" : C.length ? C.shift() : "", b.host = b.hostname;
3974
+ var z = b.host && b.host.indexOf("@") > 0 ? b.host.split("@") : !1;
3975
+ z && (b.auth = z.shift(), b.hostname = z.shift(), b.host = b.hostname);
3976
3976
  }
3977
- return k = k || v.host && C.length, k && !F && C.unshift(""), C.length > 0 ? v.pathname = C.join("/") : (v.pathname = null, v.path = null), (v.pathname !== null || v.search !== null) && (v.path = (v.pathname ? v.pathname : "") + (v.search ? v.search : "")), v.auth = p.auth || v.auth, v.slashes = v.slashes || p.slashes, v.href = v.format(), v;
3977
+ return k = k || b.host && C.length, k && !F && C.unshift(""), C.length > 0 ? b.pathname = C.join("/") : (b.pathname = null, b.path = null), (b.pathname !== null || b.search !== null) && (b.path = (b.pathname ? b.pathname : "") + (b.search ? b.search : "")), b.auth = p.auth || b.auth, b.slashes = b.slashes || p.slashes, b.href = b.format(), b;
3978
3978
  }, n.prototype.parseHost = function() {
3979
3979
  var p = this.host, O = o.exec(p);
3980
3980
  O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
3981
3981
  }, Re.parse = y, Re.resolve = w, Re.resolveObject = T, Re.format = g, Re.Url = n, Re;
3982
3982
  }
3983
- var fr = fs(), pr = /* @__PURE__ */ vo(), ps = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), ds = class {
3983
+ var fr = ds(), pr = /* @__PURE__ */ vo(), hs = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), ys = class {
3984
3984
  constructor(e, n = {}) {
3985
3985
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
3986
3986
  harIsAlreadyEncoded: !1,
3987
3987
  ...n
3988
- }, this.requests = [], ps(e) ? this.entries = e.log.entries : this.entries = [
3988
+ }, this.requests = [], hs(e) ? this.entries = e.log.entries : this.entries = [
3989
3989
  {
3990
3990
  request: e
3991
3991
  }
@@ -4048,10 +4048,10 @@ var fr = fs(), pr = /* @__PURE__ */ vo(), ps = (e) => typeof e == "object" && "l
4048
4048
  `, d = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), y = (T) => T.replace(/\r?\n|\r/g, `\r
4049
4049
  `), g = [`--${m}`];
4050
4050
  (u = t.postData) == null || u.params.forEach((T, p) => {
4051
- const O = T.name, v = T.value || "", q = T.fileName || null, L = T.contentType || "application/octet-stream";
4051
+ const O = T.name, b = T.value || "", q = T.fileName || null, L = T.contentType || "application/octet-stream";
4052
4052
  q ? (g.push(
4053
4053
  `Content-Disposition: form-data; name="${d(y(O))}"; filename="${q}"`
4054
- ), g.push(`Content-Type: ${L}`)) : g.push(`Content-Disposition: form-data; name="${d(y(O))}"`), g.push(""), g.push(y(v)), p !== t.postData.params.length - 1 && g.push(`--${m}`);
4054
+ ), g.push(`Content-Type: ${L}`)) : g.push(`Content-Disposition: form-data; name="${d(y(O))}"`), g.push(""), g.push(y(b)), p !== t.postData.params.length - 1 && g.push(`--${m}`);
4055
4055
  }), g.push(`--${x}`), t.postData.boundary = m, t.postData.text = g.join($);
4056
4056
  const w = fe(t.headersObj, "content-type") || "content-type";
4057
4057
  t.headersObj[w] = `multipart/form-data; boundary=${m}`;
@@ -4110,14 +4110,14 @@ var fr = fs(), pr = /* @__PURE__ */ vo(), ps = (e) => typeof e == "object" && "l
4110
4110
  }
4111
4111
  convert(e, n, t) {
4112
4112
  this.initCalled || this.init(), !t && n && (t = n);
4113
- const o = qi[e];
4113
+ const o = Ni[e];
4114
4114
  if (!o)
4115
4115
  return !1;
4116
4116
  const { convert: s } = o.clientsById[n || o.info.default];
4117
4117
  return this.requests.map((r) => s(r, t));
4118
4118
  }
4119
4119
  };
4120
- const hs = ({
4120
+ const ms = ({
4121
4121
  rootMargin: e = "0px",
4122
4122
  threshold: n
4123
4123
  } = {}) => {
@@ -4132,12 +4132,12 @@ const hs = ({
4132
4132
  if (r)
4133
4133
  return c.observe(r), () => c.unobserve(r);
4134
4134
  }, [e, n]), [s, t];
4135
- }, ys = ye.Root, Zn = ye.CollapsibleTrigger, ms = ye.CollapsibleContent, gs = typeof window < "u" ? Jo : ro, Tr = ({
4135
+ }, gs = ye.Root, Zn = ye.CollapsibleTrigger, vs = ye.CollapsibleContent, bs = typeof window < "u" ? Vo : ro, Tr = ({
4136
4136
  children: e,
4137
4137
  maxHeight: n = 250
4138
4138
  }) => {
4139
4139
  const t = vr(null), [o, s] = Se(!1), [c, r] = Se(!1);
4140
- return gs(() => {
4140
+ return bs(() => {
4141
4141
  const a = t.current;
4142
4142
  if (!a) return;
4143
4143
  s(a.scrollHeight > n);
@@ -4145,16 +4145,16 @@ const hs = ({
4145
4145
  s(a.scrollHeight > n);
4146
4146
  });
4147
4147
  return i.observe(a), () => i.disconnect();
4148
- }, [n]), /* @__PURE__ */ b.jsxs(
4149
- ys,
4148
+ }, [n]), /* @__PURE__ */ v.jsxs(
4149
+ gs,
4150
4150
  {
4151
4151
  className: "group",
4152
4152
  open: c,
4153
4153
  onOpenChange: r,
4154
4154
  style: { "--max-height": `${n}px` },
4155
4155
  children: [
4156
- /* @__PURE__ */ b.jsxs(
4157
- ms,
4156
+ /* @__PURE__ */ v.jsxs(
4157
+ vs,
4158
4158
  {
4159
4159
  forceMount: !0,
4160
4160
  className: pe(
@@ -4162,30 +4162,30 @@ const hs = ({
4162
4162
  !c && o && "max-h-[--max-height]"
4163
4163
  ),
4164
4164
  children: [
4165
- !c && o && /* @__PURE__ */ b.jsx("div", { className: "absolute inset-0 bg-gradient-to-b from-transparent to-zinc-50/90 dark:to-zinc-800/90 z-10" }),
4166
- /* @__PURE__ */ b.jsx("div", { ref: t, children: e }),
4167
- !c && o && /* @__PURE__ */ b.jsx(
4165
+ !c && o && /* @__PURE__ */ v.jsx("div", { className: "absolute inset-0 bg-gradient-to-b from-transparent to-zinc-50/90 dark:to-zinc-800/90 z-10" }),
4166
+ /* @__PURE__ */ v.jsx("div", { ref: t, children: e }),
4167
+ !c && o && /* @__PURE__ */ v.jsx(
4168
4168
  Zn,
4169
4169
  {
4170
4170
  className: "absolute inset-0 grid place-items-center z-10",
4171
4171
  asChild: !0,
4172
- children: /* @__PURE__ */ b.jsx("div", { children: /* @__PURE__ */ b.jsx(Br, { className: "bg-primary/70 border border-accent-foreground/25", children: "Expand code" }) })
4172
+ children: /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsx(Br, { className: "bg-primary/70 border border-accent-foreground/25", children: "Expand code" }) })
4173
4173
  }
4174
4174
  )
4175
4175
  ]
4176
4176
  }
4177
4177
  ),
4178
- o && /* @__PURE__ */ b.jsx(
4178
+ o && /* @__PURE__ */ v.jsx(
4179
4179
  "div",
4180
4180
  {
4181
4181
  className: pe("flex justify-center w-full mb-2", !c && "hidden"),
4182
- children: /* @__PURE__ */ b.jsx(Zn, { asChild: !0, children: /* @__PURE__ */ b.jsx(Br, { className: "border border-accent-foreground/25", children: "Collapse code" }) })
4182
+ children: /* @__PURE__ */ v.jsx(Zn, { asChild: !0, children: /* @__PURE__ */ v.jsx(Br, { className: "border border-accent-foreground/25", children: "Collapse code" }) })
4183
4183
  }
4184
4184
  )
4185
4185
  ]
4186
4186
  }
4187
4187
  );
4188
- }, vs = ({
4188
+ }, xs = ({
4189
4189
  server: e,
4190
4190
  servers: n,
4191
4191
  operation: t
@@ -4202,8 +4202,8 @@ const hs = ({
4202
4202
  defaultActive: l.required ?? !1,
4203
4203
  isRequired: l.required ?? !1
4204
4204
  })), c = (i = t.parameters) == null ? void 0 : i.filter((l) => l.in === "path").map((l) => ({ name: l.name }));
4205
- return /* @__PURE__ */ b.jsx(
4206
- Yo,
4205
+ return /* @__PURE__ */ v.jsx(
4206
+ Zo,
4207
4207
  {
4208
4208
  server: e,
4209
4209
  servers: n,
@@ -4214,7 +4214,7 @@ const hs = ({
4214
4214
  pathParams: c
4215
4215
  }
4216
4216
  );
4217
- }, Pr = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
4217
+ }, Pr = ({ children: e, className: n }) => /* @__PURE__ */ v.jsx(
4218
4218
  "div",
4219
4219
  {
4220
4220
  className: pe(
@@ -4223,7 +4223,7 @@ const hs = ({
4223
4223
  ),
4224
4224
  children: e
4225
4225
  }
4226
- ), Cr = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
4226
+ ), Cr = ({ children: e, className: n }) => /* @__PURE__ */ v.jsx(
4227
4227
  "div",
4228
4228
  {
4229
4229
  className: pe(
@@ -4232,13 +4232,13 @@ const hs = ({
4232
4232
  ),
4233
4233
  children: e
4234
4234
  }
4235
- ), Rr = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
4235
+ ), Rr = ({ children: e, className: n }) => /* @__PURE__ */ v.jsx(
4236
4236
  "div",
4237
4237
  {
4238
4238
  className: pe("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", n),
4239
4239
  children: e
4240
4240
  }
4241
- ), bo = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
4241
+ ), bo = ({ children: e, className: n }) => /* @__PURE__ */ v.jsx(
4242
4242
  "div",
4243
4243
  {
4244
4244
  className: pe(
@@ -4281,13 +4281,13 @@ const hs = ({
4281
4281
  default:
4282
4282
  return {};
4283
4283
  }
4284
- }, bs = ({ content: e }) => {
4284
+ }, $s = ({ content: e }) => {
4285
4285
  var o, s;
4286
4286
  if (!e.length) return null;
4287
4287
  const n = e.at(0), t = ((s = (o = n == null ? void 0 : n.examples) == null ? void 0 : o.at(0)) == null ? void 0 : s.value) ?? (n != null && n.schema ? Ue(n.schema) : "");
4288
- return /* @__PURE__ */ b.jsx(b.Fragment, { children: /* @__PURE__ */ b.jsxs(Pr, { children: [
4289
- /* @__PURE__ */ b.jsx(Cr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
4290
- /* @__PURE__ */ b.jsx(Rr, { className: "p-0", children: /* @__PURE__ */ b.jsx(Tr, { children: /* @__PURE__ */ b.jsx(
4288
+ return /* @__PURE__ */ v.jsx(v.Fragment, { children: /* @__PURE__ */ v.jsxs(Pr, { children: [
4289
+ /* @__PURE__ */ v.jsx(Cr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ v.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
4290
+ /* @__PURE__ */ v.jsx(Rr, { className: "p-0", children: /* @__PURE__ */ v.jsx(Tr, { children: /* @__PURE__ */ v.jsx(
4291
4291
  xr,
4292
4292
  {
4293
4293
  language: t ? "json" : "plain",
@@ -4298,22 +4298,22 @@ const hs = ({
4298
4298
  }
4299
4299
  ) }) })
4300
4300
  ] }) });
4301
- }, xs = ({
4301
+ }, js = ({
4302
4302
  responses: e,
4303
4303
  selectedResponse: n,
4304
4304
  onSelectResponse: t
4305
4305
  }) => {
4306
4306
  var o;
4307
- return /* @__PURE__ */ b.jsx(Pr, { children: /* @__PURE__ */ b.jsxs(
4307
+ return /* @__PURE__ */ v.jsx(Pr, { children: /* @__PURE__ */ v.jsxs(
4308
4308
  Ke.Root,
4309
4309
  {
4310
4310
  defaultValue: (o = e[0]) == null ? void 0 : o.statusCode,
4311
4311
  value: n,
4312
4312
  onValueChange: (s) => t(s),
4313
4313
  children: [
4314
- /* @__PURE__ */ b.jsxs(Cr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4315
- /* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Example Responses" }),
4316
- /* @__PURE__ */ b.jsx(Ke.List, { className: "flex gap-2", children: e.map((s) => /* @__PURE__ */ b.jsx(
4314
+ /* @__PURE__ */ v.jsxs(Cr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4315
+ /* @__PURE__ */ v.jsx("span", { className: "font-mono", children: "Example Responses" }),
4316
+ /* @__PURE__ */ v.jsx(Ke.List, { className: "flex gap-2", children: e.map((s) => /* @__PURE__ */ v.jsx(
4317
4317
  Ke.Trigger,
4318
4318
  {
4319
4319
  value: s.statusCode,
@@ -4330,8 +4330,8 @@ const hs = ({
4330
4330
  e.map((s) => {
4331
4331
  var a, i, l;
4332
4332
  const c = (a = s.content) == null ? void 0 : a.at(0), r = ((l = (i = c == null ? void 0 : c.examples) == null ? void 0 : i.at(0)) == null ? void 0 : l.value) ?? (c != null && c.schema ? Ue(c.schema) : "");
4333
- return /* @__PURE__ */ b.jsxs(Ke.Content, { value: s.statusCode, children: [
4334
- /* @__PURE__ */ b.jsx(Rr, { className: "p-0", children: /* @__PURE__ */ b.jsx(Tr, { children: /* @__PURE__ */ b.jsx(
4333
+ return /* @__PURE__ */ v.jsxs(Ke.Content, { value: s.statusCode, children: [
4334
+ /* @__PURE__ */ v.jsx(Rr, { className: "p-0", children: /* @__PURE__ */ v.jsx(Tr, { children: /* @__PURE__ */ v.jsx(
4335
4335
  xr,
4336
4336
  {
4337
4337
  language: r ? "json" : "plain",
@@ -4340,7 +4340,7 @@ const hs = ({
4340
4340
  code: r ? JSON.stringify(r, null, 2) : "Empty response"
4341
4341
  }
4342
4342
  ) }) }),
4343
- /* @__PURE__ */ b.jsx(bo, { className: "flex justify-end text-xs", children: s.description })
4343
+ /* @__PURE__ */ v.jsx(bo, { className: "flex justify-end text-xs", children: s.description })
4344
4344
  ] }, s.statusCode);
4345
4345
  })
4346
4346
  ]
@@ -4354,7 +4354,7 @@ const hs = ({
4354
4354
  purple: "text-purple-600",
4355
4355
  indigo: "text-indigo-600",
4356
4356
  gray: "text-gray-600"
4357
- }, $s = {
4357
+ }, ws = {
4358
4358
  get: be.green,
4359
4359
  post: be.blue,
4360
4360
  put: be.yellow,
@@ -4363,7 +4363,7 @@ const hs = ({
4363
4363
  options: be.indigo,
4364
4364
  head: be.gray,
4365
4365
  trace: be.gray
4366
- }, xo = (e) => $s[e.toLocaleLowerCase()] ?? be.gray, js = (e, n) => {
4366
+ }, xo = (e) => ws[e.toLocaleLowerCase()] ?? be.gray, Ss = (e, n) => {
4367
4367
  let t;
4368
4368
  switch (n) {
4369
4369
  case "shell":
@@ -4404,7 +4404,7 @@ const hs = ({
4404
4404
  break;
4405
4405
  }
4406
4406
  return t ? t[0] : "";
4407
- }, ws = tt(
4407
+ }, Os = tt(
4408
4408
  /* GraphQL */
4409
4409
  `
4410
4410
  query getServerQuery($input: JSON!, $type: SchemaType!) {
@@ -4416,7 +4416,7 @@ const hs = ({
4416
4416
  }
4417
4417
  }
4418
4418
  `
4419
- ), Ss = [
4419
+ ), Ts = [
4420
4420
  { value: "shell", label: "cURL" },
4421
4421
  { value: "js", label: "JavaScript" },
4422
4422
  { value: "python", label: "Python" },
@@ -4428,33 +4428,33 @@ const hs = ({
4428
4428
  { value: "php", label: "PHP" },
4429
4429
  { value: "ruby", label: "Ruby" },
4430
4430
  { value: "swift", label: "Swift" }
4431
- ], Os = ({
4431
+ ], Ps = ({
4432
4432
  operation: e,
4433
4433
  selectedResponse: n,
4434
4434
  onSelectResponse: t
4435
4435
  }) => {
4436
4436
  var g;
4437
- const { input: o, type: s } = br(), c = $r(ws, { input: o, type: s }), r = mr(c), a = xo(e.method), [i, l] = Co(), [, h] = to(), f = i.get("lang") ?? "shell", u = (g = e.requestBody) == null ? void 0 : g.content, m = e.path.split("/").map((w, T, p) => {
4438
- const v = w.startsWith("{") && w.endsWith("}") || w.startsWith(":") ? w.replace(/[:{}]/g, "") : void 0;
4437
+ const { input: o, type: s } = br(), c = $r(Os, { input: o, type: s }), r = mr(c), a = xo(e.method), [i, l] = Co(), [, h] = to(), f = i.get("lang") ?? "shell", u = (g = e.requestBody) == null ? void 0 : g.content, m = e.path.split("/").map((w, T, p) => {
4438
+ const b = w.startsWith("{") && w.endsWith("}") || w.startsWith(":") ? w.replace(/[:{}]/g, "") : void 0;
4439
4439
  return (
4440
4440
  // eslint-disable-next-line react/no-array-index-key
4441
- /* @__PURE__ */ b.jsxs(Vo, { children: [
4442
- v ? /* @__PURE__ */ b.jsx(
4441
+ /* @__PURE__ */ v.jsxs(Do, { children: [
4442
+ b ? /* @__PURE__ */ v.jsx(
4443
4443
  ao,
4444
4444
  {
4445
- name: v,
4445
+ name: b,
4446
4446
  backgroundOpacity: "0",
4447
- slug: `${e.slug}-${v.toLocaleLowerCase()}`,
4447
+ slug: `${e.slug}-${b.toLocaleLowerCase()}`,
4448
4448
  children: w
4449
4449
  }
4450
4450
  ) : w,
4451
4451
  T < p.length - 1 ? "/" : null,
4452
- /* @__PURE__ */ b.jsx("wbr", {})
4452
+ /* @__PURE__ */ v.jsx("wbr", {})
4453
4453
  ] }, w + T)
4454
4454
  );
4455
4455
  }), { selectedServer: x } = gr(), $ = eo(() => {
4456
4456
  var p;
4457
- const w = (p = u == null ? void 0 : u[0]) != null && p.schema ? Ue(u[0].schema) : void 0, T = new ds({
4457
+ const w = (p = u == null ? void 0 : u[0]) != null && p.schema ? Ue(u[0].schema) : void 0, T = new ys({
4458
4458
  method: e.method.toLocaleUpperCase(),
4459
4459
  url: (x ?? r.data.schema.url ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
4460
4460
  postData: w ? {
@@ -4468,7 +4468,7 @@ const hs = ({
4468
4468
  headersSize: 0,
4469
4469
  bodySize: 0
4470
4470
  });
4471
- return js(T, f);
4471
+ return Ss(T, f);
4472
4472
  }, [
4473
4473
  u,
4474
4474
  e.method,
@@ -4476,22 +4476,22 @@ const hs = ({
4476
4476
  x,
4477
4477
  r.data.schema.url,
4478
4478
  f
4479
- ]), [d, y] = hs({ rootMargin: "200px 0px 200px 0px" });
4480
- return /* @__PURE__ */ b.jsxs(
4479
+ ]), [d, y] = ms({ rootMargin: "200px 0px 200px 0px" });
4480
+ return /* @__PURE__ */ v.jsxs(
4481
4481
  "aside",
4482
4482
  {
4483
4483
  ref: d,
4484
4484
  className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4",
4485
4485
  children: [
4486
- /* @__PURE__ */ b.jsxs(Pr, { children: [
4487
- /* @__PURE__ */ b.jsxs(Cr, { className: "flex justify-between items-center flex-nowrap py-3 gap-2 text-xs", children: [
4488
- /* @__PURE__ */ b.jsxs("span", { className: "font-mono break-words", children: [
4489
- /* @__PURE__ */ b.jsx("span", { className: pe("font-semibold", a), children: e.method.toLocaleUpperCase() }),
4486
+ /* @__PURE__ */ v.jsxs(Pr, { children: [
4487
+ /* @__PURE__ */ v.jsxs(Cr, { className: "flex justify-between items-center flex-nowrap py-3 gap-2 text-xs", children: [
4488
+ /* @__PURE__ */ v.jsxs("span", { className: "font-mono break-words", children: [
4489
+ /* @__PURE__ */ v.jsx("span", { className: pe("font-semibold", a), children: e.method.toLocaleUpperCase() }),
4490
4490
  " ",
4491
4491
  m
4492
4492
  ] }),
4493
- y && /* @__PURE__ */ b.jsx(
4494
- vs,
4493
+ y && /* @__PURE__ */ v.jsx(
4494
+ xs,
4495
4495
  {
4496
4496
  server: r.data.schema.url ?? "",
4497
4497
  servers: r.data.schema.servers.map((w) => w.url) ?? [],
@@ -4499,8 +4499,8 @@ const hs = ({
4499
4499
  }
4500
4500
  )
4501
4501
  ] }),
4502
- y && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
4503
- /* @__PURE__ */ b.jsx(Rr, { className: "p-0", children: /* @__PURE__ */ b.jsx(Tr, { children: /* @__PURE__ */ b.jsx(
4502
+ y && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4503
+ /* @__PURE__ */ v.jsx(Rr, { className: "p-0", children: /* @__PURE__ */ v.jsx(Tr, { children: /* @__PURE__ */ v.jsx(
4504
4504
  xr,
4505
4505
  {
4506
4506
  language: f,
@@ -4509,9 +4509,9 @@ const hs = ({
4509
4509
  code: $
4510
4510
  }
4511
4511
  ) }) }),
4512
- /* @__PURE__ */ b.jsxs(bo, { className: "flex items-center text-xs gap-2 justify-end py-1", children: [
4513
- /* @__PURE__ */ b.jsx("span", { children: "Show example in" }),
4514
- /* @__PURE__ */ b.jsx(
4512
+ /* @__PURE__ */ v.jsxs(bo, { className: "flex items-center text-xs gap-2 justify-end py-1", children: [
4513
+ /* @__PURE__ */ v.jsx("span", { children: "Show example in" }),
4514
+ /* @__PURE__ */ v.jsx(
4515
4515
  oo,
4516
4516
  {
4517
4517
  className: "self-start max-w-[150px]",
@@ -4521,15 +4521,15 @@ const hs = ({
4521
4521
  l((T) => (T.set("lang", w.target.value), T));
4522
4522
  });
4523
4523
  },
4524
- options: Ss
4524
+ options: Ts
4525
4525
  }
4526
4526
  )
4527
4527
  ] })
4528
4528
  ] })
4529
4529
  ] }),
4530
- y && u && /* @__PURE__ */ b.jsx(bs, { content: u }),
4531
- y && e.responses.length > 0 && /* @__PURE__ */ b.jsx(
4532
- xs,
4530
+ y && u && /* @__PURE__ */ v.jsx($s, { content: u }),
4531
+ y && e.responses.length > 0 && /* @__PURE__ */ v.jsx(
4532
+ js,
4533
4533
  {
4534
4534
  selectedResponse: n,
4535
4535
  onSelectResponse: t,
@@ -4539,75 +4539,75 @@ const hs = ({
4539
4539
  ]
4540
4540
  }
4541
4541
  );
4542
- }, Ts = (e) => Object.entries(e), Ps = {
4543
- AND: /* @__PURE__ */ b.jsx(_o, { size: 16, className: "fill-card" }),
4544
- OR: /* @__PURE__ */ b.jsx(Bo, { size: 16, className: "fill-card" }),
4545
- ONE: /* @__PURE__ */ b.jsx(Ho, { size: 14, className: "fill-card" })
4546
- }, Cs = {
4542
+ }, Cs = (e) => Object.entries(e), Rs = {
4543
+ AND: /* @__PURE__ */ v.jsx(_o, { size: 16, className: "fill-card" }),
4544
+ OR: /* @__PURE__ */ v.jsx(Bo, { size: 16, className: "fill-card" }),
4545
+ ONE: /* @__PURE__ */ v.jsx(Ho, { size: 14, className: "fill-card" })
4546
+ }, qs = {
4547
4547
  AND: "text-green-500 dark:text-green-300/60",
4548
4548
  OR: "text-blue-400 dark:text-blue-500",
4549
4549
  ONE: "text-purple-500 dark:text-purple-300/60"
4550
- }, Rs = ({
4550
+ }, ks = ({
4551
4551
  type: e,
4552
4552
  isOpen: n,
4553
4553
  className: t
4554
- }) => /* @__PURE__ */ b.jsx(
4554
+ }) => /* @__PURE__ */ v.jsx(
4555
4555
  "div",
4556
4556
  {
4557
4557
  className: pe(
4558
- Cs[e],
4558
+ qs[e],
4559
4559
  "relative text-sm flex py-2",
4560
4560
  "before:border-l before:absolute before:-top-2 before:-bottom-2 before:border-border before:border-dashed before:content-['']",
4561
4561
  t
4562
4562
  ),
4563
- children: /* @__PURE__ */ b.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
4564
- Ps[e],
4565
- /* @__PURE__ */ b.jsx(
4563
+ children: /* @__PURE__ */ v.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
4564
+ Rs[e],
4565
+ /* @__PURE__ */ v.jsx(
4566
4566
  "div",
4567
4567
  {
4568
4568
  className: pe(
4569
4569
  "translate-y-px mx-px opacity-0 group-hover:opacity-100 transition",
4570
4570
  !n && "-rotate-90"
4571
4571
  ),
4572
- children: /* @__PURE__ */ b.jsx(Fo, { size: 16 })
4572
+ children: /* @__PURE__ */ v.jsx(Fo, { size: 16 })
4573
4573
  }
4574
4574
  )
4575
4575
  ] })
4576
4576
  }
4577
- ), qs = (e) => {
4577
+ ), Ns = (e) => {
4578
4578
  const [n, t] = Se(!0);
4579
- return /* @__PURE__ */ b.jsxs(
4579
+ return /* @__PURE__ */ v.jsxs(
4580
4580
  ye.Root,
4581
4581
  {
4582
4582
  open: n,
4583
4583
  onOpenChange: () => t((o) => !o),
4584
4584
  className: "group",
4585
4585
  children: [
4586
- /* @__PURE__ */ b.jsx(ye.Trigger, { children: /* @__PURE__ */ b.jsx(Rs, { type: e.type, isOpen: n }) }),
4587
- !n && /* @__PURE__ */ b.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
4588
- /* @__PURE__ */ b.jsx(ye.Content, { children: /* @__PURE__ */ b.jsx(Ge, { schema: e.schema, level: e.level + 1 }) })
4586
+ /* @__PURE__ */ v.jsx(ye.Trigger, { children: /* @__PURE__ */ v.jsx(ks, { type: e.type, isOpen: n }) }),
4587
+ !n && /* @__PURE__ */ v.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
4588
+ /* @__PURE__ */ v.jsx(ye.Content, { children: /* @__PURE__ */ v.jsx(Ge, { schema: e.schema, level: e.level + 1 }) })
4589
4589
  ]
4590
4590
  }
4591
4591
  );
4592
- }, ks = {
4592
+ }, Es = {
4593
4593
  AND: "All of",
4594
4594
  OR: "Any of",
4595
4595
  ONE: "One of"
4596
- }, Es = ({
4596
+ }, As = ({
4597
4597
  schemas: e,
4598
4598
  type: n,
4599
4599
  isOpen: t,
4600
4600
  level: o,
4601
4601
  toggleOpen: s
4602
- }) => /* @__PURE__ */ b.jsx(ye.Root, { open: t, onOpenChange: s, asChild: !0, children: /* @__PURE__ */ b.jsxs(xe, { className: "px-6", children: [
4603
- /* @__PURE__ */ b.jsxs(ye.Trigger, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
4604
- t ? /* @__PURE__ */ b.jsx(Mo, { size: 14 }) : /* @__PURE__ */ b.jsx(zo, { size: 14 }),
4605
- /* @__PURE__ */ b.jsx("span", { children: ks[n] })
4602
+ }) => /* @__PURE__ */ v.jsx(ye.Root, { open: t, onOpenChange: s, asChild: !0, children: /* @__PURE__ */ v.jsxs(xe, { className: "px-6", children: [
4603
+ /* @__PURE__ */ v.jsxs(ye.Trigger, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
4604
+ t ? /* @__PURE__ */ v.jsx(Mo, { size: 14 }) : /* @__PURE__ */ v.jsx(zo, { size: 14 }),
4605
+ /* @__PURE__ */ v.jsx("span", { children: Es[n] })
4606
4606
  ] }),
4607
- /* @__PURE__ */ b.jsx(ye.Content, { className: "pb-4", children: e.map((c, r) => (
4607
+ /* @__PURE__ */ v.jsx(ye.Content, { className: "pb-4", children: e.map((c, r) => (
4608
4608
  // eslint-disable-next-line react/no-array-index-key
4609
- /* @__PURE__ */ b.jsx(
4610
- qs,
4609
+ /* @__PURE__ */ v.jsx(
4610
+ Ns,
4611
4611
  {
4612
4612
  type: n,
4613
4613
  schema: c,
@@ -4616,7 +4616,7 @@ const hs = ({
4616
4616
  r
4617
4617
  )
4618
4618
  )) })
4619
- ] }) }), Ns = (e) => e.type === "object" || e.type === "array" && typeof e.items == "object" && (!e.items.type || e.items.type === "object"), yr = (e) => !!(e.oneOf ?? e.allOf ?? e.anyOf), As = {
4619
+ ] }) }), Is = (e) => e.type === "object" || e.type === "array" && typeof e.items == "object" && (!e.items.type || e.items.type === "object"), yr = (e) => !!(e.oneOf ?? e.allOf ?? e.anyOf), Ls = {
4620
4620
  allOf: "AND",
4621
4621
  anyOf: "OR",
4622
4622
  oneOf: "ONE"
@@ -4624,11 +4624,11 @@ const hs = ({
4624
4624
  schema: e,
4625
4625
  level: n
4626
4626
  }) => {
4627
- const [t, o] = Se(!0), s = Do(() => o((c) => !c), []);
4628
- for (const [c, r] of Ts(As))
4627
+ const [t, o] = Se(!0), s = Qo(() => o((c) => !c), []);
4628
+ for (const [c, r] of Cs(Ls))
4629
4629
  if (e[c])
4630
- return /* @__PURE__ */ b.jsx(
4631
- Es,
4630
+ return /* @__PURE__ */ v.jsx(
4631
+ As,
4632
4632
  {
4633
4633
  schemas: e[c],
4634
4634
  type: r,
@@ -4637,7 +4637,10 @@ const hs = ({
4637
4637
  level: n
4638
4638
  }
4639
4639
  );
4640
- }, Is = ({
4640
+ }, Us = (e) => e === Yo, Fs = () => /* @__PURE__ */ v.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: [
4641
+ /* @__PURE__ */ v.jsx(Wo, { size: 16 }),
4642
+ /* @__PURE__ */ v.jsx("span", { children: "recursive" })
4643
+ ] }), _s = ({
4641
4644
  name: e,
4642
4645
  schema: n,
4643
4646
  group: t,
@@ -4646,42 +4649,45 @@ const hs = ({
4646
4649
  showCollapseButton: c = !0
4647
4650
  }) => {
4648
4651
  const [r, a] = Se(s);
4649
- return /* @__PURE__ */ b.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-1 justify-between text-sm", children: [
4650
- /* @__PURE__ */ b.jsxs("div", { className: "flex gap-2 items-center", children: [
4651
- /* @__PURE__ */ b.jsx("code", { children: e }),
4652
- /* @__PURE__ */ b.jsx("span", { className: "text-muted-foreground", children: n.type === "array" && n.items.type ? /* @__PURE__ */ b.jsxs("span", { children: [
4652
+ return Us(n) ? /* @__PURE__ */ v.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ v.jsx("div", { className: "flex flex-col gap-1 justify-between text-sm", children: /* @__PURE__ */ v.jsxs("div", { className: "flex gap-2 items-center", children: [
4653
+ /* @__PURE__ */ v.jsx("code", { children: e }),
4654
+ /* @__PURE__ */ v.jsx(Fs, {})
4655
+ ] }) }) }) : /* @__PURE__ */ v.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col gap-1 justify-between text-sm", children: [
4656
+ /* @__PURE__ */ v.jsxs("div", { className: "flex gap-2 items-center", children: [
4657
+ /* @__PURE__ */ v.jsx("code", { children: e }),
4658
+ /* @__PURE__ */ v.jsx("span", { className: "text-muted-foreground", children: n.type === "array" && n.items.type ? /* @__PURE__ */ v.jsxs("span", { children: [
4653
4659
  n.items.type,
4654
4660
  "[]"
4655
- ] }) : Array.isArray(n.type) ? /* @__PURE__ */ b.jsx("span", { children: n.type.join(" | ") }) : /* @__PURE__ */ b.jsx("span", { children: n.type }) }),
4656
- t === "optional" && /* @__PURE__ */ b.jsx("span", { className: "py-px px-1.5 font-medium border rounded-lg", children: "optional" })
4661
+ ] }) : Array.isArray(n.type) ? /* @__PURE__ */ v.jsx("span", { children: n.type.join(" | ") }) : /* @__PURE__ */ v.jsx("span", { children: n.type }) }),
4662
+ t === "optional" && /* @__PURE__ */ v.jsx("span", { className: "py-px px-1.5 font-medium border rounded-lg", children: "optional" })
4657
4663
  ] }),
4658
- n.description && /* @__PURE__ */ b.jsx(
4664
+ n.description && /* @__PURE__ */ v.jsx(
4659
4665
  we,
4660
4666
  {
4661
4667
  className: pe(qe, "text-sm leading-normal line-clamp-4"),
4662
4668
  content: n.description
4663
4669
  }
4664
4670
  ),
4665
- (yr(n) || Ns(n)) && /* @__PURE__ */ b.jsxs(
4671
+ (yr(n) || Is(n)) && /* @__PURE__ */ v.jsxs(
4666
4672
  ye.Root,
4667
4673
  {
4668
4674
  defaultOpen: s,
4669
4675
  open: r,
4670
4676
  onOpenChange: () => a(!r),
4671
4677
  children: [
4672
- c && /* @__PURE__ */ b.jsx(ye.Trigger, { asChild: !0, children: /* @__PURE__ */ b.jsxs(
4678
+ c && /* @__PURE__ */ v.jsx(ye.Trigger, { asChild: !0, children: /* @__PURE__ */ v.jsxs(
4673
4679
  no,
4674
4680
  {
4675
4681
  variant: "outline",
4676
4682
  size: "sm",
4677
4683
  className: "mt-2 flex gap-1.5",
4678
4684
  children: [
4679
- /* @__PURE__ */ b.jsx(Go, { size: 18 }),
4685
+ /* @__PURE__ */ v.jsx(Go, { size: 18 }),
4680
4686
  r ? "Hide nested properties" : "Show nested properties"
4681
4687
  ]
4682
4688
  }
4683
4689
  ) }),
4684
- /* @__PURE__ */ b.jsx(ye.Content, { children: /* @__PURE__ */ b.jsx("div", { className: "mt-2", children: yr(n) ? /* @__PURE__ */ b.jsx($o, { schema: n, level: o + 1 }) : n.type === "object" ? /* @__PURE__ */ b.jsx(Ge, { schema: n, level: o + 1 }) : n.type === "array" && typeof n.items == "object" && /* @__PURE__ */ b.jsx(Ge, { schema: n.items, level: o + 1 }) }) })
4690
+ /* @__PURE__ */ v.jsx(ye.Content, { children: /* @__PURE__ */ v.jsx("div", { className: "mt-2", children: yr(n) ? /* @__PURE__ */ v.jsx($o, { schema: n, level: o + 1 }) : n.type === "object" ? /* @__PURE__ */ v.jsx(Ge, { schema: n, level: o + 1 }) : n.type === "array" && typeof n.items == "object" && /* @__PURE__ */ v.jsx(Ge, { schema: n.items, level: o + 1 }) }) })
4685
4691
  ]
4686
4692
  }
4687
4693
  )
@@ -4692,18 +4698,18 @@ const hs = ({
4692
4698
  defaultOpen: t = !1
4693
4699
  }) => {
4694
4700
  if (!e || Object.keys(e).length === 0)
4695
- return /* @__PURE__ */ b.jsx(xe, { className: "p-4", children: /* @__PURE__ */ b.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
4701
+ return /* @__PURE__ */ v.jsx(xe, { className: "p-4", children: /* @__PURE__ */ v.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
4696
4702
  const o = (s, c) => {
4697
4703
  if (yr(s))
4698
- return /* @__PURE__ */ b.jsx($o, { schema: s, level: c });
4704
+ return /* @__PURE__ */ v.jsx($o, { schema: s, level: c });
4699
4705
  if (s.type === "array" && s.items) {
4700
4706
  const r = s.items;
4701
- return typeof r.type == "string" && ["string", "number", "boolean", "integer"].includes(r.type) ? /* @__PURE__ */ b.jsxs(xe, { className: "p-4", children: [
4702
- /* @__PURE__ */ b.jsxs("span", { className: "text-sm text-muted-foreground", children: [
4707
+ return typeof r.type == "string" && ["string", "number", "boolean", "integer"].includes(r.type) ? /* @__PURE__ */ v.jsxs(xe, { className: "p-4", children: [
4708
+ /* @__PURE__ */ v.jsxs("span", { className: "text-sm text-muted-foreground", children: [
4703
4709
  r.type,
4704
4710
  "[]"
4705
4711
  ] }),
4706
- s.description && /* @__PURE__ */ b.jsx(
4712
+ s.description && /* @__PURE__ */ v.jsx(
4707
4713
  we,
4708
4714
  {
4709
4715
  className: pe(
@@ -4713,16 +4719,16 @@ const hs = ({
4713
4719
  content: s.description
4714
4720
  }
4715
4721
  )
4716
- ] }) : r.type === "object" ? /* @__PURE__ */ b.jsxs(xe, { className: "flex flex-col gap-2 bg-border/30 p-4", children: [
4717
- /* @__PURE__ */ b.jsx("span", { className: "text-sm text-muted-foreground", children: "object[]" }),
4722
+ ] }) : r.type === "object" ? /* @__PURE__ */ v.jsxs(xe, { className: "flex flex-col gap-2 bg-border/30 p-4", children: [
4723
+ /* @__PURE__ */ v.jsx("span", { className: "text-sm text-muted-foreground", children: "object[]" }),
4718
4724
  o(r, c + 1)
4719
4725
  ] }) : o(r, c + 1);
4720
4726
  }
4721
4727
  if (s.type === "object" && (!s.properties || Object.keys(s.properties).length === 0))
4722
- return /* @__PURE__ */ b.jsxs(xe, { className: "p-4 flex gap-2 items-center", children: [
4723
- "name" in s && /* @__PURE__ */ b.jsx(b.Fragment, { children: s.name }),
4724
- /* @__PURE__ */ b.jsx("span", { className: "text-sm text-muted-foreground", children: "object" }),
4725
- s.description && /* @__PURE__ */ b.jsx(
4728
+ return /* @__PURE__ */ v.jsxs(xe, { className: "p-4 flex gap-2 items-center", children: [
4729
+ "name" in s && /* @__PURE__ */ v.jsx(v.Fragment, { children: s.name }),
4730
+ /* @__PURE__ */ v.jsx("span", { className: "text-sm text-muted-foreground", children: "object" }),
4731
+ s.description && /* @__PURE__ */ v.jsx(
4726
4732
  we,
4727
4733
  {
4728
4734
  className: pe(
@@ -4741,9 +4747,9 @@ const hs = ({
4741
4747
  return l.deprecated ? "deprecated" : (h = s.required) != null && h.includes(i) ? "required" : "optional";
4742
4748
  }
4743
4749
  ), a = ["required", "optional", "deprecated"];
4744
- return /* @__PURE__ */ b.jsx(xe, { className: "divide-y overflow-hidden", children: a.map(
4745
- (i) => r[i] && /* @__PURE__ */ b.jsx("ul", { className: "divide-y", children: r[i].map(([l, h]) => /* @__PURE__ */ b.jsx(
4746
- Is,
4750
+ return /* @__PURE__ */ v.jsx(xe, { className: "divide-y overflow-hidden", children: a.map(
4751
+ (i) => r[i] && /* @__PURE__ */ v.jsx("ul", { className: "divide-y", children: r[i].map(([l, h]) => /* @__PURE__ */ v.jsx(
4752
+ _s,
4747
4753
  {
4748
4754
  name: l,
4749
4755
  schema: h,
@@ -4755,9 +4761,9 @@ const hs = ({
4755
4761
  )) }, i)
4756
4762
  ) });
4757
4763
  }
4758
- return typeof s.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(s.type) ? /* @__PURE__ */ b.jsxs(xe, { className: "p-4", children: [
4759
- /* @__PURE__ */ b.jsx("span", { className: "text-sm text-muted-foreground", children: s.type }),
4760
- s.description && /* @__PURE__ */ b.jsx(
4764
+ return typeof s.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(s.type) ? /* @__PURE__ */ v.jsxs(xe, { className: "p-4", children: [
4765
+ /* @__PURE__ */ v.jsx("span", { className: "text-sm text-muted-foreground", children: s.type }),
4766
+ s.description && /* @__PURE__ */ v.jsx(
4761
4767
  we,
4762
4768
  {
4763
4769
  className: pe(
@@ -4767,34 +4773,34 @@ const hs = ({
4767
4773
  content: s.description
4768
4774
  }
4769
4775
  )
4770
- ] }) : s.additionalProperties ? /* @__PURE__ */ b.jsxs(xe, { className: "my-2", children: [
4771
- /* @__PURE__ */ b.jsx(na, { children: /* @__PURE__ */ b.jsx(oa, { children: "Additional Properties:" }) }),
4772
- /* @__PURE__ */ b.jsx(aa, { children: o(
4776
+ ] }) : s.additionalProperties ? /* @__PURE__ */ v.jsxs(xe, { className: "my-2", children: [
4777
+ /* @__PURE__ */ v.jsx(aa, { children: /* @__PURE__ */ v.jsx(ia, { children: "Additional Properties:" }) }),
4778
+ /* @__PURE__ */ v.jsx(sa, { children: o(
4773
4779
  s.additionalProperties,
4774
4780
  c + 1
4775
4781
  ) })
4776
4782
  ] }) : null;
4777
4783
  };
4778
4784
  return o(e, n);
4779
- }, Ls = ["path", "query", "header", "cookie"], Us = ({
4785
+ }, Bs = ["path", "query", "header", "cookie"], Hs = ({
4780
4786
  operationFragment: e,
4781
4787
  serverUrl: n
4782
4788
  }) => {
4783
4789
  var i, l, h;
4784
- const t = la(_s, e), o = io(
4790
+ const t = fa(zs, e), o = io(
4785
4791
  t.parameters ?? [],
4786
4792
  (f) => f.in
4787
4793
  ), s = vr(null), c = t.responses.at(0), [r, a] = Se(c == null ? void 0 : c.statusCode);
4788
- return /* @__PURE__ */ b.jsxs(
4794
+ return /* @__PURE__ */ v.jsxs(
4789
4795
  "div",
4790
4796
  {
4791
4797
  className: "grid grid-cols-1 lg:grid-cols-[minmax(0,4fr)_minmax(0,3fr)] gap-8 items-start border-b-2 mb-16 pb-16",
4792
4798
  children: [
4793
- /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-4", children: [
4794
- /* @__PURE__ */ b.jsx(He, { level: 2, id: t.slug, registerSidebarAnchor: !0, children: t.summary }),
4795
- /* @__PURE__ */ b.jsxs("div", { className: "text-sm flex gap-2 font-mono", children: [
4796
- /* @__PURE__ */ b.jsx("span", { className: xo(t.method), children: t.method.toUpperCase() }),
4797
- /* @__PURE__ */ b.jsxs(
4799
+ /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col gap-4", children: [
4800
+ /* @__PURE__ */ v.jsx(He, { level: 2, id: t.slug, registerSidebarAnchor: !0, children: t.summary }),
4801
+ /* @__PURE__ */ v.jsxs("div", { className: "text-sm flex gap-2 font-mono", children: [
4802
+ /* @__PURE__ */ v.jsx("span", { className: xo(t.method), children: t.method.toUpperCase() }),
4803
+ /* @__PURE__ */ v.jsxs(
4798
4804
  "div",
4799
4805
  {
4800
4806
  ref: s,
@@ -4808,24 +4814,24 @@ const hs = ({
4808
4814
  }
4809
4815
  },
4810
4816
  children: [
4811
- /* @__PURE__ */ b.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: n }),
4812
- /* @__PURE__ */ b.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: t.path })
4817
+ /* @__PURE__ */ v.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: n }),
4818
+ /* @__PURE__ */ v.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: t.path })
4813
4819
  ]
4814
4820
  }
4815
4821
  )
4816
4822
  ] }),
4817
- t.description && /* @__PURE__ */ b.jsx(
4823
+ t.description && /* @__PURE__ */ v.jsx(
4818
4824
  we,
4819
4825
  {
4820
4826
  className: `${qe} max-w-full prose-img:max-w-prose`,
4821
4827
  content: t.description
4822
4828
  }
4823
4829
  ),
4824
- t.parameters && t.parameters.length > 0 && /* @__PURE__ */ b.jsx(b.Fragment, { children: Ls.flatMap(
4830
+ t.parameters && t.parameters.length > 0 && /* @__PURE__ */ v.jsx(v.Fragment, { children: Bs.flatMap(
4825
4831
  (f) => {
4826
4832
  var u;
4827
- return (u = o[f]) != null && u.length ? /* @__PURE__ */ b.jsx(
4828
- ya,
4833
+ return (u = o[f]) != null && u.length ? /* @__PURE__ */ v.jsx(
4834
+ ga,
4829
4835
  {
4830
4836
  id: t.slug,
4831
4837
  parameters: o[f],
@@ -4835,8 +4841,8 @@ const hs = ({
4835
4841
  ) : [];
4836
4842
  }
4837
4843
  ) }),
4838
- pa((h = (l = (i = t.requestBody) == null ? void 0 : i.content) == null ? void 0 : l.at(0)) == null ? void 0 : h.schema, (f) => /* @__PURE__ */ b.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4839
- /* @__PURE__ */ b.jsx(
4844
+ ha((h = (l = (i = t.requestBody) == null ? void 0 : i.content) == null ? void 0 : l.at(0)) == null ? void 0 : h.schema, (f) => /* @__PURE__ */ v.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4845
+ /* @__PURE__ */ v.jsx(
4840
4846
  He,
4841
4847
  {
4842
4848
  level: 3,
@@ -4846,10 +4852,10 @@ const hs = ({
4846
4852
  children: "Request Body"
4847
4853
  }
4848
4854
  ),
4849
- /* @__PURE__ */ b.jsx(Ge, { schema: f })
4855
+ /* @__PURE__ */ v.jsx(Ge, { schema: f })
4850
4856
  ] })),
4851
- t.responses.length > 0 && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
4852
- /* @__PURE__ */ b.jsx(
4857
+ t.responses.length > 0 && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4858
+ /* @__PURE__ */ v.jsx(
4853
4859
  He,
4854
4860
  {
4855
4861
  level: 3,
@@ -4859,14 +4865,14 @@ const hs = ({
4859
4865
  children: "Responses"
4860
4866
  }
4861
4867
  ),
4862
- /* @__PURE__ */ b.jsxs(
4863
- Xo,
4868
+ /* @__PURE__ */ v.jsxs(
4869
+ ea,
4864
4870
  {
4865
4871
  onValueChange: (f) => a(f),
4866
4872
  value: r,
4867
4873
  children: [
4868
- t.responses.length > 1 && /* @__PURE__ */ b.jsx(Zo, { children: t.responses.map((f) => /* @__PURE__ */ b.jsx(
4869
- ea,
4874
+ t.responses.length > 1 && /* @__PURE__ */ v.jsx(ta, { children: t.responses.map((f) => /* @__PURE__ */ v.jsx(
4875
+ ra,
4870
4876
  {
4871
4877
  value: f.statusCode,
4872
4878
  title: f.description ?? void 0,
@@ -4874,13 +4880,13 @@ const hs = ({
4874
4880
  },
4875
4881
  f.statusCode
4876
4882
  )) }),
4877
- /* @__PURE__ */ b.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
4883
+ /* @__PURE__ */ v.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
4878
4884
  var u, m;
4879
- return /* @__PURE__ */ b.jsx(
4880
- ta,
4885
+ return /* @__PURE__ */ v.jsx(
4886
+ na,
4881
4887
  {
4882
4888
  value: f.statusCode,
4883
- children: /* @__PURE__ */ b.jsx(
4889
+ children: /* @__PURE__ */ v.jsx(
4884
4890
  Ge,
4885
4891
  {
4886
4892
  schema: (m = (u = f.content) == null ? void 0 : u.find((x) => x.schema)) == null ? void 0 : m.schema
@@ -4895,8 +4901,8 @@ const hs = ({
4895
4901
  )
4896
4902
  ] })
4897
4903
  ] }),
4898
- /* @__PURE__ */ b.jsx(
4899
- Os,
4904
+ /* @__PURE__ */ v.jsx(
4905
+ Ps,
4900
4906
  {
4901
4907
  selectedResponse: r,
4902
4908
  onSelectResponse: a,
@@ -4908,10 +4914,10 @@ const hs = ({
4908
4914
  t.operationId
4909
4915
  );
4910
4916
  };
4911
- function Fs(e, n = 160) {
4917
+ function Ms(e, n = 160) {
4912
4918
  return e ? e.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/!\[.*?\]\(.*?\)/g, "").replace(/[_*`~]/g, "").replace(/^(?:>|\s*#+|-{3,}|\*{3,})/gm, "").replace(/[|>{}[\]]/g, "").replace(/\s+/g, " ").trim().substring(0, n).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;") : "";
4913
4919
  }
4914
- const _s = tt(
4920
+ const zs = tt(
4915
4921
  /* GraphQL */
4916
4922
  `
4917
4923
  fragment OperationsFragment on OperationItem {
@@ -4976,7 +4982,7 @@ const _s = tt(
4976
4982
  }
4977
4983
  }
4978
4984
  `
4979
- ), Bs = tt(
4985
+ ), Gs = tt(
4980
4986
  /* GraphQL */
4981
4987
  `
4982
4988
  query AllOperations($input: JSON!, $type: SchemaType!) {
@@ -4997,54 +5003,54 @@ const _s = tt(
4997
5003
  }
4998
5004
  }
4999
5005
  `
5000
- ), lc = () => {
5001
- const { input: e, type: n, versions: t, version: o } = br(), s = $r(Bs, { input: e, type: n }), { selectedServer: c } = gr(), r = mr(s), a = r.data.schema.title, i = r.data.schema.summary, l = r.data.schema.description, h = Ro(), f = i || (l ? Fs(l) : void 0);
5002
- return /* @__PURE__ */ b.jsxs("div", { className: "pt-[--padding-content-top]", children: [
5003
- /* @__PURE__ */ b.jsxs(Po, { children: [
5004
- /* @__PURE__ */ b.jsx("title", { children: a }),
5005
- f && /* @__PURE__ */ b.jsx("meta", { name: "description", content: f })
5006
+ ), dc = () => {
5007
+ const { input: e, type: n, versions: t, version: o } = br(), s = $r(Gs, { input: e, type: n }), { selectedServer: c } = gr(), r = mr(s), a = r.data.schema.title, i = r.data.schema.summary, l = r.data.schema.description, h = Ro(), f = i || (l ? Ms(l) : void 0);
5008
+ return /* @__PURE__ */ v.jsxs("div", { className: "pt-[--padding-content-top]", children: [
5009
+ /* @__PURE__ */ v.jsxs(Po, { children: [
5010
+ /* @__PURE__ */ v.jsx("title", { children: a }),
5011
+ f && /* @__PURE__ */ v.jsx("meta", { name: "description", content: f })
5006
5012
  ] }),
5007
- /* @__PURE__ */ b.jsxs(
5013
+ /* @__PURE__ */ v.jsxs(
5008
5014
  "div",
5009
5015
  {
5010
5016
  className: pe(qe, "mb-16 max-w-full prose-img:max-w-prose"),
5011
5017
  children: [
5012
- /* @__PURE__ */ b.jsxs("div", { className: "flex", children: [
5013
- /* @__PURE__ */ b.jsxs("div", { className: "flex-1", children: [
5014
- /* @__PURE__ */ b.jsx(_r, { children: "Overview" }),
5015
- /* @__PURE__ */ b.jsx(He, { level: 1, id: "description", registerSidebarAnchor: !0, children: a })
5018
+ /* @__PURE__ */ v.jsxs("div", { className: "flex", children: [
5019
+ /* @__PURE__ */ v.jsxs("div", { className: "flex-1", children: [
5020
+ /* @__PURE__ */ v.jsx(_r, { children: "Overview" }),
5021
+ /* @__PURE__ */ v.jsx(He, { level: 1, id: "description", registerSidebarAnchor: !0, children: a })
5016
5022
  ] }),
5017
- /* @__PURE__ */ b.jsx("div", { children: Object.entries(t).length > 1 && /* @__PURE__ */ b.jsxs(
5023
+ /* @__PURE__ */ v.jsx("div", { children: Object.entries(t).length > 1 && /* @__PURE__ */ v.jsxs(
5018
5024
  qo,
5019
5025
  {
5020
5026
  onValueChange: (u) => h(t[u]),
5021
5027
  defaultValue: o,
5022
5028
  children: [
5023
- /* @__PURE__ */ b.jsx(ko, { className: "w-[180px]", children: /* @__PURE__ */ b.jsx(Eo, { placeholder: "Select version" }) }),
5024
- /* @__PURE__ */ b.jsx(No, { children: Object.entries(t).map(([u]) => /* @__PURE__ */ b.jsx(Ao, { value: u, children: u }, u)) })
5029
+ /* @__PURE__ */ v.jsx(ko, { className: "w-[180px]", children: /* @__PURE__ */ v.jsx(No, { placeholder: "Select version" }) }),
5030
+ /* @__PURE__ */ v.jsx(Eo, { children: Object.entries(t).map(([u]) => /* @__PURE__ */ v.jsx(Ao, { value: u, children: u }, u)) })
5025
5031
  ]
5026
5032
  }
5027
5033
  ) })
5028
5034
  ] }),
5029
- /* @__PURE__ */ b.jsx(we, { content: r.data.schema.description ?? "" })
5035
+ /* @__PURE__ */ v.jsx(we, { content: r.data.schema.description ?? "" })
5030
5036
  ]
5031
5037
  }
5032
5038
  ),
5033
- /* @__PURE__ */ b.jsx("hr", {}),
5034
- /* @__PURE__ */ b.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ b.jsx(fa, {}) }),
5039
+ /* @__PURE__ */ v.jsx("hr", {}),
5040
+ /* @__PURE__ */ v.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ v.jsx(da, {}) }),
5035
5041
  r.data.schema.tags.filter((u) => u.operations.length > 0).map((u) => (
5036
5042
  // px, -mx is so that `content-visibility` doesn't cut off overflown heading anchor links '#'
5037
- /* @__PURE__ */ b.jsxs("div", { className: "px-6 -mx-6 [content-visibility:auto]", children: [
5038
- u.name && /* @__PURE__ */ b.jsx(_r, { children: u.name }),
5039
- u.description && /* @__PURE__ */ b.jsx(
5043
+ /* @__PURE__ */ v.jsxs("div", { className: "px-6 -mx-6 [content-visibility:auto]", children: [
5044
+ u.name && /* @__PURE__ */ v.jsx(_r, { children: u.name }),
5045
+ u.description && /* @__PURE__ */ v.jsx(
5040
5046
  we,
5041
5047
  {
5042
5048
  className: `${qe} max-w-full prose-img:max-w-prose w-full mt-2 mb-12`,
5043
5049
  content: u.description
5044
5050
  }
5045
5051
  ),
5046
- /* @__PURE__ */ b.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ b.jsx(ra, { children: u.operations.map((m) => /* @__PURE__ */ b.jsx(
5047
- Us,
5052
+ /* @__PURE__ */ v.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ v.jsx(oa, { children: u.operations.map((m) => /* @__PURE__ */ v.jsx(
5053
+ Hs,
5048
5054
  {
5049
5055
  serverUrl: c ?? r.data.schema.url,
5050
5056
  operationFragment: m
@@ -5056,7 +5062,7 @@ const _s = tt(
5056
5062
  ] });
5057
5063
  };
5058
5064
  export {
5059
- lc as OperationList,
5060
- _s as OperationsFragment
5065
+ dc as OperationList,
5066
+ zs as OperationsFragment
5061
5067
  };
5062
- //# sourceMappingURL=OperationList-ChQR0IcQ.js.map
5068
+ //# sourceMappingURL=OperationList-CqLL5P5l.js.map