vue3-sphinx-xml 0.6.0 → 0.6.2
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/Admonition-CMl3cvE2.mjs +35 -0
- package/dist/Admonition-CMl3cvE2.mjs.map +1 -0
- package/dist/BlockQuote-BKx_62o5.mjs +31 -0
- package/dist/BlockQuote-BKx_62o5.mjs.map +1 -0
- package/dist/CaptionNumber-nNxMeKHq.mjs +35 -0
- package/dist/CaptionNumber-nNxMeKHq.mjs.map +1 -0
- package/dist/ColumnGroup-2vQ_pHZh.mjs +30 -0
- package/dist/ColumnGroup-2vQ_pHZh.mjs.map +1 -0
- package/dist/Comment-Ddfhp8tE.mjs +27 -0
- package/dist/Comment-Ddfhp8tE.mjs.map +1 -0
- package/dist/Compound-CkQCXGEt.mjs +31 -0
- package/dist/Compound-CkQCXGEt.mjs.map +1 -0
- package/dist/Container-atFAqvD8.mjs +47 -0
- package/dist/Container-atFAqvD8.mjs.map +1 -0
- package/dist/DirectElementMap-e91U7c-P.mjs +24 -0
- package/dist/DirectElementMap-e91U7c-P.mjs.map +1 -0
- package/dist/Document-D1U8scRh.mjs +33 -0
- package/dist/Document-D1U8scRh.mjs.map +1 -0
- package/dist/DownloadReference-C74uZBZQ.mjs +38 -0
- package/dist/DownloadReference-C74uZBZQ.mjs.map +1 -0
- package/dist/Figure-Ue2uoU0l.mjs +36 -0
- package/dist/Figure-Ue2uoU0l.mjs.map +1 -0
- package/dist/FigureCaption-BVSbJhF7.mjs +39 -0
- package/dist/FigureCaption-BVSbJhF7.mjs.map +1 -0
- package/dist/Footnote-wv5ClOwM.mjs +32 -0
- package/dist/Footnote-wv5ClOwM.mjs.map +1 -0
- package/dist/FootnoteReference-mnfh7KUg.mjs +39 -0
- package/dist/FootnoteReference-mnfh7KUg.mjs.map +1 -0
- package/dist/Image-BydrCE0c.mjs +33 -0
- package/dist/Image-BydrCE0c.mjs.map +1 -0
- package/dist/Legend-B9ZFxCXI.mjs +32 -0
- package/dist/Legend-B9ZFxCXI.mjs.map +1 -0
- package/dist/LineBlock-Bhl4CyLL.mjs +32 -0
- package/dist/LineBlock-Bhl4CyLL.mjs.map +1 -0
- package/dist/LineSingle-BL_nqRem.mjs +33 -0
- package/dist/LineSingle-BL_nqRem.mjs.map +1 -0
- package/dist/Literal-Di_CHJ29.mjs +35 -0
- package/dist/Literal-Di_CHJ29.mjs.map +1 -0
- package/dist/LiteralBlock-Bdicro3D.mjs +28 -0
- package/dist/LiteralBlock-Bdicro3D.mjs.map +1 -0
- package/dist/Math-B4qW3-mK.mjs +23 -0
- package/dist/Math-B4qW3-mK.mjs.map +1 -0
- package/dist/MathBlock-Bio5KFuK.mjs +46 -0
- package/dist/MathBlock-Bio5KFuK.mjs.map +1 -0
- package/dist/Note-BOdO-lVA.mjs +32 -0
- package/dist/Note-BOdO-lVA.mjs.map +1 -0
- package/dist/NumberReference-DbTzyFe1.mjs +47 -0
- package/dist/NumberReference-DbTzyFe1.mjs.map +1 -0
- package/dist/Problematic-BFPD4WML.mjs +31 -0
- package/dist/Problematic-BFPD4WML.mjs.map +1 -0
- package/dist/Raw-XpSGAGRS.mjs +11 -0
- package/dist/Raw-XpSGAGRS.mjs.map +1 -0
- package/dist/Reference-D8OfH1nX.mjs +51 -0
- package/dist/Reference-D8OfH1nX.mjs.map +1 -0
- package/dist/Section-dwBTFhT5.mjs +35 -0
- package/dist/Section-dwBTFhT5.mjs.map +1 -0
- package/dist/Skip-B3vfiW0s.mjs +18 -0
- package/dist/Skip-B3vfiW0s.mjs.map +1 -0
- package/dist/StandardElement-B3pz75MC.mjs +56 -0
- package/dist/StandardElement-B3pz75MC.mjs.map +1 -0
- package/dist/Text-h1FT9xAk.mjs +23 -0
- package/dist/Text-h1FT9xAk.mjs.map +1 -0
- package/dist/Title-DuLS-7An.mjs +43 -0
- package/dist/Title-DuLS-7An.mjs.map +1 -0
- package/dist/TodoNode-BD7LH2n4.mjs +36 -0
- package/dist/TodoNode-BD7LH2n4.mjs.map +1 -0
- package/dist/Topic-Bpn12S2P.mjs +35 -0
- package/dist/Topic-Bpn12S2P.mjs.map +1 -0
- package/dist/Transition-B03RGr-W.mjs +12 -0
- package/dist/Transition-B03RGr-W.mjs.map +1 -0
- package/dist/Warning-yrqj66sd.mjs +38 -0
- package/dist/Warning-yrqj66sd.mjs.map +1 -0
- package/dist/basereference-qnWrRZL-.mjs +31 -0
- package/dist/basereference-qnWrRZL-.mjs.map +1 -0
- package/dist/computed-CtquEsn0.mjs +237 -0
- package/dist/computed-CtquEsn0.mjs.map +1 -0
- package/dist/methods-D1vA1pFT.mjs +77 -0
- package/dist/methods-D1vA1pFT.mjs.map +1 -0
- package/dist/sphinx-BkN2WZRJ.mjs +1851 -0
- package/dist/sphinx-BkN2WZRJ.mjs.map +1 -0
- package/dist/utilities-RjHWUaCa.mjs +18 -0
- package/dist/utilities-RjHWUaCa.mjs.map +1 -0
- package/dist/vue3-sphinx-xml.css +2 -1
- package/dist/vue3-sphinx-xml.js +10 -7
- package/dist/vue3-sphinx-xml.js.map +1 -1
- package/dist/vue3-sphinx-xml.mjs +130 -8
- package/dist/vue3-sphinx-xml.mjs.map +1 -1
- package/package.json +11 -11
- package/dist/Admonition-gd-uJLmV.mjs +0 -36
- package/dist/Admonition-gd-uJLmV.mjs.map +0 -1
- package/dist/BlockQuote-Cx9XdFGZ.mjs +0 -34
- package/dist/BlockQuote-Cx9XdFGZ.mjs.map +0 -1
- package/dist/CaptionNumber-B3c0JP0T.mjs +0 -36
- package/dist/CaptionNumber-B3c0JP0T.mjs.map +0 -1
- package/dist/ColumnGroup-DYs1xB1a.mjs +0 -37
- package/dist/ColumnGroup-DYs1xB1a.mjs.map +0 -1
- package/dist/Comment-DpyTzHo4.mjs +0 -31
- package/dist/Comment-DpyTzHo4.mjs.map +0 -1
- package/dist/Compound-ByH1w0P6.mjs +0 -30
- package/dist/Compound-ByH1w0P6.mjs.map +0 -1
- package/dist/Container-CmVmxWIt.mjs +0 -50
- package/dist/Container-CmVmxWIt.mjs.map +0 -1
- package/dist/DirectElementMap-B-wTPjj0.mjs +0 -21
- package/dist/DirectElementMap-B-wTPjj0.mjs.map +0 -1
- package/dist/Document-PZAyvjWh.mjs +0 -230
- package/dist/Document-PZAyvjWh.mjs.map +0 -1
- package/dist/DownloadReference-CtG3pZe0.mjs +0 -36
- package/dist/DownloadReference-CtG3pZe0.mjs.map +0 -1
- package/dist/Figure-BV3wzLZX.mjs +0 -38
- package/dist/Figure-BV3wzLZX.mjs.map +0 -1
- package/dist/FigureCaption-DPm7W0CJ.mjs +0 -41
- package/dist/FigureCaption-DPm7W0CJ.mjs.map +0 -1
- package/dist/Footnote-DAEfbxUi.mjs +0 -33
- package/dist/Footnote-DAEfbxUi.mjs.map +0 -1
- package/dist/FootnoteReference-Bi6FG4qF.mjs +0 -39
- package/dist/FootnoteReference-Bi6FG4qF.mjs.map +0 -1
- package/dist/Image-UjDGAe4v.mjs +0 -37
- package/dist/Image-UjDGAe4v.mjs.map +0 -1
- package/dist/Legend-BL0KvT6x.mjs +0 -35
- package/dist/Legend-BL0KvT6x.mjs.map +0 -1
- package/dist/LineBlock-yNMN4PnM.mjs +0 -33
- package/dist/LineBlock-yNMN4PnM.mjs.map +0 -1
- package/dist/LineSingle-D8mP9JxV.mjs +0 -34
- package/dist/LineSingle-D8mP9JxV.mjs.map +0 -1
- package/dist/Literal-B3RMToDf.mjs +0 -42
- package/dist/Literal-B3RMToDf.mjs.map +0 -1
- package/dist/LiteralBlock-DSNLfJRQ.mjs +0 -37
- package/dist/LiteralBlock-DSNLfJRQ.mjs.map +0 -1
- package/dist/Math-Cq4PVbWU.mjs +0 -28
- package/dist/Math-Cq4PVbWU.mjs.map +0 -1
- package/dist/MathBlock-BQlgpnCi.mjs +0 -59
- package/dist/MathBlock-BQlgpnCi.mjs.map +0 -1
- package/dist/Note-DTXT2vL1.mjs +0 -34
- package/dist/Note-DTXT2vL1.mjs.map +0 -1
- package/dist/NumberReference-eWL-p05o.mjs +0 -48
- package/dist/NumberReference-eWL-p05o.mjs.map +0 -1
- package/dist/Problematic-DdYGUPom.mjs +0 -36
- package/dist/Problematic-DdYGUPom.mjs.map +0 -1
- package/dist/Raw-DuZmU9hd.mjs +0 -10
- package/dist/Raw-DuZmU9hd.mjs.map +0 -1
- package/dist/Reference-NuJMaVmj.mjs +0 -53
- package/dist/Reference-NuJMaVmj.mjs.map +0 -1
- package/dist/Section-CsKQgVcF.mjs +0 -37
- package/dist/Section-CsKQgVcF.mjs.map +0 -1
- package/dist/Skip-CRGkjuMM.mjs +0 -19
- package/dist/Skip-CRGkjuMM.mjs.map +0 -1
- package/dist/StandardElement-Cf1EpLze.mjs +0 -57
- package/dist/StandardElement-Cf1EpLze.mjs.map +0 -1
- package/dist/Text-CT8nEMkp.mjs +0 -24
- package/dist/Text-CT8nEMkp.mjs.map +0 -1
- package/dist/Title-DoIeD6eK.mjs +0 -44
- package/dist/Title-DoIeD6eK.mjs.map +0 -1
- package/dist/TodoNode-C6L-iGX4.mjs +0 -38
- package/dist/TodoNode-C6L-iGX4.mjs.map +0 -1
- package/dist/Topic-BrgzQGpm.mjs +0 -36
- package/dist/Topic-BrgzQGpm.mjs.map +0 -1
- package/dist/Transition-CWMp4Zlv.mjs +0 -15
- package/dist/Transition-CWMp4Zlv.mjs.map +0 -1
- package/dist/Warning-dcxt8LRd.mjs +0 -42
- package/dist/Warning-dcxt8LRd.mjs.map +0 -1
- package/dist/basereference-7wajqzV8.mjs +0 -42
- package/dist/basereference-7wajqzV8.mjs.map +0 -1
- package/dist/entry-CNV5B73A.mjs +0 -1990
- package/dist/entry-CNV5B73A.mjs.map +0 -1
- package/dist/methods-ClbyDlbW.mjs +0 -69
- package/dist/methods-ClbyDlbW.mjs.map +0 -1
package/dist/entry-CNV5B73A.mjs
DELETED
|
@@ -1,1990 +0,0 @@
|
|
|
1
|
-
import { defineStore as gt, createPinia as yt } from "pinia";
|
|
2
|
-
import wt from "vue3-katex";
|
|
3
|
-
import "katex/dist/katex.min.css";
|
|
4
|
-
import { installVue3Highlightjs as bt } from "@hsorby/vue3-highlightjs";
|
|
5
|
-
import { defineAsyncComponent as Rt, toRefs as Et, ref as pe, watch as St, createBlock as Ot, openBlock as Tt, unref as he } from "vue";
|
|
6
|
-
import { useRouter as At, useRoute as xt } from "vue-router";
|
|
7
|
-
function Je(e, t) {
|
|
8
|
-
return function() {
|
|
9
|
-
return e.apply(t, arguments);
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const { toString: Ut } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ie, toStringTag: Ve } = Symbol, ae = /* @__PURE__ */ ((e) => (t) => {
|
|
13
|
-
const n = Ut.call(t);
|
|
14
|
-
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
15
|
-
})(/* @__PURE__ */ Object.create(null)), _ = (e) => (e = e.toLowerCase(), (t) => ae(t) === e), ce = (e) => (t) => typeof t === e, { isArray: V } = Array, J = ce("undefined");
|
|
16
|
-
function G(e) {
|
|
17
|
-
return e !== null && !J(e) && e.constructor !== null && !J(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
18
|
-
}
|
|
19
|
-
const We = _("ArrayBuffer");
|
|
20
|
-
function Pt(e) {
|
|
21
|
-
let t;
|
|
22
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && We(e.buffer), t;
|
|
23
|
-
}
|
|
24
|
-
const Lt = ce("string"), P = ce("function"), Ke = ce("number"), Q = (e) => e !== null && typeof e == "object", Ct = (e) => e === !0 || e === !1, ne = (e) => {
|
|
25
|
-
if (ae(e) !== "object")
|
|
26
|
-
return !1;
|
|
27
|
-
const t = Oe(e);
|
|
28
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ve in e) && !(ie in e);
|
|
29
|
-
}, Nt = (e) => {
|
|
30
|
-
if (!Q(e) || G(e))
|
|
31
|
-
return !1;
|
|
32
|
-
try {
|
|
33
|
-
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
34
|
-
} catch {
|
|
35
|
-
return !1;
|
|
36
|
-
}
|
|
37
|
-
}, _t = _("Date"), Ft = _("File"), Bt = _("Blob"), Dt = _("FileList"), kt = (e) => Q(e) && P(e.pipe), jt = (e) => {
|
|
38
|
-
let t;
|
|
39
|
-
return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = ae(e)) === "formdata" || // detect form-data instance
|
|
40
|
-
t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
|
|
41
|
-
}, It = _("URLSearchParams"), [Mt, qt, vt, Ht] = ["ReadableStream", "Request", "Response", "Headers"].map(_), $t = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
42
|
-
function Z(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
43
|
-
if (e === null || typeof e > "u")
|
|
44
|
-
return;
|
|
45
|
-
let r, s;
|
|
46
|
-
if (typeof e != "object" && (e = [e]), V(e))
|
|
47
|
-
for (r = 0, s = e.length; r < s; r++)
|
|
48
|
-
t.call(null, e[r], r, e);
|
|
49
|
-
else {
|
|
50
|
-
if (G(e))
|
|
51
|
-
return;
|
|
52
|
-
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
53
|
-
let c;
|
|
54
|
-
for (r = 0; r < o; r++)
|
|
55
|
-
c = i[r], t.call(null, e[c], c, e);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function Xe(e, t) {
|
|
59
|
-
if (G(e))
|
|
60
|
-
return null;
|
|
61
|
-
t = t.toLowerCase();
|
|
62
|
-
const n = Object.keys(e);
|
|
63
|
-
let r = n.length, s;
|
|
64
|
-
for (; r-- > 0; )
|
|
65
|
-
if (s = n[r], t === s.toLowerCase())
|
|
66
|
-
return s;
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
const v = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ge = (e) => !J(e) && e !== v;
|
|
70
|
-
function we() {
|
|
71
|
-
const { caseless: e, skipUndefined: t } = Ge(this) && this || {}, n = {}, r = (s, i) => {
|
|
72
|
-
const o = e && Xe(n, i) || i;
|
|
73
|
-
ne(n[o]) && ne(s) ? n[o] = we(n[o], s) : ne(s) ? n[o] = we({}, s) : V(s) ? n[o] = s.slice() : (!t || !J(s)) && (n[o] = s);
|
|
74
|
-
};
|
|
75
|
-
for (let s = 0, i = arguments.length; s < i; s++)
|
|
76
|
-
arguments[s] && Z(arguments[s], r);
|
|
77
|
-
return n;
|
|
78
|
-
}
|
|
79
|
-
const zt = (e, t, n, { allOwnKeys: r } = {}) => (Z(t, (s, i) => {
|
|
80
|
-
n && P(s) ? e[i] = Je(s, n) : e[i] = s;
|
|
81
|
-
}, { allOwnKeys: r }), e), Jt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Vt = (e, t, n, r) => {
|
|
82
|
-
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
83
|
-
value: t.prototype
|
|
84
|
-
}), n && Object.assign(e.prototype, n);
|
|
85
|
-
}, Wt = (e, t, n, r) => {
|
|
86
|
-
let s, i, o;
|
|
87
|
-
const c = {};
|
|
88
|
-
if (t = t || {}, e == null) return t;
|
|
89
|
-
do {
|
|
90
|
-
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
91
|
-
o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
|
|
92
|
-
e = n !== !1 && Oe(e);
|
|
93
|
-
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
94
|
-
return t;
|
|
95
|
-
}, Kt = (e, t, n) => {
|
|
96
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
97
|
-
const r = e.indexOf(t, n);
|
|
98
|
-
return r !== -1 && r === n;
|
|
99
|
-
}, Xt = (e) => {
|
|
100
|
-
if (!e) return null;
|
|
101
|
-
if (V(e)) return e;
|
|
102
|
-
let t = e.length;
|
|
103
|
-
if (!Ke(t)) return null;
|
|
104
|
-
const n = new Array(t);
|
|
105
|
-
for (; t-- > 0; )
|
|
106
|
-
n[t] = e[t];
|
|
107
|
-
return n;
|
|
108
|
-
}, Gt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), Qt = (e, t) => {
|
|
109
|
-
const r = (e && e[ie]).call(e);
|
|
110
|
-
let s;
|
|
111
|
-
for (; (s = r.next()) && !s.done; ) {
|
|
112
|
-
const i = s.value;
|
|
113
|
-
t.call(e, i[0], i[1]);
|
|
114
|
-
}
|
|
115
|
-
}, Zt = (e, t) => {
|
|
116
|
-
let n;
|
|
117
|
-
const r = [];
|
|
118
|
-
for (; (n = e.exec(t)) !== null; )
|
|
119
|
-
r.push(n);
|
|
120
|
-
return r;
|
|
121
|
-
}, Yt = _("HTMLFormElement"), en = (e) => e.toLowerCase().replace(
|
|
122
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
123
|
-
function(n, r, s) {
|
|
124
|
-
return r.toUpperCase() + s;
|
|
125
|
-
}
|
|
126
|
-
), Le = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), tn = _("RegExp"), Qe = (e, t) => {
|
|
127
|
-
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
128
|
-
Z(n, (s, i) => {
|
|
129
|
-
let o;
|
|
130
|
-
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
131
|
-
}), Object.defineProperties(e, r);
|
|
132
|
-
}, nn = (e) => {
|
|
133
|
-
Qe(e, (t, n) => {
|
|
134
|
-
if (P(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
135
|
-
return !1;
|
|
136
|
-
const r = e[n];
|
|
137
|
-
if (P(r)) {
|
|
138
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
139
|
-
t.writable = !1;
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
t.set || (t.set = () => {
|
|
143
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}, rn = (e, t) => {
|
|
148
|
-
const n = {}, r = (s) => {
|
|
149
|
-
s.forEach((i) => {
|
|
150
|
-
n[i] = !0;
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
return V(e) ? r(e) : r(String(e).split(t)), n;
|
|
154
|
-
}, sn = () => {
|
|
155
|
-
}, on = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
156
|
-
function an(e) {
|
|
157
|
-
return !!(e && P(e.append) && e[Ve] === "FormData" && e[ie]);
|
|
158
|
-
}
|
|
159
|
-
const cn = (e) => {
|
|
160
|
-
const t = new Array(10), n = (r, s) => {
|
|
161
|
-
if (Q(r)) {
|
|
162
|
-
if (t.indexOf(r) >= 0)
|
|
163
|
-
return;
|
|
164
|
-
if (G(r))
|
|
165
|
-
return r;
|
|
166
|
-
if (!("toJSON" in r)) {
|
|
167
|
-
t[s] = r;
|
|
168
|
-
const i = V(r) ? [] : {};
|
|
169
|
-
return Z(r, (o, c) => {
|
|
170
|
-
const d = n(o, s + 1);
|
|
171
|
-
!J(d) && (i[c] = d);
|
|
172
|
-
}), t[s] = void 0, i;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
return r;
|
|
176
|
-
};
|
|
177
|
-
return n(e, 0);
|
|
178
|
-
}, ln = _("AsyncFunction"), un = (e) => e && (Q(e) || P(e)) && P(e.then) && P(e.catch), Ze = ((e, t) => e ? setImmediate : t ? ((n, r) => (v.addEventListener("message", ({ source: s, data: i }) => {
|
|
179
|
-
s === v && i === n && r.length && r.shift()();
|
|
180
|
-
}, !1), (s) => {
|
|
181
|
-
r.push(s), v.postMessage(n, "*");
|
|
182
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
183
|
-
typeof setImmediate == "function",
|
|
184
|
-
P(v.postMessage)
|
|
185
|
-
), fn = typeof queueMicrotask < "u" ? queueMicrotask.bind(v) : typeof process < "u" && process.nextTick || Ze, dn = (e) => e != null && P(e[ie]), a = {
|
|
186
|
-
isArray: V,
|
|
187
|
-
isArrayBuffer: We,
|
|
188
|
-
isBuffer: G,
|
|
189
|
-
isFormData: jt,
|
|
190
|
-
isArrayBufferView: Pt,
|
|
191
|
-
isString: Lt,
|
|
192
|
-
isNumber: Ke,
|
|
193
|
-
isBoolean: Ct,
|
|
194
|
-
isObject: Q,
|
|
195
|
-
isPlainObject: ne,
|
|
196
|
-
isEmptyObject: Nt,
|
|
197
|
-
isReadableStream: Mt,
|
|
198
|
-
isRequest: qt,
|
|
199
|
-
isResponse: vt,
|
|
200
|
-
isHeaders: Ht,
|
|
201
|
-
isUndefined: J,
|
|
202
|
-
isDate: _t,
|
|
203
|
-
isFile: Ft,
|
|
204
|
-
isBlob: Bt,
|
|
205
|
-
isRegExp: tn,
|
|
206
|
-
isFunction: P,
|
|
207
|
-
isStream: kt,
|
|
208
|
-
isURLSearchParams: It,
|
|
209
|
-
isTypedArray: Gt,
|
|
210
|
-
isFileList: Dt,
|
|
211
|
-
forEach: Z,
|
|
212
|
-
merge: we,
|
|
213
|
-
extend: zt,
|
|
214
|
-
trim: $t,
|
|
215
|
-
stripBOM: Jt,
|
|
216
|
-
inherits: Vt,
|
|
217
|
-
toFlatObject: Wt,
|
|
218
|
-
kindOf: ae,
|
|
219
|
-
kindOfTest: _,
|
|
220
|
-
endsWith: Kt,
|
|
221
|
-
toArray: Xt,
|
|
222
|
-
forEachEntry: Qt,
|
|
223
|
-
matchAll: Zt,
|
|
224
|
-
isHTMLForm: Yt,
|
|
225
|
-
hasOwnProperty: Le,
|
|
226
|
-
hasOwnProp: Le,
|
|
227
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
228
|
-
reduceDescriptors: Qe,
|
|
229
|
-
freezeMethods: nn,
|
|
230
|
-
toObjectSet: rn,
|
|
231
|
-
toCamelCase: en,
|
|
232
|
-
noop: sn,
|
|
233
|
-
toFiniteNumber: on,
|
|
234
|
-
findKey: Xe,
|
|
235
|
-
global: v,
|
|
236
|
-
isContextDefined: Ge,
|
|
237
|
-
isSpecCompliantForm: an,
|
|
238
|
-
toJSONObject: cn,
|
|
239
|
-
isAsyncFn: ln,
|
|
240
|
-
isThenable: un,
|
|
241
|
-
setImmediate: Ze,
|
|
242
|
-
asap: fn,
|
|
243
|
-
isIterable: dn
|
|
244
|
-
};
|
|
245
|
-
function y(e, t, n, r, s) {
|
|
246
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
247
|
-
}
|
|
248
|
-
a.inherits(y, Error, {
|
|
249
|
-
toJSON: function() {
|
|
250
|
-
return {
|
|
251
|
-
// Standard
|
|
252
|
-
message: this.message,
|
|
253
|
-
name: this.name,
|
|
254
|
-
// Microsoft
|
|
255
|
-
description: this.description,
|
|
256
|
-
number: this.number,
|
|
257
|
-
// Mozilla
|
|
258
|
-
fileName: this.fileName,
|
|
259
|
-
lineNumber: this.lineNumber,
|
|
260
|
-
columnNumber: this.columnNumber,
|
|
261
|
-
stack: this.stack,
|
|
262
|
-
// Axios
|
|
263
|
-
config: a.toJSONObject(this.config),
|
|
264
|
-
code: this.code,
|
|
265
|
-
status: this.status
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
const Ye = y.prototype, et = {};
|
|
270
|
-
[
|
|
271
|
-
"ERR_BAD_OPTION_VALUE",
|
|
272
|
-
"ERR_BAD_OPTION",
|
|
273
|
-
"ECONNABORTED",
|
|
274
|
-
"ETIMEDOUT",
|
|
275
|
-
"ERR_NETWORK",
|
|
276
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
277
|
-
"ERR_DEPRECATED",
|
|
278
|
-
"ERR_BAD_RESPONSE",
|
|
279
|
-
"ERR_BAD_REQUEST",
|
|
280
|
-
"ERR_CANCELED",
|
|
281
|
-
"ERR_NOT_SUPPORT",
|
|
282
|
-
"ERR_INVALID_URL"
|
|
283
|
-
// eslint-disable-next-line func-names
|
|
284
|
-
].forEach((e) => {
|
|
285
|
-
et[e] = { value: e };
|
|
286
|
-
});
|
|
287
|
-
Object.defineProperties(y, et);
|
|
288
|
-
Object.defineProperty(Ye, "isAxiosError", { value: !0 });
|
|
289
|
-
y.from = (e, t, n, r, s, i) => {
|
|
290
|
-
const o = Object.create(Ye);
|
|
291
|
-
a.toFlatObject(e, o, function(l) {
|
|
292
|
-
return l !== Error.prototype;
|
|
293
|
-
}, (u) => u !== "isAxiosError");
|
|
294
|
-
const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
|
|
295
|
-
return y.call(o, c, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
|
|
296
|
-
};
|
|
297
|
-
const pn = null;
|
|
298
|
-
function be(e) {
|
|
299
|
-
return a.isPlainObject(e) || a.isArray(e);
|
|
300
|
-
}
|
|
301
|
-
function tt(e) {
|
|
302
|
-
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
303
|
-
}
|
|
304
|
-
function Ce(e, t, n) {
|
|
305
|
-
return e ? e.concat(t).map(function(s, i) {
|
|
306
|
-
return s = tt(s), !n && i ? "[" + s + "]" : s;
|
|
307
|
-
}).join(n ? "." : "") : t;
|
|
308
|
-
}
|
|
309
|
-
function hn(e) {
|
|
310
|
-
return a.isArray(e) && !e.some(be);
|
|
311
|
-
}
|
|
312
|
-
const mn = a.toFlatObject(a, {}, null, function(t) {
|
|
313
|
-
return /^is[A-Z]/.test(t);
|
|
314
|
-
});
|
|
315
|
-
function le(e, t, n) {
|
|
316
|
-
if (!a.isObject(e))
|
|
317
|
-
throw new TypeError("target must be an object");
|
|
318
|
-
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
319
|
-
metaTokens: !0,
|
|
320
|
-
dots: !1,
|
|
321
|
-
indexes: !1
|
|
322
|
-
}, !1, function(m, p) {
|
|
323
|
-
return !a.isUndefined(p[m]);
|
|
324
|
-
});
|
|
325
|
-
const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
326
|
-
if (!a.isFunction(s))
|
|
327
|
-
throw new TypeError("visitor must be a function");
|
|
328
|
-
function u(f) {
|
|
329
|
-
if (f === null) return "";
|
|
330
|
-
if (a.isDate(f))
|
|
331
|
-
return f.toISOString();
|
|
332
|
-
if (a.isBoolean(f))
|
|
333
|
-
return f.toString();
|
|
334
|
-
if (!d && a.isBlob(f))
|
|
335
|
-
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
336
|
-
return a.isArrayBuffer(f) || a.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
337
|
-
}
|
|
338
|
-
function l(f, m, p) {
|
|
339
|
-
let R = f;
|
|
340
|
-
if (f && !p && typeof f == "object") {
|
|
341
|
-
if (a.endsWith(m, "{}"))
|
|
342
|
-
m = r ? m : m.slice(0, -2), f = JSON.stringify(f);
|
|
343
|
-
else if (a.isArray(f) && hn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (R = a.toArray(f)))
|
|
344
|
-
return m = tt(m), R.forEach(function(g, E) {
|
|
345
|
-
!(a.isUndefined(g) || g === null) && t.append(
|
|
346
|
-
// eslint-disable-next-line no-nested-ternary
|
|
347
|
-
o === !0 ? Ce([m], E, i) : o === null ? m : m + "[]",
|
|
348
|
-
u(g)
|
|
349
|
-
);
|
|
350
|
-
}), !1;
|
|
351
|
-
}
|
|
352
|
-
return be(f) ? !0 : (t.append(Ce(p, m, i), u(f)), !1);
|
|
353
|
-
}
|
|
354
|
-
const h = [], w = Object.assign(mn, {
|
|
355
|
-
defaultVisitor: l,
|
|
356
|
-
convertValue: u,
|
|
357
|
-
isVisitable: be
|
|
358
|
-
});
|
|
359
|
-
function O(f, m) {
|
|
360
|
-
if (!a.isUndefined(f)) {
|
|
361
|
-
if (h.indexOf(f) !== -1)
|
|
362
|
-
throw Error("Circular reference detected in " + m.join("."));
|
|
363
|
-
h.push(f), a.forEach(f, function(R, U) {
|
|
364
|
-
(!(a.isUndefined(R) || R === null) && s.call(
|
|
365
|
-
t,
|
|
366
|
-
R,
|
|
367
|
-
a.isString(U) ? U.trim() : U,
|
|
368
|
-
m,
|
|
369
|
-
w
|
|
370
|
-
)) === !0 && O(R, m ? m.concat(U) : [U]);
|
|
371
|
-
}), h.pop();
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
if (!a.isObject(e))
|
|
375
|
-
throw new TypeError("data must be an object");
|
|
376
|
-
return O(e), t;
|
|
377
|
-
}
|
|
378
|
-
function Ne(e) {
|
|
379
|
-
const t = {
|
|
380
|
-
"!": "%21",
|
|
381
|
-
"'": "%27",
|
|
382
|
-
"(": "%28",
|
|
383
|
-
")": "%29",
|
|
384
|
-
"~": "%7E",
|
|
385
|
-
"%20": "+",
|
|
386
|
-
"%00": "\0"
|
|
387
|
-
};
|
|
388
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
389
|
-
return t[r];
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
function Te(e, t) {
|
|
393
|
-
this._pairs = [], e && le(e, this, t);
|
|
394
|
-
}
|
|
395
|
-
const nt = Te.prototype;
|
|
396
|
-
nt.append = function(t, n) {
|
|
397
|
-
this._pairs.push([t, n]);
|
|
398
|
-
};
|
|
399
|
-
nt.toString = function(t) {
|
|
400
|
-
const n = t ? function(r) {
|
|
401
|
-
return t.call(this, r, Ne);
|
|
402
|
-
} : Ne;
|
|
403
|
-
return this._pairs.map(function(s) {
|
|
404
|
-
return n(s[0]) + "=" + n(s[1]);
|
|
405
|
-
}, "").join("&");
|
|
406
|
-
};
|
|
407
|
-
function gn(e) {
|
|
408
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
409
|
-
}
|
|
410
|
-
function rt(e, t, n) {
|
|
411
|
-
if (!t)
|
|
412
|
-
return e;
|
|
413
|
-
const r = n && n.encode || gn;
|
|
414
|
-
a.isFunction(n) && (n = {
|
|
415
|
-
serialize: n
|
|
416
|
-
});
|
|
417
|
-
const s = n && n.serialize;
|
|
418
|
-
let i;
|
|
419
|
-
if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new Te(t, n).toString(r), i) {
|
|
420
|
-
const o = e.indexOf("#");
|
|
421
|
-
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
422
|
-
}
|
|
423
|
-
return e;
|
|
424
|
-
}
|
|
425
|
-
class _e {
|
|
426
|
-
constructor() {
|
|
427
|
-
this.handlers = [];
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Add a new interceptor to the stack
|
|
431
|
-
*
|
|
432
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
433
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
434
|
-
*
|
|
435
|
-
* @return {Number} An ID used to remove interceptor later
|
|
436
|
-
*/
|
|
437
|
-
use(t, n, r) {
|
|
438
|
-
return this.handlers.push({
|
|
439
|
-
fulfilled: t,
|
|
440
|
-
rejected: n,
|
|
441
|
-
synchronous: r ? r.synchronous : !1,
|
|
442
|
-
runWhen: r ? r.runWhen : null
|
|
443
|
-
}), this.handlers.length - 1;
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* Remove an interceptor from the stack
|
|
447
|
-
*
|
|
448
|
-
* @param {Number} id The ID that was returned by `use`
|
|
449
|
-
*
|
|
450
|
-
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
451
|
-
*/
|
|
452
|
-
eject(t) {
|
|
453
|
-
this.handlers[t] && (this.handlers[t] = null);
|
|
454
|
-
}
|
|
455
|
-
/**
|
|
456
|
-
* Clear all interceptors from the stack
|
|
457
|
-
*
|
|
458
|
-
* @returns {void}
|
|
459
|
-
*/
|
|
460
|
-
clear() {
|
|
461
|
-
this.handlers && (this.handlers = []);
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* Iterate over all the registered interceptors
|
|
465
|
-
*
|
|
466
|
-
* This method is particularly useful for skipping over any
|
|
467
|
-
* interceptors that may have become `null` calling `eject`.
|
|
468
|
-
*
|
|
469
|
-
* @param {Function} fn The function to call for each interceptor
|
|
470
|
-
*
|
|
471
|
-
* @returns {void}
|
|
472
|
-
*/
|
|
473
|
-
forEach(t) {
|
|
474
|
-
a.forEach(this.handlers, function(r) {
|
|
475
|
-
r !== null && t(r);
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
const st = {
|
|
480
|
-
silentJSONParsing: !0,
|
|
481
|
-
forcedJSONParsing: !0,
|
|
482
|
-
clarifyTimeoutError: !1
|
|
483
|
-
}, yn = typeof URLSearchParams < "u" ? URLSearchParams : Te, wn = typeof FormData < "u" ? FormData : null, bn = typeof Blob < "u" ? Blob : null, Rn = {
|
|
484
|
-
isBrowser: !0,
|
|
485
|
-
classes: {
|
|
486
|
-
URLSearchParams: yn,
|
|
487
|
-
FormData: wn,
|
|
488
|
-
Blob: bn
|
|
489
|
-
},
|
|
490
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
491
|
-
}, Ae = typeof window < "u" && typeof document < "u", Re = typeof navigator == "object" && navigator || void 0, En = Ae && (!Re || ["ReactNative", "NativeScript", "NS"].indexOf(Re.product) < 0), Sn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
492
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", On = Ae && window.location.href || "http://localhost", Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
493
|
-
__proto__: null,
|
|
494
|
-
hasBrowserEnv: Ae,
|
|
495
|
-
hasStandardBrowserEnv: En,
|
|
496
|
-
hasStandardBrowserWebWorkerEnv: Sn,
|
|
497
|
-
navigator: Re,
|
|
498
|
-
origin: On
|
|
499
|
-
}, Symbol.toStringTag, { value: "Module" })), x = {
|
|
500
|
-
...Tn,
|
|
501
|
-
...Rn
|
|
502
|
-
};
|
|
503
|
-
function An(e, t) {
|
|
504
|
-
return le(e, new x.classes.URLSearchParams(), {
|
|
505
|
-
visitor: function(n, r, s, i) {
|
|
506
|
-
return x.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
507
|
-
},
|
|
508
|
-
...t
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
function xn(e) {
|
|
512
|
-
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
513
|
-
}
|
|
514
|
-
function Un(e) {
|
|
515
|
-
const t = {}, n = Object.keys(e);
|
|
516
|
-
let r;
|
|
517
|
-
const s = n.length;
|
|
518
|
-
let i;
|
|
519
|
-
for (r = 0; r < s; r++)
|
|
520
|
-
i = n[r], t[i] = e[i];
|
|
521
|
-
return t;
|
|
522
|
-
}
|
|
523
|
-
function ot(e) {
|
|
524
|
-
function t(n, r, s, i) {
|
|
525
|
-
let o = n[i++];
|
|
526
|
-
if (o === "__proto__") return !0;
|
|
527
|
-
const c = Number.isFinite(+o), d = i >= n.length;
|
|
528
|
-
return o = !o && a.isArray(s) ? s.length : o, d ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = Un(s[o])), !c);
|
|
529
|
-
}
|
|
530
|
-
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
531
|
-
const n = {};
|
|
532
|
-
return a.forEachEntry(e, (r, s) => {
|
|
533
|
-
t(xn(r), s, n, 0);
|
|
534
|
-
}), n;
|
|
535
|
-
}
|
|
536
|
-
return null;
|
|
537
|
-
}
|
|
538
|
-
function Pn(e, t, n) {
|
|
539
|
-
if (a.isString(e))
|
|
540
|
-
try {
|
|
541
|
-
return (t || JSON.parse)(e), a.trim(e);
|
|
542
|
-
} catch (r) {
|
|
543
|
-
if (r.name !== "SyntaxError")
|
|
544
|
-
throw r;
|
|
545
|
-
}
|
|
546
|
-
return (n || JSON.stringify)(e);
|
|
547
|
-
}
|
|
548
|
-
const Y = {
|
|
549
|
-
transitional: st,
|
|
550
|
-
adapter: ["xhr", "http", "fetch"],
|
|
551
|
-
transformRequest: [function(t, n) {
|
|
552
|
-
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
|
|
553
|
-
if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
554
|
-
return s ? JSON.stringify(ot(t)) : t;
|
|
555
|
-
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
556
|
-
return t;
|
|
557
|
-
if (a.isArrayBufferView(t))
|
|
558
|
-
return t.buffer;
|
|
559
|
-
if (a.isURLSearchParams(t))
|
|
560
|
-
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
561
|
-
let c;
|
|
562
|
-
if (i) {
|
|
563
|
-
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
564
|
-
return An(t, this.formSerializer).toString();
|
|
565
|
-
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
566
|
-
const d = this.env && this.env.FormData;
|
|
567
|
-
return le(
|
|
568
|
-
c ? { "files[]": t } : t,
|
|
569
|
-
d && new d(),
|
|
570
|
-
this.formSerializer
|
|
571
|
-
);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
return i || s ? (n.setContentType("application/json", !1), Pn(t)) : t;
|
|
575
|
-
}],
|
|
576
|
-
transformResponse: [function(t) {
|
|
577
|
-
const n = this.transitional || Y.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
578
|
-
if (a.isResponse(t) || a.isReadableStream(t))
|
|
579
|
-
return t;
|
|
580
|
-
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
581
|
-
const o = !(n && n.silentJSONParsing) && s;
|
|
582
|
-
try {
|
|
583
|
-
return JSON.parse(t, this.parseReviver);
|
|
584
|
-
} catch (c) {
|
|
585
|
-
if (o)
|
|
586
|
-
throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
return t;
|
|
590
|
-
}],
|
|
591
|
-
/**
|
|
592
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
593
|
-
* timeout is not created.
|
|
594
|
-
*/
|
|
595
|
-
timeout: 0,
|
|
596
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
597
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
598
|
-
maxContentLength: -1,
|
|
599
|
-
maxBodyLength: -1,
|
|
600
|
-
env: {
|
|
601
|
-
FormData: x.classes.FormData,
|
|
602
|
-
Blob: x.classes.Blob
|
|
603
|
-
},
|
|
604
|
-
validateStatus: function(t) {
|
|
605
|
-
return t >= 200 && t < 300;
|
|
606
|
-
},
|
|
607
|
-
headers: {
|
|
608
|
-
common: {
|
|
609
|
-
Accept: "application/json, text/plain, */*",
|
|
610
|
-
"Content-Type": void 0
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
|
-
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
615
|
-
Y.headers[e] = {};
|
|
616
|
-
});
|
|
617
|
-
const Ln = a.toObjectSet([
|
|
618
|
-
"age",
|
|
619
|
-
"authorization",
|
|
620
|
-
"content-length",
|
|
621
|
-
"content-type",
|
|
622
|
-
"etag",
|
|
623
|
-
"expires",
|
|
624
|
-
"from",
|
|
625
|
-
"host",
|
|
626
|
-
"if-modified-since",
|
|
627
|
-
"if-unmodified-since",
|
|
628
|
-
"last-modified",
|
|
629
|
-
"location",
|
|
630
|
-
"max-forwards",
|
|
631
|
-
"proxy-authorization",
|
|
632
|
-
"referer",
|
|
633
|
-
"retry-after",
|
|
634
|
-
"user-agent"
|
|
635
|
-
]), Cn = (e) => {
|
|
636
|
-
const t = {};
|
|
637
|
-
let n, r, s;
|
|
638
|
-
return e && e.split(`
|
|
639
|
-
`).forEach(function(o) {
|
|
640
|
-
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Ln[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
641
|
-
}), t;
|
|
642
|
-
}, Fe = Symbol("internals");
|
|
643
|
-
function X(e) {
|
|
644
|
-
return e && String(e).trim().toLowerCase();
|
|
645
|
-
}
|
|
646
|
-
function re(e) {
|
|
647
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(re) : String(e);
|
|
648
|
-
}
|
|
649
|
-
function Nn(e) {
|
|
650
|
-
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
651
|
-
let r;
|
|
652
|
-
for (; r = n.exec(e); )
|
|
653
|
-
t[r[1]] = r[2];
|
|
654
|
-
return t;
|
|
655
|
-
}
|
|
656
|
-
const _n = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
657
|
-
function me(e, t, n, r, s) {
|
|
658
|
-
if (a.isFunction(r))
|
|
659
|
-
return r.call(this, t, n);
|
|
660
|
-
if (s && (t = n), !!a.isString(t)) {
|
|
661
|
-
if (a.isString(r))
|
|
662
|
-
return t.indexOf(r) !== -1;
|
|
663
|
-
if (a.isRegExp(r))
|
|
664
|
-
return r.test(t);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
function Fn(e) {
|
|
668
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
669
|
-
}
|
|
670
|
-
function Bn(e, t) {
|
|
671
|
-
const n = a.toCamelCase(" " + t);
|
|
672
|
-
["get", "set", "has"].forEach((r) => {
|
|
673
|
-
Object.defineProperty(e, r + n, {
|
|
674
|
-
value: function(s, i, o) {
|
|
675
|
-
return this[r].call(this, t, s, i, o);
|
|
676
|
-
},
|
|
677
|
-
configurable: !0
|
|
678
|
-
});
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
let L = class {
|
|
682
|
-
constructor(t) {
|
|
683
|
-
t && this.set(t);
|
|
684
|
-
}
|
|
685
|
-
set(t, n, r) {
|
|
686
|
-
const s = this;
|
|
687
|
-
function i(c, d, u) {
|
|
688
|
-
const l = X(d);
|
|
689
|
-
if (!l)
|
|
690
|
-
throw new Error("header name must be a non-empty string");
|
|
691
|
-
const h = a.findKey(s, l);
|
|
692
|
-
(!h || s[h] === void 0 || u === !0 || u === void 0 && s[h] !== !1) && (s[h || d] = re(c));
|
|
693
|
-
}
|
|
694
|
-
const o = (c, d) => a.forEach(c, (u, l) => i(u, l, d));
|
|
695
|
-
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
696
|
-
o(t, n);
|
|
697
|
-
else if (a.isString(t) && (t = t.trim()) && !_n(t))
|
|
698
|
-
o(Cn(t), n);
|
|
699
|
-
else if (a.isObject(t) && a.isIterable(t)) {
|
|
700
|
-
let c = {}, d, u;
|
|
701
|
-
for (const l of t) {
|
|
702
|
-
if (!a.isArray(l))
|
|
703
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
704
|
-
c[u = l[0]] = (d = c[u]) ? a.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
|
|
705
|
-
}
|
|
706
|
-
o(c, n);
|
|
707
|
-
} else
|
|
708
|
-
t != null && i(n, t, r);
|
|
709
|
-
return this;
|
|
710
|
-
}
|
|
711
|
-
get(t, n) {
|
|
712
|
-
if (t = X(t), t) {
|
|
713
|
-
const r = a.findKey(this, t);
|
|
714
|
-
if (r) {
|
|
715
|
-
const s = this[r];
|
|
716
|
-
if (!n)
|
|
717
|
-
return s;
|
|
718
|
-
if (n === !0)
|
|
719
|
-
return Nn(s);
|
|
720
|
-
if (a.isFunction(n))
|
|
721
|
-
return n.call(this, s, r);
|
|
722
|
-
if (a.isRegExp(n))
|
|
723
|
-
return n.exec(s);
|
|
724
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
has(t, n) {
|
|
729
|
-
if (t = X(t), t) {
|
|
730
|
-
const r = a.findKey(this, t);
|
|
731
|
-
return !!(r && this[r] !== void 0 && (!n || me(this, this[r], r, n)));
|
|
732
|
-
}
|
|
733
|
-
return !1;
|
|
734
|
-
}
|
|
735
|
-
delete(t, n) {
|
|
736
|
-
const r = this;
|
|
737
|
-
let s = !1;
|
|
738
|
-
function i(o) {
|
|
739
|
-
if (o = X(o), o) {
|
|
740
|
-
const c = a.findKey(r, o);
|
|
741
|
-
c && (!n || me(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
return a.isArray(t) ? t.forEach(i) : i(t), s;
|
|
745
|
-
}
|
|
746
|
-
clear(t) {
|
|
747
|
-
const n = Object.keys(this);
|
|
748
|
-
let r = n.length, s = !1;
|
|
749
|
-
for (; r--; ) {
|
|
750
|
-
const i = n[r];
|
|
751
|
-
(!t || me(this, this[i], i, t, !0)) && (delete this[i], s = !0);
|
|
752
|
-
}
|
|
753
|
-
return s;
|
|
754
|
-
}
|
|
755
|
-
normalize(t) {
|
|
756
|
-
const n = this, r = {};
|
|
757
|
-
return a.forEach(this, (s, i) => {
|
|
758
|
-
const o = a.findKey(r, i);
|
|
759
|
-
if (o) {
|
|
760
|
-
n[o] = re(s), delete n[i];
|
|
761
|
-
return;
|
|
762
|
-
}
|
|
763
|
-
const c = t ? Fn(i) : String(i).trim();
|
|
764
|
-
c !== i && delete n[i], n[c] = re(s), r[c] = !0;
|
|
765
|
-
}), this;
|
|
766
|
-
}
|
|
767
|
-
concat(...t) {
|
|
768
|
-
return this.constructor.concat(this, ...t);
|
|
769
|
-
}
|
|
770
|
-
toJSON(t) {
|
|
771
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
772
|
-
return a.forEach(this, (r, s) => {
|
|
773
|
-
r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
|
|
774
|
-
}), n;
|
|
775
|
-
}
|
|
776
|
-
[Symbol.iterator]() {
|
|
777
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
778
|
-
}
|
|
779
|
-
toString() {
|
|
780
|
-
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
781
|
-
`);
|
|
782
|
-
}
|
|
783
|
-
getSetCookie() {
|
|
784
|
-
return this.get("set-cookie") || [];
|
|
785
|
-
}
|
|
786
|
-
get [Symbol.toStringTag]() {
|
|
787
|
-
return "AxiosHeaders";
|
|
788
|
-
}
|
|
789
|
-
static from(t) {
|
|
790
|
-
return t instanceof this ? t : new this(t);
|
|
791
|
-
}
|
|
792
|
-
static concat(t, ...n) {
|
|
793
|
-
const r = new this(t);
|
|
794
|
-
return n.forEach((s) => r.set(s)), r;
|
|
795
|
-
}
|
|
796
|
-
static accessor(t) {
|
|
797
|
-
const r = (this[Fe] = this[Fe] = {
|
|
798
|
-
accessors: {}
|
|
799
|
-
}).accessors, s = this.prototype;
|
|
800
|
-
function i(o) {
|
|
801
|
-
const c = X(o);
|
|
802
|
-
r[c] || (Bn(s, o), r[c] = !0);
|
|
803
|
-
}
|
|
804
|
-
return a.isArray(t) ? t.forEach(i) : i(t), this;
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
L.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
808
|
-
a.reduceDescriptors(L.prototype, ({ value: e }, t) => {
|
|
809
|
-
let n = t[0].toUpperCase() + t.slice(1);
|
|
810
|
-
return {
|
|
811
|
-
get: () => e,
|
|
812
|
-
set(r) {
|
|
813
|
-
this[n] = r;
|
|
814
|
-
}
|
|
815
|
-
};
|
|
816
|
-
});
|
|
817
|
-
a.freezeMethods(L);
|
|
818
|
-
function ge(e, t) {
|
|
819
|
-
const n = this || Y, r = t || n, s = L.from(r.headers);
|
|
820
|
-
let i = r.data;
|
|
821
|
-
return a.forEach(e, function(c) {
|
|
822
|
-
i = c.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
823
|
-
}), s.normalize(), i;
|
|
824
|
-
}
|
|
825
|
-
function it(e) {
|
|
826
|
-
return !!(e && e.__CANCEL__);
|
|
827
|
-
}
|
|
828
|
-
function W(e, t, n) {
|
|
829
|
-
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
830
|
-
}
|
|
831
|
-
a.inherits(W, y, {
|
|
832
|
-
__CANCEL__: !0
|
|
833
|
-
});
|
|
834
|
-
function at(e, t, n) {
|
|
835
|
-
const r = n.config.validateStatus;
|
|
836
|
-
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
837
|
-
"Request failed with status code " + n.status,
|
|
838
|
-
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
839
|
-
n.config,
|
|
840
|
-
n.request,
|
|
841
|
-
n
|
|
842
|
-
));
|
|
843
|
-
}
|
|
844
|
-
function Dn(e) {
|
|
845
|
-
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
846
|
-
return t && t[1] || "";
|
|
847
|
-
}
|
|
848
|
-
function kn(e, t) {
|
|
849
|
-
e = e || 10;
|
|
850
|
-
const n = new Array(e), r = new Array(e);
|
|
851
|
-
let s = 0, i = 0, o;
|
|
852
|
-
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
853
|
-
const u = Date.now(), l = r[i];
|
|
854
|
-
o || (o = u), n[s] = d, r[s] = u;
|
|
855
|
-
let h = i, w = 0;
|
|
856
|
-
for (; h !== s; )
|
|
857
|
-
w += n[h++], h = h % e;
|
|
858
|
-
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), u - o < t)
|
|
859
|
-
return;
|
|
860
|
-
const O = l && u - l;
|
|
861
|
-
return O ? Math.round(w * 1e3 / O) : void 0;
|
|
862
|
-
};
|
|
863
|
-
}
|
|
864
|
-
function jn(e, t) {
|
|
865
|
-
let n = 0, r = 1e3 / t, s, i;
|
|
866
|
-
const o = (u, l = Date.now()) => {
|
|
867
|
-
n = l, s = null, i && (clearTimeout(i), i = null), e(...u);
|
|
868
|
-
};
|
|
869
|
-
return [(...u) => {
|
|
870
|
-
const l = Date.now(), h = l - n;
|
|
871
|
-
h >= r ? o(u, l) : (s = u, i || (i = setTimeout(() => {
|
|
872
|
-
i = null, o(s);
|
|
873
|
-
}, r - h)));
|
|
874
|
-
}, () => s && o(s)];
|
|
875
|
-
}
|
|
876
|
-
const oe = (e, t, n = 3) => {
|
|
877
|
-
let r = 0;
|
|
878
|
-
const s = kn(50, 250);
|
|
879
|
-
return jn((i) => {
|
|
880
|
-
const o = i.loaded, c = i.lengthComputable ? i.total : void 0, d = o - r, u = s(d), l = o <= c;
|
|
881
|
-
r = o;
|
|
882
|
-
const h = {
|
|
883
|
-
loaded: o,
|
|
884
|
-
total: c,
|
|
885
|
-
progress: c ? o / c : void 0,
|
|
886
|
-
bytes: d,
|
|
887
|
-
rate: u || void 0,
|
|
888
|
-
estimated: u && c && l ? (c - o) / u : void 0,
|
|
889
|
-
event: i,
|
|
890
|
-
lengthComputable: c != null,
|
|
891
|
-
[t ? "download" : "upload"]: !0
|
|
892
|
-
};
|
|
893
|
-
e(h);
|
|
894
|
-
}, n);
|
|
895
|
-
}, Be = (e, t) => {
|
|
896
|
-
const n = e != null;
|
|
897
|
-
return [(r) => t[0]({
|
|
898
|
-
lengthComputable: n,
|
|
899
|
-
total: e,
|
|
900
|
-
loaded: r
|
|
901
|
-
}), t[1]];
|
|
902
|
-
}, De = (e) => (...t) => a.asap(() => e(...t)), In = x.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, x.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
903
|
-
new URL(x.origin),
|
|
904
|
-
x.navigator && /(msie|trident)/i.test(x.navigator.userAgent)
|
|
905
|
-
) : () => !0, Mn = x.hasStandardBrowserEnv ? (
|
|
906
|
-
// Standard browser envs support document.cookie
|
|
907
|
-
{
|
|
908
|
-
write(e, t, n, r, s, i) {
|
|
909
|
-
const o = [e + "=" + encodeURIComponent(t)];
|
|
910
|
-
a.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), a.isString(r) && o.push("path=" + r), a.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
911
|
-
},
|
|
912
|
-
read(e) {
|
|
913
|
-
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
914
|
-
return t ? decodeURIComponent(t[3]) : null;
|
|
915
|
-
},
|
|
916
|
-
remove(e) {
|
|
917
|
-
this.write(e, "", Date.now() - 864e5);
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
) : (
|
|
921
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
922
|
-
{
|
|
923
|
-
write() {
|
|
924
|
-
},
|
|
925
|
-
read() {
|
|
926
|
-
return null;
|
|
927
|
-
},
|
|
928
|
-
remove() {
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
);
|
|
932
|
-
function qn(e) {
|
|
933
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
934
|
-
}
|
|
935
|
-
function vn(e, t) {
|
|
936
|
-
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
937
|
-
}
|
|
938
|
-
function ct(e, t, n) {
|
|
939
|
-
let r = !qn(t);
|
|
940
|
-
return e && (r || n == !1) ? vn(e, t) : t;
|
|
941
|
-
}
|
|
942
|
-
const ke = (e) => e instanceof L ? { ...e } : e;
|
|
943
|
-
function $(e, t) {
|
|
944
|
-
t = t || {};
|
|
945
|
-
const n = {};
|
|
946
|
-
function r(u, l, h, w) {
|
|
947
|
-
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: w }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
948
|
-
}
|
|
949
|
-
function s(u, l, h, w) {
|
|
950
|
-
if (a.isUndefined(l)) {
|
|
951
|
-
if (!a.isUndefined(u))
|
|
952
|
-
return r(void 0, u, h, w);
|
|
953
|
-
} else return r(u, l, h, w);
|
|
954
|
-
}
|
|
955
|
-
function i(u, l) {
|
|
956
|
-
if (!a.isUndefined(l))
|
|
957
|
-
return r(void 0, l);
|
|
958
|
-
}
|
|
959
|
-
function o(u, l) {
|
|
960
|
-
if (a.isUndefined(l)) {
|
|
961
|
-
if (!a.isUndefined(u))
|
|
962
|
-
return r(void 0, u);
|
|
963
|
-
} else return r(void 0, l);
|
|
964
|
-
}
|
|
965
|
-
function c(u, l, h) {
|
|
966
|
-
if (h in t)
|
|
967
|
-
return r(u, l);
|
|
968
|
-
if (h in e)
|
|
969
|
-
return r(void 0, u);
|
|
970
|
-
}
|
|
971
|
-
const d = {
|
|
972
|
-
url: i,
|
|
973
|
-
method: i,
|
|
974
|
-
data: i,
|
|
975
|
-
baseURL: o,
|
|
976
|
-
transformRequest: o,
|
|
977
|
-
transformResponse: o,
|
|
978
|
-
paramsSerializer: o,
|
|
979
|
-
timeout: o,
|
|
980
|
-
timeoutMessage: o,
|
|
981
|
-
withCredentials: o,
|
|
982
|
-
withXSRFToken: o,
|
|
983
|
-
adapter: o,
|
|
984
|
-
responseType: o,
|
|
985
|
-
xsrfCookieName: o,
|
|
986
|
-
xsrfHeaderName: o,
|
|
987
|
-
onUploadProgress: o,
|
|
988
|
-
onDownloadProgress: o,
|
|
989
|
-
decompress: o,
|
|
990
|
-
maxContentLength: o,
|
|
991
|
-
maxBodyLength: o,
|
|
992
|
-
beforeRedirect: o,
|
|
993
|
-
transport: o,
|
|
994
|
-
httpAgent: o,
|
|
995
|
-
httpsAgent: o,
|
|
996
|
-
cancelToken: o,
|
|
997
|
-
socketPath: o,
|
|
998
|
-
responseEncoding: o,
|
|
999
|
-
validateStatus: c,
|
|
1000
|
-
headers: (u, l, h) => s(ke(u), ke(l), h, !0)
|
|
1001
|
-
};
|
|
1002
|
-
return a.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
1003
|
-
const h = d[l] || s, w = h(e[l], t[l], l);
|
|
1004
|
-
a.isUndefined(w) && h !== c || (n[l] = w);
|
|
1005
|
-
}), n;
|
|
1006
|
-
}
|
|
1007
|
-
const lt = (e) => {
|
|
1008
|
-
const t = $({}, e);
|
|
1009
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
|
|
1010
|
-
if (t.headers = o = L.from(o), t.url = rt(ct(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
|
|
1011
|
-
"Authorization",
|
|
1012
|
-
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1013
|
-
), a.isFormData(n)) {
|
|
1014
|
-
if (x.hasStandardBrowserEnv || x.hasStandardBrowserWebWorkerEnv)
|
|
1015
|
-
o.setContentType(void 0);
|
|
1016
|
-
else if (a.isFunction(n.getHeaders)) {
|
|
1017
|
-
const d = n.getHeaders(), u = ["content-type", "content-length"];
|
|
1018
|
-
Object.entries(d).forEach(([l, h]) => {
|
|
1019
|
-
u.includes(l.toLowerCase()) && o.set(l, h);
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
if (x.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && In(t.url))) {
|
|
1024
|
-
const d = s && i && Mn.read(i);
|
|
1025
|
-
d && o.set(s, d);
|
|
1026
|
-
}
|
|
1027
|
-
return t;
|
|
1028
|
-
}, Hn = typeof XMLHttpRequest < "u", $n = Hn && function(e) {
|
|
1029
|
-
return new Promise(function(n, r) {
|
|
1030
|
-
const s = lt(e);
|
|
1031
|
-
let i = s.data;
|
|
1032
|
-
const o = L.from(s.headers).normalize();
|
|
1033
|
-
let { responseType: c, onUploadProgress: d, onDownloadProgress: u } = s, l, h, w, O, f;
|
|
1034
|
-
function m() {
|
|
1035
|
-
O && O(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1036
|
-
}
|
|
1037
|
-
let p = new XMLHttpRequest();
|
|
1038
|
-
p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
|
|
1039
|
-
function R() {
|
|
1040
|
-
if (!p)
|
|
1041
|
-
return;
|
|
1042
|
-
const g = L.from(
|
|
1043
|
-
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
1044
|
-
), b = {
|
|
1045
|
-
data: !c || c === "text" || c === "json" ? p.responseText : p.response,
|
|
1046
|
-
status: p.status,
|
|
1047
|
-
statusText: p.statusText,
|
|
1048
|
-
headers: g,
|
|
1049
|
-
config: e,
|
|
1050
|
-
request: p
|
|
1051
|
-
};
|
|
1052
|
-
at(function(A) {
|
|
1053
|
-
n(A), m();
|
|
1054
|
-
}, function(A) {
|
|
1055
|
-
r(A), m();
|
|
1056
|
-
}, b), p = null;
|
|
1057
|
-
}
|
|
1058
|
-
"onloadend" in p ? p.onloadend = R : p.onreadystatechange = function() {
|
|
1059
|
-
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(R);
|
|
1060
|
-
}, p.onabort = function() {
|
|
1061
|
-
p && (r(new y("Request aborted", y.ECONNABORTED, e, p)), p = null);
|
|
1062
|
-
}, p.onerror = function(E) {
|
|
1063
|
-
const b = E && E.message ? E.message : "Network Error", T = new y(b, y.ERR_NETWORK, e, p);
|
|
1064
|
-
T.event = E || null, r(T), p = null;
|
|
1065
|
-
}, p.ontimeout = function() {
|
|
1066
|
-
let E = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1067
|
-
const b = s.transitional || st;
|
|
1068
|
-
s.timeoutErrorMessage && (E = s.timeoutErrorMessage), r(new y(
|
|
1069
|
-
E,
|
|
1070
|
-
b.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1071
|
-
e,
|
|
1072
|
-
p
|
|
1073
|
-
)), p = null;
|
|
1074
|
-
}, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(E, b) {
|
|
1075
|
-
p.setRequestHeader(b, E);
|
|
1076
|
-
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([w, f] = oe(u, !0), p.addEventListener("progress", w)), d && p.upload && ([h, O] = oe(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", O)), (s.cancelToken || s.signal) && (l = (g) => {
|
|
1077
|
-
p && (r(!g || g.type ? new W(null, e, p) : g), p.abort(), p = null);
|
|
1078
|
-
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1079
|
-
const U = Dn(s.url);
|
|
1080
|
-
if (U && x.protocols.indexOf(U) === -1) {
|
|
1081
|
-
r(new y("Unsupported protocol " + U + ":", y.ERR_BAD_REQUEST, e));
|
|
1082
|
-
return;
|
|
1083
|
-
}
|
|
1084
|
-
p.send(i || null);
|
|
1085
|
-
});
|
|
1086
|
-
}, zn = (e, t) => {
|
|
1087
|
-
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1088
|
-
if (t || n) {
|
|
1089
|
-
let r = new AbortController(), s;
|
|
1090
|
-
const i = function(u) {
|
|
1091
|
-
if (!s) {
|
|
1092
|
-
s = !0, c();
|
|
1093
|
-
const l = u instanceof Error ? u : this.reason;
|
|
1094
|
-
r.abort(l instanceof y ? l : new W(l instanceof Error ? l.message : l));
|
|
1095
|
-
}
|
|
1096
|
-
};
|
|
1097
|
-
let o = t && setTimeout(() => {
|
|
1098
|
-
o = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
|
|
1099
|
-
}, t);
|
|
1100
|
-
const c = () => {
|
|
1101
|
-
e && (o && clearTimeout(o), o = null, e.forEach((u) => {
|
|
1102
|
-
u.unsubscribe ? u.unsubscribe(i) : u.removeEventListener("abort", i);
|
|
1103
|
-
}), e = null);
|
|
1104
|
-
};
|
|
1105
|
-
e.forEach((u) => u.addEventListener("abort", i));
|
|
1106
|
-
const { signal: d } = r;
|
|
1107
|
-
return d.unsubscribe = () => a.asap(c), d;
|
|
1108
|
-
}
|
|
1109
|
-
}, Jn = function* (e, t) {
|
|
1110
|
-
let n = e.byteLength;
|
|
1111
|
-
if (n < t) {
|
|
1112
|
-
yield e;
|
|
1113
|
-
return;
|
|
1114
|
-
}
|
|
1115
|
-
let r = 0, s;
|
|
1116
|
-
for (; r < n; )
|
|
1117
|
-
s = r + t, yield e.slice(r, s), r = s;
|
|
1118
|
-
}, Vn = async function* (e, t) {
|
|
1119
|
-
for await (const n of Wn(e))
|
|
1120
|
-
yield* Jn(n, t);
|
|
1121
|
-
}, Wn = async function* (e) {
|
|
1122
|
-
if (e[Symbol.asyncIterator]) {
|
|
1123
|
-
yield* e;
|
|
1124
|
-
return;
|
|
1125
|
-
}
|
|
1126
|
-
const t = e.getReader();
|
|
1127
|
-
try {
|
|
1128
|
-
for (; ; ) {
|
|
1129
|
-
const { done: n, value: r } = await t.read();
|
|
1130
|
-
if (n)
|
|
1131
|
-
break;
|
|
1132
|
-
yield r;
|
|
1133
|
-
}
|
|
1134
|
-
} finally {
|
|
1135
|
-
await t.cancel();
|
|
1136
|
-
}
|
|
1137
|
-
}, je = (e, t, n, r) => {
|
|
1138
|
-
const s = Vn(e, t);
|
|
1139
|
-
let i = 0, o, c = (d) => {
|
|
1140
|
-
o || (o = !0, r && r(d));
|
|
1141
|
-
};
|
|
1142
|
-
return new ReadableStream({
|
|
1143
|
-
async pull(d) {
|
|
1144
|
-
try {
|
|
1145
|
-
const { done: u, value: l } = await s.next();
|
|
1146
|
-
if (u) {
|
|
1147
|
-
c(), d.close();
|
|
1148
|
-
return;
|
|
1149
|
-
}
|
|
1150
|
-
let h = l.byteLength;
|
|
1151
|
-
if (n) {
|
|
1152
|
-
let w = i += h;
|
|
1153
|
-
n(w);
|
|
1154
|
-
}
|
|
1155
|
-
d.enqueue(new Uint8Array(l));
|
|
1156
|
-
} catch (u) {
|
|
1157
|
-
throw c(u), u;
|
|
1158
|
-
}
|
|
1159
|
-
},
|
|
1160
|
-
cancel(d) {
|
|
1161
|
-
return c(d), s.return();
|
|
1162
|
-
}
|
|
1163
|
-
}, {
|
|
1164
|
-
highWaterMark: 2
|
|
1165
|
-
});
|
|
1166
|
-
}, Ie = 64 * 1024, { isFunction: te } = a, Kn = (({ Request: e, Response: t }) => ({
|
|
1167
|
-
Request: e,
|
|
1168
|
-
Response: t
|
|
1169
|
-
}))(a.global), {
|
|
1170
|
-
ReadableStream: Me,
|
|
1171
|
-
TextEncoder: qe
|
|
1172
|
-
} = a.global, ve = (e, ...t) => {
|
|
1173
|
-
try {
|
|
1174
|
-
return !!e(...t);
|
|
1175
|
-
} catch {
|
|
1176
|
-
return !1;
|
|
1177
|
-
}
|
|
1178
|
-
}, Xn = (e) => {
|
|
1179
|
-
e = a.merge.call({
|
|
1180
|
-
skipUndefined: !0
|
|
1181
|
-
}, Kn, e);
|
|
1182
|
-
const { fetch: t, Request: n, Response: r } = e, s = t ? te(t) : typeof fetch == "function", i = te(n), o = te(r);
|
|
1183
|
-
if (!s)
|
|
1184
|
-
return !1;
|
|
1185
|
-
const c = s && te(Me), d = s && (typeof qe == "function" ? /* @__PURE__ */ ((f) => (m) => f.encode(m))(new qe()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), u = i && c && ve(() => {
|
|
1186
|
-
let f = !1;
|
|
1187
|
-
const m = new n(x.origin, {
|
|
1188
|
-
body: new Me(),
|
|
1189
|
-
method: "POST",
|
|
1190
|
-
get duplex() {
|
|
1191
|
-
return f = !0, "half";
|
|
1192
|
-
}
|
|
1193
|
-
}).headers.has("Content-Type");
|
|
1194
|
-
return f && !m;
|
|
1195
|
-
}), l = o && c && ve(() => a.isReadableStream(new r("").body)), h = {
|
|
1196
|
-
stream: l && ((f) => f.body)
|
|
1197
|
-
};
|
|
1198
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
1199
|
-
!h[f] && (h[f] = (m, p) => {
|
|
1200
|
-
let R = m && m[f];
|
|
1201
|
-
if (R)
|
|
1202
|
-
return R.call(m);
|
|
1203
|
-
throw new y(`Response type '${f}' is not supported`, y.ERR_NOT_SUPPORT, p);
|
|
1204
|
-
});
|
|
1205
|
-
});
|
|
1206
|
-
const w = async (f) => {
|
|
1207
|
-
if (f == null)
|
|
1208
|
-
return 0;
|
|
1209
|
-
if (a.isBlob(f))
|
|
1210
|
-
return f.size;
|
|
1211
|
-
if (a.isSpecCompliantForm(f))
|
|
1212
|
-
return (await new n(x.origin, {
|
|
1213
|
-
method: "POST",
|
|
1214
|
-
body: f
|
|
1215
|
-
}).arrayBuffer()).byteLength;
|
|
1216
|
-
if (a.isArrayBufferView(f) || a.isArrayBuffer(f))
|
|
1217
|
-
return f.byteLength;
|
|
1218
|
-
if (a.isURLSearchParams(f) && (f = f + ""), a.isString(f))
|
|
1219
|
-
return (await d(f)).byteLength;
|
|
1220
|
-
}, O = async (f, m) => {
|
|
1221
|
-
const p = a.toFiniteNumber(f.getContentLength());
|
|
1222
|
-
return p ?? w(m);
|
|
1223
|
-
};
|
|
1224
|
-
return async (f) => {
|
|
1225
|
-
let {
|
|
1226
|
-
url: m,
|
|
1227
|
-
method: p,
|
|
1228
|
-
data: R,
|
|
1229
|
-
signal: U,
|
|
1230
|
-
cancelToken: g,
|
|
1231
|
-
timeout: E,
|
|
1232
|
-
onDownloadProgress: b,
|
|
1233
|
-
onUploadProgress: T,
|
|
1234
|
-
responseType: A,
|
|
1235
|
-
headers: j,
|
|
1236
|
-
withCredentials: D = "same-origin",
|
|
1237
|
-
fetchOptions: q
|
|
1238
|
-
} = lt(f), C = t || fetch;
|
|
1239
|
-
A = A ? (A + "").toLowerCase() : "text";
|
|
1240
|
-
let K = zn([U, g && g.toAbortSignal()], E), k = null;
|
|
1241
|
-
const N = K && K.unsubscribe && (() => {
|
|
1242
|
-
K.unsubscribe();
|
|
1243
|
-
});
|
|
1244
|
-
let fe;
|
|
1245
|
-
try {
|
|
1246
|
-
if (T && u && p !== "get" && p !== "head" && (fe = await O(j, R)) !== 0) {
|
|
1247
|
-
let M = new n(m, {
|
|
1248
|
-
method: "POST",
|
|
1249
|
-
body: R,
|
|
1250
|
-
duplex: "half"
|
|
1251
|
-
}), z;
|
|
1252
|
-
if (a.isFormData(R) && (z = M.headers.get("content-type")) && j.setContentType(z), M.body) {
|
|
1253
|
-
const [de, ee] = Be(
|
|
1254
|
-
fe,
|
|
1255
|
-
oe(De(T))
|
|
1256
|
-
);
|
|
1257
|
-
R = je(M.body, Ie, de, ee);
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
a.isString(D) || (D = D ? "include" : "omit");
|
|
1261
|
-
const F = i && "credentials" in n.prototype, xe = {
|
|
1262
|
-
...q,
|
|
1263
|
-
signal: K,
|
|
1264
|
-
method: p.toUpperCase(),
|
|
1265
|
-
headers: j.normalize().toJSON(),
|
|
1266
|
-
body: R,
|
|
1267
|
-
duplex: "half",
|
|
1268
|
-
credentials: F ? D : void 0
|
|
1269
|
-
};
|
|
1270
|
-
k = i && new n(m, xe);
|
|
1271
|
-
let I = await (i ? C(k, q) : C(m, xe));
|
|
1272
|
-
const Ue = l && (A === "stream" || A === "response");
|
|
1273
|
-
if (l && (b || Ue && N)) {
|
|
1274
|
-
const M = {};
|
|
1275
|
-
["status", "statusText", "headers"].forEach((Pe) => {
|
|
1276
|
-
M[Pe] = I[Pe];
|
|
1277
|
-
});
|
|
1278
|
-
const z = a.toFiniteNumber(I.headers.get("content-length")), [de, ee] = b && Be(
|
|
1279
|
-
z,
|
|
1280
|
-
oe(De(b), !0)
|
|
1281
|
-
) || [];
|
|
1282
|
-
I = new r(
|
|
1283
|
-
je(I.body, Ie, de, () => {
|
|
1284
|
-
ee && ee(), N && N();
|
|
1285
|
-
}),
|
|
1286
|
-
M
|
|
1287
|
-
);
|
|
1288
|
-
}
|
|
1289
|
-
A = A || "text";
|
|
1290
|
-
let mt = await h[a.findKey(h, A) || "text"](I, f);
|
|
1291
|
-
return !Ue && N && N(), await new Promise((M, z) => {
|
|
1292
|
-
at(M, z, {
|
|
1293
|
-
data: mt,
|
|
1294
|
-
headers: L.from(I.headers),
|
|
1295
|
-
status: I.status,
|
|
1296
|
-
statusText: I.statusText,
|
|
1297
|
-
config: f,
|
|
1298
|
-
request: k
|
|
1299
|
-
});
|
|
1300
|
-
});
|
|
1301
|
-
} catch (F) {
|
|
1302
|
-
throw N && N(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
|
|
1303
|
-
new y("Network Error", y.ERR_NETWORK, f, k),
|
|
1304
|
-
{
|
|
1305
|
-
cause: F.cause || F
|
|
1306
|
-
}
|
|
1307
|
-
) : y.from(F, F && F.code, f, k);
|
|
1308
|
-
}
|
|
1309
|
-
};
|
|
1310
|
-
}, Gn = /* @__PURE__ */ new Map(), ut = (e) => {
|
|
1311
|
-
let t = e ? e.env : {};
|
|
1312
|
-
const { fetch: n, Request: r, Response: s } = t, i = [
|
|
1313
|
-
r,
|
|
1314
|
-
s,
|
|
1315
|
-
n
|
|
1316
|
-
];
|
|
1317
|
-
let o = i.length, c = o, d, u, l = Gn;
|
|
1318
|
-
for (; c--; )
|
|
1319
|
-
d = i[c], u = l.get(d), u === void 0 && l.set(d, u = c ? /* @__PURE__ */ new Map() : Xn(t)), l = u;
|
|
1320
|
-
return u;
|
|
1321
|
-
};
|
|
1322
|
-
ut();
|
|
1323
|
-
const Ee = {
|
|
1324
|
-
http: pn,
|
|
1325
|
-
xhr: $n,
|
|
1326
|
-
fetch: {
|
|
1327
|
-
get: ut
|
|
1328
|
-
}
|
|
1329
|
-
};
|
|
1330
|
-
a.forEach(Ee, (e, t) => {
|
|
1331
|
-
if (e) {
|
|
1332
|
-
try {
|
|
1333
|
-
Object.defineProperty(e, "name", { value: t });
|
|
1334
|
-
} catch {
|
|
1335
|
-
}
|
|
1336
|
-
Object.defineProperty(e, "adapterName", { value: t });
|
|
1337
|
-
}
|
|
1338
|
-
});
|
|
1339
|
-
const He = (e) => `- ${e}`, Qn = (e) => a.isFunction(e) || e === null || e === !1, ft = {
|
|
1340
|
-
getAdapter: (e, t) => {
|
|
1341
|
-
e = a.isArray(e) ? e : [e];
|
|
1342
|
-
const { length: n } = e;
|
|
1343
|
-
let r, s;
|
|
1344
|
-
const i = {};
|
|
1345
|
-
for (let o = 0; o < n; o++) {
|
|
1346
|
-
r = e[o];
|
|
1347
|
-
let c;
|
|
1348
|
-
if (s = r, !Qn(r) && (s = Ee[(c = String(r)).toLowerCase()], s === void 0))
|
|
1349
|
-
throw new y(`Unknown adapter '${c}'`);
|
|
1350
|
-
if (s && (a.isFunction(s) || (s = s.get(t))))
|
|
1351
|
-
break;
|
|
1352
|
-
i[c || "#" + o] = s;
|
|
1353
|
-
}
|
|
1354
|
-
if (!s) {
|
|
1355
|
-
const o = Object.entries(i).map(
|
|
1356
|
-
([d, u]) => `adapter ${d} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1357
|
-
);
|
|
1358
|
-
let c = n ? o.length > 1 ? `since :
|
|
1359
|
-
` + o.map(He).join(`
|
|
1360
|
-
`) : " " + He(o[0]) : "as no adapter specified";
|
|
1361
|
-
throw new y(
|
|
1362
|
-
"There is no suitable adapter to dispatch the request " + c,
|
|
1363
|
-
"ERR_NOT_SUPPORT"
|
|
1364
|
-
);
|
|
1365
|
-
}
|
|
1366
|
-
return s;
|
|
1367
|
-
},
|
|
1368
|
-
adapters: Ee
|
|
1369
|
-
};
|
|
1370
|
-
function ye(e) {
|
|
1371
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1372
|
-
throw new W(null, e);
|
|
1373
|
-
}
|
|
1374
|
-
function $e(e) {
|
|
1375
|
-
return ye(e), e.headers = L.from(e.headers), e.data = ge.call(
|
|
1376
|
-
e,
|
|
1377
|
-
e.transformRequest
|
|
1378
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ft.getAdapter(e.adapter || Y.adapter, e)(e).then(function(r) {
|
|
1379
|
-
return ye(e), r.data = ge.call(
|
|
1380
|
-
e,
|
|
1381
|
-
e.transformResponse,
|
|
1382
|
-
r
|
|
1383
|
-
), r.headers = L.from(r.headers), r;
|
|
1384
|
-
}, function(r) {
|
|
1385
|
-
return it(r) || (ye(e), r && r.response && (r.response.data = ge.call(
|
|
1386
|
-
e,
|
|
1387
|
-
e.transformResponse,
|
|
1388
|
-
r.response
|
|
1389
|
-
), r.response.headers = L.from(r.response.headers))), Promise.reject(r);
|
|
1390
|
-
});
|
|
1391
|
-
}
|
|
1392
|
-
const dt = "1.12.2", ue = {};
|
|
1393
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1394
|
-
ue[e] = function(r) {
|
|
1395
|
-
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1396
|
-
};
|
|
1397
|
-
});
|
|
1398
|
-
const ze = {};
|
|
1399
|
-
ue.transitional = function(t, n, r) {
|
|
1400
|
-
function s(i, o) {
|
|
1401
|
-
return "[Axios v" + dt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1402
|
-
}
|
|
1403
|
-
return (i, o, c) => {
|
|
1404
|
-
if (t === !1)
|
|
1405
|
-
throw new y(
|
|
1406
|
-
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1407
|
-
y.ERR_DEPRECATED
|
|
1408
|
-
);
|
|
1409
|
-
return n && !ze[o] && (ze[o] = !0, console.warn(
|
|
1410
|
-
s(
|
|
1411
|
-
o,
|
|
1412
|
-
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1413
|
-
)
|
|
1414
|
-
)), t ? t(i, o, c) : !0;
|
|
1415
|
-
};
|
|
1416
|
-
};
|
|
1417
|
-
ue.spelling = function(t) {
|
|
1418
|
-
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1419
|
-
};
|
|
1420
|
-
function Zn(e, t, n) {
|
|
1421
|
-
if (typeof e != "object")
|
|
1422
|
-
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1423
|
-
const r = Object.keys(e);
|
|
1424
|
-
let s = r.length;
|
|
1425
|
-
for (; s-- > 0; ) {
|
|
1426
|
-
const i = r[s], o = t[i];
|
|
1427
|
-
if (o) {
|
|
1428
|
-
const c = e[i], d = c === void 0 || o(c, i, e);
|
|
1429
|
-
if (d !== !0)
|
|
1430
|
-
throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
|
|
1431
|
-
continue;
|
|
1432
|
-
}
|
|
1433
|
-
if (n !== !0)
|
|
1434
|
-
throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
const se = {
|
|
1438
|
-
assertOptions: Zn,
|
|
1439
|
-
validators: ue
|
|
1440
|
-
}, B = se.validators;
|
|
1441
|
-
let H = class {
|
|
1442
|
-
constructor(t) {
|
|
1443
|
-
this.defaults = t || {}, this.interceptors = {
|
|
1444
|
-
request: new _e(),
|
|
1445
|
-
response: new _e()
|
|
1446
|
-
};
|
|
1447
|
-
}
|
|
1448
|
-
/**
|
|
1449
|
-
* Dispatch a request
|
|
1450
|
-
*
|
|
1451
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1452
|
-
* @param {?Object} config
|
|
1453
|
-
*
|
|
1454
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
1455
|
-
*/
|
|
1456
|
-
async request(t, n) {
|
|
1457
|
-
try {
|
|
1458
|
-
return await this._request(t, n);
|
|
1459
|
-
} catch (r) {
|
|
1460
|
-
if (r instanceof Error) {
|
|
1461
|
-
let s = {};
|
|
1462
|
-
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1463
|
-
const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1464
|
-
try {
|
|
1465
|
-
r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1466
|
-
` + i) : r.stack = i;
|
|
1467
|
-
} catch {
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
throw r;
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
_request(t, n) {
|
|
1474
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = $(this.defaults, n);
|
|
1475
|
-
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1476
|
-
r !== void 0 && se.assertOptions(r, {
|
|
1477
|
-
silentJSONParsing: B.transitional(B.boolean),
|
|
1478
|
-
forcedJSONParsing: B.transitional(B.boolean),
|
|
1479
|
-
clarifyTimeoutError: B.transitional(B.boolean)
|
|
1480
|
-
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1481
|
-
serialize: s
|
|
1482
|
-
} : se.assertOptions(s, {
|
|
1483
|
-
encode: B.function,
|
|
1484
|
-
serialize: B.function
|
|
1485
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), se.assertOptions(n, {
|
|
1486
|
-
baseUrl: B.spelling("baseURL"),
|
|
1487
|
-
withXsrfToken: B.spelling("withXSRFToken")
|
|
1488
|
-
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1489
|
-
let o = i && a.merge(
|
|
1490
|
-
i.common,
|
|
1491
|
-
i[n.method]
|
|
1492
|
-
);
|
|
1493
|
-
i && a.forEach(
|
|
1494
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1495
|
-
(f) => {
|
|
1496
|
-
delete i[f];
|
|
1497
|
-
}
|
|
1498
|
-
), n.headers = L.concat(o, i);
|
|
1499
|
-
const c = [];
|
|
1500
|
-
let d = !0;
|
|
1501
|
-
this.interceptors.request.forEach(function(m) {
|
|
1502
|
-
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, c.unshift(m.fulfilled, m.rejected));
|
|
1503
|
-
});
|
|
1504
|
-
const u = [];
|
|
1505
|
-
this.interceptors.response.forEach(function(m) {
|
|
1506
|
-
u.push(m.fulfilled, m.rejected);
|
|
1507
|
-
});
|
|
1508
|
-
let l, h = 0, w;
|
|
1509
|
-
if (!d) {
|
|
1510
|
-
const f = [$e.bind(this), void 0];
|
|
1511
|
-
for (f.unshift(...c), f.push(...u), w = f.length, l = Promise.resolve(n); h < w; )
|
|
1512
|
-
l = l.then(f[h++], f[h++]);
|
|
1513
|
-
return l;
|
|
1514
|
-
}
|
|
1515
|
-
w = c.length;
|
|
1516
|
-
let O = n;
|
|
1517
|
-
for (; h < w; ) {
|
|
1518
|
-
const f = c[h++], m = c[h++];
|
|
1519
|
-
try {
|
|
1520
|
-
O = f(O);
|
|
1521
|
-
} catch (p) {
|
|
1522
|
-
m.call(this, p);
|
|
1523
|
-
break;
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
try {
|
|
1527
|
-
l = $e.call(this, O);
|
|
1528
|
-
} catch (f) {
|
|
1529
|
-
return Promise.reject(f);
|
|
1530
|
-
}
|
|
1531
|
-
for (h = 0, w = u.length; h < w; )
|
|
1532
|
-
l = l.then(u[h++], u[h++]);
|
|
1533
|
-
return l;
|
|
1534
|
-
}
|
|
1535
|
-
getUri(t) {
|
|
1536
|
-
t = $(this.defaults, t);
|
|
1537
|
-
const n = ct(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1538
|
-
return rt(n, t.params, t.paramsSerializer);
|
|
1539
|
-
}
|
|
1540
|
-
};
|
|
1541
|
-
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1542
|
-
H.prototype[t] = function(n, r) {
|
|
1543
|
-
return this.request($(r || {}, {
|
|
1544
|
-
method: t,
|
|
1545
|
-
url: n,
|
|
1546
|
-
data: (r || {}).data
|
|
1547
|
-
}));
|
|
1548
|
-
};
|
|
1549
|
-
});
|
|
1550
|
-
a.forEach(["post", "put", "patch"], function(t) {
|
|
1551
|
-
function n(r) {
|
|
1552
|
-
return function(i, o, c) {
|
|
1553
|
-
return this.request($(c || {}, {
|
|
1554
|
-
method: t,
|
|
1555
|
-
headers: r ? {
|
|
1556
|
-
"Content-Type": "multipart/form-data"
|
|
1557
|
-
} : {},
|
|
1558
|
-
url: i,
|
|
1559
|
-
data: o
|
|
1560
|
-
}));
|
|
1561
|
-
};
|
|
1562
|
-
}
|
|
1563
|
-
H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
|
|
1564
|
-
});
|
|
1565
|
-
let Yn = class pt {
|
|
1566
|
-
constructor(t) {
|
|
1567
|
-
if (typeof t != "function")
|
|
1568
|
-
throw new TypeError("executor must be a function.");
|
|
1569
|
-
let n;
|
|
1570
|
-
this.promise = new Promise(function(i) {
|
|
1571
|
-
n = i;
|
|
1572
|
-
});
|
|
1573
|
-
const r = this;
|
|
1574
|
-
this.promise.then((s) => {
|
|
1575
|
-
if (!r._listeners) return;
|
|
1576
|
-
let i = r._listeners.length;
|
|
1577
|
-
for (; i-- > 0; )
|
|
1578
|
-
r._listeners[i](s);
|
|
1579
|
-
r._listeners = null;
|
|
1580
|
-
}), this.promise.then = (s) => {
|
|
1581
|
-
let i;
|
|
1582
|
-
const o = new Promise((c) => {
|
|
1583
|
-
r.subscribe(c), i = c;
|
|
1584
|
-
}).then(s);
|
|
1585
|
-
return o.cancel = function() {
|
|
1586
|
-
r.unsubscribe(i);
|
|
1587
|
-
}, o;
|
|
1588
|
-
}, t(function(i, o, c) {
|
|
1589
|
-
r.reason || (r.reason = new W(i, o, c), n(r.reason));
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
/**
|
|
1593
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
1594
|
-
*/
|
|
1595
|
-
throwIfRequested() {
|
|
1596
|
-
if (this.reason)
|
|
1597
|
-
throw this.reason;
|
|
1598
|
-
}
|
|
1599
|
-
/**
|
|
1600
|
-
* Subscribe to the cancel signal
|
|
1601
|
-
*/
|
|
1602
|
-
subscribe(t) {
|
|
1603
|
-
if (this.reason) {
|
|
1604
|
-
t(this.reason);
|
|
1605
|
-
return;
|
|
1606
|
-
}
|
|
1607
|
-
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1608
|
-
}
|
|
1609
|
-
/**
|
|
1610
|
-
* Unsubscribe from the cancel signal
|
|
1611
|
-
*/
|
|
1612
|
-
unsubscribe(t) {
|
|
1613
|
-
if (!this._listeners)
|
|
1614
|
-
return;
|
|
1615
|
-
const n = this._listeners.indexOf(t);
|
|
1616
|
-
n !== -1 && this._listeners.splice(n, 1);
|
|
1617
|
-
}
|
|
1618
|
-
toAbortSignal() {
|
|
1619
|
-
const t = new AbortController(), n = (r) => {
|
|
1620
|
-
t.abort(r);
|
|
1621
|
-
};
|
|
1622
|
-
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1623
|
-
}
|
|
1624
|
-
/**
|
|
1625
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1626
|
-
* cancels the `CancelToken`.
|
|
1627
|
-
*/
|
|
1628
|
-
static source() {
|
|
1629
|
-
let t;
|
|
1630
|
-
return {
|
|
1631
|
-
token: new pt(function(s) {
|
|
1632
|
-
t = s;
|
|
1633
|
-
}),
|
|
1634
|
-
cancel: t
|
|
1635
|
-
};
|
|
1636
|
-
}
|
|
1637
|
-
};
|
|
1638
|
-
function er(e) {
|
|
1639
|
-
return function(n) {
|
|
1640
|
-
return e.apply(null, n);
|
|
1641
|
-
};
|
|
1642
|
-
}
|
|
1643
|
-
function tr(e) {
|
|
1644
|
-
return a.isObject(e) && e.isAxiosError === !0;
|
|
1645
|
-
}
|
|
1646
|
-
const Se = {
|
|
1647
|
-
Continue: 100,
|
|
1648
|
-
SwitchingProtocols: 101,
|
|
1649
|
-
Processing: 102,
|
|
1650
|
-
EarlyHints: 103,
|
|
1651
|
-
Ok: 200,
|
|
1652
|
-
Created: 201,
|
|
1653
|
-
Accepted: 202,
|
|
1654
|
-
NonAuthoritativeInformation: 203,
|
|
1655
|
-
NoContent: 204,
|
|
1656
|
-
ResetContent: 205,
|
|
1657
|
-
PartialContent: 206,
|
|
1658
|
-
MultiStatus: 207,
|
|
1659
|
-
AlreadyReported: 208,
|
|
1660
|
-
ImUsed: 226,
|
|
1661
|
-
MultipleChoices: 300,
|
|
1662
|
-
MovedPermanently: 301,
|
|
1663
|
-
Found: 302,
|
|
1664
|
-
SeeOther: 303,
|
|
1665
|
-
NotModified: 304,
|
|
1666
|
-
UseProxy: 305,
|
|
1667
|
-
Unused: 306,
|
|
1668
|
-
TemporaryRedirect: 307,
|
|
1669
|
-
PermanentRedirect: 308,
|
|
1670
|
-
BadRequest: 400,
|
|
1671
|
-
Unauthorized: 401,
|
|
1672
|
-
PaymentRequired: 402,
|
|
1673
|
-
Forbidden: 403,
|
|
1674
|
-
NotFound: 404,
|
|
1675
|
-
MethodNotAllowed: 405,
|
|
1676
|
-
NotAcceptable: 406,
|
|
1677
|
-
ProxyAuthenticationRequired: 407,
|
|
1678
|
-
RequestTimeout: 408,
|
|
1679
|
-
Conflict: 409,
|
|
1680
|
-
Gone: 410,
|
|
1681
|
-
LengthRequired: 411,
|
|
1682
|
-
PreconditionFailed: 412,
|
|
1683
|
-
PayloadTooLarge: 413,
|
|
1684
|
-
UriTooLong: 414,
|
|
1685
|
-
UnsupportedMediaType: 415,
|
|
1686
|
-
RangeNotSatisfiable: 416,
|
|
1687
|
-
ExpectationFailed: 417,
|
|
1688
|
-
ImATeapot: 418,
|
|
1689
|
-
MisdirectedRequest: 421,
|
|
1690
|
-
UnprocessableEntity: 422,
|
|
1691
|
-
Locked: 423,
|
|
1692
|
-
FailedDependency: 424,
|
|
1693
|
-
TooEarly: 425,
|
|
1694
|
-
UpgradeRequired: 426,
|
|
1695
|
-
PreconditionRequired: 428,
|
|
1696
|
-
TooManyRequests: 429,
|
|
1697
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
1698
|
-
UnavailableForLegalReasons: 451,
|
|
1699
|
-
InternalServerError: 500,
|
|
1700
|
-
NotImplemented: 501,
|
|
1701
|
-
BadGateway: 502,
|
|
1702
|
-
ServiceUnavailable: 503,
|
|
1703
|
-
GatewayTimeout: 504,
|
|
1704
|
-
HttpVersionNotSupported: 505,
|
|
1705
|
-
VariantAlsoNegotiates: 506,
|
|
1706
|
-
InsufficientStorage: 507,
|
|
1707
|
-
LoopDetected: 508,
|
|
1708
|
-
NotExtended: 510,
|
|
1709
|
-
NetworkAuthenticationRequired: 511
|
|
1710
|
-
};
|
|
1711
|
-
Object.entries(Se).forEach(([e, t]) => {
|
|
1712
|
-
Se[t] = e;
|
|
1713
|
-
});
|
|
1714
|
-
function ht(e) {
|
|
1715
|
-
const t = new H(e), n = Je(H.prototype.request, t);
|
|
1716
|
-
return a.extend(n, H.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1717
|
-
return ht($(e, s));
|
|
1718
|
-
}, n;
|
|
1719
|
-
}
|
|
1720
|
-
const S = ht(Y);
|
|
1721
|
-
S.Axios = H;
|
|
1722
|
-
S.CanceledError = W;
|
|
1723
|
-
S.CancelToken = Yn;
|
|
1724
|
-
S.isCancel = it;
|
|
1725
|
-
S.VERSION = dt;
|
|
1726
|
-
S.toFormData = le;
|
|
1727
|
-
S.AxiosError = y;
|
|
1728
|
-
S.Cancel = S.CanceledError;
|
|
1729
|
-
S.all = function(t) {
|
|
1730
|
-
return Promise.all(t);
|
|
1731
|
-
};
|
|
1732
|
-
S.spread = er;
|
|
1733
|
-
S.isAxiosError = tr;
|
|
1734
|
-
S.mergeConfig = $;
|
|
1735
|
-
S.AxiosHeaders = L;
|
|
1736
|
-
S.formToJSON = (e) => ot(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1737
|
-
S.getAdapter = ft.getAdapter;
|
|
1738
|
-
S.HttpStatusCode = Se;
|
|
1739
|
-
S.default = S;
|
|
1740
|
-
const {
|
|
1741
|
-
Axios: mr,
|
|
1742
|
-
AxiosError: gr,
|
|
1743
|
-
CanceledError: yr,
|
|
1744
|
-
isCancel: wr,
|
|
1745
|
-
CancelToken: br,
|
|
1746
|
-
VERSION: Rr,
|
|
1747
|
-
all: Er,
|
|
1748
|
-
Cancel: Sr,
|
|
1749
|
-
isAxiosError: Or,
|
|
1750
|
-
spread: Tr,
|
|
1751
|
-
toFormData: Ar,
|
|
1752
|
-
AxiosHeaders: xr,
|
|
1753
|
-
HttpStatusCode: Ur,
|
|
1754
|
-
formToJSON: Pr,
|
|
1755
|
-
getAdapter: Lr,
|
|
1756
|
-
mergeConfig: Cr
|
|
1757
|
-
} = S, nr = S.create({
|
|
1758
|
-
withCredentials: !1,
|
|
1759
|
-
headers: {
|
|
1760
|
-
Accept: "text/xml",
|
|
1761
|
-
"Content-Type": "text/xml"
|
|
1762
|
-
},
|
|
1763
|
-
timeout: 1e4
|
|
1764
|
-
}), rr = {
|
|
1765
|
-
getPage(e, t) {
|
|
1766
|
-
return nr.get(`${e}/${t}.xml`);
|
|
1767
|
-
}
|
|
1768
|
-
}, sr = gt("sphinx", {
|
|
1769
|
-
state: () => ({
|
|
1770
|
-
pages: /* @__PURE__ */ new Map(),
|
|
1771
|
-
urlMap: /* @__PURE__ */ new Map(),
|
|
1772
|
-
inflight: /* @__PURE__ */ new Map(),
|
|
1773
|
-
downloadURLs: /* @__PURE__ */ new Map(),
|
|
1774
|
-
imagesURLs: /* @__PURE__ */ new Map(),
|
|
1775
|
-
offsetReferenceURLs: /* @__PURE__ */ new Map()
|
|
1776
|
-
}),
|
|
1777
|
-
getters: {
|
|
1778
|
-
printPages: (e) => () => {
|
|
1779
|
-
console.log(e.pages);
|
|
1780
|
-
},
|
|
1781
|
-
getPageById: (e) => (t, n) => e.pages.get(t).find((r) => r.id === n),
|
|
1782
|
-
hasPageById: (e) => (t, n) => !!e.getPageById(t, n),
|
|
1783
|
-
getInflight: (e) => (t, n) => e.inflight.get(t).get(n),
|
|
1784
|
-
isInflight: (e) => (t, n) => !!e.inflight.get(t).get(n),
|
|
1785
|
-
getBaseUrl: (e) => (t) => e.urlMap.get(t),
|
|
1786
|
-
getDownloadURL: (e) => (t) => e.downloadURLs.get(t),
|
|
1787
|
-
getImagesURL: (e) => (t) => e.imagesURLs.get(t),
|
|
1788
|
-
isOffsetReferenceURL: (e) => (t) => e.offsetReferenceURLs.get(t)
|
|
1789
|
-
},
|
|
1790
|
-
actions: {
|
|
1791
|
-
appendPage({ routeURL: e, page: t }) {
|
|
1792
|
-
let n = this.pages.get(e);
|
|
1793
|
-
n || (n = []), n.push(t), this.pages.set(e, n);
|
|
1794
|
-
},
|
|
1795
|
-
addInflight({ routeURL: e, page_name: t, pending: n }) {
|
|
1796
|
-
let r = this.inflight.get(e);
|
|
1797
|
-
r || (r = /* @__PURE__ */ new Map()), r.set(t, n), this.inflight.set(e, r);
|
|
1798
|
-
},
|
|
1799
|
-
removeInflight({ routeURL: e, id: t }) {
|
|
1800
|
-
this.inflight.get(e).delete(t);
|
|
1801
|
-
},
|
|
1802
|
-
registerRouteUrl({
|
|
1803
|
-
baseURL: e,
|
|
1804
|
-
routeURL: t,
|
|
1805
|
-
downloadsURL: n,
|
|
1806
|
-
imagesURL: r,
|
|
1807
|
-
offsetRouteURL: s
|
|
1808
|
-
}) {
|
|
1809
|
-
const i = this.pages.get(t), o = s || t;
|
|
1810
|
-
this.downloadURLs.set(o, n), this.imagesURLs.set(o, r), this.offsetReferenceURLs.set(
|
|
1811
|
-
o,
|
|
1812
|
-
!!s
|
|
1813
|
-
), i || (this.pages.set(t, []), this.urlMap.set(t, e), this.inflight.set(t, /* @__PURE__ */ new Map()));
|
|
1814
|
-
},
|
|
1815
|
-
fetchPage(e) {
|
|
1816
|
-
const t = e.page_name, n = e.page_route, r = e.page_url, s = this.getPageById(n, t);
|
|
1817
|
-
if (s)
|
|
1818
|
-
return Promise.resolve(s);
|
|
1819
|
-
if (this.isInflight(n, t))
|
|
1820
|
-
return this.getInflight(n, t);
|
|
1821
|
-
const i = rr.getPage(r, t).then((o) => {
|
|
1822
|
-
const u = new DOMParser().parseFromString(o.data, "text/xml").querySelector("document");
|
|
1823
|
-
return u.id = t, this.appendPage({ routeURL: n, page: u }), this.removeInflight({ routeURL: n, id: t }), u;
|
|
1824
|
-
}).catch(() => {
|
|
1825
|
-
throw this.removeInflight({ routeURL: n, id: t }), "Page not found";
|
|
1826
|
-
});
|
|
1827
|
-
return this.addInflight({ routeURL: n, page_name: t, pending: i }), i;
|
|
1828
|
-
},
|
|
1829
|
-
setDownloadURL({ routeURL: e, url: t }) {
|
|
1830
|
-
this.downloadsURLs.set(e, t);
|
|
1831
|
-
},
|
|
1832
|
-
setImagesURL({ commit: e }, { routeURL: t, url: n }) {
|
|
1833
|
-
this.imagesURLs.set(t, n);
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
|
-
}), Nr = (e) => {
|
|
1837
|
-
let t = document.createElement("textarea");
|
|
1838
|
-
return t.innerHTML = e, t.value;
|
|
1839
|
-
}, or = (e) => {
|
|
1840
|
-
const t = e.path, n = e.params.pageName;
|
|
1841
|
-
if (n === void 0)
|
|
1842
|
-
return t;
|
|
1843
|
-
if (n === "")
|
|
1844
|
-
return t.endsWith("/") ? t.slice(0, -1) : t;
|
|
1845
|
-
const r = t.lastIndexOf("/" + n);
|
|
1846
|
-
return r !== -1 ? t.substring(0, r) : t;
|
|
1847
|
-
}, ir = (e) => {
|
|
1848
|
-
const t = e.params.pageName;
|
|
1849
|
-
return Array.isArray(t) ? t.join("/") : t || "";
|
|
1850
|
-
}, _r = {
|
|
1851
|
-
__name: "SphinxPage",
|
|
1852
|
-
props: {
|
|
1853
|
-
baseURL: {
|
|
1854
|
-
type: String,
|
|
1855
|
-
default: "/"
|
|
1856
|
-
},
|
|
1857
|
-
referenceBaseURL: {
|
|
1858
|
-
type: String,
|
|
1859
|
-
default: void 0
|
|
1860
|
-
},
|
|
1861
|
-
downloadBaseURL: {
|
|
1862
|
-
type: String,
|
|
1863
|
-
default: ""
|
|
1864
|
-
},
|
|
1865
|
-
imagesBaseURL: {
|
|
1866
|
-
type: String,
|
|
1867
|
-
default: ""
|
|
1868
|
-
},
|
|
1869
|
-
indexFileName: {
|
|
1870
|
-
type: String,
|
|
1871
|
-
default: "index"
|
|
1872
|
-
},
|
|
1873
|
-
pageNotFoundName: {
|
|
1874
|
-
type: String,
|
|
1875
|
-
default: "404"
|
|
1876
|
-
},
|
|
1877
|
-
scrollDelay: {
|
|
1878
|
-
type: Number,
|
|
1879
|
-
default: 200
|
|
1880
|
-
}
|
|
1881
|
-
},
|
|
1882
|
-
setup(e) {
|
|
1883
|
-
const t = Rt(
|
|
1884
|
-
() => import("./Document-PZAyvjWh.mjs").then((g) => g.D)
|
|
1885
|
-
), n = e, {
|
|
1886
|
-
baseURL: r,
|
|
1887
|
-
referenceBaseURL: s,
|
|
1888
|
-
downloadBaseURL: i,
|
|
1889
|
-
imagesBaseURL: o,
|
|
1890
|
-
indexFileName: c,
|
|
1891
|
-
pageNotFoundName: d,
|
|
1892
|
-
scrollDelay: u
|
|
1893
|
-
} = Et(n), l = At(), h = xt(), w = sr();
|
|
1894
|
-
console.log("*********** SphinxPage.vue loaded ***********"), console.log(`Base URL: ${r.value}`), console.log(h), console.log(l);
|
|
1895
|
-
let O = pe(null), f = pe(void 0), m = pe(""), p = {
|
|
1896
|
-
path: void 0,
|
|
1897
|
-
hash: void 0
|
|
1898
|
-
};
|
|
1899
|
-
function R(g) {
|
|
1900
|
-
setTimeout(() => {
|
|
1901
|
-
f.value = g.offsetTop, window.scrollTo({
|
|
1902
|
-
top: g.offsetTop,
|
|
1903
|
-
behavior: "smooth"
|
|
1904
|
-
}), setTimeout(() => {
|
|
1905
|
-
f.value !== g.offsetTop && R(g);
|
|
1906
|
-
}, 10);
|
|
1907
|
-
}, u.value);
|
|
1908
|
-
}
|
|
1909
|
-
St(
|
|
1910
|
-
h,
|
|
1911
|
-
(g) => {
|
|
1912
|
-
const E = or(g);
|
|
1913
|
-
if (E !== void 0) {
|
|
1914
|
-
if (p.path === void 0 || g.path !== p.path) {
|
|
1915
|
-
const b = ir(g);
|
|
1916
|
-
U(g.path, E, b), g.hash && setTimeout(() => {
|
|
1917
|
-
let T = g.hash;
|
|
1918
|
-
T.startsWith("#") && (T = T.slice(1));
|
|
1919
|
-
const A = document.getElementById(T);
|
|
1920
|
-
A && R(A);
|
|
1921
|
-
}, u.value);
|
|
1922
|
-
} else if (g.path === p.path && g.hash) {
|
|
1923
|
-
let b = g.hash;
|
|
1924
|
-
b.startsWith("#") && (b = b.slice(1));
|
|
1925
|
-
const T = document.getElementById(b);
|
|
1926
|
-
T && window.scrollTo({
|
|
1927
|
-
top: T.offsetTop,
|
|
1928
|
-
behavior: "smooth"
|
|
1929
|
-
});
|
|
1930
|
-
}
|
|
1931
|
-
}
|
|
1932
|
-
p.path = g.path, p.hash = g.hash;
|
|
1933
|
-
},
|
|
1934
|
-
{ flush: "pre", immediate: !0, deep: !0 }
|
|
1935
|
-
);
|
|
1936
|
-
function U(g, E, b) {
|
|
1937
|
-
b || (b = c.value);
|
|
1938
|
-
const T = o.value === "" ? `${r.value}/_images` : o.value, A = i.value === "" ? `${r.value}/_downloads` : i.value;
|
|
1939
|
-
let j = r.value, D = E, q = b;
|
|
1940
|
-
if (s.value) {
|
|
1941
|
-
let C = j.split(s.value);
|
|
1942
|
-
C.pop() === c.value && C.pop(), s.value !== "/" && C.push(s.value), j = C.join("/").replace("//", "/");
|
|
1943
|
-
let k = D.split(s.value);
|
|
1944
|
-
const N = k.pop();
|
|
1945
|
-
k.push(s.value), D = k.join("/").replace("//", "/"), q = (N[0] === "/" ? N.slice(1) : N) + "/" + q;
|
|
1946
|
-
}
|
|
1947
|
-
w.registerRouteUrl({
|
|
1948
|
-
baseURL: j,
|
|
1949
|
-
routeURL: D,
|
|
1950
|
-
downloadsURL: A,
|
|
1951
|
-
imagesURL: T,
|
|
1952
|
-
offsetRouteURL: s.value === void 0 ? !1 : E
|
|
1953
|
-
}), w.fetchPage({
|
|
1954
|
-
page_name: q,
|
|
1955
|
-
page_route: D,
|
|
1956
|
-
page_url: j
|
|
1957
|
-
}).then((C) => {
|
|
1958
|
-
O.value = C, m.value = "page_" + q.replace("/", "_");
|
|
1959
|
-
}).catch(() => {
|
|
1960
|
-
if (b.endsWith("index"))
|
|
1961
|
-
l.push({
|
|
1962
|
-
name: d.value,
|
|
1963
|
-
query: {
|
|
1964
|
-
path: g
|
|
1965
|
-
}
|
|
1966
|
-
});
|
|
1967
|
-
else {
|
|
1968
|
-
const C = g + (g.endsWith("/") ? "" : "/") + c.value;
|
|
1969
|
-
l.push(C);
|
|
1970
|
-
}
|
|
1971
|
-
});
|
|
1972
|
-
}
|
|
1973
|
-
return (g, E) => (Tt(), Ot(he(t), {
|
|
1974
|
-
element: he(O),
|
|
1975
|
-
id: he(m)
|
|
1976
|
-
}, null, 8, ["element", "id"]));
|
|
1977
|
-
}
|
|
1978
|
-
};
|
|
1979
|
-
function Fr(e, t = {}) {
|
|
1980
|
-
e.use(yt()), e.use(wt, t.katex), e.use(bt);
|
|
1981
|
-
}
|
|
1982
|
-
export {
|
|
1983
|
-
_r as _,
|
|
1984
|
-
Nr as a,
|
|
1985
|
-
ir as c,
|
|
1986
|
-
or as d,
|
|
1987
|
-
Fr as i,
|
|
1988
|
-
sr as u
|
|
1989
|
-
};
|
|
1990
|
-
//# sourceMappingURL=entry-CNV5B73A.mjs.map
|