@das-fed/upf-utils 6.4.0-dev.225 → 6.4.0-dev.227
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/api-services/es5.js +2065 -1991
- package/api-services/index.js +1568 -1504
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +2095 -2031
- package/api-services/modules/app-manage/index.js +1723 -1673
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +2296 -2232
- package/api-services/modules/authentication/index.js +1900 -1850
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +2303 -2239
- package/api-services/modules/bems/index.js +1901 -1851
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +2296 -2232
- package/api-services/modules/contract/index.js +1900 -1850
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +2096 -2032
- package/api-services/modules/duty-manage/index.js +1724 -1674
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +2296 -2232
- package/api-services/modules/enterpriseright/index.js +1900 -1850
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1835 -1759
- package/api-services/modules/file/es5.js +1804 -1728
- package/api-services/modules/file/index.js +1406 -1338
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +2204 -2130
- package/api-services/modules/gateway-edge/index.js +1810 -1746
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1419 -1351
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +2117 -2053
- package/api-services/modules/iot/index.js +1734 -1684
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +2296 -2232
- package/api-services/modules/justauth/index.js +1899 -1849
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +2204 -2128
- package/api-services/modules/knowledge/index.js +1812 -1744
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +2204 -2128
- package/api-services/modules/link/index.js +1812 -1744
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +2204 -2128
- package/api-services/modules/permission/index.js +1812 -1744
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +2110 -2046
- package/api-services/modules/platformManage/index.js +1728 -1678
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +2315 -2227
- package/api-services/modules/portal/index.js +1924 -1838
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +2095 -2031
- package/api-services/modules/space-manage/index.js +1723 -1673
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +2212 -2136
- package/api-services/modules/super-admin/index.js +1815 -1747
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +2300 -2236
- package/api-services/modules/supplier/index.js +1900 -1850
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +2204 -2128
- package/api-services/modules/supplychain-manage/index.js +1812 -1744
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +2309 -2242
- package/api-services/modules/systemConfiguration/index.js +1910 -1856
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +2296 -2232
- package/api-services/modules/tool/index.js +1900 -1850
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +2202 -2128
- package/api-services/src/create-service/index.js +1808 -1744
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +4429 -123
- package/common-info/getPermissionMethod/es5.js +4282 -0
- package/common-info/getPermissionMethod/index.d.ts +26 -0
- package/common-info/getPermissionMethod/index.js +3396 -0
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +2 -0
- package/common-info/index.js +3480 -61
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +1073 -997
- package/common-info/set-personal-info/index.js +895 -827
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +0 -2
- package/common-tools/extract-file-name/es5.js +1074 -998
- package/common-tools/extract-file-name/index.js +889 -821
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/handle-data/es5.js +1 -1
- package/common-tools/update-browser-title/es5.js +1 -1
- package/common-tools/update-fav-icon/es5.js +1 -1
- package/create-api-service/check-token/es5.js +980 -904
- package/create-api-service/check-token/index.js +795 -727
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +2313 -2225
- package/create-api-service/index.js +1922 -1836
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/es5.js +1242 -1166
- package/create-api-service/sso/index.js +1006 -938
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/es5.js +1442 -1366
- package/curring-http/index.js +1132 -1064
- package/curring-http/index.js.gz +0 -0
- package/directive/auth/es5.js +70 -44
- package/directive/auth/index.js +49 -32
- package/directive/auth/index.js.gz +0 -0
- package/directive/clickOutside/es5.js +1 -1
- package/directive/hoverInside/es5.js +1 -1
- package/directive/utils/es5.js +1 -1
- package/esm-map.json +6 -1
- package/hooks/use-get-auth/apis.d.ts +4 -1
- package/hooks/use-get-auth/es5.js +192 -62
- package/hooks/use-get-auth/index.d.ts +7 -2
- package/hooks/use-get-auth/index.js +50 -19
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/package.json +3 -3
- package/pinyin-first-character/es5.js +47 -45
- package/pinyin-first-character/index.js +37 -35
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/es5.js +11 -11
- package/style/index.js +10 -10
- package/style/index.js.gz +0 -0
|
@@ -0,0 +1,3396 @@
|
|
|
1
|
+
import { curringHttp as Yn } from "@das-fed/upf-utils/curring-http";
|
|
2
|
+
import { getI18nBridge as Xr } from "@das-fed/upf-utils/i18n-bridge";
|
|
3
|
+
import { getToken as eo, getQuery as to, login as ro, getTokenParams as no, real_uri as oo } from "@das-fed/upf-utils/create-api-service/sso";
|
|
4
|
+
import qt from "dayjs";
|
|
5
|
+
import io from "dayjs/plugin/utc";
|
|
6
|
+
import ao from "dayjs/plugin/timezone";
|
|
7
|
+
import { getProjectInfo as so, getInstanceInfo as lo } from "@das-fed/upf-utils/common-info";
|
|
8
|
+
import { getAccessToken as co } from "@das-fed/upf-utils/token-tools";
|
|
9
|
+
import { getConfig as Zr } from "@das-fed/upf-utils/config";
|
|
10
|
+
import { getValidAccessToken as uo } from "@das-fed/upf-utils/create-api-service/check-token";
|
|
11
|
+
function Yr(t, e) {
|
|
12
|
+
return function() {
|
|
13
|
+
return t.apply(e, arguments);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
const { toString: fo } = Object.prototype, { getPrototypeOf: jt } = Object, { iterator: Qe, toStringTag: en } = Symbol, Xe = /* @__PURE__ */ ((t) => (e) => {
|
|
17
|
+
const r = fo.call(e);
|
|
18
|
+
return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
|
|
19
|
+
})(/* @__PURE__ */ Object.create(null)), q = (t) => (t = t.toLowerCase(), (e) => Xe(e) === t), Ze = (t) => (e) => typeof e === t, { isArray: he } = Array, pe = Ze("undefined");
|
|
20
|
+
function Te(t) {
|
|
21
|
+
return t !== null && !pe(t) && t.constructor !== null && !pe(t.constructor) && $(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
22
|
+
}
|
|
23
|
+
const tn = q("ArrayBuffer");
|
|
24
|
+
function po(t) {
|
|
25
|
+
let e;
|
|
26
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && tn(t.buffer), e;
|
|
27
|
+
}
|
|
28
|
+
const yo = Ze("string"), $ = Ze("function"), rn = Ze("number"), xe = (t) => t !== null && typeof t == "object", ho = (t) => t === !0 || t === !1, Me = (t) => {
|
|
29
|
+
if (Xe(t) !== "object")
|
|
30
|
+
return !1;
|
|
31
|
+
const e = jt(t);
|
|
32
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(en in t) && !(Qe in t);
|
|
33
|
+
}, mo = (t) => {
|
|
34
|
+
if (!xe(t) || Te(t))
|
|
35
|
+
return !1;
|
|
36
|
+
try {
|
|
37
|
+
return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
|
|
38
|
+
} catch {
|
|
39
|
+
return !1;
|
|
40
|
+
}
|
|
41
|
+
}, go = q("Date"), vo = q("File"), wo = q("Blob"), So = q("FileList"), bo = (t) => xe(t) && $(t.pipe), Eo = (t) => {
|
|
42
|
+
let e;
|
|
43
|
+
return t && (typeof FormData == "function" && t instanceof FormData || $(t.append) && ((e = Xe(t)) === "formdata" || // detect form-data instance
|
|
44
|
+
e === "object" && $(t.toString) && t.toString() === "[object FormData]"));
|
|
45
|
+
}, Oo = q("URLSearchParams"), [Ao, Ro, Po, To] = ["ReadableStream", "Request", "Response", "Headers"].map(q), xo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
46
|
+
function Ce(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
47
|
+
if (t === null || typeof t > "u")
|
|
48
|
+
return;
|
|
49
|
+
let n, o;
|
|
50
|
+
if (typeof t != "object" && (t = [t]), he(t))
|
|
51
|
+
for (n = 0, o = t.length; n < o; n++)
|
|
52
|
+
e.call(null, t[n], n, t);
|
|
53
|
+
else {
|
|
54
|
+
if (Te(t))
|
|
55
|
+
return;
|
|
56
|
+
const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), a = i.length;
|
|
57
|
+
let s;
|
|
58
|
+
for (n = 0; n < a; n++)
|
|
59
|
+
s = i[n], e.call(null, t[s], s, t);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function nn(t, e) {
|
|
63
|
+
if (Te(t))
|
|
64
|
+
return null;
|
|
65
|
+
e = e.toLowerCase();
|
|
66
|
+
const r = Object.keys(t);
|
|
67
|
+
let n = r.length, o;
|
|
68
|
+
for (; n-- > 0; )
|
|
69
|
+
if (o = r[n], e === o.toLowerCase())
|
|
70
|
+
return o;
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
const ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, on = (t) => !pe(t) && t !== ee;
|
|
74
|
+
function _t() {
|
|
75
|
+
const { caseless: t, skipUndefined: e } = on(this) && this || {}, r = {}, n = (o, i) => {
|
|
76
|
+
const a = t && nn(r, i) || i;
|
|
77
|
+
Me(r[a]) && Me(o) ? r[a] = _t(r[a], o) : Me(o) ? r[a] = _t({}, o) : he(o) ? r[a] = o.slice() : (!e || !pe(o)) && (r[a] = o);
|
|
78
|
+
};
|
|
79
|
+
for (let o = 0, i = arguments.length; o < i; o++)
|
|
80
|
+
arguments[o] && Ce(arguments[o], n);
|
|
81
|
+
return r;
|
|
82
|
+
}
|
|
83
|
+
const Co = (t, e, r, { allOwnKeys: n } = {}) => (Ce(e, (o, i) => {
|
|
84
|
+
r && $(o) ? t[i] = Yr(o, r) : t[i] = o;
|
|
85
|
+
}, { allOwnKeys: n }), t), _o = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), No = (t, e, r, n) => {
|
|
86
|
+
t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
87
|
+
value: e.prototype
|
|
88
|
+
}), r && Object.assign(t.prototype, r);
|
|
89
|
+
}, Fo = (t, e, r, n) => {
|
|
90
|
+
let o, i, a;
|
|
91
|
+
const s = {};
|
|
92
|
+
if (e = e || {}, t == null) return e;
|
|
93
|
+
do {
|
|
94
|
+
for (o = Object.getOwnPropertyNames(t), i = o.length; i-- > 0; )
|
|
95
|
+
a = o[i], (!n || n(a, t, e)) && !s[a] && (e[a] = t[a], s[a] = !0);
|
|
96
|
+
t = r !== !1 && jt(t);
|
|
97
|
+
} while (t && (!r || r(t, e)) && t !== Object.prototype);
|
|
98
|
+
return e;
|
|
99
|
+
}, Io = (t, e, r) => {
|
|
100
|
+
t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
|
|
101
|
+
const n = t.indexOf(e, r);
|
|
102
|
+
return n !== -1 && n === r;
|
|
103
|
+
}, $o = (t) => {
|
|
104
|
+
if (!t) return null;
|
|
105
|
+
if (he(t)) return t;
|
|
106
|
+
let e = t.length;
|
|
107
|
+
if (!rn(e)) return null;
|
|
108
|
+
const r = new Array(e);
|
|
109
|
+
for (; e-- > 0; )
|
|
110
|
+
r[e] = t[e];
|
|
111
|
+
return r;
|
|
112
|
+
}, Do = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && jt(Uint8Array)), Lo = (t, e) => {
|
|
113
|
+
const n = (t && t[Qe]).call(t);
|
|
114
|
+
let o;
|
|
115
|
+
for (; (o = n.next()) && !o.done; ) {
|
|
116
|
+
const i = o.value;
|
|
117
|
+
e.call(t, i[0], i[1]);
|
|
118
|
+
}
|
|
119
|
+
}, Uo = (t, e) => {
|
|
120
|
+
let r;
|
|
121
|
+
const n = [];
|
|
122
|
+
for (; (r = t.exec(e)) !== null; )
|
|
123
|
+
n.push(r);
|
|
124
|
+
return n;
|
|
125
|
+
}, Bo = q("HTMLFormElement"), Mo = (t) => t.toLowerCase().replace(
|
|
126
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
127
|
+
function(r, n, o) {
|
|
128
|
+
return n.toUpperCase() + o;
|
|
129
|
+
}
|
|
130
|
+
), tr = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), ko = q("RegExp"), an = (t, e) => {
|
|
131
|
+
const r = Object.getOwnPropertyDescriptors(t), n = {};
|
|
132
|
+
Ce(r, (o, i) => {
|
|
133
|
+
let a;
|
|
134
|
+
(a = e(o, i, t)) !== !1 && (n[i] = a || o);
|
|
135
|
+
}), Object.defineProperties(t, n);
|
|
136
|
+
}, qo = (t) => {
|
|
137
|
+
an(t, (e, r) => {
|
|
138
|
+
if ($(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
139
|
+
return !1;
|
|
140
|
+
const n = t[r];
|
|
141
|
+
if ($(n)) {
|
|
142
|
+
if (e.enumerable = !1, "writable" in e) {
|
|
143
|
+
e.writable = !1;
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
e.set || (e.set = () => {
|
|
147
|
+
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}, jo = (t, e) => {
|
|
152
|
+
const r = {}, n = (o) => {
|
|
153
|
+
o.forEach((i) => {
|
|
154
|
+
r[i] = !0;
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
return he(t) ? n(t) : n(String(t).split(e)), r;
|
|
158
|
+
}, Ho = () => {
|
|
159
|
+
}, zo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
160
|
+
function Wo(t) {
|
|
161
|
+
return !!(t && $(t.append) && t[en] === "FormData" && t[Qe]);
|
|
162
|
+
}
|
|
163
|
+
const Go = (t) => {
|
|
164
|
+
const e = new Array(10), r = (n, o) => {
|
|
165
|
+
if (xe(n)) {
|
|
166
|
+
if (e.indexOf(n) >= 0)
|
|
167
|
+
return;
|
|
168
|
+
if (Te(n))
|
|
169
|
+
return n;
|
|
170
|
+
if (!("toJSON" in n)) {
|
|
171
|
+
e[o] = n;
|
|
172
|
+
const i = he(n) ? [] : {};
|
|
173
|
+
return Ce(n, (a, s) => {
|
|
174
|
+
const c = r(a, o + 1);
|
|
175
|
+
!pe(c) && (i[s] = c);
|
|
176
|
+
}), e[o] = void 0, i;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return n;
|
|
180
|
+
};
|
|
181
|
+
return r(t, 0);
|
|
182
|
+
}, Jo = q("AsyncFunction"), Vo = (t) => t && (xe(t) || $(t)) && $(t.then) && $(t.catch), sn = ((t, e) => t ? setImmediate : e ? ((r, n) => (ee.addEventListener("message", ({ source: o, data: i }) => {
|
|
183
|
+
o === ee && i === r && n.length && n.shift()();
|
|
184
|
+
}, !1), (o) => {
|
|
185
|
+
n.push(o), ee.postMessage(r, "*");
|
|
186
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
187
|
+
typeof setImmediate == "function",
|
|
188
|
+
$(ee.postMessage)
|
|
189
|
+
), Ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || sn, Qo = (t) => t != null && $(t[Qe]), f = {
|
|
190
|
+
isArray: he,
|
|
191
|
+
isArrayBuffer: tn,
|
|
192
|
+
isBuffer: Te,
|
|
193
|
+
isFormData: Eo,
|
|
194
|
+
isArrayBufferView: po,
|
|
195
|
+
isString: yo,
|
|
196
|
+
isNumber: rn,
|
|
197
|
+
isBoolean: ho,
|
|
198
|
+
isObject: xe,
|
|
199
|
+
isPlainObject: Me,
|
|
200
|
+
isEmptyObject: mo,
|
|
201
|
+
isReadableStream: Ao,
|
|
202
|
+
isRequest: Ro,
|
|
203
|
+
isResponse: Po,
|
|
204
|
+
isHeaders: To,
|
|
205
|
+
isUndefined: pe,
|
|
206
|
+
isDate: go,
|
|
207
|
+
isFile: vo,
|
|
208
|
+
isBlob: wo,
|
|
209
|
+
isRegExp: ko,
|
|
210
|
+
isFunction: $,
|
|
211
|
+
isStream: bo,
|
|
212
|
+
isURLSearchParams: Oo,
|
|
213
|
+
isTypedArray: Do,
|
|
214
|
+
isFileList: So,
|
|
215
|
+
forEach: Ce,
|
|
216
|
+
merge: _t,
|
|
217
|
+
extend: Co,
|
|
218
|
+
trim: xo,
|
|
219
|
+
stripBOM: _o,
|
|
220
|
+
inherits: No,
|
|
221
|
+
toFlatObject: Fo,
|
|
222
|
+
kindOf: Xe,
|
|
223
|
+
kindOfTest: q,
|
|
224
|
+
endsWith: Io,
|
|
225
|
+
toArray: $o,
|
|
226
|
+
forEachEntry: Lo,
|
|
227
|
+
matchAll: Uo,
|
|
228
|
+
isHTMLForm: Bo,
|
|
229
|
+
hasOwnProperty: tr,
|
|
230
|
+
hasOwnProp: tr,
|
|
231
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
232
|
+
reduceDescriptors: an,
|
|
233
|
+
freezeMethods: qo,
|
|
234
|
+
toObjectSet: jo,
|
|
235
|
+
toCamelCase: Mo,
|
|
236
|
+
noop: Ho,
|
|
237
|
+
toFiniteNumber: zo,
|
|
238
|
+
findKey: nn,
|
|
239
|
+
global: ee,
|
|
240
|
+
isContextDefined: on,
|
|
241
|
+
isSpecCompliantForm: Wo,
|
|
242
|
+
toJSONObject: Go,
|
|
243
|
+
isAsyncFn: Jo,
|
|
244
|
+
isThenable: Vo,
|
|
245
|
+
setImmediate: sn,
|
|
246
|
+
asap: Ko,
|
|
247
|
+
isIterable: Qo
|
|
248
|
+
};
|
|
249
|
+
function w(t, e, r, n, o) {
|
|
250
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
251
|
+
}
|
|
252
|
+
f.inherits(w, Error, {
|
|
253
|
+
toJSON: function() {
|
|
254
|
+
return {
|
|
255
|
+
// Standard
|
|
256
|
+
message: this.message,
|
|
257
|
+
name: this.name,
|
|
258
|
+
// Microsoft
|
|
259
|
+
description: this.description,
|
|
260
|
+
number: this.number,
|
|
261
|
+
// Mozilla
|
|
262
|
+
fileName: this.fileName,
|
|
263
|
+
lineNumber: this.lineNumber,
|
|
264
|
+
columnNumber: this.columnNumber,
|
|
265
|
+
stack: this.stack,
|
|
266
|
+
// Axios
|
|
267
|
+
config: f.toJSONObject(this.config),
|
|
268
|
+
code: this.code,
|
|
269
|
+
status: this.status
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
const ln = w.prototype, cn = {};
|
|
274
|
+
[
|
|
275
|
+
"ERR_BAD_OPTION_VALUE",
|
|
276
|
+
"ERR_BAD_OPTION",
|
|
277
|
+
"ECONNABORTED",
|
|
278
|
+
"ETIMEDOUT",
|
|
279
|
+
"ERR_NETWORK",
|
|
280
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
281
|
+
"ERR_DEPRECATED",
|
|
282
|
+
"ERR_BAD_RESPONSE",
|
|
283
|
+
"ERR_BAD_REQUEST",
|
|
284
|
+
"ERR_CANCELED",
|
|
285
|
+
"ERR_NOT_SUPPORT",
|
|
286
|
+
"ERR_INVALID_URL"
|
|
287
|
+
// eslint-disable-next-line func-names
|
|
288
|
+
].forEach((t) => {
|
|
289
|
+
cn[t] = { value: t };
|
|
290
|
+
});
|
|
291
|
+
Object.defineProperties(w, cn);
|
|
292
|
+
Object.defineProperty(ln, "isAxiosError", { value: !0 });
|
|
293
|
+
w.from = (t, e, r, n, o, i) => {
|
|
294
|
+
const a = Object.create(ln);
|
|
295
|
+
f.toFlatObject(t, a, function(l) {
|
|
296
|
+
return l !== Error.prototype;
|
|
297
|
+
}, (u) => u !== "isAxiosError");
|
|
298
|
+
const s = t && t.message ? t.message : "Error", c = e == null && t ? t.code : e;
|
|
299
|
+
return w.call(a, s, c, r, n, o), t && a.cause == null && Object.defineProperty(a, "cause", { value: t, configurable: !0 }), a.name = t && t.name || "Error", i && Object.assign(a, i), a;
|
|
300
|
+
};
|
|
301
|
+
const Xo = null;
|
|
302
|
+
function Nt(t) {
|
|
303
|
+
return f.isPlainObject(t) || f.isArray(t);
|
|
304
|
+
}
|
|
305
|
+
function un(t) {
|
|
306
|
+
return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
307
|
+
}
|
|
308
|
+
function rr(t, e, r) {
|
|
309
|
+
return t ? t.concat(e).map(function(o, i) {
|
|
310
|
+
return o = un(o), !r && i ? "[" + o + "]" : o;
|
|
311
|
+
}).join(r ? "." : "") : e;
|
|
312
|
+
}
|
|
313
|
+
function Zo(t) {
|
|
314
|
+
return f.isArray(t) && !t.some(Nt);
|
|
315
|
+
}
|
|
316
|
+
const Yo = f.toFlatObject(f, {}, null, function(e) {
|
|
317
|
+
return /^is[A-Z]/.test(e);
|
|
318
|
+
});
|
|
319
|
+
function Ye(t, e, r) {
|
|
320
|
+
if (!f.isObject(t))
|
|
321
|
+
throw new TypeError("target must be an object");
|
|
322
|
+
e = e || new FormData(), r = f.toFlatObject(r, {
|
|
323
|
+
metaTokens: !0,
|
|
324
|
+
dots: !1,
|
|
325
|
+
indexes: !1
|
|
326
|
+
}, !1, function(m, h) {
|
|
327
|
+
return !f.isUndefined(h[m]);
|
|
328
|
+
});
|
|
329
|
+
const n = r.metaTokens, o = r.visitor || l, i = r.dots, a = r.indexes, c = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
|
|
330
|
+
if (!f.isFunction(o))
|
|
331
|
+
throw new TypeError("visitor must be a function");
|
|
332
|
+
function u(d) {
|
|
333
|
+
if (d === null) return "";
|
|
334
|
+
if (f.isDate(d))
|
|
335
|
+
return d.toISOString();
|
|
336
|
+
if (f.isBoolean(d))
|
|
337
|
+
return d.toString();
|
|
338
|
+
if (!c && f.isBlob(d))
|
|
339
|
+
throw new w("Blob is not supported. Use a Buffer instead.");
|
|
340
|
+
return f.isArrayBuffer(d) || f.isTypedArray(d) ? c && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
|
|
341
|
+
}
|
|
342
|
+
function l(d, m, h) {
|
|
343
|
+
let b = d;
|
|
344
|
+
if (d && !h && typeof d == "object") {
|
|
345
|
+
if (f.endsWith(m, "{}"))
|
|
346
|
+
m = n ? m : m.slice(0, -2), d = JSON.stringify(d);
|
|
347
|
+
else if (f.isArray(d) && Zo(d) || (f.isFileList(d) || f.endsWith(m, "[]")) && (b = f.toArray(d)))
|
|
348
|
+
return m = un(m), b.forEach(function(g, E) {
|
|
349
|
+
!(f.isUndefined(g) || g === null) && e.append(
|
|
350
|
+
// eslint-disable-next-line no-nested-ternary
|
|
351
|
+
a === !0 ? rr([m], E, i) : a === null ? m : m + "[]",
|
|
352
|
+
u(g)
|
|
353
|
+
);
|
|
354
|
+
}), !1;
|
|
355
|
+
}
|
|
356
|
+
return Nt(d) ? !0 : (e.append(rr(h, m, i), u(d)), !1);
|
|
357
|
+
}
|
|
358
|
+
const p = [], y = Object.assign(Yo, {
|
|
359
|
+
defaultVisitor: l,
|
|
360
|
+
convertValue: u,
|
|
361
|
+
isVisitable: Nt
|
|
362
|
+
});
|
|
363
|
+
function v(d, m) {
|
|
364
|
+
if (!f.isUndefined(d)) {
|
|
365
|
+
if (p.indexOf(d) !== -1)
|
|
366
|
+
throw Error("Circular reference detected in " + m.join("."));
|
|
367
|
+
p.push(d), f.forEach(d, function(b, A) {
|
|
368
|
+
(!(f.isUndefined(b) || b === null) && o.call(
|
|
369
|
+
e,
|
|
370
|
+
b,
|
|
371
|
+
f.isString(A) ? A.trim() : A,
|
|
372
|
+
m,
|
|
373
|
+
y
|
|
374
|
+
)) === !0 && v(b, m ? m.concat(A) : [A]);
|
|
375
|
+
}), p.pop();
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
if (!f.isObject(t))
|
|
379
|
+
throw new TypeError("data must be an object");
|
|
380
|
+
return v(t), e;
|
|
381
|
+
}
|
|
382
|
+
function nr(t) {
|
|
383
|
+
const e = {
|
|
384
|
+
"!": "%21",
|
|
385
|
+
"'": "%27",
|
|
386
|
+
"(": "%28",
|
|
387
|
+
")": "%29",
|
|
388
|
+
"~": "%7E",
|
|
389
|
+
"%20": "+",
|
|
390
|
+
"%00": "\0"
|
|
391
|
+
};
|
|
392
|
+
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) {
|
|
393
|
+
return e[n];
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
function Ht(t, e) {
|
|
397
|
+
this._pairs = [], t && Ye(t, this, e);
|
|
398
|
+
}
|
|
399
|
+
const fn = Ht.prototype;
|
|
400
|
+
fn.append = function(e, r) {
|
|
401
|
+
this._pairs.push([e, r]);
|
|
402
|
+
};
|
|
403
|
+
fn.toString = function(e) {
|
|
404
|
+
const r = e ? function(n) {
|
|
405
|
+
return e.call(this, n, nr);
|
|
406
|
+
} : nr;
|
|
407
|
+
return this._pairs.map(function(o) {
|
|
408
|
+
return r(o[0]) + "=" + r(o[1]);
|
|
409
|
+
}, "").join("&");
|
|
410
|
+
};
|
|
411
|
+
function ei(t) {
|
|
412
|
+
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
413
|
+
}
|
|
414
|
+
function pn(t, e, r) {
|
|
415
|
+
if (!e)
|
|
416
|
+
return t;
|
|
417
|
+
const n = r && r.encode || ei;
|
|
418
|
+
f.isFunction(r) && (r = {
|
|
419
|
+
serialize: r
|
|
420
|
+
});
|
|
421
|
+
const o = r && r.serialize;
|
|
422
|
+
let i;
|
|
423
|
+
if (o ? i = o(e, r) : i = f.isURLSearchParams(e) ? e.toString() : new Ht(e, r).toString(n), i) {
|
|
424
|
+
const a = t.indexOf("#");
|
|
425
|
+
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
|
|
426
|
+
}
|
|
427
|
+
return t;
|
|
428
|
+
}
|
|
429
|
+
class or {
|
|
430
|
+
constructor() {
|
|
431
|
+
this.handlers = [];
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Add a new interceptor to the stack
|
|
435
|
+
*
|
|
436
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
437
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
438
|
+
*
|
|
439
|
+
* @return {Number} An ID used to remove interceptor later
|
|
440
|
+
*/
|
|
441
|
+
use(e, r, n) {
|
|
442
|
+
return this.handlers.push({
|
|
443
|
+
fulfilled: e,
|
|
444
|
+
rejected: r,
|
|
445
|
+
synchronous: n ? n.synchronous : !1,
|
|
446
|
+
runWhen: n ? n.runWhen : null
|
|
447
|
+
}), this.handlers.length - 1;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Remove an interceptor from the stack
|
|
451
|
+
*
|
|
452
|
+
* @param {Number} id The ID that was returned by `use`
|
|
453
|
+
*
|
|
454
|
+
* @returns {void}
|
|
455
|
+
*/
|
|
456
|
+
eject(e) {
|
|
457
|
+
this.handlers[e] && (this.handlers[e] = null);
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Clear all interceptors from the stack
|
|
461
|
+
*
|
|
462
|
+
* @returns {void}
|
|
463
|
+
*/
|
|
464
|
+
clear() {
|
|
465
|
+
this.handlers && (this.handlers = []);
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Iterate over all the registered interceptors
|
|
469
|
+
*
|
|
470
|
+
* This method is particularly useful for skipping over any
|
|
471
|
+
* interceptors that may have become `null` calling `eject`.
|
|
472
|
+
*
|
|
473
|
+
* @param {Function} fn The function to call for each interceptor
|
|
474
|
+
*
|
|
475
|
+
* @returns {void}
|
|
476
|
+
*/
|
|
477
|
+
forEach(e) {
|
|
478
|
+
f.forEach(this.handlers, function(n) {
|
|
479
|
+
n !== null && e(n);
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
const dn = {
|
|
484
|
+
silentJSONParsing: !0,
|
|
485
|
+
forcedJSONParsing: !0,
|
|
486
|
+
clarifyTimeoutError: !1
|
|
487
|
+
}, ti = typeof URLSearchParams < "u" ? URLSearchParams : Ht, ri = typeof FormData < "u" ? FormData : null, ni = typeof Blob < "u" ? Blob : null, oi = {
|
|
488
|
+
isBrowser: !0,
|
|
489
|
+
classes: {
|
|
490
|
+
URLSearchParams: ti,
|
|
491
|
+
FormData: ri,
|
|
492
|
+
Blob: ni
|
|
493
|
+
},
|
|
494
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
495
|
+
}, zt = typeof window < "u" && typeof document < "u", Ft = typeof navigator == "object" && navigator || void 0, ii = zt && (!Ft || ["ReactNative", "NativeScript", "NS"].indexOf(Ft.product) < 0), ai = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
496
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", si = zt && window.location.href || "http://localhost", li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
497
|
+
__proto__: null,
|
|
498
|
+
hasBrowserEnv: zt,
|
|
499
|
+
hasStandardBrowserEnv: ii,
|
|
500
|
+
hasStandardBrowserWebWorkerEnv: ai,
|
|
501
|
+
navigator: Ft,
|
|
502
|
+
origin: si
|
|
503
|
+
}, Symbol.toStringTag, { value: "Module" })), I = {
|
|
504
|
+
...li,
|
|
505
|
+
...oi
|
|
506
|
+
};
|
|
507
|
+
function ci(t, e) {
|
|
508
|
+
return Ye(t, new I.classes.URLSearchParams(), {
|
|
509
|
+
visitor: function(r, n, o, i) {
|
|
510
|
+
return I.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
511
|
+
},
|
|
512
|
+
...e
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
function ui(t) {
|
|
516
|
+
return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
517
|
+
}
|
|
518
|
+
function fi(t) {
|
|
519
|
+
const e = {}, r = Object.keys(t);
|
|
520
|
+
let n;
|
|
521
|
+
const o = r.length;
|
|
522
|
+
let i;
|
|
523
|
+
for (n = 0; n < o; n++)
|
|
524
|
+
i = r[n], e[i] = t[i];
|
|
525
|
+
return e;
|
|
526
|
+
}
|
|
527
|
+
function yn(t) {
|
|
528
|
+
function e(r, n, o, i) {
|
|
529
|
+
let a = r[i++];
|
|
530
|
+
if (a === "__proto__") return !0;
|
|
531
|
+
const s = Number.isFinite(+a), c = i >= r.length;
|
|
532
|
+
return a = !a && f.isArray(o) ? o.length : a, c ? (f.hasOwnProp(o, a) ? o[a] = [o[a], n] : o[a] = n, !s) : ((!o[a] || !f.isObject(o[a])) && (o[a] = []), e(r, n, o[a], i) && f.isArray(o[a]) && (o[a] = fi(o[a])), !s);
|
|
533
|
+
}
|
|
534
|
+
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
|
535
|
+
const r = {};
|
|
536
|
+
return f.forEachEntry(t, (n, o) => {
|
|
537
|
+
e(ui(n), o, r, 0);
|
|
538
|
+
}), r;
|
|
539
|
+
}
|
|
540
|
+
return null;
|
|
541
|
+
}
|
|
542
|
+
function pi(t, e, r) {
|
|
543
|
+
if (f.isString(t))
|
|
544
|
+
try {
|
|
545
|
+
return (e || JSON.parse)(t), f.trim(t);
|
|
546
|
+
} catch (n) {
|
|
547
|
+
if (n.name !== "SyntaxError")
|
|
548
|
+
throw n;
|
|
549
|
+
}
|
|
550
|
+
return (r || JSON.stringify)(t);
|
|
551
|
+
}
|
|
552
|
+
const _e = {
|
|
553
|
+
transitional: dn,
|
|
554
|
+
adapter: ["xhr", "http", "fetch"],
|
|
555
|
+
transformRequest: [function(e, r) {
|
|
556
|
+
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = f.isObject(e);
|
|
557
|
+
if (i && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
|
|
558
|
+
return o ? JSON.stringify(yn(e)) : e;
|
|
559
|
+
if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
|
|
560
|
+
return e;
|
|
561
|
+
if (f.isArrayBufferView(e))
|
|
562
|
+
return e.buffer;
|
|
563
|
+
if (f.isURLSearchParams(e))
|
|
564
|
+
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
565
|
+
let s;
|
|
566
|
+
if (i) {
|
|
567
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
568
|
+
return ci(e, this.formSerializer).toString();
|
|
569
|
+
if ((s = f.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
570
|
+
const c = this.env && this.env.FormData;
|
|
571
|
+
return Ye(
|
|
572
|
+
s ? { "files[]": e } : e,
|
|
573
|
+
c && new c(),
|
|
574
|
+
this.formSerializer
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return i || o ? (r.setContentType("application/json", !1), pi(e)) : e;
|
|
579
|
+
}],
|
|
580
|
+
transformResponse: [function(e) {
|
|
581
|
+
const r = this.transitional || _e.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
582
|
+
if (f.isResponse(e) || f.isReadableStream(e))
|
|
583
|
+
return e;
|
|
584
|
+
if (e && f.isString(e) && (n && !this.responseType || o)) {
|
|
585
|
+
const a = !(r && r.silentJSONParsing) && o;
|
|
586
|
+
try {
|
|
587
|
+
return JSON.parse(e, this.parseReviver);
|
|
588
|
+
} catch (s) {
|
|
589
|
+
if (a)
|
|
590
|
+
throw s.name === "SyntaxError" ? w.from(s, w.ERR_BAD_RESPONSE, this, null, this.response) : s;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
return e;
|
|
594
|
+
}],
|
|
595
|
+
/**
|
|
596
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
597
|
+
* timeout is not created.
|
|
598
|
+
*/
|
|
599
|
+
timeout: 0,
|
|
600
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
601
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
602
|
+
maxContentLength: -1,
|
|
603
|
+
maxBodyLength: -1,
|
|
604
|
+
env: {
|
|
605
|
+
FormData: I.classes.FormData,
|
|
606
|
+
Blob: I.classes.Blob
|
|
607
|
+
},
|
|
608
|
+
validateStatus: function(e) {
|
|
609
|
+
return e >= 200 && e < 300;
|
|
610
|
+
},
|
|
611
|
+
headers: {
|
|
612
|
+
common: {
|
|
613
|
+
Accept: "application/json, text/plain, */*",
|
|
614
|
+
"Content-Type": void 0
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
619
|
+
_e.headers[t] = {};
|
|
620
|
+
});
|
|
621
|
+
const di = f.toObjectSet([
|
|
622
|
+
"age",
|
|
623
|
+
"authorization",
|
|
624
|
+
"content-length",
|
|
625
|
+
"content-type",
|
|
626
|
+
"etag",
|
|
627
|
+
"expires",
|
|
628
|
+
"from",
|
|
629
|
+
"host",
|
|
630
|
+
"if-modified-since",
|
|
631
|
+
"if-unmodified-since",
|
|
632
|
+
"last-modified",
|
|
633
|
+
"location",
|
|
634
|
+
"max-forwards",
|
|
635
|
+
"proxy-authorization",
|
|
636
|
+
"referer",
|
|
637
|
+
"retry-after",
|
|
638
|
+
"user-agent"
|
|
639
|
+
]), yi = (t) => {
|
|
640
|
+
const e = {};
|
|
641
|
+
let r, n, o;
|
|
642
|
+
return t && t.split(`
|
|
643
|
+
`).forEach(function(a) {
|
|
644
|
+
o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || e[r] && di[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
|
|
645
|
+
}), e;
|
|
646
|
+
}, ir = Symbol("internals");
|
|
647
|
+
function Se(t) {
|
|
648
|
+
return t && String(t).trim().toLowerCase();
|
|
649
|
+
}
|
|
650
|
+
function ke(t) {
|
|
651
|
+
return t === !1 || t == null ? t : f.isArray(t) ? t.map(ke) : String(t);
|
|
652
|
+
}
|
|
653
|
+
function hi(t) {
|
|
654
|
+
const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
655
|
+
let n;
|
|
656
|
+
for (; n = r.exec(t); )
|
|
657
|
+
e[n[1]] = n[2];
|
|
658
|
+
return e;
|
|
659
|
+
}
|
|
660
|
+
const mi = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
661
|
+
function at(t, e, r, n, o) {
|
|
662
|
+
if (f.isFunction(n))
|
|
663
|
+
return n.call(this, e, r);
|
|
664
|
+
if (o && (e = r), !!f.isString(e)) {
|
|
665
|
+
if (f.isString(n))
|
|
666
|
+
return e.indexOf(n) !== -1;
|
|
667
|
+
if (f.isRegExp(n))
|
|
668
|
+
return n.test(e);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
function gi(t) {
|
|
672
|
+
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
|
|
673
|
+
}
|
|
674
|
+
function vi(t, e) {
|
|
675
|
+
const r = f.toCamelCase(" " + e);
|
|
676
|
+
["get", "set", "has"].forEach((n) => {
|
|
677
|
+
Object.defineProperty(t, n + r, {
|
|
678
|
+
value: function(o, i, a) {
|
|
679
|
+
return this[n].call(this, e, o, i, a);
|
|
680
|
+
},
|
|
681
|
+
configurable: !0
|
|
682
|
+
});
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
class D {
|
|
686
|
+
constructor(e) {
|
|
687
|
+
e && this.set(e);
|
|
688
|
+
}
|
|
689
|
+
set(e, r, n) {
|
|
690
|
+
const o = this;
|
|
691
|
+
function i(s, c, u) {
|
|
692
|
+
const l = Se(c);
|
|
693
|
+
if (!l)
|
|
694
|
+
throw new Error("header name must be a non-empty string");
|
|
695
|
+
const p = f.findKey(o, l);
|
|
696
|
+
(!p || o[p] === void 0 || u === !0 || u === void 0 && o[p] !== !1) && (o[p || c] = ke(s));
|
|
697
|
+
}
|
|
698
|
+
const a = (s, c) => f.forEach(s, (u, l) => i(u, l, c));
|
|
699
|
+
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
700
|
+
a(e, r);
|
|
701
|
+
else if (f.isString(e) && (e = e.trim()) && !mi(e))
|
|
702
|
+
a(yi(e), r);
|
|
703
|
+
else if (f.isObject(e) && f.isIterable(e)) {
|
|
704
|
+
let s = {}, c, u;
|
|
705
|
+
for (const l of e) {
|
|
706
|
+
if (!f.isArray(l))
|
|
707
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
708
|
+
s[u = l[0]] = (c = s[u]) ? f.isArray(c) ? [...c, l[1]] : [c, l[1]] : l[1];
|
|
709
|
+
}
|
|
710
|
+
a(s, r);
|
|
711
|
+
} else
|
|
712
|
+
e != null && i(r, e, n);
|
|
713
|
+
return this;
|
|
714
|
+
}
|
|
715
|
+
get(e, r) {
|
|
716
|
+
if (e = Se(e), e) {
|
|
717
|
+
const n = f.findKey(this, e);
|
|
718
|
+
if (n) {
|
|
719
|
+
const o = this[n];
|
|
720
|
+
if (!r)
|
|
721
|
+
return o;
|
|
722
|
+
if (r === !0)
|
|
723
|
+
return hi(o);
|
|
724
|
+
if (f.isFunction(r))
|
|
725
|
+
return r.call(this, o, n);
|
|
726
|
+
if (f.isRegExp(r))
|
|
727
|
+
return r.exec(o);
|
|
728
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
has(e, r) {
|
|
733
|
+
if (e = Se(e), e) {
|
|
734
|
+
const n = f.findKey(this, e);
|
|
735
|
+
return !!(n && this[n] !== void 0 && (!r || at(this, this[n], n, r)));
|
|
736
|
+
}
|
|
737
|
+
return !1;
|
|
738
|
+
}
|
|
739
|
+
delete(e, r) {
|
|
740
|
+
const n = this;
|
|
741
|
+
let o = !1;
|
|
742
|
+
function i(a) {
|
|
743
|
+
if (a = Se(a), a) {
|
|
744
|
+
const s = f.findKey(n, a);
|
|
745
|
+
s && (!r || at(n, n[s], s, r)) && (delete n[s], o = !0);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
return f.isArray(e) ? e.forEach(i) : i(e), o;
|
|
749
|
+
}
|
|
750
|
+
clear(e) {
|
|
751
|
+
const r = Object.keys(this);
|
|
752
|
+
let n = r.length, o = !1;
|
|
753
|
+
for (; n--; ) {
|
|
754
|
+
const i = r[n];
|
|
755
|
+
(!e || at(this, this[i], i, e, !0)) && (delete this[i], o = !0);
|
|
756
|
+
}
|
|
757
|
+
return o;
|
|
758
|
+
}
|
|
759
|
+
normalize(e) {
|
|
760
|
+
const r = this, n = {};
|
|
761
|
+
return f.forEach(this, (o, i) => {
|
|
762
|
+
const a = f.findKey(n, i);
|
|
763
|
+
if (a) {
|
|
764
|
+
r[a] = ke(o), delete r[i];
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
const s = e ? gi(i) : String(i).trim();
|
|
768
|
+
s !== i && delete r[i], r[s] = ke(o), n[s] = !0;
|
|
769
|
+
}), this;
|
|
770
|
+
}
|
|
771
|
+
concat(...e) {
|
|
772
|
+
return this.constructor.concat(this, ...e);
|
|
773
|
+
}
|
|
774
|
+
toJSON(e) {
|
|
775
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
776
|
+
return f.forEach(this, (n, o) => {
|
|
777
|
+
n != null && n !== !1 && (r[o] = e && f.isArray(n) ? n.join(", ") : n);
|
|
778
|
+
}), r;
|
|
779
|
+
}
|
|
780
|
+
[Symbol.iterator]() {
|
|
781
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
782
|
+
}
|
|
783
|
+
toString() {
|
|
784
|
+
return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(`
|
|
785
|
+
`);
|
|
786
|
+
}
|
|
787
|
+
getSetCookie() {
|
|
788
|
+
return this.get("set-cookie") || [];
|
|
789
|
+
}
|
|
790
|
+
get [Symbol.toStringTag]() {
|
|
791
|
+
return "AxiosHeaders";
|
|
792
|
+
}
|
|
793
|
+
static from(e) {
|
|
794
|
+
return e instanceof this ? e : new this(e);
|
|
795
|
+
}
|
|
796
|
+
static concat(e, ...r) {
|
|
797
|
+
const n = new this(e);
|
|
798
|
+
return r.forEach((o) => n.set(o)), n;
|
|
799
|
+
}
|
|
800
|
+
static accessor(e) {
|
|
801
|
+
const n = (this[ir] = this[ir] = {
|
|
802
|
+
accessors: {}
|
|
803
|
+
}).accessors, o = this.prototype;
|
|
804
|
+
function i(a) {
|
|
805
|
+
const s = Se(a);
|
|
806
|
+
n[s] || (vi(o, a), n[s] = !0);
|
|
807
|
+
}
|
|
808
|
+
return f.isArray(e) ? e.forEach(i) : i(e), this;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
D.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
812
|
+
f.reduceDescriptors(D.prototype, ({ value: t }, e) => {
|
|
813
|
+
let r = e[0].toUpperCase() + e.slice(1);
|
|
814
|
+
return {
|
|
815
|
+
get: () => t,
|
|
816
|
+
set(n) {
|
|
817
|
+
this[r] = n;
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
});
|
|
821
|
+
f.freezeMethods(D);
|
|
822
|
+
function st(t, e) {
|
|
823
|
+
const r = this || _e, n = e || r, o = D.from(n.headers);
|
|
824
|
+
let i = n.data;
|
|
825
|
+
return f.forEach(t, function(s) {
|
|
826
|
+
i = s.call(r, i, o.normalize(), e ? e.status : void 0);
|
|
827
|
+
}), o.normalize(), i;
|
|
828
|
+
}
|
|
829
|
+
function hn(t) {
|
|
830
|
+
return !!(t && t.__CANCEL__);
|
|
831
|
+
}
|
|
832
|
+
function me(t, e, r) {
|
|
833
|
+
w.call(this, t ?? "canceled", w.ERR_CANCELED, e, r), this.name = "CanceledError";
|
|
834
|
+
}
|
|
835
|
+
f.inherits(me, w, {
|
|
836
|
+
__CANCEL__: !0
|
|
837
|
+
});
|
|
838
|
+
function mn(t, e, r) {
|
|
839
|
+
const n = r.config.validateStatus;
|
|
840
|
+
!r.status || !n || n(r.status) ? t(r) : e(new w(
|
|
841
|
+
"Request failed with status code " + r.status,
|
|
842
|
+
[w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
843
|
+
r.config,
|
|
844
|
+
r.request,
|
|
845
|
+
r
|
|
846
|
+
));
|
|
847
|
+
}
|
|
848
|
+
function wi(t) {
|
|
849
|
+
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
850
|
+
return e && e[1] || "";
|
|
851
|
+
}
|
|
852
|
+
function Si(t, e) {
|
|
853
|
+
t = t || 10;
|
|
854
|
+
const r = new Array(t), n = new Array(t);
|
|
855
|
+
let o = 0, i = 0, a;
|
|
856
|
+
return e = e !== void 0 ? e : 1e3, function(c) {
|
|
857
|
+
const u = Date.now(), l = n[i];
|
|
858
|
+
a || (a = u), r[o] = c, n[o] = u;
|
|
859
|
+
let p = i, y = 0;
|
|
860
|
+
for (; p !== o; )
|
|
861
|
+
y += r[p++], p = p % t;
|
|
862
|
+
if (o = (o + 1) % t, o === i && (i = (i + 1) % t), u - a < e)
|
|
863
|
+
return;
|
|
864
|
+
const v = l && u - l;
|
|
865
|
+
return v ? Math.round(y * 1e3 / v) : void 0;
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
function bi(t, e) {
|
|
869
|
+
let r = 0, n = 1e3 / e, o, i;
|
|
870
|
+
const a = (u, l = Date.now()) => {
|
|
871
|
+
r = l, o = null, i && (clearTimeout(i), i = null), t(...u);
|
|
872
|
+
};
|
|
873
|
+
return [(...u) => {
|
|
874
|
+
const l = Date.now(), p = l - r;
|
|
875
|
+
p >= n ? a(u, l) : (o = u, i || (i = setTimeout(() => {
|
|
876
|
+
i = null, a(o);
|
|
877
|
+
}, n - p)));
|
|
878
|
+
}, () => o && a(o)];
|
|
879
|
+
}
|
|
880
|
+
const We = (t, e, r = 3) => {
|
|
881
|
+
let n = 0;
|
|
882
|
+
const o = Si(50, 250);
|
|
883
|
+
return bi((i) => {
|
|
884
|
+
const a = i.loaded, s = i.lengthComputable ? i.total : void 0, c = a - n, u = o(c), l = a <= s;
|
|
885
|
+
n = a;
|
|
886
|
+
const p = {
|
|
887
|
+
loaded: a,
|
|
888
|
+
total: s,
|
|
889
|
+
progress: s ? a / s : void 0,
|
|
890
|
+
bytes: c,
|
|
891
|
+
rate: u || void 0,
|
|
892
|
+
estimated: u && s && l ? (s - a) / u : void 0,
|
|
893
|
+
event: i,
|
|
894
|
+
lengthComputable: s != null,
|
|
895
|
+
[e ? "download" : "upload"]: !0
|
|
896
|
+
};
|
|
897
|
+
t(p);
|
|
898
|
+
}, r);
|
|
899
|
+
}, ar = (t, e) => {
|
|
900
|
+
const r = t != null;
|
|
901
|
+
return [(n) => e[0]({
|
|
902
|
+
lengthComputable: r,
|
|
903
|
+
total: t,
|
|
904
|
+
loaded: n
|
|
905
|
+
}), e[1]];
|
|
906
|
+
}, sr = (t) => (...e) => f.asap(() => t(...e)), Ei = I.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, I.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
|
|
907
|
+
new URL(I.origin),
|
|
908
|
+
I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
|
|
909
|
+
) : () => !0, Oi = I.hasStandardBrowserEnv ? (
|
|
910
|
+
// Standard browser envs support document.cookie
|
|
911
|
+
{
|
|
912
|
+
write(t, e, r, n, o, i, a) {
|
|
913
|
+
if (typeof document > "u") return;
|
|
914
|
+
const s = [`${t}=${encodeURIComponent(e)}`];
|
|
915
|
+
f.isNumber(r) && s.push(`expires=${new Date(r).toUTCString()}`), f.isString(n) && s.push(`path=${n}`), f.isString(o) && s.push(`domain=${o}`), i === !0 && s.push("secure"), f.isString(a) && s.push(`SameSite=${a}`), document.cookie = s.join("; ");
|
|
916
|
+
},
|
|
917
|
+
read(t) {
|
|
918
|
+
if (typeof document > "u") return null;
|
|
919
|
+
const e = document.cookie.match(new RegExp("(?:^|; )" + t + "=([^;]*)"));
|
|
920
|
+
return e ? decodeURIComponent(e[1]) : null;
|
|
921
|
+
},
|
|
922
|
+
remove(t) {
|
|
923
|
+
this.write(t, "", Date.now() - 864e5, "/");
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
) : (
|
|
927
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
928
|
+
{
|
|
929
|
+
write() {
|
|
930
|
+
},
|
|
931
|
+
read() {
|
|
932
|
+
return null;
|
|
933
|
+
},
|
|
934
|
+
remove() {
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
);
|
|
938
|
+
function Ai(t) {
|
|
939
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
940
|
+
}
|
|
941
|
+
function Ri(t, e) {
|
|
942
|
+
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
943
|
+
}
|
|
944
|
+
function gn(t, e, r) {
|
|
945
|
+
let n = !Ai(e);
|
|
946
|
+
return t && (n || r == !1) ? Ri(t, e) : e;
|
|
947
|
+
}
|
|
948
|
+
const lr = (t) => t instanceof D ? { ...t } : t;
|
|
949
|
+
function ne(t, e) {
|
|
950
|
+
e = e || {};
|
|
951
|
+
const r = {};
|
|
952
|
+
function n(u, l, p, y) {
|
|
953
|
+
return f.isPlainObject(u) && f.isPlainObject(l) ? f.merge.call({ caseless: y }, u, l) : f.isPlainObject(l) ? f.merge({}, l) : f.isArray(l) ? l.slice() : l;
|
|
954
|
+
}
|
|
955
|
+
function o(u, l, p, y) {
|
|
956
|
+
if (f.isUndefined(l)) {
|
|
957
|
+
if (!f.isUndefined(u))
|
|
958
|
+
return n(void 0, u, p, y);
|
|
959
|
+
} else return n(u, l, p, y);
|
|
960
|
+
}
|
|
961
|
+
function i(u, l) {
|
|
962
|
+
if (!f.isUndefined(l))
|
|
963
|
+
return n(void 0, l);
|
|
964
|
+
}
|
|
965
|
+
function a(u, l) {
|
|
966
|
+
if (f.isUndefined(l)) {
|
|
967
|
+
if (!f.isUndefined(u))
|
|
968
|
+
return n(void 0, u);
|
|
969
|
+
} else return n(void 0, l);
|
|
970
|
+
}
|
|
971
|
+
function s(u, l, p) {
|
|
972
|
+
if (p in e)
|
|
973
|
+
return n(u, l);
|
|
974
|
+
if (p in t)
|
|
975
|
+
return n(void 0, u);
|
|
976
|
+
}
|
|
977
|
+
const c = {
|
|
978
|
+
url: i,
|
|
979
|
+
method: i,
|
|
980
|
+
data: i,
|
|
981
|
+
baseURL: a,
|
|
982
|
+
transformRequest: a,
|
|
983
|
+
transformResponse: a,
|
|
984
|
+
paramsSerializer: a,
|
|
985
|
+
timeout: a,
|
|
986
|
+
timeoutMessage: a,
|
|
987
|
+
withCredentials: a,
|
|
988
|
+
withXSRFToken: a,
|
|
989
|
+
adapter: a,
|
|
990
|
+
responseType: a,
|
|
991
|
+
xsrfCookieName: a,
|
|
992
|
+
xsrfHeaderName: a,
|
|
993
|
+
onUploadProgress: a,
|
|
994
|
+
onDownloadProgress: a,
|
|
995
|
+
decompress: a,
|
|
996
|
+
maxContentLength: a,
|
|
997
|
+
maxBodyLength: a,
|
|
998
|
+
beforeRedirect: a,
|
|
999
|
+
transport: a,
|
|
1000
|
+
httpAgent: a,
|
|
1001
|
+
httpsAgent: a,
|
|
1002
|
+
cancelToken: a,
|
|
1003
|
+
socketPath: a,
|
|
1004
|
+
responseEncoding: a,
|
|
1005
|
+
validateStatus: s,
|
|
1006
|
+
headers: (u, l, p) => o(lr(u), lr(l), p, !0)
|
|
1007
|
+
};
|
|
1008
|
+
return f.forEach(Object.keys({ ...t, ...e }), function(l) {
|
|
1009
|
+
const p = c[l] || o, y = p(t[l], e[l], l);
|
|
1010
|
+
f.isUndefined(y) && p !== s || (r[l] = y);
|
|
1011
|
+
}), r;
|
|
1012
|
+
}
|
|
1013
|
+
const vn = (t) => {
|
|
1014
|
+
const e = ne({}, t);
|
|
1015
|
+
let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: i, headers: a, auth: s } = e;
|
|
1016
|
+
if (e.headers = a = D.from(a), e.url = pn(gn(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), s && a.set(
|
|
1017
|
+
"Authorization",
|
|
1018
|
+
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
1019
|
+
), f.isFormData(r)) {
|
|
1020
|
+
if (I.hasStandardBrowserEnv || I.hasStandardBrowserWebWorkerEnv)
|
|
1021
|
+
a.setContentType(void 0);
|
|
1022
|
+
else if (f.isFunction(r.getHeaders)) {
|
|
1023
|
+
const c = r.getHeaders(), u = ["content-type", "content-length"];
|
|
1024
|
+
Object.entries(c).forEach(([l, p]) => {
|
|
1025
|
+
u.includes(l.toLowerCase()) && a.set(l, p);
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
if (I.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(e)), n || n !== !1 && Ei(e.url))) {
|
|
1030
|
+
const c = o && i && Oi.read(i);
|
|
1031
|
+
c && a.set(o, c);
|
|
1032
|
+
}
|
|
1033
|
+
return e;
|
|
1034
|
+
}, Pi = typeof XMLHttpRequest < "u", Ti = Pi && function(t) {
|
|
1035
|
+
return new Promise(function(r, n) {
|
|
1036
|
+
const o = vn(t);
|
|
1037
|
+
let i = o.data;
|
|
1038
|
+
const a = D.from(o.headers).normalize();
|
|
1039
|
+
let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = o, l, p, y, v, d;
|
|
1040
|
+
function m() {
|
|
1041
|
+
v && v(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
|
|
1042
|
+
}
|
|
1043
|
+
let h = new XMLHttpRequest();
|
|
1044
|
+
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1045
|
+
function b() {
|
|
1046
|
+
if (!h)
|
|
1047
|
+
return;
|
|
1048
|
+
const g = D.from(
|
|
1049
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1050
|
+
), O = {
|
|
1051
|
+
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1052
|
+
status: h.status,
|
|
1053
|
+
statusText: h.statusText,
|
|
1054
|
+
headers: g,
|
|
1055
|
+
config: t,
|
|
1056
|
+
request: h
|
|
1057
|
+
};
|
|
1058
|
+
mn(function(T) {
|
|
1059
|
+
r(T), m();
|
|
1060
|
+
}, function(T) {
|
|
1061
|
+
n(T), m();
|
|
1062
|
+
}, O), h = null;
|
|
1063
|
+
}
|
|
1064
|
+
"onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
|
|
1065
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
1066
|
+
}, h.onabort = function() {
|
|
1067
|
+
h && (n(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
|
|
1068
|
+
}, h.onerror = function(E) {
|
|
1069
|
+
const O = E && E.message ? E.message : "Network Error", L = new w(O, w.ERR_NETWORK, t, h);
|
|
1070
|
+
L.event = E || null, n(L), h = null;
|
|
1071
|
+
}, h.ontimeout = function() {
|
|
1072
|
+
let E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1073
|
+
const O = o.transitional || dn;
|
|
1074
|
+
o.timeoutErrorMessage && (E = o.timeoutErrorMessage), n(new w(
|
|
1075
|
+
E,
|
|
1076
|
+
O.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
|
|
1077
|
+
t,
|
|
1078
|
+
h
|
|
1079
|
+
)), h = null;
|
|
1080
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function(E, O) {
|
|
1081
|
+
h.setRequestHeader(O, E);
|
|
1082
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([y, d] = We(u, !0), h.addEventListener("progress", y)), c && h.upload && ([p, v] = We(c), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
|
|
1083
|
+
h && (n(!g || g.type ? new me(null, t, h) : g), h.abort(), h = null);
|
|
1084
|
+
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1085
|
+
const A = wi(o.url);
|
|
1086
|
+
if (A && I.protocols.indexOf(A) === -1) {
|
|
1087
|
+
n(new w("Unsupported protocol " + A + ":", w.ERR_BAD_REQUEST, t));
|
|
1088
|
+
return;
|
|
1089
|
+
}
|
|
1090
|
+
h.send(i || null);
|
|
1091
|
+
});
|
|
1092
|
+
}, xi = (t, e) => {
|
|
1093
|
+
const { length: r } = t = t ? t.filter(Boolean) : [];
|
|
1094
|
+
if (e || r) {
|
|
1095
|
+
let n = new AbortController(), o;
|
|
1096
|
+
const i = function(u) {
|
|
1097
|
+
if (!o) {
|
|
1098
|
+
o = !0, s();
|
|
1099
|
+
const l = u instanceof Error ? u : this.reason;
|
|
1100
|
+
n.abort(l instanceof w ? l : new me(l instanceof Error ? l.message : l));
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1103
|
+
let a = e && setTimeout(() => {
|
|
1104
|
+
a = null, i(new w(`timeout ${e} of ms exceeded`, w.ETIMEDOUT));
|
|
1105
|
+
}, e);
|
|
1106
|
+
const s = () => {
|
|
1107
|
+
t && (a && clearTimeout(a), a = null, t.forEach((u) => {
|
|
1108
|
+
u.unsubscribe ? u.unsubscribe(i) : u.removeEventListener("abort", i);
|
|
1109
|
+
}), t = null);
|
|
1110
|
+
};
|
|
1111
|
+
t.forEach((u) => u.addEventListener("abort", i));
|
|
1112
|
+
const { signal: c } = n;
|
|
1113
|
+
return c.unsubscribe = () => f.asap(s), c;
|
|
1114
|
+
}
|
|
1115
|
+
}, Ci = function* (t, e) {
|
|
1116
|
+
let r = t.byteLength;
|
|
1117
|
+
if (r < e) {
|
|
1118
|
+
yield t;
|
|
1119
|
+
return;
|
|
1120
|
+
}
|
|
1121
|
+
let n = 0, o;
|
|
1122
|
+
for (; n < r; )
|
|
1123
|
+
o = n + e, yield t.slice(n, o), n = o;
|
|
1124
|
+
}, _i = async function* (t, e) {
|
|
1125
|
+
for await (const r of Ni(t))
|
|
1126
|
+
yield* Ci(r, e);
|
|
1127
|
+
}, Ni = async function* (t) {
|
|
1128
|
+
if (t[Symbol.asyncIterator]) {
|
|
1129
|
+
yield* t;
|
|
1130
|
+
return;
|
|
1131
|
+
}
|
|
1132
|
+
const e = t.getReader();
|
|
1133
|
+
try {
|
|
1134
|
+
for (; ; ) {
|
|
1135
|
+
const { done: r, value: n } = await e.read();
|
|
1136
|
+
if (r)
|
|
1137
|
+
break;
|
|
1138
|
+
yield n;
|
|
1139
|
+
}
|
|
1140
|
+
} finally {
|
|
1141
|
+
await e.cancel();
|
|
1142
|
+
}
|
|
1143
|
+
}, cr = (t, e, r, n) => {
|
|
1144
|
+
const o = _i(t, e);
|
|
1145
|
+
let i = 0, a, s = (c) => {
|
|
1146
|
+
a || (a = !0, n && n(c));
|
|
1147
|
+
};
|
|
1148
|
+
return new ReadableStream({
|
|
1149
|
+
async pull(c) {
|
|
1150
|
+
try {
|
|
1151
|
+
const { done: u, value: l } = await o.next();
|
|
1152
|
+
if (u) {
|
|
1153
|
+
s(), c.close();
|
|
1154
|
+
return;
|
|
1155
|
+
}
|
|
1156
|
+
let p = l.byteLength;
|
|
1157
|
+
if (r) {
|
|
1158
|
+
let y = i += p;
|
|
1159
|
+
r(y);
|
|
1160
|
+
}
|
|
1161
|
+
c.enqueue(new Uint8Array(l));
|
|
1162
|
+
} catch (u) {
|
|
1163
|
+
throw s(u), u;
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
cancel(c) {
|
|
1167
|
+
return s(c), o.return();
|
|
1168
|
+
}
|
|
1169
|
+
}, {
|
|
1170
|
+
highWaterMark: 2
|
|
1171
|
+
});
|
|
1172
|
+
}, ur = 64 * 1024, { isFunction: De } = f, Fi = (({ Request: t, Response: e }) => ({
|
|
1173
|
+
Request: t,
|
|
1174
|
+
Response: e
|
|
1175
|
+
}))(f.global), {
|
|
1176
|
+
ReadableStream: fr,
|
|
1177
|
+
TextEncoder: pr
|
|
1178
|
+
} = f.global, dr = (t, ...e) => {
|
|
1179
|
+
try {
|
|
1180
|
+
return !!t(...e);
|
|
1181
|
+
} catch {
|
|
1182
|
+
return !1;
|
|
1183
|
+
}
|
|
1184
|
+
}, Ii = (t) => {
|
|
1185
|
+
t = f.merge.call({
|
|
1186
|
+
skipUndefined: !0
|
|
1187
|
+
}, Fi, t);
|
|
1188
|
+
const { fetch: e, Request: r, Response: n } = t, o = e ? De(e) : typeof fetch == "function", i = De(r), a = De(n);
|
|
1189
|
+
if (!o)
|
|
1190
|
+
return !1;
|
|
1191
|
+
const s = o && De(fr), c = o && (typeof pr == "function" ? /* @__PURE__ */ ((d) => (m) => d.encode(m))(new pr()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), u = i && s && dr(() => {
|
|
1192
|
+
let d = !1;
|
|
1193
|
+
const m = new r(I.origin, {
|
|
1194
|
+
body: new fr(),
|
|
1195
|
+
method: "POST",
|
|
1196
|
+
get duplex() {
|
|
1197
|
+
return d = !0, "half";
|
|
1198
|
+
}
|
|
1199
|
+
}).headers.has("Content-Type");
|
|
1200
|
+
return d && !m;
|
|
1201
|
+
}), l = a && s && dr(() => f.isReadableStream(new n("").body)), p = {
|
|
1202
|
+
stream: l && ((d) => d.body)
|
|
1203
|
+
};
|
|
1204
|
+
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
|
|
1205
|
+
!p[d] && (p[d] = (m, h) => {
|
|
1206
|
+
let b = m && m[d];
|
|
1207
|
+
if (b)
|
|
1208
|
+
return b.call(m);
|
|
1209
|
+
throw new w(`Response type '${d}' is not supported`, w.ERR_NOT_SUPPORT, h);
|
|
1210
|
+
});
|
|
1211
|
+
});
|
|
1212
|
+
const y = async (d) => {
|
|
1213
|
+
if (d == null)
|
|
1214
|
+
return 0;
|
|
1215
|
+
if (f.isBlob(d))
|
|
1216
|
+
return d.size;
|
|
1217
|
+
if (f.isSpecCompliantForm(d))
|
|
1218
|
+
return (await new r(I.origin, {
|
|
1219
|
+
method: "POST",
|
|
1220
|
+
body: d
|
|
1221
|
+
}).arrayBuffer()).byteLength;
|
|
1222
|
+
if (f.isArrayBufferView(d) || f.isArrayBuffer(d))
|
|
1223
|
+
return d.byteLength;
|
|
1224
|
+
if (f.isURLSearchParams(d) && (d = d + ""), f.isString(d))
|
|
1225
|
+
return (await c(d)).byteLength;
|
|
1226
|
+
}, v = async (d, m) => {
|
|
1227
|
+
const h = f.toFiniteNumber(d.getContentLength());
|
|
1228
|
+
return h ?? y(m);
|
|
1229
|
+
};
|
|
1230
|
+
return async (d) => {
|
|
1231
|
+
let {
|
|
1232
|
+
url: m,
|
|
1233
|
+
method: h,
|
|
1234
|
+
data: b,
|
|
1235
|
+
signal: A,
|
|
1236
|
+
cancelToken: g,
|
|
1237
|
+
timeout: E,
|
|
1238
|
+
onDownloadProgress: O,
|
|
1239
|
+
onUploadProgress: L,
|
|
1240
|
+
responseType: T,
|
|
1241
|
+
headers: V,
|
|
1242
|
+
withCredentials: U = "same-origin",
|
|
1243
|
+
fetchOptions: M
|
|
1244
|
+
} = vn(d), Z = e || fetch;
|
|
1245
|
+
T = T ? (T + "").toLowerCase() : "text";
|
|
1246
|
+
let k = xi([A, g && g.toAbortSignal()], E), _ = null;
|
|
1247
|
+
const N = k && k.unsubscribe && (() => {
|
|
1248
|
+
k.unsubscribe();
|
|
1249
|
+
});
|
|
1250
|
+
let B;
|
|
1251
|
+
try {
|
|
1252
|
+
if (L && u && h !== "get" && h !== "head" && (B = await v(V, b)) !== 0) {
|
|
1253
|
+
let K = new r(m, {
|
|
1254
|
+
method: "POST",
|
|
1255
|
+
body: b,
|
|
1256
|
+
duplex: "half"
|
|
1257
|
+
}), se;
|
|
1258
|
+
if (f.isFormData(b) && (se = K.headers.get("content-type")) && V.setContentType(se), K.body) {
|
|
1259
|
+
const [it, $e] = ar(
|
|
1260
|
+
B,
|
|
1261
|
+
We(sr(L))
|
|
1262
|
+
);
|
|
1263
|
+
b = cr(K.body, ur, it, $e);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
f.isString(U) || (U = U ? "include" : "omit");
|
|
1267
|
+
const F = i && "credentials" in r.prototype, ae = {
|
|
1268
|
+
...M,
|
|
1269
|
+
signal: k,
|
|
1270
|
+
method: h.toUpperCase(),
|
|
1271
|
+
headers: V.normalize().toJSON(),
|
|
1272
|
+
body: b,
|
|
1273
|
+
duplex: "half",
|
|
1274
|
+
credentials: F ? U : void 0
|
|
1275
|
+
};
|
|
1276
|
+
_ = i && new r(m, ae);
|
|
1277
|
+
let j = await (i ? Z(_, M) : Z(m, ae));
|
|
1278
|
+
const ve = l && (T === "stream" || T === "response");
|
|
1279
|
+
if (l && (O || ve && N)) {
|
|
1280
|
+
const K = {};
|
|
1281
|
+
["status", "statusText", "headers"].forEach((er) => {
|
|
1282
|
+
K[er] = j[er];
|
|
1283
|
+
});
|
|
1284
|
+
const se = f.toFiniteNumber(j.headers.get("content-length")), [it, $e] = O && ar(
|
|
1285
|
+
se,
|
|
1286
|
+
We(sr(O), !0)
|
|
1287
|
+
) || [];
|
|
1288
|
+
j = new n(
|
|
1289
|
+
cr(j.body, ur, it, () => {
|
|
1290
|
+
$e && $e(), N && N();
|
|
1291
|
+
}),
|
|
1292
|
+
K
|
|
1293
|
+
);
|
|
1294
|
+
}
|
|
1295
|
+
T = T || "text";
|
|
1296
|
+
let we = await p[f.findKey(p, T) || "text"](j, d);
|
|
1297
|
+
return !ve && N && N(), await new Promise((K, se) => {
|
|
1298
|
+
mn(K, se, {
|
|
1299
|
+
data: we,
|
|
1300
|
+
headers: D.from(j.headers),
|
|
1301
|
+
status: j.status,
|
|
1302
|
+
statusText: j.statusText,
|
|
1303
|
+
config: d,
|
|
1304
|
+
request: _
|
|
1305
|
+
});
|
|
1306
|
+
});
|
|
1307
|
+
} catch (F) {
|
|
1308
|
+
throw N && N(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
|
|
1309
|
+
new w("Network Error", w.ERR_NETWORK, d, _),
|
|
1310
|
+
{
|
|
1311
|
+
cause: F.cause || F
|
|
1312
|
+
}
|
|
1313
|
+
) : w.from(F, F && F.code, d, _);
|
|
1314
|
+
}
|
|
1315
|
+
};
|
|
1316
|
+
}, $i = /* @__PURE__ */ new Map(), wn = (t) => {
|
|
1317
|
+
let e = t && t.env || {};
|
|
1318
|
+
const { fetch: r, Request: n, Response: o } = e, i = [
|
|
1319
|
+
n,
|
|
1320
|
+
o,
|
|
1321
|
+
r
|
|
1322
|
+
];
|
|
1323
|
+
let a = i.length, s = a, c, u, l = $i;
|
|
1324
|
+
for (; s--; )
|
|
1325
|
+
c = i[s], u = l.get(c), u === void 0 && l.set(c, u = s ? /* @__PURE__ */ new Map() : Ii(e)), l = u;
|
|
1326
|
+
return u;
|
|
1327
|
+
};
|
|
1328
|
+
wn();
|
|
1329
|
+
const Wt = {
|
|
1330
|
+
http: Xo,
|
|
1331
|
+
xhr: Ti,
|
|
1332
|
+
fetch: {
|
|
1333
|
+
get: wn
|
|
1334
|
+
}
|
|
1335
|
+
};
|
|
1336
|
+
f.forEach(Wt, (t, e) => {
|
|
1337
|
+
if (t) {
|
|
1338
|
+
try {
|
|
1339
|
+
Object.defineProperty(t, "name", { value: e });
|
|
1340
|
+
} catch {
|
|
1341
|
+
}
|
|
1342
|
+
Object.defineProperty(t, "adapterName", { value: e });
|
|
1343
|
+
}
|
|
1344
|
+
});
|
|
1345
|
+
const yr = (t) => `- ${t}`, Di = (t) => f.isFunction(t) || t === null || t === !1;
|
|
1346
|
+
function Li(t, e) {
|
|
1347
|
+
t = f.isArray(t) ? t : [t];
|
|
1348
|
+
const { length: r } = t;
|
|
1349
|
+
let n, o;
|
|
1350
|
+
const i = {};
|
|
1351
|
+
for (let a = 0; a < r; a++) {
|
|
1352
|
+
n = t[a];
|
|
1353
|
+
let s;
|
|
1354
|
+
if (o = n, !Di(n) && (o = Wt[(s = String(n)).toLowerCase()], o === void 0))
|
|
1355
|
+
throw new w(`Unknown adapter '${s}'`);
|
|
1356
|
+
if (o && (f.isFunction(o) || (o = o.get(e))))
|
|
1357
|
+
break;
|
|
1358
|
+
i[s || "#" + a] = o;
|
|
1359
|
+
}
|
|
1360
|
+
if (!o) {
|
|
1361
|
+
const a = Object.entries(i).map(
|
|
1362
|
+
([c, u]) => `adapter ${c} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1363
|
+
);
|
|
1364
|
+
let s = r ? a.length > 1 ? `since :
|
|
1365
|
+
` + a.map(yr).join(`
|
|
1366
|
+
`) : " " + yr(a[0]) : "as no adapter specified";
|
|
1367
|
+
throw new w(
|
|
1368
|
+
"There is no suitable adapter to dispatch the request " + s,
|
|
1369
|
+
"ERR_NOT_SUPPORT"
|
|
1370
|
+
);
|
|
1371
|
+
}
|
|
1372
|
+
return o;
|
|
1373
|
+
}
|
|
1374
|
+
const Sn = {
|
|
1375
|
+
/**
|
|
1376
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
1377
|
+
* @type {Function}
|
|
1378
|
+
*/
|
|
1379
|
+
getAdapter: Li,
|
|
1380
|
+
/**
|
|
1381
|
+
* Exposes all known adapters
|
|
1382
|
+
* @type {Object<string, Function|Object>}
|
|
1383
|
+
*/
|
|
1384
|
+
adapters: Wt
|
|
1385
|
+
};
|
|
1386
|
+
function lt(t) {
|
|
1387
|
+
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1388
|
+
throw new me(null, t);
|
|
1389
|
+
}
|
|
1390
|
+
function hr(t) {
|
|
1391
|
+
return lt(t), t.headers = D.from(t.headers), t.data = st.call(
|
|
1392
|
+
t,
|
|
1393
|
+
t.transformRequest
|
|
1394
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Sn.getAdapter(t.adapter || _e.adapter, t)(t).then(function(n) {
|
|
1395
|
+
return lt(t), n.data = st.call(
|
|
1396
|
+
t,
|
|
1397
|
+
t.transformResponse,
|
|
1398
|
+
n
|
|
1399
|
+
), n.headers = D.from(n.headers), n;
|
|
1400
|
+
}, function(n) {
|
|
1401
|
+
return hn(n) || (lt(t), n && n.response && (n.response.data = st.call(
|
|
1402
|
+
t,
|
|
1403
|
+
t.transformResponse,
|
|
1404
|
+
n.response
|
|
1405
|
+
), n.response.headers = D.from(n.response.headers))), Promise.reject(n);
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
const bn = "1.13.2", et = {};
|
|
1409
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1410
|
+
et[t] = function(n) {
|
|
1411
|
+
return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1412
|
+
};
|
|
1413
|
+
});
|
|
1414
|
+
const mr = {};
|
|
1415
|
+
et.transitional = function(e, r, n) {
|
|
1416
|
+
function o(i, a) {
|
|
1417
|
+
return "[Axios v" + bn + "] Transitional option '" + i + "'" + a + (n ? ". " + n : "");
|
|
1418
|
+
}
|
|
1419
|
+
return (i, a, s) => {
|
|
1420
|
+
if (e === !1)
|
|
1421
|
+
throw new w(
|
|
1422
|
+
o(a, " has been removed" + (r ? " in " + r : "")),
|
|
1423
|
+
w.ERR_DEPRECATED
|
|
1424
|
+
);
|
|
1425
|
+
return r && !mr[a] && (mr[a] = !0), e ? e(i, a, s) : !0;
|
|
1426
|
+
};
|
|
1427
|
+
};
|
|
1428
|
+
et.spelling = function(e) {
|
|
1429
|
+
return (r, n) => !0;
|
|
1430
|
+
};
|
|
1431
|
+
function Ui(t, e, r) {
|
|
1432
|
+
if (typeof t != "object")
|
|
1433
|
+
throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
|
|
1434
|
+
const n = Object.keys(t);
|
|
1435
|
+
let o = n.length;
|
|
1436
|
+
for (; o-- > 0; ) {
|
|
1437
|
+
const i = n[o], a = e[i];
|
|
1438
|
+
if (a) {
|
|
1439
|
+
const s = t[i], c = s === void 0 || a(s, i, t);
|
|
1440
|
+
if (c !== !0)
|
|
1441
|
+
throw new w("option " + i + " must be " + c, w.ERR_BAD_OPTION_VALUE);
|
|
1442
|
+
continue;
|
|
1443
|
+
}
|
|
1444
|
+
if (r !== !0)
|
|
1445
|
+
throw new w("Unknown option " + i, w.ERR_BAD_OPTION);
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
const qe = {
|
|
1449
|
+
assertOptions: Ui,
|
|
1450
|
+
validators: et
|
|
1451
|
+
}, H = qe.validators;
|
|
1452
|
+
class te {
|
|
1453
|
+
constructor(e) {
|
|
1454
|
+
this.defaults = e || {}, this.interceptors = {
|
|
1455
|
+
request: new or(),
|
|
1456
|
+
response: new or()
|
|
1457
|
+
};
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Dispatch a request
|
|
1461
|
+
*
|
|
1462
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1463
|
+
* @param {?Object} config
|
|
1464
|
+
*
|
|
1465
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1466
|
+
*/
|
|
1467
|
+
async request(e, r) {
|
|
1468
|
+
try {
|
|
1469
|
+
return await this._request(e, r);
|
|
1470
|
+
} catch (n) {
|
|
1471
|
+
if (n instanceof Error) {
|
|
1472
|
+
let o = {};
|
|
1473
|
+
Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
|
|
1474
|
+
const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
1475
|
+
try {
|
|
1476
|
+
n.stack ? i && !String(n.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (n.stack += `
|
|
1477
|
+
` + i) : n.stack = i;
|
|
1478
|
+
} catch {
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
throw n;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
_request(e, r) {
|
|
1485
|
+
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = ne(this.defaults, r);
|
|
1486
|
+
const { transitional: n, paramsSerializer: o, headers: i } = r;
|
|
1487
|
+
n !== void 0 && qe.assertOptions(n, {
|
|
1488
|
+
silentJSONParsing: H.transitional(H.boolean),
|
|
1489
|
+
forcedJSONParsing: H.transitional(H.boolean),
|
|
1490
|
+
clarifyTimeoutError: H.transitional(H.boolean)
|
|
1491
|
+
}, !1), o != null && (f.isFunction(o) ? r.paramsSerializer = {
|
|
1492
|
+
serialize: o
|
|
1493
|
+
} : qe.assertOptions(o, {
|
|
1494
|
+
encode: H.function,
|
|
1495
|
+
serialize: H.function
|
|
1496
|
+
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), qe.assertOptions(r, {
|
|
1497
|
+
baseUrl: H.spelling("baseURL"),
|
|
1498
|
+
withXsrfToken: H.spelling("withXSRFToken")
|
|
1499
|
+
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1500
|
+
let a = i && f.merge(
|
|
1501
|
+
i.common,
|
|
1502
|
+
i[r.method]
|
|
1503
|
+
);
|
|
1504
|
+
i && f.forEach(
|
|
1505
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1506
|
+
(d) => {
|
|
1507
|
+
delete i[d];
|
|
1508
|
+
}
|
|
1509
|
+
), r.headers = D.concat(a, i);
|
|
1510
|
+
const s = [];
|
|
1511
|
+
let c = !0;
|
|
1512
|
+
this.interceptors.request.forEach(function(m) {
|
|
1513
|
+
typeof m.runWhen == "function" && m.runWhen(r) === !1 || (c = c && m.synchronous, s.unshift(m.fulfilled, m.rejected));
|
|
1514
|
+
});
|
|
1515
|
+
const u = [];
|
|
1516
|
+
this.interceptors.response.forEach(function(m) {
|
|
1517
|
+
u.push(m.fulfilled, m.rejected);
|
|
1518
|
+
});
|
|
1519
|
+
let l, p = 0, y;
|
|
1520
|
+
if (!c) {
|
|
1521
|
+
const d = [hr.bind(this), void 0];
|
|
1522
|
+
for (d.unshift(...s), d.push(...u), y = d.length, l = Promise.resolve(r); p < y; )
|
|
1523
|
+
l = l.then(d[p++], d[p++]);
|
|
1524
|
+
return l;
|
|
1525
|
+
}
|
|
1526
|
+
y = s.length;
|
|
1527
|
+
let v = r;
|
|
1528
|
+
for (; p < y; ) {
|
|
1529
|
+
const d = s[p++], m = s[p++];
|
|
1530
|
+
try {
|
|
1531
|
+
v = d(v);
|
|
1532
|
+
} catch (h) {
|
|
1533
|
+
m.call(this, h);
|
|
1534
|
+
break;
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
try {
|
|
1538
|
+
l = hr.call(this, v);
|
|
1539
|
+
} catch (d) {
|
|
1540
|
+
return Promise.reject(d);
|
|
1541
|
+
}
|
|
1542
|
+
for (p = 0, y = u.length; p < y; )
|
|
1543
|
+
l = l.then(u[p++], u[p++]);
|
|
1544
|
+
return l;
|
|
1545
|
+
}
|
|
1546
|
+
getUri(e) {
|
|
1547
|
+
e = ne(this.defaults, e);
|
|
1548
|
+
const r = gn(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1549
|
+
return pn(r, e.params, e.paramsSerializer);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1553
|
+
te.prototype[e] = function(r, n) {
|
|
1554
|
+
return this.request(ne(n || {}, {
|
|
1555
|
+
method: e,
|
|
1556
|
+
url: r,
|
|
1557
|
+
data: (n || {}).data
|
|
1558
|
+
}));
|
|
1559
|
+
};
|
|
1560
|
+
});
|
|
1561
|
+
f.forEach(["post", "put", "patch"], function(e) {
|
|
1562
|
+
function r(n) {
|
|
1563
|
+
return function(i, a, s) {
|
|
1564
|
+
return this.request(ne(s || {}, {
|
|
1565
|
+
method: e,
|
|
1566
|
+
headers: n ? {
|
|
1567
|
+
"Content-Type": "multipart/form-data"
|
|
1568
|
+
} : {},
|
|
1569
|
+
url: i,
|
|
1570
|
+
data: a
|
|
1571
|
+
}));
|
|
1572
|
+
};
|
|
1573
|
+
}
|
|
1574
|
+
te.prototype[e] = r(), te.prototype[e + "Form"] = r(!0);
|
|
1575
|
+
});
|
|
1576
|
+
class Gt {
|
|
1577
|
+
constructor(e) {
|
|
1578
|
+
if (typeof e != "function")
|
|
1579
|
+
throw new TypeError("executor must be a function.");
|
|
1580
|
+
let r;
|
|
1581
|
+
this.promise = new Promise(function(i) {
|
|
1582
|
+
r = i;
|
|
1583
|
+
});
|
|
1584
|
+
const n = this;
|
|
1585
|
+
this.promise.then((o) => {
|
|
1586
|
+
if (!n._listeners) return;
|
|
1587
|
+
let i = n._listeners.length;
|
|
1588
|
+
for (; i-- > 0; )
|
|
1589
|
+
n._listeners[i](o);
|
|
1590
|
+
n._listeners = null;
|
|
1591
|
+
}), this.promise.then = (o) => {
|
|
1592
|
+
let i;
|
|
1593
|
+
const a = new Promise((s) => {
|
|
1594
|
+
n.subscribe(s), i = s;
|
|
1595
|
+
}).then(o);
|
|
1596
|
+
return a.cancel = function() {
|
|
1597
|
+
n.unsubscribe(i);
|
|
1598
|
+
}, a;
|
|
1599
|
+
}, e(function(i, a, s) {
|
|
1600
|
+
n.reason || (n.reason = new me(i, a, s), r(n.reason));
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
1605
|
+
*/
|
|
1606
|
+
throwIfRequested() {
|
|
1607
|
+
if (this.reason)
|
|
1608
|
+
throw this.reason;
|
|
1609
|
+
}
|
|
1610
|
+
/**
|
|
1611
|
+
* Subscribe to the cancel signal
|
|
1612
|
+
*/
|
|
1613
|
+
subscribe(e) {
|
|
1614
|
+
if (this.reason) {
|
|
1615
|
+
e(this.reason);
|
|
1616
|
+
return;
|
|
1617
|
+
}
|
|
1618
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* Unsubscribe from the cancel signal
|
|
1622
|
+
*/
|
|
1623
|
+
unsubscribe(e) {
|
|
1624
|
+
if (!this._listeners)
|
|
1625
|
+
return;
|
|
1626
|
+
const r = this._listeners.indexOf(e);
|
|
1627
|
+
r !== -1 && this._listeners.splice(r, 1);
|
|
1628
|
+
}
|
|
1629
|
+
toAbortSignal() {
|
|
1630
|
+
const e = new AbortController(), r = (n) => {
|
|
1631
|
+
e.abort(n);
|
|
1632
|
+
};
|
|
1633
|
+
return this.subscribe(r), e.signal.unsubscribe = () => this.unsubscribe(r), e.signal;
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1637
|
+
* cancels the `CancelToken`.
|
|
1638
|
+
*/
|
|
1639
|
+
static source() {
|
|
1640
|
+
let e;
|
|
1641
|
+
return {
|
|
1642
|
+
token: new Gt(function(o) {
|
|
1643
|
+
e = o;
|
|
1644
|
+
}),
|
|
1645
|
+
cancel: e
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
function Bi(t) {
|
|
1650
|
+
return function(r) {
|
|
1651
|
+
return t.apply(null, r);
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
function Mi(t) {
|
|
1655
|
+
return f.isObject(t) && t.isAxiosError === !0;
|
|
1656
|
+
}
|
|
1657
|
+
const It = {
|
|
1658
|
+
Continue: 100,
|
|
1659
|
+
SwitchingProtocols: 101,
|
|
1660
|
+
Processing: 102,
|
|
1661
|
+
EarlyHints: 103,
|
|
1662
|
+
Ok: 200,
|
|
1663
|
+
Created: 201,
|
|
1664
|
+
Accepted: 202,
|
|
1665
|
+
NonAuthoritativeInformation: 203,
|
|
1666
|
+
NoContent: 204,
|
|
1667
|
+
ResetContent: 205,
|
|
1668
|
+
PartialContent: 206,
|
|
1669
|
+
MultiStatus: 207,
|
|
1670
|
+
AlreadyReported: 208,
|
|
1671
|
+
ImUsed: 226,
|
|
1672
|
+
MultipleChoices: 300,
|
|
1673
|
+
MovedPermanently: 301,
|
|
1674
|
+
Found: 302,
|
|
1675
|
+
SeeOther: 303,
|
|
1676
|
+
NotModified: 304,
|
|
1677
|
+
UseProxy: 305,
|
|
1678
|
+
Unused: 306,
|
|
1679
|
+
TemporaryRedirect: 307,
|
|
1680
|
+
PermanentRedirect: 308,
|
|
1681
|
+
BadRequest: 400,
|
|
1682
|
+
Unauthorized: 401,
|
|
1683
|
+
PaymentRequired: 402,
|
|
1684
|
+
Forbidden: 403,
|
|
1685
|
+
NotFound: 404,
|
|
1686
|
+
MethodNotAllowed: 405,
|
|
1687
|
+
NotAcceptable: 406,
|
|
1688
|
+
ProxyAuthenticationRequired: 407,
|
|
1689
|
+
RequestTimeout: 408,
|
|
1690
|
+
Conflict: 409,
|
|
1691
|
+
Gone: 410,
|
|
1692
|
+
LengthRequired: 411,
|
|
1693
|
+
PreconditionFailed: 412,
|
|
1694
|
+
PayloadTooLarge: 413,
|
|
1695
|
+
UriTooLong: 414,
|
|
1696
|
+
UnsupportedMediaType: 415,
|
|
1697
|
+
RangeNotSatisfiable: 416,
|
|
1698
|
+
ExpectationFailed: 417,
|
|
1699
|
+
ImATeapot: 418,
|
|
1700
|
+
MisdirectedRequest: 421,
|
|
1701
|
+
UnprocessableEntity: 422,
|
|
1702
|
+
Locked: 423,
|
|
1703
|
+
FailedDependency: 424,
|
|
1704
|
+
TooEarly: 425,
|
|
1705
|
+
UpgradeRequired: 426,
|
|
1706
|
+
PreconditionRequired: 428,
|
|
1707
|
+
TooManyRequests: 429,
|
|
1708
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1709
|
+
UnavailableForLegalReasons: 451,
|
|
1710
|
+
InternalServerError: 500,
|
|
1711
|
+
NotImplemented: 501,
|
|
1712
|
+
BadGateway: 502,
|
|
1713
|
+
ServiceUnavailable: 503,
|
|
1714
|
+
GatewayTimeout: 504,
|
|
1715
|
+
HttpVersionNotSupported: 505,
|
|
1716
|
+
VariantAlsoNegotiates: 506,
|
|
1717
|
+
InsufficientStorage: 507,
|
|
1718
|
+
LoopDetected: 508,
|
|
1719
|
+
NotExtended: 510,
|
|
1720
|
+
NetworkAuthenticationRequired: 511,
|
|
1721
|
+
WebServerIsDown: 521,
|
|
1722
|
+
ConnectionTimedOut: 522,
|
|
1723
|
+
OriginIsUnreachable: 523,
|
|
1724
|
+
TimeoutOccurred: 524,
|
|
1725
|
+
SslHandshakeFailed: 525,
|
|
1726
|
+
InvalidSslCertificate: 526
|
|
1727
|
+
};
|
|
1728
|
+
Object.entries(It).forEach(([t, e]) => {
|
|
1729
|
+
It[e] = t;
|
|
1730
|
+
});
|
|
1731
|
+
function En(t) {
|
|
1732
|
+
const e = new te(t), r = Yr(te.prototype.request, e);
|
|
1733
|
+
return f.extend(r, te.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
1734
|
+
return En(ne(t, o));
|
|
1735
|
+
}, r;
|
|
1736
|
+
}
|
|
1737
|
+
const P = En(_e);
|
|
1738
|
+
P.Axios = te;
|
|
1739
|
+
P.CanceledError = me;
|
|
1740
|
+
P.CancelToken = Gt;
|
|
1741
|
+
P.isCancel = hn;
|
|
1742
|
+
P.VERSION = bn;
|
|
1743
|
+
P.toFormData = Ye;
|
|
1744
|
+
P.AxiosError = w;
|
|
1745
|
+
P.Cancel = P.CanceledError;
|
|
1746
|
+
P.all = function(e) {
|
|
1747
|
+
return Promise.all(e);
|
|
1748
|
+
};
|
|
1749
|
+
P.spread = Bi;
|
|
1750
|
+
P.isAxiosError = Mi;
|
|
1751
|
+
P.mergeConfig = ne;
|
|
1752
|
+
P.AxiosHeaders = D;
|
|
1753
|
+
P.formToJSON = (t) => yn(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1754
|
+
P.getAdapter = Sn.getAdapter;
|
|
1755
|
+
P.HttpStatusCode = It;
|
|
1756
|
+
P.default = P;
|
|
1757
|
+
var gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1758
|
+
function ki(t) {
|
|
1759
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1760
|
+
}
|
|
1761
|
+
function qi(t) {
|
|
1762
|
+
if (t.__esModule) return t;
|
|
1763
|
+
var e = t.default;
|
|
1764
|
+
if (typeof e == "function") {
|
|
1765
|
+
var r = function n() {
|
|
1766
|
+
return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
|
|
1767
|
+
};
|
|
1768
|
+
r.prototype = e.prototype;
|
|
1769
|
+
} else r = {};
|
|
1770
|
+
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(t).forEach(function(n) {
|
|
1771
|
+
var o = Object.getOwnPropertyDescriptor(t, n);
|
|
1772
|
+
Object.defineProperty(r, n, o.get ? o : {
|
|
1773
|
+
enumerable: !0,
|
|
1774
|
+
get: function() {
|
|
1775
|
+
return t[n];
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
}), r;
|
|
1779
|
+
}
|
|
1780
|
+
var ge = TypeError;
|
|
1781
|
+
const ji = {}, Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1782
|
+
__proto__: null,
|
|
1783
|
+
default: ji
|
|
1784
|
+
}, Symbol.toStringTag, { value: "Module" })), zi = /* @__PURE__ */ qi(Hi);
|
|
1785
|
+
var Jt = typeof Map == "function" && Map.prototype, ct = Object.getOwnPropertyDescriptor && Jt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ge = Jt && ct && typeof ct.get == "function" ? ct.get : null, vr = Jt && Map.prototype.forEach, Vt = typeof Set == "function" && Set.prototype, ut = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Je = Vt && ut && typeof ut.get == "function" ? ut.get : null, wr = Vt && Set.prototype.forEach, Wi = typeof WeakMap == "function" && WeakMap.prototype, Ee = Wi ? WeakMap.prototype.has : null, Gi = typeof WeakSet == "function" && WeakSet.prototype, Oe = Gi ? WeakSet.prototype.has : null, Ji = typeof WeakRef == "function" && WeakRef.prototype, Sr = Ji ? WeakRef.prototype.deref : null, Vi = Boolean.prototype.valueOf, Ki = Object.prototype.toString, Qi = Function.prototype.toString, Xi = String.prototype.match, Kt = String.prototype.slice, Q = String.prototype.replace, Zi = String.prototype.toUpperCase, br = String.prototype.toLowerCase, On = RegExp.prototype.test, Er = Array.prototype.concat, G = Array.prototype.join, Yi = Array.prototype.slice, Or = Math.floor, $t = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ft = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, de = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ae = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === de || !0) ? Symbol.toStringTag : null, An = Object.prototype.propertyIsEnumerable, Ar = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1786
|
+
return t.__proto__;
|
|
1787
|
+
} : null);
|
|
1788
|
+
function Rr(t, e) {
|
|
1789
|
+
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || On.call(/e/, e))
|
|
1790
|
+
return e;
|
|
1791
|
+
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1792
|
+
if (typeof t == "number") {
|
|
1793
|
+
var n = t < 0 ? -Or(-t) : Or(t);
|
|
1794
|
+
if (n !== t) {
|
|
1795
|
+
var o = String(n), i = Kt.call(e, o.length + 1);
|
|
1796
|
+
return Q.call(o, r, "$&_") + "." + Q.call(Q.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
return Q.call(e, r, "$&_");
|
|
1800
|
+
}
|
|
1801
|
+
var Lt = zi, Pr = Lt.custom, Tr = Tn(Pr) ? Pr : null, Rn = {
|
|
1802
|
+
__proto__: null,
|
|
1803
|
+
double: '"',
|
|
1804
|
+
single: "'"
|
|
1805
|
+
}, ea = {
|
|
1806
|
+
__proto__: null,
|
|
1807
|
+
double: /(["\\])/g,
|
|
1808
|
+
single: /(['\\])/g
|
|
1809
|
+
}, tt = function t(e, r, n, o) {
|
|
1810
|
+
var i = r || {};
|
|
1811
|
+
if (J(i, "quoteStyle") && !J(Rn, i.quoteStyle))
|
|
1812
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1813
|
+
if (J(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
|
|
1814
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1815
|
+
var a = J(i, "customInspect") ? i.customInspect : !0;
|
|
1816
|
+
if (typeof a != "boolean" && a !== "symbol")
|
|
1817
|
+
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
1818
|
+
if (J(i, "indent") && i.indent !== null && i.indent !== " " && !(parseInt(i.indent, 10) === i.indent && i.indent > 0))
|
|
1819
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1820
|
+
if (J(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
|
|
1821
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1822
|
+
var s = i.numericSeparator;
|
|
1823
|
+
if (typeof e > "u")
|
|
1824
|
+
return "undefined";
|
|
1825
|
+
if (e === null)
|
|
1826
|
+
return "null";
|
|
1827
|
+
if (typeof e == "boolean")
|
|
1828
|
+
return e ? "true" : "false";
|
|
1829
|
+
if (typeof e == "string")
|
|
1830
|
+
return Cn(e, i);
|
|
1831
|
+
if (typeof e == "number") {
|
|
1832
|
+
if (e === 0)
|
|
1833
|
+
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
1834
|
+
var c = String(e);
|
|
1835
|
+
return s ? Rr(e, c) : c;
|
|
1836
|
+
}
|
|
1837
|
+
if (typeof e == "bigint") {
|
|
1838
|
+
var u = String(e) + "n";
|
|
1839
|
+
return s ? Rr(e, u) : u;
|
|
1840
|
+
}
|
|
1841
|
+
var l = typeof i.depth > "u" ? 5 : i.depth;
|
|
1842
|
+
if (typeof n > "u" && (n = 0), n >= l && l > 0 && typeof e == "object")
|
|
1843
|
+
return Ut(e) ? "[Array]" : "[Object]";
|
|
1844
|
+
var p = va(i, n);
|
|
1845
|
+
if (typeof o > "u")
|
|
1846
|
+
o = [];
|
|
1847
|
+
else if (xn(o, e) >= 0)
|
|
1848
|
+
return "[Circular]";
|
|
1849
|
+
function y(_, N, B) {
|
|
1850
|
+
if (N && (o = Yi.call(o), o.push(N)), B) {
|
|
1851
|
+
var F = {
|
|
1852
|
+
depth: i.depth
|
|
1853
|
+
};
|
|
1854
|
+
return J(i, "quoteStyle") && (F.quoteStyle = i.quoteStyle), t(_, F, n + 1, o);
|
|
1855
|
+
}
|
|
1856
|
+
return t(_, i, n + 1, o);
|
|
1857
|
+
}
|
|
1858
|
+
if (typeof e == "function" && !xr(e)) {
|
|
1859
|
+
var v = ca(e), d = Le(e, y);
|
|
1860
|
+
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (d.length > 0 ? " { " + G.call(d, ", ") + " }" : "");
|
|
1861
|
+
}
|
|
1862
|
+
if (Tn(e)) {
|
|
1863
|
+
var m = de ? Q.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(e);
|
|
1864
|
+
return typeof e == "object" && !de ? be(m) : m;
|
|
1865
|
+
}
|
|
1866
|
+
if (ha(e)) {
|
|
1867
|
+
for (var h = "<" + br.call(String(e.nodeName)), b = e.attributes || [], A = 0; A < b.length; A++)
|
|
1868
|
+
h += " " + b[A].name + "=" + Pn(ta(b[A].value), "double", i);
|
|
1869
|
+
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + br.call(String(e.nodeName)) + ">", h;
|
|
1870
|
+
}
|
|
1871
|
+
if (Ut(e)) {
|
|
1872
|
+
if (e.length === 0)
|
|
1873
|
+
return "[]";
|
|
1874
|
+
var g = Le(e, y);
|
|
1875
|
+
return p && !ga(g) ? "[" + Bt(g, p) + "]" : "[ " + G.call(g, ", ") + " ]";
|
|
1876
|
+
}
|
|
1877
|
+
if (na(e)) {
|
|
1878
|
+
var E = Le(e, y);
|
|
1879
|
+
return !("cause" in Error.prototype) && "cause" in e && !An.call(e, "cause") ? "{ [" + String(e) + "] " + G.call(Er.call("[cause]: " + y(e.cause), E), ", ") + " }" : E.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + G.call(E, ", ") + " }";
|
|
1880
|
+
}
|
|
1881
|
+
if (typeof e == "object" && a) {
|
|
1882
|
+
if (Tr && typeof e[Tr] == "function" && Lt)
|
|
1883
|
+
return Lt(e, { depth: l - n });
|
|
1884
|
+
if (a !== "symbol" && typeof e.inspect == "function")
|
|
1885
|
+
return e.inspect();
|
|
1886
|
+
}
|
|
1887
|
+
if (ua(e)) {
|
|
1888
|
+
var O = [];
|
|
1889
|
+
return vr && vr.call(e, function(_, N) {
|
|
1890
|
+
O.push(y(N, e, !0) + " => " + y(_, e));
|
|
1891
|
+
}), Cr("Map", Ge.call(e), O, p);
|
|
1892
|
+
}
|
|
1893
|
+
if (da(e)) {
|
|
1894
|
+
var L = [];
|
|
1895
|
+
return wr && wr.call(e, function(_) {
|
|
1896
|
+
L.push(y(_, e));
|
|
1897
|
+
}), Cr("Set", Je.call(e), L, p);
|
|
1898
|
+
}
|
|
1899
|
+
if (fa(e))
|
|
1900
|
+
return pt("WeakMap");
|
|
1901
|
+
if (ya(e))
|
|
1902
|
+
return pt("WeakSet");
|
|
1903
|
+
if (pa(e))
|
|
1904
|
+
return pt("WeakRef");
|
|
1905
|
+
if (ia(e))
|
|
1906
|
+
return be(y(Number(e)));
|
|
1907
|
+
if (sa(e))
|
|
1908
|
+
return be(y($t.call(e)));
|
|
1909
|
+
if (aa(e))
|
|
1910
|
+
return be(Vi.call(e));
|
|
1911
|
+
if (oa(e))
|
|
1912
|
+
return be(y(String(e)));
|
|
1913
|
+
if (typeof window < "u" && e === window)
|
|
1914
|
+
return "{ [object Window] }";
|
|
1915
|
+
if (typeof globalThis < "u" && e === globalThis || typeof gr < "u" && e === gr)
|
|
1916
|
+
return "{ [object globalThis] }";
|
|
1917
|
+
if (!ra(e) && !xr(e)) {
|
|
1918
|
+
var T = Le(e, y), V = Ar ? Ar(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", M = !V && Ae && Object(e) === e && Ae in e ? Kt.call(X(e), 8, -1) : U ? "Object" : "", Z = V || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", k = Z + (M || U ? "[" + G.call(Er.call([], M || [], U || []), ": ") + "] " : "");
|
|
1919
|
+
return T.length === 0 ? k + "{}" : p ? k + "{" + Bt(T, p) + "}" : k + "{ " + G.call(T, ", ") + " }";
|
|
1920
|
+
}
|
|
1921
|
+
return String(e);
|
|
1922
|
+
};
|
|
1923
|
+
function Pn(t, e, r) {
|
|
1924
|
+
var n = r.quoteStyle || e, o = Rn[n];
|
|
1925
|
+
return o + t + o;
|
|
1926
|
+
}
|
|
1927
|
+
function ta(t) {
|
|
1928
|
+
return Q.call(String(t), /"/g, """);
|
|
1929
|
+
}
|
|
1930
|
+
function ie(t) {
|
|
1931
|
+
return !Ae || !(typeof t == "object" && (Ae in t || typeof t[Ae] < "u"));
|
|
1932
|
+
}
|
|
1933
|
+
function Ut(t) {
|
|
1934
|
+
return X(t) === "[object Array]" && ie(t);
|
|
1935
|
+
}
|
|
1936
|
+
function ra(t) {
|
|
1937
|
+
return X(t) === "[object Date]" && ie(t);
|
|
1938
|
+
}
|
|
1939
|
+
function xr(t) {
|
|
1940
|
+
return X(t) === "[object RegExp]" && ie(t);
|
|
1941
|
+
}
|
|
1942
|
+
function na(t) {
|
|
1943
|
+
return X(t) === "[object Error]" && ie(t);
|
|
1944
|
+
}
|
|
1945
|
+
function oa(t) {
|
|
1946
|
+
return X(t) === "[object String]" && ie(t);
|
|
1947
|
+
}
|
|
1948
|
+
function ia(t) {
|
|
1949
|
+
return X(t) === "[object Number]" && ie(t);
|
|
1950
|
+
}
|
|
1951
|
+
function aa(t) {
|
|
1952
|
+
return X(t) === "[object Boolean]" && ie(t);
|
|
1953
|
+
}
|
|
1954
|
+
function Tn(t) {
|
|
1955
|
+
if (de)
|
|
1956
|
+
return t && typeof t == "object" && t instanceof Symbol;
|
|
1957
|
+
if (typeof t == "symbol")
|
|
1958
|
+
return !0;
|
|
1959
|
+
if (!t || typeof t != "object" || !Dt)
|
|
1960
|
+
return !1;
|
|
1961
|
+
try {
|
|
1962
|
+
return Dt.call(t), !0;
|
|
1963
|
+
} catch {
|
|
1964
|
+
}
|
|
1965
|
+
return !1;
|
|
1966
|
+
}
|
|
1967
|
+
function sa(t) {
|
|
1968
|
+
if (!t || typeof t != "object" || !$t)
|
|
1969
|
+
return !1;
|
|
1970
|
+
try {
|
|
1971
|
+
return $t.call(t), !0;
|
|
1972
|
+
} catch {
|
|
1973
|
+
}
|
|
1974
|
+
return !1;
|
|
1975
|
+
}
|
|
1976
|
+
var la = Object.prototype.hasOwnProperty || function(t) {
|
|
1977
|
+
return t in this;
|
|
1978
|
+
};
|
|
1979
|
+
function J(t, e) {
|
|
1980
|
+
return la.call(t, e);
|
|
1981
|
+
}
|
|
1982
|
+
function X(t) {
|
|
1983
|
+
return Ki.call(t);
|
|
1984
|
+
}
|
|
1985
|
+
function ca(t) {
|
|
1986
|
+
if (t.name)
|
|
1987
|
+
return t.name;
|
|
1988
|
+
var e = Xi.call(Qi.call(t), /^function\s*([\w$]+)/);
|
|
1989
|
+
return e ? e[1] : null;
|
|
1990
|
+
}
|
|
1991
|
+
function xn(t, e) {
|
|
1992
|
+
if (t.indexOf)
|
|
1993
|
+
return t.indexOf(e);
|
|
1994
|
+
for (var r = 0, n = t.length; r < n; r++)
|
|
1995
|
+
if (t[r] === e)
|
|
1996
|
+
return r;
|
|
1997
|
+
return -1;
|
|
1998
|
+
}
|
|
1999
|
+
function ua(t) {
|
|
2000
|
+
if (!Ge || !t || typeof t != "object")
|
|
2001
|
+
return !1;
|
|
2002
|
+
try {
|
|
2003
|
+
Ge.call(t);
|
|
2004
|
+
try {
|
|
2005
|
+
Je.call(t);
|
|
2006
|
+
} catch {
|
|
2007
|
+
return !0;
|
|
2008
|
+
}
|
|
2009
|
+
return t instanceof Map;
|
|
2010
|
+
} catch {
|
|
2011
|
+
}
|
|
2012
|
+
return !1;
|
|
2013
|
+
}
|
|
2014
|
+
function fa(t) {
|
|
2015
|
+
if (!Ee || !t || typeof t != "object")
|
|
2016
|
+
return !1;
|
|
2017
|
+
try {
|
|
2018
|
+
Ee.call(t, Ee);
|
|
2019
|
+
try {
|
|
2020
|
+
Oe.call(t, Oe);
|
|
2021
|
+
} catch {
|
|
2022
|
+
return !0;
|
|
2023
|
+
}
|
|
2024
|
+
return t instanceof WeakMap;
|
|
2025
|
+
} catch {
|
|
2026
|
+
}
|
|
2027
|
+
return !1;
|
|
2028
|
+
}
|
|
2029
|
+
function pa(t) {
|
|
2030
|
+
if (!Sr || !t || typeof t != "object")
|
|
2031
|
+
return !1;
|
|
2032
|
+
try {
|
|
2033
|
+
return Sr.call(t), !0;
|
|
2034
|
+
} catch {
|
|
2035
|
+
}
|
|
2036
|
+
return !1;
|
|
2037
|
+
}
|
|
2038
|
+
function da(t) {
|
|
2039
|
+
if (!Je || !t || typeof t != "object")
|
|
2040
|
+
return !1;
|
|
2041
|
+
try {
|
|
2042
|
+
Je.call(t);
|
|
2043
|
+
try {
|
|
2044
|
+
Ge.call(t);
|
|
2045
|
+
} catch {
|
|
2046
|
+
return !0;
|
|
2047
|
+
}
|
|
2048
|
+
return t instanceof Set;
|
|
2049
|
+
} catch {
|
|
2050
|
+
}
|
|
2051
|
+
return !1;
|
|
2052
|
+
}
|
|
2053
|
+
function ya(t) {
|
|
2054
|
+
if (!Oe || !t || typeof t != "object")
|
|
2055
|
+
return !1;
|
|
2056
|
+
try {
|
|
2057
|
+
Oe.call(t, Oe);
|
|
2058
|
+
try {
|
|
2059
|
+
Ee.call(t, Ee);
|
|
2060
|
+
} catch {
|
|
2061
|
+
return !0;
|
|
2062
|
+
}
|
|
2063
|
+
return t instanceof WeakSet;
|
|
2064
|
+
} catch {
|
|
2065
|
+
}
|
|
2066
|
+
return !1;
|
|
2067
|
+
}
|
|
2068
|
+
function ha(t) {
|
|
2069
|
+
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
2070
|
+
}
|
|
2071
|
+
function Cn(t, e) {
|
|
2072
|
+
if (t.length > e.maxStringLength) {
|
|
2073
|
+
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
2074
|
+
return Cn(Kt.call(t, 0, e.maxStringLength), e) + n;
|
|
2075
|
+
}
|
|
2076
|
+
var o = ea[e.quoteStyle || "single"];
|
|
2077
|
+
o.lastIndex = 0;
|
|
2078
|
+
var i = Q.call(Q.call(t, o, "\\$1"), /[\x00-\x1f]/g, ma);
|
|
2079
|
+
return Pn(i, "single", e);
|
|
2080
|
+
}
|
|
2081
|
+
function ma(t) {
|
|
2082
|
+
var e = t.charCodeAt(0), r = {
|
|
2083
|
+
8: "b",
|
|
2084
|
+
9: "t",
|
|
2085
|
+
10: "n",
|
|
2086
|
+
12: "f",
|
|
2087
|
+
13: "r"
|
|
2088
|
+
}[e];
|
|
2089
|
+
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Zi.call(e.toString(16));
|
|
2090
|
+
}
|
|
2091
|
+
function be(t) {
|
|
2092
|
+
return "Object(" + t + ")";
|
|
2093
|
+
}
|
|
2094
|
+
function pt(t) {
|
|
2095
|
+
return t + " { ? }";
|
|
2096
|
+
}
|
|
2097
|
+
function Cr(t, e, r, n) {
|
|
2098
|
+
var o = n ? Bt(r, n) : G.call(r, ", ");
|
|
2099
|
+
return t + " (" + e + ") {" + o + "}";
|
|
2100
|
+
}
|
|
2101
|
+
function ga(t) {
|
|
2102
|
+
for (var e = 0; e < t.length; e++)
|
|
2103
|
+
if (xn(t[e], `
|
|
2104
|
+
`) >= 0)
|
|
2105
|
+
return !1;
|
|
2106
|
+
return !0;
|
|
2107
|
+
}
|
|
2108
|
+
function va(t, e) {
|
|
2109
|
+
var r;
|
|
2110
|
+
if (t.indent === " ")
|
|
2111
|
+
r = " ";
|
|
2112
|
+
else if (typeof t.indent == "number" && t.indent > 0)
|
|
2113
|
+
r = G.call(Array(t.indent + 1), " ");
|
|
2114
|
+
else
|
|
2115
|
+
return null;
|
|
2116
|
+
return {
|
|
2117
|
+
base: r,
|
|
2118
|
+
prev: G.call(Array(e + 1), r)
|
|
2119
|
+
};
|
|
2120
|
+
}
|
|
2121
|
+
function Bt(t, e) {
|
|
2122
|
+
if (t.length === 0)
|
|
2123
|
+
return "";
|
|
2124
|
+
var r = `
|
|
2125
|
+
` + e.prev + e.base;
|
|
2126
|
+
return r + G.call(t, "," + r) + `
|
|
2127
|
+
` + e.prev;
|
|
2128
|
+
}
|
|
2129
|
+
function Le(t, e) {
|
|
2130
|
+
var r = Ut(t), n = [];
|
|
2131
|
+
if (r) {
|
|
2132
|
+
n.length = t.length;
|
|
2133
|
+
for (var o = 0; o < t.length; o++)
|
|
2134
|
+
n[o] = J(t, o) ? e(t[o], t) : "";
|
|
2135
|
+
}
|
|
2136
|
+
var i = typeof ft == "function" ? ft(t) : [], a;
|
|
2137
|
+
if (de) {
|
|
2138
|
+
a = {};
|
|
2139
|
+
for (var s = 0; s < i.length; s++)
|
|
2140
|
+
a["$" + i[s]] = i[s];
|
|
2141
|
+
}
|
|
2142
|
+
for (var c in t)
|
|
2143
|
+
J(t, c) && (r && String(Number(c)) === c && c < t.length || de && a["$" + c] instanceof Symbol || (On.call(/[^\w$]/, c) ? n.push(e(c, t) + ": " + e(t[c], t)) : n.push(c + ": " + e(t[c], t))));
|
|
2144
|
+
if (typeof ft == "function")
|
|
2145
|
+
for (var u = 0; u < i.length; u++)
|
|
2146
|
+
An.call(t, i[u]) && n.push("[" + e(i[u]) + "]: " + e(t[i[u]], t));
|
|
2147
|
+
return n;
|
|
2148
|
+
}
|
|
2149
|
+
var wa = tt, Sa = ge, rt = function(t, e, r) {
|
|
2150
|
+
for (var n = t, o; (o = n.next) != null; n = o)
|
|
2151
|
+
if (o.key === e)
|
|
2152
|
+
return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
2153
|
+
t.next, t.next = o), o;
|
|
2154
|
+
}, ba = function(t, e) {
|
|
2155
|
+
if (t) {
|
|
2156
|
+
var r = rt(t, e);
|
|
2157
|
+
return r && r.value;
|
|
2158
|
+
}
|
|
2159
|
+
}, Ea = function(t, e, r) {
|
|
2160
|
+
var n = rt(t, e);
|
|
2161
|
+
n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2162
|
+
{
|
|
2163
|
+
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
2164
|
+
key: e,
|
|
2165
|
+
next: t.next,
|
|
2166
|
+
value: r
|
|
2167
|
+
};
|
|
2168
|
+
}, Oa = function(t, e) {
|
|
2169
|
+
return t ? !!rt(t, e) : !1;
|
|
2170
|
+
}, Aa = function(t, e) {
|
|
2171
|
+
if (t)
|
|
2172
|
+
return rt(t, e, !0);
|
|
2173
|
+
}, Ra = function() {
|
|
2174
|
+
var e, r = {
|
|
2175
|
+
assert: function(n) {
|
|
2176
|
+
if (!r.has(n))
|
|
2177
|
+
throw new Sa("Side channel does not contain " + wa(n));
|
|
2178
|
+
},
|
|
2179
|
+
delete: function(n) {
|
|
2180
|
+
var o = e && e.next, i = Aa(e, n);
|
|
2181
|
+
return i && o && o === i && (e = void 0), !!i;
|
|
2182
|
+
},
|
|
2183
|
+
get: function(n) {
|
|
2184
|
+
return ba(e, n);
|
|
2185
|
+
},
|
|
2186
|
+
has: function(n) {
|
|
2187
|
+
return Oa(e, n);
|
|
2188
|
+
},
|
|
2189
|
+
set: function(n, o) {
|
|
2190
|
+
e || (e = {
|
|
2191
|
+
next: void 0
|
|
2192
|
+
}), Ea(
|
|
2193
|
+
/** @type {NonNullable<typeof $o>} */
|
|
2194
|
+
e,
|
|
2195
|
+
n,
|
|
2196
|
+
o
|
|
2197
|
+
);
|
|
2198
|
+
}
|
|
2199
|
+
};
|
|
2200
|
+
return r;
|
|
2201
|
+
}, _n = Object, Pa = Error, Ta = EvalError, xa = RangeError, Ca = ReferenceError, _a = SyntaxError, Na = URIError, Fa = Math.abs, Ia = Math.floor, $a = Math.max, Da = Math.min, La = Math.pow, Ua = Math.round, Ba = Number.isNaN || function(e) {
|
|
2202
|
+
return e !== e;
|
|
2203
|
+
}, Ma = Ba, ka = function(e) {
|
|
2204
|
+
return Ma(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2205
|
+
}, qa = Object.getOwnPropertyDescriptor, je = qa;
|
|
2206
|
+
if (je)
|
|
2207
|
+
try {
|
|
2208
|
+
je([], "length");
|
|
2209
|
+
} catch {
|
|
2210
|
+
je = null;
|
|
2211
|
+
}
|
|
2212
|
+
var Nn = je, He = Object.defineProperty || !1;
|
|
2213
|
+
if (He)
|
|
2214
|
+
try {
|
|
2215
|
+
He({}, "a", { value: 1 });
|
|
2216
|
+
} catch {
|
|
2217
|
+
He = !1;
|
|
2218
|
+
}
|
|
2219
|
+
var ja = He, dt, _r;
|
|
2220
|
+
function Ha() {
|
|
2221
|
+
return _r || (_r = 1, dt = function() {
|
|
2222
|
+
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2223
|
+
return !1;
|
|
2224
|
+
if (typeof Symbol.iterator == "symbol")
|
|
2225
|
+
return !0;
|
|
2226
|
+
var e = {}, r = Symbol("test"), n = Object(r);
|
|
2227
|
+
if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
|
|
2228
|
+
return !1;
|
|
2229
|
+
var o = 42;
|
|
2230
|
+
e[r] = o;
|
|
2231
|
+
for (var i in e)
|
|
2232
|
+
return !1;
|
|
2233
|
+
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
|
|
2234
|
+
return !1;
|
|
2235
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
2236
|
+
if (a.length !== 1 || a[0] !== r || !Object.prototype.propertyIsEnumerable.call(e, r))
|
|
2237
|
+
return !1;
|
|
2238
|
+
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
2239
|
+
var s = (
|
|
2240
|
+
/** @type {PropertyDescriptor} */
|
|
2241
|
+
Object.getOwnPropertyDescriptor(e, r)
|
|
2242
|
+
);
|
|
2243
|
+
if (s.value !== o || s.enumerable !== !0)
|
|
2244
|
+
return !1;
|
|
2245
|
+
}
|
|
2246
|
+
return !0;
|
|
2247
|
+
}), dt;
|
|
2248
|
+
}
|
|
2249
|
+
var yt, Nr;
|
|
2250
|
+
function za() {
|
|
2251
|
+
if (Nr) return yt;
|
|
2252
|
+
Nr = 1;
|
|
2253
|
+
var t = typeof Symbol < "u" && Symbol, e = Ha();
|
|
2254
|
+
return yt = function() {
|
|
2255
|
+
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2256
|
+
}, yt;
|
|
2257
|
+
}
|
|
2258
|
+
var ht, Fr;
|
|
2259
|
+
function Fn() {
|
|
2260
|
+
return Fr || (Fr = 1, ht = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ht;
|
|
2261
|
+
}
|
|
2262
|
+
var mt, Ir;
|
|
2263
|
+
function In() {
|
|
2264
|
+
if (Ir) return mt;
|
|
2265
|
+
Ir = 1;
|
|
2266
|
+
var t = _n;
|
|
2267
|
+
return mt = t.getPrototypeOf || null, mt;
|
|
2268
|
+
}
|
|
2269
|
+
var Wa = "Function.prototype.bind called on incompatible ", Ga = Object.prototype.toString, Ja = Math.max, Va = "[object Function]", $r = function(e, r) {
|
|
2270
|
+
for (var n = [], o = 0; o < e.length; o += 1)
|
|
2271
|
+
n[o] = e[o];
|
|
2272
|
+
for (var i = 0; i < r.length; i += 1)
|
|
2273
|
+
n[i + e.length] = r[i];
|
|
2274
|
+
return n;
|
|
2275
|
+
}, Ka = function(e, r) {
|
|
2276
|
+
for (var n = [], o = r, i = 0; o < e.length; o += 1, i += 1)
|
|
2277
|
+
n[i] = e[o];
|
|
2278
|
+
return n;
|
|
2279
|
+
}, Qa = function(t, e) {
|
|
2280
|
+
for (var r = "", n = 0; n < t.length; n += 1)
|
|
2281
|
+
r += t[n], n + 1 < t.length && (r += e);
|
|
2282
|
+
return r;
|
|
2283
|
+
}, Xa = function(e) {
|
|
2284
|
+
var r = this;
|
|
2285
|
+
if (typeof r != "function" || Ga.apply(r) !== Va)
|
|
2286
|
+
throw new TypeError(Wa + r);
|
|
2287
|
+
for (var n = Ka(arguments, 1), o, i = function() {
|
|
2288
|
+
if (this instanceof o) {
|
|
2289
|
+
var l = r.apply(
|
|
2290
|
+
this,
|
|
2291
|
+
$r(n, arguments)
|
|
2292
|
+
);
|
|
2293
|
+
return Object(l) === l ? l : this;
|
|
2294
|
+
}
|
|
2295
|
+
return r.apply(
|
|
2296
|
+
e,
|
|
2297
|
+
$r(n, arguments)
|
|
2298
|
+
);
|
|
2299
|
+
}, a = Ja(0, r.length - n.length), s = [], c = 0; c < a; c++)
|
|
2300
|
+
s[c] = "$" + c;
|
|
2301
|
+
if (o = Function("binder", "return function (" + Qa(s, ",") + "){ return binder.apply(this,arguments); }")(i), r.prototype) {
|
|
2302
|
+
var u = function() {
|
|
2303
|
+
};
|
|
2304
|
+
u.prototype = r.prototype, o.prototype = new u(), u.prototype = null;
|
|
2305
|
+
}
|
|
2306
|
+
return o;
|
|
2307
|
+
}, Za = Xa, nt = Function.prototype.bind || Za, gt, Dr;
|
|
2308
|
+
function Qt() {
|
|
2309
|
+
return Dr || (Dr = 1, gt = Function.prototype.call), gt;
|
|
2310
|
+
}
|
|
2311
|
+
var vt, Lr;
|
|
2312
|
+
function $n() {
|
|
2313
|
+
return Lr || (Lr = 1, vt = Function.prototype.apply), vt;
|
|
2314
|
+
}
|
|
2315
|
+
var Ya = typeof Reflect < "u" && Reflect && Reflect.apply, es = nt, ts = $n(), rs = Qt(), ns = Ya, os = ns || es.call(rs, ts), is = nt, as = ge, ss = Qt(), ls = os, Dn = function(e) {
|
|
2316
|
+
if (e.length < 1 || typeof e[0] != "function")
|
|
2317
|
+
throw new as("a function is required");
|
|
2318
|
+
return ls(is, ss, e);
|
|
2319
|
+
}, wt, Ur;
|
|
2320
|
+
function cs() {
|
|
2321
|
+
if (Ur) return wt;
|
|
2322
|
+
Ur = 1;
|
|
2323
|
+
var t = Dn, e = Nn, r;
|
|
2324
|
+
try {
|
|
2325
|
+
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2326
|
+
[].__proto__ === Array.prototype;
|
|
2327
|
+
} catch (a) {
|
|
2328
|
+
if (!a || typeof a != "object" || !("code" in a) || a.code !== "ERR_PROTO_ACCESS")
|
|
2329
|
+
throw a;
|
|
2330
|
+
}
|
|
2331
|
+
var n = !!r && e && e(
|
|
2332
|
+
Object.prototype,
|
|
2333
|
+
/** @type {keyof typeof Object.prototype} */
|
|
2334
|
+
"__proto__"
|
|
2335
|
+
), o = Object, i = o.getPrototypeOf;
|
|
2336
|
+
return wt = n && typeof n.get == "function" ? t([n.get]) : typeof i == "function" ? (
|
|
2337
|
+
/** @type {import('./get')} */
|
|
2338
|
+
function(s) {
|
|
2339
|
+
return i(s == null ? s : o(s));
|
|
2340
|
+
}
|
|
2341
|
+
) : !1, wt;
|
|
2342
|
+
}
|
|
2343
|
+
var St, Br;
|
|
2344
|
+
function us() {
|
|
2345
|
+
if (Br) return St;
|
|
2346
|
+
Br = 1;
|
|
2347
|
+
var t = Fn(), e = In(), r = cs();
|
|
2348
|
+
return St = t ? function(o) {
|
|
2349
|
+
return t(o);
|
|
2350
|
+
} : e ? function(o) {
|
|
2351
|
+
if (!o || typeof o != "object" && typeof o != "function")
|
|
2352
|
+
throw new TypeError("getProto: not an object");
|
|
2353
|
+
return e(o);
|
|
2354
|
+
} : r ? function(o) {
|
|
2355
|
+
return r(o);
|
|
2356
|
+
} : null, St;
|
|
2357
|
+
}
|
|
2358
|
+
var bt, Mr;
|
|
2359
|
+
function fs() {
|
|
2360
|
+
if (Mr) return bt;
|
|
2361
|
+
Mr = 1;
|
|
2362
|
+
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = nt;
|
|
2363
|
+
return bt = r.call(t, e), bt;
|
|
2364
|
+
}
|
|
2365
|
+
var S, ps = _n, ds = Pa, ys = Ta, hs = xa, ms = Ca, ye = _a, fe = ge, gs = Na, vs = Fa, ws = Ia, Ss = $a, bs = Da, Es = La, Os = Ua, As = ka, Ln = Function, Et = function(t) {
|
|
2366
|
+
try {
|
|
2367
|
+
return Ln('"use strict"; return (' + t + ").constructor;")();
|
|
2368
|
+
} catch {
|
|
2369
|
+
}
|
|
2370
|
+
}, Pe = Nn, Rs = ja, Ot = function() {
|
|
2371
|
+
throw new fe();
|
|
2372
|
+
}, Ps = Pe ? function() {
|
|
2373
|
+
try {
|
|
2374
|
+
return arguments.callee, Ot;
|
|
2375
|
+
} catch {
|
|
2376
|
+
try {
|
|
2377
|
+
return Pe(arguments, "callee").get;
|
|
2378
|
+
} catch {
|
|
2379
|
+
return Ot;
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
}() : Ot, le = za()(), C = us(), Ts = In(), xs = Fn(), Un = $n(), Ne = Qt(), ue = {}, Cs = typeof Uint8Array > "u" || !C ? S : C(Uint8Array), re = {
|
|
2383
|
+
__proto__: null,
|
|
2384
|
+
"%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
|
|
2385
|
+
"%Array%": Array,
|
|
2386
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer,
|
|
2387
|
+
"%ArrayIteratorPrototype%": le && C ? C([][Symbol.iterator]()) : S,
|
|
2388
|
+
"%AsyncFromSyncIteratorPrototype%": S,
|
|
2389
|
+
"%AsyncFunction%": ue,
|
|
2390
|
+
"%AsyncGenerator%": ue,
|
|
2391
|
+
"%AsyncGeneratorFunction%": ue,
|
|
2392
|
+
"%AsyncIteratorPrototype%": ue,
|
|
2393
|
+
"%Atomics%": typeof Atomics > "u" ? S : Atomics,
|
|
2394
|
+
"%BigInt%": typeof BigInt > "u" ? S : BigInt,
|
|
2395
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? S : BigInt64Array,
|
|
2396
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? S : BigUint64Array,
|
|
2397
|
+
"%Boolean%": Boolean,
|
|
2398
|
+
"%DataView%": typeof DataView > "u" ? S : DataView,
|
|
2399
|
+
"%Date%": Date,
|
|
2400
|
+
"%decodeURI%": decodeURI,
|
|
2401
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
2402
|
+
"%encodeURI%": encodeURI,
|
|
2403
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
2404
|
+
"%Error%": ds,
|
|
2405
|
+
"%eval%": eval,
|
|
2406
|
+
// eslint-disable-line no-eval
|
|
2407
|
+
"%EvalError%": ys,
|
|
2408
|
+
"%Float16Array%": typeof Float16Array > "u" ? S : Float16Array,
|
|
2409
|
+
"%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
|
|
2410
|
+
"%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
|
|
2411
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry,
|
|
2412
|
+
"%Function%": Ln,
|
|
2413
|
+
"%GeneratorFunction%": ue,
|
|
2414
|
+
"%Int8Array%": typeof Int8Array > "u" ? S : Int8Array,
|
|
2415
|
+
"%Int16Array%": typeof Int16Array > "u" ? S : Int16Array,
|
|
2416
|
+
"%Int32Array%": typeof Int32Array > "u" ? S : Int32Array,
|
|
2417
|
+
"%isFinite%": isFinite,
|
|
2418
|
+
"%isNaN%": isNaN,
|
|
2419
|
+
"%IteratorPrototype%": le && C ? C(C([][Symbol.iterator]())) : S,
|
|
2420
|
+
"%JSON%": typeof JSON == "object" ? JSON : S,
|
|
2421
|
+
"%Map%": typeof Map > "u" ? S : Map,
|
|
2422
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !le || !C ? S : C((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2423
|
+
"%Math%": Math,
|
|
2424
|
+
"%Number%": Number,
|
|
2425
|
+
"%Object%": ps,
|
|
2426
|
+
"%Object.getOwnPropertyDescriptor%": Pe,
|
|
2427
|
+
"%parseFloat%": parseFloat,
|
|
2428
|
+
"%parseInt%": parseInt,
|
|
2429
|
+
"%Promise%": typeof Promise > "u" ? S : Promise,
|
|
2430
|
+
"%Proxy%": typeof Proxy > "u" ? S : Proxy,
|
|
2431
|
+
"%RangeError%": hs,
|
|
2432
|
+
"%ReferenceError%": ms,
|
|
2433
|
+
"%Reflect%": typeof Reflect > "u" ? S : Reflect,
|
|
2434
|
+
"%RegExp%": RegExp,
|
|
2435
|
+
"%Set%": typeof Set > "u" ? S : Set,
|
|
2436
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !le || !C ? S : C((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2437
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? S : SharedArrayBuffer,
|
|
2438
|
+
"%String%": String,
|
|
2439
|
+
"%StringIteratorPrototype%": le && C ? C(""[Symbol.iterator]()) : S,
|
|
2440
|
+
"%Symbol%": le ? Symbol : S,
|
|
2441
|
+
"%SyntaxError%": ye,
|
|
2442
|
+
"%ThrowTypeError%": Ps,
|
|
2443
|
+
"%TypedArray%": Cs,
|
|
2444
|
+
"%TypeError%": fe,
|
|
2445
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
|
|
2446
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
|
|
2447
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
|
|
2448
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
|
|
2449
|
+
"%URIError%": gs,
|
|
2450
|
+
"%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
|
|
2451
|
+
"%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
|
|
2452
|
+
"%WeakSet%": typeof WeakSet > "u" ? S : WeakSet,
|
|
2453
|
+
"%Function.prototype.call%": Ne,
|
|
2454
|
+
"%Function.prototype.apply%": Un,
|
|
2455
|
+
"%Object.defineProperty%": Rs,
|
|
2456
|
+
"%Object.getPrototypeOf%": Ts,
|
|
2457
|
+
"%Math.abs%": vs,
|
|
2458
|
+
"%Math.floor%": ws,
|
|
2459
|
+
"%Math.max%": Ss,
|
|
2460
|
+
"%Math.min%": bs,
|
|
2461
|
+
"%Math.pow%": Es,
|
|
2462
|
+
"%Math.round%": Os,
|
|
2463
|
+
"%Math.sign%": As,
|
|
2464
|
+
"%Reflect.getPrototypeOf%": xs
|
|
2465
|
+
};
|
|
2466
|
+
if (C)
|
|
2467
|
+
try {
|
|
2468
|
+
null.error;
|
|
2469
|
+
} catch (t) {
|
|
2470
|
+
var _s = C(C(t));
|
|
2471
|
+
re["%Error.prototype%"] = _s;
|
|
2472
|
+
}
|
|
2473
|
+
var Ns = function t(e) {
|
|
2474
|
+
var r;
|
|
2475
|
+
if (e === "%AsyncFunction%")
|
|
2476
|
+
r = Et("async function () {}");
|
|
2477
|
+
else if (e === "%GeneratorFunction%")
|
|
2478
|
+
r = Et("function* () {}");
|
|
2479
|
+
else if (e === "%AsyncGeneratorFunction%")
|
|
2480
|
+
r = Et("async function* () {}");
|
|
2481
|
+
else if (e === "%AsyncGenerator%") {
|
|
2482
|
+
var n = t("%AsyncGeneratorFunction%");
|
|
2483
|
+
n && (r = n.prototype);
|
|
2484
|
+
} else if (e === "%AsyncIteratorPrototype%") {
|
|
2485
|
+
var o = t("%AsyncGenerator%");
|
|
2486
|
+
o && C && (r = C(o.prototype));
|
|
2487
|
+
}
|
|
2488
|
+
return re[e] = r, r;
|
|
2489
|
+
}, kr = {
|
|
2490
|
+
__proto__: null,
|
|
2491
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2492
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
2493
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
2494
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
2495
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
2496
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
2497
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
2498
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
2499
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
2500
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
2501
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
2502
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
2503
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
2504
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
2505
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
2506
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
2507
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
2508
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
2509
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
2510
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
2511
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
2512
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
2513
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
2514
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
2515
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
2516
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
2517
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
2518
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
2519
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
2520
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
2521
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
2522
|
+
"%Promise_all%": ["Promise", "all"],
|
|
2523
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
2524
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
2525
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
2526
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
2527
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
2528
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
2529
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
2530
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
2531
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
2532
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
2533
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
2534
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
2535
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
2536
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
2537
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
2538
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
2539
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2540
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2541
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2542
|
+
}, Fe = nt, Ve = fs(), Fs = Fe.call(Ne, Array.prototype.concat), Is = Fe.call(Un, Array.prototype.splice), qr = Fe.call(Ne, String.prototype.replace), Ke = Fe.call(Ne, String.prototype.slice), $s = Fe.call(Ne, RegExp.prototype.exec), Ds = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ls = /\\(\\)?/g, Us = function(e) {
|
|
2543
|
+
var r = Ke(e, 0, 1), n = Ke(e, -1);
|
|
2544
|
+
if (r === "%" && n !== "%")
|
|
2545
|
+
throw new ye("invalid intrinsic syntax, expected closing `%`");
|
|
2546
|
+
if (n === "%" && r !== "%")
|
|
2547
|
+
throw new ye("invalid intrinsic syntax, expected opening `%`");
|
|
2548
|
+
var o = [];
|
|
2549
|
+
return qr(e, Ds, function(i, a, s, c) {
|
|
2550
|
+
o[o.length] = s ? qr(c, Ls, "$1") : a || i;
|
|
2551
|
+
}), o;
|
|
2552
|
+
}, Bs = function(e, r) {
|
|
2553
|
+
var n = e, o;
|
|
2554
|
+
if (Ve(kr, n) && (o = kr[n], n = "%" + o[0] + "%"), Ve(re, n)) {
|
|
2555
|
+
var i = re[n];
|
|
2556
|
+
if (i === ue && (i = Ns(n)), typeof i > "u" && !r)
|
|
2557
|
+
throw new fe("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
2558
|
+
return {
|
|
2559
|
+
alias: o,
|
|
2560
|
+
name: n,
|
|
2561
|
+
value: i
|
|
2562
|
+
};
|
|
2563
|
+
}
|
|
2564
|
+
throw new ye("intrinsic " + e + " does not exist!");
|
|
2565
|
+
}, Xt = function(e, r) {
|
|
2566
|
+
if (typeof e != "string" || e.length === 0)
|
|
2567
|
+
throw new fe("intrinsic name must be a non-empty string");
|
|
2568
|
+
if (arguments.length > 1 && typeof r != "boolean")
|
|
2569
|
+
throw new fe('"allowMissing" argument must be a boolean');
|
|
2570
|
+
if ($s(/^%?[^%]*%?$/, e) === null)
|
|
2571
|
+
throw new ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2572
|
+
var n = Us(e), o = n.length > 0 ? n[0] : "", i = Bs("%" + o + "%", r), a = i.name, s = i.value, c = !1, u = i.alias;
|
|
2573
|
+
u && (o = u[0], Is(n, Fs([0, 1], u)));
|
|
2574
|
+
for (var l = 1, p = !0; l < n.length; l += 1) {
|
|
2575
|
+
var y = n[l], v = Ke(y, 0, 1), d = Ke(y, -1);
|
|
2576
|
+
if ((v === '"' || v === "'" || v === "`" || d === '"' || d === "'" || d === "`") && v !== d)
|
|
2577
|
+
throw new ye("property names with quotes must have matching quotes");
|
|
2578
|
+
if ((y === "constructor" || !p) && (c = !0), o += "." + y, a = "%" + o + "%", Ve(re, a))
|
|
2579
|
+
s = re[a];
|
|
2580
|
+
else if (s != null) {
|
|
2581
|
+
if (!(y in s)) {
|
|
2582
|
+
if (!r)
|
|
2583
|
+
throw new fe("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2584
|
+
return;
|
|
2585
|
+
}
|
|
2586
|
+
if (Pe && l + 1 >= n.length) {
|
|
2587
|
+
var m = Pe(s, y);
|
|
2588
|
+
p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[y];
|
|
2589
|
+
} else
|
|
2590
|
+
p = Ve(s, y), s = s[y];
|
|
2591
|
+
p && !c && (re[a] = s);
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
return s;
|
|
2595
|
+
}, Bn = Xt, Mn = Dn, Ms = Mn([Bn("%String.prototype.indexOf%")]), kn = function(e, r) {
|
|
2596
|
+
var n = (
|
|
2597
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2598
|
+
Bn(e, !!r)
|
|
2599
|
+
);
|
|
2600
|
+
return typeof n == "function" && Ms(e, ".prototype.") > -1 ? Mn(
|
|
2601
|
+
/** @type {const} */
|
|
2602
|
+
[n]
|
|
2603
|
+
) : n;
|
|
2604
|
+
}, ks = Xt, Ie = kn, qs = tt, js = ge, jr = ks("%Map%", !0), Hs = Ie("Map.prototype.get", !0), zs = Ie("Map.prototype.set", !0), Ws = Ie("Map.prototype.has", !0), Gs = Ie("Map.prototype.delete", !0), Js = Ie("Map.prototype.size", !0), qn = !!jr && /** @type {Exclude<import('.'), false>} */
|
|
2605
|
+
function() {
|
|
2606
|
+
var e, r = {
|
|
2607
|
+
assert: function(n) {
|
|
2608
|
+
if (!r.has(n))
|
|
2609
|
+
throw new js("Side channel does not contain " + qs(n));
|
|
2610
|
+
},
|
|
2611
|
+
delete: function(n) {
|
|
2612
|
+
if (e) {
|
|
2613
|
+
var o = Gs(e, n);
|
|
2614
|
+
return Js(e) === 0 && (e = void 0), o;
|
|
2615
|
+
}
|
|
2616
|
+
return !1;
|
|
2617
|
+
},
|
|
2618
|
+
get: function(n) {
|
|
2619
|
+
if (e)
|
|
2620
|
+
return Hs(e, n);
|
|
2621
|
+
},
|
|
2622
|
+
has: function(n) {
|
|
2623
|
+
return e ? Ws(e, n) : !1;
|
|
2624
|
+
},
|
|
2625
|
+
set: function(n, o) {
|
|
2626
|
+
e || (e = new jr()), zs(e, n, o);
|
|
2627
|
+
}
|
|
2628
|
+
};
|
|
2629
|
+
return r;
|
|
2630
|
+
}, Vs = Xt, ot = kn, Ks = tt, Ue = qn, Qs = ge, ce = Vs("%WeakMap%", !0), Xs = ot("WeakMap.prototype.get", !0), Zs = ot("WeakMap.prototype.set", !0), Ys = ot("WeakMap.prototype.has", !0), el = ot("WeakMap.prototype.delete", !0), tl = ce ? (
|
|
2631
|
+
/** @type {Exclude<import('.'), false>} */
|
|
2632
|
+
function() {
|
|
2633
|
+
var e, r, n = {
|
|
2634
|
+
assert: function(o) {
|
|
2635
|
+
if (!n.has(o))
|
|
2636
|
+
throw new Qs("Side channel does not contain " + Ks(o));
|
|
2637
|
+
},
|
|
2638
|
+
delete: function(o) {
|
|
2639
|
+
if (ce && o && (typeof o == "object" || typeof o == "function")) {
|
|
2640
|
+
if (e)
|
|
2641
|
+
return el(e, o);
|
|
2642
|
+
} else if (Ue && r)
|
|
2643
|
+
return r.delete(o);
|
|
2644
|
+
return !1;
|
|
2645
|
+
},
|
|
2646
|
+
get: function(o) {
|
|
2647
|
+
return ce && o && (typeof o == "object" || typeof o == "function") && e ? Xs(e, o) : r && r.get(o);
|
|
2648
|
+
},
|
|
2649
|
+
has: function(o) {
|
|
2650
|
+
return ce && o && (typeof o == "object" || typeof o == "function") && e ? Ys(e, o) : !!r && r.has(o);
|
|
2651
|
+
},
|
|
2652
|
+
set: function(o, i) {
|
|
2653
|
+
ce && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ce()), Zs(e, o, i)) : Ue && (r || (r = Ue()), r.set(o, i));
|
|
2654
|
+
}
|
|
2655
|
+
};
|
|
2656
|
+
return n;
|
|
2657
|
+
}
|
|
2658
|
+
) : Ue, rl = ge, nl = tt, ol = Ra, il = qn, al = tl, sl = al || il || ol, ll = function() {
|
|
2659
|
+
var e, r = {
|
|
2660
|
+
assert: function(n) {
|
|
2661
|
+
if (!r.has(n))
|
|
2662
|
+
throw new rl("Side channel does not contain " + nl(n));
|
|
2663
|
+
},
|
|
2664
|
+
delete: function(n) {
|
|
2665
|
+
return !!e && e.delete(n);
|
|
2666
|
+
},
|
|
2667
|
+
get: function(n) {
|
|
2668
|
+
return e && e.get(n);
|
|
2669
|
+
},
|
|
2670
|
+
has: function(n) {
|
|
2671
|
+
return !!e && e.has(n);
|
|
2672
|
+
},
|
|
2673
|
+
set: function(n, o) {
|
|
2674
|
+
e || (e = sl()), e.set(n, o);
|
|
2675
|
+
}
|
|
2676
|
+
};
|
|
2677
|
+
return r;
|
|
2678
|
+
}, cl = String.prototype.replace, ul = /%20/g, At = {
|
|
2679
|
+
RFC1738: "RFC1738",
|
|
2680
|
+
RFC3986: "RFC3986"
|
|
2681
|
+
}, Zt = {
|
|
2682
|
+
default: At.RFC3986,
|
|
2683
|
+
formatters: {
|
|
2684
|
+
RFC1738: function(t) {
|
|
2685
|
+
return cl.call(t, ul, "+");
|
|
2686
|
+
},
|
|
2687
|
+
RFC3986: function(t) {
|
|
2688
|
+
return String(t);
|
|
2689
|
+
}
|
|
2690
|
+
},
|
|
2691
|
+
RFC1738: At.RFC1738,
|
|
2692
|
+
RFC3986: At.RFC3986
|
|
2693
|
+
}, fl = Zt, Rt = Object.prototype.hasOwnProperty, Y = Array.isArray, z = function() {
|
|
2694
|
+
for (var t = [], e = 0; e < 256; ++e)
|
|
2695
|
+
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2696
|
+
return t;
|
|
2697
|
+
}(), pl = function(e) {
|
|
2698
|
+
for (; e.length > 1; ) {
|
|
2699
|
+
var r = e.pop(), n = r.obj[r.prop];
|
|
2700
|
+
if (Y(n)) {
|
|
2701
|
+
for (var o = [], i = 0; i < n.length; ++i)
|
|
2702
|
+
typeof n[i] < "u" && o.push(n[i]);
|
|
2703
|
+
r.obj[r.prop] = o;
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
}, jn = function(e, r) {
|
|
2707
|
+
for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
|
|
2708
|
+
typeof e[o] < "u" && (n[o] = e[o]);
|
|
2709
|
+
return n;
|
|
2710
|
+
}, dl = function t(e, r, n) {
|
|
2711
|
+
if (!r)
|
|
2712
|
+
return e;
|
|
2713
|
+
if (typeof r != "object" && typeof r != "function") {
|
|
2714
|
+
if (Y(e))
|
|
2715
|
+
e.push(r);
|
|
2716
|
+
else if (e && typeof e == "object")
|
|
2717
|
+
(n && (n.plainObjects || n.allowPrototypes) || !Rt.call(Object.prototype, r)) && (e[r] = !0);
|
|
2718
|
+
else
|
|
2719
|
+
return [e, r];
|
|
2720
|
+
return e;
|
|
2721
|
+
}
|
|
2722
|
+
if (!e || typeof e != "object")
|
|
2723
|
+
return [e].concat(r);
|
|
2724
|
+
var o = e;
|
|
2725
|
+
return Y(e) && !Y(r) && (o = jn(e, n)), Y(e) && Y(r) ? (r.forEach(function(i, a) {
|
|
2726
|
+
if (Rt.call(e, a)) {
|
|
2727
|
+
var s = e[a];
|
|
2728
|
+
s && typeof s == "object" && i && typeof i == "object" ? e[a] = t(s, i, n) : e.push(i);
|
|
2729
|
+
} else
|
|
2730
|
+
e[a] = i;
|
|
2731
|
+
}), e) : Object.keys(r).reduce(function(i, a) {
|
|
2732
|
+
var s = r[a];
|
|
2733
|
+
return Rt.call(i, a) ? i[a] = t(i[a], s, n) : i[a] = s, i;
|
|
2734
|
+
}, o);
|
|
2735
|
+
}, yl = function(e, r) {
|
|
2736
|
+
return Object.keys(r).reduce(function(n, o) {
|
|
2737
|
+
return n[o] = r[o], n;
|
|
2738
|
+
}, e);
|
|
2739
|
+
}, hl = function(t, e, r) {
|
|
2740
|
+
var n = t.replace(/\+/g, " ");
|
|
2741
|
+
if (r === "iso-8859-1")
|
|
2742
|
+
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
2743
|
+
try {
|
|
2744
|
+
return decodeURIComponent(n);
|
|
2745
|
+
} catch {
|
|
2746
|
+
return n;
|
|
2747
|
+
}
|
|
2748
|
+
}, Pt = 1024, ml = function(e, r, n, o, i) {
|
|
2749
|
+
if (e.length === 0)
|
|
2750
|
+
return e;
|
|
2751
|
+
var a = e;
|
|
2752
|
+
if (typeof e == "symbol" ? a = Symbol.prototype.toString.call(e) : typeof e != "string" && (a = String(e)), n === "iso-8859-1")
|
|
2753
|
+
return escape(a).replace(/%u[0-9a-f]{4}/gi, function(v) {
|
|
2754
|
+
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
2755
|
+
});
|
|
2756
|
+
for (var s = "", c = 0; c < a.length; c += Pt) {
|
|
2757
|
+
for (var u = a.length >= Pt ? a.slice(c, c + Pt) : a, l = [], p = 0; p < u.length; ++p) {
|
|
2758
|
+
var y = u.charCodeAt(p);
|
|
2759
|
+
if (y === 45 || y === 46 || y === 95 || y === 126 || y >= 48 && y <= 57 || y >= 65 && y <= 90 || y >= 97 && y <= 122 || i === fl.RFC1738 && (y === 40 || y === 41)) {
|
|
2760
|
+
l[l.length] = u.charAt(p);
|
|
2761
|
+
continue;
|
|
2762
|
+
}
|
|
2763
|
+
if (y < 128) {
|
|
2764
|
+
l[l.length] = z[y];
|
|
2765
|
+
continue;
|
|
2766
|
+
}
|
|
2767
|
+
if (y < 2048) {
|
|
2768
|
+
l[l.length] = z[192 | y >> 6] + z[128 | y & 63];
|
|
2769
|
+
continue;
|
|
2770
|
+
}
|
|
2771
|
+
if (y < 55296 || y >= 57344) {
|
|
2772
|
+
l[l.length] = z[224 | y >> 12] + z[128 | y >> 6 & 63] + z[128 | y & 63];
|
|
2773
|
+
continue;
|
|
2774
|
+
}
|
|
2775
|
+
p += 1, y = 65536 + ((y & 1023) << 10 | u.charCodeAt(p) & 1023), l[l.length] = z[240 | y >> 18] + z[128 | y >> 12 & 63] + z[128 | y >> 6 & 63] + z[128 | y & 63];
|
|
2776
|
+
}
|
|
2777
|
+
s += l.join("");
|
|
2778
|
+
}
|
|
2779
|
+
return s;
|
|
2780
|
+
}, gl = function(e) {
|
|
2781
|
+
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
|
|
2782
|
+
for (var i = r[o], a = i.obj[i.prop], s = Object.keys(a), c = 0; c < s.length; ++c) {
|
|
2783
|
+
var u = s[c], l = a[u];
|
|
2784
|
+
typeof l == "object" && l !== null && n.indexOf(l) === -1 && (r.push({ obj: a, prop: u }), n.push(l));
|
|
2785
|
+
}
|
|
2786
|
+
return pl(r), e;
|
|
2787
|
+
}, vl = function(e) {
|
|
2788
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
2789
|
+
}, wl = function(e) {
|
|
2790
|
+
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
2791
|
+
}, Sl = function(e, r) {
|
|
2792
|
+
return [].concat(e, r);
|
|
2793
|
+
}, bl = function(e, r) {
|
|
2794
|
+
if (Y(e)) {
|
|
2795
|
+
for (var n = [], o = 0; o < e.length; o += 1)
|
|
2796
|
+
n.push(r(e[o]));
|
|
2797
|
+
return n;
|
|
2798
|
+
}
|
|
2799
|
+
return r(e);
|
|
2800
|
+
}, Hn = {
|
|
2801
|
+
arrayToObject: jn,
|
|
2802
|
+
assign: yl,
|
|
2803
|
+
combine: Sl,
|
|
2804
|
+
compact: gl,
|
|
2805
|
+
decode: hl,
|
|
2806
|
+
encode: ml,
|
|
2807
|
+
isBuffer: wl,
|
|
2808
|
+
isRegExp: vl,
|
|
2809
|
+
maybeMap: bl,
|
|
2810
|
+
merge: dl
|
|
2811
|
+
}, zn = ll, ze = Hn, Re = Zt, El = Object.prototype.hasOwnProperty, Wn = {
|
|
2812
|
+
brackets: function(e) {
|
|
2813
|
+
return e + "[]";
|
|
2814
|
+
},
|
|
2815
|
+
comma: "comma",
|
|
2816
|
+
indices: function(e, r) {
|
|
2817
|
+
return e + "[" + r + "]";
|
|
2818
|
+
},
|
|
2819
|
+
repeat: function(e) {
|
|
2820
|
+
return e;
|
|
2821
|
+
}
|
|
2822
|
+
}, W = Array.isArray, Ol = Array.prototype.push, Gn = function(t, e) {
|
|
2823
|
+
Ol.apply(t, W(e) ? e : [e]);
|
|
2824
|
+
}, Al = Date.prototype.toISOString, Hr = Re.default, x = {
|
|
2825
|
+
addQueryPrefix: !1,
|
|
2826
|
+
allowDots: !1,
|
|
2827
|
+
allowEmptyArrays: !1,
|
|
2828
|
+
arrayFormat: "indices",
|
|
2829
|
+
charset: "utf-8",
|
|
2830
|
+
charsetSentinel: !1,
|
|
2831
|
+
commaRoundTrip: !1,
|
|
2832
|
+
delimiter: "&",
|
|
2833
|
+
encode: !0,
|
|
2834
|
+
encodeDotInKeys: !1,
|
|
2835
|
+
encoder: ze.encode,
|
|
2836
|
+
encodeValuesOnly: !1,
|
|
2837
|
+
filter: void 0,
|
|
2838
|
+
format: Hr,
|
|
2839
|
+
formatter: Re.formatters[Hr],
|
|
2840
|
+
// deprecated
|
|
2841
|
+
indices: !1,
|
|
2842
|
+
serializeDate: function(e) {
|
|
2843
|
+
return Al.call(e);
|
|
2844
|
+
},
|
|
2845
|
+
skipNulls: !1,
|
|
2846
|
+
strictNullHandling: !1
|
|
2847
|
+
}, Rl = function(e) {
|
|
2848
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2849
|
+
}, Tt = {}, Pl = function t(e, r, n, o, i, a, s, c, u, l, p, y, v, d, m, h, b, A) {
|
|
2850
|
+
for (var g = e, E = A, O = 0, L = !1; (E = E.get(Tt)) !== void 0 && !L; ) {
|
|
2851
|
+
var T = E.get(e);
|
|
2852
|
+
if (O += 1, typeof T < "u") {
|
|
2853
|
+
if (T === O)
|
|
2854
|
+
throw new RangeError("Cyclic object value");
|
|
2855
|
+
L = !0;
|
|
2856
|
+
}
|
|
2857
|
+
typeof E.get(Tt) > "u" && (O = 0);
|
|
2858
|
+
}
|
|
2859
|
+
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" && W(g) && (g = ze.maybeMap(g, function(we) {
|
|
2860
|
+
return we instanceof Date ? v(we) : we;
|
|
2861
|
+
})), g === null) {
|
|
2862
|
+
if (a)
|
|
2863
|
+
return u && !h ? u(r, x.encoder, b, "key", d) : r;
|
|
2864
|
+
g = "";
|
|
2865
|
+
}
|
|
2866
|
+
if (Rl(g) || ze.isBuffer(g)) {
|
|
2867
|
+
if (u) {
|
|
2868
|
+
var V = h ? r : u(r, x.encoder, b, "key", d);
|
|
2869
|
+
return [m(V) + "=" + m(u(g, x.encoder, b, "value", d))];
|
|
2870
|
+
}
|
|
2871
|
+
return [m(r) + "=" + m(String(g))];
|
|
2872
|
+
}
|
|
2873
|
+
var U = [];
|
|
2874
|
+
if (typeof g > "u")
|
|
2875
|
+
return U;
|
|
2876
|
+
var M;
|
|
2877
|
+
if (n === "comma" && W(g))
|
|
2878
|
+
h && u && (g = ze.maybeMap(g, u)), M = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2879
|
+
else if (W(l))
|
|
2880
|
+
M = l;
|
|
2881
|
+
else {
|
|
2882
|
+
var Z = Object.keys(g);
|
|
2883
|
+
M = p ? Z.sort(p) : Z;
|
|
2884
|
+
}
|
|
2885
|
+
var k = c ? String(r).replace(/\./g, "%2E") : String(r), _ = o && W(g) && g.length === 1 ? k + "[]" : k;
|
|
2886
|
+
if (i && W(g) && g.length === 0)
|
|
2887
|
+
return _ + "[]";
|
|
2888
|
+
for (var N = 0; N < M.length; ++N) {
|
|
2889
|
+
var B = M[N], F = typeof B == "object" && B && typeof B.value < "u" ? B.value : g[B];
|
|
2890
|
+
if (!(s && F === null)) {
|
|
2891
|
+
var ae = y && c ? String(B).replace(/\./g, "%2E") : String(B), j = W(g) ? typeof n == "function" ? n(_, ae) : _ : _ + (y ? "." + ae : "[" + ae + "]");
|
|
2892
|
+
A.set(e, O);
|
|
2893
|
+
var ve = zn();
|
|
2894
|
+
ve.set(Tt, A), Gn(U, t(
|
|
2895
|
+
F,
|
|
2896
|
+
j,
|
|
2897
|
+
n,
|
|
2898
|
+
o,
|
|
2899
|
+
i,
|
|
2900
|
+
a,
|
|
2901
|
+
s,
|
|
2902
|
+
c,
|
|
2903
|
+
n === "comma" && h && W(g) ? null : u,
|
|
2904
|
+
l,
|
|
2905
|
+
p,
|
|
2906
|
+
y,
|
|
2907
|
+
v,
|
|
2908
|
+
d,
|
|
2909
|
+
m,
|
|
2910
|
+
h,
|
|
2911
|
+
b,
|
|
2912
|
+
ve
|
|
2913
|
+
));
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
return U;
|
|
2917
|
+
}, Tl = function(e) {
|
|
2918
|
+
if (!e)
|
|
2919
|
+
return x;
|
|
2920
|
+
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
2921
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
2922
|
+
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
2923
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
2924
|
+
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
2925
|
+
throw new TypeError("Encoder has to be a function.");
|
|
2926
|
+
var r = e.charset || x.charset;
|
|
2927
|
+
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
2928
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2929
|
+
var n = Re.default;
|
|
2930
|
+
if (typeof e.format < "u") {
|
|
2931
|
+
if (!El.call(Re.formatters, e.format))
|
|
2932
|
+
throw new TypeError("Unknown format option provided.");
|
|
2933
|
+
n = e.format;
|
|
2934
|
+
}
|
|
2935
|
+
var o = Re.formatters[n], i = x.filter;
|
|
2936
|
+
(typeof e.filter == "function" || W(e.filter)) && (i = e.filter);
|
|
2937
|
+
var a;
|
|
2938
|
+
if (e.arrayFormat in Wn ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = x.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2939
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2940
|
+
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : x.allowDots : !!e.allowDots;
|
|
2941
|
+
return {
|
|
2942
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : x.addQueryPrefix,
|
|
2943
|
+
allowDots: s,
|
|
2944
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : x.allowEmptyArrays,
|
|
2945
|
+
arrayFormat: a,
|
|
2946
|
+
charset: r,
|
|
2947
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : x.charsetSentinel,
|
|
2948
|
+
commaRoundTrip: !!e.commaRoundTrip,
|
|
2949
|
+
delimiter: typeof e.delimiter > "u" ? x.delimiter : e.delimiter,
|
|
2950
|
+
encode: typeof e.encode == "boolean" ? e.encode : x.encode,
|
|
2951
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : x.encodeDotInKeys,
|
|
2952
|
+
encoder: typeof e.encoder == "function" ? e.encoder : x.encoder,
|
|
2953
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : x.encodeValuesOnly,
|
|
2954
|
+
filter: i,
|
|
2955
|
+
format: n,
|
|
2956
|
+
formatter: o,
|
|
2957
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : x.serializeDate,
|
|
2958
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : x.skipNulls,
|
|
2959
|
+
sort: typeof e.sort == "function" ? e.sort : null,
|
|
2960
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : x.strictNullHandling
|
|
2961
|
+
};
|
|
2962
|
+
}, xl = function(t, e) {
|
|
2963
|
+
var r = t, n = Tl(e), o, i;
|
|
2964
|
+
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : W(n.filter) && (i = n.filter, o = i);
|
|
2965
|
+
var a = [];
|
|
2966
|
+
if (typeof r != "object" || r === null)
|
|
2967
|
+
return "";
|
|
2968
|
+
var s = Wn[n.arrayFormat], c = s === "comma" && n.commaRoundTrip;
|
|
2969
|
+
o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
|
|
2970
|
+
for (var u = zn(), l = 0; l < o.length; ++l) {
|
|
2971
|
+
var p = o[l], y = r[p];
|
|
2972
|
+
n.skipNulls && y === null || Gn(a, Pl(
|
|
2973
|
+
y,
|
|
2974
|
+
p,
|
|
2975
|
+
s,
|
|
2976
|
+
c,
|
|
2977
|
+
n.allowEmptyArrays,
|
|
2978
|
+
n.strictNullHandling,
|
|
2979
|
+
n.skipNulls,
|
|
2980
|
+
n.encodeDotInKeys,
|
|
2981
|
+
n.encode ? n.encoder : null,
|
|
2982
|
+
n.filter,
|
|
2983
|
+
n.sort,
|
|
2984
|
+
n.allowDots,
|
|
2985
|
+
n.serializeDate,
|
|
2986
|
+
n.format,
|
|
2987
|
+
n.formatter,
|
|
2988
|
+
n.encodeValuesOnly,
|
|
2989
|
+
n.charset,
|
|
2990
|
+
u
|
|
2991
|
+
));
|
|
2992
|
+
}
|
|
2993
|
+
var v = a.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
|
|
2994
|
+
return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), v.length > 0 ? d + v : "";
|
|
2995
|
+
}, oe = Hn, Mt = Object.prototype.hasOwnProperty, zr = Array.isArray, R = {
|
|
2996
|
+
allowDots: !1,
|
|
2997
|
+
allowEmptyArrays: !1,
|
|
2998
|
+
allowPrototypes: !1,
|
|
2999
|
+
allowSparse: !1,
|
|
3000
|
+
arrayLimit: 20,
|
|
3001
|
+
charset: "utf-8",
|
|
3002
|
+
charsetSentinel: !1,
|
|
3003
|
+
comma: !1,
|
|
3004
|
+
decodeDotInKeys: !1,
|
|
3005
|
+
decoder: oe.decode,
|
|
3006
|
+
delimiter: "&",
|
|
3007
|
+
depth: 5,
|
|
3008
|
+
duplicates: "combine",
|
|
3009
|
+
ignoreQueryPrefix: !1,
|
|
3010
|
+
interpretNumericEntities: !1,
|
|
3011
|
+
parameterLimit: 1e3,
|
|
3012
|
+
parseArrays: !0,
|
|
3013
|
+
plainObjects: !1,
|
|
3014
|
+
strictDepth: !1,
|
|
3015
|
+
strictNullHandling: !1,
|
|
3016
|
+
throwOnLimitExceeded: !1
|
|
3017
|
+
}, Cl = function(t) {
|
|
3018
|
+
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
3019
|
+
return String.fromCharCode(parseInt(r, 10));
|
|
3020
|
+
});
|
|
3021
|
+
}, Jn = function(t, e, r) {
|
|
3022
|
+
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
3023
|
+
return t.split(",");
|
|
3024
|
+
if (e.throwOnLimitExceeded && r >= e.arrayLimit)
|
|
3025
|
+
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3026
|
+
return t;
|
|
3027
|
+
}, _l = "utf8=%26%2310003%3B", Nl = "utf8=%E2%9C%93", Fl = function(e, r) {
|
|
3028
|
+
var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
3029
|
+
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3030
|
+
var i = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, a = o.split(
|
|
3031
|
+
r.delimiter,
|
|
3032
|
+
r.throwOnLimitExceeded ? i + 1 : i
|
|
3033
|
+
);
|
|
3034
|
+
if (r.throwOnLimitExceeded && a.length > i)
|
|
3035
|
+
throw new RangeError("Parameter limit exceeded. Only " + i + " parameter" + (i === 1 ? "" : "s") + " allowed.");
|
|
3036
|
+
var s = -1, c, u = r.charset;
|
|
3037
|
+
if (r.charsetSentinel)
|
|
3038
|
+
for (c = 0; c < a.length; ++c)
|
|
3039
|
+
a[c].indexOf("utf8=") === 0 && (a[c] === Nl ? u = "utf-8" : a[c] === _l && (u = "iso-8859-1"), s = c, c = a.length);
|
|
3040
|
+
for (c = 0; c < a.length; ++c)
|
|
3041
|
+
if (c !== s) {
|
|
3042
|
+
var l = a[c], p = l.indexOf("]="), y = p === -1 ? l.indexOf("=") : p + 1, v, d;
|
|
3043
|
+
y === -1 ? (v = r.decoder(l, R.decoder, u, "key"), d = r.strictNullHandling ? null : "") : (v = r.decoder(l.slice(0, y), R.decoder, u, "key"), d = oe.maybeMap(
|
|
3044
|
+
Jn(
|
|
3045
|
+
l.slice(y + 1),
|
|
3046
|
+
r,
|
|
3047
|
+
zr(n[v]) ? n[v].length : 0
|
|
3048
|
+
),
|
|
3049
|
+
function(h) {
|
|
3050
|
+
return r.decoder(h, R.decoder, u, "value");
|
|
3051
|
+
}
|
|
3052
|
+
)), d && r.interpretNumericEntities && u === "iso-8859-1" && (d = Cl(String(d))), l.indexOf("[]=") > -1 && (d = zr(d) ? [d] : d);
|
|
3053
|
+
var m = Mt.call(n, v);
|
|
3054
|
+
m && r.duplicates === "combine" ? n[v] = oe.combine(n[v], d) : (!m || r.duplicates === "last") && (n[v] = d);
|
|
3055
|
+
}
|
|
3056
|
+
return n;
|
|
3057
|
+
}, Il = function(t, e, r, n) {
|
|
3058
|
+
var o = 0;
|
|
3059
|
+
if (t.length > 0 && t[t.length - 1] === "[]") {
|
|
3060
|
+
var i = t.slice(0, -1).join("");
|
|
3061
|
+
o = Array.isArray(e) && e[i] ? e[i].length : 0;
|
|
3062
|
+
}
|
|
3063
|
+
for (var a = n ? e : Jn(e, r, o), s = t.length - 1; s >= 0; --s) {
|
|
3064
|
+
var c, u = t[s];
|
|
3065
|
+
if (u === "[]" && r.parseArrays)
|
|
3066
|
+
c = r.allowEmptyArrays && (a === "" || r.strictNullHandling && a === null) ? [] : oe.combine([], a);
|
|
3067
|
+
else {
|
|
3068
|
+
c = r.plainObjects ? { __proto__: null } : {};
|
|
3069
|
+
var l = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, p = r.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, y = parseInt(p, 10);
|
|
3070
|
+
!r.parseArrays && p === "" ? c = { 0: a } : !isNaN(y) && u !== p && String(y) === p && y >= 0 && r.parseArrays && y <= r.arrayLimit ? (c = [], c[y] = a) : p !== "__proto__" && (c[p] = a);
|
|
3071
|
+
}
|
|
3072
|
+
a = c;
|
|
3073
|
+
}
|
|
3074
|
+
return a;
|
|
3075
|
+
}, $l = function(e, r, n, o) {
|
|
3076
|
+
if (e) {
|
|
3077
|
+
var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, a = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = n.depth > 0 && a.exec(i), u = c ? i.slice(0, c.index) : i, l = [];
|
|
3078
|
+
if (u) {
|
|
3079
|
+
if (!n.plainObjects && Mt.call(Object.prototype, u) && !n.allowPrototypes)
|
|
3080
|
+
return;
|
|
3081
|
+
l.push(u);
|
|
3082
|
+
}
|
|
3083
|
+
for (var p = 0; n.depth > 0 && (c = s.exec(i)) !== null && p < n.depth; ) {
|
|
3084
|
+
if (p += 1, !n.plainObjects && Mt.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
|
|
3085
|
+
return;
|
|
3086
|
+
l.push(c[1]);
|
|
3087
|
+
}
|
|
3088
|
+
if (c) {
|
|
3089
|
+
if (n.strictDepth === !0)
|
|
3090
|
+
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
3091
|
+
l.push("[" + i.slice(c.index) + "]");
|
|
3092
|
+
}
|
|
3093
|
+
return Il(l, r, n, o);
|
|
3094
|
+
}
|
|
3095
|
+
}, Dl = function(e) {
|
|
3096
|
+
if (!e)
|
|
3097
|
+
return R;
|
|
3098
|
+
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
3099
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
3100
|
+
if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
|
|
3101
|
+
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
3102
|
+
if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
|
|
3103
|
+
throw new TypeError("Decoder has to be a function.");
|
|
3104
|
+
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
3105
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3106
|
+
if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
|
|
3107
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
3108
|
+
var r = typeof e.charset > "u" ? R.charset : e.charset, n = typeof e.duplicates > "u" ? R.duplicates : e.duplicates;
|
|
3109
|
+
if (n !== "combine" && n !== "first" && n !== "last")
|
|
3110
|
+
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
3111
|
+
var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : R.allowDots : !!e.allowDots;
|
|
3112
|
+
return {
|
|
3113
|
+
allowDots: o,
|
|
3114
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : R.allowEmptyArrays,
|
|
3115
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : R.allowPrototypes,
|
|
3116
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : R.allowSparse,
|
|
3117
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : R.arrayLimit,
|
|
3118
|
+
charset: r,
|
|
3119
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : R.charsetSentinel,
|
|
3120
|
+
comma: typeof e.comma == "boolean" ? e.comma : R.comma,
|
|
3121
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : R.decodeDotInKeys,
|
|
3122
|
+
decoder: typeof e.decoder == "function" ? e.decoder : R.decoder,
|
|
3123
|
+
delimiter: typeof e.delimiter == "string" || oe.isRegExp(e.delimiter) ? e.delimiter : R.delimiter,
|
|
3124
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
3125
|
+
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : R.depth,
|
|
3126
|
+
duplicates: n,
|
|
3127
|
+
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
3128
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : R.interpretNumericEntities,
|
|
3129
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : R.parameterLimit,
|
|
3130
|
+
parseArrays: e.parseArrays !== !1,
|
|
3131
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : R.plainObjects,
|
|
3132
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : R.strictDepth,
|
|
3133
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : R.strictNullHandling,
|
|
3134
|
+
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
3135
|
+
};
|
|
3136
|
+
}, Ll = function(t, e) {
|
|
3137
|
+
var r = Dl(e);
|
|
3138
|
+
if (t === "" || t === null || typeof t > "u")
|
|
3139
|
+
return r.plainObjects ? { __proto__: null } : {};
|
|
3140
|
+
for (var n = typeof t == "string" ? Fl(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, i = Object.keys(n), a = 0; a < i.length; ++a) {
|
|
3141
|
+
var s = i[a], c = $l(s, n[s], r, typeof t == "string");
|
|
3142
|
+
o = oe.merge(o, c, r);
|
|
3143
|
+
}
|
|
3144
|
+
return r.allowSparse === !0 ? o : oe.compact(o);
|
|
3145
|
+
}, Ul = xl, Bl = Ll, Ml = Zt, kl = {
|
|
3146
|
+
formats: Ml,
|
|
3147
|
+
parse: Bl,
|
|
3148
|
+
stringify: Ul
|
|
3149
|
+
};
|
|
3150
|
+
const ql = /* @__PURE__ */ ki(kl);
|
|
3151
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
3152
|
+
function Be(t) {
|
|
3153
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
3154
|
+
var r = arguments[e];
|
|
3155
|
+
for (var n in r)
|
|
3156
|
+
t[n] = r[n];
|
|
3157
|
+
}
|
|
3158
|
+
return t;
|
|
3159
|
+
}
|
|
3160
|
+
var jl = {
|
|
3161
|
+
read: function(t) {
|
|
3162
|
+
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3163
|
+
},
|
|
3164
|
+
write: function(t) {
|
|
3165
|
+
return encodeURIComponent(t).replace(
|
|
3166
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
3167
|
+
decodeURIComponent
|
|
3168
|
+
);
|
|
3169
|
+
}
|
|
3170
|
+
};
|
|
3171
|
+
function kt(t, e) {
|
|
3172
|
+
function r(o, i, a) {
|
|
3173
|
+
if (!(typeof document > "u")) {
|
|
3174
|
+
a = Be({}, e, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
3175
|
+
var s = "";
|
|
3176
|
+
for (var c in a)
|
|
3177
|
+
a[c] && (s += "; " + c, a[c] !== !0 && (s += "=" + a[c].split(";")[0]));
|
|
3178
|
+
return document.cookie = o + "=" + t.write(i, o) + s;
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
function n(o) {
|
|
3182
|
+
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
3183
|
+
for (var i = document.cookie ? document.cookie.split("; ") : [], a = {}, s = 0; s < i.length; s++) {
|
|
3184
|
+
var c = i[s].split("="), u = c.slice(1).join("=");
|
|
3185
|
+
try {
|
|
3186
|
+
var l = decodeURIComponent(c[0]);
|
|
3187
|
+
if (a[l] = t.read(u, l), o === l)
|
|
3188
|
+
break;
|
|
3189
|
+
} catch {
|
|
3190
|
+
}
|
|
3191
|
+
}
|
|
3192
|
+
return o ? a[o] : a;
|
|
3193
|
+
}
|
|
3194
|
+
}
|
|
3195
|
+
return Object.create(
|
|
3196
|
+
{
|
|
3197
|
+
set: r,
|
|
3198
|
+
get: n,
|
|
3199
|
+
remove: function(o, i) {
|
|
3200
|
+
r(
|
|
3201
|
+
o,
|
|
3202
|
+
"",
|
|
3203
|
+
Be({}, i, {
|
|
3204
|
+
expires: -1
|
|
3205
|
+
})
|
|
3206
|
+
);
|
|
3207
|
+
},
|
|
3208
|
+
withAttributes: function(o) {
|
|
3209
|
+
return kt(this.converter, Be({}, this.attributes, o));
|
|
3210
|
+
},
|
|
3211
|
+
withConverter: function(o) {
|
|
3212
|
+
return kt(Be({}, this.converter, o), this.attributes);
|
|
3213
|
+
}
|
|
3214
|
+
},
|
|
3215
|
+
{
|
|
3216
|
+
attributes: { value: Object.freeze(e) },
|
|
3217
|
+
converter: { value: Object.freeze(t) }
|
|
3218
|
+
}
|
|
3219
|
+
);
|
|
3220
|
+
}
|
|
3221
|
+
var Wr = kt(jl, { path: "/" });
|
|
3222
|
+
qt.extend(io);
|
|
3223
|
+
qt.extend(ao);
|
|
3224
|
+
const Yt = Zr(), Vn = Yt.sso ?? !0, Gr = Yt.i18n ?? !0, Kn = Yt.noRedireLogin ?? !1;
|
|
3225
|
+
let Jr = "", Vr = 0;
|
|
3226
|
+
const Hl = 1e3, Kr = async (t, e, r = []) => {
|
|
3227
|
+
const n = Date.now(), o = 1200, i = 60;
|
|
3228
|
+
for (; Date.now() - n < o; ) {
|
|
3229
|
+
const a = t(e, ...r);
|
|
3230
|
+
if (a && a !== e) return a;
|
|
3231
|
+
await new Promise((s) => setTimeout(s, i));
|
|
3232
|
+
}
|
|
3233
|
+
return t(e, ...r);
|
|
3234
|
+
};
|
|
3235
|
+
let xt = !1;
|
|
3236
|
+
const zl = 5e3, Qn = () => xt ? !1 : (xt = !0, setTimeout(() => {
|
|
3237
|
+
xt = !1;
|
|
3238
|
+
}, zl), !0), Xn = () => {
|
|
3239
|
+
var e, r;
|
|
3240
|
+
if (Kn) return;
|
|
3241
|
+
const t = "/login";
|
|
3242
|
+
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace(`/#${t}`));
|
|
3243
|
+
}, Wl = async (t) => {
|
|
3244
|
+
var r;
|
|
3245
|
+
return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
|
|
3246
|
+
}, Gl = async (t, e) => {
|
|
3247
|
+
var m, h, b, A;
|
|
3248
|
+
const { t: r } = Xr();
|
|
3249
|
+
let n, o, i = {};
|
|
3250
|
+
const a = { 400: r("参数校验错误"), 404: r("接口地址未找到"), 500: r("服务器内部错误") };
|
|
3251
|
+
let s = ((m = t == null ? void 0 : t.response) == null ? void 0 : m.data) || {};
|
|
3252
|
+
const c = to("code") || "", u = s == null ? void 0 : s.code, l = (h = t.response) == null ? void 0 : h.status;
|
|
3253
|
+
if (!c && !Kn && (u === 401 || l === 401)) {
|
|
3254
|
+
Qn() && (Vn ? ro({ ...no, redirect_uri: oo }) : Xn()), n = u || l, i = s;
|
|
3255
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3256
|
+
if (Gr && g && (s != null && s.status)) {
|
|
3257
|
+
const E = !(s != null && s.data) || !s.data.length ? [] : s.data, O = r(s.status, ...E);
|
|
3258
|
+
o = O === s.status ? await Kr(r, s.status, E) : O;
|
|
3259
|
+
} else
|
|
3260
|
+
o = (s == null ? void 0 : s.msg) || a[n] || (t == null ? void 0 : t.message);
|
|
3261
|
+
} else if (t.response) {
|
|
3262
|
+
if (s instanceof Blob && (s = await new Promise((g) => {
|
|
3263
|
+
const E = new FileReader();
|
|
3264
|
+
E.readAsText(s, "utf-8"), E.onload = () => {
|
|
3265
|
+
try {
|
|
3266
|
+
g(JSON.parse(E.result || "{}"));
|
|
3267
|
+
} catch {
|
|
3268
|
+
g({ code: 400, msg: r("解析错误") });
|
|
3269
|
+
}
|
|
3270
|
+
};
|
|
3271
|
+
})), s.code !== void 0 && s.code !== null) {
|
|
3272
|
+
n = s.code, i = s;
|
|
3273
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3274
|
+
if (Gr && g && (s != null && s.status)) {
|
|
3275
|
+
const E = !(s != null && s.data) || !s.data.length ? [] : s.data, O = r(s.status, ...E);
|
|
3276
|
+
o = O === s.status ? await Kr(r, s.status, E) : O;
|
|
3277
|
+
} else
|
|
3278
|
+
o = (s == null ? void 0 : s.msg) ?? "";
|
|
3279
|
+
} else
|
|
3280
|
+
n = t.response.status, o = a[n] || t.message;
|
|
3281
|
+
o || (o = a[t.response.status] || t.message);
|
|
3282
|
+
} else t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
|
|
3283
|
+
e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
|
|
3284
|
+
const y = Date.now(), v = o === Jr, d = y - Vr < Hl;
|
|
3285
|
+
return !(e != null && e.ignoreErrorMessage) && o && (!v || !d) && ((A = (b = window.DasMessage) == null ? void 0 : b.error) == null || A.call(b, { message: o, showClose: !0 }), Jr = o, Vr = y), { ...i, code: n, msg: o, error: t };
|
|
3286
|
+
};
|
|
3287
|
+
function Jl(t, e) {
|
|
3288
|
+
const r = P.create();
|
|
3289
|
+
return Yn(r, async (n) => {
|
|
3290
|
+
const { currentLang: o } = Xr(), i = Zr();
|
|
3291
|
+
if (n.headers || (n.headers = {}), !(n != null && n.public)) {
|
|
3292
|
+
let p = "";
|
|
3293
|
+
if (i.token && (p = i.token), !p) {
|
|
3294
|
+
const y = new URL(location.href).searchParams;
|
|
3295
|
+
p = y.get("token") || y.get("accessToken") || y.get("accesstoken") || "";
|
|
3296
|
+
}
|
|
3297
|
+
if (Vn)
|
|
3298
|
+
p || (p = await eo(n));
|
|
3299
|
+
else {
|
|
3300
|
+
p || (p = co());
|
|
3301
|
+
let y = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3302
|
+
p ? p = await uo(y, (d) => {
|
|
3303
|
+
window.localStorage.setItem("tokenInfo", JSON.stringify(d));
|
|
3304
|
+
}) : Qn() && Xn();
|
|
3305
|
+
}
|
|
3306
|
+
p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
|
|
3307
|
+
}
|
|
3308
|
+
n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => ql.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = Wl), n.onError || (n.onError = Gl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Wr.get("csrf-token"));
|
|
3309
|
+
const c = n.params || {};
|
|
3310
|
+
if (c.project === void 0) {
|
|
3311
|
+
let p = 0;
|
|
3312
|
+
const y = new URL(location.href).searchParams;
|
|
3313
|
+
p = y.get("project") || y.get("projectId") || 0, p || (p = so().id ?? 0), (p || p === 0) && (c.project = p);
|
|
3314
|
+
}
|
|
3315
|
+
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3316
|
+
const { instanceInfo: p } = lo();
|
|
3317
|
+
p != null && p.instanceId && (c.instance = p.instanceId);
|
|
3318
|
+
}
|
|
3319
|
+
n.params = c, n.headers.Timezone = qt.tz.guess(), n.headers["X-Origin"] = location.origin;
|
|
3320
|
+
const l = (o == null ? void 0 : o.value) ?? "";
|
|
3321
|
+
return l && (n.headers["Accept-Language"] = l), l && Wr.set("locale", l), n;
|
|
3322
|
+
});
|
|
3323
|
+
}
|
|
3324
|
+
const Vl = "v1", Zn = Jl(`/api/admin/basic-application/user-rights/${Vl}`), Kl = Zn.get("/menu-module-func"), Ql = Zn.post("/right-func"), Qr = (t) => Array.isArray(t) ? t : t == null || t === "" ? [] : [t], Xl = (t) => {
|
|
3325
|
+
const e = Qr(t == null ? void 0 : t.appIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o), r = Qr(t == null ? void 0 : t.moduleIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o);
|
|
3326
|
+
if (!e.length) return null;
|
|
3327
|
+
const n = { appIds: e };
|
|
3328
|
+
return r.length && (n.moduleIds = r), n;
|
|
3329
|
+
}, Ct = (t) => {
|
|
3330
|
+
const e = { id: { id: [] }, code: {} }, r = Array.isArray(t) ? t : [], n = (i) => {
|
|
3331
|
+
const a = String(i ?? "").trim();
|
|
3332
|
+
if (!a) return { groupCode: "", actionCode: "" };
|
|
3333
|
+
if (a.includes(".")) {
|
|
3334
|
+
const l = a.split(".").filter(Boolean), p = l.length > 1 ? String(l[l.length - 1] || "") : "";
|
|
3335
|
+
return { groupCode: l.length > 1 ? l.slice(0, -1).join(".") : a, actionCode: p };
|
|
3336
|
+
}
|
|
3337
|
+
const s = a.split("_").filter(Boolean), c = s.length > 1 ? String(s[s.length - 1] || "") : "";
|
|
3338
|
+
return { groupCode: s.length > 1 ? s.slice(0, -1).join("_") : a, actionCode: c };
|
|
3339
|
+
}, o = /* @__PURE__ */ new Set();
|
|
3340
|
+
for (const i of r) {
|
|
3341
|
+
if (!i || typeof i != "object") continue;
|
|
3342
|
+
const a = Number(i == null ? void 0 : i.id);
|
|
3343
|
+
!Number.isNaN(a) && !e.id.id.includes(a) && e.id.id.push(a);
|
|
3344
|
+
const { groupCode: s, actionCode: c } = n(i == null ? void 0 : i.code);
|
|
3345
|
+
if (!s || !c) continue;
|
|
3346
|
+
const u = e.code[s] || [];
|
|
3347
|
+
u.some((y) => String(y == null ? void 0 : y.code) === String(c)) || (u.push({ code: c }), e.code[s] = u);
|
|
3348
|
+
const p = i == null ? void 0 : i.code;
|
|
3349
|
+
if (p != null) {
|
|
3350
|
+
const y = String(p).trim();
|
|
3351
|
+
y && o.add(y);
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
3354
|
+
return e.code.sourceCode = Array.from(o), e;
|
|
3355
|
+
}, Zl = () => {
|
|
3356
|
+
const t = window.sessionStorage.getItem("currentUserMenuPermissionsList") || "";
|
|
3357
|
+
try {
|
|
3358
|
+
const e = JSON.parse(window.sessionStorage.getItem("menuItem") || "{}"), r = String((e == null ? void 0 : e.id) ?? "").trim(), n = String(window.sessionStorage.getItem("currentUserMenuPermissionsMenuId") || "").trim();
|
|
3359
|
+
if (r && n && r !== n)
|
|
3360
|
+
return Ct([]);
|
|
3361
|
+
const o = t ? JSON.parse(t) : [];
|
|
3362
|
+
return Ct(o);
|
|
3363
|
+
} catch {
|
|
3364
|
+
return Ct([]);
|
|
3365
|
+
}
|
|
3366
|
+
}, cc = (t = "id") => {
|
|
3367
|
+
var a, s;
|
|
3368
|
+
const e = Zl();
|
|
3369
|
+
if (!e || typeof e != "object")
|
|
3370
|
+
return t === "all" ? { idList: [], codeList: [] } : [];
|
|
3371
|
+
const r = (a = e == null ? void 0 : e.id) == null ? void 0 : a.id, n = Array.isArray(r) ? r : [], o = (s = e == null ? void 0 : e.code) == null ? void 0 : s.sourceCode, i = Array.isArray(o) ? o : [];
|
|
3372
|
+
return t === "all" ? { idList: n, codeList: i } : t === "code" ? i : n;
|
|
3373
|
+
}, uc = (t, e) => {
|
|
3374
|
+
const r = (async () => {
|
|
3375
|
+
const n = Xl(t);
|
|
3376
|
+
if (!n) return [];
|
|
3377
|
+
const o = await Ql().run(n), [i, a] = o;
|
|
3378
|
+
return i ? [] : a;
|
|
3379
|
+
})();
|
|
3380
|
+
return typeof e == "function" && r.then((n) => e(n)).catch(() => e([])), r;
|
|
3381
|
+
}, fc = (t, e) => {
|
|
3382
|
+
const r = (async () => {
|
|
3383
|
+
const n = String(t ?? "").trim();
|
|
3384
|
+
if (!n) return [];
|
|
3385
|
+
const o = await Kl().run({ menuId: n }), [i, a] = o;
|
|
3386
|
+
return i ? [] : a;
|
|
3387
|
+
})();
|
|
3388
|
+
return typeof e == "function" && r.then((n) => e(n)).catch(() => e([])), r;
|
|
3389
|
+
};
|
|
3390
|
+
export {
|
|
3391
|
+
cc as getCurrentModulePermissionData,
|
|
3392
|
+
fc as getCurrentUserMenuPermissionsList,
|
|
3393
|
+
uc as getCurrentUserPermissionsList,
|
|
3394
|
+
Zl as getGroupedCurrentUserPermissionList,
|
|
3395
|
+
Ct as groupPermissionListByModuleAndCode
|
|
3396
|
+
};
|