zudoku 0.3.0-dev.66 → 0.3.0-dev.67
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/lib/plugins/openapi/ColorizedParam.js +2 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +4 -3
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +5 -9
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/lib/{OperationList-Cv0GStt7.js → OperationList-C1YlOjB7.js} +159 -155
- package/lib/OperationList-C1YlOjB7.js.map +1 -0
- package/lib/{index-NGns0N9q.js → index-3RQC9Hni.js} +2 -2
- package/lib/{index-NGns0N9q.js.map → index-3RQC9Hni.js.map} +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/lib/plugins/openapi/ColorizedParam.tsx +2 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +8 -6
- package/src/lib/plugins/openapi/playground/createUrl.ts +11 -14
- package/lib/OperationList-Cv0GStt7.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as u } from "./jsx-runtime-BIr0WBt_.js";
|
|
2
2
|
import { C as Tr } from "./CategoryHeading-D5Q-X6lE.js";
|
|
3
3
|
import { a as gn, k as _a, o as vn, n as nt, P as pe, d as ve, B as Ge, u as nr, R as Fa, S as bn, h as La, e as Ua, F as Ma, D as Ha, q as Ba, m as Da, p as za } from "./Combination-Cq0UkOXq.js";
|
|
4
|
-
import { g as ar, M as Wa, E as Ja } from "./index-
|
|
4
|
+
import { g as ar, M as Wa, E as Ja } from "./index-3RQC9Hni.js";
|
|
5
5
|
import { c as Ke, a as k, u as Va, h as qe, H as He, P as Ga, i as Ka, S as Qe, j as Qa, I as Or } from "./Markdown-DsCvZnhw.js";
|
|
6
6
|
import * as O from "react";
|
|
7
7
|
import { useRef as Ya, useEffect as Xa, useState as or, Fragment as at, useTransition as Za, useMemo as eo } from "react";
|
|
@@ -278,7 +278,7 @@ const Bn = (t, e) => t.reduce(
|
|
|
278
278
|
children: o,
|
|
279
279
|
onClick: n
|
|
280
280
|
}) => {
|
|
281
|
-
const s = Ya(null), l = t.replace(
|
|
281
|
+
const s = Ya(null), l = t.replace(/[{}]/g, ""), c = i == null ? void 0 : i.replace(/[{}]/g, ""), f = Oo(l), p = `hsl(${f} / ${a})`, d = `hsl(${f} / ${r})`;
|
|
282
282
|
return Xa(() => {
|
|
283
283
|
if (!c || !s.current) return;
|
|
284
284
|
const h = () => {
|
|
@@ -597,7 +597,7 @@ var Fo = (t, e, r) => {
|
|
|
597
597
|
` ? "\\n" : "\\r"), n.singleQuotes === !1 ? (o = o.replace(/"/g, '\\"'), `"${o}"`) : (o = o.replace(/\\?'/g, "\\'"), `'${o}'`);
|
|
598
598
|
}(t, e, r);
|
|
599
599
|
};
|
|
600
|
-
const
|
|
600
|
+
const Q = /* @__PURE__ */ so(Fo);
|
|
601
601
|
function We(t, e = {}) {
|
|
602
602
|
const { delimiter: r = '"', escapeChar: a = "\\", escapeNewlines: i = !0 } = e;
|
|
603
603
|
return [...t.toString()].map((n) => n === "\b" ? `${a}b` : n === " " ? `${a}t` : n === `
|
|
@@ -1083,7 +1083,7 @@ var Vo = {
|
|
|
1083
1083
|
default:
|
|
1084
1084
|
i.text && (p.data = i.text);
|
|
1085
1085
|
}
|
|
1086
|
-
const d =
|
|
1086
|
+
const d = Q(p, {
|
|
1087
1087
|
indent: " ",
|
|
1088
1088
|
inlineCharacterLimit: 80
|
|
1089
1089
|
}).replace('"[form]"', "form");
|
|
@@ -1124,7 +1124,7 @@ var Vo = {
|
|
|
1124
1124
|
r.text && (c.body = r.text);
|
|
1125
1125
|
}
|
|
1126
1126
|
return c.headers && !Object.keys(c.headers).length && delete c.headers, l(
|
|
1127
|
-
`const options = ${
|
|
1127
|
+
`const options = ${Q(c, {
|
|
1128
1128
|
indent: o.indent,
|
|
1129
1129
|
inlineCharacterLimit: 80,
|
|
1130
1130
|
// The Fetch API body only accepts string parameters, but stringified JSON can be difficult
|
|
@@ -1183,7 +1183,7 @@ var Vo = {
|
|
|
1183
1183
|
default:
|
|
1184
1184
|
a.text && (c.data = a.text);
|
|
1185
1185
|
}
|
|
1186
|
-
const f =
|
|
1186
|
+
const f = Q(c, { indent: o.indent }).replace("'[form]'", "form");
|
|
1187
1187
|
return s(`const settings = ${f};`), n(), s("$.ajax(settings).done(function (response) {"), s("console.log(response);", 1), s("});"), l();
|
|
1188
1188
|
}
|
|
1189
1189
|
}, is = {
|
|
@@ -1204,7 +1204,7 @@ var Vo = {
|
|
|
1204
1204
|
switch (t.mimeType) {
|
|
1205
1205
|
case "application/json":
|
|
1206
1206
|
s(
|
|
1207
|
-
`const data = JSON.stringify(${
|
|
1207
|
+
`const data = JSON.stringify(${Q(t.jsonObj, {
|
|
1208
1208
|
indent: o.indent
|
|
1209
1209
|
})});`
|
|
1210
1210
|
), n();
|
|
@@ -1339,7 +1339,7 @@ var Vo = {
|
|
|
1339
1339
|
default:
|
|
1340
1340
|
n(), a.text && (f.data = a.text);
|
|
1341
1341
|
}
|
|
1342
|
-
const p =
|
|
1342
|
+
const p = Q(f, { indent: " ", inlineCharacterLimit: 80 });
|
|
1343
1343
|
return l(`const options = ${p};`), n(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), s();
|
|
1344
1344
|
}
|
|
1345
1345
|
}, hs = {
|
|
@@ -1392,7 +1392,7 @@ var Vo = {
|
|
|
1392
1392
|
h.headers || (h.headers = {}), h.headers.cookie = v;
|
|
1393
1393
|
}
|
|
1394
1394
|
l(), c(`const url = '${d}';`), h.headers && !Object.keys(h.headers).length && delete h.headers;
|
|
1395
|
-
const m =
|
|
1395
|
+
const m = Q(h, {
|
|
1396
1396
|
indent: " ",
|
|
1397
1397
|
inlineCharacterLimit: 80,
|
|
1398
1398
|
// The Fetch API body only accepts string parameters, but stringified JSON can be difficult to
|
|
@@ -1419,10 +1419,10 @@ var Vo = {
|
|
|
1419
1419
|
path: t.path,
|
|
1420
1420
|
headers: r
|
|
1421
1421
|
};
|
|
1422
|
-
switch (l(`const http = require('${(p = t.protocol) == null ? void 0 : p.replace(":", "")}');`), n(), l(`const options = ${
|
|
1422
|
+
switch (l(`const http = require('${(p = t.protocol) == null ? void 0 : p.replace(":", "")}');`), n(), l(`const options = ${Q(f, { indent: o })};`), n(), l("const req = http.request(options, function (res) {"), l("const chunks = [];", 1), n(), l("res.on('data', function (chunk) {", 1), l("chunks.push(chunk);", 2), l("});", 1), n(), l("res.on('end', function () {", 1), l("const body = Buffer.concat(chunks);", 2), l("console.log(body.toString());", 2), l("});", 1), l("});"), n(), a.mimeType) {
|
|
1423
1423
|
case "application/x-www-form-urlencoded":
|
|
1424
1424
|
a.paramsObj && (c("const qs = require('querystring');"), l(
|
|
1425
|
-
`req.write(qs.stringify(${
|
|
1425
|
+
`req.write(qs.stringify(${Q(a.paramsObj, {
|
|
1426
1426
|
indent: " ",
|
|
1427
1427
|
inlineCharacterLimit: 80
|
|
1428
1428
|
})}));`
|
|
@@ -1430,14 +1430,14 @@ var Vo = {
|
|
|
1430
1430
|
break;
|
|
1431
1431
|
case "application/json":
|
|
1432
1432
|
a.jsonObj && l(
|
|
1433
|
-
`req.write(JSON.stringify(${
|
|
1433
|
+
`req.write(JSON.stringify(${Q(a.jsonObj, {
|
|
1434
1434
|
indent: " ",
|
|
1435
1435
|
inlineCharacterLimit: 80
|
|
1436
1436
|
})}));`
|
|
1437
1437
|
);
|
|
1438
1438
|
break;
|
|
1439
1439
|
default:
|
|
1440
|
-
a.text && l(`req.write(${
|
|
1440
|
+
a.text && l(`req.write(${Q(a.text, { indent: o })});`);
|
|
1441
1441
|
}
|
|
1442
1442
|
return l("req.end();"), s();
|
|
1443
1443
|
}
|
|
@@ -1492,7 +1492,7 @@ var Vo = {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
return o.length && (m.jar = "JAR", c("const jar = request.jar();"), o.forEach(({ name: y, value: v }) => {
|
|
1494
1494
|
c(`jar.setCookie(request.cookie('${encodeURIComponent(y)}=${encodeURIComponent(v)}'), '${e}');`);
|
|
1495
|
-
}), f(), h((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${
|
|
1495
|
+
}), f(), h((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${Q(m, { indent: " ", inlineCharacterLimit: 80 })};`), f(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), f(), c("console.log(body);", 1), c("});"), p();
|
|
1496
1496
|
}
|
|
1497
1497
|
}, gs = {
|
|
1498
1498
|
info: {
|
|
@@ -1513,12 +1513,12 @@ var Vo = {
|
|
|
1513
1513
|
});
|
|
1514
1514
|
switch (d("const unirest = require('unirest');"), f(), d(`const req = unirest('${t}', '${e}');`), f(), r.length && (d("const CookieJar = unirest.jar();"), r.forEach((m) => {
|
|
1515
1515
|
d(`CookieJar.add('${encodeURIComponent(m.name)}=${encodeURIComponent(m.value)}', '${e}');`);
|
|
1516
|
-
}), d("req.jar(CookieJar);"), f()), Object.keys(a).length && (d(`req.query(${
|
|
1516
|
+
}), d("req.jar(CookieJar);"), f()), Object.keys(a).length && (d(`req.query(${Q(a, { indent: s.indent })});`), f()), Object.keys(o).length && (d(`req.headers(${Q(o, { indent: s.indent })});`), f()), i.mimeType) {
|
|
1517
1517
|
case "application/x-www-form-urlencoded":
|
|
1518
|
-
i.paramsObj && (d(`req.form(${
|
|
1518
|
+
i.paramsObj && (d(`req.form(${Q(i.paramsObj, { indent: s.indent })});`), f());
|
|
1519
1519
|
break;
|
|
1520
1520
|
case "application/json":
|
|
1521
|
-
i.jsonObj && (d("req.type('json');"), d(`req.send(${
|
|
1521
|
+
i.jsonObj && (d("req.type('json');"), d(`req.send(${Q(i.jsonObj, { indent: s.indent })});`), f());
|
|
1522
1522
|
break;
|
|
1523
1523
|
case "multipart/form-data": {
|
|
1524
1524
|
if (!i.params)
|
|
@@ -1527,11 +1527,11 @@ var Vo = {
|
|
|
1527
1527
|
i.params.forEach((y) => {
|
|
1528
1528
|
const v = {};
|
|
1529
1529
|
y.fileName && !y.value ? (l = !0, v.body = `fs.createReadStream('${y.fileName}')`, c((x) => x.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : y.value && (v.body = y.value), v.body && (y.contentType && (v["content-type"] = y.contentType), m.push(v));
|
|
1530
|
-
}), d(`req.multipart(${
|
|
1530
|
+
}), d(`req.multipart(${Q(m, { indent: s.indent })});`), f();
|
|
1531
1531
|
break;
|
|
1532
1532
|
}
|
|
1533
1533
|
default:
|
|
1534
|
-
i.text && (d(`req.send(${
|
|
1534
|
+
i.text && (d(`req.send(${Q(i.text, { indent: s.indent })});`), f());
|
|
1535
1535
|
}
|
|
1536
1536
|
return l && h("const fs = require('fs');"), d("req.end(function (res) {"), d("if (res.error) throw new Error(res.error);", 1), f(), d("console.log(res.body);", 1), d("});"), p();
|
|
1537
1537
|
}
|
|
@@ -2177,7 +2177,7 @@ var ke = (t, e, r) => {
|
|
|
2177
2177
|
clientsById: {
|
|
2178
2178
|
native: _s
|
|
2179
2179
|
}
|
|
2180
|
-
},
|
|
2180
|
+
}, K = (t = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(t) ? t : `'${t.replace(/'/g, "'\\''")}'`, Ls = (t) => t.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Us = {
|
|
2181
2181
|
"http1.0": "0",
|
|
2182
2182
|
"url ": "",
|
|
2183
2183
|
cookie: "b",
|
|
@@ -2208,7 +2208,7 @@ var ke = (t, e, r) => {
|
|
|
2208
2208
|
join: s !== !1 ? ` \\
|
|
2209
2209
|
${s}` : " "
|
|
2210
2210
|
}), m = Ms(l);
|
|
2211
|
-
let y =
|
|
2211
|
+
let y = K(t);
|
|
2212
2212
|
if (d(`curl ${m("request")} ${e}`), f && (y = unescape(y), d(m("globoff"))), d(`${m("url ")}${y}`), r === "HTTP/1.0" && d(m("http1.0")), fe(i, "accept-encoding") && d("--compressed"), o.mimeType === "multipart/form-data") {
|
|
2213
2213
|
const x = X(a, "content-type");
|
|
2214
2214
|
if (x) {
|
|
@@ -2221,19 +2221,19 @@ ${s}` : " "
|
|
|
2221
2221
|
}
|
|
2222
2222
|
switch (Object.keys(a).sort().forEach((x) => {
|
|
2223
2223
|
const g = `${x}: ${a[x]}`;
|
|
2224
|
-
d(`${m("header")} ${
|
|
2225
|
-
}), i.cookie && d(`${m("cookie")} ${
|
|
2224
|
+
d(`${m("header")} ${K(g)}`);
|
|
2225
|
+
}), i.cookie && d(`${m("cookie")} ${K(i.cookie)}`), o.mimeType) {
|
|
2226
2226
|
case "multipart/form-data":
|
|
2227
2227
|
(v = o.params) == null || v.forEach((g) => {
|
|
2228
2228
|
let b = "";
|
|
2229
|
-
g.fileName ? b = `${g.name}='@${g.fileName}'` : b =
|
|
2229
|
+
g.fileName ? b = `${g.name}='@${g.fileName}'` : b = K(`${g.name}=${g.value}`), d(`${m("form")} ${b}`);
|
|
2230
2230
|
});
|
|
2231
2231
|
break;
|
|
2232
2232
|
case "application/x-www-form-urlencoded":
|
|
2233
2233
|
o.params ? o.params.forEach((g) => {
|
|
2234
2234
|
const b = g.name, S = encodeURIComponent(g.name), j = S !== b, T = j ? S : b, w = c ? "--data-binary" : j ? "--data-urlencode" : m("data");
|
|
2235
|
-
d(`${w} ${
|
|
2236
|
-
}) : d(`${c ? "--data-binary" : m("data")} ${
|
|
2235
|
+
d(`${w} ${K(`${T}=${g.value}`)}`);
|
|
2236
|
+
}) : d(`${c ? "--data-binary" : m("data")} ${K(o.text)}`);
|
|
2237
2237
|
break;
|
|
2238
2238
|
default:
|
|
2239
2239
|
if (!o.text)
|
|
@@ -2257,7 +2257,7 @@ ${JSON.stringify(g, null, p)}
|
|
|
2257
2257
|
);
|
|
2258
2258
|
} catch {
|
|
2259
2259
|
}
|
|
2260
|
-
x || d(`${c ? "--data-binary" : m("data")} ${
|
|
2260
|
+
x || d(`${c ? "--data-binary" : m("data")} ${K(o.text)}`);
|
|
2261
2261
|
}
|
|
2262
2262
|
return h();
|
|
2263
2263
|
}
|
|
@@ -2296,16 +2296,16 @@ ${s.indent}` : " "
|
|
|
2296
2296
|
s.headers && d.push(s.short ? "-h" : "--headers"), s.body && d.push(s.short ? "-b" : "--body"), s.verbose && d.push(s.short ? "-v" : "--verbose"), s.print && d.push(`${s.short ? "-p" : "--print"}=${s.print}`), s.verify && d.push(`--verify=${s.verify}`), s.cert && d.push(`--cert=${s.cert}`), s.pretty && d.push(`--pretty=${s.pretty}`), s.style && d.push(`--style=${s.style}`), s.timeout && d.push(`--timeout=${s.timeout}`), s.queryParams && Object.keys(r).forEach((m) => {
|
|
2297
2297
|
const y = r[m];
|
|
2298
2298
|
Array.isArray(y) ? y.forEach((v) => {
|
|
2299
|
-
l(`${m}==${
|
|
2300
|
-
}) : l(`${m}==${
|
|
2299
|
+
l(`${m}==${K(v)}`);
|
|
2300
|
+
}) : l(`${m}==${K(y)}`);
|
|
2301
2301
|
}), Object.keys(t).sort().forEach((m) => {
|
|
2302
|
-
l(`${m}:${
|
|
2302
|
+
l(`${m}:${K(t[m])}`);
|
|
2303
2303
|
}), e.mimeType === "application/x-www-form-urlencoded" ? e.params && e.params.length && (d.push(s.short ? "-f" : "--form"), e.params.forEach((m) => {
|
|
2304
|
-
l(`${m.name}=${
|
|
2304
|
+
l(`${m.name}=${K(m.value)}`);
|
|
2305
2305
|
})) : p = !0;
|
|
2306
2306
|
const h = d.length ? `${d.join(" ")} ` : "";
|
|
2307
|
-
if (o =
|
|
2308
|
-
const m =
|
|
2307
|
+
if (o = K(s.queryParams ? o : a), f(`http ${h}${i} ${o}`), p && e.text) {
|
|
2308
|
+
const m = K(e.text);
|
|
2309
2309
|
f(`echo ${m} | `);
|
|
2310
2310
|
}
|
|
2311
2311
|
return c();
|
|
@@ -2329,10 +2329,10 @@ ${s.indent}` : " "
|
|
|
2329
2329
|
join: o.indent !== !1 ? ` \\
|
|
2330
2330
|
${o.indent}` : " "
|
|
2331
2331
|
});
|
|
2332
|
-
return o.verbose ? n(`wget ${o.short ? "-v" : "--verbose"}`) : n(`wget ${o.short ? "-q" : "--quiet"}`), n(`--method ${
|
|
2332
|
+
return o.verbose ? n(`wget ${o.short ? "-v" : "--verbose"}`) : n(`wget ${o.short ? "-q" : "--quiet"}`), n(`--method ${K(t)}`), Object.keys(r).forEach((l) => {
|
|
2333
2333
|
const c = `${l}: ${r[l]}`;
|
|
2334
|
-
n(`--header ${
|
|
2335
|
-
}), e.text && n(`--body-data ${Ls(
|
|
2334
|
+
n(`--header ${K(c)}`);
|
|
2335
|
+
}), e.text && n(`--body-data ${Ls(K(e.text))}`), n(o.short ? "-O" : "--output-document"), n(`- ${K(a)}`), s();
|
|
2336
2336
|
}
|
|
2337
2337
|
}, zs = {
|
|
2338
2338
|
info: {
|
|
@@ -2482,15 +2482,15 @@ mt.exports;
|
|
|
2482
2482
|
function _($, C) {
|
|
2483
2483
|
var R = $.split("@"), F = "";
|
|
2484
2484
|
R.length > 1 && (F = R[0] + "@", $ = R[1]), $ = $.replace(g, ".");
|
|
2485
|
-
var
|
|
2485
|
+
var U = $.split("."), ee = A(U, C).join(".");
|
|
2486
2486
|
return F + ee;
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2489
|
-
for (var C = [], R = 0, F = $.length,
|
|
2490
|
-
|
|
2488
|
+
function z($) {
|
|
2489
|
+
for (var C = [], R = 0, F = $.length, U, ee; R < F; )
|
|
2490
|
+
U = $.charCodeAt(R++), U >= 55296 && U <= 56319 && R < F ? (ee = $.charCodeAt(R++), (ee & 64512) == 56320 ? C.push(((U & 1023) << 10) + (ee & 1023) + 65536) : (C.push(U), R--)) : C.push(U);
|
|
2491
2491
|
return C;
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function V($) {
|
|
2494
2494
|
return A($, function(C) {
|
|
2495
2495
|
var R = "";
|
|
2496
2496
|
return C > 65535 && (C -= 65536, R += T(C >>> 10 & 1023 | 55296), C = 56320 | C & 1023), R += T(C), R;
|
|
@@ -2499,40 +2499,40 @@ mt.exports;
|
|
|
2499
2499
|
function I($) {
|
|
2500
2500
|
return $ - 48 < 10 ? $ - 22 : $ - 65 < 26 ? $ - 65 : $ - 97 < 26 ? $ - 97 : l;
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function L($, C) {
|
|
2503
2503
|
return $ + 22 + 75 * ($ < 26) - ((C != 0) << 5);
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function H($, C, R) {
|
|
2506
2506
|
var F = 0;
|
|
2507
2507
|
for ($ = R ? j($ / d) : $ >> 1, $ += j($ / C); $ > S * f >> 1; F += l)
|
|
2508
2508
|
$ = j($ / S);
|
|
2509
2509
|
return j(F + (S + 1) * $ / ($ + p));
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2512
|
-
var C = [], R = $.length, F,
|
|
2511
|
+
function B($) {
|
|
2512
|
+
var C = [], R = $.length, F, U = 0, ee = m, G = h, te, ne, ie, de, Y, re, ae, me, xe;
|
|
2513
2513
|
for (te = $.lastIndexOf(y), te < 0 && (te = 0), ne = 0; ne < te; ++ne)
|
|
2514
2514
|
$.charCodeAt(ne) >= 128 && E("not-basic"), C.push($.charCodeAt(ne));
|
|
2515
2515
|
for (ie = te > 0 ? te + 1 : 0; ie < R; ) {
|
|
2516
|
-
for (de =
|
|
2516
|
+
for (de = U, Y = 1, re = l; ie >= R && E("invalid-input"), ae = I($.charCodeAt(ie++)), (ae >= l || ae > j((s - U) / Y)) && E("overflow"), U += ae * Y, me = re <= G ? c : re >= G + f ? f : re - G, !(ae < me); re += l)
|
|
2517
2517
|
xe = l - me, Y > j(s / xe) && E("overflow"), Y *= xe;
|
|
2518
|
-
F = C.length + 1,
|
|
2518
|
+
F = C.length + 1, G = H(U - de, F, de == 0), j(U / F) > s - ee && E("overflow"), ee += j(U / F), U %= F, C.splice(U++, 0, ee);
|
|
2519
2519
|
}
|
|
2520
|
-
return
|
|
2520
|
+
return V(C);
|
|
2521
2521
|
}
|
|
2522
2522
|
function he($) {
|
|
2523
|
-
var C, R, F,
|
|
2524
|
-
for ($ =
|
|
2525
|
-
Y = $[
|
|
2526
|
-
for (F =
|
|
2527
|
-
for (te = s,
|
|
2528
|
-
Y = $[
|
|
2529
|
-
for (me = F + 1, te - C > j((s - R) / me) && E("overflow"), R += (te - C) * me, C = te,
|
|
2530
|
-
if (Y = $[
|
|
2523
|
+
var C, R, F, U, ee, G, te, ne, ie, de, Y, re = [], ae, me, xe, Tt;
|
|
2524
|
+
for ($ = z($), ae = $.length, C = m, R = 0, ee = h, G = 0; G < ae; ++G)
|
|
2525
|
+
Y = $[G], Y < 128 && re.push(T(Y));
|
|
2526
|
+
for (F = U = re.length, U && re.push(y); F < ae; ) {
|
|
2527
|
+
for (te = s, G = 0; G < ae; ++G)
|
|
2528
|
+
Y = $[G], Y >= C && Y < te && (te = Y);
|
|
2529
|
+
for (me = F + 1, te - C > j((s - R) / me) && E("overflow"), R += (te - C) * me, C = te, G = 0; G < ae; ++G)
|
|
2530
|
+
if (Y = $[G], Y < C && ++R > s && E("overflow"), Y == C) {
|
|
2531
2531
|
for (ne = R, ie = l; de = ie <= ee ? c : ie >= ee + f ? f : ie - ee, !(ne < de); ie += l)
|
|
2532
2532
|
Tt = ne - de, xe = l - de, re.push(
|
|
2533
|
-
T(
|
|
2533
|
+
T(L(de + Tt % xe, 0))
|
|
2534
2534
|
), ne = j(Tt / xe);
|
|
2535
|
-
re.push(T(
|
|
2535
|
+
re.push(T(L(ne, 0))), ee = H(R, me, F == U), R = 0, ++F;
|
|
2536
2536
|
}
|
|
2537
2537
|
++R, ++C;
|
|
2538
2538
|
}
|
|
@@ -2540,7 +2540,7 @@ mt.exports;
|
|
|
2540
2540
|
}
|
|
2541
2541
|
function St($) {
|
|
2542
2542
|
return _($, function(C) {
|
|
2543
|
-
return v.test(C) ?
|
|
2543
|
+
return v.test(C) ? B(C.slice(4).toLowerCase()) : C;
|
|
2544
2544
|
});
|
|
2545
2545
|
}
|
|
2546
2546
|
function Ze($) {
|
|
@@ -2563,10 +2563,10 @@ mt.exports;
|
|
|
2563
2563
|
* @type Object
|
|
2564
2564
|
*/
|
|
2565
2565
|
ucs2: {
|
|
2566
|
-
decode:
|
|
2567
|
-
encode:
|
|
2566
|
+
decode: z,
|
|
2567
|
+
encode: V
|
|
2568
2568
|
},
|
|
2569
|
-
decode:
|
|
2569
|
+
decode: B,
|
|
2570
2570
|
encode: he,
|
|
2571
2571
|
toASCII: Ze,
|
|
2572
2572
|
toUnicode: St
|
|
@@ -3035,12 +3035,12 @@ var Gt = Vi, ln = Gt.custom, cn = ra(ln) ? ln : null, nl = function t(e, r, a, i
|
|
|
3035
3035
|
i = [];
|
|
3036
3036
|
else if (na(i, e) >= 0)
|
|
3037
3037
|
return "[Circular]";
|
|
3038
|
-
function d(I,
|
|
3039
|
-
if (
|
|
3040
|
-
var
|
|
3038
|
+
function d(I, L, H) {
|
|
3039
|
+
if (L && (i = rl.call(i), i.push(L)), H) {
|
|
3040
|
+
var B = {
|
|
3041
3041
|
depth: o.depth
|
|
3042
3042
|
};
|
|
3043
|
-
return ye(o, "quoteStyle") && (
|
|
3043
|
+
return ye(o, "quoteStyle") && (B.quoteStyle = o.quoteStyle), t(I, B, a + 1, i);
|
|
3044
3044
|
}
|
|
3045
3045
|
return t(I, o, a + 1, i);
|
|
3046
3046
|
}
|
|
@@ -3075,8 +3075,8 @@ var Gt = Vi, ln = Gt.custom, cn = ra(ln) ? ln : null, nl = function t(e, r, a, i
|
|
|
3075
3075
|
}
|
|
3076
3076
|
if (pl(e)) {
|
|
3077
3077
|
var j = [];
|
|
3078
|
-
return Zr && Zr.call(e, function(I,
|
|
3079
|
-
j.push(d(
|
|
3078
|
+
return Zr && Zr.call(e, function(I, L) {
|
|
3079
|
+
j.push(d(L, e, !0) + " => " + d(I, e));
|
|
3080
3080
|
}), fn("Map", vt.call(e), j, p);
|
|
3081
3081
|
}
|
|
3082
3082
|
if (yl(e)) {
|
|
@@ -3104,8 +3104,8 @@ var Gt = Vi, ln = Gt.custom, cn = ra(ln) ? ln : null, nl = function t(e, r, a, i
|
|
|
3104
3104
|
if (e === ot)
|
|
3105
3105
|
return "{ [object globalThis] }";
|
|
3106
3106
|
if (!ol(e) && !un(e)) {
|
|
3107
|
-
var w = et(e, d), E = on ? on(e) === Object.prototype : e instanceof Object || e.constructor === Object, A = e instanceof Object ? "" : "null prototype", _ = !E && Z && Object(e) === e && Z in e ? hr.call(be(e), 8, -1) : A ? "Object" : "",
|
|
3108
|
-
return w.length === 0 ?
|
|
3107
|
+
var w = et(e, d), E = on ? on(e) === Object.prototype : e instanceof Object || e.constructor === Object, A = e instanceof Object ? "" : "null prototype", _ = !E && Z && Object(e) === e && Z in e ? hr.call(be(e), 8, -1) : A ? "Object" : "", z = E || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = z + (_ || A ? "[" + ue.call(nn.call([], _ || [], A || []), ": ") + "] " : "");
|
|
3108
|
+
return w.length === 0 ? V + "{}" : p ? V + "{" + Qt(w, p) + "}" : V + "{ " + ue.call(w, ", ") + " }";
|
|
3109
3109
|
}
|
|
3110
3110
|
return String(e);
|
|
3111
3111
|
};
|
|
@@ -3527,7 +3527,7 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3527
3527
|
}
|
|
3528
3528
|
}, ce = Array.isArray, Gl = Array.prototype.push, ua = function(t, e) {
|
|
3529
3529
|
Gl.apply(t, ce(e) ? e : [e]);
|
|
3530
|
-
}, Kl = Date.prototype.toISOString, dn = ze.default,
|
|
3530
|
+
}, Kl = Date.prototype.toISOString, dn = ze.default, D = {
|
|
3531
3531
|
addQueryPrefix: !1,
|
|
3532
3532
|
allowDots: !1,
|
|
3533
3533
|
allowEmptyArrays: !1,
|
|
@@ -3564,13 +3564,13 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3564
3564
|
return $ instanceof Date ? h($) : $;
|
|
3565
3565
|
})), b === null) {
|
|
3566
3566
|
if (n)
|
|
3567
|
-
return c && !v ? c(r,
|
|
3567
|
+
return c && !v ? c(r, D.encoder, x, "key", m) : r;
|
|
3568
3568
|
b = "";
|
|
3569
3569
|
}
|
|
3570
3570
|
if (Ql(b) || lt.isBuffer(b)) {
|
|
3571
3571
|
if (c) {
|
|
3572
|
-
var E = v ? r : c(r,
|
|
3573
|
-
return [y(E) + "=" + y(c(b,
|
|
3572
|
+
var E = v ? r : c(r, D.encoder, x, "key", m);
|
|
3573
|
+
return [y(E) + "=" + y(c(b, D.encoder, x, "value", m))];
|
|
3574
3574
|
}
|
|
3575
3575
|
return [y(r) + "=" + y(String(b))];
|
|
3576
3576
|
}
|
|
@@ -3583,20 +3583,20 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3583
3583
|
else if (ce(f))
|
|
3584
3584
|
_ = f;
|
|
3585
3585
|
else {
|
|
3586
|
-
var
|
|
3587
|
-
_ = p ?
|
|
3586
|
+
var z = Object.keys(b);
|
|
3587
|
+
_ = p ? z.sort(p) : z;
|
|
3588
3588
|
}
|
|
3589
|
-
var
|
|
3589
|
+
var V = l ? r.replace(/\./g, "%2E") : r, I = i && ce(b) && b.length === 1 ? V + "[]" : V;
|
|
3590
3590
|
if (o && ce(b) && b.length === 0)
|
|
3591
3591
|
return I + "[]";
|
|
3592
|
-
for (var
|
|
3593
|
-
var
|
|
3594
|
-
if (!(s &&
|
|
3595
|
-
var he = d && l ?
|
|
3592
|
+
for (var L = 0; L < _.length; ++L) {
|
|
3593
|
+
var H = _[L], B = typeof H == "object" && typeof H.value < "u" ? H.value : b[H];
|
|
3594
|
+
if (!(s && B === null)) {
|
|
3595
|
+
var he = d && l ? H.replace(/\./g, "%2E") : H, St = ce(b) ? typeof a == "function" ? a(I, he) : I : I + (d ? "." + he : "[" + he + "]");
|
|
3596
3596
|
g.set(e, j);
|
|
3597
3597
|
var Ze = la();
|
|
3598
3598
|
Ze.set(Ht, g), ua(A, t(
|
|
3599
|
-
|
|
3599
|
+
B,
|
|
3600
3600
|
St,
|
|
3601
3601
|
a,
|
|
3602
3602
|
i,
|
|
@@ -3620,14 +3620,14 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3620
3620
|
return A;
|
|
3621
3621
|
}, Xl = function(e) {
|
|
3622
3622
|
if (!e)
|
|
3623
|
-
return
|
|
3623
|
+
return D;
|
|
3624
3624
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
3625
3625
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
3626
3626
|
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
3627
3627
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
3628
3628
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
3629
3629
|
throw new TypeError("Encoder has to be a function.");
|
|
3630
|
-
var r = e.charset ||
|
|
3630
|
+
var r = e.charset || D.charset;
|
|
3631
3631
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
3632
3632
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3633
3633
|
var a = ze.default;
|
|
@@ -3636,32 +3636,32 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3636
3636
|
throw new TypeError("Unknown format option provided.");
|
|
3637
3637
|
a = e.format;
|
|
3638
3638
|
}
|
|
3639
|
-
var i = ze.formatters[a], o =
|
|
3639
|
+
var i = ze.formatters[a], o = D.filter;
|
|
3640
3640
|
(typeof e.filter == "function" || ce(e.filter)) && (o = e.filter);
|
|
3641
3641
|
var n;
|
|
3642
|
-
if (e.arrayFormat in ca ? n = e.arrayFormat : "indices" in e ? n = e.indices ? "indices" : "repeat" : n =
|
|
3642
|
+
if (e.arrayFormat in ca ? n = e.arrayFormat : "indices" in e ? n = e.indices ? "indices" : "repeat" : n = D.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
3643
3643
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3644
|
-
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 :
|
|
3644
|
+
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : D.allowDots : !!e.allowDots;
|
|
3645
3645
|
return {
|
|
3646
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
3646
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : D.addQueryPrefix,
|
|
3647
3647
|
allowDots: s,
|
|
3648
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
3648
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : D.allowEmptyArrays,
|
|
3649
3649
|
arrayFormat: n,
|
|
3650
3650
|
charset: r,
|
|
3651
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
3651
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : D.charsetSentinel,
|
|
3652
3652
|
commaRoundTrip: e.commaRoundTrip,
|
|
3653
|
-
delimiter: typeof e.delimiter > "u" ?
|
|
3654
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
3655
|
-
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys :
|
|
3656
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
3657
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
3653
|
+
delimiter: typeof e.delimiter > "u" ? D.delimiter : e.delimiter,
|
|
3654
|
+
encode: typeof e.encode == "boolean" ? e.encode : D.encode,
|
|
3655
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : D.encodeDotInKeys,
|
|
3656
|
+
encoder: typeof e.encoder == "function" ? e.encoder : D.encoder,
|
|
3657
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : D.encodeValuesOnly,
|
|
3658
3658
|
filter: o,
|
|
3659
3659
|
format: a,
|
|
3660
3660
|
formatter: i,
|
|
3661
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
3662
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
3661
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : D.serializeDate,
|
|
3662
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : D.skipNulls,
|
|
3663
3663
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
3664
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
3664
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : D.strictNullHandling
|
|
3665
3665
|
};
|
|
3666
3666
|
}, Zl = function(t, e) {
|
|
3667
3667
|
var r = t, a = Xl(e), i, o;
|
|
@@ -3696,7 +3696,7 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3696
3696
|
}
|
|
3697
3697
|
var d = n.join(a.delimiter), h = a.addQueryPrefix === !0 ? "?" : "";
|
|
3698
3698
|
return a.charsetSentinel && (a.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), d.length > 0 ? h + d : "";
|
|
3699
|
-
}, Fe = ia, Yt = Object.prototype.hasOwnProperty, ec = Array.isArray,
|
|
3699
|
+
}, Fe = ia, Yt = Object.prototype.hasOwnProperty, ec = Array.isArray, M = {
|
|
3700
3700
|
allowDots: !1,
|
|
3701
3701
|
allowEmptyArrays: !1,
|
|
3702
3702
|
allowPrototypes: !1,
|
|
@@ -3730,10 +3730,10 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3730
3730
|
for (l = 0; l < n.length; ++l)
|
|
3731
3731
|
if (l !== s) {
|
|
3732
3732
|
var f = n[l], p = f.indexOf("]="), d = p === -1 ? f.indexOf("=") : p + 1, h, m;
|
|
3733
|
-
d === -1 ? (h = r.decoder(f,
|
|
3733
|
+
d === -1 ? (h = r.decoder(f, M.decoder, c, "key"), m = r.strictNullHandling ? null : "") : (h = r.decoder(f.slice(0, d), M.decoder, c, "key"), m = Fe.maybeMap(
|
|
3734
3734
|
fa(f.slice(d + 1), r),
|
|
3735
3735
|
function(v) {
|
|
3736
|
-
return r.decoder(v,
|
|
3736
|
+
return r.decoder(v, M.decoder, c, "value");
|
|
3737
3737
|
}
|
|
3738
3738
|
)), m && r.interpretNumericEntities && c === "iso-8859-1" && (m = tc(m)), f.indexOf("[]=") > -1 && (m = ec(m) ? [m] : m);
|
|
3739
3739
|
var y = Yt.call(a, h);
|
|
@@ -3770,7 +3770,7 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3770
3770
|
}
|
|
3771
3771
|
}, ic = function(e) {
|
|
3772
3772
|
if (!e)
|
|
3773
|
-
return
|
|
3773
|
+
return M;
|
|
3774
3774
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
3775
3775
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
3776
3776
|
if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
|
|
@@ -3779,31 +3779,31 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3779
3779
|
throw new TypeError("Decoder has to be a function.");
|
|
3780
3780
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
3781
3781
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3782
|
-
var r = typeof e.charset > "u" ?
|
|
3782
|
+
var r = typeof e.charset > "u" ? M.charset : e.charset, a = typeof e.duplicates > "u" ? M.duplicates : e.duplicates;
|
|
3783
3783
|
if (a !== "combine" && a !== "first" && a !== "last")
|
|
3784
3784
|
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
3785
|
-
var i = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 :
|
|
3785
|
+
var i = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : M.allowDots : !!e.allowDots;
|
|
3786
3786
|
return {
|
|
3787
3787
|
allowDots: i,
|
|
3788
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
3789
|
-
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes :
|
|
3790
|
-
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse :
|
|
3791
|
-
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit :
|
|
3788
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : M.allowEmptyArrays,
|
|
3789
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : M.allowPrototypes,
|
|
3790
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : M.allowSparse,
|
|
3791
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : M.arrayLimit,
|
|
3792
3792
|
charset: r,
|
|
3793
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
3794
|
-
comma: typeof e.comma == "boolean" ? e.comma :
|
|
3795
|
-
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys :
|
|
3796
|
-
decoder: typeof e.decoder == "function" ? e.decoder :
|
|
3797
|
-
delimiter: typeof e.delimiter == "string" || Fe.isRegExp(e.delimiter) ? e.delimiter :
|
|
3793
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : M.charsetSentinel,
|
|
3794
|
+
comma: typeof e.comma == "boolean" ? e.comma : M.comma,
|
|
3795
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : M.decodeDotInKeys,
|
|
3796
|
+
decoder: typeof e.decoder == "function" ? e.decoder : M.decoder,
|
|
3797
|
+
delimiter: typeof e.delimiter == "string" || Fe.isRegExp(e.delimiter) ? e.delimiter : M.delimiter,
|
|
3798
3798
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
3799
|
-
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth :
|
|
3799
|
+
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : M.depth,
|
|
3800
3800
|
duplicates: a,
|
|
3801
3801
|
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
3802
|
-
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities :
|
|
3803
|
-
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit :
|
|
3802
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : M.interpretNumericEntities,
|
|
3803
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : M.parameterLimit,
|
|
3804
3804
|
parseArrays: e.parseArrays !== !1,
|
|
3805
|
-
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects :
|
|
3806
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
3805
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : M.plainObjects,
|
|
3806
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : M.strictNullHandling
|
|
3807
3807
|
};
|
|
3808
3808
|
}, lc = function(t, e) {
|
|
3809
3809
|
var r = ic(e);
|
|
@@ -3921,23 +3921,23 @@ oe.prototype.parse = function(t, e, r) {
|
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
3923
|
this.hostname.length > vc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), x || (this.hostname = dc.toASCII(this.hostname));
|
|
3924
|
-
var
|
|
3925
|
-
this.host =
|
|
3924
|
+
var z = this.port ? ":" + this.port : "", V = this.hostname || "";
|
|
3925
|
+
this.host = V + z, this.href += this.host, x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
|
|
3926
3926
|
}
|
|
3927
3927
|
if (!xc[f])
|
|
3928
3928
|
for (var h = 0, b = Xt.length; h < b; h++) {
|
|
3929
3929
|
var I = Xt[h];
|
|
3930
3930
|
if (s.indexOf(I) !== -1) {
|
|
3931
|
-
var
|
|
3932
|
-
|
|
3931
|
+
var L = encodeURIComponent(I);
|
|
3932
|
+
L === I && (L = escape(I)), s = s.split(I).join(L);
|
|
3933
3933
|
}
|
|
3934
3934
|
}
|
|
3935
|
-
var
|
|
3936
|
-
|
|
3937
|
-
var
|
|
3938
|
-
if (
|
|
3939
|
-
var
|
|
3940
|
-
this.path =
|
|
3935
|
+
var H = s.indexOf("#");
|
|
3936
|
+
H !== -1 && (this.hash = s.substr(H), s = s.slice(0, H));
|
|
3937
|
+
var B = s.indexOf("?");
|
|
3938
|
+
if (B !== -1 ? (this.search = s.substr(B), this.query = s.substr(B + 1), e && (this.query = er.parse(this.query)), s = s.slice(0, B)) : e && (this.search = "", this.query = {}), s && (this.pathname = s), Ae[f] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
3939
|
+
var z = this.pathname || "", he = this.search || "";
|
|
3940
|
+
this.path = z + he;
|
|
3941
3941
|
}
|
|
3942
3942
|
return this.href = this.format(), this;
|
|
3943
3943
|
};
|
|
@@ -4498,17 +4498,16 @@ const Wc = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4498
4498
|
));
|
|
4499
4499
|
Wc.displayName = "CardFooter";
|
|
4500
4500
|
const Jc = (t, e, r) => {
|
|
4501
|
-
const a =
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
)
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
}), a;
|
|
4501
|
+
const a = e.replace(
|
|
4502
|
+
/\{(\w+)}/g,
|
|
4503
|
+
(o, n) => {
|
|
4504
|
+
var s;
|
|
4505
|
+
return ((s = r.pathParams.find((l) => l.name === n)) == null ? void 0 : s.value) || `{${n}}`;
|
|
4506
|
+
}
|
|
4507
|
+
), i = new URL(a, t);
|
|
4508
|
+
return r.queryParams.filter((o) => o.active).forEach((o) => {
|
|
4509
|
+
i.searchParams.set(o.name, o.value);
|
|
4510
|
+
}), i;
|
|
4512
4511
|
}, Vc = (t, e) => {
|
|
4513
4512
|
const r = O.forwardRef(({ className: a, asChild: i, ...o }, n) => {
|
|
4514
4513
|
const s = i ? bn : t;
|
|
@@ -4611,7 +4610,7 @@ const Jc = (t, e, r) => {
|
|
|
4611
4610
|
{
|
|
4612
4611
|
slug: a.name,
|
|
4613
4612
|
name: a.name,
|
|
4614
|
-
backgroundOpacity: "
|
|
4613
|
+
backgroundOpacity: "25%",
|
|
4615
4614
|
borderOpacity: o.value ? "100%" : "0",
|
|
4616
4615
|
className: k(
|
|
4617
4616
|
"font-mono text-xs m-2",
|
|
@@ -4806,32 +4805,37 @@ const Zc = {
|
|
|
4806
4805
|
}
|
|
4807
4806
|
}), h = p(), m = go(), y = co({
|
|
4808
4807
|
mutationFn: async (w) => {
|
|
4809
|
-
var I,
|
|
4808
|
+
var I, L, H;
|
|
4810
4809
|
const E = Jc(((I = s.data) == null ? void 0 : I.schema.url) ?? "", t, w), A = performance.now(), _ = new Request(E, {
|
|
4811
4810
|
method: e.toUpperCase(),
|
|
4812
4811
|
headers: Object.fromEntries(
|
|
4813
|
-
w.headers.filter((
|
|
4812
|
+
w.headers.filter((B) => B.name).map((B) => [B.name, B.value])
|
|
4814
4813
|
)
|
|
4815
4814
|
});
|
|
4816
|
-
w.identity !== ut && ((
|
|
4817
|
-
const
|
|
4815
|
+
w.identity !== ut && ((H = (L = m.data) == null ? void 0 : L.find((B) => B.id === w.identity)) == null || H.authorizeRequest(_));
|
|
4816
|
+
const z = await fetch(_), V = await z.text();
|
|
4818
4817
|
return {
|
|
4819
|
-
status:
|
|
4820
|
-
headers:
|
|
4821
|
-
size:
|
|
4822
|
-
body:
|
|
4818
|
+
status: z.status,
|
|
4819
|
+
headers: z.headers,
|
|
4820
|
+
size: V.length,
|
|
4821
|
+
body: V,
|
|
4823
4822
|
time: performance.now() - A
|
|
4824
4823
|
};
|
|
4825
4824
|
}
|
|
4826
4825
|
}), v = t.split("/").map((w, E, A) => {
|
|
4827
|
-
var
|
|
4828
|
-
const _ = w.startsWith("{") && w.endsWith("}"),
|
|
4829
|
-
|
|
4830
|
-
|
|
4826
|
+
var L;
|
|
4827
|
+
const _ = w.startsWith("{") && w.endsWith("}"), z = w.replace(/[{}]/g, ""), V = (L = h.pathParams.find((H) => H.name === z)) == null ? void 0 : L.value, I = V ? /* @__PURE__ */ u.jsx(jt, { backgroundOpacity: "25%", name: w, slug: w, children: V }) : /* @__PURE__ */ u.jsx(
|
|
4828
|
+
"span",
|
|
4829
|
+
{
|
|
4830
|
+
className: "underline decoration-wavy decoration-red-500",
|
|
4831
|
+
title: `Missing value for path parameter \`${z}\``,
|
|
4832
|
+
children: w
|
|
4833
|
+
}
|
|
4834
|
+
);
|
|
4831
4835
|
return (
|
|
4832
4836
|
// eslint-disable-next-line react/no-array-index-key
|
|
4833
4837
|
/* @__PURE__ */ u.jsxs(at, { children: [
|
|
4834
|
-
_ ?
|
|
4838
|
+
_ ? I : w,
|
|
4835
4839
|
E < A.length - 1 && "/",
|
|
4836
4840
|
/* @__PURE__ */ u.jsx("wbr", {})
|
|
4837
4841
|
] }, w + E)
|
|
@@ -4841,7 +4845,7 @@ const Zc = {
|
|
|
4841
4845
|
), g = Array.from(((j = y.data) == null ? void 0 : j.headers.entries()) ?? []), b = h.queryParams.filter((w) => w.active).map((w) => /* @__PURE__ */ u.jsxs(at, { children: [
|
|
4842
4846
|
w.name,
|
|
4843
4847
|
"=",
|
|
4844
|
-
w.value,
|
|
4848
|
+
encodeURIComponent(w.value).replaceAll("%20", "+"),
|
|
4845
4849
|
/* @__PURE__ */ u.jsx("wbr", {})
|
|
4846
4850
|
] }, w.name));
|
|
4847
4851
|
return /* @__PURE__ */ u.jsx(uo, { register: l, control: c, handleSubmit: f, watch: p, ...d, children: /* @__PURE__ */ u.jsx("form", { onSubmit: f((w) => y.mutateAsync(w)), children: /* @__PURE__ */ u.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
|
|
@@ -5459,4 +5463,4 @@ export {
|
|
|
5459
5463
|
Eu as OperationList,
|
|
5460
5464
|
du as OperationsFragment
|
|
5461
5465
|
};
|
|
5462
|
-
//# sourceMappingURL=OperationList-
|
|
5466
|
+
//# sourceMappingURL=OperationList-C1YlOjB7.js.map
|