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