zudoku 0.46.1 → 0.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/validators/InputSidebarSchema.d.ts +3 -0
- package/dist/config/validators/InputSidebarSchema.js +1 -0
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +12 -12
- package/dist/config/validators/validate.js +3 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +0 -5
- package/dist/lib/authentication/AuthenticationPlugin.js +0 -12
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +2 -3
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +110 -15
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +3 -3
- package/dist/lib/plugins/api-keys/index.js +14 -14
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +11 -91
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +22 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js +25 -25
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -8
- package/dist/lib/plugins/openapi/playground/Playground.js +70 -65
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +4 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +29 -20
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
- package/dist/lib/shiki.d.ts +8 -12
- package/dist/lib/shiki.js +11 -13
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/CodeBlock.js +1 -1
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +3 -1
- package/dist/lib/ui/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/util/humanFileSize.d.ts +6 -0
- package/dist/lib/util/humanFileSize.js +14 -0
- package/dist/lib/util/humanFileSize.js.map +1 -0
- package/dist/lib/util/humanFileSize.test.d.ts +1 -0
- package/dist/lib/util/humanFileSize.test.js +22 -0
- package/dist/lib/util/humanFileSize.test.js.map +1 -0
- package/dist/vite/build.js +1 -4
- package/dist/vite/build.js.map +1 -1
- package/lib/{Callout-BkgOUkoZ.js → Callout-CoVxYafP.js} +2 -2
- package/lib/{Callout-BkgOUkoZ.js.map → Callout-CoVxYafP.js.map} +1 -1
- package/lib/{Dialog-Du6WMcIA.js → Dialog-BxpuVLh9.js} +25 -25
- package/lib/Dialog-BxpuVLh9.js.map +1 -0
- package/lib/{Markdown-BRAyzyUJ.js → Markdown-D81l28Ib.js} +310 -306
- package/lib/{Markdown-BRAyzyUJ.js.map → Markdown-D81l28Ib.js.map} +1 -1
- package/lib/{MdxPage-B3v1BSKr.js → MdxPage-S_CxlNmX.js} +5 -5
- package/lib/{MdxPage-B3v1BSKr.js.map → MdxPage-S_CxlNmX.js.map} +1 -1
- package/lib/{OasProvider-5jrFuhVk.js → OasProvider-D5rt6WMb.js} +3 -3
- package/lib/{OasProvider-5jrFuhVk.js.map → OasProvider-D5rt6WMb.js.map} +1 -1
- package/lib/{OperationList-BmoMLQPO.js → OperationList-CNhg654C.js} +1139 -1131
- package/lib/OperationList-CNhg654C.js.map +1 -0
- package/lib/{Pagination-Cr0fWZS3.js → Pagination-CCxhL836.js} +2 -2
- package/lib/{Pagination-Cr0fWZS3.js.map → Pagination-CCxhL836.js.map} +1 -1
- package/lib/{RouteGuard-PrSVLbSr.js → RouteGuard-CZ_uLv3g.js} +6 -6
- package/lib/{RouteGuard-PrSVLbSr.js.map → RouteGuard-CZ_uLv3g.js.map} +1 -1
- package/lib/{SchemaList-B4riYLoP.js → SchemaList-BvzCrTYg.js} +6 -6
- package/lib/{SchemaList-B4riYLoP.js.map → SchemaList-BvzCrTYg.js.map} +1 -1
- package/lib/{SchemaView-CPZ6RgsF.js → SchemaView-Br1RupCp.js} +3 -3
- package/lib/{SchemaView-CPZ6RgsF.js.map → SchemaView-Br1RupCp.js.map} +1 -1
- package/lib/{SignUp-CWaiH0tY.js → SignUp-B-1Pvc-8.js} +3 -3
- package/lib/{SignUp-CWaiH0tY.js.map → SignUp-B-1Pvc-8.js.map} +1 -1
- package/lib/{Slot-Bo6K4tnb.js → Slot-T8NJUkm4.js} +11 -11
- package/lib/{Slot-Bo6K4tnb.js.map → Slot-T8NJUkm4.js.map} +1 -1
- package/lib/{SyntaxHighlight-DedRjJNr.js → SyntaxHighlight-Cz6Me7-F.js} +4474 -3323
- package/lib/SyntaxHighlight-Cz6Me7-F.js.map +1 -0
- package/lib/{Toc-lL3fzNkl.js → Toc-PA-j0gEu.js} +2 -2
- package/lib/{Toc-lL3fzNkl.js.map → Toc-PA-j0gEu.js.map} +1 -1
- package/lib/{chunk-BAXFHI7N-C9WnHsLV.js → chunk-DQRVZFIR-BblmKnHy.js} +697 -697
- package/lib/chunk-DQRVZFIR-BblmKnHy.js.map +1 -0
- package/lib/{circular-oB4auIIg.js → circular-5FeDWJOn.js} +1812 -1807
- package/lib/circular-5FeDWJOn.js.map +1 -0
- package/lib/{createServer-DCB82j2t.js → createServer-BC2RZgmW.js} +3648 -3493
- package/lib/createServer-BC2RZgmW.js.map +1 -0
- package/lib/{hook-DawSLaZr.js → hook-k7PfUIsj.js} +10 -10
- package/lib/{hook-DawSLaZr.js.map → hook-k7PfUIsj.js.map} +1 -1
- package/lib/{index-BXYvD5-7.js → index-CJZthJSj.js} +1053 -1095
- package/lib/index-CJZthJSj.js.map +1 -0
- package/lib/index.esm-Cp4wkyud.js +1236 -0
- package/lib/index.esm-Cp4wkyud.js.map +1 -0
- package/lib/{mutation-oxMvODNQ.js → mutation-BSeQ8pEK.js} +2 -2
- package/lib/{mutation-oxMvODNQ.js.map → mutation-BSeQ8pEK.js.map} +1 -1
- package/lib/react-nprogress.esm-C2MPXjiJ.js +389 -0
- package/lib/react-nprogress.esm-C2MPXjiJ.js.map +1 -0
- package/lib/ui/CodeBlock.js +17 -16
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Command.js +1 -1
- package/lib/ui/Dialog.js +25 -25
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/{useExposedProps-DG8J6ewJ.js → useExposedProps-BZQkZneR.js} +2 -2
- package/lib/{useExposedProps-DG8J6ewJ.js.map → useExposedProps-BZQkZneR.js.map} +1 -1
- package/lib/{useMutation-C_j3dA_L.js → useMutation-CZSmsIGW.js} +3 -3
- package/lib/{useMutation-C_j3dA_L.js.map → useMutation-CZSmsIGW.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +57 -66
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1698 -2082
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +11 -11
- package/lib/zudoku.plugin-api-catalog.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +473 -4970
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +5 -5
- package/package.json +33 -34
- package/src/lib/authentication/AuthenticationPlugin.tsx +0 -14
- package/src/lib/components/navigation/SidebarItem.tsx +2 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +193 -48
- package/src/lib/plugins/api-keys/index.tsx +25 -18
- package/src/lib/plugins/openapi/Sidecar.tsx +11 -97
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +46 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +4 -1
- package/src/lib/plugins/openapi/playground/Headers.tsx +110 -106
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +13 -11
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +127 -211
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +2 -1
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +74 -39
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +4 -1
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
- package/src/lib/shiki.ts +21 -22
- package/src/lib/ui/CodeBlock.tsx +1 -0
- package/src/lib/ui/Dialog.tsx +11 -7
- package/src/lib/util/humanFileSize.test.ts +24 -0
- package/src/lib/util/humanFileSize.ts +16 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -19
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
- package/lib/Dialog-Du6WMcIA.js.map +0 -1
- package/lib/OperationList-BmoMLQPO.js.map +0 -1
- package/lib/SyntaxHighlight-DedRjJNr.js.map +0 -1
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +0 -1
- package/lib/circular-oB4auIIg.js.map +0 -1
- package/lib/createServer-DCB82j2t.js.map +0 -1
- package/lib/index-BXYvD5-7.js.map +0 -1
- package/lib/index.esm-DSfX_eMP.js +0 -1216
- package/lib/index.esm-DSfX_eMP.js.map +0 -1
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -70
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { j as b } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { d as gr, u as Ia,
|
|
2
|
+
import { d as gr, u as Ia, l as Ua, P as La } from "./hook-k7PfUIsj.js";
|
|
3
3
|
import { H as Fa } from "./index.esm-BFcSKCe-.js";
|
|
4
4
|
import { ChevronsUpDownIcon as Zn, CheckIcon as _a, CopyIcon as Ba, MinusIcon as Ha, PlusIcon as Ma, UnfoldVerticalIcon as za, FoldVerticalIcon as Wa, ChevronsDownUpIcon as Ja } from "lucide-react";
|
|
5
|
-
import { b as Va, c as Ga, a as Da } from "./chunk-
|
|
6
|
-
import { u as Ze, a as De, d as Be, e as vr, f as ea, C as ta, c as ra, b as pr, P as Qa, m as na, h as Ka, S as aa, i as oa, j as ia, k as sa, l as la, U as Ya } from "./index-
|
|
5
|
+
import { b as Va, c as Ga, a as Da } from "./chunk-DQRVZFIR-BblmKnHy.js";
|
|
6
|
+
import { u as Ze, a as De, d as Be, e as vr, f as ea, C as ta, c as ra, b as pr, P as Qa, m as na, h as Ka, S as aa, i as oa, j as ia, k as sa, l as la, U as Ya } from "./index-CJZthJSj.js";
|
|
7
7
|
import { C as Xa } from "./CategoryHeading-Cu2RwgjC.js";
|
|
8
|
-
import { I as Za, S as ca, M as Qe, H as Le, P as dr } from "./Markdown-
|
|
9
|
-
import { P as eo } from "./Pagination-
|
|
8
|
+
import { I as Za, S as ca, M as Qe, H as Le, P as dr } from "./Markdown-D81l28Ib.js";
|
|
9
|
+
import { P as eo } from "./Pagination-CCxhL836.js";
|
|
10
10
|
import { c as pe } from "./cn-wvCW-ho6.js";
|
|
11
11
|
import { useTransition as ua, useState as ge, useRef as fa, useEffect as br, useLayoutEffect as to, useMemo as pa } from "react";
|
|
12
12
|
import { Button as da } from "./ui/Button.js";
|
|
13
13
|
import { VisuallyHidden as hr } from "@radix-ui/react-visually-hidden";
|
|
14
14
|
import { c as ro } from "./index-DI5SPFK9.js";
|
|
15
|
-
import { i as no, P as ao, E as Ur, a as oo, S as xr, b as io, g as so } from "./SchemaView-
|
|
15
|
+
import { i as no, P as ao, E as Ur, a as oo, S as xr, b as io, g as so } from "./SchemaView-Br1RupCp.js";
|
|
16
16
|
import { Card as lo } from "./ui/Card.js";
|
|
17
17
|
import * as pt from "@radix-ui/react-collapsible";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { S as ha } from "./SyntaxHighlight-DedRjJNr.js";
|
|
18
|
+
import { useZudoku as co } from "./zudoku.hooks.js";
|
|
19
|
+
import { S as ha } from "./SyntaxHighlight-Cz6Me7-F.js";
|
|
21
20
|
import { B as Lr } from "./Button-BE9IVkWV.js";
|
|
21
|
+
import { useAuth as uo, Markdown as fo } from "./zudoku.components.js";
|
|
22
22
|
import * as je from "@radix-ui/react-tabs";
|
|
23
|
+
import { g as po, c as Ke, a as ho } from "./invariant-DAFpPywt.js";
|
|
23
24
|
function yo(e, n) {
|
|
24
25
|
return n;
|
|
25
26
|
}
|
|
@@ -210,7 +211,319 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
210
211
|
},
|
|
211
212
|
`${c.name}-${c.in}`
|
|
212
213
|
)) }) })
|
|
213
|
-
] })
|
|
214
|
+
] }), jo = ({
|
|
215
|
+
rootMargin: e = "0px",
|
|
216
|
+
threshold: n,
|
|
217
|
+
root: t
|
|
218
|
+
} = {}) => {
|
|
219
|
+
const [a, c] = ge(!1), s = fa(null);
|
|
220
|
+
return br(() => {
|
|
221
|
+
const r = new IntersectionObserver(
|
|
222
|
+
([i]) => {
|
|
223
|
+
i && c(i.isIntersecting);
|
|
224
|
+
},
|
|
225
|
+
{ rootMargin: e, threshold: n, root: t }
|
|
226
|
+
), o = s.current;
|
|
227
|
+
if (o)
|
|
228
|
+
return r.observe(o), () => r.unobserve(o);
|
|
229
|
+
}, [t, e, n]), [s, a];
|
|
230
|
+
}, wo = typeof window < "u" ? to : br, ya = ({
|
|
231
|
+
children: e,
|
|
232
|
+
maxHeight: n = 250
|
|
233
|
+
}) => {
|
|
234
|
+
const t = fa(null), [a, c] = ge(!1), [s, r] = ge(!1);
|
|
235
|
+
return wo(() => {
|
|
236
|
+
const o = t.current;
|
|
237
|
+
if (!o) return;
|
|
238
|
+
c(o.scrollHeight > n);
|
|
239
|
+
const i = new ResizeObserver(() => {
|
|
240
|
+
c(o.scrollHeight > n);
|
|
241
|
+
});
|
|
242
|
+
return i.observe(o), () => i.disconnect();
|
|
243
|
+
}, [n]), /* @__PURE__ */ b.jsxs(
|
|
244
|
+
ta,
|
|
245
|
+
{
|
|
246
|
+
className: "group",
|
|
247
|
+
open: s,
|
|
248
|
+
onOpenChange: r,
|
|
249
|
+
style: { "--max-height": `${n}px` },
|
|
250
|
+
children: [
|
|
251
|
+
/* @__PURE__ */ b.jsxs(
|
|
252
|
+
ra,
|
|
253
|
+
{
|
|
254
|
+
forceMount: !0,
|
|
255
|
+
className: pe(
|
|
256
|
+
"relative overflow-hidden group",
|
|
257
|
+
!s && a && "max-h-(--max-height)"
|
|
258
|
+
),
|
|
259
|
+
children: [
|
|
260
|
+
!s && a && /* @__PURE__ */ b.jsx("div", { className: " absolute inset-0 bg-gradient-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }),
|
|
261
|
+
/* @__PURE__ */ b.jsx("div", { ref: t, children: e }),
|
|
262
|
+
!s && a && /* @__PURE__ */ b.jsx(
|
|
263
|
+
pr,
|
|
264
|
+
{
|
|
265
|
+
className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
|
|
266
|
+
asChild: !0,
|
|
267
|
+
children: /* @__PURE__ */ b.jsx("div", { children: /* @__PURE__ */ b.jsxs(Lr, { variant: "outline", className: "hidden group-hover:flex", children: [
|
|
268
|
+
/* @__PURE__ */ b.jsx(za, { size: 14, className: "me-1.5" }),
|
|
269
|
+
"Click to expand"
|
|
270
|
+
] }) })
|
|
271
|
+
}
|
|
272
|
+
)
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
),
|
|
276
|
+
a && /* @__PURE__ */ b.jsx(
|
|
277
|
+
"div",
|
|
278
|
+
{
|
|
279
|
+
className: pe(
|
|
280
|
+
"flex justify-center w-full py-2 bg-muted/50",
|
|
281
|
+
!s && "hidden"
|
|
282
|
+
),
|
|
283
|
+
children: /* @__PURE__ */ b.jsx(pr, { asChild: !0, children: /* @__PURE__ */ b.jsxs(Lr, { variant: "outline", size: "sm", children: [
|
|
284
|
+
"Collapse",
|
|
285
|
+
/* @__PURE__ */ b.jsx(Wa, { size: 14, className: "ms-1.5" })
|
|
286
|
+
] }) })
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
}, So = ({
|
|
293
|
+
server: e,
|
|
294
|
+
servers: n,
|
|
295
|
+
operation: t,
|
|
296
|
+
examples: a
|
|
297
|
+
}) => {
|
|
298
|
+
const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } = uo(), l = t.parameters?.filter((f) => f.in === "header").sort((f, h) => f.required && !h.required ? -1 : 1).map((f) => ({
|
|
299
|
+
name: f.name,
|
|
300
|
+
defaultValue: f.schema?.default ?? f.examples?.find((h) => h.value)?.value ?? "",
|
|
301
|
+
defaultActive: f.required ?? !1,
|
|
302
|
+
isRequired: f.required ?? !1,
|
|
303
|
+
enum: f.schema?.type == "array" ? f.schema?.items?.enum : f.schema?.enum,
|
|
304
|
+
type: f.schema?.type ?? "string"
|
|
305
|
+
})), d = t.parameters?.filter((f) => f.in === "query").sort((f, h) => f.required && !h.required ? -1 : 1).map((f) => ({
|
|
306
|
+
name: f.name,
|
|
307
|
+
defaultActive: f.required ?? !1,
|
|
308
|
+
isRequired: f.required ?? !1,
|
|
309
|
+
enum: f.schema?.type == "array" ? f.schema?.items?.enum : f.schema?.enum,
|
|
310
|
+
type: f.schema?.type ?? "string",
|
|
311
|
+
defaultValue: f.schema?.default
|
|
312
|
+
})), y = t.parameters?.filter((f) => f.in === "path").map((f) => ({
|
|
313
|
+
name: f.name,
|
|
314
|
+
defaultValue: f.schema?.default
|
|
315
|
+
}));
|
|
316
|
+
return /* @__PURE__ */ b.jsx(
|
|
317
|
+
Qa,
|
|
318
|
+
{
|
|
319
|
+
server: e,
|
|
320
|
+
servers: n,
|
|
321
|
+
method: t.method,
|
|
322
|
+
url: t.path,
|
|
323
|
+
headers: l,
|
|
324
|
+
queryParams: d,
|
|
325
|
+
pathParams: y,
|
|
326
|
+
examples: a,
|
|
327
|
+
requiresLogin: c && !i && !o,
|
|
328
|
+
onLogin: () => s(),
|
|
329
|
+
onSignUp: () => r()
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
}, $r = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
|
|
333
|
+
"div",
|
|
334
|
+
{
|
|
335
|
+
className: pe("rounded-xl overflow-hidden border border-border", n),
|
|
336
|
+
children: e
|
|
337
|
+
}
|
|
338
|
+
), jr = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
|
|
339
|
+
"div",
|
|
340
|
+
{
|
|
341
|
+
className: pe(
|
|
342
|
+
"border-b bg-muted dark:bg-transparent text-card-foreground p-3 py-2.5",
|
|
343
|
+
n
|
|
344
|
+
),
|
|
345
|
+
children: e
|
|
346
|
+
}
|
|
347
|
+
), ma = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx("div", { className: pe("bg-card overflow-auto p-2", n), children: e }), ga = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx("div", { className: pe("border-t bg-muted dark:bg-transparent p-3", n), children: e }), $e = (e, n) => {
|
|
348
|
+
if (!e || io(e))
|
|
349
|
+
return null;
|
|
350
|
+
if (e.example !== void 0)
|
|
351
|
+
return e.example;
|
|
352
|
+
if (e.examples && typeof e.examples == "object" && "default" in e.examples) {
|
|
353
|
+
const t = e.examples.default;
|
|
354
|
+
if (t !== null)
|
|
355
|
+
return typeof t == "object" && "value" in t ? t.value : t;
|
|
356
|
+
}
|
|
357
|
+
if (e.const !== void 0)
|
|
358
|
+
return e.const;
|
|
359
|
+
if (e.type === "object" && e.properties) {
|
|
360
|
+
const t = {};
|
|
361
|
+
for (const [a, c] of Object.entries(e.properties))
|
|
362
|
+
typeof c == "object" && (t[a] = $e(c, a));
|
|
363
|
+
return t;
|
|
364
|
+
}
|
|
365
|
+
if (e.type === "array")
|
|
366
|
+
return Array.isArray(e.items) ? e.items.map(
|
|
367
|
+
(t) => $e(t)
|
|
368
|
+
) : e.items ? [$e(e.items)] : [];
|
|
369
|
+
if (e.format !== void 0)
|
|
370
|
+
switch (e.format) {
|
|
371
|
+
case "date-time":
|
|
372
|
+
return "2024-08-25T15:00:00Z";
|
|
373
|
+
case "date":
|
|
374
|
+
return "2024-08-25";
|
|
375
|
+
case "time":
|
|
376
|
+
return "15:00:00";
|
|
377
|
+
case "email":
|
|
378
|
+
return "test@example.com";
|
|
379
|
+
case "uri":
|
|
380
|
+
return "https://www.example.com/path/to/resource";
|
|
381
|
+
case "uri-reference":
|
|
382
|
+
return "/path/to/resource";
|
|
383
|
+
case "uuid":
|
|
384
|
+
return "00000000-0000-0000-0000-000000000000";
|
|
385
|
+
}
|
|
386
|
+
if (e.enum)
|
|
387
|
+
return e.enum[0];
|
|
388
|
+
if (e.oneOf) {
|
|
389
|
+
const t = Math.floor(Math.random() * e.oneOf.length);
|
|
390
|
+
return $e(e.oneOf[t]);
|
|
391
|
+
}
|
|
392
|
+
if (e.anyOf) {
|
|
393
|
+
const t = Math.floor(Math.random() * e.anyOf.length);
|
|
394
|
+
return $e(e.anyOf[t]);
|
|
395
|
+
}
|
|
396
|
+
if (e.allOf)
|
|
397
|
+
return e.allOf.reduce((t, a) => ({ ...t, ...$e(a) }), {});
|
|
398
|
+
switch (e.type) {
|
|
399
|
+
case "string":
|
|
400
|
+
return n || "string";
|
|
401
|
+
case "number":
|
|
402
|
+
case "integer":
|
|
403
|
+
return 0;
|
|
404
|
+
case "boolean":
|
|
405
|
+
return !0;
|
|
406
|
+
case "null":
|
|
407
|
+
return null;
|
|
408
|
+
case "object":
|
|
409
|
+
return {};
|
|
410
|
+
case void 0:
|
|
411
|
+
default:
|
|
412
|
+
return {};
|
|
413
|
+
}
|
|
414
|
+
}, Oo = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), To = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
|
|
415
|
+
"text/html": "html",
|
|
416
|
+
"application/x-ndjson": "json",
|
|
417
|
+
"application/json": "json",
|
|
418
|
+
"application/xml": "xml",
|
|
419
|
+
"application/x-yaml": "yaml",
|
|
420
|
+
"text/csv": "csv",
|
|
421
|
+
"application/javascript": "javascript",
|
|
422
|
+
"application/graphql": "graphql"
|
|
423
|
+
}[e] ?? "plain" : "plain", va = ({
|
|
424
|
+
content: e,
|
|
425
|
+
description: n,
|
|
426
|
+
onExampleChange: t
|
|
427
|
+
}) => {
|
|
428
|
+
const [a, c] = ge(0), [s, r] = ge(0), o = Array.isArray(e) && e.length === 1 ? e[0] : e[a], i = o?.examples ?? [], l = i[s], d = pa(() => {
|
|
429
|
+
if (l)
|
|
430
|
+
return "value" in l ? l.value : l;
|
|
431
|
+
if (o?.schema)
|
|
432
|
+
return $e(o.schema);
|
|
433
|
+
}, [l, o?.schema]);
|
|
434
|
+
br(() => {
|
|
435
|
+
d && t?.(d);
|
|
436
|
+
}, [d, t]);
|
|
437
|
+
const y = Oo(d), f = To(o?.mediaType);
|
|
438
|
+
return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
439
|
+
/* @__PURE__ */ b.jsxs(ma, { className: "p-0", children: [
|
|
440
|
+
l?.externalValue ? /* @__PURE__ */ b.jsx("div", { className: "p-2", children: /* @__PURE__ */ b.jsx(
|
|
441
|
+
"a",
|
|
442
|
+
{
|
|
443
|
+
href: l.externalValue,
|
|
444
|
+
target: "_blank",
|
|
445
|
+
rel: "noopener noreferrer",
|
|
446
|
+
className: "text-xs text-primary hover:underline",
|
|
447
|
+
children: "View External Example →"
|
|
448
|
+
}
|
|
449
|
+
) }) : /* @__PURE__ */ b.jsx(ya, { children: /* @__PURE__ */ b.jsx(
|
|
450
|
+
ha,
|
|
451
|
+
{
|
|
452
|
+
language: f,
|
|
453
|
+
noBackground: !0,
|
|
454
|
+
className: "[--scrollbar-color:gray] rounded-none text-xs max-h-[500px] p-2",
|
|
455
|
+
code: y
|
|
456
|
+
}
|
|
457
|
+
) }),
|
|
458
|
+
l?.description && /* @__PURE__ */ b.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: l.description })
|
|
459
|
+
] }),
|
|
460
|
+
/* @__PURE__ */ b.jsxs(ga, { className: "text-xs p-0 divide-y divide-border", children: [
|
|
461
|
+
n && /* @__PURE__ */ b.jsx("div", { className: "text-muted-foreground text-xs px-3 py-2", children: n }),
|
|
462
|
+
(i.length !== 0 || e.length !== 0) && /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0 px-3 py-2", children: [
|
|
463
|
+
/* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-2 min-w-0", children: e.length > 1 ? /* @__PURE__ */ b.jsx(
|
|
464
|
+
Ye,
|
|
465
|
+
{
|
|
466
|
+
className: "max-w-[200px]",
|
|
467
|
+
value: a.toString(),
|
|
468
|
+
onChange: (h) => c(Number(h.target.value)),
|
|
469
|
+
options: e.map((h, x) => ({
|
|
470
|
+
value: x.toString(),
|
|
471
|
+
label: h.mediaType
|
|
472
|
+
}))
|
|
473
|
+
}
|
|
474
|
+
) : /* @__PURE__ */ b.jsx("span", { className: "font-mono text-[11px]", children: e[0]?.mediaType }) }),
|
|
475
|
+
i.length > 1 && /* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ b.jsx(
|
|
476
|
+
Ye,
|
|
477
|
+
{
|
|
478
|
+
className: "max-w-[180px]",
|
|
479
|
+
value: s.toString(),
|
|
480
|
+
onChange: (h) => r(Number(h.target.value)),
|
|
481
|
+
options: i.map((h, x) => ({
|
|
482
|
+
value: x.toString(),
|
|
483
|
+
label: h.summary || h.name || h.description || `Example ${x + 1}`
|
|
484
|
+
}))
|
|
485
|
+
}
|
|
486
|
+
) })
|
|
487
|
+
] })
|
|
488
|
+
] })
|
|
489
|
+
] });
|
|
490
|
+
}, Po = ({
|
|
491
|
+
content: e,
|
|
492
|
+
onExampleChange: n
|
|
493
|
+
}) => e.length === 0 ? null : /* @__PURE__ */ b.jsxs($r, { children: [
|
|
494
|
+
/* @__PURE__ */ b.jsx(jr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
495
|
+
/* @__PURE__ */ b.jsx(va, { content: e, onExampleChange: n })
|
|
496
|
+
] }), Co = ({
|
|
497
|
+
responses: e,
|
|
498
|
+
selectedResponse: n,
|
|
499
|
+
onSelectResponse: t
|
|
500
|
+
}) => /* @__PURE__ */ b.jsx($r, { children: /* @__PURE__ */ b.jsxs(
|
|
501
|
+
je.Root,
|
|
502
|
+
{
|
|
503
|
+
defaultValue: e[0]?.statusCode,
|
|
504
|
+
value: n,
|
|
505
|
+
onValueChange: (a) => t(a),
|
|
506
|
+
children: [
|
|
507
|
+
/* @__PURE__ */ b.jsxs(jr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
|
|
508
|
+
/* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Example Responses" }),
|
|
509
|
+
/* @__PURE__ */ b.jsx(je.List, { className: "flex gap-2", children: e.map((a) => /* @__PURE__ */ b.jsx(
|
|
510
|
+
je.Trigger,
|
|
511
|
+
{
|
|
512
|
+
value: a.statusCode,
|
|
513
|
+
className: pe(
|
|
514
|
+
"text-xs font-mono px-1.5 py-1 pb-px translate-y-px border-b-2 border-transparent rounded-t cursor-pointer",
|
|
515
|
+
"data-[state=active]:text-primary data-[state=active]:dark:text-inherit data-[state=active]:border-primary",
|
|
516
|
+
"hover:border-accent-foreground/25"
|
|
517
|
+
),
|
|
518
|
+
children: a.statusCode
|
|
519
|
+
},
|
|
520
|
+
a.statusCode
|
|
521
|
+
)) })
|
|
522
|
+
] }),
|
|
523
|
+
e.map((a) => /* @__PURE__ */ b.jsx(je.Content, { value: a.statusCode, children: /* @__PURE__ */ b.jsx(va, { content: a.content ?? [] }) }, a.statusCode))
|
|
524
|
+
]
|
|
525
|
+
}
|
|
526
|
+
) });
|
|
214
527
|
var Hr = (e, n) => {
|
|
215
528
|
const t = e[n.name];
|
|
216
529
|
return t === void 0 ? (e[n.name] = n.value, e) : Array.isArray(t) ? (t.push(n.value), e) : (e[n.name] = [t, n.value], e);
|
|
@@ -237,27 +550,27 @@ var Hr = (e, n) => {
|
|
|
237
550
|
}, this.indentationCharacter = e || Mr, this.lineJoin = n ?? zr;
|
|
238
551
|
}
|
|
239
552
|
}, dt, Wr;
|
|
240
|
-
function
|
|
553
|
+
function qo() {
|
|
241
554
|
return Wr || (Wr = 1, dt = function(e) {
|
|
242
555
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
243
556
|
}), dt;
|
|
244
557
|
}
|
|
245
558
|
var ht, Jr;
|
|
246
|
-
function
|
|
559
|
+
function Eo() {
|
|
247
560
|
return Jr || (Jr = 1, ht = function(e) {
|
|
248
561
|
var n = typeof e;
|
|
249
562
|
return e !== null && (n === "object" || n === "function");
|
|
250
563
|
}), ht;
|
|
251
564
|
}
|
|
252
565
|
var Ve = {}, Vr;
|
|
253
|
-
function
|
|
566
|
+
function Ro() {
|
|
254
567
|
return Vr || (Vr = 1, Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), Ve;
|
|
255
568
|
}
|
|
256
569
|
var yt, Gr;
|
|
257
|
-
function
|
|
570
|
+
function ko() {
|
|
258
571
|
if (Gr) return yt;
|
|
259
572
|
Gr = 1;
|
|
260
|
-
const e =
|
|
573
|
+
const e = qo(), n = Eo(), t = Ro().default;
|
|
261
574
|
return yt = (a, c, s) => {
|
|
262
575
|
const r = [];
|
|
263
576
|
return function o(i, l, d) {
|
|
@@ -306,9 +619,9 @@ function Oo() {
|
|
|
306
619
|
return "{}";
|
|
307
620
|
r.push(i);
|
|
308
621
|
const x = "{" + y.newLine + h.map(($, u) => {
|
|
309
|
-
const m = h.length - 1 === u ? y.newLine : "," + y.newLineOrSpace, v = typeof $ == "symbol", S = !v && /^[a-z$_][a-z$_0-9]*$/i.test($),
|
|
622
|
+
const m = h.length - 1 === u ? y.newLine : "," + y.newLineOrSpace, v = typeof $ == "symbol", S = !v && /^[a-z$_][a-z$_0-9]*$/i.test($), T = v || S ? $ : o($, l);
|
|
310
623
|
let p = o(i[$], l, d + l.indent);
|
|
311
|
-
return l.transform && (p = l.transform(i, $, p)), y.indent + String(
|
|
624
|
+
return l.transform && (p = l.transform(i, $, p)), y.indent + String(T) + ": " + p + m;
|
|
312
625
|
}).join("") + y.pad + "}";
|
|
313
626
|
return r.pop(), f(x);
|
|
314
627
|
}
|
|
@@ -317,14 +630,14 @@ function Oo() {
|
|
|
317
630
|
}(a, c, s);
|
|
318
631
|
}, yt;
|
|
319
632
|
}
|
|
320
|
-
var
|
|
321
|
-
const ue = /* @__PURE__ */
|
|
633
|
+
var No = ko();
|
|
634
|
+
const ue = /* @__PURE__ */ po(No);
|
|
322
635
|
function Fe(e, n = {}) {
|
|
323
636
|
const { delimiter: t = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
|
|
324
637
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
325
638
|
` ? c ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? c ? `${a}r` : r : r === a ? a + a : r === t ? a + t : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
|
|
326
639
|
}
|
|
327
|
-
var _e = (e) => Fe(e, { delimiter: "'" }), le = (e) => Fe(e, { delimiter: '"' }),
|
|
640
|
+
var _e = (e) => Fe(e, { delimiter: "'" }), le = (e) => Fe(e, { delimiter: '"' }), Ao = {
|
|
328
641
|
info: {
|
|
329
642
|
key: "libcurl",
|
|
330
643
|
title: "Libcurl",
|
|
@@ -340,7 +653,7 @@ var _e = (e) => Fe(e, { delimiter: "'" }), le = (e) => Fe(e, { delimiter: '"' })
|
|
|
340
653
|
s(`headers = curl_slist_append(headers, "${l}: ${le(t[l])}");`);
|
|
341
654
|
}), s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (r(), s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), r(), s("CURLcode ret = curl_easy_perform(hnd);"), o();
|
|
342
655
|
}
|
|
343
|
-
},
|
|
656
|
+
}, Io = {
|
|
344
657
|
info: {
|
|
345
658
|
key: "c",
|
|
346
659
|
title: "C",
|
|
@@ -348,30 +661,30 @@ var _e = (e) => Fe(e, { delimiter: "'" }), le = (e) => Fe(e, { delimiter: '"' })
|
|
|
348
661
|
cli: "c"
|
|
349
662
|
},
|
|
350
663
|
clientsById: {
|
|
351
|
-
libcurl:
|
|
664
|
+
libcurl: Ao
|
|
352
665
|
}
|
|
353
666
|
}, fe = (e, n) => Object.keys(e).find((t) => t.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
|
|
354
667
|
const t = fe(e, n);
|
|
355
668
|
if (t)
|
|
356
669
|
return e[t];
|
|
357
|
-
}, et = (e, n) => !!fe(e, n),
|
|
670
|
+
}, et = (e, n) => !!fe(e, n), Uo = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
358
671
|
(n) => e.indexOf(n) > -1
|
|
359
672
|
), Dr = class {
|
|
360
673
|
constructor(e) {
|
|
361
674
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
362
675
|
}
|
|
363
|
-
},
|
|
676
|
+
}, Lo = class {
|
|
364
677
|
constructor(e) {
|
|
365
678
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
366
679
|
}
|
|
367
|
-
},
|
|
680
|
+
}, ba = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), xa = (e) => e === void 0 ? !0 : ba(e) === "object" ? Object.keys(e).length === 0 : !1, Qr = (e) => (Object.keys(e).filter((n) => xa(e[n])).forEach((n) => {
|
|
368
681
|
delete e[n];
|
|
369
682
|
}), e), Ge = (e, n) => {
|
|
370
683
|
const t = " ".repeat(e);
|
|
371
684
|
return n.replace(/\n/g, `
|
|
372
685
|
${t}`);
|
|
373
686
|
}, yr = (e) => {
|
|
374
|
-
switch (
|
|
687
|
+
switch (ba(e)) {
|
|
375
688
|
case "string":
|
|
376
689
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
377
690
|
case "file":
|
|
@@ -397,7 +710,7 @@ ${t}`);
|
|
|
397
710
|
default:
|
|
398
711
|
return e.toString();
|
|
399
712
|
}
|
|
400
|
-
},
|
|
713
|
+
}, Fo = {
|
|
401
714
|
info: {
|
|
402
715
|
key: "clj_http",
|
|
403
716
|
title: "clj-http",
|
|
@@ -439,7 +752,7 @@ ${t}`);
|
|
|
439
752
|
if (t.params) {
|
|
440
753
|
l.multipart = t.params.map((y) => y.fileName && !y.value ? {
|
|
441
754
|
name: y.name,
|
|
442
|
-
content: new
|
|
755
|
+
content: new Lo(y.fileName)
|
|
443
756
|
} : {
|
|
444
757
|
name: y.name,
|
|
445
758
|
content: y.value
|
|
@@ -460,7 +773,7 @@ ${t}`);
|
|
|
460
773
|
break;
|
|
461
774
|
}
|
|
462
775
|
if (r(`(require '[clj-http.client :as client])
|
|
463
|
-
`),
|
|
776
|
+
`), xa(Qr(l)))
|
|
464
777
|
r(`(client/${n} "${a}")`);
|
|
465
778
|
else {
|
|
466
779
|
const d = 11 + n.length + a.length, y = Ge(d, yr(Qr(l)));
|
|
@@ -468,16 +781,16 @@ ${t}`);
|
|
|
468
781
|
}
|
|
469
782
|
return o();
|
|
470
783
|
}
|
|
471
|
-
},
|
|
784
|
+
}, _o = {
|
|
472
785
|
info: {
|
|
473
786
|
key: "clojure",
|
|
474
787
|
title: "Clojure",
|
|
475
788
|
default: "clj_http"
|
|
476
789
|
},
|
|
477
790
|
clientsById: {
|
|
478
|
-
clj_http:
|
|
791
|
+
clj_http: Fo
|
|
479
792
|
}
|
|
480
|
-
},
|
|
793
|
+
}, Bo = (e) => {
|
|
481
794
|
let n = ve(e, "accept-encoding");
|
|
482
795
|
if (!n)
|
|
483
796
|
return [];
|
|
@@ -494,7 +807,7 @@ ${t}`);
|
|
|
494
807
|
}
|
|
495
808
|
});
|
|
496
809
|
}), a;
|
|
497
|
-
},
|
|
810
|
+
}, Ho = {
|
|
498
811
|
info: {
|
|
499
812
|
key: "httpclient",
|
|
500
813
|
title: "HttpClient",
|
|
@@ -509,7 +822,7 @@ ${t}`);
|
|
|
509
822
|
}, { push: r, join: o } = new G({ indent: s.indent });
|
|
510
823
|
r("using System.Net.Http.Headers;");
|
|
511
824
|
let i = "";
|
|
512
|
-
const l = !!e.cookie, d =
|
|
825
|
+
const l = !!e.cookie, d = Bo(e);
|
|
513
826
|
(l || d.length) && (i = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), l && r("UseCookies = false,", 1), d.length && r(`AutomaticDecompression = ${d.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${i});`), r("var request = new HttpRequestMessage"), r("{");
|
|
514
827
|
const y = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
515
828
|
t = t.toUpperCase(), t && y.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, r(`Method = ${t},`, 1), r(`RequestUri = new Uri("${a}"),`, 1);
|
|
@@ -546,10 +859,10 @@ ${t}`);
|
|
|
546
859
|
return r("};"), r("using (var response = await client.SendAsync(request))"), r("{"), r("response.EnsureSuccessStatusCode();", 1), r("var body = await response.Content.ReadAsStringAsync();", 1), r("Console.WriteLine(body);", 1), r("}"), o();
|
|
547
860
|
}
|
|
548
861
|
};
|
|
549
|
-
function
|
|
862
|
+
function Mo(e) {
|
|
550
863
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
551
864
|
}
|
|
552
|
-
var
|
|
865
|
+
var zo = {
|
|
553
866
|
info: {
|
|
554
867
|
key: "restsharp",
|
|
555
868
|
title: "RestSharp",
|
|
@@ -599,11 +912,11 @@ var Uo = {
|
|
|
599
912
|
if (!c.text) break;
|
|
600
913
|
r(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
|
|
601
914
|
}
|
|
602
|
-
return r(`var response = await client.${
|
|
915
|
+
return r(`var response = await client.${Mo(e)}Async(request);
|
|
603
916
|
`), r(`Console.WriteLine("{0}", response.Content);
|
|
604
917
|
`), o();
|
|
605
918
|
}
|
|
606
|
-
},
|
|
919
|
+
}, Wo = {
|
|
607
920
|
info: {
|
|
608
921
|
key: "csharp",
|
|
609
922
|
title: "C#",
|
|
@@ -611,10 +924,10 @@ var Uo = {
|
|
|
611
924
|
cli: "dotnet"
|
|
612
925
|
},
|
|
613
926
|
clientsById: {
|
|
614
|
-
httpclient:
|
|
615
|
-
restsharp:
|
|
927
|
+
httpclient: Ho,
|
|
928
|
+
restsharp: zo
|
|
616
929
|
}
|
|
617
|
-
},
|
|
930
|
+
}, Jo = {
|
|
618
931
|
info: {
|
|
619
932
|
key: "native",
|
|
620
933
|
title: "NewRequest",
|
|
@@ -632,7 +945,7 @@ var Uo = {
|
|
|
632
945
|
r(`req.Header.Add("${v}", "${le(t[v])}")`, h);
|
|
633
946
|
}), s()), r(`res, ${f} := ${m}.Do(req)`, h), x(), d && (s(), r("defer res.Body.Close()", h), r(`body, ${f} := io.ReadAll(res.Body)`, h), x()), s(), d && r("fmt.Println(string(body))", h), i && (s(), r("}")), o();
|
|
634
947
|
}
|
|
635
|
-
},
|
|
948
|
+
}, Vo = {
|
|
636
949
|
info: {
|
|
637
950
|
key: "go",
|
|
638
951
|
title: "Go",
|
|
@@ -640,10 +953,10 @@ var Uo = {
|
|
|
640
953
|
cli: "go"
|
|
641
954
|
},
|
|
642
955
|
clientsById: {
|
|
643
|
-
native:
|
|
956
|
+
native: Jo
|
|
644
957
|
}
|
|
645
958
|
}, Kr = `\r
|
|
646
|
-
`,
|
|
959
|
+
`, Go = {
|
|
647
960
|
info: {
|
|
648
961
|
key: "http1.1",
|
|
649
962
|
title: "HTTP/1.1",
|
|
@@ -671,16 +984,16 @@ var Uo = {
|
|
|
671
984
|
const h = d(), x = s.text || "";
|
|
672
985
|
return `${h}${Kr}${x}`;
|
|
673
986
|
}
|
|
674
|
-
},
|
|
987
|
+
}, Do = {
|
|
675
988
|
info: {
|
|
676
989
|
key: "http",
|
|
677
990
|
title: "HTTP",
|
|
678
991
|
default: "http1.1"
|
|
679
992
|
},
|
|
680
993
|
clientsById: {
|
|
681
|
-
"http1.1":
|
|
994
|
+
"http1.1": Go
|
|
682
995
|
}
|
|
683
|
-
},
|
|
996
|
+
}, Qo = {
|
|
684
997
|
info: {
|
|
685
998
|
key: "asynchttp",
|
|
686
999
|
title: "AsyncHttp",
|
|
@@ -697,7 +1010,7 @@ var Uo = {
|
|
|
697
1010
|
o(`.setHeader("${l}", "${le(n[l])}")`, 1);
|
|
698
1011
|
}), t.text && o(`.setBody(${JSON.stringify(t.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), r(), o("client.close();"), i();
|
|
699
1012
|
}
|
|
700
|
-
},
|
|
1013
|
+
}, Ko = {
|
|
701
1014
|
info: {
|
|
702
1015
|
key: "nethttp",
|
|
703
1016
|
title: "java.net.http",
|
|
@@ -719,7 +1032,7 @@ var Uo = {
|
|
|
719
1032
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
720
1033
|
), r("System.out.println(response.body());"), o();
|
|
721
1034
|
}
|
|
722
|
-
},
|
|
1035
|
+
}, Yo = {
|
|
723
1036
|
info: {
|
|
724
1037
|
key: "okhttp",
|
|
725
1038
|
title: "OkHttp",
|
|
@@ -736,7 +1049,7 @@ var Uo = {
|
|
|
736
1049
|
r(`.addHeader("${y}", "${le(a[y])}")`, 1);
|
|
737
1050
|
}), r(".build();", 1), o(), r("Response response = client.newCall(request).execute();"), i();
|
|
738
1051
|
}
|
|
739
|
-
},
|
|
1052
|
+
}, Xo = {
|
|
740
1053
|
info: {
|
|
741
1054
|
key: "unirest",
|
|
742
1055
|
title: "Unirest",
|
|
@@ -753,19 +1066,19 @@ var Uo = {
|
|
|
753
1066
|
o(`.header("${l}", "${le(n[l])}")`, 1);
|
|
754
1067
|
}), t.text && o(`.body(${JSON.stringify(t.text)})`, 1), o(".asString();", 1), r();
|
|
755
1068
|
}
|
|
756
|
-
},
|
|
1069
|
+
}, Zo = {
|
|
757
1070
|
info: {
|
|
758
1071
|
key: "java",
|
|
759
1072
|
title: "Java",
|
|
760
1073
|
default: "unirest"
|
|
761
1074
|
},
|
|
762
1075
|
clientsById: {
|
|
763
|
-
asynchttp:
|
|
764
|
-
nethttp:
|
|
765
|
-
okhttp:
|
|
766
|
-
unirest:
|
|
1076
|
+
asynchttp: Qo,
|
|
1077
|
+
nethttp: Ko,
|
|
1078
|
+
okhttp: Yo,
|
|
1079
|
+
unirest: Xo
|
|
767
1080
|
}
|
|
768
|
-
},
|
|
1081
|
+
}, ei = {
|
|
769
1082
|
info: {
|
|
770
1083
|
key: "axios",
|
|
771
1084
|
title: "Axios",
|
|
@@ -809,7 +1122,7 @@ var Uo = {
|
|
|
809
1122
|
}).replace('"[form]"', "form");
|
|
810
1123
|
return i(`const options = ${f};`), o(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), l();
|
|
811
1124
|
}
|
|
812
|
-
},
|
|
1125
|
+
}, ti = {
|
|
813
1126
|
info: {
|
|
814
1127
|
key: "fetch",
|
|
815
1128
|
title: "fetch",
|
|
@@ -862,7 +1175,7 @@ var Uo = {
|
|
|
862
1175
|
})};`
|
|
863
1176
|
), r(), t.params && t.mimeType === "multipart/form-data" && (i("options.body = form;"), r()), i(`fetch('${a}', options)`), i(".then(response => response.json())", 1), i(".then(response => console.log(response))", 1), i(".catch(err => console.error(err));", 1), o();
|
|
864
1177
|
}
|
|
865
|
-
},
|
|
1178
|
+
}, ri = {
|
|
866
1179
|
info: {
|
|
867
1180
|
key: "jquery",
|
|
868
1181
|
title: "jQuery",
|
|
@@ -905,7 +1218,7 @@ var Uo = {
|
|
|
905
1218
|
const d = ue(l, { indent: s.indent }).replace("'[form]'", "form");
|
|
906
1219
|
return o(`const settings = ${d};`), r(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), i();
|
|
907
1220
|
}
|
|
908
|
-
},
|
|
1221
|
+
}, ni = {
|
|
909
1222
|
info: {
|
|
910
1223
|
key: "xhr",
|
|
911
1224
|
title: "XMLHttpRequest",
|
|
@@ -945,19 +1258,19 @@ var Uo = {
|
|
|
945
1258
|
o(`xhr.setRequestHeader('${l}', '${_e(n[l])}');`);
|
|
946
1259
|
}), r(), o("xhr.send(data);"), i();
|
|
947
1260
|
}
|
|
948
|
-
},
|
|
1261
|
+
}, ai = {
|
|
949
1262
|
info: {
|
|
950
1263
|
key: "javascript",
|
|
951
1264
|
title: "JavaScript",
|
|
952
1265
|
default: "xhr"
|
|
953
1266
|
},
|
|
954
1267
|
clientsById: {
|
|
955
|
-
xhr:
|
|
956
|
-
axios:
|
|
957
|
-
fetch:
|
|
958
|
-
jquery:
|
|
1268
|
+
xhr: ni,
|
|
1269
|
+
axios: ei,
|
|
1270
|
+
fetch: ti,
|
|
1271
|
+
jquery: ri
|
|
959
1272
|
}
|
|
960
|
-
},
|
|
1273
|
+
}, oi = {
|
|
961
1274
|
info: {
|
|
962
1275
|
key: "native",
|
|
963
1276
|
title: "Native JSON",
|
|
@@ -991,16 +1304,16 @@ var Uo = {
|
|
|
991
1304
|
}
|
|
992
1305
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, t.indent);
|
|
993
1306
|
}
|
|
994
|
-
},
|
|
1307
|
+
}, ii = {
|
|
995
1308
|
info: {
|
|
996
1309
|
key: "json",
|
|
997
1310
|
title: "JSON",
|
|
998
1311
|
default: "native"
|
|
999
1312
|
},
|
|
1000
1313
|
clientsById: {
|
|
1001
|
-
native:
|
|
1314
|
+
native: oi
|
|
1002
1315
|
}
|
|
1003
|
-
},
|
|
1316
|
+
}, si = {
|
|
1004
1317
|
info: {
|
|
1005
1318
|
key: "okhttp",
|
|
1006
1319
|
title: "OkHttp",
|
|
@@ -1017,16 +1330,16 @@ var Uo = {
|
|
|
1017
1330
|
i(`.addHeader("${y}", "${le(a[y])}")`, 1);
|
|
1018
1331
|
}), i(".build()", 1), r(), i("val response = client.newCall(request).execute()"), o();
|
|
1019
1332
|
}
|
|
1020
|
-
},
|
|
1333
|
+
}, li = {
|
|
1021
1334
|
info: {
|
|
1022
1335
|
key: "kotlin",
|
|
1023
1336
|
title: "Kotlin",
|
|
1024
1337
|
default: "okhttp"
|
|
1025
1338
|
},
|
|
1026
1339
|
clientsById: {
|
|
1027
|
-
okhttp:
|
|
1340
|
+
okhttp: si
|
|
1028
1341
|
}
|
|
1029
|
-
},
|
|
1342
|
+
}, ci = {
|
|
1030
1343
|
info: {
|
|
1031
1344
|
key: "axios",
|
|
1032
1345
|
title: "Axios",
|
|
@@ -1060,7 +1373,7 @@ var Uo = {
|
|
|
1060
1373
|
const y = ue(d, { indent: " ", inlineCharacterLimit: 80 });
|
|
1061
1374
|
return i(`const options = ${y};`), r(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), o();
|
|
1062
1375
|
}
|
|
1063
|
-
},
|
|
1376
|
+
}, ui = {
|
|
1064
1377
|
info: {
|
|
1065
1378
|
key: "fetch",
|
|
1066
1379
|
title: "Fetch",
|
|
@@ -1119,7 +1432,7 @@ var Uo = {
|
|
|
1119
1432
|
});
|
|
1120
1433
|
return l(`const options = ${x};`), i(), o && y("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (l("options.body = formData;"), i()), l("fetch(url, options)"), l(".then(res => res.json())", 1), l(".then(json => console.log(json))", 1), l(".catch(err => console.error('error:' + err));", 1), d().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
1121
1434
|
}
|
|
1122
|
-
},
|
|
1435
|
+
}, fi = {
|
|
1123
1436
|
info: {
|
|
1124
1437
|
key: "native",
|
|
1125
1438
|
title: "HTTP",
|
|
@@ -1157,7 +1470,7 @@ var Uo = {
|
|
|
1157
1470
|
}
|
|
1158
1471
|
return i("req.end();"), o();
|
|
1159
1472
|
}
|
|
1160
|
-
},
|
|
1473
|
+
}, pi = {
|
|
1161
1474
|
info: {
|
|
1162
1475
|
key: "request",
|
|
1163
1476
|
title: "Request",
|
|
@@ -1210,7 +1523,7 @@ var Uo = {
|
|
|
1210
1523
|
l(`jar.setCookie(request.cookie('${encodeURIComponent($)}=${encodeURIComponent(u)}'), '${n}');`);
|
|
1211
1524
|
}), d(), h(($) => $.replace(/'JAR'/, "jar"))), i && f("const fs = require('fs');"), l(`const options = ${ue(x, { indent: " ", inlineCharacterLimit: 80 })};`), d(), l("request(options, function (error, response, body) {"), l("if (error) throw new Error(error);", 1), d(), l("console.log(body);", 1), l("});"), y();
|
|
1212
1525
|
}
|
|
1213
|
-
},
|
|
1526
|
+
}, di = {
|
|
1214
1527
|
info: {
|
|
1215
1528
|
key: "unirest",
|
|
1216
1529
|
title: "Unirest",
|
|
@@ -1251,7 +1564,7 @@ var Uo = {
|
|
|
1251
1564
|
}
|
|
1252
1565
|
return i && h("const fs = require('fs');"), f("req.end(function (res) {"), f("if (res.error) throw new Error(res.error);", 1), d(), f("console.log(res.body);", 1), f("});"), y();
|
|
1253
1566
|
}
|
|
1254
|
-
},
|
|
1567
|
+
}, hi = {
|
|
1255
1568
|
info: {
|
|
1256
1569
|
key: "node",
|
|
1257
1570
|
title: "Node.js",
|
|
@@ -1259,11 +1572,11 @@ var Uo = {
|
|
|
1259
1572
|
cli: "node %s"
|
|
1260
1573
|
},
|
|
1261
1574
|
clientsById: {
|
|
1262
|
-
native:
|
|
1263
|
-
request:
|
|
1264
|
-
unirest:
|
|
1265
|
-
axios:
|
|
1266
|
-
fetch:
|
|
1575
|
+
native: fi,
|
|
1576
|
+
request: pi,
|
|
1577
|
+
unirest: di,
|
|
1578
|
+
axios: ci,
|
|
1579
|
+
fetch: ui
|
|
1267
1580
|
}
|
|
1268
1581
|
}, mt = (e, n, t, a) => {
|
|
1269
1582
|
const c = `${e} *${n} = `, s = mr(t, a ? c.length : void 0);
|
|
@@ -1287,7 +1600,7 @@ var Uo = {
|
|
|
1287
1600
|
default:
|
|
1288
1601
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1289
1602
|
}
|
|
1290
|
-
},
|
|
1603
|
+
}, yi = {
|
|
1291
1604
|
info: {
|
|
1292
1605
|
key: "nsurlsession",
|
|
1293
1606
|
title: "NSURLSession",
|
|
@@ -1343,16 +1656,16 @@ var Uo = {
|
|
|
1343
1656
|
2
|
|
1344
1657
|
), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), o();
|
|
1345
1658
|
}
|
|
1346
|
-
},
|
|
1659
|
+
}, mi = {
|
|
1347
1660
|
info: {
|
|
1348
1661
|
key: "objc",
|
|
1349
1662
|
title: "Objective-C",
|
|
1350
1663
|
default: "nsurlsession"
|
|
1351
1664
|
},
|
|
1352
1665
|
clientsById: {
|
|
1353
|
-
nsurlsession:
|
|
1666
|
+
nsurlsession: yi
|
|
1354
1667
|
}
|
|
1355
|
-
},
|
|
1668
|
+
}, gi = {
|
|
1356
1669
|
info: {
|
|
1357
1670
|
key: "cohttp",
|
|
1358
1671
|
title: "CoHTTP",
|
|
@@ -1378,14 +1691,14 @@ var Uo = {
|
|
|
1378
1691
|
const y = d.length ? "~headers " : "", f = t.text ? "~body " : "", h = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
1379
1692
|
return o(`Client.call ${y}${f}${h} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), l();
|
|
1380
1693
|
}
|
|
1381
|
-
},
|
|
1694
|
+
}, vi = {
|
|
1382
1695
|
info: {
|
|
1383
1696
|
key: "ocaml",
|
|
1384
1697
|
title: "OCaml",
|
|
1385
1698
|
default: "cohttp"
|
|
1386
1699
|
},
|
|
1387
1700
|
clientsById: {
|
|
1388
|
-
cohttp:
|
|
1701
|
+
cohttp: gi
|
|
1389
1702
|
}
|
|
1390
1703
|
}, te = (e, n, t) => {
|
|
1391
1704
|
switch (t = t || "", n = n || "", Object.prototype.toString.call(e)) {
|
|
@@ -1446,7 +1759,7 @@ ${t}]`;
|
|
|
1446
1759
|
"UNLOCK",
|
|
1447
1760
|
"UPDATE",
|
|
1448
1761
|
"VERSION_CONTROL"
|
|
1449
|
-
],
|
|
1762
|
+
], bi = {
|
|
1450
1763
|
info: {
|
|
1451
1764
|
key: "curl",
|
|
1452
1765
|
title: "cURL",
|
|
@@ -1518,13 +1831,13 @@ ${l}` });
|
|
|
1518
1831
|
v.forEach(({ value: O, name: g, escape: R }) => {
|
|
1519
1832
|
O != null && S.push(`${g} => ${R ? JSON.stringify(O) : O},`);
|
|
1520
1833
|
});
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1834
|
+
const T = s.map((O) => `${encodeURIComponent(O.name)}=${encodeURIComponent(O.value)}`);
|
|
1835
|
+
T.length && S.push(`CURLOPT_COOKIE => "${T.join("; ")}",`);
|
|
1523
1836
|
const p = Object.keys(r).sort().map((O) => `"${O}: ${le(r[O])}"`);
|
|
1524
1837
|
return p.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(p.join(`,
|
|
1525
1838
|
${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = curl_exec($curl);"), $("$err = curl_error($curl);"), u(), $("curl_close($curl);"), u(), $("if ($err) {"), $(y ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), $("} else {"), $("echo $response;", 1), $("}"), !f && i && (u(), $("?>")), m();
|
|
1526
1839
|
}
|
|
1527
|
-
},
|
|
1840
|
+
}, xi = {
|
|
1528
1841
|
info: {
|
|
1529
1842
|
key: "guzzle",
|
|
1530
1843
|
title: "Guzzle",
|
|
@@ -1574,7 +1887,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1574
1887
|
return x.length && h.push(`${r.indent}${r.indent}'cookie' => '${_e(x)}',`), h.length && (y("'headers' => [", 1), y(h.join(`
|
|
1575
1888
|
`)), y("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), i(), d.length ? (o(`$response = $client->request('${t}', '${n}', [`), o(f()), o("]);")) : o(`$response = $client->request('${t}', '${n}');`), i(), o("echo $response->getBody();"), !r.noTags && r.closingTag && (i(), o("?>")), l();
|
|
1576
1889
|
}
|
|
1577
|
-
},
|
|
1890
|
+
}, $i = {
|
|
1578
1891
|
info: {
|
|
1579
1892
|
key: "http1",
|
|
1580
1893
|
title: "HTTP v1",
|
|
@@ -1596,7 +1909,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1596
1909
|
}
|
|
1597
1910
|
return y("try {"), y("$response = $request->send();", 1), f(), y("echo $response->getBody();", 1), y("} catch (HttpException $ex) {"), y("echo $ex;", 1), y("}"), !l && o && (f(), y("?>")), h();
|
|
1598
1911
|
}
|
|
1599
|
-
},
|
|
1912
|
+
}, ji = {
|
|
1600
1913
|
info: {
|
|
1601
1914
|
key: "http2",
|
|
1602
1915
|
title: "HTTP v2",
|
|
@@ -1615,12 +1928,12 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1615
1928
|
if (!e.params)
|
|
1616
1929
|
break;
|
|
1617
1930
|
const $ = [], u = {};
|
|
1618
|
-
e.params.forEach(({ name: S, fileName:
|
|
1619
|
-
if (
|
|
1931
|
+
e.params.forEach(({ name: S, fileName: T, value: p, contentType: O }) => {
|
|
1932
|
+
if (T) {
|
|
1620
1933
|
$.push({
|
|
1621
1934
|
name: S,
|
|
1622
1935
|
type: O,
|
|
1623
|
-
file:
|
|
1936
|
+
file: T,
|
|
1624
1937
|
data: p
|
|
1625
1938
|
});
|
|
1626
1939
|
return;
|
|
@@ -1643,7 +1956,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1643
1956
|
}
|
|
1644
1957
|
return y(`$request->setRequestUrl(${te(s)});`), y(`$request->setRequestMethod(${te(t)});`), x && (y("$request->setBody($body);"), f()), Object.keys(a).length && (y(`$request->setQuery(new http\\QueryString(${te(a, i)}));`), f()), Object.keys(n).length && (y(`$request->setHeaders(${te(n, i)});`), f()), Object.keys(c).length && (f(), y(`$client->setCookies(${te(c, i)});`), f()), y("$client->enqueue($request)->send();"), y("$response = $client->getResponse();"), f(), y("echo $response->getBody();"), !l && o && (f(), y("?>")), h();
|
|
1645
1958
|
}
|
|
1646
|
-
},
|
|
1959
|
+
}, wi = {
|
|
1647
1960
|
info: {
|
|
1648
1961
|
key: "php",
|
|
1649
1962
|
title: "PHP",
|
|
@@ -1651,12 +1964,12 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1651
1964
|
cli: "php %s"
|
|
1652
1965
|
},
|
|
1653
1966
|
clientsById: {
|
|
1654
|
-
curl:
|
|
1655
|
-
guzzle:
|
|
1656
|
-
http1:
|
|
1657
|
-
http2:
|
|
1967
|
+
curl: bi,
|
|
1968
|
+
guzzle: xi,
|
|
1969
|
+
http1: $i,
|
|
1970
|
+
http2: ji
|
|
1658
1971
|
}
|
|
1659
|
-
},
|
|
1972
|
+
}, $a = (e) => ({ method: t, headersObj: a, cookies: c, uriObj: s, fullUrl: r, postData: o, allHeaders: i }) => {
|
|
1660
1973
|
const { push: l, join: d } = new G();
|
|
1661
1974
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()))
|
|
1662
1975
|
return "Method not supported";
|
|
@@ -1668,7 +1981,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1668
1981
|
}), f.push("-WebSession $session")), o.text && (f.push(
|
|
1669
1982
|
`-ContentType '${Fe(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
1670
1983
|
), f.push(`-Body '${o.text}'`)), l(`$response = ${e} -Uri '${r}' -Method ${t} ${f.join(" ")}`.trim()), d();
|
|
1671
|
-
},
|
|
1984
|
+
}, Si = {
|
|
1672
1985
|
info: {
|
|
1673
1986
|
key: "restmethod",
|
|
1674
1987
|
title: "Invoke-RestMethod",
|
|
@@ -1676,8 +1989,8 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1676
1989
|
description: "Powershell Invoke-RestMethod client",
|
|
1677
1990
|
extname: ".ps1"
|
|
1678
1991
|
},
|
|
1679
|
-
convert:
|
|
1680
|
-
},
|
|
1992
|
+
convert: $a("Invoke-RestMethod")
|
|
1993
|
+
}, Oi = {
|
|
1681
1994
|
info: {
|
|
1682
1995
|
key: "webrequest",
|
|
1683
1996
|
title: "Invoke-WebRequest",
|
|
@@ -1685,16 +1998,16 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1685
1998
|
description: "Powershell Invoke-WebRequest client",
|
|
1686
1999
|
extname: ".ps1"
|
|
1687
2000
|
},
|
|
1688
|
-
convert:
|
|
1689
|
-
},
|
|
2001
|
+
convert: $a("Invoke-WebRequest")
|
|
2002
|
+
}, Ti = {
|
|
1690
2003
|
info: {
|
|
1691
2004
|
key: "powershell",
|
|
1692
2005
|
title: "Powershell",
|
|
1693
2006
|
default: "webrequest"
|
|
1694
2007
|
},
|
|
1695
2008
|
clientsById: {
|
|
1696
|
-
webrequest:
|
|
1697
|
-
restmethod:
|
|
2009
|
+
webrequest: Oi,
|
|
2010
|
+
restmethod: Si
|
|
1698
2011
|
}
|
|
1699
2012
|
};
|
|
1700
2013
|
function Xr(e, n, t, a, c) {
|
|
@@ -1726,7 +2039,7 @@ var Ne = (e, n, t) => {
|
|
|
1726
2039
|
default:
|
|
1727
2040
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1728
2041
|
}
|
|
1729
|
-
},
|
|
2042
|
+
}, Pi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Ci = {
|
|
1730
2043
|
info: {
|
|
1731
2044
|
key: "requests",
|
|
1732
2045
|
title: "Requests",
|
|
@@ -1789,10 +2102,10 @@ var Ne = (e, n, t) => {
|
|
|
1789
2102
|
r(v !== u ? `"${S}": "${le(d[S])}",` : `"${S}": "${le(d[S])}"`, 1), v += 1;
|
|
1790
2103
|
}), r("}"), o();
|
|
1791
2104
|
}
|
|
1792
|
-
let m =
|
|
2105
|
+
let m = Pi.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
1793
2106
|
return x && ($ ? m += ", json=payload" : m += ", data=payload"), h && (m += ", files=files"), u > 0 && (m += ", headers=headers"), m += ")", r(m), o(), r("print(response.text)"), i();
|
|
1794
2107
|
}
|
|
1795
|
-
},
|
|
2108
|
+
}, qi = {
|
|
1796
2109
|
info: {
|
|
1797
2110
|
key: "python",
|
|
1798
2111
|
title: "Python",
|
|
@@ -1800,9 +2113,9 @@ var Ne = (e, n, t) => {
|
|
|
1800
2113
|
cli: "python3 %s"
|
|
1801
2114
|
},
|
|
1802
2115
|
clientsById: {
|
|
1803
|
-
requests:
|
|
2116
|
+
requests: Ci
|
|
1804
2117
|
}
|
|
1805
|
-
},
|
|
2118
|
+
}, Ei = {
|
|
1806
2119
|
info: {
|
|
1807
2120
|
key: "httr",
|
|
1808
2121
|
title: "httr",
|
|
@@ -1838,19 +2151,19 @@ var Ne = (e, n, t) => {
|
|
|
1838
2151
|
const f = ve(c, "cookie"), h = ve(c, "accept"), x = f ? `set_cookies(\`${String(f).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, $ = h ? `accept("${le(h)}")` : void 0, u = `content_type("${le(a.mimeType)}")`, m = Object.entries(c).filter(([p]) => !["cookie", "accept", "content-type"].includes(p.toLowerCase())).map(([p, O]) => `'${p}' = '${_e(O)}'`).join(", "), v = m ? `add_headers(${m})` : void 0;
|
|
1839
2152
|
let S = `response <- VERB("${s}", url`;
|
|
1840
2153
|
y && (S += ", body = payload"), t.length && (S += ", query = queryString");
|
|
1841
|
-
const
|
|
1842
|
-
return
|
|
2154
|
+
const T = [v, u, $, x].filter((p) => !!p).join(", ");
|
|
2155
|
+
return T && (S += `, ${T}`), (a.text || a.jsonObj || a.params) && (S += ", encode = encode"), S += ")", r(S), o(), r('content(response, "text")'), i();
|
|
1843
2156
|
}
|
|
1844
|
-
},
|
|
2157
|
+
}, Ri = {
|
|
1845
2158
|
info: {
|
|
1846
2159
|
key: "r",
|
|
1847
2160
|
title: "R",
|
|
1848
2161
|
default: "httr"
|
|
1849
2162
|
},
|
|
1850
2163
|
clientsById: {
|
|
1851
|
-
httr:
|
|
2164
|
+
httr: Ei
|
|
1852
2165
|
}
|
|
1853
|
-
},
|
|
2166
|
+
}, ki = {
|
|
1854
2167
|
info: {
|
|
1855
2168
|
key: "native",
|
|
1856
2169
|
title: "net::http",
|
|
@@ -1881,16 +2194,16 @@ var Ne = (e, n, t) => {
|
|
|
1881
2194
|
s(`request["${f}"] = '${_e(c[f])}'`);
|
|
1882
2195
|
}), a.text && s(`request.body = ${JSON.stringify(a.text)}`), r(), s("response = http.request(request)"), s("puts response.read_body"), o();
|
|
1883
2196
|
}
|
|
1884
|
-
},
|
|
2197
|
+
}, Ni = {
|
|
1885
2198
|
info: {
|
|
1886
2199
|
key: "ruby",
|
|
1887
2200
|
title: "Ruby",
|
|
1888
2201
|
default: "native"
|
|
1889
2202
|
},
|
|
1890
2203
|
clientsById: {
|
|
1891
|
-
native:
|
|
2204
|
+
native: ki
|
|
1892
2205
|
}
|
|
1893
|
-
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
2206
|
+
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, Ai = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Ii = {
|
|
1894
2207
|
"http1.0": "0",
|
|
1895
2208
|
"url ": "",
|
|
1896
2209
|
cookie: "b",
|
|
@@ -1900,13 +2213,13 @@ var Ne = (e, n, t) => {
|
|
|
1900
2213
|
header: "H",
|
|
1901
2214
|
insecure: "k",
|
|
1902
2215
|
request: "X"
|
|
1903
|
-
},
|
|
2216
|
+
}, Ui = (e) => (n) => {
|
|
1904
2217
|
if (e) {
|
|
1905
|
-
const t =
|
|
2218
|
+
const t = Ii[n];
|
|
1906
2219
|
return t ? `-${t}` : "";
|
|
1907
2220
|
}
|
|
1908
2221
|
return `--${n}`;
|
|
1909
|
-
},
|
|
2222
|
+
}, Li = {
|
|
1910
2223
|
info: {
|
|
1911
2224
|
key: "curl",
|
|
1912
2225
|
title: "cURL",
|
|
@@ -1919,7 +2232,7 @@ var Ne = (e, n, t) => {
|
|
|
1919
2232
|
...typeof o == "string" ? { indent: o } : {},
|
|
1920
2233
|
join: o !== !1 ? ` \\
|
|
1921
2234
|
${o}` : " "
|
|
1922
|
-
}), x =
|
|
2235
|
+
}), x = Ui(i);
|
|
1923
2236
|
let $ = ce(e);
|
|
1924
2237
|
if (f(`curl ${x("request")} ${n}`), d && ($ = unescape($), f(x("globoff"))), f(`${x("url ")}${$}`), t === "HTTP/1.0" && f(x("http1.0")), ve(c, "accept-encoding") && f("--compressed"), s.mimeType === "multipart/form-data") {
|
|
1925
2238
|
const u = fe(a, "content-type");
|
|
@@ -1943,7 +2256,7 @@ ${o}` : " "
|
|
|
1943
2256
|
break;
|
|
1944
2257
|
case "application/x-www-form-urlencoded":
|
|
1945
2258
|
s.params ? s.params.forEach((m) => {
|
|
1946
|
-
const v = m.name, S = encodeURIComponent(m.name),
|
|
2259
|
+
const v = m.name, S = encodeURIComponent(m.name), T = S !== v, p = T ? S : v, O = l ? "--data-binary" : T ? "--data-urlencode" : x("data");
|
|
1947
2260
|
f(`${O} ${ce(`${p}=${m.value}`)}`);
|
|
1948
2261
|
}) : f(`${l ? "--data-binary" : x("data")} ${ce(s.text)}`);
|
|
1949
2262
|
break;
|
|
@@ -1951,7 +2264,7 @@ ${o}` : " "
|
|
|
1951
2264
|
if (!s.text)
|
|
1952
2265
|
break;
|
|
1953
2266
|
let u = !1;
|
|
1954
|
-
if (
|
|
2267
|
+
if (Uo(s.mimeType) && s.text.length > 20)
|
|
1955
2268
|
try {
|
|
1956
2269
|
const m = JSON.parse(s.text);
|
|
1957
2270
|
u = !0, s.text.indexOf("'") > 0 ? f(
|
|
@@ -1973,7 +2286,7 @@ ${JSON.stringify(m, null, y)}
|
|
|
1973
2286
|
}
|
|
1974
2287
|
return h();
|
|
1975
2288
|
}
|
|
1976
|
-
},
|
|
2289
|
+
}, Fi = {
|
|
1977
2290
|
info: {
|
|
1978
2291
|
key: "httpie",
|
|
1979
2292
|
title: "HTTPie",
|
|
@@ -2022,7 +2335,7 @@ ${o.indent}` : " "
|
|
|
2022
2335
|
}
|
|
2023
2336
|
return l();
|
|
2024
2337
|
}
|
|
2025
|
-
},
|
|
2338
|
+
}, _i = {
|
|
2026
2339
|
info: {
|
|
2027
2340
|
key: "wget",
|
|
2028
2341
|
title: "Wget",
|
|
@@ -2044,9 +2357,9 @@ ${s.indent}` : " "
|
|
|
2044
2357
|
return s.verbose ? r(`wget ${s.short ? "-v" : "--verbose"}`) : r(`wget ${s.short ? "-q" : "--quiet"}`), r(`--method ${ce(e)}`), Object.keys(t).forEach((i) => {
|
|
2045
2358
|
const l = `${i}: ${t[i]}`;
|
|
2046
2359
|
r(`--header ${ce(l)}`);
|
|
2047
|
-
}), n.text && r(`--body-data ${
|
|
2360
|
+
}), n.text && r(`--body-data ${Ai(ce(n.text))}`), r(s.short ? "-O" : "--output-document"), r(`- ${ce(a)}`), o();
|
|
2048
2361
|
}
|
|
2049
|
-
},
|
|
2362
|
+
}, Bi = {
|
|
2050
2363
|
info: {
|
|
2051
2364
|
key: "shell",
|
|
2052
2365
|
title: "Shell",
|
|
@@ -2054,9 +2367,9 @@ ${s.indent}` : " "
|
|
|
2054
2367
|
cli: "%s"
|
|
2055
2368
|
},
|
|
2056
2369
|
clientsById: {
|
|
2057
|
-
curl:
|
|
2058
|
-
httpie:
|
|
2059
|
-
wget:
|
|
2370
|
+
curl: Li,
|
|
2371
|
+
httpie: Fi,
|
|
2372
|
+
wget: _i
|
|
2060
2373
|
}
|
|
2061
2374
|
}, Zr = (e, n) => n.repeat(e), en = (e, n, t, a) => {
|
|
2062
2375
|
const c = Zr(a, t), s = Zr(a - 1, t), r = n ? `,
|
|
@@ -2091,7 +2404,7 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2091
2404
|
default:
|
|
2092
2405
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2093
2406
|
}
|
|
2094
|
-
},
|
|
2407
|
+
}, Hi = {
|
|
2095
2408
|
info: {
|
|
2096
2409
|
key: "urlsession",
|
|
2097
2410
|
title: "URLSession",
|
|
@@ -2141,39 +2454,39 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2141
2454
|
}
|
|
2142
2455
|
}), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${Xe(e, r)}`), d && o("request.httpBody = postData"), i(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), l();
|
|
2143
2456
|
}
|
|
2144
|
-
},
|
|
2457
|
+
}, Mi = {
|
|
2145
2458
|
info: {
|
|
2146
2459
|
key: "swift",
|
|
2147
2460
|
title: "Swift",
|
|
2148
2461
|
default: "urlsession"
|
|
2149
2462
|
},
|
|
2150
2463
|
clientsById: {
|
|
2151
|
-
urlsession:
|
|
2464
|
+
urlsession: Hi
|
|
2152
2465
|
}
|
|
2153
|
-
},
|
|
2154
|
-
c:
|
|
2155
|
-
clojure:
|
|
2156
|
-
csharp:
|
|
2157
|
-
go:
|
|
2158
|
-
http:
|
|
2159
|
-
java:
|
|
2160
|
-
javascript:
|
|
2161
|
-
json:
|
|
2162
|
-
kotlin:
|
|
2163
|
-
node:
|
|
2164
|
-
objc:
|
|
2165
|
-
ocaml:
|
|
2166
|
-
php:
|
|
2167
|
-
powershell:
|
|
2168
|
-
python:
|
|
2169
|
-
r:
|
|
2170
|
-
ruby:
|
|
2171
|
-
shell:
|
|
2172
|
-
swift:
|
|
2466
|
+
}, zi = {
|
|
2467
|
+
c: Io,
|
|
2468
|
+
clojure: _o,
|
|
2469
|
+
csharp: Wo,
|
|
2470
|
+
go: Vo,
|
|
2471
|
+
http: Do,
|
|
2472
|
+
java: Zo,
|
|
2473
|
+
javascript: ai,
|
|
2474
|
+
json: ii,
|
|
2475
|
+
kotlin: li,
|
|
2476
|
+
node: hi,
|
|
2477
|
+
objc: mi,
|
|
2478
|
+
ocaml: vi,
|
|
2479
|
+
php: wi,
|
|
2480
|
+
powershell: Ti,
|
|
2481
|
+
python: qi,
|
|
2482
|
+
r: Ri,
|
|
2483
|
+
ruby: Ni,
|
|
2484
|
+
shell: Bi,
|
|
2485
|
+
swift: Mi
|
|
2173
2486
|
}, Pe = {}, Ue = { exports: {} };
|
|
2174
2487
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2175
|
-
var
|
|
2176
|
-
function
|
|
2488
|
+
var Wi = Ue.exports, rn;
|
|
2489
|
+
function Ji() {
|
|
2177
2490
|
return rn || (rn = 1, function(e, n) {
|
|
2178
2491
|
(function(t) {
|
|
2179
2492
|
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, s = typeof Ke == "object" && Ke;
|
|
@@ -2182,82 +2495,82 @@ function Fi() {
|
|
|
2182
2495
|
overflow: "Overflow: input needs wider integers to process",
|
|
2183
2496
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
2184
2497
|
"invalid-input": "Invalid input"
|
|
2185
|
-
},
|
|
2498
|
+
}, T = i - l, p = Math.floor, O = String.fromCharCode, g;
|
|
2186
2499
|
function R(E) {
|
|
2187
2500
|
throw new RangeError(S[E]);
|
|
2188
2501
|
}
|
|
2189
|
-
function C(E,
|
|
2190
|
-
for (var
|
|
2191
|
-
q[
|
|
2502
|
+
function C(E, k) {
|
|
2503
|
+
for (var L = E.length, q = []; L--; )
|
|
2504
|
+
q[L] = k(E[L]);
|
|
2192
2505
|
return q;
|
|
2193
2506
|
}
|
|
2194
|
-
function
|
|
2195
|
-
var
|
|
2196
|
-
|
|
2197
|
-
var
|
|
2507
|
+
function N(E, k) {
|
|
2508
|
+
var L = E.split("@"), q = "";
|
|
2509
|
+
L.length > 1 && (q = L[0] + "@", E = L[1]), E = E.replace(v, ".");
|
|
2510
|
+
var U = E.split("."), J = C(U, k).join(".");
|
|
2198
2511
|
return q + J;
|
|
2199
2512
|
}
|
|
2200
|
-
function
|
|
2201
|
-
for (var
|
|
2202
|
-
|
|
2203
|
-
return
|
|
2513
|
+
function B(E) {
|
|
2514
|
+
for (var k = [], L = 0, q = E.length, U, J; L < q; )
|
|
2515
|
+
U = E.charCodeAt(L++), U >= 55296 && U <= 56319 && L < q ? (J = E.charCodeAt(L++), (J & 64512) == 56320 ? k.push(((U & 1023) << 10) + (J & 1023) + 65536) : (k.push(U), L--)) : k.push(U);
|
|
2516
|
+
return k;
|
|
2204
2517
|
}
|
|
2205
|
-
function
|
|
2206
|
-
return C(E, function(
|
|
2207
|
-
var
|
|
2208
|
-
return
|
|
2518
|
+
function P(E) {
|
|
2519
|
+
return C(E, function(k) {
|
|
2520
|
+
var L = "";
|
|
2521
|
+
return k > 65535 && (k -= 65536, L += O(k >>> 10 & 1023 | 55296), k = 56320 | k & 1023), L += O(k), L;
|
|
2209
2522
|
}).join("");
|
|
2210
2523
|
}
|
|
2211
2524
|
function oe(E) {
|
|
2212
2525
|
return E - 48 < 10 ? E - 22 : E - 65 < 26 ? E - 65 : E - 97 < 26 ? E - 97 : i;
|
|
2213
2526
|
}
|
|
2214
|
-
function H(E,
|
|
2215
|
-
return E + 22 + 75 * (E < 26) - ((
|
|
2527
|
+
function H(E, k) {
|
|
2528
|
+
return E + 22 + 75 * (E < 26) - ((k != 0) << 5);
|
|
2216
2529
|
}
|
|
2217
|
-
function D(E,
|
|
2530
|
+
function D(E, k, L) {
|
|
2218
2531
|
var q = 0;
|
|
2219
|
-
for (E =
|
|
2220
|
-
E = p(E /
|
|
2221
|
-
return p(q + (
|
|
2532
|
+
for (E = L ? p(E / f) : E >> 1, E += p(E / k); E > T * d >> 1; q += i)
|
|
2533
|
+
E = p(E / T);
|
|
2534
|
+
return p(q + (T + 1) * E / (E + y));
|
|
2222
2535
|
}
|
|
2223
2536
|
function se(E) {
|
|
2224
|
-
var
|
|
2537
|
+
var k = [], L = E.length, q, U = 0, J = x, z = h, K, ne, V, I, F, _, Q, W, Y;
|
|
2225
2538
|
for (K = E.lastIndexOf($), K < 0 && (K = 0), ne = 0; ne < K; ++ne)
|
|
2226
|
-
E.charCodeAt(ne) >= 128 && R("not-basic"),
|
|
2227
|
-
for (V = K > 0 ? K + 1 : 0; V <
|
|
2228
|
-
for (
|
|
2229
|
-
Y = i - W,
|
|
2230
|
-
q =
|
|
2539
|
+
E.charCodeAt(ne) >= 128 && R("not-basic"), k.push(E.charCodeAt(ne));
|
|
2540
|
+
for (V = K > 0 ? K + 1 : 0; V < L; ) {
|
|
2541
|
+
for (I = U, F = 1, _ = i; V >= L && R("invalid-input"), Q = oe(E.charCodeAt(V++)), (Q >= i || Q > p((o - U) / F)) && R("overflow"), U += Q * F, W = _ <= z ? l : _ >= z + d ? d : _ - z, !(Q < W); _ += i)
|
|
2542
|
+
Y = i - W, F > p(o / Y) && R("overflow"), F *= Y;
|
|
2543
|
+
q = k.length + 1, z = D(U - I, q, I == 0), p(U / q) > o - J && R("overflow"), J += p(U / q), U %= q, k.splice(U++, 0, J);
|
|
2231
2544
|
}
|
|
2232
|
-
return
|
|
2545
|
+
return P(k);
|
|
2233
2546
|
}
|
|
2234
2547
|
function Z(E) {
|
|
2235
|
-
var
|
|
2236
|
-
for (E =
|
|
2237
|
-
|
|
2238
|
-
for (q =
|
|
2548
|
+
var k, L, q, U, J, z, K, ne, V, I, F, _ = [], Q, W, Y, ae;
|
|
2549
|
+
for (E = B(E), Q = E.length, k = x, L = 0, J = h, z = 0; z < Q; ++z)
|
|
2550
|
+
F = E[z], F < 128 && _.push(O(F));
|
|
2551
|
+
for (q = U = _.length, U && _.push($); q < Q; ) {
|
|
2239
2552
|
for (K = o, z = 0; z < Q; ++z)
|
|
2240
|
-
|
|
2241
|
-
for (W = q + 1, K -
|
|
2242
|
-
if (
|
|
2243
|
-
for (ne =
|
|
2244
|
-
ae = ne -
|
|
2245
|
-
O(H(
|
|
2553
|
+
F = E[z], F >= k && F < K && (K = F);
|
|
2554
|
+
for (W = q + 1, K - k > p((o - L) / W) && R("overflow"), L += (K - k) * W, k = K, z = 0; z < Q; ++z)
|
|
2555
|
+
if (F = E[z], F < k && ++L > o && R("overflow"), F == k) {
|
|
2556
|
+
for (ne = L, V = i; I = V <= J ? l : V >= J + d ? d : V - J, !(ne < I); V += i)
|
|
2557
|
+
ae = ne - I, Y = i - I, _.push(
|
|
2558
|
+
O(H(I + ae % Y, 0))
|
|
2246
2559
|
), ne = p(ae / Y);
|
|
2247
|
-
|
|
2560
|
+
_.push(O(H(ne, 0))), J = D(L, W, q == U), L = 0, ++q;
|
|
2248
2561
|
}
|
|
2249
|
-
++
|
|
2562
|
+
++L, ++k;
|
|
2250
2563
|
}
|
|
2251
|
-
return
|
|
2564
|
+
return _.join("");
|
|
2252
2565
|
}
|
|
2253
|
-
function
|
|
2254
|
-
return
|
|
2255
|
-
return u.test(
|
|
2566
|
+
function A(E) {
|
|
2567
|
+
return N(E, function(k) {
|
|
2568
|
+
return u.test(k) ? se(k.slice(4).toLowerCase()) : k;
|
|
2256
2569
|
});
|
|
2257
2570
|
}
|
|
2258
2571
|
function re(E) {
|
|
2259
|
-
return
|
|
2260
|
-
return m.test(
|
|
2572
|
+
return N(E, function(k) {
|
|
2573
|
+
return m.test(k) ? "xn--" + Z(k) : k;
|
|
2261
2574
|
});
|
|
2262
2575
|
}
|
|
2263
2576
|
if (r = {
|
|
@@ -2275,13 +2588,13 @@ function Fi() {
|
|
|
2275
2588
|
* @type Object
|
|
2276
2589
|
*/
|
|
2277
2590
|
ucs2: {
|
|
2278
|
-
decode:
|
|
2279
|
-
encode:
|
|
2591
|
+
decode: B,
|
|
2592
|
+
encode: P
|
|
2280
2593
|
},
|
|
2281
2594
|
decode: se,
|
|
2282
2595
|
encode: Z,
|
|
2283
2596
|
toASCII: re,
|
|
2284
|
-
toUnicode:
|
|
2597
|
+
toUnicode: A
|
|
2285
2598
|
}, a && c)
|
|
2286
2599
|
if (e.exports == a)
|
|
2287
2600
|
c.exports = r;
|
|
@@ -2290,31 +2603,31 @@ function Fi() {
|
|
|
2290
2603
|
r.hasOwnProperty(g) && (a[g] = r[g]);
|
|
2291
2604
|
else
|
|
2292
2605
|
t.punycode = r;
|
|
2293
|
-
})(
|
|
2606
|
+
})(Wi);
|
|
2294
2607
|
}(Ue, Ue.exports)), Ue.exports;
|
|
2295
2608
|
}
|
|
2296
2609
|
var gt, nn;
|
|
2297
|
-
function
|
|
2610
|
+
function ja() {
|
|
2298
2611
|
return nn || (nn = 1, gt = Object), gt;
|
|
2299
2612
|
}
|
|
2300
2613
|
var vt, an;
|
|
2301
|
-
function
|
|
2614
|
+
function Vi() {
|
|
2302
2615
|
return an || (an = 1, vt = Error), vt;
|
|
2303
2616
|
}
|
|
2304
2617
|
var bt, on;
|
|
2305
|
-
function
|
|
2618
|
+
function Gi() {
|
|
2306
2619
|
return on || (on = 1, bt = EvalError), bt;
|
|
2307
2620
|
}
|
|
2308
2621
|
var xt, sn;
|
|
2309
|
-
function
|
|
2622
|
+
function Di() {
|
|
2310
2623
|
return sn || (sn = 1, xt = RangeError), xt;
|
|
2311
2624
|
}
|
|
2312
2625
|
var $t, ln;
|
|
2313
|
-
function
|
|
2626
|
+
function Qi() {
|
|
2314
2627
|
return ln || (ln = 1, $t = ReferenceError), $t;
|
|
2315
2628
|
}
|
|
2316
2629
|
var jt, cn;
|
|
2317
|
-
function
|
|
2630
|
+
function wa() {
|
|
2318
2631
|
return cn || (cn = 1, jt = SyntaxError), jt;
|
|
2319
2632
|
}
|
|
2320
2633
|
var wt, un;
|
|
@@ -2322,57 +2635,57 @@ function He() {
|
|
|
2322
2635
|
return un || (un = 1, wt = TypeError), wt;
|
|
2323
2636
|
}
|
|
2324
2637
|
var St, fn;
|
|
2325
|
-
function
|
|
2638
|
+
function Ki() {
|
|
2326
2639
|
return fn || (fn = 1, St = URIError), St;
|
|
2327
2640
|
}
|
|
2328
2641
|
var Ot, pn;
|
|
2329
|
-
function
|
|
2642
|
+
function Yi() {
|
|
2330
2643
|
return pn || (pn = 1, Ot = Math.abs), Ot;
|
|
2331
2644
|
}
|
|
2332
2645
|
var Tt, dn;
|
|
2333
|
-
function
|
|
2646
|
+
function Xi() {
|
|
2334
2647
|
return dn || (dn = 1, Tt = Math.floor), Tt;
|
|
2335
2648
|
}
|
|
2336
2649
|
var Pt, hn;
|
|
2337
|
-
function
|
|
2650
|
+
function Zi() {
|
|
2338
2651
|
return hn || (hn = 1, Pt = Math.max), Pt;
|
|
2339
2652
|
}
|
|
2340
2653
|
var Ct, yn;
|
|
2341
|
-
function
|
|
2654
|
+
function es() {
|
|
2342
2655
|
return yn || (yn = 1, Ct = Math.min), Ct;
|
|
2343
2656
|
}
|
|
2344
2657
|
var qt, mn;
|
|
2345
|
-
function
|
|
2658
|
+
function ts() {
|
|
2346
2659
|
return mn || (mn = 1, qt = Math.pow), qt;
|
|
2347
2660
|
}
|
|
2348
2661
|
var Et, gn;
|
|
2349
|
-
function
|
|
2662
|
+
function rs() {
|
|
2350
2663
|
return gn || (gn = 1, Et = Math.round), Et;
|
|
2351
2664
|
}
|
|
2352
2665
|
var Rt, vn;
|
|
2353
|
-
function
|
|
2666
|
+
function ns() {
|
|
2354
2667
|
return vn || (vn = 1, Rt = Number.isNaN || function(n) {
|
|
2355
2668
|
return n !== n;
|
|
2356
2669
|
}), Rt;
|
|
2357
2670
|
}
|
|
2358
2671
|
var kt, bn;
|
|
2359
|
-
function
|
|
2672
|
+
function as() {
|
|
2360
2673
|
if (bn) return kt;
|
|
2361
2674
|
bn = 1;
|
|
2362
|
-
var e = /* @__PURE__ */
|
|
2675
|
+
var e = /* @__PURE__ */ ns();
|
|
2363
2676
|
return kt = function(t) {
|
|
2364
2677
|
return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2365
2678
|
}, kt;
|
|
2366
2679
|
}
|
|
2367
2680
|
var Nt, xn;
|
|
2368
|
-
function
|
|
2681
|
+
function os() {
|
|
2369
2682
|
return xn || (xn = 1, Nt = Object.getOwnPropertyDescriptor), Nt;
|
|
2370
2683
|
}
|
|
2371
2684
|
var At, $n;
|
|
2372
2685
|
function tt() {
|
|
2373
2686
|
if ($n) return At;
|
|
2374
2687
|
$n = 1;
|
|
2375
|
-
var e = /* @__PURE__ */
|
|
2688
|
+
var e = /* @__PURE__ */ os();
|
|
2376
2689
|
if (e)
|
|
2377
2690
|
try {
|
|
2378
2691
|
e([], "length");
|
|
@@ -2395,7 +2708,7 @@ function rt() {
|
|
|
2395
2708
|
return It = e, It;
|
|
2396
2709
|
}
|
|
2397
2710
|
var Ut, wn;
|
|
2398
|
-
function
|
|
2711
|
+
function is() {
|
|
2399
2712
|
return wn || (wn = 1, Ut = function() {
|
|
2400
2713
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2401
2714
|
return !1;
|
|
@@ -2425,27 +2738,27 @@ function Zi() {
|
|
|
2425
2738
|
}), Ut;
|
|
2426
2739
|
}
|
|
2427
2740
|
var Lt, Sn;
|
|
2428
|
-
function
|
|
2741
|
+
function ss() {
|
|
2429
2742
|
if (Sn) return Lt;
|
|
2430
2743
|
Sn = 1;
|
|
2431
|
-
var e = typeof Symbol < "u" && Symbol, n =
|
|
2744
|
+
var e = typeof Symbol < "u" && Symbol, n = is();
|
|
2432
2745
|
return Lt = function() {
|
|
2433
2746
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
|
|
2434
2747
|
}, Lt;
|
|
2435
2748
|
}
|
|
2436
2749
|
var Ft, On;
|
|
2437
|
-
function
|
|
2750
|
+
function Sa() {
|
|
2438
2751
|
return On || (On = 1, Ft = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ft;
|
|
2439
2752
|
}
|
|
2440
2753
|
var _t, Tn;
|
|
2441
|
-
function
|
|
2754
|
+
function Oa() {
|
|
2442
2755
|
if (Tn) return _t;
|
|
2443
2756
|
Tn = 1;
|
|
2444
|
-
var e = /* @__PURE__ */
|
|
2757
|
+
var e = /* @__PURE__ */ ja();
|
|
2445
2758
|
return _t = e.getPrototypeOf || null, _t;
|
|
2446
2759
|
}
|
|
2447
2760
|
var Bt, Pn;
|
|
2448
|
-
function
|
|
2761
|
+
function ls() {
|
|
2449
2762
|
if (Pn) return Bt;
|
|
2450
2763
|
Pn = 1;
|
|
2451
2764
|
var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, t = Math.max, a = "[object Function]", c = function(i, l) {
|
|
@@ -2493,33 +2806,33 @@ var Ht, Cn;
|
|
|
2493
2806
|
function Me() {
|
|
2494
2807
|
if (Cn) return Ht;
|
|
2495
2808
|
Cn = 1;
|
|
2496
|
-
var e =
|
|
2809
|
+
var e = ls();
|
|
2497
2810
|
return Ht = Function.prototype.bind || e, Ht;
|
|
2498
2811
|
}
|
|
2499
2812
|
var Mt, qn;
|
|
2500
|
-
function
|
|
2813
|
+
function wr() {
|
|
2501
2814
|
return qn || (qn = 1, Mt = Function.prototype.call), Mt;
|
|
2502
2815
|
}
|
|
2503
2816
|
var zt, En;
|
|
2504
|
-
function
|
|
2817
|
+
function Sr() {
|
|
2505
2818
|
return En || (En = 1, zt = Function.prototype.apply), zt;
|
|
2506
2819
|
}
|
|
2507
2820
|
var Wt, Rn;
|
|
2508
|
-
function
|
|
2821
|
+
function cs() {
|
|
2509
2822
|
return Rn || (Rn = 1, Wt = typeof Reflect < "u" && Reflect && Reflect.apply), Wt;
|
|
2510
2823
|
}
|
|
2511
2824
|
var Jt, kn;
|
|
2512
|
-
function
|
|
2825
|
+
function Ta() {
|
|
2513
2826
|
if (kn) return Jt;
|
|
2514
2827
|
kn = 1;
|
|
2515
|
-
var e = Me(), n =
|
|
2828
|
+
var e = Me(), n = Sr(), t = wr(), a = cs();
|
|
2516
2829
|
return Jt = a || e.call(t, n), Jt;
|
|
2517
2830
|
}
|
|
2518
2831
|
var Vt, Nn;
|
|
2519
|
-
function
|
|
2832
|
+
function Pa() {
|
|
2520
2833
|
if (Nn) return Vt;
|
|
2521
2834
|
Nn = 1;
|
|
2522
|
-
var e = Me(), n = /* @__PURE__ */ He(), t =
|
|
2835
|
+
var e = Me(), n = /* @__PURE__ */ He(), t = wr(), a = Ta();
|
|
2523
2836
|
return Vt = function(s) {
|
|
2524
2837
|
if (s.length < 1 || typeof s[0] != "function")
|
|
2525
2838
|
throw new n("a function is required");
|
|
@@ -2527,10 +2840,10 @@ function wa() {
|
|
|
2527
2840
|
}, Vt;
|
|
2528
2841
|
}
|
|
2529
2842
|
var Gt, An;
|
|
2530
|
-
function
|
|
2843
|
+
function us() {
|
|
2531
2844
|
if (An) return Gt;
|
|
2532
2845
|
An = 1;
|
|
2533
|
-
var e =
|
|
2846
|
+
var e = Pa(), n = /* @__PURE__ */ tt(), t;
|
|
2534
2847
|
try {
|
|
2535
2848
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2536
2849
|
[].__proto__ === Array.prototype;
|
|
@@ -2551,10 +2864,10 @@ function ns() {
|
|
|
2551
2864
|
) : !1, Gt;
|
|
2552
2865
|
}
|
|
2553
2866
|
var Dt, In;
|
|
2554
|
-
function
|
|
2867
|
+
function fs() {
|
|
2555
2868
|
if (In) return Dt;
|
|
2556
2869
|
In = 1;
|
|
2557
|
-
var e =
|
|
2870
|
+
var e = Sa(), n = Oa(), t = /* @__PURE__ */ us();
|
|
2558
2871
|
return Dt = e ? function(c) {
|
|
2559
2872
|
return e(c);
|
|
2560
2873
|
} : n ? function(c) {
|
|
@@ -2566,44 +2879,44 @@ function as() {
|
|
|
2566
2879
|
} : null, Dt;
|
|
2567
2880
|
}
|
|
2568
2881
|
var Qt, Un;
|
|
2569
|
-
function
|
|
2882
|
+
function ps() {
|
|
2570
2883
|
if (Un) return Qt;
|
|
2571
2884
|
Un = 1;
|
|
2572
2885
|
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t = Me();
|
|
2573
2886
|
return Qt = t.call(e, n), Qt;
|
|
2574
2887
|
}
|
|
2575
2888
|
var Kt, Ln;
|
|
2576
|
-
function
|
|
2889
|
+
function Or() {
|
|
2577
2890
|
if (Ln) return Kt;
|
|
2578
2891
|
Ln = 1;
|
|
2579
|
-
var e, n = /* @__PURE__ */
|
|
2892
|
+
var e, n = /* @__PURE__ */ ja(), t = /* @__PURE__ */ Vi(), a = /* @__PURE__ */ Gi(), c = /* @__PURE__ */ Di(), s = /* @__PURE__ */ Qi(), r = /* @__PURE__ */ wa(), o = /* @__PURE__ */ He(), i = /* @__PURE__ */ Ki(), l = /* @__PURE__ */ Yi(), d = /* @__PURE__ */ Xi(), y = /* @__PURE__ */ Zi(), f = /* @__PURE__ */ es(), h = /* @__PURE__ */ ts(), x = /* @__PURE__ */ rs(), $ = /* @__PURE__ */ as(), u = Function, m = function(V) {
|
|
2580
2893
|
try {
|
|
2581
2894
|
return u('"use strict"; return (' + V + ").constructor;")();
|
|
2582
2895
|
} catch {
|
|
2583
2896
|
}
|
|
2584
|
-
}, v = /* @__PURE__ */ tt(), S = /* @__PURE__ */ rt(),
|
|
2897
|
+
}, v = /* @__PURE__ */ tt(), S = /* @__PURE__ */ rt(), T = function() {
|
|
2585
2898
|
throw new o();
|
|
2586
2899
|
}, p = v ? function() {
|
|
2587
2900
|
try {
|
|
2588
|
-
return arguments.callee,
|
|
2901
|
+
return arguments.callee, T;
|
|
2589
2902
|
} catch {
|
|
2590
2903
|
try {
|
|
2591
2904
|
return v(arguments, "callee").get;
|
|
2592
2905
|
} catch {
|
|
2593
|
-
return
|
|
2906
|
+
return T;
|
|
2594
2907
|
}
|
|
2595
2908
|
}
|
|
2596
|
-
}() :
|
|
2909
|
+
}() : T, O = ss()(), g = fs(), R = Oa(), C = Sa(), N = Sr(), B = wr(), P = {}, oe = typeof Uint8Array > "u" || !g ? e : g(Uint8Array), H = {
|
|
2597
2910
|
__proto__: null,
|
|
2598
2911
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
2599
2912
|
"%Array%": Array,
|
|
2600
2913
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
2601
2914
|
"%ArrayIteratorPrototype%": O && g ? g([][Symbol.iterator]()) : e,
|
|
2602
2915
|
"%AsyncFromSyncIteratorPrototype%": e,
|
|
2603
|
-
"%AsyncFunction%":
|
|
2604
|
-
"%AsyncGenerator%":
|
|
2605
|
-
"%AsyncGeneratorFunction%":
|
|
2606
|
-
"%AsyncIteratorPrototype%":
|
|
2916
|
+
"%AsyncFunction%": P,
|
|
2917
|
+
"%AsyncGenerator%": P,
|
|
2918
|
+
"%AsyncGeneratorFunction%": P,
|
|
2919
|
+
"%AsyncIteratorPrototype%": P,
|
|
2607
2920
|
"%Atomics%": typeof Atomics > "u" ? e : Atomics,
|
|
2608
2921
|
"%BigInt%": typeof BigInt > "u" ? e : BigInt,
|
|
2609
2922
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? e : BigInt64Array,
|
|
@@ -2624,7 +2937,7 @@ function wr() {
|
|
|
2624
2937
|
"%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
|
|
2625
2938
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
|
|
2626
2939
|
"%Function%": u,
|
|
2627
|
-
"%GeneratorFunction%":
|
|
2940
|
+
"%GeneratorFunction%": P,
|
|
2628
2941
|
"%Int8Array%": typeof Int8Array > "u" ? e : Int8Array,
|
|
2629
2942
|
"%Int16Array%": typeof Int16Array > "u" ? e : Int16Array,
|
|
2630
2943
|
"%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
|
|
@@ -2664,8 +2977,8 @@ function wr() {
|
|
|
2664
2977
|
"%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
|
|
2665
2978
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
2666
2979
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
|
|
2667
|
-
"%Function.prototype.call%":
|
|
2668
|
-
"%Function.prototype.apply%":
|
|
2980
|
+
"%Function.prototype.call%": B,
|
|
2981
|
+
"%Function.prototype.apply%": N,
|
|
2669
2982
|
"%Object.defineProperty%": S,
|
|
2670
2983
|
"%Object.getPrototypeOf%": R,
|
|
2671
2984
|
"%Math.abs%": l,
|
|
@@ -2684,22 +2997,22 @@ function wr() {
|
|
|
2684
2997
|
var D = g(g(V));
|
|
2685
2998
|
H["%Error.prototype%"] = D;
|
|
2686
2999
|
}
|
|
2687
|
-
var se = function V(
|
|
2688
|
-
var
|
|
2689
|
-
if (
|
|
2690
|
-
|
|
2691
|
-
else if (
|
|
2692
|
-
|
|
2693
|
-
else if (
|
|
2694
|
-
|
|
2695
|
-
else if (
|
|
2696
|
-
var
|
|
2697
|
-
|
|
2698
|
-
} else if (
|
|
3000
|
+
var se = function V(I) {
|
|
3001
|
+
var F;
|
|
3002
|
+
if (I === "%AsyncFunction%")
|
|
3003
|
+
F = m("async function () {}");
|
|
3004
|
+
else if (I === "%GeneratorFunction%")
|
|
3005
|
+
F = m("function* () {}");
|
|
3006
|
+
else if (I === "%AsyncGeneratorFunction%")
|
|
3007
|
+
F = m("async function* () {}");
|
|
3008
|
+
else if (I === "%AsyncGenerator%") {
|
|
3009
|
+
var _ = V("%AsyncGeneratorFunction%");
|
|
3010
|
+
_ && (F = _.prototype);
|
|
3011
|
+
} else if (I === "%AsyncIteratorPrototype%") {
|
|
2699
3012
|
var Q = V("%AsyncGenerator%");
|
|
2700
|
-
Q && g && (
|
|
3013
|
+
Q && g && (F = g(Q.prototype));
|
|
2701
3014
|
}
|
|
2702
|
-
return H[
|
|
3015
|
+
return H[I] = F, F;
|
|
2703
3016
|
}, Z = {
|
|
2704
3017
|
__proto__: null,
|
|
2705
3018
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -2753,52 +3066,52 @@ function wr() {
|
|
|
2753
3066
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2754
3067
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2755
3068
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2756
|
-
},
|
|
2757
|
-
var
|
|
2758
|
-
if (
|
|
3069
|
+
}, A = Me(), re = /* @__PURE__ */ ps(), E = A.call(B, Array.prototype.concat), k = A.call(N, Array.prototype.splice), L = A.call(B, String.prototype.replace), q = A.call(B, String.prototype.slice), U = A.call(B, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(I) {
|
|
3070
|
+
var F = q(I, 0, 1), _ = q(I, -1);
|
|
3071
|
+
if (F === "%" && _ !== "%")
|
|
2759
3072
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
2760
|
-
if (
|
|
3073
|
+
if (_ === "%" && F !== "%")
|
|
2761
3074
|
throw new r("invalid intrinsic syntax, expected opening `%`");
|
|
2762
3075
|
var Q = [];
|
|
2763
|
-
return
|
|
2764
|
-
Q[Q.length] = ae ?
|
|
3076
|
+
return L(I, J, function(W, Y, ae, he) {
|
|
3077
|
+
Q[Q.length] = ae ? L(he, z, "$1") : Y || W;
|
|
2765
3078
|
}), Q;
|
|
2766
|
-
}, ne = function(
|
|
2767
|
-
var
|
|
2768
|
-
if (re(Z,
|
|
2769
|
-
var W = H[
|
|
2770
|
-
if (W ===
|
|
2771
|
-
throw new o("intrinsic " +
|
|
3079
|
+
}, ne = function(I, F) {
|
|
3080
|
+
var _ = I, Q;
|
|
3081
|
+
if (re(Z, _) && (Q = Z[_], _ = "%" + Q[0] + "%"), re(H, _)) {
|
|
3082
|
+
var W = H[_];
|
|
3083
|
+
if (W === P && (W = se(_)), typeof W > "u" && !F)
|
|
3084
|
+
throw new o("intrinsic " + I + " exists, but is not available. Please file an issue!");
|
|
2772
3085
|
return {
|
|
2773
3086
|
alias: Q,
|
|
2774
|
-
name:
|
|
3087
|
+
name: _,
|
|
2775
3088
|
value: W
|
|
2776
3089
|
};
|
|
2777
3090
|
}
|
|
2778
|
-
throw new r("intrinsic " +
|
|
3091
|
+
throw new r("intrinsic " + I + " does not exist!");
|
|
2779
3092
|
};
|
|
2780
|
-
return Kt = function(
|
|
2781
|
-
if (typeof
|
|
3093
|
+
return Kt = function(I, F) {
|
|
3094
|
+
if (typeof I != "string" || I.length === 0)
|
|
2782
3095
|
throw new o("intrinsic name must be a non-empty string");
|
|
2783
|
-
if (arguments.length > 1 && typeof
|
|
3096
|
+
if (arguments.length > 1 && typeof F != "boolean")
|
|
2784
3097
|
throw new o('"allowMissing" argument must be a boolean');
|
|
2785
|
-
if (
|
|
3098
|
+
if (U(/^%?[^%]*%?$/, I) === null)
|
|
2786
3099
|
throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2787
|
-
var
|
|
2788
|
-
we && (Q = we[0],
|
|
2789
|
-
for (var Ce = 1, Se = !0; Ce <
|
|
2790
|
-
var ye =
|
|
3100
|
+
var _ = K(I), Q = _.length > 0 ? _[0] : "", W = ne("%" + Q + "%", F), Y = W.name, ae = W.value, he = !1, we = W.alias;
|
|
3101
|
+
we && (Q = we[0], k(_, E([0, 1], we)));
|
|
3102
|
+
for (var Ce = 1, Se = !0; Ce < _.length; Ce += 1) {
|
|
3103
|
+
var ye = _[Ce], qe = q(ye, 0, 1), Ee = q(ye, -1);
|
|
2791
3104
|
if ((qe === '"' || qe === "'" || qe === "`" || Ee === '"' || Ee === "'" || Ee === "`") && qe !== Ee)
|
|
2792
3105
|
throw new r("property names with quotes must have matching quotes");
|
|
2793
3106
|
if ((ye === "constructor" || !Se) && (he = !0), Q += "." + ye, Y = "%" + Q + "%", re(H, Y))
|
|
2794
3107
|
ae = H[Y];
|
|
2795
3108
|
else if (ae != null) {
|
|
2796
3109
|
if (!(ye in ae)) {
|
|
2797
|
-
if (!
|
|
2798
|
-
throw new o("base intrinsic for " +
|
|
3110
|
+
if (!F)
|
|
3111
|
+
throw new o("base intrinsic for " + I + " exists, but the property is not available.");
|
|
2799
3112
|
return;
|
|
2800
3113
|
}
|
|
2801
|
-
if (v && Ce + 1 >=
|
|
3114
|
+
if (v && Ce + 1 >= _.length) {
|
|
2802
3115
|
var Oe = v(ae, ye);
|
|
2803
3116
|
Se = !!Oe, Se && "get" in Oe && !("originalValue" in Oe.get) ? ae = Oe.get : ae = ae[ye];
|
|
2804
3117
|
} else
|
|
@@ -2810,10 +3123,10 @@ function wr() {
|
|
|
2810
3123
|
}, Kt;
|
|
2811
3124
|
}
|
|
2812
3125
|
var Yt = { exports: {} }, Xt, Fn;
|
|
2813
|
-
function
|
|
3126
|
+
function ds() {
|
|
2814
3127
|
if (Fn) return Xt;
|
|
2815
3128
|
Fn = 1;
|
|
2816
|
-
var e = /* @__PURE__ */ rt(), n = /* @__PURE__ */
|
|
3129
|
+
var e = /* @__PURE__ */ rt(), n = /* @__PURE__ */ wa(), t = /* @__PURE__ */ He(), a = /* @__PURE__ */ tt();
|
|
2817
3130
|
return Xt = function(s, r, o) {
|
|
2818
3131
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
2819
3132
|
throw new t("`obj` must be an object or a function`");
|
|
@@ -2842,7 +3155,7 @@ function is() {
|
|
|
2842
3155
|
}, Xt;
|
|
2843
3156
|
}
|
|
2844
3157
|
var Zt, _n;
|
|
2845
|
-
function
|
|
3158
|
+
function hs() {
|
|
2846
3159
|
if (_n) return Zt;
|
|
2847
3160
|
_n = 1;
|
|
2848
3161
|
var e = /* @__PURE__ */ rt(), n = function() {
|
|
@@ -2859,10 +3172,10 @@ function ss() {
|
|
|
2859
3172
|
}, Zt = n, Zt;
|
|
2860
3173
|
}
|
|
2861
3174
|
var er, Bn;
|
|
2862
|
-
function
|
|
3175
|
+
function ys() {
|
|
2863
3176
|
if (Bn) return er;
|
|
2864
3177
|
Bn = 1;
|
|
2865
|
-
var e = /* @__PURE__ */
|
|
3178
|
+
var e = /* @__PURE__ */ Or(), n = /* @__PURE__ */ ds(), t = /* @__PURE__ */ hs()(), a = /* @__PURE__ */ tt(), c = /* @__PURE__ */ He(), s = e("%Math.floor%");
|
|
2866
3179
|
return er = function(o, i) {
|
|
2867
3180
|
if (typeof o != "function")
|
|
2868
3181
|
throw new c("`fn` is not a function");
|
|
@@ -2889,18 +3202,18 @@ function ls() {
|
|
|
2889
3202
|
}, er;
|
|
2890
3203
|
}
|
|
2891
3204
|
var tr, Hn;
|
|
2892
|
-
function
|
|
3205
|
+
function ms() {
|
|
2893
3206
|
if (Hn) return tr;
|
|
2894
3207
|
Hn = 1;
|
|
2895
|
-
var e = Me(), n =
|
|
3208
|
+
var e = Me(), n = Sr(), t = Ta();
|
|
2896
3209
|
return tr = function() {
|
|
2897
3210
|
return t(e, n, arguments);
|
|
2898
3211
|
}, tr;
|
|
2899
3212
|
}
|
|
2900
3213
|
var Mn;
|
|
2901
|
-
function
|
|
3214
|
+
function gs() {
|
|
2902
3215
|
return Mn || (Mn = 1, function(e) {
|
|
2903
|
-
var n = /* @__PURE__ */
|
|
3216
|
+
var n = /* @__PURE__ */ ys(), t = /* @__PURE__ */ rt(), a = Pa(), c = ms();
|
|
2904
3217
|
e.exports = function(r) {
|
|
2905
3218
|
var o = a(arguments), i = r.length - (arguments.length - 1);
|
|
2906
3219
|
return n(
|
|
@@ -2912,32 +3225,32 @@ function us() {
|
|
|
2912
3225
|
}(Yt)), Yt.exports;
|
|
2913
3226
|
}
|
|
2914
3227
|
var rr, zn;
|
|
2915
|
-
function
|
|
3228
|
+
function vs() {
|
|
2916
3229
|
if (zn) return rr;
|
|
2917
3230
|
zn = 1;
|
|
2918
|
-
var e = /* @__PURE__ */
|
|
3231
|
+
var e = /* @__PURE__ */ Or(), n = gs(), t = n(e("String.prototype.indexOf"));
|
|
2919
3232
|
return rr = function(c, s) {
|
|
2920
3233
|
var r = e(c, !!s);
|
|
2921
3234
|
return typeof r == "function" && t(c, ".prototype.") > -1 ? n(r) : r;
|
|
2922
3235
|
}, rr;
|
|
2923
3236
|
}
|
|
2924
|
-
const
|
|
3237
|
+
const bs = {}, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2925
3238
|
__proto__: null,
|
|
2926
|
-
default:
|
|
2927
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3239
|
+
default: bs
|
|
3240
|
+
}, Symbol.toStringTag, { value: "Module" })), $s = /* @__PURE__ */ ho(xs);
|
|
2928
3241
|
var nr, Wn;
|
|
2929
|
-
function
|
|
3242
|
+
function js() {
|
|
2930
3243
|
if (Wn) return nr;
|
|
2931
3244
|
Wn = 1;
|
|
2932
|
-
var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = c && s && typeof s.get == "function" ? s.get : null, o = c && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, f = typeof WeakRef == "function" && WeakRef.prototype, h = f ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, $ = Object.prototype.toString, u = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace,
|
|
3245
|
+
var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = c && s && typeof s.get == "function" ? s.get : null, o = c && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, f = typeof WeakRef == "function" && WeakRef.prototype, h = f ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, $ = Object.prototype.toString, u = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, T = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, g = Array.prototype.concat, R = Array.prototype.join, C = Array.prototype.slice, N = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(j) {
|
|
2933
3246
|
return j.__proto__;
|
|
2934
3247
|
} : null);
|
|
2935
|
-
function
|
|
3248
|
+
function A(j, w) {
|
|
2936
3249
|
if (j === 1 / 0 || j === -1 / 0 || j !== j || j && j > -1e3 && j < 1e3 || O.call(/e/, w))
|
|
2937
3250
|
return w;
|
|
2938
3251
|
var X = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
2939
3252
|
if (typeof j == "number") {
|
|
2940
|
-
var ee = j < 0 ? -
|
|
3253
|
+
var ee = j < 0 ? -N(-j) : N(j);
|
|
2941
3254
|
if (ee !== j) {
|
|
2942
3255
|
var ie = String(ee), M = v.call(w, ie.length + 1);
|
|
2943
3256
|
return S.call(ie, X, "$&_") + "." + S.call(S.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
@@ -2945,7 +3258,7 @@ function ys() {
|
|
|
2945
3258
|
}
|
|
2946
3259
|
return S.call(w, X, "$&_");
|
|
2947
3260
|
}
|
|
2948
|
-
var re =
|
|
3261
|
+
var re = $s, E = re.custom, k = F(E) ? E : null;
|
|
2949
3262
|
nr = function j(w, X, ee, ie) {
|
|
2950
3263
|
var M = X || {};
|
|
2951
3264
|
if (W(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
|
|
@@ -2972,15 +3285,15 @@ function ys() {
|
|
|
2972
3285
|
if (w === 0)
|
|
2973
3286
|
return 1 / 0 / w > 0 ? "0" : "-0";
|
|
2974
3287
|
var de = String(w);
|
|
2975
|
-
return Te ?
|
|
3288
|
+
return Te ? A(w, de) : de;
|
|
2976
3289
|
}
|
|
2977
3290
|
if (typeof w == "bigint") {
|
|
2978
3291
|
var xe = String(w) + "n";
|
|
2979
|
-
return Te ?
|
|
3292
|
+
return Te ? A(w, xe) : xe;
|
|
2980
3293
|
}
|
|
2981
3294
|
var ot = typeof M.depth > "u" ? 5 : M.depth;
|
|
2982
3295
|
if (typeof ee > "u" && (ee = 0), ee >= ot && ot > 0 && typeof w == "object")
|
|
2983
|
-
return
|
|
3296
|
+
return U(w) ? "[Array]" : "[Object]";
|
|
2984
3297
|
var Re = ka(M, ee);
|
|
2985
3298
|
if (typeof ie > "u")
|
|
2986
3299
|
ie = [];
|
|
@@ -2999,16 +3312,16 @@ function ys() {
|
|
|
2999
3312
|
var Cr = ae(w), qr = ze(w, me);
|
|
3000
3313
|
return "[Function" + (Cr ? ": " + Cr : " (anonymous)") + "]" + (qr.length > 0 ? " { " + R.call(qr, ", ") + " }" : "");
|
|
3001
3314
|
}
|
|
3002
|
-
if (
|
|
3315
|
+
if (F(w)) {
|
|
3003
3316
|
var Er = H ? S.call(String(w), /^(Symbol\(.*\))_[^)]*$/, "$1") : oe.call(w);
|
|
3004
3317
|
return typeof w == "object" && !H ? Ae(Er) : Er;
|
|
3005
3318
|
}
|
|
3006
3319
|
if (Ee(w)) {
|
|
3007
3320
|
for (var Ie = "<" + p.call(String(w.nodeName)), it = w.attributes || [], We = 0; We < it.length; We++)
|
|
3008
|
-
Ie += " " + it[We].name + "=" +
|
|
3321
|
+
Ie += " " + it[We].name + "=" + L(q(it[We].value), "double", M);
|
|
3009
3322
|
return Ie += ">", w.childNodes && w.childNodes.length && (Ie += "..."), Ie += "</" + p.call(String(w.nodeName)) + ">", Ie;
|
|
3010
3323
|
}
|
|
3011
|
-
if (
|
|
3324
|
+
if (U(w)) {
|
|
3012
3325
|
if (w.length === 0)
|
|
3013
3326
|
return "[]";
|
|
3014
3327
|
var st = ze(w, me);
|
|
@@ -3019,7 +3332,7 @@ function ys() {
|
|
|
3019
3332
|
return !("cause" in Error.prototype) && "cause" in w && !se.call(w, "cause") ? "{ [" + String(w) + "] " + R.call(g.call("[cause]: " + me(w.cause), lt), ", ") + " }" : lt.length === 0 ? "[" + String(w) + "]" : "{ [" + String(w) + "] " + R.call(lt, ", ") + " }";
|
|
3020
3333
|
}
|
|
3021
3334
|
if (typeof w == "object" && be) {
|
|
3022
|
-
if (
|
|
3335
|
+
if (k && typeof w[k] == "function" && re)
|
|
3023
3336
|
return re(w, { depth: ot - ee });
|
|
3024
3337
|
if (be !== "symbol" && typeof w.inspect == "function")
|
|
3025
3338
|
return w.inspect();
|
|
@@ -3044,9 +3357,9 @@ function ys() {
|
|
|
3044
3357
|
return nt("WeakRef");
|
|
3045
3358
|
if (V(w))
|
|
3046
3359
|
return Ae(me(Number(w)));
|
|
3047
|
-
if (
|
|
3048
|
-
return Ae(me(
|
|
3049
|
-
if (
|
|
3360
|
+
if (_(w))
|
|
3361
|
+
return Ae(me(B.call(w)));
|
|
3362
|
+
if (I(w))
|
|
3050
3363
|
return Ae(x.call(w));
|
|
3051
3364
|
if (ne(w))
|
|
3052
3365
|
return Ae(me(String(w)));
|
|
@@ -3060,14 +3373,14 @@ function ys() {
|
|
|
3060
3373
|
}
|
|
3061
3374
|
return String(w);
|
|
3062
3375
|
};
|
|
3063
|
-
function
|
|
3376
|
+
function L(j, w, X) {
|
|
3064
3377
|
var ee = (X.quoteStyle || w) === "double" ? '"' : "'";
|
|
3065
3378
|
return ee + j + ee;
|
|
3066
3379
|
}
|
|
3067
3380
|
function q(j) {
|
|
3068
3381
|
return S.call(String(j), /"/g, """);
|
|
3069
3382
|
}
|
|
3070
|
-
function
|
|
3383
|
+
function U(j) {
|
|
3071
3384
|
return Y(j) === "[object Array]" && (!D || !(typeof j == "object" && D in j));
|
|
3072
3385
|
}
|
|
3073
3386
|
function J(j) {
|
|
@@ -3085,10 +3398,10 @@ function ys() {
|
|
|
3085
3398
|
function V(j) {
|
|
3086
3399
|
return Y(j) === "[object Number]" && (!D || !(typeof j == "object" && D in j));
|
|
3087
3400
|
}
|
|
3088
|
-
function
|
|
3401
|
+
function I(j) {
|
|
3089
3402
|
return Y(j) === "[object Boolean]" && (!D || !(typeof j == "object" && D in j));
|
|
3090
3403
|
}
|
|
3091
|
-
function
|
|
3404
|
+
function F(j) {
|
|
3092
3405
|
if (H)
|
|
3093
3406
|
return j && typeof j == "object" && j instanceof Symbol;
|
|
3094
3407
|
if (typeof j == "symbol")
|
|
@@ -3101,11 +3414,11 @@ function ys() {
|
|
|
3101
3414
|
}
|
|
3102
3415
|
return !1;
|
|
3103
3416
|
}
|
|
3104
|
-
function
|
|
3105
|
-
if (!j || typeof j != "object" || !
|
|
3417
|
+
function _(j) {
|
|
3418
|
+
if (!j || typeof j != "object" || !B)
|
|
3106
3419
|
return !1;
|
|
3107
3420
|
try {
|
|
3108
|
-
return
|
|
3421
|
+
return B.call(j), !0;
|
|
3109
3422
|
} catch {
|
|
3110
3423
|
}
|
|
3111
3424
|
return !1;
|
|
@@ -3211,7 +3524,7 @@ function ys() {
|
|
|
3211
3524
|
return Oe(v.call(j, 0, w.maxStringLength), w) + ee;
|
|
3212
3525
|
}
|
|
3213
3526
|
var ie = S.call(S.call(j, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ea);
|
|
3214
|
-
return
|
|
3527
|
+
return L(ie, "single", w);
|
|
3215
3528
|
}
|
|
3216
3529
|
function Ea(j) {
|
|
3217
3530
|
var w = j.charCodeAt(0), X = {
|
|
@@ -3221,7 +3534,7 @@ function ys() {
|
|
|
3221
3534
|
12: "f",
|
|
3222
3535
|
13: "r"
|
|
3223
3536
|
}[w];
|
|
3224
|
-
return X ? "\\" + X : "\\x" + (w < 16 ? "0" : "") +
|
|
3537
|
+
return X ? "\\" + X : "\\x" + (w < 16 ? "0" : "") + T.call(w.toString(16));
|
|
3225
3538
|
}
|
|
3226
3539
|
function Ae(j) {
|
|
3227
3540
|
return "Object(" + j + ")";
|
|
@@ -3262,13 +3575,13 @@ function ys() {
|
|
|
3262
3575
|
` + w.prev;
|
|
3263
3576
|
}
|
|
3264
3577
|
function ze(j, w) {
|
|
3265
|
-
var X =
|
|
3578
|
+
var X = U(j), ee = [];
|
|
3266
3579
|
if (X) {
|
|
3267
3580
|
ee.length = j.length;
|
|
3268
3581
|
for (var ie = 0; ie < j.length; ie++)
|
|
3269
3582
|
ee[ie] = W(j, ie) ? w(j[ie], j) : "";
|
|
3270
3583
|
}
|
|
3271
|
-
var M = typeof
|
|
3584
|
+
var M = typeof P == "function" ? P(j) : [], be;
|
|
3272
3585
|
if (H) {
|
|
3273
3586
|
be = {};
|
|
3274
3587
|
for (var Te = 0; Te < M.length; Te++)
|
|
@@ -3276,7 +3589,7 @@ function ys() {
|
|
|
3276
3589
|
}
|
|
3277
3590
|
for (var de in j)
|
|
3278
3591
|
W(j, de) && (X && String(Number(de)) === de && de < j.length || H && be["$" + de] instanceof Symbol || (O.call(/[^\w$]/, de) ? ee.push(w(de, j) + ": " + w(j[de], j)) : ee.push(de + ": " + w(j[de], j))));
|
|
3279
|
-
if (typeof
|
|
3592
|
+
if (typeof P == "function")
|
|
3280
3593
|
for (var xe = 0; xe < M.length; xe++)
|
|
3281
3594
|
se.call(j, M[xe]) && ee.push("[" + w(M[xe]) + "]: " + w(j[M[xe]], j));
|
|
3282
3595
|
return ee;
|
|
@@ -3284,10 +3597,10 @@ function ys() {
|
|
|
3284
3597
|
return nr;
|
|
3285
3598
|
}
|
|
3286
3599
|
var ar, Jn;
|
|
3287
|
-
function
|
|
3600
|
+
function ws() {
|
|
3288
3601
|
if (Jn) return ar;
|
|
3289
3602
|
Jn = 1;
|
|
3290
|
-
var e = /* @__PURE__ */
|
|
3603
|
+
var e = /* @__PURE__ */ Or(), n = vs(), t = /* @__PURE__ */ js(), a = /* @__PURE__ */ He(), c = e("%WeakMap%", !0), s = e("%Map%", !0), r = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), d = n("Map.prototype.set", !0), y = n("Map.prototype.has", !0), f = function(u, m) {
|
|
3291
3604
|
for (var v = u, S; (S = v.next) !== null; v = S)
|
|
3292
3605
|
if (S.key === m)
|
|
3293
3606
|
return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -3308,9 +3621,9 @@ function ms() {
|
|
|
3308
3621
|
return !!f(u, m);
|
|
3309
3622
|
};
|
|
3310
3623
|
return ar = function() {
|
|
3311
|
-
var m, v, S,
|
|
3624
|
+
var m, v, S, T = {
|
|
3312
3625
|
assert: function(p) {
|
|
3313
|
-
if (!
|
|
3626
|
+
if (!T.has(p))
|
|
3314
3627
|
throw new a("Side channel does not contain " + t(p));
|
|
3315
3628
|
},
|
|
3316
3629
|
get: function(p) {
|
|
@@ -3338,11 +3651,11 @@ function ms() {
|
|
|
3338
3651
|
c && p && (typeof p == "object" || typeof p == "function") ? (m || (m = new c()), o(m, p, O)) : s ? (v || (v = new s()), d(v, p, O)) : (S || (S = { key: {}, next: null }), x(S, p, O));
|
|
3339
3652
|
}
|
|
3340
3653
|
};
|
|
3341
|
-
return
|
|
3654
|
+
return T;
|
|
3342
3655
|
}, ar;
|
|
3343
3656
|
}
|
|
3344
3657
|
var or, Vn;
|
|
3345
|
-
function
|
|
3658
|
+
function Tr() {
|
|
3346
3659
|
if (Vn) return or;
|
|
3347
3660
|
Vn = 1;
|
|
3348
3661
|
var e = String.prototype.replace, n = /%20/g, t = {
|
|
@@ -3364,10 +3677,10 @@ function Sr() {
|
|
|
3364
3677
|
}, or;
|
|
3365
3678
|
}
|
|
3366
3679
|
var ir, Gn;
|
|
3367
|
-
function
|
|
3680
|
+
function Ca() {
|
|
3368
3681
|
if (Gn) return ir;
|
|
3369
3682
|
Gn = 1;
|
|
3370
|
-
var e = /* @__PURE__ */
|
|
3683
|
+
var e = /* @__PURE__ */ Tr(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = function() {
|
|
3371
3684
|
for (var u = [], m = 0; m < 256; ++m)
|
|
3372
3685
|
u.push("%" + ((m < 16 ? "0" : "") + m.toString(16)).toUpperCase());
|
|
3373
3686
|
return u;
|
|
@@ -3375,14 +3688,14 @@ function Sa() {
|
|
|
3375
3688
|
for (; m.length > 1; ) {
|
|
3376
3689
|
var v = m.pop(), S = v.obj[v.prop];
|
|
3377
3690
|
if (t(S)) {
|
|
3378
|
-
for (var
|
|
3379
|
-
typeof S[p] < "u" &&
|
|
3380
|
-
v.obj[v.prop] =
|
|
3691
|
+
for (var T = [], p = 0; p < S.length; ++p)
|
|
3692
|
+
typeof S[p] < "u" && T.push(S[p]);
|
|
3693
|
+
v.obj[v.prop] = T;
|
|
3381
3694
|
}
|
|
3382
3695
|
}
|
|
3383
3696
|
}, s = function(m, v) {
|
|
3384
|
-
for (var S = v && v.plainObjects ? /* @__PURE__ */ Object.create(null) : {},
|
|
3385
|
-
typeof m[
|
|
3697
|
+
for (var S = v && v.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, T = 0; T < m.length; ++T)
|
|
3698
|
+
typeof m[T] < "u" && (S[T] = m[T]);
|
|
3386
3699
|
return S;
|
|
3387
3700
|
}, r = function u(m, v, S) {
|
|
3388
3701
|
if (!v)
|
|
@@ -3398,8 +3711,8 @@ function Sa() {
|
|
|
3398
3711
|
}
|
|
3399
3712
|
if (!m || typeof m != "object")
|
|
3400
3713
|
return [m].concat(v);
|
|
3401
|
-
var
|
|
3402
|
-
return t(m) && !t(v) && (
|
|
3714
|
+
var T = m;
|
|
3715
|
+
return t(m) && !t(v) && (T = s(m, S)), t(m) && t(v) ? (v.forEach(function(p, O) {
|
|
3403
3716
|
if (n.call(m, O)) {
|
|
3404
3717
|
var g = m[O];
|
|
3405
3718
|
g && typeof g == "object" && p && typeof p == "object" ? m[O] = u(g, p, S) : m.push(p);
|
|
@@ -3408,10 +3721,10 @@ function Sa() {
|
|
|
3408
3721
|
}), m) : Object.keys(v).reduce(function(p, O) {
|
|
3409
3722
|
var g = v[O];
|
|
3410
3723
|
return n.call(p, O) ? p[O] = u(p[O], g, S) : p[O] = g, p;
|
|
3411
|
-
},
|
|
3724
|
+
}, T);
|
|
3412
3725
|
}, o = function(m, v) {
|
|
3413
|
-
return Object.keys(v).reduce(function(S,
|
|
3414
|
-
return S[
|
|
3726
|
+
return Object.keys(v).reduce(function(S, T) {
|
|
3727
|
+
return S[T] = v[T], S;
|
|
3415
3728
|
}, m);
|
|
3416
3729
|
}, i = function(u, m, v) {
|
|
3417
3730
|
var S = u.replace(/\+/g, " ");
|
|
@@ -3422,7 +3735,7 @@ function Sa() {
|
|
|
3422
3735
|
} catch {
|
|
3423
3736
|
return S;
|
|
3424
3737
|
}
|
|
3425
|
-
}, l = 1024, d = function(m, v, S,
|
|
3738
|
+
}, l = 1024, d = function(m, v, S, T, p) {
|
|
3426
3739
|
if (m.length === 0)
|
|
3427
3740
|
return m;
|
|
3428
3741
|
var O = m;
|
|
@@ -3431,34 +3744,34 @@ function Sa() {
|
|
|
3431
3744
|
return "%26%23" + parseInt(oe.slice(2), 16) + "%3B";
|
|
3432
3745
|
});
|
|
3433
3746
|
for (var g = "", R = 0; R < O.length; R += l) {
|
|
3434
|
-
for (var C = O.length >= l ? O.slice(R, R + l) : O,
|
|
3435
|
-
var
|
|
3436
|
-
if (
|
|
3437
|
-
|
|
3747
|
+
for (var C = O.length >= l ? O.slice(R, R + l) : O, N = [], B = 0; B < C.length; ++B) {
|
|
3748
|
+
var P = C.charCodeAt(B);
|
|
3749
|
+
if (P === 45 || P === 46 || P === 95 || P === 126 || P >= 48 && P <= 57 || P >= 65 && P <= 90 || P >= 97 && P <= 122 || p === e.RFC1738 && (P === 40 || P === 41)) {
|
|
3750
|
+
N[N.length] = C.charAt(B);
|
|
3438
3751
|
continue;
|
|
3439
3752
|
}
|
|
3440
|
-
if (
|
|
3441
|
-
|
|
3753
|
+
if (P < 128) {
|
|
3754
|
+
N[N.length] = a[P];
|
|
3442
3755
|
continue;
|
|
3443
3756
|
}
|
|
3444
|
-
if (
|
|
3445
|
-
|
|
3757
|
+
if (P < 2048) {
|
|
3758
|
+
N[N.length] = a[192 | P >> 6] + a[128 | P & 63];
|
|
3446
3759
|
continue;
|
|
3447
3760
|
}
|
|
3448
|
-
if (
|
|
3449
|
-
|
|
3761
|
+
if (P < 55296 || P >= 57344) {
|
|
3762
|
+
N[N.length] = a[224 | P >> 12] + a[128 | P >> 6 & 63] + a[128 | P & 63];
|
|
3450
3763
|
continue;
|
|
3451
3764
|
}
|
|
3452
|
-
|
|
3765
|
+
B += 1, P = 65536 + ((P & 1023) << 10 | C.charCodeAt(B) & 1023), N[N.length] = a[240 | P >> 18] + a[128 | P >> 12 & 63] + a[128 | P >> 6 & 63] + a[128 | P & 63];
|
|
3453
3766
|
}
|
|
3454
|
-
g +=
|
|
3767
|
+
g += N.join("");
|
|
3455
3768
|
}
|
|
3456
3769
|
return g;
|
|
3457
3770
|
}, y = function(m) {
|
|
3458
|
-
for (var v = [{ obj: { o: m }, prop: "o" }], S = [],
|
|
3459
|
-
for (var p = v[
|
|
3460
|
-
var C = g[R],
|
|
3461
|
-
typeof
|
|
3771
|
+
for (var v = [{ obj: { o: m }, prop: "o" }], S = [], T = 0; T < v.length; ++T)
|
|
3772
|
+
for (var p = v[T], O = p.obj[p.prop], g = Object.keys(O), R = 0; R < g.length; ++R) {
|
|
3773
|
+
var C = g[R], N = O[C];
|
|
3774
|
+
typeof N == "object" && N !== null && S.indexOf(N) === -1 && (v.push({ obj: O, prop: C }), S.push(N));
|
|
3462
3775
|
}
|
|
3463
3776
|
return c(v), m;
|
|
3464
3777
|
}, f = function(m) {
|
|
@@ -3469,8 +3782,8 @@ function Sa() {
|
|
|
3469
3782
|
return [].concat(m, v);
|
|
3470
3783
|
}, $ = function(m, v) {
|
|
3471
3784
|
if (t(m)) {
|
|
3472
|
-
for (var S = [],
|
|
3473
|
-
S.push(v(m[
|
|
3785
|
+
for (var S = [], T = 0; T < m.length; T += 1)
|
|
3786
|
+
S.push(v(m[T]));
|
|
3474
3787
|
return S;
|
|
3475
3788
|
}
|
|
3476
3789
|
return v(m);
|
|
@@ -3489,10 +3802,10 @@ function Sa() {
|
|
|
3489
3802
|
}, ir;
|
|
3490
3803
|
}
|
|
3491
3804
|
var sr, Dn;
|
|
3492
|
-
function
|
|
3805
|
+
function Ss() {
|
|
3493
3806
|
if (Dn) return sr;
|
|
3494
3807
|
Dn = 1;
|
|
3495
|
-
var e =
|
|
3808
|
+
var e = ws(), n = /* @__PURE__ */ Ca(), t = /* @__PURE__ */ Tr(), a = Object.prototype.hasOwnProperty, c = {
|
|
3496
3809
|
brackets: function(u) {
|
|
3497
3810
|
return u + "[]";
|
|
3498
3811
|
},
|
|
@@ -3528,65 +3841,65 @@ function gs() {
|
|
|
3528
3841
|
strictNullHandling: !1
|
|
3529
3842
|
}, y = function(u) {
|
|
3530
3843
|
return typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "symbol" || typeof u == "bigint";
|
|
3531
|
-
}, f = {}, h = function $(u, m, v, S,
|
|
3532
|
-
for (var
|
|
3533
|
-
var
|
|
3534
|
-
if (E += 1, typeof
|
|
3535
|
-
if (
|
|
3844
|
+
}, f = {}, h = function $(u, m, v, S, T, p, O, g, R, C, N, B, P, oe, H, D, se, Z) {
|
|
3845
|
+
for (var A = u, re = Z, E = 0, k = !1; (re = re.get(f)) !== void 0 && !k; ) {
|
|
3846
|
+
var L = re.get(u);
|
|
3847
|
+
if (E += 1, typeof L < "u") {
|
|
3848
|
+
if (L === E)
|
|
3536
3849
|
throw new RangeError("Cyclic object value");
|
|
3537
|
-
|
|
3850
|
+
k = !0;
|
|
3538
3851
|
}
|
|
3539
3852
|
typeof re.get(f) > "u" && (E = 0);
|
|
3540
3853
|
}
|
|
3541
|
-
if (typeof C == "function" ?
|
|
3542
|
-
return Y instanceof Date ?
|
|
3543
|
-
})),
|
|
3854
|
+
if (typeof C == "function" ? A = C(m, A) : A instanceof Date ? A = P(A) : v === "comma" && s(A) && (A = n.maybeMap(A, function(Y) {
|
|
3855
|
+
return Y instanceof Date ? P(Y) : Y;
|
|
3856
|
+
})), A === null) {
|
|
3544
3857
|
if (p)
|
|
3545
3858
|
return R && !D ? R(m, d.encoder, se, "key", oe) : m;
|
|
3546
|
-
|
|
3859
|
+
A = "";
|
|
3547
3860
|
}
|
|
3548
|
-
if (y(
|
|
3861
|
+
if (y(A) || n.isBuffer(A)) {
|
|
3549
3862
|
if (R) {
|
|
3550
3863
|
var q = D ? m : R(m, d.encoder, se, "key", oe);
|
|
3551
|
-
return [H(q) + "=" + H(R(
|
|
3864
|
+
return [H(q) + "=" + H(R(A, d.encoder, se, "value", oe))];
|
|
3552
3865
|
}
|
|
3553
|
-
return [H(m) + "=" + H(String(
|
|
3866
|
+
return [H(m) + "=" + H(String(A))];
|
|
3554
3867
|
}
|
|
3555
|
-
var
|
|
3556
|
-
if (typeof
|
|
3557
|
-
return
|
|
3868
|
+
var U = [];
|
|
3869
|
+
if (typeof A > "u")
|
|
3870
|
+
return U;
|
|
3558
3871
|
var J;
|
|
3559
|
-
if (v === "comma" && s(
|
|
3560
|
-
D && R && (
|
|
3872
|
+
if (v === "comma" && s(A))
|
|
3873
|
+
D && R && (A = n.maybeMap(A, R)), J = [{ value: A.length > 0 ? A.join(",") || null : void 0 }];
|
|
3561
3874
|
else if (s(C))
|
|
3562
3875
|
J = C;
|
|
3563
3876
|
else {
|
|
3564
|
-
var z = Object.keys(
|
|
3565
|
-
J =
|
|
3877
|
+
var z = Object.keys(A);
|
|
3878
|
+
J = N ? z.sort(N) : z;
|
|
3566
3879
|
}
|
|
3567
|
-
var K = g ? m.replace(/\./g, "%2E") : m, ne = S && s(
|
|
3568
|
-
if (
|
|
3880
|
+
var K = g ? m.replace(/\./g, "%2E") : m, ne = S && s(A) && A.length === 1 ? K + "[]" : K;
|
|
3881
|
+
if (T && s(A) && A.length === 0)
|
|
3569
3882
|
return ne + "[]";
|
|
3570
3883
|
for (var V = 0; V < J.length; ++V) {
|
|
3571
|
-
var
|
|
3572
|
-
if (!(O &&
|
|
3573
|
-
var
|
|
3884
|
+
var I = J[V], F = typeof I == "object" && typeof I.value < "u" ? I.value : A[I];
|
|
3885
|
+
if (!(O && F === null)) {
|
|
3886
|
+
var _ = B && g ? I.replace(/\./g, "%2E") : I, Q = s(A) ? typeof v == "function" ? v(ne, _) : ne : ne + (B ? "." + _ : "[" + _ + "]");
|
|
3574
3887
|
Z.set(u, E);
|
|
3575
3888
|
var W = e();
|
|
3576
|
-
W.set(f, Z), o(
|
|
3577
|
-
|
|
3889
|
+
W.set(f, Z), o(U, $(
|
|
3890
|
+
F,
|
|
3578
3891
|
Q,
|
|
3579
3892
|
v,
|
|
3580
3893
|
S,
|
|
3581
|
-
|
|
3894
|
+
T,
|
|
3582
3895
|
p,
|
|
3583
3896
|
O,
|
|
3584
3897
|
g,
|
|
3585
|
-
v === "comma" && D && s(
|
|
3898
|
+
v === "comma" && D && s(A) ? null : R,
|
|
3586
3899
|
C,
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3900
|
+
N,
|
|
3901
|
+
B,
|
|
3902
|
+
P,
|
|
3590
3903
|
oe,
|
|
3591
3904
|
H,
|
|
3592
3905
|
D,
|
|
@@ -3595,7 +3908,7 @@ function gs() {
|
|
|
3595
3908
|
));
|
|
3596
3909
|
}
|
|
3597
3910
|
}
|
|
3598
|
-
return
|
|
3911
|
+
return U;
|
|
3599
3912
|
}, x = function(u) {
|
|
3600
3913
|
if (!u)
|
|
3601
3914
|
return d;
|
|
@@ -3614,8 +3927,8 @@ function gs() {
|
|
|
3614
3927
|
throw new TypeError("Unknown format option provided.");
|
|
3615
3928
|
v = u.format;
|
|
3616
3929
|
}
|
|
3617
|
-
var S = t.formatters[v],
|
|
3618
|
-
(typeof u.filter == "function" || s(u.filter)) && (
|
|
3930
|
+
var S = t.formatters[v], T = d.filter;
|
|
3931
|
+
(typeof u.filter == "function" || s(u.filter)) && (T = u.filter);
|
|
3619
3932
|
var p;
|
|
3620
3933
|
if (u.arrayFormat in c ? p = u.arrayFormat : "indices" in u ? p = u.indices ? "indices" : "repeat" : p = d.arrayFormat, "commaRoundTrip" in u && typeof u.commaRoundTrip != "boolean")
|
|
3621
3934
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
@@ -3633,7 +3946,7 @@ function gs() {
|
|
|
3633
3946
|
encodeDotInKeys: typeof u.encodeDotInKeys == "boolean" ? u.encodeDotInKeys : d.encodeDotInKeys,
|
|
3634
3947
|
encoder: typeof u.encoder == "function" ? u.encoder : d.encoder,
|
|
3635
3948
|
encodeValuesOnly: typeof u.encodeValuesOnly == "boolean" ? u.encodeValuesOnly : d.encodeValuesOnly,
|
|
3636
|
-
filter:
|
|
3949
|
+
filter: T,
|
|
3637
3950
|
format: v,
|
|
3638
3951
|
formatter: S,
|
|
3639
3952
|
serializeDate: typeof u.serializeDate == "function" ? u.serializeDate : d.serializeDate,
|
|
@@ -3643,18 +3956,18 @@ function gs() {
|
|
|
3643
3956
|
};
|
|
3644
3957
|
};
|
|
3645
3958
|
return sr = function($, u) {
|
|
3646
|
-
var m = $, v = x(u), S,
|
|
3647
|
-
typeof v.filter == "function" ? (
|
|
3959
|
+
var m = $, v = x(u), S, T;
|
|
3960
|
+
typeof v.filter == "function" ? (T = v.filter, m = T("", m)) : s(v.filter) && (T = v.filter, S = T);
|
|
3648
3961
|
var p = [];
|
|
3649
3962
|
if (typeof m != "object" || m === null)
|
|
3650
3963
|
return "";
|
|
3651
3964
|
var O = c[v.arrayFormat], g = O === "comma" && v.commaRoundTrip;
|
|
3652
3965
|
S || (S = Object.keys(m)), v.sort && S.sort(v.sort);
|
|
3653
3966
|
for (var R = e(), C = 0; C < S.length; ++C) {
|
|
3654
|
-
var
|
|
3655
|
-
v.skipNulls && m[
|
|
3656
|
-
m[
|
|
3657
|
-
|
|
3967
|
+
var N = S[C];
|
|
3968
|
+
v.skipNulls && m[N] === null || o(p, h(
|
|
3969
|
+
m[N],
|
|
3970
|
+
N,
|
|
3658
3971
|
O,
|
|
3659
3972
|
g,
|
|
3660
3973
|
v.allowEmptyArrays,
|
|
@@ -3673,15 +3986,15 @@ function gs() {
|
|
|
3673
3986
|
R
|
|
3674
3987
|
));
|
|
3675
3988
|
}
|
|
3676
|
-
var
|
|
3677
|
-
return v.charsetSentinel && (v.charset === "iso-8859-1" ?
|
|
3989
|
+
var B = p.join(v.delimiter), P = v.addQueryPrefix === !0 ? "?" : "";
|
|
3990
|
+
return v.charsetSentinel && (v.charset === "iso-8859-1" ? P += "utf8=%26%2310003%3B&" : P += "utf8=%E2%9C%93&"), B.length > 0 ? P + B : "";
|
|
3678
3991
|
}, sr;
|
|
3679
3992
|
}
|
|
3680
3993
|
var lr, Qn;
|
|
3681
|
-
function
|
|
3994
|
+
function Os() {
|
|
3682
3995
|
if (Qn) return lr;
|
|
3683
3996
|
Qn = 1;
|
|
3684
|
-
var e = /* @__PURE__ */
|
|
3997
|
+
var e = /* @__PURE__ */ Ca(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
|
|
3685
3998
|
allowDots: !1,
|
|
3686
3999
|
allowEmptyArrays: !1,
|
|
3687
4000
|
allowPrototypes: !1,
|
|
@@ -3711,21 +4024,21 @@ function vs() {
|
|
|
3711
4024
|
}, r = "utf8=%26%2310003%3B", o = "utf8=%E2%9C%93", i = function(h, x) {
|
|
3712
4025
|
var $ = { __proto__: null }, u = x.ignoreQueryPrefix ? h.replace(/^\?/, "") : h;
|
|
3713
4026
|
u = u.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3714
|
-
var m = x.parameterLimit === 1 / 0 ? void 0 : x.parameterLimit, v = u.split(x.delimiter, m), S = -1,
|
|
4027
|
+
var m = x.parameterLimit === 1 / 0 ? void 0 : x.parameterLimit, v = u.split(x.delimiter, m), S = -1, T, p = x.charset;
|
|
3715
4028
|
if (x.charsetSentinel)
|
|
3716
|
-
for (
|
|
3717
|
-
v[
|
|
3718
|
-
for (
|
|
3719
|
-
if (
|
|
3720
|
-
var O = v[
|
|
3721
|
-
R === -1 ? (C = x.decoder(O, a.decoder, p, "key"),
|
|
4029
|
+
for (T = 0; T < v.length; ++T)
|
|
4030
|
+
v[T].indexOf("utf8=") === 0 && (v[T] === o ? p = "utf-8" : v[T] === r && (p = "iso-8859-1"), S = T, T = v.length);
|
|
4031
|
+
for (T = 0; T < v.length; ++T)
|
|
4032
|
+
if (T !== S) {
|
|
4033
|
+
var O = v[T], g = O.indexOf("]="), R = g === -1 ? O.indexOf("=") : g + 1, C, N;
|
|
4034
|
+
R === -1 ? (C = x.decoder(O, a.decoder, p, "key"), N = x.strictNullHandling ? null : "") : (C = x.decoder(O.slice(0, R), a.decoder, p, "key"), N = e.maybeMap(
|
|
3722
4035
|
s(O.slice(R + 1), x),
|
|
3723
|
-
function(
|
|
3724
|
-
return x.decoder(
|
|
4036
|
+
function(P) {
|
|
4037
|
+
return x.decoder(P, a.decoder, p, "value");
|
|
3725
4038
|
}
|
|
3726
|
-
)),
|
|
3727
|
-
var
|
|
3728
|
-
|
|
4039
|
+
)), N && x.interpretNumericEntities && p === "iso-8859-1" && (N = c(N)), O.indexOf("[]=") > -1 && (N = t(N) ? [N] : N);
|
|
4040
|
+
var B = n.call($, C);
|
|
4041
|
+
B && x.duplicates === "combine" ? $[C] = e.combine($[C], N) : (!B || x.duplicates === "last") && ($[C] = N);
|
|
3729
4042
|
}
|
|
3730
4043
|
return $;
|
|
3731
4044
|
}, l = function(f, h, x, $) {
|
|
@@ -3735,7 +4048,7 @@ function vs() {
|
|
|
3735
4048
|
v = x.allowEmptyArrays && (u === "" || x.strictNullHandling && u === null) ? [] : [].concat(u);
|
|
3736
4049
|
else {
|
|
3737
4050
|
v = x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3738
|
-
var
|
|
4051
|
+
var T = S.charAt(0) === "[" && S.charAt(S.length - 1) === "]" ? S.slice(1, -1) : S, p = x.decodeDotInKeys ? T.replace(/%2E/g, ".") : T, O = parseInt(p, 10);
|
|
3739
4052
|
!x.parseArrays && p === "" ? v = { 0: u } : !isNaN(O) && S !== p && String(O) === p && O >= 0 && x.parseArrays && O <= x.arrayLimit ? (v = [], v[O] = u) : p !== "__proto__" && (v[p] = u);
|
|
3740
4053
|
}
|
|
3741
4054
|
u = v;
|
|
@@ -3743,21 +4056,21 @@ function vs() {
|
|
|
3743
4056
|
return u;
|
|
3744
4057
|
}, d = function(h, x, $, u) {
|
|
3745
4058
|
if (h) {
|
|
3746
|
-
var m = $.allowDots ? h.replace(/\.([^.[]+)/g, "[$1]") : h, v = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g,
|
|
4059
|
+
var m = $.allowDots ? h.replace(/\.([^.[]+)/g, "[$1]") : h, v = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, T = $.depth > 0 && v.exec(m), p = T ? m.slice(0, T.index) : m, O = [];
|
|
3747
4060
|
if (p) {
|
|
3748
4061
|
if (!$.plainObjects && n.call(Object.prototype, p) && !$.allowPrototypes)
|
|
3749
4062
|
return;
|
|
3750
4063
|
O.push(p);
|
|
3751
4064
|
}
|
|
3752
|
-
for (var g = 0; $.depth > 0 && (
|
|
3753
|
-
if (g += 1, !$.plainObjects && n.call(Object.prototype,
|
|
4065
|
+
for (var g = 0; $.depth > 0 && (T = S.exec(m)) !== null && g < $.depth; ) {
|
|
4066
|
+
if (g += 1, !$.plainObjects && n.call(Object.prototype, T[1].slice(1, -1)) && !$.allowPrototypes)
|
|
3754
4067
|
return;
|
|
3755
|
-
O.push(
|
|
4068
|
+
O.push(T[1]);
|
|
3756
4069
|
}
|
|
3757
|
-
if (
|
|
4070
|
+
if (T) {
|
|
3758
4071
|
if ($.strictDepth === !0)
|
|
3759
4072
|
throw new RangeError("Input depth exceeded depth option of " + $.depth + " and strictDepth is true");
|
|
3760
|
-
O.push("[" + m.slice(
|
|
4073
|
+
O.push("[" + m.slice(T.index) + "]");
|
|
3761
4074
|
}
|
|
3762
4075
|
return l(O, x, $, u);
|
|
3763
4076
|
}
|
|
@@ -3805,17 +4118,17 @@ function vs() {
|
|
|
3805
4118
|
if (f === "" || f === null || typeof f > "u")
|
|
3806
4119
|
return x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3807
4120
|
for (var $ = typeof f == "string" ? i(f, x) : f, u = x.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, m = Object.keys($), v = 0; v < m.length; ++v) {
|
|
3808
|
-
var S = m[v],
|
|
3809
|
-
u = e.merge(u,
|
|
4121
|
+
var S = m[v], T = d(S, $[S], x, typeof f == "string");
|
|
4122
|
+
u = e.merge(u, T, x);
|
|
3810
4123
|
}
|
|
3811
4124
|
return x.allowSparse === !0 ? u : e.compact(u);
|
|
3812
4125
|
}, lr;
|
|
3813
4126
|
}
|
|
3814
4127
|
var cr, Kn;
|
|
3815
|
-
function
|
|
4128
|
+
function qa() {
|
|
3816
4129
|
if (Kn) return cr;
|
|
3817
4130
|
Kn = 1;
|
|
3818
|
-
var e = /* @__PURE__ */
|
|
4131
|
+
var e = /* @__PURE__ */ Ss(), n = /* @__PURE__ */ Os(), t = /* @__PURE__ */ Tr();
|
|
3819
4132
|
return cr = {
|
|
3820
4133
|
formats: t,
|
|
3821
4134
|
parse: n,
|
|
@@ -3823,10 +4136,10 @@ function Oa() {
|
|
|
3823
4136
|
}, cr;
|
|
3824
4137
|
}
|
|
3825
4138
|
var Yn;
|
|
3826
|
-
function
|
|
4139
|
+
function Ts() {
|
|
3827
4140
|
if (Yn) return Pe;
|
|
3828
4141
|
Yn = 1;
|
|
3829
|
-
var e =
|
|
4142
|
+
var e = Ji();
|
|
3830
4143
|
function n() {
|
|
3831
4144
|
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;
|
|
3832
4145
|
}
|
|
@@ -3866,633 +4179,345 @@ function bs() {
|
|
|
3866
4179
|
}, $ = {
|
|
3867
4180
|
http: !0,
|
|
3868
4181
|
https: !0,
|
|
3869
|
-
ftp: !0,
|
|
3870
|
-
gopher: !0,
|
|
3871
|
-
file: !0,
|
|
3872
|
-
"http:": !0,
|
|
3873
|
-
"https:": !0,
|
|
3874
|
-
"ftp:": !0,
|
|
3875
|
-
"gopher:": !0,
|
|
3876
|
-
"file:": !0
|
|
3877
|
-
}, u = /* @__PURE__ */
|
|
3878
|
-
function m(p, O, g) {
|
|
3879
|
-
if (p && typeof p == "object" && p instanceof n)
|
|
3880
|
-
return p;
|
|
3881
|
-
var R = new n();
|
|
3882
|
-
return R.parse(p, O, g), R;
|
|
3883
|
-
}
|
|
3884
|
-
n.prototype.parse = function(p, O, g) {
|
|
3885
|
-
if (typeof p != "string")
|
|
3886
|
-
throw new TypeError("Parameter 'url' must be a string, not " + typeof p);
|
|
3887
|
-
var R = p.indexOf("?"), C = R !== -1 && R < p.indexOf("#") ? "?" : "#", A = p.split(C), k = /\\/g;
|
|
3888
|
-
A[0] = A[0].replace(k, "/"), p = A.join(C);
|
|
3889
|
-
var T = p;
|
|
3890
|
-
if (T = T.trim(), !g && p.split("#").length === 1) {
|
|
3891
|
-
var oe = c.exec(T);
|
|
3892
|
-
if (oe)
|
|
3893
|
-
return this.path = T, this.href = T, this.pathname = oe[1], oe[2] ? (this.search = oe[2], O ? this.query = u.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : O && (this.search = "", this.query = {}), this;
|
|
3894
|
-
}
|
|
3895
|
-
var H = t.exec(T);
|
|
3896
|
-
if (H) {
|
|
3897
|
-
H = H[0];
|
|
3898
|
-
var D = H.toLowerCase();
|
|
3899
|
-
this.protocol = D, T = T.substr(H.length);
|
|
3900
|
-
}
|
|
3901
|
-
if (g || H || T.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
3902
|
-
var se = T.substr(0, 2) === "//";
|
|
3903
|
-
se && !(H && x[H]) && (T = T.substr(2), this.slashes = !0);
|
|
3904
|
-
}
|
|
3905
|
-
if (!x[H] && (se || H && !$[H])) {
|
|
3906
|
-
for (var Z = -1, I = 0; I < l.length; I++) {
|
|
3907
|
-
var re = T.indexOf(l[I]);
|
|
3908
|
-
re !== -1 && (Z === -1 || re < Z) && (Z = re);
|
|
3909
|
-
}
|
|
3910
|
-
var E, N;
|
|
3911
|
-
Z === -1 ? N = T.lastIndexOf("@") : N = T.lastIndexOf("@", Z), N !== -1 && (E = T.slice(0, N), T = T.slice(N + 1), this.auth = decodeURIComponent(E)), Z = -1;
|
|
3912
|
-
for (var I = 0; I < i.length; I++) {
|
|
3913
|
-
var re = T.indexOf(i[I]);
|
|
3914
|
-
re !== -1 && (Z === -1 || re < Z) && (Z = re);
|
|
3915
|
-
}
|
|
3916
|
-
Z === -1 && (Z = T.length), this.host = T.slice(0, Z), T = T.slice(Z), this.parseHost(), this.hostname = this.hostname || "";
|
|
3917
|
-
var F = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
3918
|
-
if (!F)
|
|
3919
|
-
for (var q = this.hostname.split(/\./), I = 0, L = q.length; I < L; I++) {
|
|
3920
|
-
var J = q[I];
|
|
3921
|
-
if (J && !J.match(y)) {
|
|
3922
|
-
for (var z = "", K = 0, ne = J.length; K < ne; K++)
|
|
3923
|
-
J.charCodeAt(K) > 127 ? z += "x" : z += J[K];
|
|
3924
|
-
if (!z.match(y)) {
|
|
3925
|
-
var V = q.slice(0, I), U = q.slice(I + 1), _ = J.match(f);
|
|
3926
|
-
_ && (V.push(_[1]), U.unshift(_[2])), U.length && (T = "/" + U.join(".") + T), this.hostname = V.join(".");
|
|
3927
|
-
break;
|
|
3928
|
-
}
|
|
3929
|
-
}
|
|
3930
|
-
}
|
|
3931
|
-
this.hostname.length > d ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), F || (this.hostname = e.toASCII(this.hostname));
|
|
3932
|
-
var B = this.port ? ":" + this.port : "", Q = this.hostname || "";
|
|
3933
|
-
this.host = Q + B, this.href += this.host, F && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), T[0] !== "/" && (T = "/" + T));
|
|
3934
|
-
}
|
|
3935
|
-
if (!h[D])
|
|
3936
|
-
for (var I = 0, L = o.length; I < L; I++) {
|
|
3937
|
-
var W = o[I];
|
|
3938
|
-
if (T.indexOf(W) !== -1) {
|
|
3939
|
-
var Y = encodeURIComponent(W);
|
|
3940
|
-
Y === W && (Y = escape(W)), T = T.split(W).join(Y);
|
|
3941
|
-
}
|
|
3942
|
-
}
|
|
3943
|
-
var ae = T.indexOf("#");
|
|
3944
|
-
ae !== -1 && (this.hash = T.substr(ae), T = T.slice(0, ae));
|
|
3945
|
-
var he = T.indexOf("?");
|
|
3946
|
-
if (he !== -1 ? (this.search = T.substr(he), this.query = T.substr(he + 1), O && (this.query = u.parse(this.query)), T = T.slice(0, he)) : O && (this.search = "", this.query = {}), T && (this.pathname = T), $[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
3947
|
-
var B = this.pathname || "", we = this.search || "";
|
|
3948
|
-
this.path = B + we;
|
|
3949
|
-
}
|
|
3950
|
-
return this.href = this.format(), this;
|
|
3951
|
-
};
|
|
3952
|
-
function v(p) {
|
|
3953
|
-
return typeof p == "string" && (p = m(p)), p instanceof n ? p.format() : n.prototype.format.call(p);
|
|
3954
|
-
}
|
|
3955
|
-
n.prototype.format = function() {
|
|
3956
|
-
var p = this.auth || "";
|
|
3957
|
-
p && (p = encodeURIComponent(p), p = p.replace(/%3A/i, ":"), p += "@");
|
|
3958
|
-
var O = this.protocol || "", g = this.pathname || "", R = this.hash || "", C = !1, A = "";
|
|
3959
|
-
this.host ? C = p + this.host : this.hostname && (C = p + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (C += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (A = u.stringify(this.query, {
|
|
3960
|
-
arrayFormat: "repeat",
|
|
3961
|
-
addQueryPrefix: !1
|
|
3962
|
-
}));
|
|
3963
|
-
var k = this.search || A && "?" + A || "";
|
|
3964
|
-
return O && O.substr(-1) !== ":" && (O += ":"), this.slashes || (!O || $[O]) && C !== !1 ? (C = "//" + (C || ""), g && g.charAt(0) !== "/" && (g = "/" + g)) : C || (C = ""), R && R.charAt(0) !== "#" && (R = "#" + R), k && k.charAt(0) !== "?" && (k = "?" + k), g = g.replace(/[?#]/g, function(T) {
|
|
3965
|
-
return encodeURIComponent(T);
|
|
3966
|
-
}), k = k.replace("#", "%23"), O + C + g + k + R;
|
|
3967
|
-
};
|
|
3968
|
-
function S(p, O) {
|
|
3969
|
-
return m(p, !1, !0).resolve(O);
|
|
3970
|
-
}
|
|
3971
|
-
n.prototype.resolve = function(p) {
|
|
3972
|
-
return this.resolveObject(m(p, !1, !0)).format();
|
|
3973
|
-
};
|
|
3974
|
-
function P(p, O) {
|
|
3975
|
-
return p ? m(p, !1, !0).resolveObject(O) : O;
|
|
3976
|
-
}
|
|
3977
|
-
return n.prototype.resolveObject = function(p) {
|
|
3978
|
-
if (typeof p == "string") {
|
|
3979
|
-
var O = new n();
|
|
3980
|
-
O.parse(p, !1, !0), p = O;
|
|
3981
|
-
}
|
|
3982
|
-
for (var g = new n(), R = Object.keys(this), C = 0; C < R.length; C++) {
|
|
3983
|
-
var A = R[C];
|
|
3984
|
-
g[A] = this[A];
|
|
3985
|
-
}
|
|
3986
|
-
if (g.hash = p.hash, p.href === "")
|
|
3987
|
-
return g.href = g.format(), g;
|
|
3988
|
-
if (p.slashes && !p.protocol) {
|
|
3989
|
-
for (var k = Object.keys(p), T = 0; T < k.length; T++) {
|
|
3990
|
-
var oe = k[T];
|
|
3991
|
-
oe !== "protocol" && (g[oe] = p[oe]);
|
|
3992
|
-
}
|
|
3993
|
-
return $[g.protocol] && g.hostname && !g.pathname && (g.pathname = "/", g.path = g.pathname), g.href = g.format(), g;
|
|
3994
|
-
}
|
|
3995
|
-
if (p.protocol && p.protocol !== g.protocol) {
|
|
3996
|
-
if (!$[p.protocol]) {
|
|
3997
|
-
for (var H = Object.keys(p), D = 0; D < H.length; D++) {
|
|
3998
|
-
var se = H[D];
|
|
3999
|
-
g[se] = p[se];
|
|
4000
|
-
}
|
|
4001
|
-
return g.href = g.format(), g;
|
|
4002
|
-
}
|
|
4003
|
-
if (g.protocol = p.protocol, !p.host && !x[p.protocol]) {
|
|
4004
|
-
for (var L = (p.pathname || "").split("/"); L.length && !(p.host = L.shift()); )
|
|
4005
|
-
;
|
|
4006
|
-
p.host || (p.host = ""), p.hostname || (p.hostname = ""), L[0] !== "" && L.unshift(""), L.length < 2 && L.unshift(""), g.pathname = L.join("/");
|
|
4007
|
-
} else
|
|
4008
|
-
g.pathname = p.pathname;
|
|
4009
|
-
if (g.search = p.search, g.query = p.query, g.host = p.host || "", g.auth = p.auth, g.hostname = p.hostname || p.host, g.port = p.port, g.pathname || g.search) {
|
|
4010
|
-
var Z = g.pathname || "", I = g.search || "";
|
|
4011
|
-
g.path = Z + I;
|
|
4012
|
-
}
|
|
4013
|
-
return g.slashes = g.slashes || p.slashes, g.href = g.format(), g;
|
|
4014
|
-
}
|
|
4015
|
-
var re = g.pathname && g.pathname.charAt(0) === "/", E = p.host || p.pathname && p.pathname.charAt(0) === "/", N = E || re || g.host && p.pathname, F = N, q = g.pathname && g.pathname.split("/") || [], L = p.pathname && p.pathname.split("/") || [], J = g.protocol && !$[g.protocol];
|
|
4016
|
-
if (J && (g.hostname = "", g.port = null, g.host && (q[0] === "" ? q[0] = g.host : q.unshift(g.host)), g.host = "", p.protocol && (p.hostname = null, p.port = null, p.host && (L[0] === "" ? L[0] = p.host : L.unshift(p.host)), p.host = null), N = N && (L[0] === "" || q[0] === "")), E)
|
|
4017
|
-
g.host = p.host || p.host === "" ? p.host : g.host, g.hostname = p.hostname || p.hostname === "" ? p.hostname : g.hostname, g.search = p.search, g.query = p.query, q = L;
|
|
4018
|
-
else if (L.length)
|
|
4019
|
-
q || (q = []), q.pop(), q = q.concat(L), g.search = p.search, g.query = p.query;
|
|
4020
|
-
else if (p.search != null) {
|
|
4021
|
-
if (J) {
|
|
4022
|
-
g.host = q.shift(), g.hostname = g.host;
|
|
4023
|
-
var z = g.host && g.host.indexOf("@") > 0 ? g.host.split("@") : !1;
|
|
4024
|
-
z && (g.auth = z.shift(), g.hostname = z.shift(), g.host = g.hostname);
|
|
4025
|
-
}
|
|
4026
|
-
return g.search = p.search, g.query = p.query, (g.pathname !== null || g.search !== null) && (g.path = (g.pathname ? g.pathname : "") + (g.search ? g.search : "")), g.href = g.format(), g;
|
|
4027
|
-
}
|
|
4028
|
-
if (!q.length)
|
|
4029
|
-
return g.pathname = null, g.search ? g.path = "/" + g.search : g.path = null, g.href = g.format(), g;
|
|
4030
|
-
for (var K = q.slice(-1)[0], ne = (g.host || p.host || q.length > 1) && (K === "." || K === "..") || K === "", V = 0, U = q.length; U >= 0; U--)
|
|
4031
|
-
K = q[U], K === "." ? q.splice(U, 1) : K === ".." ? (q.splice(U, 1), V++) : V && (q.splice(U, 1), V--);
|
|
4032
|
-
if (!N && !F)
|
|
4033
|
-
for (; V--; V)
|
|
4034
|
-
q.unshift("..");
|
|
4035
|
-
N && q[0] !== "" && (!q[0] || q[0].charAt(0) !== "/") && q.unshift(""), ne && q.join("/").substr(-1) !== "/" && q.push("");
|
|
4036
|
-
var _ = q[0] === "" || q[0] && q[0].charAt(0) === "/";
|
|
4037
|
-
if (J) {
|
|
4038
|
-
g.hostname = _ ? "" : q.length ? q.shift() : "", g.host = g.hostname;
|
|
4039
|
-
var z = g.host && g.host.indexOf("@") > 0 ? g.host.split("@") : !1;
|
|
4040
|
-
z && (g.auth = z.shift(), g.hostname = z.shift(), g.host = g.hostname);
|
|
4041
|
-
}
|
|
4042
|
-
return N = N || g.host && q.length, N && !_ && q.unshift(""), q.length > 0 ? g.pathname = q.join("/") : (g.pathname = null, g.path = null), (g.pathname !== null || g.search !== null) && (g.path = (g.pathname ? g.pathname : "") + (g.search ? g.search : "")), g.auth = p.auth || g.auth, g.slashes = g.slashes || p.slashes, g.href = g.format(), g;
|
|
4043
|
-
}, n.prototype.parseHost = function() {
|
|
4044
|
-
var p = this.host, O = a.exec(p);
|
|
4045
|
-
O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
|
|
4046
|
-
}, Pe.parse = m, Pe.resolve = S, Pe.resolveObject = P, Pe.format = v, Pe.Url = n, Pe;
|
|
4047
|
-
}
|
|
4048
|
-
var ur = bs(), fr = /* @__PURE__ */ Oa(), xs = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), $s = class {
|
|
4049
|
-
constructor(e, n = {}) {
|
|
4050
|
-
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4051
|
-
harIsAlreadyEncoded: !1,
|
|
4052
|
-
...n
|
|
4053
|
-
}, this.requests = [], xs(e) ? this.entries = e.log.entries : this.entries = [
|
|
4054
|
-
{
|
|
4055
|
-
request: e
|
|
4056
|
-
}
|
|
4057
|
-
];
|
|
4058
|
-
}
|
|
4059
|
-
init() {
|
|
4060
|
-
return this.initCalled = !0, this.requests = this.entries.map(({ request: e }) => {
|
|
4061
|
-
const n = {
|
|
4062
|
-
bodySize: 0,
|
|
4063
|
-
headersSize: 0,
|
|
4064
|
-
headers: [],
|
|
4065
|
-
cookies: [],
|
|
4066
|
-
httpVersion: "HTTP/1.1",
|
|
4067
|
-
queryString: [],
|
|
4068
|
-
postData: {
|
|
4069
|
-
mimeType: e.postData?.mimeType || "application/octet-stream"
|
|
4070
|
-
},
|
|
4071
|
-
...e
|
|
4072
|
-
};
|
|
4073
|
-
return n.postData && !n.postData.mimeType && (n.postData.mimeType = "application/octet-stream"), this.prepare(n, this.options);
|
|
4074
|
-
}), this;
|
|
4075
|
-
}
|
|
4076
|
-
prepare(e, n) {
|
|
4077
|
-
const t = {
|
|
4078
|
-
...e,
|
|
4079
|
-
fullUrl: "",
|
|
4080
|
-
uriObj: {},
|
|
4081
|
-
queryObj: {},
|
|
4082
|
-
headersObj: {},
|
|
4083
|
-
cookiesObj: {},
|
|
4084
|
-
allHeaders: {}
|
|
4085
|
-
};
|
|
4086
|
-
if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(Hr, {})), t.headers && t.headers.length) {
|
|
4087
|
-
const d = /^HTTP\/2/;
|
|
4088
|
-
t.headersObj = t.headers.reduce((y, { name: f, value: h }) => {
|
|
4089
|
-
const x = d.exec(t.httpVersion) ? f.toLocaleLowerCase() : f;
|
|
4090
|
-
return {
|
|
4091
|
-
...y,
|
|
4092
|
-
[x]: h
|
|
4093
|
-
};
|
|
4094
|
-
}, {});
|
|
4095
|
-
}
|
|
4096
|
-
t.cookies && t.cookies.length && (t.cookiesObj = t.cookies.reduceRight(
|
|
4097
|
-
(d, { name: y, value: f }) => ({
|
|
4098
|
-
...d,
|
|
4099
|
-
[y]: f
|
|
4100
|
-
}),
|
|
4101
|
-
{}
|
|
4102
|
-
));
|
|
4103
|
-
const a = t.cookies?.map(({ name: d, value: y }) => n.harIsAlreadyEncoded ? `${d}=${y}` : `${encodeURIComponent(d)}=${encodeURIComponent(y)}`);
|
|
4104
|
-
switch (a?.length && (t.allHeaders.cookie = a.join("; ")), t.postData.mimeType) {
|
|
4105
|
-
case "multipart/mixed":
|
|
4106
|
-
case "multipart/related":
|
|
4107
|
-
case "multipart/form-data":
|
|
4108
|
-
case "multipart/alternative":
|
|
4109
|
-
if (t.postData.text = "", t.postData.mimeType = "multipart/form-data", t.postData?.params) {
|
|
4110
|
-
const d = "---011000010111000001101001", y = `${d}--`, f = `\r
|
|
4111
|
-
`, h = (m) => m.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), x = (m) => m.replace(/\r?\n|\r/g, `\r
|
|
4112
|
-
`), $ = [`--${d}`];
|
|
4113
|
-
t.postData?.params.forEach((m, v) => {
|
|
4114
|
-
const S = m.name, P = m.value || "", p = m.fileName || null, O = m.contentType || "application/octet-stream";
|
|
4115
|
-
p ? ($.push(
|
|
4116
|
-
`Content-Disposition: form-data; name="${h(x(S))}"; filename="${p}"`
|
|
4117
|
-
), $.push(`Content-Type: ${O}`)) : $.push(`Content-Disposition: form-data; name="${h(x(S))}"`), $.push(""), $.push(x(P)), v !== t.postData.params.length - 1 && $.push(`--${d}`);
|
|
4118
|
-
}), $.push(`--${y}`), t.postData.boundary = d, t.postData.text = $.join(f);
|
|
4119
|
-
const u = fe(t.headersObj, "content-type") || "content-type";
|
|
4120
|
-
t.headersObj[u] = `multipart/form-data; boundary=${d}`;
|
|
4121
|
-
}
|
|
4122
|
-
break;
|
|
4123
|
-
case "application/x-www-form-urlencoded":
|
|
4124
|
-
t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Hr, {}), t.postData.text = fr.stringify(t.postData.paramsObj)) : t.postData.text = "";
|
|
4125
|
-
break;
|
|
4126
|
-
case "text/json":
|
|
4127
|
-
case "text/x-json":
|
|
4128
|
-
case "application/json":
|
|
4129
|
-
case "application/x-json":
|
|
4130
|
-
if (t.postData.mimeType = "application/json", t.postData.text)
|
|
4131
|
-
try {
|
|
4132
|
-
t.postData.jsonObj = JSON.parse(t.postData.text);
|
|
4133
|
-
} catch {
|
|
4134
|
-
t.postData.mimeType = "text/plain";
|
|
4135
|
-
}
|
|
4136
|
-
break;
|
|
4137
|
-
}
|
|
4138
|
-
const c = {
|
|
4139
|
-
...t.allHeaders,
|
|
4140
|
-
...t.headersObj
|
|
4141
|
-
}, s = ur.parse(t.url, !0, !0);
|
|
4142
|
-
t.queryObj = {
|
|
4143
|
-
...t.queryObj,
|
|
4144
|
-
...s.query
|
|
4145
|
-
};
|
|
4146
|
-
let r;
|
|
4147
|
-
n.harIsAlreadyEncoded ? r = fr.stringify(t.queryObj, {
|
|
4148
|
-
encode: !1,
|
|
4149
|
-
indices: !1
|
|
4150
|
-
}) : r = fr.stringify(t.queryObj, {
|
|
4151
|
-
indices: !1
|
|
4152
|
-
});
|
|
4153
|
-
const o = {
|
|
4154
|
-
...s,
|
|
4155
|
-
query: t.queryObj,
|
|
4156
|
-
search: r,
|
|
4157
|
-
path: r ? `${s.pathname}?${r}` : s.pathname
|
|
4158
|
-
}, i = ur.format({
|
|
4159
|
-
...s,
|
|
4160
|
-
query: null,
|
|
4161
|
-
search: null
|
|
4162
|
-
}), l = ur.format({
|
|
4163
|
-
...s,
|
|
4164
|
-
...o
|
|
4165
|
-
});
|
|
4166
|
-
return {
|
|
4167
|
-
...t,
|
|
4168
|
-
allHeaders: c,
|
|
4169
|
-
fullUrl: l,
|
|
4170
|
-
url: i,
|
|
4171
|
-
uriObj: o
|
|
4172
|
-
};
|
|
4173
|
-
}
|
|
4174
|
-
convert(e, n, t) {
|
|
4175
|
-
this.initCalled || this.init(), !t && n && (t = n);
|
|
4176
|
-
const a = Ui[e];
|
|
4177
|
-
if (!a)
|
|
4178
|
-
return !1;
|
|
4179
|
-
const { convert: c } = a.clientsById[n || a.info.default];
|
|
4180
|
-
return this.requests.map((r) => c(r, t));
|
|
4182
|
+
ftp: !0,
|
|
4183
|
+
gopher: !0,
|
|
4184
|
+
file: !0,
|
|
4185
|
+
"http:": !0,
|
|
4186
|
+
"https:": !0,
|
|
4187
|
+
"ftp:": !0,
|
|
4188
|
+
"gopher:": !0,
|
|
4189
|
+
"file:": !0
|
|
4190
|
+
}, u = /* @__PURE__ */ qa();
|
|
4191
|
+
function m(p, O, g) {
|
|
4192
|
+
if (p && typeof p == "object" && p instanceof n)
|
|
4193
|
+
return p;
|
|
4194
|
+
var R = new n();
|
|
4195
|
+
return R.parse(p, O, g), R;
|
|
4181
4196
|
}
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
}
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
),
|
|
4228
|
-
children: [
|
|
4229
|
-
!s && a && /* @__PURE__ */ b.jsx("div", { className: " absolute inset-0 bg-gradient-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }),
|
|
4230
|
-
/* @__PURE__ */ b.jsx("div", { ref: t, children: e }),
|
|
4231
|
-
!s && a && /* @__PURE__ */ b.jsx(
|
|
4232
|
-
pr,
|
|
4233
|
-
{
|
|
4234
|
-
className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
|
|
4235
|
-
asChild: !0,
|
|
4236
|
-
children: /* @__PURE__ */ b.jsx("div", { children: /* @__PURE__ */ b.jsxs(Lr, { variant: "outline", className: "hidden group-hover:flex", children: [
|
|
4237
|
-
/* @__PURE__ */ b.jsx(za, { size: 14, className: "me-1.5" }),
|
|
4238
|
-
"Click to expand"
|
|
4239
|
-
] }) })
|
|
4240
|
-
}
|
|
4241
|
-
)
|
|
4242
|
-
]
|
|
4243
|
-
}
|
|
4244
|
-
),
|
|
4245
|
-
a && /* @__PURE__ */ b.jsx(
|
|
4246
|
-
"div",
|
|
4247
|
-
{
|
|
4248
|
-
className: pe(
|
|
4249
|
-
"flex justify-center w-full py-2 bg-muted/50",
|
|
4250
|
-
!s && "hidden"
|
|
4251
|
-
),
|
|
4252
|
-
children: /* @__PURE__ */ b.jsx(pr, { asChild: !0, children: /* @__PURE__ */ b.jsxs(Lr, { variant: "outline", size: "sm", children: [
|
|
4253
|
-
"Collapse",
|
|
4254
|
-
/* @__PURE__ */ b.jsx(Wa, { size: 14, className: "ms-1.5" })
|
|
4255
|
-
] }) })
|
|
4197
|
+
n.prototype.parse = function(p, O, g) {
|
|
4198
|
+
if (typeof p != "string")
|
|
4199
|
+
throw new TypeError("Parameter 'url' must be a string, not " + typeof p);
|
|
4200
|
+
var R = p.indexOf("?"), C = R !== -1 && R < p.indexOf("#") ? "?" : "#", N = p.split(C), B = /\\/g;
|
|
4201
|
+
N[0] = N[0].replace(B, "/"), p = N.join(C);
|
|
4202
|
+
var P = p;
|
|
4203
|
+
if (P = P.trim(), !g && p.split("#").length === 1) {
|
|
4204
|
+
var oe = c.exec(P);
|
|
4205
|
+
if (oe)
|
|
4206
|
+
return this.path = P, this.href = P, this.pathname = oe[1], oe[2] ? (this.search = oe[2], O ? this.query = u.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : O && (this.search = "", this.query = {}), this;
|
|
4207
|
+
}
|
|
4208
|
+
var H = t.exec(P);
|
|
4209
|
+
if (H) {
|
|
4210
|
+
H = H[0];
|
|
4211
|
+
var D = H.toLowerCase();
|
|
4212
|
+
this.protocol = D, P = P.substr(H.length);
|
|
4213
|
+
}
|
|
4214
|
+
if (g || H || P.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
4215
|
+
var se = P.substr(0, 2) === "//";
|
|
4216
|
+
se && !(H && x[H]) && (P = P.substr(2), this.slashes = !0);
|
|
4217
|
+
}
|
|
4218
|
+
if (!x[H] && (se || H && !$[H])) {
|
|
4219
|
+
for (var Z = -1, A = 0; A < l.length; A++) {
|
|
4220
|
+
var re = P.indexOf(l[A]);
|
|
4221
|
+
re !== -1 && (Z === -1 || re < Z) && (Z = re);
|
|
4222
|
+
}
|
|
4223
|
+
var E, k;
|
|
4224
|
+
Z === -1 ? k = P.lastIndexOf("@") : k = P.lastIndexOf("@", Z), k !== -1 && (E = P.slice(0, k), P = P.slice(k + 1), this.auth = decodeURIComponent(E)), Z = -1;
|
|
4225
|
+
for (var A = 0; A < i.length; A++) {
|
|
4226
|
+
var re = P.indexOf(i[A]);
|
|
4227
|
+
re !== -1 && (Z === -1 || re < Z) && (Z = re);
|
|
4228
|
+
}
|
|
4229
|
+
Z === -1 && (Z = P.length), this.host = P.slice(0, Z), P = P.slice(Z), this.parseHost(), this.hostname = this.hostname || "";
|
|
4230
|
+
var L = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
4231
|
+
if (!L)
|
|
4232
|
+
for (var q = this.hostname.split(/\./), A = 0, U = q.length; A < U; A++) {
|
|
4233
|
+
var J = q[A];
|
|
4234
|
+
if (J && !J.match(y)) {
|
|
4235
|
+
for (var z = "", K = 0, ne = J.length; K < ne; K++)
|
|
4236
|
+
J.charCodeAt(K) > 127 ? z += "x" : z += J[K];
|
|
4237
|
+
if (!z.match(y)) {
|
|
4238
|
+
var V = q.slice(0, A), I = q.slice(A + 1), F = J.match(f);
|
|
4239
|
+
F && (V.push(F[1]), I.unshift(F[2])), I.length && (P = "/" + I.join(".") + P), this.hostname = V.join(".");
|
|
4240
|
+
break;
|
|
4241
|
+
}
|
|
4256
4242
|
}
|
|
4257
|
-
|
|
4258
|
-
|
|
4243
|
+
}
|
|
4244
|
+
this.hostname.length > d ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), L || (this.hostname = e.toASCII(this.hostname));
|
|
4245
|
+
var _ = this.port ? ":" + this.port : "", Q = this.hostname || "";
|
|
4246
|
+
this.host = Q + _, this.href += this.host, L && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), P[0] !== "/" && (P = "/" + P));
|
|
4259
4247
|
}
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
}
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
})), d = t.parameters?.filter((f) => f.in === "query").sort((f, h) => f.required && !h.required ? -1 : 1).map((f) => ({
|
|
4275
|
-
name: f.name,
|
|
4276
|
-
defaultActive: f.required ?? !1,
|
|
4277
|
-
isRequired: f.required ?? !1,
|
|
4278
|
-
enum: f.schema?.type == "array" ? f.schema?.items?.enum : f.schema?.enum,
|
|
4279
|
-
type: f.schema?.type ?? "string",
|
|
4280
|
-
defaultValue: f.schema?.default
|
|
4281
|
-
})), y = t.parameters?.filter((f) => f.in === "path").map((f) => ({
|
|
4282
|
-
name: f.name,
|
|
4283
|
-
defaultValue: f.schema?.default
|
|
4284
|
-
}));
|
|
4285
|
-
return /* @__PURE__ */ b.jsx(
|
|
4286
|
-
Qa,
|
|
4287
|
-
{
|
|
4288
|
-
server: e,
|
|
4289
|
-
servers: n,
|
|
4290
|
-
method: t.method,
|
|
4291
|
-
url: t.path,
|
|
4292
|
-
headers: l,
|
|
4293
|
-
queryParams: d,
|
|
4294
|
-
pathParams: y,
|
|
4295
|
-
examples: a,
|
|
4296
|
-
requiresLogin: c && !i && !o,
|
|
4297
|
-
onLogin: () => s(),
|
|
4298
|
-
onSignUp: () => r()
|
|
4248
|
+
if (!h[D])
|
|
4249
|
+
for (var A = 0, U = o.length; A < U; A++) {
|
|
4250
|
+
var W = o[A];
|
|
4251
|
+
if (P.indexOf(W) !== -1) {
|
|
4252
|
+
var Y = encodeURIComponent(W);
|
|
4253
|
+
Y === W && (Y = escape(W)), P = P.split(W).join(Y);
|
|
4254
|
+
}
|
|
4255
|
+
}
|
|
4256
|
+
var ae = P.indexOf("#");
|
|
4257
|
+
ae !== -1 && (this.hash = P.substr(ae), P = P.slice(0, ae));
|
|
4258
|
+
var he = P.indexOf("?");
|
|
4259
|
+
if (he !== -1 ? (this.search = P.substr(he), this.query = P.substr(he + 1), O && (this.query = u.parse(this.query)), P = P.slice(0, he)) : O && (this.search = "", this.query = {}), P && (this.pathname = P), $[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
4260
|
+
var _ = this.pathname || "", we = this.search || "";
|
|
4261
|
+
this.path = _ + we;
|
|
4299
4262
|
}
|
|
4300
|
-
|
|
4301
|
-
}
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
className: pe("rounded-xl overflow-hidden border border-border", n),
|
|
4305
|
-
children: e
|
|
4306
|
-
}
|
|
4307
|
-
), Tr = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
|
|
4308
|
-
"div",
|
|
4309
|
-
{
|
|
4310
|
-
className: pe(
|
|
4311
|
-
"border-b bg-muted dark:bg-transparent text-card-foreground p-3 py-2.5",
|
|
4312
|
-
n
|
|
4313
|
-
),
|
|
4314
|
-
children: e
|
|
4263
|
+
return this.href = this.format(), this;
|
|
4264
|
+
};
|
|
4265
|
+
function v(p) {
|
|
4266
|
+
return typeof p == "string" && (p = m(p)), p instanceof n ? p.format() : n.prototype.format.call(p);
|
|
4315
4267
|
}
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4268
|
+
n.prototype.format = function() {
|
|
4269
|
+
var p = this.auth || "";
|
|
4270
|
+
p && (p = encodeURIComponent(p), p = p.replace(/%3A/i, ":"), p += "@");
|
|
4271
|
+
var O = this.protocol || "", g = this.pathname || "", R = this.hash || "", C = !1, N = "";
|
|
4272
|
+
this.host ? C = p + this.host : this.hostname && (C = p + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (C += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (N = u.stringify(this.query, {
|
|
4273
|
+
arrayFormat: "repeat",
|
|
4274
|
+
addQueryPrefix: !1
|
|
4275
|
+
}));
|
|
4276
|
+
var B = this.search || N && "?" + N || "";
|
|
4277
|
+
return O && O.substr(-1) !== ":" && (O += ":"), this.slashes || (!O || $[O]) && C !== !1 ? (C = "//" + (C || ""), g && g.charAt(0) !== "/" && (g = "/" + g)) : C || (C = ""), R && R.charAt(0) !== "#" && (R = "#" + R), B && B.charAt(0) !== "?" && (B = "?" + B), g = g.replace(/[?#]/g, function(P) {
|
|
4278
|
+
return encodeURIComponent(P);
|
|
4279
|
+
}), B = B.replace("#", "%23"), O + C + g + B + R;
|
|
4280
|
+
};
|
|
4281
|
+
function S(p, O) {
|
|
4282
|
+
return m(p, !1, !0).resolve(O);
|
|
4325
4283
|
}
|
|
4326
|
-
|
|
4327
|
-
return
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
typeof c == "object" && (t[a] = $e(c, a));
|
|
4332
|
-
return t;
|
|
4284
|
+
n.prototype.resolve = function(p) {
|
|
4285
|
+
return this.resolveObject(m(p, !1, !0)).format();
|
|
4286
|
+
};
|
|
4287
|
+
function T(p, O) {
|
|
4288
|
+
return p ? m(p, !1, !0).resolveObject(O) : O;
|
|
4333
4289
|
}
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4290
|
+
return n.prototype.resolveObject = function(p) {
|
|
4291
|
+
if (typeof p == "string") {
|
|
4292
|
+
var O = new n();
|
|
4293
|
+
O.parse(p, !1, !0), p = O;
|
|
4294
|
+
}
|
|
4295
|
+
for (var g = new n(), R = Object.keys(this), C = 0; C < R.length; C++) {
|
|
4296
|
+
var N = R[C];
|
|
4297
|
+
g[N] = this[N];
|
|
4298
|
+
}
|
|
4299
|
+
if (g.hash = p.hash, p.href === "")
|
|
4300
|
+
return g.href = g.format(), g;
|
|
4301
|
+
if (p.slashes && !p.protocol) {
|
|
4302
|
+
for (var B = Object.keys(p), P = 0; P < B.length; P++) {
|
|
4303
|
+
var oe = B[P];
|
|
4304
|
+
oe !== "protocol" && (g[oe] = p[oe]);
|
|
4305
|
+
}
|
|
4306
|
+
return $[g.protocol] && g.hostname && !g.pathname && (g.pathname = "/", g.path = g.pathname), g.href = g.format(), g;
|
|
4307
|
+
}
|
|
4308
|
+
if (p.protocol && p.protocol !== g.protocol) {
|
|
4309
|
+
if (!$[p.protocol]) {
|
|
4310
|
+
for (var H = Object.keys(p), D = 0; D < H.length; D++) {
|
|
4311
|
+
var se = H[D];
|
|
4312
|
+
g[se] = p[se];
|
|
4313
|
+
}
|
|
4314
|
+
return g.href = g.format(), g;
|
|
4315
|
+
}
|
|
4316
|
+
if (g.protocol = p.protocol, !p.host && !x[p.protocol]) {
|
|
4317
|
+
for (var U = (p.pathname || "").split("/"); U.length && !(p.host = U.shift()); )
|
|
4318
|
+
;
|
|
4319
|
+
p.host || (p.host = ""), p.hostname || (p.hostname = ""), U[0] !== "" && U.unshift(""), U.length < 2 && U.unshift(""), g.pathname = U.join("/");
|
|
4320
|
+
} else
|
|
4321
|
+
g.pathname = p.pathname;
|
|
4322
|
+
if (g.search = p.search, g.query = p.query, g.host = p.host || "", g.auth = p.auth, g.hostname = p.hostname || p.host, g.port = p.port, g.pathname || g.search) {
|
|
4323
|
+
var Z = g.pathname || "", A = g.search || "";
|
|
4324
|
+
g.path = Z + A;
|
|
4325
|
+
}
|
|
4326
|
+
return g.slashes = g.slashes || p.slashes, g.href = g.format(), g;
|
|
4327
|
+
}
|
|
4328
|
+
var re = g.pathname && g.pathname.charAt(0) === "/", E = p.host || p.pathname && p.pathname.charAt(0) === "/", k = E || re || g.host && p.pathname, L = k, q = g.pathname && g.pathname.split("/") || [], U = p.pathname && p.pathname.split("/") || [], J = g.protocol && !$[g.protocol];
|
|
4329
|
+
if (J && (g.hostname = "", g.port = null, g.host && (q[0] === "" ? q[0] = g.host : q.unshift(g.host)), g.host = "", p.protocol && (p.hostname = null, p.port = null, p.host && (U[0] === "" ? U[0] = p.host : U.unshift(p.host)), p.host = null), k = k && (U[0] === "" || q[0] === "")), E)
|
|
4330
|
+
g.host = p.host || p.host === "" ? p.host : g.host, g.hostname = p.hostname || p.hostname === "" ? p.hostname : g.hostname, g.search = p.search, g.query = p.query, q = U;
|
|
4331
|
+
else if (U.length)
|
|
4332
|
+
q || (q = []), q.pop(), q = q.concat(U), g.search = p.search, g.query = p.query;
|
|
4333
|
+
else if (p.search != null) {
|
|
4334
|
+
if (J) {
|
|
4335
|
+
g.host = q.shift(), g.hostname = g.host;
|
|
4336
|
+
var z = g.host && g.host.indexOf("@") > 0 ? g.host.split("@") : !1;
|
|
4337
|
+
z && (g.auth = z.shift(), g.hostname = z.shift(), g.host = g.hostname);
|
|
4338
|
+
}
|
|
4339
|
+
return g.search = p.search, g.query = p.query, (g.pathname !== null || g.search !== null) && (g.path = (g.pathname ? g.pathname : "") + (g.search ? g.search : "")), g.href = g.format(), g;
|
|
4340
|
+
}
|
|
4341
|
+
if (!q.length)
|
|
4342
|
+
return g.pathname = null, g.search ? g.path = "/" + g.search : g.path = null, g.href = g.format(), g;
|
|
4343
|
+
for (var K = q.slice(-1)[0], ne = (g.host || p.host || q.length > 1) && (K === "." || K === "..") || K === "", V = 0, I = q.length; I >= 0; I--)
|
|
4344
|
+
K = q[I], K === "." ? q.splice(I, 1) : K === ".." ? (q.splice(I, 1), V++) : V && (q.splice(I, 1), V--);
|
|
4345
|
+
if (!k && !L)
|
|
4346
|
+
for (; V--; V)
|
|
4347
|
+
q.unshift("..");
|
|
4348
|
+
k && q[0] !== "" && (!q[0] || q[0].charAt(0) !== "/") && q.unshift(""), ne && q.join("/").substr(-1) !== "/" && q.push("");
|
|
4349
|
+
var F = q[0] === "" || q[0] && q[0].charAt(0) === "/";
|
|
4350
|
+
if (J) {
|
|
4351
|
+
g.hostname = F ? "" : q.length ? q.shift() : "", g.host = g.hostname;
|
|
4352
|
+
var z = g.host && g.host.indexOf("@") > 0 ? g.host.split("@") : !1;
|
|
4353
|
+
z && (g.auth = z.shift(), g.hostname = z.shift(), g.host = g.hostname);
|
|
4354
4354
|
}
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4355
|
+
return k = k || g.host && q.length, k && !F && q.unshift(""), q.length > 0 ? g.pathname = q.join("/") : (g.pathname = null, g.path = null), (g.pathname !== null || g.search !== null) && (g.path = (g.pathname ? g.pathname : "") + (g.search ? g.search : "")), g.auth = p.auth || g.auth, g.slashes = g.slashes || p.slashes, g.href = g.format(), g;
|
|
4356
|
+
}, n.prototype.parseHost = function() {
|
|
4357
|
+
var p = this.host, O = a.exec(p);
|
|
4358
|
+
O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
|
|
4359
|
+
}, Pe.parse = m, Pe.resolve = S, Pe.resolveObject = T, Pe.format = v, Pe.Url = n, Pe;
|
|
4360
|
+
}
|
|
4361
|
+
var ur = Ts(), fr = /* @__PURE__ */ qa(), Ps = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Cs = class {
|
|
4362
|
+
constructor(e, n = {}) {
|
|
4363
|
+
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4364
|
+
harIsAlreadyEncoded: !1,
|
|
4365
|
+
...n
|
|
4366
|
+
}, this.requests = [], Ps(e) ? this.entries = e.log.entries : this.entries = [
|
|
4367
|
+
{
|
|
4368
|
+
request: e
|
|
4369
|
+
}
|
|
4370
|
+
];
|
|
4364
4371
|
}
|
|
4365
|
-
|
|
4366
|
-
return
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
return {};
|
|
4372
|
+
init() {
|
|
4373
|
+
return this.initCalled = !0, this.requests = this.entries.map(({ request: e }) => {
|
|
4374
|
+
const n = {
|
|
4375
|
+
bodySize: 0,
|
|
4376
|
+
headersSize: 0,
|
|
4377
|
+
headers: [],
|
|
4378
|
+
cookies: [],
|
|
4379
|
+
httpVersion: "HTTP/1.1",
|
|
4380
|
+
queryString: [],
|
|
4381
|
+
postData: {
|
|
4382
|
+
mimeType: e.postData?.mimeType || "application/octet-stream"
|
|
4383
|
+
},
|
|
4384
|
+
...e
|
|
4385
|
+
};
|
|
4386
|
+
return n.postData && !n.postData.mimeType && (n.postData.mimeType = "application/octet-stream"), this.prepare(n, this.options);
|
|
4387
|
+
}), this;
|
|
4382
4388
|
}
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
}
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4389
|
+
prepare(e, n) {
|
|
4390
|
+
const t = {
|
|
4391
|
+
...e,
|
|
4392
|
+
fullUrl: "",
|
|
4393
|
+
uriObj: {},
|
|
4394
|
+
queryObj: {},
|
|
4395
|
+
headersObj: {},
|
|
4396
|
+
cookiesObj: {},
|
|
4397
|
+
allHeaders: {}
|
|
4398
|
+
};
|
|
4399
|
+
if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(Hr, {})), t.headers && t.headers.length) {
|
|
4400
|
+
const d = /^HTTP\/2/;
|
|
4401
|
+
t.headersObj = t.headers.reduce((y, { name: f, value: h }) => {
|
|
4402
|
+
const x = d.exec(t.httpVersion) ? f.toLocaleLowerCase() : f;
|
|
4403
|
+
return {
|
|
4404
|
+
...y,
|
|
4405
|
+
[x]: h
|
|
4406
|
+
};
|
|
4407
|
+
}, {});
|
|
4408
|
+
}
|
|
4409
|
+
t.cookies && t.cookies.length && (t.cookiesObj = t.cookies.reduceRight(
|
|
4410
|
+
(d, { name: y, value: f }) => ({
|
|
4411
|
+
...d,
|
|
4412
|
+
[y]: f
|
|
4413
|
+
}),
|
|
4414
|
+
{}
|
|
4415
|
+
));
|
|
4416
|
+
const a = t.cookies?.map(({ name: d, value: y }) => n.harIsAlreadyEncoded ? `${d}=${y}` : `${encodeURIComponent(d)}=${encodeURIComponent(y)}`);
|
|
4417
|
+
switch (a?.length && (t.allHeaders.cookie = a.join("; ")), t.postData.mimeType) {
|
|
4418
|
+
case "multipart/mixed":
|
|
4419
|
+
case "multipart/related":
|
|
4420
|
+
case "multipart/form-data":
|
|
4421
|
+
case "multipart/alternative":
|
|
4422
|
+
if (t.postData.text = "", t.postData.mimeType = "multipart/form-data", t.postData?.params) {
|
|
4423
|
+
const d = "---011000010111000001101001", y = `${d}--`, f = `\r
|
|
4424
|
+
`, h = (m) => m.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), x = (m) => m.replace(/\r?\n|\r/g, `\r
|
|
4425
|
+
`), $ = [`--${d}`];
|
|
4426
|
+
t.postData?.params.forEach((m, v) => {
|
|
4427
|
+
const S = m.name, T = m.value || "", p = m.fileName || null, O = m.contentType || "application/octet-stream";
|
|
4428
|
+
p ? ($.push(
|
|
4429
|
+
`Content-Disposition: form-data; name="${h(x(S))}"; filename="${p}"`
|
|
4430
|
+
), $.push(`Content-Type: ${O}`)) : $.push(`Content-Disposition: form-data; name="${h(x(S))}"`), $.push(""), $.push(x(T)), v !== t.postData.params.length - 1 && $.push(`--${d}`);
|
|
4431
|
+
}), $.push(`--${y}`), t.postData.boundary = d, t.postData.text = $.join(f);
|
|
4432
|
+
const u = fe(t.headersObj, "content-type") || "content-type";
|
|
4433
|
+
t.headersObj[u] = `multipart/form-data; boundary=${d}`;
|
|
4425
4434
|
}
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
value: x.toString(),
|
|
4440
|
-
label: h.mediaType
|
|
4441
|
-
}))
|
|
4442
|
-
}
|
|
4443
|
-
) : /* @__PURE__ */ b.jsx("span", { className: "font-mono text-[11px]", children: e[0]?.mediaType }) }),
|
|
4444
|
-
i.length > 1 && /* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ b.jsx(
|
|
4445
|
-
Ye,
|
|
4446
|
-
{
|
|
4447
|
-
className: "max-w-[180px]",
|
|
4448
|
-
value: s.toString(),
|
|
4449
|
-
onChange: (h) => r(Number(h.target.value)),
|
|
4450
|
-
options: i.map((h, x) => ({
|
|
4451
|
-
value: x.toString(),
|
|
4452
|
-
label: h.summary || h.name || h.description || `Example ${x + 1}`
|
|
4453
|
-
}))
|
|
4435
|
+
break;
|
|
4436
|
+
case "application/x-www-form-urlencoded":
|
|
4437
|
+
t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Hr, {}), t.postData.text = fr.stringify(t.postData.paramsObj)) : t.postData.text = "";
|
|
4438
|
+
break;
|
|
4439
|
+
case "text/json":
|
|
4440
|
+
case "text/x-json":
|
|
4441
|
+
case "application/json":
|
|
4442
|
+
case "application/x-json":
|
|
4443
|
+
if (t.postData.mimeType = "application/json", t.postData.text)
|
|
4444
|
+
try {
|
|
4445
|
+
t.postData.jsonObj = JSON.parse(t.postData.text);
|
|
4446
|
+
} catch {
|
|
4447
|
+
t.postData.mimeType = "text/plain";
|
|
4454
4448
|
}
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
})
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4449
|
+
break;
|
|
4450
|
+
}
|
|
4451
|
+
const c = {
|
|
4452
|
+
...t.allHeaders,
|
|
4453
|
+
...t.headersObj
|
|
4454
|
+
}, s = ur.parse(t.url, !0, !0);
|
|
4455
|
+
t.queryObj = {
|
|
4456
|
+
...t.queryObj,
|
|
4457
|
+
...s.query
|
|
4458
|
+
};
|
|
4459
|
+
let r;
|
|
4460
|
+
n.harIsAlreadyEncoded ? r = fr.stringify(t.queryObj, {
|
|
4461
|
+
encode: !1,
|
|
4462
|
+
indices: !1
|
|
4463
|
+
}) : r = fr.stringify(t.queryObj, {
|
|
4464
|
+
indices: !1
|
|
4465
|
+
});
|
|
4466
|
+
const o = {
|
|
4467
|
+
...s,
|
|
4468
|
+
query: t.queryObj,
|
|
4469
|
+
search: r,
|
|
4470
|
+
path: r ? `${s.pathname}?${r}` : s.pathname
|
|
4471
|
+
}, i = ur.format({
|
|
4472
|
+
...s,
|
|
4473
|
+
query: null,
|
|
4474
|
+
search: null
|
|
4475
|
+
}), l = ur.format({
|
|
4476
|
+
...s,
|
|
4477
|
+
...o
|
|
4478
|
+
});
|
|
4479
|
+
return {
|
|
4480
|
+
...t,
|
|
4481
|
+
allHeaders: c,
|
|
4482
|
+
fullUrl: l,
|
|
4483
|
+
url: i,
|
|
4484
|
+
uriObj: o
|
|
4485
|
+
};
|
|
4486
|
+
}
|
|
4487
|
+
convert(e, n, t) {
|
|
4488
|
+
this.initCalled || this.init(), !t && n && (t = n);
|
|
4489
|
+
const a = zi[e];
|
|
4490
|
+
if (!a)
|
|
4491
|
+
return !1;
|
|
4492
|
+
const { convert: c } = a.clientsById[n || a.info.default];
|
|
4493
|
+
return this.requests.map((r) => c(r, t));
|
|
4494
4494
|
}
|
|
4495
|
-
|
|
4495
|
+
};
|
|
4496
|
+
const qs = ({
|
|
4497
|
+
operation: e,
|
|
4498
|
+
selectedServer: n,
|
|
4499
|
+
exampleBody: t
|
|
4500
|
+
}) => new Cs({
|
|
4501
|
+
method: e.method.toUpperCase(),
|
|
4502
|
+
url: n + e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
4503
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4504
|
+
postData: t,
|
|
4505
|
+
headers: [
|
|
4506
|
+
...t.text ? [{ name: "Content-Type", value: t.mimeType }] : [],
|
|
4507
|
+
...e.parameters?.filter((a) => a.in === "header" && a.required === !0).map((a) => ({
|
|
4508
|
+
name: a.name,
|
|
4509
|
+
value: a.schema?.default ?? a.examples?.find((c) => c.value)?.value ?? (a.schema?.type === "string" ? "<string>" : a.schema?.type === "number" || a.schema?.type === "integer" ? "<number>" : a.schema?.type === "boolean" ? "<bool>" : "<value>")
|
|
4510
|
+
})) ?? []
|
|
4511
|
+
],
|
|
4512
|
+
queryString: e.parameters?.filter((a) => a.in === "query" && a.required === !0).map((a) => ({
|
|
4513
|
+
name: a.name,
|
|
4514
|
+
value: a.schema?.default ?? a.examples?.find((c) => c.value)?.value ?? (a.schema?.type === "string" ? "<string>" : a.schema?.type === "number" || a.schema?.type === "integer" ? "<number>" : a.schema?.type === "boolean" ? "<bool>" : "<value>")
|
|
4515
|
+
})) ?? [],
|
|
4516
|
+
httpVersion: "",
|
|
4517
|
+
cookies: [],
|
|
4518
|
+
headersSize: 0,
|
|
4519
|
+
bodySize: 0
|
|
4520
|
+
}), Es = (e, n) => {
|
|
4496
4521
|
let t;
|
|
4497
4522
|
switch (n) {
|
|
4498
4523
|
case "shell":
|
|
@@ -4533,7 +4558,7 @@ const js = ({
|
|
|
4533
4558
|
break;
|
|
4534
4559
|
}
|
|
4535
4560
|
return t ? t[0] : "";
|
|
4536
|
-
},
|
|
4561
|
+
}, Rs = Be(
|
|
4537
4562
|
/* GraphQL */
|
|
4538
4563
|
`
|
|
4539
4564
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -4545,7 +4570,7 @@ const js = ({
|
|
|
4545
4570
|
}
|
|
4546
4571
|
}
|
|
4547
4572
|
`
|
|
4548
|
-
),
|
|
4573
|
+
), ks = [
|
|
4549
4574
|
{ value: "shell", label: "cURL" },
|
|
4550
4575
|
{ value: "js", label: "JavaScript" },
|
|
4551
4576
|
{ value: "python", label: "Python" },
|
|
@@ -4557,12 +4582,12 @@ const js = ({
|
|
|
4557
4582
|
{ value: "php", label: "PHP" },
|
|
4558
4583
|
{ value: "ruby", label: "Ruby" },
|
|
4559
4584
|
{ value: "swift", label: "Swift" }
|
|
4560
|
-
],
|
|
4585
|
+
], Ns = ({
|
|
4561
4586
|
operation: e,
|
|
4562
4587
|
selectedResponse: n,
|
|
4563
4588
|
onSelectResponse: t
|
|
4564
4589
|
}) => {
|
|
4565
|
-
const { input: a, type: c, options: s } = Ze(), r = Ia(), o = De(
|
|
4590
|
+
const { input: a, type: c, options: s } = Ze(), r = Ia(), o = De(Rs, { input: a, type: c }), i = gr(o), l = co(), d = na(e.method), [y, f] = Va(), [, h] = ua(), [x, $] = ge(), u = y.get("lang") ?? s?.examplesLanguage ?? "shell", m = e.requestBody?.content, v = m && s?.transformExamples ? s.transformExamples({
|
|
4566
4591
|
auth: r,
|
|
4567
4592
|
type: "request",
|
|
4568
4593
|
operation: e,
|
|
@@ -4582,42 +4607,25 @@ const js = ({
|
|
|
4582
4607
|
}
|
|
4583
4608
|
)
|
|
4584
4609
|
}
|
|
4585
|
-
), { selectedServer:
|
|
4610
|
+
), { selectedServer: T } = vr(i.data.schema.servers), p = pa(() => {
|
|
4586
4611
|
const C = x ?? (v?.[0]?.schema ? $e(
|
|
4587
4612
|
v[0].schema
|
|
4588
|
-
) : void 0),
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
} : {}
|
|
4595
|
-
headers: [
|
|
4596
|
-
{ name: "Content-Type", value: "application/json" },
|
|
4597
|
-
...e.parameters?.filter((k) => k.in === "header" && k.required === !0).map((k) => ({
|
|
4598
|
-
name: k.name,
|
|
4599
|
-
value: k.examples?.find((T) => T.value)?.value ?? k.schema?.default ?? (k.schema?.type === "string" ? "string" : k.schema?.type === "number" || k.schema?.type === "integer" ? "0" : k.schema?.type === "boolean" ? "true" : "")
|
|
4600
|
-
})) ?? []
|
|
4601
|
-
],
|
|
4602
|
-
queryString: e.parameters?.filter((k) => k.in === "query" && k.required === !0).map((k) => ({
|
|
4603
|
-
name: k.name,
|
|
4604
|
-
value: k.examples?.find((T) => T.value)?.value ?? k.schema?.default ?? (k.schema?.type === "string" ? "string" : k.schema?.type === "number" || k.schema?.type === "integer" ? "0" : k.schema?.type === "boolean" ? "true" : "")
|
|
4605
|
-
})) ?? [],
|
|
4606
|
-
httpVersion: "",
|
|
4607
|
-
cookies: [],
|
|
4608
|
-
headersSize: 0,
|
|
4609
|
-
bodySize: 0
|
|
4613
|
+
) : void 0), N = qs({
|
|
4614
|
+
operation: e,
|
|
4615
|
+
selectedServer: T,
|
|
4616
|
+
exampleBody: C ? {
|
|
4617
|
+
mimeType: "application/json",
|
|
4618
|
+
text: JSON.stringify(C, null, 2)
|
|
4619
|
+
} : { mimeType: "application/json" }
|
|
4610
4620
|
});
|
|
4611
|
-
return
|
|
4621
|
+
return Es(N, u);
|
|
4612
4622
|
}, [
|
|
4613
4623
|
x,
|
|
4614
4624
|
v,
|
|
4615
|
-
e
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
e.parameters
|
|
4620
|
-
]), [O, g] = js({ rootMargin: "200px 0px 200px 0px" }), R = g && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !s?.disablePlayground);
|
|
4625
|
+
e,
|
|
4626
|
+
T,
|
|
4627
|
+
u
|
|
4628
|
+
]), [O, g] = jo({ rootMargin: "200px 0px 200px 0px" }), R = g && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !s?.disablePlayground);
|
|
4621
4629
|
return /* @__PURE__ */ b.jsxs(
|
|
4622
4630
|
"aside",
|
|
4623
4631
|
{
|
|
@@ -4625,15 +4633,15 @@ const js = ({
|
|
|
4625
4633
|
className: "flex flex-col overflow-hidden sticky top-(--scroll-padding) gap-4",
|
|
4626
4634
|
"data-pagefind-ignore": "all",
|
|
4627
4635
|
children: [
|
|
4628
|
-
/* @__PURE__ */ b.jsxs(
|
|
4629
|
-
/* @__PURE__ */ b.jsxs(
|
|
4636
|
+
/* @__PURE__ */ b.jsxs($r, { children: [
|
|
4637
|
+
/* @__PURE__ */ b.jsxs(jr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
|
|
4630
4638
|
/* @__PURE__ */ b.jsxs("span", { className: "font-mono break-words leading-6", children: [
|
|
4631
|
-
/* @__PURE__ */ b.jsx("span", { className: pe("font-semibold", d), children: e.method.
|
|
4639
|
+
/* @__PURE__ */ b.jsx("span", { className: pe("font-semibold", d), children: e.method.toUpperCase() }),
|
|
4632
4640
|
" ",
|
|
4633
4641
|
S
|
|
4634
4642
|
] }),
|
|
4635
4643
|
R && /* @__PURE__ */ b.jsx(
|
|
4636
|
-
|
|
4644
|
+
So,
|
|
4637
4645
|
{
|
|
4638
4646
|
servers: i.data.schema.servers.map((C) => C.url),
|
|
4639
4647
|
operation: e,
|
|
@@ -4642,7 +4650,7 @@ const js = ({
|
|
|
4642
4650
|
)
|
|
4643
4651
|
] }),
|
|
4644
4652
|
g && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
4645
|
-
/* @__PURE__ */ b.jsx(
|
|
4653
|
+
/* @__PURE__ */ b.jsx(ma, { className: "p-0", children: /* @__PURE__ */ b.jsx(ya, { children: /* @__PURE__ */ b.jsx(
|
|
4646
4654
|
ha,
|
|
4647
4655
|
{
|
|
4648
4656
|
language: u,
|
|
@@ -4651,7 +4659,7 @@ const js = ({
|
|
|
4651
4659
|
code: p
|
|
4652
4660
|
}
|
|
4653
4661
|
) }) }),
|
|
4654
|
-
/* @__PURE__ */ b.jsxs(
|
|
4662
|
+
/* @__PURE__ */ b.jsxs(ga, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
|
|
4655
4663
|
/* @__PURE__ */ b.jsx("span", { children: "Show example in" }),
|
|
4656
4664
|
/* @__PURE__ */ b.jsx(
|
|
4657
4665
|
Ye,
|
|
@@ -4660,24 +4668,24 @@ const js = ({
|
|
|
4660
4668
|
value: u,
|
|
4661
4669
|
onChange: (C) => {
|
|
4662
4670
|
h(() => {
|
|
4663
|
-
f((
|
|
4671
|
+
f((N) => (N.set("lang", C.target.value), N));
|
|
4664
4672
|
});
|
|
4665
4673
|
},
|
|
4666
|
-
options:
|
|
4674
|
+
options: ks
|
|
4667
4675
|
}
|
|
4668
4676
|
)
|
|
4669
4677
|
] })
|
|
4670
4678
|
] })
|
|
4671
4679
|
] }),
|
|
4672
4680
|
g && v && /* @__PURE__ */ b.jsx(
|
|
4673
|
-
|
|
4681
|
+
Po,
|
|
4674
4682
|
{
|
|
4675
4683
|
content: v,
|
|
4676
4684
|
onExampleChange: $
|
|
4677
4685
|
}
|
|
4678
4686
|
),
|
|
4679
4687
|
g && e.responses.length > 0 && /* @__PURE__ */ b.jsx(
|
|
4680
|
-
|
|
4688
|
+
Co,
|
|
4681
4689
|
{
|
|
4682
4690
|
selectedResponse: n,
|
|
4683
4691
|
onSelectResponse: t,
|
|
@@ -4696,7 +4704,7 @@ const js = ({
|
|
|
4696
4704
|
]
|
|
4697
4705
|
}
|
|
4698
4706
|
);
|
|
4699
|
-
},
|
|
4707
|
+
}, As = pe, Is = ({
|
|
4700
4708
|
responses: e,
|
|
4701
4709
|
selectedResponse: n,
|
|
4702
4710
|
onSelectResponse: t
|
|
@@ -4709,7 +4717,7 @@ const js = ({
|
|
|
4709
4717
|
je.Trigger,
|
|
4710
4718
|
{
|
|
4711
4719
|
value: o.statusCode,
|
|
4712
|
-
className:
|
|
4720
|
+
className: As(
|
|
4713
4721
|
"py-1 -mx-2 px-2 rounded-md",
|
|
4714
4722
|
"data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
|
|
4715
4723
|
"data-[state=active]:font-semibold data-[state=active]:text-foreground"
|
|
@@ -4731,7 +4739,7 @@ const js = ({
|
|
|
4731
4739
|
)
|
|
4732
4740
|
] }),
|
|
4733
4741
|
s?.description && /* @__PURE__ */ b.jsx(
|
|
4734
|
-
|
|
4742
|
+
fo,
|
|
4735
4743
|
{
|
|
4736
4744
|
className: "text-sm border-t px-4 py-2 text-muted-foreground",
|
|
4737
4745
|
content: s.description
|
|
@@ -4755,11 +4763,11 @@ const js = ({
|
|
|
4755
4763
|
})
|
|
4756
4764
|
}
|
|
4757
4765
|
) });
|
|
4758
|
-
},
|
|
4766
|
+
}, Us = ["path", "query", "header", "cookie"], Ls = ({
|
|
4759
4767
|
operationFragment: e,
|
|
4760
4768
|
serverUrl: n
|
|
4761
4769
|
}) => {
|
|
4762
|
-
const t = yo(
|
|
4770
|
+
const t = yo(Fs, e), a = so(
|
|
4763
4771
|
t.parameters ?? [],
|
|
4764
4772
|
(i) => i.in
|
|
4765
4773
|
), { options: c } = Ze(), s = t.responses.at(0), [r, o] = ge(s?.statusCode);
|
|
@@ -4805,7 +4813,7 @@ const js = ({
|
|
|
4805
4813
|
content: t.description
|
|
4806
4814
|
}
|
|
4807
4815
|
),
|
|
4808
|
-
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ b.jsx(b.Fragment, { children:
|
|
4816
|
+
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ b.jsx(b.Fragment, { children: Us.flatMap(
|
|
4809
4817
|
(i) => a[i]?.length ? /* @__PURE__ */ b.jsx(
|
|
4810
4818
|
$o,
|
|
4811
4819
|
{
|
|
@@ -4854,7 +4862,7 @@ const js = ({
|
|
|
4854
4862
|
}
|
|
4855
4863
|
),
|
|
4856
4864
|
/* @__PURE__ */ b.jsx(
|
|
4857
|
-
|
|
4865
|
+
Is,
|
|
4858
4866
|
{
|
|
4859
4867
|
responses: t.responses,
|
|
4860
4868
|
selectedResponse: r,
|
|
@@ -4866,7 +4874,7 @@ const js = ({
|
|
|
4866
4874
|
}
|
|
4867
4875
|
),
|
|
4868
4876
|
Br(!c?.disableSidecar, () => /* @__PURE__ */ b.jsx(
|
|
4869
|
-
|
|
4877
|
+
Ns,
|
|
4870
4878
|
{
|
|
4871
4879
|
selectedResponse: r,
|
|
4872
4880
|
onSelectResponse: o,
|
|
@@ -4882,7 +4890,7 @@ const js = ({
|
|
|
4882
4890
|
function Xn(e, n = 160) {
|
|
4883
4891
|
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, "'") : "";
|
|
4884
4892
|
}
|
|
4885
|
-
const
|
|
4893
|
+
const Fs = Be(
|
|
4886
4894
|
/* GraphQL */
|
|
4887
4895
|
`
|
|
4888
4896
|
fragment OperationsFragment on OperationItem {
|
|
@@ -4950,7 +4958,7 @@ const Ls = Be(
|
|
|
4950
4958
|
}
|
|
4951
4959
|
}
|
|
4952
4960
|
`
|
|
4953
|
-
),
|
|
4961
|
+
), _s = Be(
|
|
4954
4962
|
/* GraphQL */
|
|
4955
4963
|
`
|
|
4956
4964
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
@@ -4959,7 +4967,7 @@ const Ls = Be(
|
|
|
4959
4967
|
}
|
|
4960
4968
|
}
|
|
4961
4969
|
`
|
|
4962
|
-
),
|
|
4970
|
+
), Bs = Be(
|
|
4963
4971
|
/* GraphQL */
|
|
4964
4972
|
`
|
|
4965
4973
|
query OperationsForTag(
|
|
@@ -4996,18 +5004,18 @@ const Ls = Be(
|
|
|
4996
5004
|
}
|
|
4997
5005
|
}
|
|
4998
5006
|
`
|
|
4999
|
-
),
|
|
5007
|
+
), ll = ({
|
|
5000
5008
|
tag: e,
|
|
5001
5009
|
untagged: n
|
|
5002
5010
|
}) => {
|
|
5003
|
-
const { input: t, type: a, versions: c, version: s, options: r } = Ze(), { tag: o } = Ga(), i = De(
|
|
5011
|
+
const { input: t, type: a, versions: c, version: s, options: r } = Ze(), { tag: o } = Ga(), i = De(Bs, {
|
|
5004
5012
|
input: t,
|
|
5005
5013
|
type: a,
|
|
5006
5014
|
tag: e ?? o,
|
|
5007
5015
|
untagged: n
|
|
5008
5016
|
}), l = gr(i), {
|
|
5009
5017
|
data: { schema: d }
|
|
5010
|
-
} = l, { selectedServer: y } = vr(d.servers), f = d.title, h = d.summary, x = d.description, $ = Da(), u = De(
|
|
5018
|
+
} = l, { selectedServer: y } = vr(d.servers), f = d.title, h = d.summary, x = d.description, $ = Da(), u = De(_s, { input: t, type: a });
|
|
5011
5019
|
if (Ua({
|
|
5012
5020
|
...u,
|
|
5013
5021
|
enabled: typeof window < "u",
|
|
@@ -5017,7 +5025,7 @@ const Ls = Be(
|
|
|
5017
5025
|
/* @__PURE__ */ b.jsx("div", { className: "text-muted-foreground font-medium", children: "No operations found" }),
|
|
5018
5026
|
/* @__PURE__ */ b.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "This API doesn't have any operations defined yet." })
|
|
5019
5027
|
] });
|
|
5020
|
-
const { operations: m, next: v, prev: S, description:
|
|
5028
|
+
const { operations: m, next: v, prev: S, description: T } = d.tag, p = T ? Xn(T) : h || (x ? Xn(x) : void 0), O = Object.entries(c).length > 1, g = r?.showVersionSelect === "always" || O && r?.showVersionSelect !== "hide", R = {
|
|
5021
5029
|
prev: S?.name ? { to: `../${S.slug}`, label: S.name } : void 0,
|
|
5022
5030
|
next: v ? {
|
|
5023
5031
|
to: `../${v.slug ?? Ya}`,
|
|
@@ -5109,14 +5117,14 @@ const Ls = Be(
|
|
|
5109
5117
|
}
|
|
5110
5118
|
) })
|
|
5111
5119
|
] }),
|
|
5112
|
-
|
|
5120
|
+
T && /* @__PURE__ */ b.jsx(
|
|
5113
5121
|
"div",
|
|
5114
5122
|
{
|
|
5115
5123
|
className: pe(
|
|
5116
5124
|
dr,
|
|
5117
5125
|
"my-4 max-w-full prose-img:max-w-prose"
|
|
5118
5126
|
),
|
|
5119
|
-
children: /* @__PURE__ */ b.jsx(Qe, { content:
|
|
5127
|
+
children: /* @__PURE__ */ b.jsx(Qe, { content: T })
|
|
5120
5128
|
}
|
|
5121
5129
|
)
|
|
5122
5130
|
] }),
|
|
@@ -5124,7 +5132,7 @@ const Ls = Be(
|
|
|
5124
5132
|
/* @__PURE__ */ b.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
|
|
5125
5133
|
m.map((C) => /* @__PURE__ */ b.jsxs("div", { children: [
|
|
5126
5134
|
/* @__PURE__ */ b.jsx(
|
|
5127
|
-
|
|
5135
|
+
Ls,
|
|
5128
5136
|
{
|
|
5129
5137
|
serverUrl: y,
|
|
5130
5138
|
operationFragment: C
|
|
@@ -5139,7 +5147,7 @@ const Ls = Be(
|
|
|
5139
5147
|
);
|
|
5140
5148
|
};
|
|
5141
5149
|
export {
|
|
5142
|
-
|
|
5143
|
-
|
|
5150
|
+
ll as OperationList,
|
|
5151
|
+
Fs as OperationsFragment
|
|
5144
5152
|
};
|
|
5145
|
-
//# sourceMappingURL=OperationList-
|
|
5153
|
+
//# sourceMappingURL=OperationList-CNhg654C.js.map
|