zudoku 0.3.1-dev.8 → 0.3.1-dev.9
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/OperationList.js +3 -4
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/lib/{OperationList-CJajXSzC.js → OperationList-CYyaboNz.js} +114 -120
- package/lib/OperationList-CYyaboNz.js.map +1 -0
- package/lib/{Route-BpMrPUVN.js → Route-C3Jb0axy.js} +2 -2
- package/lib/{Route-BpMrPUVN.js.map → Route-C3Jb0axy.js.map} +1 -1
- package/lib/{index-B6zugCnN.js → index-B1he6g8N.js} +532 -514
- package/lib/index-B1he6g8N.js.map +1 -0
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/app/main.css +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +3 -7
- package/src/lib/plugins/openapi/OperationListItem.tsx +2 -3
- package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -1
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +27 -5
- package/dist/lib/plugins/openapi/util/prose.d.ts +0 -1
- package/dist/lib/plugins/openapi/util/prose.js +0 -4
- package/dist/lib/plugins/openapi/util/prose.js.map +0 -1
- package/lib/OperationList-CJajXSzC.js.map +0 -1
- package/lib/index-B6zugCnN.js.map +0 -1
- package/src/lib/plugins/openapi/util/prose.ts +0 -7
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { j as f } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { u as
|
|
3
|
-
import { v as
|
|
4
|
-
import { createClient as
|
|
5
|
-
import { a as dr, u as Yt, P as me, d as be, R as
|
|
6
|
-
import { L as
|
|
7
|
-
import { C as
|
|
8
|
-
import { c as Ke, P as
|
|
9
|
-
import { j as
|
|
10
|
-
import { g as Xt, h as Sn, C as Se, I as mr, i as
|
|
2
|
+
import { u as Pa, C as Ea, c as Ra, f as Aa } from "./urql-DrBfkb92.js";
|
|
3
|
+
import { v as Fa, w as qa } from "./ZudokuContext-BIZ8zHbZ.js";
|
|
4
|
+
import { createClient as Ia } from "zudoku/openapi-worker";
|
|
5
|
+
import { a as dr, u as Yt, P as me, d as be, R as _a, S as fr, h as La, e as Ua, F as Ma, D as Ha, q as Ba, m as Da, o as pr, n as rt, k as Va, B as qe, p as Wa } from "./Combination-DTfV-c98.js";
|
|
6
|
+
import { L as za, e as Ja, g as Ga } from "./index-7kcHaXD6.js";
|
|
7
|
+
import { C as Ka } from "./CategoryHeading-z15xh7Jb.js";
|
|
8
|
+
import { c as Ke, P as Qa, H as Ya, a as A, u as Xa, g as Za, S as Qe } from "./Markdown-CEccPMI_.js";
|
|
9
|
+
import { j as eo } from "./joinPath-B7kNnUX4.js";
|
|
10
|
+
import { g as Xt, h as Sn, C as Se, I as mr, i as to, u as no, a as ro, F as ao, S as oo, b as io, c as so, d as lo, f as wn, V as co } from "./Input-CzXNm7xb.js";
|
|
11
11
|
import * as j from "react";
|
|
12
|
-
import { useRef as hr, useEffect as yr, useState as gr, Fragment as at, createContext as
|
|
13
|
-
import { P as gt, c as vr, R as
|
|
14
|
-
import { a as
|
|
15
|
-
import { m as
|
|
12
|
+
import { useRef as hr, useEffect as yr, useState as gr, Fragment as at, createContext as uo, useContext as fo, useTransition as po, useMemo as mo } from "react";
|
|
13
|
+
import { P as gt, c as vr, R as ho, I as yo, a as jn, T as pe } from "./Spinner-BT_AYFrA.js";
|
|
14
|
+
import { a as go, c as ot, g as vo } from "./_commonjsHelpers-BVfed4GL.js";
|
|
15
|
+
import { m as bo } from "./router-BiRCp01d.js";
|
|
16
16
|
/**
|
|
17
17
|
* @license lucide-react v0.378.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
const
|
|
22
|
+
const xo = Ke("ChevronsUpDown", [
|
|
23
23
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
24
24
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
25
25
|
]);
|
|
@@ -29,7 +29,7 @@ const ko = Ke("ChevronsUpDown", [
|
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
31
|
*/
|
|
32
|
-
const
|
|
32
|
+
const ko = Ke("CirclePlay", [
|
|
33
33
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
34
34
|
["polygon", { points: "10 8 16 12 10 16 10 8", key: "1cimsy" }]
|
|
35
35
|
]);
|
|
@@ -39,7 +39,7 @@ const br = Ke("CirclePlay", [
|
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
|
-
const
|
|
42
|
+
const br = Ke("Eraser", [
|
|
43
43
|
[
|
|
44
44
|
"path",
|
|
45
45
|
{
|
|
@@ -67,7 +67,7 @@ const $o = Ke("LogIn", [
|
|
|
67
67
|
* This source code is licensed under the ISC license.
|
|
68
68
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
69
|
*/
|
|
70
|
-
const
|
|
70
|
+
const xr = Ke("X", [
|
|
71
71
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
72
72
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
73
73
|
]), So = {
|
|
@@ -647,20 +647,20 @@ const kr = Ke("X", [
|
|
|
647
647
|
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": jo,
|
|
648
648
|
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": No
|
|
649
649
|
};
|
|
650
|
-
function
|
|
650
|
+
function kr(e) {
|
|
651
651
|
return To[e] ?? {};
|
|
652
652
|
}
|
|
653
653
|
const Oo = ({
|
|
654
654
|
title: e = "An error occurred",
|
|
655
655
|
message: t,
|
|
656
656
|
category: n
|
|
657
|
-
}) => /* @__PURE__ */ f.jsxs("div", { className:
|
|
658
|
-
n && /* @__PURE__ */ f.jsx(
|
|
659
|
-
e && /* @__PURE__ */ f.jsx(
|
|
657
|
+
}) => /* @__PURE__ */ f.jsxs("div", { className: Qa + " h-full pt-[--padding-content-top]", children: [
|
|
658
|
+
n && /* @__PURE__ */ f.jsx(Ka, { children: n }),
|
|
659
|
+
e && /* @__PURE__ */ f.jsx(Ya, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
660
660
|
/* @__PURE__ */ f.jsx("p", { children: t }),
|
|
661
|
-
/* @__PURE__ */ f.jsx(
|
|
661
|
+
/* @__PURE__ */ f.jsx(za, { to: "/", children: "Go back home" })
|
|
662
662
|
] });
|
|
663
|
-
var Zt = "Dialog", [
|
|
663
|
+
var Zt = "Dialog", [$r, Ru] = dr(Zt), [Co, ie] = $r(Zt), Sr = (e) => {
|
|
664
664
|
const {
|
|
665
665
|
__scopeDialog: t,
|
|
666
666
|
children: n,
|
|
@@ -690,10 +690,10 @@ var Zt = "Dialog", [Sr, Eu] = dr(Zt), [Co, ie] = Sr(Zt), wr = (e) => {
|
|
|
690
690
|
}
|
|
691
691
|
);
|
|
692
692
|
};
|
|
693
|
-
|
|
694
|
-
var
|
|
693
|
+
Sr.displayName = Zt;
|
|
694
|
+
var wr = "DialogTrigger", jr = j.forwardRef(
|
|
695
695
|
(e, t) => {
|
|
696
|
-
const { __scopeDialog: n, ...a } = e, s = ie(
|
|
696
|
+
const { __scopeDialog: n, ...a } = e, s = ie(wr, n), o = Yt(t, s.triggerRef);
|
|
697
697
|
return /* @__PURE__ */ f.jsx(
|
|
698
698
|
me.button,
|
|
699
699
|
{
|
|
@@ -709,28 +709,28 @@ var jr = "DialogTrigger", Nr = j.forwardRef(
|
|
|
709
709
|
);
|
|
710
710
|
}
|
|
711
711
|
);
|
|
712
|
-
|
|
713
|
-
var en = "DialogPortal", [Po,
|
|
712
|
+
jr.displayName = wr;
|
|
713
|
+
var en = "DialogPortal", [Po, Nr] = $r(en, {
|
|
714
714
|
forceMount: void 0
|
|
715
|
-
}),
|
|
715
|
+
}), Tr = (e) => {
|
|
716
716
|
const { __scopeDialog: t, forceMount: n, children: a, container: s } = e, o = ie(en, t);
|
|
717
|
-
return /* @__PURE__ */ f.jsx(Po, { scope: t, forceMount: n, children: j.Children.map(a, (r) => /* @__PURE__ */ f.jsx(gt, { present: n || o.open, children: /* @__PURE__ */ f.jsx(
|
|
717
|
+
return /* @__PURE__ */ f.jsx(Po, { scope: t, forceMount: n, children: j.Children.map(a, (r) => /* @__PURE__ */ f.jsx(gt, { present: n || o.open, children: /* @__PURE__ */ f.jsx(Da, { asChild: !0, container: s, children: r }) })) });
|
|
718
718
|
};
|
|
719
|
-
|
|
720
|
-
var ut = "DialogOverlay",
|
|
719
|
+
Tr.displayName = en;
|
|
720
|
+
var ut = "DialogOverlay", Or = j.forwardRef(
|
|
721
721
|
(e, t) => {
|
|
722
|
-
const n =
|
|
722
|
+
const n = Nr(ut, e.__scopeDialog), { forceMount: a = n.forceMount, ...s } = e, o = ie(ut, e.__scopeDialog);
|
|
723
723
|
return o.modal ? /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: /* @__PURE__ */ f.jsx(Eo, { ...s, ref: t }) }) : null;
|
|
724
724
|
}
|
|
725
725
|
);
|
|
726
|
-
|
|
726
|
+
Or.displayName = ut;
|
|
727
727
|
var Eo = j.forwardRef(
|
|
728
728
|
(e, t) => {
|
|
729
729
|
const { __scopeDialog: n, ...a } = e, s = ie(ut, n);
|
|
730
730
|
return (
|
|
731
731
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
732
732
|
// ie. when `Overlay` and `Content` are siblings
|
|
733
|
-
/* @__PURE__ */ f.jsx(
|
|
733
|
+
/* @__PURE__ */ f.jsx(_a, { as: fr, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ f.jsx(
|
|
734
734
|
me.div,
|
|
735
735
|
{
|
|
736
736
|
"data-state": nn(s.open),
|
|
@@ -741,21 +741,21 @@ var Eo = j.forwardRef(
|
|
|
741
741
|
) })
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
|
-
), Ne = "DialogContent",
|
|
744
|
+
), Ne = "DialogContent", Cr = j.forwardRef(
|
|
745
745
|
(e, t) => {
|
|
746
|
-
const n =
|
|
746
|
+
const n = Nr(Ne, e.__scopeDialog), { forceMount: a = n.forceMount, ...s } = e, o = ie(Ne, e.__scopeDialog);
|
|
747
747
|
return /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: o.modal ? /* @__PURE__ */ f.jsx(Ro, { ...s, ref: t }) : /* @__PURE__ */ f.jsx(Ao, { ...s, ref: t }) });
|
|
748
748
|
}
|
|
749
749
|
);
|
|
750
|
-
|
|
750
|
+
Cr.displayName = Ne;
|
|
751
751
|
var Ro = j.forwardRef(
|
|
752
752
|
(e, t) => {
|
|
753
753
|
const n = ie(Ne, e.__scopeDialog), a = j.useRef(null), s = Yt(t, n.contentRef, a);
|
|
754
754
|
return j.useEffect(() => {
|
|
755
755
|
const o = a.current;
|
|
756
|
-
if (o) return
|
|
756
|
+
if (o) return La(o);
|
|
757
757
|
}, []), /* @__PURE__ */ f.jsx(
|
|
758
|
-
|
|
758
|
+
Pr,
|
|
759
759
|
{
|
|
760
760
|
...e,
|
|
761
761
|
ref: s,
|
|
@@ -780,7 +780,7 @@ var Ro = j.forwardRef(
|
|
|
780
780
|
(e, t) => {
|
|
781
781
|
const n = ie(Ne, e.__scopeDialog), a = j.useRef(!1), s = j.useRef(!1);
|
|
782
782
|
return /* @__PURE__ */ f.jsx(
|
|
783
|
-
|
|
783
|
+
Pr,
|
|
784
784
|
{
|
|
785
785
|
...e,
|
|
786
786
|
ref: t,
|
|
@@ -799,12 +799,12 @@ var Ro = j.forwardRef(
|
|
|
799
799
|
}
|
|
800
800
|
);
|
|
801
801
|
}
|
|
802
|
-
),
|
|
802
|
+
), Pr = j.forwardRef(
|
|
803
803
|
(e, t) => {
|
|
804
804
|
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: s, onCloseAutoFocus: o, ...r } = e, i = ie(Ne, n), l = j.useRef(null), c = Yt(t, l);
|
|
805
|
-
return
|
|
805
|
+
return Ua(), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
806
806
|
/* @__PURE__ */ f.jsx(
|
|
807
|
-
|
|
807
|
+
Ma,
|
|
808
808
|
{
|
|
809
809
|
asChild: !0,
|
|
810
810
|
loop: !0,
|
|
@@ -812,7 +812,7 @@ var Ro = j.forwardRef(
|
|
|
812
812
|
onMountAutoFocus: s,
|
|
813
813
|
onUnmountAutoFocus: o,
|
|
814
814
|
children: /* @__PURE__ */ f.jsx(
|
|
815
|
-
|
|
815
|
+
Ha,
|
|
816
816
|
{
|
|
817
817
|
role: "dialog",
|
|
818
818
|
id: i.contentId,
|
|
@@ -832,23 +832,23 @@ var Ro = j.forwardRef(
|
|
|
832
832
|
] })
|
|
833
833
|
] });
|
|
834
834
|
}
|
|
835
|
-
), tn = "DialogTitle",
|
|
835
|
+
), tn = "DialogTitle", Er = j.forwardRef(
|
|
836
836
|
(e, t) => {
|
|
837
837
|
const { __scopeDialog: n, ...a } = e, s = ie(tn, n);
|
|
838
838
|
return /* @__PURE__ */ f.jsx(me.h2, { id: s.titleId, ...a, ref: t });
|
|
839
839
|
}
|
|
840
840
|
);
|
|
841
|
-
|
|
842
|
-
var
|
|
841
|
+
Er.displayName = tn;
|
|
842
|
+
var Rr = "DialogDescription", Ar = j.forwardRef(
|
|
843
843
|
(e, t) => {
|
|
844
|
-
const { __scopeDialog: n, ...a } = e, s = ie(
|
|
844
|
+
const { __scopeDialog: n, ...a } = e, s = ie(Rr, n);
|
|
845
845
|
return /* @__PURE__ */ f.jsx(me.p, { id: s.descriptionId, ...a, ref: t });
|
|
846
846
|
}
|
|
847
847
|
);
|
|
848
|
-
|
|
849
|
-
var
|
|
848
|
+
Ar.displayName = Rr;
|
|
849
|
+
var Fr = "DialogClose", qr = j.forwardRef(
|
|
850
850
|
(e, t) => {
|
|
851
|
-
const { __scopeDialog: n, ...a } = e, s = ie(
|
|
851
|
+
const { __scopeDialog: n, ...a } = e, s = ie(Fr, n);
|
|
852
852
|
return /* @__PURE__ */ f.jsx(
|
|
853
853
|
me.button,
|
|
854
854
|
{
|
|
@@ -860,16 +860,16 @@ var qr = "DialogClose", Ir = j.forwardRef(
|
|
|
860
860
|
);
|
|
861
861
|
}
|
|
862
862
|
);
|
|
863
|
-
|
|
863
|
+
qr.displayName = Fr;
|
|
864
864
|
function nn(e) {
|
|
865
865
|
return e ? "open" : "closed";
|
|
866
866
|
}
|
|
867
|
-
var
|
|
867
|
+
var Ir = "DialogTitleWarning", [Au, _r] = Ba(Ir, {
|
|
868
868
|
contentName: Ne,
|
|
869
869
|
titleName: tn,
|
|
870
870
|
docsSlug: "dialog"
|
|
871
871
|
}), Fo = ({ titleId: e }) => {
|
|
872
|
-
const t =
|
|
872
|
+
const t = _r(Ir), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
873
873
|
|
|
874
874
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
875
875
|
|
|
@@ -878,15 +878,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
878
878
|
e && (document.getElementById(e) || console.error(n));
|
|
879
879
|
}, [n, e]), null;
|
|
880
880
|
}, qo = "DialogDescriptionWarning", Io = ({ contentRef: e, descriptionId: t }) => {
|
|
881
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
881
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_r(qo).contentName}}.`;
|
|
882
882
|
return j.useEffect(() => {
|
|
883
883
|
var o;
|
|
884
884
|
const s = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
885
885
|
t && s && (document.getElementById(t) || console.warn(a));
|
|
886
886
|
}, [a, e, t]), null;
|
|
887
|
-
}, _o =
|
|
888
|
-
const Ho = _o, Bo = Lo, Do = Uo,
|
|
889
|
-
|
|
887
|
+
}, _o = Sr, Lo = jr, Uo = Tr, Lr = Or, Ur = Cr, Mr = Er, Hr = Ar, Mo = qr;
|
|
888
|
+
const Ho = _o, Bo = Lo, Do = Uo, Br = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
889
|
+
Lr,
|
|
890
890
|
{
|
|
891
891
|
ref: n,
|
|
892
892
|
className: A(
|
|
@@ -896,11 +896,11 @@ const Ho = _o, Bo = Lo, Do = Uo, Dr = j.forwardRef(({ className: e, ...t }, n) =
|
|
|
896
896
|
...t
|
|
897
897
|
}
|
|
898
898
|
));
|
|
899
|
-
|
|
900
|
-
const
|
|
901
|
-
/* @__PURE__ */ f.jsx(
|
|
899
|
+
Br.displayName = Lr.displayName;
|
|
900
|
+
const Dr = j.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ f.jsxs(Do, { children: [
|
|
901
|
+
/* @__PURE__ */ f.jsx(Br, {}),
|
|
902
902
|
/* @__PURE__ */ f.jsxs(
|
|
903
|
-
|
|
903
|
+
Ur,
|
|
904
904
|
{
|
|
905
905
|
ref: a,
|
|
906
906
|
className: A(
|
|
@@ -911,16 +911,16 @@ const Vr = j.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__
|
|
|
911
911
|
children: [
|
|
912
912
|
t,
|
|
913
913
|
/* @__PURE__ */ f.jsxs(Mo, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
914
|
-
/* @__PURE__ */ f.jsx(
|
|
914
|
+
/* @__PURE__ */ f.jsx(xr, { className: "h-4 w-4" }),
|
|
915
915
|
/* @__PURE__ */ f.jsx("span", { className: "sr-only", children: "Close" })
|
|
916
916
|
] })
|
|
917
917
|
]
|
|
918
918
|
}
|
|
919
919
|
)
|
|
920
920
|
] }));
|
|
921
|
-
|
|
922
|
-
const
|
|
923
|
-
|
|
921
|
+
Dr.displayName = Ur.displayName;
|
|
922
|
+
const Vr = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
923
|
+
Mr,
|
|
924
924
|
{
|
|
925
925
|
ref: n,
|
|
926
926
|
className: A(
|
|
@@ -930,16 +930,16 @@ const Wr = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
930
930
|
...t
|
|
931
931
|
}
|
|
932
932
|
));
|
|
933
|
-
|
|
933
|
+
Vr.displayName = Mr.displayName;
|
|
934
934
|
const Vo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
935
|
-
|
|
935
|
+
Hr,
|
|
936
936
|
{
|
|
937
937
|
ref: n,
|
|
938
938
|
className: A("text-sm text-muted-foreground", e),
|
|
939
939
|
...t
|
|
940
940
|
}
|
|
941
941
|
));
|
|
942
|
-
Vo.displayName =
|
|
942
|
+
Vo.displayName = Hr.displayName;
|
|
943
943
|
const rn = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
944
944
|
"div",
|
|
945
945
|
{
|
|
@@ -990,9 +990,9 @@ const Ko = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
990
990
|
}
|
|
991
991
|
));
|
|
992
992
|
Ko.displayName = "CardFooter";
|
|
993
|
-
var an = "Tabs", [Qo,
|
|
993
|
+
var an = "Tabs", [Qo, Fu] = dr(an, [
|
|
994
994
|
vr
|
|
995
|
-
]),
|
|
995
|
+
]), Wr = vr(), [Yo, on] = Qo(an), zr = j.forwardRef(
|
|
996
996
|
(e, t) => {
|
|
997
997
|
const {
|
|
998
998
|
__scopeTabs: n,
|
|
@@ -1003,7 +1003,7 @@ var an = "Tabs", [Qo, Au] = dr(an, [
|
|
|
1003
1003
|
dir: i,
|
|
1004
1004
|
activationMode: l = "automatic",
|
|
1005
1005
|
...c
|
|
1006
|
-
} = e, u =
|
|
1006
|
+
} = e, u = Va(i), [p, d] = pr({
|
|
1007
1007
|
prop: a,
|
|
1008
1008
|
onChange: s,
|
|
1009
1009
|
defaultProp: o
|
|
@@ -1031,12 +1031,12 @@ var an = "Tabs", [Qo, Au] = dr(an, [
|
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
1033
|
);
|
|
1034
|
-
|
|
1035
|
-
var
|
|
1034
|
+
zr.displayName = an;
|
|
1035
|
+
var Jr = "TabsList", Gr = j.forwardRef(
|
|
1036
1036
|
(e, t) => {
|
|
1037
|
-
const { __scopeTabs: n, loop: a = !0, ...s } = e, o = on(
|
|
1037
|
+
const { __scopeTabs: n, loop: a = !0, ...s } = e, o = on(Jr, n), r = Wr(n);
|
|
1038
1038
|
return /* @__PURE__ */ f.jsx(
|
|
1039
|
-
|
|
1039
|
+
ho,
|
|
1040
1040
|
{
|
|
1041
1041
|
asChild: !0,
|
|
1042
1042
|
...r,
|
|
@@ -1056,12 +1056,12 @@ var Gr = "TabsList", Kr = j.forwardRef(
|
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
1058
|
);
|
|
1059
|
-
|
|
1060
|
-
var
|
|
1059
|
+
Gr.displayName = Jr;
|
|
1060
|
+
var Kr = "TabsTrigger", Qr = j.forwardRef(
|
|
1061
1061
|
(e, t) => {
|
|
1062
|
-
const { __scopeTabs: n, value: a, disabled: s = !1, ...o } = e, r = on(
|
|
1062
|
+
const { __scopeTabs: n, value: a, disabled: s = !1, ...o } = e, r = on(Kr, n), i = Wr(n), l = Zr(r.baseId, a), c = ea(r.baseId, a), u = a === r.value;
|
|
1063
1063
|
return /* @__PURE__ */ f.jsx(
|
|
1064
|
-
|
|
1064
|
+
yo,
|
|
1065
1065
|
{
|
|
1066
1066
|
asChild: !0,
|
|
1067
1067
|
...i,
|
|
@@ -1096,10 +1096,10 @@ var Qr = "TabsTrigger", Yr = j.forwardRef(
|
|
|
1096
1096
|
);
|
|
1097
1097
|
}
|
|
1098
1098
|
);
|
|
1099
|
-
|
|
1100
|
-
var
|
|
1099
|
+
Qr.displayName = Kr;
|
|
1100
|
+
var Yr = "TabsContent", Xr = j.forwardRef(
|
|
1101
1101
|
(e, t) => {
|
|
1102
|
-
const { __scopeTabs: n, value: a, forceMount: s, children: o, ...r } = e, i = on(
|
|
1102
|
+
const { __scopeTabs: n, value: a, forceMount: s, children: o, ...r } = e, i = on(Yr, n), l = Zr(i.baseId, a), c = ea(i.baseId, a), u = a === i.value, p = j.useRef(u);
|
|
1103
1103
|
return j.useEffect(() => {
|
|
1104
1104
|
const d = requestAnimationFrame(() => p.current = !1);
|
|
1105
1105
|
return () => cancelAnimationFrame(d);
|
|
@@ -1124,15 +1124,15 @@ var Xr = "TabsContent", Zr = j.forwardRef(
|
|
|
1124
1124
|
) });
|
|
1125
1125
|
}
|
|
1126
1126
|
);
|
|
1127
|
-
|
|
1128
|
-
function
|
|
1127
|
+
Xr.displayName = Yr;
|
|
1128
|
+
function Zr(e, t) {
|
|
1129
1129
|
return `${e}-trigger-${t}`;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function ea(e, t) {
|
|
1132
1132
|
return `${e}-content-${t}`;
|
|
1133
1133
|
}
|
|
1134
|
-
var
|
|
1135
|
-
const Nn =
|
|
1134
|
+
var ta = zr, sn = Gr, ln = Qr, cn = Xr;
|
|
1135
|
+
const Nn = ta, _t = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
1136
1136
|
sn,
|
|
1137
1137
|
{
|
|
1138
1138
|
ref: n,
|
|
@@ -1182,7 +1182,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1182
1182
|
const n = (3 * $t(e) + 2 * $t(e) + $t(e)) % 360, { saturation: a = 75, lightness: s = 60 } = t;
|
|
1183
1183
|
return `${n}deg ${a}% ${s}%`;
|
|
1184
1184
|
}, St = "data-linked-param", ei = (e) => {
|
|
1185
|
-
const [t] =
|
|
1185
|
+
const [t] = Xa();
|
|
1186
1186
|
return Zo(
|
|
1187
1187
|
e,
|
|
1188
1188
|
t ? void 0 : { saturation: 85, lightness: 50 }
|
|
@@ -1284,7 +1284,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1284
1284
|
autoComplete: "off"
|
|
1285
1285
|
}
|
|
1286
1286
|
),
|
|
1287
|
-
u && /* @__PURE__ */ f.jsx(
|
|
1287
|
+
u && /* @__PURE__ */ f.jsx(Za, { size: 16, className: "text-amber-500" })
|
|
1288
1288
|
] }),
|
|
1289
1289
|
/* @__PURE__ */ f.jsx(
|
|
1290
1290
|
Lt,
|
|
@@ -1303,7 +1303,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1303
1303
|
s(c);
|
|
1304
1304
|
},
|
|
1305
1305
|
type: "button",
|
|
1306
|
-
children: /* @__PURE__ */ f.jsx(
|
|
1306
|
+
children: /* @__PURE__ */ f.jsx(xr, { size: 16 })
|
|
1307
1307
|
}
|
|
1308
1308
|
),
|
|
1309
1309
|
/* @__PURE__ */ f.jsx("div", { className: "col-span-full border-b" })
|
|
@@ -1389,7 +1389,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1389
1389
|
),
|
|
1390
1390
|
title: "Clear value",
|
|
1391
1391
|
onClick: () => s.onChange(""),
|
|
1392
|
-
children: /* @__PURE__ */ f.jsx(
|
|
1392
|
+
children: /* @__PURE__ */ f.jsx(br, { size: 16 })
|
|
1393
1393
|
}
|
|
1394
1394
|
)
|
|
1395
1395
|
}
|
|
@@ -1403,7 +1403,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1403
1403
|
const { fields: n } = Xt({
|
|
1404
1404
|
control: e,
|
|
1405
1405
|
name: "queryParams"
|
|
1406
|
-
}), a =
|
|
1406
|
+
}), a = to(), s = t.map((i) => !!i.isRequired), r = a.watch("identity") !== Be;
|
|
1407
1407
|
return /* @__PURE__ */ f.jsx("div", { className: "", children: /* @__PURE__ */ f.jsx("table", { className: "w-full [&_td]:border [&_td]:p-1.5 [&_td]:px-2", children: /* @__PURE__ */ f.jsx("tbody", { children: n.filter(
|
|
1408
1408
|
// TODO remove this hack for Accu or make it more generic
|
|
1409
1409
|
(i) => !(r && i.name === "apikey")
|
|
@@ -1479,7 +1479,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1479
1479
|
),
|
|
1480
1480
|
title: "Clear value",
|
|
1481
1481
|
onClick: () => c.onChange(""),
|
|
1482
|
-
children: /* @__PURE__ */ f.jsx(
|
|
1482
|
+
children: /* @__PURE__ */ f.jsx(br, { size: 16 })
|
|
1483
1483
|
}
|
|
1484
1484
|
),
|
|
1485
1485
|
name: `queryParams.${l}.value`
|
|
@@ -1487,7 +1487,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1487
1487
|
)
|
|
1488
1488
|
] }) })
|
|
1489
1489
|
] }, i.id)) }) }) });
|
|
1490
|
-
},
|
|
1490
|
+
}, na = ({
|
|
1491
1491
|
value: e,
|
|
1492
1492
|
onChange: t,
|
|
1493
1493
|
className: n,
|
|
@@ -1505,7 +1505,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1505
1505
|
children: a.map((s) => /* @__PURE__ */ f.jsx("option", { value: s.value, children: s.label }, s.value))
|
|
1506
1506
|
}
|
|
1507
1507
|
),
|
|
1508
|
-
/* @__PURE__ */ f.jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: /* @__PURE__ */ f.jsx(
|
|
1508
|
+
/* @__PURE__ */ f.jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: /* @__PURE__ */ f.jsx(xo, { size: 14 }) })
|
|
1509
1509
|
] }), ii = (e) => {
|
|
1510
1510
|
var n;
|
|
1511
1511
|
return (n = Object.entries({
|
|
@@ -1547,7 +1547,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
) }),
|
|
1549
1549
|
a && /* @__PURE__ */ f.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ f.jsx(
|
|
1550
|
-
|
|
1550
|
+
na,
|
|
1551
1551
|
{
|
|
1552
1552
|
value: o,
|
|
1553
1553
|
onChange: (i) => r(i.target.value),
|
|
@@ -1579,7 +1579,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1579
1579
|
defaultBody: r = ""
|
|
1580
1580
|
}) => {
|
|
1581
1581
|
var w, S;
|
|
1582
|
-
const { register: i, control: l, handleSubmit: c, watch: u, setValue: p, ...d } =
|
|
1582
|
+
const { register: i, control: l, handleSubmit: c, watch: u, setValue: p, ...d } = no({
|
|
1583
1583
|
defaultValues: {
|
|
1584
1584
|
body: r,
|
|
1585
1585
|
queryParams: s.map((k) => ({
|
|
@@ -1597,14 +1597,14 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1597
1597
|
})),
|
|
1598
1598
|
identity: Be
|
|
1599
1599
|
}
|
|
1600
|
-
}), m = u(), h =
|
|
1600
|
+
}), m = u(), h = Fa(), y = hr(!1);
|
|
1601
1601
|
yr(() => {
|
|
1602
1602
|
var C;
|
|
1603
1603
|
if (y.current) return;
|
|
1604
1604
|
const k = (C = h.data) == null ? void 0 : C.at(0);
|
|
1605
1605
|
k && (p("identity", k.id), y.current = !0);
|
|
1606
1606
|
}, [p, h.data]);
|
|
1607
|
-
const v =
|
|
1607
|
+
const v = ro({
|
|
1608
1608
|
mutationFn: async (k) => {
|
|
1609
1609
|
var I, H;
|
|
1610
1610
|
const C = ti(e, t, k), P = performance.now(), R = new Request(C, {
|
|
@@ -1649,7 +1649,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1649
1649
|
/* @__PURE__ */ f.jsx("wbr", {})
|
|
1650
1650
|
] }, k.name));
|
|
1651
1651
|
return /* @__PURE__ */ f.jsx(
|
|
1652
|
-
|
|
1652
|
+
ao,
|
|
1653
1653
|
{
|
|
1654
1654
|
register: i,
|
|
1655
1655
|
control: l,
|
|
@@ -1697,14 +1697,14 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1697
1697
|
/* @__PURE__ */ f.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
1698
1698
|
"Auth:",
|
|
1699
1699
|
/* @__PURE__ */ f.jsxs(
|
|
1700
|
-
|
|
1700
|
+
oo,
|
|
1701
1701
|
{
|
|
1702
1702
|
onValueChange: (k) => p("identity", k),
|
|
1703
1703
|
value: m.identity,
|
|
1704
1704
|
defaultValue: m.identity,
|
|
1705
1705
|
children: [
|
|
1706
|
-
/* @__PURE__ */ f.jsx(
|
|
1707
|
-
/* @__PURE__ */ f.jsxs(
|
|
1706
|
+
/* @__PURE__ */ f.jsx(io, { className: "w-[180px] flex", children: h.isPending ? /* @__PURE__ */ f.jsx(jn, {}) : /* @__PURE__ */ f.jsx(so, {}) }),
|
|
1707
|
+
/* @__PURE__ */ f.jsxs(lo, { align: "center", children: [
|
|
1708
1708
|
/* @__PURE__ */ f.jsx(wn, { value: Be, children: "None" }),
|
|
1709
1709
|
(S = h.data) == null ? void 0 : S.map((k) => /* @__PURE__ */ f.jsx(wn, { value: k.id, children: k.label }, k.id))
|
|
1710
1710
|
] })
|
|
@@ -1783,23 +1783,41 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1783
1783
|
] }) })
|
|
1784
1784
|
}
|
|
1785
1785
|
);
|
|
1786
|
-
},
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1786
|
+
}, fi = ({
|
|
1787
|
+
className: e,
|
|
1788
|
+
size: t = 16
|
|
1789
|
+
}) => /* @__PURE__ */ f.jsx(
|
|
1790
|
+
"svg",
|
|
1791
|
+
{
|
|
1792
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1793
|
+
viewBox: "0 0 24 24",
|
|
1794
|
+
fill: "currentColor",
|
|
1795
|
+
className: e,
|
|
1796
|
+
width: t,
|
|
1797
|
+
height: t,
|
|
1798
|
+
children: /* @__PURE__ */ f.jsx(
|
|
1799
|
+
"path",
|
|
1791
1800
|
{
|
|
1792
|
-
|
|
1793
|
-
|
|
1801
|
+
fillRule: "evenodd",
|
|
1802
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm14.024-.983a1.125 1.125 0 0 1 0 1.966l-5.603 3.113A1.125 1.125 0 0 1 9 15.113V8.887c0-.857.921-1.4 1.671-.983l5.603 3.113Z",
|
|
1803
|
+
clipRule: "evenodd"
|
|
1794
1804
|
}
|
|
1795
|
-
)
|
|
1805
|
+
)
|
|
1806
|
+
}
|
|
1807
|
+
), ra = (e) => {
|
|
1808
|
+
const [t, n] = gr(!1);
|
|
1809
|
+
return /* @__PURE__ */ f.jsxs(Ho, { onOpenChange: (a) => n(a), children: [
|
|
1810
|
+
/* @__PURE__ */ f.jsx(Bo, { asChild: !0, children: e.children ?? /* @__PURE__ */ f.jsxs("button", { className: "flex gap-1 items-center px-2 py-1 rounded-md bg-primary/80 hover:bg-primary transition text-primary-foreground text-xs", children: [
|
|
1811
|
+
"Test",
|
|
1812
|
+
/* @__PURE__ */ f.jsx(fi, { className: "", size: 14 })
|
|
1813
|
+
] }) }),
|
|
1796
1814
|
/* @__PURE__ */ f.jsxs(
|
|
1797
|
-
|
|
1815
|
+
Dr,
|
|
1798
1816
|
{
|
|
1799
1817
|
className: "max-w-screen-xl w-full h-5/6 overflow-auto p-0",
|
|
1800
1818
|
"aria-describedby": void 0,
|
|
1801
1819
|
children: [
|
|
1802
|
-
/* @__PURE__ */ f.jsx(
|
|
1820
|
+
/* @__PURE__ */ f.jsx(co, { children: /* @__PURE__ */ f.jsx(Vr, { children: "Playground" }) }),
|
|
1803
1821
|
t && /* @__PURE__ */ f.jsx(di, { ...e })
|
|
1804
1822
|
]
|
|
1805
1823
|
}
|
|
@@ -1831,16 +1849,16 @@ var Tn = (e, t) => {
|
|
|
1831
1849
|
this.postProcessors = [...this.postProcessors, n];
|
|
1832
1850
|
}, this.indentationCharacter = e || On, this.lineJoin = t ?? Cn;
|
|
1833
1851
|
}
|
|
1834
|
-
}, fi = function(e) {
|
|
1835
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1836
1852
|
}, pi = function(e) {
|
|
1853
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1854
|
+
}, mi = function(e) {
|
|
1837
1855
|
var t = typeof e;
|
|
1838
1856
|
return e !== null && (t === "object" || t === "function");
|
|
1839
1857
|
}, dn = {};
|
|
1840
1858
|
Object.defineProperty(dn, "__esModule", { value: !0 });
|
|
1841
1859
|
dn.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
1842
|
-
const
|
|
1843
|
-
var
|
|
1860
|
+
const hi = pi, yi = mi, gi = dn.default;
|
|
1861
|
+
var vi = (e, t, n) => {
|
|
1844
1862
|
const a = [];
|
|
1845
1863
|
return function s(o, r, i) {
|
|
1846
1864
|
r = r || {}, r.indent = r.indent || " ", i = i || "";
|
|
@@ -1867,7 +1885,7 @@ var gi = (e, t, n) => {
|
|
|
1867
1885
|
};
|
|
1868
1886
|
if (a.indexOf(o) !== -1)
|
|
1869
1887
|
return '"[Circular]"';
|
|
1870
|
-
if (o == null || typeof o == "number" || typeof o == "boolean" || typeof o == "function" || typeof o == "symbol" ||
|
|
1888
|
+
if (o == null || typeof o == "number" || typeof o == "boolean" || typeof o == "function" || typeof o == "symbol" || hi(o))
|
|
1871
1889
|
return String(o);
|
|
1872
1890
|
if (o instanceof Date)
|
|
1873
1891
|
return `new Date('${o.toISOString()}')`;
|
|
@@ -1882,8 +1900,8 @@ var gi = (e, t, n) => {
|
|
|
1882
1900
|
}).join("") + l.pad + "]";
|
|
1883
1901
|
return a.pop(), c(u);
|
|
1884
1902
|
}
|
|
1885
|
-
if (
|
|
1886
|
-
let u = Object.keys(o).concat(
|
|
1903
|
+
if (yi(o)) {
|
|
1904
|
+
let u = Object.keys(o).concat(gi(o));
|
|
1887
1905
|
if (r.filter && (u = u.filter((d) => r.filter(o, d))), u.length === 0)
|
|
1888
1906
|
return "{}";
|
|
1889
1907
|
a.push(o);
|
|
@@ -1898,13 +1916,13 @@ var gi = (e, t, n) => {
|
|
|
1898
1916
|
` ? "\\n" : "\\r"), r.singleQuotes === !1 ? (o = o.replace(/"/g, '\\"'), `"${o}"`) : (o = o.replace(/\\?'/g, "\\'"), `'${o}'`);
|
|
1899
1917
|
}(e, t, n);
|
|
1900
1918
|
};
|
|
1901
|
-
const J = /* @__PURE__ */
|
|
1919
|
+
const J = /* @__PURE__ */ go(vi);
|
|
1902
1920
|
function ze(e, t = {}) {
|
|
1903
1921
|
const { delimiter: n = '"', escapeChar: a = "\\", escapeNewlines: s = !0 } = t;
|
|
1904
1922
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
1905
1923
|
` ? s ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? s ? `${a}r` : r : r === a ? a + a : r === n ? a + n : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
|
|
1906
1924
|
}
|
|
1907
|
-
var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }),
|
|
1925
|
+
var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }), bi = {
|
|
1908
1926
|
info: {
|
|
1909
1927
|
key: "libcurl",
|
|
1910
1928
|
title: "Libcurl",
|
|
@@ -1920,7 +1938,7 @@ var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }),
|
|
|
1920
1938
|
o(`headers = curl_slist_append(headers, "${c}: ${V(n[c])}");`);
|
|
1921
1939
|
}), o("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), o(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), s.text && (r(), o(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(s.text)});`)), r(), o("CURLcode ret = curl_easy_perform(hnd);"), i();
|
|
1922
1940
|
}
|
|
1923
|
-
},
|
|
1941
|
+
}, xi = {
|
|
1924
1942
|
info: {
|
|
1925
1943
|
key: "c",
|
|
1926
1944
|
title: "C",
|
|
@@ -1928,30 +1946,30 @@ var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }),
|
|
|
1928
1946
|
cli: "c"
|
|
1929
1947
|
},
|
|
1930
1948
|
clientsById: {
|
|
1931
|
-
libcurl:
|
|
1949
|
+
libcurl: bi
|
|
1932
1950
|
}
|
|
1933
1951
|
}, Y = (e, t) => Object.keys(e).find((n) => n.toLowerCase() === t.toLowerCase()), de = (e, t) => {
|
|
1934
1952
|
const n = Y(e, t);
|
|
1935
1953
|
if (n)
|
|
1936
1954
|
return e[n];
|
|
1937
|
-
}, vt = (e, t) => !!Y(e, t),
|
|
1955
|
+
}, vt = (e, t) => !!Y(e, t), ki = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
1938
1956
|
(t) => e.indexOf(t) > -1
|
|
1939
1957
|
), Pn = class {
|
|
1940
1958
|
constructor(e) {
|
|
1941
1959
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
1942
1960
|
}
|
|
1943
|
-
},
|
|
1961
|
+
}, $i = class {
|
|
1944
1962
|
constructor(e) {
|
|
1945
1963
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
1946
1964
|
}
|
|
1947
|
-
},
|
|
1965
|
+
}, aa = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), oa = (e) => e === void 0 ? !0 : aa(e) === "object" ? Object.keys(e).length === 0 : !1, En = (e) => (Object.keys(e).filter((t) => oa(e[t])).forEach((t) => {
|
|
1948
1966
|
delete e[t];
|
|
1949
1967
|
}), e), it = (e, t) => {
|
|
1950
1968
|
const n = " ".repeat(e);
|
|
1951
1969
|
return t.replace(/\n/g, `
|
|
1952
1970
|
${n}`);
|
|
1953
1971
|
}, Ut = (e) => {
|
|
1954
|
-
switch (
|
|
1972
|
+
switch (aa(e)) {
|
|
1955
1973
|
case "string":
|
|
1956
1974
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
1957
1975
|
case "file":
|
|
@@ -1977,7 +1995,7 @@ ${n}`);
|
|
|
1977
1995
|
default:
|
|
1978
1996
|
return e.toString();
|
|
1979
1997
|
}
|
|
1980
|
-
},
|
|
1998
|
+
}, Si = {
|
|
1981
1999
|
info: {
|
|
1982
2000
|
key: "clj_http",
|
|
1983
2001
|
title: "clj-http",
|
|
@@ -2019,7 +2037,7 @@ ${n}`);
|
|
|
2019
2037
|
if (n.params) {
|
|
2020
2038
|
c.multipart = n.params.map((p) => p.fileName && !p.value ? {
|
|
2021
2039
|
name: p.name,
|
|
2022
|
-
content: new
|
|
2040
|
+
content: new $i(p.fileName)
|
|
2023
2041
|
} : {
|
|
2024
2042
|
name: p.name,
|
|
2025
2043
|
content: p.value
|
|
@@ -2040,7 +2058,7 @@ ${n}`);
|
|
|
2040
2058
|
break;
|
|
2041
2059
|
}
|
|
2042
2060
|
if (r(`(require '[clj-http.client :as client])
|
|
2043
|
-
`),
|
|
2061
|
+
`), oa(En(c)))
|
|
2044
2062
|
r(`(client/${t} "${a}")`);
|
|
2045
2063
|
else {
|
|
2046
2064
|
const u = 11 + t.length + a.length, p = it(u, Ut(En(c)));
|
|
@@ -2048,16 +2066,16 @@ ${n}`);
|
|
|
2048
2066
|
}
|
|
2049
2067
|
return i();
|
|
2050
2068
|
}
|
|
2051
|
-
},
|
|
2069
|
+
}, wi = {
|
|
2052
2070
|
info: {
|
|
2053
2071
|
key: "clojure",
|
|
2054
2072
|
title: "Clojure",
|
|
2055
2073
|
default: "clj_http"
|
|
2056
2074
|
},
|
|
2057
2075
|
clientsById: {
|
|
2058
|
-
clj_http:
|
|
2076
|
+
clj_http: Si
|
|
2059
2077
|
}
|
|
2060
|
-
},
|
|
2078
|
+
}, ji = (e) => {
|
|
2061
2079
|
let t = de(e, "accept-encoding");
|
|
2062
2080
|
if (!t)
|
|
2063
2081
|
return [];
|
|
@@ -2074,7 +2092,7 @@ ${n}`);
|
|
|
2074
2092
|
}
|
|
2075
2093
|
});
|
|
2076
2094
|
}), a;
|
|
2077
|
-
},
|
|
2095
|
+
}, Ni = {
|
|
2078
2096
|
info: {
|
|
2079
2097
|
key: "httpclient",
|
|
2080
2098
|
title: "HttpClient",
|
|
@@ -2090,7 +2108,7 @@ ${n}`);
|
|
|
2090
2108
|
}, { push: r, join: i } = new O({ indent: o.indent });
|
|
2091
2109
|
r("using System.Net.Http.Headers;");
|
|
2092
2110
|
let l = "";
|
|
2093
|
-
const c = !!e.cookie, u =
|
|
2111
|
+
const c = !!e.cookie, u = ji(e);
|
|
2094
2112
|
(c || u.length) && (l = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), c && r("UseCookies = false,", 1), u.length && r(`AutomaticDecompression = ${u.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${l});`), r("var request = new HttpRequestMessage"), r("{");
|
|
2095
2113
|
const p = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
2096
2114
|
n = n.toUpperCase(), n && p.includes(n) ? n = `HttpMethod.${n[0]}${n.substring(1).toLowerCase()}` : n = `new HttpMethod("${n}")`, r(`Method = ${n},`, 1), r(`RequestUri = new Uri("${a}"),`, 1);
|
|
@@ -2127,10 +2145,10 @@ ${n}`);
|
|
|
2127
2145
|
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("}"), i();
|
|
2128
2146
|
}
|
|
2129
2147
|
};
|
|
2130
|
-
function
|
|
2148
|
+
function Ti(e) {
|
|
2131
2149
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
2132
2150
|
}
|
|
2133
|
-
var
|
|
2151
|
+
var Oi = {
|
|
2134
2152
|
info: {
|
|
2135
2153
|
key: "restsharp",
|
|
2136
2154
|
title: "RestSharp",
|
|
@@ -2180,11 +2198,11 @@ var Ti = {
|
|
|
2180
2198
|
if (!s.text) break;
|
|
2181
2199
|
r(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
|
|
2182
2200
|
}
|
|
2183
|
-
return r(`var response = await client.${
|
|
2201
|
+
return r(`var response = await client.${Ti(e)}Async(request);
|
|
2184
2202
|
`), r(`Console.WriteLine("{0}", response.Content);
|
|
2185
2203
|
`), i();
|
|
2186
2204
|
}
|
|
2187
|
-
},
|
|
2205
|
+
}, Ci = {
|
|
2188
2206
|
info: {
|
|
2189
2207
|
key: "csharp",
|
|
2190
2208
|
title: "C#",
|
|
@@ -2192,10 +2210,10 @@ var Ti = {
|
|
|
2192
2210
|
cli: "dotnet"
|
|
2193
2211
|
},
|
|
2194
2212
|
clientsById: {
|
|
2195
|
-
httpclient:
|
|
2196
|
-
restsharp:
|
|
2213
|
+
httpclient: Ni,
|
|
2214
|
+
restsharp: Oi
|
|
2197
2215
|
}
|
|
2198
|
-
},
|
|
2216
|
+
}, Pi = {
|
|
2199
2217
|
info: {
|
|
2200
2218
|
key: "native",
|
|
2201
2219
|
title: "NewRequest",
|
|
@@ -2213,7 +2231,7 @@ var Ti = {
|
|
|
2213
2231
|
r(`req.Header.Add("${g}", "${V(n[g])}")`, m);
|
|
2214
2232
|
}), o()), r(`res, ${d} := ${b}.Do(req)`, m), h(), u && (o(), r("defer res.Body.Close()", m), r(`body, ${d} := io.ReadAll(res.Body)`, m), h()), o(), u && r("fmt.Println(string(body))", m), l && (o(), r("}")), i();
|
|
2215
2233
|
}
|
|
2216
|
-
},
|
|
2234
|
+
}, Ei = {
|
|
2217
2235
|
info: {
|
|
2218
2236
|
key: "go",
|
|
2219
2237
|
title: "Go",
|
|
@@ -2221,10 +2239,10 @@ var Ti = {
|
|
|
2221
2239
|
cli: "go"
|
|
2222
2240
|
},
|
|
2223
2241
|
clientsById: {
|
|
2224
|
-
native:
|
|
2242
|
+
native: Pi
|
|
2225
2243
|
}
|
|
2226
2244
|
}, Rn = `\r
|
|
2227
|
-
`,
|
|
2245
|
+
`, Ri = {
|
|
2228
2246
|
info: {
|
|
2229
2247
|
key: "http1.1",
|
|
2230
2248
|
title: "HTTP/1.1",
|
|
@@ -2252,16 +2270,16 @@ var Ti = {
|
|
|
2252
2270
|
const m = u(), h = o.text || "";
|
|
2253
2271
|
return `${m}${Rn}${h}`;
|
|
2254
2272
|
}
|
|
2255
|
-
},
|
|
2273
|
+
}, Ai = {
|
|
2256
2274
|
info: {
|
|
2257
2275
|
key: "http",
|
|
2258
2276
|
title: "HTTP",
|
|
2259
2277
|
default: "http1.1"
|
|
2260
2278
|
},
|
|
2261
2279
|
clientsById: {
|
|
2262
|
-
"http1.1":
|
|
2280
|
+
"http1.1": Ri
|
|
2263
2281
|
}
|
|
2264
|
-
},
|
|
2282
|
+
}, Fi = {
|
|
2265
2283
|
info: {
|
|
2266
2284
|
key: "asynchttp",
|
|
2267
2285
|
title: "AsyncHttp",
|
|
@@ -2278,7 +2296,7 @@ var Ti = {
|
|
|
2278
2296
|
i(`.setHeader("${c}", "${V(t[c])}")`, 1);
|
|
2279
2297
|
}), n.text && i(`.setBody(${JSON.stringify(n.text)})`, 1), i(".execute()", 1), i(".toCompletableFuture()", 1), i(".thenAccept(System.out::println)", 1), i(".join();", 1), r(), i("client.close();"), l();
|
|
2280
2298
|
}
|
|
2281
|
-
},
|
|
2299
|
+
}, qi = {
|
|
2282
2300
|
info: {
|
|
2283
2301
|
key: "nethttp",
|
|
2284
2302
|
title: "java.net.http",
|
|
@@ -2300,7 +2318,7 @@ var Ti = {
|
|
|
2300
2318
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
2301
2319
|
), r("System.out.println(response.body());"), i();
|
|
2302
2320
|
}
|
|
2303
|
-
},
|
|
2321
|
+
}, Ii = {
|
|
2304
2322
|
info: {
|
|
2305
2323
|
key: "okhttp",
|
|
2306
2324
|
title: "OkHttp",
|
|
@@ -2317,7 +2335,7 @@ var Ti = {
|
|
|
2317
2335
|
r(`.addHeader("${p}", "${V(a[p])}")`, 1);
|
|
2318
2336
|
}), r(".build();", 1), i(), r("Response response = client.newCall(request).execute();"), l();
|
|
2319
2337
|
}
|
|
2320
|
-
},
|
|
2338
|
+
}, _i = {
|
|
2321
2339
|
info: {
|
|
2322
2340
|
key: "unirest",
|
|
2323
2341
|
title: "Unirest",
|
|
@@ -2334,19 +2352,19 @@ var Ti = {
|
|
|
2334
2352
|
i(`.header("${c}", "${V(t[c])}")`, 1);
|
|
2335
2353
|
}), n.text && i(`.body(${JSON.stringify(n.text)})`, 1), i(".asString();", 1), r();
|
|
2336
2354
|
}
|
|
2337
|
-
},
|
|
2355
|
+
}, Li = {
|
|
2338
2356
|
info: {
|
|
2339
2357
|
key: "java",
|
|
2340
2358
|
title: "Java",
|
|
2341
2359
|
default: "unirest"
|
|
2342
2360
|
},
|
|
2343
2361
|
clientsById: {
|
|
2344
|
-
asynchttp:
|
|
2345
|
-
nethttp:
|
|
2346
|
-
okhttp:
|
|
2347
|
-
unirest:
|
|
2362
|
+
asynchttp: Fi,
|
|
2363
|
+
nethttp: qi,
|
|
2364
|
+
okhttp: Ii,
|
|
2365
|
+
unirest: _i
|
|
2348
2366
|
}
|
|
2349
|
-
},
|
|
2367
|
+
}, Ui = {
|
|
2350
2368
|
info: {
|
|
2351
2369
|
key: "axios",
|
|
2352
2370
|
title: "Axios",
|
|
@@ -2390,7 +2408,7 @@ var Ti = {
|
|
|
2390
2408
|
}).replace('"[form]"', "form");
|
|
2391
2409
|
return l(`const options = ${d};`), i(), 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), c();
|
|
2392
2410
|
}
|
|
2393
|
-
},
|
|
2411
|
+
}, Mi = {
|
|
2394
2412
|
info: {
|
|
2395
2413
|
key: "fetch",
|
|
2396
2414
|
title: "fetch",
|
|
@@ -2443,7 +2461,7 @@ var Ti = {
|
|
|
2443
2461
|
})};`
|
|
2444
2462
|
), r(), n.params && n.mimeType === "multipart/form-data" && (l("options.body = form;"), r()), l(`fetch('${a}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), i();
|
|
2445
2463
|
}
|
|
2446
|
-
},
|
|
2464
|
+
}, Hi = {
|
|
2447
2465
|
info: {
|
|
2448
2466
|
key: "jquery",
|
|
2449
2467
|
title: "jQuery",
|
|
@@ -2487,7 +2505,7 @@ var Ti = {
|
|
|
2487
2505
|
const u = J(c, { indent: o.indent }).replace("'[form]'", "form");
|
|
2488
2506
|
return i(`const settings = ${u};`), r(), i("$.ajax(settings).done(function (response) {"), i("console.log(response);", 1), i("});"), l();
|
|
2489
2507
|
}
|
|
2490
|
-
},
|
|
2508
|
+
}, Bi = {
|
|
2491
2509
|
info: {
|
|
2492
2510
|
key: "xhr",
|
|
2493
2511
|
title: "XMLHttpRequest",
|
|
@@ -2528,19 +2546,19 @@ var Ti = {
|
|
|
2528
2546
|
i(`xhr.setRequestHeader('${u}', '${Je(t[u])}');`);
|
|
2529
2547
|
}), r(), i("xhr.send(data);"), l();
|
|
2530
2548
|
}
|
|
2531
|
-
},
|
|
2549
|
+
}, Di = {
|
|
2532
2550
|
info: {
|
|
2533
2551
|
key: "javascript",
|
|
2534
2552
|
title: "JavaScript",
|
|
2535
2553
|
default: "xhr"
|
|
2536
2554
|
},
|
|
2537
2555
|
clientsById: {
|
|
2538
|
-
xhr:
|
|
2539
|
-
axios:
|
|
2540
|
-
fetch:
|
|
2541
|
-
jquery:
|
|
2556
|
+
xhr: Bi,
|
|
2557
|
+
axios: Ui,
|
|
2558
|
+
fetch: Mi,
|
|
2559
|
+
jquery: Hi
|
|
2542
2560
|
}
|
|
2543
|
-
},
|
|
2561
|
+
}, Vi = {
|
|
2544
2562
|
info: {
|
|
2545
2563
|
key: "native",
|
|
2546
2564
|
title: "Native JSON",
|
|
@@ -2574,16 +2592,16 @@ var Ti = {
|
|
|
2574
2592
|
}
|
|
2575
2593
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, n.indent);
|
|
2576
2594
|
}
|
|
2577
|
-
},
|
|
2595
|
+
}, Wi = {
|
|
2578
2596
|
info: {
|
|
2579
2597
|
key: "json",
|
|
2580
2598
|
title: "JSON",
|
|
2581
2599
|
default: "native"
|
|
2582
2600
|
},
|
|
2583
2601
|
clientsById: {
|
|
2584
|
-
native:
|
|
2602
|
+
native: Vi
|
|
2585
2603
|
}
|
|
2586
|
-
},
|
|
2604
|
+
}, zi = {
|
|
2587
2605
|
info: {
|
|
2588
2606
|
key: "okhttp",
|
|
2589
2607
|
title: "OkHttp",
|
|
@@ -2600,16 +2618,16 @@ var Ti = {
|
|
|
2600
2618
|
l(`.addHeader("${p}", "${V(a[p])}")`, 1);
|
|
2601
2619
|
}), l(".build()", 1), r(), l("val response = client.newCall(request).execute()"), i();
|
|
2602
2620
|
}
|
|
2603
|
-
},
|
|
2621
|
+
}, Ji = {
|
|
2604
2622
|
info: {
|
|
2605
2623
|
key: "kotlin",
|
|
2606
2624
|
title: "Kotlin",
|
|
2607
2625
|
default: "okhttp"
|
|
2608
2626
|
},
|
|
2609
2627
|
clientsById: {
|
|
2610
|
-
okhttp:
|
|
2628
|
+
okhttp: zi
|
|
2611
2629
|
}
|
|
2612
|
-
},
|
|
2630
|
+
}, Gi = {
|
|
2613
2631
|
info: {
|
|
2614
2632
|
key: "axios",
|
|
2615
2633
|
title: "Axios",
|
|
@@ -2643,7 +2661,7 @@ var Ti = {
|
|
|
2643
2661
|
const p = J(u, { indent: " ", inlineCharacterLimit: 80 });
|
|
2644
2662
|
return l(`const options = ${p};`), r(), 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), i();
|
|
2645
2663
|
}
|
|
2646
|
-
},
|
|
2664
|
+
}, Ki = {
|
|
2647
2665
|
info: {
|
|
2648
2666
|
key: "fetch",
|
|
2649
2667
|
title: "Fetch",
|
|
@@ -2703,7 +2721,7 @@ var Ti = {
|
|
|
2703
2721
|
});
|
|
2704
2722
|
return c(`const options = ${h};`), l(), i && p("const fs = require('fs');"), n.params && n.mimeType === "multipart/form-data" && (c("options.body = formData;"), l()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
2705
2723
|
}
|
|
2706
|
-
},
|
|
2724
|
+
}, Qi = {
|
|
2707
2725
|
info: {
|
|
2708
2726
|
key: "native",
|
|
2709
2727
|
title: "HTTP",
|
|
@@ -2742,7 +2760,7 @@ var Ti = {
|
|
|
2742
2760
|
}
|
|
2743
2761
|
return l("req.end();"), i();
|
|
2744
2762
|
}
|
|
2745
|
-
},
|
|
2763
|
+
}, Yi = {
|
|
2746
2764
|
info: {
|
|
2747
2765
|
key: "request",
|
|
2748
2766
|
title: "Request",
|
|
@@ -2795,7 +2813,7 @@ var Ti = {
|
|
|
2795
2813
|
c(`jar.setCookie(request.cookie('${encodeURIComponent(y)}=${encodeURIComponent(v)}'), '${t}');`);
|
|
2796
2814
|
}), u(), m((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${J(h, { indent: " ", inlineCharacterLimit: 80 })};`), u(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), u(), c("console.log(body);", 1), c("});"), p();
|
|
2797
2815
|
}
|
|
2798
|
-
},
|
|
2816
|
+
}, Xi = {
|
|
2799
2817
|
info: {
|
|
2800
2818
|
key: "unirest",
|
|
2801
2819
|
title: "Unirest",
|
|
@@ -2836,7 +2854,7 @@ var Ti = {
|
|
|
2836
2854
|
}
|
|
2837
2855
|
return l && m("const fs = require('fs');"), d("req.end(function (res) {"), d("if (res.error) throw new Error(res.error);", 1), u(), d("console.log(res.body);", 1), d("});"), p();
|
|
2838
2856
|
}
|
|
2839
|
-
},
|
|
2857
|
+
}, Zi = {
|
|
2840
2858
|
info: {
|
|
2841
2859
|
key: "node",
|
|
2842
2860
|
title: "Node.js",
|
|
@@ -2844,11 +2862,11 @@ var Ti = {
|
|
|
2844
2862
|
cli: "node %s"
|
|
2845
2863
|
},
|
|
2846
2864
|
clientsById: {
|
|
2847
|
-
native:
|
|
2848
|
-
request:
|
|
2849
|
-
unirest:
|
|
2850
|
-
axios:
|
|
2851
|
-
fetch:
|
|
2865
|
+
native: Qi,
|
|
2866
|
+
request: Yi,
|
|
2867
|
+
unirest: Xi,
|
|
2868
|
+
axios: Gi,
|
|
2869
|
+
fetch: Ki
|
|
2852
2870
|
}
|
|
2853
2871
|
}, wt = (e, t, n, a) => {
|
|
2854
2872
|
const s = `${e} *${t} = `, o = Mt(n, a ? s.length : void 0);
|
|
@@ -2872,7 +2890,7 @@ var Ti = {
|
|
|
2872
2890
|
default:
|
|
2873
2891
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2874
2892
|
}
|
|
2875
|
-
},
|
|
2893
|
+
}, es = {
|
|
2876
2894
|
info: {
|
|
2877
2895
|
key: "nsurlsession",
|
|
2878
2896
|
title: "NSURLSession",
|
|
@@ -2929,16 +2947,16 @@ var Ti = {
|
|
|
2929
2947
|
2
|
|
2930
2948
|
), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), i();
|
|
2931
2949
|
}
|
|
2932
|
-
},
|
|
2950
|
+
}, ts = {
|
|
2933
2951
|
info: {
|
|
2934
2952
|
key: "objc",
|
|
2935
2953
|
title: "Objective-C",
|
|
2936
2954
|
default: "nsurlsession"
|
|
2937
2955
|
},
|
|
2938
2956
|
clientsById: {
|
|
2939
|
-
nsurlsession:
|
|
2957
|
+
nsurlsession: es
|
|
2940
2958
|
}
|
|
2941
|
-
},
|
|
2959
|
+
}, ns = {
|
|
2942
2960
|
info: {
|
|
2943
2961
|
key: "cohttp",
|
|
2944
2962
|
title: "CoHTTP",
|
|
@@ -2964,14 +2982,14 @@ var Ti = {
|
|
|
2964
2982
|
const p = u.length ? "~headers " : "", d = n.text ? "~body " : "", m = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
2965
2983
|
return i(`Client.call ${p}${d}${m} uri`), i(">>= fun (res, body_stream) ->"), i("(* Do stuff with the result *)", 1), c();
|
|
2966
2984
|
}
|
|
2967
|
-
},
|
|
2985
|
+
}, rs = {
|
|
2968
2986
|
info: {
|
|
2969
2987
|
key: "ocaml",
|
|
2970
2988
|
title: "OCaml",
|
|
2971
2989
|
default: "cohttp"
|
|
2972
2990
|
},
|
|
2973
2991
|
clientsById: {
|
|
2974
|
-
cohttp:
|
|
2992
|
+
cohttp: ns
|
|
2975
2993
|
}
|
|
2976
2994
|
}, F = (e, t, n) => {
|
|
2977
2995
|
switch (n = n || "", t = t || "", Object.prototype.toString.call(e)) {
|
|
@@ -3032,7 +3050,7 @@ ${n}]`;
|
|
|
3032
3050
|
"UNLOCK",
|
|
3033
3051
|
"UPDATE",
|
|
3034
3052
|
"VERSION_CONTROL"
|
|
3035
|
-
],
|
|
3053
|
+
], as = {
|
|
3036
3054
|
info: {
|
|
3037
3055
|
key: "curl",
|
|
3038
3056
|
title: "cURL",
|
|
@@ -3110,7 +3128,7 @@ ${c}` });
|
|
|
3110
3128
|
return S.length && (x.push("CURLOPT_HTTPHEADER => ["), x.push(S.join(`,
|
|
3111
3129
|
${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = curl_exec($curl);"), y("$err = curl_error($curl);"), v(), y("curl_close($curl);"), v(), y("if ($err) {"), y(p ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), y("} else {"), y("echo $response;", 1), y("}"), !d && l && (v(), y("?>")), b();
|
|
3112
3130
|
}
|
|
3113
|
-
},
|
|
3131
|
+
}, os = {
|
|
3114
3132
|
info: {
|
|
3115
3133
|
key: "guzzle",
|
|
3116
3134
|
title: "Guzzle",
|
|
@@ -3161,7 +3179,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3161
3179
|
return h.length && m.push(`${r.indent}${r.indent}'cookie' => '${Je(h)}',`), m.length && (p("'headers' => [", 1), p(m.join(`
|
|
3162
3180
|
`)), p("],", 1)), i("$client = new \\GuzzleHttp\\Client();"), l(), u.length ? (i(`$response = $client->request('${n}', '${t}', [`), i(d()), i("]);")) : i(`$response = $client->request('${n}', '${t}');`), l(), i("echo $response->getBody();"), !r.noTags && r.closingTag && (l(), i("?>")), c();
|
|
3163
3181
|
}
|
|
3164
|
-
},
|
|
3182
|
+
}, is = {
|
|
3165
3183
|
info: {
|
|
3166
3184
|
key: "http1",
|
|
3167
3185
|
title: "HTTP v1",
|
|
@@ -3183,7 +3201,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3183
3201
|
}
|
|
3184
3202
|
return p("try {"), p("$response = $request->send();", 1), d(), p("echo $response->getBody();", 1), p("} catch (HttpException $ex) {"), p("echo $ex;", 1), p("}"), !c && i && (d(), p("?>")), m();
|
|
3185
3203
|
}
|
|
3186
|
-
},
|
|
3204
|
+
}, ss = {
|
|
3187
3205
|
info: {
|
|
3188
3206
|
key: "http2",
|
|
3189
3207
|
title: "HTTP v2",
|
|
@@ -3231,7 +3249,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3231
3249
|
}
|
|
3232
3250
|
return p(`$request->setRequestUrl(${F(o)});`), p(`$request->setRequestMethod(${F(n)});`), h && (p("$request->setBody($body);"), d()), Object.keys(a).length && (p(`$request->setQuery(new http\\QueryString(${F(a, l)}));`), d()), Object.keys(t).length && (p(`$request->setHeaders(${F(t, l)});`), d()), Object.keys(s).length && (d(), p(`$client->setCookies(${F(s, l)});`), d()), p("$client->enqueue($request)->send();"), p("$response = $client->getResponse();"), d(), p("echo $response->getBody();"), !c && i && (d(), p("?>")), m();
|
|
3233
3251
|
}
|
|
3234
|
-
},
|
|
3252
|
+
}, ls = {
|
|
3235
3253
|
info: {
|
|
3236
3254
|
key: "php",
|
|
3237
3255
|
title: "PHP",
|
|
@@ -3239,12 +3257,12 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3239
3257
|
cli: "php %s"
|
|
3240
3258
|
},
|
|
3241
3259
|
clientsById: {
|
|
3242
|
-
curl:
|
|
3243
|
-
guzzle:
|
|
3244
|
-
http1:
|
|
3245
|
-
http2:
|
|
3260
|
+
curl: as,
|
|
3261
|
+
guzzle: os,
|
|
3262
|
+
http1: is,
|
|
3263
|
+
http2: ss
|
|
3246
3264
|
}
|
|
3247
|
-
},
|
|
3265
|
+
}, ia = (e) => ({ method: n, headersObj: a, cookies: s, uriObj: o, fullUrl: r, postData: i, allHeaders: l }) => {
|
|
3248
3266
|
const { push: c, join: u } = new O();
|
|
3249
3267
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(n.toUpperCase()))
|
|
3250
3268
|
return "Method not supported";
|
|
@@ -3256,7 +3274,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3256
3274
|
}), d.push("-WebSession $session")), i.text && (d.push(
|
|
3257
3275
|
`-ContentType '${ze(de(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
3258
3276
|
), d.push(`-Body '${i.text}'`)), c(`$response = ${e} -Uri '${r}' -Method ${n} ${d.join(" ")}`.trim()), u();
|
|
3259
|
-
},
|
|
3277
|
+
}, cs = {
|
|
3260
3278
|
info: {
|
|
3261
3279
|
key: "restmethod",
|
|
3262
3280
|
title: "Invoke-RestMethod",
|
|
@@ -3264,8 +3282,8 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3264
3282
|
description: "Powershell Invoke-RestMethod client",
|
|
3265
3283
|
extname: ".ps1"
|
|
3266
3284
|
},
|
|
3267
|
-
convert:
|
|
3268
|
-
},
|
|
3285
|
+
convert: ia("Invoke-RestMethod")
|
|
3286
|
+
}, us = {
|
|
3269
3287
|
info: {
|
|
3270
3288
|
key: "webrequest",
|
|
3271
3289
|
title: "Invoke-WebRequest",
|
|
@@ -3273,16 +3291,16 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3273
3291
|
description: "Powershell Invoke-WebRequest client",
|
|
3274
3292
|
extname: ".ps1"
|
|
3275
3293
|
},
|
|
3276
|
-
convert:
|
|
3277
|
-
},
|
|
3294
|
+
convert: ia("Invoke-WebRequest")
|
|
3295
|
+
}, ds = {
|
|
3278
3296
|
info: {
|
|
3279
3297
|
key: "powershell",
|
|
3280
3298
|
title: "Powershell",
|
|
3281
3299
|
default: "webrequest"
|
|
3282
3300
|
},
|
|
3283
3301
|
clientsById: {
|
|
3284
|
-
webrequest:
|
|
3285
|
-
restmethod:
|
|
3302
|
+
webrequest: us,
|
|
3303
|
+
restmethod: cs
|
|
3286
3304
|
}
|
|
3287
3305
|
};
|
|
3288
3306
|
function Fn(e, t, n, a, s) {
|
|
@@ -3314,7 +3332,7 @@ var Re = (e, t, n) => {
|
|
|
3314
3332
|
default:
|
|
3315
3333
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
3316
3334
|
}
|
|
3317
|
-
},
|
|
3335
|
+
}, fs = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], ps = {
|
|
3318
3336
|
info: {
|
|
3319
3337
|
key: "requests",
|
|
3320
3338
|
title: "Requests",
|
|
@@ -3377,10 +3395,10 @@ var Re = (e, t, n) => {
|
|
|
3377
3395
|
r(g !== v ? `"${x}": "${V(u[x])}",` : `"${x}": "${V(u[x])}"`, 1), g += 1;
|
|
3378
3396
|
}), r("}"), i();
|
|
3379
3397
|
}
|
|
3380
|
-
let b =
|
|
3398
|
+
let b = fs.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
3381
3399
|
return h && (y ? b += ", json=payload" : b += ", data=payload"), m && (b += ", files=files"), v > 0 && (b += ", headers=headers"), b += ")", r(b), i(), r("print(response.text)"), l();
|
|
3382
3400
|
}
|
|
3383
|
-
},
|
|
3401
|
+
}, ms = {
|
|
3384
3402
|
info: {
|
|
3385
3403
|
key: "python",
|
|
3386
3404
|
title: "Python",
|
|
@@ -3388,9 +3406,9 @@ var Re = (e, t, n) => {
|
|
|
3388
3406
|
cli: "python3 %s"
|
|
3389
3407
|
},
|
|
3390
3408
|
clientsById: {
|
|
3391
|
-
requests:
|
|
3409
|
+
requests: ps
|
|
3392
3410
|
}
|
|
3393
|
-
},
|
|
3411
|
+
}, hs = {
|
|
3394
3412
|
info: {
|
|
3395
3413
|
key: "httr",
|
|
3396
3414
|
title: "httr",
|
|
@@ -3429,16 +3447,16 @@ var Re = (e, t, n) => {
|
|
|
3429
3447
|
const w = [g, v, y, h].filter((S) => !!S).join(", ");
|
|
3430
3448
|
return w && (x += `, ${w}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), i(), r('content(response, "text")'), l();
|
|
3431
3449
|
}
|
|
3432
|
-
},
|
|
3450
|
+
}, ys = {
|
|
3433
3451
|
info: {
|
|
3434
3452
|
key: "r",
|
|
3435
3453
|
title: "R",
|
|
3436
3454
|
default: "httr"
|
|
3437
3455
|
},
|
|
3438
3456
|
clientsById: {
|
|
3439
|
-
httr:
|
|
3457
|
+
httr: hs
|
|
3440
3458
|
}
|
|
3441
|
-
},
|
|
3459
|
+
}, gs = {
|
|
3442
3460
|
info: {
|
|
3443
3461
|
key: "native",
|
|
3444
3462
|
title: "net::http",
|
|
@@ -3469,16 +3487,16 @@ var Re = (e, t, n) => {
|
|
|
3469
3487
|
o(`request["${d}"] = '${Je(s[d])}'`);
|
|
3470
3488
|
}), a.text && o(`request.body = ${JSON.stringify(a.text)}`), r(), o("response = http.request(request)"), o("puts response.read_body"), i();
|
|
3471
3489
|
}
|
|
3472
|
-
},
|
|
3490
|
+
}, vs = {
|
|
3473
3491
|
info: {
|
|
3474
3492
|
key: "ruby",
|
|
3475
3493
|
title: "Ruby",
|
|
3476
3494
|
default: "native"
|
|
3477
3495
|
},
|
|
3478
3496
|
clientsById: {
|
|
3479
|
-
native:
|
|
3497
|
+
native: gs
|
|
3480
3498
|
}
|
|
3481
|
-
}, z = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
3499
|
+
}, z = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, bs = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), xs = {
|
|
3482
3500
|
"http1.0": "0",
|
|
3483
3501
|
"url ": "",
|
|
3484
3502
|
cookie: "b",
|
|
@@ -3488,13 +3506,13 @@ var Re = (e, t, n) => {
|
|
|
3488
3506
|
header: "H",
|
|
3489
3507
|
insecure: "k",
|
|
3490
3508
|
request: "X"
|
|
3491
|
-
},
|
|
3509
|
+
}, ks = (e) => (t) => {
|
|
3492
3510
|
if (e) {
|
|
3493
|
-
const n =
|
|
3511
|
+
const n = xs[t];
|
|
3494
3512
|
return n ? `-${n}` : "";
|
|
3495
3513
|
}
|
|
3496
3514
|
return `--${t}`;
|
|
3497
|
-
},
|
|
3515
|
+
}, $s = {
|
|
3498
3516
|
info: {
|
|
3499
3517
|
key: "curl",
|
|
3500
3518
|
title: "cURL",
|
|
@@ -3508,7 +3526,7 @@ var Re = (e, t, n) => {
|
|
|
3508
3526
|
...typeof i == "string" ? { indent: i } : {},
|
|
3509
3527
|
join: i !== !1 ? ` \\
|
|
3510
3528
|
${i}` : " "
|
|
3511
|
-
}), h =
|
|
3529
|
+
}), h = ks(l);
|
|
3512
3530
|
let y = z(e);
|
|
3513
3531
|
if (d(`curl ${h("request")} ${t}`), u && (y = unescape(y), d(h("globoff"))), d(`${h("url ")}${y}`), n === "HTTP/1.0" && d(h("http1.0")), de(s, "accept-encoding") && d("--compressed"), o.mimeType === "multipart/form-data") {
|
|
3514
3532
|
const b = Y(a, "content-type");
|
|
@@ -3540,7 +3558,7 @@ ${i}` : " "
|
|
|
3540
3558
|
if (!o.text)
|
|
3541
3559
|
break;
|
|
3542
3560
|
let b = !1;
|
|
3543
|
-
if (
|
|
3561
|
+
if (ki(o.mimeType) && o.text.length > 20)
|
|
3544
3562
|
try {
|
|
3545
3563
|
const g = JSON.parse(o.text);
|
|
3546
3564
|
b = !0, o.text.indexOf("'") > 0 ? d(
|
|
@@ -3562,7 +3580,7 @@ ${JSON.stringify(g, null, p)}
|
|
|
3562
3580
|
}
|
|
3563
3581
|
return m();
|
|
3564
3582
|
}
|
|
3565
|
-
},
|
|
3583
|
+
}, Ss = {
|
|
3566
3584
|
info: {
|
|
3567
3585
|
key: "httpie",
|
|
3568
3586
|
title: "HTTPie",
|
|
@@ -3611,7 +3629,7 @@ ${i.indent}` : " "
|
|
|
3611
3629
|
}
|
|
3612
3630
|
return c();
|
|
3613
3631
|
}
|
|
3614
|
-
},
|
|
3632
|
+
}, ws = {
|
|
3615
3633
|
info: {
|
|
3616
3634
|
key: "wget",
|
|
3617
3635
|
title: "Wget",
|
|
@@ -3633,9 +3651,9 @@ ${o.indent}` : " "
|
|
|
3633
3651
|
return o.verbose ? r(`wget ${o.short ? "-v" : "--verbose"}`) : r(`wget ${o.short ? "-q" : "--quiet"}`), r(`--method ${z(e)}`), Object.keys(n).forEach((l) => {
|
|
3634
3652
|
const c = `${l}: ${n[l]}`;
|
|
3635
3653
|
r(`--header ${z(c)}`);
|
|
3636
|
-
}), t.text && r(`--body-data ${
|
|
3654
|
+
}), t.text && r(`--body-data ${bs(z(t.text))}`), r(o.short ? "-O" : "--output-document"), r(`- ${z(a)}`), i();
|
|
3637
3655
|
}
|
|
3638
|
-
},
|
|
3656
|
+
}, js = {
|
|
3639
3657
|
info: {
|
|
3640
3658
|
key: "shell",
|
|
3641
3659
|
title: "Shell",
|
|
@@ -3643,9 +3661,9 @@ ${o.indent}` : " "
|
|
|
3643
3661
|
cli: "%s"
|
|
3644
3662
|
},
|
|
3645
3663
|
clientsById: {
|
|
3646
|
-
curl:
|
|
3647
|
-
httpie:
|
|
3648
|
-
wget:
|
|
3664
|
+
curl: $s,
|
|
3665
|
+
httpie: Ss,
|
|
3666
|
+
wget: ws
|
|
3649
3667
|
}
|
|
3650
3668
|
}, qn = (e, t) => t.repeat(e), In = (e, t, n, a) => {
|
|
3651
3669
|
const s = qn(a, n), o = qn(a - 1, n), r = t ? `,
|
|
@@ -3680,7 +3698,7 @@ ${o}]` : `[${e.join(r)}]`;
|
|
|
3680
3698
|
default:
|
|
3681
3699
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
3682
3700
|
}
|
|
3683
|
-
},
|
|
3701
|
+
}, Ns = {
|
|
3684
3702
|
info: {
|
|
3685
3703
|
key: "urlsession",
|
|
3686
3704
|
title: "URLSession",
|
|
@@ -3731,35 +3749,35 @@ ${o}]` : `[${e.join(r)}]`;
|
|
|
3731
3749
|
}
|
|
3732
3750
|
}), i("]"), i("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), i("var request = URLRequest(url: components.url!)")), i(`request.httpMethod = "${s}"`), i(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && i(`request.allHTTPHeaderFields = ${dt(e, r)}`), u && i("request.httpBody = postData"), l(), i("let (data, _) = try await URLSession.shared.data(for: request)"), i("print(String(decoding: data, as: UTF8.self))"), c();
|
|
3733
3751
|
}
|
|
3734
|
-
},
|
|
3752
|
+
}, Ts = {
|
|
3735
3753
|
info: {
|
|
3736
3754
|
key: "swift",
|
|
3737
3755
|
title: "Swift",
|
|
3738
3756
|
default: "urlsession"
|
|
3739
3757
|
},
|
|
3740
3758
|
clientsById: {
|
|
3741
|
-
urlsession:
|
|
3742
|
-
}
|
|
3743
|
-
},
|
|
3744
|
-
c:
|
|
3745
|
-
clojure:
|
|
3746
|
-
csharp:
|
|
3747
|
-
go:
|
|
3748
|
-
http:
|
|
3749
|
-
java:
|
|
3750
|
-
javascript:
|
|
3751
|
-
json:
|
|
3752
|
-
kotlin:
|
|
3753
|
-
node:
|
|
3754
|
-
objc:
|
|
3755
|
-
ocaml:
|
|
3756
|
-
php:
|
|
3757
|
-
powershell:
|
|
3758
|
-
python:
|
|
3759
|
-
r:
|
|
3760
|
-
ruby:
|
|
3761
|
-
shell:
|
|
3762
|
-
swift:
|
|
3759
|
+
urlsession: Ns
|
|
3760
|
+
}
|
|
3761
|
+
}, Os = {
|
|
3762
|
+
c: xi,
|
|
3763
|
+
clojure: wi,
|
|
3764
|
+
csharp: Ci,
|
|
3765
|
+
go: Ei,
|
|
3766
|
+
http: Ai,
|
|
3767
|
+
java: Li,
|
|
3768
|
+
javascript: Di,
|
|
3769
|
+
json: Wi,
|
|
3770
|
+
kotlin: Ji,
|
|
3771
|
+
node: Zi,
|
|
3772
|
+
objc: ts,
|
|
3773
|
+
ocaml: rs,
|
|
3774
|
+
php: ls,
|
|
3775
|
+
powershell: ds,
|
|
3776
|
+
python: ms,
|
|
3777
|
+
r: ys,
|
|
3778
|
+
ruby: vs,
|
|
3779
|
+
shell: js,
|
|
3780
|
+
swift: Ts
|
|
3763
3781
|
}, ft = { exports: {} };
|
|
3764
3782
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
3765
3783
|
ft.exports;
|
|
@@ -3881,7 +3899,7 @@ ft.exports;
|
|
|
3881
3899
|
n.punycode = r;
|
|
3882
3900
|
})(ot);
|
|
3883
3901
|
})(ft, ft.exports);
|
|
3884
|
-
var
|
|
3902
|
+
var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = ReferenceError, sa = SyntaxError, Ye = TypeError, Fs = URIError, qs = function() {
|
|
3885
3903
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3886
3904
|
return !1;
|
|
3887
3905
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3904,32 +3922,32 @@ var Os = ft.exports, Cs = Error, Ps = EvalError, Es = RangeError, Rs = Reference
|
|
|
3904
3922
|
return !1;
|
|
3905
3923
|
}
|
|
3906
3924
|
return !0;
|
|
3907
|
-
}, Ln = typeof Symbol < "u" && Symbol,
|
|
3908
|
-
return typeof Ln != "function" || typeof Symbol != "function" || typeof Ln("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
3925
|
+
}, Ln = typeof Symbol < "u" && Symbol, Is = qs, _s = function() {
|
|
3926
|
+
return typeof Ln != "function" || typeof Symbol != "function" || typeof Ln("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Is();
|
|
3909
3927
|
}, jt = {
|
|
3910
3928
|
__proto__: null,
|
|
3911
3929
|
foo: {}
|
|
3912
|
-
},
|
|
3913
|
-
return { __proto__: jt }.foo === jt.foo && !(jt instanceof
|
|
3914
|
-
},
|
|
3930
|
+
}, Ls = Object, Us = function() {
|
|
3931
|
+
return { __proto__: jt }.foo === jt.foo && !(jt instanceof Ls);
|
|
3932
|
+
}, Ms = "Function.prototype.bind called on incompatible ", Hs = Object.prototype.toString, Bs = Math.max, Ds = "[object Function]", Un = function(t, n) {
|
|
3915
3933
|
for (var a = [], s = 0; s < t.length; s += 1)
|
|
3916
3934
|
a[s] = t[s];
|
|
3917
3935
|
for (var o = 0; o < n.length; o += 1)
|
|
3918
3936
|
a[o + t.length] = n[o];
|
|
3919
3937
|
return a;
|
|
3920
|
-
},
|
|
3938
|
+
}, Vs = function(t, n) {
|
|
3921
3939
|
for (var a = [], s = n, o = 0; s < t.length; s += 1, o += 1)
|
|
3922
3940
|
a[o] = t[s];
|
|
3923
3941
|
return a;
|
|
3924
|
-
},
|
|
3942
|
+
}, Ws = function(e, t) {
|
|
3925
3943
|
for (var n = "", a = 0; a < e.length; a += 1)
|
|
3926
3944
|
n += e[a], a + 1 < e.length && (n += t);
|
|
3927
3945
|
return n;
|
|
3928
|
-
},
|
|
3946
|
+
}, zs = function(t) {
|
|
3929
3947
|
var n = this;
|
|
3930
|
-
if (typeof n != "function" ||
|
|
3931
|
-
throw new TypeError(
|
|
3932
|
-
for (var a =
|
|
3948
|
+
if (typeof n != "function" || Hs.apply(n) !== Ds)
|
|
3949
|
+
throw new TypeError(Ms + n);
|
|
3950
|
+
for (var a = Vs(arguments, 1), s, o = function() {
|
|
3933
3951
|
if (this instanceof s) {
|
|
3934
3952
|
var u = n.apply(
|
|
3935
3953
|
this,
|
|
@@ -3941,17 +3959,17 @@ var Os = ft.exports, Cs = Error, Ps = EvalError, Es = RangeError, Rs = Reference
|
|
|
3941
3959
|
t,
|
|
3942
3960
|
Un(a, arguments)
|
|
3943
3961
|
);
|
|
3944
|
-
}, r =
|
|
3962
|
+
}, r = Bs(0, n.length - a.length), i = [], l = 0; l < r; l++)
|
|
3945
3963
|
i[l] = "$" + l;
|
|
3946
|
-
if (s = Function("binder", "return function (" +
|
|
3964
|
+
if (s = Function("binder", "return function (" + Ws(i, ",") + "){ return binder.apply(this,arguments); }")(o), n.prototype) {
|
|
3947
3965
|
var c = function() {
|
|
3948
3966
|
};
|
|
3949
3967
|
c.prototype = n.prototype, s.prototype = new c(), c.prototype = null;
|
|
3950
3968
|
}
|
|
3951
3969
|
return s;
|
|
3952
|
-
},
|
|
3970
|
+
}, Js = zs, fn = Function.prototype.bind || Js, Gs = Function.prototype.call, Ks = Object.prototype.hasOwnProperty, Qs = fn, Ys = Qs.call(Gs, Ks), T, Xs = Ps, Zs = Es, el = Rs, tl = As, Ie = sa, Ae = Ye, nl = Fs, la = Function, Nt = function(e) {
|
|
3953
3971
|
try {
|
|
3954
|
-
return
|
|
3972
|
+
return la('"use strict"; return (' + e + ").constructor;")();
|
|
3955
3973
|
} catch {
|
|
3956
3974
|
}
|
|
3957
3975
|
}, we = Object.getOwnPropertyDescriptor;
|
|
@@ -3963,7 +3981,7 @@ if (we)
|
|
|
3963
3981
|
}
|
|
3964
3982
|
var Tt = function() {
|
|
3965
3983
|
throw new Ae();
|
|
3966
|
-
},
|
|
3984
|
+
}, rl = we ? function() {
|
|
3967
3985
|
try {
|
|
3968
3986
|
return arguments.callee, Tt;
|
|
3969
3987
|
} catch {
|
|
@@ -3973,9 +3991,9 @@ var Tt = function() {
|
|
|
3973
3991
|
return Tt;
|
|
3974
3992
|
}
|
|
3975
3993
|
}
|
|
3976
|
-
}() : Tt, Te =
|
|
3994
|
+
}() : Tt, Te = _s(), al = Us(), D = Object.getPrototypeOf || (al ? function(e) {
|
|
3977
3995
|
return e.__proto__;
|
|
3978
|
-
} : null), Ee = {},
|
|
3996
|
+
} : null), Ee = {}, ol = typeof Uint8Array > "u" || !D ? T : D(Uint8Array), je = {
|
|
3979
3997
|
__proto__: null,
|
|
3980
3998
|
"%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
|
|
3981
3999
|
"%Array%": Array,
|
|
@@ -3997,14 +4015,14 @@ var Tt = function() {
|
|
|
3997
4015
|
"%decodeURIComponent%": decodeURIComponent,
|
|
3998
4016
|
"%encodeURI%": encodeURI,
|
|
3999
4017
|
"%encodeURIComponent%": encodeURIComponent,
|
|
4000
|
-
"%Error%":
|
|
4018
|
+
"%Error%": Xs,
|
|
4001
4019
|
"%eval%": eval,
|
|
4002
4020
|
// eslint-disable-line no-eval
|
|
4003
|
-
"%EvalError%":
|
|
4021
|
+
"%EvalError%": Zs,
|
|
4004
4022
|
"%Float32Array%": typeof Float32Array > "u" ? T : Float32Array,
|
|
4005
4023
|
"%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
|
|
4006
4024
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
|
|
4007
|
-
"%Function%":
|
|
4025
|
+
"%Function%": la,
|
|
4008
4026
|
"%GeneratorFunction%": Ee,
|
|
4009
4027
|
"%Int8Array%": typeof Int8Array > "u" ? T : Int8Array,
|
|
4010
4028
|
"%Int16Array%": typeof Int16Array > "u" ? T : Int16Array,
|
|
@@ -4022,8 +4040,8 @@ var Tt = function() {
|
|
|
4022
4040
|
"%parseInt%": parseInt,
|
|
4023
4041
|
"%Promise%": typeof Promise > "u" ? T : Promise,
|
|
4024
4042
|
"%Proxy%": typeof Proxy > "u" ? T : Proxy,
|
|
4025
|
-
"%RangeError%":
|
|
4026
|
-
"%ReferenceError%":
|
|
4043
|
+
"%RangeError%": el,
|
|
4044
|
+
"%ReferenceError%": tl,
|
|
4027
4045
|
"%Reflect%": typeof Reflect > "u" ? T : Reflect,
|
|
4028
4046
|
"%RegExp%": RegExp,
|
|
4029
4047
|
"%Set%": typeof Set > "u" ? T : Set,
|
|
@@ -4033,14 +4051,14 @@ var Tt = function() {
|
|
|
4033
4051
|
"%StringIteratorPrototype%": Te && D ? D(""[Symbol.iterator]()) : T,
|
|
4034
4052
|
"%Symbol%": Te ? Symbol : T,
|
|
4035
4053
|
"%SyntaxError%": Ie,
|
|
4036
|
-
"%ThrowTypeError%":
|
|
4037
|
-
"%TypedArray%":
|
|
4054
|
+
"%ThrowTypeError%": rl,
|
|
4055
|
+
"%TypedArray%": ol,
|
|
4038
4056
|
"%TypeError%": Ae,
|
|
4039
4057
|
"%Uint8Array%": typeof Uint8Array > "u" ? T : Uint8Array,
|
|
4040
4058
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? T : Uint8ClampedArray,
|
|
4041
4059
|
"%Uint16Array%": typeof Uint16Array > "u" ? T : Uint16Array,
|
|
4042
4060
|
"%Uint32Array%": typeof Uint32Array > "u" ? T : Uint32Array,
|
|
4043
|
-
"%URIError%":
|
|
4061
|
+
"%URIError%": nl,
|
|
4044
4062
|
"%WeakMap%": typeof WeakMap > "u" ? T : WeakMap,
|
|
4045
4063
|
"%WeakRef%": typeof WeakRef > "u" ? T : WeakRef,
|
|
4046
4064
|
"%WeakSet%": typeof WeakSet > "u" ? T : WeakSet
|
|
@@ -4049,10 +4067,10 @@ if (D)
|
|
|
4049
4067
|
try {
|
|
4050
4068
|
null.error;
|
|
4051
4069
|
} catch (e) {
|
|
4052
|
-
var
|
|
4053
|
-
je["%Error.prototype%"] =
|
|
4070
|
+
var il = D(D(e));
|
|
4071
|
+
je["%Error.prototype%"] = il;
|
|
4054
4072
|
}
|
|
4055
|
-
var
|
|
4073
|
+
var sl = function e(t) {
|
|
4056
4074
|
var n;
|
|
4057
4075
|
if (t === "%AsyncFunction%")
|
|
4058
4076
|
n = Nt("async function () {}");
|
|
@@ -4121,21 +4139,21 @@ var il = function e(t) {
|
|
|
4121
4139
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
4122
4140
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
4123
4141
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
4124
|
-
}, Xe = fn, pt =
|
|
4142
|
+
}, Xe = fn, pt = Ys, ll = Xe.call(Function.call, Array.prototype.concat), cl = Xe.call(Function.apply, Array.prototype.splice), Hn = Xe.call(Function.call, String.prototype.replace), mt = Xe.call(Function.call, String.prototype.slice), ul = Xe.call(Function.call, RegExp.prototype.exec), dl = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, fl = /\\(\\)?/g, pl = function(t) {
|
|
4125
4143
|
var n = mt(t, 0, 1), a = mt(t, -1);
|
|
4126
4144
|
if (n === "%" && a !== "%")
|
|
4127
4145
|
throw new Ie("invalid intrinsic syntax, expected closing `%`");
|
|
4128
4146
|
if (a === "%" && n !== "%")
|
|
4129
4147
|
throw new Ie("invalid intrinsic syntax, expected opening `%`");
|
|
4130
4148
|
var s = [];
|
|
4131
|
-
return Hn(t,
|
|
4132
|
-
s[s.length] = i ? Hn(l,
|
|
4149
|
+
return Hn(t, dl, function(o, r, i, l) {
|
|
4150
|
+
s[s.length] = i ? Hn(l, fl, "$1") : r || o;
|
|
4133
4151
|
}), s;
|
|
4134
|
-
},
|
|
4152
|
+
}, ml = function(t, n) {
|
|
4135
4153
|
var a = t, s;
|
|
4136
4154
|
if (pt(Mn, a) && (s = Mn[a], a = "%" + s[0] + "%"), pt(je, a)) {
|
|
4137
4155
|
var o = je[a];
|
|
4138
|
-
if (o === Ee && (o =
|
|
4156
|
+
if (o === Ee && (o = sl(a)), typeof o > "u" && !n)
|
|
4139
4157
|
throw new Ae("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
4140
4158
|
return {
|
|
4141
4159
|
alias: s,
|
|
@@ -4149,10 +4167,10 @@ var il = function e(t) {
|
|
|
4149
4167
|
throw new Ae("intrinsic name must be a non-empty string");
|
|
4150
4168
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
4151
4169
|
throw new Ae('"allowMissing" argument must be a boolean');
|
|
4152
|
-
if (
|
|
4170
|
+
if (ul(/^%?[^%]*%?$/, t) === null)
|
|
4153
4171
|
throw new Ie("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
4154
|
-
var a =
|
|
4155
|
-
c && (s = c[0],
|
|
4172
|
+
var a = pl(t), s = a.length > 0 ? a[0] : "", o = ml("%" + s + "%", n), r = o.name, i = o.value, l = !1, c = o.alias;
|
|
4173
|
+
c && (s = c[0], cl(a, ll([0, 1], c)));
|
|
4156
4174
|
for (var u = 1, p = !0; u < a.length; u += 1) {
|
|
4157
4175
|
var d = a[u], m = mt(d, 0, 1), h = mt(d, -1);
|
|
4158
4176
|
if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
|
|
@@ -4174,7 +4192,7 @@ var il = function e(t) {
|
|
|
4174
4192
|
}
|
|
4175
4193
|
}
|
|
4176
4194
|
return i;
|
|
4177
|
-
},
|
|
4195
|
+
}, ca = { exports: {} }, Ot, Bn;
|
|
4178
4196
|
function pn() {
|
|
4179
4197
|
if (Bn) return Ot;
|
|
4180
4198
|
Bn = 1;
|
|
@@ -4187,14 +4205,14 @@ function pn() {
|
|
|
4187
4205
|
}
|
|
4188
4206
|
return Ot = t, Ot;
|
|
4189
4207
|
}
|
|
4190
|
-
var
|
|
4208
|
+
var hl = Ue, st = hl("%Object.getOwnPropertyDescriptor%", !0);
|
|
4191
4209
|
if (st)
|
|
4192
4210
|
try {
|
|
4193
4211
|
st([], "length");
|
|
4194
4212
|
} catch {
|
|
4195
4213
|
st = null;
|
|
4196
4214
|
}
|
|
4197
|
-
var
|
|
4215
|
+
var ua = st, Dn = pn(), yl = sa, Oe = Ye, Vn = ua, gl = function(t, n, a) {
|
|
4198
4216
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
4199
4217
|
throw new Oe("`obj` must be an object or a function`");
|
|
4200
4218
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -4218,11 +4236,11 @@ var da = st, Dn = pn(), hl = la, Oe = Ye, Vn = da, yl = function(t, n, a) {
|
|
|
4218
4236
|
else if (i || !s && !o && !r)
|
|
4219
4237
|
t[n] = a;
|
|
4220
4238
|
else
|
|
4221
|
-
throw new
|
|
4222
|
-
}, Ht = pn(),
|
|
4239
|
+
throw new yl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
4240
|
+
}, Ht = pn(), da = function() {
|
|
4223
4241
|
return !!Ht;
|
|
4224
4242
|
};
|
|
4225
|
-
|
|
4243
|
+
da.hasArrayLengthDefineBug = function() {
|
|
4226
4244
|
if (!Ht)
|
|
4227
4245
|
return null;
|
|
4228
4246
|
try {
|
|
@@ -4231,17 +4249,17 @@ fa.hasArrayLengthDefineBug = function() {
|
|
|
4231
4249
|
return !0;
|
|
4232
4250
|
}
|
|
4233
4251
|
};
|
|
4234
|
-
var
|
|
4252
|
+
var vl = da, bl = Ue, Wn = gl, xl = vl(), zn = ua, Jn = Ye, kl = bl("%Math.floor%"), $l = function(t, n) {
|
|
4235
4253
|
if (typeof t != "function")
|
|
4236
4254
|
throw new Jn("`fn` is not a function");
|
|
4237
|
-
if (typeof n != "number" || n < 0 || n > 4294967295 ||
|
|
4255
|
+
if (typeof n != "number" || n < 0 || n > 4294967295 || kl(n) !== n)
|
|
4238
4256
|
throw new Jn("`length` must be a positive 32-bit integer");
|
|
4239
4257
|
var a = arguments.length > 2 && !!arguments[2], s = !0, o = !0;
|
|
4240
4258
|
if ("length" in t && zn) {
|
|
4241
4259
|
var r = zn(t, "length");
|
|
4242
4260
|
r && !r.configurable && (s = !1), r && !r.writable && (o = !1);
|
|
4243
4261
|
}
|
|
4244
|
-
return (s || o || !a) && (
|
|
4262
|
+
return (s || o || !a) && (xl ? Wn(
|
|
4245
4263
|
/** @type {Parameters<define>[0]} */
|
|
4246
4264
|
t,
|
|
4247
4265
|
"length",
|
|
@@ -4256,7 +4274,7 @@ var gl = fa, vl = Ue, Wn = yl, bl = gl(), zn = da, Jn = Ye, xl = vl("%Math.floor
|
|
|
4256
4274
|
)), t;
|
|
4257
4275
|
};
|
|
4258
4276
|
(function(e) {
|
|
4259
|
-
var t = fn, n = Ue, a =
|
|
4277
|
+
var t = fn, n = Ue, a = $l, s = Ye, o = n("%Function.prototype.apply%"), r = n("%Function.prototype.call%"), i = n("%Reflect.apply%", !0) || t.call(r, o), l = pn(), c = n("%Math.max%");
|
|
4260
4278
|
e.exports = function(d) {
|
|
4261
4279
|
if (typeof d != "function")
|
|
4262
4280
|
throw new s("a function is required");
|
|
@@ -4271,20 +4289,20 @@ var gl = fa, vl = Ue, Wn = yl, bl = gl(), zn = da, Jn = Ye, xl = vl("%Math.floor
|
|
|
4271
4289
|
return i(t, o, arguments);
|
|
4272
4290
|
};
|
|
4273
4291
|
l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
|
|
4274
|
-
})(
|
|
4275
|
-
var
|
|
4276
|
-
var a =
|
|
4277
|
-
return typeof a == "function" &&
|
|
4292
|
+
})(ca);
|
|
4293
|
+
var Sl = ca.exports, fa = Ue, pa = Sl, wl = pa(fa("String.prototype.indexOf")), jl = function(t, n) {
|
|
4294
|
+
var a = fa(t, !!n);
|
|
4295
|
+
return typeof a == "function" && wl(t, ".prototype.") > -1 ? pa(a) : a;
|
|
4278
4296
|
};
|
|
4279
|
-
const
|
|
4297
|
+
const Nl = {}, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4280
4298
|
__proto__: null,
|
|
4281
|
-
default:
|
|
4282
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4283
|
-
var mn = typeof Map == "function" && Map.prototype, Ct = Object.getOwnPropertyDescriptor && mn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ht = mn && Ct && typeof Ct.get == "function" ? Ct.get : null, Gn = mn && Map.prototype.forEach, hn = typeof Set == "function" && Set.prototype, Pt = Object.getOwnPropertyDescriptor && hn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, yt = hn && Pt && typeof Pt.get == "function" ? Pt.get : null, Kn = hn && Set.prototype.forEach,
|
|
4299
|
+
default: Nl
|
|
4300
|
+
}, Symbol.toStringTag, { value: "Module" })), Ol = /* @__PURE__ */ vo(Tl);
|
|
4301
|
+
var mn = typeof Map == "function" && Map.prototype, Ct = Object.getOwnPropertyDescriptor && mn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ht = mn && Ct && typeof Ct.get == "function" ? Ct.get : null, Gn = mn && Map.prototype.forEach, hn = typeof Set == "function" && Set.prototype, Pt = Object.getOwnPropertyDescriptor && hn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, yt = hn && Pt && typeof Pt.get == "function" ? Pt.get : null, Kn = hn && Set.prototype.forEach, Cl = typeof WeakMap == "function" && WeakMap.prototype, De = Cl ? WeakMap.prototype.has : null, Pl = typeof WeakSet == "function" && WeakSet.prototype, Ve = Pl ? WeakSet.prototype.has : null, El = typeof WeakRef == "function" && WeakRef.prototype, Qn = El ? WeakRef.prototype.deref : null, Rl = Boolean.prototype.valueOf, Al = Object.prototype.toString, Fl = Function.prototype.toString, ql = String.prototype.match, yn = String.prototype.slice, ve = String.prototype.replace, Il = String.prototype.toUpperCase, Yn = String.prototype.toLowerCase, ma = RegExp.prototype.test, Xn = Array.prototype.concat, ue = Array.prototype.join, _l = Array.prototype.slice, Zn = Math.floor, Bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Et = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, _e = typeof Symbol == "function" && typeof Symbol.iterator == "object", X = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _e || !0) ? Symbol.toStringTag : null, ha = Object.prototype.propertyIsEnumerable, er = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
4284
4302
|
return e.__proto__;
|
|
4285
4303
|
} : null);
|
|
4286
4304
|
function tr(e, t) {
|
|
4287
|
-
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 ||
|
|
4305
|
+
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || ma.call(/e/, t))
|
|
4288
4306
|
return t;
|
|
4289
4307
|
var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
4290
4308
|
if (typeof e == "number") {
|
|
@@ -4296,7 +4314,7 @@ function tr(e, t) {
|
|
|
4296
4314
|
}
|
|
4297
4315
|
return ve.call(t, n, "$&_");
|
|
4298
4316
|
}
|
|
4299
|
-
var Vt =
|
|
4317
|
+
var Vt = Ol, nr = Vt.custom, rr = ga(nr) ? nr : null, Ll = function e(t, n, a, s) {
|
|
4300
4318
|
var o = n || {};
|
|
4301
4319
|
if (ge(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
4302
4320
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -4317,7 +4335,7 @@ var Vt = Tl, nr = Vt.custom, rr = va(nr) ? nr : null, _l = function e(t, n, a, s
|
|
|
4317
4335
|
if (typeof t == "boolean")
|
|
4318
4336
|
return t ? "true" : "false";
|
|
4319
4337
|
if (typeof t == "string")
|
|
4320
|
-
return
|
|
4338
|
+
return ba(t, o);
|
|
4321
4339
|
if (typeof t == "number") {
|
|
4322
4340
|
if (t === 0)
|
|
4323
4341
|
return 1 / 0 / t > 0 ? "0" : "-0";
|
|
@@ -4331,13 +4349,13 @@ var Vt = Tl, nr = Vt.custom, rr = va(nr) ? nr : null, _l = function e(t, n, a, s
|
|
|
4331
4349
|
var u = typeof o.depth > "u" ? 5 : o.depth;
|
|
4332
4350
|
if (typeof a > "u" && (a = 0), a >= u && u > 0 && typeof t == "object")
|
|
4333
4351
|
return Wt(t) ? "[Array]" : "[Object]";
|
|
4334
|
-
var p =
|
|
4352
|
+
var p = nc(o, a);
|
|
4335
4353
|
if (typeof s > "u")
|
|
4336
4354
|
s = [];
|
|
4337
|
-
else if (
|
|
4355
|
+
else if (va(s, t) >= 0)
|
|
4338
4356
|
return "[Circular]";
|
|
4339
4357
|
function d(I, H, L) {
|
|
4340
|
-
if (H && (s =
|
|
4358
|
+
if (H && (s = _l.call(s), s.push(H)), L) {
|
|
4341
4359
|
var ee = {
|
|
4342
4360
|
depth: o.depth
|
|
4343
4361
|
};
|
|
@@ -4346,27 +4364,27 @@ var Vt = Tl, nr = Vt.custom, rr = va(nr) ? nr : null, _l = function e(t, n, a, s
|
|
|
4346
4364
|
return e(I, o, a + 1, s);
|
|
4347
4365
|
}
|
|
4348
4366
|
if (typeof t == "function" && !ar(t)) {
|
|
4349
|
-
var m =
|
|
4367
|
+
var m = Jl(t), h = et(t, d);
|
|
4350
4368
|
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + ue.call(h, ", ") + " }" : "");
|
|
4351
4369
|
}
|
|
4352
|
-
if (
|
|
4370
|
+
if (ga(t)) {
|
|
4353
4371
|
var y = _e ? ve.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(t);
|
|
4354
4372
|
return typeof t == "object" && !_e ? He(y) : y;
|
|
4355
4373
|
}
|
|
4356
|
-
if (
|
|
4374
|
+
if (Zl(t)) {
|
|
4357
4375
|
for (var v = "<" + Yn.call(String(t.nodeName)), b = t.attributes || [], g = 0; g < b.length; g++)
|
|
4358
|
-
v += " " + b[g].name + "=" +
|
|
4376
|
+
v += " " + b[g].name + "=" + ya(Ul(b[g].value), "double", o);
|
|
4359
4377
|
return v += ">", t.childNodes && t.childNodes.length && (v += "..."), v += "</" + Yn.call(String(t.nodeName)) + ">", v;
|
|
4360
4378
|
}
|
|
4361
4379
|
if (Wt(t)) {
|
|
4362
4380
|
if (t.length === 0)
|
|
4363
4381
|
return "[]";
|
|
4364
4382
|
var x = et(t, d);
|
|
4365
|
-
return p && !
|
|
4383
|
+
return p && !tc(x) ? "[" + zt(x, p) + "]" : "[ " + ue.call(x, ", ") + " ]";
|
|
4366
4384
|
}
|
|
4367
|
-
if (
|
|
4385
|
+
if (Hl(t)) {
|
|
4368
4386
|
var w = et(t, d);
|
|
4369
|
-
return !("cause" in Error.prototype) && "cause" in t && !
|
|
4387
|
+
return !("cause" in Error.prototype) && "cause" in t && !ha.call(t, "cause") ? "{ [" + String(t) + "] " + ue.call(Xn.call("[cause]: " + d(t.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ue.call(w, ", ") + " }";
|
|
4370
4388
|
}
|
|
4371
4389
|
if (typeof t == "object" && r) {
|
|
4372
4390
|
if (rr && typeof t[rr] == "function" && Vt)
|
|
@@ -4374,71 +4392,71 @@ var Vt = Tl, nr = Vt.custom, rr = va(nr) ? nr : null, _l = function e(t, n, a, s
|
|
|
4374
4392
|
if (r !== "symbol" && typeof t.inspect == "function")
|
|
4375
4393
|
return t.inspect();
|
|
4376
4394
|
}
|
|
4377
|
-
if (
|
|
4395
|
+
if (Gl(t)) {
|
|
4378
4396
|
var S = [];
|
|
4379
4397
|
return Gn && Gn.call(t, function(I, H) {
|
|
4380
4398
|
S.push(d(H, t, !0) + " => " + d(I, t));
|
|
4381
4399
|
}), or("Map", ht.call(t), S, p);
|
|
4382
4400
|
}
|
|
4383
|
-
if (
|
|
4401
|
+
if (Yl(t)) {
|
|
4384
4402
|
var k = [];
|
|
4385
4403
|
return Kn && Kn.call(t, function(I) {
|
|
4386
4404
|
k.push(d(I, t));
|
|
4387
4405
|
}), or("Set", yt.call(t), k, p);
|
|
4388
4406
|
}
|
|
4389
|
-
if (
|
|
4407
|
+
if (Kl(t))
|
|
4390
4408
|
return Rt("WeakMap");
|
|
4391
|
-
if (
|
|
4409
|
+
if (Xl(t))
|
|
4392
4410
|
return Rt("WeakSet");
|
|
4393
|
-
if (
|
|
4411
|
+
if (Ql(t))
|
|
4394
4412
|
return Rt("WeakRef");
|
|
4395
|
-
if (
|
|
4413
|
+
if (Dl(t))
|
|
4396
4414
|
return He(d(Number(t)));
|
|
4397
|
-
if (
|
|
4415
|
+
if (Wl(t))
|
|
4398
4416
|
return He(d(Bt.call(t)));
|
|
4399
|
-
if (
|
|
4400
|
-
return He(
|
|
4401
|
-
if (
|
|
4417
|
+
if (Vl(t))
|
|
4418
|
+
return He(Rl.call(t));
|
|
4419
|
+
if (Bl(t))
|
|
4402
4420
|
return He(d(String(t)));
|
|
4403
4421
|
if (typeof window < "u" && t === window)
|
|
4404
4422
|
return "{ [object Window] }";
|
|
4405
4423
|
if (t === ot)
|
|
4406
4424
|
return "{ [object globalThis] }";
|
|
4407
|
-
if (!
|
|
4425
|
+
if (!Ml(t) && !ar(t)) {
|
|
4408
4426
|
var C = et(t, d), P = er ? er(t) === Object.prototype : t instanceof Object || t.constructor === Object, R = t instanceof Object ? "" : "null prototype", q = !P && X && Object(t) === t && X in t ? yn.call(xe(t), 8, -1) : R ? "Object" : "", G = P || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", K = G + (q || R ? "[" + ue.call(Xn.call([], q || [], R || []), ": ") + "] " : "");
|
|
4409
4427
|
return C.length === 0 ? K + "{}" : p ? K + "{" + zt(C, p) + "}" : K + "{ " + ue.call(C, ", ") + " }";
|
|
4410
4428
|
}
|
|
4411
4429
|
return String(t);
|
|
4412
4430
|
};
|
|
4413
|
-
function
|
|
4431
|
+
function ya(e, t, n) {
|
|
4414
4432
|
var a = (n.quoteStyle || t) === "double" ? '"' : "'";
|
|
4415
4433
|
return a + e + a;
|
|
4416
4434
|
}
|
|
4417
|
-
function
|
|
4435
|
+
function Ul(e) {
|
|
4418
4436
|
return ve.call(String(e), /"/g, """);
|
|
4419
4437
|
}
|
|
4420
4438
|
function Wt(e) {
|
|
4421
4439
|
return xe(e) === "[object Array]" && (!X || !(typeof e == "object" && X in e));
|
|
4422
4440
|
}
|
|
4423
|
-
function
|
|
4441
|
+
function Ml(e) {
|
|
4424
4442
|
return xe(e) === "[object Date]" && (!X || !(typeof e == "object" && X in e));
|
|
4425
4443
|
}
|
|
4426
4444
|
function ar(e) {
|
|
4427
4445
|
return xe(e) === "[object RegExp]" && (!X || !(typeof e == "object" && X in e));
|
|
4428
4446
|
}
|
|
4429
|
-
function
|
|
4447
|
+
function Hl(e) {
|
|
4430
4448
|
return xe(e) === "[object Error]" && (!X || !(typeof e == "object" && X in e));
|
|
4431
4449
|
}
|
|
4432
|
-
function
|
|
4450
|
+
function Bl(e) {
|
|
4433
4451
|
return xe(e) === "[object String]" && (!X || !(typeof e == "object" && X in e));
|
|
4434
4452
|
}
|
|
4435
|
-
function
|
|
4453
|
+
function Dl(e) {
|
|
4436
4454
|
return xe(e) === "[object Number]" && (!X || !(typeof e == "object" && X in e));
|
|
4437
4455
|
}
|
|
4438
|
-
function
|
|
4456
|
+
function Vl(e) {
|
|
4439
4457
|
return xe(e) === "[object Boolean]" && (!X || !(typeof e == "object" && X in e));
|
|
4440
4458
|
}
|
|
4441
|
-
function
|
|
4459
|
+
function ga(e) {
|
|
4442
4460
|
if (_e)
|
|
4443
4461
|
return e && typeof e == "object" && e instanceof Symbol;
|
|
4444
4462
|
if (typeof e == "symbol")
|
|
@@ -4451,7 +4469,7 @@ function va(e) {
|
|
|
4451
4469
|
}
|
|
4452
4470
|
return !1;
|
|
4453
4471
|
}
|
|
4454
|
-
function
|
|
4472
|
+
function Wl(e) {
|
|
4455
4473
|
if (!e || typeof e != "object" || !Bt)
|
|
4456
4474
|
return !1;
|
|
4457
4475
|
try {
|
|
@@ -4460,22 +4478,22 @@ function Vl(e) {
|
|
|
4460
4478
|
}
|
|
4461
4479
|
return !1;
|
|
4462
4480
|
}
|
|
4463
|
-
var
|
|
4481
|
+
var zl = Object.prototype.hasOwnProperty || function(e) {
|
|
4464
4482
|
return e in this;
|
|
4465
4483
|
};
|
|
4466
4484
|
function ge(e, t) {
|
|
4467
|
-
return
|
|
4485
|
+
return zl.call(e, t);
|
|
4468
4486
|
}
|
|
4469
4487
|
function xe(e) {
|
|
4470
|
-
return
|
|
4488
|
+
return Al.call(e);
|
|
4471
4489
|
}
|
|
4472
|
-
function
|
|
4490
|
+
function Jl(e) {
|
|
4473
4491
|
if (e.name)
|
|
4474
4492
|
return e.name;
|
|
4475
|
-
var t =
|
|
4493
|
+
var t = ql.call(Fl.call(e), /^function\s*([\w$]+)/);
|
|
4476
4494
|
return t ? t[1] : null;
|
|
4477
4495
|
}
|
|
4478
|
-
function
|
|
4496
|
+
function va(e, t) {
|
|
4479
4497
|
if (e.indexOf)
|
|
4480
4498
|
return e.indexOf(t);
|
|
4481
4499
|
for (var n = 0, a = e.length; n < a; n++)
|
|
@@ -4483,7 +4501,7 @@ function ba(e, t) {
|
|
|
4483
4501
|
return n;
|
|
4484
4502
|
return -1;
|
|
4485
4503
|
}
|
|
4486
|
-
function
|
|
4504
|
+
function Gl(e) {
|
|
4487
4505
|
if (!ht || !e || typeof e != "object")
|
|
4488
4506
|
return !1;
|
|
4489
4507
|
try {
|
|
@@ -4498,7 +4516,7 @@ function Jl(e) {
|
|
|
4498
4516
|
}
|
|
4499
4517
|
return !1;
|
|
4500
4518
|
}
|
|
4501
|
-
function
|
|
4519
|
+
function Kl(e) {
|
|
4502
4520
|
if (!De || !e || typeof e != "object")
|
|
4503
4521
|
return !1;
|
|
4504
4522
|
try {
|
|
@@ -4513,7 +4531,7 @@ function Gl(e) {
|
|
|
4513
4531
|
}
|
|
4514
4532
|
return !1;
|
|
4515
4533
|
}
|
|
4516
|
-
function
|
|
4534
|
+
function Ql(e) {
|
|
4517
4535
|
if (!Qn || !e || typeof e != "object")
|
|
4518
4536
|
return !1;
|
|
4519
4537
|
try {
|
|
@@ -4522,7 +4540,7 @@ function Kl(e) {
|
|
|
4522
4540
|
}
|
|
4523
4541
|
return !1;
|
|
4524
4542
|
}
|
|
4525
|
-
function
|
|
4543
|
+
function Yl(e) {
|
|
4526
4544
|
if (!yt || !e || typeof e != "object")
|
|
4527
4545
|
return !1;
|
|
4528
4546
|
try {
|
|
@@ -4537,7 +4555,7 @@ function Ql(e) {
|
|
|
4537
4555
|
}
|
|
4538
4556
|
return !1;
|
|
4539
4557
|
}
|
|
4540
|
-
function
|
|
4558
|
+
function Xl(e) {
|
|
4541
4559
|
if (!Ve || !e || typeof e != "object")
|
|
4542
4560
|
return !1;
|
|
4543
4561
|
try {
|
|
@@ -4552,18 +4570,18 @@ function Yl(e) {
|
|
|
4552
4570
|
}
|
|
4553
4571
|
return !1;
|
|
4554
4572
|
}
|
|
4555
|
-
function
|
|
4573
|
+
function Zl(e) {
|
|
4556
4574
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
4557
4575
|
}
|
|
4558
|
-
function
|
|
4576
|
+
function ba(e, t) {
|
|
4559
4577
|
if (e.length > t.maxStringLength) {
|
|
4560
4578
|
var n = e.length - t.maxStringLength, a = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
4561
|
-
return
|
|
4579
|
+
return ba(yn.call(e, 0, t.maxStringLength), t) + a;
|
|
4562
4580
|
}
|
|
4563
|
-
var s = ve.call(ve.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
4564
|
-
return
|
|
4581
|
+
var s = ve.call(ve.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ec);
|
|
4582
|
+
return ya(s, "single", t);
|
|
4565
4583
|
}
|
|
4566
|
-
function
|
|
4584
|
+
function ec(e) {
|
|
4567
4585
|
var t = e.charCodeAt(0), n = {
|
|
4568
4586
|
8: "b",
|
|
4569
4587
|
9: "t",
|
|
@@ -4571,7 +4589,7 @@ function Zl(e) {
|
|
|
4571
4589
|
12: "f",
|
|
4572
4590
|
13: "r"
|
|
4573
4591
|
}[t];
|
|
4574
|
-
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") +
|
|
4592
|
+
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + Il.call(t.toString(16));
|
|
4575
4593
|
}
|
|
4576
4594
|
function He(e) {
|
|
4577
4595
|
return "Object(" + e + ")";
|
|
@@ -4583,14 +4601,14 @@ function or(e, t, n, a) {
|
|
|
4583
4601
|
var s = a ? zt(n, a) : ue.call(n, ", ");
|
|
4584
4602
|
return e + " (" + t + ") {" + s + "}";
|
|
4585
4603
|
}
|
|
4586
|
-
function
|
|
4604
|
+
function tc(e) {
|
|
4587
4605
|
for (var t = 0; t < e.length; t++)
|
|
4588
|
-
if (
|
|
4606
|
+
if (va(e[t], `
|
|
4589
4607
|
`) >= 0)
|
|
4590
4608
|
return !1;
|
|
4591
4609
|
return !0;
|
|
4592
4610
|
}
|
|
4593
|
-
function
|
|
4611
|
+
function nc(e, t) {
|
|
4594
4612
|
var n;
|
|
4595
4613
|
if (e.indent === " ")
|
|
4596
4614
|
n = " ";
|
|
@@ -4625,21 +4643,21 @@ function et(e, t) {
|
|
|
4625
4643
|
r["$" + o[i]] = o[i];
|
|
4626
4644
|
}
|
|
4627
4645
|
for (var l in e)
|
|
4628
|
-
ge(e, l) && (n && String(Number(l)) === l && l < e.length || _e && r["$" + l] instanceof Symbol || (
|
|
4646
|
+
ge(e, l) && (n && String(Number(l)) === l && l < e.length || _e && r["$" + l] instanceof Symbol || (ma.call(/[^\w$]/, l) ? a.push(t(l, e) + ": " + t(e[l], e)) : a.push(l + ": " + t(e[l], e))));
|
|
4629
4647
|
if (typeof Et == "function")
|
|
4630
4648
|
for (var c = 0; c < o.length; c++)
|
|
4631
|
-
|
|
4649
|
+
ha.call(e, o[c]) && a.push("[" + t(o[c]) + "]: " + t(e[o[c]], e));
|
|
4632
4650
|
return a;
|
|
4633
4651
|
}
|
|
4634
|
-
var
|
|
4652
|
+
var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%", !0), oc = Me("WeakMap.prototype.get", !0), ic = Me("WeakMap.prototype.set", !0), sc = Me("WeakMap.prototype.has", !0), lc = Me("Map.prototype.get", !0), cc = Me("Map.prototype.set", !0), uc = Me("Map.prototype.has", !0), gn = function(e, t) {
|
|
4635
4653
|
for (var n = e, a; (a = n.next) !== null; n = a)
|
|
4636
4654
|
if (a.key === t)
|
|
4637
4655
|
return n.next = a.next, a.next = /** @type {NonNullable<typeof list.next>} */
|
|
4638
4656
|
e.next, e.next = a, a;
|
|
4639
|
-
},
|
|
4657
|
+
}, dc = function(e, t) {
|
|
4640
4658
|
var n = gn(e, t);
|
|
4641
4659
|
return n && n.value;
|
|
4642
|
-
},
|
|
4660
|
+
}, fc = function(e, t, n) {
|
|
4643
4661
|
var a = gn(e, t);
|
|
4644
4662
|
a ? a.value = n : e.next = /** @type {import('.').ListNode<typeof value>} */
|
|
4645
4663
|
{
|
|
@@ -4648,48 +4666,48 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4648
4666
|
next: e.next,
|
|
4649
4667
|
value: n
|
|
4650
4668
|
};
|
|
4651
|
-
},
|
|
4669
|
+
}, pc = function(e, t) {
|
|
4652
4670
|
return !!gn(e, t);
|
|
4653
|
-
},
|
|
4671
|
+
}, mc = function() {
|
|
4654
4672
|
var t, n, a, s = {
|
|
4655
4673
|
assert: function(o) {
|
|
4656
4674
|
if (!s.has(o))
|
|
4657
|
-
throw new
|
|
4675
|
+
throw new ac("Side channel does not contain " + rc(o));
|
|
4658
4676
|
},
|
|
4659
4677
|
get: function(o) {
|
|
4660
4678
|
if (tt && o && (typeof o == "object" || typeof o == "function")) {
|
|
4661
4679
|
if (t)
|
|
4662
|
-
return
|
|
4680
|
+
return oc(t, o);
|
|
4663
4681
|
} else if (nt) {
|
|
4664
4682
|
if (n)
|
|
4665
|
-
return
|
|
4683
|
+
return lc(n, o);
|
|
4666
4684
|
} else if (a)
|
|
4667
|
-
return
|
|
4685
|
+
return dc(a, o);
|
|
4668
4686
|
},
|
|
4669
4687
|
has: function(o) {
|
|
4670
4688
|
if (tt && o && (typeof o == "object" || typeof o == "function")) {
|
|
4671
4689
|
if (t)
|
|
4672
|
-
return
|
|
4690
|
+
return sc(t, o);
|
|
4673
4691
|
} else if (nt) {
|
|
4674
4692
|
if (n)
|
|
4675
|
-
return
|
|
4693
|
+
return uc(n, o);
|
|
4676
4694
|
} else if (a)
|
|
4677
|
-
return
|
|
4695
|
+
return pc(a, o);
|
|
4678
4696
|
return !1;
|
|
4679
4697
|
},
|
|
4680
4698
|
set: function(o, r) {
|
|
4681
|
-
tt && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new tt()),
|
|
4699
|
+
tt && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new tt()), ic(t, o, r)) : nt ? (n || (n = new nt()), cc(n, o, r)) : (a || (a = { key: {}, next: null }), fc(a, o, r));
|
|
4682
4700
|
}
|
|
4683
4701
|
};
|
|
4684
4702
|
return s;
|
|
4685
|
-
},
|
|
4703
|
+
}, hc = String.prototype.replace, yc = /%20/g, At = {
|
|
4686
4704
|
RFC1738: "RFC1738",
|
|
4687
4705
|
RFC3986: "RFC3986"
|
|
4688
4706
|
}, vn = {
|
|
4689
4707
|
default: At.RFC3986,
|
|
4690
4708
|
formatters: {
|
|
4691
4709
|
RFC1738: function(e) {
|
|
4692
|
-
return
|
|
4710
|
+
return hc.call(e, yc, "+");
|
|
4693
4711
|
},
|
|
4694
4712
|
RFC3986: function(e) {
|
|
4695
4713
|
return String(e);
|
|
@@ -4697,11 +4715,11 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4697
4715
|
},
|
|
4698
4716
|
RFC1738: At.RFC1738,
|
|
4699
4717
|
RFC3986: At.RFC3986
|
|
4700
|
-
},
|
|
4718
|
+
}, gc = vn, Ft = Object.prototype.hasOwnProperty, $e = Array.isArray, le = function() {
|
|
4701
4719
|
for (var e = [], t = 0; t < 256; ++t)
|
|
4702
4720
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
4703
4721
|
return e;
|
|
4704
|
-
}(),
|
|
4722
|
+
}(), vc = function(t) {
|
|
4705
4723
|
for (; t.length > 1; ) {
|
|
4706
4724
|
var n = t.pop(), a = n.obj[n.prop];
|
|
4707
4725
|
if ($e(a)) {
|
|
@@ -4710,11 +4728,11 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4710
4728
|
n.obj[n.prop] = s;
|
|
4711
4729
|
}
|
|
4712
4730
|
}
|
|
4713
|
-
},
|
|
4731
|
+
}, ka = function(t, n) {
|
|
4714
4732
|
for (var a = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < t.length; ++s)
|
|
4715
4733
|
typeof t[s] < "u" && (a[s] = t[s]);
|
|
4716
4734
|
return a;
|
|
4717
|
-
},
|
|
4735
|
+
}, bc = function e(t, n, a) {
|
|
4718
4736
|
if (!n)
|
|
4719
4737
|
return t;
|
|
4720
4738
|
if (typeof n != "object") {
|
|
@@ -4729,7 +4747,7 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4729
4747
|
if (!t || typeof t != "object")
|
|
4730
4748
|
return [t].concat(n);
|
|
4731
4749
|
var s = t;
|
|
4732
|
-
return $e(t) && !$e(n) && (s =
|
|
4750
|
+
return $e(t) && !$e(n) && (s = ka(t, a)), $e(t) && $e(n) ? (n.forEach(function(o, r) {
|
|
4733
4751
|
if (Ft.call(t, r)) {
|
|
4734
4752
|
var i = t[r];
|
|
4735
4753
|
i && typeof i == "object" && o && typeof o == "object" ? t[r] = e(i, o, a) : t.push(o);
|
|
@@ -4739,11 +4757,11 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4739
4757
|
var i = n[r];
|
|
4740
4758
|
return Ft.call(o, r) ? o[r] = e(o[r], i, a) : o[r] = i, o;
|
|
4741
4759
|
}, s);
|
|
4742
|
-
},
|
|
4760
|
+
}, xc = function(t, n) {
|
|
4743
4761
|
return Object.keys(n).reduce(function(a, s) {
|
|
4744
4762
|
return a[s] = n[s], a;
|
|
4745
4763
|
}, t);
|
|
4746
|
-
},
|
|
4764
|
+
}, kc = function(e, t, n) {
|
|
4747
4765
|
var a = e.replace(/\+/g, " ");
|
|
4748
4766
|
if (n === "iso-8859-1")
|
|
4749
4767
|
return a.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -4752,7 +4770,7 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4752
4770
|
} catch {
|
|
4753
4771
|
return a;
|
|
4754
4772
|
}
|
|
4755
|
-
}, qt = 1024,
|
|
4773
|
+
}, qt = 1024, $c = function(t, n, a, s, o) {
|
|
4756
4774
|
if (t.length === 0)
|
|
4757
4775
|
return t;
|
|
4758
4776
|
var r = t;
|
|
@@ -4763,7 +4781,7 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4763
4781
|
for (var i = "", l = 0; l < r.length; l += qt) {
|
|
4764
4782
|
for (var c = r.length >= qt ? r.slice(l, l + qt) : r, u = [], p = 0; p < c.length; ++p) {
|
|
4765
4783
|
var d = c.charCodeAt(p);
|
|
4766
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || o ===
|
|
4784
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || o === gc.RFC1738 && (d === 40 || d === 41)) {
|
|
4767
4785
|
u[u.length] = c.charAt(p);
|
|
4768
4786
|
continue;
|
|
4769
4787
|
}
|
|
@@ -4784,38 +4802,38 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4784
4802
|
i += u.join("");
|
|
4785
4803
|
}
|
|
4786
4804
|
return i;
|
|
4787
|
-
},
|
|
4805
|
+
}, Sc = function(t) {
|
|
4788
4806
|
for (var n = [{ obj: { o: t }, prop: "o" }], a = [], s = 0; s < n.length; ++s)
|
|
4789
4807
|
for (var o = n[s], r = o.obj[o.prop], i = Object.keys(r), l = 0; l < i.length; ++l) {
|
|
4790
4808
|
var c = i[l], u = r[c];
|
|
4791
4809
|
typeof u == "object" && u !== null && a.indexOf(u) === -1 && (n.push({ obj: r, prop: c }), a.push(u));
|
|
4792
4810
|
}
|
|
4793
|
-
return
|
|
4794
|
-
}, Sc = function(t) {
|
|
4795
|
-
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
4811
|
+
return vc(n), t;
|
|
4796
4812
|
}, wc = function(t) {
|
|
4813
|
+
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
4814
|
+
}, jc = function(t) {
|
|
4797
4815
|
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
4798
|
-
}, jc = function(t, n) {
|
|
4799
|
-
return [].concat(t, n);
|
|
4800
4816
|
}, Nc = function(t, n) {
|
|
4817
|
+
return [].concat(t, n);
|
|
4818
|
+
}, Tc = function(t, n) {
|
|
4801
4819
|
if ($e(t)) {
|
|
4802
4820
|
for (var a = [], s = 0; s < t.length; s += 1)
|
|
4803
4821
|
a.push(n(t[s]));
|
|
4804
4822
|
return a;
|
|
4805
4823
|
}
|
|
4806
4824
|
return n(t);
|
|
4807
|
-
},
|
|
4808
|
-
arrayToObject:
|
|
4809
|
-
assign:
|
|
4810
|
-
combine:
|
|
4811
|
-
compact:
|
|
4812
|
-
decode:
|
|
4813
|
-
encode:
|
|
4814
|
-
isBuffer:
|
|
4815
|
-
isRegExp:
|
|
4816
|
-
maybeMap:
|
|
4817
|
-
merge:
|
|
4818
|
-
},
|
|
4825
|
+
}, $a = {
|
|
4826
|
+
arrayToObject: ka,
|
|
4827
|
+
assign: xc,
|
|
4828
|
+
combine: Nc,
|
|
4829
|
+
compact: Sc,
|
|
4830
|
+
decode: kc,
|
|
4831
|
+
encode: $c,
|
|
4832
|
+
isBuffer: jc,
|
|
4833
|
+
isRegExp: wc,
|
|
4834
|
+
maybeMap: Tc,
|
|
4835
|
+
merge: bc
|
|
4836
|
+
}, Sa = mc, lt = $a, We = vn, Oc = Object.prototype.hasOwnProperty, wa = {
|
|
4819
4837
|
brackets: function(t) {
|
|
4820
4838
|
return t + "[]";
|
|
4821
4839
|
},
|
|
@@ -4826,9 +4844,9 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4826
4844
|
repeat: function(t) {
|
|
4827
4845
|
return t;
|
|
4828
4846
|
}
|
|
4829
|
-
}, ce = Array.isArray,
|
|
4830
|
-
|
|
4831
|
-
},
|
|
4847
|
+
}, ce = Array.isArray, Cc = Array.prototype.push, ja = function(e, t) {
|
|
4848
|
+
Cc.apply(e, ce(t) ? t : [t]);
|
|
4849
|
+
}, Pc = Date.prototype.toISOString, ir = We.default, B = {
|
|
4832
4850
|
addQueryPrefix: !1,
|
|
4833
4851
|
allowDots: !1,
|
|
4834
4852
|
allowEmptyArrays: !1,
|
|
@@ -4845,13 +4863,13 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4845
4863
|
// deprecated
|
|
4846
4864
|
indices: !1,
|
|
4847
4865
|
serializeDate: function(t) {
|
|
4848
|
-
return
|
|
4866
|
+
return Pc.call(t);
|
|
4849
4867
|
},
|
|
4850
4868
|
skipNulls: !1,
|
|
4851
4869
|
strictNullHandling: !1
|
|
4852
|
-
},
|
|
4870
|
+
}, Ec = function(t) {
|
|
4853
4871
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
4854
|
-
}, It = {},
|
|
4872
|
+
}, It = {}, Rc = function e(t, n, a, s, o, r, i, l, c, u, p, d, m, h, y, v, b, g) {
|
|
4855
4873
|
for (var x = t, w = g, S = 0, k = !1; (w = w.get(It)) !== void 0 && !k; ) {
|
|
4856
4874
|
var C = w.get(t);
|
|
4857
4875
|
if (S += 1, typeof C < "u") {
|
|
@@ -4868,7 +4886,7 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4868
4886
|
return c && !v ? c(n, B.encoder, b, "key", h) : n;
|
|
4869
4887
|
x = "";
|
|
4870
4888
|
}
|
|
4871
|
-
if (
|
|
4889
|
+
if (Ec(x) || lt.isBuffer(x)) {
|
|
4872
4890
|
if (c) {
|
|
4873
4891
|
var P = v ? n : c(n, B.encoder, b, "key", h);
|
|
4874
4892
|
return [y(P) + "=" + y(c(x, B.encoder, b, "value", h))];
|
|
@@ -4895,8 +4913,8 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4895
4913
|
if (!(i && ee === null)) {
|
|
4896
4914
|
var he = d && l ? L.replace(/\./g, "%2E") : L, bt = ce(x) ? typeof a == "function" ? a(I, he) : I : I + (d ? "." + he : "[" + he + "]");
|
|
4897
4915
|
g.set(t, S);
|
|
4898
|
-
var Ze =
|
|
4899
|
-
Ze.set(It, g),
|
|
4916
|
+
var Ze = Sa();
|
|
4917
|
+
Ze.set(It, g), ja(R, e(
|
|
4900
4918
|
ee,
|
|
4901
4919
|
bt,
|
|
4902
4920
|
a,
|
|
@@ -4919,7 +4937,7 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4919
4937
|
}
|
|
4920
4938
|
}
|
|
4921
4939
|
return R;
|
|
4922
|
-
},
|
|
4940
|
+
}, Ac = function(t) {
|
|
4923
4941
|
if (!t)
|
|
4924
4942
|
return B;
|
|
4925
4943
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -4933,14 +4951,14 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4933
4951
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
4934
4952
|
var a = We.default;
|
|
4935
4953
|
if (typeof t.format < "u") {
|
|
4936
|
-
if (!
|
|
4954
|
+
if (!Oc.call(We.formatters, t.format))
|
|
4937
4955
|
throw new TypeError("Unknown format option provided.");
|
|
4938
4956
|
a = t.format;
|
|
4939
4957
|
}
|
|
4940
4958
|
var s = We.formatters[a], o = B.filter;
|
|
4941
4959
|
(typeof t.filter == "function" || ce(t.filter)) && (o = t.filter);
|
|
4942
4960
|
var r;
|
|
4943
|
-
if (t.arrayFormat in
|
|
4961
|
+
if (t.arrayFormat in wa ? r = t.arrayFormat : "indices" in t ? r = t.indices ? "indices" : "repeat" : r = B.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
|
|
4944
4962
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
4945
4963
|
var i = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : B.allowDots : !!t.allowDots;
|
|
4946
4964
|
return {
|
|
@@ -4964,17 +4982,17 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4964
4982
|
sort: typeof t.sort == "function" ? t.sort : null,
|
|
4965
4983
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : B.strictNullHandling
|
|
4966
4984
|
};
|
|
4967
|
-
},
|
|
4968
|
-
var n = e, a =
|
|
4985
|
+
}, Fc = function(e, t) {
|
|
4986
|
+
var n = e, a = Ac(t), s, o;
|
|
4969
4987
|
typeof a.filter == "function" ? (o = a.filter, n = o("", n)) : ce(a.filter) && (o = a.filter, s = o);
|
|
4970
4988
|
var r = [];
|
|
4971
4989
|
if (typeof n != "object" || n === null)
|
|
4972
4990
|
return "";
|
|
4973
|
-
var i =
|
|
4991
|
+
var i = wa[a.arrayFormat], l = i === "comma" && a.commaRoundTrip;
|
|
4974
4992
|
s || (s = Object.keys(n)), a.sort && s.sort(a.sort);
|
|
4975
|
-
for (var c =
|
|
4993
|
+
for (var c = Sa(), u = 0; u < s.length; ++u) {
|
|
4976
4994
|
var p = s[u];
|
|
4977
|
-
a.skipNulls && n[p] === null ||
|
|
4995
|
+
a.skipNulls && n[p] === null || ja(r, Rc(
|
|
4978
4996
|
n[p],
|
|
4979
4997
|
p,
|
|
4980
4998
|
i,
|
|
@@ -4997,7 +5015,7 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
4997
5015
|
}
|
|
4998
5016
|
var d = r.join(a.delimiter), m = a.addQueryPrefix === !0 ? "?" : "";
|
|
4999
5017
|
return a.charsetSentinel && (a.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), d.length > 0 ? m + d : "";
|
|
5000
|
-
}, Le =
|
|
5018
|
+
}, Le = $a, Jt = Object.prototype.hasOwnProperty, qc = Array.isArray, M = {
|
|
5001
5019
|
allowDots: !1,
|
|
5002
5020
|
allowEmptyArrays: !1,
|
|
5003
5021
|
allowPrototypes: !1,
|
|
@@ -5017,32 +5035,32 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
5017
5035
|
parseArrays: !0,
|
|
5018
5036
|
plainObjects: !1,
|
|
5019
5037
|
strictNullHandling: !1
|
|
5020
|
-
},
|
|
5038
|
+
}, Ic = function(e) {
|
|
5021
5039
|
return e.replace(/&#(\d+);/g, function(t, n) {
|
|
5022
5040
|
return String.fromCharCode(parseInt(n, 10));
|
|
5023
5041
|
});
|
|
5024
|
-
},
|
|
5042
|
+
}, Na = function(e, t) {
|
|
5025
5043
|
return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
|
|
5026
|
-
},
|
|
5044
|
+
}, _c = "utf8=%26%2310003%3B", Lc = "utf8=%E2%9C%93", Uc = function(t, n) {
|
|
5027
5045
|
var a = { __proto__: null }, s = n.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, o = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, r = s.split(n.delimiter, o), i = -1, l, c = n.charset;
|
|
5028
5046
|
if (n.charsetSentinel)
|
|
5029
5047
|
for (l = 0; l < r.length; ++l)
|
|
5030
|
-
r[l].indexOf("utf8=") === 0 && (r[l] ===
|
|
5048
|
+
r[l].indexOf("utf8=") === 0 && (r[l] === Lc ? c = "utf-8" : r[l] === _c && (c = "iso-8859-1"), i = l, l = r.length);
|
|
5031
5049
|
for (l = 0; l < r.length; ++l)
|
|
5032
5050
|
if (l !== i) {
|
|
5033
5051
|
var u = r[l], p = u.indexOf("]="), d = p === -1 ? u.indexOf("=") : p + 1, m, h;
|
|
5034
5052
|
d === -1 ? (m = n.decoder(u, M.decoder, c, "key"), h = n.strictNullHandling ? null : "") : (m = n.decoder(u.slice(0, d), M.decoder, c, "key"), h = Le.maybeMap(
|
|
5035
|
-
|
|
5053
|
+
Na(u.slice(d + 1), n),
|
|
5036
5054
|
function(v) {
|
|
5037
5055
|
return n.decoder(v, M.decoder, c, "value");
|
|
5038
5056
|
}
|
|
5039
|
-
)), h && n.interpretNumericEntities && c === "iso-8859-1" && (h =
|
|
5057
|
+
)), h && n.interpretNumericEntities && c === "iso-8859-1" && (h = Ic(h)), u.indexOf("[]=") > -1 && (h = qc(h) ? [h] : h);
|
|
5040
5058
|
var y = Jt.call(a, m);
|
|
5041
5059
|
y && n.duplicates === "combine" ? a[m] = Le.combine(a[m], h) : (!y || n.duplicates === "last") && (a[m] = h);
|
|
5042
5060
|
}
|
|
5043
5061
|
return a;
|
|
5044
|
-
},
|
|
5045
|
-
for (var s = a ? t :
|
|
5062
|
+
}, Mc = function(e, t, n, a) {
|
|
5063
|
+
for (var s = a ? t : Na(t, n), o = e.length - 1; o >= 0; --o) {
|
|
5046
5064
|
var r, i = e[o];
|
|
5047
5065
|
if (i === "[]" && n.parseArrays)
|
|
5048
5066
|
r = n.allowEmptyArrays && s === "" ? [] : [].concat(s);
|
|
@@ -5054,7 +5072,7 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
5054
5072
|
s = r;
|
|
5055
5073
|
}
|
|
5056
5074
|
return s;
|
|
5057
|
-
},
|
|
5075
|
+
}, Hc = function(t, n, a, s) {
|
|
5058
5076
|
if (t) {
|
|
5059
5077
|
var o = a.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, r = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, l = a.depth > 0 && r.exec(o), c = l ? o.slice(0, l.index) : o, u = [];
|
|
5060
5078
|
if (c) {
|
|
@@ -5067,9 +5085,9 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
5067
5085
|
return;
|
|
5068
5086
|
u.push(l[1]);
|
|
5069
5087
|
}
|
|
5070
|
-
return l && u.push("[" + o.slice(l.index) + "]"),
|
|
5088
|
+
return l && u.push("[" + o.slice(l.index) + "]"), Mc(u, n, a, s);
|
|
5071
5089
|
}
|
|
5072
|
-
},
|
|
5090
|
+
}, Bc = function(t) {
|
|
5073
5091
|
if (!t)
|
|
5074
5092
|
return M;
|
|
5075
5093
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -5106,24 +5124,24 @@ var ka = Ue, Me = wl, nc = _l, rc = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%
|
|
|
5106
5124
|
plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : M.plainObjects,
|
|
5107
5125
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : M.strictNullHandling
|
|
5108
5126
|
};
|
|
5109
|
-
},
|
|
5110
|
-
var n =
|
|
5127
|
+
}, Dc = function(e, t) {
|
|
5128
|
+
var n = Bc(t);
|
|
5111
5129
|
if (e === "" || e === null || typeof e > "u")
|
|
5112
5130
|
return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
5113
|
-
for (var a = typeof e == "string" ?
|
|
5114
|
-
var i = o[r], l =
|
|
5131
|
+
for (var a = typeof e == "string" ? Uc(e, n) : e, s = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(a), r = 0; r < o.length; ++r) {
|
|
5132
|
+
var i = o[r], l = Hc(i, a[i], n, typeof e == "string");
|
|
5115
5133
|
s = Le.merge(s, l, n);
|
|
5116
5134
|
}
|
|
5117
5135
|
return n.allowSparse === !0 ? s : Le.compact(s);
|
|
5118
|
-
},
|
|
5119
|
-
formats:
|
|
5120
|
-
parse:
|
|
5121
|
-
stringify:
|
|
5122
|
-
},
|
|
5136
|
+
}, Vc = Fc, Wc = Dc, zc = vn, ct = {
|
|
5137
|
+
formats: zc,
|
|
5138
|
+
parse: Wc,
|
|
5139
|
+
stringify: Vc
|
|
5140
|
+
}, Jc = Cs;
|
|
5123
5141
|
function oe() {
|
|
5124
5142
|
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;
|
|
5125
5143
|
}
|
|
5126
|
-
var
|
|
5144
|
+
var Gc = /^([a-z0-9.+-]+:)/i, Kc = /:[0-9]*$/, Qc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Yc = [
|
|
5127
5145
|
"<",
|
|
5128
5146
|
">",
|
|
5129
5147
|
'"',
|
|
@@ -5133,14 +5151,14 @@ var Jc = /^([a-z0-9.+-]+:)/i, Gc = /:[0-9]*$/, Kc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5133
5151
|
`
|
|
5134
5152
|
`,
|
|
5135
5153
|
" "
|
|
5136
|
-
],
|
|
5154
|
+
], Xc = [
|
|
5137
5155
|
"{",
|
|
5138
5156
|
"}",
|
|
5139
5157
|
"|",
|
|
5140
5158
|
"\\",
|
|
5141
5159
|
"^",
|
|
5142
5160
|
"`"
|
|
5143
|
-
].concat(
|
|
5161
|
+
].concat(Yc), Gt = ["'"].concat(Xc), sr = [
|
|
5144
5162
|
"%",
|
|
5145
5163
|
"/",
|
|
5146
5164
|
"?",
|
|
@@ -5150,7 +5168,7 @@ var Jc = /^([a-z0-9.+-]+:)/i, Gc = /:[0-9]*$/, Kc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5150
5168
|
"/",
|
|
5151
5169
|
"?",
|
|
5152
5170
|
"#"
|
|
5153
|
-
],
|
|
5171
|
+
], Zc = 255, cr = /^[+a-z0-9A-Z_-]{0,63}$/, eu = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, tu = {
|
|
5154
5172
|
javascript: !0,
|
|
5155
5173
|
"javascript:": !0
|
|
5156
5174
|
}, Kt = {
|
|
@@ -5181,11 +5199,11 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5181
5199
|
o[0] = o[0].replace(r, "/"), e = o.join(s);
|
|
5182
5200
|
var i = e;
|
|
5183
5201
|
if (i = i.trim(), !n && e.split("#").length === 1) {
|
|
5184
|
-
var l =
|
|
5202
|
+
var l = Qc.exec(i);
|
|
5185
5203
|
if (l)
|
|
5186
5204
|
return this.path = i, this.href = i, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Qt.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
|
|
5187
5205
|
}
|
|
5188
|
-
var c =
|
|
5206
|
+
var c = Gc.exec(i);
|
|
5189
5207
|
if (c) {
|
|
5190
5208
|
c = c[0];
|
|
5191
5209
|
var u = c.toLowerCase();
|
|
@@ -5215,17 +5233,17 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5215
5233
|
for (var S = "", k = 0, C = w.length; k < C; k++)
|
|
5216
5234
|
w.charCodeAt(k) > 127 ? S += "x" : S += w[k];
|
|
5217
5235
|
if (!S.match(cr)) {
|
|
5218
|
-
var P = g.slice(0, m), R = g.slice(m + 1), q = w.match(
|
|
5236
|
+
var P = g.slice(0, m), R = g.slice(m + 1), q = w.match(eu);
|
|
5219
5237
|
q && (P.push(q[1]), R.unshift(q[2])), R.length && (i = "/" + R.join(".") + i), this.hostname = P.join(".");
|
|
5220
5238
|
break;
|
|
5221
5239
|
}
|
|
5222
5240
|
}
|
|
5223
5241
|
}
|
|
5224
|
-
this.hostname.length >
|
|
5242
|
+
this.hostname.length > Zc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = Jc.toASCII(this.hostname));
|
|
5225
5243
|
var G = this.port ? ":" + this.port : "", K = this.hostname || "";
|
|
5226
5244
|
this.host = K + G, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), i[0] !== "/" && (i = "/" + i));
|
|
5227
5245
|
}
|
|
5228
|
-
if (!
|
|
5246
|
+
if (!tu[u])
|
|
5229
5247
|
for (var m = 0, x = Gt.length; m < x; m++) {
|
|
5230
5248
|
var I = Gt[m];
|
|
5231
5249
|
if (i.indexOf(I) !== -1) {
|
|
@@ -5242,7 +5260,7 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5242
5260
|
}
|
|
5243
5261
|
return this.href = this.format(), this;
|
|
5244
5262
|
};
|
|
5245
|
-
function
|
|
5263
|
+
function nu(e) {
|
|
5246
5264
|
return typeof e == "string" && (e = bn(e)), e instanceof oe ? e.format() : oe.prototype.format.call(e);
|
|
5247
5265
|
}
|
|
5248
5266
|
oe.prototype.format = function() {
|
|
@@ -5329,15 +5347,15 @@ oe.prototype.resolveObject = function(e) {
|
|
|
5329
5347
|
return v = v || n.host && g.length, v && !q && g.unshift(""), g.length > 0 ? n.pathname = g.join("/") : (n.pathname = null, n.path = null), (n.pathname !== null || n.search !== null) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.auth = e.auth || n.auth, n.slashes = n.slashes || e.slashes, n.href = n.format(), n;
|
|
5330
5348
|
};
|
|
5331
5349
|
oe.prototype.parseHost = function() {
|
|
5332
|
-
var e = this.host, t =
|
|
5350
|
+
var e = this.host, t = Kc.exec(e);
|
|
5333
5351
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
5334
5352
|
};
|
|
5335
|
-
var
|
|
5353
|
+
var ru = bn, ur = nu, au = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), ou = class {
|
|
5336
5354
|
constructor(e, t = {}) {
|
|
5337
5355
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
5338
5356
|
harIsAlreadyEncoded: !1,
|
|
5339
5357
|
...t
|
|
5340
|
-
}, this.requests = [],
|
|
5358
|
+
}, this.requests = [], au(e) ? this.entries = e.log.entries : this.entries = [
|
|
5341
5359
|
{
|
|
5342
5360
|
request: e
|
|
5343
5361
|
}
|
|
@@ -5427,7 +5445,7 @@ var nu = bn, ur = tu, ru = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5427
5445
|
const s = {
|
|
5428
5446
|
...n.allHeaders,
|
|
5429
5447
|
...n.headersObj
|
|
5430
|
-
}, o =
|
|
5448
|
+
}, o = ru(n.url, !0, !0);
|
|
5431
5449
|
n.queryObj = {
|
|
5432
5450
|
...n.queryObj,
|
|
5433
5451
|
...o.query
|
|
@@ -5462,21 +5480,21 @@ var nu = bn, ur = tu, ru = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5462
5480
|
}
|
|
5463
5481
|
convert(e, t, n) {
|
|
5464
5482
|
this.initCalled || this.init(), !n && t && (n = t);
|
|
5465
|
-
const a =
|
|
5483
|
+
const a = Os[e];
|
|
5466
5484
|
if (!a)
|
|
5467
5485
|
return !1;
|
|
5468
5486
|
const { convert: s } = a.clientsById[t || a.info.default];
|
|
5469
5487
|
return this.requests.map((r) => s(r, n));
|
|
5470
5488
|
}
|
|
5471
5489
|
};
|
|
5472
|
-
const
|
|
5490
|
+
const Ta = uo(
|
|
5473
5491
|
void 0
|
|
5474
|
-
),
|
|
5475
|
-
const e =
|
|
5492
|
+
), qu = Ta.Provider, iu = () => {
|
|
5493
|
+
const e = fo(Ta);
|
|
5476
5494
|
if (!e)
|
|
5477
5495
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
5478
5496
|
return e.config;
|
|
5479
|
-
},
|
|
5497
|
+
}, su = ({
|
|
5480
5498
|
server: e,
|
|
5481
5499
|
operation: t
|
|
5482
5500
|
}) => {
|
|
@@ -5493,7 +5511,7 @@ const Oa = fo(
|
|
|
5493
5511
|
isRequired: l.required ?? !1
|
|
5494
5512
|
})), s = (i = t.parameters) == null ? void 0 : i.filter((l) => l.in === "path").map((l) => ({ name: l.name }));
|
|
5495
5513
|
return /* @__PURE__ */ f.jsx(
|
|
5496
|
-
|
|
5514
|
+
ra,
|
|
5497
5515
|
{
|
|
5498
5516
|
server: e,
|
|
5499
5517
|
method: t.method,
|
|
@@ -5527,7 +5545,7 @@ const Oa = fo(
|
|
|
5527
5545
|
className: A("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", t),
|
|
5528
5546
|
children: e
|
|
5529
5547
|
}
|
|
5530
|
-
),
|
|
5548
|
+
), Oa = ({ children: e, className: t }) => /* @__PURE__ */ f.jsx(
|
|
5531
5549
|
"div",
|
|
5532
5550
|
{
|
|
5533
5551
|
className: A(
|
|
@@ -5536,8 +5554,8 @@ const Oa = fo(
|
|
|
5536
5554
|
),
|
|
5537
5555
|
children: e
|
|
5538
5556
|
}
|
|
5539
|
-
),
|
|
5540
|
-
function
|
|
5557
|
+
), lu = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Ge = (e, t) => e.example !== void 0 ? e.example : e.default !== void 0 ? e.default : e.examples && lu(e.examples) ? Object.values(e.examples)[0] : cu(e);
|
|
5558
|
+
function cu(e, t) {
|
|
5541
5559
|
const n = Object.entries(e.properties ?? {}).concat(
|
|
5542
5560
|
Object.entries(e.additionalProperties ?? {})
|
|
5543
5561
|
);
|
|
@@ -5552,7 +5570,7 @@ function lu(e, t) {
|
|
|
5552
5570
|
return a !== void 0 ? [a] : [];
|
|
5553
5571
|
}
|
|
5554
5572
|
}
|
|
5555
|
-
const
|
|
5573
|
+
const uu = ({ content: e }) => {
|
|
5556
5574
|
var t;
|
|
5557
5575
|
return e.length ? /* @__PURE__ */ f.jsx(f.Fragment, { children: /* @__PURE__ */ f.jsxs(xn, { children: [
|
|
5558
5576
|
/* @__PURE__ */ f.jsx(kn, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ f.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
@@ -5571,14 +5589,14 @@ const cu = ({ content: e }) => {
|
|
|
5571
5589
|
}
|
|
5572
5590
|
) })
|
|
5573
5591
|
] }) }) : null;
|
|
5574
|
-
},
|
|
5592
|
+
}, du = ({
|
|
5575
5593
|
responses: e,
|
|
5576
5594
|
selectedResponse: t,
|
|
5577
5595
|
onSelectResponse: n
|
|
5578
5596
|
}) => {
|
|
5579
5597
|
var a;
|
|
5580
5598
|
return /* @__PURE__ */ f.jsx(xn, { children: /* @__PURE__ */ f.jsxs(
|
|
5581
|
-
|
|
5599
|
+
ta,
|
|
5582
5600
|
{
|
|
5583
5601
|
defaultValue: (a = e[0]) == null ? void 0 : a.statusCode,
|
|
5584
5602
|
value: t,
|
|
@@ -5613,13 +5631,13 @@ const cu = ({ content: e }) => {
|
|
|
5613
5631
|
code: JSON.stringify(Ge(o), null, 2)
|
|
5614
5632
|
}
|
|
5615
5633
|
) : /* @__PURE__ */ f.jsx("span", { className: "text-muted-foreground font-mono italic text-xs", children: "Empty Response" }) }),
|
|
5616
|
-
/* @__PURE__ */ f.jsx(
|
|
5634
|
+
/* @__PURE__ */ f.jsx(Oa, { className: "flex justify-end text-xs", children: s.description })
|
|
5617
5635
|
] }, s.statusCode);
|
|
5618
5636
|
})
|
|
5619
5637
|
]
|
|
5620
5638
|
}
|
|
5621
5639
|
) });
|
|
5622
|
-
},
|
|
5640
|
+
}, fu = (e, t) => {
|
|
5623
5641
|
let n;
|
|
5624
5642
|
switch (t) {
|
|
5625
5643
|
case "shell":
|
|
@@ -5660,7 +5678,7 @@ const cu = ({ content: e }) => {
|
|
|
5660
5678
|
break;
|
|
5661
5679
|
}
|
|
5662
5680
|
return n ? n[0] : "";
|
|
5663
|
-
},
|
|
5681
|
+
}, Ca = kr(
|
|
5664
5682
|
/* GraphQL */
|
|
5665
5683
|
`
|
|
5666
5684
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -5669,7 +5687,7 @@ const cu = ({ content: e }) => {
|
|
|
5669
5687
|
}
|
|
5670
5688
|
}
|
|
5671
5689
|
`
|
|
5672
|
-
),
|
|
5690
|
+
), pu = { suspense: !0 }, mu = {
|
|
5673
5691
|
get: pe.green,
|
|
5674
5692
|
post: pe.blue,
|
|
5675
5693
|
put: pe.yellow,
|
|
@@ -5678,17 +5696,17 @@ const cu = ({ content: e }) => {
|
|
|
5678
5696
|
options: pe.indigo,
|
|
5679
5697
|
head: pe.gray,
|
|
5680
5698
|
trace: pe.gray
|
|
5681
|
-
},
|
|
5699
|
+
}, Iu = ({
|
|
5682
5700
|
operation: e,
|
|
5683
5701
|
selectedResponse: t,
|
|
5684
5702
|
onSelectResponse: n
|
|
5685
5703
|
}) => {
|
|
5686
5704
|
var m, h;
|
|
5687
|
-
const a =
|
|
5688
|
-
query:
|
|
5705
|
+
const a = iu(), [s] = Pa({
|
|
5706
|
+
query: Ca,
|
|
5689
5707
|
variables: a,
|
|
5690
|
-
context:
|
|
5691
|
-
}), o =
|
|
5708
|
+
context: pu
|
|
5709
|
+
}), o = mu[e.method.toLocaleLowerCase()] ?? pe.gray, [r, i] = Ja(), [, l] = po(), c = r.get("lang") ?? "shell", u = (m = e.requestBody) == null ? void 0 : m.content, p = e.path.split("/").map((y, v, b) => {
|
|
5692
5710
|
const x = y.startsWith("{") && y.endsWith("}") || y.startsWith(":") ? y.replace(/[:{}]/g, "") : void 0;
|
|
5693
5711
|
return (
|
|
5694
5712
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -5706,9 +5724,9 @@ const cu = ({ content: e }) => {
|
|
|
5706
5724
|
/* @__PURE__ */ f.jsx("wbr", {})
|
|
5707
5725
|
] }, y + v)
|
|
5708
5726
|
);
|
|
5709
|
-
}), d =
|
|
5727
|
+
}), d = mo(() => {
|
|
5710
5728
|
var b;
|
|
5711
|
-
const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? Ge(u[0].schema) : void 0, v = new
|
|
5729
|
+
const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? Ge(u[0].schema) : void 0, v = new ou(
|
|
5712
5730
|
{
|
|
5713
5731
|
method: e.method.toLocaleUpperCase(),
|
|
5714
5732
|
url: e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
@@ -5720,7 +5738,7 @@ const cu = ({ content: e }) => {
|
|
|
5720
5738
|
}
|
|
5721
5739
|
// 👈 never touch this
|
|
5722
5740
|
);
|
|
5723
|
-
return
|
|
5741
|
+
return fu(v, c);
|
|
5724
5742
|
}, [c, e.method, e.path, u]);
|
|
5725
5743
|
return /* @__PURE__ */ f.jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [
|
|
5726
5744
|
/* @__PURE__ */ f.jsxs(xn, { children: [
|
|
@@ -5731,7 +5749,7 @@ const cu = ({ content: e }) => {
|
|
|
5731
5749
|
p
|
|
5732
5750
|
] }),
|
|
5733
5751
|
/* @__PURE__ */ f.jsx(
|
|
5734
|
-
|
|
5752
|
+
su,
|
|
5735
5753
|
{
|
|
5736
5754
|
server: ((h = s.data) == null ? void 0 : h.schema.url) ?? "",
|
|
5737
5755
|
operation: e
|
|
@@ -5747,10 +5765,10 @@ const cu = ({ content: e }) => {
|
|
|
5747
5765
|
code: d
|
|
5748
5766
|
}
|
|
5749
5767
|
) }),
|
|
5750
|
-
/* @__PURE__ */ f.jsxs(
|
|
5768
|
+
/* @__PURE__ */ f.jsxs(Oa, { className: "flex items-center text-xs gap-2 justify-end py-1", children: [
|
|
5751
5769
|
/* @__PURE__ */ f.jsx("span", { children: "Show example in" }),
|
|
5752
5770
|
/* @__PURE__ */ f.jsx(
|
|
5753
|
-
|
|
5771
|
+
na,
|
|
5754
5772
|
{
|
|
5755
5773
|
className: "self-start max-w-[150px]",
|
|
5756
5774
|
value: c,
|
|
@@ -5776,9 +5794,9 @@ const cu = ({ content: e }) => {
|
|
|
5776
5794
|
)
|
|
5777
5795
|
] })
|
|
5778
5796
|
] }),
|
|
5779
|
-
u && /* @__PURE__ */ f.jsx(
|
|
5797
|
+
u && /* @__PURE__ */ f.jsx(uu, { content: u }),
|
|
5780
5798
|
e.responses.length > 0 && /* @__PURE__ */ f.jsx(
|
|
5781
|
-
|
|
5799
|
+
du,
|
|
5782
5800
|
{
|
|
5783
5801
|
selectedResponse: t,
|
|
5784
5802
|
onSelectResponse: n,
|
|
@@ -5786,7 +5804,7 @@ const cu = ({ content: e }) => {
|
|
|
5786
5804
|
}
|
|
5787
5805
|
)
|
|
5788
5806
|
] });
|
|
5789
|
-
},
|
|
5807
|
+
}, hu = kr(`
|
|
5790
5808
|
query GetCategories($input: JSON!, $type: SchemaType!) {
|
|
5791
5809
|
schema(input: $input, type: $type) {
|
|
5792
5810
|
tags {
|
|
@@ -5804,10 +5822,10 @@ const cu = ({ content: e }) => {
|
|
|
5804
5822
|
}
|
|
5805
5823
|
}
|
|
5806
5824
|
}
|
|
5807
|
-
`),
|
|
5808
|
-
const e =
|
|
5825
|
+
`), yu = () => {
|
|
5826
|
+
const e = Ga(), t = e instanceof Error ? /* @__PURE__ */ f.jsx(Qe, { code: e.message }) : "An unknown error occurred";
|
|
5809
5827
|
return /* @__PURE__ */ f.jsx(Oo, { category: "Error", title: "An error occurred", message: t });
|
|
5810
|
-
},
|
|
5828
|
+
}, gu = {
|
|
5811
5829
|
get: "green",
|
|
5812
5830
|
post: "blue",
|
|
5813
5831
|
put: "yellow",
|
|
@@ -5815,11 +5833,11 @@ const cu = ({ content: e }) => {
|
|
|
5815
5833
|
patch: "purple",
|
|
5816
5834
|
options: "gray",
|
|
5817
5835
|
head: "gray"
|
|
5818
|
-
},
|
|
5819
|
-
const t =
|
|
5836
|
+
}, _u = (e) => {
|
|
5837
|
+
const t = eo(e.navigationId ?? "/reference"), n = e.server ? new Ea({
|
|
5820
5838
|
url: e.server,
|
|
5821
|
-
exchanges: [
|
|
5822
|
-
}) :
|
|
5839
|
+
exchanges: [Ra, Aa]
|
|
5840
|
+
}) : Ia({ useMemoryClient: e.inMemory ?? !1 });
|
|
5823
5841
|
return {
|
|
5824
5842
|
getHead: () => {
|
|
5825
5843
|
if (e.type === "url" && !e.skipPreload)
|
|
@@ -5844,8 +5862,8 @@ const cu = ({ content: e }) => {
|
|
|
5844
5862
|
...i
|
|
5845
5863
|
}) => {
|
|
5846
5864
|
var u;
|
|
5847
|
-
const l =
|
|
5848
|
-
queryFn: async () => (await n.query(
|
|
5865
|
+
const l = Wa(), c = qa({
|
|
5866
|
+
queryFn: async () => (await n.query(Ca, {
|
|
5849
5867
|
type: e.type,
|
|
5850
5868
|
input: e.input
|
|
5851
5869
|
})).data,
|
|
@@ -5864,7 +5882,7 @@ const cu = ({ content: e }) => {
|
|
|
5864
5882
|
]
|
|
5865
5883
|
}
|
|
5866
5884
|
) : /* @__PURE__ */ f.jsx(
|
|
5867
|
-
|
|
5885
|
+
ra,
|
|
5868
5886
|
{
|
|
5869
5887
|
url: r ?? "/",
|
|
5870
5888
|
method: o ?? "get",
|
|
@@ -5872,16 +5890,16 @@ const cu = ({ content: e }) => {
|
|
|
5872
5890
|
...i,
|
|
5873
5891
|
children: /* @__PURE__ */ f.jsxs(qe, { className: "gap-2 items-center", variant: "outline", children: [
|
|
5874
5892
|
"Open in Playground ",
|
|
5875
|
-
/* @__PURE__ */ f.jsx(
|
|
5893
|
+
/* @__PURE__ */ f.jsx(ko, { size: 16 })
|
|
5876
5894
|
] })
|
|
5877
5895
|
}
|
|
5878
5896
|
);
|
|
5879
5897
|
}
|
|
5880
5898
|
}),
|
|
5881
5899
|
getSidebar: async (a) => {
|
|
5882
|
-
if (!
|
|
5900
|
+
if (!bo({ path: t, end: !1 }, a))
|
|
5883
5901
|
return [];
|
|
5884
|
-
const { data: s } = await n.query(
|
|
5902
|
+
const { data: s } = await n.query(hu, {
|
|
5885
5903
|
input: e.input,
|
|
5886
5904
|
type: e.type
|
|
5887
5905
|
});
|
|
@@ -5897,7 +5915,7 @@ const cu = ({ content: e }) => {
|
|
|
5897
5915
|
href: `#${i.slug}`,
|
|
5898
5916
|
badge: {
|
|
5899
5917
|
label: i.method,
|
|
5900
|
-
color:
|
|
5918
|
+
color: gu[i.method.toLowerCase()]
|
|
5901
5919
|
}
|
|
5902
5920
|
}))
|
|
5903
5921
|
}));
|
|
@@ -5910,12 +5928,12 @@ const cu = ({ content: e }) => {
|
|
|
5910
5928
|
getRoutes: () => [
|
|
5911
5929
|
{
|
|
5912
5930
|
async lazy() {
|
|
5913
|
-
const { OpenApiRoute: a } = await import("./Route-
|
|
5931
|
+
const { OpenApiRoute: a } = await import("./Route-C3Jb0axy.js");
|
|
5914
5932
|
return {
|
|
5915
5933
|
element: /* @__PURE__ */ f.jsx(a, { client: n, config: e })
|
|
5916
5934
|
};
|
|
5917
5935
|
},
|
|
5918
|
-
errorElement: /* @__PURE__ */ f.jsx(
|
|
5936
|
+
errorElement: /* @__PURE__ */ f.jsx(yu, {}),
|
|
5919
5937
|
children: [
|
|
5920
5938
|
{
|
|
5921
5939
|
path: t,
|
|
@@ -5923,7 +5941,7 @@ const cu = ({ content: e }) => {
|
|
|
5923
5941
|
{
|
|
5924
5942
|
index: !0,
|
|
5925
5943
|
async lazy() {
|
|
5926
|
-
const { OperationList: a } = await import("./OperationList-
|
|
5944
|
+
const { OperationList: a } = await import("./OperationList-CYyaboNz.js");
|
|
5927
5945
|
return { element: /* @__PURE__ */ f.jsx(a, {}) };
|
|
5928
5946
|
}
|
|
5929
5947
|
}
|
|
@@ -5937,8 +5955,8 @@ const cu = ({ content: e }) => {
|
|
|
5937
5955
|
export {
|
|
5938
5956
|
un as C,
|
|
5939
5957
|
Oo as E,
|
|
5940
|
-
|
|
5941
|
-
|
|
5958
|
+
qu as O,
|
|
5959
|
+
Iu as S,
|
|
5942
5960
|
Nn as T,
|
|
5943
5961
|
rn as a,
|
|
5944
5962
|
Wo as b,
|
|
@@ -5947,8 +5965,8 @@ export {
|
|
|
5947
5965
|
_t as e,
|
|
5948
5966
|
Ce as f,
|
|
5949
5967
|
Pe as g,
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5968
|
+
kr as h,
|
|
5969
|
+
_u as o,
|
|
5970
|
+
iu as u
|
|
5953
5971
|
};
|
|
5954
|
-
//# sourceMappingURL=index-
|
|
5972
|
+
//# sourceMappingURL=index-B1he6g8N.js.map
|