zudoku 0.0.0-z6bcd96da → 0.0.0-z6e949a6d
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/loader.js +3 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +170 -120
- package/dist/config/validators/InputNavigationSchema.js +17 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/NavigationSchema.d.ts +10 -2
- package/dist/config/validators/NavigationSchema.js +6 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +7 -7
- package/dist/flat-config.d.ts +35 -24
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/MobileTopNavigation.js +2 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -1
- package/dist/lib/components/TopNavigation.js +7 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +8 -1
- package/dist/lib/components/context/ZudokuContext.js +2 -0
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +18 -74
- package/dist/lib/components/index.js +19 -36
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.js +4 -3
- package/dist/lib/components/navigation/Navigation.js.map +1 -1
- package/dist/lib/components/navigation/NavigationCategory.js +8 -0
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/NavigationFilterContext.d.ts +8 -0
- package/dist/lib/components/navigation/NavigationFilterContext.js +12 -0
- package/dist/lib/components/navigation/NavigationFilterContext.js.map +1 -0
- package/dist/lib/components/navigation/NavigationFilterInput.d.ts +3 -0
- package/dist/lib/components/navigation/NavigationFilterInput.js +9 -0
- package/dist/lib/components/navigation/NavigationFilterInput.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.js +11 -1
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +2 -1
- package/dist/lib/components/navigation/utils.js +22 -1
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +11 -1
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/core/transform-config.d.ts +2 -0
- package/dist/lib/core/transform-config.js +22 -0
- package/dist/lib/core/transform-config.js.map +1 -0
- package/dist/lib/hooks/index.d.ts +7 -30
- package/dist/lib/hooks/index.js +7 -15
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +1 -1
- package/dist/lib/oas/graphql/circular.js +18 -35
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/circular.test.js +33 -2
- package/dist/lib/oas/graphql/circular.test.js.map +1 -1
- package/dist/lib/oas/parser/index.js +14 -5
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +3 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js +20 -0
- package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +7 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +3 -3
- package/dist/lib/ui/InputGroup.d.ts +16 -0
- package/dist/lib/ui/InputGroup.js +65 -0
- package/dist/lib/ui/InputGroup.js.map +1 -0
- package/dist/lib/util/flattenAllOf.d.ts +0 -2
- package/dist/lib/util/flattenAllOf.js +0 -46
- package/dist/lib/util/flattenAllOf.js.map +1 -1
- package/dist/lib/util/flattenAllOf.test.js +2 -1
- package/dist/lib/util/flattenAllOf.test.js.map +1 -1
- package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
- package/dist/lib/util/flattenAllOfProcessor.js +48 -0
- package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
- package/dist/lib/util/readFrontmatter.js +2 -1
- package/dist/lib/util/readFrontmatter.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +1 -1
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +1 -1
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/build.js +91 -73
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/mdx/remark-inject-filepath.js +5 -1
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js +3 -2
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
- package/dist/vite/plugin-docs.js +9 -7
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-markdown-export.js +4 -2
- package/dist/vite/plugin-markdown-export.js.map +1 -1
- package/lib/{ClaudeLogo-DJ9bU-sO.js → ClaudeLogo-OpUSMQJe.js} +26 -22
- package/lib/{ClaudeLogo-DJ9bU-sO.js.map → ClaudeLogo-OpUSMQJe.js.map} +1 -1
- package/lib/{MdxPage-stpAoBtx.js → MdxPage-dzCPGdvD.js} +8 -8
- package/lib/{MdxPage-stpAoBtx.js.map → MdxPage-dzCPGdvD.js.map} +1 -1
- package/lib/{Mermaid-Koc3z8mU.js → Mermaid-JEnWyK0s.js} +3 -2
- package/lib/{Mermaid-Koc3z8mU.js.map → Mermaid-JEnWyK0s.js.map} +1 -1
- package/lib/{OAuthErrorPage-DJ811Bn_.js → OAuthErrorPage-D7n-_cqN.js} +20 -18
- package/lib/{OAuthErrorPage-DJ811Bn_.js.map → OAuthErrorPage-D7n-_cqN.js.map} +1 -1
- package/lib/{OasProvider-CS_ASmBB.js → OasProvider-DPPdikt_.js} +3 -3
- package/lib/{OasProvider-CS_ASmBB.js.map → OasProvider-DPPdikt_.js.map} +1 -1
- package/lib/{OperationList-Dq_AB4W9.js → OperationList-cEveQ_l5.js} +948 -946
- package/lib/OperationList-cEveQ_l5.js.map +1 -0
- package/lib/{RouteGuard--A04ESy8.js → RouteGuard-BMbu_Yb7.js} +5 -5
- package/lib/{RouteGuard--A04ESy8.js.map → RouteGuard-BMbu_Yb7.js.map} +1 -1
- package/lib/{SchemaList-BJZJv1gD.js → SchemaList-CRC8n5co.js} +7 -7
- package/lib/{SchemaList-BJZJv1gD.js.map → SchemaList-CRC8n5co.js.map} +1 -1
- package/lib/{SchemaView-U4JMYB3N.js → SchemaView-BR6dtnPg.js} +3 -3
- package/lib/{SchemaView-U4JMYB3N.js.map → SchemaView-BR6dtnPg.js.map} +1 -1
- package/lib/{SignUp-DCBViNUi.js → SignUp-ChqXj9vd.js} +31 -26
- package/lib/{SignUp-DCBViNUi.js.map → SignUp-ChqXj9vd.js.map} +1 -1
- package/lib/{SyntaxHighlight-Dshjn3Zf.js → SyntaxHighlight-O-IZOPLg.js} +3 -3
- package/lib/{SyntaxHighlight-Dshjn3Zf.js.map → SyntaxHighlight-O-IZOPLg.js.map} +1 -1
- package/lib/{Toc-Cgz6CPiE.js → Toc-DQF7trHT.js} +2 -2
- package/lib/{Toc-Cgz6CPiE.js.map → Toc-DQF7trHT.js.map} +1 -1
- package/lib/{index-CL8eDnQW.js → Zudoku-DA1yA-te.js} +2609 -2452
- package/lib/Zudoku-DA1yA-te.js.map +1 -0
- package/lib/{ZudokuContext-BZB1TWdT.js → ZudokuContext-C6wlLMUH.js} +137 -135
- package/lib/{ZudokuContext-BZB1TWdT.js.map → ZudokuContext-C6wlLMUH.js.map} +1 -1
- package/lib/{circular-BmMJjG1v.js → circular-C4l1Kj1N.js} +1327 -1346
- package/lib/{circular-BmMJjG1v.js.map → circular-C4l1Kj1N.js.map} +1 -1
- package/lib/createServer-DoRZ6tMa.js +13036 -0
- package/lib/createServer-DoRZ6tMa.js.map +1 -0
- package/lib/{errors-b9I-fAOY.js → errors-CYLN8SNc.js} +3 -3
- package/lib/{errors-b9I-fAOY.js.map → errors-CYLN8SNc.js.map} +1 -1
- package/lib/{firebase-BCXX7Qv5.js → firebase-DF-VVKB7.js} +14 -14
- package/lib/firebase-DF-VVKB7.js.map +1 -0
- package/lib/{hook-BGlHBdET.js → hook-C35h0YhF.js} +2 -2
- package/lib/{hook-BGlHBdET.js.map → hook-C35h0YhF.js.map} +1 -1
- package/lib/{index-O9RHI87z.js → index-Ck4TmzTO.js} +574 -538
- package/lib/index-Ck4TmzTO.js.map +1 -0
- package/lib/index-DAWHN3cH.js +86 -0
- package/lib/index-DAWHN3cH.js.map +1 -0
- package/lib/{index-UOLtazB8.js → index-DrAVvbXa.js} +2 -2
- package/lib/{index-UOLtazB8.js.map → index-DrAVvbXa.js.map} +1 -1
- package/lib/{index.esm-C5CBsVzN.js → index.esm-B2cLXwjS.js} +2 -2
- package/lib/index.esm-B2cLXwjS.js.map +1 -0
- package/lib/{index.esm-B_0dvNjB.js → index.esm-Ca5zvoff.js} +20 -20
- package/lib/{index.esm-B_0dvNjB.js.map → index.esm-Ca5zvoff.js.map} +1 -1
- package/lib/{invariant-BJAl77rw.js → invariant-B_t_F2s_.js} +3 -3
- package/lib/{invariant-BJAl77rw.js.map → invariant-B_t_F2s_.js.map} +1 -1
- package/lib/ui/InputGroup.js +155 -0
- package/lib/ui/InputGroup.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/useExposedProps-CzTDfXfq.js +30 -0
- package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
- package/lib/zudoku.__internal.js +1493 -1031
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-firebase.js +5 -5
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.auth-supabase.js +4 -4
- package/lib/zudoku.components.js +31 -29
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +24 -11
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.mermaid.js +4 -3
- package/lib/zudoku.mermaid.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +36 -32
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +131 -130
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/lib/zudoku.plugin-search-pagefind.js +2 -2
- package/lib/zudoku.plugins.js +9 -8
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +6 -4
- package/src/lib/components/MobileTopNavigation.tsx +13 -8
- package/src/lib/components/TopNavigation.tsx +25 -7
- package/src/lib/components/context/ZudokuContext.ts +1 -0
- package/src/lib/components/index.ts +19 -39
- package/src/lib/components/navigation/Navigation.tsx +4 -3
- package/src/lib/components/navigation/NavigationCategory.tsx +9 -0
- package/src/lib/components/navigation/NavigationFilterContext.tsx +28 -0
- package/src/lib/components/navigation/NavigationFilterInput.tsx +35 -0
- package/src/lib/components/navigation/NavigationItem.tsx +17 -1
- package/src/lib/components/navigation/utils.ts +32 -1
- package/src/lib/core/plugins.ts +21 -1
- package/src/lib/core/transform-config.ts +29 -0
- package/src/lib/hooks/index.ts +7 -16
- package/src/lib/oas/graphql/circular.test.ts +37 -2
- package/src/lib/oas/graphql/circular.ts +25 -51
- package/src/lib/oas/parser/index.ts +17 -6
- package/src/lib/plugins/openapi/playground/fileUtils.ts +4 -0
- package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +50 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +33 -17
- package/src/lib/ui/InputGroup.tsx +168 -0
- package/src/lib/util/flattenAllOf.test.ts +2 -1
- package/src/lib/util/flattenAllOf.ts +0 -57
- package/src/lib/util/flattenAllOfProcessor.ts +58 -0
- package/src/lib/util/readFrontmatter.ts +2 -1
- package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
- package/src/zuplo/enrich-with-zuplo.ts +254 -0
- package/src/zuplo/policy-types.ts +46 -0
- package/src/zuplo/with-zuplo-processors.ts +35 -0
- package/src/zuplo/with-zuplo.ts +14 -0
- package/lib/OperationList-Dq_AB4W9.js.map +0 -1
- package/lib/Separator-BXt1LYnm.js +0 -27
- package/lib/Separator-BXt1LYnm.js.map +0 -1
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +0 -9
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +0 -1
- package/lib/createServer-CLSZ7hWJ.js +0 -16693
- package/lib/createServer-CLSZ7hWJ.js.map +0 -1
- package/lib/firebase-BCXX7Qv5.js.map +0 -1
- package/lib/index-CL8eDnQW.js.map +0 -1
- package/lib/index-DBjOT2H1.js +0 -133
- package/lib/index-DBjOT2H1.js.map +0 -1
- package/lib/index-O9RHI87z.js.map +0 -1
- package/lib/index.esm-C5CBsVzN.js.map +0 -1
|
@@ -1,41 +1,39 @@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { u as
|
|
3
|
-
import { H as
|
|
4
|
-
import { DownloadIcon as
|
|
5
|
-
import { b as
|
|
6
|
-
import { u as ct, a as Sr, d as
|
|
7
|
-
import { S as
|
|
8
|
-
import { C as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { S as Ir, i as
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
2
|
+
import { u as ya, e as Va } from "./useSuspenseQuery-CSB_rVek.js";
|
|
3
|
+
import { H as Ja } from "./index.esm-Ca5zvoff.js";
|
|
4
|
+
import { DownloadIcon as Da, ChevronDownIcon as ga, ExternalLinkIcon as Ie, CopyIcon as kr, ChevronsUpDownIcon as lt, CheckIcon as va, MinusIcon as Qa, PlusIcon as Ka, InfoIcon as xa, ChevronsDownUpIcon as qr } from "lucide-react";
|
|
5
|
+
import { b as Ya, d as Xa, u as Za } from "./chunk-EPOLDU6W-C6C8jAwd.js";
|
|
6
|
+
import { u as ct, a as Sr, d as Je, e as ba, f as Or, P as eo, C as Er, b as Rr, c as Ar, h as to, U as ro } from "./index-Ck4TmzTO.js";
|
|
7
|
+
import { S as no, a as ao, b as oo, c as io, e as so } from "./Secret-BDBqq4p3.js";
|
|
8
|
+
import { C as lo } from "./CategoryHeading-DhmodDcq.js";
|
|
9
|
+
import { b as co, a as uo, h as po } from "./ZudokuContext-C6wlLMUH.js";
|
|
10
|
+
import { I as Ce, M as Ue, T as fo, H as Me, i as ja, l as wa, m as $a, n as Sa, d as Oa, b as ho, c as Yr } from "./Zudoku-DA1yA-te.js";
|
|
11
|
+
import { S as Ir, i as mo, a as yo, E as Xr, b as go, c as vo, g as xo, P as Tr } from "./SchemaView-BR6dtnPg.js";
|
|
12
|
+
import { C as bo, a as jo, P as wo } from "./ClaudeLogo-OpUSMQJe.js";
|
|
13
|
+
import { Button as Ne } from "./ui/Button.js";
|
|
14
|
+
import { useTransition as Ta, useState as ge, Fragment as $o, useRef as So, useEffect as Cr, useMemo as Oo } from "react";
|
|
15
|
+
import "./index-DAWHN3cH.js";
|
|
16
|
+
import { Slot as To } from "@radix-ui/react-slot";
|
|
14
17
|
import { c as Ca } from "./index-DI5SPFK9.js";
|
|
15
18
|
import { c as fe } from "./cn-5-Gd1Dss.js";
|
|
16
19
|
import "@radix-ui/react-separator";
|
|
17
|
-
import { D as
|
|
18
|
-
import { u as
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
import { Frame as Uo, FramePanel as Lo } from "./ui/Frame.js";
|
|
29
|
-
import { Item as _o, ItemContent as tn, ItemTitle as Fo, ItemActions as Ho, ItemGroup as Mo, ItemSeparator as Bo } from "./ui/Item.js";
|
|
30
|
-
import * as rn from "@radix-ui/react-collapsible";
|
|
31
|
-
import { c as zo } from "./index-DBjOT2H1.js";
|
|
20
|
+
import { D as Co, a as Po, b as No, c as Ze } from "./DropdownMenu-DN0jNrjj.js";
|
|
21
|
+
import { u as ko } from "./useCopyToClipboard-B_085nfO.js";
|
|
22
|
+
import * as et from "@radix-ui/react-tabs";
|
|
23
|
+
import { Callout as Zr } from "./ui/Callout.js";
|
|
24
|
+
import { Card as qo } from "./ui/Card.js";
|
|
25
|
+
import { S as at } from "./SyntaxHighlight-O-IZOPLg.js";
|
|
26
|
+
import { Tabs as Eo, TabsList as Ro, TabsTrigger as tt, TabsContent as rt } from "./ui/Tabs.js";
|
|
27
|
+
import { VisuallyHidden as Ao } from "@radix-ui/react-visually-hidden";
|
|
28
|
+
import { Frame as Io, FramePanel as _o } from "./ui/Frame.js";
|
|
29
|
+
import { Item as Uo, ItemContent as en, ItemTitle as Lo, ItemActions as Fo, ItemGroup as Ho, ItemSeparator as Mo } from "./ui/Item.js";
|
|
30
|
+
import * as tn from "@radix-ui/react-collapsible";
|
|
32
31
|
import "./Button-GUVe7pmt.js";
|
|
33
|
-
import {
|
|
34
|
-
|
|
35
|
-
function Vo(e, n) {
|
|
32
|
+
import { g as Bo, c as it, a as zo } from "./invariant-B_t_F2s_.js";
|
|
33
|
+
function Go(e, n) {
|
|
36
34
|
return n;
|
|
37
35
|
}
|
|
38
|
-
const
|
|
36
|
+
const Wo = Ca(
|
|
39
37
|
"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
|
|
40
38
|
{
|
|
41
39
|
variants: {
|
|
@@ -49,7 +47,7 @@ const Jo = Ca(
|
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
);
|
|
52
|
-
function
|
|
50
|
+
function Vo({
|
|
53
51
|
className: e,
|
|
54
52
|
orientation: n,
|
|
55
53
|
...r
|
|
@@ -60,15 +58,15 @@ function Do({
|
|
|
60
58
|
role: "group",
|
|
61
59
|
"data-slot": "button-group",
|
|
62
60
|
"data-orientation": n,
|
|
63
|
-
className: fe(
|
|
61
|
+
className: fe(Wo({ orientation: n }), e),
|
|
64
62
|
...r
|
|
65
63
|
}
|
|
66
64
|
);
|
|
67
65
|
}
|
|
68
|
-
const
|
|
66
|
+
const Jo = ({
|
|
69
67
|
downloadUrl: e
|
|
70
68
|
}) => {
|
|
71
|
-
const [, n] =
|
|
69
|
+
const [, n] = ko(), r = async (a) => {
|
|
72
70
|
if (e.includes("://")) {
|
|
73
71
|
a.preventDefault();
|
|
74
72
|
try {
|
|
@@ -82,29 +80,29 @@ const Qo = ({
|
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
};
|
|
85
|
-
return /* @__PURE__ */ l.jsxs(
|
|
83
|
+
return /* @__PURE__ */ l.jsxs(Vo, { children: [
|
|
86
84
|
/* @__PURE__ */ l.jsx(
|
|
87
|
-
|
|
85
|
+
Ne,
|
|
88
86
|
{
|
|
89
87
|
variant: "outline",
|
|
90
88
|
size: "sm",
|
|
91
89
|
className: "flex items-center gap-1.5",
|
|
92
90
|
asChild: !0,
|
|
93
91
|
children: /* @__PURE__ */ l.jsxs("a", { href: e, download: !0, onClick: r, children: [
|
|
94
|
-
/* @__PURE__ */ l.jsx(
|
|
92
|
+
/* @__PURE__ */ l.jsx(Da, { size: 14 }),
|
|
95
93
|
"Download schema"
|
|
96
94
|
] })
|
|
97
95
|
}
|
|
98
96
|
),
|
|
99
|
-
/* @__PURE__ */ l.jsxs(
|
|
100
|
-
/* @__PURE__ */ l.jsx(
|
|
101
|
-
/* @__PURE__ */ l.jsxs(
|
|
102
|
-
/* @__PURE__ */ l.jsx(
|
|
103
|
-
/* @__PURE__ */ l.jsx(
|
|
97
|
+
/* @__PURE__ */ l.jsxs(Co, { children: [
|
|
98
|
+
/* @__PURE__ */ l.jsx(Po, { asChild: !0, children: /* @__PURE__ */ l.jsx(Ne, { size: "sm", variant: "outline", className: "px-1.5", children: /* @__PURE__ */ l.jsx(ga, { size: 14 }) }) }),
|
|
99
|
+
/* @__PURE__ */ l.jsxs(No, { align: "end", children: [
|
|
100
|
+
/* @__PURE__ */ l.jsx(Ze, { asChild: !0, children: /* @__PURE__ */ l.jsxs("a", { href: e, target: "_blank", rel: "noopener noreferrer", children: [
|
|
101
|
+
/* @__PURE__ */ l.jsx(Ie, { size: 14 }),
|
|
104
102
|
"Open in new tab"
|
|
105
103
|
] }) }),
|
|
106
104
|
/* @__PURE__ */ l.jsxs(
|
|
107
|
-
|
|
105
|
+
Ze,
|
|
108
106
|
{
|
|
109
107
|
onClick: async () => {
|
|
110
108
|
const c = await (await fetch(e)).text();
|
|
@@ -117,7 +115,7 @@ const Qo = ({
|
|
|
117
115
|
}
|
|
118
116
|
),
|
|
119
117
|
/* @__PURE__ */ l.jsxs(
|
|
120
|
-
|
|
118
|
+
Ze,
|
|
121
119
|
{
|
|
122
120
|
onClick: () => {
|
|
123
121
|
const a = encodeURIComponent(
|
|
@@ -126,13 +124,13 @@ const Qo = ({
|
|
|
126
124
|
window.open(`https://claude.ai/new?q=${a}`, "_blank");
|
|
127
125
|
},
|
|
128
126
|
children: [
|
|
129
|
-
/* @__PURE__ */ l.jsx(
|
|
127
|
+
/* @__PURE__ */ l.jsx(bo, { className: "size-4" }),
|
|
130
128
|
"Use in Claude"
|
|
131
129
|
]
|
|
132
130
|
}
|
|
133
131
|
),
|
|
134
132
|
/* @__PURE__ */ l.jsxs(
|
|
135
|
-
|
|
133
|
+
Ze,
|
|
136
134
|
{
|
|
137
135
|
onClick: () => {
|
|
138
136
|
const a = encodeURIComponent(
|
|
@@ -141,7 +139,7 @@ const Qo = ({
|
|
|
141
139
|
window.open(`https://chatgpt.com/?q=${a}`, "_blank");
|
|
142
140
|
},
|
|
143
141
|
children: [
|
|
144
|
-
/* @__PURE__ */ l.jsx(
|
|
142
|
+
/* @__PURE__ */ l.jsx(jo, { className: "size-4" }),
|
|
145
143
|
"Use in ChatGPT"
|
|
146
144
|
]
|
|
147
145
|
}
|
|
@@ -149,7 +147,7 @@ const Qo = ({
|
|
|
149
147
|
] })
|
|
150
148
|
] })
|
|
151
149
|
] });
|
|
152
|
-
},
|
|
150
|
+
}, Do = ({
|
|
153
151
|
value: e,
|
|
154
152
|
onChange: n,
|
|
155
153
|
className: r,
|
|
@@ -179,7 +177,7 @@ const Qo = ({
|
|
|
179
177
|
children: /* @__PURE__ */ l.jsx(lt, { size: 14 })
|
|
180
178
|
}
|
|
181
179
|
)
|
|
182
|
-
] }),
|
|
180
|
+
] }), Qo = Je(
|
|
183
181
|
/* GraphQL */
|
|
184
182
|
`
|
|
185
183
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -191,10 +189,10 @@ const Qo = ({
|
|
|
191
189
|
}
|
|
192
190
|
}
|
|
193
191
|
`
|
|
194
|
-
),
|
|
192
|
+
), Ko = ({ url: e }) => {
|
|
195
193
|
const [n, r] = ge(!1);
|
|
196
194
|
return /* @__PURE__ */ l.jsx(
|
|
197
|
-
|
|
195
|
+
Ne,
|
|
198
196
|
{
|
|
199
197
|
onClick: () => {
|
|
200
198
|
navigator.clipboard.writeText(e).then(() => {
|
|
@@ -203,17 +201,17 @@ const Qo = ({
|
|
|
203
201
|
},
|
|
204
202
|
variant: "ghost",
|
|
205
203
|
size: "icon-xs",
|
|
206
|
-
children: n ? /* @__PURE__ */ l.jsx(
|
|
204
|
+
children: n ? /* @__PURE__ */ l.jsx(va, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ l.jsx(kr, { size: 14, strokeWidth: 1.3 })
|
|
207
205
|
}
|
|
208
206
|
);
|
|
209
|
-
},
|
|
210
|
-
const { input: e, type: n } = ct(), r = Sr(
|
|
207
|
+
}, Yo = () => {
|
|
208
|
+
const { input: e, type: n } = ct(), r = Sr(Qo, { input: e, type: n }), a = ya(r), [, c] = Ta(), { selectedServer: i, setSelectedServer: t } = ba(
|
|
211
209
|
a.data.schema.servers
|
|
212
210
|
), { servers: o } = a.data.schema, s = o.at(0);
|
|
213
211
|
return s ? /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1.5 flex-nowrap", children: [
|
|
214
212
|
/* @__PURE__ */ l.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
|
|
215
213
|
o.length > 1 ? /* @__PURE__ */ l.jsx(
|
|
216
|
-
|
|
214
|
+
Do,
|
|
217
215
|
{
|
|
218
216
|
className: "font-mono text-xs border-input bg-transparent dark:bg-input/30 dark:hover:bg-input/50 py-1.5 max-w-[450px] truncate",
|
|
219
217
|
onChange: (u) => c(() => t(u.target.value)),
|
|
@@ -225,9 +223,9 @@ const Qo = ({
|
|
|
225
223
|
}))
|
|
226
224
|
}
|
|
227
225
|
) : /* @__PURE__ */ l.jsx(Ce, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: s.url }),
|
|
228
|
-
/* @__PURE__ */ l.jsx(
|
|
226
|
+
/* @__PURE__ */ l.jsx(Ko, { url: o.length > 1 ? i : s.url })
|
|
229
227
|
] }) : null;
|
|
230
|
-
},
|
|
228
|
+
}, Xo = Ca(
|
|
231
229
|
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
232
230
|
{
|
|
233
231
|
variants: {
|
|
@@ -244,24 +242,24 @@ const Qo = ({
|
|
|
244
242
|
}
|
|
245
243
|
}
|
|
246
244
|
);
|
|
247
|
-
function
|
|
245
|
+
function Be({
|
|
248
246
|
className: e,
|
|
249
247
|
variant: n,
|
|
250
248
|
asChild: r = !1,
|
|
251
249
|
...a
|
|
252
250
|
}) {
|
|
253
|
-
const c = r ?
|
|
251
|
+
const c = r ? To : "span";
|
|
254
252
|
return /* @__PURE__ */ l.jsx(
|
|
255
253
|
c,
|
|
256
254
|
{
|
|
257
255
|
"data-slot": "badge",
|
|
258
|
-
className: fe(
|
|
256
|
+
className: fe(Xo({ variant: n }), e),
|
|
259
257
|
...a
|
|
260
258
|
}
|
|
261
259
|
);
|
|
262
260
|
}
|
|
263
261
|
const St = (e, n) => e ? n(e) : void 0;
|
|
264
|
-
function
|
|
262
|
+
function ze({ className: e, ...n }) {
|
|
265
263
|
return /* @__PURE__ */ l.jsxs(
|
|
266
264
|
"div",
|
|
267
265
|
{
|
|
@@ -282,7 +280,7 @@ function Be({ className: e, ...n }) {
|
|
|
282
280
|
}
|
|
283
281
|
),
|
|
284
282
|
/* @__PURE__ */ l.jsx(
|
|
285
|
-
|
|
283
|
+
ga,
|
|
286
284
|
{
|
|
287
285
|
className: "text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none",
|
|
288
286
|
"aria-hidden": "true",
|
|
@@ -293,10 +291,10 @@ function Be({ className: e, ...n }) {
|
|
|
293
291
|
}
|
|
294
292
|
);
|
|
295
293
|
}
|
|
296
|
-
function
|
|
294
|
+
function Ge({ ...e }) {
|
|
297
295
|
return /* @__PURE__ */ l.jsx("option", { "data-slot": "native-select-option", ...e });
|
|
298
296
|
}
|
|
299
|
-
const
|
|
297
|
+
const rn = fe, Zo = ({
|
|
300
298
|
responses: e,
|
|
301
299
|
selectedResponse: n,
|
|
302
300
|
onSelectResponse: r
|
|
@@ -307,16 +305,16 @@ const nn = fe, ti = ({
|
|
|
307
305
|
/* @__PURE__ */ l.jsxs(
|
|
308
306
|
"div",
|
|
309
307
|
{
|
|
310
|
-
className:
|
|
308
|
+
className: rn(
|
|
311
309
|
"flex flex-row items-center gap-2 justify-between",
|
|
312
310
|
!t && "px-4 py-1.5 border-b"
|
|
313
311
|
),
|
|
314
312
|
children: [
|
|
315
|
-
!t && /* @__PURE__ */ l.jsx(
|
|
316
|
-
|
|
313
|
+
!t && /* @__PURE__ */ l.jsx(et.List, { className: "flex flex-row font-medium text-sm gap-4", children: e.map((s) => /* @__PURE__ */ l.jsx(
|
|
314
|
+
et.Trigger,
|
|
317
315
|
{
|
|
318
316
|
value: s.statusCode,
|
|
319
|
-
className:
|
|
317
|
+
className: rn(
|
|
320
318
|
"py-0.5 h-fit -mx-2 px-2 rounded-md",
|
|
321
319
|
"data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
|
|
322
320
|
"data-[state=active]:font-semibold data-[state=active]:text-foreground"
|
|
@@ -326,21 +324,21 @@ const nn = fe, ti = ({
|
|
|
326
324
|
s.statusCode
|
|
327
325
|
)) }),
|
|
328
326
|
i?.content && i.content.length > 1 && /* @__PURE__ */ l.jsx(
|
|
329
|
-
|
|
327
|
+
ze,
|
|
330
328
|
{
|
|
331
329
|
value: a,
|
|
332
330
|
onChange: (s) => c(s.target.value),
|
|
333
331
|
className: "text-xs h-fit py-1 bg-background",
|
|
334
|
-
children: i.content.map((s) => /* @__PURE__ */ l.jsx(
|
|
332
|
+
children: i.content.map((s) => /* @__PURE__ */ l.jsx(Ge, { value: s.mediaType, children: s.mediaType }, s.mediaType))
|
|
335
333
|
}
|
|
336
334
|
)
|
|
337
335
|
]
|
|
338
336
|
}
|
|
339
337
|
),
|
|
340
338
|
/* @__PURE__ */ l.jsxs("div", { className: "p-2 clear-both", children: [
|
|
341
|
-
t && /* @__PURE__ */ l.jsx(
|
|
339
|
+
t && /* @__PURE__ */ l.jsx(Be, { variant: "outline", className: "float-start me-2", children: i?.statusCode }),
|
|
342
340
|
i?.description && /* @__PURE__ */ l.jsx(
|
|
343
|
-
|
|
341
|
+
Ue,
|
|
344
342
|
{
|
|
345
343
|
className: "text-sm text-muted-foreground max-w-none",
|
|
346
344
|
content: i.description
|
|
@@ -349,7 +347,7 @@ const nn = fe, ti = ({
|
|
|
349
347
|
] })
|
|
350
348
|
] });
|
|
351
349
|
return /* @__PURE__ */ l.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ l.jsx(
|
|
352
|
-
|
|
350
|
+
et.Root,
|
|
353
351
|
{
|
|
354
352
|
value: n,
|
|
355
353
|
onValueChange: (s) => {
|
|
@@ -357,7 +355,7 @@ const nn = fe, ti = ({
|
|
|
357
355
|
const u = e.find((p) => p.statusCode === s);
|
|
358
356
|
c(u?.content?.[0]?.mediaType ?? "");
|
|
359
357
|
},
|
|
360
|
-
children: e.map((s) => /* @__PURE__ */ l.jsx(
|
|
358
|
+
children: e.map((s) => /* @__PURE__ */ l.jsx(et.Content, { value: s.statusCode, children: /* @__PURE__ */ l.jsx(
|
|
361
359
|
Ir,
|
|
362
360
|
{
|
|
363
361
|
schema: s.content?.find(
|
|
@@ -368,7 +366,7 @@ const nn = fe, ti = ({
|
|
|
368
366
|
) }, s.statusCode))
|
|
369
367
|
}
|
|
370
368
|
) });
|
|
371
|
-
},
|
|
369
|
+
}, ei = ({
|
|
372
370
|
serverUrl: e,
|
|
373
371
|
summary: n,
|
|
374
372
|
data: r
|
|
@@ -404,7 +402,7 @@ const nn = fe, ti = ({
|
|
|
404
402
|
c(!0), setTimeout(() => c(!1), 2e3);
|
|
405
403
|
});
|
|
406
404
|
};
|
|
407
|
-
return /* @__PURE__ */ l.jsx(
|
|
405
|
+
return /* @__PURE__ */ l.jsx(qo, { className: "p-6 mb-6 max-w-screen-md", children: /* @__PURE__ */ l.jsxs("div", { className: "space-y-4", children: [
|
|
408
406
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
409
407
|
/* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold mb-2", children: "MCP Endpoint" }),
|
|
410
408
|
/* @__PURE__ */ l.jsxs("p", { className: "text-sm text-muted-foreground mb-3", children: [
|
|
@@ -431,13 +429,13 @@ const nn = fe, ti = ({
|
|
|
431
429
|
children: [
|
|
432
430
|
/* @__PURE__ */ l.jsx(Ce, { className: "bg-primary/20 px-4 py-2 flex-1 border-none", children: i }),
|
|
433
431
|
/* @__PURE__ */ l.jsx(
|
|
434
|
-
|
|
432
|
+
Ne,
|
|
435
433
|
{
|
|
436
434
|
onClick: d,
|
|
437
435
|
variant: "ghost",
|
|
438
436
|
size: "icon",
|
|
439
437
|
className: "h-8 w-8",
|
|
440
|
-
children: a ? /* @__PURE__ */ l.jsx(
|
|
438
|
+
children: a ? /* @__PURE__ */ l.jsx(va, { className: "h-4 w-4 text-green-600" }) : /* @__PURE__ */ l.jsx(kr, { className: "h-4 w-4" })
|
|
441
439
|
}
|
|
442
440
|
)
|
|
443
441
|
]
|
|
@@ -449,14 +447,14 @@ const nn = fe, ti = ({
|
|
|
449
447
|
/* @__PURE__ */ l.jsx("p", { className: "text-sm text-muted-foreground mb-3", children: "Choose your AI tool and copy the configuration to get started." }),
|
|
450
448
|
/* @__PURE__ */ l.jsx("hr", { className: "my-4" }),
|
|
451
449
|
/* @__PURE__ */ l.jsxs(Eo, { defaultValue: "claude", className: "w-full", children: [
|
|
452
|
-
/* @__PURE__ */ l.jsxs(
|
|
453
|
-
/* @__PURE__ */ l.jsx(
|
|
454
|
-
/* @__PURE__ */ l.jsx(
|
|
455
|
-
/* @__PURE__ */ l.jsx(
|
|
456
|
-
/* @__PURE__ */ l.jsx(
|
|
450
|
+
/* @__PURE__ */ l.jsxs(Ro, { className: "grid w-full grid-cols-4", children: [
|
|
451
|
+
/* @__PURE__ */ l.jsx(tt, { value: "claude", children: "Claude" }),
|
|
452
|
+
/* @__PURE__ */ l.jsx(tt, { value: "chatgpt", children: "ChatGPT" }),
|
|
453
|
+
/* @__PURE__ */ l.jsx(tt, { value: "cursor", children: "Cursor" }),
|
|
454
|
+
/* @__PURE__ */ l.jsx(tt, { value: "vscode", children: "VS Code" })
|
|
457
455
|
] }),
|
|
458
|
-
/* @__PURE__ */ l.jsxs(
|
|
459
|
-
/* @__PURE__ */ l.jsxs(
|
|
456
|
+
/* @__PURE__ */ l.jsxs(fo, { className: "text-sm max-w-full", children: [
|
|
457
|
+
/* @__PURE__ */ l.jsxs(rt, { value: "claude", className: "space-y-3", children: [
|
|
460
458
|
/* @__PURE__ */ l.jsxs("ol", { children: [
|
|
461
459
|
/* @__PURE__ */ l.jsxs("li", { children: [
|
|
462
460
|
"Open Claude Desktop and click ",
|
|
@@ -475,7 +473,7 @@ const nn = fe, ti = ({
|
|
|
475
473
|
/* @__PURE__ */ l.jsx(Ce, { children: "claude_desktop_config.json" }),
|
|
476
474
|
":",
|
|
477
475
|
/* @__PURE__ */ l.jsx(
|
|
478
|
-
|
|
476
|
+
at,
|
|
479
477
|
{
|
|
480
478
|
showLanguageIndicator: !0,
|
|
481
479
|
title: "claude_desktop_config.json",
|
|
@@ -501,13 +499,13 @@ const nn = fe, ti = ({
|
|
|
501
499
|
className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
502
500
|
children: [
|
|
503
501
|
"View official docs",
|
|
504
|
-
/* @__PURE__ */ l.jsx(
|
|
502
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
|
|
505
503
|
]
|
|
506
504
|
}
|
|
507
505
|
)
|
|
508
506
|
] }),
|
|
509
|
-
/* @__PURE__ */ l.jsxs(
|
|
510
|
-
/* @__PURE__ */ l.jsx(
|
|
507
|
+
/* @__PURE__ */ l.jsxs(rt, { value: "chatgpt", className: "space-y-3", children: [
|
|
508
|
+
/* @__PURE__ */ l.jsx(Zr, { type: "note", title: "Requirements", children: "ChatGPT Pro, Team, Enterprise, or Edu subscription. Note: MCP support is limited to read-only operations through Deep Research." }),
|
|
511
509
|
/* @__PURE__ */ l.jsxs("ol", { children: [
|
|
512
510
|
/* @__PURE__ */ l.jsxs("li", { children: [
|
|
513
511
|
"Go to ",
|
|
@@ -537,12 +535,12 @@ const nn = fe, ti = ({
|
|
|
537
535
|
className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
538
536
|
children: [
|
|
539
537
|
"View official docs",
|
|
540
|
-
/* @__PURE__ */ l.jsx(
|
|
538
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
|
|
541
539
|
]
|
|
542
540
|
}
|
|
543
541
|
)
|
|
544
542
|
] }),
|
|
545
|
-
/* @__PURE__ */ l.jsxs(
|
|
543
|
+
/* @__PURE__ */ l.jsxs(rt, { value: "cursor", className: "space-y-3", children: [
|
|
546
544
|
/* @__PURE__ */ l.jsxs("ol", { children: [
|
|
547
545
|
/* @__PURE__ */ l.jsxs("li", { children: [
|
|
548
546
|
/* @__PURE__ */ l.jsx("span", { children: "Create or edit: " }),
|
|
@@ -551,7 +549,7 @@ const nn = fe, ti = ({
|
|
|
551
549
|
/* @__PURE__ */ l.jsx(Ce, { children: ".cursor/mcp.json" }),
|
|
552
550
|
/* @__PURE__ */ l.jsx("span", { children: " (project)" }),
|
|
553
551
|
/* @__PURE__ */ l.jsx(
|
|
554
|
-
|
|
552
|
+
at,
|
|
555
553
|
{
|
|
556
554
|
showLanguageIndicator: !0,
|
|
557
555
|
title: "mcp.json",
|
|
@@ -572,20 +570,20 @@ const nn = fe, ti = ({
|
|
|
572
570
|
className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
573
571
|
children: [
|
|
574
572
|
"View official docs",
|
|
575
|
-
/* @__PURE__ */ l.jsx(
|
|
573
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
|
|
576
574
|
]
|
|
577
575
|
}
|
|
578
576
|
)
|
|
579
577
|
] }),
|
|
580
|
-
/* @__PURE__ */ l.jsxs(
|
|
581
|
-
/* @__PURE__ */ l.jsx(
|
|
578
|
+
/* @__PURE__ */ l.jsxs(rt, { value: "vscode", className: "space-y-3", children: [
|
|
579
|
+
/* @__PURE__ */ l.jsx(Zr, { type: "note", title: "Requirements", children: "VS Code with GitHub Copilot extension" }),
|
|
582
580
|
/* @__PURE__ */ l.jsxs("ol", { children: [
|
|
583
581
|
/* @__PURE__ */ l.jsxs("li", { children: [
|
|
584
582
|
/* @__PURE__ */ l.jsx("span", { children: "Create " }),
|
|
585
583
|
/* @__PURE__ */ l.jsx(Ce, { children: ".vscode/mcp.json" }),
|
|
586
584
|
/* @__PURE__ */ l.jsx("span", { children: " in your workspace (or user-level mcp.json):" }),
|
|
587
585
|
/* @__PURE__ */ l.jsx(
|
|
588
|
-
|
|
586
|
+
at,
|
|
589
587
|
{
|
|
590
588
|
showLanguageIndicator: !0,
|
|
591
589
|
title: "mcp.json",
|
|
@@ -607,7 +605,7 @@ const nn = fe, ti = ({
|
|
|
607
605
|
className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
608
606
|
children: [
|
|
609
607
|
"View official docs",
|
|
610
|
-
/* @__PURE__ */ l.jsx(
|
|
608
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
|
|
611
609
|
]
|
|
612
610
|
}
|
|
613
611
|
)
|
|
@@ -616,18 +614,18 @@ const nn = fe, ti = ({
|
|
|
616
614
|
] })
|
|
617
615
|
] })
|
|
618
616
|
] }) });
|
|
619
|
-
},
|
|
617
|
+
}, ti = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
|
|
620
618
|
type: "string"
|
|
621
|
-
},
|
|
619
|
+
}, ri = ({
|
|
622
620
|
parameter: e,
|
|
623
621
|
group: n,
|
|
624
622
|
id: r
|
|
625
623
|
}) => {
|
|
626
|
-
const a =
|
|
627
|
-
return /* @__PURE__ */ l.jsxs(
|
|
628
|
-
/* @__PURE__ */ l.jsxs(
|
|
624
|
+
const a = ti(e), [c, i] = ge(!1), t = a.type === "object" || mo(a) && "items" in a && a.items?.type === "object", o = !!(e.description || a.description || a.type === "array" && a.items?.enum || a.enum || a.example !== void 0 || a.default !== void 0);
|
|
625
|
+
return /* @__PURE__ */ l.jsxs(Uo, { children: [
|
|
626
|
+
/* @__PURE__ */ l.jsxs(en, { className: "gap-y-2", children: [
|
|
629
627
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
630
|
-
/* @__PURE__ */ l.jsx(
|
|
628
|
+
/* @__PURE__ */ l.jsx(Lo, { className: "inline me-2", children: t ? /* @__PURE__ */ l.jsx(
|
|
631
629
|
"button",
|
|
632
630
|
{
|
|
633
631
|
onClick: () => i(!c),
|
|
@@ -653,7 +651,7 @@ const nn = fe, ti = ({
|
|
|
653
651
|
}
|
|
654
652
|
) : e.name }) }),
|
|
655
653
|
/* @__PURE__ */ l.jsx(
|
|
656
|
-
|
|
654
|
+
yo,
|
|
657
655
|
{
|
|
658
656
|
className: "inline",
|
|
659
657
|
schema: a,
|
|
@@ -666,37 +664,37 @@ const nn = fe, ti = ({
|
|
|
666
664
|
)
|
|
667
665
|
] }),
|
|
668
666
|
o && /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
669
|
-
e.description && /* @__PURE__ */ l.jsx(
|
|
667
|
+
e.description && /* @__PURE__ */ l.jsx(Ue, { content: e.description, className: "prose-sm" }),
|
|
670
668
|
a.description && /* @__PURE__ */ l.jsx(
|
|
671
|
-
|
|
669
|
+
Ue,
|
|
672
670
|
{
|
|
673
671
|
content: a.description,
|
|
674
672
|
className: "prose-sm"
|
|
675
673
|
}
|
|
676
674
|
),
|
|
677
675
|
a.type === "array" && a.items?.enum ? /* @__PURE__ */ l.jsx(Xr, { values: a.items.enum }) : a.enum && /* @__PURE__ */ l.jsx(Xr, { values: a.enum }),
|
|
678
|
-
/* @__PURE__ */ l.jsx(
|
|
676
|
+
/* @__PURE__ */ l.jsx(go, { schema: a })
|
|
679
677
|
] })
|
|
680
678
|
] }),
|
|
681
|
-
t && /* @__PURE__ */ l.jsx(
|
|
682
|
-
|
|
679
|
+
t && /* @__PURE__ */ l.jsx(Fo, { className: "self-start", children: /* @__PURE__ */ l.jsx(
|
|
680
|
+
Ne,
|
|
683
681
|
{
|
|
684
682
|
variant: "ghost",
|
|
685
683
|
size: "icon",
|
|
686
684
|
className: "rounded-full",
|
|
687
685
|
onClick: () => i(!c),
|
|
688
686
|
"aria-label": "Toggle parameter",
|
|
689
|
-
children: c ? /* @__PURE__ */ l.jsx(
|
|
687
|
+
children: c ? /* @__PURE__ */ l.jsx(Qa, { size: 16 }) : /* @__PURE__ */ l.jsx(Ka, { size: 16 })
|
|
690
688
|
}
|
|
691
689
|
) }),
|
|
692
690
|
t && /* @__PURE__ */ l.jsx(
|
|
693
|
-
|
|
691
|
+
tn.Root,
|
|
694
692
|
{
|
|
695
693
|
defaultOpen: !1,
|
|
696
694
|
open: c,
|
|
697
695
|
onOpenChange: i,
|
|
698
696
|
className: fe("w-full", !c && "contents"),
|
|
699
|
-
children: /* @__PURE__ */ l.jsx(
|
|
697
|
+
children: /* @__PURE__ */ l.jsx(tn.Content, { asChild: !0, children: /* @__PURE__ */ l.jsx(en, { children: /* @__PURE__ */ l.jsx(
|
|
700
698
|
Ir,
|
|
701
699
|
{
|
|
702
700
|
schema: "items" in a ? a.items : a
|
|
@@ -705,7 +703,7 @@ const nn = fe, ti = ({
|
|
|
705
703
|
}
|
|
706
704
|
)
|
|
707
705
|
] });
|
|
708
|
-
},
|
|
706
|
+
}, ni = ({
|
|
709
707
|
summary: e,
|
|
710
708
|
group: n,
|
|
711
709
|
parameters: r,
|
|
@@ -716,13 +714,13 @@ const nn = fe, ti = ({
|
|
|
716
714
|
);
|
|
717
715
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
718
716
|
/* @__PURE__ */ l.jsxs(
|
|
719
|
-
|
|
717
|
+
Me,
|
|
720
718
|
{
|
|
721
719
|
level: 3,
|
|
722
720
|
id: `${a}/${n}-parameters`,
|
|
723
721
|
className: "capitalize",
|
|
724
722
|
children: [
|
|
725
|
-
e && /* @__PURE__ */ l.jsxs(
|
|
723
|
+
e && /* @__PURE__ */ l.jsxs(Ao, { children: [
|
|
726
724
|
e,
|
|
727
725
|
" › "
|
|
728
726
|
] }),
|
|
@@ -730,10 +728,10 @@ const nn = fe, ti = ({
|
|
|
730
728
|
]
|
|
731
729
|
}
|
|
732
730
|
),
|
|
733
|
-
/* @__PURE__ */ l.jsx(
|
|
734
|
-
t > 0 && /* @__PURE__ */ l.jsx(
|
|
731
|
+
/* @__PURE__ */ l.jsx(Io, { children: /* @__PURE__ */ l.jsx(_o, { className: "p-0!", children: /* @__PURE__ */ l.jsx(Ho, { className: "overflow-clip", children: c.map((i, t) => /* @__PURE__ */ l.jsxs($o, { children: [
|
|
732
|
+
t > 0 && /* @__PURE__ */ l.jsx(Mo, {}),
|
|
735
733
|
/* @__PURE__ */ l.jsx(
|
|
736
|
-
|
|
734
|
+
ri,
|
|
737
735
|
{
|
|
738
736
|
parameter: i,
|
|
739
737
|
id: a,
|
|
@@ -742,12 +740,12 @@ const nn = fe, ti = ({
|
|
|
742
740
|
)
|
|
743
741
|
] }, `${i.name}-${i.in}`)) }) }) })
|
|
744
742
|
] });
|
|
745
|
-
},
|
|
743
|
+
}, ai = ({
|
|
746
744
|
rootMargin: e = "0px",
|
|
747
745
|
threshold: n,
|
|
748
746
|
root: r
|
|
749
747
|
} = {}) => {
|
|
750
|
-
const [a, c] = ge(!1), i =
|
|
748
|
+
const [a, c] = ge(!1), i = So(null);
|
|
751
749
|
return Cr(() => {
|
|
752
750
|
const t = new IntersectionObserver(
|
|
753
751
|
([s]) => {
|
|
@@ -758,7 +756,7 @@ const nn = fe, ti = ({
|
|
|
758
756
|
if (o)
|
|
759
757
|
return t.observe(o), () => t.unobserve(o);
|
|
760
758
|
}, [r, e, n]), [i, a];
|
|
761
|
-
},
|
|
759
|
+
}, oi = () => /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }), _r = ({
|
|
762
760
|
code: e,
|
|
763
761
|
className: n
|
|
764
762
|
}) => /* @__PURE__ */ l.jsx(
|
|
@@ -770,7 +768,7 @@ const nn = fe, ti = ({
|
|
|
770
768
|
),
|
|
771
769
|
children: /* @__PURE__ */ l.jsxs("code", { children: [
|
|
772
770
|
e.split(`
|
|
773
|
-
`).length > 13 && /* @__PURE__ */ l.jsx(
|
|
771
|
+
`).length > 13 && /* @__PURE__ */ l.jsx(oi, {}),
|
|
774
772
|
e
|
|
775
773
|
] })
|
|
776
774
|
}
|
|
@@ -795,7 +793,7 @@ const nn = fe, ti = ({
|
|
|
795
793
|
),
|
|
796
794
|
children: e
|
|
797
795
|
}
|
|
798
|
-
),
|
|
796
|
+
), Ur = ({ children: e, className: n }) => /* @__PURE__ */ l.jsx(
|
|
799
797
|
"div",
|
|
800
798
|
{
|
|
801
799
|
"data-slot": "sidecar-box-body",
|
|
@@ -807,7 +805,7 @@ const nn = fe, ti = ({
|
|
|
807
805
|
),
|
|
808
806
|
children: e
|
|
809
807
|
}
|
|
810
|
-
),
|
|
808
|
+
), ii = ({ children: e, className: n }) => /* @__PURE__ */ l.jsx(
|
|
811
809
|
"div",
|
|
812
810
|
{
|
|
813
811
|
"data-slot": "sidecar-box-footer",
|
|
@@ -817,20 +815,20 @@ const nn = fe, ti = ({
|
|
|
817
815
|
),
|
|
818
816
|
children: e
|
|
819
817
|
}
|
|
820
|
-
),
|
|
818
|
+
), si = ({
|
|
821
819
|
code: e,
|
|
822
820
|
isOnScreen: n,
|
|
823
821
|
shouldLazyHighlight: r
|
|
824
822
|
}) => /* @__PURE__ */ l.jsxs(ut, { children: [
|
|
825
823
|
/* @__PURE__ */ l.jsx(pt, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
826
824
|
/* @__PURE__ */ l.jsx("span", { className: "font-medium", children: "Example Request Body" }),
|
|
827
|
-
/* @__PURE__ */ l.jsx(
|
|
828
|
-
/* @__PURE__ */ l.jsx(
|
|
829
|
-
/* @__PURE__ */ l.jsx(
|
|
825
|
+
/* @__PURE__ */ l.jsx(ja, { children: /* @__PURE__ */ l.jsxs(wa, { children: [
|
|
826
|
+
/* @__PURE__ */ l.jsx($a, { asChild: !0, children: /* @__PURE__ */ l.jsx(xa, { size: 13 }) }),
|
|
827
|
+
/* @__PURE__ */ l.jsx(Sa, { children: "This example is auto-generated from the schema." })
|
|
830
828
|
] }) })
|
|
831
829
|
] }) }),
|
|
832
|
-
/* @__PURE__ */ l.jsx(
|
|
833
|
-
|
|
830
|
+
/* @__PURE__ */ l.jsx(Ur, { className: "p-0", children: r && !n ? /* @__PURE__ */ l.jsx(_r, { code: e }) : /* @__PURE__ */ l.jsx(
|
|
831
|
+
Oa,
|
|
834
832
|
{
|
|
835
833
|
embedded: !0,
|
|
836
834
|
language: "json",
|
|
@@ -838,7 +836,7 @@ const nn = fe, ti = ({
|
|
|
838
836
|
className: "[--scrollbar-color:gray] rounded-none text-xs max-h-[200px]"
|
|
839
837
|
}
|
|
840
838
|
) })
|
|
841
|
-
] }),
|
|
839
|
+
] }), li = ({
|
|
842
840
|
server: e,
|
|
843
841
|
servers: n,
|
|
844
842
|
operation: r,
|
|
@@ -863,7 +861,7 @@ const nn = fe, ti = ({
|
|
|
863
861
|
defaultValue: o.schema?.default
|
|
864
862
|
}));
|
|
865
863
|
return /* @__PURE__ */ l.jsx(
|
|
866
|
-
|
|
864
|
+
eo,
|
|
867
865
|
{
|
|
868
866
|
server: e,
|
|
869
867
|
servers: n,
|
|
@@ -875,10 +873,10 @@ const nn = fe, ti = ({
|
|
|
875
873
|
examples: a
|
|
876
874
|
}
|
|
877
875
|
);
|
|
878
|
-
},
|
|
876
|
+
}, ci = (e) => {
|
|
879
877
|
if (e != null)
|
|
880
878
|
return typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2);
|
|
881
|
-
},
|
|
879
|
+
}, ui = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
|
|
882
880
|
"text/html": "html",
|
|
883
881
|
"application/x-ndjson": "json",
|
|
884
882
|
"application/json": "json",
|
|
@@ -887,7 +885,7 @@ const nn = fe, ti = ({
|
|
|
887
885
|
"text/csv": "csv",
|
|
888
886
|
"application/javascript": "javascript",
|
|
889
887
|
"application/graphql": "graphql"
|
|
890
|
-
}[e] ?? "plain" : "plain",
|
|
888
|
+
}[e] ?? "plain" : "plain", Pa = ({
|
|
891
889
|
content: e,
|
|
892
890
|
description: n,
|
|
893
891
|
onExampleChange: r,
|
|
@@ -896,9 +894,9 @@ const nn = fe, ti = ({
|
|
|
896
894
|
isOnScreen: i,
|
|
897
895
|
shouldLazyHighlight: t
|
|
898
896
|
}) => {
|
|
899
|
-
const o = e[a], s = o?.examples ?? [], u = s?.[c], p =
|
|
897
|
+
const o = e[a], s = o?.examples ?? [], u = s?.[c], p = ci(u?.value), d = ui(o?.mediaType);
|
|
900
898
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
901
|
-
/* @__PURE__ */ l.jsxs(
|
|
899
|
+
/* @__PURE__ */ l.jsxs(Ur, { className: "p-0", children: [
|
|
902
900
|
u?.externalValue ? /* @__PURE__ */ l.jsx("div", { className: "p-4", children: /* @__PURE__ */ l.jsxs(
|
|
903
901
|
"a",
|
|
904
902
|
{
|
|
@@ -908,11 +906,11 @@ const nn = fe, ti = ({
|
|
|
908
906
|
className: "text-xs text-primary hover:underline",
|
|
909
907
|
children: [
|
|
910
908
|
"View External Example",
|
|
911
|
-
/* @__PURE__ */ l.jsx(
|
|
909
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "size-3 inline-block ms-1 align-[-0.125em]" })
|
|
912
910
|
]
|
|
913
911
|
}
|
|
914
|
-
) }) : t && !i && p ? /* @__PURE__ */ l.jsx(
|
|
915
|
-
|
|
912
|
+
) }) : t && !i && p ? /* @__PURE__ */ l.jsx(_r, { code: p }) : p ? /* @__PURE__ */ l.jsx(
|
|
913
|
+
at,
|
|
916
914
|
{
|
|
917
915
|
embedded: !0,
|
|
918
916
|
language: d,
|
|
@@ -922,11 +920,11 @@ const nn = fe, ti = ({
|
|
|
922
920
|
) : /* @__PURE__ */ l.jsx("div", { className: "grid place-items-center text-xs text-muted-foreground min-h-18", children: "No example specified for this content type" }),
|
|
923
921
|
u?.description && /* @__PURE__ */ l.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: u.description })
|
|
924
922
|
] }),
|
|
925
|
-
/* @__PURE__ */ l.jsxs(
|
|
923
|
+
/* @__PURE__ */ l.jsxs(ii, { className: "text-xs", children: [
|
|
926
924
|
n && /* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground text-xs px-1 py-2", children: n }),
|
|
927
925
|
(s.length !== 0 || e.length !== 0) && /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0", children: [
|
|
928
926
|
/* @__PURE__ */ l.jsx("div", { className: "flex items-center gap-2 flex-wrap", children: e.length > 1 ? /* @__PURE__ */ l.jsx(
|
|
929
|
-
|
|
927
|
+
ze,
|
|
930
928
|
{
|
|
931
929
|
className: "text-xs h-fit py-1 truncate bg-background",
|
|
932
930
|
value: a.toString(),
|
|
@@ -935,7 +933,7 @@ const nn = fe, ti = ({
|
|
|
935
933
|
exampleIndex: 0
|
|
936
934
|
}),
|
|
937
935
|
children: e.map((m, y) => /* @__PURE__ */ l.jsx(
|
|
938
|
-
|
|
936
|
+
Ge,
|
|
939
937
|
{
|
|
940
938
|
value: y.toString(),
|
|
941
939
|
children: m.mediaType
|
|
@@ -944,7 +942,7 @@ const nn = fe, ti = ({
|
|
|
944
942
|
))
|
|
945
943
|
}
|
|
946
944
|
) : /* @__PURE__ */ l.jsx(
|
|
947
|
-
|
|
945
|
+
Be,
|
|
948
946
|
{
|
|
949
947
|
className: "text-[11px] font-mono font-normal",
|
|
950
948
|
variant: "outline",
|
|
@@ -952,7 +950,7 @@ const nn = fe, ti = ({
|
|
|
952
950
|
}
|
|
953
951
|
) }),
|
|
954
952
|
s.length > 1 && /* @__PURE__ */ l.jsx(
|
|
955
|
-
|
|
953
|
+
ze,
|
|
956
954
|
{
|
|
957
955
|
className: "text-xs h-fit py-1 truncate bg-background",
|
|
958
956
|
value: c.toString(),
|
|
@@ -961,7 +959,7 @@ const nn = fe, ti = ({
|
|
|
961
959
|
exampleIndex: Number(m.target.value)
|
|
962
960
|
}),
|
|
963
961
|
children: s.map((m, y) => /* @__PURE__ */ l.jsx(
|
|
964
|
-
|
|
962
|
+
Ge,
|
|
965
963
|
{
|
|
966
964
|
value: y.toString(),
|
|
967
965
|
children: m.summary || m.name || m.description || `Example ${y + 1}`
|
|
@@ -973,17 +971,17 @@ const nn = fe, ti = ({
|
|
|
973
971
|
] })
|
|
974
972
|
] })
|
|
975
973
|
] });
|
|
976
|
-
},
|
|
974
|
+
}, pi = ({
|
|
977
975
|
content: e,
|
|
978
976
|
onExampleChange: n,
|
|
979
977
|
isOnScreen: r,
|
|
980
978
|
shouldLazyHighlight: a,
|
|
981
979
|
selectedContentIndex: c,
|
|
982
980
|
selectedExampleIndex: i
|
|
983
|
-
}) => e.length === 0 ? null : /* @__PURE__ */ l.jsx(
|
|
981
|
+
}) => e.length === 0 ? null : /* @__PURE__ */ l.jsx(Er, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
|
|
984
982
|
/* @__PURE__ */ l.jsx(pt, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center gap-1 font-medium", children: [
|
|
985
|
-
/* @__PURE__ */ l.jsx(
|
|
986
|
-
|
|
983
|
+
/* @__PURE__ */ l.jsx(Rr, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
|
|
984
|
+
Ne,
|
|
987
985
|
{
|
|
988
986
|
variant: "ghost",
|
|
989
987
|
className: "size-fit px-1 py-1 -my-1",
|
|
@@ -997,7 +995,7 @@ const nn = fe, ti = ({
|
|
|
997
995
|
"Example Request Body"
|
|
998
996
|
] }) }),
|
|
999
997
|
/* @__PURE__ */ l.jsx(Ar, { children: /* @__PURE__ */ l.jsx(
|
|
1000
|
-
|
|
998
|
+
Pa,
|
|
1001
999
|
{
|
|
1002
1000
|
selectedContentIndex: c,
|
|
1003
1001
|
selectedExampleIndex: i,
|
|
@@ -1007,7 +1005,7 @@ const nn = fe, ti = ({
|
|
|
1007
1005
|
shouldLazyHighlight: a
|
|
1008
1006
|
}
|
|
1009
1007
|
) })
|
|
1010
|
-
] }) }),
|
|
1008
|
+
] }) }), nn = ({
|
|
1011
1009
|
responses: e,
|
|
1012
1010
|
selectedResponse: n,
|
|
1013
1011
|
isOnScreen: r,
|
|
@@ -1021,11 +1019,11 @@ const nn = fe, ti = ({
|
|
|
1021
1019
|
n && t(n);
|
|
1022
1020
|
}, [n]), Cr(() => {
|
|
1023
1021
|
i && (s(0), p(0));
|
|
1024
|
-
}, [i]), /* @__PURE__ */ l.jsx(
|
|
1022
|
+
}, [i]), /* @__PURE__ */ l.jsx(Er, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
|
|
1025
1023
|
/* @__PURE__ */ l.jsxs(pt, { className: "text-xs flex justify-between items-center", children: [
|
|
1026
1024
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1 font-medium shrink-0", children: [
|
|
1027
|
-
/* @__PURE__ */ l.jsx(
|
|
1028
|
-
|
|
1025
|
+
/* @__PURE__ */ l.jsx(Rr, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
|
|
1026
|
+
Ne,
|
|
1029
1027
|
{
|
|
1030
1028
|
variant: "ghost",
|
|
1031
1029
|
className: "size-fit px-1 py-1 -my-1",
|
|
@@ -1037,19 +1035,19 @@ const nn = fe, ti = ({
|
|
|
1037
1035
|
}
|
|
1038
1036
|
) }),
|
|
1039
1037
|
"Example Responses",
|
|
1040
|
-
c && /* @__PURE__ */ l.jsx(
|
|
1041
|
-
/* @__PURE__ */ l.jsx(
|
|
1042
|
-
/* @__PURE__ */ l.jsx(
|
|
1038
|
+
c && /* @__PURE__ */ l.jsx(ja, { children: /* @__PURE__ */ l.jsxs(wa, { children: [
|
|
1039
|
+
/* @__PURE__ */ l.jsx($a, { asChild: !0, children: /* @__PURE__ */ l.jsx(xa, { size: 13 }) }),
|
|
1040
|
+
/* @__PURE__ */ l.jsx(Sa, { children: "This example is auto-generated from the schema." })
|
|
1043
1041
|
] }) })
|
|
1044
1042
|
] }),
|
|
1045
1043
|
/* @__PURE__ */ l.jsx("div", { className: "group-data-[state=closed]/collapsible:invisible", children: /* @__PURE__ */ l.jsx(
|
|
1046
|
-
|
|
1044
|
+
ze,
|
|
1047
1045
|
{
|
|
1048
1046
|
className: "text-xs h-fit py-1 -my-1 bg-background",
|
|
1049
1047
|
value: i,
|
|
1050
1048
|
onChange: (d) => t(d.target.value),
|
|
1051
1049
|
children: e.map((d) => /* @__PURE__ */ l.jsx(
|
|
1052
|
-
|
|
1050
|
+
Ge,
|
|
1053
1051
|
{
|
|
1054
1052
|
value: d.statusCode,
|
|
1055
1053
|
children: d.statusCode
|
|
@@ -1060,7 +1058,7 @@ const nn = fe, ti = ({
|
|
|
1060
1058
|
) })
|
|
1061
1059
|
] }),
|
|
1062
1060
|
/* @__PURE__ */ l.jsx(Ar, { children: /* @__PURE__ */ l.jsx(
|
|
1063
|
-
|
|
1061
|
+
Pa,
|
|
1064
1062
|
{
|
|
1065
1063
|
selectedContentIndex: o,
|
|
1066
1064
|
selectedExampleIndex: u,
|
|
@@ -1074,17 +1072,17 @@ const nn = fe, ti = ({
|
|
|
1074
1072
|
) })
|
|
1075
1073
|
] }) });
|
|
1076
1074
|
};
|
|
1077
|
-
var
|
|
1075
|
+
var an = (e, n) => {
|
|
1078
1076
|
const r = e[n.name];
|
|
1079
1077
|
return r === void 0 ? (e[n.name] = n.value, e) : Array.isArray(r) ? (r.push(n.value), e) : (e[n.name] = [r, n.value], e);
|
|
1080
|
-
},
|
|
1078
|
+
}, on = "", sn = `
|
|
1081
1079
|
`, Q = class {
|
|
1082
1080
|
/**
|
|
1083
1081
|
* Helper object to format and aggragate lines of code.
|
|
1084
1082
|
* Lines are aggregated in a `code` array, and need to be joined to obtain a proper code snippet.
|
|
1085
1083
|
*/
|
|
1086
1084
|
constructor({ indent: e, join: n } = {}) {
|
|
1087
|
-
this.postProcessors = [], this.code = [], this.indentationCharacter =
|
|
1085
|
+
this.postProcessors = [], this.code = [], this.indentationCharacter = on, this.lineJoin = sn, this.indentLine = (r, a = 0) => `${this.indentationCharacter.repeat(a)}${r}`, this.unshift = (r, a) => {
|
|
1088
1086
|
const c = this.indentLine(r, a);
|
|
1089
1087
|
this.code.unshift(c);
|
|
1090
1088
|
}, this.push = (r, a) => {
|
|
@@ -1097,30 +1095,30 @@ var on = (e, n) => {
|
|
|
1097
1095
|
return this.postProcessors.reduce((c, i) => i(c), r);
|
|
1098
1096
|
}, this.addPostProcessor = (r) => {
|
|
1099
1097
|
this.postProcessors = [...this.postProcessors, r];
|
|
1100
|
-
}, this.indentationCharacter = e ||
|
|
1098
|
+
}, this.indentationCharacter = e || on, this.lineJoin = n ?? sn;
|
|
1101
1099
|
}
|
|
1102
|
-
}, Ot,
|
|
1103
|
-
function
|
|
1104
|
-
return
|
|
1100
|
+
}, Ot, ln;
|
|
1101
|
+
function fi() {
|
|
1102
|
+
return ln || (ln = 1, Ot = function(e) {
|
|
1105
1103
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1106
1104
|
}), Ot;
|
|
1107
1105
|
}
|
|
1108
|
-
var Tt,
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1106
|
+
var Tt, cn;
|
|
1107
|
+
function di() {
|
|
1108
|
+
return cn || (cn = 1, Tt = function(e) {
|
|
1111
1109
|
var n = typeof e;
|
|
1112
1110
|
return e !== null && (n === "object" || n === "function");
|
|
1113
1111
|
}), Tt;
|
|
1114
1112
|
}
|
|
1115
|
-
var
|
|
1116
|
-
function
|
|
1117
|
-
return
|
|
1113
|
+
var nt = {}, un;
|
|
1114
|
+
function hi() {
|
|
1115
|
+
return un || (un = 1, Object.defineProperty(nt, "__esModule", { value: !0 }), nt.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), nt;
|
|
1118
1116
|
}
|
|
1119
|
-
var Ct,
|
|
1120
|
-
function
|
|
1121
|
-
if (
|
|
1122
|
-
|
|
1123
|
-
const e =
|
|
1117
|
+
var Ct, pn;
|
|
1118
|
+
function mi() {
|
|
1119
|
+
if (pn) return Ct;
|
|
1120
|
+
pn = 1;
|
|
1121
|
+
const e = fi(), n = di(), r = hi().default;
|
|
1124
1122
|
return Ct = (a, c, i) => {
|
|
1125
1123
|
const t = [];
|
|
1126
1124
|
return (function o(s, u, p) {
|
|
@@ -1180,14 +1178,14 @@ function gi() {
|
|
|
1180
1178
|
})(a, c, i);
|
|
1181
1179
|
}, Ct;
|
|
1182
1180
|
}
|
|
1183
|
-
var
|
|
1184
|
-
const ue = /* @__PURE__ */
|
|
1185
|
-
function
|
|
1181
|
+
var yi = mi();
|
|
1182
|
+
const ue = /* @__PURE__ */ Bo(yi);
|
|
1183
|
+
function We(e, n = {}) {
|
|
1186
1184
|
const { delimiter: r = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
|
|
1187
1185
|
return [...e.toString()].map((t) => t === "\b" ? `${a}b` : t === " " ? `${a}t` : t === `
|
|
1188
1186
|
` ? c ? `${a}n` : t : t === "\f" ? `${a}f` : t === "\r" ? c ? `${a}r` : t : t === a ? a + a : t === r ? a + r : t < " " || t > "~" ? JSON.stringify(t).slice(1, -1) : t).join("");
|
|
1189
1187
|
}
|
|
1190
|
-
var
|
|
1188
|
+
var Ve = (e) => We(e, { delimiter: "'" }), le = (e) => We(e, { delimiter: '"' }), gi = {
|
|
1191
1189
|
info: {
|
|
1192
1190
|
key: "libcurl",
|
|
1193
1191
|
title: "Libcurl",
|
|
@@ -1203,7 +1201,7 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
|
|
|
1203
1201
|
i(`headers = curl_slist_append(headers, "${u}: ${le(r[u])}");`);
|
|
1204
1202
|
}), i("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (t(), i(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (t(), i(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), t(), i("CURLcode ret = curl_easy_perform(hnd);"), o();
|
|
1205
1203
|
}
|
|
1206
|
-
},
|
|
1204
|
+
}, vi = {
|
|
1207
1205
|
info: {
|
|
1208
1206
|
key: "c",
|
|
1209
1207
|
title: "C",
|
|
@@ -1211,30 +1209,30 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
|
|
|
1211
1209
|
cli: "c"
|
|
1212
1210
|
},
|
|
1213
1211
|
clientsById: {
|
|
1214
|
-
libcurl:
|
|
1212
|
+
libcurl: gi
|
|
1215
1213
|
}
|
|
1216
1214
|
}, pe = (e, n) => Object.keys(e).find((r) => r.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
|
|
1217
1215
|
const r = pe(e, n);
|
|
1218
1216
|
if (r)
|
|
1219
1217
|
return e[r];
|
|
1220
|
-
}, ft = (e, n) => !!pe(e, n),
|
|
1218
|
+
}, ft = (e, n) => !!pe(e, n), xi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
1221
1219
|
(n) => e.indexOf(n) > -1
|
|
1222
|
-
),
|
|
1220
|
+
), fn = class {
|
|
1223
1221
|
constructor(e) {
|
|
1224
1222
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
1225
1223
|
}
|
|
1226
|
-
},
|
|
1224
|
+
}, bi = class {
|
|
1227
1225
|
constructor(e) {
|
|
1228
1226
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
1229
1227
|
}
|
|
1230
|
-
},
|
|
1228
|
+
}, Na = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), ka = (e) => e === void 0 ? !0 : Na(e) === "object" ? Object.keys(e).length === 0 : !1, dn = (e) => (Object.keys(e).filter((n) => ka(e[n])).forEach((n) => {
|
|
1231
1229
|
delete e[n];
|
|
1232
|
-
}), e),
|
|
1230
|
+
}), e), ot = (e, n) => {
|
|
1233
1231
|
const r = " ".repeat(e);
|
|
1234
1232
|
return n.replace(/\n/g, `
|
|
1235
1233
|
${r}`);
|
|
1236
1234
|
}, Pr = (e) => {
|
|
1237
|
-
switch (
|
|
1235
|
+
switch (Na(e)) {
|
|
1238
1236
|
case "string":
|
|
1239
1237
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
1240
1238
|
case "file":
|
|
@@ -1247,20 +1245,20 @@ ${r}`);
|
|
|
1247
1245
|
return `#"${e.source}"`;
|
|
1248
1246
|
case "object": {
|
|
1249
1247
|
const n = Object.keys(e).reduce((r, a) => {
|
|
1250
|
-
const c =
|
|
1248
|
+
const c = ot(a.length + 2, Pr(e[a]));
|
|
1251
1249
|
return `${r}:${a} ${c}
|
|
1252
1250
|
`;
|
|
1253
1251
|
}, "").trim();
|
|
1254
|
-
return `{${
|
|
1252
|
+
return `{${ot(1, n)}}`;
|
|
1255
1253
|
}
|
|
1256
1254
|
case "array": {
|
|
1257
1255
|
const n = e.reduce((r, a) => `${r} ${Pr(a)}`, "").trim();
|
|
1258
|
-
return `[${
|
|
1256
|
+
return `[${ot(1, n)}]`;
|
|
1259
1257
|
}
|
|
1260
1258
|
default:
|
|
1261
1259
|
return e.toString();
|
|
1262
1260
|
}
|
|
1263
|
-
},
|
|
1261
|
+
}, ji = {
|
|
1264
1262
|
info: {
|
|
1265
1263
|
key: "clj_http",
|
|
1266
1264
|
title: "clj-http",
|
|
@@ -1279,7 +1277,7 @@ ${r}`);
|
|
|
1279
1277
|
switch (r.mimeType) {
|
|
1280
1278
|
case "application/json":
|
|
1281
1279
|
{
|
|
1282
|
-
u["content-type"] = new
|
|
1280
|
+
u["content-type"] = new fn("json"), u["form-params"] = r.jsonObj;
|
|
1283
1281
|
const p = pe(u.headers, "content-type");
|
|
1284
1282
|
p && delete u.headers[p];
|
|
1285
1283
|
}
|
|
@@ -1302,7 +1300,7 @@ ${r}`);
|
|
|
1302
1300
|
if (r.params) {
|
|
1303
1301
|
u.multipart = r.params.map((d) => d.fileName && !d.value ? {
|
|
1304
1302
|
name: d.name,
|
|
1305
|
-
content: new
|
|
1303
|
+
content: new bi(d.fileName)
|
|
1306
1304
|
} : {
|
|
1307
1305
|
name: d.name,
|
|
1308
1306
|
content: d.value
|
|
@@ -1316,31 +1314,31 @@ ${r}`);
|
|
|
1316
1314
|
switch (ve(u.headers, "accept")) {
|
|
1317
1315
|
case "application/json":
|
|
1318
1316
|
{
|
|
1319
|
-
u.accept = new
|
|
1317
|
+
u.accept = new fn("json");
|
|
1320
1318
|
const p = pe(u.headers, "accept");
|
|
1321
1319
|
p && delete u.headers[p];
|
|
1322
1320
|
}
|
|
1323
1321
|
break;
|
|
1324
1322
|
}
|
|
1325
1323
|
if (t(`(require '[clj-http.client :as client])
|
|
1326
|
-
`),
|
|
1324
|
+
`), ka(dn(u)))
|
|
1327
1325
|
t(`(client/${n} "${a}")`);
|
|
1328
1326
|
else {
|
|
1329
|
-
const p = 11 + n.length + a.length, d =
|
|
1327
|
+
const p = 11 + n.length + a.length, d = ot(p, Pr(dn(u)));
|
|
1330
1328
|
t(`(client/${n} "${a}" ${d})`);
|
|
1331
1329
|
}
|
|
1332
1330
|
return o();
|
|
1333
1331
|
}
|
|
1334
|
-
},
|
|
1332
|
+
}, wi = {
|
|
1335
1333
|
info: {
|
|
1336
1334
|
key: "clojure",
|
|
1337
1335
|
title: "Clojure",
|
|
1338
1336
|
default: "clj_http"
|
|
1339
1337
|
},
|
|
1340
1338
|
clientsById: {
|
|
1341
|
-
clj_http:
|
|
1339
|
+
clj_http: ji
|
|
1342
1340
|
}
|
|
1343
|
-
},
|
|
1341
|
+
}, $i = (e) => {
|
|
1344
1342
|
let n = ve(e, "accept-encoding");
|
|
1345
1343
|
if (!n)
|
|
1346
1344
|
return [];
|
|
@@ -1357,7 +1355,7 @@ ${r}`);
|
|
|
1357
1355
|
}
|
|
1358
1356
|
});
|
|
1359
1357
|
}), a;
|
|
1360
|
-
},
|
|
1358
|
+
}, Si = {
|
|
1361
1359
|
info: {
|
|
1362
1360
|
key: "httpclient",
|
|
1363
1361
|
title: "HttpClient",
|
|
@@ -1372,7 +1370,7 @@ ${r}`);
|
|
|
1372
1370
|
}, { push: t, join: o } = new Q({ indent: i.indent });
|
|
1373
1371
|
t("using System.Net.Http.Headers;");
|
|
1374
1372
|
let s = "";
|
|
1375
|
-
const u = !!e.cookie, p =
|
|
1373
|
+
const u = !!e.cookie, p = $i(e);
|
|
1376
1374
|
(u || p.length) && (s = "clientHandler", t("var clientHandler = new HttpClientHandler"), t("{"), u && t("UseCookies = false,", 1), p.length && t(`AutomaticDecompression = ${p.join(" | ")},`, 1), t("};")), t(`var client = new HttpClient(${s});`), t("var request = new HttpRequestMessage"), t("{");
|
|
1377
1375
|
const d = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
1378
1376
|
r = r.toUpperCase(), r && d.includes(r) ? r = `HttpMethod.${r[0]}${r.substring(1).toLowerCase()}` : r = `new HttpMethod("${r}")`, t(`Method = ${r},`, 1), t(`RequestUri = new Uri("${a}"),`, 1);
|
|
@@ -1409,10 +1407,10 @@ ${r}`);
|
|
|
1409
1407
|
return t("};"), t("using (var response = await client.SendAsync(request))"), t("{"), t("response.EnsureSuccessStatusCode();", 1), t("var body = await response.Content.ReadAsStringAsync();", 1), t("Console.WriteLine(body);", 1), t("}"), o();
|
|
1410
1408
|
}
|
|
1411
1409
|
};
|
|
1412
|
-
function
|
|
1410
|
+
function Oi(e) {
|
|
1413
1411
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
1414
1412
|
}
|
|
1415
|
-
var
|
|
1413
|
+
var Ti = {
|
|
1416
1414
|
info: {
|
|
1417
1415
|
key: "restsharp",
|
|
1418
1416
|
title: "RestSharp",
|
|
@@ -1462,11 +1460,11 @@ var Pi = {
|
|
|
1462
1460
|
if (!c.text) break;
|
|
1463
1461
|
t(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
|
|
1464
1462
|
}
|
|
1465
|
-
return t(`var response = await client.${
|
|
1463
|
+
return t(`var response = await client.${Oi(e)}Async(request);
|
|
1466
1464
|
`), t(`Console.WriteLine("{0}", response.Content);
|
|
1467
1465
|
`), o();
|
|
1468
1466
|
}
|
|
1469
|
-
},
|
|
1467
|
+
}, Ci = {
|
|
1470
1468
|
info: {
|
|
1471
1469
|
key: "csharp",
|
|
1472
1470
|
title: "C#",
|
|
@@ -1474,10 +1472,10 @@ var Pi = {
|
|
|
1474
1472
|
cli: "dotnet"
|
|
1475
1473
|
},
|
|
1476
1474
|
clientsById: {
|
|
1477
|
-
httpclient:
|
|
1478
|
-
restsharp:
|
|
1475
|
+
httpclient: Si,
|
|
1476
|
+
restsharp: Ti
|
|
1479
1477
|
}
|
|
1480
|
-
},
|
|
1478
|
+
}, Pi = {
|
|
1481
1479
|
info: {
|
|
1482
1480
|
key: "native",
|
|
1483
1481
|
title: "NewRequest",
|
|
@@ -1495,7 +1493,7 @@ var Pi = {
|
|
|
1495
1493
|
t(`req.Header.Add("${v}", "${le(r[v])}")`, y);
|
|
1496
1494
|
}), i()), t(`res, ${m} := ${g}.Do(req)`, y), j(), p && (i(), t("defer res.Body.Close()", y), t(`body, ${m} := io.ReadAll(res.Body)`, y), j()), i(), p && t("fmt.Println(string(body))", y), s && (i(), t("}")), o();
|
|
1497
1495
|
}
|
|
1498
|
-
},
|
|
1496
|
+
}, Ni = {
|
|
1499
1497
|
info: {
|
|
1500
1498
|
key: "go",
|
|
1501
1499
|
title: "Go",
|
|
@@ -1503,10 +1501,10 @@ var Pi = {
|
|
|
1503
1501
|
cli: "go"
|
|
1504
1502
|
},
|
|
1505
1503
|
clientsById: {
|
|
1506
|
-
native:
|
|
1504
|
+
native: Pi
|
|
1507
1505
|
}
|
|
1508
|
-
},
|
|
1509
|
-
`,
|
|
1506
|
+
}, hn = `\r
|
|
1507
|
+
`, ki = {
|
|
1510
1508
|
info: {
|
|
1511
1509
|
key: "http1.1",
|
|
1512
1510
|
title: "HTTP/1.1",
|
|
@@ -1520,7 +1518,7 @@ var Pi = {
|
|
|
1520
1518
|
autoContentLength: !0,
|
|
1521
1519
|
autoHost: !0,
|
|
1522
1520
|
...t
|
|
1523
|
-
}, { blank: s, push: u, join: p } = new Q({ indent: "", join:
|
|
1521
|
+
}, { blank: s, push: u, join: p } = new Q({ indent: "", join: hn }), d = o.absoluteURI ? n : r.path;
|
|
1524
1522
|
u(`${e} ${d} ${a}`);
|
|
1525
1523
|
const m = Object.keys(c);
|
|
1526
1524
|
if (m.forEach((b) => {
|
|
@@ -1532,18 +1530,18 @@ var Pi = {
|
|
|
1532
1530
|
}
|
|
1533
1531
|
s();
|
|
1534
1532
|
const y = p(), j = i.text || "";
|
|
1535
|
-
return `${y}${
|
|
1533
|
+
return `${y}${hn}${j}`;
|
|
1536
1534
|
}
|
|
1537
|
-
},
|
|
1535
|
+
}, qi = {
|
|
1538
1536
|
info: {
|
|
1539
1537
|
key: "http",
|
|
1540
1538
|
title: "HTTP",
|
|
1541
1539
|
default: "http1.1"
|
|
1542
1540
|
},
|
|
1543
1541
|
clientsById: {
|
|
1544
|
-
"http1.1":
|
|
1542
|
+
"http1.1": ki
|
|
1545
1543
|
}
|
|
1546
|
-
},
|
|
1544
|
+
}, Ei = {
|
|
1547
1545
|
info: {
|
|
1548
1546
|
key: "asynchttp",
|
|
1549
1547
|
title: "AsyncHttp",
|
|
@@ -1560,7 +1558,7 @@ var Pi = {
|
|
|
1560
1558
|
o(`.setHeader("${u}", "${le(n[u])}")`, 1);
|
|
1561
1559
|
}), r.text && o(`.setBody(${JSON.stringify(r.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), t(), o("client.close();"), s();
|
|
1562
1560
|
}
|
|
1563
|
-
},
|
|
1561
|
+
}, Ri = {
|
|
1564
1562
|
info: {
|
|
1565
1563
|
key: "nethttp",
|
|
1566
1564
|
title: "java.net.http",
|
|
@@ -1582,7 +1580,7 @@ var Pi = {
|
|
|
1582
1580
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
1583
1581
|
), t("System.out.println(response.body());"), o();
|
|
1584
1582
|
}
|
|
1585
|
-
},
|
|
1583
|
+
}, Ai = {
|
|
1586
1584
|
info: {
|
|
1587
1585
|
key: "okhttp",
|
|
1588
1586
|
title: "OkHttp",
|
|
@@ -1599,7 +1597,7 @@ var Pi = {
|
|
|
1599
1597
|
t(`.addHeader("${d}", "${le(a[d])}")`, 1);
|
|
1600
1598
|
}), t(".build();", 1), o(), t("Response response = client.newCall(request).execute();"), s();
|
|
1601
1599
|
}
|
|
1602
|
-
},
|
|
1600
|
+
}, Ii = {
|
|
1603
1601
|
info: {
|
|
1604
1602
|
key: "unirest",
|
|
1605
1603
|
title: "Unirest",
|
|
@@ -1623,12 +1621,12 @@ var Pi = {
|
|
|
1623
1621
|
default: "unirest"
|
|
1624
1622
|
},
|
|
1625
1623
|
clientsById: {
|
|
1626
|
-
asynchttp:
|
|
1627
|
-
nethttp:
|
|
1628
|
-
okhttp:
|
|
1629
|
-
unirest:
|
|
1624
|
+
asynchttp: Ei,
|
|
1625
|
+
nethttp: Ri,
|
|
1626
|
+
okhttp: Ai,
|
|
1627
|
+
unirest: Ii
|
|
1630
1628
|
}
|
|
1631
|
-
},
|
|
1629
|
+
}, Ui = {
|
|
1632
1630
|
info: {
|
|
1633
1631
|
key: "axios",
|
|
1634
1632
|
title: "Axios",
|
|
@@ -1672,7 +1670,7 @@ var Pi = {
|
|
|
1672
1670
|
}).replace('"[form]"', "form");
|
|
1673
1671
|
return s(`const options = ${m};`), o(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), u();
|
|
1674
1672
|
}
|
|
1675
|
-
},
|
|
1673
|
+
}, Li = {
|
|
1676
1674
|
info: {
|
|
1677
1675
|
key: "fetch",
|
|
1678
1676
|
title: "fetch",
|
|
@@ -1725,7 +1723,7 @@ var Pi = {
|
|
|
1725
1723
|
})};`
|
|
1726
1724
|
), t(), r.params && r.mimeType === "multipart/form-data" && (s("options.body = form;"), t()), s(`fetch('${a}', options)`), s(".then(response => response.json())", 1), s(".then(response => console.log(response))", 1), s(".catch(err => console.error(err));", 1), o();
|
|
1727
1725
|
}
|
|
1728
|
-
},
|
|
1726
|
+
}, Fi = {
|
|
1729
1727
|
info: {
|
|
1730
1728
|
key: "jquery",
|
|
1731
1729
|
title: "jQuery",
|
|
@@ -1768,7 +1766,7 @@ var Pi = {
|
|
|
1768
1766
|
const p = ue(u, { indent: i.indent }).replace("'[form]'", "form");
|
|
1769
1767
|
return o(`const settings = ${p};`), t(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), s();
|
|
1770
1768
|
}
|
|
1771
|
-
},
|
|
1769
|
+
}, Hi = {
|
|
1772
1770
|
info: {
|
|
1773
1771
|
key: "xhr",
|
|
1774
1772
|
title: "XMLHttpRequest",
|
|
@@ -1805,22 +1803,22 @@ var Pi = {
|
|
|
1805
1803
|
o(`const data = ${e.text ? `'${e.text}'` : "null"};`), t();
|
|
1806
1804
|
}
|
|
1807
1805
|
return o("const xhr = new XMLHttpRequest();"), i.cors && o("xhr.withCredentials = true;"), t(), o("xhr.addEventListener('readystatechange', function () {"), o("if (this.readyState === this.DONE) {", 1), o("console.log(this.responseText);", 2), o("}", 1), o("});"), t(), o(`xhr.open('${r}', '${a}');`), Object.keys(n).forEach((u) => {
|
|
1808
|
-
o(`xhr.setRequestHeader('${u}', '${
|
|
1806
|
+
o(`xhr.setRequestHeader('${u}', '${Ve(n[u])}');`);
|
|
1809
1807
|
}), t(), o("xhr.send(data);"), s();
|
|
1810
1808
|
}
|
|
1811
|
-
},
|
|
1809
|
+
}, Mi = {
|
|
1812
1810
|
info: {
|
|
1813
1811
|
key: "javascript",
|
|
1814
1812
|
title: "JavaScript",
|
|
1815
1813
|
default: "xhr"
|
|
1816
1814
|
},
|
|
1817
1815
|
clientsById: {
|
|
1818
|
-
xhr:
|
|
1819
|
-
axios:
|
|
1820
|
-
fetch:
|
|
1821
|
-
jquery:
|
|
1816
|
+
xhr: Hi,
|
|
1817
|
+
axios: Ui,
|
|
1818
|
+
fetch: Li,
|
|
1819
|
+
jquery: Fi
|
|
1822
1820
|
}
|
|
1823
|
-
},
|
|
1821
|
+
}, Bi = {
|
|
1824
1822
|
info: {
|
|
1825
1823
|
key: "native",
|
|
1826
1824
|
title: "Native JSON",
|
|
@@ -1854,16 +1852,16 @@ var Pi = {
|
|
|
1854
1852
|
}
|
|
1855
1853
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, r.indent);
|
|
1856
1854
|
}
|
|
1857
|
-
},
|
|
1855
|
+
}, zi = {
|
|
1858
1856
|
info: {
|
|
1859
1857
|
key: "json",
|
|
1860
1858
|
title: "JSON",
|
|
1861
1859
|
default: "native"
|
|
1862
1860
|
},
|
|
1863
1861
|
clientsById: {
|
|
1864
|
-
native:
|
|
1862
|
+
native: Bi
|
|
1865
1863
|
}
|
|
1866
|
-
},
|
|
1864
|
+
}, Gi = {
|
|
1867
1865
|
info: {
|
|
1868
1866
|
key: "okhttp",
|
|
1869
1867
|
title: "OkHttp",
|
|
@@ -1880,16 +1878,16 @@ var Pi = {
|
|
|
1880
1878
|
s(`.addHeader("${d}", "${le(a[d])}")`, 1);
|
|
1881
1879
|
}), s(".build()", 1), t(), s("val response = client.newCall(request).execute()"), o();
|
|
1882
1880
|
}
|
|
1883
|
-
},
|
|
1881
|
+
}, Wi = {
|
|
1884
1882
|
info: {
|
|
1885
1883
|
key: "kotlin",
|
|
1886
1884
|
title: "Kotlin",
|
|
1887
1885
|
default: "okhttp"
|
|
1888
1886
|
},
|
|
1889
1887
|
clientsById: {
|
|
1890
|
-
okhttp:
|
|
1888
|
+
okhttp: Gi
|
|
1891
1889
|
}
|
|
1892
|
-
},
|
|
1890
|
+
}, Vi = {
|
|
1893
1891
|
info: {
|
|
1894
1892
|
key: "axios",
|
|
1895
1893
|
title: "Axios",
|
|
@@ -1923,7 +1921,7 @@ var Pi = {
|
|
|
1923
1921
|
const d = ue(p, { indent: " ", inlineCharacterLimit: 80 });
|
|
1924
1922
|
return s(`const options = ${d};`), t(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), o();
|
|
1925
1923
|
}
|
|
1926
|
-
},
|
|
1924
|
+
}, Ji = {
|
|
1927
1925
|
info: {
|
|
1928
1926
|
key: "fetch",
|
|
1929
1927
|
title: "Fetch",
|
|
@@ -1982,7 +1980,7 @@ var Pi = {
|
|
|
1982
1980
|
});
|
|
1983
1981
|
return u(`const options = ${j};`), s(), o && d("const fs = require('fs');"), r.params && r.mimeType === "multipart/form-data" && (u("options.body = formData;"), s()), u("fetch(url, options)"), u(".then(res => res.json())", 1), u(".then(json => console.log(json))", 1), u(".catch(err => console.error('error:' + err));", 1), p().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
1984
1982
|
}
|
|
1985
|
-
},
|
|
1983
|
+
}, Di = {
|
|
1986
1984
|
info: {
|
|
1987
1985
|
key: "native",
|
|
1988
1986
|
title: "HTTP",
|
|
@@ -2020,7 +2018,7 @@ var Pi = {
|
|
|
2020
2018
|
}
|
|
2021
2019
|
return s("req.end();"), o();
|
|
2022
2020
|
}
|
|
2023
|
-
},
|
|
2021
|
+
}, Qi = {
|
|
2024
2022
|
info: {
|
|
2025
2023
|
key: "request",
|
|
2026
2024
|
title: "Request",
|
|
@@ -2073,7 +2071,7 @@ var Pi = {
|
|
|
2073
2071
|
u(`jar.setCookie(request.cookie('${encodeURIComponent(b)}=${encodeURIComponent(f)}'), '${n}');`);
|
|
2074
2072
|
}), p(), y((b) => b.replace(/'JAR'/, "jar"))), s && m("const fs = require('fs');"), u(`const options = ${ue(j, { indent: " ", inlineCharacterLimit: 80 })};`), p(), u("request(options, function (error, response, body) {"), u("if (error) throw new Error(error);", 1), p(), u("console.log(body);", 1), u("});"), d();
|
|
2075
2073
|
}
|
|
2076
|
-
},
|
|
2074
|
+
}, Ki = {
|
|
2077
2075
|
info: {
|
|
2078
2076
|
key: "unirest",
|
|
2079
2077
|
title: "Unirest",
|
|
@@ -2114,7 +2112,7 @@ var Pi = {
|
|
|
2114
2112
|
}
|
|
2115
2113
|
return s && y("const fs = require('fs');"), m("req.end(function (res) {"), m("if (res.error) throw new Error(res.error);", 1), p(), m("console.log(res.body);", 1), m("});"), d();
|
|
2116
2114
|
}
|
|
2117
|
-
},
|
|
2115
|
+
}, Yi = {
|
|
2118
2116
|
info: {
|
|
2119
2117
|
key: "node",
|
|
2120
2118
|
title: "Node.js",
|
|
@@ -2122,11 +2120,11 @@ var Pi = {
|
|
|
2122
2120
|
cli: "node %s"
|
|
2123
2121
|
},
|
|
2124
2122
|
clientsById: {
|
|
2125
|
-
native:
|
|
2126
|
-
request:
|
|
2127
|
-
unirest:
|
|
2128
|
-
axios:
|
|
2129
|
-
fetch:
|
|
2123
|
+
native: Di,
|
|
2124
|
+
request: Qi,
|
|
2125
|
+
unirest: Ki,
|
|
2126
|
+
axios: Vi,
|
|
2127
|
+
fetch: Ji
|
|
2130
2128
|
}
|
|
2131
2129
|
}, Pt = (e, n, r, a) => {
|
|
2132
2130
|
const c = `${e} *${n} = `, i = Nr(r, a ? c.length : void 0);
|
|
@@ -2150,7 +2148,7 @@ var Pi = {
|
|
|
2150
2148
|
default:
|
|
2151
2149
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2152
2150
|
}
|
|
2153
|
-
},
|
|
2151
|
+
}, Xi = {
|
|
2154
2152
|
info: {
|
|
2155
2153
|
key: "nsurlsession",
|
|
2156
2154
|
title: "NSURLSession",
|
|
@@ -2206,16 +2204,16 @@ var Pi = {
|
|
|
2206
2204
|
2
|
|
2207
2205
|
), t(' NSLog(@"%@", httpResponse);', 2), t(" }", 1), t(" }];"), t("[dataTask resume];"), o();
|
|
2208
2206
|
}
|
|
2209
|
-
},
|
|
2207
|
+
}, Zi = {
|
|
2210
2208
|
info: {
|
|
2211
2209
|
key: "objc",
|
|
2212
2210
|
title: "Objective-C",
|
|
2213
2211
|
default: "nsurlsession"
|
|
2214
2212
|
},
|
|
2215
2213
|
clientsById: {
|
|
2216
|
-
nsurlsession:
|
|
2214
|
+
nsurlsession: Xi
|
|
2217
2215
|
}
|
|
2218
|
-
},
|
|
2216
|
+
}, es = {
|
|
2219
2217
|
info: {
|
|
2220
2218
|
key: "cohttp",
|
|
2221
2219
|
title: "CoHTTP",
|
|
@@ -2241,14 +2239,14 @@ var Pi = {
|
|
|
2241
2239
|
const d = p.length ? "~headers " : "", m = r.text ? "~body " : "", y = t.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
2242
2240
|
return o(`Client.call ${d}${m}${y} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), u();
|
|
2243
2241
|
}
|
|
2244
|
-
},
|
|
2242
|
+
}, ts = {
|
|
2245
2243
|
info: {
|
|
2246
2244
|
key: "ocaml",
|
|
2247
2245
|
title: "OCaml",
|
|
2248
2246
|
default: "cohttp"
|
|
2249
2247
|
},
|
|
2250
2248
|
clientsById: {
|
|
2251
|
-
cohttp:
|
|
2249
|
+
cohttp: es
|
|
2252
2250
|
}
|
|
2253
2251
|
}, re = (e, n, r) => {
|
|
2254
2252
|
switch (r = r || "", n = n || "", Object.prototype.toString.call(e)) {
|
|
@@ -2259,7 +2257,7 @@ var Pi = {
|
|
|
2259
2257
|
case "[object Undefined]":
|
|
2260
2258
|
return "null";
|
|
2261
2259
|
case "[object String]":
|
|
2262
|
-
return `'${
|
|
2260
|
+
return `'${We(e, { delimiter: "'", escapeNewlines: !1 })}'`;
|
|
2263
2261
|
case "[object Number]":
|
|
2264
2262
|
return e.toString();
|
|
2265
2263
|
case "[object Array]": {
|
|
@@ -2281,7 +2279,7 @@ ${r}]`;
|
|
|
2281
2279
|
default:
|
|
2282
2280
|
return "null";
|
|
2283
2281
|
}
|
|
2284
|
-
},
|
|
2282
|
+
}, mn = [
|
|
2285
2283
|
"ACL",
|
|
2286
2284
|
"BASELINE_CONTROL",
|
|
2287
2285
|
"CHECKIN",
|
|
@@ -2309,7 +2307,7 @@ ${r}]`;
|
|
|
2309
2307
|
"UNLOCK",
|
|
2310
2308
|
"UPDATE",
|
|
2311
2309
|
"VERSION_CONTROL"
|
|
2312
|
-
],
|
|
2310
|
+
], rs = {
|
|
2313
2311
|
info: {
|
|
2314
2312
|
key: "curl",
|
|
2315
2313
|
title: "cURL",
|
|
@@ -2387,7 +2385,7 @@ ${u}` });
|
|
|
2387
2385
|
return h.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(h.join(`,
|
|
2388
2386
|
${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = curl_exec($curl);"), b("$err = curl_error($curl);"), f(), b("curl_close($curl);"), f(), b("if ($err) {"), b(d ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), b("} else {"), b("echo $response;", 1), b("}"), !m && s && (f(), b("?>")), g();
|
|
2389
2387
|
}
|
|
2390
|
-
},
|
|
2388
|
+
}, ns = {
|
|
2391
2389
|
info: {
|
|
2392
2390
|
key: "guzzle",
|
|
2393
2391
|
title: "Guzzle",
|
|
@@ -2432,12 +2430,12 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2432
2430
|
e.text && d(`'body' => ${re(e.text)},`, 1);
|
|
2433
2431
|
}
|
|
2434
2432
|
const y = Object.keys(c).sort().map(function(b) {
|
|
2435
|
-
return `${t.indent}${t.indent}'${b}' => '${
|
|
2433
|
+
return `${t.indent}${t.indent}'${b}' => '${Ve(c[b])}',`;
|
|
2436
2434
|
}), j = a.map((b) => `${encodeURIComponent(b.name)}=${encodeURIComponent(b.value)}`).join("; ");
|
|
2437
|
-
return j.length && y.push(`${t.indent}${t.indent}'cookie' => '${
|
|
2435
|
+
return j.length && y.push(`${t.indent}${t.indent}'cookie' => '${Ve(j)}',`), y.length && (d("'headers' => [", 1), d(y.join(`
|
|
2438
2436
|
`)), d("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), s(), p.length ? (o(`$response = $client->request('${r}', '${n}', [`), o(m()), o("]);")) : o(`$response = $client->request('${r}', '${n}');`), s(), o("echo $response->getBody();"), !t.noTags && t.closingTag && (s(), o("?>")), u();
|
|
2439
2437
|
}
|
|
2440
|
-
},
|
|
2438
|
+
}, as = {
|
|
2441
2439
|
info: {
|
|
2442
2440
|
key: "http1",
|
|
2443
2441
|
title: "HTTP v1",
|
|
@@ -2447,7 +2445,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2447
2445
|
},
|
|
2448
2446
|
convert: ({ method: e, url: n, postData: r, queryObj: a, headersObj: c, cookiesObj: i }, t = {}) => {
|
|
2449
2447
|
const { closingTag: o = !1, indent: s = " ", noTags: u = !1, shortTags: p = !1 } = t, { push: d, blank: m, join: y } = new Q({ indent: s });
|
|
2450
|
-
switch (u || (d(p ? "<?" : "<?php"), m()),
|
|
2448
|
+
switch (u || (d(p ? "<?" : "<?php"), m()), mn.includes(e.toUpperCase()) || d(`HttpRequest::methodRegister('${e}');`), d("$request = new HttpRequest();"), d(`$request->setUrl(${re(n)});`), mn.includes(e.toUpperCase()) ? d(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : d(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), m(), Object.keys(a).length && (d(`$request->setQueryData(${re(a, s)});`), m()), Object.keys(c).length && (d(`$request->setHeaders(${re(c, s)});`), m()), Object.keys(i).length && (d(`$request->setCookies(${re(i, s)});`), m()), r.mimeType) {
|
|
2451
2449
|
case "application/x-www-form-urlencoded":
|
|
2452
2450
|
d(`$request->setContentType(${re(r.mimeType)});`), d(`$request->setPostFields(${re(r.paramsObj, s)});`), m();
|
|
2453
2451
|
break;
|
|
@@ -2459,7 +2457,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2459
2457
|
}
|
|
2460
2458
|
return d("try {"), d("$response = $request->send();", 1), m(), d("echo $response->getBody();", 1), d("} catch (HttpException $ex) {"), d("echo $ex;", 1), d("}"), !u && o && (m(), d("?>")), y();
|
|
2461
2459
|
}
|
|
2462
|
-
},
|
|
2460
|
+
}, os = {
|
|
2463
2461
|
info: {
|
|
2464
2462
|
key: "http2",
|
|
2465
2463
|
title: "HTTP v2",
|
|
@@ -2506,7 +2504,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2506
2504
|
}
|
|
2507
2505
|
return d(`$request->setRequestUrl(${re(i)});`), d(`$request->setRequestMethod(${re(r)});`), j && (d("$request->setBody($body);"), m()), Object.keys(a).length && (d(`$request->setQuery(new http\\QueryString(${re(a, s)}));`), m()), Object.keys(n).length && (d(`$request->setHeaders(${re(n, s)});`), m()), Object.keys(c).length && (m(), d(`$client->setCookies(${re(c, s)});`), m()), d("$client->enqueue($request)->send();"), d("$response = $client->getResponse();"), m(), d("echo $response->getBody();"), !u && o && (m(), d("?>")), y();
|
|
2508
2506
|
}
|
|
2509
|
-
},
|
|
2507
|
+
}, is = {
|
|
2510
2508
|
info: {
|
|
2511
2509
|
key: "php",
|
|
2512
2510
|
title: "PHP",
|
|
@@ -2514,24 +2512,24 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2514
2512
|
cli: "php %s"
|
|
2515
2513
|
},
|
|
2516
2514
|
clientsById: {
|
|
2517
|
-
curl:
|
|
2518
|
-
guzzle:
|
|
2519
|
-
http1:
|
|
2520
|
-
http2:
|
|
2515
|
+
curl: rs,
|
|
2516
|
+
guzzle: ns,
|
|
2517
|
+
http1: as,
|
|
2518
|
+
http2: os
|
|
2521
2519
|
}
|
|
2522
|
-
},
|
|
2520
|
+
}, qa = (e) => ({ method: r, headersObj: a, cookies: c, uriObj: i, fullUrl: t, postData: o, allHeaders: s }) => {
|
|
2523
2521
|
const { push: u, join: p } = new Q();
|
|
2524
2522
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(r.toUpperCase()))
|
|
2525
2523
|
return "Method not supported";
|
|
2526
2524
|
const m = [], y = Object.keys(a);
|
|
2527
2525
|
return y.length && (u("$headers=@{}"), y.forEach((j) => {
|
|
2528
|
-
j !== "connection" && u(`$headers.Add("${j}", "${
|
|
2526
|
+
j !== "connection" && u(`$headers.Add("${j}", "${We(a[j], { escapeChar: "`" })}")`);
|
|
2529
2527
|
}), m.push("-Headers $headers")), c.length && (u("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), c.forEach((j) => {
|
|
2530
2528
|
u("$cookie = New-Object System.Net.Cookie"), u(`$cookie.Name = '${j.name}'`), u(`$cookie.Value = '${j.value}'`), u(`$cookie.Domain = '${i.host}'`), u("$session.Cookies.Add($cookie)");
|
|
2531
2529
|
}), m.push("-WebSession $session")), o.text && (m.push(
|
|
2532
|
-
`-ContentType '${
|
|
2530
|
+
`-ContentType '${We(ve(s, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
2533
2531
|
), m.push(`-Body '${o.text}'`)), u(`$response = ${e} -Uri '${t}' -Method ${r} ${m.join(" ")}`.trim()), p();
|
|
2534
|
-
},
|
|
2532
|
+
}, ss = {
|
|
2535
2533
|
info: {
|
|
2536
2534
|
key: "restmethod",
|
|
2537
2535
|
title: "Invoke-RestMethod",
|
|
@@ -2539,8 +2537,8 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2539
2537
|
description: "Powershell Invoke-RestMethod client",
|
|
2540
2538
|
extname: ".ps1"
|
|
2541
2539
|
},
|
|
2542
|
-
convert:
|
|
2543
|
-
},
|
|
2540
|
+
convert: qa("Invoke-RestMethod")
|
|
2541
|
+
}, ls = {
|
|
2544
2542
|
info: {
|
|
2545
2543
|
key: "webrequest",
|
|
2546
2544
|
title: "Invoke-WebRequest",
|
|
@@ -2548,39 +2546,39 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2548
2546
|
description: "Powershell Invoke-WebRequest client",
|
|
2549
2547
|
extname: ".ps1"
|
|
2550
2548
|
},
|
|
2551
|
-
convert:
|
|
2552
|
-
},
|
|
2549
|
+
convert: qa("Invoke-WebRequest")
|
|
2550
|
+
}, cs = {
|
|
2553
2551
|
info: {
|
|
2554
2552
|
key: "powershell",
|
|
2555
2553
|
title: "Powershell",
|
|
2556
2554
|
default: "webrequest"
|
|
2557
2555
|
},
|
|
2558
2556
|
clientsById: {
|
|
2559
|
-
webrequest:
|
|
2560
|
-
restmethod:
|
|
2557
|
+
webrequest: ls,
|
|
2558
|
+
restmethod: ss
|
|
2561
2559
|
}
|
|
2562
2560
|
};
|
|
2563
|
-
function
|
|
2561
|
+
function yn(e, n, r, a, c) {
|
|
2564
2562
|
const i = a.repeat(c), t = a.repeat(c - 1), o = r ? `,
|
|
2565
2563
|
${i}` : ", ", s = e === "object" ? "{" : "[", u = e === "object" ? "}" : "]";
|
|
2566
2564
|
return r ? `${s}
|
|
2567
2565
|
${i}${n.join(o)}
|
|
2568
2566
|
${t}${u}` : e === "object" && n.length > 0 ? `${s} ${n.join(o)} ${u}` : `${s}${n.join(o)}${u}`;
|
|
2569
2567
|
}
|
|
2570
|
-
var
|
|
2568
|
+
var _e = (e, n, r) => {
|
|
2571
2569
|
switch (r = r === void 0 ? 1 : r + 1, Object.prototype.toString.call(e)) {
|
|
2572
2570
|
case "[object Number]":
|
|
2573
2571
|
return e;
|
|
2574
2572
|
case "[object Array]": {
|
|
2575
2573
|
let a = !1;
|
|
2576
|
-
const c = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1),
|
|
2577
|
-
return
|
|
2574
|
+
const c = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1), _e(i, n, r)));
|
|
2575
|
+
return yn("array", c, a, n.indent, r);
|
|
2578
2576
|
}
|
|
2579
2577
|
case "[object Object]": {
|
|
2580
2578
|
const a = [];
|
|
2581
2579
|
for (const c in e)
|
|
2582
|
-
a.push(`"${c}": ${
|
|
2583
|
-
return
|
|
2580
|
+
a.push(`"${c}": ${_e(e[c], n, r)}`);
|
|
2581
|
+
return yn("object", a, n.pretty && a.length > 1, n.indent, r);
|
|
2584
2582
|
}
|
|
2585
2583
|
case "[object Null]":
|
|
2586
2584
|
return "None";
|
|
@@ -2589,7 +2587,7 @@ var Ie = (e, n, r) => {
|
|
|
2589
2587
|
default:
|
|
2590
2588
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2591
2589
|
}
|
|
2592
|
-
},
|
|
2590
|
+
}, us = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], ps = {
|
|
2593
2591
|
info: {
|
|
2594
2592
|
key: "requests",
|
|
2595
2593
|
title: "Requests",
|
|
@@ -2611,7 +2609,7 @@ var Ie = (e, n, r) => {
|
|
|
2611
2609
|
let y = !1, j = !1, b = !1;
|
|
2612
2610
|
switch (n.mimeType) {
|
|
2613
2611
|
case "application/json":
|
|
2614
|
-
n.jsonObj && (t(`payload = ${
|
|
2612
|
+
n.jsonObj && (t(`payload = ${_e(n.jsonObj, i)}`), b = !0, j = !0);
|
|
2615
2613
|
break;
|
|
2616
2614
|
case "multipart/form-data":
|
|
2617
2615
|
if (!n.params)
|
|
@@ -2619,7 +2617,7 @@ var Ie = (e, n, r) => {
|
|
|
2619
2617
|
if (d = {}, n.params.forEach((v) => {
|
|
2620
2618
|
v.fileName ? (v.contentType ? m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, y = !0) : (d[v.name] = v.value, j = !0);
|
|
2621
2619
|
}), y) {
|
|
2622
|
-
t(`files = ${
|
|
2620
|
+
t(`files = ${_e(m, i)}`), j && t(`payload = ${_e(d, i)}`);
|
|
2623
2621
|
const v = pe(p, "content-type");
|
|
2624
2622
|
v && delete p[v];
|
|
2625
2623
|
} else {
|
|
@@ -2632,7 +2630,7 @@ var Ie = (e, n, r) => {
|
|
|
2632
2630
|
break;
|
|
2633
2631
|
default: {
|
|
2634
2632
|
if (n.mimeType === "application/x-www-form-urlencoded" && n.paramsObj) {
|
|
2635
|
-
t(`payload = ${
|
|
2633
|
+
t(`payload = ${_e(n.paramsObj, i)}`), j = !0;
|
|
2636
2634
|
break;
|
|
2637
2635
|
}
|
|
2638
2636
|
const v = JSON.stringify(n.text);
|
|
@@ -2652,10 +2650,10 @@ var Ie = (e, n, r) => {
|
|
|
2652
2650
|
t(v !== f ? `"${S}": "${le(p[S])}",` : `"${S}": "${le(p[S])}"`, 1), v += 1;
|
|
2653
2651
|
}), t("}"), o();
|
|
2654
2652
|
}
|
|
2655
|
-
let g =
|
|
2653
|
+
let g = us.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
2656
2654
|
return j && (b ? g += ", json=payload" : g += ", data=payload"), y && (g += ", files=files"), f > 0 && (g += ", headers=headers"), g += ")", t(g), o(), t("print(response.text)"), s();
|
|
2657
2655
|
}
|
|
2658
|
-
},
|
|
2656
|
+
}, fs = {
|
|
2659
2657
|
info: {
|
|
2660
2658
|
key: "python",
|
|
2661
2659
|
title: "Python",
|
|
@@ -2663,9 +2661,9 @@ var Ie = (e, n, r) => {
|
|
|
2663
2661
|
cli: "python3 %s"
|
|
2664
2662
|
},
|
|
2665
2663
|
clientsById: {
|
|
2666
|
-
requests:
|
|
2664
|
+
requests: ps
|
|
2667
2665
|
}
|
|
2668
|
-
},
|
|
2666
|
+
}, ds = {
|
|
2669
2667
|
info: {
|
|
2670
2668
|
key: "httr",
|
|
2671
2669
|
title: "httr",
|
|
@@ -2698,22 +2696,22 @@ var Ie = (e, n, r) => {
|
|
|
2698
2696
|
t('encode <- "raw"'), o();
|
|
2699
2697
|
break;
|
|
2700
2698
|
}
|
|
2701
|
-
const m = ve(c, "cookie"), y = ve(c, "accept"), j = m ? `set_cookies(\`${String(m).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, b = y ? `accept("${le(y)}")` : void 0, f = `content_type("${le(a.mimeType)}")`, g = Object.entries(c).filter(([h]) => !["cookie", "accept", "content-type"].includes(h.toLowerCase())).map(([h, T]) => `'${h}' = '${
|
|
2699
|
+
const m = ve(c, "cookie"), y = ve(c, "accept"), j = m ? `set_cookies(\`${String(m).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, b = y ? `accept("${le(y)}")` : void 0, f = `content_type("${le(a.mimeType)}")`, g = Object.entries(c).filter(([h]) => !["cookie", "accept", "content-type"].includes(h.toLowerCase())).map(([h, T]) => `'${h}' = '${Ve(T)}'`).join(", "), v = g ? `add_headers(${g})` : void 0;
|
|
2702
2700
|
let S = `response <- VERB("${i}", url`;
|
|
2703
2701
|
d && (S += ", body = payload"), r.length && (S += ", query = queryString");
|
|
2704
2702
|
const C = [v, f, b, j].filter((h) => !!h).join(", ");
|
|
2705
2703
|
return C && (S += `, ${C}`), (a.text || a.jsonObj || a.params) && (S += ", encode = encode"), S += ")", t(S), o(), t('content(response, "text")'), s();
|
|
2706
2704
|
}
|
|
2707
|
-
},
|
|
2705
|
+
}, hs = {
|
|
2708
2706
|
info: {
|
|
2709
2707
|
key: "r",
|
|
2710
2708
|
title: "R",
|
|
2711
2709
|
default: "httr"
|
|
2712
2710
|
},
|
|
2713
2711
|
clientsById: {
|
|
2714
|
-
httr:
|
|
2712
|
+
httr: ds
|
|
2715
2713
|
}
|
|
2716
|
-
},
|
|
2714
|
+
}, ms = {
|
|
2717
2715
|
info: {
|
|
2718
2716
|
key: "native",
|
|
2719
2717
|
title: "net::http",
|
|
@@ -2741,19 +2739,19 @@ var Ie = (e, n, r) => {
|
|
|
2741
2739
|
u.includes(s) || (i(`class Net::HTTP::${p} < Net::HTTPRequest`), i(` METHOD = '${s.toUpperCase()}'`), i(` REQUEST_HAS_BODY = '${a.text ? "true" : "false"}'`), i(" RESPONSE_HAS_BODY = true"), i("end"), t()), i(`url = URI("${r}")`), t(), i("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && i("http.use_ssl = true"), t(), i(`request = Net::HTTP::${p}.new(url)`);
|
|
2742
2740
|
const d = Object.keys(c);
|
|
2743
2741
|
return d.length && d.forEach((m) => {
|
|
2744
|
-
i(`request["${m}"] = '${
|
|
2742
|
+
i(`request["${m}"] = '${Ve(c[m])}'`);
|
|
2745
2743
|
}), a.text && i(`request.body = ${JSON.stringify(a.text)}`), t(), i("response = http.request(request)"), i("puts response.read_body"), o();
|
|
2746
2744
|
}
|
|
2747
|
-
},
|
|
2745
|
+
}, ys = {
|
|
2748
2746
|
info: {
|
|
2749
2747
|
key: "ruby",
|
|
2750
2748
|
title: "Ruby",
|
|
2751
2749
|
default: "native"
|
|
2752
2750
|
},
|
|
2753
2751
|
clientsById: {
|
|
2754
|
-
native:
|
|
2752
|
+
native: ms
|
|
2755
2753
|
}
|
|
2756
|
-
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
2754
|
+
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, gs = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), vs = {
|
|
2757
2755
|
"http1.0": "0",
|
|
2758
2756
|
"url ": "",
|
|
2759
2757
|
cookie: "b",
|
|
@@ -2763,13 +2761,13 @@ var Ie = (e, n, r) => {
|
|
|
2763
2761
|
header: "H",
|
|
2764
2762
|
insecure: "k",
|
|
2765
2763
|
request: "X"
|
|
2766
|
-
},
|
|
2764
|
+
}, xs = (e) => (n) => {
|
|
2767
2765
|
if (e) {
|
|
2768
|
-
const r =
|
|
2766
|
+
const r = vs[n];
|
|
2769
2767
|
return r ? `-${r}` : "";
|
|
2770
2768
|
}
|
|
2771
2769
|
return `--${n}`;
|
|
2772
|
-
},
|
|
2770
|
+
}, bs = {
|
|
2773
2771
|
info: {
|
|
2774
2772
|
key: "curl",
|
|
2775
2773
|
title: "cURL",
|
|
@@ -2782,7 +2780,7 @@ var Ie = (e, n, r) => {
|
|
|
2782
2780
|
...typeof o == "string" ? { indent: o } : {},
|
|
2783
2781
|
join: o !== !1 ? ` \\
|
|
2784
2782
|
${o}` : " "
|
|
2785
|
-
}), j =
|
|
2783
|
+
}), j = xs(s);
|
|
2786
2784
|
let b = ce(e);
|
|
2787
2785
|
if (m(`curl ${j("request")} ${n}`), p && (b = unescape(b), m(j("globoff"))), m(`${j("url ")}${b}`), r === "HTTP/1.0" && m(j("http1.0")), ve(c, "accept-encoding") && m("--compressed"), i.mimeType === "multipart/form-data") {
|
|
2788
2786
|
const f = pe(a, "content-type");
|
|
@@ -2814,7 +2812,7 @@ ${o}` : " "
|
|
|
2814
2812
|
if (!i.text)
|
|
2815
2813
|
break;
|
|
2816
2814
|
let f = !1;
|
|
2817
|
-
if (
|
|
2815
|
+
if (xi(i.mimeType) && i.text.length > 20)
|
|
2818
2816
|
try {
|
|
2819
2817
|
const g = JSON.parse(i.text);
|
|
2820
2818
|
f = !0, i.text.indexOf("'") > 0 ? m(
|
|
@@ -2836,7 +2834,7 @@ ${JSON.stringify(g, null, d)}
|
|
|
2836
2834
|
}
|
|
2837
2835
|
return y();
|
|
2838
2836
|
}
|
|
2839
|
-
},
|
|
2837
|
+
}, js = {
|
|
2840
2838
|
info: {
|
|
2841
2839
|
key: "httpie",
|
|
2842
2840
|
title: "HTTPie",
|
|
@@ -2885,7 +2883,7 @@ ${o.indent}` : " "
|
|
|
2885
2883
|
}
|
|
2886
2884
|
return u();
|
|
2887
2885
|
}
|
|
2888
|
-
},
|
|
2886
|
+
}, ws = {
|
|
2889
2887
|
info: {
|
|
2890
2888
|
key: "wget",
|
|
2891
2889
|
title: "Wget",
|
|
@@ -2907,9 +2905,9 @@ ${i.indent}` : " "
|
|
|
2907
2905
|
return i.verbose ? t(`wget ${i.short ? "-v" : "--verbose"}`) : t(`wget ${i.short ? "-q" : "--quiet"}`), t(`--method ${ce(e)}`), Object.keys(r).forEach((s) => {
|
|
2908
2906
|
const u = `${s}: ${r[s]}`;
|
|
2909
2907
|
t(`--header ${ce(u)}`);
|
|
2910
|
-
}), n.text && t(`--body-data ${
|
|
2908
|
+
}), n.text && t(`--body-data ${gs(ce(n.text))}`), t(i.short ? "-O" : "--output-document"), t(`- ${ce(a)}`), o();
|
|
2911
2909
|
}
|
|
2912
|
-
},
|
|
2910
|
+
}, $s = {
|
|
2913
2911
|
info: {
|
|
2914
2912
|
key: "shell",
|
|
2915
2913
|
title: "Shell",
|
|
@@ -2917,30 +2915,30 @@ ${i.indent}` : " "
|
|
|
2917
2915
|
cli: "%s"
|
|
2918
2916
|
},
|
|
2919
2917
|
clientsById: {
|
|
2920
|
-
curl:
|
|
2921
|
-
httpie:
|
|
2922
|
-
wget:
|
|
2918
|
+
curl: bs,
|
|
2919
|
+
httpie: js,
|
|
2920
|
+
wget: ws
|
|
2923
2921
|
}
|
|
2924
|
-
},
|
|
2925
|
-
const c =
|
|
2922
|
+
}, gn = (e, n) => n.repeat(e), vn = (e, n, r, a) => {
|
|
2923
|
+
const c = gn(a, r), i = gn(a - 1, r), t = n ? `,
|
|
2926
2924
|
${c}` : ", ";
|
|
2927
2925
|
return n ? `[
|
|
2928
2926
|
${c}${e.join(t)}
|
|
2929
2927
|
${i}]` : `[${e.join(t)}]`;
|
|
2930
|
-
},
|
|
2928
|
+
}, xn = (e, n, r) => `let ${e} = ${st(n, r)}`, st = (e, n, r) => {
|
|
2931
2929
|
switch (r = r === void 0 ? 1 : r + 1, Object.prototype.toString.call(e)) {
|
|
2932
2930
|
case "[object Number]":
|
|
2933
2931
|
return e;
|
|
2934
2932
|
case "[object Array]": {
|
|
2935
2933
|
let a = !1;
|
|
2936
2934
|
const c = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1), st(i, n, r)));
|
|
2937
|
-
return
|
|
2935
|
+
return vn(c, a, n.indent, r);
|
|
2938
2936
|
}
|
|
2939
2937
|
case "[object Object]": {
|
|
2940
2938
|
const a = [];
|
|
2941
2939
|
for (const c in e)
|
|
2942
2940
|
a.push(`"${c}": ${st(e[c], n, r)}`);
|
|
2943
|
-
return
|
|
2941
|
+
return vn(
|
|
2944
2942
|
a,
|
|
2945
2943
|
// @ts-expect-error needs better types
|
|
2946
2944
|
n.pretty && a.length > 1,
|
|
@@ -2954,7 +2952,7 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
2954
2952
|
default:
|
|
2955
2953
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2956
2954
|
}
|
|
2957
|
-
},
|
|
2955
|
+
}, Ss = {
|
|
2958
2956
|
info: {
|
|
2959
2957
|
key: "urlsession",
|
|
2960
2958
|
title: "URLSession",
|
|
@@ -2980,10 +2978,10 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
2980
2978
|
}
|
|
2981
2979
|
break;
|
|
2982
2980
|
case "application/json":
|
|
2983
|
-
n.jsonObj && (o(`${
|
|
2981
|
+
n.jsonObj && (o(`${xn("parameters", n.jsonObj, t)} as [String : Any?]`), s(), o("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), s());
|
|
2984
2982
|
break;
|
|
2985
2983
|
case "multipart/form-data":
|
|
2986
|
-
o(
|
|
2984
|
+
o(xn("parameters", n.params, t)), s(), o(`let boundary = "${n.boundary}"`), s(), o('var body = ""'), o("for param in parameters {"), o('let paramName = param["name"]!', 1), o('body += "--\\(boundary)\\r\\n"', 1), o('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), o('if let filename = param["fileName"] {', 1), o('let contentType = param["contentType"]!', 2), o("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), o('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), o('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), o("body += fileContent", 2), o('} else if let paramValue = param["value"] {', 1), o('body += "\\r\\n\\r\\n\\(paramValue)"', 2), o("}", 1), o("}"), s(), o("let postData = Data(body.utf8)"), s();
|
|
2987
2985
|
break;
|
|
2988
2986
|
default:
|
|
2989
2987
|
o(`let postData = Data("${n.text}".utf8)`), s();
|
|
@@ -3004,40 +3002,40 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
3004
3002
|
}
|
|
3005
3003
|
}), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), s(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${t.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${st(e, t)}`), p && o("request.httpBody = postData"), s(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), u();
|
|
3006
3004
|
}
|
|
3007
|
-
},
|
|
3005
|
+
}, Os = {
|
|
3008
3006
|
info: {
|
|
3009
3007
|
key: "swift",
|
|
3010
3008
|
title: "Swift",
|
|
3011
3009
|
default: "urlsession"
|
|
3012
3010
|
},
|
|
3013
3011
|
clientsById: {
|
|
3014
|
-
urlsession:
|
|
3012
|
+
urlsession: Ss
|
|
3015
3013
|
}
|
|
3016
|
-
},
|
|
3017
|
-
c:
|
|
3018
|
-
clojure:
|
|
3019
|
-
csharp:
|
|
3020
|
-
go:
|
|
3021
|
-
http:
|
|
3014
|
+
}, Ts = {
|
|
3015
|
+
c: vi,
|
|
3016
|
+
clojure: wi,
|
|
3017
|
+
csharp: Ci,
|
|
3018
|
+
go: Ni,
|
|
3019
|
+
http: qi,
|
|
3022
3020
|
java: _i,
|
|
3023
|
-
javascript:
|
|
3024
|
-
json:
|
|
3025
|
-
kotlin:
|
|
3026
|
-
node:
|
|
3027
|
-
objc:
|
|
3028
|
-
ocaml:
|
|
3029
|
-
php:
|
|
3030
|
-
powershell:
|
|
3031
|
-
python:
|
|
3032
|
-
r:
|
|
3033
|
-
ruby:
|
|
3034
|
-
shell:
|
|
3035
|
-
swift:
|
|
3036
|
-
}, Te = {},
|
|
3021
|
+
javascript: Mi,
|
|
3022
|
+
json: zi,
|
|
3023
|
+
kotlin: Wi,
|
|
3024
|
+
node: Yi,
|
|
3025
|
+
objc: Zi,
|
|
3026
|
+
ocaml: ts,
|
|
3027
|
+
php: is,
|
|
3028
|
+
powershell: cs,
|
|
3029
|
+
python: fs,
|
|
3030
|
+
r: hs,
|
|
3031
|
+
ruby: ys,
|
|
3032
|
+
shell: $s,
|
|
3033
|
+
swift: Os
|
|
3034
|
+
}, Te = {}, He = { exports: {} };
|
|
3037
3035
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
3038
|
-
var
|
|
3039
|
-
function
|
|
3040
|
-
return
|
|
3036
|
+
var Cs = He.exports, bn;
|
|
3037
|
+
function Ps() {
|
|
3038
|
+
return bn || (bn = 1, (function(e, n) {
|
|
3041
3039
|
(function(r) {
|
|
3042
3040
|
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, i = typeof it == "object" && it;
|
|
3043
3041
|
(i.global === i || i.window === i || i.self === i) && (r = i);
|
|
@@ -3054,15 +3052,15 @@ function ks() {
|
|
|
3054
3052
|
P[F] = q(N[F]);
|
|
3055
3053
|
return P;
|
|
3056
3054
|
}
|
|
3057
|
-
function
|
|
3055
|
+
function E(N, q) {
|
|
3058
3056
|
var F = N.split("@"), P = "";
|
|
3059
3057
|
F.length > 1 && (P = F[0] + "@", N = F[1]), N = N.replace(v, ".");
|
|
3060
|
-
var
|
|
3058
|
+
var _ = N.split("."), J = A(_, q).join(".");
|
|
3061
3059
|
return P + J;
|
|
3062
3060
|
}
|
|
3063
|
-
function
|
|
3064
|
-
for (var q = [], F = 0, P = N.length,
|
|
3065
|
-
|
|
3061
|
+
function U(N) {
|
|
3062
|
+
for (var q = [], F = 0, P = N.length, _, J; F < P; )
|
|
3063
|
+
_ = N.charCodeAt(F++), _ >= 55296 && _ <= 56319 && F < P ? (J = N.charCodeAt(F++), (J & 64512) == 56320 ? q.push(((_ & 1023) << 10) + (J & 1023) + 65536) : (q.push(_), F--)) : q.push(_);
|
|
3066
3064
|
return q;
|
|
3067
3065
|
}
|
|
3068
3066
|
function O(N) {
|
|
@@ -3074,7 +3072,7 @@ function ks() {
|
|
|
3074
3072
|
function B(N) {
|
|
3075
3073
|
return N - 48 < 10 ? N - 22 : N - 65 < 26 ? N - 65 : N - 97 < 26 ? N - 97 : s;
|
|
3076
3074
|
}
|
|
3077
|
-
function
|
|
3075
|
+
function L(N, q) {
|
|
3078
3076
|
return N + 22 + 75 * (N < 26) - ((q != 0) << 5);
|
|
3079
3077
|
}
|
|
3080
3078
|
function G(N, q, F) {
|
|
@@ -3084,42 +3082,42 @@ function ks() {
|
|
|
3084
3082
|
return h(P + (C + 1) * N / (N + d));
|
|
3085
3083
|
}
|
|
3086
3084
|
function se(N) {
|
|
3087
|
-
var q = [], F = N.length, P,
|
|
3085
|
+
var q = [], F = N.length, P, _ = 0, J = j, W = y, Y, ae, D, I, H, M, K, V, X;
|
|
3088
3086
|
for (Y = N.lastIndexOf(b), Y < 0 && (Y = 0), ae = 0; ae < Y; ++ae)
|
|
3089
3087
|
N.charCodeAt(ae) >= 128 && k("not-basic"), q.push(N.charCodeAt(ae));
|
|
3090
3088
|
for (D = Y > 0 ? Y + 1 : 0; D < F; ) {
|
|
3091
|
-
for (I =
|
|
3089
|
+
for (I = _, H = 1, M = s; D >= F && k("invalid-input"), K = B(N.charCodeAt(D++)), (K >= s || K > h((o - _) / H)) && k("overflow"), _ += K * H, V = M <= W ? u : M >= W + p ? p : M - W, !(K < V); M += s)
|
|
3092
3090
|
X = s - V, H > h(o / X) && k("overflow"), H *= X;
|
|
3093
|
-
P = q.length + 1, W = G(
|
|
3091
|
+
P = q.length + 1, W = G(_ - I, P, I == 0), h(_ / P) > o - J && k("overflow"), J += h(_ / P), _ %= P, q.splice(_++, 0, J);
|
|
3094
3092
|
}
|
|
3095
3093
|
return O(q);
|
|
3096
3094
|
}
|
|
3097
3095
|
function ee(N) {
|
|
3098
|
-
var q, F, P,
|
|
3099
|
-
for (N =
|
|
3096
|
+
var q, F, P, _, J, W, Y, ae, D, I, H, M = [], K, V, X, oe;
|
|
3097
|
+
for (N = U(N), K = N.length, q = j, F = 0, J = y, W = 0; W < K; ++W)
|
|
3100
3098
|
H = N[W], H < 128 && M.push(T(H));
|
|
3101
|
-
for (P =
|
|
3099
|
+
for (P = _ = M.length, _ && M.push(b); P < K; ) {
|
|
3102
3100
|
for (Y = o, W = 0; W < K; ++W)
|
|
3103
3101
|
H = N[W], H >= q && H < Y && (Y = H);
|
|
3104
3102
|
for (V = P + 1, Y - q > h((o - F) / V) && k("overflow"), F += (Y - q) * V, q = Y, W = 0; W < K; ++W)
|
|
3105
3103
|
if (H = N[W], H < q && ++F > o && k("overflow"), H == q) {
|
|
3106
3104
|
for (ae = F, D = s; I = D <= J ? u : D >= J + p ? p : D - J, !(ae < I); D += s)
|
|
3107
3105
|
oe = ae - I, X = s - I, M.push(
|
|
3108
|
-
T(
|
|
3106
|
+
T(L(I + oe % X, 0))
|
|
3109
3107
|
), ae = h(oe / X);
|
|
3110
|
-
M.push(T(
|
|
3108
|
+
M.push(T(L(ae, 0))), J = G(F, V, P == _), F = 0, ++P;
|
|
3111
3109
|
}
|
|
3112
3110
|
++F, ++q;
|
|
3113
3111
|
}
|
|
3114
3112
|
return M.join("");
|
|
3115
3113
|
}
|
|
3116
|
-
function
|
|
3117
|
-
return
|
|
3114
|
+
function R(N) {
|
|
3115
|
+
return E(N, function(q) {
|
|
3118
3116
|
return f.test(q) ? se(q.slice(4).toLowerCase()) : q;
|
|
3119
3117
|
});
|
|
3120
3118
|
}
|
|
3121
3119
|
function ne(N) {
|
|
3122
|
-
return
|
|
3120
|
+
return E(N, function(q) {
|
|
3123
3121
|
return g.test(q) ? "xn--" + ee(q) : q;
|
|
3124
3122
|
});
|
|
3125
3123
|
}
|
|
@@ -3138,13 +3136,13 @@ function ks() {
|
|
|
3138
3136
|
* @type Object
|
|
3139
3137
|
*/
|
|
3140
3138
|
ucs2: {
|
|
3141
|
-
decode:
|
|
3139
|
+
decode: U,
|
|
3142
3140
|
encode: O
|
|
3143
3141
|
},
|
|
3144
3142
|
decode: se,
|
|
3145
3143
|
encode: ee,
|
|
3146
3144
|
toASCII: ne,
|
|
3147
|
-
toUnicode:
|
|
3145
|
+
toUnicode: R
|
|
3148
3146
|
}, a && c)
|
|
3149
3147
|
if (e.exports == a)
|
|
3150
3148
|
c.exports = t;
|
|
@@ -3153,89 +3151,89 @@ function ks() {
|
|
|
3153
3151
|
t.hasOwnProperty(x) && (a[x] = t[x]);
|
|
3154
3152
|
else
|
|
3155
3153
|
r.punycode = t;
|
|
3156
|
-
})(
|
|
3157
|
-
})(
|
|
3154
|
+
})(Cs);
|
|
3155
|
+
})(He, He.exports)), He.exports;
|
|
3158
3156
|
}
|
|
3159
|
-
var Nt,
|
|
3157
|
+
var Nt, jn;
|
|
3160
3158
|
function Ea() {
|
|
3161
|
-
return
|
|
3159
|
+
return jn || (jn = 1, Nt = Object), Nt;
|
|
3162
3160
|
}
|
|
3163
3161
|
var kt, wn;
|
|
3164
|
-
function
|
|
3162
|
+
function Ns() {
|
|
3165
3163
|
return wn || (wn = 1, kt = Error), kt;
|
|
3166
3164
|
}
|
|
3167
|
-
var qt,
|
|
3168
|
-
function
|
|
3169
|
-
return
|
|
3165
|
+
var qt, $n;
|
|
3166
|
+
function ks() {
|
|
3167
|
+
return $n || ($n = 1, qt = EvalError), qt;
|
|
3168
|
+
}
|
|
3169
|
+
var Et, Sn;
|
|
3170
|
+
function qs() {
|
|
3171
|
+
return Sn || (Sn = 1, Et = RangeError), Et;
|
|
3170
3172
|
}
|
|
3171
3173
|
var Rt, On;
|
|
3172
3174
|
function Es() {
|
|
3173
|
-
return On || (On = 1, Rt =
|
|
3175
|
+
return On || (On = 1, Rt = ReferenceError), Rt;
|
|
3174
3176
|
}
|
|
3175
|
-
var
|
|
3176
|
-
function
|
|
3177
|
-
return Tn || (Tn = 1,
|
|
3177
|
+
var At, Tn;
|
|
3178
|
+
function Ra() {
|
|
3179
|
+
return Tn || (Tn = 1, At = SyntaxError), At;
|
|
3178
3180
|
}
|
|
3179
|
-
var
|
|
3180
|
-
function
|
|
3181
|
-
return Cn || (Cn = 1,
|
|
3181
|
+
var It, Cn;
|
|
3182
|
+
function De() {
|
|
3183
|
+
return Cn || (Cn = 1, It = TypeError), It;
|
|
3182
3184
|
}
|
|
3183
|
-
var
|
|
3184
|
-
function
|
|
3185
|
-
return Pn || (Pn = 1,
|
|
3185
|
+
var _t, Pn;
|
|
3186
|
+
function Rs() {
|
|
3187
|
+
return Pn || (Pn = 1, _t = URIError), _t;
|
|
3186
3188
|
}
|
|
3187
3189
|
var Ut, Nn;
|
|
3188
|
-
function
|
|
3189
|
-
return Nn || (Nn = 1, Ut =
|
|
3190
|
+
function As() {
|
|
3191
|
+
return Nn || (Nn = 1, Ut = Math.abs), Ut;
|
|
3190
3192
|
}
|
|
3191
3193
|
var Lt, kn;
|
|
3192
|
-
function
|
|
3193
|
-
return kn || (kn = 1, Lt = Math.
|
|
3194
|
-
}
|
|
3195
|
-
var _t, qn;
|
|
3196
|
-
function Ls() {
|
|
3197
|
-
return qn || (qn = 1, _t = Math.floor), _t;
|
|
3194
|
+
function Is() {
|
|
3195
|
+
return kn || (kn = 1, Lt = Math.floor), Lt;
|
|
3198
3196
|
}
|
|
3199
|
-
var Ft,
|
|
3197
|
+
var Ft, qn;
|
|
3200
3198
|
function _s() {
|
|
3201
|
-
return
|
|
3199
|
+
return qn || (qn = 1, Ft = Math.max), Ft;
|
|
3202
3200
|
}
|
|
3203
3201
|
var Ht, En;
|
|
3204
|
-
function
|
|
3202
|
+
function Us() {
|
|
3205
3203
|
return En || (En = 1, Ht = Math.min), Ht;
|
|
3206
3204
|
}
|
|
3207
|
-
var Mt,
|
|
3208
|
-
function
|
|
3209
|
-
return
|
|
3205
|
+
var Mt, Rn;
|
|
3206
|
+
function Ls() {
|
|
3207
|
+
return Rn || (Rn = 1, Mt = Math.pow), Mt;
|
|
3210
3208
|
}
|
|
3211
|
-
var Bt,
|
|
3212
|
-
function
|
|
3213
|
-
return
|
|
3209
|
+
var Bt, An;
|
|
3210
|
+
function Fs() {
|
|
3211
|
+
return An || (An = 1, Bt = Math.round), Bt;
|
|
3214
3212
|
}
|
|
3215
|
-
var zt,
|
|
3216
|
-
function
|
|
3217
|
-
return
|
|
3213
|
+
var zt, In;
|
|
3214
|
+
function Hs() {
|
|
3215
|
+
return In || (In = 1, zt = Number.isNaN || function(n) {
|
|
3218
3216
|
return n !== n;
|
|
3219
3217
|
}), zt;
|
|
3220
3218
|
}
|
|
3221
|
-
var Gt,
|
|
3222
|
-
function
|
|
3223
|
-
if (
|
|
3224
|
-
|
|
3225
|
-
var e = /* @__PURE__ */
|
|
3219
|
+
var Gt, _n;
|
|
3220
|
+
function Ms() {
|
|
3221
|
+
if (_n) return Gt;
|
|
3222
|
+
_n = 1;
|
|
3223
|
+
var e = /* @__PURE__ */ Hs();
|
|
3226
3224
|
return Gt = function(r) {
|
|
3227
3225
|
return e(r) || r === 0 ? r : r < 0 ? -1 : 1;
|
|
3228
3226
|
}, Gt;
|
|
3229
3227
|
}
|
|
3230
|
-
var Wt,
|
|
3231
|
-
function
|
|
3232
|
-
return
|
|
3228
|
+
var Wt, Un;
|
|
3229
|
+
function Bs() {
|
|
3230
|
+
return Un || (Un = 1, Wt = Object.getOwnPropertyDescriptor), Wt;
|
|
3233
3231
|
}
|
|
3234
|
-
var Vt,
|
|
3232
|
+
var Vt, Ln;
|
|
3235
3233
|
function dt() {
|
|
3236
|
-
if (
|
|
3237
|
-
|
|
3238
|
-
var e = /* @__PURE__ */
|
|
3234
|
+
if (Ln) return Vt;
|
|
3235
|
+
Ln = 1;
|
|
3236
|
+
var e = /* @__PURE__ */ Bs();
|
|
3239
3237
|
if (e)
|
|
3240
3238
|
try {
|
|
3241
3239
|
e([], "length");
|
|
@@ -3244,10 +3242,10 @@ function dt() {
|
|
|
3244
3242
|
}
|
|
3245
3243
|
return Vt = e, Vt;
|
|
3246
3244
|
}
|
|
3247
|
-
var Jt,
|
|
3245
|
+
var Jt, Fn;
|
|
3248
3246
|
function ht() {
|
|
3249
|
-
if (
|
|
3250
|
-
|
|
3247
|
+
if (Fn) return Jt;
|
|
3248
|
+
Fn = 1;
|
|
3251
3249
|
var e = Object.defineProperty || !1;
|
|
3252
3250
|
if (e)
|
|
3253
3251
|
try {
|
|
@@ -3257,9 +3255,9 @@ function ht() {
|
|
|
3257
3255
|
}
|
|
3258
3256
|
return Jt = e, Jt;
|
|
3259
3257
|
}
|
|
3260
|
-
var Dt,
|
|
3261
|
-
function
|
|
3262
|
-
return
|
|
3258
|
+
var Dt, Hn;
|
|
3259
|
+
function zs() {
|
|
3260
|
+
return Hn || (Hn = 1, Dt = function() {
|
|
3263
3261
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3264
3262
|
return !1;
|
|
3265
3263
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3287,30 +3285,30 @@ function Ws() {
|
|
|
3287
3285
|
return !0;
|
|
3288
3286
|
}), Dt;
|
|
3289
3287
|
}
|
|
3290
|
-
var Qt,
|
|
3291
|
-
function
|
|
3292
|
-
if (
|
|
3293
|
-
|
|
3294
|
-
var e = typeof Symbol < "u" && Symbol, n =
|
|
3288
|
+
var Qt, Mn;
|
|
3289
|
+
function Gs() {
|
|
3290
|
+
if (Mn) return Qt;
|
|
3291
|
+
Mn = 1;
|
|
3292
|
+
var e = typeof Symbol < "u" && Symbol, n = zs();
|
|
3295
3293
|
return Qt = function() {
|
|
3296
3294
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
|
|
3297
3295
|
}, Qt;
|
|
3298
3296
|
}
|
|
3299
|
-
var Kt,
|
|
3300
|
-
function
|
|
3301
|
-
return
|
|
3297
|
+
var Kt, Bn;
|
|
3298
|
+
function Aa() {
|
|
3299
|
+
return Bn || (Bn = 1, Kt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Kt;
|
|
3302
3300
|
}
|
|
3303
|
-
var Yt,
|
|
3304
|
-
function
|
|
3305
|
-
if (
|
|
3306
|
-
|
|
3301
|
+
var Yt, zn;
|
|
3302
|
+
function Ia() {
|
|
3303
|
+
if (zn) return Yt;
|
|
3304
|
+
zn = 1;
|
|
3307
3305
|
var e = /* @__PURE__ */ Ea();
|
|
3308
3306
|
return Yt = e.getPrototypeOf || null, Yt;
|
|
3309
3307
|
}
|
|
3310
|
-
var Xt,
|
|
3311
|
-
function
|
|
3312
|
-
if (
|
|
3313
|
-
|
|
3308
|
+
var Xt, Gn;
|
|
3309
|
+
function Ws() {
|
|
3310
|
+
if (Gn) return Xt;
|
|
3311
|
+
Gn = 1;
|
|
3314
3312
|
var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, r = Math.max, a = "[object Function]", c = function(s, u) {
|
|
3315
3313
|
for (var p = [], d = 0; d < s.length; d += 1)
|
|
3316
3314
|
p[d] = s[d];
|
|
@@ -3352,48 +3350,48 @@ function Js() {
|
|
|
3352
3350
|
return d;
|
|
3353
3351
|
}, Xt;
|
|
3354
3352
|
}
|
|
3355
|
-
var Zt,
|
|
3356
|
-
function
|
|
3357
|
-
if (
|
|
3358
|
-
|
|
3359
|
-
var e =
|
|
3353
|
+
var Zt, Wn;
|
|
3354
|
+
function Qe() {
|
|
3355
|
+
if (Wn) return Zt;
|
|
3356
|
+
Wn = 1;
|
|
3357
|
+
var e = Ws();
|
|
3360
3358
|
return Zt = Function.prototype.bind || e, Zt;
|
|
3361
3359
|
}
|
|
3362
|
-
var er,
|
|
3363
|
-
function
|
|
3364
|
-
return
|
|
3360
|
+
var er, Vn;
|
|
3361
|
+
function Lr() {
|
|
3362
|
+
return Vn || (Vn = 1, er = Function.prototype.call), er;
|
|
3365
3363
|
}
|
|
3366
|
-
var tr,
|
|
3367
|
-
function
|
|
3368
|
-
return
|
|
3364
|
+
var tr, Jn;
|
|
3365
|
+
function Fr() {
|
|
3366
|
+
return Jn || (Jn = 1, tr = Function.prototype.apply), tr;
|
|
3369
3367
|
}
|
|
3370
|
-
var rr,
|
|
3371
|
-
function
|
|
3372
|
-
return
|
|
3368
|
+
var rr, Dn;
|
|
3369
|
+
function Vs() {
|
|
3370
|
+
return Dn || (Dn = 1, rr = typeof Reflect < "u" && Reflect && Reflect.apply), rr;
|
|
3373
3371
|
}
|
|
3374
|
-
var nr,
|
|
3375
|
-
function
|
|
3376
|
-
if (
|
|
3377
|
-
|
|
3378
|
-
var e =
|
|
3372
|
+
var nr, Qn;
|
|
3373
|
+
function _a() {
|
|
3374
|
+
if (Qn) return nr;
|
|
3375
|
+
Qn = 1;
|
|
3376
|
+
var e = Qe(), n = Fr(), r = Lr(), a = Vs();
|
|
3379
3377
|
return nr = a || e.call(r, n), nr;
|
|
3380
3378
|
}
|
|
3381
|
-
var ar,
|
|
3382
|
-
function
|
|
3383
|
-
if (
|
|
3384
|
-
|
|
3385
|
-
var e =
|
|
3379
|
+
var ar, Kn;
|
|
3380
|
+
function Ua() {
|
|
3381
|
+
if (Kn) return ar;
|
|
3382
|
+
Kn = 1;
|
|
3383
|
+
var e = Qe(), n = /* @__PURE__ */ De(), r = Lr(), a = _a();
|
|
3386
3384
|
return ar = function(i) {
|
|
3387
3385
|
if (i.length < 1 || typeof i[0] != "function")
|
|
3388
3386
|
throw new n("a function is required");
|
|
3389
3387
|
return a(e, r, i);
|
|
3390
3388
|
}, ar;
|
|
3391
3389
|
}
|
|
3392
|
-
var or,
|
|
3393
|
-
function
|
|
3394
|
-
if (
|
|
3395
|
-
|
|
3396
|
-
var e =
|
|
3390
|
+
var or, Yn;
|
|
3391
|
+
function Js() {
|
|
3392
|
+
if (Yn) return or;
|
|
3393
|
+
Yn = 1;
|
|
3394
|
+
var e = Ua(), n = /* @__PURE__ */ dt(), r;
|
|
3397
3395
|
try {
|
|
3398
3396
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
3399
3397
|
[].__proto__ === Array.prototype;
|
|
@@ -3413,11 +3411,11 @@ function Qs() {
|
|
|
3413
3411
|
}
|
|
3414
3412
|
) : !1, or;
|
|
3415
3413
|
}
|
|
3416
|
-
var ir,
|
|
3417
|
-
function
|
|
3418
|
-
if (
|
|
3419
|
-
|
|
3420
|
-
var e =
|
|
3414
|
+
var ir, Xn;
|
|
3415
|
+
function Ds() {
|
|
3416
|
+
if (Xn) return ir;
|
|
3417
|
+
Xn = 1;
|
|
3418
|
+
var e = Aa(), n = Ia(), r = /* @__PURE__ */ Js();
|
|
3421
3419
|
return ir = e ? function(c) {
|
|
3422
3420
|
return e(c);
|
|
3423
3421
|
} : n ? function(c) {
|
|
@@ -3428,18 +3426,18 @@ function Ks() {
|
|
|
3428
3426
|
return r(c);
|
|
3429
3427
|
} : null, ir;
|
|
3430
3428
|
}
|
|
3431
|
-
var sr,
|
|
3432
|
-
function
|
|
3433
|
-
if (
|
|
3434
|
-
|
|
3435
|
-
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, r =
|
|
3429
|
+
var sr, Zn;
|
|
3430
|
+
function Qs() {
|
|
3431
|
+
if (Zn) return sr;
|
|
3432
|
+
Zn = 1;
|
|
3433
|
+
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, r = Qe();
|
|
3436
3434
|
return sr = r.call(e, n), sr;
|
|
3437
3435
|
}
|
|
3438
|
-
var lr,
|
|
3439
|
-
function
|
|
3440
|
-
if (
|
|
3441
|
-
|
|
3442
|
-
var e, n = /* @__PURE__ */ Ea(), r = /* @__PURE__ */
|
|
3436
|
+
var lr, ea;
|
|
3437
|
+
function Hr() {
|
|
3438
|
+
if (ea) return lr;
|
|
3439
|
+
ea = 1;
|
|
3440
|
+
var e, n = /* @__PURE__ */ Ea(), r = /* @__PURE__ */ Ns(), a = /* @__PURE__ */ ks(), c = /* @__PURE__ */ qs(), i = /* @__PURE__ */ Es(), t = /* @__PURE__ */ Ra(), o = /* @__PURE__ */ De(), s = /* @__PURE__ */ Rs(), u = /* @__PURE__ */ As(), p = /* @__PURE__ */ Is(), d = /* @__PURE__ */ _s(), m = /* @__PURE__ */ Us(), y = /* @__PURE__ */ Ls(), j = /* @__PURE__ */ Fs(), b = /* @__PURE__ */ Ms(), f = Function, g = function(D) {
|
|
3443
3441
|
try {
|
|
3444
3442
|
return f('"use strict"; return (' + D + ").constructor;")();
|
|
3445
3443
|
} catch {
|
|
@@ -3456,7 +3454,7 @@ function Mr() {
|
|
|
3456
3454
|
return C;
|
|
3457
3455
|
}
|
|
3458
3456
|
}
|
|
3459
|
-
})() : C, T =
|
|
3457
|
+
})() : C, T = Gs()(), x = Ds(), k = Ia(), A = Aa(), E = Fr(), U = Lr(), O = {}, B = typeof Uint8Array > "u" || !x ? e : x(Uint8Array), L = {
|
|
3460
3458
|
__proto__: null,
|
|
3461
3459
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
3462
3460
|
"%Array%": Array,
|
|
@@ -3527,8 +3525,8 @@ function Mr() {
|
|
|
3527
3525
|
"%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
|
|
3528
3526
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
3529
3527
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
|
|
3530
|
-
"%Function.prototype.call%":
|
|
3531
|
-
"%Function.prototype.apply%":
|
|
3528
|
+
"%Function.prototype.call%": U,
|
|
3529
|
+
"%Function.prototype.apply%": E,
|
|
3532
3530
|
"%Object.defineProperty%": S,
|
|
3533
3531
|
"%Object.getPrototypeOf%": k,
|
|
3534
3532
|
"%Math.abs%": u,
|
|
@@ -3545,7 +3543,7 @@ function Mr() {
|
|
|
3545
3543
|
null.error;
|
|
3546
3544
|
} catch (D) {
|
|
3547
3545
|
var G = x(x(D));
|
|
3548
|
-
|
|
3546
|
+
L["%Error.prototype%"] = G;
|
|
3549
3547
|
}
|
|
3550
3548
|
var se = function D(I) {
|
|
3551
3549
|
var H;
|
|
@@ -3562,7 +3560,7 @@ function Mr() {
|
|
|
3562
3560
|
var K = D("%AsyncGenerator%");
|
|
3563
3561
|
K && x && (H = x(K.prototype));
|
|
3564
3562
|
}
|
|
3565
|
-
return
|
|
3563
|
+
return L[I] = H, H;
|
|
3566
3564
|
}, ee = {
|
|
3567
3565
|
__proto__: null,
|
|
3568
3566
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -3616,7 +3614,7 @@ function Mr() {
|
|
|
3616
3614
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3617
3615
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3618
3616
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3619
|
-
},
|
|
3617
|
+
}, R = Qe(), ne = /* @__PURE__ */ Qs(), N = R.call(U, Array.prototype.concat), q = R.call(E, Array.prototype.splice), F = R.call(U, String.prototype.replace), P = R.call(U, String.prototype.slice), _ = R.call(U, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, W = /\\(\\)?/g, Y = function(I) {
|
|
3620
3618
|
var H = P(I, 0, 1), M = P(I, -1);
|
|
3621
3619
|
if (H === "%" && M !== "%")
|
|
3622
3620
|
throw new t("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -3628,8 +3626,8 @@ function Mr() {
|
|
|
3628
3626
|
}), K;
|
|
3629
3627
|
}, ae = function(I, H) {
|
|
3630
3628
|
var M = I, K;
|
|
3631
|
-
if (ne(ee, M) && (K = ee[M], M = "%" + K[0] + "%"), ne(
|
|
3632
|
-
var V =
|
|
3629
|
+
if (ne(ee, M) && (K = ee[M], M = "%" + K[0] + "%"), ne(L, M)) {
|
|
3630
|
+
var V = L[M];
|
|
3633
3631
|
if (V === O && (V = se(M)), typeof V > "u" && !H)
|
|
3634
3632
|
throw new o("intrinsic " + I + " exists, but is not available. Please file an issue!");
|
|
3635
3633
|
return {
|
|
@@ -3645,38 +3643,38 @@ function Mr() {
|
|
|
3645
3643
|
throw new o("intrinsic name must be a non-empty string");
|
|
3646
3644
|
if (arguments.length > 1 && typeof H != "boolean")
|
|
3647
3645
|
throw new o('"allowMissing" argument must be a boolean');
|
|
3648
|
-
if (
|
|
3646
|
+
if (_(/^%?[^%]*%?$/, I) === null)
|
|
3649
3647
|
throw new t("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3650
|
-
var M = Y(I), K = M.length > 0 ? M[0] : "", V = ae("%" + K + "%", H), X = V.name, oe = V.value, he = !1,
|
|
3651
|
-
|
|
3652
|
-
for (var
|
|
3653
|
-
var me = M[
|
|
3654
|
-
if ((
|
|
3648
|
+
var M = Y(I), K = M.length > 0 ? M[0] : "", V = ae("%" + K + "%", H), X = V.name, oe = V.value, he = !1, we = V.alias;
|
|
3649
|
+
we && (K = we[0], q(M, N([0, 1], we)));
|
|
3650
|
+
for (var ke = 1, $e = !0; ke < M.length; ke += 1) {
|
|
3651
|
+
var me = M[ke], qe = P(me, 0, 1), Ee = P(me, -1);
|
|
3652
|
+
if ((qe === '"' || qe === "'" || qe === "`" || Ee === '"' || Ee === "'" || Ee === "`") && qe !== Ee)
|
|
3655
3653
|
throw new t("property names with quotes must have matching quotes");
|
|
3656
|
-
if ((me === "constructor" ||
|
|
3657
|
-
oe =
|
|
3654
|
+
if ((me === "constructor" || !$e) && (he = !0), K += "." + me, X = "%" + K + "%", ne(L, X))
|
|
3655
|
+
oe = L[X];
|
|
3658
3656
|
else if (oe != null) {
|
|
3659
3657
|
if (!(me in oe)) {
|
|
3660
3658
|
if (!H)
|
|
3661
3659
|
throw new o("base intrinsic for " + I + " exists, but the property is not available.");
|
|
3662
3660
|
return;
|
|
3663
3661
|
}
|
|
3664
|
-
if (v &&
|
|
3662
|
+
if (v && ke + 1 >= M.length) {
|
|
3665
3663
|
var Se = v(oe, me);
|
|
3666
|
-
|
|
3664
|
+
$e = !!Se, $e && "get" in Se && !("originalValue" in Se.get) ? oe = Se.get : oe = oe[me];
|
|
3667
3665
|
} else
|
|
3668
|
-
|
|
3669
|
-
|
|
3666
|
+
$e = ne(oe, me), oe = oe[me];
|
|
3667
|
+
$e && !he && (L[X] = oe);
|
|
3670
3668
|
}
|
|
3671
3669
|
}
|
|
3672
3670
|
return oe;
|
|
3673
3671
|
}, lr;
|
|
3674
3672
|
}
|
|
3675
|
-
var cr = { exports: {} }, ur,
|
|
3676
|
-
function
|
|
3677
|
-
if (
|
|
3678
|
-
|
|
3679
|
-
var e = /* @__PURE__ */ ht(), n = /* @__PURE__ */
|
|
3673
|
+
var cr = { exports: {} }, ur, ta;
|
|
3674
|
+
function Ks() {
|
|
3675
|
+
if (ta) return ur;
|
|
3676
|
+
ta = 1;
|
|
3677
|
+
var e = /* @__PURE__ */ ht(), n = /* @__PURE__ */ Ra(), r = /* @__PURE__ */ De(), a = /* @__PURE__ */ dt();
|
|
3680
3678
|
return ur = function(i, t, o) {
|
|
3681
3679
|
if (!i || typeof i != "object" && typeof i != "function")
|
|
3682
3680
|
throw new r("`obj` must be an object or a function`");
|
|
@@ -3704,10 +3702,10 @@ function Xs() {
|
|
|
3704
3702
|
throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3705
3703
|
}, ur;
|
|
3706
3704
|
}
|
|
3707
|
-
var pr,
|
|
3708
|
-
function
|
|
3709
|
-
if (
|
|
3710
|
-
|
|
3705
|
+
var pr, ra;
|
|
3706
|
+
function Ys() {
|
|
3707
|
+
if (ra) return pr;
|
|
3708
|
+
ra = 1;
|
|
3711
3709
|
var e = /* @__PURE__ */ ht(), n = function() {
|
|
3712
3710
|
return !!e;
|
|
3713
3711
|
};
|
|
@@ -3721,11 +3719,11 @@ function Zs() {
|
|
|
3721
3719
|
}
|
|
3722
3720
|
}, pr = n, pr;
|
|
3723
3721
|
}
|
|
3724
|
-
var fr,
|
|
3725
|
-
function
|
|
3726
|
-
if (
|
|
3727
|
-
|
|
3728
|
-
var e = /* @__PURE__ */
|
|
3722
|
+
var fr, na;
|
|
3723
|
+
function Xs() {
|
|
3724
|
+
if (na) return fr;
|
|
3725
|
+
na = 1;
|
|
3726
|
+
var e = /* @__PURE__ */ Hr(), n = /* @__PURE__ */ Ks(), r = /* @__PURE__ */ Ys()(), a = /* @__PURE__ */ dt(), c = /* @__PURE__ */ De(), i = e("%Math.floor%");
|
|
3729
3727
|
return fr = function(o, s) {
|
|
3730
3728
|
if (typeof o != "function")
|
|
3731
3729
|
throw new c("`fn` is not a function");
|
|
@@ -3751,19 +3749,19 @@ function el() {
|
|
|
3751
3749
|
)), o;
|
|
3752
3750
|
}, fr;
|
|
3753
3751
|
}
|
|
3754
|
-
var dr,
|
|
3755
|
-
function
|
|
3756
|
-
if (
|
|
3757
|
-
|
|
3758
|
-
var e =
|
|
3752
|
+
var dr, aa;
|
|
3753
|
+
function Zs() {
|
|
3754
|
+
if (aa) return dr;
|
|
3755
|
+
aa = 1;
|
|
3756
|
+
var e = Qe(), n = Fr(), r = _a();
|
|
3759
3757
|
return dr = function() {
|
|
3760
3758
|
return r(e, n, arguments);
|
|
3761
3759
|
}, dr;
|
|
3762
3760
|
}
|
|
3763
|
-
var
|
|
3764
|
-
function
|
|
3765
|
-
return
|
|
3766
|
-
var n = /* @__PURE__ */
|
|
3761
|
+
var oa;
|
|
3762
|
+
function el() {
|
|
3763
|
+
return oa || (oa = 1, (function(e) {
|
|
3764
|
+
var n = /* @__PURE__ */ Xs(), r = /* @__PURE__ */ ht(), a = Ua(), c = Zs();
|
|
3767
3765
|
e.exports = function(t) {
|
|
3768
3766
|
var o = a(arguments), s = t.length - (arguments.length - 1);
|
|
3769
3767
|
return n(
|
|
@@ -3774,38 +3772,42 @@ function rl() {
|
|
|
3774
3772
|
}, r ? r(e.exports, "apply", { value: c }) : e.exports.apply = c;
|
|
3775
3773
|
})(cr)), cr.exports;
|
|
3776
3774
|
}
|
|
3777
|
-
var hr,
|
|
3778
|
-
function
|
|
3779
|
-
if (
|
|
3780
|
-
|
|
3781
|
-
var e = /* @__PURE__ */
|
|
3775
|
+
var hr, ia;
|
|
3776
|
+
function tl() {
|
|
3777
|
+
if (ia) return hr;
|
|
3778
|
+
ia = 1;
|
|
3779
|
+
var e = /* @__PURE__ */ Hr(), n = el(), r = n(e("String.prototype.indexOf"));
|
|
3782
3780
|
return hr = function(c, i) {
|
|
3783
3781
|
var t = e(c, !!i);
|
|
3784
3782
|
return typeof t == "function" && r(c, ".prototype.") > -1 ? n(t) : t;
|
|
3785
3783
|
}, hr;
|
|
3786
3784
|
}
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3785
|
+
const rl = {}, nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3786
|
+
__proto__: null,
|
|
3787
|
+
default: rl
|
|
3788
|
+
}, Symbol.toStringTag, { value: "Module" })), al = /* @__PURE__ */ zo(nl);
|
|
3789
|
+
var mr, sa;
|
|
3790
|
+
function ol() {
|
|
3791
|
+
if (sa) return mr;
|
|
3792
|
+
sa = 1;
|
|
3793
|
+
var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, t = c && i && typeof i.get == "function" ? i.get : null, o = c && Set.prototype.forEach, s = typeof WeakMap == "function" && WeakMap.prototype, u = s ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype, d = p ? WeakSet.prototype.has : null, m = typeof WeakRef == "function" && WeakRef.prototype, y = m ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, b = Object.prototype.toString, f = Function.prototype.toString, g = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, C = String.prototype.toUpperCase, h = String.prototype.toLowerCase, T = RegExp.prototype.test, x = Array.prototype.concat, k = Array.prototype.join, A = Array.prototype.slice, E = Math.floor, U = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, O = Object.getOwnPropertySymbols, B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, L = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === L || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, ee = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(w) {
|
|
3794
|
+
return w.__proto__;
|
|
3793
3795
|
} : null);
|
|
3794
|
-
function
|
|
3795
|
-
if (
|
|
3796
|
-
return
|
|
3796
|
+
function R(w, $) {
|
|
3797
|
+
if (w === 1 / 0 || w === -1 / 0 || w !== w || w && w > -1e3 && w < 1e3 || T.call(/e/, $))
|
|
3798
|
+
return $;
|
|
3797
3799
|
var Z = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
3798
|
-
if (typeof
|
|
3799
|
-
var te =
|
|
3800
|
-
if (te !==
|
|
3801
|
-
var ie = String(te), z = v.call(
|
|
3800
|
+
if (typeof w == "number") {
|
|
3801
|
+
var te = w < 0 ? -E(-w) : E(w);
|
|
3802
|
+
if (te !== w) {
|
|
3803
|
+
var ie = String(te), z = v.call($, ie.length + 1);
|
|
3802
3804
|
return S.call(ie, Z, "$&_") + "." + S.call(S.call(z, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
3803
3805
|
}
|
|
3804
3806
|
}
|
|
3805
|
-
return S.call(
|
|
3807
|
+
return S.call($, Z, "$&_");
|
|
3806
3808
|
}
|
|
3807
|
-
var ne =
|
|
3808
|
-
mr = function
|
|
3809
|
+
var ne = al, N = ne.custom, q = H(N) ? N : null;
|
|
3810
|
+
mr = function w($, Z, te, ie) {
|
|
3809
3811
|
var z = Z || {};
|
|
3810
3812
|
if (V(z, "quoteStyle") && z.quoteStyle !== "single" && z.quoteStyle !== "double")
|
|
3811
3813
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -3819,334 +3821,334 @@ function al() {
|
|
|
3819
3821
|
if (V(z, "numericSeparator") && typeof z.numericSeparator != "boolean")
|
|
3820
3822
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
3821
3823
|
var Oe = z.numericSeparator;
|
|
3822
|
-
if (typeof
|
|
3824
|
+
if (typeof $ > "u")
|
|
3823
3825
|
return "undefined";
|
|
3824
|
-
if (
|
|
3826
|
+
if ($ === null)
|
|
3825
3827
|
return "null";
|
|
3826
|
-
if (typeof
|
|
3827
|
-
return
|
|
3828
|
-
if (typeof
|
|
3829
|
-
return Se(
|
|
3830
|
-
if (typeof
|
|
3831
|
-
if (
|
|
3832
|
-
return 1 / 0 /
|
|
3833
|
-
var de = String(
|
|
3834
|
-
return Oe ?
|
|
3828
|
+
if (typeof $ == "boolean")
|
|
3829
|
+
return $ ? "true" : "false";
|
|
3830
|
+
if (typeof $ == "string")
|
|
3831
|
+
return Se($, z);
|
|
3832
|
+
if (typeof $ == "number") {
|
|
3833
|
+
if ($ === 0)
|
|
3834
|
+
return 1 / 0 / $ > 0 ? "0" : "-0";
|
|
3835
|
+
var de = String($);
|
|
3836
|
+
return Oe ? R($, de) : de;
|
|
3835
3837
|
}
|
|
3836
|
-
if (typeof
|
|
3837
|
-
var je = String(
|
|
3838
|
-
return Oe ?
|
|
3838
|
+
if (typeof $ == "bigint") {
|
|
3839
|
+
var je = String($) + "n";
|
|
3840
|
+
return Oe ? R($, je) : je;
|
|
3839
3841
|
}
|
|
3840
3842
|
var gt = typeof z.depth > "u" ? 5 : z.depth;
|
|
3841
|
-
if (typeof te > "u" && (te = 0), te >= gt && gt > 0 && typeof
|
|
3842
|
-
return
|
|
3843
|
-
var Re =
|
|
3843
|
+
if (typeof te > "u" && (te = 0), te >= gt && gt > 0 && typeof $ == "object")
|
|
3844
|
+
return _($) ? "[Array]" : "[Object]";
|
|
3845
|
+
var Re = za(z, te);
|
|
3844
3846
|
if (typeof ie > "u")
|
|
3845
3847
|
ie = [];
|
|
3846
|
-
else if (he(ie,
|
|
3848
|
+
else if (he(ie, $) >= 0)
|
|
3847
3849
|
return "[Circular]";
|
|
3848
|
-
function ye(
|
|
3849
|
-
if (
|
|
3850
|
-
var
|
|
3850
|
+
function ye(Ae, Xe, Wa) {
|
|
3851
|
+
if (Xe && (ie = A.call(ie), ie.push(Xe)), Wa) {
|
|
3852
|
+
var Kr = {
|
|
3851
3853
|
depth: z.depth
|
|
3852
3854
|
};
|
|
3853
|
-
return V(z, "quoteStyle") && (
|
|
3855
|
+
return V(z, "quoteStyle") && (Kr.quoteStyle = z.quoteStyle), w(Ae, Kr, te + 1, ie);
|
|
3854
3856
|
}
|
|
3855
|
-
return
|
|
3857
|
+
return w(Ae, z, te + 1, ie);
|
|
3856
3858
|
}
|
|
3857
|
-
if (typeof
|
|
3858
|
-
var
|
|
3859
|
-
return "[Function" + (
|
|
3859
|
+
if (typeof $ == "function" && !W($)) {
|
|
3860
|
+
var zr = oe($), Gr = Ke($, ye);
|
|
3861
|
+
return "[Function" + (zr ? ": " + zr : " (anonymous)") + "]" + (Gr.length > 0 ? " { " + k.call(Gr, ", ") + " }" : "");
|
|
3860
3862
|
}
|
|
3861
|
-
if (H(
|
|
3862
|
-
var
|
|
3863
|
-
return typeof
|
|
3863
|
+
if (H($)) {
|
|
3864
|
+
var Wr = L ? S.call(String($), /^(Symbol\(.*\))_[^)]*$/, "$1") : B.call($);
|
|
3865
|
+
return typeof $ == "object" && !L ? Le(Wr) : Wr;
|
|
3864
3866
|
}
|
|
3865
|
-
if (
|
|
3866
|
-
for (var
|
|
3867
|
-
|
|
3868
|
-
return
|
|
3867
|
+
if (Ee($)) {
|
|
3868
|
+
for (var Fe = "<" + h.call(String($.nodeName)), vt = $.attributes || [], Ye = 0; Ye < vt.length; Ye++)
|
|
3869
|
+
Fe += " " + vt[Ye].name + "=" + F(P(vt[Ye].value), "double", z);
|
|
3870
|
+
return Fe += ">", $.childNodes && $.childNodes.length && (Fe += "..."), Fe += "</" + h.call(String($.nodeName)) + ">", Fe;
|
|
3869
3871
|
}
|
|
3870
|
-
if (
|
|
3871
|
-
if (
|
|
3872
|
+
if (_($)) {
|
|
3873
|
+
if ($.length === 0)
|
|
3872
3874
|
return "[]";
|
|
3873
|
-
var xt =
|
|
3874
|
-
return Re && !
|
|
3875
|
+
var xt = Ke($, ye);
|
|
3876
|
+
return Re && !Ba(xt) ? "[" + yt(xt, Re) + "]" : "[ " + k.call(xt, ", ") + " ]";
|
|
3875
3877
|
}
|
|
3876
|
-
if (Y(
|
|
3877
|
-
var bt =
|
|
3878
|
-
return !("cause" in Error.prototype) && "cause" in
|
|
3878
|
+
if (Y($)) {
|
|
3879
|
+
var bt = Ke($, ye);
|
|
3880
|
+
return !("cause" in Error.prototype) && "cause" in $ && !se.call($, "cause") ? "{ [" + String($) + "] " + k.call(x.call("[cause]: " + ye($.cause), bt), ", ") + " }" : bt.length === 0 ? "[" + String($) + "]" : "{ [" + String($) + "] " + k.call(bt, ", ") + " }";
|
|
3879
3881
|
}
|
|
3880
|
-
if (typeof
|
|
3881
|
-
if (q && typeof
|
|
3882
|
-
return ne(
|
|
3883
|
-
if (be !== "symbol" && typeof
|
|
3884
|
-
return
|
|
3882
|
+
if (typeof $ == "object" && be) {
|
|
3883
|
+
if (q && typeof $[q] == "function" && ne)
|
|
3884
|
+
return ne($, { depth: gt - te });
|
|
3885
|
+
if (be !== "symbol" && typeof $.inspect == "function")
|
|
3886
|
+
return $.inspect();
|
|
3885
3887
|
}
|
|
3886
|
-
if ($
|
|
3887
|
-
var
|
|
3888
|
-
return a && a.call(
|
|
3889
|
-
|
|
3890
|
-
}),
|
|
3888
|
+
if (we($)) {
|
|
3889
|
+
var Vr = [];
|
|
3890
|
+
return a && a.call($, function(Ae, Xe) {
|
|
3891
|
+
Vr.push(ye(Xe, $, !0) + " => " + ye(Ae, $));
|
|
3892
|
+
}), Br("Map", r.call($), Vr, Re);
|
|
3891
3893
|
}
|
|
3892
|
-
if (me(
|
|
3893
|
-
var
|
|
3894
|
-
return o && o.call(
|
|
3895
|
-
|
|
3896
|
-
}),
|
|
3894
|
+
if (me($)) {
|
|
3895
|
+
var Jr = [];
|
|
3896
|
+
return o && o.call($, function(Ae) {
|
|
3897
|
+
Jr.push(ye(Ae, $));
|
|
3898
|
+
}), Br("Set", t.call($), Jr, Re);
|
|
3897
3899
|
}
|
|
3898
|
-
if (
|
|
3900
|
+
if (ke($))
|
|
3899
3901
|
return mt("WeakMap");
|
|
3900
|
-
if (
|
|
3902
|
+
if (qe($))
|
|
3901
3903
|
return mt("WeakSet");
|
|
3902
|
-
if (
|
|
3904
|
+
if ($e($))
|
|
3903
3905
|
return mt("WeakRef");
|
|
3904
|
-
if (D(
|
|
3905
|
-
return
|
|
3906
|
-
if (M(
|
|
3907
|
-
return
|
|
3908
|
-
if (I(
|
|
3909
|
-
return
|
|
3910
|
-
if (ae(
|
|
3911
|
-
return
|
|
3912
|
-
if (typeof window < "u" &&
|
|
3906
|
+
if (D($))
|
|
3907
|
+
return Le(ye(Number($)));
|
|
3908
|
+
if (M($))
|
|
3909
|
+
return Le(ye(U.call($)));
|
|
3910
|
+
if (I($))
|
|
3911
|
+
return Le(j.call($));
|
|
3912
|
+
if (ae($))
|
|
3913
|
+
return Le(ye(String($)));
|
|
3914
|
+
if (typeof window < "u" && $ === window)
|
|
3913
3915
|
return "{ [object Window] }";
|
|
3914
|
-
if (typeof globalThis < "u" &&
|
|
3916
|
+
if (typeof globalThis < "u" && $ === globalThis || typeof it < "u" && $ === it)
|
|
3915
3917
|
return "{ [object globalThis] }";
|
|
3916
|
-
if (!J(
|
|
3917
|
-
var jt =
|
|
3918
|
-
return jt.length === 0 ?
|
|
3918
|
+
if (!J($) && !W($)) {
|
|
3919
|
+
var jt = Ke($, ye), Dr = ee ? ee($) === Object.prototype : $ instanceof Object || $.constructor === Object, wt = $ instanceof Object ? "" : "null prototype", Qr = !Dr && G && Object($) === $ && G in $ ? v.call(X($), 8, -1) : wt ? "Object" : "", Ga = Dr || typeof $.constructor != "function" ? "" : $.constructor.name ? $.constructor.name + " " : "", $t = Ga + (Qr || wt ? "[" + k.call(x.call([], Qr || [], wt || []), ": ") + "] " : "");
|
|
3920
|
+
return jt.length === 0 ? $t + "{}" : Re ? $t + "{" + yt(jt, Re) + "}" : $t + "{ " + k.call(jt, ", ") + " }";
|
|
3919
3921
|
}
|
|
3920
|
-
return String(
|
|
3922
|
+
return String($);
|
|
3921
3923
|
};
|
|
3922
|
-
function F(
|
|
3923
|
-
var te = (Z.quoteStyle ||
|
|
3924
|
-
return te +
|
|
3924
|
+
function F(w, $, Z) {
|
|
3925
|
+
var te = (Z.quoteStyle || $) === "double" ? '"' : "'";
|
|
3926
|
+
return te + w + te;
|
|
3925
3927
|
}
|
|
3926
|
-
function P(
|
|
3927
|
-
return S.call(String(
|
|
3928
|
+
function P(w) {
|
|
3929
|
+
return S.call(String(w), /"/g, """);
|
|
3928
3930
|
}
|
|
3929
|
-
function
|
|
3930
|
-
return X(
|
|
3931
|
+
function _(w) {
|
|
3932
|
+
return X(w) === "[object Array]" && (!G || !(typeof w == "object" && G in w));
|
|
3931
3933
|
}
|
|
3932
|
-
function J(
|
|
3933
|
-
return X(
|
|
3934
|
+
function J(w) {
|
|
3935
|
+
return X(w) === "[object Date]" && (!G || !(typeof w == "object" && G in w));
|
|
3934
3936
|
}
|
|
3935
|
-
function W(
|
|
3936
|
-
return X(
|
|
3937
|
+
function W(w) {
|
|
3938
|
+
return X(w) === "[object RegExp]" && (!G || !(typeof w == "object" && G in w));
|
|
3937
3939
|
}
|
|
3938
|
-
function Y(
|
|
3939
|
-
return X(
|
|
3940
|
+
function Y(w) {
|
|
3941
|
+
return X(w) === "[object Error]" && (!G || !(typeof w == "object" && G in w));
|
|
3940
3942
|
}
|
|
3941
|
-
function ae(
|
|
3942
|
-
return X(
|
|
3943
|
+
function ae(w) {
|
|
3944
|
+
return X(w) === "[object String]" && (!G || !(typeof w == "object" && G in w));
|
|
3943
3945
|
}
|
|
3944
|
-
function D(
|
|
3945
|
-
return X(
|
|
3946
|
+
function D(w) {
|
|
3947
|
+
return X(w) === "[object Number]" && (!G || !(typeof w == "object" && G in w));
|
|
3946
3948
|
}
|
|
3947
|
-
function I(
|
|
3948
|
-
return X(
|
|
3949
|
+
function I(w) {
|
|
3950
|
+
return X(w) === "[object Boolean]" && (!G || !(typeof w == "object" && G in w));
|
|
3949
3951
|
}
|
|
3950
|
-
function H(
|
|
3951
|
-
if (
|
|
3952
|
-
return
|
|
3953
|
-
if (typeof
|
|
3952
|
+
function H(w) {
|
|
3953
|
+
if (L)
|
|
3954
|
+
return w && typeof w == "object" && w instanceof Symbol;
|
|
3955
|
+
if (typeof w == "symbol")
|
|
3954
3956
|
return !0;
|
|
3955
|
-
if (
|
|
3957
|
+
if (!w || typeof w != "object" || !B)
|
|
3956
3958
|
return !1;
|
|
3957
3959
|
try {
|
|
3958
|
-
return B.call(
|
|
3960
|
+
return B.call(w), !0;
|
|
3959
3961
|
} catch {
|
|
3960
3962
|
}
|
|
3961
3963
|
return !1;
|
|
3962
3964
|
}
|
|
3963
|
-
function M(
|
|
3964
|
-
if (
|
|
3965
|
+
function M(w) {
|
|
3966
|
+
if (!w || typeof w != "object" || !U)
|
|
3965
3967
|
return !1;
|
|
3966
3968
|
try {
|
|
3967
|
-
return
|
|
3969
|
+
return U.call(w), !0;
|
|
3968
3970
|
} catch {
|
|
3969
3971
|
}
|
|
3970
3972
|
return !1;
|
|
3971
3973
|
}
|
|
3972
|
-
var K = Object.prototype.hasOwnProperty || function(
|
|
3973
|
-
return
|
|
3974
|
+
var K = Object.prototype.hasOwnProperty || function(w) {
|
|
3975
|
+
return w in this;
|
|
3974
3976
|
};
|
|
3975
|
-
function V(
|
|
3976
|
-
return K.call(
|
|
3977
|
+
function V(w, $) {
|
|
3978
|
+
return K.call(w, $);
|
|
3977
3979
|
}
|
|
3978
|
-
function X(
|
|
3979
|
-
return b.call(
|
|
3980
|
+
function X(w) {
|
|
3981
|
+
return b.call(w);
|
|
3980
3982
|
}
|
|
3981
|
-
function oe(
|
|
3982
|
-
if (
|
|
3983
|
-
return
|
|
3984
|
-
var
|
|
3985
|
-
return
|
|
3983
|
+
function oe(w) {
|
|
3984
|
+
if (w.name)
|
|
3985
|
+
return w.name;
|
|
3986
|
+
var $ = g.call(f.call(w), /^function\s*([\w$]+)/);
|
|
3987
|
+
return $ ? $[1] : null;
|
|
3986
3988
|
}
|
|
3987
|
-
function he(
|
|
3988
|
-
if (
|
|
3989
|
-
return
|
|
3990
|
-
for (var Z = 0, te =
|
|
3991
|
-
if (
|
|
3989
|
+
function he(w, $) {
|
|
3990
|
+
if (w.indexOf)
|
|
3991
|
+
return w.indexOf($);
|
|
3992
|
+
for (var Z = 0, te = w.length; Z < te; Z++)
|
|
3993
|
+
if (w[Z] === $)
|
|
3992
3994
|
return Z;
|
|
3993
3995
|
return -1;
|
|
3994
3996
|
}
|
|
3995
|
-
function
|
|
3996
|
-
if (!r ||
|
|
3997
|
+
function we(w) {
|
|
3998
|
+
if (!r || !w || typeof w != "object")
|
|
3997
3999
|
return !1;
|
|
3998
4000
|
try {
|
|
3999
|
-
r.call(
|
|
4001
|
+
r.call(w);
|
|
4000
4002
|
try {
|
|
4001
|
-
t.call(
|
|
4003
|
+
t.call(w);
|
|
4002
4004
|
} catch {
|
|
4003
4005
|
return !0;
|
|
4004
4006
|
}
|
|
4005
|
-
return
|
|
4007
|
+
return w instanceof Map;
|
|
4006
4008
|
} catch {
|
|
4007
4009
|
}
|
|
4008
4010
|
return !1;
|
|
4009
4011
|
}
|
|
4010
|
-
function
|
|
4011
|
-
if (!u ||
|
|
4012
|
+
function ke(w) {
|
|
4013
|
+
if (!u || !w || typeof w != "object")
|
|
4012
4014
|
return !1;
|
|
4013
4015
|
try {
|
|
4014
|
-
u.call(
|
|
4016
|
+
u.call(w, u);
|
|
4015
4017
|
try {
|
|
4016
|
-
d.call(
|
|
4018
|
+
d.call(w, d);
|
|
4017
4019
|
} catch {
|
|
4018
4020
|
return !0;
|
|
4019
4021
|
}
|
|
4020
|
-
return
|
|
4022
|
+
return w instanceof WeakMap;
|
|
4021
4023
|
} catch {
|
|
4022
4024
|
}
|
|
4023
4025
|
return !1;
|
|
4024
4026
|
}
|
|
4025
|
-
function
|
|
4026
|
-
if (!y ||
|
|
4027
|
+
function $e(w) {
|
|
4028
|
+
if (!y || !w || typeof w != "object")
|
|
4027
4029
|
return !1;
|
|
4028
4030
|
try {
|
|
4029
|
-
return y.call(
|
|
4031
|
+
return y.call(w), !0;
|
|
4030
4032
|
} catch {
|
|
4031
4033
|
}
|
|
4032
4034
|
return !1;
|
|
4033
4035
|
}
|
|
4034
|
-
function me(
|
|
4035
|
-
if (!t ||
|
|
4036
|
+
function me(w) {
|
|
4037
|
+
if (!t || !w || typeof w != "object")
|
|
4036
4038
|
return !1;
|
|
4037
4039
|
try {
|
|
4038
|
-
t.call(
|
|
4040
|
+
t.call(w);
|
|
4039
4041
|
try {
|
|
4040
|
-
r.call(
|
|
4042
|
+
r.call(w);
|
|
4041
4043
|
} catch {
|
|
4042
4044
|
return !0;
|
|
4043
4045
|
}
|
|
4044
|
-
return
|
|
4046
|
+
return w instanceof Set;
|
|
4045
4047
|
} catch {
|
|
4046
4048
|
}
|
|
4047
4049
|
return !1;
|
|
4048
4050
|
}
|
|
4049
|
-
function
|
|
4050
|
-
if (!d ||
|
|
4051
|
+
function qe(w) {
|
|
4052
|
+
if (!d || !w || typeof w != "object")
|
|
4051
4053
|
return !1;
|
|
4052
4054
|
try {
|
|
4053
|
-
d.call(
|
|
4055
|
+
d.call(w, d);
|
|
4054
4056
|
try {
|
|
4055
|
-
u.call(
|
|
4057
|
+
u.call(w, u);
|
|
4056
4058
|
} catch {
|
|
4057
4059
|
return !0;
|
|
4058
4060
|
}
|
|
4059
|
-
return
|
|
4061
|
+
return w instanceof WeakSet;
|
|
4060
4062
|
} catch {
|
|
4061
4063
|
}
|
|
4062
4064
|
return !1;
|
|
4063
4065
|
}
|
|
4064
|
-
function
|
|
4065
|
-
return
|
|
4066
|
+
function Ee(w) {
|
|
4067
|
+
return !w || typeof w != "object" ? !1 : typeof HTMLElement < "u" && w instanceof HTMLElement ? !0 : typeof w.nodeName == "string" && typeof w.getAttribute == "function";
|
|
4066
4068
|
}
|
|
4067
|
-
function Se(
|
|
4068
|
-
if (
|
|
4069
|
-
var Z =
|
|
4070
|
-
return Se(v.call(
|
|
4069
|
+
function Se(w, $) {
|
|
4070
|
+
if (w.length > $.maxStringLength) {
|
|
4071
|
+
var Z = w.length - $.maxStringLength, te = "... " + Z + " more character" + (Z > 1 ? "s" : "");
|
|
4072
|
+
return Se(v.call(w, 0, $.maxStringLength), $) + te;
|
|
4071
4073
|
}
|
|
4072
|
-
var ie = S.call(S.call(
|
|
4073
|
-
return F(ie, "single",
|
|
4074
|
+
var ie = S.call(S.call(w, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ma);
|
|
4075
|
+
return F(ie, "single", $);
|
|
4074
4076
|
}
|
|
4075
|
-
function
|
|
4076
|
-
var
|
|
4077
|
+
function Ma(w) {
|
|
4078
|
+
var $ = w.charCodeAt(0), Z = {
|
|
4077
4079
|
8: "b",
|
|
4078
4080
|
9: "t",
|
|
4079
4081
|
10: "n",
|
|
4080
4082
|
12: "f",
|
|
4081
4083
|
13: "r"
|
|
4082
|
-
}[
|
|
4083
|
-
return Z ? "\\" + Z : "\\x" + (
|
|
4084
|
+
}[$];
|
|
4085
|
+
return Z ? "\\" + Z : "\\x" + ($ < 16 ? "0" : "") + C.call($.toString(16));
|
|
4084
4086
|
}
|
|
4085
|
-
function
|
|
4086
|
-
return "Object(" +
|
|
4087
|
+
function Le(w) {
|
|
4088
|
+
return "Object(" + w + ")";
|
|
4087
4089
|
}
|
|
4088
|
-
function mt(
|
|
4089
|
-
return
|
|
4090
|
+
function mt(w) {
|
|
4091
|
+
return w + " { ? }";
|
|
4090
4092
|
}
|
|
4091
|
-
function
|
|
4093
|
+
function Br(w, $, Z, te) {
|
|
4092
4094
|
var ie = te ? yt(Z, te) : k.call(Z, ", ");
|
|
4093
|
-
return
|
|
4095
|
+
return w + " (" + $ + ") {" + ie + "}";
|
|
4094
4096
|
}
|
|
4095
|
-
function
|
|
4096
|
-
for (var
|
|
4097
|
-
if (he($
|
|
4097
|
+
function Ba(w) {
|
|
4098
|
+
for (var $ = 0; $ < w.length; $++)
|
|
4099
|
+
if (he(w[$], `
|
|
4098
4100
|
`) >= 0)
|
|
4099
4101
|
return !1;
|
|
4100
4102
|
return !0;
|
|
4101
4103
|
}
|
|
4102
|
-
function
|
|
4104
|
+
function za(w, $) {
|
|
4103
4105
|
var Z;
|
|
4104
|
-
if (
|
|
4106
|
+
if (w.indent === " ")
|
|
4105
4107
|
Z = " ";
|
|
4106
|
-
else if (typeof
|
|
4107
|
-
Z = k.call(Array(
|
|
4108
|
+
else if (typeof w.indent == "number" && w.indent > 0)
|
|
4109
|
+
Z = k.call(Array(w.indent + 1), " ");
|
|
4108
4110
|
else
|
|
4109
4111
|
return null;
|
|
4110
4112
|
return {
|
|
4111
4113
|
base: Z,
|
|
4112
|
-
prev: k.call(Array(
|
|
4114
|
+
prev: k.call(Array($ + 1), Z)
|
|
4113
4115
|
};
|
|
4114
4116
|
}
|
|
4115
|
-
function yt(
|
|
4116
|
-
if (
|
|
4117
|
+
function yt(w, $) {
|
|
4118
|
+
if (w.length === 0)
|
|
4117
4119
|
return "";
|
|
4118
4120
|
var Z = `
|
|
4119
|
-
` +
|
|
4120
|
-
return Z + k.call(
|
|
4121
|
-
` +
|
|
4121
|
+
` + $.prev + $.base;
|
|
4122
|
+
return Z + k.call(w, "," + Z) + `
|
|
4123
|
+
` + $.prev;
|
|
4122
4124
|
}
|
|
4123
|
-
function
|
|
4124
|
-
var Z =
|
|
4125
|
+
function Ke(w, $) {
|
|
4126
|
+
var Z = _(w), te = [];
|
|
4125
4127
|
if (Z) {
|
|
4126
|
-
te.length =
|
|
4127
|
-
for (var ie = 0; ie <
|
|
4128
|
-
te[ie] = V(
|
|
4128
|
+
te.length = w.length;
|
|
4129
|
+
for (var ie = 0; ie < w.length; ie++)
|
|
4130
|
+
te[ie] = V(w, ie) ? $(w[ie], w) : "";
|
|
4129
4131
|
}
|
|
4130
|
-
var z = typeof O == "function" ? O(
|
|
4131
|
-
if (
|
|
4132
|
+
var z = typeof O == "function" ? O(w) : [], be;
|
|
4133
|
+
if (L) {
|
|
4132
4134
|
be = {};
|
|
4133
4135
|
for (var Oe = 0; Oe < z.length; Oe++)
|
|
4134
4136
|
be["$" + z[Oe]] = z[Oe];
|
|
4135
4137
|
}
|
|
4136
|
-
for (var de in
|
|
4137
|
-
V(
|
|
4138
|
+
for (var de in w)
|
|
4139
|
+
V(w, de) && (Z && String(Number(de)) === de && de < w.length || L && be["$" + de] instanceof Symbol || (T.call(/[^\w$]/, de) ? te.push($(de, w) + ": " + $(w[de], w)) : te.push(de + ": " + $(w[de], w))));
|
|
4138
4140
|
if (typeof O == "function")
|
|
4139
4141
|
for (var je = 0; je < z.length; je++)
|
|
4140
|
-
se.call(
|
|
4142
|
+
se.call(w, z[je]) && te.push("[" + $(z[je]) + "]: " + $(w[z[je]], w));
|
|
4141
4143
|
return te;
|
|
4142
4144
|
}
|
|
4143
4145
|
return mr;
|
|
4144
4146
|
}
|
|
4145
|
-
var yr,
|
|
4146
|
-
function
|
|
4147
|
-
if (
|
|
4148
|
-
|
|
4149
|
-
var e = /* @__PURE__ */
|
|
4147
|
+
var yr, la;
|
|
4148
|
+
function il() {
|
|
4149
|
+
if (la) return yr;
|
|
4150
|
+
la = 1;
|
|
4151
|
+
var e = /* @__PURE__ */ Hr(), n = tl(), r = /* @__PURE__ */ ol(), a = /* @__PURE__ */ De(), c = e("%WeakMap%", !0), i = e("%Map%", !0), t = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), s = n("WeakMap.prototype.has", !0), u = n("Map.prototype.get", !0), p = n("Map.prototype.set", !0), d = n("Map.prototype.has", !0), m = function(f, g) {
|
|
4150
4152
|
for (var v = f, S; (S = v.next) !== null; v = S)
|
|
4151
4153
|
if (S.key === g)
|
|
4152
4154
|
return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -4200,10 +4202,10 @@ function ol() {
|
|
|
4200
4202
|
return C;
|
|
4201
4203
|
}, yr;
|
|
4202
4204
|
}
|
|
4203
|
-
var gr,
|
|
4204
|
-
function
|
|
4205
|
-
if (
|
|
4206
|
-
|
|
4205
|
+
var gr, ca;
|
|
4206
|
+
function Mr() {
|
|
4207
|
+
if (ca) return gr;
|
|
4208
|
+
ca = 1;
|
|
4207
4209
|
var e = String.prototype.replace, n = /%20/g, r = {
|
|
4208
4210
|
RFC1738: "RFC1738",
|
|
4209
4211
|
RFC3986: "RFC3986"
|
|
@@ -4222,11 +4224,11 @@ function Br() {
|
|
|
4222
4224
|
RFC3986: r.RFC3986
|
|
4223
4225
|
}, gr;
|
|
4224
4226
|
}
|
|
4225
|
-
var vr,
|
|
4226
|
-
function
|
|
4227
|
-
if (
|
|
4228
|
-
|
|
4229
|
-
var e = /* @__PURE__ */
|
|
4227
|
+
var vr, ua;
|
|
4228
|
+
function La() {
|
|
4229
|
+
if (ua) return vr;
|
|
4230
|
+
ua = 1;
|
|
4231
|
+
var e = /* @__PURE__ */ Mr(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = (function() {
|
|
4230
4232
|
for (var f = [], g = 0; g < 256; ++g)
|
|
4231
4233
|
f.push("%" + ((g < 16 ? "0" : "") + g.toString(16)).toUpperCase());
|
|
4232
4234
|
return f;
|
|
@@ -4290,34 +4292,34 @@ function Fa() {
|
|
|
4290
4292
|
return "%26%23" + parseInt(B.slice(2), 16) + "%3B";
|
|
4291
4293
|
});
|
|
4292
4294
|
for (var x = "", k = 0; k < T.length; k += u) {
|
|
4293
|
-
for (var A = T.length >= u ? T.slice(k, k + u) : T,
|
|
4294
|
-
var O = A.charCodeAt(
|
|
4295
|
+
for (var A = T.length >= u ? T.slice(k, k + u) : T, E = [], U = 0; U < A.length; ++U) {
|
|
4296
|
+
var O = A.charCodeAt(U);
|
|
4295
4297
|
if (O === 45 || O === 46 || O === 95 || O === 126 || O >= 48 && O <= 57 || O >= 65 && O <= 90 || O >= 97 && O <= 122 || h === e.RFC1738 && (O === 40 || O === 41)) {
|
|
4296
|
-
|
|
4298
|
+
E[E.length] = A.charAt(U);
|
|
4297
4299
|
continue;
|
|
4298
4300
|
}
|
|
4299
4301
|
if (O < 128) {
|
|
4300
|
-
|
|
4302
|
+
E[E.length] = a[O];
|
|
4301
4303
|
continue;
|
|
4302
4304
|
}
|
|
4303
4305
|
if (O < 2048) {
|
|
4304
|
-
|
|
4306
|
+
E[E.length] = a[192 | O >> 6] + a[128 | O & 63];
|
|
4305
4307
|
continue;
|
|
4306
4308
|
}
|
|
4307
4309
|
if (O < 55296 || O >= 57344) {
|
|
4308
|
-
|
|
4310
|
+
E[E.length] = a[224 | O >> 12] + a[128 | O >> 6 & 63] + a[128 | O & 63];
|
|
4309
4311
|
continue;
|
|
4310
4312
|
}
|
|
4311
|
-
|
|
4313
|
+
U += 1, O = 65536 + ((O & 1023) << 10 | A.charCodeAt(U) & 1023), E[E.length] = a[240 | O >> 18] + a[128 | O >> 12 & 63] + a[128 | O >> 6 & 63] + a[128 | O & 63];
|
|
4312
4314
|
}
|
|
4313
|
-
x +=
|
|
4315
|
+
x += E.join("");
|
|
4314
4316
|
}
|
|
4315
4317
|
return x;
|
|
4316
4318
|
}, d = function(g) {
|
|
4317
4319
|
for (var v = [{ obj: { o: g }, prop: "o" }], S = [], C = 0; C < v.length; ++C)
|
|
4318
4320
|
for (var h = v[C], T = h.obj[h.prop], x = Object.keys(T), k = 0; k < x.length; ++k) {
|
|
4319
|
-
var A = x[k],
|
|
4320
|
-
typeof
|
|
4321
|
+
var A = x[k], E = T[A];
|
|
4322
|
+
typeof E == "object" && E !== null && S.indexOf(E) === -1 && (v.push({ obj: T, prop: A }), S.push(E));
|
|
4321
4323
|
}
|
|
4322
4324
|
return c(v), g;
|
|
4323
4325
|
}, m = function(g) {
|
|
@@ -4347,11 +4349,11 @@ function Fa() {
|
|
|
4347
4349
|
merge: t
|
|
4348
4350
|
}, vr;
|
|
4349
4351
|
}
|
|
4350
|
-
var xr,
|
|
4351
|
-
function
|
|
4352
|
-
if (
|
|
4353
|
-
|
|
4354
|
-
var e =
|
|
4352
|
+
var xr, pa;
|
|
4353
|
+
function sl() {
|
|
4354
|
+
if (pa) return xr;
|
|
4355
|
+
pa = 1;
|
|
4356
|
+
var e = il(), n = /* @__PURE__ */ La(), r = /* @__PURE__ */ Mr(), a = Object.prototype.hasOwnProperty, c = {
|
|
4355
4357
|
brackets: function(f) {
|
|
4356
4358
|
return f + "[]";
|
|
4357
4359
|
},
|
|
@@ -4387,8 +4389,8 @@ function il() {
|
|
|
4387
4389
|
strictNullHandling: !1
|
|
4388
4390
|
}, d = function(f) {
|
|
4389
4391
|
return typeof f == "string" || typeof f == "number" || typeof f == "boolean" || typeof f == "symbol" || typeof f == "bigint";
|
|
4390
|
-
}, m = {}, y = function b(f, g, v, S, C, h, T, x, k, A,
|
|
4391
|
-
for (var
|
|
4392
|
+
}, m = {}, y = function b(f, g, v, S, C, h, T, x, k, A, E, U, O, B, L, G, se, ee) {
|
|
4393
|
+
for (var R = f, ne = ee, N = 0, q = !1; (ne = ne.get(m)) !== void 0 && !q; ) {
|
|
4392
4394
|
var F = ne.get(f);
|
|
4393
4395
|
if (N += 1, typeof F < "u") {
|
|
4394
4396
|
if (F === N)
|
|
@@ -4397,42 +4399,42 @@ function il() {
|
|
|
4397
4399
|
}
|
|
4398
4400
|
typeof ne.get(m) > "u" && (N = 0);
|
|
4399
4401
|
}
|
|
4400
|
-
if (typeof A == "function" ?
|
|
4402
|
+
if (typeof A == "function" ? R = A(g, R) : R instanceof Date ? R = O(R) : v === "comma" && i(R) && (R = n.maybeMap(R, function(X) {
|
|
4401
4403
|
return X instanceof Date ? O(X) : X;
|
|
4402
|
-
})),
|
|
4404
|
+
})), R === null) {
|
|
4403
4405
|
if (h)
|
|
4404
4406
|
return k && !G ? k(g, p.encoder, se, "key", B) : g;
|
|
4405
|
-
|
|
4407
|
+
R = "";
|
|
4406
4408
|
}
|
|
4407
|
-
if (d(
|
|
4409
|
+
if (d(R) || n.isBuffer(R)) {
|
|
4408
4410
|
if (k) {
|
|
4409
4411
|
var P = G ? g : k(g, p.encoder, se, "key", B);
|
|
4410
|
-
return [
|
|
4412
|
+
return [L(P) + "=" + L(k(R, p.encoder, se, "value", B))];
|
|
4411
4413
|
}
|
|
4412
|
-
return [
|
|
4414
|
+
return [L(g) + "=" + L(String(R))];
|
|
4413
4415
|
}
|
|
4414
|
-
var
|
|
4415
|
-
if (typeof
|
|
4416
|
-
return
|
|
4416
|
+
var _ = [];
|
|
4417
|
+
if (typeof R > "u")
|
|
4418
|
+
return _;
|
|
4417
4419
|
var J;
|
|
4418
|
-
if (v === "comma" && i(
|
|
4419
|
-
G && k && (
|
|
4420
|
+
if (v === "comma" && i(R))
|
|
4421
|
+
G && k && (R = n.maybeMap(R, k)), J = [{ value: R.length > 0 ? R.join(",") || null : void 0 }];
|
|
4420
4422
|
else if (i(A))
|
|
4421
4423
|
J = A;
|
|
4422
4424
|
else {
|
|
4423
|
-
var W = Object.keys(
|
|
4424
|
-
J =
|
|
4425
|
+
var W = Object.keys(R);
|
|
4426
|
+
J = E ? W.sort(E) : W;
|
|
4425
4427
|
}
|
|
4426
|
-
var Y = x ? g.replace(/\./g, "%2E") : g, ae = S && i(
|
|
4427
|
-
if (C && i(
|
|
4428
|
+
var Y = x ? g.replace(/\./g, "%2E") : g, ae = S && i(R) && R.length === 1 ? Y + "[]" : Y;
|
|
4429
|
+
if (C && i(R) && R.length === 0)
|
|
4428
4430
|
return ae + "[]";
|
|
4429
4431
|
for (var D = 0; D < J.length; ++D) {
|
|
4430
|
-
var I = J[D], H = typeof I == "object" && typeof I.value < "u" ? I.value :
|
|
4432
|
+
var I = J[D], H = typeof I == "object" && typeof I.value < "u" ? I.value : R[I];
|
|
4431
4433
|
if (!(T && H === null)) {
|
|
4432
|
-
var M =
|
|
4434
|
+
var M = U && x ? I.replace(/\./g, "%2E") : I, K = i(R) ? typeof v == "function" ? v(ae, M) : ae : ae + (U ? "." + M : "[" + M + "]");
|
|
4433
4435
|
ee.set(f, N);
|
|
4434
4436
|
var V = e();
|
|
4435
|
-
V.set(m, ee), o(
|
|
4437
|
+
V.set(m, ee), o(_, b(
|
|
4436
4438
|
H,
|
|
4437
4439
|
K,
|
|
4438
4440
|
v,
|
|
@@ -4441,20 +4443,20 @@ function il() {
|
|
|
4441
4443
|
h,
|
|
4442
4444
|
T,
|
|
4443
4445
|
x,
|
|
4444
|
-
v === "comma" && G && i(
|
|
4446
|
+
v === "comma" && G && i(R) ? null : k,
|
|
4445
4447
|
A,
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
+
E,
|
|
4449
|
+
U,
|
|
4448
4450
|
O,
|
|
4449
4451
|
B,
|
|
4450
|
-
|
|
4452
|
+
L,
|
|
4451
4453
|
G,
|
|
4452
4454
|
se,
|
|
4453
4455
|
V
|
|
4454
4456
|
));
|
|
4455
4457
|
}
|
|
4456
4458
|
}
|
|
4457
|
-
return
|
|
4459
|
+
return _;
|
|
4458
4460
|
}, j = function(f) {
|
|
4459
4461
|
if (!f)
|
|
4460
4462
|
return p;
|
|
@@ -4510,10 +4512,10 @@ function il() {
|
|
|
4510
4512
|
var T = c[v.arrayFormat], x = T === "comma" && v.commaRoundTrip;
|
|
4511
4513
|
S || (S = Object.keys(g)), v.sort && S.sort(v.sort);
|
|
4512
4514
|
for (var k = e(), A = 0; A < S.length; ++A) {
|
|
4513
|
-
var
|
|
4514
|
-
v.skipNulls && g[
|
|
4515
|
-
g[
|
|
4516
|
-
|
|
4515
|
+
var E = S[A];
|
|
4516
|
+
v.skipNulls && g[E] === null || o(h, y(
|
|
4517
|
+
g[E],
|
|
4518
|
+
E,
|
|
4517
4519
|
T,
|
|
4518
4520
|
x,
|
|
4519
4521
|
v.allowEmptyArrays,
|
|
@@ -4532,15 +4534,15 @@ function il() {
|
|
|
4532
4534
|
k
|
|
4533
4535
|
));
|
|
4534
4536
|
}
|
|
4535
|
-
var
|
|
4536
|
-
return v.charsetSentinel && (v.charset === "iso-8859-1" ? O += "utf8=%26%2310003%3B&" : O += "utf8=%E2%9C%93&"),
|
|
4537
|
+
var U = h.join(v.delimiter), O = v.addQueryPrefix === !0 ? "?" : "";
|
|
4538
|
+
return v.charsetSentinel && (v.charset === "iso-8859-1" ? O += "utf8=%26%2310003%3B&" : O += "utf8=%E2%9C%93&"), U.length > 0 ? O + U : "";
|
|
4537
4539
|
}, xr;
|
|
4538
4540
|
}
|
|
4539
|
-
var br,
|
|
4540
|
-
function
|
|
4541
|
-
if (
|
|
4542
|
-
|
|
4543
|
-
var e = /* @__PURE__ */
|
|
4541
|
+
var br, fa;
|
|
4542
|
+
function ll() {
|
|
4543
|
+
if (fa) return br;
|
|
4544
|
+
fa = 1;
|
|
4545
|
+
var e = /* @__PURE__ */ La(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = {
|
|
4544
4546
|
allowDots: !1,
|
|
4545
4547
|
allowEmptyArrays: !1,
|
|
4546
4548
|
allowPrototypes: !1,
|
|
@@ -4576,15 +4578,15 @@ function sl() {
|
|
|
4576
4578
|
v[C].indexOf("utf8=") === 0 && (v[C] === o ? h = "utf-8" : v[C] === t && (h = "iso-8859-1"), S = C, C = v.length);
|
|
4577
4579
|
for (C = 0; C < v.length; ++C)
|
|
4578
4580
|
if (C !== S) {
|
|
4579
|
-
var T = v[C], x = T.indexOf("]="), k = x === -1 ? T.indexOf("=") : x + 1, A,
|
|
4580
|
-
k === -1 ? (A = j.decoder(T, a.decoder, h, "key"),
|
|
4581
|
+
var T = v[C], x = T.indexOf("]="), k = x === -1 ? T.indexOf("=") : x + 1, A, E;
|
|
4582
|
+
k === -1 ? (A = j.decoder(T, a.decoder, h, "key"), E = j.strictNullHandling ? null : "") : (A = j.decoder(T.slice(0, k), a.decoder, h, "key"), E = e.maybeMap(
|
|
4581
4583
|
i(T.slice(k + 1), j),
|
|
4582
4584
|
function(O) {
|
|
4583
4585
|
return j.decoder(O, a.decoder, h, "value");
|
|
4584
4586
|
}
|
|
4585
|
-
)),
|
|
4586
|
-
var
|
|
4587
|
-
|
|
4587
|
+
)), E && j.interpretNumericEntities && h === "iso-8859-1" && (E = c(E)), T.indexOf("[]=") > -1 && (E = r(E) ? [E] : E);
|
|
4588
|
+
var U = n.call(b, A);
|
|
4589
|
+
U && j.duplicates === "combine" ? b[A] = e.combine(b[A], E) : (!U || j.duplicates === "last") && (b[A] = E);
|
|
4588
4590
|
}
|
|
4589
4591
|
return b;
|
|
4590
4592
|
}, u = function(m, y, j, b) {
|
|
@@ -4670,22 +4672,22 @@ function sl() {
|
|
|
4670
4672
|
return j.allowSparse === !0 ? f : e.compact(f);
|
|
4671
4673
|
}, br;
|
|
4672
4674
|
}
|
|
4673
|
-
var jr,
|
|
4674
|
-
function
|
|
4675
|
-
if (
|
|
4676
|
-
|
|
4677
|
-
var e = /* @__PURE__ */
|
|
4675
|
+
var jr, da;
|
|
4676
|
+
function Fa() {
|
|
4677
|
+
if (da) return jr;
|
|
4678
|
+
da = 1;
|
|
4679
|
+
var e = /* @__PURE__ */ sl(), n = /* @__PURE__ */ ll(), r = /* @__PURE__ */ Mr();
|
|
4678
4680
|
return jr = {
|
|
4679
4681
|
formats: r,
|
|
4680
4682
|
parse: n,
|
|
4681
4683
|
stringify: e
|
|
4682
4684
|
}, jr;
|
|
4683
4685
|
}
|
|
4684
|
-
var
|
|
4685
|
-
function
|
|
4686
|
-
if (
|
|
4687
|
-
|
|
4688
|
-
var e =
|
|
4686
|
+
var ha;
|
|
4687
|
+
function cl() {
|
|
4688
|
+
if (ha) return Te;
|
|
4689
|
+
ha = 1;
|
|
4690
|
+
var e = Ps();
|
|
4689
4691
|
function n() {
|
|
4690
4692
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
4691
4693
|
}
|
|
@@ -4733,7 +4735,7 @@ function ll() {
|
|
|
4733
4735
|
"ftp:": !0,
|
|
4734
4736
|
"gopher:": !0,
|
|
4735
4737
|
"file:": !0
|
|
4736
|
-
}, f = /* @__PURE__ */
|
|
4738
|
+
}, f = /* @__PURE__ */ Fa();
|
|
4737
4739
|
function g(h, T, x) {
|
|
4738
4740
|
if (h && typeof h == "object" && h instanceof n)
|
|
4739
4741
|
return h;
|
|
@@ -4743,45 +4745,45 @@ function ll() {
|
|
|
4743
4745
|
n.prototype.parse = function(h, T, x) {
|
|
4744
4746
|
if (typeof h != "string")
|
|
4745
4747
|
throw new TypeError("Parameter 'url' must be a string, not " + typeof h);
|
|
4746
|
-
var k = h.indexOf("?"), A = k !== -1 && k < h.indexOf("#") ? "?" : "#",
|
|
4747
|
-
|
|
4748
|
+
var k = h.indexOf("?"), A = k !== -1 && k < h.indexOf("#") ? "?" : "#", E = h.split(A), U = /\\/g;
|
|
4749
|
+
E[0] = E[0].replace(U, "/"), h = E.join(A);
|
|
4748
4750
|
var O = h;
|
|
4749
4751
|
if (O = O.trim(), !x && h.split("#").length === 1) {
|
|
4750
4752
|
var B = c.exec(O);
|
|
4751
4753
|
if (B)
|
|
4752
4754
|
return this.path = O, this.href = O, this.pathname = B[1], B[2] ? (this.search = B[2], T ? this.query = f.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : T && (this.search = "", this.query = {}), this;
|
|
4753
4755
|
}
|
|
4754
|
-
var
|
|
4755
|
-
if (
|
|
4756
|
-
|
|
4757
|
-
var G =
|
|
4758
|
-
this.protocol = G, O = O.substr(
|
|
4756
|
+
var L = r.exec(O);
|
|
4757
|
+
if (L) {
|
|
4758
|
+
L = L[0];
|
|
4759
|
+
var G = L.toLowerCase();
|
|
4760
|
+
this.protocol = G, O = O.substr(L.length);
|
|
4759
4761
|
}
|
|
4760
|
-
if (x ||
|
|
4762
|
+
if (x || L || O.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
4761
4763
|
var se = O.substr(0, 2) === "//";
|
|
4762
|
-
se && !(
|
|
4764
|
+
se && !(L && j[L]) && (O = O.substr(2), this.slashes = !0);
|
|
4763
4765
|
}
|
|
4764
|
-
if (!j[
|
|
4765
|
-
for (var ee = -1,
|
|
4766
|
-
var ne = O.indexOf(u[
|
|
4766
|
+
if (!j[L] && (se || L && !b[L])) {
|
|
4767
|
+
for (var ee = -1, R = 0; R < u.length; R++) {
|
|
4768
|
+
var ne = O.indexOf(u[R]);
|
|
4767
4769
|
ne !== -1 && (ee === -1 || ne < ee) && (ee = ne);
|
|
4768
4770
|
}
|
|
4769
4771
|
var N, q;
|
|
4770
4772
|
ee === -1 ? q = O.lastIndexOf("@") : q = O.lastIndexOf("@", ee), q !== -1 && (N = O.slice(0, q), O = O.slice(q + 1), this.auth = decodeURIComponent(N)), ee = -1;
|
|
4771
|
-
for (var
|
|
4772
|
-
var ne = O.indexOf(s[
|
|
4773
|
+
for (var R = 0; R < s.length; R++) {
|
|
4774
|
+
var ne = O.indexOf(s[R]);
|
|
4773
4775
|
ne !== -1 && (ee === -1 || ne < ee) && (ee = ne);
|
|
4774
4776
|
}
|
|
4775
4777
|
ee === -1 && (ee = O.length), this.host = O.slice(0, ee), O = O.slice(ee), this.parseHost(), this.hostname = this.hostname || "";
|
|
4776
4778
|
var F = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
4777
4779
|
if (!F)
|
|
4778
|
-
for (var P = this.hostname.split(/\./),
|
|
4779
|
-
var J = P[
|
|
4780
|
+
for (var P = this.hostname.split(/\./), R = 0, _ = P.length; R < _; R++) {
|
|
4781
|
+
var J = P[R];
|
|
4780
4782
|
if (J && !J.match(d)) {
|
|
4781
4783
|
for (var W = "", Y = 0, ae = J.length; Y < ae; Y++)
|
|
4782
4784
|
J.charCodeAt(Y) > 127 ? W += "x" : W += J[Y];
|
|
4783
4785
|
if (!W.match(d)) {
|
|
4784
|
-
var D = P.slice(0,
|
|
4786
|
+
var D = P.slice(0, R), I = P.slice(R + 1), H = J.match(m);
|
|
4785
4787
|
H && (D.push(H[1]), I.unshift(H[2])), I.length && (O = "/" + I.join(".") + O), this.hostname = D.join(".");
|
|
4786
4788
|
break;
|
|
4787
4789
|
}
|
|
@@ -4792,8 +4794,8 @@ function ll() {
|
|
|
4792
4794
|
this.host = K + M, this.href += this.host, F && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), O[0] !== "/" && (O = "/" + O));
|
|
4793
4795
|
}
|
|
4794
4796
|
if (!y[G])
|
|
4795
|
-
for (var
|
|
4796
|
-
var V = o[
|
|
4797
|
+
for (var R = 0, _ = o.length; R < _; R++) {
|
|
4798
|
+
var V = o[R];
|
|
4797
4799
|
if (O.indexOf(V) !== -1) {
|
|
4798
4800
|
var X = encodeURIComponent(V);
|
|
4799
4801
|
X === V && (X = escape(V)), O = O.split(V).join(X);
|
|
@@ -4803,8 +4805,8 @@ function ll() {
|
|
|
4803
4805
|
oe !== -1 && (this.hash = O.substr(oe), O = O.slice(0, oe));
|
|
4804
4806
|
var he = O.indexOf("?");
|
|
4805
4807
|
if (he !== -1 ? (this.search = O.substr(he), this.query = O.substr(he + 1), T && (this.query = f.parse(this.query)), O = O.slice(0, he)) : T && (this.search = "", this.query = {}), O && (this.pathname = O), b[G] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
4806
|
-
var M = this.pathname || "",
|
|
4807
|
-
this.path = M +
|
|
4808
|
+
var M = this.pathname || "", we = this.search || "";
|
|
4809
|
+
this.path = M + we;
|
|
4808
4810
|
}
|
|
4809
4811
|
return this.href = this.format(), this;
|
|
4810
4812
|
};
|
|
@@ -4814,15 +4816,15 @@ function ll() {
|
|
|
4814
4816
|
n.prototype.format = function() {
|
|
4815
4817
|
var h = this.auth || "";
|
|
4816
4818
|
h && (h = encodeURIComponent(h), h = h.replace(/%3A/i, ":"), h += "@");
|
|
4817
|
-
var T = this.protocol || "", x = this.pathname || "", k = this.hash || "", A = !1,
|
|
4818
|
-
this.host ? A = h + this.host : this.hostname && (A = h + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (A += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (
|
|
4819
|
+
var T = this.protocol || "", x = this.pathname || "", k = this.hash || "", A = !1, E = "";
|
|
4820
|
+
this.host ? A = h + this.host : this.hostname && (A = h + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (A += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (E = f.stringify(this.query, {
|
|
4819
4821
|
arrayFormat: "repeat",
|
|
4820
4822
|
addQueryPrefix: !1
|
|
4821
4823
|
}));
|
|
4822
|
-
var
|
|
4823
|
-
return T && T.substr(-1) !== ":" && (T += ":"), this.slashes || (!T || b[T]) && A !== !1 ? (A = "//" + (A || ""), x && x.charAt(0) !== "/" && (x = "/" + x)) : A || (A = ""), k && k.charAt(0) !== "#" && (k = "#" + k),
|
|
4824
|
+
var U = this.search || E && "?" + E || "";
|
|
4825
|
+
return T && T.substr(-1) !== ":" && (T += ":"), this.slashes || (!T || b[T]) && A !== !1 ? (A = "//" + (A || ""), x && x.charAt(0) !== "/" && (x = "/" + x)) : A || (A = ""), k && k.charAt(0) !== "#" && (k = "#" + k), U && U.charAt(0) !== "?" && (U = "?" + U), x = x.replace(/[?#]/g, function(O) {
|
|
4824
4826
|
return encodeURIComponent(O);
|
|
4825
|
-
}),
|
|
4827
|
+
}), U = U.replace("#", "%23"), T + A + x + U + k;
|
|
4826
4828
|
};
|
|
4827
4829
|
function S(h, T) {
|
|
4828
4830
|
return g(h, !1, !0).resolve(T);
|
|
@@ -4839,43 +4841,43 @@ function ll() {
|
|
|
4839
4841
|
T.parse(h, !1, !0), h = T;
|
|
4840
4842
|
}
|
|
4841
4843
|
for (var x = new n(), k = Object.keys(this), A = 0; A < k.length; A++) {
|
|
4842
|
-
var
|
|
4843
|
-
x[
|
|
4844
|
+
var E = k[A];
|
|
4845
|
+
x[E] = this[E];
|
|
4844
4846
|
}
|
|
4845
4847
|
if (x.hash = h.hash, h.href === "")
|
|
4846
4848
|
return x.href = x.format(), x;
|
|
4847
4849
|
if (h.slashes && !h.protocol) {
|
|
4848
|
-
for (var
|
|
4849
|
-
var B =
|
|
4850
|
+
for (var U = Object.keys(h), O = 0; O < U.length; O++) {
|
|
4851
|
+
var B = U[O];
|
|
4850
4852
|
B !== "protocol" && (x[B] = h[B]);
|
|
4851
4853
|
}
|
|
4852
4854
|
return b[x.protocol] && x.hostname && !x.pathname && (x.pathname = "/", x.path = x.pathname), x.href = x.format(), x;
|
|
4853
4855
|
}
|
|
4854
4856
|
if (h.protocol && h.protocol !== x.protocol) {
|
|
4855
4857
|
if (!b[h.protocol]) {
|
|
4856
|
-
for (var
|
|
4857
|
-
var se =
|
|
4858
|
+
for (var L = Object.keys(h), G = 0; G < L.length; G++) {
|
|
4859
|
+
var se = L[G];
|
|
4858
4860
|
x[se] = h[se];
|
|
4859
4861
|
}
|
|
4860
4862
|
return x.href = x.format(), x;
|
|
4861
4863
|
}
|
|
4862
4864
|
if (x.protocol = h.protocol, !h.host && !j[h.protocol]) {
|
|
4863
|
-
for (var
|
|
4865
|
+
for (var _ = (h.pathname || "").split("/"); _.length && !(h.host = _.shift()); )
|
|
4864
4866
|
;
|
|
4865
|
-
h.host || (h.host = ""), h.hostname || (h.hostname = ""),
|
|
4867
|
+
h.host || (h.host = ""), h.hostname || (h.hostname = ""), _[0] !== "" && _.unshift(""), _.length < 2 && _.unshift(""), x.pathname = _.join("/");
|
|
4866
4868
|
} else
|
|
4867
4869
|
x.pathname = h.pathname;
|
|
4868
4870
|
if (x.search = h.search, x.query = h.query, x.host = h.host || "", x.auth = h.auth, x.hostname = h.hostname || h.host, x.port = h.port, x.pathname || x.search) {
|
|
4869
|
-
var ee = x.pathname || "",
|
|
4870
|
-
x.path = ee +
|
|
4871
|
+
var ee = x.pathname || "", R = x.search || "";
|
|
4872
|
+
x.path = ee + R;
|
|
4871
4873
|
}
|
|
4872
4874
|
return x.slashes = x.slashes || h.slashes, x.href = x.format(), x;
|
|
4873
4875
|
}
|
|
4874
|
-
var ne = x.pathname && x.pathname.charAt(0) === "/", N = h.host || h.pathname && h.pathname.charAt(0) === "/", q = N || ne || x.host && h.pathname, F = q, P = x.pathname && x.pathname.split("/") || [],
|
|
4875
|
-
if (J && (x.hostname = "", x.port = null, x.host && (P[0] === "" ? P[0] = x.host : P.unshift(x.host)), x.host = "", h.protocol && (h.hostname = null, h.port = null, h.host && (
|
|
4876
|
-
x.host = h.host || h.host === "" ? h.host : x.host, x.hostname = h.hostname || h.hostname === "" ? h.hostname : x.hostname, x.search = h.search, x.query = h.query, P =
|
|
4877
|
-
else if (
|
|
4878
|
-
P || (P = []), P.pop(), P = P.concat(
|
|
4876
|
+
var ne = x.pathname && x.pathname.charAt(0) === "/", N = h.host || h.pathname && h.pathname.charAt(0) === "/", q = N || ne || x.host && h.pathname, F = q, P = x.pathname && x.pathname.split("/") || [], _ = h.pathname && h.pathname.split("/") || [], J = x.protocol && !b[x.protocol];
|
|
4877
|
+
if (J && (x.hostname = "", x.port = null, x.host && (P[0] === "" ? P[0] = x.host : P.unshift(x.host)), x.host = "", h.protocol && (h.hostname = null, h.port = null, h.host && (_[0] === "" ? _[0] = h.host : _.unshift(h.host)), h.host = null), q = q && (_[0] === "" || P[0] === "")), N)
|
|
4878
|
+
x.host = h.host || h.host === "" ? h.host : x.host, x.hostname = h.hostname || h.hostname === "" ? h.hostname : x.hostname, x.search = h.search, x.query = h.query, P = _;
|
|
4879
|
+
else if (_.length)
|
|
4880
|
+
P || (P = []), P.pop(), P = P.concat(_), x.search = h.search, x.query = h.query;
|
|
4879
4881
|
else if (h.search != null) {
|
|
4880
4882
|
if (J) {
|
|
4881
4883
|
x.host = P.shift(), x.hostname = x.host;
|
|
@@ -4904,12 +4906,12 @@ function ll() {
|
|
|
4904
4906
|
T && (T = T[0], T !== ":" && (this.port = T.substr(1)), h = h.substr(0, h.length - T.length)), h && (this.hostname = h);
|
|
4905
4907
|
}, Te.parse = g, Te.resolve = S, Te.resolveObject = C, Te.format = v, Te.Url = n, Te;
|
|
4906
4908
|
}
|
|
4907
|
-
var
|
|
4909
|
+
var wr = cl(), $r = /* @__PURE__ */ Fa(), ul = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), pl = class {
|
|
4908
4910
|
constructor(e, n = {}) {
|
|
4909
4911
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4910
4912
|
harIsAlreadyEncoded: !1,
|
|
4911
4913
|
...n
|
|
4912
|
-
}, this.requests = [],
|
|
4914
|
+
}, this.requests = [], ul(e) ? this.entries = e.log.entries : this.entries = [
|
|
4913
4915
|
{
|
|
4914
4916
|
request: e
|
|
4915
4917
|
}
|
|
@@ -4942,7 +4944,7 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
4942
4944
|
cookiesObj: {},
|
|
4943
4945
|
allHeaders: {}
|
|
4944
4946
|
};
|
|
4945
|
-
if (r.queryString && r.queryString.length && (r.queryObj = r.queryString.reduce(
|
|
4947
|
+
if (r.queryString && r.queryString.length && (r.queryObj = r.queryString.reduce(an, {})), r.headers && r.headers.length) {
|
|
4946
4948
|
const p = /^HTTP\/2/;
|
|
4947
4949
|
r.headersObj = r.headers.reduce((d, { name: m, value: y }) => {
|
|
4948
4950
|
const j = p.exec(r.httpVersion) ? m.toLocaleLowerCase() : m;
|
|
@@ -4980,7 +4982,7 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
4980
4982
|
}
|
|
4981
4983
|
break;
|
|
4982
4984
|
case "application/x-www-form-urlencoded":
|
|
4983
|
-
r.postData.params ? (r.postData.paramsObj = r.postData.params.reduce(
|
|
4985
|
+
r.postData.params ? (r.postData.paramsObj = r.postData.params.reduce(an, {}), r.postData.text = $r.stringify(r.postData.paramsObj)) : r.postData.text = "";
|
|
4984
4986
|
break;
|
|
4985
4987
|
case "text/json":
|
|
4986
4988
|
case "text/x-json":
|
|
@@ -4997,16 +4999,16 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
4997
4999
|
const c = {
|
|
4998
5000
|
...r.allHeaders,
|
|
4999
5001
|
...r.headersObj
|
|
5000
|
-
}, i =
|
|
5002
|
+
}, i = wr.parse(r.url, !0, !0);
|
|
5001
5003
|
r.queryObj = {
|
|
5002
5004
|
...r.queryObj,
|
|
5003
5005
|
...i.query
|
|
5004
5006
|
};
|
|
5005
5007
|
let t;
|
|
5006
|
-
n.harIsAlreadyEncoded ? t =
|
|
5008
|
+
n.harIsAlreadyEncoded ? t = $r.stringify(r.queryObj, {
|
|
5007
5009
|
encode: !1,
|
|
5008
5010
|
indices: !1
|
|
5009
|
-
}) : t =
|
|
5011
|
+
}) : t = $r.stringify(r.queryObj, {
|
|
5010
5012
|
indices: !1
|
|
5011
5013
|
});
|
|
5012
5014
|
const o = {
|
|
@@ -5014,11 +5016,11 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
5014
5016
|
query: r.queryObj,
|
|
5015
5017
|
search: t,
|
|
5016
5018
|
path: t ? `${i.pathname}?${t}` : i.pathname
|
|
5017
|
-
}, s =
|
|
5019
|
+
}, s = wr.format({
|
|
5018
5020
|
...i,
|
|
5019
5021
|
query: null,
|
|
5020
5022
|
search: null
|
|
5021
|
-
}), u =
|
|
5023
|
+
}), u = wr.format({
|
|
5022
5024
|
...i,
|
|
5023
5025
|
...o
|
|
5024
5026
|
});
|
|
@@ -5032,14 +5034,14 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
5032
5034
|
}
|
|
5033
5035
|
convert(e, n, r) {
|
|
5034
5036
|
this.initCalled || this.init(), !r && n && (r = n);
|
|
5035
|
-
const a =
|
|
5037
|
+
const a = Ts[e];
|
|
5036
5038
|
if (!a)
|
|
5037
5039
|
return !1;
|
|
5038
5040
|
const { convert: c } = a.clientsById[n || a.info.default];
|
|
5039
5041
|
return this.requests.map((t) => c(t, r));
|
|
5040
5042
|
}
|
|
5041
5043
|
};
|
|
5042
|
-
const
|
|
5044
|
+
const fl = (e) => {
|
|
5043
5045
|
const n = (r) => typeof r == "string" ? r : JSON.stringify(r);
|
|
5044
5046
|
try {
|
|
5045
5047
|
const r = e && JSON.parse(e);
|
|
@@ -5047,16 +5049,16 @@ const pl = (e) => {
|
|
|
5047
5049
|
} catch {
|
|
5048
5050
|
return [];
|
|
5049
5051
|
}
|
|
5050
|
-
},
|
|
5052
|
+
}, dl = ({
|
|
5051
5053
|
operation: e,
|
|
5052
5054
|
selectedServer: n,
|
|
5053
5055
|
exampleBody: r
|
|
5054
5056
|
}) => {
|
|
5055
5057
|
const c = r.mimeType === "multipart/form-data" || r.mimeType === "application/x-www-form-urlencoded" ? {
|
|
5056
5058
|
mimeType: r.mimeType,
|
|
5057
|
-
params:
|
|
5059
|
+
params: fl(r.text)
|
|
5058
5060
|
} : r;
|
|
5059
|
-
return new
|
|
5061
|
+
return new pl({
|
|
5060
5062
|
method: e.method.toUpperCase(),
|
|
5061
5063
|
url: n + e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
5062
5064
|
postData: c,
|
|
@@ -5076,7 +5078,7 @@ const pl = (e) => {
|
|
|
5076
5078
|
headersSize: 0,
|
|
5077
5079
|
bodySize: 0
|
|
5078
5080
|
});
|
|
5079
|
-
},
|
|
5081
|
+
}, hl = (e, n) => {
|
|
5080
5082
|
let r;
|
|
5081
5083
|
switch (n) {
|
|
5082
5084
|
case "shell":
|
|
@@ -5118,7 +5120,7 @@ const pl = (e) => {
|
|
|
5118
5120
|
}
|
|
5119
5121
|
return r ? r[0] : "";
|
|
5120
5122
|
}, Pe = (e, n) => {
|
|
5121
|
-
if (!e ||
|
|
5123
|
+
if (!e || vo(e))
|
|
5122
5124
|
return null;
|
|
5123
5125
|
if (e.example !== void 0)
|
|
5124
5126
|
return e.example;
|
|
@@ -5187,7 +5189,7 @@ const pl = (e) => {
|
|
|
5187
5189
|
purple: "text-purple-600",
|
|
5188
5190
|
indigo: "text-indigo-600",
|
|
5189
5191
|
gray: "text-gray-600"
|
|
5190
|
-
},
|
|
5192
|
+
}, ml = {
|
|
5191
5193
|
get: xe.green,
|
|
5192
5194
|
post: xe.blue,
|
|
5193
5195
|
put: xe.yellow,
|
|
@@ -5196,8 +5198,8 @@ const pl = (e) => {
|
|
|
5196
5198
|
options: xe.indigo,
|
|
5197
5199
|
head: xe.gray,
|
|
5198
5200
|
trace: xe.gray
|
|
5199
|
-
},
|
|
5200
|
-
|
|
5201
|
+
}, Ha = (e) => ml[e.toLocaleLowerCase()] ?? xe.gray;
|
|
5202
|
+
Je(
|
|
5201
5203
|
/* GraphQL */
|
|
5202
5204
|
`
|
|
5203
5205
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -5210,7 +5212,7 @@ Ve(
|
|
|
5210
5212
|
}
|
|
5211
5213
|
`
|
|
5212
5214
|
);
|
|
5213
|
-
const
|
|
5215
|
+
const yl = [
|
|
5214
5216
|
{ value: "shell", label: "cURL" },
|
|
5215
5217
|
{ value: "js", label: "JavaScript" },
|
|
5216
5218
|
{ value: "python", label: "Python" },
|
|
@@ -5222,13 +5224,13 @@ const ml = [
|
|
|
5222
5224
|
{ value: "php", label: "PHP" },
|
|
5223
5225
|
{ value: "ruby", label: "Ruby" },
|
|
5224
5226
|
{ value: "swift", label: "Swift" }
|
|
5225
|
-
],
|
|
5227
|
+
], gl = ({
|
|
5226
5228
|
operation: e,
|
|
5227
5229
|
selectedResponse: n,
|
|
5228
5230
|
globalSelectedServer: r,
|
|
5229
5231
|
shouldLazyHighlight: a
|
|
5230
5232
|
}) => {
|
|
5231
|
-
const { options: c } = ct(), i =
|
|
5233
|
+
const { options: c } = ct(), i = co(), t = uo(), o = Ha(e.method), [s, u] = Ya(), [, p] = Ta(), d = c?.supportedLanguages ?? yl, m = s.get("lang") ?? c?.examplesLanguage ?? "shell", y = d.find((O) => O.value === m)?.value ?? d.at(0)?.value ?? "shell", j = e.requestBody?.content, b = j && c?.transformExamples ? c.transformExamples({
|
|
5232
5234
|
auth: i,
|
|
5233
5235
|
type: "request",
|
|
5234
5236
|
operation: e,
|
|
@@ -5242,7 +5244,7 @@ const ml = [
|
|
|
5242
5244
|
), S = v?.examples?.at(
|
|
5243
5245
|
f.exampleIndex
|
|
5244
5246
|
), C = S ? S?.value ?? S : v?.schema ? Pe(v?.schema) : void 0, h = /* @__PURE__ */ l.jsx(
|
|
5245
|
-
|
|
5247
|
+
to,
|
|
5246
5248
|
{
|
|
5247
5249
|
path: e.path,
|
|
5248
5250
|
renderParam: ({ name: O }) => /* @__PURE__ */ l.jsx(
|
|
@@ -5256,7 +5258,7 @@ const ml = [
|
|
|
5256
5258
|
}
|
|
5257
5259
|
)
|
|
5258
5260
|
}
|
|
5259
|
-
), T = r || e.servers.at(0)?.url || "", x =
|
|
5261
|
+
), T = r || e.servers.at(0)?.url || "", x = Oo(() => {
|
|
5260
5262
|
const O = c?.generateCodeSnippet?.({
|
|
5261
5263
|
selectedLang: y,
|
|
5262
5264
|
selectedServer: T,
|
|
@@ -5266,7 +5268,7 @@ const ml = [
|
|
|
5266
5268
|
auth: i
|
|
5267
5269
|
});
|
|
5268
5270
|
if (O) return O;
|
|
5269
|
-
const B =
|
|
5271
|
+
const B = dl({
|
|
5270
5272
|
operation: e,
|
|
5271
5273
|
selectedServer: T,
|
|
5272
5274
|
exampleBody: C ? {
|
|
@@ -5274,7 +5276,7 @@ const ml = [
|
|
|
5274
5276
|
text: JSON.stringify(C, null, 2)
|
|
5275
5277
|
} : { mimeType: v?.mediaType ?? "application/json" }
|
|
5276
5278
|
});
|
|
5277
|
-
return
|
|
5279
|
+
return hl(B, y);
|
|
5278
5280
|
}, [
|
|
5279
5281
|
C,
|
|
5280
5282
|
e,
|
|
@@ -5284,7 +5286,7 @@ const ml = [
|
|
|
5284
5286
|
c,
|
|
5285
5287
|
i,
|
|
5286
5288
|
t
|
|
5287
|
-
]), [k, A] =
|
|
5289
|
+
]), [k, A] = ai({ rootMargin: "200px 0px 200px 0px" }), E = A && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !c?.disablePlayground), U = e.responses.some(
|
|
5288
5290
|
(O) => O.content?.some((B) => (B.examples?.length ?? 0) > 0)
|
|
5289
5291
|
);
|
|
5290
5292
|
return /* @__PURE__ */ l.jsxs(
|
|
@@ -5298,7 +5300,7 @@ const ml = [
|
|
|
5298
5300
|
/* @__PURE__ */ l.jsx(pt, { className: "py-1.5", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center flex-wrap gap-2 justify-between w-full", children: [
|
|
5299
5301
|
/* @__PURE__ */ l.jsxs("span", { className: "font-mono wrap-break-word leading-6 space-x-1", children: [
|
|
5300
5302
|
/* @__PURE__ */ l.jsx(
|
|
5301
|
-
|
|
5303
|
+
Be,
|
|
5302
5304
|
{
|
|
5303
5305
|
variant: "outline",
|
|
5304
5306
|
className: fe(
|
|
@@ -5312,7 +5314,7 @@ const ml = [
|
|
|
5312
5314
|
] }),
|
|
5313
5315
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
5314
5316
|
/* @__PURE__ */ l.jsx(
|
|
5315
|
-
|
|
5317
|
+
ze,
|
|
5316
5318
|
{
|
|
5317
5319
|
className: "py-0.5 h-fit max-w-32 truncate bg-background",
|
|
5318
5320
|
value: y,
|
|
@@ -5322,7 +5324,7 @@ const ml = [
|
|
|
5322
5324
|
});
|
|
5323
5325
|
},
|
|
5324
5326
|
children: d.map((O) => /* @__PURE__ */ l.jsx(
|
|
5325
|
-
|
|
5327
|
+
Ge,
|
|
5326
5328
|
{
|
|
5327
5329
|
value: O.value,
|
|
5328
5330
|
children: O.label
|
|
@@ -5331,8 +5333,8 @@ const ml = [
|
|
|
5331
5333
|
))
|
|
5332
5334
|
}
|
|
5333
5335
|
),
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
+
E && /* @__PURE__ */ l.jsx(
|
|
5337
|
+
li,
|
|
5336
5338
|
{
|
|
5337
5339
|
servers: e.servers.map((O) => O.url),
|
|
5338
5340
|
operation: e,
|
|
@@ -5341,8 +5343,8 @@ const ml = [
|
|
|
5341
5343
|
)
|
|
5342
5344
|
] })
|
|
5343
5345
|
] }) }),
|
|
5344
|
-
/* @__PURE__ */ l.jsx(
|
|
5345
|
-
|
|
5346
|
+
/* @__PURE__ */ l.jsx(Ur, { children: a && !A ? /* @__PURE__ */ l.jsx(_r, { code: x ?? "" }) : /* @__PURE__ */ l.jsx(
|
|
5347
|
+
Oa,
|
|
5346
5348
|
{
|
|
5347
5349
|
embedded: !0,
|
|
5348
5350
|
language: y,
|
|
@@ -5352,7 +5354,7 @@ const ml = [
|
|
|
5352
5354
|
) })
|
|
5353
5355
|
] }),
|
|
5354
5356
|
b && S ? /* @__PURE__ */ l.jsx(
|
|
5355
|
-
|
|
5357
|
+
pi,
|
|
5356
5358
|
{
|
|
5357
5359
|
content: b,
|
|
5358
5360
|
onExampleChange: (O) => {
|
|
@@ -5364,15 +5366,15 @@ const ml = [
|
|
|
5364
5366
|
shouldLazyHighlight: a
|
|
5365
5367
|
}
|
|
5366
5368
|
) : b && C ? /* @__PURE__ */ l.jsx(
|
|
5367
|
-
|
|
5369
|
+
si,
|
|
5368
5370
|
{
|
|
5369
5371
|
isOnScreen: A,
|
|
5370
5372
|
shouldLazyHighlight: a,
|
|
5371
5373
|
code: JSON.stringify(C, null, 2)
|
|
5372
5374
|
}
|
|
5373
5375
|
) : null,
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
+
U ? /* @__PURE__ */ l.jsx(
|
|
5377
|
+
nn,
|
|
5376
5378
|
{
|
|
5377
5379
|
isOnScreen: A,
|
|
5378
5380
|
shouldLazyHighlight: a,
|
|
@@ -5389,7 +5391,7 @@ const ml = [
|
|
|
5389
5391
|
}))
|
|
5390
5392
|
}
|
|
5391
5393
|
) : /* @__PURE__ */ l.jsx(
|
|
5392
|
-
|
|
5394
|
+
nn,
|
|
5393
5395
|
{
|
|
5394
5396
|
isGenerated: !0,
|
|
5395
5397
|
isOnScreen: A,
|
|
@@ -5407,17 +5409,17 @@ const ml = [
|
|
|
5407
5409
|
]
|
|
5408
5410
|
}
|
|
5409
5411
|
);
|
|
5410
|
-
},
|
|
5412
|
+
}, vl = ["path", "query", "header", "cookie"], xl = ({
|
|
5411
5413
|
operationFragment: e,
|
|
5412
5414
|
globalSelectedServer: n,
|
|
5413
5415
|
shouldLazyHighlight: r
|
|
5414
5416
|
}) => {
|
|
5415
|
-
const a =
|
|
5417
|
+
const a = Go(bl, e), c = xo(
|
|
5416
5418
|
a.parameters ?? [],
|
|
5417
5419
|
(d) => d.in
|
|
5418
5420
|
), { options: i } = ct(), t = n || a.servers.at(0)?.url, o = a.responses.at(0), [s, u] = ge(o?.statusCode), p = a.extensions?.["x-mcp-server"] !== void 0;
|
|
5419
5421
|
return /* @__PURE__ */ l.jsxs("div", { children: [
|
|
5420
|
-
a.deprecated && /* @__PURE__ */ l.jsx(
|
|
5422
|
+
a.deprecated && /* @__PURE__ */ l.jsx(Be, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
|
|
5421
5423
|
/* @__PURE__ */ l.jsxs(
|
|
5422
5424
|
"div",
|
|
5423
5425
|
{
|
|
@@ -5427,7 +5429,7 @@ const ml = [
|
|
|
5427
5429
|
),
|
|
5428
5430
|
children: [
|
|
5429
5431
|
/* @__PURE__ */ l.jsx(
|
|
5430
|
-
|
|
5432
|
+
Me,
|
|
5431
5433
|
{
|
|
5432
5434
|
level: 2,
|
|
5433
5435
|
id: a.slug,
|
|
@@ -5437,14 +5439,14 @@ const ml = [
|
|
|
5437
5439
|
}
|
|
5438
5440
|
),
|
|
5439
5441
|
!p && /* @__PURE__ */ l.jsxs("div", { className: "text-sm flex gap-2 font-mono col-span-full", children: [
|
|
5440
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
5441
|
-
/* @__PURE__ */ l.jsxs(
|
|
5442
|
+
/* @__PURE__ */ l.jsx("span", { className: Ha(a.method), children: a.method.toUpperCase() }),
|
|
5443
|
+
/* @__PURE__ */ l.jsxs(ho, { className: "max-w-full truncate flex cursor-pointer", children: [
|
|
5442
5444
|
t && /* @__PURE__ */ l.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: t.replace(/\/$/, "") }),
|
|
5443
5445
|
/* @__PURE__ */ l.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: a.path })
|
|
5444
5446
|
] })
|
|
5445
5447
|
] }),
|
|
5446
5448
|
p ? /* @__PURE__ */ l.jsx("div", { className: "col-span-full", children: /* @__PURE__ */ l.jsx(
|
|
5447
|
-
|
|
5449
|
+
ei,
|
|
5448
5450
|
{
|
|
5449
5451
|
serverUrl: t,
|
|
5450
5452
|
summary: a.summary ?? void 0,
|
|
@@ -5459,15 +5461,15 @@ const ml = [
|
|
|
5459
5461
|
),
|
|
5460
5462
|
children: [
|
|
5461
5463
|
a.description && /* @__PURE__ */ l.jsx(
|
|
5462
|
-
|
|
5464
|
+
Ue,
|
|
5463
5465
|
{
|
|
5464
5466
|
className: "max-w-full prose-img:max-w-prose",
|
|
5465
5467
|
content: a.description
|
|
5466
5468
|
}
|
|
5467
5469
|
),
|
|
5468
|
-
a.parameters && a.parameters.length > 0 &&
|
|
5470
|
+
a.parameters && a.parameters.length > 0 && vl.flatMap(
|
|
5469
5471
|
(d) => c[d]?.length ? /* @__PURE__ */ l.jsx(
|
|
5470
|
-
|
|
5472
|
+
ni,
|
|
5471
5473
|
{
|
|
5472
5474
|
summary: a.summary ?? void 0,
|
|
5473
5475
|
id: a.slug,
|
|
@@ -5477,12 +5479,12 @@ const ml = [
|
|
|
5477
5479
|
d
|
|
5478
5480
|
) : []
|
|
5479
5481
|
),
|
|
5480
|
-
St(a.requestBody?.content?.at(0)?.schema, () => /* @__PURE__ */ l.jsx(
|
|
5482
|
+
St(a.requestBody?.content?.at(0)?.schema, () => /* @__PURE__ */ l.jsx(Yr, { className: "my-4" })),
|
|
5481
5483
|
St(
|
|
5482
5484
|
a.requestBody?.content?.at(0)?.schema,
|
|
5483
5485
|
(d) => /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
5484
5486
|
/* @__PURE__ */ l.jsxs(
|
|
5485
|
-
|
|
5487
|
+
Me,
|
|
5486
5488
|
{
|
|
5487
5489
|
level: 3,
|
|
5488
5490
|
className: "capitalize flex items-center gap-2",
|
|
@@ -5495,16 +5497,16 @@ const ml = [
|
|
|
5495
5497
|
] }),
|
|
5496
5498
|
"Request Body",
|
|
5497
5499
|
" ",
|
|
5498
|
-
a.requestBody?.required === !1 ? /* @__PURE__ */ l.jsx(
|
|
5500
|
+
a.requestBody?.required === !1 ? /* @__PURE__ */ l.jsx(Be, { variant: "muted", children: "optional" }) : ""
|
|
5499
5501
|
]
|
|
5500
5502
|
}
|
|
5501
5503
|
),
|
|
5502
5504
|
/* @__PURE__ */ l.jsx(Ir, { schema: d })
|
|
5503
5505
|
] })
|
|
5504
5506
|
),
|
|
5505
|
-
/* @__PURE__ */ l.jsx(
|
|
5507
|
+
/* @__PURE__ */ l.jsx(Yr, { className: "my-4" }),
|
|
5506
5508
|
a.responses.length > 0 && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
5507
|
-
/* @__PURE__ */ l.jsxs(
|
|
5509
|
+
/* @__PURE__ */ l.jsxs(Me, { level: 3, id: `${a.slug}/responses`, children: [
|
|
5508
5510
|
a.summary && /* @__PURE__ */ l.jsxs(Tr, { children: [
|
|
5509
5511
|
a.summary,
|
|
5510
5512
|
" ›",
|
|
@@ -5513,7 +5515,7 @@ const ml = [
|
|
|
5513
5515
|
"Responses"
|
|
5514
5516
|
] }),
|
|
5515
5517
|
/* @__PURE__ */ l.jsx(
|
|
5516
|
-
|
|
5518
|
+
Zo,
|
|
5517
5519
|
{
|
|
5518
5520
|
responses: a.responses,
|
|
5519
5521
|
selectedResponse: s,
|
|
@@ -5525,7 +5527,7 @@ const ml = [
|
|
|
5525
5527
|
}
|
|
5526
5528
|
),
|
|
5527
5529
|
St(!i?.disableSidecar && !p, () => /* @__PURE__ */ l.jsx(
|
|
5528
|
-
|
|
5530
|
+
gl,
|
|
5529
5531
|
{
|
|
5530
5532
|
selectedResponse: s,
|
|
5531
5533
|
operation: a,
|
|
@@ -5539,10 +5541,10 @@ const ml = [
|
|
|
5539
5541
|
)
|
|
5540
5542
|
] });
|
|
5541
5543
|
};
|
|
5542
|
-
function
|
|
5544
|
+
function ma(e, n = 160) {
|
|
5543
5545
|
return e ? e.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/!\[.*?\]\(.*?\)/g, "").replace(/[_*`~]/g, "").replace(/^(?:>|\s*#+|-{3,}|\*{3,})/gm, "").replace(/[|>{}[\]]/g, "").replace(/\s+/g, " ").trim().substring(0, n).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'") : "";
|
|
5544
5546
|
}
|
|
5545
|
-
const
|
|
5547
|
+
const bl = Je(
|
|
5546
5548
|
/* GraphQL */
|
|
5547
5549
|
`
|
|
5548
5550
|
fragment OperationsFragment on OperationItem {
|
|
@@ -5614,7 +5616,7 @@ const xl = Ve(
|
|
|
5614
5616
|
}
|
|
5615
5617
|
}
|
|
5616
5618
|
`
|
|
5617
|
-
),
|
|
5619
|
+
), jl = Je(
|
|
5618
5620
|
/* GraphQL */
|
|
5619
5621
|
`
|
|
5620
5622
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
@@ -5623,7 +5625,7 @@ const xl = Ve(
|
|
|
5623
5625
|
}
|
|
5624
5626
|
}
|
|
5625
5627
|
`
|
|
5626
|
-
),
|
|
5628
|
+
), wl = Je(
|
|
5627
5629
|
/* GraphQL */
|
|
5628
5630
|
`
|
|
5629
5631
|
query OperationsForTag(
|
|
@@ -5663,21 +5665,21 @@ const xl = Ve(
|
|
|
5663
5665
|
}
|
|
5664
5666
|
}
|
|
5665
5667
|
`
|
|
5666
|
-
), $l = 30,
|
|
5668
|
+
), $l = 30, ec = ({
|
|
5667
5669
|
tag: e,
|
|
5668
5670
|
untagged: n
|
|
5669
5671
|
}) => {
|
|
5670
|
-
const { input: r, type: a, versions: c, version: i, options: t } = ct(), { tag: o } =
|
|
5672
|
+
const { input: r, type: a, versions: c, version: i, options: t } = ct(), { tag: o } = Xa(), s = Sr(wl, {
|
|
5671
5673
|
input: r,
|
|
5672
5674
|
type: a,
|
|
5673
5675
|
tag: e ?? o,
|
|
5674
5676
|
untagged: n
|
|
5675
|
-
}), u =
|
|
5677
|
+
}), u = ya(s), {
|
|
5676
5678
|
data: { schema: p }
|
|
5677
|
-
} = u, { selectedServer: d } =
|
|
5679
|
+
} = u, { selectedServer: d } = ba(
|
|
5678
5680
|
p.servers
|
|
5679
|
-
), m = p.title, y = p.summary, j = p.description, b =
|
|
5680
|
-
if (
|
|
5681
|
+
), m = p.title, y = p.summary, j = p.description, b = Za(), f = Sr(jl, { input: r, type: a });
|
|
5682
|
+
if (Va({
|
|
5681
5683
|
...f,
|
|
5682
5684
|
enabled: typeof window < "u",
|
|
5683
5685
|
notifyOnChangeProps: []
|
|
@@ -5686,16 +5688,16 @@ const xl = Ve(
|
|
|
5686
5688
|
/* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground font-medium", children: "No operations found" }),
|
|
5687
5689
|
/* @__PURE__ */ l.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "This API doesn't have any operations defined yet." })
|
|
5688
5690
|
] });
|
|
5689
|
-
const { operations: g, next: v, prev: S, description: C } = p.tag, h = g.length > $l, T = C ?
|
|
5691
|
+
const { operations: g, next: v, prev: S, description: C } = p.tag, h = g.length > $l, T = C ? ma(C) : y || (j ? ma(j) : void 0), x = Object.entries(c).length > 1, k = t?.showVersionSelect === "always" || x && t?.showVersionSelect !== "hide", A = {
|
|
5690
5692
|
prev: S ? {
|
|
5691
5693
|
to: `../${S.slug}`,
|
|
5692
5694
|
label: S.extensions?.["x-displayName"] ?? S.name
|
|
5693
5695
|
} : void 0,
|
|
5694
5696
|
next: v ? {
|
|
5695
|
-
to: `../${v.slug ??
|
|
5697
|
+
to: `../${v.slug ?? ro}`,
|
|
5696
5698
|
label: v.extensions?.["x-displayName"] ?? v.name ?? "Other endpoints"
|
|
5697
5699
|
} : void 0
|
|
5698
|
-
},
|
|
5700
|
+
}, E = p.tag.extensions?.["x-displayName"] ?? p.tag.name, U = [E, m].filter(Boolean).join(" - "), O = i != null ? c[i] : void 0, B = typeof r == "string" ? a === "url" ? r : O?.downloadUrl : void 0;
|
|
5699
5701
|
return /* @__PURE__ */ l.jsxs(
|
|
5700
5702
|
"div",
|
|
5701
5703
|
{
|
|
@@ -5704,29 +5706,29 @@ const xl = Ve(
|
|
|
5704
5706
|
"data-pagefind-meta": "section:openapi",
|
|
5705
5707
|
children: [
|
|
5706
5708
|
/* @__PURE__ */ l.jsx(Tr, { name: "category", children: m }),
|
|
5707
|
-
/* @__PURE__ */ l.jsxs(
|
|
5708
|
-
|
|
5709
|
+
/* @__PURE__ */ l.jsxs(Ja, { children: [
|
|
5710
|
+
U && /* @__PURE__ */ l.jsx("title", { children: U }),
|
|
5709
5711
|
T && /* @__PURE__ */ l.jsx("meta", { name: "description", content: T })
|
|
5710
5712
|
] }),
|
|
5711
5713
|
/* @__PURE__ */ l.jsxs("div", { className: "mb-8", children: [
|
|
5712
5714
|
/* @__PURE__ */ l.jsxs(
|
|
5713
|
-
|
|
5715
|
+
Er,
|
|
5714
5716
|
{
|
|
5715
5717
|
className: "w-full",
|
|
5716
5718
|
defaultOpen: t?.expandApiInformation,
|
|
5717
5719
|
children: [
|
|
5718
5720
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4 sm:flex-row justify-around items-start sm:items-end", children: [
|
|
5719
5721
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
5720
|
-
/* @__PURE__ */ l.jsx(
|
|
5722
|
+
/* @__PURE__ */ l.jsx(lo, { children: m }),
|
|
5721
5723
|
/* @__PURE__ */ l.jsxs(
|
|
5722
|
-
|
|
5724
|
+
Me,
|
|
5723
5725
|
{
|
|
5724
5726
|
level: 1,
|
|
5725
5727
|
id: "description",
|
|
5726
5728
|
registerNavigationAnchor: !0,
|
|
5727
5729
|
className: "mb-0",
|
|
5728
5730
|
children: [
|
|
5729
|
-
|
|
5731
|
+
E,
|
|
5730
5732
|
k && /* @__PURE__ */ l.jsxs("span", { className: "text-xl text-muted-foreground ms-1.5", children: [
|
|
5731
5733
|
" ",
|
|
5732
5734
|
"(",
|
|
@@ -5736,28 +5738,28 @@ const xl = Ve(
|
|
|
5736
5738
|
]
|
|
5737
5739
|
}
|
|
5738
5740
|
),
|
|
5739
|
-
/* @__PURE__ */ l.jsx(
|
|
5741
|
+
/* @__PURE__ */ l.jsx(Yo, {})
|
|
5740
5742
|
] }),
|
|
5741
5743
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
|
|
5742
5744
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
5743
5745
|
k && /* @__PURE__ */ l.jsxs(
|
|
5744
|
-
|
|
5746
|
+
no,
|
|
5745
5747
|
{
|
|
5746
|
-
onValueChange: (
|
|
5748
|
+
onValueChange: (L) => (
|
|
5747
5749
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
5748
|
-
b(c[
|
|
5750
|
+
b(c[L].path)
|
|
5749
5751
|
),
|
|
5750
5752
|
defaultValue: i,
|
|
5751
5753
|
disabled: !x,
|
|
5752
5754
|
children: [
|
|
5753
|
-
/* @__PURE__ */ l.jsx(
|
|
5754
|
-
/* @__PURE__ */ l.jsx(
|
|
5755
|
+
/* @__PURE__ */ l.jsx(ao, { className: "w-[180px]", size: "sm", children: /* @__PURE__ */ l.jsx(oo, { placeholder: "Select version" }) }),
|
|
5756
|
+
/* @__PURE__ */ l.jsx(io, { children: Object.entries(c).map(([L, { label: G }]) => /* @__PURE__ */ l.jsx(so, { value: L, children: G }, L)) })
|
|
5755
5757
|
]
|
|
5756
5758
|
}
|
|
5757
5759
|
),
|
|
5758
|
-
t?.schemaDownload?.enabled && B && /* @__PURE__ */ l.jsx(
|
|
5760
|
+
t?.schemaDownload?.enabled && B && /* @__PURE__ */ l.jsx(Jo, { downloadUrl: B })
|
|
5759
5761
|
] }),
|
|
5760
|
-
p.description && /* @__PURE__ */ l.jsxs(
|
|
5762
|
+
p.description && /* @__PURE__ */ l.jsxs(Rr, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
|
|
5761
5763
|
/* @__PURE__ */ l.jsx("span", { children: "API information" }),
|
|
5762
5764
|
/* @__PURE__ */ l.jsx(
|
|
5763
5765
|
lt,
|
|
@@ -5777,7 +5779,7 @@ const xl = Ve(
|
|
|
5777
5779
|
] })
|
|
5778
5780
|
] }),
|
|
5779
5781
|
p.description && /* @__PURE__ */ l.jsx(Ar, { className: "CollapsibleContent", children: /* @__PURE__ */ l.jsx("div", { className: "mt-4 max-w-full border rounded-sm bg-muted/25", children: /* @__PURE__ */ l.jsx(
|
|
5780
|
-
|
|
5782
|
+
Ue,
|
|
5781
5783
|
{
|
|
5782
5784
|
className: "max-w-full prose-img:max-w-prose border-border p-3 lg:p-5",
|
|
5783
5785
|
content: p.description
|
|
@@ -5787,7 +5789,7 @@ const xl = Ve(
|
|
|
5787
5789
|
}
|
|
5788
5790
|
),
|
|
5789
5791
|
C && /* @__PURE__ */ l.jsx(
|
|
5790
|
-
|
|
5792
|
+
Ue,
|
|
5791
5793
|
{
|
|
5792
5794
|
className: "my-4 max-w-full prose-img:max-w-prose",
|
|
5793
5795
|
content: C
|
|
@@ -5796,17 +5798,17 @@ const xl = Ve(
|
|
|
5796
5798
|
] }),
|
|
5797
5799
|
/* @__PURE__ */ l.jsx("hr", {}),
|
|
5798
5800
|
/* @__PURE__ */ l.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
|
|
5799
|
-
g.map((
|
|
5801
|
+
g.map((L) => /* @__PURE__ */ l.jsxs("div", { children: [
|
|
5800
5802
|
/* @__PURE__ */ l.jsx(
|
|
5801
|
-
|
|
5803
|
+
xl,
|
|
5802
5804
|
{
|
|
5803
|
-
operationFragment:
|
|
5805
|
+
operationFragment: L,
|
|
5804
5806
|
globalSelectedServer: d,
|
|
5805
5807
|
shouldLazyHighlight: h
|
|
5806
5808
|
}
|
|
5807
5809
|
),
|
|
5808
5810
|
/* @__PURE__ */ l.jsx("hr", { className: "my-10" })
|
|
5809
|
-
] },
|
|
5811
|
+
] }, L.slug)),
|
|
5810
5812
|
/* @__PURE__ */ l.jsx(wo, { className: "mb-4", ...A })
|
|
5811
5813
|
] })
|
|
5812
5814
|
]
|
|
@@ -5814,7 +5816,7 @@ const xl = Ve(
|
|
|
5814
5816
|
);
|
|
5815
5817
|
};
|
|
5816
5818
|
export {
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
+
ec as OperationList,
|
|
5820
|
+
bl as OperationsFragment
|
|
5819
5821
|
};
|
|
5820
|
-
//# sourceMappingURL=OperationList-
|
|
5822
|
+
//# sourceMappingURL=OperationList-cEveQ_l5.js.map
|