zudoku 0.40.1 → 0.41.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 (132) hide show
  1. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  2. package/dist/app/ZuploBuildConfig.js +29 -0
  3. package/dist/app/ZuploBuildConfig.js.map +1 -0
  4. package/dist/app/env.d.ts +33 -0
  5. package/dist/app/env.js +29 -0
  6. package/dist/app/env.js.map +1 -0
  7. package/dist/app/main.js +7 -4
  8. package/dist/app/main.js.map +1 -1
  9. package/dist/cli/cli.js +12 -1
  10. package/dist/cli/cli.js.map +1 -1
  11. package/dist/cli/common/machine-id/lib.js +1 -0
  12. package/dist/cli/common/machine-id/lib.js.map +1 -1
  13. package/dist/config/loader.js +0 -3
  14. package/dist/config/loader.js.map +1 -1
  15. package/dist/config/validators/common.d.ts +17 -11
  16. package/dist/config/validators/common.js +1 -1
  17. package/dist/config/validators/common.js.map +1 -1
  18. package/dist/config/validators/validate.d.ts +7 -5
  19. package/dist/lib/authentication/providers/openid.d.ts +3 -1
  20. package/dist/lib/authentication/providers/openid.js +17 -11
  21. package/dist/lib/authentication/providers/openid.js.map +1 -1
  22. package/dist/lib/components/BuildCheck.d.ts +4 -0
  23. package/dist/lib/components/BuildCheck.js +22 -0
  24. package/dist/lib/components/BuildCheck.js.map +1 -0
  25. package/dist/lib/components/Search.js +1 -1
  26. package/dist/lib/components/Search.js.map +1 -1
  27. package/dist/lib/components/Zudoku.js +1 -3
  28. package/dist/lib/components/Zudoku.js.map +1 -1
  29. package/dist/lib/components/context/ViewportAnchorContext.js +8 -9
  30. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  31. package/dist/lib/components/index.d.ts +4 -0
  32. package/dist/lib/components/index.js +2 -0
  33. package/dist/lib/components/index.js.map +1 -1
  34. package/dist/lib/components/navigation/PoweredByZudoku.js +2 -1
  35. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -1
  36. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  37. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  38. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  39. package/dist/lib/oas/parser/index.d.ts +1 -1
  40. package/dist/lib/oas/parser/index.js +3 -2
  41. package/dist/lib/oas/parser/index.js.map +1 -1
  42. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  43. package/dist/lib/plugins/openapi/OperationList.js +6 -4
  44. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  45. package/dist/lib/plugins/openapi/util/getRoutes.js +20 -13
  46. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  47. package/dist/lib/util/ensureArray.d.ts +1 -0
  48. package/dist/lib/util/ensureArray.js +2 -0
  49. package/dist/lib/util/ensureArray.js.map +1 -0
  50. package/dist/vite/api/SchemaManager.d.ts +36 -0
  51. package/dist/vite/api/SchemaManager.js +120 -0
  52. package/dist/vite/api/SchemaManager.js.map +1 -0
  53. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  54. package/dist/vite/api/SchemaManager.test.js +106 -0
  55. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  56. package/dist/vite/config.js +5 -1
  57. package/dist/vite/config.js.map +1 -1
  58. package/dist/vite/plugin-api.js +38 -110
  59. package/dist/vite/plugin-api.js.map +1 -1
  60. package/dist/vite/plugin-sidebar.d.ts +3 -1
  61. package/dist/vite/plugin-sidebar.js +8 -2
  62. package/dist/vite/plugin-sidebar.js.map +1 -1
  63. package/dist/zuplo/with-zuplo-processors.js +1 -1
  64. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  65. package/dist/zuplo/with-zuplo.d.ts +3 -0
  66. package/dist/zuplo/with-zuplo.js +6 -9
  67. package/dist/zuplo/with-zuplo.js.map +1 -1
  68. package/lib/{Markdown-C5h6bxbE.js → Markdown-DqDbGCj2.js} +314 -315
  69. package/lib/{Markdown-C5h6bxbE.js.map → Markdown-DqDbGCj2.js.map} +1 -1
  70. package/lib/{MdxPage-B66ht0D_.js → MdxPage-B7MyVLV5.js} +5 -5
  71. package/lib/{MdxPage-B66ht0D_.js.map → MdxPage-B7MyVLV5.js.map} +1 -1
  72. package/lib/{OasProvider-BKPF0Pbt.js → OasProvider-DY8kA-9x.js} +2 -2
  73. package/lib/{OasProvider-BKPF0Pbt.js.map → OasProvider-DY8kA-9x.js.map} +1 -1
  74. package/lib/{OperationList-0bhBU7ME.js → OperationList-BNneqYos.js} +798 -794
  75. package/lib/{OperationList-0bhBU7ME.js.map → OperationList-BNneqYos.js.map} +1 -1
  76. package/lib/{Pagination-Bt1czAiJ.js → Pagination-9TA5cwCh.js} +2 -2
  77. package/lib/{Pagination-Bt1czAiJ.js.map → Pagination-9TA5cwCh.js.map} +1 -1
  78. package/lib/{SchemaList-CsTIT1pi.js → SchemaList-CbFxph_p.js} +5 -5
  79. package/lib/{SchemaList-CsTIT1pi.js.map → SchemaList-CbFxph_p.js.map} +1 -1
  80. package/lib/{SchemaView-DCSWtnYr.js → SchemaView-DwlVvFfp.js} +2 -2
  81. package/lib/{SchemaView-DCSWtnYr.js.map → SchemaView-DwlVvFfp.js.map} +1 -1
  82. package/lib/{SlotletProvider-VUmTNmLZ.js → SlotletProvider-p4XaFFOh.js} +2 -2
  83. package/lib/{SlotletProvider-VUmTNmLZ.js.map → SlotletProvider-p4XaFFOh.js.map} +1 -1
  84. package/lib/{Toc-BK39DQvI.js → Toc-BVdRaIC0.js} +2 -2
  85. package/lib/{Toc-BK39DQvI.js.map → Toc-BVdRaIC0.js.map} +1 -1
  86. package/lib/{createServer-DLN7APz_.js → createServer-D_5UkLtY.js} +1459 -1485
  87. package/lib/createServer-D_5UkLtY.js.map +1 -0
  88. package/lib/{index-tpbiZmWp.js → index-BPmAnNGI.js} +686 -648
  89. package/lib/index-BPmAnNGI.js.map +1 -0
  90. package/lib/index-BpThvE5R.js +66 -0
  91. package/lib/index-BpThvE5R.js.map +1 -0
  92. package/lib/{index-Ba_X7EnR.js → index-pAogBEk7.js} +255 -249
  93. package/lib/{index-Ba_X7EnR.js.map → index-pAogBEk7.js.map} +1 -1
  94. package/lib/index-ueM1dihS.js +247 -0
  95. package/lib/index-ueM1dihS.js.map +1 -0
  96. package/lib/{index-DcHeSvkE.js → public-api-CrAQFYc4.js} +651 -684
  97. package/lib/public-api-CrAQFYc4.js.map +1 -0
  98. package/lib/zudoku.auth-openid.js +144 -138
  99. package/lib/zudoku.auth-openid.js.map +1 -1
  100. package/lib/zudoku.components.js +23 -22
  101. package/lib/zudoku.plugin-api-catalog.js +2 -2
  102. package/lib/zudoku.plugin-api-keys.js +1 -1
  103. package/lib/zudoku.plugin-custom-pages.js +1 -1
  104. package/lib/zudoku.plugin-markdown.js +1 -1
  105. package/lib/zudoku.plugin-openapi.js +1 -1
  106. package/package.json +2 -2
  107. package/src/app/ZuploBuildConfig.ts +33 -0
  108. package/src/app/env.ts +35 -0
  109. package/src/app/main.tsx +12 -1
  110. package/src/lib/authentication/providers/openid.tsx +23 -12
  111. package/src/lib/components/BuildCheck.tsx +60 -0
  112. package/src/lib/components/Search.tsx +1 -1
  113. package/src/lib/components/Zudoku.tsx +1 -3
  114. package/src/lib/components/context/ViewportAnchorContext.tsx +8 -15
  115. package/src/lib/components/index.ts +2 -0
  116. package/src/lib/components/navigation/PoweredByZudoku.tsx +8 -3
  117. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  118. package/src/lib/oas/parser/index.ts +4 -2
  119. package/src/lib/plugins/openapi/OperationList.tsx +15 -3
  120. package/src/lib/plugins/openapi/util/getRoutes.tsx +21 -13
  121. package/src/lib/util/ensureArray.ts +3 -0
  122. package/client.d.ts +0 -8
  123. package/dist/lib/oas/parser/upgrade/index.d.ts +0 -9
  124. package/dist/lib/oas/parser/upgrade/index.js +0 -90
  125. package/dist/lib/oas/parser/upgrade/index.js.map +0 -1
  126. package/dist/zuplo/env.d.ts +0 -7
  127. package/dist/zuplo/env.js +0 -12
  128. package/dist/zuplo/env.js.map +0 -1
  129. package/lib/createServer-DLN7APz_.js.map +0 -1
  130. package/lib/index-DcHeSvkE.js.map +0 -1
  131. package/lib/index-tpbiZmWp.js.map +0 -1
  132. package/src/lib/oas/parser/upgrade/index.ts +0 -103
@@ -2,27 +2,27 @@ import { j as $ } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import { d as yr, u as Pa, m as qa, t as Ca } from "./hook-pPrHCB6G.js";
3
3
  import { H as Ea } from "./RouteGuard-BZ_VsiXc.js";
4
4
  import { ChevronsUpDownIcon as Yn, CheckIcon as Ra, CopyIcon as ka, UnfoldVerticalIcon as Na, FoldVerticalIcon as Aa, ChevronsDownUpIcon as Ia } from "lucide-react";
5
- import { b as Ua, a as La } from "./chunk-KNED5TY2-BUPjb3LQ.js";
6
- import { c as _e, u as mr, d as Xn, C as Zn, b as ea, a as ur, P as Fa, m as ta, e as _a, U as Ba } from "./index-Ba_X7EnR.js";
7
- import { S as Ha, a as Ma, b as za, c as Wa, e as Ja } from "./Select-Dg5R11Dx.js";
8
- import { C as Ga } from "./CategoryHeading-D06WK_Wo.js";
9
- import { I as Va, S as ra, M as De, H as Ie, P as fr } from "./Markdown-C5h6bxbE.js";
10
- import { P as Da } from "./Pagination-Bt1czAiJ.js";
5
+ import { b as Ua, c as La, a as Fa } from "./chunk-KNED5TY2-BUPjb3LQ.js";
6
+ import { c as _e, u as mr, d as Xn, C as Zn, b as ea, a as ur, P as _a, m as ta, e as Ba, U as Ha } from "./index-pAogBEk7.js";
7
+ import { S as Ma, a as za, b as Wa, c as Ja, e as Ga } from "./Select-Dg5R11Dx.js";
8
+ import { C as Va } from "./CategoryHeading-D06WK_Wo.js";
9
+ import { I as Da, S as ra, M as De, H as Ie, P as fr } from "./Markdown-DqDbGCj2.js";
10
+ import { P as Qa } from "./Pagination-9TA5cwCh.js";
11
11
  import { c as pe } from "./cn-qaFjX9_3.js";
12
- import { useTransition as na, useState as xe, useRef as aa, useEffect as gr, useLayoutEffect as Qa, useMemo as oa } from "react";
13
- import { Button as Ka } from "./ui/Button.js";
14
- import { u as Qe, P as Ya, E as Ar, a as Xa, g as Za, S as Ir } from "./SchemaView-DCSWtnYr.js";
12
+ import { useTransition as na, useState as xe, useRef as aa, useEffect as gr, useLayoutEffect as Ka, useMemo as oa } from "react";
13
+ import { Button as Ya } from "./ui/Button.js";
14
+ import { u as Qe, P as Xa, E as Ar, a as Za, g as eo, S as Ir } from "./SchemaView-DwlVvFfp.js";
15
15
  import { u as vr } from "./context-Lrf2Y9bR.js";
16
16
  import { VisuallyHidden as pr } from "@radix-ui/react-visually-hidden";
17
- import { c as eo } from "./index-CPNSgwSb.js";
18
- import { Tabs as to, TabsList as ro, TabsTrigger as no, TabsContent as ao } from "./ui/Tabs.js";
19
- import { Card as oo } from "./ui/Card.js";
20
- import { g as io, c as Ke, a as so } from "./_commonjsHelpers-B4e78b8K.js";
21
- import { a as lo, b as co } from "./index-tpbiZmWp.js";
17
+ import { c as to } from "./index-CPNSgwSb.js";
18
+ import { Tabs as ro, TabsList as no, TabsTrigger as ao, TabsContent as oo } from "./ui/Tabs.js";
19
+ import { Card as io } from "./ui/Card.js";
20
+ import { g as so, c as Ke, a as lo } from "./_commonjsHelpers-B4e78b8K.js";
21
+ import { a as co, b as uo } from "./index-BPmAnNGI.js";
22
22
  import { S as ia } from "./SyntaxHighlight-CxhyyMkF.js";
23
23
  import { B as Ur } from "./Button-BBNrKpQd.js";
24
24
  import * as Ge from "@radix-ui/react-tabs";
25
- function uo(e, n) {
25
+ function fo(e, n) {
26
26
  return n;
27
27
  }
28
28
  const Ye = ({
@@ -55,7 +55,7 @@ const Ye = ({
55
55
  children: /* @__PURE__ */ $.jsx(Yn, { size: 14 })
56
56
  }
57
57
  )
58
- ] }), fo = _e(
58
+ ] }), po = _e(
59
59
  /* GraphQL */
60
60
  `
61
61
  query ServersQuery($input: JSON!, $type: SchemaType!) {
@@ -70,7 +70,7 @@ const Ye = ({
70
70
  ), Lr = ({ url: e }) => {
71
71
  const [n, t] = xe(!1);
72
72
  return /* @__PURE__ */ $.jsx(
73
- Ka,
73
+ Ya,
74
74
  {
75
75
  onClick: () => {
76
76
  navigator.clipboard.writeText(e).then(() => {
@@ -82,15 +82,15 @@ const Ye = ({
82
82
  children: n ? /* @__PURE__ */ $.jsx(Ra, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ $.jsx(ka, { size: 14, strokeWidth: 1.3 })
83
83
  }
84
84
  );
85
- }, po = () => {
86
- const { input: e, type: n } = vr(), t = Qe(fo, { input: e, type: n }), a = yr(t), [, c] = na(), { selectedServer: s, setSelectedServer: r } = mr(
85
+ }, ho = () => {
86
+ const { input: e, type: n } = vr(), t = Qe(po, { input: e, type: n }), a = yr(t), [, c] = na(), { selectedServer: s, setSelectedServer: r } = mr(
87
87
  a.data.schema.servers
88
88
  ), { servers: o } = a.data.schema;
89
89
  if (o.length === 0) return null;
90
90
  const i = o.at(0);
91
91
  return o.length === 1 ? /* @__PURE__ */ $.jsxs("div", { className: "flex items-center gap-2", children: [
92
92
  /* @__PURE__ */ $.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
93
- /* @__PURE__ */ $.jsx(Va, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
93
+ /* @__PURE__ */ $.jsx(Da, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
94
94
  /* @__PURE__ */ $.jsx(Lr, { url: i.url })
95
95
  ] }) : /* @__PURE__ */ $.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
96
96
  /* @__PURE__ */ $.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
@@ -109,7 +109,7 @@ const Ye = ({
109
109
  ),
110
110
  /* @__PURE__ */ $.jsx(Lr, { url: s })
111
111
  ] });
112
- }, ho = eo(
112
+ }, yo = to(
113
113
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
114
114
  {
115
115
  variants: {
@@ -127,16 +127,16 @@ const Ye = ({
127
127
  }
128
128
  );
129
129
  function Fr({ className: e, variant: n, ...t }) {
130
- return /* @__PURE__ */ $.jsx("div", { className: pe(ho({ variant: n }), e), ...t });
130
+ return /* @__PURE__ */ $.jsx("div", { className: pe(yo({ variant: n }), e), ...t });
131
131
  }
132
- const yo = (e, n) => e ? n(e) : void 0, mo = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
132
+ const mo = (e, n) => e ? n(e) : void 0, go = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
133
133
  type: "string"
134
- }, go = ({
134
+ }, vo = ({
135
135
  parameter: e,
136
136
  group: n,
137
137
  id: t
138
138
  }) => {
139
- const a = mo(e);
139
+ const a = go(e);
140
140
  return /* @__PURE__ */ $.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1.5", children: [
141
141
  /* @__PURE__ */ $.jsxs("div", { className: "flex items-center gap-2", children: [
142
142
  /* @__PURE__ */ $.jsx(ra, { asChild: !0, children: /* @__PURE__ */ $.jsx("code", { children: n === "path" ? /* @__PURE__ */ $.jsx(
@@ -149,7 +149,7 @@ const yo = (e, n) => e ? n(e) : void 0, mo = (e) => e.schema != null && typeof e
149
149
  }
150
150
  ) : e.name }) }),
151
151
  /* @__PURE__ */ $.jsx(
152
- Ya,
152
+ Xa,
153
153
  {
154
154
  schema: a,
155
155
  extraItems: [
@@ -168,9 +168,9 @@ const yo = (e, n) => e ? n(e) : void 0, mo = (e) => e.schema != null && typeof e
168
168
  }
169
169
  ),
170
170
  a.type === "array" && a.items.enum ? /* @__PURE__ */ $.jsx(Ar, { values: a.items.enum }) : a.enum && /* @__PURE__ */ $.jsx(Ar, { values: a.enum }),
171
- /* @__PURE__ */ $.jsx(Xa, { schema: a })
171
+ /* @__PURE__ */ $.jsx(Za, { schema: a })
172
172
  ] });
173
- }, vo = ({
173
+ }, bo = ({
174
174
  summary: e,
175
175
  group: n,
176
176
  parameters: t,
@@ -183,8 +183,8 @@ const yo = (e, n) => e ? n(e) : void 0, mo = (e) => e.schema != null && typeof e
183
183
  ] }),
184
184
  n === "header" ? "Headers" : `${n} Parameters`
185
185
  ] }),
186
- /* @__PURE__ */ $.jsx(oo, { children: /* @__PURE__ */ $.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((c, s) => c.required === s.required ? 0 : c.required ? -1 : 1).map((c) => /* @__PURE__ */ $.jsx(
187
- go,
186
+ /* @__PURE__ */ $.jsx(io, { children: /* @__PURE__ */ $.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((c, s) => c.required === s.required ? 0 : c.required ? -1 : 1).map((c) => /* @__PURE__ */ $.jsx(
187
+ vo,
188
188
  {
189
189
  parameter: c,
190
190
  id: a,
@@ -219,39 +219,39 @@ var _r = (e, n) => {
219
219
  }, this.indentationCharacter = e || Br, this.lineJoin = n ?? Hr;
220
220
  }
221
221
  }, ft, Mr;
222
- function bo() {
222
+ function xo() {
223
223
  return Mr || (Mr = 1, ft = function(e) {
224
224
  return Object.prototype.toString.call(e) === "[object RegExp]";
225
225
  }), ft;
226
226
  }
227
227
  var pt, zr;
228
- function xo() {
228
+ function $o() {
229
229
  return zr || (zr = 1, pt = function(e) {
230
230
  var n = typeof e;
231
231
  return e !== null && (n === "object" || n === "function");
232
232
  }), pt;
233
233
  }
234
234
  var Je = {}, Wr;
235
- function $o() {
235
+ function wo() {
236
236
  return Wr || (Wr = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), Je;
237
237
  }
238
238
  var dt, Jr;
239
- function wo() {
239
+ function jo() {
240
240
  if (Jr) return dt;
241
241
  Jr = 1;
242
- const e = bo(), n = xo(), t = $o().default;
242
+ const e = xo(), n = $o(), t = wo().default;
243
243
  return dt = (a, c, s) => {
244
244
  const r = [];
245
- return function o(i, l, f) {
246
- l = l || {}, l.indent = l.indent || " ", f = f || "";
245
+ return function o(i, l, u) {
246
+ l = l || {}, l.indent = l.indent || " ", u = u || "";
247
247
  let y;
248
248
  l.inlineCharacterLimit === void 0 ? y = {
249
249
  newLine: `
250
250
  `,
251
251
  newLineOrSpace: `
252
252
  `,
253
- pad: f,
254
- indent: f + l.indent
253
+ pad: u,
254
+ indent: u + l.indent
255
255
  } : y = {
256
256
  newLine: "@@__STRINGIFY_OBJECT_NEW_LINE__@@",
257
257
  newLineOrSpace: "@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",
@@ -263,7 +263,7 @@ function wo() {
263
263
  return m;
264
264
  const x = m.replace(new RegExp(y.newLine, "g"), "").replace(new RegExp(y.newLineOrSpace, "g"), " ").replace(new RegExp(y.pad + "|" + y.indent, "g"), "");
265
265
  return x.length <= l.inlineCharacterLimit ? x : m.replace(new RegExp(y.newLine + "|" + y.newLineOrSpace, "g"), `
266
- `).replace(new RegExp(y.pad, "g"), f).replace(new RegExp(y.indent, "g"), f + l.indent);
266
+ `).replace(new RegExp(y.pad, "g"), u).replace(new RegExp(y.indent, "g"), u + l.indent);
267
267
  };
268
268
  if (r.indexOf(i) !== -1)
269
269
  return '"[Circular]"';
@@ -276,9 +276,9 @@ function wo() {
276
276
  return "[]";
277
277
  r.push(i);
278
278
  const m = "[" + y.newLine + i.map((x, v) => {
279
- const u = i.length - 1 === v ? y.newLine : "," + y.newLineOrSpace;
280
- let h = o(x, l, f + l.indent);
281
- return l.transform && (h = l.transform(i, v, h)), y.indent + h + u;
279
+ const f = i.length - 1 === v ? y.newLine : "," + y.newLineOrSpace;
280
+ let h = o(x, l, u + l.indent);
281
+ return l.transform && (h = l.transform(i, v, h)), y.indent + h + f;
282
282
  }).join("") + y.pad + "]";
283
283
  return r.pop(), g(m);
284
284
  }
@@ -287,9 +287,9 @@ function wo() {
287
287
  if (l.filter && (m = m.filter((v) => l.filter(i, v))), m.length === 0)
288
288
  return "{}";
289
289
  r.push(i);
290
- const x = "{" + y.newLine + m.map((v, u) => {
291
- const h = m.length - 1 === u ? y.newLine : "," + y.newLineOrSpace, d = typeof v == "symbol", j = !d && /^[a-z$_][a-z$_0-9]*$/i.test(v), T = d || j ? v : o(v, l);
292
- let p = o(i[v], l, f + l.indent);
290
+ const x = "{" + y.newLine + m.map((v, f) => {
291
+ const h = m.length - 1 === f ? y.newLine : "," + y.newLineOrSpace, d = typeof v == "symbol", j = !d && /^[a-z$_][a-z$_0-9]*$/i.test(v), T = d || j ? v : o(v, l);
292
+ let p = o(i[v], l, u + l.indent);
293
293
  return l.transform && (p = l.transform(i, v, p)), y.indent + String(T) + ": " + p + h;
294
294
  }).join("") + y.pad + "}";
295
295
  return r.pop(), g(x);
@@ -299,14 +299,14 @@ function wo() {
299
299
  }(a, c, s);
300
300
  }, dt;
301
301
  }
302
- var So = wo();
303
- const ue = /* @__PURE__ */ io(So);
302
+ var So = jo();
303
+ const ue = /* @__PURE__ */ so(So);
304
304
  function Le(e, n = {}) {
305
305
  const { delimiter: t = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
306
306
  return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
307
307
  ` ? c ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? c ? `${a}r` : r : r === a ? a + a : r === t ? a + t : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
308
308
  }
309
- var Fe = (e) => Le(e, { delimiter: "'" }), le = (e) => Le(e, { delimiter: '"' }), jo = {
309
+ var Fe = (e) => Le(e, { delimiter: "'" }), le = (e) => Le(e, { delimiter: '"' }), Oo = {
310
310
  info: {
311
311
  key: "libcurl",
312
312
  title: "Libcurl",
@@ -322,7 +322,7 @@ var Fe = (e) => Le(e, { delimiter: "'" }), le = (e) => Le(e, { delimiter: '"' })
322
322
  s(`headers = curl_slist_append(headers, "${l}: ${le(t[l])}");`);
323
323
  }), s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (r(), s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), r(), s("CURLcode ret = curl_easy_perform(hnd);"), o();
324
324
  }
325
- }, Oo = {
325
+ }, To = {
326
326
  info: {
327
327
  key: "c",
328
328
  title: "C",
@@ -330,19 +330,19 @@ var Fe = (e) => Le(e, { delimiter: "'" }), le = (e) => Le(e, { delimiter: '"' })
330
330
  cli: "c"
331
331
  },
332
332
  clientsById: {
333
- libcurl: jo
333
+ libcurl: Oo
334
334
  }
335
335
  }, fe = (e, n) => Object.keys(e).find((t) => t.toLowerCase() === n.toLowerCase()), ge = (e, n) => {
336
336
  const t = fe(e, n);
337
337
  if (t)
338
338
  return e[t];
339
- }, Ze = (e, n) => !!fe(e, n), To = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
339
+ }, Ze = (e, n) => !!fe(e, n), Po = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
340
340
  (n) => e.indexOf(n) > -1
341
341
  ), Gr = class {
342
342
  constructor(e) {
343
343
  this.name = "", this.toString = () => `:${this.name}`, this.name = e;
344
344
  }
345
- }, Po = class {
345
+ }, qo = class {
346
346
  constructor(e) {
347
347
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
348
348
  }
@@ -379,7 +379,7 @@ ${t}`);
379
379
  default:
380
380
  return e.toString();
381
381
  }
382
- }, qo = {
382
+ }, Co = {
383
383
  info: {
384
384
  key: "clj_http",
385
385
  title: "clj-http",
@@ -399,35 +399,35 @@ ${t}`);
399
399
  case "application/json":
400
400
  {
401
401
  l["content-type"] = new Gr("json"), l["form-params"] = t.jsonObj;
402
- const f = fe(l.headers, "content-type");
403
- f && delete l.headers[f];
402
+ const u = fe(l.headers, "content-type");
403
+ u && delete l.headers[u];
404
404
  }
405
405
  break;
406
406
  case "application/x-www-form-urlencoded":
407
407
  {
408
408
  l["form-params"] = t.paramsObj;
409
- const f = fe(l.headers, "content-type");
410
- f && delete l.headers[f];
409
+ const u = fe(l.headers, "content-type");
410
+ u && delete l.headers[u];
411
411
  }
412
412
  break;
413
413
  case "text/plain":
414
414
  {
415
415
  l.body = t.text;
416
- const f = fe(l.headers, "content-type");
417
- f && delete l.headers[f];
416
+ const u = fe(l.headers, "content-type");
417
+ u && delete l.headers[u];
418
418
  }
419
419
  break;
420
420
  case "multipart/form-data": {
421
421
  if (t.params) {
422
422
  l.multipart = t.params.map((y) => y.fileName && !y.value ? {
423
423
  name: y.name,
424
- content: new Po(y.fileName)
424
+ content: new qo(y.fileName)
425
425
  } : {
426
426
  name: y.name,
427
427
  content: y.value
428
428
  });
429
- const f = fe(l.headers, "content-type");
430
- f && delete l.headers[f];
429
+ const u = fe(l.headers, "content-type");
430
+ u && delete l.headers[u];
431
431
  }
432
432
  break;
433
433
  }
@@ -436,8 +436,8 @@ ${t}`);
436
436
  case "application/json":
437
437
  {
438
438
  l.accept = new Gr("json");
439
- const f = fe(l.headers, "accept");
440
- f && delete l.headers[f];
439
+ const u = fe(l.headers, "accept");
440
+ u && delete l.headers[u];
441
441
  }
442
442
  break;
443
443
  }
@@ -445,21 +445,21 @@ ${t}`);
445
445
  `), la(Vr(l)))
446
446
  r(`(client/${n} "${a}")`);
447
447
  else {
448
- const f = 11 + n.length + a.length, y = Ve(f, dr(Vr(l)));
448
+ const u = 11 + n.length + a.length, y = Ve(u, dr(Vr(l)));
449
449
  r(`(client/${n} "${a}" ${y})`);
450
450
  }
451
451
  return o();
452
452
  }
453
- }, Co = {
453
+ }, Eo = {
454
454
  info: {
455
455
  key: "clojure",
456
456
  title: "Clojure",
457
457
  default: "clj_http"
458
458
  },
459
459
  clientsById: {
460
- clj_http: qo
460
+ clj_http: Co
461
461
  }
462
- }, Eo = (e) => {
462
+ }, Ro = (e) => {
463
463
  let n = ge(e, "accept-encoding");
464
464
  if (!n)
465
465
  return [];
@@ -476,7 +476,7 @@ ${t}`);
476
476
  }
477
477
  });
478
478
  }), a;
479
- }, Ro = {
479
+ }, ko = {
480
480
  info: {
481
481
  key: "httpclient",
482
482
  title: "HttpClient",
@@ -492,8 +492,8 @@ ${t}`);
492
492
  }, { push: r, join: o } = new V({ indent: s.indent });
493
493
  r("using System.Net.Http.Headers;");
494
494
  let i = "";
495
- const l = !!e.cookie, f = Eo(e);
496
- (l || f.length) && (i = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), l && r("UseCookies = false,", 1), f.length && r(`AutomaticDecompression = ${f.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${i});`), r("var request = new HttpRequestMessage"), r("{");
495
+ const l = !!e.cookie, u = Ro(e);
496
+ (l || u.length) && (i = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), l && r("UseCookies = false,", 1), u.length && r(`AutomaticDecompression = ${u.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${i});`), r("var request = new HttpRequestMessage"), r("{");
497
497
  const y = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
498
498
  t = t.toUpperCase(), t && y.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, r(`Method = ${t},`, 1), r(`RequestUri = new Uri("${a}"),`, 1);
