zudoku 0.66.7 → 0.67.0
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.
- package/dist/cli/common/version-check.js +12 -3
- package/dist/cli/common/version-check.js.map +1 -1
- package/dist/config/validators/validate.d.ts +21 -3
- package/dist/config/validators/validate.js +6 -3
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +25 -24
- package/dist/lib/plugins/openapi/OasProvider.js +6 -2
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +4 -8
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -0
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +3 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +2 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +11 -1
- package/dist/vite/api/SchemaManager.js +28 -17
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +44 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/error-handler.js +1 -5
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/plugin-api.js +5 -3
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/OasProvider-D-4BX8P3.js +48 -0
- package/lib/OasProvider-D-4BX8P3.js.map +1 -0
- package/lib/{OperationList-CaknPbvq.js → OperationList-BOu9Qd_k.js} +817 -820
- package/lib/{OperationList-CaknPbvq.js.map → OperationList-BOu9Qd_k.js.map} +1 -1
- package/lib/{SchemaList-Dw3-CJPb.js → SchemaList-B167Xmbd.js} +3 -3
- package/lib/{SchemaList-Dw3-CJPb.js.map → SchemaList-B167Xmbd.js.map} +1 -1
- package/lib/{SchemaView-DyJkiQkD.js → SchemaView-Dx9gtne2.js} +2 -2
- package/lib/{SchemaView-DyJkiQkD.js.map → SchemaView-Dx9gtne2.js.map} +1 -1
- package/lib/{circular-DFquXeY2.js → circular-B5aq06Lb.js} +2 -2
- package/lib/{circular-DFquXeY2.js.map → circular-B5aq06Lb.js.map} +1 -1
- package/lib/{createServer-BXZ0CAUn.js → createServer-CasZ-UG7.js} +3 -3
- package/lib/{createServer-BXZ0CAUn.js.map → createServer-CasZ-UG7.js.map} +1 -1
- package/lib/{index-BQB9hb6n.js → index-BcAudYNw.js} +52 -49
- package/lib/{index-BQB9hb6n.js.map → index-BcAudYNw.js.map} +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +2 -2
- package/src/lib/plugins/openapi/OasProvider.tsx +10 -2
- package/src/lib/plugins/openapi/OperationList.tsx +4 -9
- package/src/lib/plugins/openapi/interfaces.ts +6 -1
- package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -1
- package/lib/OasProvider-DSe-hk5Y.js +0 -40
- package/lib/OasProvider-DSe-hk5Y.js.map +0 -1
|
@@ -3,39 +3,39 @@ import { u as ga, e as Ja } from "./useSuspenseQuery-CSB_rVek.js";
|
|
|
3
3
|
import { H as Da } from "./index.esm-B_0dvNjB.js";
|
|
4
4
|
import { DownloadIcon as Qa, ChevronDownIcon as va, ExternalLinkIcon as Ae, CopyIcon as kr, ChevronsUpDownIcon as lt, CheckIcon as xa, MinusIcon as Ka, PlusIcon as Ya, InfoIcon as ba, ChevronsDownUpIcon as qr } from "lucide-react";
|
|
5
5
|
import { b as Xa, d as Za, u as eo } from "./chunk-EPOLDU6W-C6C8jAwd.js";
|
|
6
|
-
import { u as ct, a as Sr, d as Ve, e as ja, f as Or, P as to, C as
|
|
6
|
+
import { u as ct, a as Sr, d as Ve, e as ja, f as Or, P as to, C as Rr, b as Er, c as Ar, h as ro, U as no } from "./index-BcAudYNw.js";
|
|
7
7
|
import { S as ao, a as oo, b as io, c as so, e as lo } from "./Secret-BDBqq4p3.js";
|
|
8
8
|
import { C as co } from "./CategoryHeading-DhmodDcq.js";
|
|
9
|
-
import { u as uo, h as po
|
|
10
|
-
import { B as ot, I as Ce, o as
|
|
11
|
-
import { S as Ir, i as
|
|
12
|
-
import { C as
|
|
13
|
-
import { Slot as
|
|
9
|
+
import { u as uo, h as po } from "./ZudokuContext-BZB1TWdT.js";
|
|
10
|
+
import { B as ot, I as Ce, o as fo, T as ho, M as He, H as Fe, h as $a, k as wa, l as Sa, m as Oa, c as Ta, b as mo } from "./index-BDsEwofZ.js";
|
|
11
|
+
import { S as Ir, i as yo, a as go, E as Xr, b as vo, c as xo, g as bo, P as Tr } from "./SchemaView-Dx9gtne2.js";
|
|
12
|
+
import { C as jo, a as $o, P as wo } from "./ClaudeLogo-DHxJUhN_.js";
|
|
13
|
+
import { Slot as So } from "@radix-ui/react-slot";
|
|
14
14
|
import { c as Ca } from "./index-DI5SPFK9.js";
|
|
15
15
|
import { c as fe } from "./cn-5-Gd1Dss.js";
|
|
16
16
|
import "@radix-ui/react-separator";
|
|
17
|
-
import { D as
|
|
18
|
-
import { u as
|
|
19
|
-
import { useTransition as Pa, useState as ge, Fragment as
|
|
17
|
+
import { D as Oo, a as To, b as Co, c as Xe } from "./DropdownMenu-DN0jNrjj.js";
|
|
18
|
+
import { u as Po } from "./useCopyToClipboard-B_085nfO.js";
|
|
19
|
+
import { useTransition as Pa, useState as ge, Fragment as No, useRef as ko, useEffect as Cr, useMemo as qo } from "react";
|
|
20
20
|
import { Button as Ur } from "./ui/Button.js";
|
|
21
21
|
import { S as Zr } from "./Separator-BXt1LYnm.js";
|
|
22
22
|
import * as Ze from "@radix-ui/react-tabs";
|
|
23
23
|
import { Callout as en } from "./ui/Callout.js";
|
|
24
24
|
import { Card as Ro } from "./ui/Card.js";
|
|
25
25
|
import { S as nt } from "./SyntaxHighlight-klTH8c6-.js";
|
|
26
|
-
import { Tabs as
|
|
27
|
-
import { VisuallyHidden as
|
|
28
|
-
import { Frame as
|
|
29
|
-
import { Item as
|
|
26
|
+
import { Tabs as Eo, TabsList as Ao, TabsTrigger as et, TabsContent as tt } from "./ui/Tabs.js";
|
|
27
|
+
import { VisuallyHidden as Io } from "@radix-ui/react-visually-hidden";
|
|
28
|
+
import { Frame as Uo, FramePanel as Lo } from "./ui/Frame.js";
|
|
29
|
+
import { Item as _o, ItemContent as tn, ItemTitle as Fo, ItemActions as Ho, ItemGroup as Mo, ItemSeparator as Bo } from "./ui/Item.js";
|
|
30
30
|
import * as rn from "@radix-ui/react-collapsible";
|
|
31
|
-
import { c as
|
|
31
|
+
import { c as zo } from "./index-DBjOT2H1.js";
|
|
32
32
|
import "./Button-GUVe7pmt.js";
|
|
33
|
-
import { a as
|
|
34
|
-
import { r as
|
|
35
|
-
function
|
|
33
|
+
import { a as Go, c as it } from "./invariant-BJAl77rw.js";
|
|
34
|
+
import { r as Wo } from "./___vite-browser-external_commonjs-proxy-BttVsNON.js";
|
|
35
|
+
function Vo(e, n) {
|
|
36
36
|
return n;
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const Jo = Ca(
|
|
39
39
|
"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
|
|
40
40
|
{
|
|
41
41
|
variants: {
|
|
@@ -49,7 +49,7 @@ const Do = Ca(
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
function
|
|
52
|
+
function Do({
|
|
53
53
|
className: e,
|
|
54
54
|
orientation: n,
|
|
55
55
|
...r
|
|
@@ -60,15 +60,15 @@ function Qo({
|
|
|
60
60
|
role: "group",
|
|
61
61
|
"data-slot": "button-group",
|
|
62
62
|
"data-orientation": n,
|
|
63
|
-
className: fe(
|
|
63
|
+
className: fe(Jo({ orientation: n }), e),
|
|
64
64
|
...r
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const Qo = ({
|
|
69
69
|
downloadUrl: e
|
|
70
70
|
}) => {
|
|
71
|
-
const [, n] =
|
|
71
|
+
const [, n] = Po(), r = async (a) => {
|
|
72
72
|
if (e.includes("://")) {
|
|
73
73
|
a.preventDefault();
|
|
74
74
|
try {
|
|
@@ -82,7 +82,7 @@ const Ko = ({
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
return /* @__PURE__ */ l.jsxs(
|
|
85
|
+
return /* @__PURE__ */ l.jsxs(Do, { children: [
|
|
86
86
|
/* @__PURE__ */ l.jsx(
|
|
87
87
|
ot,
|
|
88
88
|
{
|
|
@@ -96,9 +96,9 @@ const Ko = ({
|
|
|
96
96
|
] })
|
|
97
97
|
}
|
|
98
98
|
),
|
|
99
|
-
/* @__PURE__ */ l.jsxs(
|
|
100
|
-
/* @__PURE__ */ l.jsx(
|
|
101
|
-
/* @__PURE__ */ l.jsxs(
|
|
99
|
+
/* @__PURE__ */ l.jsxs(Oo, { children: [
|
|
100
|
+
/* @__PURE__ */ l.jsx(To, { asChild: !0, children: /* @__PURE__ */ l.jsx(ot, { size: "sm", variant: "outline", className: "px-1.5", children: /* @__PURE__ */ l.jsx(va, { size: 14 }) }) }),
|
|
101
|
+
/* @__PURE__ */ l.jsxs(Co, { align: "end", children: [
|
|
102
102
|
/* @__PURE__ */ l.jsx(Xe, { asChild: !0, children: /* @__PURE__ */ l.jsxs("a", { href: e, target: "_blank", rel: "noopener noreferrer", children: [
|
|
103
103
|
/* @__PURE__ */ l.jsx(Ae, { size: 14 }),
|
|
104
104
|
"Open in new tab"
|
|
@@ -126,7 +126,7 @@ const Ko = ({
|
|
|
126
126
|
window.open(`https://claude.ai/new?q=${a}`, "_blank");
|
|
127
127
|
},
|
|
128
128
|
children: [
|
|
129
|
-
/* @__PURE__ */ l.jsx(
|
|
129
|
+
/* @__PURE__ */ l.jsx(jo, { className: "size-4" }),
|
|
130
130
|
"Use in Claude"
|
|
131
131
|
]
|
|
132
132
|
}
|
|
@@ -141,7 +141,7 @@ const Ko = ({
|
|
|
141
141
|
window.open(`https://chatgpt.com/?q=${a}`, "_blank");
|
|
142
142
|
},
|
|
143
143
|
children: [
|
|
144
|
-
/* @__PURE__ */ l.jsx(
|
|
144
|
+
/* @__PURE__ */ l.jsx($o, { className: "size-4" }),
|
|
145
145
|
"Use in ChatGPT"
|
|
146
146
|
]
|
|
147
147
|
}
|
|
@@ -149,7 +149,7 @@ const Ko = ({
|
|
|
149
149
|
] })
|
|
150
150
|
] })
|
|
151
151
|
] });
|
|
152
|
-
},
|
|
152
|
+
}, Ko = ({
|
|
153
153
|
value: e,
|
|
154
154
|
onChange: n,
|
|
155
155
|
className: r,
|
|
@@ -179,7 +179,7 @@ const Ko = ({
|
|
|
179
179
|
children: /* @__PURE__ */ l.jsx(lt, { size: 14 })
|
|
180
180
|
}
|
|
181
181
|
)
|
|
182
|
-
] }),
|
|
182
|
+
] }), Yo = Ve(
|
|
183
183
|
/* GraphQL */
|
|
184
184
|
`
|
|
185
185
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -191,7 +191,7 @@ const Ko = ({
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
`
|
|
194
|
-
),
|
|
194
|
+
), Xo = ({ url: e }) => {
|
|
195
195
|
const [n, r] = ge(!1);
|
|
196
196
|
return /* @__PURE__ */ l.jsx(
|
|
197
197
|
Ur,
|
|
@@ -206,14 +206,14 @@ const Ko = ({
|
|
|
206
206
|
children: n ? /* @__PURE__ */ l.jsx(xa, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ l.jsx(kr, { size: 14, strokeWidth: 1.3 })
|
|
207
207
|
}
|
|
208
208
|
);
|
|
209
|
-
},
|
|
210
|
-
const { input: e, type: n } = ct(), r = Sr(
|
|
209
|
+
}, Zo = () => {
|
|
210
|
+
const { input: e, type: n } = ct(), r = Sr(Yo, { input: e, type: n }), a = ga(r), [, c] = Pa(), { selectedServer: i, setSelectedServer: t } = ja(
|
|
211
211
|
a.data.schema.servers
|
|
212
212
|
), { servers: o } = a.data.schema, s = o.at(0);
|
|
213
213
|
return s ? /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1.5 flex-nowrap", children: [
|
|
214
214
|
/* @__PURE__ */ l.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
|
|
215
215
|
o.length > 1 ? /* @__PURE__ */ l.jsx(
|
|
216
|
-
|
|
216
|
+
Ko,
|
|
217
217
|
{
|
|
218
218
|
className: "font-mono text-xs border-input bg-transparent dark:bg-input/30 dark:hover:bg-input/50 py-1.5 max-w-[450px] truncate",
|
|
219
219
|
onChange: (u) => c(() => t(u.target.value)),
|
|
@@ -225,9 +225,9 @@ const Ko = ({
|
|
|
225
225
|
}))
|
|
226
226
|
}
|
|
227
227
|
) : /* @__PURE__ */ l.jsx(Ce, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: s.url }),
|
|
228
|
-
/* @__PURE__ */ l.jsx(
|
|
228
|
+
/* @__PURE__ */ l.jsx(Xo, { url: o.length > 1 ? i : s.url })
|
|
229
229
|
] }) : null;
|
|
230
|
-
},
|
|
230
|
+
}, ei = Ca(
|
|
231
231
|
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
232
232
|
{
|
|
233
233
|
variants: {
|
|
@@ -250,12 +250,12 @@ function Me({
|
|
|
250
250
|
asChild: r = !1,
|
|
251
251
|
...a
|
|
252
252
|
}) {
|
|
253
|
-
const c = r ?
|
|
253
|
+
const c = r ? So : "span";
|
|
254
254
|
return /* @__PURE__ */ l.jsx(
|
|
255
255
|
c,
|
|
256
256
|
{
|
|
257
257
|
"data-slot": "badge",
|
|
258
|
-
className: fe(
|
|
258
|
+
className: fe(ei({ variant: n }), e),
|
|
259
259
|
...a
|
|
260
260
|
}
|
|
261
261
|
);
|
|
@@ -296,7 +296,7 @@ function Be({ className: e, ...n }) {
|
|
|
296
296
|
function ze({ ...e }) {
|
|
297
297
|
return /* @__PURE__ */ l.jsx("option", { "data-slot": "native-select-option", ...e });
|
|
298
298
|
}
|
|
299
|
-
const nn = fe,
|
|
299
|
+
const nn = fe, ti = ({
|
|
300
300
|
responses: e,
|
|
301
301
|
selectedResponse: n,
|
|
302
302
|
onSelectResponse: r
|
|
@@ -340,7 +340,7 @@ const nn = fe, ri = ({
|
|
|
340
340
|
/* @__PURE__ */ l.jsxs("div", { className: "p-2 clear-both", children: [
|
|
341
341
|
t && /* @__PURE__ */ l.jsx(Me, { variant: "outline", className: "float-start me-2", children: i?.statusCode }),
|
|
342
342
|
i?.description && /* @__PURE__ */ l.jsx(
|
|
343
|
-
|
|
343
|
+
fo,
|
|
344
344
|
{
|
|
345
345
|
className: "text-sm text-muted-foreground max-w-none",
|
|
346
346
|
content: i.description
|
|
@@ -354,7 +354,7 @@ const nn = fe, ri = ({
|
|
|
354
354
|
value: n,
|
|
355
355
|
onValueChange: (s) => {
|
|
356
356
|
r?.(s);
|
|
357
|
-
const u = e.find((
|
|
357
|
+
const u = e.find((p) => p.statusCode === s);
|
|
358
358
|
c(u?.content?.[0]?.mediaType ?? "");
|
|
359
359
|
},
|
|
360
360
|
children: e.map((s) => /* @__PURE__ */ l.jsx(Ze.Content, { value: s.statusCode, children: /* @__PURE__ */ l.jsx(
|
|
@@ -368,7 +368,7 @@ const nn = fe, ri = ({
|
|
|
368
368
|
) }, s.statusCode))
|
|
369
369
|
}
|
|
370
370
|
) });
|
|
371
|
-
},
|
|
371
|
+
}, ri = ({
|
|
372
372
|
serverUrl: e,
|
|
373
373
|
summary: n,
|
|
374
374
|
data: r
|
|
@@ -389,7 +389,7 @@ const nn = fe, ri = ({
|
|
|
389
389
|
"url": "${i}"
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
}`, u = i,
|
|
392
|
+
}`, u = i, p = `{
|
|
393
393
|
"servers": {
|
|
394
394
|
"${t}": {
|
|
395
395
|
"command": "npx",
|
|
@@ -399,7 +399,7 @@ const nn = fe, ri = ({
|
|
|
399
399
|
]
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
}`,
|
|
402
|
+
}`, d = () => {
|
|
403
403
|
navigator.clipboard.writeText(i).then(() => {
|
|
404
404
|
c(!0), setTimeout(() => c(!1), 2e3);
|
|
405
405
|
});
|
|
@@ -433,7 +433,7 @@ const nn = fe, ri = ({
|
|
|
433
433
|
/* @__PURE__ */ l.jsx(
|
|
434
434
|
Ur,
|
|
435
435
|
{
|
|
436
|
-
onClick:
|
|
436
|
+
onClick: d,
|
|
437
437
|
variant: "ghost",
|
|
438
438
|
size: "icon",
|
|
439
439
|
className: "h-8 w-8",
|
|
@@ -448,14 +448,14 @@ const nn = fe, ri = ({
|
|
|
448
448
|
/* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold mb-2", children: "AI Tool Configuration" }),
|
|
449
449
|
/* @__PURE__ */ l.jsx("p", { className: "text-sm text-muted-foreground mb-3", children: "Choose your AI tool and copy the configuration to get started." }),
|
|
450
450
|
/* @__PURE__ */ l.jsx("hr", { className: "my-4" }),
|
|
451
|
-
/* @__PURE__ */ l.jsxs(
|
|
452
|
-
/* @__PURE__ */ l.jsxs(
|
|
451
|
+
/* @__PURE__ */ l.jsxs(Eo, { defaultValue: "claude", className: "w-full", children: [
|
|
452
|
+
/* @__PURE__ */ l.jsxs(Ao, { className: "grid w-full grid-cols-4", children: [
|
|
453
453
|
/* @__PURE__ */ l.jsx(et, { value: "claude", children: "Claude" }),
|
|
454
454
|
/* @__PURE__ */ l.jsx(et, { value: "chatgpt", children: "ChatGPT" }),
|
|
455
455
|
/* @__PURE__ */ l.jsx(et, { value: "cursor", children: "Cursor" }),
|
|
456
456
|
/* @__PURE__ */ l.jsx(et, { value: "vscode", children: "VS Code" })
|
|
457
457
|
] }),
|
|
458
|
-
/* @__PURE__ */ l.jsxs(
|
|
458
|
+
/* @__PURE__ */ l.jsxs(ho, { className: "text-sm max-w-full", children: [
|
|
459
459
|
/* @__PURE__ */ l.jsxs(tt, { value: "claude", className: "space-y-3", children: [
|
|
460
460
|
/* @__PURE__ */ l.jsxs("ol", { children: [
|
|
461
461
|
/* @__PURE__ */ l.jsxs("li", { children: [
|
|
@@ -590,7 +590,7 @@ const nn = fe, ri = ({
|
|
|
590
590
|
showLanguageIndicator: !0,
|
|
591
591
|
title: "mcp.json",
|
|
592
592
|
language: "json",
|
|
593
|
-
code:
|
|
593
|
+
code: p,
|
|
594
594
|
className: "mt-2"
|
|
595
595
|
}
|
|
596
596
|
)
|
|
@@ -616,18 +616,18 @@ const nn = fe, ri = ({
|
|
|
616
616
|
] })
|
|
617
617
|
] })
|
|
618
618
|
] }) });
|
|
619
|
-
},
|
|
619
|
+
}, ni = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
|
|
620
620
|
type: "string"
|
|
621
|
-
},
|
|
621
|
+
}, ai = ({
|
|
622
622
|
parameter: e,
|
|
623
623
|
group: n,
|
|
624
624
|
id: r
|
|
625
625
|
}) => {
|
|
626
|
-
const a =
|
|
627
|
-
return /* @__PURE__ */ l.jsxs(
|
|
626
|
+
const a = ni(e), [c, i] = ge(!1), t = a.type === "object" || yo(a) && "items" in a && a.items?.type === "object", o = !!(e.description || a.description || a.type === "array" && a.items?.enum || a.enum || a.example !== void 0 || a.default !== void 0);
|
|
627
|
+
return /* @__PURE__ */ l.jsxs(_o, { children: [
|
|
628
628
|
/* @__PURE__ */ l.jsxs(tn, { className: "gap-y-2", children: [
|
|
629
629
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
630
|
-
/* @__PURE__ */ l.jsx(
|
|
630
|
+
/* @__PURE__ */ l.jsx(Fo, { className: "inline me-2", children: t ? /* @__PURE__ */ l.jsx(
|
|
631
631
|
"button",
|
|
632
632
|
{
|
|
633
633
|
onClick: () => i(!c),
|
|
@@ -653,7 +653,7 @@ const nn = fe, ri = ({
|
|
|
653
653
|
}
|
|
654
654
|
) : e.name }) }),
|
|
655
655
|
/* @__PURE__ */ l.jsx(
|
|
656
|
-
|
|
656
|
+
go,
|
|
657
657
|
{
|
|
658
658
|
className: "inline",
|
|
659
659
|
schema: a,
|
|
@@ -675,10 +675,10 @@ const nn = fe, ri = ({
|
|
|
675
675
|
}
|
|
676
676
|
),
|
|
677
677
|
a.type === "array" && a.items?.enum ? /* @__PURE__ */ l.jsx(Xr, { values: a.items.enum }) : a.enum && /* @__PURE__ */ l.jsx(Xr, { values: a.enum }),
|
|
678
|
-
/* @__PURE__ */ l.jsx(
|
|
678
|
+
/* @__PURE__ */ l.jsx(vo, { schema: a })
|
|
679
679
|
] })
|
|
680
680
|
] }),
|
|
681
|
-
t && /* @__PURE__ */ l.jsx(
|
|
681
|
+
t && /* @__PURE__ */ l.jsx(Ho, { className: "self-start", children: /* @__PURE__ */ l.jsx(
|
|
682
682
|
Ur,
|
|
683
683
|
{
|
|
684
684
|
variant: "ghost",
|
|
@@ -705,7 +705,7 @@ const nn = fe, ri = ({
|
|
|
705
705
|
}
|
|
706
706
|
)
|
|
707
707
|
] });
|
|
708
|
-
},
|
|
708
|
+
}, oi = ({
|
|
709
709
|
summary: e,
|
|
710
710
|
group: n,
|
|
711
711
|
parameters: r,
|
|
@@ -722,7 +722,7 @@ const nn = fe, ri = ({
|
|
|
722
722
|
id: `${a}/${n}-parameters`,
|
|
723
723
|
className: "capitalize",
|
|
724
724
|
children: [
|
|
725
|
-
e && /* @__PURE__ */ l.jsxs(
|
|
725
|
+
e && /* @__PURE__ */ l.jsxs(Io, { children: [
|
|
726
726
|
e,
|
|
727
727
|
" › "
|
|
728
728
|
] }),
|
|
@@ -730,10 +730,10 @@ const nn = fe, ri = ({
|
|
|
730
730
|
]
|
|
731
731
|
}
|
|
732
732
|
),
|
|
733
|
-
/* @__PURE__ */ l.jsx(
|
|
734
|
-
t > 0 && /* @__PURE__ */ l.jsx(
|
|
733
|
+
/* @__PURE__ */ l.jsx(Uo, { children: /* @__PURE__ */ l.jsx(Lo, { className: "p-0!", children: /* @__PURE__ */ l.jsx(Mo, { className: "overflow-clip", children: c.map((i, t) => /* @__PURE__ */ l.jsxs(No, { children: [
|
|
734
|
+
t > 0 && /* @__PURE__ */ l.jsx(Bo, {}),
|
|
735
735
|
/* @__PURE__ */ l.jsx(
|
|
736
|
-
|
|
736
|
+
ai,
|
|
737
737
|
{
|
|
738
738
|
parameter: i,
|
|
739
739
|
id: a,
|
|
@@ -742,12 +742,12 @@ const nn = fe, ri = ({
|
|
|
742
742
|
)
|
|
743
743
|
] }, `${i.name}-${i.in}`)) }) }) })
|
|
744
744
|
] });
|
|
745
|
-
},
|
|
745
|
+
}, ii = ({
|
|
746
746
|
rootMargin: e = "0px",
|
|
747
747
|
threshold: n,
|
|
748
748
|
root: r
|
|
749
749
|
} = {}) => {
|
|
750
|
-
const [a, c] = ge(!1), i =
|
|
750
|
+
const [a, c] = ge(!1), i = ko(null);
|
|
751
751
|
return Cr(() => {
|
|
752
752
|
const t = new IntersectionObserver(
|
|
753
753
|
([s]) => {
|
|
@@ -758,7 +758,7 @@ const nn = fe, ri = ({
|
|
|
758
758
|
if (o)
|
|
759
759
|
return t.observe(o), () => t.unobserve(o);
|
|
760
760
|
}, [r, e, n]), [i, a];
|
|
761
|
-
},
|
|
761
|
+
}, si = () => /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }), Lr = ({
|
|
762
762
|
code: e,
|
|
763
763
|
className: n
|
|
764
764
|
}) => /* @__PURE__ */ l.jsx(
|
|
@@ -770,7 +770,7 @@ const nn = fe, ri = ({
|
|
|
770
770
|
),
|
|
771
771
|
children: /* @__PURE__ */ l.jsxs("code", { children: [
|
|
772
772
|
e.split(`
|
|
773
|
-
`).length > 13 && /* @__PURE__ */ l.jsx(
|
|
773
|
+
`).length > 13 && /* @__PURE__ */ l.jsx(si, {}),
|
|
774
774
|
e
|
|
775
775
|
] })
|
|
776
776
|
}
|
|
@@ -807,7 +807,7 @@ const nn = fe, ri = ({
|
|
|
807
807
|
),
|
|
808
808
|
children: e
|
|
809
809
|
}
|
|
810
|
-
),
|
|
810
|
+
), li = ({ children: e, className: n }) => /* @__PURE__ */ l.jsx(
|
|
811
811
|
"div",
|
|
812
812
|
{
|
|
813
813
|
"data-slot": "sidecar-box-footer",
|
|
@@ -817,7 +817,7 @@ const nn = fe, ri = ({
|
|
|
817
817
|
),
|
|
818
818
|
children: e
|
|
819
819
|
}
|
|
820
|
-
),
|
|
820
|
+
), ci = ({
|
|
821
821
|
code: e,
|
|
822
822
|
isOnScreen: n,
|
|
823
823
|
shouldLazyHighlight: r
|
|
@@ -838,7 +838,7 @@ const nn = fe, ri = ({
|
|
|
838
838
|
className: "[--scrollbar-color:gray] rounded-none text-xs max-h-[200px]"
|
|
839
839
|
}
|
|
840
840
|
) })
|
|
841
|
-
] }),
|
|
841
|
+
] }), ui = ({
|
|
842
842
|
server: e,
|
|
843
843
|
servers: n,
|
|
844
844
|
operation: r,
|
|
@@ -875,10 +875,10 @@ const nn = fe, ri = ({
|
|
|
875
875
|
examples: a
|
|
876
876
|
}
|
|
877
877
|
);
|
|
878
|
-
},
|
|
878
|
+
}, pi = (e) => {
|
|
879
879
|
if (e != null)
|
|
880
880
|
return typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2);
|
|
881
|
-
},
|
|
881
|
+
}, fi = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
|
|
882
882
|
"text/html": "html",
|
|
883
883
|
"application/x-ndjson": "json",
|
|
884
884
|
"application/json": "json",
|
|
@@ -896,7 +896,7 @@ const nn = fe, ri = ({
|
|
|
896
896
|
isOnScreen: i,
|
|
897
897
|
shouldLazyHighlight: t
|
|
898
898
|
}) => {
|
|
899
|
-
const o = e[a], s = o?.examples ?? [], u = s?.[c],
|
|
899
|
+
const o = e[a], s = o?.examples ?? [], u = s?.[c], p = pi(u?.value), d = fi(o?.mediaType);
|
|
900
900
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
901
901
|
/* @__PURE__ */ l.jsxs(_r, { className: "p-0", children: [
|
|
902
902
|
u?.externalValue ? /* @__PURE__ */ l.jsx("div", { className: "p-4", children: /* @__PURE__ */ l.jsxs(
|
|
@@ -911,18 +911,18 @@ const nn = fe, ri = ({
|
|
|
911
911
|
/* @__PURE__ */ l.jsx(Ae, { className: "size-3 inline-block ms-1 align-[-0.125em]" })
|
|
912
912
|
]
|
|
913
913
|
}
|
|
914
|
-
) }) : t && !i &&
|
|
914
|
+
) }) : t && !i && p ? /* @__PURE__ */ l.jsx(Lr, { code: p }) : p ? /* @__PURE__ */ l.jsx(
|
|
915
915
|
nt,
|
|
916
916
|
{
|
|
917
917
|
embedded: !0,
|
|
918
|
-
language:
|
|
918
|
+
language: d,
|
|
919
919
|
className: "[--scrollbar-color:gray] rounded-none max-h-[200px] text-xs overflow-auto",
|
|
920
|
-
code:
|
|
920
|
+
code: p
|
|
921
921
|
}
|
|
922
922
|
) : /* @__PURE__ */ l.jsx("div", { className: "grid place-items-center text-xs text-muted-foreground min-h-18", children: "No example specified for this content type" }),
|
|
923
923
|
u?.description && /* @__PURE__ */ l.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: u.description })
|
|
924
924
|
] }),
|
|
925
|
-
/* @__PURE__ */ l.jsxs(
|
|
925
|
+
/* @__PURE__ */ l.jsxs(li, { className: "text-xs", children: [
|
|
926
926
|
n && /* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground text-xs px-1 py-2", children: n }),
|
|
927
927
|
(s.length !== 0 || e.length !== 0) && /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0", children: [
|
|
928
928
|
/* @__PURE__ */ l.jsx("div", { className: "flex items-center gap-2 flex-wrap", children: e.length > 1 ? /* @__PURE__ */ l.jsx(
|
|
@@ -973,16 +973,16 @@ const nn = fe, ri = ({
|
|
|
973
973
|
] })
|
|
974
974
|
] })
|
|
975
975
|
] });
|
|
976
|
-
},
|
|
976
|
+
}, di = ({
|
|
977
977
|
content: e,
|
|
978
978
|
onExampleChange: n,
|
|
979
979
|
isOnScreen: r,
|
|
980
980
|
shouldLazyHighlight: a,
|
|
981
981
|
selectedContentIndex: c,
|
|
982
982
|
selectedExampleIndex: i
|
|
983
|
-
}) => e.length === 0 ? null : /* @__PURE__ */ l.jsx(
|
|
983
|
+
}) => e.length === 0 ? null : /* @__PURE__ */ l.jsx(Rr, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
|
|
984
984
|
/* @__PURE__ */ l.jsx(pt, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center gap-1 font-medium", children: [
|
|
985
|
-
/* @__PURE__ */ l.jsx(
|
|
985
|
+
/* @__PURE__ */ l.jsx(Er, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
|
|
986
986
|
ot,
|
|
987
987
|
{
|
|
988
988
|
variant: "ghost",
|
|
@@ -1016,15 +1016,15 @@ const nn = fe, ri = ({
|
|
|
1016
1016
|
}) => {
|
|
1017
1017
|
const [i, t] = ge(
|
|
1018
1018
|
n ?? e[0]?.statusCode
|
|
1019
|
-
), [o, s] = ge(0), [u,
|
|
1019
|
+
), [o, s] = ge(0), [u, p] = ge(0);
|
|
1020
1020
|
return Cr(() => {
|
|
1021
1021
|
n && t(n);
|
|
1022
1022
|
}, [n]), Cr(() => {
|
|
1023
|
-
i && (s(0),
|
|
1024
|
-
}, [i]), /* @__PURE__ */ l.jsx(
|
|
1023
|
+
i && (s(0), p(0));
|
|
1024
|
+
}, [i]), /* @__PURE__ */ l.jsx(Rr, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
|
|
1025
1025
|
/* @__PURE__ */ l.jsxs(pt, { className: "text-xs flex justify-between items-center", children: [
|
|
1026
1026
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1 font-medium shrink-0", children: [
|
|
1027
|
-
/* @__PURE__ */ l.jsx(
|
|
1027
|
+
/* @__PURE__ */ l.jsx(Er, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
|
|
1028
1028
|
ot,
|
|
1029
1029
|
{
|
|
1030
1030
|
variant: "ghost",
|
|
@@ -1047,14 +1047,14 @@ const nn = fe, ri = ({
|
|
|
1047
1047
|
{
|
|
1048
1048
|
className: "text-xs h-fit py-1 -my-1 bg-background",
|
|
1049
1049
|
value: i,
|
|
1050
|
-
onChange: (
|
|
1051
|
-
children: e.map((
|
|
1050
|
+
onChange: (d) => t(d.target.value),
|
|
1051
|
+
children: e.map((d) => /* @__PURE__ */ l.jsx(
|
|
1052
1052
|
ze,
|
|
1053
1053
|
{
|
|
1054
|
-
value:
|
|
1055
|
-
children:
|
|
1054
|
+
value: d.statusCode,
|
|
1055
|
+
children: d.statusCode
|
|
1056
1056
|
},
|
|
1057
|
-
|
|
1057
|
+
d.statusCode
|
|
1058
1058
|
))
|
|
1059
1059
|
}
|
|
1060
1060
|
) })
|
|
@@ -1064,10 +1064,10 @@ const nn = fe, ri = ({
|
|
|
1064
1064
|
{
|
|
1065
1065
|
selectedContentIndex: o,
|
|
1066
1066
|
selectedExampleIndex: u,
|
|
1067
|
-
onExampleChange: (
|
|
1068
|
-
s(
|
|
1067
|
+
onExampleChange: (d) => {
|
|
1068
|
+
s(d.contentTypeIndex), p(d.exampleIndex);
|
|
1069
1069
|
},
|
|
1070
|
-
content: e.find((
|
|
1070
|
+
content: e.find((d) => d.statusCode === i)?.content ?? [],
|
|
1071
1071
|
isOnScreen: r,
|
|
1072
1072
|
shouldLazyHighlight: a
|
|
1073
1073
|
}
|
|
@@ -1100,40 +1100,40 @@ var on = (e, n) => {
|
|
|
1100
1100
|
}, this.indentationCharacter = e || sn, this.lineJoin = n ?? ln;
|
|
1101
1101
|
}
|
|
1102
1102
|
}, Ot, cn;
|
|
1103
|
-
function
|
|
1103
|
+
function hi() {
|
|
1104
1104
|
return cn || (cn = 1, Ot = function(e) {
|
|
1105
1105
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1106
1106
|
}), Ot;
|
|
1107
1107
|
}
|
|
1108
1108
|
var Tt, un;
|
|
1109
|
-
function
|
|
1109
|
+
function mi() {
|
|
1110
1110
|
return un || (un = 1, Tt = function(e) {
|
|
1111
1111
|
var n = typeof e;
|
|
1112
1112
|
return e !== null && (n === "object" || n === "function");
|
|
1113
1113
|
}), Tt;
|
|
1114
1114
|
}
|
|
1115
1115
|
var rt = {}, pn;
|
|
1116
|
-
function
|
|
1116
|
+
function yi() {
|
|
1117
1117
|
return pn || (pn = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), rt;
|
|
1118
1118
|
}
|
|
1119
1119
|
var Ct, fn;
|
|
1120
|
-
function
|
|
1120
|
+
function gi() {
|
|
1121
1121
|
if (fn) return Ct;
|
|
1122
1122
|
fn = 1;
|
|
1123
|
-
const e =
|
|
1123
|
+
const e = hi(), n = mi(), r = yi().default;
|
|
1124
1124
|
return Ct = (a, c, i) => {
|
|
1125
1125
|
const t = [];
|
|
1126
|
-
return (function o(s, u,
|
|
1127
|
-
u = u || {}, u.indent = u.indent || " ",
|
|
1128
|
-
let
|
|
1129
|
-
u.inlineCharacterLimit === void 0 ?
|
|
1126
|
+
return (function o(s, u, p) {
|
|
1127
|
+
u = u || {}, u.indent = u.indent || " ", p = p || "";
|
|
1128
|
+
let d;
|
|
1129
|
+
u.inlineCharacterLimit === void 0 ? d = {
|
|
1130
1130
|
newLine: `
|
|
1131
1131
|
`,
|
|
1132
1132
|
newLineOrSpace: `
|
|
1133
1133
|
`,
|
|
1134
|
-
pad:
|
|
1135
|
-
indent:
|
|
1136
|
-
} :
|
|
1134
|
+
pad: p,
|
|
1135
|
+
indent: p + u.indent
|
|
1136
|
+
} : d = {
|
|
1137
1137
|
newLine: "@@__STRINGIFY_OBJECT_NEW_LINE__@@",
|
|
1138
1138
|
newLineOrSpace: "@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",
|
|
1139
1139
|
pad: "@@__STRINGIFY_OBJECT_PAD__@@",
|
|
@@ -1142,9 +1142,9 @@ function vi() {
|
|
|
1142
1142
|
const m = (y) => {
|
|
1143
1143
|
if (u.inlineCharacterLimit === void 0)
|
|
1144
1144
|
return y;
|
|
1145
|
-
const j = y.replace(new RegExp(
|
|
1146
|
-
return j.length <= u.inlineCharacterLimit ? j : y.replace(new RegExp(
|
|
1147
|
-
`).replace(new RegExp(
|
|
1145
|
+
const j = y.replace(new RegExp(d.newLine, "g"), "").replace(new RegExp(d.newLineOrSpace, "g"), " ").replace(new RegExp(d.pad + "|" + d.indent, "g"), "");
|
|
1146
|
+
return j.length <= u.inlineCharacterLimit ? j : y.replace(new RegExp(d.newLine + "|" + d.newLineOrSpace, "g"), `
|
|
1147
|
+
`).replace(new RegExp(d.pad, "g"), p).replace(new RegExp(d.indent, "g"), p + u.indent);
|
|
1148
1148
|
};
|
|
1149
1149
|
if (t.indexOf(s) !== -1)
|
|
1150
1150
|
return '"[Circular]"';
|
|
@@ -1156,11 +1156,11 @@ function vi() {
|
|
|
1156
1156
|
if (s.length === 0)
|
|
1157
1157
|
return "[]";
|
|
1158
1158
|
t.push(s);
|
|
1159
|
-
const y = "[" +
|
|
1160
|
-
const f = s.length - 1 === b ?
|
|
1161
|
-
let g = o(j, u,
|
|
1162
|
-
return u.transform && (g = u.transform(s, b, g)),
|
|
1163
|
-
}).join("") +
|
|
1159
|
+
const y = "[" + d.newLine + s.map((j, b) => {
|
|
1160
|
+
const f = s.length - 1 === b ? d.newLine : "," + d.newLineOrSpace;
|
|
1161
|
+
let g = o(j, u, p + u.indent);
|
|
1162
|
+
return u.transform && (g = u.transform(s, b, g)), d.indent + g + f;
|
|
1163
|
+
}).join("") + d.pad + "]";
|
|
1164
1164
|
return t.pop(), m(y);
|
|
1165
1165
|
}
|
|
1166
1166
|
if (n(s)) {
|
|
@@ -1168,11 +1168,11 @@ function vi() {
|
|
|
1168
1168
|
if (u.filter && (y = y.filter((b) => u.filter(s, b))), y.length === 0)
|
|
1169
1169
|
return "{}";
|
|
1170
1170
|
t.push(s);
|
|
1171
|
-
const j = "{" +
|
|
1172
|
-
const g = y.length - 1 === f ?
|
|
1173
|
-
let
|
|
1174
|
-
return u.transform && (
|
|
1175
|
-
}).join("") +
|
|
1171
|
+
const j = "{" + d.newLine + y.map((b, f) => {
|
|
1172
|
+
const g = y.length - 1 === f ? d.newLine : "," + d.newLineOrSpace, v = typeof b == "symbol", S = !v && /^[a-z$_][a-z$_0-9]*$/i.test(b), C = v || S ? b : o(b, u);
|
|
1173
|
+
let h = o(s[b], u, p + u.indent);
|
|
1174
|
+
return u.transform && (h = u.transform(s, b, h)), d.indent + String(C) + ": " + h + g;
|
|
1175
|
+
}).join("") + d.pad + "}";
|
|
1176
1176
|
return t.pop(), m(j);
|
|
1177
1177
|
}
|
|
1178
1178
|
return s = String(s).replace(/[\r\n]/g, (y) => y === `
|
|
@@ -1180,14 +1180,14 @@ function vi() {
|
|
|
1180
1180
|
})(a, c, i);
|
|
1181
1181
|
}, Ct;
|
|
1182
1182
|
}
|
|
1183
|
-
var
|
|
1184
|
-
const ue = /* @__PURE__ */
|
|
1183
|
+
var vi = gi();
|
|
1184
|
+
const ue = /* @__PURE__ */ Go(vi);
|
|
1185
1185
|
function Ge(e, n = {}) {
|
|
1186
1186
|
const { delimiter: r = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
|
|
1187
1187
|
return [...e.toString()].map((t) => t === "\b" ? `${a}b` : t === " " ? `${a}t` : t === `
|
|
1188
1188
|
` ? c ? `${a}n` : t : t === "\f" ? `${a}f` : t === "\r" ? c ? `${a}r` : t : t === a ? a + a : t === r ? a + r : t < " " || t > "~" ? JSON.stringify(t).slice(1, -1) : t).join("");
|
|
1189
1189
|
}
|
|
1190
|
-
var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' }),
|
|
1190
|
+
var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' }), xi = {
|
|
1191
1191
|
info: {
|
|
1192
1192
|
key: "libcurl",
|
|
1193
1193
|
title: "Libcurl",
|
|
@@ -1203,7 +1203,7 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
|
|
|
1203
1203
|
i(`headers = curl_slist_append(headers, "${u}: ${le(r[u])}");`);
|
|
1204
1204
|
}), i("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (t(), i(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (t(), i(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), t(), i("CURLcode ret = curl_easy_perform(hnd);"), o();
|
|
1205
1205
|
}
|
|
1206
|
-
},
|
|
1206
|
+
}, bi = {
|
|
1207
1207
|
info: {
|
|
1208
1208
|
key: "c",
|
|
1209
1209
|
title: "C",
|
|
@@ -1211,19 +1211,19 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
|
|
|
1211
1211
|
cli: "c"
|
|
1212
1212
|
},
|
|
1213
1213
|
clientsById: {
|
|
1214
|
-
libcurl:
|
|
1214
|
+
libcurl: xi
|
|
1215
1215
|
}
|
|
1216
1216
|
}, pe = (e, n) => Object.keys(e).find((r) => r.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
|
|
1217
1217
|
const r = pe(e, n);
|
|
1218
1218
|
if (r)
|
|
1219
1219
|
return e[r];
|
|
1220
|
-
}, ft = (e, n) => !!pe(e, n),
|
|
1220
|
+
}, ft = (e, n) => !!pe(e, n), ji = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
1221
1221
|
(n) => e.indexOf(n) > -1
|
|
1222
1222
|
), dn = class {
|
|
1223
1223
|
constructor(e) {
|
|
1224
1224
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
1225
1225
|
}
|
|
1226
|
-
},
|
|
1226
|
+
}, $i = class {
|
|
1227
1227
|
constructor(e) {
|
|
1228
1228
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
1229
1229
|
}
|
|
@@ -1260,7 +1260,7 @@ ${r}`);
|
|
|
1260
1260
|
default:
|
|
1261
1261
|
return e.toString();
|
|
1262
1262
|
}
|
|
1263
|
-
},
|
|
1263
|
+
}, wi = {
|
|
1264
1264
|
info: {
|
|
1265
1265
|
key: "clj_http",
|
|
1266
1266
|
title: "clj-http",
|
|
@@ -1280,35 +1280,35 @@ ${r}`);
|
|
|
1280
1280
|
case "application/json":
|
|
1281
1281
|
{
|
|
1282
1282
|
u["content-type"] = new dn("json"), u["form-params"] = r.jsonObj;
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1283
|
+
const p = pe(u.headers, "content-type");
|
|
1284
|
+
p && delete u.headers[p];
|
|
1285
1285
|
}
|
|
1286
1286
|
break;
|
|
1287
1287
|
case "application/x-www-form-urlencoded":
|
|
1288
1288
|
{
|
|
1289
1289
|
u["form-params"] = r.paramsObj;
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1290
|
+
const p = pe(u.headers, "content-type");
|
|
1291
|
+
p && delete u.headers[p];
|
|
1292
1292
|
}
|
|
1293
1293
|
break;
|
|
1294
1294
|
case "text/plain":
|
|
1295
1295
|
{
|
|
1296
1296
|
u.body = r.text;
|
|
1297
|
-
const
|
|
1298
|
-
|
|
1297
|
+
const p = pe(u.headers, "content-type");
|
|
1298
|
+
p && delete u.headers[p];
|
|
1299
1299
|
}
|
|
1300
1300
|
break;
|
|
1301
1301
|
case "multipart/form-data": {
|
|
1302
1302
|
if (r.params) {
|
|
1303
|
-
u.multipart = r.params.map((
|
|
1304
|
-
name:
|
|
1305
|
-
content: new
|
|
1303
|
+
u.multipart = r.params.map((d) => d.fileName && !d.value ? {
|
|
1304
|
+
name: d.name,
|
|
1305
|
+
content: new $i(d.fileName)
|
|
1306
1306
|
} : {
|
|
1307
|
-
name:
|
|
1308
|
-
content:
|
|
1307
|
+
name: d.name,
|
|
1308
|
+
content: d.value
|
|
1309
1309
|
});
|
|
1310
|
-
const
|
|
1311
|
-
|
|
1310
|
+
const p = pe(u.headers, "content-type");
|
|
1311
|
+
p && delete u.headers[p];
|
|
1312
1312
|
}
|
|
1313
1313
|
break;
|
|
1314
1314
|
}
|
|
@@ -1317,8 +1317,8 @@ ${r}`);
|
|
|
1317
1317
|
case "application/json":
|
|
1318
1318
|
{
|
|
1319
1319
|
u.accept = new dn("json");
|
|
1320
|
-
const
|
|
1321
|
-
|
|
1320
|
+
const p = pe(u.headers, "accept");
|
|
1321
|
+
p && delete u.headers[p];
|
|
1322
1322
|
}
|
|
1323
1323
|
break;
|
|
1324
1324
|
}
|
|
@@ -1326,21 +1326,21 @@ ${r}`);
|
|
|
1326
1326
|
`), qa(hn(u)))
|
|
1327
1327
|
t(`(client/${n} "${a}")`);
|
|
1328
1328
|
else {
|
|
1329
|
-
const
|
|
1330
|
-
t(`(client/${n} "${a}" ${
|
|
1329
|
+
const p = 11 + n.length + a.length, d = at(p, Pr(hn(u)));
|
|
1330
|
+
t(`(client/${n} "${a}" ${d})`);
|
|
1331
1331
|
}
|
|
1332
1332
|
return o();
|
|
1333
1333
|
}
|
|
1334
|
-
},
|
|
1334
|
+
}, Si = {
|
|
1335
1335
|
info: {
|
|
1336
1336
|
key: "clojure",
|
|
1337
1337
|
title: "Clojure",
|
|
1338
1338
|
default: "clj_http"
|
|
1339
1339
|
},
|
|
1340
1340
|
clientsById: {
|
|
1341
|
-
clj_http:
|
|
1341
|
+
clj_http: wi
|
|
1342
1342
|
}
|
|
1343
|
-
},
|
|
1343
|
+
}, Oi = (e) => {
|
|
1344
1344
|
let n = ve(e, "accept-encoding");
|
|
1345
1345
|
if (!n)
|
|
1346
1346
|
return [];
|
|
@@ -1357,7 +1357,7 @@ ${r}`);
|
|
|
1357
1357
|
}
|
|
1358
1358
|
});
|
|
1359
1359
|
}), a;
|
|
1360
|
-
},
|
|
1360
|
+
}, Ti = {
|
|
1361
1361
|
info: {
|
|
1362
1362
|
key: "httpclient",
|
|
1363
1363
|
title: "HttpClient",
|
|
@@ -1372,10 +1372,10 @@ ${r}`);
|
|
|
1372
1372
|
}, { push: t, join: o } = new Q({ indent: i.indent });
|
|
1373
1373
|
t("using System.Net.Http.Headers;");
|
|
1374
1374
|
let s = "";
|
|
1375
|
-
const u = !!e.cookie,
|
|
1376
|
-
(u ||
|
|
1377
|
-
const
|
|
1378
|
-
r = r.toUpperCase(), r &&
|
|
1375
|
+
const u = !!e.cookie, p = Oi(e);
|
|
1376
|
+
(u || p.length) && (s = "clientHandler", t("var clientHandler = new HttpClientHandler"), t("{"), u && t("UseCookies = false,", 1), p.length && t(`AutomaticDecompression = ${p.join(" | ")},`, 1), t("};")), t(`var client = new HttpClient(${s});`), t("var request = new HttpRequestMessage"), t("{");
|
|
1377
|
+
const d = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
1378
|
+
r = r.toUpperCase(), r && d.includes(r) ? r = `HttpMethod.${r[0]}${r.substring(1).toLowerCase()}` : r = `new HttpMethod("${r}")`, t(`Method = ${r},`, 1), t(`RequestUri = new Uri("${a}"),`, 1);
|
|
1379
1379
|
const m = Object.keys(e).filter((y) => {
|
|
1380
1380
|
switch (y.toLowerCase()) {
|
|
1381
1381
|
case "content-type":
|
|
@@ -1409,10 +1409,10 @@ ${r}`);
|
|
|
1409
1409
|
return t("};"), t("using (var response = await client.SendAsync(request))"), t("{"), t("response.EnsureSuccessStatusCode();", 1), t("var body = await response.Content.ReadAsStringAsync();", 1), t("Console.WriteLine(body);", 1), t("}"), o();
|
|
1410
1410
|
}
|
|
1411
1411
|
};
|
|
1412
|
-
function
|
|
1412
|
+
function Ci(e) {
|
|
1413
1413
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
1414
1414
|
}
|
|
1415
|
-
var
|
|
1415
|
+
var Pi = {
|
|
1416
1416
|
info: {
|
|
1417
1417
|
key: "restsharp",
|
|
1418
1418
|
title: "RestSharp",
|
|
@@ -1431,42 +1431,42 @@ var Ni = {
|
|
|
1431
1431
|
|
|
1432
1432
|
`), t(`var options = new RestClientOptions("${n}");`), t("var client = new RestClient(options);"), t('var request = new RestRequest("");');
|
|
1433
1433
|
const u = c.mimeType && c.mimeType === "multipart/form-data";
|
|
1434
|
-
switch (u && t("request.AlwaysMultipartFormData = true;"), Object.keys(r).forEach((
|
|
1435
|
-
if (c.mimeType &&
|
|
1434
|
+
switch (u && t("request.AlwaysMultipartFormData = true;"), Object.keys(r).forEach((p) => {
|
|
1435
|
+
if (c.mimeType && p.toLowerCase() === "content-type" && c.text) {
|
|
1436
1436
|
u && c.boundary && t(`request.FormBoundary = "${c.boundary}";`);
|
|
1437
1437
|
return;
|
|
1438
1438
|
}
|
|
1439
|
-
t(`request.AddHeader("${
|
|
1440
|
-
}), a.forEach(({ name:
|
|
1441
|
-
t(`request.AddCookie("${
|
|
1439
|
+
t(`request.AddHeader("${p}", "${le(r[p])}");`);
|
|
1440
|
+
}), a.forEach(({ name: p, value: d }) => {
|
|
1441
|
+
t(`request.AddCookie("${p}", "${le(d)}", "${i.pathname}", "${i.host}");`);
|
|
1442
1442
|
}), c.mimeType) {
|
|
1443
1443
|
case "multipart/form-data":
|
|
1444
1444
|
if (!c.params) break;
|
|
1445
|
-
c.params.forEach((
|
|
1446
|
-
|
|
1445
|
+
c.params.forEach((p) => {
|
|
1446
|
+
p.fileName ? t(`request.AddFile("${p.name}", "${p.fileName}");`) : t(`request.AddParameter("${p.name}", "${p.value}");`);
|
|
1447
1447
|
});
|
|
1448
1448
|
break;
|
|
1449
1449
|
case "application/x-www-form-urlencoded":
|
|
1450
1450
|
if (!c.params) break;
|
|
1451
|
-
c.params.forEach((
|
|
1452
|
-
t(`request.AddParameter("${
|
|
1451
|
+
c.params.forEach((p) => {
|
|
1452
|
+
t(`request.AddParameter("${p.name}", "${p.value}");`);
|
|
1453
1453
|
});
|
|
1454
1454
|
break;
|
|
1455
1455
|
case "application/json": {
|
|
1456
1456
|
if (!c.text) break;
|
|
1457
|
-
const
|
|
1458
|
-
t(`request.AddJsonBody(${
|
|
1457
|
+
const p = JSON.stringify(c.text);
|
|
1458
|
+
t(`request.AddJsonBody(${p}, false);`);
|
|
1459
1459
|
break;
|
|
1460
1460
|
}
|
|
1461
1461
|
default:
|
|
1462
1462
|
if (!c.text) break;
|
|
1463
1463
|
t(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
|
|
1464
1464
|
}
|
|
1465
|
-
return t(`var response = await client.${
|
|
1465
|
+
return t(`var response = await client.${Ci(e)}Async(request);
|
|
1466
1466
|
`), t(`Console.WriteLine("{0}", response.Content);
|
|
1467
1467
|
`), o();
|
|
1468
1468
|
}
|
|
1469
|
-
},
|
|
1469
|
+
}, Ni = {
|
|
1470
1470
|
info: {
|
|
1471
1471
|
key: "csharp",
|
|
1472
1472
|
title: "C#",
|
|
@@ -1474,10 +1474,10 @@ var Ni = {
|
|
|
1474
1474
|
cli: "dotnet"
|
|
1475
1475
|
},
|
|
1476
1476
|
clientsById: {
|
|
1477
|
-
httpclient:
|
|
1478
|
-
restsharp:
|
|
1477
|
+
httpclient: Ti,
|
|
1478
|
+
restsharp: Pi
|
|
1479
1479
|
}
|
|
1480
|
-
},
|
|
1480
|
+
}, ki = {
|
|
1481
1481
|
info: {
|
|
1482
1482
|
key: "native",
|
|
1483
1483
|
title: "NewRequest",
|
|
@@ -1486,16 +1486,16 @@ var Ni = {
|
|
|
1486
1486
|
extname: ".go"
|
|
1487
1487
|
},
|
|
1488
1488
|
convert: ({ postData: e, method: n, allHeaders: r, fullUrl: a }, c = {}) => {
|
|
1489
|
-
const { blank: i, push: t, join: o } = new Q({ indent: " " }), { showBoilerplate: s = !0, checkErrors: u = !1, printBody:
|
|
1489
|
+
const { blank: i, push: t, join: o } = new Q({ indent: " " }), { showBoilerplate: s = !0, checkErrors: u = !1, printBody: p = !0, timeout: d = -1 } = c, m = u ? "err" : "_", y = s ? 1 : 0, j = () => {
|
|
1490
1490
|
u && (t("if err != nil {", y), t("panic(err)", y + 1), t("}", y));
|
|
1491
1491
|
};
|
|
1492
|
-
s && (t("package main"), i(), t("import ("), t('"fmt"', y),
|
|
1493
|
-
const b =
|
|
1494
|
-
return f && (t("client := http.Client{", y), b && t(`Timeout: time.Duration(${
|
|
1492
|
+
s && (t("package main"), i(), t("import ("), t('"fmt"', y), d > 0 && t('"time"', y), e.text && t('"strings"', y), t('"net/http"', y), p && t('"io"', y), t(")"), i(), t("func main() {"), i());
|
|
1493
|
+
const b = d > 0, f = b, g = f ? "client" : "http.DefaultClient";
|
|
1494
|
+
return f && (t("client := http.Client{", y), b && t(`Timeout: time.Duration(${d} * time.Second),`, y + 1), t("}", y), i()), t(`url := "${a}"`, y), i(), e.text ? (t(`payload := strings.NewReader(${JSON.stringify(e.text)})`, y), i(), t(`req, ${m} := http.NewRequest("${n}", url, payload)`, y), i()) : (t(`req, ${m} := http.NewRequest("${n}", url, nil)`, y), i()), j(), Object.keys(r).length && (Object.keys(r).forEach((v) => {
|
|
1495
1495
|
t(`req.Header.Add("${v}", "${le(r[v])}")`, y);
|
|
1496
|
-
}), i()), t(`res, ${m} := ${g}.Do(req)`, y), j(),
|
|
1496
|
+
}), i()), t(`res, ${m} := ${g}.Do(req)`, y), j(), p && (i(), t("defer res.Body.Close()", y), t(`body, ${m} := io.ReadAll(res.Body)`, y), j()), i(), p && t("fmt.Println(string(body))", y), s && (i(), t("}")), o();
|
|
1497
1497
|
}
|
|
1498
|
-
},
|
|
1498
|
+
}, qi = {
|
|
1499
1499
|
info: {
|
|
1500
1500
|
key: "go",
|
|
1501
1501
|
title: "Go",
|
|
@@ -1503,7 +1503,7 @@ var Ni = {
|
|
|
1503
1503
|
cli: "go"
|
|
1504
1504
|
},
|
|
1505
1505
|
clientsById: {
|
|
1506
|
-
native:
|
|
1506
|
+
native: ki
|
|
1507
1507
|
}
|
|
1508
1508
|
}, mn = `\r
|
|
1509
1509
|
`, Ri = {
|
|
@@ -1520,8 +1520,8 @@ var Ni = {
|
|
|
1520
1520
|
autoContentLength: !0,
|
|
1521
1521
|
autoHost: !0,
|
|
1522
1522
|
...t
|
|
1523
|
-
}, { blank: s, push: u, join:
|
|
1524
|
-
u(`${e} ${
|
|
1523
|
+
}, { blank: s, push: u, join: p } = new Q({ indent: "", join: mn }), d = o.absoluteURI ? n : r.path;
|
|
1524
|
+
u(`${e} ${d} ${a}`);
|
|
1525
1525
|
const m = Object.keys(c);
|
|
1526
1526
|
if (m.forEach((b) => {
|
|
1527
1527
|
const f = b.toLowerCase().replace(/(^|-)(\w)/g, (g) => g.toUpperCase());
|
|
@@ -1531,10 +1531,10 @@ var Ni = {
|
|
|
1531
1531
|
u(`Content-Length: ${f}`);
|
|
1532
1532
|
}
|
|
1533
1533
|
s();
|
|
1534
|
-
const y =
|
|
1534
|
+
const y = p(), j = i.text || "";
|
|
1535
1535
|
return `${y}${mn}${j}`;
|
|
1536
1536
|
}
|
|
1537
|
-
},
|
|
1537
|
+
}, Ei = {
|
|
1538
1538
|
info: {
|
|
1539
1539
|
key: "http",
|
|
1540
1540
|
title: "HTTP",
|
|
@@ -1543,7 +1543,7 @@ var Ni = {
|
|
|
1543
1543
|
clientsById: {
|
|
1544
1544
|
"http1.1": Ri
|
|
1545
1545
|
}
|
|
1546
|
-
},
|
|
1546
|
+
}, Ai = {
|
|
1547
1547
|
info: {
|
|
1548
1548
|
key: "asynchttp",
|
|
1549
1549
|
title: "AsyncHttp",
|
|
@@ -1560,7 +1560,7 @@ var Ni = {
|
|
|
1560
1560
|
o(`.setHeader("${u}", "${le(n[u])}")`, 1);
|
|
1561
1561
|
}), r.text && o(`.setBody(${JSON.stringify(r.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), t(), o("client.close();"), s();
|
|
1562
1562
|
}
|
|
1563
|
-
},
|
|
1563
|
+
}, Ii = {
|
|
1564
1564
|
info: {
|
|
1565
1565
|
key: "nethttp",
|
|
1566
1566
|
title: "java.net.http",
|
|
@@ -1582,7 +1582,7 @@ var Ni = {
|
|
|
1582
1582
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
1583
1583
|
), t("System.out.println(response.body());"), o();
|
|
1584
1584
|
}
|
|
1585
|
-
},
|
|
1585
|
+
}, Ui = {
|
|
1586
1586
|
info: {
|
|
1587
1587
|
key: "okhttp",
|
|
1588
1588
|
title: "OkHttp",
|
|
@@ -1594,12 +1594,12 @@ var Ni = {
|
|
|
1594
1594
|
const i = {
|
|
1595
1595
|
indent: " ",
|
|
1596
1596
|
...c
|
|
1597
|
-
}, { push: t, blank: o, join: s } = new Q({ indent: i.indent }), u = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"],
|
|
1598
|
-
return t("OkHttpClient client = new OkHttpClient();"), o(), e.text && (e.boundary ? t(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : t(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), t(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), t("Request request = new Request.Builder()"), t(`.url("${r}")`, 1), u.includes(n.toUpperCase()) ?
|
|
1599
|
-
t(`.addHeader("${
|
|
1597
|
+
}, { push: t, blank: o, join: s } = new Q({ indent: i.indent }), u = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], p = ["POST", "PUT", "DELETE", "PATCH"];
|
|
1598
|
+
return t("OkHttpClient client = new OkHttpClient();"), o(), e.text && (e.boundary ? t(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : t(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), t(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), t("Request request = new Request.Builder()"), t(`.url("${r}")`, 1), u.includes(n.toUpperCase()) ? p.includes(n.toUpperCase()) ? e.text ? t(`.${n.toLowerCase()}(body)`, 1) : t(`.${n.toLowerCase()}(null)`, 1) : t(`.${n.toLowerCase()}()`, 1) : e.text ? t(`.method("${n.toUpperCase()}", body)`, 1) : t(`.method("${n.toUpperCase()}", null)`, 1), Object.keys(a).forEach((d) => {
|
|
1599
|
+
t(`.addHeader("${d}", "${le(a[d])}")`, 1);
|
|
1600
1600
|
}), t(".build();", 1), o(), t("Response response = client.newCall(request).execute();"), s();
|
|
1601
1601
|
}
|
|
1602
|
-
},
|
|
1602
|
+
}, Li = {
|
|
1603
1603
|
info: {
|
|
1604
1604
|
key: "unirest",
|
|
1605
1605
|
title: "Unirest",
|
|
@@ -1616,19 +1616,19 @@ var Ni = {
|
|
|
1616
1616
|
o(`.header("${u}", "${le(n[u])}")`, 1);
|
|
1617
1617
|
}), r.text && o(`.body(${JSON.stringify(r.text)})`, 1), o(".asString();", 1), t();
|
|
1618
1618
|
}
|
|
1619
|
-
},
|
|
1619
|
+
}, _i = {
|
|
1620
1620
|
info: {
|
|
1621
1621
|
key: "java",
|
|
1622
1622
|
title: "Java",
|
|
1623
1623
|
default: "unirest"
|
|
1624
1624
|
},
|
|
1625
1625
|
clientsById: {
|
|
1626
|
-
asynchttp:
|
|
1627
|
-
nethttp:
|
|
1628
|
-
okhttp:
|
|
1629
|
-
unirest:
|
|
1626
|
+
asynchttp: Ai,
|
|
1627
|
+
nethttp: Ii,
|
|
1628
|
+
okhttp: Ui,
|
|
1629
|
+
unirest: Li
|
|
1630
1630
|
}
|
|
1631
|
-
},
|
|
1631
|
+
}, Fi = {
|
|
1632
1632
|
info: {
|
|
1633
1633
|
key: "axios",
|
|
1634
1634
|
title: "Axios",
|
|
@@ -1641,38 +1641,38 @@ var Ni = {
|
|
|
1641
1641
|
const t = {
|
|
1642
1642
|
indent: " ",
|
|
1643
1643
|
...i
|
|
1644
|
-
}, { blank: o, push: s, join: u, addPostProcessor:
|
|
1644
|
+
}, { blank: o, push: s, join: u, addPostProcessor: p } = new Q({ indent: t.indent });
|
|
1645
1645
|
s("import axios from 'axios';"), o();
|
|
1646
|
-
const
|
|
1646
|
+
const d = {
|
|
1647
1647
|
method: n,
|
|
1648
1648
|
url: r
|
|
1649
1649
|
};
|
|
1650
|
-
switch (Object.keys(a).length && (
|
|
1650
|
+
switch (Object.keys(a).length && (d.params = a), Object.keys(e).length && (d.headers = e), c.mimeType) {
|
|
1651
1651
|
case "application/x-www-form-urlencoded":
|
|
1652
1652
|
c.params && (s("const encodedParams = new URLSearchParams();"), c.params.forEach((y) => {
|
|
1653
1653
|
s(`encodedParams.set('${y.name}', '${y.value}');`);
|
|
1654
|
-
}), o(),
|
|
1654
|
+
}), o(), d.data = "encodedParams,", p((y) => y.replace(/'encodedParams,'/, "encodedParams,")));
|
|
1655
1655
|
break;
|
|
1656
1656
|
case "application/json":
|
|
1657
|
-
c.jsonObj && (
|
|
1657
|
+
c.jsonObj && (d.data = c.jsonObj);
|
|
1658
1658
|
break;
|
|
1659
1659
|
case "multipart/form-data":
|
|
1660
1660
|
if (!c.params)
|
|
1661
1661
|
break;
|
|
1662
1662
|
s("const form = new FormData();"), c.params.forEach((y) => {
|
|
1663
1663
|
s(`form.append('${y.name}', '${y.value || y.fileName || ""}');`);
|
|
1664
|
-
}), o(),
|
|
1664
|
+
}), o(), d.data = "[form]";
|
|
1665
1665
|
break;
|
|
1666
1666
|
default:
|
|
1667
|
-
c.text && (
|
|
1667
|
+
c.text && (d.data = c.text);
|
|
1668
1668
|
}
|
|
1669
|
-
const m = ue(
|
|
1669
|
+
const m = ue(d, {
|
|
1670
1670
|
indent: " ",
|
|
1671
1671
|
inlineCharacterLimit: 80
|
|
1672
1672
|
}).replace('"[form]"', "form");
|
|
1673
1673
|
return s(`const options = ${m};`), o(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), u();
|
|
1674
1674
|
}
|
|
1675
|
-
},
|
|
1675
|
+
}, Hi = {
|
|
1676
1676
|
info: {
|
|
1677
1677
|
key: "fetch",
|
|
1678
1678
|
title: "fetch",
|
|
@@ -1698,9 +1698,9 @@ var Ni = {
|
|
|
1698
1698
|
case "multipart/form-data":
|
|
1699
1699
|
if (!r.params)
|
|
1700
1700
|
break;
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1703
|
-
s(`form.append('${
|
|
1701
|
+
const p = pe(n, "content-type");
|
|
1702
|
+
p && delete n[p], s("const form = new FormData();"), r.params.forEach((d) => {
|
|
1703
|
+
s(`form.append('${d.name}', '${d.value || d.fileName || ""}');`);
|
|
1704
1704
|
}), t();
|
|
1705
1705
|
break;
|
|
1706
1706
|
default:
|
|
@@ -1713,8 +1713,8 @@ var Ni = {
|
|
|
1713
1713
|
// The Fetch API body only accepts string parameters, but stringified JSON can be difficult
|
|
1714
1714
|
// to read, so we keep the object as a literal and use this transform function to wrap the
|
|
1715
1715
|
// literal in a `JSON.stringify` call.
|
|
1716
|
-
transform: (
|
|
1717
|
-
if (
|
|
1716
|
+
transform: (p, d, m) => {
|
|
1717
|
+
if (d === "body") {
|
|
1718
1718
|
if (r.mimeType === "application/x-www-form-urlencoded")
|
|
1719
1719
|
return `new URLSearchParams(${m})`;
|
|
1720
1720
|
if (r.mimeType === "application/json")
|
|
@@ -1725,7 +1725,7 @@ var Ni = {
|
|
|
1725
1725
|
})};`
|
|
1726
1726
|
), t(), r.params && r.mimeType === "multipart/form-data" && (s("options.body = form;"), t()), s(`fetch('${a}', options)`), s(".then(response => response.json())", 1), s(".then(response => console.log(response))", 1), s(".catch(err => console.error(err));", 1), o();
|
|
1727
1727
|
}
|
|
1728
|
-
},
|
|
1728
|
+
}, Mi = {
|
|
1729
1729
|
info: {
|
|
1730
1730
|
key: "jquery",
|
|
1731
1731
|
title: "jQuery",
|
|
@@ -1754,21 +1754,21 @@ var Ni = {
|
|
|
1754
1754
|
case "multipart/form-data":
|
|
1755
1755
|
if (!a.params)
|
|
1756
1756
|
break;
|
|
1757
|
-
if (o("const form = new FormData();"), a.params.forEach((
|
|
1758
|
-
o(`form.append('${
|
|
1757
|
+
if (o("const form = new FormData();"), a.params.forEach((d) => {
|
|
1758
|
+
o(`form.append('${d.name}', '${d.value || d.fileName || ""}');`);
|
|
1759
1759
|
}), u.processData = !1, u.contentType = !1, u.mimeType = "multipart/form-data", u.data = "[form]", ft(r, "content-type") && ve(r, "content-type")?.includes("boundary")) {
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1760
|
+
const d = pe(r, "content-type");
|
|
1761
|
+
d && delete u.headers[d];
|
|
1762
1762
|
}
|
|
1763
1763
|
t();
|
|
1764
1764
|
break;
|
|
1765
1765
|
default:
|
|
1766
1766
|
a.text && (u.data = a.text);
|
|
1767
1767
|
}
|
|
1768
|
-
const
|
|
1769
|
-
return o(`const settings = ${
|
|
1768
|
+
const p = ue(u, { indent: i.indent }).replace("'[form]'", "form");
|
|
1769
|
+
return o(`const settings = ${p};`), t(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), s();
|
|
1770
1770
|
}
|
|
1771
|
-
},
|
|
1771
|
+
}, Bi = {
|
|
1772
1772
|
info: {
|
|
1773
1773
|
key: "xhr",
|
|
1774
1774
|
title: "XMLHttpRequest",
|
|
@@ -1808,19 +1808,19 @@ var Ni = {
|
|
|
1808
1808
|
o(`xhr.setRequestHeader('${u}', '${We(n[u])}');`);
|
|
1809
1809
|
}), t(), o("xhr.send(data);"), s();
|
|
1810
1810
|
}
|
|
1811
|
-
},
|
|
1811
|
+
}, zi = {
|
|
1812
1812
|
info: {
|
|
1813
1813
|
key: "javascript",
|
|
1814
1814
|
title: "JavaScript",
|
|
1815
1815
|
default: "xhr"
|
|
1816
1816
|
},
|
|
1817
1817
|
clientsById: {
|
|
1818
|
-
xhr:
|
|
1819
|
-
axios:
|
|
1820
|
-
fetch:
|
|
1821
|
-
jquery:
|
|
1818
|
+
xhr: Bi,
|
|
1819
|
+
axios: Fi,
|
|
1820
|
+
fetch: Hi,
|
|
1821
|
+
jquery: Mi
|
|
1822
1822
|
}
|
|
1823
|
-
},
|
|
1823
|
+
}, Gi = {
|
|
1824
1824
|
info: {
|
|
1825
1825
|
key: "native",
|
|
1826
1826
|
title: "Native JSON",
|
|
@@ -1854,16 +1854,16 @@ var Ni = {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, r.indent);
|
|
1856
1856
|
}
|
|
1857
|
-
},
|
|
1857
|
+
}, Wi = {
|
|
1858
1858
|
info: {
|
|
1859
1859
|
key: "json",
|
|
1860
1860
|
title: "JSON",
|
|
1861
1861
|
default: "native"
|
|
1862
1862
|
},
|
|
1863
1863
|
clientsById: {
|
|
1864
|
-
native:
|
|
1864
|
+
native: Gi
|
|
1865
1865
|
}
|
|
1866
|
-
},
|
|
1866
|
+
}, Vi = {
|
|
1867
1867
|
info: {
|
|
1868
1868
|
key: "okhttp",
|
|
1869
1869
|
title: "OkHttp",
|
|
@@ -1875,21 +1875,21 @@ var Ni = {
|
|
|
1875
1875
|
const i = {
|
|
1876
1876
|
indent: " ",
|
|
1877
1877
|
...c
|
|
1878
|
-
}, { blank: t, join: o, push: s } = new Q({ indent: i.indent }), u = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"],
|
|
1879
|
-
return s("val client = OkHttpClient()"), t(), e.text && (e.boundary ? s(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : s(`val mediaType = MediaType.parse("${e.mimeType}")`), s(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), s("val request = Request.Builder()"), s(`.url("${n}")`, 1), u.includes(r.toUpperCase()) ?
|
|
1880
|
-
s(`.addHeader("${
|
|
1878
|
+
}, { blank: t, join: o, push: s } = new Q({ indent: i.indent }), u = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], p = ["POST", "PUT", "DELETE", "PATCH"];
|
|
1879
|
+
return s("val client = OkHttpClient()"), t(), e.text && (e.boundary ? s(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : s(`val mediaType = MediaType.parse("${e.mimeType}")`), s(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), s("val request = Request.Builder()"), s(`.url("${n}")`, 1), u.includes(r.toUpperCase()) ? p.includes(r.toUpperCase()) ? e.text ? s(`.${r.toLowerCase()}(body)`, 1) : s(`.${r.toLowerCase()}(null)`, 1) : s(`.${r.toLowerCase()}()`, 1) : e.text ? s(`.method("${r.toUpperCase()}", body)`, 1) : s(`.method("${r.toUpperCase()}", null)`, 1), Object.keys(a).forEach((d) => {
|
|
1880
|
+
s(`.addHeader("${d}", "${le(a[d])}")`, 1);
|
|
1881
1881
|
}), s(".build()", 1), t(), s("val response = client.newCall(request).execute()"), o();
|
|
1882
1882
|
}
|
|
1883
|
-
},
|
|
1883
|
+
}, Ji = {
|
|
1884
1884
|
info: {
|
|
1885
1885
|
key: "kotlin",
|
|
1886
1886
|
title: "Kotlin",
|
|
1887
1887
|
default: "okhttp"
|
|
1888
1888
|
},
|
|
1889
1889
|
clientsById: {
|
|
1890
|
-
okhttp:
|
|
1890
|
+
okhttp: Vi
|
|
1891
1891
|
}
|
|
1892
|
-
},
|
|
1892
|
+
}, Di = {
|
|
1893
1893
|
info: {
|
|
1894
1894
|
key: "axios",
|
|
1895
1895
|
title: "Axios",
|
|
@@ -1904,26 +1904,26 @@ var Ni = {
|
|
|
1904
1904
|
...c
|
|
1905
1905
|
}, { blank: t, join: o, push: s, addPostProcessor: u } = new Q({ indent: i.indent });
|
|
1906
1906
|
s("const axios = require('axios');");
|
|
1907
|
-
const
|
|
1907
|
+
const p = {
|
|
1908
1908
|
method: e,
|
|
1909
1909
|
url: n
|
|
1910
1910
|
};
|
|
1911
|
-
switch (Object.keys(r).length && (
|
|
1911
|
+
switch (Object.keys(r).length && (p.headers = r), a.mimeType) {
|
|
1912
1912
|
case "application/x-www-form-urlencoded":
|
|
1913
1913
|
a.params && (s("const { URLSearchParams } = require('url');"), t(), s("const encodedParams = new URLSearchParams();"), a.params.forEach((m) => {
|
|
1914
1914
|
s(`encodedParams.set('${m.name}', '${m.value}');`);
|
|
1915
|
-
}), t(),
|
|
1915
|
+
}), t(), p.data = "encodedParams,", u((m) => m.replace(/'encodedParams,'/, "encodedParams,")));
|
|
1916
1916
|
break;
|
|
1917
1917
|
case "application/json":
|
|
1918
|
-
t(), a.jsonObj && (
|
|
1918
|
+
t(), a.jsonObj && (p.data = a.jsonObj);
|
|
1919
1919
|
break;
|
|
1920
1920
|
default:
|
|
1921
|
-
t(), a.text && (
|
|
1921
|
+
t(), a.text && (p.data = a.text);
|
|
1922
1922
|
}
|
|
1923
|
-
const
|
|
1924
|
-
return s(`const options = ${
|
|
1923
|
+
const d = ue(p, { indent: " ", inlineCharacterLimit: 80 });
|
|
1924
|
+
return s(`const options = ${d};`), t(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), o();
|
|
1925
1925
|
}
|
|
1926
|
-
},
|
|
1926
|
+
}, Qi = {
|
|
1927
1927
|
info: {
|
|
1928
1928
|
key: "fetch",
|
|
1929
1929
|
title: "Fetch",
|
|
@@ -1938,14 +1938,14 @@ var Ni = {
|
|
|
1938
1938
|
...i
|
|
1939
1939
|
};
|
|
1940
1940
|
let o = !1;
|
|
1941
|
-
const { blank: s, push: u, join:
|
|
1941
|
+
const { blank: s, push: u, join: p, unshift: d } = new Q({ indent: t.indent });
|
|
1942
1942
|
u("const fetch = require('node-fetch');");
|
|
1943
1943
|
const m = n, y = {
|
|
1944
1944
|
method: e
|
|
1945
1945
|
};
|
|
1946
1946
|
switch (Object.keys(a).length && (y.headers = a), r.mimeType) {
|
|
1947
1947
|
case "application/x-www-form-urlencoded":
|
|
1948
|
-
|
|
1948
|
+
d("const { URLSearchParams } = require('url');"), u("const encodedParams = new URLSearchParams();"), s(), r.params?.forEach((f) => {
|
|
1949
1949
|
u(`encodedParams.set('${f.name}', '${f.value}');`);
|
|
1950
1950
|
}), y.body = "encodedParams";
|
|
1951
1951
|
break;
|
|
@@ -1956,7 +1956,7 @@ var Ni = {
|
|
|
1956
1956
|
if (!r.params)
|
|
1957
1957
|
break;
|
|
1958
1958
|
const b = pe(a, "content-type");
|
|
1959
|
-
b && delete a[b],
|
|
1959
|
+
b && delete a[b], d("const FormData = require('form-data');"), u("const formData = new FormData();"), s(), r.params.forEach((f) => {
|
|
1960
1960
|
if (!f.fileName && !f.fileName && !f.contentType) {
|
|
1961
1961
|
u(`formData.append('${f.name}', '${f.value}');`);
|
|
1962
1962
|
return;
|
|
@@ -1980,9 +1980,9 @@ var Ni = {
|
|
|
1980
1980
|
// in a `JSON.stringify` call.
|
|
1981
1981
|
transform: (b, f, g) => f === "body" && r.mimeType === "application/json" ? `JSON.stringify(${g})` : g
|
|
1982
1982
|
});
|
|
1983
|
-
return u(`const options = ${j};`), s(), o &&
|
|
1983
|
+
return u(`const options = ${j};`), s(), o && d("const fs = require('fs');"), r.params && r.mimeType === "multipart/form-data" && (u("options.body = formData;"), s()), u("fetch(url, options)"), u(".then(res => res.json())", 1), u(".then(json => console.log(json))", 1), u(".catch(err => console.error('error:' + err));", 1), p().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
1984
1984
|
}
|
|
1985
|
-
},
|
|
1985
|
+
}, Ki = {
|
|
1986
1986
|
info: {
|
|
1987
1987
|
key: "native",
|
|
1988
1988
|
title: "HTTP",
|
|
@@ -1991,14 +1991,14 @@ var Ni = {
|
|
|
1991
1991
|
extname: ".cjs"
|
|
1992
1992
|
},
|
|
1993
1993
|
convert: ({ uriObj: e, method: n, allHeaders: r, postData: a }, c = {}) => {
|
|
1994
|
-
const { indent: i = " " } = c, { blank: t, join: o, push: s, unshift: u } = new Q({ indent: i }),
|
|
1994
|
+
const { indent: i = " " } = c, { blank: t, join: o, push: s, unshift: u } = new Q({ indent: i }), p = {
|
|
1995
1995
|
method: n,
|
|
1996
1996
|
hostname: e.hostname,
|
|
1997
1997
|
port: e.port,
|
|
1998
1998
|
path: e.path,
|
|
1999
1999
|
headers: r
|
|
2000
2000
|
};
|
|
2001
|
-
switch (s(`const http = require('${e.protocol?.replace(":", "")}');`), t(), s(`const options = ${ue(
|
|
2001
|
+
switch (s(`const http = require('${e.protocol?.replace(":", "")}');`), t(), s(`const options = ${ue(p, { indent: i })};`), t(), s("const req = http.request(options, function (res) {"), s("const chunks = [];", 1), t(), s("res.on('data', function (chunk) {", 1), s("chunks.push(chunk);", 2), s("});", 1), t(), s("res.on('end', function () {", 1), s("const body = Buffer.concat(chunks);", 2), s("console.log(body.toString());", 2), s("});", 1), s("});"), t(), a.mimeType) {
|
|
2002
2002
|
case "application/x-www-form-urlencoded":
|
|
2003
2003
|
a.paramsObj && (u("const qs = require('querystring');"), s(
|
|
2004
2004
|
`req.write(qs.stringify(${ue(a.paramsObj, {
|
|
@@ -2020,7 +2020,7 @@ var Ni = {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
return s("req.end();"), o();
|
|
2022
2022
|
}
|
|
2023
|
-
},
|
|
2023
|
+
}, Yi = {
|
|
2024
2024
|
info: {
|
|
2025
2025
|
key: "request",
|
|
2026
2026
|
title: "Request",
|
|
@@ -2035,8 +2035,8 @@ var Ni = {
|
|
|
2035
2035
|
...t
|
|
2036
2036
|
};
|
|
2037
2037
|
let s = !1;
|
|
2038
|
-
const { push: u, blank:
|
|
2039
|
-
u("const request = require('request');"),
|
|
2038
|
+
const { push: u, blank: p, join: d, unshift: m, addPostProcessor: y } = new Q({ indent: o.indent });
|
|
2039
|
+
u("const request = require('request');"), p();
|
|
2040
2040
|
const j = {
|
|
2041
2041
|
method: e,
|
|
2042
2042
|
url: r
|
|
@@ -2071,9 +2071,9 @@ var Ni = {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
return i.length && (j.jar = "JAR", u("const jar = request.jar();"), i.forEach(({ name: b, value: f }) => {
|
|
2073
2073
|
u(`jar.setCookie(request.cookie('${encodeURIComponent(b)}=${encodeURIComponent(f)}'), '${n}');`);
|
|
2074
|
-
}),
|
|
2074
|
+
}), p(), y((b) => b.replace(/'JAR'/, "jar"))), s && m("const fs = require('fs');"), u(`const options = ${ue(j, { indent: " ", inlineCharacterLimit: 80 })};`), p(), u("request(options, function (error, response, body) {"), u("if (error) throw new Error(error);", 1), p(), u("console.log(body);", 1), u("});"), d();
|
|
2075
2075
|
}
|
|
2076
|
-
},
|
|
2076
|
+
}, Xi = {
|
|
2077
2077
|
info: {
|
|
2078
2078
|
key: "unirest",
|
|
2079
2079
|
title: "Unirest",
|
|
@@ -2087,17 +2087,17 @@ var Ni = {
|
|
|
2087
2087
|
...t
|
|
2088
2088
|
};
|
|
2089
2089
|
let s = !1;
|
|
2090
|
-
const { addPostProcessor: u, blank:
|
|
2090
|
+
const { addPostProcessor: u, blank: p, join: d, push: m, unshift: y } = new Q({
|
|
2091
2091
|
indent: o.indent
|
|
2092
2092
|
});
|
|
2093
|
-
switch (m("const unirest = require('unirest');"),
|
|
2093
|
+
switch (m("const unirest = require('unirest');"), p(), m(`const req = unirest('${e}', '${n}');`), p(), r.length && (m("const CookieJar = unirest.jar();"), r.forEach((j) => {
|
|
2094
2094
|
m(`CookieJar.add('${encodeURIComponent(j.name)}=${encodeURIComponent(j.value)}', '${n}');`);
|
|
2095
|
-
}), m("req.jar(CookieJar);"),
|
|
2095
|
+
}), m("req.jar(CookieJar);"), p()), Object.keys(a).length && (m(`req.query(${ue(a, { indent: o.indent })});`), p()), Object.keys(i).length && (m(`req.headers(${ue(i, { indent: o.indent })});`), p()), c.mimeType) {
|
|
2096
2096
|
case "application/x-www-form-urlencoded":
|
|
2097
|
-
c.paramsObj && (m(`req.form(${ue(c.paramsObj, { indent: o.indent })});`),
|
|
2097
|
+
c.paramsObj && (m(`req.form(${ue(c.paramsObj, { indent: o.indent })});`), p());
|
|
2098
2098
|
break;
|
|
2099
2099
|
case "application/json":
|
|
2100
|
-
c.jsonObj && (m("req.type('json');"), m(`req.send(${ue(c.jsonObj, { indent: o.indent })});`),
|
|
2100
|
+
c.jsonObj && (m("req.type('json');"), m(`req.send(${ue(c.jsonObj, { indent: o.indent })});`), p());
|
|
2101
2101
|
break;
|
|
2102
2102
|
case "multipart/form-data": {
|
|
2103
2103
|
if (!c.params)
|
|
@@ -2106,15 +2106,15 @@ var Ni = {
|
|
|
2106
2106
|
c.params.forEach((b) => {
|
|
2107
2107
|
const f = {};
|
|
2108
2108
|
b.fileName && !b.value ? (s = !0, f.body = `fs.createReadStream('${b.fileName}')`, u((g) => g.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : b.value && (f.body = b.value), f.body && (b.contentType && (f["content-type"] = b.contentType), j.push(f));
|
|
2109
|
-
}), m(`req.multipart(${ue(j, { indent: o.indent })});`),
|
|
2109
|
+
}), m(`req.multipart(${ue(j, { indent: o.indent })});`), p();
|
|
2110
2110
|
break;
|
|
2111
2111
|
}
|
|
2112
2112
|
default:
|
|
2113
|
-
c.text && (m(`req.send(${ue(c.text, { indent: o.indent })});`),
|
|
2113
|
+
c.text && (m(`req.send(${ue(c.text, { indent: o.indent })});`), p());
|
|
2114
2114
|
}
|
|
2115
|
-
return s && y("const fs = require('fs');"), m("req.end(function (res) {"), m("if (res.error) throw new Error(res.error);", 1),
|
|
2115
|
+
return s && y("const fs = require('fs');"), m("req.end(function (res) {"), m("if (res.error) throw new Error(res.error);", 1), p(), m("console.log(res.body);", 1), m("});"), d();
|
|
2116
2116
|
}
|
|
2117
|
-
},
|
|
2117
|
+
}, Zi = {
|
|
2118
2118
|
info: {
|
|
2119
2119
|
key: "node",
|
|
2120
2120
|
title: "Node.js",
|
|
@@ -2122,11 +2122,11 @@ var Ni = {
|
|
|
2122
2122
|
cli: "node %s"
|
|
2123
2123
|
},
|
|
2124
2124
|
clientsById: {
|
|
2125
|
-
native:
|
|
2126
|
-
request:
|
|
2127
|
-
unirest:
|
|
2128
|
-
axios:
|
|
2129
|
-
fetch:
|
|
2125
|
+
native: Ki,
|
|
2126
|
+
request: Yi,
|
|
2127
|
+
unirest: Xi,
|
|
2128
|
+
axios: Di,
|
|
2129
|
+
fetch: Qi
|
|
2130
2130
|
}
|
|
2131
2131
|
}, Pt = (e, n, r, a) => {
|
|
2132
2132
|
const c = `${e} *${n} = `, i = Nr(r, a ? c.length : void 0);
|
|
@@ -2150,7 +2150,7 @@ var Ni = {
|
|
|
2150
2150
|
default:
|
|
2151
2151
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2152
2152
|
}
|
|
2153
|
-
},
|
|
2153
|
+
}, es = {
|
|
2154
2154
|
info: {
|
|
2155
2155
|
key: "nsurlsession",
|
|
2156
2156
|
title: "NSURLSession",
|
|
@@ -2173,10 +2173,10 @@ var Ni = {
|
|
|
2173
2173
|
case "application/x-www-form-urlencoded":
|
|
2174
2174
|
if (n.params?.length) {
|
|
2175
2175
|
s();
|
|
2176
|
-
const [
|
|
2176
|
+
const [p, ...d] = n.params;
|
|
2177
2177
|
t(
|
|
2178
|
-
`NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${
|
|
2179
|
-
),
|
|
2178
|
+
`NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${p.name}=${p.value}" dataUsingEncoding:NSUTF8StringEncoding]];`
|
|
2179
|
+
), d.forEach(({ name: m, value: y }) => {
|
|
2180
2180
|
t(`[postData appendData:[@"&${m}=${y}" dataUsingEncoding:NSUTF8StringEncoding]];`);
|
|
2181
2181
|
});
|
|
2182
2182
|
} else
|
|
@@ -2206,16 +2206,16 @@ var Ni = {
|
|
|
2206
2206
|
2
|
|
2207
2207
|
), t(' NSLog(@"%@", httpResponse);', 2), t(" }", 1), t(" }];"), t("[dataTask resume];"), o();
|
|
2208
2208
|
}
|
|
2209
|
-
},
|
|
2209
|
+
}, ts = {
|
|
2210
2210
|
info: {
|
|
2211
2211
|
key: "objc",
|
|
2212
2212
|
title: "Objective-C",
|
|
2213
2213
|
default: "nsurlsession"
|
|
2214
2214
|
},
|
|
2215
2215
|
clientsById: {
|
|
2216
|
-
nsurlsession:
|
|
2216
|
+
nsurlsession: es
|
|
2217
2217
|
}
|
|
2218
|
-
},
|
|
2218
|
+
}, rs = {
|
|
2219
2219
|
info: {
|
|
2220
2220
|
key: "cohttp",
|
|
2221
2221
|
title: "CoHTTP",
|
|
@@ -2230,25 +2230,25 @@ var Ni = {
|
|
|
2230
2230
|
...c
|
|
2231
2231
|
}, t = ["get", "post", "head", "delete", "patch", "put", "options"], { push: o, blank: s, join: u } = new Q({ indent: i.indent });
|
|
2232
2232
|
o("open Cohttp_lwt_unix"), o("open Cohttp"), o("open Lwt"), s(), o(`let uri = Uri.of_string "${e}" in`);
|
|
2233
|
-
const
|
|
2234
|
-
|
|
2235
|
-
`let headers = Header.add (Header.init ()) "${
|
|
2236
|
-
n[
|
|
2233
|
+
const p = Object.keys(n);
|
|
2234
|
+
p.length === 1 ? o(
|
|
2235
|
+
`let headers = Header.add (Header.init ()) "${p[0]}" "${le(
|
|
2236
|
+
n[p[0]]
|
|
2237
2237
|
)}" in`
|
|
2238
|
-
) :
|
|
2238
|
+
) : p.length > 1 && (o("let headers = Header.add_list (Header.init ()) ["), p.forEach((j) => {
|
|
2239
2239
|
o(`("${j}", "${le(n[j])}");`, 1);
|
|
2240
2240
|
}), o("] in")), r.text && o(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(r.text)} in`), s();
|
|
2241
|
-
const
|
|
2242
|
-
return o(`Client.call ${
|
|
2241
|
+
const d = p.length ? "~headers " : "", m = r.text ? "~body " : "", y = t.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
2242
|
+
return o(`Client.call ${d}${m}${y} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), u();
|
|
2243
2243
|
}
|
|
2244
|
-
},
|
|
2244
|
+
}, ns = {
|
|
2245
2245
|
info: {
|
|
2246
2246
|
key: "ocaml",
|
|
2247
2247
|
title: "OCaml",
|
|
2248
2248
|
default: "cohttp"
|
|
2249
2249
|
},
|
|
2250
2250
|
clientsById: {
|
|
2251
|
-
cohttp:
|
|
2251
|
+
cohttp: rs
|
|
2252
2252
|
}
|
|
2253
2253
|
}, re = (e, n, r) => {
|
|
2254
2254
|
switch (r = r || "", n = n || "", Object.prototype.toString.call(e)) {
|
|
@@ -2309,7 +2309,7 @@ ${r}]`;
|
|
|
2309
2309
|
"UNLOCK",
|
|
2310
2310
|
"UPDATE",
|
|
2311
2311
|
"VERSION_CONTROL"
|
|
2312
|
-
],
|
|
2312
|
+
], as = {
|
|
2313
2313
|
info: {
|
|
2314
2314
|
key: "curl",
|
|
2315
2315
|
title: "cURL",
|
|
@@ -2321,8 +2321,8 @@ ${r}]`;
|
|
|
2321
2321
|
const {
|
|
2322
2322
|
closingTag: s = !1,
|
|
2323
2323
|
indent: u = " ",
|
|
2324
|
-
maxRedirects:
|
|
2325
|
-
namedErrors:
|
|
2324
|
+
maxRedirects: p = 10,
|
|
2325
|
+
namedErrors: d = !1,
|
|
2326
2326
|
noTags: m = !1,
|
|
2327
2327
|
shortTags: y = !1,
|
|
2328
2328
|
timeout: j = 30
|
|
@@ -2352,7 +2352,7 @@ ${r}]`;
|
|
|
2352
2352
|
{
|
|
2353
2353
|
escape: !1,
|
|
2354
2354
|
name: "CURLOPT_MAXREDIRS",
|
|
2355
|
-
value:
|
|
2355
|
+
value: p
|
|
2356
2356
|
},
|
|
2357
2357
|
{
|
|
2358
2358
|
escape: !1,
|
|
@@ -2383,11 +2383,11 @@ ${u}` });
|
|
|
2383
2383
|
});
|
|
2384
2384
|
const C = i.map((T) => `${encodeURIComponent(T.name)}=${encodeURIComponent(T.value)}`);
|
|
2385
2385
|
C.length && S.push(`CURLOPT_COOKIE => "${C.join("; ")}",`);
|
|
2386
|
-
const
|
|
2387
|
-
return
|
|
2388
|
-
${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = curl_exec($curl);"), b("$err = curl_error($curl);"), f(), b("curl_close($curl);"), f(), b("if ($err) {"), b(
|
|
2386
|
+
const h = Object.keys(t).sort().map((T) => `"${T}: ${le(t[T])}"`);
|
|
2387
|
+
return h.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(h.join(`,
|
|
2388
|
+
${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = curl_exec($curl);"), b("$err = curl_error($curl);"), f(), b("curl_close($curl);"), f(), b("if ($err) {"), b(d ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), b("} else {"), b("echo $response;", 1), b("}"), !m && s && (f(), b("?>")), g();
|
|
2389
2389
|
}
|
|
2390
|
-
},
|
|
2390
|
+
}, os = {
|
|
2391
2391
|
info: {
|
|
2392
2392
|
key: "guzzle",
|
|
2393
2393
|
title: "Guzzle",
|
|
@@ -2403,10 +2403,10 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2403
2403
|
noTags: !1,
|
|
2404
2404
|
shortTags: !1,
|
|
2405
2405
|
...i
|
|
2406
|
-
}, { push: o, blank: s, join: u } = new Q({ indent: t.indent }), { code:
|
|
2406
|
+
}, { push: o, blank: s, join: u } = new Q({ indent: t.indent }), { code: p, push: d, join: m } = new Q({ indent: t.indent });
|
|
2407
2407
|
switch (t.noTags || o(t.shortTags ? "<?" : "<?php"), o("require_once('vendor/autoload.php');"), s(), e.mimeType) {
|
|
2408
2408
|
case "application/x-www-form-urlencoded":
|
|
2409
|
-
|
|
2409
|
+
d(`'form_params' => ${re(e.paramsObj, t.indent + t.indent, t.indent)},`, 1);
|
|
2410
2410
|
break;
|
|
2411
2411
|
case "multipart/form-data": {
|
|
2412
2412
|
const b = [];
|
|
@@ -2422,22 +2422,22 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2422
2422
|
name: f.name,
|
|
2423
2423
|
contents: f.value
|
|
2424
2424
|
});
|
|
2425
|
-
}), b.length && (
|
|
2425
|
+
}), b.length && (d(`'multipart' => ${re(b, t.indent + t.indent, t.indent)}`, 1), ft(c, "content-type") && ve(c, "content-type")?.indexOf("boundary"))) {
|
|
2426
2426
|
const f = pe(c, "content-type");
|
|
2427
2427
|
f && delete c[f];
|
|
2428
2428
|
}
|
|
2429
2429
|
break;
|
|
2430
2430
|
}
|
|
2431
2431
|
default:
|
|
2432
|
-
e.text &&
|
|
2432
|
+
e.text && d(`'body' => ${re(e.text)},`, 1);
|
|
2433
2433
|
}
|
|
2434
2434
|
const y = Object.keys(c).sort().map(function(b) {
|
|
2435
2435
|
return `${t.indent}${t.indent}'${b}' => '${We(c[b])}',`;
|
|
2436
2436
|
}), j = a.map((b) => `${encodeURIComponent(b.name)}=${encodeURIComponent(b.value)}`).join("; ");
|
|
2437
|
-
return j.length && y.push(`${t.indent}${t.indent}'cookie' => '${We(j)}',`), y.length && (
|
|
2438
|
-
`)),
|
|
2437
|
+
return j.length && y.push(`${t.indent}${t.indent}'cookie' => '${We(j)}',`), y.length && (d("'headers' => [", 1), d(y.join(`
|
|
2438
|
+
`)), d("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), s(), p.length ? (o(`$response = $client->request('${r}', '${n}', [`), o(m()), o("]);")) : o(`$response = $client->request('${r}', '${n}');`), s(), o("echo $response->getBody();"), !t.noTags && t.closingTag && (s(), o("?>")), u();
|
|
2439
2439
|
}
|
|
2440
|
-
},
|
|
2440
|
+
}, is = {
|
|
2441
2441
|
info: {
|
|
2442
2442
|
key: "http1",
|
|
2443
2443
|
title: "HTTP v1",
|
|
@@ -2446,20 +2446,20 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2446
2446
|
extname: ".php"
|
|
2447
2447
|
},
|
|
2448
2448
|
convert: ({ method: e, url: n, postData: r, queryObj: a, headersObj: c, cookiesObj: i }, t = {}) => {
|
|
2449
|
-
const { closingTag: o = !1, indent: s = " ", noTags: u = !1, shortTags:
|
|
2450
|
-
switch (u || (p
|
|
2449
|
+
const { closingTag: o = !1, indent: s = " ", noTags: u = !1, shortTags: p = !1 } = t, { push: d, blank: m, join: y } = new Q({ indent: s });
|
|
2450
|
+
switch (u || (d(p ? "<?" : "<?php"), m()), yn.includes(e.toUpperCase()) || d(`HttpRequest::methodRegister('${e}');`), d("$request = new HttpRequest();"), d(`$request->setUrl(${re(n)});`), yn.includes(e.toUpperCase()) ? d(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : d(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), m(), Object.keys(a).length && (d(`$request->setQueryData(${re(a, s)});`), m()), Object.keys(c).length && (d(`$request->setHeaders(${re(c, s)});`), m()), Object.keys(i).length && (d(`$request->setCookies(${re(i, s)});`), m()), r.mimeType) {
|
|
2451
2451
|
case "application/x-www-form-urlencoded":
|
|
2452
|
-
|
|
2452
|
+
d(`$request->setContentType(${re(r.mimeType)});`), d(`$request->setPostFields(${re(r.paramsObj, s)});`), m();
|
|
2453
2453
|
break;
|
|
2454
2454
|
case "application/json":
|
|
2455
|
-
|
|
2455
|
+
d(`$request->setContentType(${re(r.mimeType)});`), d(`$request->setBody(json_encode(${re(r.jsonObj, s)}));`), m();
|
|
2456
2456
|
break;
|
|
2457
2457
|
default:
|
|
2458
|
-
r.text && (
|
|
2458
|
+
r.text && (d(`$request->setBody(${re(r.text)});`), m());
|
|
2459
2459
|
}
|
|
2460
|
-
return
|
|
2460
|
+
return d("try {"), d("$response = $request->send();", 1), m(), d("echo $response->getBody();", 1), d("} catch (HttpException $ex) {"), d("echo $ex;", 1), d("}"), !u && o && (m(), d("?>")), y();
|
|
2461
2461
|
}
|
|
2462
|
-
},
|
|
2462
|
+
}, ss = {
|
|
2463
2463
|
info: {
|
|
2464
2464
|
key: "http2",
|
|
2465
2465
|
title: "HTTP v2",
|
|
@@ -2468,30 +2468,30 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2468
2468
|
extname: ".php"
|
|
2469
2469
|
},
|
|
2470
2470
|
convert: ({ postData: e, headersObj: n, method: r, queryObj: a, cookiesObj: c, url: i }, t = {}) => {
|
|
2471
|
-
const { closingTag: o = !1, indent: s = " ", noTags: u = !1, shortTags:
|
|
2471
|
+
const { closingTag: o = !1, indent: s = " ", noTags: u = !1, shortTags: p = !1 } = t, { push: d, blank: m, join: y } = new Q({ indent: s });
|
|
2472
2472
|
let j = !1;
|
|
2473
|
-
switch (u || (p
|
|
2473
|
+
switch (u || (d(p ? "<?" : "<?php"), m()), d("$client = new http\\Client;"), d("$request = new http\\Client\\Request;"), m(), e.mimeType) {
|
|
2474
2474
|
case "application/x-www-form-urlencoded":
|
|
2475
|
-
|
|
2475
|
+
d("$body = new http\\Message\\Body;"), d(`$body->append(new http\\QueryString(${re(e.paramsObj, s)}));`), m(), j = !0;
|
|
2476
2476
|
break;
|
|
2477
2477
|
case "multipart/form-data": {
|
|
2478
2478
|
if (!e.params)
|
|
2479
2479
|
break;
|
|
2480
2480
|
const b = [], f = {};
|
|
2481
|
-
e.params.forEach(({ name: S, fileName: C, value:
|
|
2481
|
+
e.params.forEach(({ name: S, fileName: C, value: h, contentType: T }) => {
|
|
2482
2482
|
if (C) {
|
|
2483
2483
|
b.push({
|
|
2484
2484
|
name: S,
|
|
2485
2485
|
type: T,
|
|
2486
2486
|
file: C,
|
|
2487
|
-
data:
|
|
2487
|
+
data: h
|
|
2488
2488
|
});
|
|
2489
2489
|
return;
|
|
2490
2490
|
}
|
|
2491
|
-
|
|
2491
|
+
h && (f[S] = h);
|
|
2492
2492
|
});
|
|
2493
2493
|
const g = Object.keys(f).length ? re(f, s) : "null", v = b.length ? re(b, s) : "null";
|
|
2494
|
-
if (
|
|
2494
|
+
if (d("$body = new http\\Message\\Body;"), d(`$body->addForm(${g}, ${v});`), ft(n, "content-type") && ve(n, "content-type")?.indexOf("boundary")) {
|
|
2495
2495
|
const S = pe(n, "content-type");
|
|
2496
2496
|
S && delete n[S];
|
|
2497
2497
|
}
|
|
@@ -2499,14 +2499,14 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2499
2499
|
break;
|
|
2500
2500
|
}
|
|
2501
2501
|
case "application/json":
|
|
2502
|
-
|
|
2502
|
+
d("$body = new http\\Message\\Body;"), d(`$body->append(json_encode(${re(e.jsonObj, s)}));`), j = !0;
|
|
2503
2503
|
break;
|
|
2504
2504
|
default:
|
|
2505
|
-
e.text && (
|
|
2505
|
+
e.text && (d("$body = new http\\Message\\Body;"), d(`$body->append(${re(e.text)});`), m(), j = !0);
|
|
2506
2506
|
}
|
|
2507
|
-
return
|
|
2507
|
+
return d(`$request->setRequestUrl(${re(i)});`), d(`$request->setRequestMethod(${re(r)});`), j && (d("$request->setBody($body);"), m()), Object.keys(a).length && (d(`$request->setQuery(new http\\QueryString(${re(a, s)}));`), m()), Object.keys(n).length && (d(`$request->setHeaders(${re(n, s)});`), m()), Object.keys(c).length && (m(), d(`$client->setCookies(${re(c, s)});`), m()), d("$client->enqueue($request)->send();"), d("$response = $client->getResponse();"), m(), d("echo $response->getBody();"), !u && o && (m(), d("?>")), y();
|
|
2508
2508
|
}
|
|
2509
|
-
},
|
|
2509
|
+
}, ls = {
|
|
2510
2510
|
info: {
|
|
2511
2511
|
key: "php",
|
|
2512
2512
|
title: "PHP",
|
|
@@ -2514,13 +2514,13 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2514
2514
|
cli: "php %s"
|
|
2515
2515
|
},
|
|
2516
2516
|
clientsById: {
|
|
2517
|
-
curl:
|
|
2518
|
-
guzzle:
|
|
2519
|
-
http1:
|
|
2520
|
-
http2:
|
|
2517
|
+
curl: as,
|
|
2518
|
+
guzzle: os,
|
|
2519
|
+
http1: is,
|
|
2520
|
+
http2: ss
|
|
2521
2521
|
}
|
|
2522
|
-
},
|
|
2523
|
-
const { push: u, join:
|
|
2522
|
+
}, Ra = (e) => ({ method: r, headersObj: a, cookies: c, uriObj: i, fullUrl: t, postData: o, allHeaders: s }) => {
|
|
2523
|
+
const { push: u, join: p } = new Q();
|
|
2524
2524
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(r.toUpperCase()))
|
|
2525
2525
|
return "Method not supported";
|
|
2526
2526
|
const m = [], y = Object.keys(a);
|
|
@@ -2530,8 +2530,8 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2530
2530
|
u("$cookie = New-Object System.Net.Cookie"), u(`$cookie.Name = '${j.name}'`), u(`$cookie.Value = '${j.value}'`), u(`$cookie.Domain = '${i.host}'`), u("$session.Cookies.Add($cookie)");
|
|
2531
2531
|
}), m.push("-WebSession $session")), o.text && (m.push(
|
|
2532
2532
|
`-ContentType '${Ge(ve(s, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
2533
|
-
), m.push(`-Body '${o.text}'`)), u(`$response = ${e} -Uri '${t}' -Method ${r} ${m.join(" ")}`.trim()),
|
|
2534
|
-
},
|
|
2533
|
+
), m.push(`-Body '${o.text}'`)), u(`$response = ${e} -Uri '${t}' -Method ${r} ${m.join(" ")}`.trim()), p();
|
|
2534
|
+
}, cs = {
|
|
2535
2535
|
info: {
|
|
2536
2536
|
key: "restmethod",
|
|
2537
2537
|
title: "Invoke-RestMethod",
|
|
@@ -2539,8 +2539,8 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2539
2539
|
description: "Powershell Invoke-RestMethod client",
|
|
2540
2540
|
extname: ".ps1"
|
|
2541
2541
|
},
|
|
2542
|
-
convert:
|
|
2543
|
-
},
|
|
2542
|
+
convert: Ra("Invoke-RestMethod")
|
|
2543
|
+
}, us = {
|
|
2544
2544
|
info: {
|
|
2545
2545
|
key: "webrequest",
|
|
2546
2546
|
title: "Invoke-WebRequest",
|
|
@@ -2548,16 +2548,16 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2548
2548
|
description: "Powershell Invoke-WebRequest client",
|
|
2549
2549
|
extname: ".ps1"
|
|
2550
2550
|
},
|
|
2551
|
-
convert:
|
|
2552
|
-
},
|
|
2551
|
+
convert: Ra("Invoke-WebRequest")
|
|
2552
|
+
}, ps = {
|
|
2553
2553
|
info: {
|
|
2554
2554
|
key: "powershell",
|
|
2555
2555
|
title: "Powershell",
|
|
2556
2556
|
default: "webrequest"
|
|
2557
2557
|
},
|
|
2558
2558
|
clientsById: {
|
|
2559
|
-
webrequest:
|
|
2560
|
-
restmethod:
|
|
2559
|
+
webrequest: us,
|
|
2560
|
+
restmethod: cs
|
|
2561
2561
|
}
|
|
2562
2562
|
};
|
|
2563
2563
|
function gn(e, n, r, a, c) {
|
|
@@ -2589,7 +2589,7 @@ var Ie = (e, n, r) => {
|
|
|
2589
2589
|
default:
|
|
2590
2590
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2591
2591
|
}
|
|
2592
|
-
},
|
|
2592
|
+
}, fs = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], ds = {
|
|
2593
2593
|
info: {
|
|
2594
2594
|
key: "requests",
|
|
2595
2595
|
title: "Requests",
|
|
@@ -2605,8 +2605,8 @@ var Ie = (e, n, r) => {
|
|
|
2605
2605
|
...c
|
|
2606
2606
|
}, { push: t, blank: o, join: s, addPostProcessor: u } = new Q({ indent: i.indent });
|
|
2607
2607
|
t("import requests"), o(), t(`url = "${e}"`), o();
|
|
2608
|
-
const
|
|
2609
|
-
let
|
|
2608
|
+
const p = r;
|
|
2609
|
+
let d = {};
|
|
2610
2610
|
const m = {};
|
|
2611
2611
|
let y = !1, j = !1, b = !1;
|
|
2612
2612
|
switch (n.mimeType) {
|
|
@@ -2616,12 +2616,12 @@ var Ie = (e, n, r) => {
|
|
|
2616
2616
|
case "multipart/form-data":
|
|
2617
2617
|
if (!n.params)
|
|
2618
2618
|
break;
|
|
2619
|
-
if (
|
|
2620
|
-
v.fileName ? (v.contentType ? m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, y = !0) : (
|
|
2619
|
+
if (d = {}, n.params.forEach((v) => {
|
|
2620
|
+
v.fileName ? (v.contentType ? m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, y = !0) : (d[v.name] = v.value, j = !0);
|
|
2621
2621
|
}), y) {
|
|
2622
|
-
t(`files = ${Ie(m, i)}`), j && t(`payload = ${Ie(
|
|
2623
|
-
const v = pe(
|
|
2624
|
-
v && delete
|
|
2622
|
+
t(`files = ${Ie(m, i)}`), j && t(`payload = ${Ie(d, i)}`);
|
|
2623
|
+
const v = pe(p, "content-type");
|
|
2624
|
+
v && delete p[v];
|
|
2625
2625
|
} else {
|
|
2626
2626
|
const v = JSON.stringify(n.text);
|
|
2627
2627
|
v && (t(`payload = ${v}`), j = !0);
|
|
@@ -2639,23 +2639,23 @@ var Ie = (e, n, r) => {
|
|
|
2639
2639
|
v && (t(`payload = ${v}`), j = !0);
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
|
-
const f = Object.keys(
|
|
2642
|
+
const f = Object.keys(p).length;
|
|
2643
2643
|
if (f === 0 && (j || y))
|
|
2644
2644
|
o();
|
|
2645
2645
|
else if (f === 1)
|
|
2646
|
-
Object.keys(
|
|
2647
|
-
t(`headers = {"${v}": "${le(
|
|
2646
|
+
Object.keys(p).forEach((v) => {
|
|
2647
|
+
t(`headers = {"${v}": "${le(p[v])}"}`), o();
|
|
2648
2648
|
});
|
|
2649
2649
|
else if (f > 1) {
|
|
2650
2650
|
let v = 1;
|
|
2651
|
-
t("headers = {"), Object.keys(
|
|
2652
|
-
t(v !== f ? `"${S}": "${le(
|
|
2651
|
+
t("headers = {"), Object.keys(p).forEach((S) => {
|
|
2652
|
+
t(v !== f ? `"${S}": "${le(p[S])}",` : `"${S}": "${le(p[S])}"`, 1), v += 1;
|
|
2653
2653
|
}), t("}"), o();
|
|
2654
2654
|
}
|
|
2655
|
-
let g =
|
|
2655
|
+
let g = fs.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
2656
2656
|
return j && (b ? g += ", json=payload" : g += ", data=payload"), y && (g += ", files=files"), f > 0 && (g += ", headers=headers"), g += ")", t(g), o(), t("print(response.text)"), s();
|
|
2657
2657
|
}
|
|
2658
|
-
},
|
|
2658
|
+
}, hs = {
|
|
2659
2659
|
info: {
|
|
2660
2660
|
key: "python",
|
|
2661
2661
|
title: "Python",
|
|
@@ -2663,9 +2663,9 @@ var Ie = (e, n, r) => {
|
|
|
2663
2663
|
cli: "python3 %s"
|
|
2664
2664
|
},
|
|
2665
2665
|
clientsById: {
|
|
2666
|
-
requests:
|
|
2666
|
+
requests: ds
|
|
2667
2667
|
}
|
|
2668
|
-
},
|
|
2668
|
+
}, ms = {
|
|
2669
2669
|
info: {
|
|
2670
2670
|
key: "httr",
|
|
2671
2671
|
title: "httr",
|
|
@@ -2678,12 +2678,12 @@ var Ie = (e, n, r) => {
|
|
|
2678
2678
|
t("library(httr)"), o(), t(`url <- "${e}"`), o();
|
|
2679
2679
|
const u = n;
|
|
2680
2680
|
delete n.key;
|
|
2681
|
-
const
|
|
2682
|
-
r.length === 1 ? (t(`queryString <- list(${Object.keys(u)} = "${Object.values(u).toString()}")`), o()) : r.length > 1 && (t("queryString <- list("), Object.keys(u).forEach((
|
|
2683
|
-
T !==
|
|
2681
|
+
const p = Object.keys(u).length;
|
|
2682
|
+
r.length === 1 ? (t(`queryString <- list(${Object.keys(u)} = "${Object.values(u).toString()}")`), o()) : r.length > 1 && (t("queryString <- list("), Object.keys(u).forEach((h, T) => {
|
|
2683
|
+
T !== p - 1 ? t(` ${h} = "${u[h].toString()}",`) : t(` ${h} = "${u[h].toString()}"`);
|
|
2684
2684
|
}), t(")"), o());
|
|
2685
|
-
const
|
|
2686
|
-
if (
|
|
2685
|
+
const d = JSON.stringify(a.text);
|
|
2686
|
+
if (d && (t(`payload <- ${d}`), o()), a.text || a.jsonObj || a.params)
|
|
2687
2687
|
switch (a.mimeType) {
|
|
2688
2688
|
case "application/x-www-form-urlencoded":
|
|
2689
2689
|
t('encode <- "form"'), o();
|
|
@@ -2698,22 +2698,22 @@ var Ie = (e, n, r) => {
|
|
|
2698
2698
|
t('encode <- "raw"'), o();
|
|
2699
2699
|
break;
|
|
2700
2700
|
}
|
|
2701
|
-
const m = ve(c, "cookie"), y = ve(c, "accept"), j = m ? `set_cookies(\`${String(m).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, b = y ? `accept("${le(y)}")` : void 0, f = `content_type("${le(a.mimeType)}")`, g = Object.entries(c).filter(([
|
|
2701
|
+
const m = ve(c, "cookie"), y = ve(c, "accept"), j = m ? `set_cookies(\`${String(m).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, b = y ? `accept("${le(y)}")` : void 0, f = `content_type("${le(a.mimeType)}")`, g = Object.entries(c).filter(([h]) => !["cookie", "accept", "content-type"].includes(h.toLowerCase())).map(([h, T]) => `'${h}' = '${We(T)}'`).join(", "), v = g ? `add_headers(${g})` : void 0;
|
|
2702
2702
|
let S = `response <- VERB("${i}", url`;
|
|
2703
|
-
|
|
2704
|
-
const C = [v, f, b, j].filter((
|
|
2703
|
+
d && (S += ", body = payload"), r.length && (S += ", query = queryString");
|
|
2704
|
+
const C = [v, f, b, j].filter((h) => !!h).join(", ");
|
|
2705
2705
|
return C && (S += `, ${C}`), (a.text || a.jsonObj || a.params) && (S += ", encode = encode"), S += ")", t(S), o(), t('content(response, "text")'), s();
|
|
2706
2706
|
}
|
|
2707
|
-
},
|
|
2707
|
+
}, ys = {
|
|
2708
2708
|
info: {
|
|
2709
2709
|
key: "r",
|
|
2710
2710
|
title: "R",
|
|
2711
2711
|
default: "httr"
|
|
2712
2712
|
},
|
|
2713
2713
|
clientsById: {
|
|
2714
|
-
httr:
|
|
2714
|
+
httr: ms
|
|
2715
2715
|
}
|
|
2716
|
-
},
|
|
2716
|
+
}, gs = {
|
|
2717
2717
|
info: {
|
|
2718
2718
|
key: "native",
|
|
2719
2719
|
title: "net::http",
|
|
@@ -2737,23 +2737,23 @@ var Ie = (e, n, r) => {
|
|
|
2737
2737
|
"UNLOCK",
|
|
2738
2738
|
"MOVE",
|
|
2739
2739
|
"TRACE"
|
|
2740
|
-
],
|
|
2741
|
-
u.includes(s) || (i(`class Net::HTTP::${
|
|
2742
|
-
const
|
|
2743
|
-
return
|
|
2740
|
+
], p = s.charAt(0) + s.substring(1).toLowerCase();
|
|
2741
|
+
u.includes(s) || (i(`class Net::HTTP::${p} < Net::HTTPRequest`), i(` METHOD = '${s.toUpperCase()}'`), i(` REQUEST_HAS_BODY = '${a.text ? "true" : "false"}'`), i(" RESPONSE_HAS_BODY = true"), i("end"), t()), i(`url = URI("${r}")`), t(), i("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && i("http.use_ssl = true"), t(), i(`request = Net::HTTP::${p}.new(url)`);
|
|
2742
|
+
const d = Object.keys(c);
|
|
2743
|
+
return d.length && d.forEach((m) => {
|
|
2744
2744
|
i(`request["${m}"] = '${We(c[m])}'`);
|
|
2745
2745
|
}), a.text && i(`request.body = ${JSON.stringify(a.text)}`), t(), i("response = http.request(request)"), i("puts response.read_body"), o();
|
|
2746
2746
|
}
|
|
2747
|
-
},
|
|
2747
|
+
}, vs = {
|
|
2748
2748
|
info: {
|
|
2749
2749
|
key: "ruby",
|
|
2750
2750
|
title: "Ruby",
|
|
2751
2751
|
default: "native"
|
|
2752
2752
|
},
|
|
2753
2753
|
clientsById: {
|
|
2754
|
-
native:
|
|
2754
|
+
native: gs
|
|
2755
2755
|
}
|
|
2756
|
-
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
2756
|
+
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, xs = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), bs = {
|
|
2757
2757
|
"http1.0": "0",
|
|
2758
2758
|
"url ": "",
|
|
2759
2759
|
cookie: "b",
|
|
@@ -2763,13 +2763,13 @@ var Ie = (e, n, r) => {
|
|
|
2763
2763
|
header: "H",
|
|
2764
2764
|
insecure: "k",
|
|
2765
2765
|
request: "X"
|
|
2766
|
-
},
|
|
2766
|
+
}, js = (e) => (n) => {
|
|
2767
2767
|
if (e) {
|
|
2768
|
-
const r =
|
|
2768
|
+
const r = bs[n];
|
|
2769
2769
|
return r ? `-${r}` : "";
|
|
2770
2770
|
}
|
|
2771
2771
|
return `--${n}`;
|
|
2772
|
-
},
|
|
2772
|
+
}, $s = {
|
|
2773
2773
|
info: {
|
|
2774
2774
|
key: "curl",
|
|
2775
2775
|
title: "cURL",
|
|
@@ -2778,13 +2778,13 @@ var Ie = (e, n, r) => {
|
|
|
2778
2778
|
extname: ".sh"
|
|
2779
2779
|
},
|
|
2780
2780
|
convert: ({ fullUrl: e, method: n, httpVersion: r, headersObj: a, allHeaders: c, postData: i }, t = {}) => {
|
|
2781
|
-
const { indent: o = " ", short: s = !1, binary: u = !1, globOff:
|
|
2781
|
+
const { indent: o = " ", short: s = !1, binary: u = !1, globOff: p = !1 } = t, d = " ", { push: m, join: y } = new Q({
|
|
2782
2782
|
...typeof o == "string" ? { indent: o } : {},
|
|
2783
2783
|
join: o !== !1 ? ` \\
|
|
2784
2784
|
${o}` : " "
|
|
2785
|
-
}), j =
|
|
2785
|
+
}), j = js(s);
|
|
2786
2786
|
let b = ce(e);
|
|
2787
|
-
if (m(`curl ${j("request")} ${n}`),
|
|
2787
|
+
if (m(`curl ${j("request")} ${n}`), p && (b = unescape(b), m(j("globoff"))), m(`${j("url ")}${b}`), r === "HTTP/1.0" && m(j("http1.0")), ve(c, "accept-encoding") && m("--compressed"), i.mimeType === "multipart/form-data") {
|
|
2788
2788
|
const f = pe(a, "content-type");
|
|
2789
2789
|
if (f) {
|
|
2790
2790
|
const g = a[f];
|
|
@@ -2806,15 +2806,15 @@ ${o}` : " "
|
|
|
2806
2806
|
break;
|
|
2807
2807
|
case "application/x-www-form-urlencoded":
|
|
2808
2808
|
i.params ? i.params.forEach((g) => {
|
|
2809
|
-
const v = g.name, S = encodeURIComponent(g.name), C = S !== v,
|
|
2810
|
-
m(`${T} ${ce(`${
|
|
2809
|
+
const v = g.name, S = encodeURIComponent(g.name), C = S !== v, h = C ? S : v, T = u ? "--data-binary" : C ? "--data-urlencode" : j("data");
|
|
2810
|
+
m(`${T} ${ce(`${h}=${g.value}`)}`);
|
|
2811
2811
|
}) : m(`${u ? "--data-binary" : j("data")} ${ce(i.text)}`);
|
|
2812
2812
|
break;
|
|
2813
2813
|
default:
|
|
2814
2814
|
if (!i.text)
|
|
2815
2815
|
break;
|
|
2816
2816
|
let f = !1;
|
|
2817
|
-
if (
|
|
2817
|
+
if (ji(i.mimeType) && i.text.length > 20)
|
|
2818
2818
|
try {
|
|
2819
2819
|
const g = JSON.parse(i.text);
|
|
2820
2820
|
f = !0, i.text.indexOf("'") > 0 ? m(
|
|
@@ -2822,12 +2822,12 @@ ${o}` : " "
|
|
|
2822
2822
|
${JSON.stringify(
|
|
2823
2823
|
g,
|
|
2824
2824
|
null,
|
|
2825
|
-
|
|
2825
|
+
d
|
|
2826
2826
|
)}
|
|
2827
2827
|
EOF`
|
|
2828
2828
|
) : m(
|
|
2829
2829
|
`${u ? "--data-binary" : j("data")} '
|
|
2830
|
-
${JSON.stringify(g, null,
|
|
2830
|
+
${JSON.stringify(g, null, d)}
|
|
2831
2831
|
'`
|
|
2832
2832
|
);
|
|
2833
2833
|
} catch {
|
|
@@ -2836,7 +2836,7 @@ ${JSON.stringify(g, null, p)}
|
|
|
2836
2836
|
}
|
|
2837
2837
|
return y();
|
|
2838
2838
|
}
|
|
2839
|
-
},
|
|
2839
|
+
}, ws = {
|
|
2840
2840
|
info: {
|
|
2841
2841
|
key: "httpie",
|
|
2842
2842
|
title: "HTTPie",
|
|
@@ -2860,13 +2860,13 @@ ${JSON.stringify(g, null, p)}
|
|
|
2860
2860
|
verbose: !1,
|
|
2861
2861
|
verify: !1,
|
|
2862
2862
|
...t
|
|
2863
|
-
}, { push: s, join: u, unshift:
|
|
2863
|
+
}, { push: s, join: u, unshift: p } = new Q({
|
|
2864
2864
|
indent: o.indent,
|
|
2865
2865
|
// @ts-expect-error SEEMS LEGIT
|
|
2866
2866
|
join: o.indent !== !1 ? ` \\
|
|
2867
2867
|
${o.indent}` : " "
|
|
2868
2868
|
});
|
|
2869
|
-
let
|
|
2869
|
+
let d = !1;
|
|
2870
2870
|
const m = [];
|
|
2871
2871
|
o.headers && m.push(o.short ? "-h" : "--headers"), o.body && m.push(o.short ? "-b" : "--body"), o.verbose && m.push(o.short ? "-v" : "--verbose"), o.print && m.push(`${o.short ? "-p" : "--print"}=${o.print}`), o.verify && m.push(`--verify=${o.verify}`), o.cert && m.push(`--cert=${o.cert}`), o.pretty && m.push(`--pretty=${o.pretty}`), o.style && m.push(`--style=${o.style}`), o.timeout && m.push(`--timeout=${o.timeout}`), o.queryParams && Object.keys(r).forEach((j) => {
|
|
2872
2872
|
const b = r[j];
|
|
@@ -2877,15 +2877,15 @@ ${o.indent}` : " "
|
|
|
2877
2877
|
s(`${j}:${ce(e[j])}`);
|
|
2878
2878
|
}), n.mimeType === "application/x-www-form-urlencoded" ? n.params && n.params.length && (m.push(o.short ? "-f" : "--form"), n.params.forEach((j) => {
|
|
2879
2879
|
s(`${j.name}=${ce(j.value)}`);
|
|
2880
|
-
})) :
|
|
2880
|
+
})) : d = !0;
|
|
2881
2881
|
const y = m.length ? `${m.join(" ")} ` : "";
|
|
2882
|
-
if (i = ce(o.queryParams ? i : a),
|
|
2882
|
+
if (i = ce(o.queryParams ? i : a), p(`http ${y}${c} ${i}`), d && n.text) {
|
|
2883
2883
|
const j = ce(n.text);
|
|
2884
|
-
|
|
2884
|
+
p(`echo ${j} | `);
|
|
2885
2885
|
}
|
|
2886
2886
|
return u();
|
|
2887
2887
|
}
|
|
2888
|
-
},
|
|
2888
|
+
}, Ss = {
|
|
2889
2889
|
info: {
|
|
2890
2890
|
key: "wget",
|
|
2891
2891
|
title: "Wget",
|
|
@@ -2907,9 +2907,9 @@ ${i.indent}` : " "
|
|
|
2907
2907
|
return i.verbose ? t(`wget ${i.short ? "-v" : "--verbose"}`) : t(`wget ${i.short ? "-q" : "--quiet"}`), t(`--method ${ce(e)}`), Object.keys(r).forEach((s) => {
|
|
2908
2908
|
const u = `${s}: ${r[s]}`;
|
|
2909
2909
|
t(`--header ${ce(u)}`);
|
|
2910
|
-
}), n.text && t(`--body-data ${
|
|
2910
|
+
}), n.text && t(`--body-data ${xs(ce(n.text))}`), t(i.short ? "-O" : "--output-document"), t(`- ${ce(a)}`), o();
|
|
2911
2911
|
}
|
|
2912
|
-
},
|
|
2912
|
+
}, Os = {
|
|
2913
2913
|
info: {
|
|
2914
2914
|
key: "shell",
|
|
2915
2915
|
title: "Shell",
|
|
@@ -2917,9 +2917,9 @@ ${i.indent}` : " "
|
|
|
2917
2917
|
cli: "%s"
|
|
2918
2918
|
},
|
|
2919
2919
|
clientsById: {
|
|
2920
|
-
curl:
|
|
2921
|
-
httpie:
|
|
2922
|
-
wget:
|
|
2920
|
+
curl: $s,
|
|
2921
|
+
httpie: ws,
|
|
2922
|
+
wget: Ss
|
|
2923
2923
|
}
|
|
2924
2924
|
}, vn = (e, n) => n.repeat(e), xn = (e, n, r, a) => {
|
|
2925
2925
|
const c = vn(a, r), i = vn(a - 1, r), t = n ? `,
|
|
@@ -2954,7 +2954,7 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
2954
2954
|
default:
|
|
2955
2955
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2956
2956
|
}
|
|
2957
|
-
},
|
|
2957
|
+
}, Ts = {
|
|
2958
2958
|
info: {
|
|
2959
2959
|
key: "urlsession",
|
|
2960
2960
|
title: "URLSession",
|
|
@@ -2970,8 +2970,8 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
2970
2970
|
...i
|
|
2971
2971
|
}, { push: o, blank: s, join: u } = new Q({ indent: t.indent });
|
|
2972
2972
|
o("import Foundation"), s();
|
|
2973
|
-
const
|
|
2974
|
-
if (
|
|
2973
|
+
const p = n.text || n.jsonObj || n.params;
|
|
2974
|
+
if (p)
|
|
2975
2975
|
switch (n.mimeType) {
|
|
2976
2976
|
case "application/x-www-form-urlencoded":
|
|
2977
2977
|
if (n.params?.length) {
|
|
@@ -2989,8 +2989,8 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
2989
2989
|
o(`let postData = Data("${n.text}".utf8)`), s();
|
|
2990
2990
|
}
|
|
2991
2991
|
o(`let url = URL(string: "${r.href}")!`);
|
|
2992
|
-
const
|
|
2993
|
-
return
|
|
2992
|
+
const d = a ? Object.entries(a) : [];
|
|
2993
|
+
return d.length < 1 ? o("var request = URLRequest(url: url)") : (o("var components = URLComponents(url: url, resolvingAgainstBaseURL: true)!"), o("let queryItems: [URLQueryItem] = ["), d.forEach((m) => {
|
|
2994
2994
|
const y = m[0], j = m[1];
|
|
2995
2995
|
switch (Object.prototype.toString.call(j)) {
|
|
2996
2996
|
case "[object String]":
|
|
@@ -3002,50 +3002,50 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
3002
3002
|
});
|
|
3003
3003
|
break;
|
|
3004
3004
|
}
|
|
3005
|
-
}), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), s(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${t.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${st(e, t)}`),
|
|
3005
|
+
}), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), s(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${t.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${st(e, t)}`), p && o("request.httpBody = postData"), s(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), u();
|
|
3006
3006
|
}
|
|
3007
|
-
},
|
|
3007
|
+
}, Cs = {
|
|
3008
3008
|
info: {
|
|
3009
3009
|
key: "swift",
|
|
3010
3010
|
title: "Swift",
|
|
3011
3011
|
default: "urlsession"
|
|
3012
3012
|
},
|
|
3013
3013
|
clientsById: {
|
|
3014
|
-
urlsession:
|
|
3014
|
+
urlsession: Ts
|
|
3015
3015
|
}
|
|
3016
|
-
},
|
|
3017
|
-
c:
|
|
3018
|
-
clojure:
|
|
3019
|
-
csharp:
|
|
3020
|
-
go:
|
|
3021
|
-
http:
|
|
3022
|
-
java:
|
|
3023
|
-
javascript:
|
|
3024
|
-
json:
|
|
3025
|
-
kotlin:
|
|
3026
|
-
node:
|
|
3027
|
-
objc:
|
|
3028
|
-
ocaml:
|
|
3029
|
-
php:
|
|
3030
|
-
powershell:
|
|
3031
|
-
python:
|
|
3032
|
-
r:
|
|
3033
|
-
ruby:
|
|
3034
|
-
shell:
|
|
3035
|
-
swift:
|
|
3016
|
+
}, Ps = {
|
|
3017
|
+
c: bi,
|
|
3018
|
+
clojure: Si,
|
|
3019
|
+
csharp: Ni,
|
|
3020
|
+
go: qi,
|
|
3021
|
+
http: Ei,
|
|
3022
|
+
java: _i,
|
|
3023
|
+
javascript: zi,
|
|
3024
|
+
json: Wi,
|
|
3025
|
+
kotlin: Ji,
|
|
3026
|
+
node: Zi,
|
|
3027
|
+
objc: ts,
|
|
3028
|
+
ocaml: ns,
|
|
3029
|
+
php: ls,
|
|
3030
|
+
powershell: ps,
|
|
3031
|
+
python: hs,
|
|
3032
|
+
r: ys,
|
|
3033
|
+
ruby: vs,
|
|
3034
|
+
shell: Os,
|
|
3035
|
+
swift: Cs
|
|
3036
3036
|
}, Te = {}, _e = { exports: {} };
|
|
3037
3037
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
3038
|
-
var
|
|
3039
|
-
function
|
|
3038
|
+
var Ns = _e.exports, jn;
|
|
3039
|
+
function ks() {
|
|
3040
3040
|
return jn || (jn = 1, (function(e, n) {
|
|
3041
3041
|
(function(r) {
|
|
3042
3042
|
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, i = typeof it == "object" && it;
|
|
3043
3043
|
(i.global === i || i.window === i || i.self === i) && (r = i);
|
|
3044
|
-
var t, o = 2147483647, s = 36, u = 1,
|
|
3044
|
+
var t, o = 2147483647, s = 36, u = 1, p = 26, d = 38, m = 700, y = 72, j = 128, b = "-", f = /^xn--/, g = /[^\x20-\x7E]/, v = /[\x2E\u3002\uFF0E\uFF61]/g, S = {
|
|
3045
3045
|
overflow: "Overflow: input needs wider integers to process",
|
|
3046
3046
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3047
3047
|
"invalid-input": "Invalid input"
|
|
3048
|
-
}, C = s - u,
|
|
3048
|
+
}, C = s - u, h = Math.floor, T = String.fromCharCode, x;
|
|
3049
3049
|
function k(N) {
|
|
3050
3050
|
throw new RangeError(S[N]);
|
|
3051
3051
|
}
|
|
@@ -3054,7 +3054,7 @@ function qs() {
|
|
|
3054
3054
|
P[F] = q(N[F]);
|
|
3055
3055
|
return P;
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3057
|
+
function R(N, q) {
|
|
3058
3058
|
var F = N.split("@"), P = "";
|
|
3059
3059
|
F.length > 1 && (P = F[0] + "@", N = F[1]), N = N.replace(v, ".");
|
|
3060
3060
|
var U = N.split("."), J = A(U, q).join(".");
|
|
@@ -3079,18 +3079,18 @@ function qs() {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
function G(N, q, F) {
|
|
3081
3081
|
var P = 0;
|
|
3082
|
-
for (N = F ?
|
|
3083
|
-
N =
|
|
3084
|
-
return
|
|
3082
|
+
for (N = F ? h(N / m) : N >> 1, N += h(N / q); N > C * p >> 1; P += s)
|
|
3083
|
+
N = h(N / C);
|
|
3084
|
+
return h(P + (C + 1) * N / (N + d));
|
|
3085
3085
|
}
|
|
3086
3086
|
function se(N) {
|
|
3087
3087
|
var q = [], F = N.length, P, U = 0, J = j, W = y, Y, ae, D, I, H, M, K, V, X;
|
|
3088
3088
|
for (Y = N.lastIndexOf(b), Y < 0 && (Y = 0), ae = 0; ae < Y; ++ae)
|
|
3089
3089
|
N.charCodeAt(ae) >= 128 && k("not-basic"), q.push(N.charCodeAt(ae));
|
|
3090
3090
|
for (D = Y > 0 ? Y + 1 : 0; D < F; ) {
|
|
3091
|
-
for (I = U, H = 1, M = s; D >= F && k("invalid-input"), K = B(N.charCodeAt(D++)), (K >= s || K >
|
|
3092
|
-
X = s - V, H >
|
|
3093
|
-
P = q.length + 1, W = G(U - I, P, I == 0),
|
|
3091
|
+
for (I = U, H = 1, M = s; D >= F && k("invalid-input"), K = B(N.charCodeAt(D++)), (K >= s || K > h((o - U) / H)) && k("overflow"), U += K * H, V = M <= W ? u : M >= W + p ? p : M - W, !(K < V); M += s)
|
|
3092
|
+
X = s - V, H > h(o / X) && k("overflow"), H *= X;
|
|
3093
|
+
P = q.length + 1, W = G(U - I, P, I == 0), h(U / P) > o - J && k("overflow"), J += h(U / P), U %= P, q.splice(U++, 0, J);
|
|
3094
3094
|
}
|
|
3095
3095
|
return O(q);
|
|
3096
3096
|
}
|
|
@@ -3101,25 +3101,25 @@ function qs() {
|
|
|
3101
3101
|
for (P = U = M.length, U && M.push(b); P < K; ) {
|
|
3102
3102
|
for (Y = o, W = 0; W < K; ++W)
|
|
3103
3103
|
H = N[W], H >= q && H < Y && (Y = H);
|
|
3104
|
-
for (V = P + 1, Y - q >
|
|
3104
|
+
for (V = P + 1, Y - q > h((o - F) / V) && k("overflow"), F += (Y - q) * V, q = Y, W = 0; W < K; ++W)
|
|
3105
3105
|
if (H = N[W], H < q && ++F > o && k("overflow"), H == q) {
|
|
3106
|
-
for (ae = F, D = s; I = D <= J ? u : D >= J +
|
|
3106
|
+
for (ae = F, D = s; I = D <= J ? u : D >= J + p ? p : D - J, !(ae < I); D += s)
|
|
3107
3107
|
oe = ae - I, X = s - I, M.push(
|
|
3108
3108
|
T(_(I + oe % X, 0))
|
|
3109
|
-
), ae =
|
|
3109
|
+
), ae = h(oe / X);
|
|
3110
3110
|
M.push(T(_(ae, 0))), J = G(F, V, P == U), F = 0, ++P;
|
|
3111
3111
|
}
|
|
3112
3112
|
++F, ++q;
|
|
3113
3113
|
}
|
|
3114
3114
|
return M.join("");
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3117
|
-
return
|
|
3116
|
+
function E(N) {
|
|
3117
|
+
return R(N, function(q) {
|
|
3118
3118
|
return f.test(q) ? se(q.slice(4).toLowerCase()) : q;
|
|
3119
3119
|
});
|
|
3120
3120
|
}
|
|
3121
3121
|
function ne(N) {
|
|
3122
|
-
return
|
|
3122
|
+
return R(N, function(q) {
|
|
3123
3123
|
return g.test(q) ? "xn--" + ee(q) : q;
|
|
3124
3124
|
});
|
|
3125
3125
|
}
|
|
@@ -3144,7 +3144,7 @@ function qs() {
|
|
|
3144
3144
|
decode: se,
|
|
3145
3145
|
encode: ee,
|
|
3146
3146
|
toASCII: ne,
|
|
3147
|
-
toUnicode:
|
|
3147
|
+
toUnicode: E
|
|
3148
3148
|
}, a && c)
|
|
3149
3149
|
if (e.exports == a)
|
|
3150
3150
|
c.exports = t;
|
|
@@ -3153,28 +3153,28 @@ function qs() {
|
|
|
3153
3153
|
t.hasOwnProperty(x) && (a[x] = t[x]);
|
|
3154
3154
|
else
|
|
3155
3155
|
r.punycode = t;
|
|
3156
|
-
})(
|
|
3156
|
+
})(Ns);
|
|
3157
3157
|
})(_e, _e.exports)), _e.exports;
|
|
3158
3158
|
}
|
|
3159
3159
|
var Nt, $n;
|
|
3160
|
-
function
|
|
3160
|
+
function Ea() {
|
|
3161
3161
|
return $n || ($n = 1, Nt = Object), Nt;
|
|
3162
3162
|
}
|
|
3163
3163
|
var kt, wn;
|
|
3164
|
-
function
|
|
3164
|
+
function qs() {
|
|
3165
3165
|
return wn || (wn = 1, kt = Error), kt;
|
|
3166
3166
|
}
|
|
3167
3167
|
var qt, Sn;
|
|
3168
3168
|
function Rs() {
|
|
3169
3169
|
return Sn || (Sn = 1, qt = EvalError), qt;
|
|
3170
3170
|
}
|
|
3171
|
-
var
|
|
3172
|
-
function
|
|
3173
|
-
return On || (On = 1,
|
|
3171
|
+
var Rt, On;
|
|
3172
|
+
function Es() {
|
|
3173
|
+
return On || (On = 1, Rt = RangeError), Rt;
|
|
3174
3174
|
}
|
|
3175
|
-
var
|
|
3176
|
-
function
|
|
3177
|
-
return Tn || (Tn = 1,
|
|
3175
|
+
var Et, Tn;
|
|
3176
|
+
function As() {
|
|
3177
|
+
return Tn || (Tn = 1, Et = ReferenceError), Et;
|
|
3178
3178
|
}
|
|
3179
3179
|
var At, Cn;
|
|
3180
3180
|
function Aa() {
|
|
@@ -3185,57 +3185,57 @@ function Je() {
|
|
|
3185
3185
|
return Pn || (Pn = 1, It = TypeError), It;
|
|
3186
3186
|
}
|
|
3187
3187
|
var Ut, Nn;
|
|
3188
|
-
function
|
|
3188
|
+
function Is() {
|
|
3189
3189
|
return Nn || (Nn = 1, Ut = URIError), Ut;
|
|
3190
3190
|
}
|
|
3191
3191
|
var Lt, kn;
|
|
3192
|
-
function
|
|
3192
|
+
function Us() {
|
|
3193
3193
|
return kn || (kn = 1, Lt = Math.abs), Lt;
|
|
3194
3194
|
}
|
|
3195
3195
|
var _t, qn;
|
|
3196
|
-
function
|
|
3196
|
+
function Ls() {
|
|
3197
3197
|
return qn || (qn = 1, _t = Math.floor), _t;
|
|
3198
3198
|
}
|
|
3199
|
-
var Ft,
|
|
3200
|
-
function
|
|
3201
|
-
return
|
|
3199
|
+
var Ft, Rn;
|
|
3200
|
+
function _s() {
|
|
3201
|
+
return Rn || (Rn = 1, Ft = Math.max), Ft;
|
|
3202
3202
|
}
|
|
3203
|
-
var Ht,
|
|
3204
|
-
function
|
|
3205
|
-
return
|
|
3203
|
+
var Ht, En;
|
|
3204
|
+
function Fs() {
|
|
3205
|
+
return En || (En = 1, Ht = Math.min), Ht;
|
|
3206
3206
|
}
|
|
3207
3207
|
var Mt, An;
|
|
3208
|
-
function
|
|
3208
|
+
function Hs() {
|
|
3209
3209
|
return An || (An = 1, Mt = Math.pow), Mt;
|
|
3210
3210
|
}
|
|
3211
3211
|
var Bt, In;
|
|
3212
|
-
function
|
|
3212
|
+
function Ms() {
|
|
3213
3213
|
return In || (In = 1, Bt = Math.round), Bt;
|
|
3214
3214
|
}
|
|
3215
3215
|
var zt, Un;
|
|
3216
|
-
function
|
|
3216
|
+
function Bs() {
|
|
3217
3217
|
return Un || (Un = 1, zt = Number.isNaN || function(n) {
|
|
3218
3218
|
return n !== n;
|
|
3219
3219
|
}), zt;
|
|
3220
3220
|
}
|
|
3221
3221
|
var Gt, Ln;
|
|
3222
|
-
function
|
|
3222
|
+
function zs() {
|
|
3223
3223
|
if (Ln) return Gt;
|
|
3224
3224
|
Ln = 1;
|
|
3225
|
-
var e = /* @__PURE__ */
|
|
3225
|
+
var e = /* @__PURE__ */ Bs();
|
|
3226
3226
|
return Gt = function(r) {
|
|
3227
3227
|
return e(r) || r === 0 ? r : r < 0 ? -1 : 1;
|
|
3228
3228
|
}, Gt;
|
|
3229
3229
|
}
|
|
3230
3230
|
var Wt, _n;
|
|
3231
|
-
function
|
|
3231
|
+
function Gs() {
|
|
3232
3232
|
return _n || (_n = 1, Wt = Object.getOwnPropertyDescriptor), Wt;
|
|
3233
3233
|
}
|
|
3234
3234
|
var Vt, Fn;
|
|
3235
3235
|
function dt() {
|
|
3236
3236
|
if (Fn) return Vt;
|
|
3237
3237
|
Fn = 1;
|
|
3238
|
-
var e = /* @__PURE__ */
|
|
3238
|
+
var e = /* @__PURE__ */ Gs();
|
|
3239
3239
|
if (e)
|
|
3240
3240
|
try {
|
|
3241
3241
|
e([], "length");
|
|
@@ -3258,7 +3258,7 @@ function ht() {
|
|
|
3258
3258
|
return Jt = e, Jt;
|
|
3259
3259
|
}
|
|
3260
3260
|
var Dt, Mn;
|
|
3261
|
-
function
|
|
3261
|
+
function Ws() {
|
|
3262
3262
|
return Mn || (Mn = 1, Dt = function() {
|
|
3263
3263
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3264
3264
|
return !1;
|
|
@@ -3288,10 +3288,10 @@ function Vs() {
|
|
|
3288
3288
|
}), Dt;
|
|
3289
3289
|
}
|
|
3290
3290
|
var Qt, Bn;
|
|
3291
|
-
function
|
|
3291
|
+
function Vs() {
|
|
3292
3292
|
if (Bn) return Qt;
|
|
3293
3293
|
Bn = 1;
|
|
3294
|
-
var e = typeof Symbol < "u" && Symbol, n =
|
|
3294
|
+
var e = typeof Symbol < "u" && Symbol, n = Ws();
|
|
3295
3295
|
return Qt = function() {
|
|
3296
3296
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
|
|
3297
3297
|
}, Qt;
|
|
@@ -3304,59 +3304,59 @@ var Yt, Gn;
|
|
|
3304
3304
|
function Ua() {
|
|
3305
3305
|
if (Gn) return Yt;
|
|
3306
3306
|
Gn = 1;
|
|
3307
|
-
var e = /* @__PURE__ */
|
|
3307
|
+
var e = /* @__PURE__ */ Ea();
|
|
3308
3308
|
return Yt = e.getPrototypeOf || null, Yt;
|
|
3309
3309
|
}
|
|
3310
3310
|
var Xt, Wn;
|
|
3311
|
-
function
|
|
3311
|
+
function Js() {
|
|
3312
3312
|
if (Wn) return Xt;
|
|
3313
3313
|
Wn = 1;
|
|
3314
3314
|
var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, r = Math.max, a = "[object Function]", c = function(s, u) {
|
|
3315
|
-
for (var
|
|
3316
|
-
|
|
3315
|
+
for (var p = [], d = 0; d < s.length; d += 1)
|
|
3316
|
+
p[d] = s[d];
|
|
3317
3317
|
for (var m = 0; m < u.length; m += 1)
|
|
3318
|
-
|
|
3319
|
-
return
|
|
3318
|
+
p[m + s.length] = u[m];
|
|
3319
|
+
return p;
|
|
3320
3320
|
}, i = function(s, u) {
|
|
3321
|
-
for (var
|
|
3322
|
-
|
|
3323
|
-
return
|
|
3321
|
+
for (var p = [], d = u, m = 0; d < s.length; d += 1, m += 1)
|
|
3322
|
+
p[m] = s[d];
|
|
3323
|
+
return p;
|
|
3324
3324
|
}, t = function(o, s) {
|
|
3325
|
-
for (var u = "",
|
|
3326
|
-
u += o[
|
|
3325
|
+
for (var u = "", p = 0; p < o.length; p += 1)
|
|
3326
|
+
u += o[p], p + 1 < o.length && (u += s);
|
|
3327
3327
|
return u;
|
|
3328
3328
|
};
|
|
3329
3329
|
return Xt = function(s) {
|
|
3330
3330
|
var u = this;
|
|
3331
3331
|
if (typeof u != "function" || n.apply(u) !== a)
|
|
3332
3332
|
throw new TypeError(e + u);
|
|
3333
|
-
for (var
|
|
3334
|
-
if (this instanceof
|
|
3333
|
+
for (var p = i(arguments, 1), d, m = function() {
|
|
3334
|
+
if (this instanceof d) {
|
|
3335
3335
|
var g = u.apply(
|
|
3336
3336
|
this,
|
|
3337
|
-
c(
|
|
3337
|
+
c(p, arguments)
|
|
3338
3338
|
);
|
|
3339
3339
|
return Object(g) === g ? g : this;
|
|
3340
3340
|
}
|
|
3341
3341
|
return u.apply(
|
|
3342
3342
|
s,
|
|
3343
|
-
c(
|
|
3343
|
+
c(p, arguments)
|
|
3344
3344
|
);
|
|
3345
|
-
}, y = r(0, u.length -
|
|
3345
|
+
}, y = r(0, u.length - p.length), j = [], b = 0; b < y; b++)
|
|
3346
3346
|
j[b] = "$" + b;
|
|
3347
|
-
if (
|
|
3347
|
+
if (d = Function("binder", "return function (" + t(j, ",") + "){ return binder.apply(this,arguments); }")(m), u.prototype) {
|
|
3348
3348
|
var f = function() {
|
|
3349
3349
|
};
|
|
3350
|
-
f.prototype = u.prototype,
|
|
3350
|
+
f.prototype = u.prototype, d.prototype = new f(), f.prototype = null;
|
|
3351
3351
|
}
|
|
3352
|
-
return
|
|
3352
|
+
return d;
|
|
3353
3353
|
}, Xt;
|
|
3354
3354
|
}
|
|
3355
3355
|
var Zt, Vn;
|
|
3356
3356
|
function De() {
|
|
3357
3357
|
if (Vn) return Zt;
|
|
3358
3358
|
Vn = 1;
|
|
3359
|
-
var e =
|
|
3359
|
+
var e = Js();
|
|
3360
3360
|
return Zt = Function.prototype.bind || e, Zt;
|
|
3361
3361
|
}
|
|
3362
3362
|
var er, Jn;
|
|
@@ -3368,14 +3368,14 @@ function Hr() {
|
|
|
3368
3368
|
return Dn || (Dn = 1, tr = Function.prototype.apply), tr;
|
|
3369
3369
|
}
|
|
3370
3370
|
var rr, Qn;
|
|
3371
|
-
function
|
|
3371
|
+
function Ds() {
|
|
3372
3372
|
return Qn || (Qn = 1, rr = typeof Reflect < "u" && Reflect && Reflect.apply), rr;
|
|
3373
3373
|
}
|
|
3374
3374
|
var nr, Kn;
|
|
3375
3375
|
function La() {
|
|
3376
3376
|
if (Kn) return nr;
|
|
3377
3377
|
Kn = 1;
|
|
3378
|
-
var e = De(), n = Hr(), r = Fr(), a =
|
|
3378
|
+
var e = De(), n = Hr(), r = Fr(), a = Ds();
|
|
3379
3379
|
return nr = a || e.call(r, n), nr;
|
|
3380
3380
|
}
|
|
3381
3381
|
var ar, Yn;
|
|
@@ -3390,7 +3390,7 @@ function _a() {
|
|
|
3390
3390
|
}, ar;
|
|
3391
3391
|
}
|
|
3392
3392
|
var or, Xn;
|
|
3393
|
-
function
|
|
3393
|
+
function Qs() {
|
|
3394
3394
|
if (Xn) return or;
|
|
3395
3395
|
Xn = 1;
|
|
3396
3396
|
var e = _a(), n = /* @__PURE__ */ dt(), r;
|
|
@@ -3414,10 +3414,10 @@ function Ks() {
|
|
|
3414
3414
|
) : !1, or;
|
|
3415
3415
|
}
|
|
3416
3416
|
var ir, Zn;
|
|
3417
|
-
function
|
|
3417
|
+
function Ks() {
|
|
3418
3418
|
if (Zn) return ir;
|
|
3419
3419
|
Zn = 1;
|
|
3420
|
-
var e = Ia(), n = Ua(), r = /* @__PURE__ */
|
|
3420
|
+
var e = Ia(), n = Ua(), r = /* @__PURE__ */ Qs();
|
|
3421
3421
|
return ir = e ? function(c) {
|
|
3422
3422
|
return e(c);
|
|
3423
3423
|
} : n ? function(c) {
|
|
@@ -3429,7 +3429,7 @@ function Ys() {
|
|
|
3429
3429
|
} : null, ir;
|
|
3430
3430
|
}
|
|
3431
3431
|
var sr, ea;
|
|
3432
|
-
function
|
|
3432
|
+
function Ys() {
|
|
3433
3433
|
if (ea) return sr;
|
|
3434
3434
|
ea = 1;
|
|
3435
3435
|
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, r = De();
|
|
@@ -3439,14 +3439,14 @@ var lr, ta;
|
|
|
3439
3439
|
function Mr() {
|
|
3440
3440
|
if (ta) return lr;
|
|
3441
3441
|
ta = 1;
|
|
3442
|
-
var e, n = /* @__PURE__ */
|
|
3442
|
+
var e, n = /* @__PURE__ */ Ea(), r = /* @__PURE__ */ qs(), a = /* @__PURE__ */ Rs(), c = /* @__PURE__ */ Es(), i = /* @__PURE__ */ As(), t = /* @__PURE__ */ Aa(), o = /* @__PURE__ */ Je(), s = /* @__PURE__ */ Is(), u = /* @__PURE__ */ Us(), p = /* @__PURE__ */ Ls(), d = /* @__PURE__ */ _s(), m = /* @__PURE__ */ Fs(), y = /* @__PURE__ */ Hs(), j = /* @__PURE__ */ Ms(), b = /* @__PURE__ */ zs(), f = Function, g = function(D) {
|
|
3443
3443
|
try {
|
|
3444
3444
|
return f('"use strict"; return (' + D + ").constructor;")();
|
|
3445
3445
|
} catch {
|
|
3446
3446
|
}
|
|
3447
3447
|
}, v = /* @__PURE__ */ dt(), S = /* @__PURE__ */ ht(), C = function() {
|
|
3448
3448
|
throw new o();
|
|
3449
|
-
},
|
|
3449
|
+
}, h = v ? (function() {
|
|
3450
3450
|
try {
|
|
3451
3451
|
return arguments.callee, C;
|
|
3452
3452
|
} catch {
|
|
@@ -3456,7 +3456,7 @@ function Mr() {
|
|
|
3456
3456
|
return C;
|
|
3457
3457
|
}
|
|
3458
3458
|
}
|
|
3459
|
-
})() : C, T =
|
|
3459
|
+
})() : C, T = Vs()(), x = Ks(), k = Ua(), A = Ia(), R = Hr(), L = Fr(), O = {}, B = typeof Uint8Array > "u" || !x ? e : x(Uint8Array), _ = {
|
|
3460
3460
|
__proto__: null,
|
|
3461
3461
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
3462
3462
|
"%Array%": Array,
|
|
@@ -3516,7 +3516,7 @@ function Mr() {
|
|
|
3516
3516
|
"%StringIteratorPrototype%": T && x ? x(""[Symbol.iterator]()) : e,
|
|
3517
3517
|
"%Symbol%": T ? Symbol : e,
|
|
3518
3518
|
"%SyntaxError%": t,
|
|
3519
|
-
"%ThrowTypeError%":
|
|
3519
|
+
"%ThrowTypeError%": h,
|
|
3520
3520
|
"%TypedArray%": B,
|
|
3521
3521
|
"%TypeError%": o,
|
|
3522
3522
|
"%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
|
|
@@ -3528,12 +3528,12 @@ function Mr() {
|
|
|
3528
3528
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
3529
3529
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
|
|
3530
3530
|
"%Function.prototype.call%": L,
|
|
3531
|
-
"%Function.prototype.apply%":
|
|
3531
|
+
"%Function.prototype.apply%": R,
|
|
3532
3532
|
"%Object.defineProperty%": S,
|
|
3533
3533
|
"%Object.getPrototypeOf%": k,
|
|
3534
3534
|
"%Math.abs%": u,
|
|
3535
|
-
"%Math.floor%":
|
|
3536
|
-
"%Math.max%":
|
|
3535
|
+
"%Math.floor%": p,
|
|
3536
|
+
"%Math.max%": d,
|
|
3537
3537
|
"%Math.min%": m,
|
|
3538
3538
|
"%Math.pow%": y,
|
|
3539
3539
|
"%Math.round%": j,
|
|
@@ -3616,7 +3616,7 @@ function Mr() {
|
|
|
3616
3616
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3617
3617
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3618
3618
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3619
|
-
},
|
|
3619
|
+
}, E = De(), ne = /* @__PURE__ */ Ys(), N = E.call(L, Array.prototype.concat), q = E.call(R, Array.prototype.splice), F = E.call(L, String.prototype.replace), P = E.call(L, String.prototype.slice), U = E.call(L, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, W = /\\(\\)?/g, Y = function(I) {
|
|
3620
3620
|
var H = P(I, 0, 1), M = P(I, -1);
|
|
3621
3621
|
if (H === "%" && M !== "%")
|
|
3622
3622
|
throw new t("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -3673,7 +3673,7 @@ function Mr() {
|
|
|
3673
3673
|
}, lr;
|
|
3674
3674
|
}
|
|
3675
3675
|
var cr = { exports: {} }, ur, ra;
|
|
3676
|
-
function
|
|
3676
|
+
function Xs() {
|
|
3677
3677
|
if (ra) return ur;
|
|
3678
3678
|
ra = 1;
|
|
3679
3679
|
var e = /* @__PURE__ */ ht(), n = /* @__PURE__ */ Aa(), r = /* @__PURE__ */ Je(), a = /* @__PURE__ */ dt();
|
|
@@ -3690,22 +3690,22 @@ function Zs() {
|
|
|
3690
3690
|
throw new r("`nonConfigurable`, if provided, must be a boolean or null");
|
|
3691
3691
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
3692
3692
|
throw new r("`loose`, if provided, must be a boolean");
|
|
3693
|
-
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null,
|
|
3693
|
+
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, p = arguments.length > 5 ? arguments[5] : null, d = arguments.length > 6 ? arguments[6] : !1, m = !!a && a(i, t);
|
|
3694
3694
|
if (e)
|
|
3695
3695
|
e(i, t, {
|
|
3696
|
-
configurable:
|
|
3696
|
+
configurable: p === null && m ? m.configurable : !p,
|
|
3697
3697
|
enumerable: s === null && m ? m.enumerable : !s,
|
|
3698
3698
|
value: o,
|
|
3699
3699
|
writable: u === null && m ? m.writable : !u
|
|
3700
3700
|
});
|
|
3701
|
-
else if (
|
|
3701
|
+
else if (d || !s && !u && !p)
|
|
3702
3702
|
i[t] = o;
|
|
3703
3703
|
else
|
|
3704
3704
|
throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3705
3705
|
}, ur;
|
|
3706
3706
|
}
|
|
3707
3707
|
var pr, na;
|
|
3708
|
-
function
|
|
3708
|
+
function Zs() {
|
|
3709
3709
|
if (na) return pr;
|
|
3710
3710
|
na = 1;
|
|
3711
3711
|
var e = /* @__PURE__ */ ht(), n = function() {
|
|
@@ -3722,21 +3722,21 @@ function el() {
|
|
|
3722
3722
|
}, pr = n, pr;
|
|
3723
3723
|
}
|
|
3724
3724
|
var fr, aa;
|
|
3725
|
-
function
|
|
3725
|
+
function el() {
|
|
3726
3726
|
if (aa) return fr;
|
|
3727
3727
|
aa = 1;
|
|
3728
|
-
var e = /* @__PURE__ */ Mr(), n = /* @__PURE__ */
|
|
3728
|
+
var e = /* @__PURE__ */ Mr(), n = /* @__PURE__ */ Xs(), r = /* @__PURE__ */ Zs()(), a = /* @__PURE__ */ dt(), c = /* @__PURE__ */ Je(), i = e("%Math.floor%");
|
|
3729
3729
|
return fr = function(o, s) {
|
|
3730
3730
|
if (typeof o != "function")
|
|
3731
3731
|
throw new c("`fn` is not a function");
|
|
3732
3732
|
if (typeof s != "number" || s < 0 || s > 4294967295 || i(s) !== s)
|
|
3733
3733
|
throw new c("`length` must be a positive 32-bit integer");
|
|
3734
|
-
var u = arguments.length > 2 && !!arguments[2],
|
|
3734
|
+
var u = arguments.length > 2 && !!arguments[2], p = !0, d = !0;
|
|
3735
3735
|
if ("length" in o && a) {
|
|
3736
3736
|
var m = a(o, "length");
|
|
3737
|
-
m && !m.configurable && (
|
|
3737
|
+
m && !m.configurable && (p = !1), m && !m.writable && (d = !1);
|
|
3738
3738
|
}
|
|
3739
|
-
return (
|
|
3739
|
+
return (p || d || !u) && (r ? n(
|
|
3740
3740
|
/** @type {Parameters<define>[0]} */
|
|
3741
3741
|
o,
|
|
3742
3742
|
"length",
|
|
@@ -3752,7 +3752,7 @@ function tl() {
|
|
|
3752
3752
|
}, fr;
|
|
3753
3753
|
}
|
|
3754
3754
|
var dr, oa;
|
|
3755
|
-
function
|
|
3755
|
+
function tl() {
|
|
3756
3756
|
if (oa) return dr;
|
|
3757
3757
|
oa = 1;
|
|
3758
3758
|
var e = De(), n = Hr(), r = La();
|
|
@@ -3761,9 +3761,9 @@ function rl() {
|
|
|
3761
3761
|
}, dr;
|
|
3762
3762
|
}
|
|
3763
3763
|
var ia;
|
|
3764
|
-
function
|
|
3764
|
+
function rl() {
|
|
3765
3765
|
return ia || (ia = 1, (function(e) {
|
|
3766
|
-
var n = /* @__PURE__ */
|
|
3766
|
+
var n = /* @__PURE__ */ el(), r = /* @__PURE__ */ ht(), a = _a(), c = tl();
|
|
3767
3767
|
e.exports = function(t) {
|
|
3768
3768
|
var o = a(arguments), s = t.length - (arguments.length - 1);
|
|
3769
3769
|
return n(
|
|
@@ -3775,28 +3775,28 @@ function nl() {
|
|
|
3775
3775
|
})(cr)), cr.exports;
|
|
3776
3776
|
}
|
|
3777
3777
|
var hr, sa;
|
|
3778
|
-
function
|
|
3778
|
+
function nl() {
|
|
3779
3779
|
if (sa) return hr;
|
|
3780
3780
|
sa = 1;
|
|
3781
|
-
var e = /* @__PURE__ */ Mr(), n =
|
|
3781
|
+
var e = /* @__PURE__ */ Mr(), n = rl(), r = n(e("String.prototype.indexOf"));
|
|
3782
3782
|
return hr = function(c, i) {
|
|
3783
3783
|
var t = e(c, !!i);
|
|
3784
3784
|
return typeof t == "function" && r(c, ".prototype.") > -1 ? n(t) : t;
|
|
3785
3785
|
}, hr;
|
|
3786
3786
|
}
|
|
3787
3787
|
var mr, la;
|
|
3788
|
-
function
|
|
3788
|
+
function al() {
|
|
3789
3789
|
if (la) return mr;
|
|
3790
3790
|
la = 1;
|
|
3791
|
-
var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, t = c && i && typeof i.get == "function" ? i.get : null, o = c && Set.prototype.forEach, s = typeof WeakMap == "function" && WeakMap.prototype, u = s ? WeakMap.prototype.has : null,
|
|
3791
|
+
var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, t = c && i && typeof i.get == "function" ? i.get : null, o = c && Set.prototype.forEach, s = typeof WeakMap == "function" && WeakMap.prototype, u = s ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype, d = p ? WeakSet.prototype.has : null, m = typeof WeakRef == "function" && WeakRef.prototype, y = m ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, b = Object.prototype.toString, f = Function.prototype.toString, g = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, C = String.prototype.toUpperCase, h = String.prototype.toLowerCase, T = RegExp.prototype.test, x = Array.prototype.concat, k = Array.prototype.join, A = Array.prototype.slice, R = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, O = Object.getOwnPropertySymbols, B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, _ = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _ || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, ee = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function($) {
|
|
3792
3792
|
return $.__proto__;
|
|
3793
3793
|
} : null);
|
|
3794
|
-
function
|
|
3794
|
+
function E($, w) {
|
|
3795
3795
|
if ($ === 1 / 0 || $ === -1 / 0 || $ !== $ || $ && $ > -1e3 && $ < 1e3 || T.call(/e/, w))
|
|
3796
3796
|
return w;
|
|
3797
3797
|
var Z = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
3798
3798
|
if (typeof $ == "number") {
|
|
3799
|
-
var te = $ < 0 ? -
|
|
3799
|
+
var te = $ < 0 ? -R(-$) : R($);
|
|
3800
3800
|
if (te !== $) {
|
|
3801
3801
|
var ie = String(te), z = v.call(w, ie.length + 1);
|
|
3802
3802
|
return S.call(ie, Z, "$&_") + "." + S.call(S.call(z, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
@@ -3804,7 +3804,7 @@ function ol() {
|
|
|
3804
3804
|
}
|
|
3805
3805
|
return S.call(w, Z, "$&_");
|
|
3806
3806
|
}
|
|
3807
|
-
var ne =
|
|
3807
|
+
var ne = Wo, N = ne.custom, q = H(N) ? N : null;
|
|
3808
3808
|
mr = function $(w, Z, te, ie) {
|
|
3809
3809
|
var z = Z || {};
|
|
3810
3810
|
if (V(z, "quoteStyle") && z.quoteStyle !== "single" && z.quoteStyle !== "double")
|
|
@@ -3831,28 +3831,28 @@ function ol() {
|
|
|
3831
3831
|
if (w === 0)
|
|
3832
3832
|
return 1 / 0 / w > 0 ? "0" : "-0";
|
|
3833
3833
|
var de = String(w);
|
|
3834
|
-
return Oe ?
|
|
3834
|
+
return Oe ? E(w, de) : de;
|
|
3835
3835
|
}
|
|
3836
3836
|
if (typeof w == "bigint") {
|
|
3837
3837
|
var je = String(w) + "n";
|
|
3838
|
-
return Oe ?
|
|
3838
|
+
return Oe ? E(w, je) : je;
|
|
3839
3839
|
}
|
|
3840
3840
|
var gt = typeof z.depth > "u" ? 5 : z.depth;
|
|
3841
3841
|
if (typeof te > "u" && (te = 0), te >= gt && gt > 0 && typeof w == "object")
|
|
3842
3842
|
return U(w) ? "[Array]" : "[Object]";
|
|
3843
|
-
var
|
|
3843
|
+
var Re = Ga(z, te);
|
|
3844
3844
|
if (typeof ie > "u")
|
|
3845
3845
|
ie = [];
|
|
3846
3846
|
else if (he(ie, w) >= 0)
|
|
3847
3847
|
return "[Circular]";
|
|
3848
|
-
function ye(
|
|
3848
|
+
function ye(Ee, Ye, Va) {
|
|
3849
3849
|
if (Ye && (ie = A.call(ie), ie.push(Ye)), Va) {
|
|
3850
3850
|
var Yr = {
|
|
3851
3851
|
depth: z.depth
|
|
3852
3852
|
};
|
|
3853
|
-
return V(z, "quoteStyle") && (Yr.quoteStyle = z.quoteStyle), $(
|
|
3853
|
+
return V(z, "quoteStyle") && (Yr.quoteStyle = z.quoteStyle), $(Ee, Yr, te + 1, ie);
|
|
3854
3854
|
}
|
|
3855
|
-
return $(
|
|
3855
|
+
return $(Ee, z, te + 1, ie);
|
|
3856
3856
|
}
|
|
3857
3857
|
if (typeof w == "function" && !W(w)) {
|
|
3858
3858
|
var Gr = oe(w), Wr = Qe(w, ye);
|
|
@@ -3863,15 +3863,15 @@ function ol() {
|
|
|
3863
3863
|
return typeof w == "object" && !_ ? Ue(Vr) : Vr;
|
|
3864
3864
|
}
|
|
3865
3865
|
if (qe(w)) {
|
|
3866
|
-
for (var Le = "<" +
|
|
3866
|
+
for (var Le = "<" + h.call(String(w.nodeName)), vt = w.attributes || [], Ke = 0; Ke < vt.length; Ke++)
|
|
3867
3867
|
Le += " " + vt[Ke].name + "=" + F(P(vt[Ke].value), "double", z);
|
|
3868
|
-
return Le += ">", w.childNodes && w.childNodes.length && (Le += "..."), Le += "</" +
|
|
3868
|
+
return Le += ">", w.childNodes && w.childNodes.length && (Le += "..."), Le += "</" + h.call(String(w.nodeName)) + ">", Le;
|
|
3869
3869
|
}
|
|
3870
3870
|
if (U(w)) {
|
|
3871
3871
|
if (w.length === 0)
|
|
3872
3872
|
return "[]";
|
|
3873
3873
|
var xt = Qe(w, ye);
|
|
3874
|
-
return
|
|
3874
|
+
return Re && !za(xt) ? "[" + yt(xt, Re) + "]" : "[ " + k.call(xt, ", ") + " ]";
|
|
3875
3875
|
}
|
|
3876
3876
|
if (Y(w)) {
|
|
3877
3877
|
var bt = Qe(w, ye);
|
|
@@ -3885,15 +3885,15 @@ function ol() {
|
|
|
3885
3885
|
}
|
|
3886
3886
|
if ($e(w)) {
|
|
3887
3887
|
var Jr = [];
|
|
3888
|
-
return a && a.call(w, function(
|
|
3889
|
-
Jr.push(ye(Ye, w, !0) + " => " + ye(
|
|
3890
|
-
}), zr("Map", r.call(w), Jr,
|
|
3888
|
+
return a && a.call(w, function(Ee, Ye) {
|
|
3889
|
+
Jr.push(ye(Ye, w, !0) + " => " + ye(Ee, w));
|
|
3890
|
+
}), zr("Map", r.call(w), Jr, Re);
|
|
3891
3891
|
}
|
|
3892
3892
|
if (me(w)) {
|
|
3893
3893
|
var Dr = [];
|
|
3894
|
-
return o && o.call(w, function(
|
|
3895
|
-
Dr.push(ye(
|
|
3896
|
-
}), zr("Set", t.call(w), Dr,
|
|
3894
|
+
return o && o.call(w, function(Ee) {
|
|
3895
|
+
Dr.push(ye(Ee, w));
|
|
3896
|
+
}), zr("Set", t.call(w), Dr, Re);
|
|
3897
3897
|
}
|
|
3898
3898
|
if (Ne(w))
|
|
3899
3899
|
return mt("WeakMap");
|
|
@@ -3915,7 +3915,7 @@ function ol() {
|
|
|
3915
3915
|
return "{ [object globalThis] }";
|
|
3916
3916
|
if (!J(w) && !W(w)) {
|
|
3917
3917
|
var jt = Qe(w, ye), Qr = ee ? ee(w) === Object.prototype : w instanceof Object || w.constructor === Object, $t = w instanceof Object ? "" : "null prototype", Kr = !Qr && G && Object(w) === w && G in w ? v.call(X(w), 8, -1) : $t ? "Object" : "", Wa = Qr || typeof w.constructor != "function" ? "" : w.constructor.name ? w.constructor.name + " " : "", wt = Wa + (Kr || $t ? "[" + k.call(x.call([], Kr || [], $t || []), ": ") + "] " : "");
|
|
3918
|
-
return jt.length === 0 ? wt + "{}" :
|
|
3918
|
+
return jt.length === 0 ? wt + "{}" : Re ? wt + "{" + yt(jt, Re) + "}" : wt + "{ " + k.call(jt, ", ") + " }";
|
|
3919
3919
|
}
|
|
3920
3920
|
return String(w);
|
|
3921
3921
|
};
|
|
@@ -4013,7 +4013,7 @@ function ol() {
|
|
|
4013
4013
|
try {
|
|
4014
4014
|
u.call($, u);
|
|
4015
4015
|
try {
|
|
4016
|
-
|
|
4016
|
+
d.call($, d);
|
|
4017
4017
|
} catch {
|
|
4018
4018
|
return !0;
|
|
4019
4019
|
}
|
|
@@ -4047,10 +4047,10 @@ function ol() {
|
|
|
4047
4047
|
return !1;
|
|
4048
4048
|
}
|
|
4049
4049
|
function ke($) {
|
|
4050
|
-
if (!
|
|
4050
|
+
if (!d || !$ || typeof $ != "object")
|
|
4051
4051
|
return !1;
|
|
4052
4052
|
try {
|
|
4053
|
-
|
|
4053
|
+
d.call($, d);
|
|
4054
4054
|
try {
|
|
4055
4055
|
u.call($, u);
|
|
4056
4056
|
} catch {
|
|
@@ -4143,10 +4143,10 @@ function ol() {
|
|
|
4143
4143
|
return mr;
|
|
4144
4144
|
}
|
|
4145
4145
|
var yr, ca;
|
|
4146
|
-
function
|
|
4146
|
+
function ol() {
|
|
4147
4147
|
if (ca) return yr;
|
|
4148
4148
|
ca = 1;
|
|
4149
|
-
var e = /* @__PURE__ */ Mr(), n =
|
|
4149
|
+
var e = /* @__PURE__ */ Mr(), n = nl(), r = /* @__PURE__ */ al(), a = /* @__PURE__ */ Je(), c = e("%WeakMap%", !0), i = e("%Map%", !0), t = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), s = n("WeakMap.prototype.has", !0), u = n("Map.prototype.get", !0), p = n("Map.prototype.set", !0), d = n("Map.prototype.has", !0), m = function(f, g) {
|
|
4150
4150
|
for (var v = f, S; (S = v.next) !== null; v = S)
|
|
4151
4151
|
if (S.key === g)
|
|
4152
4152
|
return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -4168,33 +4168,33 @@ function il() {
|
|
|
4168
4168
|
};
|
|
4169
4169
|
return yr = function() {
|
|
4170
4170
|
var g, v, S, C = {
|
|
4171
|
-
assert: function(
|
|
4172
|
-
if (!C.has(
|
|
4173
|
-
throw new a("Side channel does not contain " + r(
|
|
4171
|
+
assert: function(h) {
|
|
4172
|
+
if (!C.has(h))
|
|
4173
|
+
throw new a("Side channel does not contain " + r(h));
|
|
4174
4174
|
},
|
|
4175
|
-
get: function(
|
|
4176
|
-
if (c &&
|
|
4175
|
+
get: function(h) {
|
|
4176
|
+
if (c && h && (typeof h == "object" || typeof h == "function")) {
|
|
4177
4177
|
if (g)
|
|
4178
|
-
return t(g,
|
|
4178
|
+
return t(g, h);
|
|
4179
4179
|
} else if (i) {
|
|
4180
4180
|
if (v)
|
|
4181
|
-
return u(v,
|
|
4181
|
+
return u(v, h);
|
|
4182
4182
|
} else if (S)
|
|
4183
|
-
return y(S,
|
|
4183
|
+
return y(S, h);
|
|
4184
4184
|
},
|
|
4185
|
-
has: function(
|
|
4186
|
-
if (c &&
|
|
4185
|
+
has: function(h) {
|
|
4186
|
+
if (c && h && (typeof h == "object" || typeof h == "function")) {
|
|
4187
4187
|
if (g)
|
|
4188
|
-
return s(g,
|
|
4188
|
+
return s(g, h);
|
|
4189
4189
|
} else if (i) {
|
|
4190
4190
|
if (v)
|
|
4191
|
-
return
|
|
4191
|
+
return d(v, h);
|
|
4192
4192
|
} else if (S)
|
|
4193
|
-
return b(S,
|
|
4193
|
+
return b(S, h);
|
|
4194
4194
|
return !1;
|
|
4195
4195
|
},
|
|
4196
|
-
set: function(
|
|
4197
|
-
c &&
|
|
4196
|
+
set: function(h, T) {
|
|
4197
|
+
c && h && (typeof h == "object" || typeof h == "function") ? (g || (g = new c()), o(g, h, T)) : i ? (v || (v = new i()), p(v, h, T)) : (S || (S = { key: {}, next: null }), j(S, h, T));
|
|
4198
4198
|
}
|
|
4199
4199
|
};
|
|
4200
4200
|
return C;
|
|
@@ -4234,8 +4234,8 @@ function Fa() {
|
|
|
4234
4234
|
for (; g.length > 1; ) {
|
|
4235
4235
|
var v = g.pop(), S = v.obj[v.prop];
|
|
4236
4236
|
if (r(S)) {
|
|
4237
|
-
for (var C = [],
|
|
4238
|
-
typeof S[
|
|
4237
|
+
for (var C = [], h = 0; h < S.length; ++h)
|
|
4238
|
+
typeof S[h] < "u" && C.push(S[h]);
|
|
4239
4239
|
v.obj[v.prop] = C;
|
|
4240
4240
|
}
|
|
4241
4241
|
}
|
|
@@ -4258,15 +4258,15 @@ function Fa() {
|
|
|
4258
4258
|
if (!g || typeof g != "object")
|
|
4259
4259
|
return [g].concat(v);
|
|
4260
4260
|
var C = g;
|
|
4261
|
-
return r(g) && !r(v) && (C = i(g, S)), r(g) && r(v) ? (v.forEach(function(
|
|
4261
|
+
return r(g) && !r(v) && (C = i(g, S)), r(g) && r(v) ? (v.forEach(function(h, T) {
|
|
4262
4262
|
if (n.call(g, T)) {
|
|
4263
4263
|
var x = g[T];
|
|
4264
|
-
x && typeof x == "object" &&
|
|
4264
|
+
x && typeof x == "object" && h && typeof h == "object" ? g[T] = f(x, h, S) : g.push(h);
|
|
4265
4265
|
} else
|
|
4266
|
-
g[T] =
|
|
4267
|
-
}), g) : Object.keys(v).reduce(function(
|
|
4266
|
+
g[T] = h;
|
|
4267
|
+
}), g) : Object.keys(v).reduce(function(h, T) {
|
|
4268
4268
|
var x = v[T];
|
|
4269
|
-
return n.call(
|
|
4269
|
+
return n.call(h, T) ? h[T] = f(h[T], x, S) : h[T] = x, h;
|
|
4270
4270
|
}, C);
|
|
4271
4271
|
}, o = function(g, v) {
|
|
4272
4272
|
return Object.keys(v).reduce(function(S, C) {
|
|
@@ -4281,7 +4281,7 @@ function Fa() {
|
|
|
4281
4281
|
} catch {
|
|
4282
4282
|
return S;
|
|
4283
4283
|
}
|
|
4284
|
-
}, u = 1024,
|
|
4284
|
+
}, u = 1024, p = function(g, v, S, C, h) {
|
|
4285
4285
|
if (g.length === 0)
|
|
4286
4286
|
return g;
|
|
4287
4287
|
var T = g;
|
|
@@ -4290,34 +4290,34 @@ function Fa() {
|
|
|
4290
4290
|
return "%26%23" + parseInt(B.slice(2), 16) + "%3B";
|
|
4291
4291
|
});
|
|
4292
4292
|
for (var x = "", k = 0; k < T.length; k += u) {
|
|
4293
|
-
for (var A = T.length >= u ? T.slice(k, k + u) : T,
|
|
4293
|
+
for (var A = T.length >= u ? T.slice(k, k + u) : T, R = [], L = 0; L < A.length; ++L) {
|
|
4294
4294
|
var O = A.charCodeAt(L);
|
|
4295
|
-
if (O === 45 || O === 46 || O === 95 || O === 126 || O >= 48 && O <= 57 || O >= 65 && O <= 90 || O >= 97 && O <= 122 ||
|
|
4296
|
-
|
|
4295
|
+
if (O === 45 || O === 46 || O === 95 || O === 126 || O >= 48 && O <= 57 || O >= 65 && O <= 90 || O >= 97 && O <= 122 || h === e.RFC1738 && (O === 40 || O === 41)) {
|
|
4296
|
+
R[R.length] = A.charAt(L);
|
|
4297
4297
|
continue;
|
|
4298
4298
|
}
|
|
4299
4299
|
if (O < 128) {
|
|
4300
|
-
|
|
4300
|
+
R[R.length] = a[O];
|
|
4301
4301
|
continue;
|
|
4302
4302
|
}
|
|
4303
4303
|
if (O < 2048) {
|
|
4304
|
-
|
|
4304
|
+
R[R.length] = a[192 | O >> 6] + a[128 | O & 63];
|
|
4305
4305
|
continue;
|
|
4306
4306
|
}
|
|
4307
4307
|
if (O < 55296 || O >= 57344) {
|
|
4308
|
-
|
|
4308
|
+
R[R.length] = a[224 | O >> 12] + a[128 | O >> 6 & 63] + a[128 | O & 63];
|
|
4309
4309
|
continue;
|
|
4310
4310
|
}
|
|
4311
|
-
L += 1, O = 65536 + ((O & 1023) << 10 | A.charCodeAt(L) & 1023),
|
|
4311
|
+
L += 1, O = 65536 + ((O & 1023) << 10 | A.charCodeAt(L) & 1023), R[R.length] = a[240 | O >> 18] + a[128 | O >> 12 & 63] + a[128 | O >> 6 & 63] + a[128 | O & 63];
|
|
4312
4312
|
}
|
|
4313
|
-
x +=
|
|
4313
|
+
x += R.join("");
|
|
4314
4314
|
}
|
|
4315
4315
|
return x;
|
|
4316
|
-
},
|
|
4316
|
+
}, d = function(g) {
|
|
4317
4317
|
for (var v = [{ obj: { o: g }, prop: "o" }], S = [], C = 0; C < v.length; ++C)
|
|
4318
|
-
for (var
|
|
4319
|
-
var A = x[k],
|
|
4320
|
-
typeof
|
|
4318
|
+
for (var h = v[C], T = h.obj[h.prop], x = Object.keys(T), k = 0; k < x.length; ++k) {
|
|
4319
|
+
var A = x[k], R = T[A];
|
|
4320
|
+
typeof R == "object" && R !== null && S.indexOf(R) === -1 && (v.push({ obj: T, prop: A }), S.push(R));
|
|
4321
4321
|
}
|
|
4322
4322
|
return c(v), g;
|
|
4323
4323
|
}, m = function(g) {
|
|
@@ -4338,9 +4338,9 @@ function Fa() {
|
|
|
4338
4338
|
arrayToObject: i,
|
|
4339
4339
|
assign: o,
|
|
4340
4340
|
combine: j,
|
|
4341
|
-
compact:
|
|
4341
|
+
compact: d,
|
|
4342
4342
|
decode: s,
|
|
4343
|
-
encode:
|
|
4343
|
+
encode: p,
|
|
4344
4344
|
isBuffer: y,
|
|
4345
4345
|
isRegExp: m,
|
|
4346
4346
|
maybeMap: b,
|
|
@@ -4348,10 +4348,10 @@ function Fa() {
|
|
|
4348
4348
|
}, vr;
|
|
4349
4349
|
}
|
|
4350
4350
|
var xr, fa;
|
|
4351
|
-
function
|
|
4351
|
+
function il() {
|
|
4352
4352
|
if (fa) return xr;
|
|
4353
4353
|
fa = 1;
|
|
4354
|
-
var e =
|
|
4354
|
+
var e = ol(), n = /* @__PURE__ */ Fa(), r = /* @__PURE__ */ Br(), a = Object.prototype.hasOwnProperty, c = {
|
|
4355
4355
|
brackets: function(f) {
|
|
4356
4356
|
return f + "[]";
|
|
4357
4357
|
},
|
|
@@ -4364,7 +4364,7 @@ function sl() {
|
|
|
4364
4364
|
}
|
|
4365
4365
|
}, i = Array.isArray, t = Array.prototype.push, o = function(b, f) {
|
|
4366
4366
|
t.apply(b, i(f) ? f : [f]);
|
|
4367
|
-
}, s = Date.prototype.toISOString, u = r.default,
|
|
4367
|
+
}, s = Date.prototype.toISOString, u = r.default, p = {
|
|
4368
4368
|
addQueryPrefix: !1,
|
|
4369
4369
|
allowDots: !1,
|
|
4370
4370
|
allowEmptyArrays: !1,
|
|
@@ -4385,10 +4385,10 @@ function sl() {
|
|
|
4385
4385
|
},
|
|
4386
4386
|
skipNulls: !1,
|
|
4387
4387
|
strictNullHandling: !1
|
|
4388
|
-
},
|
|
4388
|
+
}, d = function(f) {
|
|
4389
4389
|
return typeof f == "string" || typeof f == "number" || typeof f == "boolean" || typeof f == "symbol" || typeof f == "bigint";
|
|
4390
|
-
}, m = {}, y = function b(f, g, v, S, C,
|
|
4391
|
-
for (var
|
|
4390
|
+
}, m = {}, y = function b(f, g, v, S, C, h, T, x, k, A, R, L, O, B, _, G, se, ee) {
|
|
4391
|
+
for (var E = f, ne = ee, N = 0, q = !1; (ne = ne.get(m)) !== void 0 && !q; ) {
|
|
4392
4392
|
var F = ne.get(f);
|
|
4393
4393
|
if (N += 1, typeof F < "u") {
|
|
4394
4394
|
if (F === N)
|
|
@@ -4397,39 +4397,39 @@ function sl() {
|
|
|
4397
4397
|
}
|
|
4398
4398
|
typeof ne.get(m) > "u" && (N = 0);
|
|
4399
4399
|
}
|
|
4400
|
-
if (typeof A == "function" ?
|
|
4400
|
+
if (typeof A == "function" ? E = A(g, E) : E instanceof Date ? E = O(E) : v === "comma" && i(E) && (E = n.maybeMap(E, function(X) {
|
|
4401
4401
|
return X instanceof Date ? O(X) : X;
|
|
4402
|
-
})),
|
|
4403
|
-
if (
|
|
4404
|
-
return k && !G ? k(g,
|
|
4405
|
-
|
|
4402
|
+
})), E === null) {
|
|
4403
|
+
if (h)
|
|
4404
|
+
return k && !G ? k(g, p.encoder, se, "key", B) : g;
|
|
4405
|
+
E = "";
|
|
4406
4406
|
}
|
|
4407
|
-
if (
|
|
4407
|
+
if (d(E) || n.isBuffer(E)) {
|
|
4408
4408
|
if (k) {
|
|
4409
|
-
var P = G ? g : k(g,
|
|
4410
|
-
return [_(P) + "=" + _(k(
|
|
4409
|
+
var P = G ? g : k(g, p.encoder, se, "key", B);
|
|
4410
|
+
return [_(P) + "=" + _(k(E, p.encoder, se, "value", B))];
|
|
4411
4411
|
}
|
|
4412
|
-
return [_(g) + "=" + _(String(
|
|
4412
|
+
return [_(g) + "=" + _(String(E))];
|
|
4413
4413
|
}
|
|
4414
4414
|
var U = [];
|
|
4415
|
-
if (typeof
|
|
4415
|
+
if (typeof E > "u")
|
|
4416
4416
|
return U;
|
|
4417
4417
|
var J;
|
|
4418
|
-
if (v === "comma" && i(
|
|
4419
|
-
G && k && (
|
|
4418
|
+
if (v === "comma" && i(E))
|
|
4419
|
+
G && k && (E = n.maybeMap(E, k)), J = [{ value: E.length > 0 ? E.join(",") || null : void 0 }];
|
|
4420
4420
|
else if (i(A))
|
|
4421
4421
|
J = A;
|
|
4422
4422
|
else {
|
|
4423
|
-
var W = Object.keys(
|
|
4424
|
-
J =
|
|
4423
|
+
var W = Object.keys(E);
|
|
4424
|
+
J = R ? W.sort(R) : W;
|
|
4425
4425
|
}
|
|
4426
|
-
var Y = x ? g.replace(/\./g, "%2E") : g, ae = S && i(
|
|
4427
|
-
if (C && i(
|
|
4426
|
+
var Y = x ? g.replace(/\./g, "%2E") : g, ae = S && i(E) && E.length === 1 ? Y + "[]" : Y;
|
|
4427
|
+
if (C && i(E) && E.length === 0)
|
|
4428
4428
|
return ae + "[]";
|
|
4429
4429
|
for (var D = 0; D < J.length; ++D) {
|
|
4430
|
-
var I = J[D], H = typeof I == "object" && typeof I.value < "u" ? I.value :
|
|
4430
|
+
var I = J[D], H = typeof I == "object" && typeof I.value < "u" ? I.value : E[I];
|
|
4431
4431
|
if (!(T && H === null)) {
|
|
4432
|
-
var M = L && x ? I.replace(/\./g, "%2E") : I, K = i(
|
|
4432
|
+
var M = L && x ? I.replace(/\./g, "%2E") : I, K = i(E) ? typeof v == "function" ? v(ae, M) : ae : ae + (L ? "." + M : "[" + M + "]");
|
|
4433
4433
|
ee.set(f, N);
|
|
4434
4434
|
var V = e();
|
|
4435
4435
|
V.set(m, ee), o(U, b(
|
|
@@ -4438,12 +4438,12 @@ function sl() {
|
|
|
4438
4438
|
v,
|
|
4439
4439
|
S,
|
|
4440
4440
|
C,
|
|
4441
|
-
|
|
4441
|
+
h,
|
|
4442
4442
|
T,
|
|
4443
4443
|
x,
|
|
4444
|
-
v === "comma" && G && i(
|
|
4444
|
+
v === "comma" && G && i(E) ? null : k,
|
|
4445
4445
|
A,
|
|
4446
|
-
|
|
4446
|
+
R,
|
|
4447
4447
|
L,
|
|
4448
4448
|
O,
|
|
4449
4449
|
B,
|
|
@@ -4457,14 +4457,14 @@ function sl() {
|
|
|
4457
4457
|
return U;
|
|
4458
4458
|
}, j = function(f) {
|
|
4459
4459
|
if (!f)
|
|
4460
|
-
return
|
|
4460
|
+
return p;
|
|
4461
4461
|
if (typeof f.allowEmptyArrays < "u" && typeof f.allowEmptyArrays != "boolean")
|
|
4462
4462
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
4463
4463
|
if (typeof f.encodeDotInKeys < "u" && typeof f.encodeDotInKeys != "boolean")
|
|
4464
4464
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
4465
4465
|
if (f.encoder !== null && typeof f.encoder < "u" && typeof f.encoder != "function")
|
|
4466
4466
|
throw new TypeError("Encoder has to be a function.");
|
|
4467
|
-
var g = f.charset ||
|
|
4467
|
+
var g = f.charset || p.charset;
|
|
4468
4468
|
if (typeof f.charset < "u" && f.charset !== "utf-8" && f.charset !== "iso-8859-1")
|
|
4469
4469
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
4470
4470
|
var v = r.default;
|
|
@@ -4473,47 +4473,47 @@ function sl() {
|
|
|
4473
4473
|
throw new TypeError("Unknown format option provided.");
|
|
4474
4474
|
v = f.format;
|
|
4475
4475
|
}
|
|
4476
|
-
var S = r.formatters[v], C =
|
|
4476
|
+
var S = r.formatters[v], C = p.filter;
|
|
4477
4477
|
(typeof f.filter == "function" || i(f.filter)) && (C = f.filter);
|
|
4478
|
-
var
|
|
4479
|
-
if (f.arrayFormat in c ?
|
|
4478
|
+
var h;
|
|
4479
|
+
if (f.arrayFormat in c ? h = f.arrayFormat : "indices" in f ? h = f.indices ? "indices" : "repeat" : h = p.arrayFormat, "commaRoundTrip" in f && typeof f.commaRoundTrip != "boolean")
|
|
4480
4480
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
4481
|
-
var T = typeof f.allowDots > "u" ? f.encodeDotInKeys === !0 ? !0 :
|
|
4481
|
+
var T = typeof f.allowDots > "u" ? f.encodeDotInKeys === !0 ? !0 : p.allowDots : !!f.allowDots;
|
|
4482
4482
|
return {
|
|
4483
|
-
addQueryPrefix: typeof f.addQueryPrefix == "boolean" ? f.addQueryPrefix :
|
|
4483
|
+
addQueryPrefix: typeof f.addQueryPrefix == "boolean" ? f.addQueryPrefix : p.addQueryPrefix,
|
|
4484
4484
|
allowDots: T,
|
|
4485
|
-
allowEmptyArrays: typeof f.allowEmptyArrays == "boolean" ? !!f.allowEmptyArrays :
|
|
4486
|
-
arrayFormat:
|
|
4485
|
+
allowEmptyArrays: typeof f.allowEmptyArrays == "boolean" ? !!f.allowEmptyArrays : p.allowEmptyArrays,
|
|
4486
|
+
arrayFormat: h,
|
|
4487
4487
|
charset: g,
|
|
4488
|
-
charsetSentinel: typeof f.charsetSentinel == "boolean" ? f.charsetSentinel :
|
|
4488
|
+
charsetSentinel: typeof f.charsetSentinel == "boolean" ? f.charsetSentinel : p.charsetSentinel,
|
|
4489
4489
|
commaRoundTrip: f.commaRoundTrip,
|
|
4490
|
-
delimiter: typeof f.delimiter > "u" ?
|
|
4491
|
-
encode: typeof f.encode == "boolean" ? f.encode :
|
|
4492
|
-
encodeDotInKeys: typeof f.encodeDotInKeys == "boolean" ? f.encodeDotInKeys :
|
|
4493
|
-
encoder: typeof f.encoder == "function" ? f.encoder :
|
|
4494
|
-
encodeValuesOnly: typeof f.encodeValuesOnly == "boolean" ? f.encodeValuesOnly :
|
|
4490
|
+
delimiter: typeof f.delimiter > "u" ? p.delimiter : f.delimiter,
|
|
4491
|
+
encode: typeof f.encode == "boolean" ? f.encode : p.encode,
|
|
4492
|
+
encodeDotInKeys: typeof f.encodeDotInKeys == "boolean" ? f.encodeDotInKeys : p.encodeDotInKeys,
|
|
4493
|
+
encoder: typeof f.encoder == "function" ? f.encoder : p.encoder,
|
|
4494
|
+
encodeValuesOnly: typeof f.encodeValuesOnly == "boolean" ? f.encodeValuesOnly : p.encodeValuesOnly,
|
|
4495
4495
|
filter: C,
|
|
4496
4496
|
format: v,
|
|
4497
4497
|
formatter: S,
|
|
4498
|
-
serializeDate: typeof f.serializeDate == "function" ? f.serializeDate :
|
|
4499
|
-
skipNulls: typeof f.skipNulls == "boolean" ? f.skipNulls :
|
|
4498
|
+
serializeDate: typeof f.serializeDate == "function" ? f.serializeDate : p.serializeDate,
|
|
4499
|
+
skipNulls: typeof f.skipNulls == "boolean" ? f.skipNulls : p.skipNulls,
|
|
4500
4500
|
sort: typeof f.sort == "function" ? f.sort : null,
|
|
4501
|
-
strictNullHandling: typeof f.strictNullHandling == "boolean" ? f.strictNullHandling :
|
|
4501
|
+
strictNullHandling: typeof f.strictNullHandling == "boolean" ? f.strictNullHandling : p.strictNullHandling
|
|
4502
4502
|
};
|
|
4503
4503
|
};
|
|
4504
4504
|
return xr = function(b, f) {
|
|
4505
4505
|
var g = b, v = j(f), S, C;
|
|
4506
4506
|
typeof v.filter == "function" ? (C = v.filter, g = C("", g)) : i(v.filter) && (C = v.filter, S = C);
|
|
4507
|
-
var
|
|
4507
|
+
var h = [];
|
|
4508
4508
|
if (typeof g != "object" || g === null)
|
|
4509
4509
|
return "";
|
|
4510
4510
|
var T = c[v.arrayFormat], x = T === "comma" && v.commaRoundTrip;
|
|
4511
4511
|
S || (S = Object.keys(g)), v.sort && S.sort(v.sort);
|
|
4512
4512
|
for (var k = e(), A = 0; A < S.length; ++A) {
|
|
4513
|
-
var
|
|
4514
|
-
v.skipNulls && g[
|
|
4515
|
-
g[
|
|
4516
|
-
|
|
4513
|
+
var R = S[A];
|
|
4514
|
+
v.skipNulls && g[R] === null || o(h, y(
|
|
4515
|
+
g[R],
|
|
4516
|
+
R,
|
|
4517
4517
|
T,
|
|
4518
4518
|
x,
|
|
4519
4519
|
v.allowEmptyArrays,
|
|
@@ -4532,12 +4532,12 @@ function sl() {
|
|
|
4532
4532
|
k
|
|
4533
4533
|
));
|
|
4534
4534
|
}
|
|
4535
|
-
var L =
|
|
4535
|
+
var L = h.join(v.delimiter), O = v.addQueryPrefix === !0 ? "?" : "";
|
|
4536
4536
|
return v.charsetSentinel && (v.charset === "iso-8859-1" ? O += "utf8=%26%2310003%3B&" : O += "utf8=%E2%9C%93&"), L.length > 0 ? O + L : "";
|
|
4537
4537
|
}, xr;
|
|
4538
4538
|
}
|
|
4539
4539
|
var br, da;
|
|
4540
|
-
function
|
|
4540
|
+
function sl() {
|
|
4541
4541
|
if (da) return br;
|
|
4542
4542
|
da = 1;
|
|
4543
4543
|
var e = /* @__PURE__ */ Fa(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = {
|
|
@@ -4570,21 +4570,21 @@ function ll() {
|
|
|
4570
4570
|
}, t = "utf8=%26%2310003%3B", o = "utf8=%E2%9C%93", s = function(y, j) {
|
|
4571
4571
|
var b = { __proto__: null }, f = j.ignoreQueryPrefix ? y.replace(/^\?/, "") : y;
|
|
4572
4572
|
f = f.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
4573
|
-
var g = j.parameterLimit === 1 / 0 ? void 0 : j.parameterLimit, v = f.split(j.delimiter, g), S = -1, C,
|
|
4573
|
+
var g = j.parameterLimit === 1 / 0 ? void 0 : j.parameterLimit, v = f.split(j.delimiter, g), S = -1, C, h = j.charset;
|
|
4574
4574
|
if (j.charsetSentinel)
|
|
4575
4575
|
for (C = 0; C < v.length; ++C)
|
|
4576
|
-
v[C].indexOf("utf8=") === 0 && (v[C] === o ?
|
|
4576
|
+
v[C].indexOf("utf8=") === 0 && (v[C] === o ? h = "utf-8" : v[C] === t && (h = "iso-8859-1"), S = C, C = v.length);
|
|
4577
4577
|
for (C = 0; C < v.length; ++C)
|
|
4578
4578
|
if (C !== S) {
|
|
4579
|
-
var T = v[C], x = T.indexOf("]="), k = x === -1 ? T.indexOf("=") : x + 1, A,
|
|
4580
|
-
k === -1 ? (A = j.decoder(T, a.decoder,
|
|
4579
|
+
var T = v[C], x = T.indexOf("]="), k = x === -1 ? T.indexOf("=") : x + 1, A, R;
|
|
4580
|
+
k === -1 ? (A = j.decoder(T, a.decoder, h, "key"), R = j.strictNullHandling ? null : "") : (A = j.decoder(T.slice(0, k), a.decoder, h, "key"), R = e.maybeMap(
|
|
4581
4581
|
i(T.slice(k + 1), j),
|
|
4582
4582
|
function(O) {
|
|
4583
|
-
return j.decoder(O, a.decoder,
|
|
4583
|
+
return j.decoder(O, a.decoder, h, "value");
|
|
4584
4584
|
}
|
|
4585
|
-
)),
|
|
4585
|
+
)), R && j.interpretNumericEntities && h === "iso-8859-1" && (R = c(R)), T.indexOf("[]=") > -1 && (R = r(R) ? [R] : R);
|
|
4586
4586
|
var L = n.call(b, A);
|
|
4587
|
-
L && j.duplicates === "combine" ? b[A] = e.combine(b[A],
|
|
4587
|
+
L && j.duplicates === "combine" ? b[A] = e.combine(b[A], R) : (!L || j.duplicates === "last") && (b[A] = R);
|
|
4588
4588
|
}
|
|
4589
4589
|
return b;
|
|
4590
4590
|
}, u = function(m, y, j, b) {
|
|
@@ -4594,19 +4594,19 @@ function ll() {
|
|
|
4594
4594
|
v = j.allowEmptyArrays && (f === "" || j.strictNullHandling && f === null) ? [] : [].concat(f);
|
|
4595
4595
|
else {
|
|
4596
4596
|
v = j.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
4597
|
-
var C = S.charAt(0) === "[" && S.charAt(S.length - 1) === "]" ? S.slice(1, -1) : S,
|
|
4598
|
-
!j.parseArrays &&
|
|
4597
|
+
var C = S.charAt(0) === "[" && S.charAt(S.length - 1) === "]" ? S.slice(1, -1) : S, h = j.decodeDotInKeys ? C.replace(/%2E/g, ".") : C, T = parseInt(h, 10);
|
|
4598
|
+
!j.parseArrays && h === "" ? v = { 0: f } : !isNaN(T) && S !== h && String(T) === h && T >= 0 && j.parseArrays && T <= j.arrayLimit ? (v = [], v[T] = f) : h !== "__proto__" && (v[h] = f);
|
|
4599
4599
|
}
|
|
4600
4600
|
f = v;
|
|
4601
4601
|
}
|
|
4602
4602
|
return f;
|
|
4603
|
-
},
|
|
4603
|
+
}, p = function(y, j, b, f) {
|
|
4604
4604
|
if (y) {
|
|
4605
|
-
var g = b.allowDots ? y.replace(/\.([^.[]+)/g, "[$1]") : y, v = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, C = b.depth > 0 && v.exec(g),
|
|
4606
|
-
if (
|
|
4607
|
-
if (!b.plainObjects && n.call(Object.prototype,
|
|
4605
|
+
var g = b.allowDots ? y.replace(/\.([^.[]+)/g, "[$1]") : y, v = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, C = b.depth > 0 && v.exec(g), h = C ? g.slice(0, C.index) : g, T = [];
|
|
4606
|
+
if (h) {
|
|
4607
|
+
if (!b.plainObjects && n.call(Object.prototype, h) && !b.allowPrototypes)
|
|
4608
4608
|
return;
|
|
4609
|
-
T.push(
|
|
4609
|
+
T.push(h);
|
|
4610
4610
|
}
|
|
4611
4611
|
for (var x = 0; b.depth > 0 && (C = S.exec(g)) !== null && x < b.depth; ) {
|
|
4612
4612
|
if (x += 1, !b.plainObjects && n.call(Object.prototype, C[1].slice(1, -1)) && !b.allowPrototypes)
|
|
@@ -4620,7 +4620,7 @@ function ll() {
|
|
|
4620
4620
|
}
|
|
4621
4621
|
return u(T, j, b, f);
|
|
4622
4622
|
}
|
|
4623
|
-
},
|
|
4623
|
+
}, d = function(y) {
|
|
4624
4624
|
if (!y)
|
|
4625
4625
|
return a;
|
|
4626
4626
|
if (typeof y.allowEmptyArrays < "u" && typeof y.allowEmptyArrays != "boolean")
|
|
@@ -4660,11 +4660,11 @@ function ll() {
|
|
|
4660
4660
|
};
|
|
4661
4661
|
};
|
|
4662
4662
|
return br = function(m, y) {
|
|
4663
|
-
var j =
|
|
4663
|
+
var j = d(y);
|
|
4664
4664
|
if (m === "" || m === null || typeof m > "u")
|
|
4665
4665
|
return j.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
4666
4666
|
for (var b = typeof m == "string" ? s(m, j) : m, f = j.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, g = Object.keys(b), v = 0; v < g.length; ++v) {
|
|
4667
|
-
var S = g[v], C =
|
|
4667
|
+
var S = g[v], C = p(S, b[S], j, typeof m == "string");
|
|
4668
4668
|
f = e.merge(f, C, j);
|
|
4669
4669
|
}
|
|
4670
4670
|
return j.allowSparse === !0 ? f : e.compact(f);
|
|
@@ -4674,7 +4674,7 @@ var jr, ha;
|
|
|
4674
4674
|
function Ha() {
|
|
4675
4675
|
if (ha) return jr;
|
|
4676
4676
|
ha = 1;
|
|
4677
|
-
var e = /* @__PURE__ */
|
|
4677
|
+
var e = /* @__PURE__ */ il(), n = /* @__PURE__ */ sl(), r = /* @__PURE__ */ Br();
|
|
4678
4678
|
return jr = {
|
|
4679
4679
|
formats: r,
|
|
4680
4680
|
parse: n,
|
|
@@ -4682,10 +4682,10 @@ function Ha() {
|
|
|
4682
4682
|
}, jr;
|
|
4683
4683
|
}
|
|
4684
4684
|
var ma;
|
|
4685
|
-
function
|
|
4685
|
+
function ll() {
|
|
4686
4686
|
if (ma) return Te;
|
|
4687
4687
|
ma = 1;
|
|
4688
|
-
var e =
|
|
4688
|
+
var e = ks();
|
|
4689
4689
|
function n() {
|
|
4690
4690
|
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;
|
|
4691
4691
|
}
|
|
@@ -4716,7 +4716,7 @@ function cl() {
|
|
|
4716
4716
|
"/",
|
|
4717
4717
|
"?",
|
|
4718
4718
|
"#"
|
|
4719
|
-
],
|
|
4719
|
+
], p = 255, d = /^[+a-z0-9A-Z_-]{0,63}$/, m = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, y = {
|
|
4720
4720
|
javascript: !0,
|
|
4721
4721
|
"javascript:": !0
|
|
4722
4722
|
}, j = {
|
|
@@ -4734,19 +4734,19 @@ function cl() {
|
|
|
4734
4734
|
"gopher:": !0,
|
|
4735
4735
|
"file:": !0
|
|
4736
4736
|
}, f = /* @__PURE__ */ Ha();
|
|
4737
|
-
function g(
|
|
4738
|
-
if (
|
|
4739
|
-
return
|
|
4737
|
+
function g(h, T, x) {
|
|
4738
|
+
if (h && typeof h == "object" && h instanceof n)
|
|
4739
|
+
return h;
|
|
4740
4740
|
var k = new n();
|
|
4741
|
-
return k.parse(
|
|
4741
|
+
return k.parse(h, T, x), k;
|
|
4742
4742
|
}
|
|
4743
|
-
n.prototype.parse = function(
|
|
4744
|
-
if (typeof
|
|
4745
|
-
throw new TypeError("Parameter 'url' must be a string, not " + typeof
|
|
4746
|
-
var k =
|
|
4747
|
-
|
|
4748
|
-
var O =
|
|
4749
|
-
if (O = O.trim(), !x &&
|
|
4743
|
+
n.prototype.parse = function(h, T, x) {
|
|
4744
|
+
if (typeof h != "string")
|
|
4745
|
+
throw new TypeError("Parameter 'url' must be a string, not " + typeof h);
|
|
4746
|
+
var k = h.indexOf("?"), A = k !== -1 && k < h.indexOf("#") ? "?" : "#", R = h.split(A), L = /\\/g;
|
|
4747
|
+
R[0] = R[0].replace(L, "/"), h = R.join(A);
|
|
4748
|
+
var O = h;
|
|
4749
|
+
if (O = O.trim(), !x && h.split("#").length === 1) {
|
|
4750
4750
|
var B = c.exec(O);
|
|
4751
4751
|
if (B)
|
|
4752
4752
|
return this.path = O, this.href = O, this.pathname = B[1], B[2] ? (this.search = B[2], T ? this.query = f.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : T && (this.search = "", this.query = {}), this;
|
|
@@ -4762,38 +4762,38 @@ function cl() {
|
|
|
4762
4762
|
se && !(_ && j[_]) && (O = O.substr(2), this.slashes = !0);
|
|
4763
4763
|
}
|
|
4764
4764
|
if (!j[_] && (se || _ && !b[_])) {
|
|
4765
|
-
for (var ee = -1,
|
|
4766
|
-
var ne = O.indexOf(u[
|
|
4765
|
+
for (var ee = -1, E = 0; E < u.length; E++) {
|
|
4766
|
+
var ne = O.indexOf(u[E]);
|
|
4767
4767
|
ne !== -1 && (ee === -1 || ne < ee) && (ee = ne);
|
|
4768
4768
|
}
|
|
4769
4769
|
var N, q;
|
|
4770
4770
|
ee === -1 ? q = O.lastIndexOf("@") : q = O.lastIndexOf("@", ee), q !== -1 && (N = O.slice(0, q), O = O.slice(q + 1), this.auth = decodeURIComponent(N)), ee = -1;
|
|
4771
|
-
for (var
|
|
4772
|
-
var ne = O.indexOf(s[
|
|
4771
|
+
for (var E = 0; E < s.length; E++) {
|
|
4772
|
+
var ne = O.indexOf(s[E]);
|
|
4773
4773
|
ne !== -1 && (ee === -1 || ne < ee) && (ee = ne);
|
|
4774
4774
|
}
|
|
4775
4775
|
ee === -1 && (ee = O.length), this.host = O.slice(0, ee), O = O.slice(ee), this.parseHost(), this.hostname = this.hostname || "";
|
|
4776
4776
|
var F = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
4777
4777
|
if (!F)
|
|
4778
|
-
for (var P = this.hostname.split(/\./),
|
|
4779
|
-
var J = P[
|
|
4780
|
-
if (J && !J.match(
|
|
4778
|
+
for (var P = this.hostname.split(/\./), E = 0, U = P.length; E < U; E++) {
|
|
4779
|
+
var J = P[E];
|
|
4780
|
+
if (J && !J.match(d)) {
|
|
4781
4781
|
for (var W = "", Y = 0, ae = J.length; Y < ae; Y++)
|
|
4782
4782
|
J.charCodeAt(Y) > 127 ? W += "x" : W += J[Y];
|
|
4783
|
-
if (!W.match(
|
|
4784
|
-
var D = P.slice(0,
|
|
4783
|
+
if (!W.match(d)) {
|
|
4784
|
+
var D = P.slice(0, E), I = P.slice(E + 1), H = J.match(m);
|
|
4785
4785
|
H && (D.push(H[1]), I.unshift(H[2])), I.length && (O = "/" + I.join(".") + O), this.hostname = D.join(".");
|
|
4786
4786
|
break;
|
|
4787
4787
|
}
|
|
4788
4788
|
}
|
|
4789
4789
|
}
|
|
4790
|
-
this.hostname.length >
|
|
4790
|
+
this.hostname.length > p ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), F || (this.hostname = e.toASCII(this.hostname));
|
|
4791
4791
|
var M = this.port ? ":" + this.port : "", K = this.hostname || "";
|
|
4792
4792
|
this.host = K + M, this.href += this.host, F && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), O[0] !== "/" && (O = "/" + O));
|
|
4793
4793
|
}
|
|
4794
4794
|
if (!y[G])
|
|
4795
|
-
for (var
|
|
4796
|
-
var V = o[
|
|
4795
|
+
for (var E = 0, U = o.length; E < U; E++) {
|
|
4796
|
+
var V = o[E];
|
|
4797
4797
|
if (O.indexOf(V) !== -1) {
|
|
4798
4798
|
var X = encodeURIComponent(V);
|
|
4799
4799
|
X === V && (X = escape(V)), O = O.split(V).join(X);
|
|
@@ -4808,85 +4808,85 @@ function cl() {
|
|
|
4808
4808
|
}
|
|
4809
4809
|
return this.href = this.format(), this;
|
|
4810
4810
|
};
|
|
4811
|
-
function v(
|
|
4812
|
-
return typeof
|
|
4811
|
+
function v(h) {
|
|
4812
|
+
return typeof h == "string" && (h = g(h)), h instanceof n ? h.format() : n.prototype.format.call(h);
|
|
4813
4813
|
}
|
|
4814
4814
|
n.prototype.format = function() {
|
|
4815
|
-
var
|
|
4816
|
-
|
|
4817
|
-
var T = this.protocol || "", x = this.pathname || "", k = this.hash || "", A = !1,
|
|
4818
|
-
this.host ? A =
|
|
4815
|
+
var h = this.auth || "";
|
|
4816
|
+
h && (h = encodeURIComponent(h), h = h.replace(/%3A/i, ":"), h += "@");
|
|
4817
|
+
var T = this.protocol || "", x = this.pathname || "", k = this.hash || "", A = !1, R = "";
|
|
4818
|
+
this.host ? A = h + this.host : this.hostname && (A = h + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (A += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (R = f.stringify(this.query, {
|
|
4819
4819
|
arrayFormat: "repeat",
|
|
4820
4820
|
addQueryPrefix: !1
|
|
4821
4821
|
}));
|
|
4822
|
-
var L = this.search ||
|
|
4822
|
+
var L = this.search || R && "?" + R || "";
|
|
4823
4823
|
return T && T.substr(-1) !== ":" && (T += ":"), this.slashes || (!T || b[T]) && A !== !1 ? (A = "//" + (A || ""), x && x.charAt(0) !== "/" && (x = "/" + x)) : A || (A = ""), k && k.charAt(0) !== "#" && (k = "#" + k), L && L.charAt(0) !== "?" && (L = "?" + L), x = x.replace(/[?#]/g, function(O) {
|
|
4824
4824
|
return encodeURIComponent(O);
|
|
4825
4825
|
}), L = L.replace("#", "%23"), T + A + x + L + k;
|
|
4826
4826
|
};
|
|
4827
|
-
function S(
|
|
4828
|
-
return g(
|
|
4827
|
+
function S(h, T) {
|
|
4828
|
+
return g(h, !1, !0).resolve(T);
|
|
4829
4829
|
}
|
|
4830
|
-
n.prototype.resolve = function(
|
|
4831
|
-
return this.resolveObject(g(
|
|
4830
|
+
n.prototype.resolve = function(h) {
|
|
4831
|
+
return this.resolveObject(g(h, !1, !0)).format();
|
|
4832
4832
|
};
|
|
4833
|
-
function C(
|
|
4834
|
-
return
|
|
4833
|
+
function C(h, T) {
|
|
4834
|
+
return h ? g(h, !1, !0).resolveObject(T) : T;
|
|
4835
4835
|
}
|
|
4836
|
-
return n.prototype.resolveObject = function(
|
|
4837
|
-
if (typeof
|
|
4836
|
+
return n.prototype.resolveObject = function(h) {
|
|
4837
|
+
if (typeof h == "string") {
|
|
4838
4838
|
var T = new n();
|
|
4839
|
-
T.parse(
|
|
4839
|
+
T.parse(h, !1, !0), h = T;
|
|
4840
4840
|
}
|
|
4841
4841
|
for (var x = new n(), k = Object.keys(this), A = 0; A < k.length; A++) {
|
|
4842
|
-
var
|
|
4843
|
-
x[
|
|
4842
|
+
var R = k[A];
|
|
4843
|
+
x[R] = this[R];
|
|
4844
4844
|
}
|
|
4845
|
-
if (x.hash =
|
|
4845
|
+
if (x.hash = h.hash, h.href === "")
|
|
4846
4846
|
return x.href = x.format(), x;
|
|
4847
|
-
if (
|
|
4848
|
-
for (var L = Object.keys(
|
|
4847
|
+
if (h.slashes && !h.protocol) {
|
|
4848
|
+
for (var L = Object.keys(h), O = 0; O < L.length; O++) {
|
|
4849
4849
|
var B = L[O];
|
|
4850
|
-
B !== "protocol" && (x[B] =
|
|
4850
|
+
B !== "protocol" && (x[B] = h[B]);
|
|
4851
4851
|
}
|
|
4852
4852
|
return b[x.protocol] && x.hostname && !x.pathname && (x.pathname = "/", x.path = x.pathname), x.href = x.format(), x;
|
|
4853
4853
|
}
|
|
4854
|
-
if (
|
|
4855
|
-
if (!b[
|
|
4856
|
-
for (var _ = Object.keys(
|
|
4854
|
+
if (h.protocol && h.protocol !== x.protocol) {
|
|
4855
|
+
if (!b[h.protocol]) {
|
|
4856
|
+
for (var _ = Object.keys(h), G = 0; G < _.length; G++) {
|
|
4857
4857
|
var se = _[G];
|
|
4858
|
-
x[se] =
|
|
4858
|
+
x[se] = h[se];
|
|
4859
4859
|
}
|
|
4860
4860
|
return x.href = x.format(), x;
|
|
4861
4861
|
}
|
|
4862
|
-
if (x.protocol =
|
|
4863
|
-
for (var U = (
|
|
4862
|
+
if (x.protocol = h.protocol, !h.host && !j[h.protocol]) {
|
|
4863
|
+
for (var U = (h.pathname || "").split("/"); U.length && !(h.host = U.shift()); )
|
|
4864
4864
|
;
|
|
4865
|
-
|
|
4865
|
+
h.host || (h.host = ""), h.hostname || (h.hostname = ""), U[0] !== "" && U.unshift(""), U.length < 2 && U.unshift(""), x.pathname = U.join("/");
|
|
4866
4866
|
} else
|
|
4867
|
-
x.pathname =
|
|
4868
|
-
if (x.search =
|
|
4869
|
-
var ee = x.pathname || "",
|
|
4870
|
-
x.path = ee +
|
|
4867
|
+
x.pathname = h.pathname;
|
|
4868
|
+
if (x.search = h.search, x.query = h.query, x.host = h.host || "", x.auth = h.auth, x.hostname = h.hostname || h.host, x.port = h.port, x.pathname || x.search) {
|
|
4869
|
+
var ee = x.pathname || "", E = x.search || "";
|
|
4870
|
+
x.path = ee + E;
|
|
4871
4871
|
}
|
|
4872
|
-
return x.slashes = x.slashes ||
|
|
4872
|
+
return x.slashes = x.slashes || h.slashes, x.href = x.format(), x;
|
|
4873
4873
|
}
|
|
4874
|
-
var ne = x.pathname && x.pathname.charAt(0) === "/", N =
|
|
4875
|
-
if (J && (x.hostname = "", x.port = null, x.host && (P[0] === "" ? P[0] = x.host : P.unshift(x.host)), x.host = "",
|
|
4876
|
-
x.host =
|
|
4874
|
+
var ne = x.pathname && x.pathname.charAt(0) === "/", N = h.host || h.pathname && h.pathname.charAt(0) === "/", q = N || ne || x.host && h.pathname, F = q, P = x.pathname && x.pathname.split("/") || [], U = h.pathname && h.pathname.split("/") || [], J = x.protocol && !b[x.protocol];
|
|
4875
|
+
if (J && (x.hostname = "", x.port = null, x.host && (P[0] === "" ? P[0] = x.host : P.unshift(x.host)), x.host = "", h.protocol && (h.hostname = null, h.port = null, h.host && (U[0] === "" ? U[0] = h.host : U.unshift(h.host)), h.host = null), q = q && (U[0] === "" || P[0] === "")), N)
|
|
4876
|
+
x.host = h.host || h.host === "" ? h.host : x.host, x.hostname = h.hostname || h.hostname === "" ? h.hostname : x.hostname, x.search = h.search, x.query = h.query, P = U;
|
|
4877
4877
|
else if (U.length)
|
|
4878
|
-
P || (P = []), P.pop(), P = P.concat(U), x.search =
|
|
4879
|
-
else if (
|
|
4878
|
+
P || (P = []), P.pop(), P = P.concat(U), x.search = h.search, x.query = h.query;
|
|
4879
|
+
else if (h.search != null) {
|
|
4880
4880
|
if (J) {
|
|
4881
4881
|
x.host = P.shift(), x.hostname = x.host;
|
|
4882
4882
|
var W = x.host && x.host.indexOf("@") > 0 ? x.host.split("@") : !1;
|
|
4883
4883
|
W && (x.auth = W.shift(), x.hostname = W.shift(), x.host = x.hostname);
|
|
4884
4884
|
}
|
|
4885
|
-
return x.search =
|
|
4885
|
+
return x.search = h.search, x.query = h.query, (x.pathname !== null || x.search !== null) && (x.path = (x.pathname ? x.pathname : "") + (x.search ? x.search : "")), x.href = x.format(), x;
|
|
4886
4886
|
}
|
|
4887
4887
|
if (!P.length)
|
|
4888
4888
|
return x.pathname = null, x.search ? x.path = "/" + x.search : x.path = null, x.href = x.format(), x;
|
|
4889
|
-
for (var Y = P.slice(-1)[0], ae = (x.host ||
|
|
4889
|
+
for (var Y = P.slice(-1)[0], ae = (x.host || h.host || P.length > 1) && (Y === "." || Y === "..") || Y === "", D = 0, I = P.length; I >= 0; I--)
|
|
4890
4890
|
Y = P[I], Y === "." ? P.splice(I, 1) : Y === ".." ? (P.splice(I, 1), D++) : D && (P.splice(I, 1), D--);
|
|
4891
4891
|
if (!q && !F)
|
|
4892
4892
|
for (; D--; D)
|
|
@@ -4898,18 +4898,18 @@ function cl() {
|
|
|
4898
4898
|
var W = x.host && x.host.indexOf("@") > 0 ? x.host.split("@") : !1;
|
|
4899
4899
|
W && (x.auth = W.shift(), x.hostname = W.shift(), x.host = x.hostname);
|
|
4900
4900
|
}
|
|
4901
|
-
return q = q || x.host && P.length, q && !H && P.unshift(""), P.length > 0 ? x.pathname = P.join("/") : (x.pathname = null, x.path = null), (x.pathname !== null || x.search !== null) && (x.path = (x.pathname ? x.pathname : "") + (x.search ? x.search : "")), x.auth =
|
|
4901
|
+
return q = q || x.host && P.length, q && !H && P.unshift(""), P.length > 0 ? x.pathname = P.join("/") : (x.pathname = null, x.path = null), (x.pathname !== null || x.search !== null) && (x.path = (x.pathname ? x.pathname : "") + (x.search ? x.search : "")), x.auth = h.auth || x.auth, x.slashes = x.slashes || h.slashes, x.href = x.format(), x;
|
|
4902
4902
|
}, n.prototype.parseHost = function() {
|
|
4903
|
-
var
|
|
4904
|
-
T && (T = T[0], T !== ":" && (this.port = T.substr(1)),
|
|
4903
|
+
var h = this.host, T = a.exec(h);
|
|
4904
|
+
T && (T = T[0], T !== ":" && (this.port = T.substr(1)), h = h.substr(0, h.length - T.length)), h && (this.hostname = h);
|
|
4905
4905
|
}, Te.parse = g, Te.resolve = S, Te.resolveObject = C, Te.format = v, Te.Url = n, Te;
|
|
4906
4906
|
}
|
|
4907
|
-
var $r =
|
|
4907
|
+
var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), ul = class {
|
|
4908
4908
|
constructor(e, n = {}) {
|
|
4909
4909
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4910
4910
|
harIsAlreadyEncoded: !1,
|
|
4911
4911
|
...n
|
|
4912
|
-
}, this.requests = [],
|
|
4912
|
+
}, this.requests = [], cl(e) ? this.entries = e.log.entries : this.entries = [
|
|
4913
4913
|
{
|
|
4914
4914
|
request: e
|
|
4915
4915
|
}
|
|
@@ -4943,40 +4943,40 @@ var $r = cl(), wr = /* @__PURE__ */ Ha(), ul = (e) => typeof e == "object" && "l
|
|
|
4943
4943
|
allHeaders: {}
|
|
4944
4944
|
};
|
|
4945
4945
|
if (r.queryString && r.queryString.length && (r.queryObj = r.queryString.reduce(on, {})), r.headers && r.headers.length) {
|
|
4946
|
-
const
|
|
4947
|
-
r.headersObj = r.headers.reduce((
|
|
4948
|
-
const j =
|
|
4946
|
+
const p = /^HTTP\/2/;
|
|
4947
|
+
r.headersObj = r.headers.reduce((d, { name: m, value: y }) => {
|
|
4948
|
+
const j = p.exec(r.httpVersion) ? m.toLocaleLowerCase() : m;
|
|
4949
4949
|
return {
|
|
4950
|
-
...
|
|
4950
|
+
...d,
|
|
4951
4951
|
[j]: y
|
|
4952
4952
|
};
|
|
4953
4953
|
}, {});
|
|
4954
4954
|
}
|
|
4955
4955
|
r.cookies && r.cookies.length && (r.cookiesObj = r.cookies.reduceRight(
|
|
4956
|
-
(
|
|
4957
|
-
...
|
|
4958
|
-
[
|
|
4956
|
+
(p, { name: d, value: m }) => ({
|
|
4957
|
+
...p,
|
|
4958
|
+
[d]: m
|
|
4959
4959
|
}),
|
|
4960
4960
|
{}
|
|
4961
4961
|
));
|
|
4962
|
-
const a = r.cookies?.map(({ name:
|
|
4962
|
+
const a = r.cookies?.map(({ name: p, value: d }) => n.harIsAlreadyEncoded ? `${p}=${d}` : `${encodeURIComponent(p)}=${encodeURIComponent(d)}`);
|
|
4963
4963
|
switch (a?.length && (r.allHeaders.cookie = a.join("; ")), r.postData.mimeType) {
|
|
4964
4964
|
case "multipart/mixed":
|
|
4965
4965
|
case "multipart/related":
|
|
4966
4966
|
case "multipart/form-data":
|
|
4967
4967
|
case "multipart/alternative":
|
|
4968
4968
|
if (r.postData.text = "", r.postData.mimeType = "multipart/form-data", r.postData?.params) {
|
|
4969
|
-
const
|
|
4969
|
+
const p = "---011000010111000001101001", d = `${p}--`, m = `\r
|
|
4970
4970
|
`, y = (g) => g.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), j = (g) => g.replace(/\r?\n|\r/g, `\r
|
|
4971
|
-
`), b = [`--${
|
|
4971
|
+
`), b = [`--${p}`];
|
|
4972
4972
|
r.postData?.params.forEach((g, v) => {
|
|
4973
|
-
const S = g.name, C = g.value || "",
|
|
4974
|
-
|
|
4975
|
-
`Content-Disposition: form-data; name="${y(j(S))}"; filename="${
|
|
4976
|
-
), b.push(`Content-Type: ${T}`)) : b.push(`Content-Disposition: form-data; name="${y(j(S))}"`), b.push(""), b.push(j(C)), v !== r.postData.params.length - 1 && b.push(`--${
|
|
4977
|
-
}), b.push(`--${
|
|
4973
|
+
const S = g.name, C = g.value || "", h = g.fileName || null, T = g.contentType || "application/octet-stream";
|
|
4974
|
+
h ? (b.push(
|
|
4975
|
+
`Content-Disposition: form-data; name="${y(j(S))}"; filename="${h}"`
|
|
4976
|
+
), b.push(`Content-Type: ${T}`)) : b.push(`Content-Disposition: form-data; name="${y(j(S))}"`), b.push(""), b.push(j(C)), v !== r.postData.params.length - 1 && b.push(`--${p}`);
|
|
4977
|
+
}), b.push(`--${d}`), r.postData.boundary = p, r.postData.text = b.join(m);
|
|
4978
4978
|
const f = pe(r.headersObj, "content-type") || "content-type";
|
|
4979
|
-
r.headersObj[f] = `multipart/form-data; boundary=${
|
|
4979
|
+
r.headersObj[f] = `multipart/form-data; boundary=${p}`;
|
|
4980
4980
|
}
|
|
4981
4981
|
break;
|
|
4982
4982
|
case "application/x-www-form-urlencoded":
|
|
@@ -5032,14 +5032,14 @@ var $r = cl(), wr = /* @__PURE__ */ Ha(), ul = (e) => typeof e == "object" && "l
|
|
|
5032
5032
|
}
|
|
5033
5033
|
convert(e, n, r) {
|
|
5034
5034
|
this.initCalled || this.init(), !r && n && (r = n);
|
|
5035
|
-
const a =
|
|
5035
|
+
const a = Ps[e];
|
|
5036
5036
|
if (!a)
|
|
5037
5037
|
return !1;
|
|
5038
5038
|
const { convert: c } = a.clientsById[n || a.info.default];
|
|
5039
5039
|
return this.requests.map((t) => c(t, r));
|
|
5040
5040
|
}
|
|
5041
5041
|
};
|
|
5042
|
-
const
|
|
5042
|
+
const pl = (e) => {
|
|
5043
5043
|
const n = (r) => typeof r == "string" ? r : JSON.stringify(r);
|
|
5044
5044
|
try {
|
|
5045
5045
|
const r = e && JSON.parse(e);
|
|
@@ -5047,16 +5047,16 @@ const fl = (e) => {
|
|
|
5047
5047
|
} catch {
|
|
5048
5048
|
return [];
|
|
5049
5049
|
}
|
|
5050
|
-
},
|
|
5050
|
+
}, fl = ({
|
|
5051
5051
|
operation: e,
|
|
5052
5052
|
selectedServer: n,
|
|
5053
5053
|
exampleBody: r
|
|
5054
5054
|
}) => {
|
|
5055
5055
|
const c = r.mimeType === "multipart/form-data" || r.mimeType === "application/x-www-form-urlencoded" ? {
|
|
5056
5056
|
mimeType: r.mimeType,
|
|
5057
|
-
params:
|
|
5057
|
+
params: pl(r.text)
|
|
5058
5058
|
} : r;
|
|
5059
|
-
return new
|
|
5059
|
+
return new ul({
|
|
5060
5060
|
method: e.method.toUpperCase(),
|
|
5061
5061
|
url: n + e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
5062
5062
|
postData: c,
|
|
@@ -5076,7 +5076,7 @@ const fl = (e) => {
|
|
|
5076
5076
|
headersSize: 0,
|
|
5077
5077
|
bodySize: 0
|
|
5078
5078
|
});
|
|
5079
|
-
},
|
|
5079
|
+
}, dl = (e, n) => {
|
|
5080
5080
|
let r;
|
|
5081
5081
|
switch (n) {
|
|
5082
5082
|
case "shell":
|
|
@@ -5118,7 +5118,7 @@ const fl = (e) => {
|
|
|
5118
5118
|
}
|
|
5119
5119
|
return r ? r[0] : "";
|
|
5120
5120
|
}, Pe = (e, n) => {
|
|
5121
|
-
if (!e ||
|
|
5121
|
+
if (!e || xo(e))
|
|
5122
5122
|
return null;
|
|
5123
5123
|
if (e.example !== void 0)
|
|
5124
5124
|
return e.example;
|
|
@@ -5187,7 +5187,7 @@ const fl = (e) => {
|
|
|
5187
5187
|
purple: "text-purple-600",
|
|
5188
5188
|
indigo: "text-indigo-600",
|
|
5189
5189
|
gray: "text-gray-600"
|
|
5190
|
-
},
|
|
5190
|
+
}, hl = {
|
|
5191
5191
|
get: xe.green,
|
|
5192
5192
|
post: xe.blue,
|
|
5193
5193
|
put: xe.yellow,
|
|
@@ -5196,7 +5196,7 @@ const fl = (e) => {
|
|
|
5196
5196
|
options: xe.indigo,
|
|
5197
5197
|
head: xe.gray,
|
|
5198
5198
|
trace: xe.gray
|
|
5199
|
-
}, Ma = (e) =>
|
|
5199
|
+
}, Ma = (e) => hl[e.toLocaleLowerCase()] ?? xe.gray;
|
|
5200
5200
|
Ve(
|
|
5201
5201
|
/* GraphQL */
|
|
5202
5202
|
`
|
|
@@ -5210,7 +5210,7 @@ Ve(
|
|
|
5210
5210
|
}
|
|
5211
5211
|
`
|
|
5212
5212
|
);
|
|
5213
|
-
const
|
|
5213
|
+
const ml = [
|
|
5214
5214
|
{ value: "shell", label: "cURL" },
|
|
5215
5215
|
{ value: "js", label: "JavaScript" },
|
|
5216
5216
|
{ value: "python", label: "Python" },
|
|
@@ -5222,13 +5222,13 @@ const yl = [
|
|
|
5222
5222
|
{ value: "php", label: "PHP" },
|
|
5223
5223
|
{ value: "ruby", label: "Ruby" },
|
|
5224
5224
|
{ value: "swift", label: "Swift" }
|
|
5225
|
-
],
|
|
5225
|
+
], yl = ({
|
|
5226
5226
|
operation: e,
|
|
5227
5227
|
selectedResponse: n,
|
|
5228
5228
|
globalSelectedServer: r,
|
|
5229
5229
|
shouldLazyHighlight: a
|
|
5230
5230
|
}) => {
|
|
5231
|
-
const { options: c } = ct(), i = uo(), t =
|
|
5231
|
+
const { options: c } = ct(), i = uo(), t = zo(), o = Ma(e.method), [s, u] = Xa(), [, p] = Pa(), d = c?.supportedLanguages ?? ml, m = s.get("lang") ?? c?.examplesLanguage ?? "shell", y = d.find((O) => O.value === m)?.value ?? d.at(0)?.value ?? "shell", j = e.requestBody?.content, b = j && c?.transformExamples ? c.transformExamples({
|
|
5232
5232
|
auth: i,
|
|
5233
5233
|
type: "request",
|
|
5234
5234
|
operation: e,
|
|
@@ -5241,7 +5241,7 @@ const yl = [
|
|
|
5241
5241
|
f.contentTypeIndex
|
|
5242
5242
|
), S = v?.examples?.at(
|
|
5243
5243
|
f.exampleIndex
|
|
5244
|
-
), C = S ? S?.value ?? S : v?.schema ? Pe(v?.schema) : void 0,
|
|
5244
|
+
), C = S ? S?.value ?? S : v?.schema ? Pe(v?.schema) : void 0, h = /* @__PURE__ */ l.jsx(
|
|
5245
5245
|
ro,
|
|
5246
5246
|
{
|
|
5247
5247
|
path: e.path,
|
|
@@ -5256,7 +5256,7 @@ const yl = [
|
|
|
5256
5256
|
}
|
|
5257
5257
|
)
|
|
5258
5258
|
}
|
|
5259
|
-
), T = r || e.servers.at(0)?.url || "", x =
|
|
5259
|
+
), T = r || e.servers.at(0)?.url || "", x = qo(() => {
|
|
5260
5260
|
const O = c?.generateCodeSnippet?.({
|
|
5261
5261
|
selectedLang: y,
|
|
5262
5262
|
selectedServer: T,
|
|
@@ -5266,7 +5266,7 @@ const yl = [
|
|
|
5266
5266
|
auth: i
|
|
5267
5267
|
});
|
|
5268
5268
|
if (O) return O;
|
|
5269
|
-
const B =
|
|
5269
|
+
const B = fl({
|
|
5270
5270
|
operation: e,
|
|
5271
5271
|
selectedServer: T,
|
|
5272
5272
|
exampleBody: C ? {
|
|
@@ -5274,7 +5274,7 @@ const yl = [
|
|
|
5274
5274
|
text: JSON.stringify(C, null, 2)
|
|
5275
5275
|
} : { mimeType: v?.mediaType ?? "application/json" }
|
|
5276
5276
|
});
|
|
5277
|
-
return
|
|
5277
|
+
return dl(B, y);
|
|
5278
5278
|
}, [
|
|
5279
5279
|
C,
|
|
5280
5280
|
e,
|
|
@@ -5284,7 +5284,7 @@ const yl = [
|
|
|
5284
5284
|
c,
|
|
5285
5285
|
i,
|
|
5286
5286
|
t
|
|
5287
|
-
]), [k, A] =
|
|
5287
|
+
]), [k, A] = ii({ rootMargin: "200px 0px 200px 0px" }), R = A && (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 && !c?.disablePlayground), L = e.responses.some(
|
|
5288
5288
|
(O) => O.content?.some((B) => (B.examples?.length ?? 0) > 0)
|
|
5289
5289
|
);
|
|
5290
5290
|
return /* @__PURE__ */ l.jsxs(
|
|
@@ -5308,7 +5308,7 @@ const yl = [
|
|
|
5308
5308
|
children: e.method.toUpperCase()
|
|
5309
5309
|
}
|
|
5310
5310
|
),
|
|
5311
|
-
|
|
5311
|
+
h
|
|
5312
5312
|
] }),
|
|
5313
5313
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
5314
5314
|
/* @__PURE__ */ l.jsx(
|
|
@@ -5317,11 +5317,11 @@ const yl = [
|
|
|
5317
5317
|
className: "py-0.5 h-fit max-w-32 truncate bg-background",
|
|
5318
5318
|
value: y,
|
|
5319
5319
|
onChange: (O) => {
|
|
5320
|
-
|
|
5320
|
+
p(() => {
|
|
5321
5321
|
u((B) => (B.set("lang", O.target.value), B));
|
|
5322
5322
|
});
|
|
5323
5323
|
},
|
|
5324
|
-
children:
|
|
5324
|
+
children: d.map((O) => /* @__PURE__ */ l.jsx(
|
|
5325
5325
|
ze,
|
|
5326
5326
|
{
|
|
5327
5327
|
value: O.value,
|
|
@@ -5331,8 +5331,8 @@ const yl = [
|
|
|
5331
5331
|
))
|
|
5332
5332
|
}
|
|
5333
5333
|
),
|
|
5334
|
-
|
|
5335
|
-
|
|
5334
|
+
R && /* @__PURE__ */ l.jsx(
|
|
5335
|
+
ui,
|
|
5336
5336
|
{
|
|
5337
5337
|
servers: e.servers.map((O) => O.url),
|
|
5338
5338
|
operation: e,
|
|
@@ -5352,7 +5352,7 @@ const yl = [
|
|
|
5352
5352
|
) })
|
|
5353
5353
|
] }),
|
|
5354
5354
|
b && S ? /* @__PURE__ */ l.jsx(
|
|
5355
|
-
|
|
5355
|
+
di,
|
|
5356
5356
|
{
|
|
5357
5357
|
content: b,
|
|
5358
5358
|
onExampleChange: (O) => {
|
|
@@ -5364,7 +5364,7 @@ const yl = [
|
|
|
5364
5364
|
shouldLazyHighlight: a
|
|
5365
5365
|
}
|
|
5366
5366
|
) : b && C ? /* @__PURE__ */ l.jsx(
|
|
5367
|
-
|
|
5367
|
+
ci,
|
|
5368
5368
|
{
|
|
5369
5369
|
isOnScreen: A,
|
|
5370
5370
|
shouldLazyHighlight: a,
|
|
@@ -5407,15 +5407,15 @@ const yl = [
|
|
|
5407
5407
|
]
|
|
5408
5408
|
}
|
|
5409
5409
|
);
|
|
5410
|
-
},
|
|
5410
|
+
}, gl = ["path", "query", "header", "cookie"], vl = ({
|
|
5411
5411
|
operationFragment: e,
|
|
5412
5412
|
globalSelectedServer: n,
|
|
5413
5413
|
shouldLazyHighlight: r
|
|
5414
5414
|
}) => {
|
|
5415
|
-
const a =
|
|
5415
|
+
const a = Vo(xl, e), c = bo(
|
|
5416
5416
|
a.parameters ?? [],
|
|
5417
|
-
(
|
|
5418
|
-
), { options: i } = ct(), t = n || a.servers.at(0)?.url, o = a.responses.at(0), [s, u] = ge(o?.statusCode),
|
|
5417
|
+
(d) => d.in
|
|
5418
|
+
), { options: i } = ct(), t = n || a.servers.at(0)?.url, o = a.responses.at(0), [s, u] = ge(o?.statusCode), p = a.extensions?.["x-mcp-server"] !== void 0;
|
|
5419
5419
|
return /* @__PURE__ */ l.jsxs("div", { children: [
|
|
5420
5420
|
a.deprecated && /* @__PURE__ */ l.jsx(Me, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
|
|
5421
5421
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -5436,15 +5436,15 @@ const yl = [
|
|
|
5436
5436
|
children: a.summary
|
|
5437
5437
|
}
|
|
5438
5438
|
),
|
|
5439
|
-
!
|
|
5439
|
+
!p && /* @__PURE__ */ l.jsxs("div", { className: "text-sm flex gap-2 font-mono col-span-full", children: [
|
|
5440
5440
|
/* @__PURE__ */ l.jsx("span", { className: Ma(a.method), children: a.method.toUpperCase() }),
|
|
5441
|
-
/* @__PURE__ */ l.jsxs(
|
|
5441
|
+
/* @__PURE__ */ l.jsxs(mo, { className: "max-w-full truncate flex cursor-pointer", children: [
|
|
5442
5442
|
t && /* @__PURE__ */ l.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: t.replace(/\/$/, "") }),
|
|
5443
5443
|
/* @__PURE__ */ l.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: a.path })
|
|
5444
5444
|
] })
|
|
5445
5445
|
] }),
|
|
5446
|
-
|
|
5447
|
-
|
|
5446
|
+
p ? /* @__PURE__ */ l.jsx("div", { className: "col-span-full", children: /* @__PURE__ */ l.jsx(
|
|
5447
|
+
ri,
|
|
5448
5448
|
{
|
|
5449
5449
|
serverUrl: t,
|
|
5450
5450
|
summary: a.summary ?? void 0,
|
|
@@ -5465,22 +5465,22 @@ const yl = [
|
|
|
5465
5465
|
content: a.description
|
|
5466
5466
|
}
|
|
5467
5467
|
),
|
|
5468
|
-
a.parameters && a.parameters.length > 0 &&
|
|
5469
|
-
(
|
|
5470
|
-
|
|
5468
|
+
a.parameters && a.parameters.length > 0 && gl.flatMap(
|
|
5469
|
+
(d) => c[d]?.length ? /* @__PURE__ */ l.jsx(
|
|
5470
|
+
oi,
|
|
5471
5471
|
{
|
|
5472
5472
|
summary: a.summary ?? void 0,
|
|
5473
5473
|
id: a.slug,
|
|
5474
|
-
parameters: c[
|
|
5475
|
-
group:
|
|
5474
|
+
parameters: c[d],
|
|
5475
|
+
group: d
|
|
5476
5476
|
},
|
|
5477
|
-
|
|
5477
|
+
d
|
|
5478
5478
|
) : []
|
|
5479
5479
|
),
|
|
5480
5480
|
St(a.requestBody?.content?.at(0)?.schema, () => /* @__PURE__ */ l.jsx(Zr, { className: "my-4" })),
|
|
5481
5481
|
St(
|
|
5482
5482
|
a.requestBody?.content?.at(0)?.schema,
|
|
5483
|
-
(
|
|
5483
|
+
(d) => /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
5484
5484
|
/* @__PURE__ */ l.jsxs(
|
|
5485
5485
|
Fe,
|
|
5486
5486
|
{
|
|
@@ -5499,7 +5499,7 @@ const yl = [
|
|
|
5499
5499
|
]
|
|
5500
5500
|
}
|
|
5501
5501
|
),
|
|
5502
|
-
/* @__PURE__ */ l.jsx(Ir, { schema:
|
|
5502
|
+
/* @__PURE__ */ l.jsx(Ir, { schema: d })
|
|
5503
5503
|
] })
|
|
5504
5504
|
),
|
|
5505
5505
|
/* @__PURE__ */ l.jsx(Zr, { className: "my-4" }),
|
|
@@ -5513,7 +5513,7 @@ const yl = [
|
|
|
5513
5513
|
"Responses"
|
|
5514
5514
|
] }),
|
|
5515
5515
|
/* @__PURE__ */ l.jsx(
|
|
5516
|
-
|
|
5516
|
+
ti,
|
|
5517
5517
|
{
|
|
5518
5518
|
responses: a.responses,
|
|
5519
5519
|
selectedResponse: s,
|
|
@@ -5524,8 +5524,8 @@ const yl = [
|
|
|
5524
5524
|
]
|
|
5525
5525
|
}
|
|
5526
5526
|
),
|
|
5527
|
-
St(!i?.disableSidecar && !
|
|
5528
|
-
|
|
5527
|
+
St(!i?.disableSidecar && !p, () => /* @__PURE__ */ l.jsx(
|
|
5528
|
+
yl,
|
|
5529
5529
|
{
|
|
5530
5530
|
selectedResponse: s,
|
|
5531
5531
|
operation: a,
|
|
@@ -5542,7 +5542,7 @@ const yl = [
|
|
|
5542
5542
|
function ya(e, n = 160) {
|
|
5543
5543
|
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, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'") : "";
|
|
5544
5544
|
}
|
|
5545
|
-
const
|
|
5545
|
+
const xl = Ve(
|
|
5546
5546
|
/* GraphQL */
|
|
5547
5547
|
`
|
|
5548
5548
|
fragment OperationsFragment on OperationItem {
|
|
@@ -5614,7 +5614,7 @@ const bl = Ve(
|
|
|
5614
5614
|
}
|
|
5615
5615
|
}
|
|
5616
5616
|
`
|
|
5617
|
-
),
|
|
5617
|
+
), bl = Ve(
|
|
5618
5618
|
/* GraphQL */
|
|
5619
5619
|
`
|
|
5620
5620
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
@@ -5623,7 +5623,7 @@ const bl = Ve(
|
|
|
5623
5623
|
}
|
|
5624
5624
|
}
|
|
5625
5625
|
`
|
|
5626
|
-
),
|
|
5626
|
+
), jl = Ve(
|
|
5627
5627
|
/* GraphQL */
|
|
5628
5628
|
`
|
|
5629
5629
|
query OperationsForTag(
|
|
@@ -5663,25 +5663,22 @@ const bl = Ve(
|
|
|
5663
5663
|
}
|
|
5664
5664
|
}
|
|
5665
5665
|
`
|
|
5666
|
-
),
|
|
5667
|
-
const n = e.lastIndexOf(".");
|
|
5668
|
-
return n !== -1 ? e.slice(n) : "";
|
|
5669
|
-
}, nc = ({
|
|
5666
|
+
), $l = 30, tc = ({
|
|
5670
5667
|
tag: e,
|
|
5671
5668
|
untagged: n
|
|
5672
5669
|
}) => {
|
|
5673
|
-
const {
|
|
5674
|
-
input:
|
|
5675
|
-
type:
|
|
5676
|
-
tag: e ??
|
|
5670
|
+
const { input: r, type: a, versions: c, version: i, options: t } = ct(), { tag: o } = Za(), s = Sr(jl, {
|
|
5671
|
+
input: r,
|
|
5672
|
+
type: a,
|
|
5673
|
+
tag: e ?? o,
|
|
5677
5674
|
untagged: n
|
|
5678
|
-
}),
|
|
5675
|
+
}), u = ga(s), {
|
|
5679
5676
|
data: { schema: p }
|
|
5680
|
-
} =
|
|
5677
|
+
} = u, { selectedServer: d } = ja(
|
|
5681
5678
|
p.servers
|
|
5682
|
-
),
|
|
5679
|
+
), m = p.title, y = p.summary, j = p.description, b = eo(), f = Sr(bl, { input: r, type: a });
|
|
5683
5680
|
if (Ja({
|
|
5684
|
-
...
|
|
5681
|
+
...f,
|
|
5685
5682
|
enabled: typeof window < "u",
|
|
5686
5683
|
notifyOnChangeProps: []
|
|
5687
5684
|
}), po(), !p.tag)
|
|
@@ -5689,16 +5686,16 @@ const bl = Ve(
|
|
|
5689
5686
|
/* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground font-medium", children: "No operations found" }),
|
|
5690
5687
|
/* @__PURE__ */ l.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "This API doesn't have any operations defined yet." })
|
|
5691
5688
|
] });
|
|
5692
|
-
const { operations:
|
|
5693
|
-
prev:
|
|
5694
|
-
to: `../${
|
|
5695
|
-
label:
|
|
5689
|
+
const { operations: g, next: v, prev: S, description: C } = p.tag, h = g.length > $l, T = C ? ya(C) : y || (j ? ya(j) : void 0), x = Object.entries(c).length > 1, k = t?.showVersionSelect === "always" || x && t?.showVersionSelect !== "hide", A = {
|
|
5690
|
+
prev: S ? {
|
|
5691
|
+
to: `../${S.slug}`,
|
|
5692
|
+
label: S.extensions?.["x-displayName"] ?? S.name
|
|
5696
5693
|
} : void 0,
|
|
5697
|
-
next:
|
|
5698
|
-
to: `../${
|
|
5699
|
-
label:
|
|
5694
|
+
next: v ? {
|
|
5695
|
+
to: `../${v.slug ?? no}`,
|
|
5696
|
+
label: v.extensions?.["x-displayName"] ?? v.name ?? "Other endpoints"
|
|
5700
5697
|
} : void 0
|
|
5701
|
-
},
|
|
5698
|
+
}, R = p.tag.extensions?.["x-displayName"] ?? p.tag.name, L = [R, m].filter(Boolean).join(" - "), O = i != null ? c[i] : void 0, B = typeof r == "string" ? a === "url" ? r : O?.downloadUrl : void 0;
|
|
5702
5699
|
return /* @__PURE__ */ l.jsxs(
|
|
5703
5700
|
"div",
|
|
5704
5701
|
{
|
|
@@ -5706,21 +5703,21 @@ const bl = Ve(
|
|
|
5706
5703
|
"data-pagefind-filter": "section:openapi",
|
|
5707
5704
|
"data-pagefind-meta": "section:openapi",
|
|
5708
5705
|
children: [
|
|
5709
|
-
/* @__PURE__ */ l.jsx(Tr, { name: "category", children:
|
|
5706
|
+
/* @__PURE__ */ l.jsx(Tr, { name: "category", children: m }),
|
|
5710
5707
|
/* @__PURE__ */ l.jsxs(Da, { children: [
|
|
5711
|
-
|
|
5712
|
-
|
|
5708
|
+
L && /* @__PURE__ */ l.jsx("title", { children: L }),
|
|
5709
|
+
T && /* @__PURE__ */ l.jsx("meta", { name: "description", content: T })
|
|
5713
5710
|
] }),
|
|
5714
5711
|
/* @__PURE__ */ l.jsxs("div", { className: "mb-8", children: [
|
|
5715
5712
|
/* @__PURE__ */ l.jsxs(
|
|
5716
|
-
|
|
5713
|
+
Rr,
|
|
5717
5714
|
{
|
|
5718
5715
|
className: "w-full",
|
|
5719
|
-
defaultOpen:
|
|
5716
|
+
defaultOpen: t?.expandApiInformation,
|
|
5720
5717
|
children: [
|
|
5721
5718
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4 sm:flex-row justify-around items-start sm:items-end", children: [
|
|
5722
5719
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
5723
|
-
/* @__PURE__ */ l.jsx(co, { children:
|
|
5720
|
+
/* @__PURE__ */ l.jsx(co, { children: m }),
|
|
5724
5721
|
/* @__PURE__ */ l.jsxs(
|
|
5725
5722
|
Fe,
|
|
5726
5723
|
{
|
|
@@ -5729,38 +5726,38 @@ const bl = Ve(
|
|
|
5729
5726
|
registerNavigationAnchor: !0,
|
|
5730
5727
|
className: "mb-0",
|
|
5731
5728
|
children: [
|
|
5732
|
-
|
|
5733
|
-
|
|
5729
|
+
R,
|
|
5730
|
+
k && /* @__PURE__ */ l.jsxs("span", { className: "text-xl text-muted-foreground ms-1.5", children: [
|
|
5734
5731
|
" ",
|
|
5735
5732
|
"(",
|
|
5736
|
-
|
|
5733
|
+
p.version,
|
|
5737
5734
|
")"
|
|
5738
5735
|
] })
|
|
5739
5736
|
]
|
|
5740
5737
|
}
|
|
5741
5738
|
),
|
|
5742
|
-
/* @__PURE__ */ l.jsx(
|
|
5739
|
+
/* @__PURE__ */ l.jsx(Zo, {})
|
|
5743
5740
|
] }),
|
|
5744
5741
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
|
|
5745
5742
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
5746
|
-
|
|
5743
|
+
k && /* @__PURE__ */ l.jsxs(
|
|
5747
5744
|
ao,
|
|
5748
5745
|
{
|
|
5749
5746
|
onValueChange: (_) => (
|
|
5750
5747
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
5751
|
-
|
|
5748
|
+
b(c[_].path)
|
|
5752
5749
|
),
|
|
5753
|
-
defaultValue:
|
|
5754
|
-
disabled: !
|
|
5750
|
+
defaultValue: i,
|
|
5751
|
+
disabled: !x,
|
|
5755
5752
|
children: [
|
|
5756
5753
|
/* @__PURE__ */ l.jsx(oo, { className: "w-[180px]", size: "sm", children: /* @__PURE__ */ l.jsx(io, { placeholder: "Select version" }) }),
|
|
5757
|
-
/* @__PURE__ */ l.jsx(so, { children: Object.entries(
|
|
5754
|
+
/* @__PURE__ */ l.jsx(so, { children: Object.entries(c).map(([_, { label: G }]) => /* @__PURE__ */ l.jsx(lo, { value: _, children: G }, _)) })
|
|
5758
5755
|
]
|
|
5759
5756
|
}
|
|
5760
5757
|
),
|
|
5761
|
-
|
|
5758
|
+
t?.schemaDownload?.enabled && B && /* @__PURE__ */ l.jsx(Qo, { downloadUrl: B })
|
|
5762
5759
|
] }),
|
|
5763
|
-
p.description && /* @__PURE__ */ l.jsxs(
|
|
5760
|
+
p.description && /* @__PURE__ */ l.jsxs(Er, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
|
|
5764
5761
|
/* @__PURE__ */ l.jsx("span", { children: "API information" }),
|
|
5765
5762
|
/* @__PURE__ */ l.jsx(
|
|
5766
5763
|
lt,
|
|
@@ -5789,35 +5786,35 @@ const bl = Ve(
|
|
|
5789
5786
|
]
|
|
5790
5787
|
}
|
|
5791
5788
|
),
|
|
5792
|
-
|
|
5789
|
+
C && /* @__PURE__ */ l.jsx(
|
|
5793
5790
|
He,
|
|
5794
5791
|
{
|
|
5795
5792
|
className: "my-4 max-w-full prose-img:max-w-prose",
|
|
5796
|
-
content:
|
|
5793
|
+
content: C
|
|
5797
5794
|
}
|
|
5798
5795
|
)
|
|
5799
5796
|
] }),
|
|
5800
5797
|
/* @__PURE__ */ l.jsx("hr", {}),
|
|
5801
5798
|
/* @__PURE__ */ l.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
|
|
5802
|
-
|
|
5799
|
+
g.map((_) => /* @__PURE__ */ l.jsxs("div", { children: [
|
|
5803
5800
|
/* @__PURE__ */ l.jsx(
|
|
5804
|
-
|
|
5801
|
+
vl,
|
|
5805
5802
|
{
|
|
5806
5803
|
operationFragment: _,
|
|
5807
|
-
globalSelectedServer:
|
|
5808
|
-
shouldLazyHighlight:
|
|
5804
|
+
globalSelectedServer: d,
|
|
5805
|
+
shouldLazyHighlight: h
|
|
5809
5806
|
}
|
|
5810
5807
|
),
|
|
5811
5808
|
/* @__PURE__ */ l.jsx("hr", { className: "my-10" })
|
|
5812
5809
|
] }, _.slug)),
|
|
5813
|
-
/* @__PURE__ */ l.jsx(
|
|
5810
|
+
/* @__PURE__ */ l.jsx(wo, { className: "mb-4", ...A })
|
|
5814
5811
|
] })
|
|
5815
5812
|
]
|
|
5816
5813
|
}
|
|
5817
5814
|
);
|
|
5818
5815
|
};
|
|
5819
5816
|
export {
|
|
5820
|
-
|
|
5821
|
-
|
|
5817
|
+
tc as OperationList,
|
|
5818
|
+
xl as OperationsFragment
|
|
5822
5819
|
};
|
|
5823
|
-
//# sourceMappingURL=OperationList-
|
|
5820
|
+
//# sourceMappingURL=OperationList-BOu9Qd_k.js.map
|