499
499
  const g = Object.keys(e).filter((v) => {
@@ -512,13 +512,13 @@ ${t}`);
512
512
  const v = n.mimeType;
513
513
  switch (v) {
514
514
  case "application/x-www-form-urlencoded":
515
- r("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), r("{", 1), (m = n.params) == null || m.forEach((u) => {
516
- r(`{ "${u.name}", "${u.value}" },`, 2);
515
+ r("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), r("{", 1), (m = n.params) == null || m.forEach((f) => {
516
+ r(`{ "${f.name}", "${f.value}" },`, 2);
517
517
  }), r("}),", 1);
518
518
  break;
519
519
  case "multipart/form-data":
520
- r("Content = new MultipartFormDataContent", 1), r("{", 1), (x = n.params) == null || x.forEach((u) => {
521
- r(`new StringContent(${JSON.stringify(u.value || "")})`, 2), r("{", 2), r("Headers =", 3), r("{", 3), u.contentType && r(`ContentType = new MediaTypeHeaderValue("${u.contentType}"),`, 4), r('ContentDisposition = new ContentDispositionHeaderValue("form-data")', 4), r("{", 4), r(`Name = "${u.name}",`, 5), u.fileName && r(`FileName = "${u.fileName}",`, 5), r("}", 4), r("}", 3), r("},", 2);
520
+ r("Content = new MultipartFormDataContent", 1), r("{", 1), (x = n.params) == null || x.forEach((f) => {
521
+ r(`new StringContent(${JSON.stringify(f.value || "")})`, 2), r("{", 2), r("Headers =", 3), r("{", 3), f.contentType && r(`ContentType = new MediaTypeHeaderValue("${f.contentType}"),`, 4), r('ContentDisposition = new ContentDispositionHeaderValue("form-data")', 4), r("{", 4), r(`Name = "${f.name}",`, 5), f.fileName && r(`FileName = "${f.fileName}",`, 5), r("}", 4), r("}", 3), r("},", 2);
522
522
  }), r("},", 1);
523
523
  break;
524
524
  default:
@@ -529,10 +529,10 @@ ${t}`);
529
529
  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("}"), o();
530
530
  }
531
531
  };
532
- function ko(e) {
532
+ function No(e) {
533
533
  return e[0].toUpperCase() + e.slice(1).toLowerCase();
534
534
  }
535
- var No = {
535
+ var Ao = {
536
536
  info: {
537
537
  key: "restsharp",
538
538
  title: "RestSharp",
@@ -551,42 +551,42 @@ var No = {
551
551
 
552
552
  `), r(`var options = new RestClientOptions("${n}");`), r("var client = new RestClient(options);"), r('var request = new RestRequest("");');
553
553
  const l = c.mimeType && c.mimeType === "multipart/form-data";
554
- switch (l && r("request.AlwaysMultipartFormData = true;"), Object.keys(t).forEach((f) => {
555
- if (c.mimeType && f.toLowerCase() === "content-type" && c.text) {
554
+ switch (l && r("request.AlwaysMultipartFormData = true;"), Object.keys(t).forEach((u) => {
555
+ if (c.mimeType && u.toLowerCase() === "content-type" && c.text) {
556
556
  l && c.boundary && r(`request.FormBoundary = "${c.boundary}";`);
557
557
  return;
558
558
  }
559
- r(`request.AddHeader("${f}", "${le(t[f])}");`);
560
- }), a.forEach(({ name: f, value: y }) => {
561
- r(`request.AddCookie("${f}", "${le(y)}", "${s.pathname}", "${s.host}");`);
559
+ r(`request.AddHeader("${u}", "${le(t[u])}");`);
560
+ }), a.forEach(({ name: u, value: y }) => {
561
+ r(`request.AddCookie("${u}", "${le(y)}", "${s.pathname}", "${s.host}");`);
562
562
  }), c.mimeType) {
563
563
  case "multipart/form-data":
564
564
  if (!c.params) break;
565
- c.params.forEach((f) => {
566
- f.fileName ? r(`request.AddFile("${f.name}", "${f.fileName}");`) : r(`request.AddParameter("${f.name}", "${f.value}");`);
565
+ c.params.forEach((u) => {
566
+ u.fileName ? r(`request.AddFile("${u.name}", "${u.fileName}");`) : r(`request.AddParameter("${u.name}", "${u.value}");`);
567
567
  });
568
568
  break;
569
569
  case "application/x-www-form-urlencoded":
570
570
  if (!c.params) break;
571
- c.params.forEach((f) => {
572
- r(`request.AddParameter("${f.name}", "${f.value}");`);
571
+ c.params.forEach((u) => {
572
+ r(`request.AddParameter("${u.name}", "${u.value}");`);
573
573
  });
574
574
  break;
575
575
  case "application/json": {
576
576
  if (!c.text) break;
577
- const f = JSON.stringify(c.text);
578
- r(`request.AddJsonBody(${f}, false);`);
577
+ const u = JSON.stringify(c.text);
578
+ r(`request.AddJsonBody(${u}, false);`);
579
579
  break;
580
580
  }
581
581
  default:
582
582
  if (!c.text) break;
583
583
  r(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
584
584
  }
585
- return r(`var response = await client.${ko(e)}Async(request);
585
+ return r(`var response = await client.${No(e)}Async(request);
586
586
  `), r(`Console.WriteLine("{0}", response.Content);
587
587
  `), o();
588
588
  }
589
- }, Ao = {
589
+ }, Io = {
590
590
  info: {
591
591
  key: "csharp",
592
592
  title: "C#",
@@ -594,10 +594,10 @@ var No = {
594
594
  cli: "dotnet"
595
595
  },
596
596
  clientsById: {
597
- httpclient: Ro,
598
- restsharp: No
597
+ httpclient: ko,
598
+ restsharp: Ao
599
599
  }
600
- }, Io = {
600
+ }, Uo = {
601
601
  info: {
602
602
  key: "native",
603
603
  title: "NewRequest",
@@ -606,16 +606,16 @@ var No = {
606
606
  extname: ".go"
607
607
  },
608
608
  convert: ({ postData: e, method: n, allHeaders: t, fullUrl: a }, c = {}) => {
609
- const { blank: s, push: r, join: o } = new V({ indent: " " }), { showBoilerplate: i = !0, checkErrors: l = !1, printBody: f = !0, timeout: y = -1 } = c, g = l ? "err" : "_", m = i ? 1 : 0, x = () => {
609
+ const { blank: s, push: r, join: o } = new V({ indent: " " }), { showBoilerplate: i = !0, checkErrors: l = !1, printBody: u = !0, timeout: y = -1 } = c, g = l ? "err" : "_", m = i ? 1 : 0, x = () => {
610
610
  l && (r("if err != nil {", m), r("panic(err)", m + 1), r("}", m));
611
611
  };
612
- i && (r("package main"), s(), r("import ("), r('"fmt"', m), y > 0 && r('"time"', m), e.text && r('"strings"', m), r('"net/http"', m), f && r('"io"', m), r(")"), s(), r("func main() {"), s());
613
- const v = y > 0, u = v, h = u ? "client" : "http.DefaultClient";
614
- return u && (r("client := http.Client{", m), v && r(`Timeout: time.Duration(${y} * time.Second),`, m + 1), r("}", m), s()), r(`url := "${a}"`, m), s(), e.text ? (r(`payload := strings.NewReader(${JSON.stringify(e.text)})`, m), s(), r(`req, ${g} := http.NewRequest("${n}", url, payload)`, m), s()) : (r(`req, ${g} := http.NewRequest("${n}", url, nil)`, m), s()), x(), Object.keys(t).length && (Object.keys(t).forEach((d) => {
612
+ i && (r("package main"), s(), r("import ("), r('"fmt"', m), y > 0 && r('"time"', m), e.text && r('"strings"', m), r('"net/http"', m), u && r('"io"', m), r(")"), s(), r("func main() {"), s());
613
+ const v = y > 0, f = v, h = f ? "client" : "http.DefaultClient";
614
+ return f && (r("client := http.Client{", m), v && r(`Timeout: time.Duration(${y} * time.Second),`, m + 1), r("}", m), s()), r(`url := "${a}"`, m), s(), e.text ? (r(`payload := strings.NewReader(${JSON.stringify(e.text)})`, m), s(), r(`req, ${g} := http.NewRequest("${n}", url, payload)`, m), s()) : (r(`req, ${g} := http.NewRequest("${n}", url, nil)`, m), s()), x(), Object.keys(t).length && (Object.keys(t).forEach((d) => {
615
615
  r(`req.Header.Add("${d}", "${le(t[d])}")`, m);
616
- }), s()), r(`res, ${g} := ${h}.Do(req)`, m), x(), f && (s(), r("defer res.Body.Close()", m), r(`body, ${g} := io.ReadAll(res.Body)`, m), x()), s(), f && r("fmt.Println(string(body))", m), i && (s(), r("}")), o();
616
+ }), s()), r(`res, ${g} := ${h}.Do(req)`, m), x(), u && (s(), r("defer res.Body.Close()", m), r(`body, ${g} := io.ReadAll(res.Body)`, m), x()), s(), u && r("fmt.Println(string(body))", m), i && (s(), r("}")), o();
617
617
  }
618
- }, Uo = {
618
+ }, Lo = {
619
619
  info: {
620
620
  key: "go",
621
621
  title: "Go",
@@ -623,10 +623,10 @@ var No = {
623
623
  cli: "go"
624
624
  },
625
625
  clientsById: {
626
- native: Io
626
+ native: Uo
627
627
  }
628
628
  }, Dr = `\r
629
- `, Lo = {
629
+ `, Fo = {
630
630
  info: {
631
631
  key: "http1.1",
632
632
  title: "HTTP/1.1",
@@ -640,30 +640,30 @@ var No = {
640
640
  autoContentLength: !0,
641
641
  autoHost: !0,
642
642
  ...r
643
- }, { blank: i, push: l, join: f } = new V({ indent: "", join: Dr }), y = o.absoluteURI ? n : t.path;
643
+ }, { blank: i, push: l, join: u } = new V({ indent: "", join: Dr }), y = o.absoluteURI ? n : t.path;
644
644
  l(`${e} ${y} ${a}`);
645
645
  const g = Object.keys(c);
646
646
  if (g.forEach((v) => {
647
- const u = v.toLowerCase().replace(/(^|-)(\w)/g, (h) => h.toUpperCase());
648
- l(`${u}: ${c[v]}`);
647
+ const f = v.toLowerCase().replace(/(^|-)(\w)/g, (h) => h.toUpperCase());
648
+ l(`${f}: ${c[v]}`);
649
649
  }), o.autoHost && !g.includes("host") && l(`Host: ${t.host}`), o.autoContentLength && s.text && !g.includes("content-length")) {
650
- const u = new TextEncoder().encode(s.text).length.toString();
651
- l(`Content-Length: ${u}`);
650
+ const f = new TextEncoder().encode(s.text).length.toString();
651
+ l(`Content-Length: ${f}`);
652
652
  }
653
653
  i();
654
- const m = f(), x = s.text || "";
654
+ const m = u(), x = s.text || "";
655
655
  return `${m}${Dr}${x}`;
656
656
  }
657
- }, Fo = {
657
+ }, _o = {
658
658
  info: {
659
659
  key: "http",
660
660
  title: "HTTP",
661
661
  default: "http1.1"
662
662
  },
663
663
  clientsById: {
664
- "http1.1": Lo
664
+ "http1.1": Fo
665
665
  }
666
- }, _o = {
666
+ }, Bo = {
667
667
  info: {
668
668
  key: "asynchttp",
669
669
  title: "AsyncHttp",
@@ -680,7 +680,7 @@ var No = {
680
680
  o(`.setHeader("${l}", "${le(n[l])}")`, 1);
681
681
  }), t.text && o(`.setBody(${JSON.stringify(t.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), r(), o("client.close();"), i();
682
682
  }
683
- }, Bo = {
683
+ }, Ho = {
684
684
  info: {
685
685
  key: "nethttp",
686
686
  title: "java.net.http",
@@ -702,7 +702,7 @@ var No = {
702
702
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
703
703
  ), r("System.out.println(response.body());"), o();
704
704
  }
705
- }, Ho = {
705
+ }, Mo = {
706
706
  info: {
707
707
  key: "okhttp",
708
708
  title: "OkHttp",
@@ -714,12 +714,12 @@ var No = {
714
714
  const s = {
715
715
  indent: " ",
716
716
  ...c
717
- }, { push: r, blank: o, join: i } = new V({ indent: s.indent }), l = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], f = ["POST", "PUT", "DELETE", "PATCH"];
718
- return r("OkHttpClient client = new OkHttpClient();"), o(), e.text && (e.boundary ? r(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : r(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), r(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), r("Request request = new Request.Builder()"), r(`.url("${t}")`, 1), l.includes(n.toUpperCase()) ? f.includes(n.toUpperCase()) ? e.text ? r(`.${n.toLowerCase()}(body)`, 1) : r(`.${n.toLowerCase()}(null)`, 1) : r(`.${n.toLowerCase()}()`, 1) : e.text ? r(`.method("${n.toUpperCase()}", body)`, 1) : r(`.method("${n.toUpperCase()}", null)`, 1), Object.keys(a).forEach((y) => {
717
+ }, { push: r, blank: o, join: i } = new V({ indent: s.indent }), l = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
718
+ return r("OkHttpClient client = new OkHttpClient();"), o(), e.text && (e.boundary ? r(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : r(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), r(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), r("Request request = new Request.Builder()"), r(`.url("${t}")`, 1), l.includes(n.toUpperCase()) ? u.includes(n.toUpperCase()) ? e.text ? r(`.${n.toLowerCase()}(body)`, 1) : r(`.${n.toLowerCase()}(null)`, 1) : r(`.${n.toLowerCase()}()`, 1) : e.text ? r(`.method("${n.toUpperCase()}", body)`, 1) : r(`.method("${n.toUpperCase()}", null)`, 1), Object.keys(a).forEach((y) => {
719
719
  r(`.addHeader("${y}", "${le(a[y])}")`, 1);
720
720
  }), r(".build();", 1), o(), r("Response response = client.newCall(request).execute();"), i();
721
721
  }
722
- }, Mo = {
722
+ }, zo = {
723
723
  info: {
724
724
  key: "unirest",
725
725
  title: "Unirest",
@@ -736,19 +736,19 @@ var No = {
736
736
  o(`.header("${l}", "${le(n[l])}")`, 1);
737
737
  }), t.text && o(`.body(${JSON.stringify(t.text)})`, 1), o(".asString();", 1), r();
738
738
  }
739
- }, zo = {
739
+ }, Wo = {
740
740
  info: {
741
741
  key: "java",
742
742
  title: "Java",
743
743
  default: "unirest"
744
744
  },
745
745
  clientsById: {
746
- asynchttp: _o,
747
- nethttp: Bo,
748
- okhttp: Ho,
749
- unirest: Mo
746
+ asynchttp: Bo,
747
+ nethttp: Ho,
748
+ okhttp: Mo,
749
+ unirest: zo
750
750
  }
751
- }, Wo = {
751
+ }, Jo = {
752
752
  info: {
753
753
  key: "axios",
754
754
  title: "Axios",
@@ -761,7 +761,7 @@ var No = {
761
761
  const r = {
762
762
  indent: " ",
763
763
  ...s
764
- }, { blank: o, push: i, join: l, addPostProcessor: f } = new V({ indent: r.indent });
764
+ }, { blank: o, push: i, join: l, addPostProcessor: u } = new V({ indent: r.indent });
765
765
  i("import axios from 'axios';"), o();
766
766
  const y = {
767
767
  method: n,
@@ -771,7 +771,7 @@ var No = {
771
771
  case "application/x-www-form-urlencoded":
772
772
  c.params && (i("const encodedParams = new URLSearchParams();"), c.params.forEach((m) => {
773
773
  i(`encodedParams.set('${m.name}', '${m.value}');`);
774
- }), o(), y.data = "encodedParams,", f((m) => m.replace(/'encodedParams,'/, "encodedParams,")));
774
+ }), o(), y.data = "encodedParams,", u((m) => m.replace(/'encodedParams,'/, "encodedParams,")));
775
775
  break;
776
776
  case "application/json":
777
777
  c.jsonObj && (y.data = c.jsonObj);
@@ -792,7 +792,7 @@ var No = {
792
792
  }).replace('"[form]"', "form");
793
793
  return i(`const options = ${g};`), o(), 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();
794
794
  }
795
- }, Jo = {
795
+ }, Go = {
796
796
  info: {
797
797
  key: "fetch",
798
798
  title: "fetch",
@@ -818,8 +818,8 @@ var No = {
818
818
  case "multipart/form-data":
819
819
  if (!t.params)
820
820
  break;
821
- const f = fe(n, "content-type");
822
- f && delete n[f], i("const form = new FormData();"), t.params.forEach((y) => {
821
+ const u = fe(n, "content-type");
822
+ u && delete n[u], i("const form = new FormData();"), t.params.forEach((y) => {
823
823
  i(`form.append('${y.name}', '${y.value || y.fileName || ""}');`);
824
824
  }), r();
825
825
  break;
@@ -833,7 +833,7 @@ var No = {
833
833
  // The Fetch API body only accepts string parameters, but stringified JSON can be difficult
834
834
  // to read, so we keep the object as a literal and use this transform function to wrap the
835
835
  // literal in a `JSON.stringify` call.
836
- transform: (f, y, g) => {
836
+ transform: (u, y, g) => {
837
837
  if (y === "body") {
838
838
  if (t.mimeType === "application/x-www-form-urlencoded")
839
839
  return `new URLSearchParams(${g})`;
@@ -845,7 +845,7 @@ var No = {
845
845
  })};`
846
846
  ), r(), t.params && t.mimeType === "multipart/form-data" && (i("options.body = form;"), r()), i(`fetch('${a}', options)`), i(".then(response => response.json())", 1), i(".then(response => console.log(response))", 1), i(".catch(err => console.error(err));", 1), o();
847
847
  }
848
- }, Go = {
848
+ }, Vo = {
849
849
  info: {
850
850
  key: "jquery",
851
851
  title: "jQuery",
@@ -886,10 +886,10 @@ var No = {
886
886
  default:
887
887
  a.text && (l.data = a.text);
888
888
  }
889
- const f = ue(l, { indent: s.indent }).replace("'[form]'", "form");
890
- return o(`const settings = ${f};`), r(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), i();
889
+ const u = ue(l, { indent: s.indent }).replace("'[form]'", "form");
890
+ return o(`const settings = ${u};`), r(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), i();
891
891
  }
892
- }, Vo = {
892
+ }, Do = {
893
893
  info: {
894
894
  key: "xhr",
895
895
  title: "XMLHttpRequest",
@@ -915,34 +915,34 @@ var No = {
915
915
  case "multipart/form-data":
916
916
  if (!e.params)
917
917
  break;
918
- if (o("const data = new FormData();"), e.params.forEach((f) => {
919
- o(`data.append('${f.name}', '${f.value || f.fileName || ""}');`);
918
+ if (o("const data = new FormData();"), e.params.forEach((u) => {
919
+ o(`data.append('${u.name}', '${u.value || u.fileName || ""}');`);
920
920
  }), Ze(n, "content-type") && (l = ge(n, "content-type")) != null && l.includes("boundary")) {
921
- const f = fe(n, "content-type");
922
- f && delete n[f];
921
+ const u = fe(n, "content-type");
922
+ u && delete n[u];
923
923
  }
924
924
  r();
925
925
  break;
926
926
  default:
927
927
  o(`const data = ${e.text ? `'${e.text}'` : "null"};`), r();
928
928
  }
929
- return o("const xhr = new XMLHttpRequest();"), s.cors && o("xhr.withCredentials = true;"), r(), o("xhr.addEventListener('readystatechange', function () {"), o("if (this.readyState === this.DONE) {", 1), o("console.log(this.responseText);", 2), o("}", 1), o("});"), r(), o(`xhr.open('${t}', '${a}');`), Object.keys(n).forEach((f) => {
930
- o(`xhr.setRequestHeader('${f}', '${Fe(n[f])}');`);
929
+ return o("const xhr = new XMLHttpRequest();"), s.cors && o("xhr.withCredentials = true;"), r(), o("xhr.addEventListener('readystatechange', function () {"), o("if (this.readyState === this.DONE) {", 1), o("console.log(this.responseText);", 2), o("}", 1), o("});"), r(), o(`xhr.open('${t}', '${a}');`), Object.keys(n).forEach((u) => {
930
+ o(`xhr.setRequestHeader('${u}', '${Fe(n[u])}');`);
931
931
  }), r(), o("xhr.send(data);"), i();
932
932
  }
933
- }, Do = {
933
+ }, Qo = {
934
934
  info: {
935
935
  key: "javascript",
936
936
  title: "JavaScript",
937
937
  default: "xhr"
938
938
  },
939
939
  clientsById: {
940
- xhr: Vo,
941
- axios: Wo,
942
- fetch: Jo,
943
- jquery: Go
940
+ xhr: Do,
941
+ axios: Jo,
942
+ fetch: Go,
943
+ jquery: Vo
944
944
  }
945
- }, Qo = {
945
+ }, Ko = {
946
946
  info: {
947
947
  key: "native",
948
948
  title: "Native JSON",
@@ -976,16 +976,16 @@ var No = {
976
976
  }
977
977
  return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, t.indent);
978
978
  }
979
- }, Ko = {
979
+ }, Yo = {
980
980
  info: {
981
981
  key: "json",
982
982
  title: "JSON",
983
983
  default: "native"
984
984
  },
985
985
  clientsById: {
986
- native: Qo
986
+ native: Ko
987
987
  }
988
- }, Yo = {
988
+ }, Xo = {
989
989
  info: {
990
990
  key: "okhttp",
991
991
  title: "OkHttp",
@@ -997,21 +997,21 @@ var No = {
997
997
  const s = {
998
998
  indent: " ",
999
999
  ...c
1000
- }, { blank: r, join: o, push: i } = new V({ indent: s.indent }), l = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], f = ["POST", "PUT", "DELETE", "PATCH"];
1001
- return i("val client = OkHttpClient()"), r(), e.text && (e.boundary ? i(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : i(`val mediaType = MediaType.parse("${e.mimeType}")`), i(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), i("val request = Request.Builder()"), i(`.url("${n}")`, 1), l.includes(t.toUpperCase()) ? f.includes(t.toUpperCase()) ? e.text ? i(`.${t.toLowerCase()}(body)`, 1) : i(`.${t.toLowerCase()}(null)`, 1) : i(`.${t.toLowerCase()}()`, 1) : e.text ? i(`.method("${t.toUpperCase()}", body)`, 1) : i(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(a).forEach((y) => {
1000
+ }, { blank: r, join: o, push: i } = new V({ indent: s.indent }), l = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
1001
+ return i("val client = OkHttpClient()"), r(), e.text && (e.boundary ? i(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : i(`val mediaType = MediaType.parse("${e.mimeType}")`), i(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), i("val request = Request.Builder()"), i(`.url("${n}")`, 1), l.includes(t.toUpperCase()) ? u.includes(t.toUpperCase()) ? e.text ? i(`.${t.toLowerCase()}(body)`, 1) : i(`.${t.toLowerCase()}(null)`, 1) : i(`.${t.toLowerCase()}()`, 1) : e.text ? i(`.method("${t.toUpperCase()}", body)`, 1) : i(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(a).forEach((y) => {
1002
1002
  i(`.addHeader("${y}", "${le(a[y])}")`, 1);
1003
1003
  }), i(".build()", 1), r(), i("val response = client.newCall(request).execute()"), o();
1004
1004
  }
1005
- }, Xo = {
1005
+ }, Zo = {
1006
1006
  info: {
1007
1007
  key: "kotlin",
1008
1008
  title: "Kotlin",
1009
1009
  default: "okhttp"
1010
1010
  },
1011
1011
  clientsById: {
1012
- okhttp: Yo
1012
+ okhttp: Xo
1013
1013
  }
1014
- }, Zo = {
1014
+ }, ei = {
1015
1015
  info: {
1016
1016
  key: "axios",
1017
1017
  title: "Axios",
@@ -1026,26 +1026,26 @@ var No = {
1026
1026
  ...c
1027
1027
  }, { blank: r, join: o, push: i, addPostProcessor: l } = new V({ indent: s.indent });
1028
1028
  i("const axios = require('axios');");
1029
- const f = {
1029
+ const u = {
1030
1030
  method: e,
1031
1031
  url: n
1032
1032
  };
1033
- switch (Object.keys(t).length && (f.headers = t), a.mimeType) {
1033
+ switch (Object.keys(t).length && (u.headers = t), a.mimeType) {
1034
1034
  case "application/x-www-form-urlencoded":
1035
1035
  a.params && (i("const { URLSearchParams } = require('url');"), r(), i("const encodedParams = new URLSearchParams();"), a.params.forEach((g) => {
1036
1036
  i(`encodedParams.set('${g.name}', '${g.value}');`);
1037
- }), r(), f.data = "encodedParams,", l((g) => g.replace(/'encodedParams,'/, "encodedParams,")));
1037
+ }), r(), u.data = "encodedParams,", l((g) => g.replace(/'encodedParams,'/, "encodedParams,")));
1038
1038
  break;
1039
1039
  case "application/json":
1040
- r(), a.jsonObj && (f.data = a.jsonObj);
1040
+ r(), a.jsonObj && (u.data = a.jsonObj);
1041
1041
  break;
1042
1042
  default:
1043
- r(), a.text && (f.data = a.text);
1043
+ r(), a.text && (u.data = a.text);
1044
1044
  }
1045
- const y = ue(f, { indent: " ", inlineCharacterLimit: 80 });
1045
+ const y = ue(u, { indent: " ", inlineCharacterLimit: 80 });
1046
1046
  return i(`const options = ${y};`), 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), o();
1047
1047
  }
1048
- }, ei = {
1048
+ }, ti = {
1049
1049
  info: {
1050
1050
  key: "fetch",
1051
1051
  title: "Fetch",
@@ -1061,7 +1061,7 @@ var No = {
1061
1061
  ...s
1062
1062
  };
1063
1063
  let o = !1;
1064
- const { blank: i, push: l, join: f, unshift: y } = new V({ indent: r.indent });
1064
+ const { blank: i, push: l, join: u, unshift: y } = new V({ indent: r.indent });
1065
1065
  l("const fetch = require('node-fetch');");
1066
1066
  const g = n, m = {
1067
1067
  method: e
@@ -1078,8 +1078,8 @@ var No = {
1078
1078
  case "multipart/form-data":
1079
1079
  if (!t.params)
1080
1080
  break;
1081
- const u = fe(a, "content-type");
1082
- u && delete a[u], y("const FormData = require('form-data');"), l("const formData = new FormData();"), i(), t.params.forEach((h) => {
1081
+ const f = fe(a, "content-type");
1082
+ f && delete a[f], y("const FormData = require('form-data');"), l("const formData = new FormData();"), i(), t.params.forEach((h) => {
1083
1083
  if (!h.fileName && !h.fileName && !h.contentType) {
1084
1084
  l(`formData.append('${h.name}', '${h.value}');`);
1085
1085
  return;
@@ -1091,8 +1091,8 @@ var No = {
1091
1091
  t.text && (m.body = t.text);
1092
1092
  }
1093
1093
  if (c.length) {
1094
- const u = c.map(({ name: h, value: d }) => `${encodeURIComponent(h)}=${encodeURIComponent(d)}`).join("; ");
1095
- m.headers || (m.headers = {}), m.headers.cookie = u;
1094
+ const f = c.map(({ name: h, value: d }) => `${encodeURIComponent(h)}=${encodeURIComponent(d)}`).join("; ");
1095
+ m.headers || (m.headers = {}), m.headers.cookie = f;
1096
1096
  }
1097
1097
  i(), l(`const url = '${g}';`), m.headers && !Object.keys(m.headers).length && delete m.headers;
1098
1098
  const x = ue(m, {
@@ -1101,11 +1101,11 @@ var No = {
1101
1101
  // The Fetch API body only accepts string parameters, but stringified JSON can be difficult to
1102
1102
  // read, so we keep the object as a literal and use this transform function to wrap the literal
1103
1103
  // in a `JSON.stringify` call.
1104
- transform: (u, h, d) => h === "body" && t.mimeType === "application/json" ? `JSON.stringify(${d})` : d
1104
+ transform: (f, h, d) => h === "body" && t.mimeType === "application/json" ? `JSON.stringify(${d})` : d
1105
1105
  });
1106
- return l(`const options = ${x};`), i(), o && y("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), f().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1106
+ return l(`const options = ${x};`), i(), o && y("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), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1107
1107
  }
1108
- }, ti = {
1108
+ }, ri = {
1109
1109
  info: {
1110
1110
  key: "native",
1111
1111
  title: "HTTP",
@@ -1115,14 +1115,14 @@ var No = {
1115
1115
  },
1116
1116
  convert: ({ uriObj: e, method: n, allHeaders: t, postData: a }, c = {}) => {
1117
1117
  var y;
1118
- const { indent: s = " " } = c, { blank: r, join: o, push: i, unshift: l } = new V({ indent: s }), f = {
1118
+ const { indent: s = " " } = c, { blank: r, join: o, push: i, unshift: l } = new V({ indent: s }), u = {
1119
1119
  method: n,
1120
1120
  hostname: e.hostname,
1121
1121
  port: e.port,
1122
1122
  path: e.path,
1123
1123
  headers: t
1124
1124
  };
1125
- switch (i(`const http = require('${(y = e.protocol) == null ? void 0 : y.replace(":", "")}');`), r(), i(`const options = ${ue(f, { indent: s })};`), r(), i("const req = http.request(options, function (res) {"), i("const chunks = [];", 1), r(), i("res.on('data', function (chunk) {", 1), i("chunks.push(chunk);", 2), i("});", 1), r(), i("res.on('end', function () {", 1), i("const body = Buffer.concat(chunks);", 2), i("console.log(body.toString());", 2), i("});", 1), i("});"), r(), a.mimeType) {
1125
+ switch (i(`const http = require('${(y = e.protocol) == null ? void 0 : y.replace(":", "")}');`), r(), i(`const options = ${ue(u, { indent: s })};`), r(), i("const req = http.request(options, function (res) {"), i("const chunks = [];", 1), r(), i("res.on('data', function (chunk) {", 1), i("chunks.push(chunk);", 2), i("});", 1), r(), i("res.on('end', function () {", 1), i("const body = Buffer.concat(chunks);", 2), i("console.log(body.toString());", 2), i("});", 1), i("});"), r(), a.mimeType) {
1126
1126
  case "application/x-www-form-urlencoded":
1127
1127
  a.paramsObj && (l("const qs = require('querystring');"), i(
1128
1128
  `req.write(qs.stringify(${ue(a.paramsObj, {
@@ -1144,7 +1144,7 @@ var No = {
1144
1144
  }
1145
1145
  return i("req.end();"), o();
1146
1146
  }
1147
- }, ri = {
1147
+ }, ni = {
1148
1148
  info: {
1149
1149
  key: "request",
1150
1150
  title: "Request",
@@ -1159,8 +1159,8 @@ var No = {
1159
1159
  ...r
1160
1160
  };
1161
1161
  let i = !1;
1162
- const { push: l, blank: f, join: y, unshift: g, addPostProcessor: m } = new V({ indent: o.indent });
1163
- l("const request = require('request');"), f();
1162
+ const { push: l, blank: u, join: y, unshift: g, addPostProcessor: m } = new V({ indent: o.indent });
1163
+ l("const request = require('request');"), u();
1164
1164
  const x = {
1165
1165
  method: e,
1166
1166
  url: t
@@ -1180,24 +1180,24 @@ var No = {
1180
1180
  x.formData[v.name] = v.value;
1181
1181
  return;
1182
1182
  }
1183
- let u = {};
1184
- v.fileName ? (i = !0, u = {
1183
+ let f = {};
1184
+ v.fileName ? (i = !0, f = {
1185
1185
  value: `fs.createReadStream(${v.fileName})`,
1186
1186
  options: {
1187
1187
  filename: v.fileName,
1188
1188
  contentType: v.contentType ? v.contentType : null
1189
1189
  }
1190
- }) : v.value && (u.value = v.value), x.formData[v.name] = u;
1190
+ }) : v.value && (f.value = v.value), x.formData[v.name] = f;
1191
1191
  }), m((v) => v.replace(/'fs\.createReadStream\((.*)\)'/, "fs.createReadStream('$1')"));
1192
1192
  break;
1193
1193
  default:
1194
1194
  a.text && (x.body = a.text);
1195
1195
  }
1196
- return s.length && (x.jar = "JAR", l("const jar = request.jar();"), s.forEach(({ name: v, value: u }) => {
1197
- l(`jar.setCookie(request.cookie('${encodeURIComponent(v)}=${encodeURIComponent(u)}'), '${n}');`);
1198
- }), f(), m((v) => v.replace(/'JAR'/, "jar"))), i && g("const fs = require('fs');"), l(`const options = ${ue(x, { indent: " ", inlineCharacterLimit: 80 })};`), f(), l("request(options, function (error, response, body) {"), l("if (error) throw new Error(error);", 1), f(), l("console.log(body);", 1), l("});"), y();
1196
+ return s.length && (x.jar = "JAR", l("const jar = request.jar();"), s.forEach(({ name: v, value: f }) => {
1197
+ l(`jar.setCookie(request.cookie('${encodeURIComponent(v)}=${encodeURIComponent(f)}'), '${n}');`);
1198
+ }), u(), m((v) => v.replace(/'JAR'/, "jar"))), i && g("const fs = require('fs');"), l(`const options = ${ue(x, { indent: " ", inlineCharacterLimit: 80 })};`), u(), l("request(options, function (error, response, body) {"), l("if (error) throw new Error(error);", 1), u(), l("console.log(body);", 1), l("});"), y();
1199
1199
  }
1200
- }, ni = {
1200
+ }, ai = {
1201
1201
  info: {
1202
1202
  key: "unirest",
1203
1203
  title: "Unirest",
@@ -1211,34 +1211,34 @@ var No = {
1211
1211
  ...r
1212
1212
  };
1213
1213
  let i = !1;
1214
- const { addPostProcessor: l, blank: f, join: y, push: g, unshift: m } = new V({
1214
+ const { addPostProcessor: l, blank: u, join: y, push: g, unshift: m } = new V({
1215
1215
  indent: o.indent
1216
1216
  });
1217
- switch (g("const unirest = require('unirest');"), f(), g(`const req = unirest('${e}', '${n}');`), f(), t.length && (g("const CookieJar = unirest.jar();"), t.forEach((x) => {
1217
+ switch (g("const unirest = require('unirest');"), u(), g(`const req = unirest('${e}', '${n}');`), u(), t.length && (g("const CookieJar = unirest.jar();"), t.forEach((x) => {
1218
1218
  g(`CookieJar.add('${encodeURIComponent(x.name)}=${encodeURIComponent(x.value)}', '${n}');`);
1219
- }), g("req.jar(CookieJar);"), f()), Object.keys(a).length && (g(`req.query(${ue(a, { indent: o.indent })});`), f()), Object.keys(s).length && (g(`req.headers(${ue(s, { indent: o.indent })});`), f()), c.mimeType) {
1219
+ }), g("req.jar(CookieJar);"), u()), Object.keys(a).length && (g(`req.query(${ue(a, { indent: o.indent })});`), u()), Object.keys(s).length && (g(`req.headers(${ue(s, { indent: o.indent })});`), u()), c.mimeType) {
1220
1220
  case "application/x-www-form-urlencoded":
1221
- c.paramsObj && (g(`req.form(${ue(c.paramsObj, { indent: o.indent })});`), f());
1221
+ c.paramsObj && (g(`req.form(${ue(c.paramsObj, { indent: o.indent })});`), u());
1222
1222
  break;
1223
1223
  case "application/json":
1224
- c.jsonObj && (g("req.type('json');"), g(`req.send(${ue(c.jsonObj, { indent: o.indent })});`), f());
1224
+ c.jsonObj && (g("req.type('json');"), g(`req.send(${ue(c.jsonObj, { indent: o.indent })});`), u());
1225
1225
  break;
1226
1226
  case "multipart/form-data": {
1227
1227
  if (!c.params)
1228
1228
  break;
1229
1229
  const x = [];
1230
1230
  c.params.forEach((v) => {
1231
- const u = {};
1232
- v.fileName && !v.value ? (i = !0, u.body = `fs.createReadStream('${v.fileName}')`, l((h) => h.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : v.value && (u.body = v.value), u.body && (v.contentType && (u["content-type"] = v.contentType), x.push(u));
1233
- }), g(`req.multipart(${ue(x, { indent: o.indent })});`), f();
1231
+ const f = {};
1232
+ v.fileName && !v.value ? (i = !0, f.body = `fs.createReadStream('${v.fileName}')`, l((h) => h.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : v.value && (f.body = v.value), f.body && (v.contentType && (f["content-type"] = v.contentType), x.push(f));
1233
+ }), g(`req.multipart(${ue(x, { indent: o.indent })});`), u();
1234
1234
  break;
1235
1235
  }
1236
1236
  default:
1237
- c.text && (g(`req.send(${ue(c.text, { indent: o.indent })});`), f());
1237
+ c.text && (g(`req.send(${ue(c.text, { indent: o.indent })});`), u());
1238
1238
  }
1239
- return i && m("const fs = require('fs');"), g("req.end(function (res) {"), g("if (res.error) throw new Error(res.error);", 1), f(), g("console.log(res.body);", 1), g("});"), y();
1239
+ return i && m("const fs = require('fs');"), g("req.end(function (res) {"), g("if (res.error) throw new Error(res.error);", 1), u(), g("console.log(res.body);", 1), g("});"), y();
1240
1240
  }
1241
- }, ai = {
1241
+ }, oi = {
1242
1242
  info: {
1243
1243
  key: "node",
1244
1244
  title: "Node.js",
@@ -1246,11 +1246,11 @@ var No = {
1246
1246
  cli: "node %s"
1247
1247
  },
1248
1248
  clientsById: {
1249
- native: ti,
1250
- request: ri,
1251
- unirest: ni,
1252
- axios: Zo,
1253
- fetch: ei
1249
+ native: ri,
1250
+ request: ni,
1251
+ unirest: ai,
1252
+ axios: ei,
1253
+ fetch: ti
1254
1254
  }
1255
1255
  }, ht = (e, n, t, a) => {
1256
1256
  const c = `${e} *${n} = `, s = hr(t, a ? c.length : void 0);
@@ -1274,7 +1274,7 @@ var No = {
1274
1274
  default:
1275
1275
  return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
1276
1276
  }
1277
- }, oi = {
1277
+ }, ii = {
1278
1278
  info: {
1279
1279
  key: "nsurlsession",
1280
1280
  title: "NSURLSession",
@@ -1283,7 +1283,7 @@ var No = {
1283
1283
  extname: ".m"
1284
1284
  },
1285
1285
  convert: ({ allHeaders: e, postData: n, method: t, fullUrl: a }, c) => {
1286
- var f;
1286
+ var u;
1287
1287
  const s = {
1288
1288
  indent: " ",
1289
1289
  pretty: !0,
@@ -1296,7 +1296,7 @@ var No = {
1296
1296
  if (r("#import <Foundation/Foundation.h>"), Object.keys(e).length && (l.hasHeaders = !0, i(), r(ht("NSDictionary", "headers", e, s.pretty))), n.text || n.jsonObj || n.params)
1297
1297
  switch (l.hasBody = !0, n.mimeType) {
1298
1298
  case "application/x-www-form-urlencoded":
1299
- if ((f = n.params) != null && f.length) {
1299
+ if ((u = n.params) != null && u.length) {
1300
1300
  i();
1301
1301
  const [y, ...g] = n.params;
1302
1302
  r(
@@ -1331,16 +1331,16 @@ var No = {
1331
1331
  2
1332
1332
  ), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), o();
1333
1333
  }
1334
- }, ii = {
1334
+ }, si = {
1335
1335
  info: {
1336
1336
  key: "objc",
1337
1337
  title: "Objective-C",
1338
1338
  default: "nsurlsession"
1339
1339
  },
1340
1340
  clientsById: {
1341
- nsurlsession: oi
1341
+ nsurlsession: ii
1342
1342
  }
1343
- }, si = {
1343
+ }, li = {
1344
1344
  info: {
1345
1345
  key: "cohttp",
1346
1346
  title: "CoHTTP",
@@ -1355,25 +1355,25 @@ var No = {
1355
1355
  ...c
1356
1356
  }, r = ["get", "post", "head", "delete", "patch", "put", "options"], { push: o, blank: i, join: l } = new V({ indent: s.indent });
1357
1357
  o("open Cohttp_lwt_unix"), o("open Cohttp"), o("open Lwt"), i(), o(`let uri = Uri.of_string "${e}" in`);
1358
- const f = Object.keys(n);
1359
- f.length === 1 ? o(
1360
- `let headers = Header.add (Header.init ()) "${f[0]}" "${le(
1361
- n[f[0]]
1358
+ const u = Object.keys(n);
1359
+ u.length === 1 ? o(
1360
+ `let headers = Header.add (Header.init ()) "${u[0]}" "${le(
1361
+ n[u[0]]
1362
1362
  )}" in`
1363
- ) : f.length > 1 && (o("let headers = Header.add_list (Header.init ()) ["), f.forEach((x) => {
1363
+ ) : u.length > 1 && (o("let headers = Header.add_list (Header.init ()) ["), u.forEach((x) => {
1364
1364
  o(`("${x}", "${le(n[x])}");`, 1);
1365
1365
  }), o("] in")), t.text && o(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(t.text)} in`), i();
1366
- const y = f.length ? "~headers " : "", g = t.text ? "~body " : "", m = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
1366
+ const y = u.length ? "~headers " : "", g = t.text ? "~body " : "", m = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
1367
1367
  return o(`Client.call ${y}${g}${m} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), l();
1368
1368
  }
1369
- }, li = {
1369
+ }, ci = {
1370
1370
  info: {
1371
1371
  key: "ocaml",
1372
1372
  title: "OCaml",
1373
1373
  default: "cohttp"
1374
1374
  },
1375
1375
  clientsById: {
1376
- cohttp: si
1376
+ cohttp: li
1377
1377
  }
1378
1378
  }, te = (e, n, t) => {
1379
1379
  switch (t = t || "", n = n || "", Object.prototype.toString.call(e)) {
@@ -1434,7 +1434,7 @@ ${t}]`;
1434
1434
  "UNLOCK",
1435
1435
  "UPDATE",
1436
1436
  "VERSION_CONTROL"
1437
- ], ci = {
1437
+ ], ui = {
1438
1438
  info: {
1439
1439
  key: "curl",
1440
1440
  title: "cURL",
@@ -1446,13 +1446,13 @@ ${t}]`;
1446
1446
  const {
1447
1447
  closingTag: i = !1,
1448
1448
  indent: l = " ",
1449
- maxRedirects: f = 10,
1449
+ maxRedirects: u = 10,
1450
1450
  namedErrors: y = !1,
1451
1451
  noTags: g = !1,
1452
1452
  shortTags: m = !1,
1453
1453
  timeout: x = 30
1454
- } = o, { push: v, blank: u, join: h } = new V({ indent: l });
1455
- g || (v(m ? "<?" : "<?php"), u()), v("$curl = curl_init();"), u();
1454
+ } = o, { push: v, blank: f, join: h } = new V({ indent: l });
1455
+ g || (v(m ? "<?" : "<?php"), f()), v("$curl = curl_init();"), f();
1456
1456
  const d = [
1457
1457
  {
1458
1458
  escape: !0,
@@ -1477,7 +1477,7 @@ ${t}]`;
1477
1477
  {
1478
1478
  escape: !1,
1479
1479
  name: "CURLOPT_MAXREDIRS",
1480
- value: f
1480
+ value: u
1481
1481
  },
1482
1482
  {
1483
1483
  escape: !1,
@@ -1503,16 +1503,16 @@ ${t}]`;
1503
1503
  v("curl_setopt_array($curl, [");
1504
1504
  const j = new V({ indent: l, join: `
1505
1505
  ${l}` });
1506
- d.forEach(({ value: O, name: b, escape: q }) => {
1507
- O != null && j.push(`${b} => ${q ? JSON.stringify(O) : O},`);
1506
+ d.forEach(({ value: O, name: b, escape: E }) => {
1507
+ O != null && j.push(`${b} => ${E ? JSON.stringify(O) : O},`);
1508
1508
  });
1509
1509
  const T = s.map((O) => `${encodeURIComponent(O.name)}=${encodeURIComponent(O.value)}`);
1510
1510
  T.length && j.push(`CURLOPT_COOKIE => "${T.join("; ")}",`);
1511
1511
  const p = Object.keys(r).sort().map((O) => `"${O}: ${le(r[O])}"`);
1512
1512
  return p.length && (j.push("CURLOPT_HTTPHEADER => ["), j.push(p.join(`,
1513
- ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = curl_exec($curl);"), v("$err = curl_error($curl);"), u(), v("curl_close($curl);"), u(), v("if ($err) {"), v(y ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), v("} else {"), v("echo $response;", 1), v("}"), !g && i && (u(), v("?>")), h();
1513
+ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), f(), v("$response = curl_exec($curl);"), v("$err = curl_error($curl);"), f(), v("curl_close($curl);"), f(), v("if ($err) {"), v(y ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), v("} else {"), v("echo $response;", 1), v("}"), !g && i && (f(), v("?>")), h();
1514
1514
  }
1515
- }, ui = {
1515
+ }, fi = {
1516
1516
  info: {
1517
1517
  key: "guzzle",
1518
1518
  title: "Guzzle",
@@ -1529,13 +1529,13 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1529
1529
  noTags: !1,
1530
1530
  shortTags: !1,
1531
1531
  ...s
1532
- }, { push: o, blank: i, join: l } = new V({ indent: r.indent }), { code: f, push: y, join: g } = new V({ indent: r.indent });
1532
+ }, { push: o, blank: i, join: l } = new V({ indent: r.indent }), { code: u, push: y, join: g } = new V({ indent: r.indent });
1533
1533
  switch (r.noTags || o(r.shortTags ? "<?" : "<?php"), o("require_once('vendor/autoload.php');"), i(), e.mimeType) {
1534
1534
  case "application/x-www-form-urlencoded":
1535
1535
  y(`'form_params' => ${te(e.paramsObj, r.indent + r.indent, r.indent)},`, 1);
1536
1536
  break;
1537
1537
  case "multipart/form-data": {
1538
- const u = [];
1538
+ const f = [];
1539
1539
  if (e.params && e.params.forEach((h) => {
1540
1540
  if (h.fileName) {
1541
1541
  const d = {
@@ -1543,12 +1543,12 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1543
1543
  filename: h.fileName,
1544
1544
  contents: h.value
1545
1545
  };
1546
- h.contentType && (d.headers = { "Content-Type": h.contentType }), u.push(d);
1547
- } else h.value && u.push({
1546
+ h.contentType && (d.headers = { "Content-Type": h.contentType }), f.push(d);
1547
+ } else h.value && f.push({
1548
1548
  name: h.name,
1549
1549
  contents: h.value
1550
1550
  });
1551
- }), u.length && (y(`'multipart' => ${te(u, r.indent + r.indent, r.indent)}`, 1), Ze(c, "content-type") && (v = ge(c, "content-type")) != null && v.indexOf("boundary"))) {
1551
+ }), f.length && (y(`'multipart' => ${te(f, r.indent + r.indent, r.indent)}`, 1), Ze(c, "content-type") && (v = ge(c, "content-type")) != null && v.indexOf("boundary"))) {
1552
1552
  const h = fe(c, "content-type");
1553
1553
  h && delete c[h];
1554
1554
  }
@@ -1557,13 +1557,13 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1557
1557
  default:
1558
1558
  e.text && y(`'body' => ${te(e.text)},`, 1);
1559
1559
  }
1560
- const m = Object.keys(c).sort().map(function(u) {
1561
- return `${r.indent}${r.indent}'${u}' => '${Fe(c[u])}',`;
1562
- }), x = a.map((u) => `${encodeURIComponent(u.name)}=${encodeURIComponent(u.value)}`).join("; ");
1560
+ const m = Object.keys(c).sort().map(function(f) {
1561
+ return `${r.indent}${r.indent}'${f}' => '${Fe(c[f])}',`;
1562
+ }), x = a.map((f) => `${encodeURIComponent(f.name)}=${encodeURIComponent(f.value)}`).join("; ");
1563
1563
  return x.length && m.push(`${r.indent}${r.indent}'cookie' => '${Fe(x)}',`), m.length && (y("'headers' => [", 1), y(m.join(`
1564
- `)), y("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), i(), f.length ? (o(`$response = $client->request('${t}', '${n}', [`), o(g()), o("]);")) : o(`$response = $client->request('${t}', '${n}');`), i(), o("echo $response->getBody();"), !r.noTags && r.closingTag && (i(), o("?>")), l();
1564
+ `)), y("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), i(), u.length ? (o(`$response = $client->request('${t}', '${n}', [`), o(g()), o("]);")) : o(`$response = $client->request('${t}', '${n}');`), i(), o("echo $response->getBody();"), !r.noTags && r.closingTag && (i(), o("?>")), l();
1565
1565
  }
1566
- }, fi = {
1566
+ }, pi = {
1567
1567
  info: {
1568
1568
  key: "http1",
1569
1569
  title: "HTTP v1",
@@ -1572,8 +1572,8 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1572
1572
  extname: ".php"
1573
1573
  },
1574
1574
  convert: ({ method: e, url: n, postData: t, queryObj: a, headersObj: c, cookiesObj: s }, r = {}) => {
1575
- const { closingTag: o = !1, indent: i = " ", noTags: l = !1, shortTags: f = !1 } = r, { push: y, blank: g, join: m } = new V({ indent: i });
1576
- switch (l || (y(f ? "<?" : "<?php"), g()), Qr.includes(e.toUpperCase()) || y(`HttpRequest::methodRegister('${e}');`), y("$request = new HttpRequest();"), y(`$request->setUrl(${te(n)});`), Qr.includes(e.toUpperCase()) ? y(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : y(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), g(), Object.keys(a).length && (y(`$request->setQueryData(${te(a, i)});`), g()), Object.keys(c).length && (y(`$request->setHeaders(${te(c, i)});`), g()), Object.keys(s).length && (y(`$request->setCookies(${te(s, i)});`), g()), t.mimeType) {
1575
+ const { closingTag: o = !1, indent: i = " ", noTags: l = !1, shortTags: u = !1 } = r, { push: y, blank: g, join: m } = new V({ indent: i });
1576
+ switch (l || (y(u ? "<?" : "<?php"), g()), Qr.includes(e.toUpperCase()) || y(`HttpRequest::methodRegister('${e}');`), y("$request = new HttpRequest();"), y(`$request->setUrl(${te(n)});`), Qr.includes(e.toUpperCase()) ? y(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : y(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), g(), Object.keys(a).length && (y(`$request->setQueryData(${te(a, i)});`), g()), Object.keys(c).length && (y(`$request->setHeaders(${te(c, i)});`), g()), Object.keys(s).length && (y(`$request->setCookies(${te(s, i)});`), g()), t.mimeType) {
1577
1577
  case "application/x-www-form-urlencoded":
1578
1578
  y(`$request->setContentType(${te(t.mimeType)});`), y(`$request->setPostFields(${te(t.paramsObj, i)});`), g();
1579
1579
  break;
@@ -1585,7 +1585,7 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1585
1585
  }
1586
1586
  return y("try {"), y("$response = $request->send();", 1), g(), y("echo $response->getBody();", 1), y("} catch (HttpException $ex) {"), y("echo $ex;", 1), y("}"), !l && o && (g(), y("?>")), m();
1587
1587
  }
1588
- }, pi = {
1588
+ }, di = {
1589
1589
  info: {
1590
1590
  key: "http2",
1591
1591
  title: "HTTP v2",
@@ -1595,19 +1595,19 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1595
1595
  },
1596
1596
  convert: ({ postData: e, headersObj: n, method: t, queryObj: a, cookiesObj: c, url: s }, r = {}) => {
1597
1597
  var v;
1598
- const { closingTag: o = !1, indent: i = " ", noTags: l = !1, shortTags: f = !1 } = r, { push: y, blank: g, join: m } = new V({ indent: i });
1598
+ const { closingTag: o = !1, indent: i = " ", noTags: l = !1, shortTags: u = !1 } = r, { push: y, blank: g, join: m } = new V({ indent: i });
1599
1599
  let x = !1;
1600
- switch (l || (y(f ? "<?" : "<?php"), g()), y("$client = new http\\Client;"), y("$request = new http\\Client\\Request;"), g(), e.mimeType) {
1600
+ switch (l || (y(u ? "<?" : "<?php"), g()), y("$client = new http\\Client;"), y("$request = new http\\Client\\Request;"), g(), e.mimeType) {
1601
1601
  case "application/x-www-form-urlencoded":
1602
1602
  y("$body = new http\\Message\\Body;"), y(`$body->append(new http\\QueryString(${te(e.paramsObj, i)}));`), g(), x = !0;
1603
1603
  break;
1604
1604
  case "multipart/form-data": {
1605
1605
  if (!e.params)
1606
1606
  break;
1607
- const u = [], h = {};
1607
+ const f = [], h = {};
1608
1608
  e.params.forEach(({ name: T, fileName: p, value: O, contentType: b }) => {
1609
1609
  if (p) {
1610
- u.push({
1610
+ f.push({
1611
1611
  name: T,
1612
1612
  type: b,
1613
1613
  file: p,
@@ -1617,7 +1617,7 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1617
1617
  }
1618
1618
  O && (h[T] = O);
1619
1619
  });
1620
- const d = Object.keys(h).length ? te(h, i) : "null", j = u.length ? te(u, i) : "null";
1620
+ const d = Object.keys(h).length ? te(h, i) : "null", j = f.length ? te(f, i) : "null";
1621
1621
  if (y("$body = new http\\Message\\Body;"), y(`$body->addForm(${d}, ${j});`), Ze(n, "content-type") && (v = ge(n, "content-type")) != null && v.indexOf("boundary")) {
1622
1622
  const T = fe(n, "content-type");
1623
1623
  T && delete n[T];
@@ -1633,7 +1633,7 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1633
1633
  }
1634
1634
  return y(`$request->setRequestUrl(${te(s)});`), y(`$request->setRequestMethod(${te(t)});`), x && (y("$request->setBody($body);"), g()), Object.keys(a).length && (y(`$request->setQuery(new http\\QueryString(${te(a, i)}));`), g()), Object.keys(n).length && (y(`$request->setHeaders(${te(n, i)});`), g()), Object.keys(c).length && (g(), y(`$client->setCookies(${te(c, i)});`), g()), y("$client->enqueue($request)->send();"), y("$response = $client->getResponse();"), g(), y("echo $response->getBody();"), !l && o && (g(), y("?>")), m();
1635
1635
  }
1636
- }, di = {
1636
+ }, hi = {
1637
1637
  info: {
1638
1638
  key: "php",
1639
1639
  title: "PHP",
@@ -1641,13 +1641,13 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1641
1641
  cli: "php %s"
1642
1642
  },
1643
1643
  clientsById: {
1644
- curl: ci,
1645
- guzzle: ui,
1646
- http1: fi,
1647
- http2: pi
1644
+ curl: ui,
1645
+ guzzle: fi,
1646
+ http1: pi,
1647
+ http2: di
1648
1648
  }
1649
1649
  }, ca = (e) => ({ method: t, headersObj: a, cookies: c, uriObj: s, fullUrl: r, postData: o, allHeaders: i }) => {
1650
- const { push: l, join: f } = new V();
1650
+ const { push: l, join: u } = new V();
1651
1651
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()))
1652
1652
  return "Method not supported";
1653
1653
  const g = [], m = Object.keys(a);
@@ -1657,8 +1657,8 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1657
1657
  l("$cookie = New-Object System.Net.Cookie"), l(`$cookie.Name = '${x.name}'`), l(`$cookie.Value = '${x.value}'`), l(`$cookie.Domain = '${s.host}'`), l("$session.Cookies.Add($cookie)");
1658
1658
  }), g.push("-WebSession $session")), o.text && (g.push(
1659
1659
  `-ContentType '${Le(ge(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
1660
- ), g.push(`-Body '${o.text}'`)), l(`$response = ${e} -Uri '${r}' -Method ${t} ${g.join(" ")}`.trim()), f();
1661
- }, hi = {
1660
+ ), g.push(`-Body '${o.text}'`)), l(`$response = ${e} -Uri '${r}' -Method ${t} ${g.join(" ")}`.trim()), u();
1661
+ }, yi = {
1662
1662
  info: {
1663
1663
  key: "restmethod",
1664
1664
  title: "Invoke-RestMethod",
@@ -1667,7 +1667,7 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1667
1667
  extname: ".ps1"
1668
1668
  },
1669
1669
  convert: ca("Invoke-RestMethod")
1670
- }, yi = {
1670
+ }, mi = {
1671
1671
  info: {
1672
1672
  key: "webrequest",
1673
1673
  title: "Invoke-WebRequest",
@@ -1676,15 +1676,15 @@ ${l}${l}`), 1), j.push("],")), v(j.join(), 1), v("]);"), u(), v("$response = cur
1676
1676
  extname: ".ps1"
1677
1677
  },
1678
1678
  convert: ca("Invoke-WebRequest")
1679
- }, mi = {
1679
+ }, gi = {
1680
1680
  info: {
1681
1681
  key: "powershell",
1682
1682
  title: "Powershell",
1683
1683
  default: "webrequest"
1684
1684
  },
1685
1685
  clientsById: {
1686
- webrequest: yi,
1687
- restmethod: hi
1686
+ webrequest: mi,
1687
+ restmethod: yi
1688
1688
  }
1689
1689
  };
1690
1690
  function Kr(e, n, t, a, c) {
@@ -1716,7 +1716,7 @@ var Re = (e, n, t) => {
1716
1716
  default:
1717
1717
  return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
1718
1718
  }
1719
- }, gi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], vi = {
1719
+ }, vi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], bi = {
1720
1720
  info: {
1721
1721
  key: "requests",
1722
1722
  title: "Requests",
@@ -1732,7 +1732,7 @@ var Re = (e, n, t) => {
1732
1732
  ...c
1733
1733
  }, { push: r, blank: o, join: i, addPostProcessor: l } = new V({ indent: s.indent });
1734
1734
  r("import requests"), o(), r(`url = "${e}"`), o();
1735
- const f = t;
1735
+ const u = t;
1736
1736
  let y = {};
1737
1737
  const g = {};
1738
1738
  let m = !1, x = !1, v = !1;
@@ -1747,8 +1747,8 @@ var Re = (e, n, t) => {
1747
1747
  d.fileName ? (d.contentType ? g[d.name] = `('${d.fileName}', open('${d.fileName}', 'rb'), '${d.contentType}')` : g[d.name] = `('${d.fileName}', open('${d.fileName}', 'rb'))`, m = !0) : (y[d.name] = d.value, x = !0);
1748
1748
  }), m) {
1749
1749
  r(`files = ${Re(g, s)}`), x && r(`payload = ${Re(y, s)}`);
1750
- const d = fe(f, "content-type");
1751
- d && delete f[d];
1750
+ const d = fe(u, "content-type");
1751
+ d && delete u[d];
1752
1752
  } else {
1753
1753
  const d = JSON.stringify(n.text);
1754
1754
  d && (r(`payload = ${d}`), x = !0);
@@ -1766,23 +1766,23 @@ var Re = (e, n, t) => {
1766
1766
  d && (r(`payload = ${d}`), x = !0);
1767
1767
  }
1768
1768
  }
1769
- const u = Object.keys(f).length;
1770
- if (u === 0 && (x || m))
1769
+ const f = Object.keys(u).length;
1770
+ if (f === 0 && (x || m))
1771
1771
  o();
1772
- else if (u === 1)
1773
- Object.keys(f).forEach((d) => {
1774
- r(`headers = {"${d}": "${le(f[d])}"}`), o();
1772
+ else if (f === 1)
1773
+ Object.keys(u).forEach((d) => {
1774
+ r(`headers = {"${d}": "${le(u[d])}"}`), o();
1775
1775
  });
1776
- else if (u > 1) {
1776
+ else if (f > 1) {
1777
1777
  let d = 1;
1778
- r("headers = {"), Object.keys(f).forEach((j) => {
1779
- r(d !== u ? `"${j}": "${le(f[j])}",` : `"${j}": "${le(f[j])}"`, 1), d += 1;
1778
+ r("headers = {"), Object.keys(u).forEach((j) => {
1779
+ r(d !== f ? `"${j}": "${le(u[j])}",` : `"${j}": "${le(u[j])}"`, 1), d += 1;
1780
1780
  }), r("}"), o();
1781
1781
  }
1782
- let h = gi.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
1783
- return x && (v ? h += ", json=payload" : h += ", data=payload"), m && (h += ", files=files"), u > 0 && (h += ", headers=headers"), h += ")", r(h), o(), r("print(response.text)"), i();
1782
+ let h = vi.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
1783
+ return x && (v ? h += ", json=payload" : h += ", data=payload"), m && (h += ", files=files"), f > 0 && (h += ", headers=headers"), h += ")", r(h), o(), r("print(response.text)"), i();
1784
1784
  }
1785
- }, bi = {
1785
+ }, xi = {
1786
1786
  info: {
1787
1787
  key: "python",
1788
1788
  title: "Python",
@@ -1790,9 +1790,9 @@ var Re = (e, n, t) => {
1790
1790
  cli: "python3 %s"
1791
1791
  },
1792
1792
  clientsById: {
1793
- requests: vi
1793
+ requests: bi
1794
1794
  }
1795
- }, xi = {
1795
+ }, $i = {
1796
1796
  info: {
1797
1797
  key: "httr",
1798
1798
  title: "httr",
@@ -1805,9 +1805,9 @@ var Re = (e, n, t) => {
1805
1805
  r("library(httr)"), o(), r(`url <- "${e}"`), o();
1806
1806
  const l = n;
1807
1807
  delete n.key;
1808
- const f = Object.keys(l).length;
1808
+ const u = Object.keys(l).length;
1809
1809
  t.length === 1 ? (r(`queryString <- list(${Object.keys(l)} = "${Object.values(l).toString()}")`), o()) : t.length > 1 && (r("queryString <- list("), Object.keys(l).forEach((p, O) => {
1810
- O !== f - 1 ? r(` ${p} = "${l[p].toString()}",`) : r(` ${p} = "${l[p].toString()}"`);
1810
+ O !== u - 1 ? r(` ${p} = "${l[p].toString()}",`) : r(` ${p} = "${l[p].toString()}"`);
1811
1811
  }), r(")"), o());
1812
1812
  const y = JSON.stringify(a.text);
1813
1813
  if (y && (r(`payload <- ${y}`), o()), a.text || a.jsonObj || a.params)
@@ -1825,22 +1825,22 @@ var Re = (e, n, t) => {
1825
1825
  r('encode <- "raw"'), o();
1826
1826
  break;
1827
1827
  }
1828
- const g = ge(c, "cookie"), m = ge(c, "accept"), x = g ? `set_cookies(\`${String(g).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, v = m ? `accept("${le(m)}")` : void 0, u = `content_type("${le(a.mimeType)}")`, h = Object.entries(c).filter(([p]) => !["cookie", "accept", "content-type"].includes(p.toLowerCase())).map(([p, O]) => `'${p}' = '${Fe(O)}'`).join(", "), d = h ? `add_headers(${h})` : void 0;
1828
+ const g = ge(c, "cookie"), m = ge(c, "accept"), x = g ? `set_cookies(\`${String(g).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, v = m ? `accept("${le(m)}")` : void 0, f = `content_type("${le(a.mimeType)}")`, h = Object.entries(c).filter(([p]) => !["cookie", "accept", "content-type"].includes(p.toLowerCase())).map(([p, O]) => `'${p}' = '${Fe(O)}'`).join(", "), d = h ? `add_headers(${h})` : void 0;
1829
1829
  let j = `response <- VERB("${s}", url`;
1830
1830
  y && (j += ", body = payload"), t.length && (j += ", query = queryString");
1831
- const T = [d, u, v, x].filter((p) => !!p).join(", ");
1831
+ const T = [d, f, v, x].filter((p) => !!p).join(", ");
1832
1832
  return T && (j += `, ${T}`), (a.text || a.jsonObj || a.params) && (j += ", encode = encode"), j += ")", r(j), o(), r('content(response, "text")'), i();
1833
1833
  }
1834
- }, $i = {
1834
+ }, wi = {
1835
1835
  info: {
1836
1836
  key: "r",
1837
1837
  title: "R",
1838
1838
  default: "httr"
1839
1839
  },
1840
1840
  clientsById: {
1841
- httr: xi
1841
+ httr: $i
1842
1842
  }
1843
- }, wi = {
1843
+ }, ji = {
1844
1844
  info: {
1845
1845
  key: "native",
1846
1846
  title: "net::http",
@@ -1864,8 +1864,8 @@ var Re = (e, n, t) => {
1864
1864
  "UNLOCK",
1865
1865
  "MOVE",
1866
1866
  "TRACE"
1867
- ], f = i.charAt(0) + i.substring(1).toLowerCase();
1868
- l.includes(i) || (s(`class Net::HTTP::${f} < Net::HTTPRequest`), s(` METHOD = '${i.toUpperCase()}'`), s(` REQUEST_HAS_BODY = '${a.text ? "true" : "false"}'`), s(" RESPONSE_HAS_BODY = true"), s("end"), r()), s(`url = URI("${t}")`), r(), s("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && s("http.use_ssl = true"), r(), s(`request = Net::HTTP::${f}.new(url)`);
1867
+ ], u = i.charAt(0) + i.substring(1).toLowerCase();
1868
+ l.includes(i) || (s(`class Net::HTTP::${u} < Net::HTTPRequest`), s(` METHOD = '${i.toUpperCase()}'`), s(` REQUEST_HAS_BODY = '${a.text ? "true" : "false"}'`), s(" RESPONSE_HAS_BODY = true"), s("end"), r()), s(`url = URI("${t}")`), r(), s("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && s("http.use_ssl = true"), r(), s(`request = Net::HTTP::${u}.new(url)`);
1869
1869
  const y = Object.keys(c);
1870
1870
  return y.length && y.forEach((g) => {
1871
1871
  s(`request["${g}"] = '${Fe(c[g])}'`);
@@ -1878,9 +1878,9 @@ var Re = (e, n, t) => {
1878
1878
  default: "native"
1879
1879
  },
1880
1880
  clientsById: {
1881
- native: wi
1881
+ native: ji
1882
1882
  }
1883
- }, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, ji = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Oi = {
1883
+ }, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, Oi = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Ti = {
1884
1884
  "http1.0": "0",
1885
1885
  "url ": "",
1886
1886
  cookie: "b",
@@ -1890,13 +1890,13 @@ var Re = (e, n, t) => {
1890
1890
  header: "H",
1891
1891
  insecure: "k",
1892
1892
  request: "X"
1893
- }, Ti = (e) => (n) => {
1893
+ }, Pi = (e) => (n) => {
1894
1894
  if (e) {
1895
- const t = Oi[n];
1895
+ const t = Ti[n];
1896
1896
  return t ? `-${t}` : "";
1897
1897
  }
1898
1898
  return `--${n}`;
1899
- }, Pi = {
1899
+ }, qi = {
1900
1900
  info: {
1901
1901
  key: "curl",
1902
1902
  title: "cURL",
@@ -1905,14 +1905,14 @@ var Re = (e, n, t) => {
1905
1905
  extname: ".sh"
1906
1906
  },
1907
1907
  convert: ({ fullUrl: e, method: n, httpVersion: t, headersObj: a, allHeaders: c, postData: s }, r = {}) => {
1908
- var u;
1909
- const { indent: o = " ", short: i = !1, binary: l = !1, globOff: f = !1 } = r, y = " ", { push: g, join: m } = new V({
1908
+ var f;
1909
+ const { indent: o = " ", short: i = !1, binary: l = !1, globOff: u = !1 } = r, y = " ", { push: g, join: m } = new V({
1910
1910
  ...typeof o == "string" ? { indent: o } : {},
1911
1911
  join: o !== !1 ? ` \\
1912
1912
  ${o}` : " "
1913
- }), x = Ti(i);
1913
+ }), x = Pi(i);
1914
1914
  let v = ce(e);
1915
- if (g(`curl ${x("request")} ${n}`), f && (v = unescape(v), g(x("globoff"))), g(`${x("url ")}${v}`), t === "HTTP/1.0" && g(x("http1.0")), ge(c, "accept-encoding") && g("--compressed"), s.mimeType === "multipart/form-data") {
1915
+ if (g(`curl ${x("request")} ${n}`), u && (v = unescape(v), g(x("globoff"))), g(`${x("url ")}${v}`), t === "HTTP/1.0" && g(x("http1.0")), ge(c, "accept-encoding") && g("--compressed"), s.mimeType === "multipart/form-data") {
1916
1916
  const h = fe(a, "content-type");
1917
1917
  if (h) {
1918
1918
  const d = a[h];
@@ -1927,7 +1927,7 @@ ${o}` : " "
1927
1927
  g(`${x("header")} ${ce(d)}`);
1928
1928
  }), c.cookie && g(`${x("cookie")} ${ce(c.cookie)}`), s.mimeType) {
1929
1929
  case "multipart/form-data":
1930
- (u = s.params) == null || u.forEach((d) => {
1930
+ (f = s.params) == null || f.forEach((d) => {
1931
1931
  let j = "";
1932
1932
  d.fileName ? j = `${d.name}='@${d.fileName}'` : j = ce(`${d.name}=${d.value}`), g(`${x("form")} ${j}`);
1933
1933
  });
@@ -1942,7 +1942,7 @@ ${o}` : " "
1942
1942
  if (!s.text)
1943
1943
  break;
1944
1944
  let h = !1;
1945
- if (To(s.mimeType) && s.text.length > 20)
1945
+ if (Po(s.mimeType) && s.text.length > 20)
1946
1946
  try {
1947
1947
  const d = JSON.parse(s.text);
1948
1948
  h = !0, s.text.indexOf("'") > 0 ? g(
@@ -1964,7 +1964,7 @@ ${JSON.stringify(d, null, y)}
1964
1964
  }
1965
1965
  return m();
1966
1966
  }
1967
- }, qi = {
1967
+ }, Ci = {
1968
1968
  info: {
1969
1969
  key: "httpie",
1970
1970
  title: "HTTPie",
@@ -1988,7 +1988,7 @@ ${JSON.stringify(d, null, y)}
1988
1988
  verbose: !1,
1989
1989
  verify: !1,
1990
1990
  ...r
1991
- }, { push: i, join: l, unshift: f } = new V({
1991
+ }, { push: i, join: l, unshift: u } = new V({
1992
1992
  indent: o.indent,
1993
1993
  // @ts-expect-error SEEMS LEGIT
1994
1994
  join: o.indent !== !1 ? ` \\
@@ -1998,8 +1998,8 @@ ${o.indent}` : " "
1998
1998
  const g = [];
1999
1999
  o.headers && g.push(o.short ? "-h" : "--headers"), o.body && g.push(o.short ? "-b" : "--body"), o.verbose && g.push(o.short ? "-v" : "--verbose"), o.print && g.push(`${o.short ? "-p" : "--print"}=${o.print}`), o.verify && g.push(`--verify=${o.verify}`), o.cert && g.push(`--cert=${o.cert}`), o.pretty && g.push(`--pretty=${o.pretty}`), o.style && g.push(`--style=${o.style}`), o.timeout && g.push(`--timeout=${o.timeout}`), o.queryParams && Object.keys(t).forEach((x) => {
2000
2000
  const v = t[x];
2001
- Array.isArray(v) ? v.forEach((u) => {
2002
- i(`${x}==${ce(u)}`);
2001
+ Array.isArray(v) ? v.forEach((f) => {
2002
+ i(`${x}==${ce(f)}`);
2003
2003
  }) : i(`${x}==${ce(v)}`);
2004
2004
  }), Object.keys(e).sort().forEach((x) => {
2005
2005
  i(`${x}:${ce(e[x])}`);
@@ -2007,13 +2007,13 @@ ${o.indent}` : " "
2007
2007
  i(`${x.name}=${ce(x.value)}`);
2008
2008
  })) : y = !0;
2009
2009
  const m = g.length ? `${g.join(" ")} ` : "";
2010
- if (s = ce(o.queryParams ? s : a), f(`http ${m}${c} ${s}`), y && n.text) {
2010
+ if (s = ce(o.queryParams ? s : a), u(`http ${m}${c} ${s}`), y && n.text) {
2011
2011
  const x = ce(n.text);
2012
- f(`echo ${x} | `);
2012
+ u(`echo ${x} | `);
2013
2013
  }
2014
2014
  return l();
2015
2015
  }
2016
- }, Ci = {
2016
+ }, Ei = {
2017
2017
  info: {
2018
2018
  key: "wget",
2019
2019
  title: "Wget",
@@ -2035,9 +2035,9 @@ ${s.indent}` : " "
2035
2035
  return s.verbose ? r(`wget ${s.short ? "-v" : "--verbose"}`) : r(`wget ${s.short ? "-q" : "--quiet"}`), r(`--method ${ce(e)}`), Object.keys(t).forEach((i) => {
2036
2036
  const l = `${i}: ${t[i]}`;
2037
2037
  r(`--header ${ce(l)}`);
2038
- }), n.text && r(`--body-data ${ji(ce(n.text))}`), r(s.short ? "-O" : "--output-document"), r(`- ${ce(a)}`), o();
2038
+ }), n.text && r(`--body-data ${Oi(ce(n.text))}`), r(s.short ? "-O" : "--output-document"), r(`- ${ce(a)}`), o();
2039
2039
  }
2040
- }, Ei = {
2040
+ }, Ri = {
2041
2041
  info: {
2042
2042
  key: "shell",
2043
2043
  title: "Shell",
@@ -2045,9 +2045,9 @@ ${s.indent}` : " "
2045
2045
  cli: "%s"
2046
2046
  },
2047
2047
  clientsById: {
2048
- curl: Pi,
2049
- httpie: qi,
2050
- wget: Ci
2048
+ curl: qi,
2049
+ httpie: Ci,
2050
+ wget: Ei
2051
2051
  }
2052
2052
  }, Yr = (e, n) => n.repeat(e), Xr = (e, n, t, a) => {
2053
2053
  const c = Yr(a, t), s = Yr(a - 1, t), r = n ? `,
@@ -2082,7 +2082,7 @@ ${s}]` : `[${e.join(r)}]`;
2082
2082
  default:
2083
2083
  return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
2084
2084
  }
2085
- }, Ri = {
2085
+ }, ki = {
2086
2086
  info: {
2087
2087
  key: "urlsession",
2088
2088
  title: "URLSession",
@@ -2099,8 +2099,8 @@ ${s}]` : `[${e.join(r)}]`;
2099
2099
  ...s
2100
2100
  }, { push: o, blank: i, join: l } = new V({ indent: r.indent });
2101
2101
  o("import Foundation"), i();
2102
- const f = n.text || n.jsonObj || n.params;
2103
- if (f)
2102
+ const u = n.text || n.jsonObj || n.params;
2103
+ if (u)
2104
2104
  switch (n.mimeType) {
2105
2105
  case "application/x-www-form-urlencoded":
2106
2106
  if ((g = n.params) != null && g.length) {
@@ -2126,76 +2126,76 @@ ${s}]` : `[${e.join(r)}]`;
2126
2126
  o(`URLQueryItem(name: "${x}", value: "${v}"),`, 1);
2127
2127
  break;
2128
2128
  case "[object Array]":
2129
- v.forEach((u) => {
2130
- o(`URLQueryItem(name: "${x}", value: "${u}"),`, 1);
2129
+ v.forEach((f) => {
2130
+ o(`URLQueryItem(name: "${x}", value: "${f}"),`, 1);
2131
2131
  });
2132
2132
  break;
2133
2133
  }
2134
- }), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${Xe(e, r)}`), f && o("request.httpBody = postData"), i(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), l();
2134
+ }), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${Xe(e, r)}`), u && o("request.httpBody = postData"), i(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), l();
2135
2135
  }
2136
- }, ki = {
2136
+ }, Ni = {
2137
2137
  info: {
2138
2138
  key: "swift",
2139
2139
  title: "Swift",
2140
2140
  default: "urlsession"
2141
2141
  },
2142
2142
  clientsById: {
2143
- urlsession: Ri
2143
+ urlsession: ki
2144
2144
  }
2145
- }, Ni = {
2146
- c: Oo,
2147
- clojure: Co,
2148
- csharp: Ao,
2149
- go: Uo,
2150
- http: Fo,
2151
- java: zo,
2152
- javascript: Do,
2153
- json: Ko,
2154
- kotlin: Xo,
2155
- node: ai,
2156
- objc: ii,
2157
- ocaml: li,
2158
- php: di,
2159
- powershell: mi,
2160
- python: bi,
2161
- r: $i,
2145
+ }, Ai = {
2146
+ c: To,
2147
+ clojure: Eo,
2148
+ csharp: Io,
2149
+ go: Lo,
2150
+ http: _o,
2151
+ java: Wo,
2152
+ javascript: Qo,
2153
+ json: Yo,
2154
+ kotlin: Zo,
2155
+ node: oi,
2156
+ objc: si,
2157
+ ocaml: ci,
2158
+ php: hi,
2159
+ powershell: gi,
2160
+ python: xi,
2161
+ r: wi,
2162
2162
  ruby: Si,
2163
- shell: Ei,
2164
- swift: ki
2163
+ shell: Ri,
2164
+ swift: Ni
2165
2165
  }, Oe = {}, Ae = { exports: {} };
2166
2166
  /*! https://mths.be/punycode v1.4.1 by @mathias */
2167
- var Ai = Ae.exports, en;
2168
- function Ii() {
2167
+ var Ii = Ae.exports, en;
2168
+ function Ui() {
2169
2169
  return en || (en = 1, function(e, n) {
2170
2170
  (function(t) {
2171
2171
  var a = n && !n.nodeType && n, c = e && !e.nodeType && e, s = typeof Ke == "object" && Ke;
2172
2172
  (s.global === s || s.window === s || s.self === s) && (t = s);
2173
- var r, o = 2147483647, i = 36, l = 1, f = 26, y = 38, g = 700, m = 72, x = 128, v = "-", u = /^xn--/, h = /[^\x20-\x7E]/, d = /[\x2E\u3002\uFF0E\uFF61]/g, j = {
2173
+ var r, o = 2147483647, i = 36, l = 1, u = 26, y = 38, g = 700, m = 72, x = 128, v = "-", f = /^xn--/, h = /[^\x20-\x7E]/, d = /[\x2E\u3002\uFF0E\uFF61]/g, j = {
2174
2174
  overflow: "Overflow: input needs wider integers to process",
2175
2175
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
2176
2176
  "invalid-input": "Invalid input"
2177
2177
  }, T = i - l, p = Math.floor, O = String.fromCharCode, b;
2178
- function q(R) {
2178
+ function E(R) {
2179
2179
  throw new RangeError(j[R]);
2180
2180
  }
2181
- function A(R, k) {
2182
- for (var F = R.length, C = []; F--; )
2183
- C[F] = k(R[F]);
2184
- return C;
2181
+ function N(R, k) {
2182
+ for (var F = R.length, q = []; F--; )
2183
+ q[F] = k(R[F]);
2184
+ return q;
2185
2185
  }
2186
- function E(R, k) {
2187
- var F = R.split("@"), C = "";
2188
- F.length > 1 && (C = F[0] + "@", R = F[1]), R = R.replace(d, ".");
2189
- var U = R.split("."), J = A(U, k).join(".");
2190
- return C + J;
2186
+ function C(R, k) {
2187
+ var F = R.split("@"), q = "";
2188
+ F.length > 1 && (q = F[0] + "@", R = F[1]), R = R.replace(d, ".");
2189
+ var U = R.split("."), J = N(U, k).join(".");
2190
+ return q + J;
2191
2191
  }
2192
2192
  function L(R) {
2193
- for (var k = [], F = 0, C = R.length, U, J; F < C; )
2194
- U = R.charCodeAt(F++), U >= 55296 && U <= 56319 && F < C ? (J = R.charCodeAt(F++), (J & 64512) == 56320 ? k.push(((U & 1023) << 10) + (J & 1023) + 65536) : (k.push(U), F--)) : k.push(U);
2193
+ for (var k = [], F = 0, q = R.length, U, J; F < q; )
2194
+ U = R.charCodeAt(F++), U >= 55296 && U <= 56319 && F < q ? (J = R.charCodeAt(F++), (J & 64512) == 56320 ? k.push(((U & 1023) << 10) + (J & 1023) + 65536) : (k.push(U), F--)) : k.push(U);
2195
2195
  return k;
2196
2196
  }
2197
2197
  function P(R) {
2198
- return A(R, function(k) {
2198
+ return N(R, function(k) {
2199
2199
  var F = "";
2200
2200
  return k > 65535 && (k -= 65536, F += O(k >>> 10 & 1023 | 55296), k = 56320 | k & 1023), F += O(k), F;
2201
2201
  }).join("");
@@ -2207,48 +2207,48 @@ function Ii() {
2207
2207
  return R + 22 + 75 * (R < 26) - ((k != 0) << 5);
2208
2208
  }
2209
2209
  function D(R, k, F) {
2210
- var C = 0;
2211
- for (R = F ? p(R / g) : R >> 1, R += p(R / k); R > T * f >> 1; C += i)
2210
+ var q = 0;
2211
+ for (R = F ? p(R / g) : R >> 1, R += p(R / k); R > T * u >> 1; q += i)
2212
2212
  R = p(R / T);
2213
- return p(C + (T + 1) * R / (R + y));
2213
+ return p(q + (T + 1) * R / (R + y));
2214
2214
  }
2215
2215
  function se(R) {
2216
- var k = [], F = R.length, C, U = 0, J = x, z = m, K, ne, G, I, _, B, Q, W, Y;
2216
+ var k = [], F = R.length, q, U = 0, J = x, z = m, K, ne, G, I, _, B, Q, W, Y;
2217
2217
  for (K = R.lastIndexOf(v), K < 0 && (K = 0), ne = 0; ne < K; ++ne)
2218
- R.charCodeAt(ne) >= 128 && q("not-basic"), k.push(R.charCodeAt(ne));
2218
+ R.charCodeAt(ne) >= 128 && E("not-basic"), k.push(R.charCodeAt(ne));
2219
2219
  for (G = K > 0 ? K + 1 : 0; G < F; ) {
2220
- for (I = U, _ = 1, B = i; G >= F && q("invalid-input"), Q = oe(R.charCodeAt(G++)), (Q >= i || Q > p((o - U) / _)) && q("overflow"), U += Q * _, W = B <= z ? l : B >= z + f ? f : B - z, !(Q < W); B += i)
2221
- Y = i - W, _ > p(o / Y) && q("overflow"), _ *= Y;
2222
- C = k.length + 1, z = D(U - I, C, I == 0), p(U / C) > o - J && q("overflow"), J += p(U / C), U %= C, k.splice(U++, 0, J);
2220
+ for (I = U, _ = 1, B = i; G >= F && E("invalid-input"), Q = oe(R.charCodeAt(G++)), (Q >= i || Q > p((o - U) / _)) && E("overflow"), U += Q * _, W = B <= z ? l : B >= z + u ? u : B - z, !(Q < W); B += i)
2221
+ Y = i - W, _ > p(o / Y) && E("overflow"), _ *= Y;
2222
+ q = k.length + 1, z = D(U - I, q, I == 0), p(U / q) > o - J && E("overflow"), J += p(U / q), U %= q, k.splice(U++, 0, J);
2223
2223
  }
2224
2224
  return P(k);
2225
2225
  }
2226
2226
  function Z(R) {
2227
- var k, F, C, U, J, z, K, ne, G, I, _, B = [], Q, W, Y, ae;
2227
+ var k, F, q, U, J, z, K, ne, G, I, _, B = [], Q, W, Y, ae;
2228
2228
  for (R = L(R), Q = R.length, k = x, F = 0, J = m, z = 0; z < Q; ++z)
2229
2229
  _ = R[z], _ < 128 && B.push(O(_));
2230
- for (C = U = B.length, U && B.push(v); C < Q; ) {
2230
+ for (q = U = B.length, U && B.push(v); q < Q; ) {
2231
2231
  for (K = o, z = 0; z < Q; ++z)
2232
2232
  _ = R[z], _ >= k && _ < K && (K = _);
2233
- for (W = C + 1, K - k > p((o - F) / W) && q("overflow"), F += (K - k) * W, k = K, z = 0; z < Q; ++z)
2234
- if (_ = R[z], _ < k && ++F > o && q("overflow"), _ == k) {
2235
- for (ne = F, G = i; I = G <= J ? l : G >= J + f ? f : G - J, !(ne < I); G += i)
2233
+ for (W = q + 1, K - k > p((o - F) / W) && E("overflow"), F += (K - k) * W, k = K, z = 0; z < Q; ++z)
2234
+ if (_ = R[z], _ < k && ++F > o && E("overflow"), _ == k) {
2235
+ for (ne = F, G = i; I = G <= J ? l : G >= J + u ? u : G - J, !(ne < I); G += i)
2236
2236
  ae = ne - I, Y = i - I, B.push(
2237
2237
  O(H(I + ae % Y, 0))
2238
2238
  ), ne = p(ae / Y);
2239
- B.push(O(H(ne, 0))), J = D(F, W, C == U), F = 0, ++C;
2239
+ B.push(O(H(ne, 0))), J = D(F, W, q == U), F = 0, ++q;
2240
2240
  }
2241
2241
  ++F, ++k;
2242
2242
  }
2243
2243
  return B.join("");
2244
2244
  }
2245
- function N(R) {
2246
- return E(R, function(k) {
2247
- return u.test(k) ? se(k.slice(4).toLowerCase()) : k;
2245
+ function A(R) {
2246
+ return C(R, function(k) {
2247
+ return f.test(k) ? se(k.slice(4).toLowerCase()) : k;
2248
2248
  });
2249
2249
  }
2250
2250
  function re(R) {
2251
- return E(R, function(k) {
2251
+ return C(R, function(k) {
2252
2252
  return h.test(k) ? "xn--" + Z(k) : k;
2253
2253
  });
2254
2254
  }
@@ -2273,7 +2273,7 @@ function Ii() {
2273
2273
  decode: se,
2274
2274
  encode: Z,
2275
2275
  toASCII: re,
2276
- toUnicode: N
2276
+ toUnicode: A
2277
2277
  }, a && c)
2278
2278
  if (e.exports == a)
2279
2279
  c.exports = r;
@@ -2282,7 +2282,7 @@ function Ii() {
2282
2282
  r.hasOwnProperty(b) && (a[b] = r[b]);
2283
2283
  else
2284
2284
  t.punycode = r;
2285
- })(Ai);
2285
+ })(Ii);
2286
2286
  }(Ae, Ae.exports)), Ae.exports;
2287
2287
  }
2288
2288
  var yt, tn;
@@ -2290,19 +2290,19 @@ function ua() {
2290
2290
  return tn || (tn = 1, yt = Object), yt;
2291
2291
  }
2292
2292
  var mt, rn;
2293
- function Ui() {
2293
+ function Li() {
2294
2294
  return rn || (rn = 1, mt = Error), mt;
2295
2295
  }
2296
2296
  var gt, nn;
2297
- function Li() {
2297
+ function Fi() {
2298
2298
  return nn || (nn = 1, gt = EvalError), gt;
2299
2299
  }
2300
2300
  var vt, an;
2301
- function Fi() {
2301
+ function _i() {
2302
2302
  return an || (an = 1, vt = RangeError), vt;
2303
2303
  }
2304
2304
  var bt, on;
2305
- function _i() {
2305
+ function Bi() {
2306
2306
  return on || (on = 1, bt = ReferenceError), bt;
2307
2307
  }
2308
2308
  var xt, sn;
@@ -2314,57 +2314,57 @@ function Be() {
2314
2314
  return ln || (ln = 1, $t = TypeError), $t;
2315
2315
  }
2316
2316
  var wt, cn;
2317
- function Bi() {
2318
- return cn || (cn = 1, wt = URIError), wt;
2319
- }
2320
- var St, un;
2321
2317
  function Hi() {
2322
- return un || (un = 1, St = Math.abs), St;
2318
+ return cn || (cn = 1, wt = URIError), wt;
2323
2319
  }
2324
- var jt, fn;
2320
+ var jt, un;
2325
2321
  function Mi() {
2326
- return fn || (fn = 1, jt = Math.floor), jt;
2322
+ return un || (un = 1, jt = Math.abs), jt;
2327
2323
  }
2328
- var Ot, pn;
2324
+ var St, fn;
2329
2325
  function zi() {
2326
+ return fn || (fn = 1, St = Math.floor), St;
2327
+ }
2328
+ var Ot, pn;
2329
+ function Wi() {
2330
2330
  return pn || (pn = 1, Ot = Math.max), Ot;
2331
2331
  }
2332
2332
  var Tt, dn;
2333
- function Wi() {
2333
+ function Ji() {
2334
2334
  return dn || (dn = 1, Tt = Math.min), Tt;
2335
2335
  }
2336
2336
  var Pt, hn;
2337
- function Ji() {
2337
+ function Gi() {
2338
2338
  return hn || (hn = 1, Pt = Math.pow), Pt;
2339
2339
  }
2340
2340
  var qt, yn;
2341
- function Gi() {
2341
+ function Vi() {
2342
2342
  return yn || (yn = 1, qt = Math.round), qt;
2343
2343
  }
2344
2344
  var Ct, mn;
2345
- function Vi() {
2345
+ function Di() {
2346
2346
  return mn || (mn = 1, Ct = Number.isNaN || function(n) {
2347
2347
  return n !== n;
2348
2348
  }), Ct;
2349
2349
  }
2350
2350
  var Et, gn;
2351
- function Di() {
2351
+ function Qi() {
2352
2352
  if (gn) return Et;
2353
2353
  gn = 1;
2354
- var e = /* @__PURE__ */ Vi();
2354
+ var e = /* @__PURE__ */ Di();
2355
2355
  return Et = function(t) {
2356
2356
  return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
2357
2357
  }, Et;
2358
2358
  }
2359
2359
  var Rt, vn;
2360
- function Qi() {
2360
+ function Ki() {
2361
2361
  return vn || (vn = 1, Rt = Object.getOwnPropertyDescriptor), Rt;
2362
2362
  }
2363
2363
  var kt, bn;
2364
2364
  function et() {
2365
2365
  if (bn) return kt;
2366
2366
  bn = 1;
2367
- var e = /* @__PURE__ */ Qi();
2367
+ var e = /* @__PURE__ */ Ki();
2368
2368
  if (e)
2369
2369
  try {
2370
2370
  e([], "length");
@@ -2387,7 +2387,7 @@ function tt() {
2387
2387
  return Nt = e, Nt;
2388
2388
  }
2389
2389
  var At, $n;
2390
- function Ki() {
2390
+ function Yi() {
2391
2391
  return $n || ($n = 1, At = function() {
2392
2392
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2393
2393
  return !1;
@@ -2417,66 +2417,66 @@ function Ki() {
2417
2417
  }), At;
2418
2418
  }
2419
2419
  var It, wn;
2420
- function Yi() {
2420
+ function Xi() {
2421
2421
  if (wn) return It;
2422
2422
  wn = 1;
2423
- var e = typeof Symbol < "u" && Symbol, n = Ki();
2423
+ var e = typeof Symbol < "u" && Symbol, n = Yi();
2424
2424
  return It = function() {
2425
2425
  return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
2426
2426
  }, It;
2427
2427
  }
2428
- var Ut, Sn;
2428
+ var Ut, jn;
2429
2429
  function pa() {
2430
- return Sn || (Sn = 1, Ut = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ut;
2430
+ return jn || (jn = 1, Ut = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ut;
2431
2431
  }
2432
- var Lt, jn;
2432
+ var Lt, Sn;
2433
2433
  function da() {
2434
- if (jn) return Lt;
2435
- jn = 1;
2434
+ if (Sn) return Lt;
2435
+ Sn = 1;
2436
2436
  var e = /* @__PURE__ */ ua();
2437
2437
  return Lt = e.getPrototypeOf || null, Lt;
2438
2438
  }
2439
2439
  var Ft, On;
2440
- function Xi() {
2440
+ function Zi() {
2441
2441
  if (On) return Ft;
2442
2442
  On = 1;
2443
2443
  var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, t = Math.max, a = "[object Function]", c = function(i, l) {
2444
- for (var f = [], y = 0; y < i.length; y += 1)
2445
- f[y] = i[y];
2444
+ for (var u = [], y = 0; y < i.length; y += 1)
2445
+ u[y] = i[y];
2446
2446
  for (var g = 0; g < l.length; g += 1)
2447
- f[g + i.length] = l[g];
2448
- return f;
2447
+ u[g + i.length] = l[g];
2448
+ return u;
2449
2449
  }, s = function(i, l) {
2450
- for (var f = [], y = l, g = 0; y < i.length; y += 1, g += 1)
2451
- f[g] = i[y];
2452
- return f;
2450
+ for (var u = [], y = l, g = 0; y < i.length; y += 1, g += 1)
2451
+ u[g] = i[y];
2452
+ return u;
2453
2453
  }, r = function(o, i) {
2454
- for (var l = "", f = 0; f < o.length; f += 1)
2455
- l += o[f], f + 1 < o.length && (l += i);
2454
+ for (var l = "", u = 0; u < o.length; u += 1)
2455
+ l += o[u], u + 1 < o.length && (l += i);
2456
2456
  return l;
2457
2457
  };
2458
2458
  return Ft = function(i) {
2459
2459
  var l = this;
2460
2460
  if (typeof l != "function" || n.apply(l) !== a)
2461
2461
  throw new TypeError(e + l);
2462
- for (var f = s(arguments, 1), y, g = function() {
2462
+ for (var u = s(arguments, 1), y, g = function() {
2463
2463
  if (this instanceof y) {
2464
2464
  var h = l.apply(
2465
2465
  this,
2466
- c(f, arguments)
2466
+ c(u, arguments)
2467
2467
  );
2468
2468
  return Object(h) === h ? h : this;
2469
2469
  }
2470
2470
  return l.apply(
2471
2471
  i,
2472
- c(f, arguments)
2472
+ c(u, arguments)
2473
2473
  );
2474
- }, m = t(0, l.length - f.length), x = [], v = 0; v < m; v++)
2474
+ }, m = t(0, l.length - u.length), x = [], v = 0; v < m; v++)
2475
2475
  x[v] = "$" + v;
2476
2476
  if (y = Function("binder", "return function (" + r(x, ",") + "){ return binder.apply(this,arguments); }")(g), l.prototype) {
2477
- var u = function() {
2477
+ var f = function() {
2478
2478
  };
2479
- u.prototype = l.prototype, y.prototype = new u(), u.prototype = null;
2479
+ f.prototype = l.prototype, y.prototype = new f(), f.prototype = null;
2480
2480
  }
2481
2481
  return y;
2482
2482
  }, Ft;
@@ -2485,7 +2485,7 @@ var _t, Tn;
2485
2485
  function He() {
2486
2486
  if (Tn) return _t;
2487
2487
  Tn = 1;
2488
- var e = Xi();
2488
+ var e = Zi();
2489
2489
  return _t = Function.prototype.bind || e, _t;
2490
2490
  }
2491
2491
  var Bt, Pn;
@@ -2497,14 +2497,14 @@ function xr() {
2497
2497
  return qn || (qn = 1, Ht = Function.prototype.apply), Ht;
2498
2498
  }
2499
2499
  var Mt, Cn;
2500
- function Zi() {
2500
+ function es() {
2501
2501
  return Cn || (Cn = 1, Mt = typeof Reflect < "u" && Reflect && Reflect.apply), Mt;
2502
2502
  }
2503
2503
  var zt, En;
2504
2504
  function ha() {
2505
2505
  if (En) return zt;
2506
2506
  En = 1;
2507
- var e = He(), n = xr(), t = br(), a = Zi();
2507
+ var e = He(), n = xr(), t = br(), a = es();
2508
2508
  return zt = a || e.call(t, n), zt;
2509
2509
  }
2510
2510
  var Wt, Rn;
@@ -2519,7 +2519,7 @@ function ya() {
2519
2519
  }, Wt;
2520
2520
  }
2521
2521
  var Jt, kn;
2522
- function es() {
2522
+ function ts() {
2523
2523
  if (kn) return Jt;
2524
2524
  kn = 1;
2525
2525
  var e = ya(), n = /* @__PURE__ */ et(), t;
@@ -2543,10 +2543,10 @@ function es() {
2543
2543
  ) : !1, Jt;
2544
2544
  }
2545
2545
  var Gt, Nn;
2546
- function ts() {
2546
+ function rs() {
2547
2547
  if (Nn) return Gt;
2548
2548
  Nn = 1;
2549
- var e = pa(), n = da(), t = /* @__PURE__ */ es();
2549
+ var e = pa(), n = da(), t = /* @__PURE__ */ ts();
2550
2550
  return Gt = e ? function(c) {
2551
2551
  return e(c);
2552
2552
  } : n ? function(c) {
@@ -2558,7 +2558,7 @@ function ts() {
2558
2558
  } : null, Gt;
2559
2559
  }
2560
2560
  var Vt, An;
2561
- function rs() {
2561
+ function ns() {
2562
2562
  if (An) return Vt;
2563
2563
  An = 1;
2564
2564
  var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t = He();
@@ -2568,9 +2568,9 @@ var Dt, In;
2568
2568
  function $r() {
2569
2569
  if (In) return Dt;
2570
2570
  In = 1;
2571
- var e, n = /* @__PURE__ */ ua(), t = /* @__PURE__ */ Ui(), a = /* @__PURE__ */ Li(), c = /* @__PURE__ */ Fi(), s = /* @__PURE__ */ _i(), r = /* @__PURE__ */ fa(), o = /* @__PURE__ */ Be(), i = /* @__PURE__ */ Bi(), l = /* @__PURE__ */ Hi(), f = /* @__PURE__ */ Mi(), y = /* @__PURE__ */ zi(), g = /* @__PURE__ */ Wi(), m = /* @__PURE__ */ Ji(), x = /* @__PURE__ */ Gi(), v = /* @__PURE__ */ Di(), u = Function, h = function(G) {
2571
+ var e, n = /* @__PURE__ */ ua(), t = /* @__PURE__ */ Li(), a = /* @__PURE__ */ Fi(), c = /* @__PURE__ */ _i(), s = /* @__PURE__ */ Bi(), r = /* @__PURE__ */ fa(), o = /* @__PURE__ */ Be(), i = /* @__PURE__ */ Hi(), l = /* @__PURE__ */ Mi(), u = /* @__PURE__ */ zi(), y = /* @__PURE__ */ Wi(), g = /* @__PURE__ */ Ji(), m = /* @__PURE__ */ Gi(), x = /* @__PURE__ */ Vi(), v = /* @__PURE__ */ Qi(), f = Function, h = function(G) {
2572
2572
  try {
2573
- return u('"use strict"; return (' + G + ").constructor;")();
2573
+ return f('"use strict"; return (' + G + ").constructor;")();
2574
2574
  } catch {
2575
2575
  }
2576
2576
  }, d = /* @__PURE__ */ et(), j = /* @__PURE__ */ tt(), T = function() {
@@ -2585,7 +2585,7 @@ function $r() {
2585
2585
  return T;
2586
2586
  }
2587
2587
  }
2588
- }() : T, O = Yi()(), b = ts(), q = da(), A = pa(), E = xr(), L = br(), P = {}, oe = typeof Uint8Array > "u" || !b ? e : b(Uint8Array), H = {
2588
+ }() : T, O = Xi()(), b = rs(), E = da(), N = pa(), C = xr(), L = br(), P = {}, oe = typeof Uint8Array > "u" || !b ? e : b(Uint8Array), H = {
2589
2589
  __proto__: null,
2590
2590
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
2591
2591
  "%Array%": Array,
@@ -2615,7 +2615,7 @@ function $r() {
2615
2615
  "%Float32Array%": typeof Float32Array > "u" ? e : Float32Array,
2616
2616
  "%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
2617
2617
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
2618
- "%Function%": u,
2618
+ "%Function%": f,
2619
2619
  "%GeneratorFunction%": P,
2620
2620
  "%Int8Array%": typeof Int8Array > "u" ? e : Int8Array,
2621
2621
  "%Int16Array%": typeof Int16Array > "u" ? e : Int16Array,
@@ -2657,17 +2657,17 @@ function $r() {
2657
2657
  "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
2658
2658
  "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
2659
2659
  "%Function.prototype.call%": L,
2660
- "%Function.prototype.apply%": E,
2660
+ "%Function.prototype.apply%": C,
2661
2661
  "%Object.defineProperty%": j,
2662
- "%Object.getPrototypeOf%": q,
2662
+ "%Object.getPrototypeOf%": E,
2663
2663
  "%Math.abs%": l,
2664
- "%Math.floor%": f,
2664
+ "%Math.floor%": u,
2665
2665
  "%Math.max%": y,
2666
2666
  "%Math.min%": g,
2667
2667
  "%Math.pow%": m,
2668
2668
  "%Math.round%": x,
2669
2669
  "%Math.sign%": v,
2670
- "%Reflect.getPrototypeOf%": A
2670
+ "%Reflect.getPrototypeOf%": N
2671
2671
  };
2672
2672
  if (b)
2673
2673
  try {
@@ -2745,8 +2745,8 @@ function $r() {
2745
2745
  "%URIErrorPrototype%": ["URIError", "prototype"],
2746
2746
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2747
2747
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2748
- }, N = He(), re = /* @__PURE__ */ rs(), R = N.call(L, Array.prototype.concat), k = N.call(E, Array.prototype.splice), F = N.call(L, String.prototype.replace), C = N.call(L, String.prototype.slice), U = N.call(L, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(I) {
2749
- var _ = C(I, 0, 1), B = C(I, -1);
2748
+ }, A = He(), re = /* @__PURE__ */ ns(), R = A.call(L, Array.prototype.concat), k = A.call(C, Array.prototype.splice), F = A.call(L, String.prototype.replace), q = A.call(L, String.prototype.slice), U = A.call(L, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(I) {
2749
+ var _ = q(I, 0, 1), B = q(I, -1);
2750
2750
  if (_ === "%" && B !== "%")
2751
2751
  throw new r("invalid intrinsic syntax, expected closing `%`");
2752
2752
  if (B === "%" && _ !== "%")
@@ -2779,7 +2779,7 @@ function $r() {
2779
2779
  var B = K(I), Q = B.length > 0 ? B[0] : "", W = ne("%" + Q + "%", _), Y = W.name, ae = W.value, he = !1, $e = W.alias;
2780
2780
  $e && (Q = $e[0], k(B, R([0, 1], $e)));
2781
2781
  for (var Te = 1, we = !0; Te < B.length; Te += 1) {
2782
- var ye = B[Te], Pe = C(ye, 0, 1), qe = C(ye, -1);
2782
+ var ye = B[Te], Pe = q(ye, 0, 1), qe = q(ye, -1);
2783
2783
  if ((Pe === '"' || Pe === "'" || Pe === "`" || qe === '"' || qe === "'" || qe === "`") && Pe !== qe)
2784
2784
  throw new r("property names with quotes must have matching quotes");
2785
2785
  if ((ye === "constructor" || !we) && (he = !0), Q += "." + ye, Y = "%" + Q + "%", re(H, Y))
@@ -2791,8 +2791,8 @@ function $r() {
2791
2791
  return;
2792
2792
  }
2793
2793
  if (d && Te + 1 >= B.length) {
2794
- var Se = d(ae, ye);
2795
- we = !!Se, we && "get" in Se && !("originalValue" in Se.get) ? ae = Se.get : ae = ae[ye];
2794
+ var je = d(ae, ye);
2795
+ we = !!je, we && "get" in je && !("originalValue" in je.get) ? ae = je.get : ae = ae[ye];
2796
2796
  } else
2797
2797
  we = re(ae, ye), ae = ae[ye];
2798
2798
  we && !he && (H[Y] = ae);
@@ -2802,7 +2802,7 @@ function $r() {
2802
2802
  }, Dt;
2803
2803
  }
2804
2804
  var Qt = { exports: {} }, Kt, Un;
2805
- function ns() {
2805
+ function as() {
2806
2806
  if (Un) return Kt;
2807
2807
  Un = 1;
2808
2808
  var e = /* @__PURE__ */ tt(), n = /* @__PURE__ */ fa(), t = /* @__PURE__ */ Be(), a = /* @__PURE__ */ et();
@@ -2819,22 +2819,22 @@ function ns() {
2819
2819
  throw new t("`nonConfigurable`, if provided, must be a boolean or null");
2820
2820
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
2821
2821
  throw new t("`loose`, if provided, must be a boolean");
2822
- var i = arguments.length > 3 ? arguments[3] : null, l = arguments.length > 4 ? arguments[4] : null, f = arguments.length > 5 ? arguments[5] : null, y = arguments.length > 6 ? arguments[6] : !1, g = !!a && a(s, r);
2822
+ var i = arguments.length > 3 ? arguments[3] : null, l = arguments.length > 4 ? arguments[4] : null, u = arguments.length > 5 ? arguments[5] : null, y = arguments.length > 6 ? arguments[6] : !1, g = !!a && a(s, r);
2823
2823
  if (e)
2824
2824
  e(s, r, {
2825
- configurable: f === null && g ? g.configurable : !f,
2825
+ configurable: u === null && g ? g.configurable : !u,
2826
2826
  enumerable: i === null && g ? g.enumerable : !i,
2827
2827
  value: o,
2828
2828
  writable: l === null && g ? g.writable : !l
2829
2829
  });
2830
- else if (y || !i && !l && !f)
2830
+ else if (y || !i && !l && !u)
2831
2831
  s[r] = o;
2832
2832
  else
2833
2833
  throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2834
2834
  }, Kt;
2835
2835
  }
2836
2836
  var Yt, Ln;
2837
- function as() {
2837
+ function os() {
2838
2838
  if (Ln) return Yt;
2839
2839
  Ln = 1;
2840
2840
  var e = /* @__PURE__ */ tt(), n = function() {
@@ -2851,21 +2851,21 @@ function as() {
2851
2851
  }, Yt = n, Yt;
2852
2852
  }
2853
2853
  var Xt, Fn;
2854
- function os() {
2854
+ function is() {
2855
2855
  if (Fn) return Xt;
2856
2856
  Fn = 1;
2857
- var e = /* @__PURE__ */ $r(), n = /* @__PURE__ */ ns(), t = /* @__PURE__ */ as()(), a = /* @__PURE__ */ et(), c = /* @__PURE__ */ Be(), s = e("%Math.floor%");
2857
+ var e = /* @__PURE__ */ $r(), n = /* @__PURE__ */ as(), t = /* @__PURE__ */ os()(), a = /* @__PURE__ */ et(), c = /* @__PURE__ */ Be(), s = e("%Math.floor%");
2858
2858
  return Xt = function(o, i) {
2859
2859
  if (typeof o != "function")
2860
2860
  throw new c("`fn` is not a function");
2861
2861
  if (typeof i != "number" || i < 0 || i > 4294967295 || s(i) !== i)
2862
2862
  throw new c("`length` must be a positive 32-bit integer");
2863
- var l = arguments.length > 2 && !!arguments[2], f = !0, y = !0;
2863
+ var l = arguments.length > 2 && !!arguments[2], u = !0, y = !0;
2864
2864
  if ("length" in o && a) {
2865
2865
  var g = a(o, "length");
2866
- g && !g.configurable && (f = !1), g && !g.writable && (y = !1);
2866
+ g && !g.configurable && (u = !1), g && !g.writable && (y = !1);
2867
2867
  }
2868
- return (f || y || !l) && (t ? n(
2868
+ return (u || y || !l) && (t ? n(
2869
2869
  /** @type {Parameters<define>[0]} */
2870
2870
  o,
2871
2871
  "length",
@@ -2881,7 +2881,7 @@ function os() {
2881
2881
  }, Xt;
2882
2882
  }
2883
2883
  var Zt, _n;
2884
- function is() {
2884
+ function ss() {
2885
2885
  if (_n) return Zt;
2886
2886
  _n = 1;
2887
2887
  var e = He(), n = xr(), t = ha();
@@ -2890,9 +2890,9 @@ function is() {
2890
2890
  }, Zt;
2891
2891
  }
2892
2892
  var Bn;
2893
- function ss() {
2893
+ function ls() {
2894
2894
  return Bn || (Bn = 1, function(e) {
2895
- var n = /* @__PURE__ */ os(), t = /* @__PURE__ */ tt(), a = ya(), c = is();
2895
+ var n = /* @__PURE__ */ is(), t = /* @__PURE__ */ tt(), a = ya(), c = ss();
2896
2896
  e.exports = function(r) {
2897
2897
  var o = a(arguments), i = r.length - (arguments.length - 1);
2898
2898
  return n(
@@ -2904,32 +2904,32 @@ function ss() {
2904
2904
  }(Qt)), Qt.exports;
2905
2905
  }
2906
2906
  var er, Hn;
2907
- function ls() {
2907
+ function cs() {
2908
2908
  if (Hn) return er;
2909
2909
  Hn = 1;
2910
- var e = /* @__PURE__ */ $r(), n = ss(), t = n(e("String.prototype.indexOf"));
2910
+ var e = /* @__PURE__ */ $r(), n = ls(), t = n(e("String.prototype.indexOf"));
2911
2911
  return er = function(c, s) {
2912
2912
  var r = e(c, !!s);
2913
2913
  return typeof r == "function" && t(c, ".prototype.") > -1 ? n(r) : r;
2914
2914
  }, er;
2915
2915
  }
2916
- const cs = {}, us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2916
+ const us = {}, fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2917
2917
  __proto__: null,
2918
- default: cs
2919
- }, Symbol.toStringTag, { value: "Module" })), fs = /* @__PURE__ */ so(us);
2918
+ default: us
2919
+ }, Symbol.toStringTag, { value: "Module" })), ps = /* @__PURE__ */ lo(fs);
2920
2920
  var tr, Mn;
2921
- function ps() {
2921
+ function ds() {
2922
2922
  if (Mn) return tr;
2923
2923
  Mn = 1;
2924
- 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, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = c && s && typeof s.get == "function" ? s.get : null, o = c && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, y = f ? WeakSet.prototype.has : null, g = typeof WeakRef == "function" && WeakRef.prototype, m = g ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, v = Object.prototype.toString, u = Function.prototype.toString, h = String.prototype.match, d = String.prototype.slice, j = String.prototype.replace, T = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, b = Array.prototype.concat, q = Array.prototype.join, A = Array.prototype.slice, E = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, oe = 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(w) {
2924
+ 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, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = c && s && typeof s.get == "function" ? s.get : null, o = c && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, y = u ? WeakSet.prototype.has : null, g = typeof WeakRef == "function" && WeakRef.prototype, m = g ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, v = Object.prototype.toString, f = Function.prototype.toString, h = String.prototype.match, d = String.prototype.slice, j = String.prototype.replace, T = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, b = Array.prototype.concat, E = Array.prototype.join, N = Array.prototype.slice, C = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, oe = 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(w) {
2925
2925
  return w.__proto__;
2926
2926
  } : null);
2927
- function N(w, S) {
2927
+ function A(w, S) {
2928
2928
  if (w === 1 / 0 || w === -1 / 0 || w !== w || w && w > -1e3 && w < 1e3 || O.call(/e/, S))
2929
2929
  return S;
2930
2930
  var X = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
2931
2931
  if (typeof w == "number") {
2932
- var ee = w < 0 ? -E(-w) : E(w);
2932
+ var ee = w < 0 ? -C(-w) : C(w);
2933
2933
  if (ee !== w) {
2934
2934
  var ie = String(ee), M = d.call(S, ie.length + 1);
2935
2935
  return j.call(ie, X, "$&_") + "." + j.call(j.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
@@ -2937,7 +2937,7 @@ function ps() {
2937
2937
  }
2938
2938
  return j.call(S, X, "$&_");
2939
2939
  }
2940
- var re = fs, R = re.custom, k = _(R) ? R : null;
2940
+ var re = ps, R = re.custom, k = _(R) ? R : null;
2941
2941
  tr = function w(S, X, ee, ie) {
2942
2942
  var M = X || {};
2943
2943
  if (W(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
@@ -2951,7 +2951,7 @@ function ps() {
2951
2951
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
2952
2952
  if (W(M, "numericSeparator") && typeof M.numericSeparator != "boolean")
2953
2953
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
2954
- var je = M.numericSeparator;
2954
+ var Se = M.numericSeparator;
2955
2955
  if (typeof S > "u")
2956
2956
  return "undefined";
2957
2957
  if (S === null)
@@ -2959,27 +2959,27 @@ function ps() {
2959
2959
  if (typeof S == "boolean")
2960
2960
  return S ? "true" : "false";
2961
2961
  if (typeof S == "string")
2962
- return Se(S, M);
2962
+ return je(S, M);
2963
2963
  if (typeof S == "number") {
2964
2964
  if (S === 0)
2965
2965
  return 1 / 0 / S > 0 ? "0" : "-0";
2966
2966
  var de = String(S);
2967
- return je ? N(S, de) : de;
2967
+ return Se ? A(S, de) : de;
2968
2968
  }
2969
2969
  if (typeof S == "bigint") {
2970
2970
  var be = String(S) + "n";
2971
- return je ? N(S, be) : be;
2971
+ return Se ? A(S, be) : be;
2972
2972
  }
2973
2973
  var at = typeof M.depth > "u" ? 5 : M.depth;
2974
2974
  if (typeof ee > "u" && (ee = 0), ee >= at && at > 0 && typeof S == "object")
2975
2975
  return U(S) ? "[Array]" : "[Object]";
2976
- var Ce = ja(M, ee);
2976
+ var Ce = Sa(M, ee);
2977
2977
  if (typeof ie > "u")
2978
2978
  ie = [];
2979
2979
  else if (he(ie, S) >= 0)
2980
2980
  return "[Circular]";
2981
2981
  function me(Ee, We, Ta) {
2982
- if (We && (ie = A.call(ie), ie.push(We)), Ta) {
2982
+ if (We && (ie = N.call(ie), ie.push(We)), Ta) {
2983
2983
  var Nr = {
2984
2984
  depth: M.depth
2985
2985
  };
@@ -2989,7 +2989,7 @@ function ps() {
2989
2989
  }
2990
2990
  if (typeof S == "function" && !z(S)) {
2991
2991
  var Tr = ae(S), Pr = Me(S, me);
2992
- return "[Function" + (Tr ? ": " + Tr : " (anonymous)") + "]" + (Pr.length > 0 ? " { " + q.call(Pr, ", ") + " }" : "");
2992
+ return "[Function" + (Tr ? ": " + Tr : " (anonymous)") + "]" + (Pr.length > 0 ? " { " + E.call(Pr, ", ") + " }" : "");
2993
2993
  }
2994
2994
  if (_(S)) {
2995
2995
  var qr = H ? j.call(String(S), /^(Symbol\(.*\))_[^)]*$/, "$1") : oe.call(S);
@@ -2997,18 +2997,18 @@ function ps() {
2997
2997
  }
2998
2998
  if (qe(S)) {
2999
2999
  for (var Ne = "<" + p.call(String(S.nodeName)), ot = S.attributes || [], ze = 0; ze < ot.length; ze++)
3000
- Ne += " " + ot[ze].name + "=" + F(C(ot[ze].value), "double", M);
3000
+ Ne += " " + ot[ze].name + "=" + F(q(ot[ze].value), "double", M);
3001
3001
  return Ne += ">", S.childNodes && S.childNodes.length && (Ne += "..."), Ne += "</" + p.call(String(S.nodeName)) + ">", Ne;
3002
3002
  }
3003
3003
  if (U(S)) {
3004
3004
  if (S.length === 0)
3005
3005
  return "[]";
3006
3006
  var it = Me(S, me);
3007
- return Ce && !Sa(it) ? "[" + nt(it, Ce) + "]" : "[ " + q.call(it, ", ") + " ]";
3007
+ return Ce && !ja(it) ? "[" + nt(it, Ce) + "]" : "[ " + E.call(it, ", ") + " ]";
3008
3008
  }
3009
3009
  if (K(S)) {
3010
3010
  var st = Me(S, me);
3011
- return !("cause" in Error.prototype) && "cause" in S && !se.call(S, "cause") ? "{ [" + String(S) + "] " + q.call(b.call("[cause]: " + me(S.cause), st), ", ") + " }" : st.length === 0 ? "[" + String(S) + "]" : "{ [" + String(S) + "] " + q.call(st, ", ") + " }";
3011
+ return !("cause" in Error.prototype) && "cause" in S && !se.call(S, "cause") ? "{ [" + String(S) + "] " + E.call(b.call("[cause]: " + me(S.cause), st), ", ") + " }" : st.length === 0 ? "[" + String(S) + "]" : "{ [" + String(S) + "] " + E.call(st, ", ") + " }";
3012
3012
  }
3013
3013
  if (typeof S == "object" && ve) {
3014
3014
  if (k && typeof S[k] == "function" && re)
@@ -3047,8 +3047,8 @@ function ps() {
3047
3047
  if (typeof globalThis < "u" && S === globalThis || typeof Ke < "u" && S === Ke)
3048
3048
  return "{ [object globalThis] }";
3049
3049
  if (!J(S) && !z(S)) {
3050
- var lt = Me(S, me), Rr = Z ? Z(S) === Object.prototype : S instanceof Object || S.constructor === Object, ct = S instanceof Object ? "" : "null prototype", kr = !Rr && D && Object(S) === S && D in S ? d.call(Y(S), 8, -1) : ct ? "Object" : "", Oa = Rr || typeof S.constructor != "function" ? "" : S.constructor.name ? S.constructor.name + " " : "", ut = Oa + (kr || ct ? "[" + q.call(b.call([], kr || [], ct || []), ": ") + "] " : "");
3051
- return lt.length === 0 ? ut + "{}" : Ce ? ut + "{" + nt(lt, Ce) + "}" : ut + "{ " + q.call(lt, ", ") + " }";
3050
+ var lt = Me(S, me), Rr = Z ? Z(S) === Object.prototype : S instanceof Object || S.constructor === Object, ct = S instanceof Object ? "" : "null prototype", kr = !Rr && D && Object(S) === S && D in S ? d.call(Y(S), 8, -1) : ct ? "Object" : "", Oa = Rr || typeof S.constructor != "function" ? "" : S.constructor.name ? S.constructor.name + " " : "", ut = Oa + (kr || ct ? "[" + E.call(b.call([], kr || [], ct || []), ": ") + "] " : "");
3051
+ return lt.length === 0 ? ut + "{}" : Ce ? ut + "{" + nt(lt, Ce) + "}" : ut + "{ " + E.call(lt, ", ") + " }";
3052
3052
  }
3053
3053
  return String(S);
3054
3054
  };
@@ -3056,7 +3056,7 @@ function ps() {
3056
3056
  var ee = (X.quoteStyle || S) === "double" ? '"' : "'";
3057
3057
  return ee + w + ee;
3058
3058
  }
3059
- function C(w) {
3059
+ function q(w) {
3060
3060
  return j.call(String(w), /"/g, "&quot;");
3061
3061
  }
3062
3062
  function U(w) {
@@ -3114,7 +3114,7 @@ function ps() {
3114
3114
  function ae(w) {
3115
3115
  if (w.name)
3116
3116
  return w.name;
3117
- var S = h.call(u.call(w), /^function\s*([\w$]+)/);
3117
+ var S = h.call(f.call(w), /^function\s*([\w$]+)/);
3118
3118
  return S ? S[1] : null;
3119
3119
  }
3120
3120
  function he(w, S) {
@@ -3197,10 +3197,10 @@ function ps() {
3197
3197
  function qe(w) {
3198
3198
  return !w || typeof w != "object" ? !1 : typeof HTMLElement < "u" && w instanceof HTMLElement ? !0 : typeof w.nodeName == "string" && typeof w.getAttribute == "function";
3199
3199
  }
3200
- function Se(w, S) {
3200
+ function je(w, S) {
3201
3201
  if (w.length > S.maxStringLength) {
3202
3202
  var X = w.length - S.maxStringLength, ee = "... " + X + " more character" + (X > 1 ? "s" : "");
3203
- return Se(d.call(w, 0, S.maxStringLength), S) + ee;
3203
+ return je(d.call(w, 0, S.maxStringLength), S) + ee;
3204
3204
  }
3205
3205
  var ie = j.call(j.call(w, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, wa);
3206
3206
  return F(ie, "single", S);
@@ -3222,27 +3222,27 @@ function ps() {
3222
3222
  return w + " { ? }";
3223
3223
  }
3224
3224
  function Or(w, S, X, ee) {
3225
- var ie = ee ? nt(X, ee) : q.call(X, ", ");
3225
+ var ie = ee ? nt(X, ee) : E.call(X, ", ");
3226
3226
  return w + " (" + S + ") {" + ie + "}";
3227
3227
  }
3228
- function Sa(w) {
3228
+ function ja(w) {
3229
3229
  for (var S = 0; S < w.length; S++)
3230
3230
  if (he(w[S], `
3231
3231
  `) >= 0)
3232
3232
  return !1;
3233
3233
  return !0;
3234
3234
  }
3235
- function ja(w, S) {
3235
+ function Sa(w, S) {
3236
3236
  var X;
3237
3237
  if (w.indent === " ")
3238
3238
  X = " ";
3239
3239
  else if (typeof w.indent == "number" && w.indent > 0)
3240
- X = q.call(Array(w.indent + 1), " ");
3240
+ X = E.call(Array(w.indent + 1), " ");
3241
3241
  else
3242
3242
  return null;
3243
3243
  return {
3244
3244
  base: X,
3245
- prev: q.call(Array(S + 1), X)
3245
+ prev: E.call(Array(S + 1), X)
3246
3246
  };
3247
3247
  }
3248
3248
  function nt(w, S) {
@@ -3250,7 +3250,7 @@ function ps() {
3250
3250
  return "";
3251
3251
  var X = `
3252
3252
  ` + S.prev + S.base;
3253
- return X + q.call(w, "," + X) + `
3253
+ return X + E.call(w, "," + X) + `
3254
3254
  ` + S.prev;
3255
3255
  }
3256
3256
  function Me(w, S) {
@@ -3263,8 +3263,8 @@ function ps() {
3263
3263
  var M = typeof P == "function" ? P(w) : [], ve;
3264
3264
  if (H) {
3265
3265
  ve = {};
3266
- for (var je = 0; je < M.length; je++)
3267
- ve["$" + M[je]] = M[je];
3266
+ for (var Se = 0; Se < M.length; Se++)
3267
+ ve["$" + M[Se]] = M[Se];
3268
3268
  }
3269
3269
  for (var de in w)
3270
3270
  W(w, de) && (X && String(Number(de)) === de && de < w.length || H && ve["$" + de] instanceof Symbol || (O.call(/[^\w$]/, de) ? ee.push(S(de, w) + ": " + S(w[de], w)) : ee.push(de + ": " + S(w[de], w))));
@@ -3276,28 +3276,28 @@ function ps() {
3276
3276
  return tr;
3277
3277
  }
3278
3278
  var rr, zn;
3279
- function ds() {
3279
+ function hs() {
3280
3280
  if (zn) return rr;
3281
3281
  zn = 1;
3282
- var e = /* @__PURE__ */ $r(), n = ls(), t = /* @__PURE__ */ ps(), a = /* @__PURE__ */ Be(), c = e("%WeakMap%", !0), s = e("%Map%", !0), r = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), f = n("Map.prototype.set", !0), y = n("Map.prototype.has", !0), g = function(u, h) {
3283
- for (var d = u, j; (j = d.next) !== null; d = j)
3282
+ var e = /* @__PURE__ */ $r(), n = cs(), t = /* @__PURE__ */ ds(), a = /* @__PURE__ */ Be(), c = e("%WeakMap%", !0), s = e("%Map%", !0), r = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), u = n("Map.prototype.set", !0), y = n("Map.prototype.has", !0), g = function(f, h) {
3283
+ for (var d = f, j; (j = d.next) !== null; d = j)
3284
3284
  if (j.key === h)
3285
3285
  return d.next = j.next, j.next = /** @type {NonNullable<typeof list.next>} */
3286
- u.next, u.next = j, j;
3287
- }, m = function(u, h) {
3288
- var d = g(u, h);
3286
+ f.next, f.next = j, j;
3287
+ }, m = function(f, h) {
3288
+ var d = g(f, h);
3289
3289
  return d && d.value;
3290
- }, x = function(u, h, d) {
3291
- var j = g(u, h);
3292
- j ? j.value = d : u.next = /** @type {import('.').ListNode<typeof value>} */
3290
+ }, x = function(f, h, d) {
3291
+ var j = g(f, h);
3292
+ j ? j.value = d : f.next = /** @type {import('.').ListNode<typeof value>} */
3293
3293
  {
3294
3294
  // eslint-disable-line no-param-reassign, no-extra-parens
3295
3295
  key: h,
3296
- next: u.next,
3296
+ next: f.next,
3297
3297
  value: d
3298
3298
  };
3299
- }, v = function(u, h) {
3300
- return !!g(u, h);
3299
+ }, v = function(f, h) {
3300
+ return !!g(f, h);
3301
3301
  };
3302
3302
  return rr = function() {
3303
3303
  var h, d, j, T = {
@@ -3327,7 +3327,7 @@ function ds() {
3327
3327
  return !1;
3328
3328
  },
3329
3329
  set: function(p, O) {
3330
- c && p && (typeof p == "object" || typeof p == "function") ? (h || (h = new c()), o(h, p, O)) : s ? (d || (d = new s()), f(d, p, O)) : (j || (j = { key: {}, next: null }), x(j, p, O));
3330
+ c && p && (typeof p == "object" || typeof p == "function") ? (h || (h = new c()), o(h, p, O)) : s ? (d || (d = new s()), u(d, p, O)) : (j || (j = { key: {}, next: null }), x(j, p, O));
3331
3331
  }
3332
3332
  };
3333
3333
  return T;
@@ -3360,9 +3360,9 @@ function ma() {
3360
3360
  if (Jn) return ar;
3361
3361
  Jn = 1;
3362
3362
  var e = /* @__PURE__ */ wr(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = function() {
3363
- for (var u = [], h = 0; h < 256; ++h)
3364
- u.push("%" + ((h < 16 ? "0" : "") + h.toString(16)).toUpperCase());
3365
- return u;
3363
+ for (var f = [], h = 0; h < 256; ++h)
3364
+ f.push("%" + ((h < 16 ? "0" : "") + h.toString(16)).toUpperCase());
3365
+ return f;
3366
3366
  }(), c = function(h) {
3367
3367
  for (; h.length > 1; ) {
3368
3368
  var d = h.pop(), j = d.obj[d.prop];
@@ -3376,7 +3376,7 @@ function ma() {
3376
3376
  for (var j = d && d.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, T = 0; T < h.length; ++T)
3377
3377
  typeof h[T] < "u" && (j[T] = h[T]);
3378
3378
  return j;
3379
- }, r = function u(h, d, j) {
3379
+ }, r = function f(h, d, j) {
3380
3380
  if (!d)
3381
3381
  return h;
3382
3382
  if (typeof d != "object") {
@@ -3394,19 +3394,19 @@ function ma() {
3394
3394
  return t(h) && !t(d) && (T = s(h, j)), t(h) && t(d) ? (d.forEach(function(p, O) {
3395
3395
  if (n.call(h, O)) {
3396
3396
  var b = h[O];
3397
- b && typeof b == "object" && p && typeof p == "object" ? h[O] = u(b, p, j) : h.push(p);
3397
+ b && typeof b == "object" && p && typeof p == "object" ? h[O] = f(b, p, j) : h.push(p);
3398
3398
  } else
3399
3399
  h[O] = p;
3400
3400
  }), h) : Object.keys(d).reduce(function(p, O) {
3401
3401
  var b = d[O];
3402
- return n.call(p, O) ? p[O] = u(p[O], b, j) : p[O] = b, p;
3402
+ return n.call(p, O) ? p[O] = f(p[O], b, j) : p[O] = b, p;
3403
3403
  }, T);
3404
3404
  }, o = function(h, d) {
3405
3405
  return Object.keys(d).reduce(function(j, T) {
3406
3406
  return j[T] = d[T], j;
3407
3407
  }, h);
3408
- }, i = function(u, h, d) {
3409
- var j = u.replace(/\+/g, " ");
3408
+ }, i = function(f, h, d) {
3409
+ var j = f.replace(/\+/g, " ");
3410
3410
  if (d === "iso-8859-1")
3411
3411
  return j.replace(/%[0-9a-f]{2}/gi, unescape);
3412
3412
  try {
@@ -3414,7 +3414,7 @@ function ma() {
3414
3414
  } catch {
3415
3415
  return j;
3416
3416
  }
3417
- }, l = 1024, f = function(h, d, j, T, p) {
3417
+ }, l = 1024, u = function(h, d, j, T, p) {
3418
3418
  if (h.length === 0)
3419
3419
  return h;
3420
3420
  var O = h;
@@ -3422,35 +3422,35 @@ function ma() {
3422
3422
  return escape(O).replace(/%u[0-9a-f]{4}/gi, function(oe) {
3423
3423
  return "%26%23" + parseInt(oe.slice(2), 16) + "%3B";
3424
3424
  });
3425
- for (var b = "", q = 0; q < O.length; q += l) {
3426
- for (var A = O.length >= l ? O.slice(q, q + l) : O, E = [], L = 0; L < A.length; ++L) {
3427
- var P = A.charCodeAt(L);
3425
+ for (var b = "", E = 0; E < O.length; E += l) {
3426
+ for (var N = O.length >= l ? O.slice(E, E + l) : O, C = [], L = 0; L < N.length; ++L) {
3427
+ var P = N.charCodeAt(L);
3428
3428
  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)) {
3429
- E[E.length] = A.charAt(L);
3429
+ C[C.length] = N.charAt(L);
3430
3430
  continue;
3431
3431
  }
3432
3432
  if (P < 128) {
3433
- E[E.length] = a[P];
3433
+ C[C.length] = a[P];
3434
3434
  continue;
3435
3435
  }
3436
3436
  if (P < 2048) {
3437
- E[E.length] = a[192 | P >> 6] + a[128 | P & 63];
3437
+ C[C.length] = a[192 | P >> 6] + a[128 | P & 63];
3438
3438
  continue;
3439
3439
  }
3440
3440
  if (P < 55296 || P >= 57344) {
3441
- E[E.length] = a[224 | P >> 12] + a[128 | P >> 6 & 63] + a[128 | P & 63];
3441
+ C[C.length] = a[224 | P >> 12] + a[128 | P >> 6 & 63] + a[128 | P & 63];
3442
3442
  continue;
3443
3443
  }
3444
- L += 1, P = 65536 + ((P & 1023) << 10 | A.charCodeAt(L) & 1023), E[E.length] = a[240 | P >> 18] + a[128 | P >> 12 & 63] + a[128 | P >> 6 & 63] + a[128 | P & 63];
3444
+ L += 1, P = 65536 + ((P & 1023) << 10 | N.charCodeAt(L) & 1023), C[C.length] = a[240 | P >> 18] + a[128 | P >> 12 & 63] + a[128 | P >> 6 & 63] + a[128 | P & 63];
3445
3445
  }
3446
- b += E.join("");
3446
+ b += C.join("");
3447
3447
  }
3448
3448
  return b;
3449
3449
  }, y = function(h) {
3450
3450
  for (var d = [{ obj: { o: h }, prop: "o" }], j = [], T = 0; T < d.length; ++T)
3451
- for (var p = d[T], O = p.obj[p.prop], b = Object.keys(O), q = 0; q < b.length; ++q) {
3452
- var A = b[q], E = O[A];
3453
- typeof E == "object" && E !== null && j.indexOf(E) === -1 && (d.push({ obj: O, prop: A }), j.push(E));
3451
+ for (var p = d[T], O = p.obj[p.prop], b = Object.keys(O), E = 0; E < b.length; ++E) {
3452
+ var N = b[E], C = O[N];
3453
+ typeof C == "object" && C !== null && j.indexOf(C) === -1 && (d.push({ obj: O, prop: N }), j.push(C));
3454
3454
  }
3455
3455
  return c(d), h;
3456
3456
  }, g = function(h) {
@@ -3473,7 +3473,7 @@ function ma() {
3473
3473
  combine: x,
3474
3474
  compact: y,
3475
3475
  decode: i,
3476
- encode: f,
3476
+ encode: u,
3477
3477
  isBuffer: m,
3478
3478
  isRegExp: g,
3479
3479
  maybeMap: v,
@@ -3481,23 +3481,23 @@ function ma() {
3481
3481
  }, ar;
3482
3482
  }
3483
3483
  var or, Gn;
3484
- function hs() {
3484
+ function ys() {
3485
3485
  if (Gn) return or;
3486
3486
  Gn = 1;
3487
- var e = ds(), n = /* @__PURE__ */ ma(), t = /* @__PURE__ */ wr(), a = Object.prototype.hasOwnProperty, c = {
3488
- brackets: function(u) {
3489
- return u + "[]";
3487
+ var e = hs(), n = /* @__PURE__ */ ma(), t = /* @__PURE__ */ wr(), a = Object.prototype.hasOwnProperty, c = {
3488
+ brackets: function(f) {
3489
+ return f + "[]";
3490
3490
  },
3491
3491
  comma: "comma",
3492
- indices: function(u, h) {
3493
- return u + "[" + h + "]";
3492
+ indices: function(f, h) {
3493
+ return f + "[" + h + "]";
3494
3494
  },
3495
- repeat: function(u) {
3496
- return u;
3495
+ repeat: function(f) {
3496
+ return f;
3497
3497
  }
3498
- }, s = Array.isArray, r = Array.prototype.push, o = function(v, u) {
3499
- r.apply(v, s(u) ? u : [u]);
3500
- }, i = Date.prototype.toISOString, l = t.default, f = {
3498
+ }, s = Array.isArray, r = Array.prototype.push, o = function(v, f) {
3499
+ r.apply(v, s(f) ? f : [f]);
3500
+ }, i = Date.prototype.toISOString, l = t.default, u = {
3501
3501
  addQueryPrefix: !1,
3502
3502
  allowDots: !1,
3503
3503
  allowEmptyArrays: !1,
@@ -3513,16 +3513,16 @@ function hs() {
3513
3513
  formatter: t.formatters[l],
3514
3514
  // deprecated
3515
3515
  indices: !1,
3516
- serializeDate: function(u) {
3517
- return i.call(u);
3516
+ serializeDate: function(f) {
3517
+ return i.call(f);
3518
3518
  },
3519
3519
  skipNulls: !1,
3520
3520
  strictNullHandling: !1
3521
- }, y = function(u) {
3522
- return typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "symbol" || typeof u == "bigint";
3523
- }, g = {}, m = function v(u, h, d, j, T, p, O, b, q, A, E, L, P, oe, H, D, se, Z) {
3524
- for (var N = u, re = Z, R = 0, k = !1; (re = re.get(g)) !== void 0 && !k; ) {
3525
- var F = re.get(u);
3521
+ }, y = function(f) {
3522
+ return typeof f == "string" || typeof f == "number" || typeof f == "boolean" || typeof f == "symbol" || typeof f == "bigint";
3523
+ }, g = {}, m = function v(f, h, d, j, T, p, O, b, E, N, C, L, P, oe, H, D, se, Z) {
3524
+ for (var A = f, re = Z, R = 0, k = !1; (re = re.get(g)) !== void 0 && !k; ) {
3525
+ var F = re.get(f);
3526
3526
  if (R += 1, typeof F < "u") {
3527
3527
  if (F === R)
3528
3528
  throw new RangeError("Cyclic object value");
@@ -3530,40 +3530,40 @@ function hs() {
3530
3530
  }
3531
3531
  typeof re.get(g) > "u" && (R = 0);
3532
3532
  }
3533
- if (typeof A == "function" ? N = A(h, N) : N instanceof Date ? N = P(N) : d === "comma" && s(N) && (N = n.maybeMap(N, function(Y) {
3533
+ if (typeof N == "function" ? A = N(h, A) : A instanceof Date ? A = P(A) : d === "comma" && s(A) && (A = n.maybeMap(A, function(Y) {
3534
3534
  return Y instanceof Date ? P(Y) : Y;
3535
- })), N === null) {
3535
+ })), A === null) {
3536
3536
  if (p)
3537
- return q && !D ? q(h, f.encoder, se, "key", oe) : h;
3538
- N = "";
3537
+ return E && !D ? E(h, u.encoder, se, "key", oe) : h;
3538
+ A = "";
3539
3539
  }
3540
- if (y(N) || n.isBuffer(N)) {
3541
- if (q) {
3542
- var C = D ? h : q(h, f.encoder, se, "key", oe);
3543
- return [H(C) + "=" + H(q(N, f.encoder, se, "value", oe))];
3540
+ if (y(A) || n.isBuffer(A)) {
3541
+ if (E) {
3542
+ var q = D ? h : E(h, u.encoder, se, "key", oe);
3543
+ return [H(q) + "=" + H(E(A, u.encoder, se, "value", oe))];
3544
3544
  }
3545
- return [H(h) + "=" + H(String(N))];
3545
+ return [H(h) + "=" + H(String(A))];
3546
3546
  }
3547
3547
  var U = [];
3548
- if (typeof N > "u")
3548
+ if (typeof A > "u")
3549
3549
  return U;
3550
3550
  var J;
3551
- if (d === "comma" && s(N))
3552
- D && q && (N = n.maybeMap(N, q)), J = [{ value: N.length > 0 ? N.join(",") || null : void 0 }];
3553
- else if (s(A))
3554
- J = A;
3551
+ if (d === "comma" && s(A))
3552
+ D && E && (A = n.maybeMap(A, E)), J = [{ value: A.length > 0 ? A.join(",") || null : void 0 }];
3553
+ else if (s(N))
3554
+ J = N;
3555
3555
  else {
3556
- var z = Object.keys(N);
3557
- J = E ? z.sort(E) : z;
3556
+ var z = Object.keys(A);
3557
+ J = C ? z.sort(C) : z;
3558
3558
  }
3559
- var K = b ? h.replace(/\./g, "%2E") : h, ne = j && s(N) && N.length === 1 ? K + "[]" : K;
3560
- if (T && s(N) && N.length === 0)
3559
+ var K = b ? h.replace(/\./g, "%2E") : h, ne = j && s(A) && A.length === 1 ? K + "[]" : K;
3560
+ if (T && s(A) && A.length === 0)
3561
3561
  return ne + "[]";
3562
3562
  for (var G = 0; G < J.length; ++G) {
3563
- var I = J[G], _ = typeof I == "object" && typeof I.value < "u" ? I.value : N[I];
3563
+ var I = J[G], _ = typeof I == "object" && typeof I.value < "u" ? I.value : A[I];
3564
3564
  if (!(O && _ === null)) {
3565
- var B = L && b ? I.replace(/\./g, "%2E") : I, Q = s(N) ? typeof d == "function" ? d(ne, B) : ne : ne + (L ? "." + B : "[" + B + "]");
3566
- Z.set(u, R);
3565
+ var B = L && b ? I.replace(/\./g, "%2E") : I, Q = s(A) ? typeof d == "function" ? d(ne, B) : ne : ne + (L ? "." + B : "[" + B + "]");
3566
+ Z.set(f, R);
3567
3567
  var W = e();
3568
3568
  W.set(g, Z), o(U, v(
3569
3569
  _,
@@ -3574,9 +3574,9 @@ function hs() {
3574
3574
  p,
3575
3575
  O,
3576
3576
  b,
3577
- d === "comma" && D && s(N) ? null : q,
3578
- A,
3579
- E,
3577
+ d === "comma" && D && s(A) ? null : E,
3578
+ N,
3579
+ C,
3580
3580
  L,
3581
3581
  P,
3582
3582
  oe,
@@ -3588,65 +3588,65 @@ function hs() {
3588
3588
  }
3589
3589
  }
3590
3590
  return U;
3591
- }, x = function(u) {
3592
- if (!u)
3593
- return f;
3594
- if (typeof u.allowEmptyArrays < "u" && typeof u.allowEmptyArrays != "boolean")
3591
+ }, x = function(f) {
3592
+ if (!f)
3593
+ return u;
3594
+ if (typeof f.allowEmptyArrays < "u" && typeof f.allowEmptyArrays != "boolean")
3595
3595
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3596
- if (typeof u.encodeDotInKeys < "u" && typeof u.encodeDotInKeys != "boolean")
3596
+ if (typeof f.encodeDotInKeys < "u" && typeof f.encodeDotInKeys != "boolean")
3597
3597
  throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
3598
- if (u.encoder !== null && typeof u.encoder < "u" && typeof u.encoder != "function")
3598
+ if (f.encoder !== null && typeof f.encoder < "u" && typeof f.encoder != "function")
3599
3599
  throw new TypeError("Encoder has to be a function.");
3600
- var h = u.charset || f.charset;
3601
- if (typeof u.charset < "u" && u.charset !== "utf-8" && u.charset !== "iso-8859-1")
3600
+ var h = f.charset || u.charset;
3601
+ if (typeof f.charset < "u" && f.charset !== "utf-8" && f.charset !== "iso-8859-1")
3602
3602
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3603
3603
  var d = t.default;
3604
- if (typeof u.format < "u") {
3605
- if (!a.call(t.formatters, u.format))
3604
+ if (typeof f.format < "u") {
3605
+ if (!a.call(t.formatters, f.format))
3606
3606
  throw new TypeError("Unknown format option provided.");
3607
- d = u.format;
3607
+ d = f.format;
3608
3608
  }
3609
- var j = t.formatters[d], T = f.filter;
3610
- (typeof u.filter == "function" || s(u.filter)) && (T = u.filter);
3609
+ var j = t.formatters[d], T = u.filter;
3610
+ (typeof f.filter == "function" || s(f.filter)) && (T = f.filter);
3611
3611
  var p;
3612
- if (u.arrayFormat in c ? p = u.arrayFormat : "indices" in u ? p = u.indices ? "indices" : "repeat" : p = f.arrayFormat, "commaRoundTrip" in u && typeof u.commaRoundTrip != "boolean")
3612
+ if (f.arrayFormat in c ? p = f.arrayFormat : "indices" in f ? p = f.indices ? "indices" : "repeat" : p = u.arrayFormat, "commaRoundTrip" in f && typeof f.commaRoundTrip != "boolean")
3613
3613
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
3614
- var O = typeof u.allowDots > "u" ? u.encodeDotInKeys === !0 ? !0 : f.allowDots : !!u.allowDots;
3614
+ var O = typeof f.allowDots > "u" ? f.encodeDotInKeys === !0 ? !0 : u.allowDots : !!f.allowDots;
3615
3615
  return {
3616
- addQueryPrefix: typeof u.addQueryPrefix == "boolean" ? u.addQueryPrefix : f.addQueryPrefix,
3616
+ addQueryPrefix: typeof f.addQueryPrefix == "boolean" ? f.addQueryPrefix : u.addQueryPrefix,
3617
3617
  allowDots: O,
3618
- allowEmptyArrays: typeof u.allowEmptyArrays == "boolean" ? !!u.allowEmptyArrays : f.allowEmptyArrays,
3618
+ allowEmptyArrays: typeof f.allowEmptyArrays == "boolean" ? !!f.allowEmptyArrays : u.allowEmptyArrays,
3619
3619
  arrayFormat: p,
3620
3620
  charset: h,
3621
- charsetSentinel: typeof u.charsetSentinel == "boolean" ? u.charsetSentinel : f.charsetSentinel,
3622
- commaRoundTrip: u.commaRoundTrip,
3623
- delimiter: typeof u.delimiter > "u" ? f.delimiter : u.delimiter,
3624
- encode: typeof u.encode == "boolean" ? u.encode : f.encode,
3625
- encodeDotInKeys: typeof u.encodeDotInKeys == "boolean" ? u.encodeDotInKeys : f.encodeDotInKeys,
3626
- encoder: typeof u.encoder == "function" ? u.encoder : f.encoder,
3627
- encodeValuesOnly: typeof u.encodeValuesOnly == "boolean" ? u.encodeValuesOnly : f.encodeValuesOnly,
3621
+ charsetSentinel: typeof f.charsetSentinel == "boolean" ? f.charsetSentinel : u.charsetSentinel,
3622
+ commaRoundTrip: f.commaRoundTrip,
3623
+ delimiter: typeof f.delimiter > "u" ? u.delimiter : f.delimiter,
3624
+ encode: typeof f.encode == "boolean" ? f.encode : u.encode,
3625
+ encodeDotInKeys: typeof f.encodeDotInKeys == "boolean" ? f.encodeDotInKeys : u.encodeDotInKeys,
3626
+ encoder: typeof f.encoder == "function" ? f.encoder : u.encoder,
3627
+ encodeValuesOnly: typeof f.encodeValuesOnly == "boolean" ? f.encodeValuesOnly : u.encodeValuesOnly,
3628
3628
  filter: T,
3629
3629
  format: d,
3630
3630
  formatter: j,
3631
- serializeDate: typeof u.serializeDate == "function" ? u.serializeDate : f.serializeDate,
3632
- skipNulls: typeof u.skipNulls == "boolean" ? u.skipNulls : f.skipNulls,
3633
- sort: typeof u.sort == "function" ? u.sort : null,
3634
- strictNullHandling: typeof u.strictNullHandling == "boolean" ? u.strictNullHandling : f.strictNullHandling
3631
+ serializeDate: typeof f.serializeDate == "function" ? f.serializeDate : u.serializeDate,
3632
+ skipNulls: typeof f.skipNulls == "boolean" ? f.skipNulls : u.skipNulls,
3633
+ sort: typeof f.sort == "function" ? f.sort : null,
3634
+ strictNullHandling: typeof f.strictNullHandling == "boolean" ? f.strictNullHandling : u.strictNullHandling
3635
3635
  };
3636
3636
  };
3637
- return or = function(v, u) {
3638
- var h = v, d = x(u), j, T;
3637
+ return or = function(v, f) {
3638
+ var h = v, d = x(f), j, T;
3639
3639
  typeof d.filter == "function" ? (T = d.filter, h = T("", h)) : s(d.filter) && (T = d.filter, j = T);
3640
3640
  var p = [];
3641
3641
  if (typeof h != "object" || h === null)
3642
3642
  return "";
3643
3643
  var O = c[d.arrayFormat], b = O === "comma" && d.commaRoundTrip;
3644
3644
  j || (j = Object.keys(h)), d.sort && j.sort(d.sort);
3645
- for (var q = e(), A = 0; A < j.length; ++A) {
3646
- var E = j[A];
3647
- d.skipNulls && h[E] === null || o(p, m(
3648
- h[E],
3649
- E,
3645
+ for (var E = e(), N = 0; N < j.length; ++N) {
3646
+ var C = j[N];
3647
+ d.skipNulls && h[C] === null || o(p, m(
3648
+ h[C],
3649
+ C,
3650
3650
  O,
3651
3651
  b,
3652
3652
  d.allowEmptyArrays,
@@ -3662,7 +3662,7 @@ function hs() {
3662
3662
  d.formatter,
3663
3663
  d.encodeValuesOnly,
3664
3664
  d.charset,
3665
- q
3665
+ E
3666
3666
  ));
3667
3667
  }
3668
3668
  var L = p.join(d.delimiter), P = d.addQueryPrefix === !0 ? "?" : "";
@@ -3670,7 +3670,7 @@ function hs() {
3670
3670
  }, or;
3671
3671
  }
3672
3672
  var ir, Vn;
3673
- function ys() {
3673
+ function ms() {
3674
3674
  if (Vn) return ir;
3675
3675
  Vn = 1;
3676
3676
  var e = /* @__PURE__ */ ma(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
@@ -3701,39 +3701,39 @@ function ys() {
3701
3701
  }, s = function(g, m) {
3702
3702
  return g && typeof g == "string" && m.comma && g.indexOf(",") > -1 ? g.split(",") : g;
3703
3703
  }, r = "utf8=%26%2310003%3B", o = "utf8=%E2%9C%93", i = function(m, x) {
3704
- var v = { __proto__: null }, u = x.ignoreQueryPrefix ? m.replace(/^\?/, "") : m;
3705
- u = u.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3706
- var h = x.parameterLimit === 1 / 0 ? void 0 : x.parameterLimit, d = u.split(x.delimiter, h), j = -1, T, p = x.charset;
3704
+ var v = { __proto__: null }, f = x.ignoreQueryPrefix ? m.replace(/^\?/, "") : m;
3705
+ f = f.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3706
+ var h = x.parameterLimit === 1 / 0 ? void 0 : x.parameterLimit, d = f.split(x.delimiter, h), j = -1, T, p = x.charset;
3707
3707
  if (x.charsetSentinel)
3708
3708
  for (T = 0; T < d.length; ++T)
3709
3709
  d[T].indexOf("utf8=") === 0 && (d[T] === o ? p = "utf-8" : d[T] === r && (p = "iso-8859-1"), j = T, T = d.length);
3710
3710
  for (T = 0; T < d.length; ++T)
3711
3711
  if (T !== j) {
3712
- var O = d[T], b = O.indexOf("]="), q = b === -1 ? O.indexOf("=") : b + 1, A, E;
3713
- q === -1 ? (A = x.decoder(O, a.decoder, p, "key"), E = x.strictNullHandling ? null : "") : (A = x.decoder(O.slice(0, q), a.decoder, p, "key"), E = e.maybeMap(
3714
- s(O.slice(q + 1), x),
3712
+ var O = d[T], b = O.indexOf("]="), E = b === -1 ? O.indexOf("=") : b + 1, N, C;
3713
+ E === -1 ? (N = x.decoder(O, a.decoder, p, "key"), C = x.strictNullHandling ? null : "") : (N = x.decoder(O.slice(0, E), a.decoder, p, "key"), C = e.maybeMap(
3714
+ s(O.slice(E + 1), x),
3715
3715
  function(P) {
3716
3716
  return x.decoder(P, a.decoder, p, "value");
3717
3717
  }
3718
- )), E && x.interpretNumericEntities && p === "iso-8859-1" && (E = c(E)), O.indexOf("[]=") > -1 && (E = t(E) ? [E] : E);
3719
- var L = n.call(v, A);
3720
- L && x.duplicates === "combine" ? v[A] = e.combine(v[A], E) : (!L || x.duplicates === "last") && (v[A] = E);
3718
+ )), C && x.interpretNumericEntities && p === "iso-8859-1" && (C = c(C)), O.indexOf("[]=") > -1 && (C = t(C) ? [C] : C);
3719
+ var L = n.call(v, N);
3720
+ L && x.duplicates === "combine" ? v[N] = e.combine(v[N], C) : (!L || x.duplicates === "last") && (v[N] = C);
3721
3721
  }
3722
3722
  return v;
3723
3723
  }, l = function(g, m, x, v) {
3724
- for (var u = v ? m : s(m, x), h = g.length - 1; h >= 0; --h) {
3724
+ for (var f = v ? m : s(m, x), h = g.length - 1; h >= 0; --h) {
3725
3725
  var d, j = g[h];
3726
3726
  if (j === "[]" && x.parseArrays)
3727
- d = x.allowEmptyArrays && (u === "" || x.strictNullHandling && u === null) ? [] : [].concat(u);
3727
+ d = x.allowEmptyArrays && (f === "" || x.strictNullHandling && f === null) ? [] : [].concat(f);
3728
3728
  else {
3729
3729
  d = x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3730
3730
  var T = j.charAt(0) === "[" && j.charAt(j.length - 1) === "]" ? j.slice(1, -1) : j, p = x.decodeDotInKeys ? T.replace(/%2E/g, ".") : T, O = parseInt(p, 10);
3731
- !x.parseArrays && p === "" ? d = { 0: u } : !isNaN(O) && j !== p && String(O) === p && O >= 0 && x.parseArrays && O <= x.arrayLimit ? (d = [], d[O] = u) : p !== "__proto__" && (d[p] = u);
3731
+ !x.parseArrays && p === "" ? d = { 0: f } : !isNaN(O) && j !== p && String(O) === p && O >= 0 && x.parseArrays && O <= x.arrayLimit ? (d = [], d[O] = f) : p !== "__proto__" && (d[p] = f);
3732
3732
  }
3733
- u = d;
3733
+ f = d;
3734
3734
  }
3735
- return u;
3736
- }, f = function(m, x, v, u) {
3735
+ return f;
3736
+ }, u = function(m, x, v, f) {
3737
3737
  if (m) {
3738
3738
  var h = v.allowDots ? m.replace(/\.([^.[]+)/g, "[$1]") : m, d = /(\[[^[\]]*])/, j = /(\[[^[\]]*])/g, T = v.depth > 0 && d.exec(h), p = T ? h.slice(0, T.index) : h, O = [];
3739
3739
  if (p) {
@@ -3751,7 +3751,7 @@ function ys() {
3751
3751
  throw new RangeError("Input depth exceeded depth option of " + v.depth + " and strictDepth is true");
3752
3752
  O.push("[" + h.slice(T.index) + "]");
3753
3753
  }
3754
- return l(O, x, v, u);
3754
+ return l(O, x, v, f);
3755
3755
  }
3756
3756
  }, y = function(m) {
3757
3757
  if (!m)
@@ -3767,9 +3767,9 @@ function ys() {
3767
3767
  var x = typeof m.charset > "u" ? a.charset : m.charset, v = typeof m.duplicates > "u" ? a.duplicates : m.duplicates;
3768
3768
  if (v !== "combine" && v !== "first" && v !== "last")
3769
3769
  throw new TypeError("The duplicates option must be either combine, first, or last");
3770
- var u = typeof m.allowDots > "u" ? m.decodeDotInKeys === !0 ? !0 : a.allowDots : !!m.allowDots;
3770
+ var f = typeof m.allowDots > "u" ? m.decodeDotInKeys === !0 ? !0 : a.allowDots : !!m.allowDots;
3771
3771
  return {
3772
- allowDots: u,
3772
+ allowDots: f,
3773
3773
  allowEmptyArrays: typeof m.allowEmptyArrays == "boolean" ? !!m.allowEmptyArrays : a.allowEmptyArrays,
3774
3774
  allowPrototypes: typeof m.allowPrototypes == "boolean" ? m.allowPrototypes : a.allowPrototypes,
3775
3775
  allowSparse: typeof m.allowSparse == "boolean" ? m.allowSparse : a.allowSparse,
@@ -3796,18 +3796,18 @@ function ys() {
3796
3796
  var x = y(m);
3797
3797
  if (g === "" || g === null || typeof g > "u")
3798
3798
  return x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3799
- for (var v = typeof g == "string" ? i(g, x) : g, u = x.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, h = Object.keys(v), d = 0; d < h.length; ++d) {
3800
- var j = h[d], T = f(j, v[j], x, typeof g == "string");
3801
- u = e.merge(u, T, x);
3799
+ for (var v = typeof g == "string" ? i(g, x) : g, f = x.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, h = Object.keys(v), d = 0; d < h.length; ++d) {
3800
+ var j = h[d], T = u(j, v[j], x, typeof g == "string");
3801
+ f = e.merge(f, T, x);
3802
3802
  }
3803
- return x.allowSparse === !0 ? u : e.compact(u);
3803
+ return x.allowSparse === !0 ? f : e.compact(f);
3804
3804
  }, ir;
3805
3805
  }
3806
3806
  var sr, Dn;
3807
3807
  function ga() {
3808
3808
  if (Dn) return sr;
3809
3809
  Dn = 1;
3810
- var e = /* @__PURE__ */ hs(), n = /* @__PURE__ */ ys(), t = /* @__PURE__ */ wr();
3810
+ var e = /* @__PURE__ */ ys(), n = /* @__PURE__ */ ms(), t = /* @__PURE__ */ wr();
3811
3811
  return sr = {
3812
3812
  formats: t,
3813
3813
  parse: n,
@@ -3815,10 +3815,10 @@ function ga() {
3815
3815
  }, sr;
3816
3816
  }
3817
3817
  var Qn;
3818
- function ms() {
3818
+ function gs() {
3819
3819
  if (Qn) return Oe;
3820
3820
  Qn = 1;
3821
- var e = Ii();
3821
+ var e = Ui();
3822
3822
  function n() {
3823
3823
  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;
3824
3824
  }
@@ -3849,7 +3849,7 @@ function ms() {
3849
3849
  "/",
3850
3850
  "?",
3851
3851
  "#"
3852
- ], f = 255, y = /^[+a-z0-9A-Z_-]{0,63}$/, g = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, m = {
3852
+ ], u = 255, y = /^[+a-z0-9A-Z_-]{0,63}$/, g = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, m = {
3853
3853
  javascript: !0,
3854
3854
  "javascript:": !0
3855
3855
  }, x = {
@@ -3866,23 +3866,23 @@ function ms() {
3866
3866
  "ftp:": !0,
3867
3867
  "gopher:": !0,
3868
3868
  "file:": !0
3869
- }, u = /* @__PURE__ */ ga();
3869
+ }, f = /* @__PURE__ */ ga();
3870
3870
  function h(p, O, b) {
3871
3871
  if (p && typeof p == "object" && p instanceof n)
3872
3872
  return p;
3873
- var q = new n();
3874
- return q.parse(p, O, b), q;
3873
+ var E = new n();
3874
+ return E.parse(p, O, b), E;
3875
3875
  }
3876
3876
  n.prototype.parse = function(p, O, b) {
3877
3877
  if (typeof p != "string")
3878
3878
  throw new TypeError("Parameter 'url' must be a string, not " + typeof p);
3879
- var q = p.indexOf("?"), A = q !== -1 && q < p.indexOf("#") ? "?" : "#", E = p.split(A), L = /\\/g;
3880
- E[0] = E[0].replace(L, "/"), p = E.join(A);
3879
+ var E = p.indexOf("?"), N = E !== -1 && E < p.indexOf("#") ? "?" : "#", C = p.split(N), L = /\\/g;
3880
+ C[0] = C[0].replace(L, "/"), p = C.join(N);
3881
3881
  var P = p;
3882
3882
  if (P = P.trim(), !b && p.split("#").length === 1) {
3883
3883
  var oe = c.exec(P);
3884
3884
  if (oe)
3885
- return this.path = P, this.href = P, this.pathname = oe[1], oe[2] ? (this.search = oe[2], O ? this.query = u.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : O && (this.search = "", this.query = {}), this;
3885
+ return this.path = P, this.href = P, this.pathname = oe[1], oe[2] ? (this.search = oe[2], O ? this.query = f.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : O && (this.search = "", this.query = {}), this;
3886
3886
  }
3887
3887
  var H = t.exec(P);
3888
3888
  if (H) {
@@ -3895,38 +3895,38 @@ function ms() {
3895
3895
  se && !(H && x[H]) && (P = P.substr(2), this.slashes = !0);
3896
3896
  }
3897
3897
  if (!x[H] && (se || H && !v[H])) {
3898
- for (var Z = -1, N = 0; N < l.length; N++) {
3899
- var re = P.indexOf(l[N]);
3898
+ for (var Z = -1, A = 0; A < l.length; A++) {
3899
+ var re = P.indexOf(l[A]);
3900
3900
  re !== -1 && (Z === -1 || re < Z) && (Z = re);
3901
3901
  }
3902
3902
  var R, k;
3903
3903
  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;
3904
- for (var N = 0; N < i.length; N++) {
3905
- var re = P.indexOf(i[N]);
3904
+ for (var A = 0; A < i.length; A++) {
3905
+ var re = P.indexOf(i[A]);
3906
3906
  re !== -1 && (Z === -1 || re < Z) && (Z = re);
3907
3907
  }
3908
3908
  Z === -1 && (Z = P.length), this.host = P.slice(0, Z), P = P.slice(Z), this.parseHost(), this.hostname = this.hostname || "";
3909
3909
  var F = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
3910
3910
  if (!F)
3911
- for (var C = this.hostname.split(/\./), N = 0, U = C.length; N < U; N++) {
3912
- var J = C[N];
3911
+ for (var q = this.hostname.split(/\./), A = 0, U = q.length; A < U; A++) {
3912
+ var J = q[A];
3913
3913
  if (J && !J.match(y)) {
3914
3914
  for (var z = "", K = 0, ne = J.length; K < ne; K++)
3915
3915
  J.charCodeAt(K) > 127 ? z += "x" : z += J[K];
3916
3916
  if (!z.match(y)) {
3917
- var G = C.slice(0, N), I = C.slice(N + 1), _ = J.match(g);
3917
+ var G = q.slice(0, A), I = q.slice(A + 1), _ = J.match(g);
3918
3918
  _ && (G.push(_[1]), I.unshift(_[2])), I.length && (P = "/" + I.join(".") + P), this.hostname = G.join(".");
3919
3919
  break;
3920
3920
  }
3921
3921
  }
3922
3922
  }
3923
- this.hostname.length > f ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), F || (this.hostname = e.toASCII(this.hostname));
3923
+ this.hostname.length > u ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), F || (this.hostname = e.toASCII(this.hostname));
3924
3924
  var B = this.port ? ":" + this.port : "", Q = this.hostname || "";
3925
3925
  this.host = Q + B, this.href += this.host, F && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), P[0] !== "/" && (P = "/" + P));
3926
3926
  }
3927
3927
  if (!m[D])
3928
- for (var N = 0, U = o.length; N < U; N++) {
3929
- var W = o[N];
3928
+ for (var A = 0, U = o.length; A < U; A++) {
3929
+ var W = o[A];
3930
3930
  if (P.indexOf(W) !== -1) {
3931
3931
  var Y = encodeURIComponent(W);
3932
3932
  Y === W && (Y = escape(W)), P = P.split(W).join(Y);
@@ -3935,7 +3935,7 @@ function ms() {
3935
3935
  var ae = P.indexOf("#");
3936
3936
  ae !== -1 && (this.hash = P.substr(ae), P = P.slice(0, ae));
3937
3937
  var he = P.indexOf("?");
3938
- if (he !== -1 ? (this.search = P.substr(he), this.query = P.substr(he + 1), O && (this.query = u.parse(this.query)), P = P.slice(0, he)) : O && (this.search = "", this.query = {}), P && (this.pathname = P), v[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3938
+ if (he !== -1 ? (this.search = P.substr(he), this.query = P.substr(he + 1), O && (this.query = f.parse(this.query)), P = P.slice(0, he)) : O && (this.search = "", this.query = {}), P && (this.pathname = P), v[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3939
3939
  var B = this.pathname || "", $e = this.search || "";
3940
3940
  this.path = B + $e;
3941
3941
  }
@@ -3947,15 +3947,15 @@ function ms() {
3947
3947
  n.prototype.format = function() {
3948
3948
  var p = this.auth || "";
3949
3949
  p && (p = encodeURIComponent(p), p = p.replace(/%3A/i, ":"), p += "@");
3950
- var O = this.protocol || "", b = this.pathname || "", q = this.hash || "", A = !1, E = "";
3951
- this.host ? A = p + this.host : this.hostname && (A = p + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (A += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (E = u.stringify(this.query, {
3950
+ var O = this.protocol || "", b = this.pathname || "", E = this.hash || "", N = !1, C = "";
3951
+ this.host ? N = p + this.host : this.hostname && (N = p + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (N += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (C = f.stringify(this.query, {
3952
3952
  arrayFormat: "repeat",
3953
3953
  addQueryPrefix: !1
3954
3954
  }));
3955
- var L = this.search || E && "?" + E || "";
3956
- return O && O.substr(-1) !== ":" && (O += ":"), this.slashes || (!O || v[O]) && A !== !1 ? (A = "//" + (A || ""), b && b.charAt(0) !== "/" && (b = "/" + b)) : A || (A = ""), q && q.charAt(0) !== "#" && (q = "#" + q), L && L.charAt(0) !== "?" && (L = "?" + L), b = b.replace(/[?#]/g, function(P) {
3955
+ var L = this.search || C && "?" + C || "";
3956
+ return O && O.substr(-1) !== ":" && (O += ":"), this.slashes || (!O || v[O]) && N !== !1 ? (N = "//" + (N || ""), b && b.charAt(0) !== "/" && (b = "/" + b)) : N || (N = ""), E && E.charAt(0) !== "#" && (E = "#" + E), L && L.charAt(0) !== "?" && (L = "?" + L), b = b.replace(/[?#]/g, function(P) {
3957
3957
  return encodeURIComponent(P);
3958
- }), L = L.replace("#", "%23"), O + A + b + L + q;
3958
+ }), L = L.replace("#", "%23"), O + N + b + L + E;
3959
3959
  };
3960
3960
  function j(p, O) {
3961
3961
  return h(p, !1, !0).resolve(O);
@@ -3971,9 +3971,9 @@ function ms() {
3971
3971
  var O = new n();
3972
3972
  O.parse(p, !1, !0), p = O;
3973
3973
  }
3974
- for (var b = new n(), q = Object.keys(this), A = 0; A < q.length; A++) {
3975
- var E = q[A];
3976
- b[E] = this[E];
3974
+ for (var b = new n(), E = Object.keys(this), N = 0; N < E.length; N++) {
3975
+ var C = E[N];
3976
+ b[C] = this[C];
3977
3977
  }
3978
3978
  if (b.hash = p.hash, p.href === "")
3979
3979
  return b.href = b.format(), b;
@@ -3999,50 +3999,50 @@ function ms() {
3999
3999
  } else
4000
4000
  b.pathname = p.pathname;
4001
4001
  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) {
4002
- var Z = b.pathname || "", N = b.search || "";
4003
- b.path = Z + N;
4002
+ var Z = b.pathname || "", A = b.search || "";
4003
+ b.path = Z + A;
4004
4004
  }
4005
4005
  return b.slashes = b.slashes || p.slashes, b.href = b.format(), b;
4006
4006
  }
4007
- var re = b.pathname && b.pathname.charAt(0) === "/", R = p.host || p.pathname && p.pathname.charAt(0) === "/", k = R || re || b.host && p.pathname, F = k, C = b.pathname && b.pathname.split("/") || [], U = p.pathname && p.pathname.split("/") || [], J = b.protocol && !v[b.protocol];
4008
- if (J && (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 && (U[0] === "" ? U[0] = p.host : U.unshift(p.host)), p.host = null), k = k && (U[0] === "" || C[0] === "")), R)
4009
- 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 = U;
4007
+ var re = b.pathname && b.pathname.charAt(0) === "/", R = p.host || p.pathname && p.pathname.charAt(0) === "/", k = R || re || b.host && p.pathname, F = k, q = b.pathname && b.pathname.split("/") || [], U = p.pathname && p.pathname.split("/") || [], J = b.protocol && !v[b.protocol];
4008
+ if (J && (b.hostname = "", b.port = null, b.host && (q[0] === "" ? q[0] = b.host : q.unshift(b.host)), b.host = "", p.protocol && (p.hostname = null, p.port = null, p.host && (U[0] === "" ? U[0] = p.host : U.unshift(p.host)), p.host = null), k = k && (U[0] === "" || q[0] === "")), R)
4009
+ 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, q = U;
4010
4010
  else if (U.length)
4011
- C || (C = []), C.pop(), C = C.concat(U), b.search = p.search, b.query = p.query;
4011
+ q || (q = []), q.pop(), q = q.concat(U), b.search = p.search, b.query = p.query;
4012
4012
  else if (p.search != null) {
4013
4013
  if (J) {
4014
- b.host = C.shift(), b.hostname = b.host;
4014
+ b.host = q.shift(), b.hostname = b.host;
4015
4015
  var z = b.host && b.host.indexOf("@") > 0 ? b.host.split("@") : !1;
4016
4016
  z && (b.auth = z.shift(), b.hostname = z.shift(), b.host = b.hostname);
4017
4017
  }
4018
4018
  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;
4019
4019
  }
4020
- if (!C.length)
4020
+ if (!q.length)
4021
4021
  return b.pathname = null, b.search ? b.path = "/" + b.search : b.path = null, b.href = b.format(), b;
4022
- for (var K = C.slice(-1)[0], ne = (b.host || p.host || C.length > 1) && (K === "." || K === "..") || K === "", G = 0, I = C.length; I >= 0; I--)
4023
- K = C[I], K === "." ? C.splice(I, 1) : K === ".." ? (C.splice(I, 1), G++) : G && (C.splice(I, 1), G--);
4022
+ for (var K = q.slice(-1)[0], ne = (b.host || p.host || q.length > 1) && (K === "." || K === "..") || K === "", G = 0, I = q.length; I >= 0; I--)
4023
+ K = q[I], K === "." ? q.splice(I, 1) : K === ".." ? (q.splice(I, 1), G++) : G && (q.splice(I, 1), G--);
4024
4024
  if (!k && !F)
4025
4025
  for (; G--; G)
4026
- C.unshift("..");
4027
- k && C[0] !== "" && (!C[0] || C[0].charAt(0) !== "/") && C.unshift(""), ne && C.join("/").substr(-1) !== "/" && C.push("");
4028
- var _ = C[0] === "" || C[0] && C[0].charAt(0) === "/";
4026
+ q.unshift("..");
4027
+ k && q[0] !== "" && (!q[0] || q[0].charAt(0) !== "/") && q.unshift(""), ne && q.join("/").substr(-1) !== "/" && q.push("");
4028
+ var _ = q[0] === "" || q[0] && q[0].charAt(0) === "/";
4029
4029
  if (J) {
4030
- b.hostname = _ ? "" : C.length ? C.shift() : "", b.host = b.hostname;
4030
+ b.hostname = _ ? "" : q.length ? q.shift() : "", b.host = b.hostname;
4031
4031
  var z = b.host && b.host.indexOf("@") > 0 ? b.host.split("@") : !1;
4032
4032
  z && (b.auth = z.shift(), b.hostname = z.shift(), b.host = b.hostname);
4033
4033
  }
4034
- return k = k || b.host && C.length, k && !_ && 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;
4034
+ return k = k || b.host && q.length, k && !_ && q.unshift(""), q.length > 0 ? b.pathname = q.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;
4035
4035
  }, n.prototype.parseHost = function() {
4036
4036
  var p = this.host, O = a.exec(p);
4037
4037
  O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
4038
4038
  }, Oe.parse = h, Oe.resolve = j, Oe.resolveObject = T, Oe.format = d, Oe.Url = n, Oe;
4039
4039
  }
4040
- var lr = ms(), cr = /* @__PURE__ */ ga(), gs = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), vs = class {
4040
+ var lr = gs(), cr = /* @__PURE__ */ ga(), vs = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), bs = class {
4041
4041
  constructor(e, n = {}) {
4042
4042
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
4043
4043
  harIsAlreadyEncoded: !1,
4044
4044
  ...n
4045
- }, this.requests = [], gs(e) ? this.entries = e.log.entries : this.entries = [
4045
+ }, this.requests = [], vs(e) ? this.entries = e.log.entries : this.entries = [
4046
4046
  {
4047
4047
  request: e
4048
4048
  }
@@ -4067,7 +4067,7 @@ var lr = ms(), cr = /* @__PURE__ */ ga(), gs = (e) => typeof e == "object" && "l
4067
4067
  }), this;
4068
4068
  }
4069
4069
  prepare(e, n) {
4070
- var f, y, g;
4070
+ var u, y, g;
4071
4071
  const t = {
4072
4072
  ...e,
4073
4073
  fullUrl: "",
@@ -4079,11 +4079,11 @@ var lr = ms(), cr = /* @__PURE__ */ ga(), gs = (e) => typeof e == "object" && "l
4079
4079
  };
4080
4080
  if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(_r, {})), t.headers && t.headers.length) {
4081
4081
  const m = /^HTTP\/2/;
4082
- t.headersObj = t.headers.reduce((x, { name: v, value: u }) => {
4082
+ t.headersObj = t.headers.reduce((x, { name: v, value: f }) => {
4083
4083
  const h = m.exec(t.httpVersion) ? v.toLocaleLowerCase() : v;
4084
4084
  return {
4085
4085
  ...x,
4086
- [h]: u
4086
+ [h]: f
4087
4087
  };
4088
4088
  }, {});
4089
4089
  }
@@ -4094,7 +4094,7 @@ var lr = ms(), cr = /* @__PURE__ */ ga(), gs = (e) => typeof e == "object" && "l
4094
4094
  }),
4095
4095
  {}
4096
4096
  ));
4097
- const a = (f = t.cookies) == null ? void 0 : f.map(({ name: m, value: x }) => n.harIsAlreadyEncoded ? `${m}=${x}` : `${encodeURIComponent(m)}=${encodeURIComponent(x)}`);
4097
+ const a = (u = t.cookies) == null ? void 0 : u.map(({ name: m, value: x }) => n.harIsAlreadyEncoded ? `${m}=${x}` : `${encodeURIComponent(m)}=${encodeURIComponent(x)}`);
4098
4098
  switch (a != null && a.length && (t.allHeaders.cookie = a.join("; ")), t.postData.mimeType) {
4099
4099
  case "multipart/mixed":
4100
4100
  case "multipart/related":
@@ -4102,13 +4102,13 @@ var lr = ms(), cr = /* @__PURE__ */ ga(), gs = (e) => typeof e == "object" && "l
4102
4102
  case "multipart/alternative":
4103
4103
  if (t.postData.text = "", t.postData.mimeType = "multipart/form-data", (y = t.postData) != null && y.params) {
4104
4104
  const m = "---011000010111000001101001", x = `${m}--`, v = `\r
4105
- `, u = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), h = (T) => T.replace(/\r?\n|\r/g, `\r
4105
+ `, f = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), h = (T) => T.replace(/\r?\n|\r/g, `\r
4106
4106
  `), d = [`--${m}`];
4107
4107
  (g = t.postData) == null || g.params.forEach((T, p) => {
4108
- const O = T.name, b = T.value || "", q = T.fileName || null, A = T.contentType || "application/octet-stream";
4109
- q ? (d.push(
4110
- `Content-Disposition: form-data; name="${u(h(O))}"; filename="${q}"`
4111
- ), d.push(`Content-Type: ${A}`)) : d.push(`Content-Disposition: form-data; name="${u(h(O))}"`), d.push(""), d.push(h(b)), p !== t.postData.params.length - 1 && d.push(`--${m}`);
4108
+ const O = T.name, b = T.value || "", E = T.fileName || null, N = T.contentType || "application/octet-stream";
4109
+ E ? (d.push(
4110
+ `Content-Disposition: form-data; name="${f(h(O))}"; filename="${E}"`
4111
+ ), d.push(`Content-Type: ${N}`)) : d.push(`Content-Disposition: form-data; name="${f(h(O))}"`), d.push(""), d.push(h(b)), p !== t.postData.params.length - 1 && d.push(`--${m}`);
4112
4112
  }), d.push(`--${x}`), t.postData.boundary = m, t.postData.text = d.join(v);
4113
4113
  const j = fe(t.headersObj, "content-type") || "content-type";
4114
4114
  t.headersObj[j] = `multipart/form-data; boundary=${m}`;
@@ -4167,14 +4167,14 @@ var lr = ms(), cr = /* @__PURE__ */ ga(), gs = (e) => typeof e == "object" && "l
4167
4167
  }
4168
4168
  convert(e, n, t) {
4169
4169
  this.initCalled || this.init(), !t && n && (t = n);
4170
- const a = Ni[e];
4170
+ const a = Ai[e];
4171
4171
  if (!a)
4172
4172
  return !1;
4173
4173
  const { convert: c } = a.clientsById[n || a.info.default];
4174
4174
  return this.requests.map((r) => c(r, t));
4175
4175
  }
4176
4176
  };
4177
- const bs = ({
4177
+ const xs = ({
4178
4178
  rootMargin: e = "0px",
4179
4179
  threshold: n,
4180
4180
  root: t
@@ -4190,12 +4190,12 @@ const bs = ({
4190
4190
  if (o)
4191
4191
  return r.observe(o), () => r.unobserve(o);
4192
4192
  }, [t, e, n]), [s, a];
4193
- }, xs = typeof window < "u" ? Qa : gr, va = ({
4193
+ }, $s = typeof window < "u" ? Ka : gr, va = ({
4194
4194
  children: e,
4195
4195
  maxHeight: n = 250
4196
4196
  }) => {
4197
4197
  const t = aa(null), [a, c] = xe(!1), [s, r] = xe(!1);
4198
- return xs(() => {
4198
+ return $s(() => {
4199
4199
  const o = t.current;
4200
4200
  if (!o) return;
4201
4201
  c(o.scrollHeight > n);
@@ -4249,42 +4249,42 @@ const bs = ({
4249
4249
  ]
4250
4250
  }
4251
4251
  );
4252
- }, $s = ({
4252
+ }, ws = ({
4253
4253
  server: e,
4254
4254
  servers: n,
4255
4255
  operation: t,
4256
4256
  examples: a
4257
4257
  }) => {
4258
4258
  var g, m, x;
4259
- const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } = lo(), l = (g = t.parameters) == null ? void 0 : g.filter((v) => v.in === "header").sort((v, u) => v.required && !u.required ? -1 : 1).map((v) => {
4260
- var u, h, d, j, T, p, O, b;
4259
+ const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } = co(), l = (g = t.parameters) == null ? void 0 : g.filter((v) => v.in === "header").sort((v, f) => v.required && !f.required ? -1 : 1).map((v) => {
4260
+ var f, h, d, j, T, p, O, b;
4261
4261
  return {
4262
4262
  name: v.name,
4263
- defaultValue: ((u = v.schema) == null ? void 0 : u.default) ?? ((d = (h = v.examples) == null ? void 0 : h.find((q) => q.value)) == null ? void 0 : d.value) ?? "",
4263
+ defaultValue: ((f = v.schema) == null ? void 0 : f.default) ?? ((d = (h = v.examples) == null ? void 0 : h.find((E) => E.value)) == null ? void 0 : d.value) ?? "",
4264
4264
  defaultActive: v.required ?? !1,
4265
4265
  isRequired: v.required ?? !1,
4266
4266
  enum: ((j = v.schema) == null ? void 0 : j.type) == "array" ? (p = (T = v.schema) == null ? void 0 : T.items) == null ? void 0 : p.enum : (O = v.schema) == null ? void 0 : O.enum,
4267
4267
  type: ((b = v.schema) == null ? void 0 : b.type) ?? "string"
4268
4268
  };
4269
- }), f = (m = t.parameters) == null ? void 0 : m.filter((v) => v.in === "query").sort((v, u) => v.required && !u.required ? -1 : 1).map((v) => {
4270
- var u, h, d, j, T;
4269
+ }), u = (m = t.parameters) == null ? void 0 : m.filter((v) => v.in === "query").sort((v, f) => v.required && !f.required ? -1 : 1).map((v) => {
4270
+ var f, h, d, j, T;
4271
4271
  return {
4272
4272
  name: v.name,
4273
4273
  defaultActive: v.required ?? !1,
4274
4274
  isRequired: v.required ?? !1,
4275
- enum: ((u = v.schema) == null ? void 0 : u.type) == "array" ? (d = (h = v.schema) == null ? void 0 : h.items) == null ? void 0 : d.enum : (j = v.schema) == null ? void 0 : j.enum,
4275
+ enum: ((f = v.schema) == null ? void 0 : f.type) == "array" ? (d = (h = v.schema) == null ? void 0 : h.items) == null ? void 0 : d.enum : (j = v.schema) == null ? void 0 : j.enum,
4276
4276
  type: ((T = v.schema) == null ? void 0 : T.type) ?? "string"
4277
4277
  };
4278
4278
  }), y = (x = t.parameters) == null ? void 0 : x.filter((v) => v.in === "path").map((v) => ({ name: v.name }));
4279
4279
  return /* @__PURE__ */ $.jsx(
4280
- Fa,
4280
+ _a,
4281
4281
  {
4282
4282
  server: e,
4283
4283
  servers: n,
4284
4284
  method: t.method,
4285
4285
  url: t.path,
4286
4286
  headers: l,
4287
- queryParams: f,
4287
+ queryParams: u,
4288
4288
  pathParams: y,
4289
4289
  examples: a,
4290
4290
  requiresLogin: c && !i && !o,
@@ -4292,13 +4292,13 @@ const bs = ({
4292
4292
  onSignUp: () => r()
4293
4293
  }
4294
4294
  );
4295
- }, Sr = ({ children: e, className: n }) => /* @__PURE__ */ $.jsx(
4295
+ }, jr = ({ children: e, className: n }) => /* @__PURE__ */ $.jsx(
4296
4296
  "div",
4297
4297
  {
4298
4298
  className: pe("rounded-xl overflow-hidden border border-border", n),
4299
4299
  children: e
4300
4300
  }
4301
- ), jr = ({ children: e, className: n }) => /* @__PURE__ */ $.jsx(
4301
+ ), Sr = ({ children: e, className: n }) => /* @__PURE__ */ $.jsx(
4302
4302
  "div",
4303
4303
  {
4304
4304
  className: pe(
@@ -4343,7 +4343,7 @@ const bs = ({
4343
4343
  default:
4344
4344
  return {};
4345
4345
  }
4346
- }, ws = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Ss = (e) => e ? {
4346
+ }, js = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Ss = (e) => e ? {
4347
4347
  "application/json": "json",
4348
4348
  "application/xml": "xml",
4349
4349
  "application/x-yaml": "yaml",
@@ -4356,16 +4356,16 @@ const bs = ({
4356
4356
  onExampleChange: t
4357
4357
  }) => {
4358
4358
  var m;
4359
- const [a, c] = xe(0), [s, r] = xe(0), o = Array.isArray(e) && e.length === 1 ? e[0] : e[a], i = (o == null ? void 0 : o.examples) ?? [], l = i[s], f = oa(() => {
4359
+ const [a, c] = xe(0), [s, r] = xe(0), o = Array.isArray(e) && e.length === 1 ? e[0] : e[a], i = (o == null ? void 0 : o.examples) ?? [], l = i[s], u = oa(() => {
4360
4360
  if (l)
4361
4361
  return "value" in l ? l.value : l;
4362
4362
  if (o != null && o.schema)
4363
4363
  return Ue(o.schema);
4364
4364
  }, [l, o == null ? void 0 : o.schema]);
4365
4365
  gr(() => {
4366
- f && (t == null || t(f));
4367
- }, [f, t]);
4368
- const y = ws(f), g = Ss(o == null ? void 0 : o.mediaType);
4366
+ u && (t == null || t(u));
4367
+ }, [u, t]);
4368
+ const y = js(u), g = Ss(o == null ? void 0 : o.mediaType);
4369
4369
  return /* @__PURE__ */ $.jsxs($.Fragment, { children: [
4370
4370
  /* @__PURE__ */ $.jsxs(ba, { className: "p-0", children: [
4371
4371
  l != null && l.externalValue ? /* @__PURE__ */ $.jsx("div", { className: "p-2", children: /* @__PURE__ */ $.jsx(
@@ -4418,32 +4418,32 @@ const bs = ({
4418
4418
  ] })
4419
4419
  ] })
4420
4420
  ] });
4421
- }, js = ({
4421
+ }, Os = ({
4422
4422
  content: e,
4423
4423
  onExampleChange: n
4424
- }) => e.length === 0 ? null : /* @__PURE__ */ $.jsxs(Sr, { children: [
4425
- /* @__PURE__ */ $.jsx(jr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ $.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
4424
+ }) => e.length === 0 ? null : /* @__PURE__ */ $.jsxs(jr, { children: [
4425
+ /* @__PURE__ */ $.jsx(Sr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ $.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
4426
4426
  /* @__PURE__ */ $.jsx($a, { content: e, onExampleChange: n })
4427
- ] }), Os = ({ response: e }) => /* @__PURE__ */ $.jsx(Ge.Content, { value: e.statusCode, children: /* @__PURE__ */ $.jsx(
4427
+ ] }), Ts = ({ response: e }) => /* @__PURE__ */ $.jsx(Ge.Content, { value: e.statusCode, children: /* @__PURE__ */ $.jsx(
4428
4428
  $a,
4429
4429
  {
4430
4430
  content: e.content ?? [],
4431
4431
  description: e.description ?? void 0
4432
4432
  }
4433
- ) }), Ts = ({
4433
+ ) }), Ps = ({
4434
4434
  responses: e,
4435
4435
  selectedResponse: n,
4436
4436
  onSelectResponse: t
4437
4437
  }) => {
4438
4438
  var a;
4439
- return /* @__PURE__ */ $.jsx(Sr, { children: /* @__PURE__ */ $.jsxs(
4439
+ return /* @__PURE__ */ $.jsx(jr, { children: /* @__PURE__ */ $.jsxs(
4440
4440
  Ge.Root,
4441
4441
  {
4442
4442
  defaultValue: (a = e[0]) == null ? void 0 : a.statusCode,
4443
4443
  value: n,
4444
4444
  onValueChange: (c) => t(c),
4445
4445
  children: [
4446
- /* @__PURE__ */ $.jsxs(jr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4446
+ /* @__PURE__ */ $.jsxs(Sr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4447
4447
  /* @__PURE__ */ $.jsx("span", { className: "font-mono", children: "Example Responses" }),
4448
4448
  /* @__PURE__ */ $.jsx(Ge.List, { className: "flex gap-2", children: e.map((c) => /* @__PURE__ */ $.jsx(
4449
4449
  Ge.Trigger,
@@ -4459,11 +4459,11 @@ const bs = ({
4459
4459
  c.statusCode
4460
4460
  )) })
4461
4461
  ] }),
4462
- e.map((c) => /* @__PURE__ */ $.jsx(Os, { response: c }, c.statusCode))
4462
+ e.map((c) => /* @__PURE__ */ $.jsx(Ts, { response: c }, c.statusCode))
4463
4463
  ]
4464
4464
  }
4465
4465
  ) });
4466
- }, Ps = (e, n) => {
4466
+ }, qs = (e, n) => {
4467
4467
  let t;
4468
4468
  switch (n) {
4469
4469
  case "shell":
@@ -4504,7 +4504,7 @@ const bs = ({
4504
4504
  break;
4505
4505
  }
4506
4506
  return t ? t[0] : "";
4507
- }, qs = _e(
4507
+ }, Cs = _e(
4508
4508
  /* GraphQL */
4509
4509
  `
4510
4510
  query getServerQuery($input: JSON!, $type: SchemaType!) {
@@ -4516,7 +4516,7 @@ const bs = ({
4516
4516
  }
4517
4517
  }
4518
4518
  `
4519
- ), Cs = [
4519
+ ), Es = [
4520
4520
  { value: "shell", label: "cURL" },
4521
4521
  { value: "js", label: "JavaScript" },
4522
4522
  { value: "python", label: "Python" },
@@ -4528,41 +4528,41 @@ const bs = ({
4528
4528
  { value: "php", label: "PHP" },
4529
4529
  { value: "ruby", label: "Ruby" },
4530
4530
  { value: "swift", label: "Swift" }
4531
- ], Es = ({
4531
+ ], Rs = ({
4532
4532
  operation: e,
4533
4533
  selectedResponse: n,
4534
4534
  onSelectResponse: t
4535
4535
  }) => {
4536
- var A;
4537
- const { input: a, type: c, options: s } = vr(), r = Pa(), o = Qe(qs, { input: a, type: c }), i = yr(o), l = co(), f = ta(e.method), [y, g] = Ua(), [, m] = na(), [x, v] = xe(), u = y.get("lang") ?? (s == null ? void 0 : s.examplesLanguage) ?? "shell", h = (A = e.requestBody) == null ? void 0 : A.content, d = h && (s != null && s.transformExamples) ? s.transformExamples({
4536
+ var N;
4537
+ const { input: a, type: c, options: s } = vr(), r = Pa(), o = Qe(Cs, { input: a, type: c }), i = yr(o), l = uo(), u = ta(e.method), [y, g] = Ua(), [, m] = na(), [x, v] = xe(), f = y.get("lang") ?? (s == null ? void 0 : s.examplesLanguage) ?? "shell", h = (N = e.requestBody) == null ? void 0 : N.content, d = h && (s != null && s.transformExamples) ? s.transformExamples({
4538
4538
  auth: r,
4539
4539
  type: "request",
4540
4540
  operation: e,
4541
4541
  content: h,
4542
4542
  context: l
4543
4543
  }) : h, j = /* @__PURE__ */ $.jsx(
4544
- _a,
4544
+ Ba,
4545
4545
  {
4546
4546
  path: e.path,
4547
- renderParam: ({ name: E }) => /* @__PURE__ */ $.jsx(
4547
+ renderParam: ({ name: C }) => /* @__PURE__ */ $.jsx(
4548
4548
  Xn,
4549
4549
  {
4550
- name: E,
4550
+ name: C,
4551
4551
  backgroundOpacity: "0",
4552
- slug: `${e.slug}-${E}`,
4553
- children: `{${E}}`
4552
+ slug: `${e.slug}-${C}`,
4553
+ children: `{${C}}`
4554
4554
  }
4555
4555
  )
4556
4556
  }
4557
4557
  ), { selectedServer: T } = mr(i.data.schema.servers), p = oa(() => {
4558
4558
  var P;
4559
- const E = x ?? ((P = d == null ? void 0 : d[0]) != null && P.schema ? Ue(
4559
+ const C = x ?? ((P = d == null ? void 0 : d[0]) != null && P.schema ? Ue(
4560
4560
  d[0].schema
4561
- ) : void 0), L = new vs({
4561
+ ) : void 0), L = new bs({
4562
4562
  method: e.method.toLocaleUpperCase(),
4563
4563
  url: T + e.path.replaceAll("{", ":").replaceAll("}", ""),
4564
- postData: E ? {
4565
- text: JSON.stringify(E, null, 2),
4564
+ postData: C ? {
4565
+ text: JSON.stringify(C, null, 2),
4566
4566
  mimeType: "application/json"
4567
4567
  } : {},
4568
4568
  headers: [{ name: "Content-Type", value: "application/json" }],
@@ -4572,15 +4572,15 @@ const bs = ({
4572
4572
  headersSize: 0,
4573
4573
  bodySize: 0
4574
4574
  });
4575
- return Ps(L, u);
4575
+ return qs(L, f);
4576
4576
  }, [
4577
4577
  x,
4578
4578
  d,
4579
4579
  e.method,
4580
4580
  e.path,
4581
4581
  T,
4582
- u
4583
- ]), [O, b] = bs({ rootMargin: "200px 0px 200px 0px" }), q = b && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !(s != null && s.disablePlayground));
4582
+ f
4583
+ ]), [O, b] = xs({ rootMargin: "200px 0px 200px 0px" }), E = b && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !(s != null && s.disablePlayground));
4584
4584
  return /* @__PURE__ */ $.jsxs(
4585
4585
  "aside",
4586
4586
  {
@@ -4588,17 +4588,17 @@ const bs = ({
4588
4588
  className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4",
4589
4589
  "data-pagefind-ignore": "all",
4590
4590
  children: [
4591
- /* @__PURE__ */ $.jsxs(Sr, { children: [
4592
- /* @__PURE__ */ $.jsxs(jr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
4591
+ /* @__PURE__ */ $.jsxs(jr, { children: [
4592
+ /* @__PURE__ */ $.jsxs(Sr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
4593
4593
  /* @__PURE__ */ $.jsxs("span", { className: "font-mono break-words leading-6", children: [
4594
- /* @__PURE__ */ $.jsx("span", { className: pe("font-semibold", f), children: e.method.toLocaleUpperCase() }),
4594
+ /* @__PURE__ */ $.jsx("span", { className: pe("font-semibold", u), children: e.method.toLocaleUpperCase() }),
4595
4595
  " ",
4596
4596
  j
4597
4597
  ] }),
4598
- q && /* @__PURE__ */ $.jsx(
4599
- $s,
4598
+ E && /* @__PURE__ */ $.jsx(
4599
+ ws,
4600
4600
  {
4601
- servers: i.data.schema.servers.map((E) => E.url),
4601
+ servers: i.data.schema.servers.map((C) => C.url),
4602
4602
  operation: e,
4603
4603
  examples: h ?? void 0
4604
4604
  }
@@ -4608,7 +4608,7 @@ const bs = ({
4608
4608
  /* @__PURE__ */ $.jsx(ba, { className: "p-0", children: /* @__PURE__ */ $.jsx(va, { children: /* @__PURE__ */ $.jsx(
4609
4609
  ia,
4610
4610
  {
4611
- language: u,
4611
+ language: f,
4612
4612
  noBackground: !0,
4613
4613
  className: "[--scrollbar-color:gray] text-xs max-h-[500px] p-2",
4614
4614
  code: p
@@ -4620,53 +4620,53 @@ const bs = ({
4620
4620
  Ye,
4621
4621
  {
4622
4622
  className: "self-start max-w-[150px]",
4623
- value: u,
4624
- onChange: (E) => {
4623
+ value: f,
4624
+ onChange: (C) => {
4625
4625
  m(() => {
4626
- g((L) => (L.set("lang", E.target.value), L));
4626
+ g((L) => (L.set("lang", C.target.value), L));
4627
4627
  });
4628
4628
  },
4629
- options: Cs
4629
+ options: Es
4630
4630
  }
4631
4631
  )
4632
4632
  ] })
4633
4633
  ] })
4634
4634
  ] }),
4635
4635
  b && d && /* @__PURE__ */ $.jsx(
4636
- js,
4636
+ Os,
4637
4637
  {
4638
4638
  content: d,
4639
4639
  onExampleChange: v
4640
4640
  }
4641
4641
  ),
4642
4642
  b && e.responses.length > 0 && /* @__PURE__ */ $.jsx(
4643
- Ts,
4643
+ Ps,
4644
4644
  {
4645
4645
  selectedResponse: n,
4646
4646
  onSelectResponse: t,
4647
- responses: e.responses.map((E) => ({
4648
- ...E,
4649
- content: E.content && (s != null && s.transformExamples) ? s.transformExamples({
4647
+ responses: e.responses.map((C) => ({
4648
+ ...C,
4649
+ content: C.content && (s != null && s.transformExamples) ? s.transformExamples({
4650
4650
  auth: r,
4651
4651
  type: "response",
4652
4652
  context: l,
4653
4653
  operation: e,
4654
- content: E.content
4655
- }) : E.content
4654
+ content: C.content
4655
+ }) : C.content
4656
4656
  }))
4657
4657
  }
4658
4658
  )
4659
4659
  ]
4660
4660
  }
4661
4661
  );
4662
- }, Rs = ["path", "query", "header", "cookie"], ks = ({
4662
+ }, ks = ["path", "query", "header", "cookie"], Ns = ({
4663
4663
  operationFragment: e,
4664
4664
  serverUrl: n
4665
4665
  }) => {
4666
4666
  var o, i, l;
4667
- const t = uo(Ns, e), a = Za(
4667
+ const t = fo(As, e), a = eo(
4668
4668
  t.parameters ?? [],
4669
- (f) => f.in
4669
+ (u) => u.in
4670
4670
  ), c = t.responses.at(0), [s, r] = xe(c == null ? void 0 : c.statusCode);
4671
4671
  return /* @__PURE__ */ $.jsxs("div", { children: [
4672
4672
  t.deprecated && /* @__PURE__ */ $.jsx(Fr, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
@@ -4703,22 +4703,22 @@ const bs = ({
4703
4703
  content: t.description
4704
4704
  }
4705
4705
  ),
4706
- t.parameters && t.parameters.length > 0 && /* @__PURE__ */ $.jsx($.Fragment, { children: Rs.flatMap(
4707
- (f) => {
4706
+ t.parameters && t.parameters.length > 0 && /* @__PURE__ */ $.jsx($.Fragment, { children: ks.flatMap(
4707
+ (u) => {
4708
4708
  var y;
4709
- return (y = a[f]) != null && y.length ? /* @__PURE__ */ $.jsx(
4710
- vo,
4709
+ return (y = a[u]) != null && y.length ? /* @__PURE__ */ $.jsx(
4710
+ bo,
4711
4711
  {
4712
4712
  summary: t.summary ?? void 0,
4713
4713
  id: t.slug,
4714
- parameters: a[f],
4715
- group: f
4714
+ parameters: a[u],
4715
+ group: u
4716
4716
  },
4717
- f
4717
+ u
4718
4718
  ) : [];
4719
4719
  }
4720
4720
  ) }),
4721
- yo((l = (i = (o = t.requestBody) == null ? void 0 : o.content) == null ? void 0 : i.at(0)) == null ? void 0 : l.schema, (f) => {
4721
+ mo((l = (i = (o = t.requestBody) == null ? void 0 : o.content) == null ? void 0 : i.at(0)) == null ? void 0 : l.schema, (u) => {
4722
4722
  var y;
4723
4723
  return /* @__PURE__ */ $.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4724
4724
  /* @__PURE__ */ $.jsxs(
@@ -4738,7 +4738,7 @@ const bs = ({
4738
4738
  ]
4739
4739
  }
4740
4740
  ),
4741
- /* @__PURE__ */ $.jsx(Ir, { schema: f })
4741
+ /* @__PURE__ */ $.jsx(Ir, { schema: u })
4742
4742
  ] });
4743
4743
  }),
4744
4744
  t.responses.length > 0 && /* @__PURE__ */ $.jsxs($.Fragment, { children: [
@@ -4758,34 +4758,34 @@ const bs = ({
4758
4758
  }
4759
4759
  ),
4760
4760
  /* @__PURE__ */ $.jsxs(
4761
- to,
4761
+ ro,
4762
4762
  {
4763
- onValueChange: (f) => r(f),
4763
+ onValueChange: (u) => r(u),
4764
4764
  value: s,
4765
4765
  children: [
4766
- t.responses.length > 1 && /* @__PURE__ */ $.jsx(ro, { children: t.responses.map((f) => /* @__PURE__ */ $.jsx(
4767
- no,
4766
+ t.responses.length > 1 && /* @__PURE__ */ $.jsx(no, { children: t.responses.map((u) => /* @__PURE__ */ $.jsx(
4767
+ ao,
4768
4768
  {
4769
- value: f.statusCode,
4770
- title: f.description ?? void 0,
4771
- children: f.statusCode
4769
+ value: u.statusCode,
4770
+ title: u.description ?? void 0,
4771
+ children: u.statusCode
4772
4772
  },
4773
- f.statusCode
4773
+ u.statusCode
4774
4774
  )) }),
4775
- /* @__PURE__ */ $.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
4775
+ /* @__PURE__ */ $.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((u) => {
4776
4776
  var y, g;
4777
4777
  return /* @__PURE__ */ $.jsx(
4778
- ao,
4778
+ oo,
4779
4779
  {
4780
- value: f.statusCode,
4780
+ value: u.statusCode,
4781
4781
  children: /* @__PURE__ */ $.jsx(
4782
4782
  Ir,
4783
4783
  {
4784
- schema: (g = (y = f.content) == null ? void 0 : y.find((m) => m.schema)) == null ? void 0 : g.schema
4784
+ schema: (g = (y = u.content) == null ? void 0 : y.find((m) => m.schema)) == null ? void 0 : g.schema
4785
4785
  }
4786
4786
  )
4787
4787
  },
4788
- f.statusCode
4788
+ u.statusCode
4789
4789
  );
4790
4790
  }) })
4791
4791
  ]
@@ -4794,7 +4794,7 @@ const bs = ({
4794
4794
  ] })
4795
4795
  ] }),
4796
4796
  /* @__PURE__ */ $.jsx(
4797
- Es,
4797
+ Rs,
4798
4798
  {
4799
4799
  selectedResponse: s,
4800
4800
  onSelectResponse: r,
@@ -4810,7 +4810,7 @@ const bs = ({
4810
4810
  function Kn(e, n = 160) {
4811
4811
  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;") : "";
4812
4812
  }
4813
- const Ns = _e(
4813
+ const As = _e(
4814
4814
  /* GraphQL */
4815
4815
  `
4816
4816
  fragment OperationsFragment on OperationItem {
@@ -4878,7 +4878,7 @@ const Ns = _e(
4878
4878
  }
4879
4879
  }
4880
4880
  `
4881
- ), As = _e(
4881
+ ), Is = _e(
4882
4882
  /* GraphQL */
4883
4883
  `
4884
4884
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
@@ -4887,7 +4887,7 @@ const Ns = _e(
4887
4887
  }
4888
4888
  }
4889
4889
  `
4890
- ), Is = _e(
4890
+ ), Us = _e(
4891
4891
  /* GraphQL */
4892
4892
  `
4893
4893
  query OperationsForTag(
@@ -4924,28 +4924,32 @@ const Ns = _e(
4924
4924
  }
4925
4925
  }
4926
4926
  `
4927
- ), ol = ({
4927
+ ), il = ({
4928
4928
  tag: e,
4929
4929
  untagged: n
4930
4930
  }) => {
4931
- const { input: t, type: a, versions: c, version: s, options: r } = vr(), o = Qe(Is, {
4931
+ const { input: t, type: a, versions: c, version: s, options: r } = vr(), { tag: o } = La(), i = Qe(Us, {
4932
4932
  input: t,
4933
4933
  type: a,
4934
- tag: e,
4934
+ tag: e ?? o,
4935
4935
  untagged: n
4936
- }), i = yr(o), {
4937
- data: { schema: l }
4938
- } = i, { selectedServer: f } = mr(l.servers), y = l.title, g = l.summary, m = l.description, x = La(), v = Qe(As, { input: t, type: a });
4936
+ }), l = yr(i), {
4937
+ data: { schema: u }
4938
+ } = l, { selectedServer: y } = mr(u.servers), g = u.title, m = u.summary, x = u.description, v = Fa(), f = Qe(Is, { input: t, type: a });
4939
4939
  if (qa({
4940
- ...v,
4940
+ ...f,
4941
4941
  enabled: typeof window < "u",
4942
4942
  notifyOnChangeProps: []
4943
- }), Ca(), !l.tag) return null;
4944
- const { operations: u, next: h, prev: d, description: j } = l.tag, T = j ? Kn(j) : g || (m ? Kn(m) : void 0), p = Object.entries(c).length > 1, O = (r == null ? void 0 : r.showVersionSelect) === "always" || p && (r == null ? void 0 : r.showVersionSelect) !== "hide", b = {
4945
- prev: d != null && d.name ? { to: `../${d.slug}`, label: d.name } : void 0,
4946
- next: h ? {
4947
- to: `../${h.slug ?? Ba}`,
4948
- label: h.name ?? "Other endpoints"
4943
+ }), Ca(), !u.tag)
4944
+ return /* @__PURE__ */ $.jsxs("div", { className: "flex flex-col h-full items-center justify-center text-center", children: [
4945
+ /* @__PURE__ */ $.jsx("div", { className: "text-muted-foreground font-medium", children: "No operations found" }),
4946
+ /* @__PURE__ */ $.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "This API doesn't have any operations defined yet." })
4947
+ ] });
4948
+ const { operations: h, next: d, prev: j, description: T } = u.tag, p = T ? Kn(T) : m || (x ? Kn(x) : void 0), O = Object.entries(c).length > 1, b = (r == null ? void 0 : r.showVersionSelect) === "always" || O && (r == null ? void 0 : r.showVersionSelect) !== "hide", E = {
4949
+ prev: j != null && j.name ? { to: `../${j.slug}`, label: j.name } : void 0,
4950
+ next: d ? {
4951
+ to: `../${d.slug ?? Ha}`,
4952
+ label: d.name ?? "Other endpoints"
4949
4953
  } : void 0
4950
4954
  };
4951
4955
  return /* @__PURE__ */ $.jsxs(
@@ -4956,14 +4960,14 @@ const Ns = _e(
4956
4960
  "data-pagefind-meta": "section:openapi",
4957
4961
  children: [
4958
4962
  /* @__PURE__ */ $.jsxs(Ea, { children: [
4959
- /* @__PURE__ */ $.jsx("title", { children: [l.tag.name, y].filter(Boolean).join(" - ") }),
4960
- T && /* @__PURE__ */ $.jsx("meta", { name: "description", content: T })
4963
+ /* @__PURE__ */ $.jsx("title", { children: [u.tag.name, g].filter(Boolean).join(" - ") }),
4964
+ p && /* @__PURE__ */ $.jsx("meta", { name: "description", content: p })
4961
4965
  ] }),
4962
4966
  /* @__PURE__ */ $.jsxs("div", { className: "mb-8", children: [
4963
4967
  /* @__PURE__ */ $.jsxs(Zn, { className: "w-full", children: [
4964
4968
  /* @__PURE__ */ $.jsxs("div", { className: "flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end", children: [
4965
4969
  /* @__PURE__ */ $.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
4966
- /* @__PURE__ */ $.jsx(Ga, { children: y }),
4970
+ /* @__PURE__ */ $.jsx(Va, { children: g }),
4967
4971
  /* @__PURE__ */ $.jsxs(
4968
4972
  Ie,
4969
4973
  {
@@ -4972,8 +4976,8 @@ const Ns = _e(
4972
4976
  registerSidebarAnchor: !0,
4973
4977
  className: "mb-0",
4974
4978
  children: [
4975
- l.tag.name ?? "Other endpoints",
4976
- O && /* @__PURE__ */ $.jsxs("span", { className: "text-xl text-muted-foreground ml-1.5", children: [
4979
+ u.tag.name ?? "Other endpoints",
4980
+ b && /* @__PURE__ */ $.jsxs("span", { className: "text-xl text-muted-foreground ml-1.5", children: [
4977
4981
  " ",
4978
4982
  "(",
4979
4983
  s,
@@ -4982,22 +4986,22 @@ const Ns = _e(
4982
4986
  ]
4983
4987
  }
4984
4988
  ),
4985
- /* @__PURE__ */ $.jsx(po, {})
4989
+ /* @__PURE__ */ $.jsx(ho, {})
4986
4990
  ] }),
4987
4991
  /* @__PURE__ */ $.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
4988
- O && /* @__PURE__ */ $.jsxs(
4989
- Ha,
4992
+ b && /* @__PURE__ */ $.jsxs(
4993
+ Ma,
4990
4994
  {
4991
- onValueChange: (q) => x(c[q]),
4995
+ onValueChange: (N) => v(c[N]),
4992
4996
  defaultValue: s,
4993
- disabled: !p,
4997
+ disabled: !O,
4994
4998
  children: [
4995
- /* @__PURE__ */ $.jsx(Ma, { className: "w-[180px]", children: /* @__PURE__ */ $.jsx(za, { placeholder: "Select version" }) }),
4996
- /* @__PURE__ */ $.jsx(Wa, { children: Object.entries(c).map(([q]) => /* @__PURE__ */ $.jsx(Ja, { value: q, children: q }, q)) })
4999
+ /* @__PURE__ */ $.jsx(za, { className: "w-[180px]", children: /* @__PURE__ */ $.jsx(Wa, { placeholder: "Select version" }) }),
5000
+ /* @__PURE__ */ $.jsx(Ja, { children: Object.entries(c).map(([N]) => /* @__PURE__ */ $.jsx(Ga, { value: N, children: N }, N)) })
4997
5001
  ]
4998
5002
  }
4999
5003
  ),
5000
- l.description && /* @__PURE__ */ $.jsxs(ur, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
5004
+ u.description && /* @__PURE__ */ $.jsxs(ur, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
5001
5005
  /* @__PURE__ */ $.jsx("span", { children: "API information" }),
5002
5006
  /* @__PURE__ */ $.jsx(
5003
5007
  Yn,
@@ -5016,7 +5020,7 @@ const Ns = _e(
5016
5020
  ] })
5017
5021
  ] })
5018
5022
  ] }),
5019
- l.description && /* @__PURE__ */ $.jsx(ea, { className: "CollapsibleContent", children: /* @__PURE__ */ $.jsx(
5023
+ u.description && /* @__PURE__ */ $.jsx(ea, { className: "CollapsibleContent", children: /* @__PURE__ */ $.jsx(
5020
5024
  "div",
5021
5025
  {
5022
5026
  className: pe(
@@ -5027,43 +5031,43 @@ const Ns = _e(
5027
5031
  De,
5028
5032
  {
5029
5033
  className: "border rounded bg-muted/25 border-border px-2.5 md:px-4",
5030
- content: l.description
5034
+ content: u.description
5031
5035
  }
5032
5036
  )
5033
5037
  }
5034
5038
  ) })
5035
5039
  ] }),
5036
- j && /* @__PURE__ */ $.jsx(
5040
+ T && /* @__PURE__ */ $.jsx(
5037
5041
  "div",
5038
5042
  {
5039
5043
  className: pe(
5040
5044
  fr,
5041
5045
  "my-4 max-w-full prose-img:max-w-prose"
5042
5046
  ),
5043
- children: /* @__PURE__ */ $.jsx(De, { content: j })
5047
+ children: /* @__PURE__ */ $.jsx(De, { content: T })
5044
5048
  }
5045
5049
  )
5046
5050
  ] }),
5047
5051
  /* @__PURE__ */ $.jsx("hr", {}),
5048
5052
  /* @__PURE__ */ $.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
5049
- u.map((q) => /* @__PURE__ */ $.jsxs("div", { children: [
5053
+ h.map((N) => /* @__PURE__ */ $.jsxs("div", { children: [
5050
5054
  /* @__PURE__ */ $.jsx(
5051
- ks,
5055
+ Ns,
5052
5056
  {
5053
- serverUrl: f,
5054
- operationFragment: q
5057
+ serverUrl: y,
5058
+ operationFragment: N
5055
5059
  }
5056
5060
  ),
5057
5061
  /* @__PURE__ */ $.jsx("hr", { className: "my-10" })
5058
- ] }, q.slug)),
5059
- /* @__PURE__ */ $.jsx(Da, { className: "mb-4", ...b })
5062
+ ] }, N.slug)),
5063
+ /* @__PURE__ */ $.jsx(Qa, { className: "mb-4", ...E })
5060
5064
  ] })
5061
5065
  ]
5062
5066
  }
5063
5067
  );
5064
5068
  };
5065
5069
  export {
5066
- ol as OperationList,
5067
- Ns as OperationsFragment
5070
+ il as OperationList,
5071
+ As as OperationsFragment
5068
5072
  };
5069
- //# sourceMappingURL=OperationList-0bhBU7ME.js.map
5073
+ //# sourceMappingURL=OperationList-BNneqYos.js.map