react-luminus-components 2.1.8 → 2.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +191 -50
- package/dist/Alert-BApdinGX.cjs +1 -0
- package/dist/Alert-D2Bw906t.js +495 -0
- package/dist/DelegationContext-B1WXROG2.cjs +201 -0
- package/dist/DelegationContext-CCnk58PI.js +3156 -0
- package/dist/HelmetContext-ChKPef74.js +49 -0
- package/dist/HelmetContext-DDQ-Phg7.cjs +1 -0
- package/dist/PrimaryButton-D7r0m8xi.js +742 -0
- package/dist/PrimaryButton-D91b3Dmv.cjs +1 -0
- package/dist/SimpleTooltip-B00uLuVM.cjs +1 -0
- package/dist/SimpleTooltip-dwOOgecT.js +1642 -0
- package/dist/Typography-C5KJzU5O.js +1627 -0
- package/dist/Typography-Fo21SeyJ.cjs +20 -0
- package/dist/UserContext-45ZxeQHB.cjs +1 -0
- package/dist/UserContext-ZsTsf5Xe.js +270 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +1773 -852
- package/dist/dateUtils-CXm9PEh6.cjs +1 -0
- package/dist/dateUtils-ayErBYbI.js +1488 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +118 -123
- package/dist/index-4IYT9u10.js +95 -0
- package/dist/index-jmbq5h95.cjs +25 -0
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +97 -98
- package/dist/localStorageUtils-BSATUi5m.cjs +1 -0
- package/dist/localStorageUtils-DNgjNynk.js +1070 -0
- package/dist/main.cjs.js +56 -7
- package/dist/main.es.js +36401 -11370
- package/dist/models/texts/SubstitutionsTexts.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/useIsFormDirty-76y8Dca-.cjs +1 -0
- package/dist/useIsFormDirty-Ba5uhPH7.js +3257 -0
- package/dist/useWindowSize-7W91GsJQ.js +56 -0
- package/dist/useWindowSize-CLoDaEYh.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +79 -85
- package/package.json +10 -1
- package/dist/FormDisabledProvider-D-DRODSt.js +0 -51
- package/dist/FormDisabledProvider-Dt39yr7W.cjs +0 -1
- package/dist/localStorageUtils-CVwJ9FKd.cjs +0 -1
- package/dist/localStorageUtils-TeLq8MHE.js +0 -59
- package/dist/nivo-bar-D6NJLYWS.js +0 -39616
- package/dist/nivo-bar-SBWBmyeI.cjs +0 -293
- package/dist/useIsFormDirty-CZ4jNRFn.js +0 -117
- package/dist/useIsFormDirty-Crsu8mjo.cjs +0 -1
- package/dist/useLocalStorageState-Ca7olZgH.cjs +0 -1
- package/dist/useLocalStorageState-DtBc-C2W.js +0 -25
|
@@ -0,0 +1,3156 @@
|
|
|
1
|
+
import { c as Z, a as me } from "./index-4IYT9u10.js";
|
|
2
|
+
import * as N from "react";
|
|
3
|
+
import { createContext as Ee, useContext as V, useState as we, useLayoutEffect as Tr, useMemo as be, useRef as le, useCallback as U, useEffect as G } from "react";
|
|
4
|
+
import { L as It, g as vr, C as Pr, D as _r, E as kr, F as Nr, H as Dr } from "./UserContext-ZsTsf5Xe.js";
|
|
5
|
+
import { t as Mt, c as Lr, a as $r, G as Fr, H as jr, A as Ir, I as Mr, o as Ur } from "./dateUtils-ayErBYbI.js";
|
|
6
|
+
import { InteractionStatus as Br } from "@azure/msal-browser";
|
|
7
|
+
import { useMsal as zr, useIsAuthenticated as Hr } from "@azure/msal-react";
|
|
8
|
+
import { jsxs as qr, Fragment as Vr, jsx as ie } from "react/jsx-runtime";
|
|
9
|
+
function Jr(e, t) {
|
|
10
|
+
const r = +Mt(e);
|
|
11
|
+
return Lr(e, r + t);
|
|
12
|
+
}
|
|
13
|
+
function Ut(e, t) {
|
|
14
|
+
return Jr(e, t * $r);
|
|
15
|
+
}
|
|
16
|
+
function Wr(e) {
|
|
17
|
+
return +Mt(e) < Date.now();
|
|
18
|
+
}
|
|
19
|
+
const Yr = Ee({
|
|
20
|
+
show: !1,
|
|
21
|
+
text: "",
|
|
22
|
+
textSm: !1,
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
24
|
+
showConfirm: (e, t) => {
|
|
25
|
+
},
|
|
26
|
+
hideConfirm: () => {
|
|
27
|
+
}
|
|
28
|
+
}), Kr = Ee({
|
|
29
|
+
isShown: !1,
|
|
30
|
+
text: "",
|
|
31
|
+
hidePrompt: () => {
|
|
32
|
+
},
|
|
33
|
+
showPrompt: () => {
|
|
34
|
+
},
|
|
35
|
+
resolveRef: {
|
|
36
|
+
current: () => {
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
options: {
|
|
40
|
+
input: "textarea",
|
|
41
|
+
type: "text"
|
|
42
|
+
},
|
|
43
|
+
setOptions: () => {
|
|
44
|
+
}
|
|
45
|
+
}), Ys = () => {
|
|
46
|
+
const e = Z.c(12), {
|
|
47
|
+
isShown: t,
|
|
48
|
+
text: r,
|
|
49
|
+
showPrompt: n,
|
|
50
|
+
hidePrompt: o,
|
|
51
|
+
resolveRef: i,
|
|
52
|
+
setOptions: s
|
|
53
|
+
} = V(Kr);
|
|
54
|
+
let a;
|
|
55
|
+
e[0] !== o || e[1] !== i ? (a = (b) => {
|
|
56
|
+
o(), i.current(b);
|
|
57
|
+
}, e[0] = o, e[1] = i, e[2] = a) : a = e[2];
|
|
58
|
+
const f = a;
|
|
59
|
+
let c;
|
|
60
|
+
e[3] !== i || e[4] !== s || e[5] !== n ? (c = async (b, y) => (s((d) => ({
|
|
61
|
+
...d,
|
|
62
|
+
...y
|
|
63
|
+
})), n(b), new Promise((d) => {
|
|
64
|
+
i.current = d;
|
|
65
|
+
})), e[3] = i, e[4] = s, e[5] = n, e[6] = c) : c = e[6];
|
|
66
|
+
const l = c;
|
|
67
|
+
let p;
|
|
68
|
+
return e[7] !== t || e[8] !== f || e[9] !== l || e[10] !== r ? (p = {
|
|
69
|
+
isShown: t,
|
|
70
|
+
text: r,
|
|
71
|
+
prompt: l,
|
|
72
|
+
onFinish: f
|
|
73
|
+
}, e[7] = t, e[8] = f, e[9] = l, e[10] = r, e[11] = p) : p = e[11], p;
|
|
74
|
+
};
|
|
75
|
+
function Bt(e, t) {
|
|
76
|
+
return function() {
|
|
77
|
+
return e.apply(t, arguments);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
const { toString: Xr } = Object.prototype, { getPrototypeOf: lt } = Object, { iterator: qe, toStringTag: zt } = Symbol, Ve = /* @__PURE__ */ ((e) => (t) => {
|
|
81
|
+
const r = Xr.call(t);
|
|
82
|
+
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
83
|
+
})(/* @__PURE__ */ Object.create(null)), B = (e) => (e = e.toLowerCase(), (t) => Ve(t) === e), Je = (e) => (t) => typeof t === e, { isArray: fe } = Array, ue = Je("undefined");
|
|
84
|
+
function Se(e) {
|
|
85
|
+
return e !== null && !ue(e) && e.constructor !== null && !ue(e.constructor) && $(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
86
|
+
}
|
|
87
|
+
const Ht = B("ArrayBuffer");
|
|
88
|
+
function Gr(e) {
|
|
89
|
+
let t;
|
|
90
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ht(e.buffer), t;
|
|
91
|
+
}
|
|
92
|
+
const Zr = Je("string"), $ = Je("function"), qt = Je("number"), xe = (e) => e !== null && typeof e == "object", Qr = (e) => e === !0 || e === !1, je = (e) => {
|
|
93
|
+
if (Ve(e) !== "object")
|
|
94
|
+
return !1;
|
|
95
|
+
const t = lt(e);
|
|
96
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(zt in e) && !(qe in e);
|
|
97
|
+
}, en = (e) => {
|
|
98
|
+
if (!xe(e) || Se(e))
|
|
99
|
+
return !1;
|
|
100
|
+
try {
|
|
101
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
102
|
+
} catch {
|
|
103
|
+
return !1;
|
|
104
|
+
}
|
|
105
|
+
}, tn = B("Date"), rn = B("File"), nn = B("Blob"), on = B("FileList"), sn = (e) => xe(e) && $(e.pipe), an = (e) => {
|
|
106
|
+
let t;
|
|
107
|
+
return e && (typeof FormData == "function" && e instanceof FormData || $(e.append) && ((t = Ve(e)) === "formdata" || // detect form-data instance
|
|
108
|
+
t === "object" && $(e.toString) && e.toString() === "[object FormData]"));
|
|
109
|
+
}, cn = B("URLSearchParams"), [ln, un, fn, dn] = ["ReadableStream", "Request", "Response", "Headers"].map(B), pn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
110
|
+
function Oe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
111
|
+
if (e === null || typeof e > "u")
|
|
112
|
+
return;
|
|
113
|
+
let n, o;
|
|
114
|
+
if (typeof e != "object" && (e = [e]), fe(e))
|
|
115
|
+
for (n = 0, o = e.length; n < o; n++)
|
|
116
|
+
t.call(null, e[n], n, e);
|
|
117
|
+
else {
|
|
118
|
+
if (Se(e))
|
|
119
|
+
return;
|
|
120
|
+
const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), s = i.length;
|
|
121
|
+
let a;
|
|
122
|
+
for (n = 0; n < s; n++)
|
|
123
|
+
a = i[n], t.call(null, e[a], a, e);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function Vt(e, t) {
|
|
127
|
+
if (Se(e))
|
|
128
|
+
return null;
|
|
129
|
+
t = t.toLowerCase();
|
|
130
|
+
const r = Object.keys(e);
|
|
131
|
+
let n = r.length, o;
|
|
132
|
+
for (; n-- > 0; )
|
|
133
|
+
if (o = r[n], t === o.toLowerCase())
|
|
134
|
+
return o;
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
const te = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Jt = (e) => !ue(e) && e !== te;
|
|
138
|
+
function nt() {
|
|
139
|
+
const { caseless: e, skipUndefined: t } = Jt(this) && this || {}, r = {}, n = (o, i) => {
|
|
140
|
+
const s = e && Vt(r, i) || i;
|
|
141
|
+
je(r[s]) && je(o) ? r[s] = nt(r[s], o) : je(o) ? r[s] = nt({}, o) : fe(o) ? r[s] = o.slice() : (!t || !ue(o)) && (r[s] = o);
|
|
142
|
+
};
|
|
143
|
+
for (let o = 0, i = arguments.length; o < i; o++)
|
|
144
|
+
arguments[o] && Oe(arguments[o], n);
|
|
145
|
+
return r;
|
|
146
|
+
}
|
|
147
|
+
const mn = (e, t, r, { allOwnKeys: n } = {}) => (Oe(t, (o, i) => {
|
|
148
|
+
r && $(o) ? e[i] = Bt(o, r) : e[i] = o;
|
|
149
|
+
}, { allOwnKeys: n }), e), hn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), yn = (e, t, r, n) => {
|
|
150
|
+
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
151
|
+
value: t.prototype
|
|
152
|
+
}), r && Object.assign(e.prototype, r);
|
|
153
|
+
}, gn = (e, t, r, n) => {
|
|
154
|
+
let o, i, s;
|
|
155
|
+
const a = {};
|
|
156
|
+
if (t = t || {}, e == null) return t;
|
|
157
|
+
do {
|
|
158
|
+
for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; )
|
|
159
|
+
s = o[i], (!n || n(s, e, t)) && !a[s] && (t[s] = e[s], a[s] = !0);
|
|
160
|
+
e = r !== !1 && lt(e);
|
|
161
|
+
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
162
|
+
return t;
|
|
163
|
+
}, bn = (e, t, r) => {
|
|
164
|
+
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
165
|
+
const n = e.indexOf(t, r);
|
|
166
|
+
return n !== -1 && n === r;
|
|
167
|
+
}, wn = (e) => {
|
|
168
|
+
if (!e) return null;
|
|
169
|
+
if (fe(e)) return e;
|
|
170
|
+
let t = e.length;
|
|
171
|
+
if (!qt(t)) return null;
|
|
172
|
+
const r = new Array(t);
|
|
173
|
+
for (; t-- > 0; )
|
|
174
|
+
r[t] = e[t];
|
|
175
|
+
return r;
|
|
176
|
+
}, En = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && lt(Uint8Array)), Sn = (e, t) => {
|
|
177
|
+
const n = (e && e[qe]).call(e);
|
|
178
|
+
let o;
|
|
179
|
+
for (; (o = n.next()) && !o.done; ) {
|
|
180
|
+
const i = o.value;
|
|
181
|
+
t.call(e, i[0], i[1]);
|
|
182
|
+
}
|
|
183
|
+
}, xn = (e, t) => {
|
|
184
|
+
let r;
|
|
185
|
+
const n = [];
|
|
186
|
+
for (; (r = e.exec(t)) !== null; )
|
|
187
|
+
n.push(r);
|
|
188
|
+
return n;
|
|
189
|
+
}, On = B("HTMLFormElement"), Cn = (e) => e.toLowerCase().replace(
|
|
190
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
191
|
+
function(r, n, o) {
|
|
192
|
+
return n.toUpperCase() + o;
|
|
193
|
+
}
|
|
194
|
+
), yt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Rn = B("RegExp"), Wt = (e, t) => {
|
|
195
|
+
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
196
|
+
Oe(r, (o, i) => {
|
|
197
|
+
let s;
|
|
198
|
+
(s = t(o, i, e)) !== !1 && (n[i] = s || o);
|
|
199
|
+
}), Object.defineProperties(e, n);
|
|
200
|
+
}, An = (e) => {
|
|
201
|
+
Wt(e, (t, r) => {
|
|
202
|
+
if ($(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
203
|
+
return !1;
|
|
204
|
+
const n = e[r];
|
|
205
|
+
if ($(n)) {
|
|
206
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
207
|
+
t.writable = !1;
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
t.set || (t.set = () => {
|
|
211
|
+
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}, Tn = (e, t) => {
|
|
216
|
+
const r = {}, n = (o) => {
|
|
217
|
+
o.forEach((i) => {
|
|
218
|
+
r[i] = !0;
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
return fe(e) ? n(e) : n(String(e).split(t)), r;
|
|
222
|
+
}, vn = () => {
|
|
223
|
+
}, Pn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
224
|
+
function _n(e) {
|
|
225
|
+
return !!(e && $(e.append) && e[zt] === "FormData" && e[qe]);
|
|
226
|
+
}
|
|
227
|
+
const kn = (e) => {
|
|
228
|
+
const t = new Array(10), r = (n, o) => {
|
|
229
|
+
if (xe(n)) {
|
|
230
|
+
if (t.indexOf(n) >= 0)
|
|
231
|
+
return;
|
|
232
|
+
if (Se(n))
|
|
233
|
+
return n;
|
|
234
|
+
if (!("toJSON" in n)) {
|
|
235
|
+
t[o] = n;
|
|
236
|
+
const i = fe(n) ? [] : {};
|
|
237
|
+
return Oe(n, (s, a) => {
|
|
238
|
+
const f = r(s, o + 1);
|
|
239
|
+
!ue(f) && (i[a] = f);
|
|
240
|
+
}), t[o] = void 0, i;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return n;
|
|
244
|
+
};
|
|
245
|
+
return r(e, 0);
|
|
246
|
+
}, Nn = B("AsyncFunction"), Dn = (e) => e && (xe(e) || $(e)) && $(e.then) && $(e.catch), Yt = ((e, t) => e ? setImmediate : t ? ((r, n) => (te.addEventListener("message", ({ source: o, data: i }) => {
|
|
247
|
+
o === te && i === r && n.length && n.shift()();
|
|
248
|
+
}, !1), (o) => {
|
|
249
|
+
n.push(o), te.postMessage(r, "*");
|
|
250
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
251
|
+
typeof setImmediate == "function",
|
|
252
|
+
$(te.postMessage)
|
|
253
|
+
), Ln = typeof queueMicrotask < "u" ? queueMicrotask.bind(te) : typeof process < "u" && process.nextTick || Yt, $n = (e) => e != null && $(e[qe]), u = {
|
|
254
|
+
isArray: fe,
|
|
255
|
+
isArrayBuffer: Ht,
|
|
256
|
+
isBuffer: Se,
|
|
257
|
+
isFormData: an,
|
|
258
|
+
isArrayBufferView: Gr,
|
|
259
|
+
isString: Zr,
|
|
260
|
+
isNumber: qt,
|
|
261
|
+
isBoolean: Qr,
|
|
262
|
+
isObject: xe,
|
|
263
|
+
isPlainObject: je,
|
|
264
|
+
isEmptyObject: en,
|
|
265
|
+
isReadableStream: ln,
|
|
266
|
+
isRequest: un,
|
|
267
|
+
isResponse: fn,
|
|
268
|
+
isHeaders: dn,
|
|
269
|
+
isUndefined: ue,
|
|
270
|
+
isDate: tn,
|
|
271
|
+
isFile: rn,
|
|
272
|
+
isBlob: nn,
|
|
273
|
+
isRegExp: Rn,
|
|
274
|
+
isFunction: $,
|
|
275
|
+
isStream: sn,
|
|
276
|
+
isURLSearchParams: cn,
|
|
277
|
+
isTypedArray: En,
|
|
278
|
+
isFileList: on,
|
|
279
|
+
forEach: Oe,
|
|
280
|
+
merge: nt,
|
|
281
|
+
extend: mn,
|
|
282
|
+
trim: pn,
|
|
283
|
+
stripBOM: hn,
|
|
284
|
+
inherits: yn,
|
|
285
|
+
toFlatObject: gn,
|
|
286
|
+
kindOf: Ve,
|
|
287
|
+
kindOfTest: B,
|
|
288
|
+
endsWith: bn,
|
|
289
|
+
toArray: wn,
|
|
290
|
+
forEachEntry: Sn,
|
|
291
|
+
matchAll: xn,
|
|
292
|
+
isHTMLForm: On,
|
|
293
|
+
hasOwnProperty: yt,
|
|
294
|
+
hasOwnProp: yt,
|
|
295
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
296
|
+
reduceDescriptors: Wt,
|
|
297
|
+
freezeMethods: An,
|
|
298
|
+
toObjectSet: Tn,
|
|
299
|
+
toCamelCase: Cn,
|
|
300
|
+
noop: vn,
|
|
301
|
+
toFiniteNumber: Pn,
|
|
302
|
+
findKey: Vt,
|
|
303
|
+
global: te,
|
|
304
|
+
isContextDefined: Jt,
|
|
305
|
+
isSpecCompliantForm: _n,
|
|
306
|
+
toJSONObject: kn,
|
|
307
|
+
isAsyncFn: Nn,
|
|
308
|
+
isThenable: Dn,
|
|
309
|
+
setImmediate: Yt,
|
|
310
|
+
asap: Ln,
|
|
311
|
+
isIterable: $n
|
|
312
|
+
};
|
|
313
|
+
function R(e, t, r, n, o) {
|
|
314
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
315
|
+
}
|
|
316
|
+
u.inherits(R, Error, {
|
|
317
|
+
toJSON: function() {
|
|
318
|
+
return {
|
|
319
|
+
// Standard
|
|
320
|
+
message: this.message,
|
|
321
|
+
name: this.name,
|
|
322
|
+
// Microsoft
|
|
323
|
+
description: this.description,
|
|
324
|
+
number: this.number,
|
|
325
|
+
// Mozilla
|
|
326
|
+
fileName: this.fileName,
|
|
327
|
+
lineNumber: this.lineNumber,
|
|
328
|
+
columnNumber: this.columnNumber,
|
|
329
|
+
stack: this.stack,
|
|
330
|
+
// Axios
|
|
331
|
+
config: u.toJSONObject(this.config),
|
|
332
|
+
code: this.code,
|
|
333
|
+
status: this.status
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
const Kt = R.prototype, Xt = {};
|
|
338
|
+
[
|
|
339
|
+
"ERR_BAD_OPTION_VALUE",
|
|
340
|
+
"ERR_BAD_OPTION",
|
|
341
|
+
"ECONNABORTED",
|
|
342
|
+
"ETIMEDOUT",
|
|
343
|
+
"ERR_NETWORK",
|
|
344
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
345
|
+
"ERR_DEPRECATED",
|
|
346
|
+
"ERR_BAD_RESPONSE",
|
|
347
|
+
"ERR_BAD_REQUEST",
|
|
348
|
+
"ERR_CANCELED",
|
|
349
|
+
"ERR_NOT_SUPPORT",
|
|
350
|
+
"ERR_INVALID_URL"
|
|
351
|
+
// eslint-disable-next-line func-names
|
|
352
|
+
].forEach((e) => {
|
|
353
|
+
Xt[e] = { value: e };
|
|
354
|
+
});
|
|
355
|
+
Object.defineProperties(R, Xt);
|
|
356
|
+
Object.defineProperty(Kt, "isAxiosError", { value: !0 });
|
|
357
|
+
R.from = (e, t, r, n, o, i) => {
|
|
358
|
+
const s = Object.create(Kt);
|
|
359
|
+
u.toFlatObject(e, s, function(l) {
|
|
360
|
+
return l !== Error.prototype;
|
|
361
|
+
}, (c) => c !== "isAxiosError");
|
|
362
|
+
const a = e && e.message ? e.message : "Error", f = t == null && e ? e.code : t;
|
|
363
|
+
return R.call(s, a, f, r, n, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", i && Object.assign(s, i), s;
|
|
364
|
+
};
|
|
365
|
+
const Fn = null;
|
|
366
|
+
function ot(e) {
|
|
367
|
+
return u.isPlainObject(e) || u.isArray(e);
|
|
368
|
+
}
|
|
369
|
+
function Gt(e) {
|
|
370
|
+
return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
371
|
+
}
|
|
372
|
+
function gt(e, t, r) {
|
|
373
|
+
return e ? e.concat(t).map(function(o, i) {
|
|
374
|
+
return o = Gt(o), !r && i ? "[" + o + "]" : o;
|
|
375
|
+
}).join(r ? "." : "") : t;
|
|
376
|
+
}
|
|
377
|
+
function jn(e) {
|
|
378
|
+
return u.isArray(e) && !e.some(ot);
|
|
379
|
+
}
|
|
380
|
+
const In = u.toFlatObject(u, {}, null, function(t) {
|
|
381
|
+
return /^is[A-Z]/.test(t);
|
|
382
|
+
});
|
|
383
|
+
function We(e, t, r) {
|
|
384
|
+
if (!u.isObject(e))
|
|
385
|
+
throw new TypeError("target must be an object");
|
|
386
|
+
t = t || new FormData(), r = u.toFlatObject(r, {
|
|
387
|
+
metaTokens: !0,
|
|
388
|
+
dots: !1,
|
|
389
|
+
indexes: !1
|
|
390
|
+
}, !1, function(h, g) {
|
|
391
|
+
return !u.isUndefined(g[h]);
|
|
392
|
+
});
|
|
393
|
+
const n = r.metaTokens, o = r.visitor || l, i = r.dots, s = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
|
|
394
|
+
if (!u.isFunction(o))
|
|
395
|
+
throw new TypeError("visitor must be a function");
|
|
396
|
+
function c(d) {
|
|
397
|
+
if (d === null) return "";
|
|
398
|
+
if (u.isDate(d))
|
|
399
|
+
return d.toISOString();
|
|
400
|
+
if (u.isBoolean(d))
|
|
401
|
+
return d.toString();
|
|
402
|
+
if (!f && u.isBlob(d))
|
|
403
|
+
throw new R("Blob is not supported. Use a Buffer instead.");
|
|
404
|
+
return u.isArrayBuffer(d) || u.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
|
|
405
|
+
}
|
|
406
|
+
function l(d, h, g) {
|
|
407
|
+
let C = d;
|
|
408
|
+
if (d && !g && typeof d == "object") {
|
|
409
|
+
if (u.endsWith(h, "{}"))
|
|
410
|
+
h = n ? h : h.slice(0, -2), d = JSON.stringify(d);
|
|
411
|
+
else if (u.isArray(d) && jn(d) || (u.isFileList(d) || u.endsWith(h, "[]")) && (C = u.toArray(d)))
|
|
412
|
+
return h = Gt(h), C.forEach(function(w, S) {
|
|
413
|
+
!(u.isUndefined(w) || w === null) && t.append(
|
|
414
|
+
// eslint-disable-next-line no-nested-ternary
|
|
415
|
+
s === !0 ? gt([h], S, i) : s === null ? h : h + "[]",
|
|
416
|
+
c(w)
|
|
417
|
+
);
|
|
418
|
+
}), !1;
|
|
419
|
+
}
|
|
420
|
+
return ot(d) ? !0 : (t.append(gt(g, h, i), c(d)), !1);
|
|
421
|
+
}
|
|
422
|
+
const p = [], b = Object.assign(In, {
|
|
423
|
+
defaultVisitor: l,
|
|
424
|
+
convertValue: c,
|
|
425
|
+
isVisitable: ot
|
|
426
|
+
});
|
|
427
|
+
function y(d, h) {
|
|
428
|
+
if (!u.isUndefined(d)) {
|
|
429
|
+
if (p.indexOf(d) !== -1)
|
|
430
|
+
throw Error("Circular reference detected in " + h.join("."));
|
|
431
|
+
p.push(d), u.forEach(d, function(C, E) {
|
|
432
|
+
(!(u.isUndefined(C) || C === null) && o.call(
|
|
433
|
+
t,
|
|
434
|
+
C,
|
|
435
|
+
u.isString(E) ? E.trim() : E,
|
|
436
|
+
h,
|
|
437
|
+
b
|
|
438
|
+
)) === !0 && y(C, h ? h.concat(E) : [E]);
|
|
439
|
+
}), p.pop();
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
if (!u.isObject(e))
|
|
443
|
+
throw new TypeError("data must be an object");
|
|
444
|
+
return y(e), t;
|
|
445
|
+
}
|
|
446
|
+
function bt(e) {
|
|
447
|
+
const t = {
|
|
448
|
+
"!": "%21",
|
|
449
|
+
"'": "%27",
|
|
450
|
+
"(": "%28",
|
|
451
|
+
")": "%29",
|
|
452
|
+
"~": "%7E",
|
|
453
|
+
"%20": "+",
|
|
454
|
+
"%00": "\0"
|
|
455
|
+
};
|
|
456
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
|
|
457
|
+
return t[n];
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
function ut(e, t) {
|
|
461
|
+
this._pairs = [], e && We(e, this, t);
|
|
462
|
+
}
|
|
463
|
+
const Zt = ut.prototype;
|
|
464
|
+
Zt.append = function(t, r) {
|
|
465
|
+
this._pairs.push([t, r]);
|
|
466
|
+
};
|
|
467
|
+
Zt.toString = function(t) {
|
|
468
|
+
const r = t ? function(n) {
|
|
469
|
+
return t.call(this, n, bt);
|
|
470
|
+
} : bt;
|
|
471
|
+
return this._pairs.map(function(o) {
|
|
472
|
+
return r(o[0]) + "=" + r(o[1]);
|
|
473
|
+
}, "").join("&");
|
|
474
|
+
};
|
|
475
|
+
function Mn(e) {
|
|
476
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
477
|
+
}
|
|
478
|
+
function Qt(e, t, r) {
|
|
479
|
+
if (!t)
|
|
480
|
+
return e;
|
|
481
|
+
const n = r && r.encode || Mn;
|
|
482
|
+
u.isFunction(r) && (r = {
|
|
483
|
+
serialize: r
|
|
484
|
+
});
|
|
485
|
+
const o = r && r.serialize;
|
|
486
|
+
let i;
|
|
487
|
+
if (o ? i = o(t, r) : i = u.isURLSearchParams(t) ? t.toString() : new ut(t, r).toString(n), i) {
|
|
488
|
+
const s = e.indexOf("#");
|
|
489
|
+
s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
490
|
+
}
|
|
491
|
+
return e;
|
|
492
|
+
}
|
|
493
|
+
class wt {
|
|
494
|
+
constructor() {
|
|
495
|
+
this.handlers = [];
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Add a new interceptor to the stack
|
|
499
|
+
*
|
|
500
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
501
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
502
|
+
*
|
|
503
|
+
* @return {Number} An ID used to remove interceptor later
|
|
504
|
+
*/
|
|
505
|
+
use(t, r, n) {
|
|
506
|
+
return this.handlers.push({
|
|
507
|
+
fulfilled: t,
|
|
508
|
+
rejected: r,
|
|
509
|
+
synchronous: n ? n.synchronous : !1,
|
|
510
|
+
runWhen: n ? n.runWhen : null
|
|
511
|
+
}), this.handlers.length - 1;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Remove an interceptor from the stack
|
|
515
|
+
*
|
|
516
|
+
* @param {Number} id The ID that was returned by `use`
|
|
517
|
+
*
|
|
518
|
+
* @returns {void}
|
|
519
|
+
*/
|
|
520
|
+
eject(t) {
|
|
521
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Clear all interceptors from the stack
|
|
525
|
+
*
|
|
526
|
+
* @returns {void}
|
|
527
|
+
*/
|
|
528
|
+
clear() {
|
|
529
|
+
this.handlers && (this.handlers = []);
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Iterate over all the registered interceptors
|
|
533
|
+
*
|
|
534
|
+
* This method is particularly useful for skipping over any
|
|
535
|
+
* interceptors that may have become `null` calling `eject`.
|
|
536
|
+
*
|
|
537
|
+
* @param {Function} fn The function to call for each interceptor
|
|
538
|
+
*
|
|
539
|
+
* @returns {void}
|
|
540
|
+
*/
|
|
541
|
+
forEach(t) {
|
|
542
|
+
u.forEach(this.handlers, function(n) {
|
|
543
|
+
n !== null && t(n);
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
const er = {
|
|
548
|
+
silentJSONParsing: !0,
|
|
549
|
+
forcedJSONParsing: !0,
|
|
550
|
+
clarifyTimeoutError: !1
|
|
551
|
+
}, Un = typeof URLSearchParams < "u" ? URLSearchParams : ut, Bn = typeof FormData < "u" ? FormData : null, zn = typeof Blob < "u" ? Blob : null, Hn = {
|
|
552
|
+
isBrowser: !0,
|
|
553
|
+
classes: {
|
|
554
|
+
URLSearchParams: Un,
|
|
555
|
+
FormData: Bn,
|
|
556
|
+
Blob: zn
|
|
557
|
+
},
|
|
558
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
559
|
+
}, ft = typeof window < "u" && typeof document < "u", st = typeof navigator == "object" && navigator || void 0, qn = ft && (!st || ["ReactNative", "NativeScript", "NS"].indexOf(st.product) < 0), Vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
560
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jn = ft && window.location.href || "http://localhost", Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
561
|
+
__proto__: null,
|
|
562
|
+
hasBrowserEnv: ft,
|
|
563
|
+
hasStandardBrowserEnv: qn,
|
|
564
|
+
hasStandardBrowserWebWorkerEnv: Vn,
|
|
565
|
+
navigator: st,
|
|
566
|
+
origin: Jn
|
|
567
|
+
}, Symbol.toStringTag, { value: "Module" })), L = {
|
|
568
|
+
...Wn,
|
|
569
|
+
...Hn
|
|
570
|
+
};
|
|
571
|
+
function Yn(e, t) {
|
|
572
|
+
return We(e, new L.classes.URLSearchParams(), {
|
|
573
|
+
visitor: function(r, n, o, i) {
|
|
574
|
+
return L.isNode && u.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
575
|
+
},
|
|
576
|
+
...t
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
function Kn(e) {
|
|
580
|
+
return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
581
|
+
}
|
|
582
|
+
function Xn(e) {
|
|
583
|
+
const t = {}, r = Object.keys(e);
|
|
584
|
+
let n;
|
|
585
|
+
const o = r.length;
|
|
586
|
+
let i;
|
|
587
|
+
for (n = 0; n < o; n++)
|
|
588
|
+
i = r[n], t[i] = e[i];
|
|
589
|
+
return t;
|
|
590
|
+
}
|
|
591
|
+
function tr(e) {
|
|
592
|
+
function t(r, n, o, i) {
|
|
593
|
+
let s = r[i++];
|
|
594
|
+
if (s === "__proto__") return !0;
|
|
595
|
+
const a = Number.isFinite(+s), f = i >= r.length;
|
|
596
|
+
return s = !s && u.isArray(o) ? o.length : s, f ? (u.hasOwnProp(o, s) ? o[s] = [o[s], n] : o[s] = n, !a) : ((!o[s] || !u.isObject(o[s])) && (o[s] = []), t(r, n, o[s], i) && u.isArray(o[s]) && (o[s] = Xn(o[s])), !a);
|
|
597
|
+
}
|
|
598
|
+
if (u.isFormData(e) && u.isFunction(e.entries)) {
|
|
599
|
+
const r = {};
|
|
600
|
+
return u.forEachEntry(e, (n, o) => {
|
|
601
|
+
t(Kn(n), o, r, 0);
|
|
602
|
+
}), r;
|
|
603
|
+
}
|
|
604
|
+
return null;
|
|
605
|
+
}
|
|
606
|
+
function Gn(e, t, r) {
|
|
607
|
+
if (u.isString(e))
|
|
608
|
+
try {
|
|
609
|
+
return (t || JSON.parse)(e), u.trim(e);
|
|
610
|
+
} catch (n) {
|
|
611
|
+
if (n.name !== "SyntaxError")
|
|
612
|
+
throw n;
|
|
613
|
+
}
|
|
614
|
+
return (r || JSON.stringify)(e);
|
|
615
|
+
}
|
|
616
|
+
const Ce = {
|
|
617
|
+
transitional: er,
|
|
618
|
+
adapter: ["xhr", "http", "fetch"],
|
|
619
|
+
transformRequest: [function(t, r) {
|
|
620
|
+
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = u.isObject(t);
|
|
621
|
+
if (i && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
|
|
622
|
+
return o ? JSON.stringify(tr(t)) : t;
|
|
623
|
+
if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
|
|
624
|
+
return t;
|
|
625
|
+
if (u.isArrayBufferView(t))
|
|
626
|
+
return t.buffer;
|
|
627
|
+
if (u.isURLSearchParams(t))
|
|
628
|
+
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
629
|
+
let a;
|
|
630
|
+
if (i) {
|
|
631
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
632
|
+
return Yn(t, this.formSerializer).toString();
|
|
633
|
+
if ((a = u.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
634
|
+
const f = this.env && this.env.FormData;
|
|
635
|
+
return We(
|
|
636
|
+
a ? { "files[]": t } : t,
|
|
637
|
+
f && new f(),
|
|
638
|
+
this.formSerializer
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
return i || o ? (r.setContentType("application/json", !1), Gn(t)) : t;
|
|
643
|
+
}],
|
|
644
|
+
transformResponse: [function(t) {
|
|
645
|
+
const r = this.transitional || Ce.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
646
|
+
if (u.isResponse(t) || u.isReadableStream(t))
|
|
647
|
+
return t;
|
|
648
|
+
if (t && u.isString(t) && (n && !this.responseType || o)) {
|
|
649
|
+
const s = !(r && r.silentJSONParsing) && o;
|
|
650
|
+
try {
|
|
651
|
+
return JSON.parse(t, this.parseReviver);
|
|
652
|
+
} catch (a) {
|
|
653
|
+
if (s)
|
|
654
|
+
throw a.name === "SyntaxError" ? R.from(a, R.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return t;
|
|
658
|
+
}],
|
|
659
|
+
/**
|
|
660
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
661
|
+
* timeout is not created.
|
|
662
|
+
*/
|
|
663
|
+
timeout: 0,
|
|
664
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
665
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
666
|
+
maxContentLength: -1,
|
|
667
|
+
maxBodyLength: -1,
|
|
668
|
+
env: {
|
|
669
|
+
FormData: L.classes.FormData,
|
|
670
|
+
Blob: L.classes.Blob
|
|
671
|
+
},
|
|
672
|
+
validateStatus: function(t) {
|
|
673
|
+
return t >= 200 && t < 300;
|
|
674
|
+
},
|
|
675
|
+
headers: {
|
|
676
|
+
common: {
|
|
677
|
+
Accept: "application/json, text/plain, */*",
|
|
678
|
+
"Content-Type": void 0
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
683
|
+
Ce.headers[e] = {};
|
|
684
|
+
});
|
|
685
|
+
const Zn = u.toObjectSet([
|
|
686
|
+
"age",
|
|
687
|
+
"authorization",
|
|
688
|
+
"content-length",
|
|
689
|
+
"content-type",
|
|
690
|
+
"etag",
|
|
691
|
+
"expires",
|
|
692
|
+
"from",
|
|
693
|
+
"host",
|
|
694
|
+
"if-modified-since",
|
|
695
|
+
"if-unmodified-since",
|
|
696
|
+
"last-modified",
|
|
697
|
+
"location",
|
|
698
|
+
"max-forwards",
|
|
699
|
+
"proxy-authorization",
|
|
700
|
+
"referer",
|
|
701
|
+
"retry-after",
|
|
702
|
+
"user-agent"
|
|
703
|
+
]), Qn = (e) => {
|
|
704
|
+
const t = {};
|
|
705
|
+
let r, n, o;
|
|
706
|
+
return e && e.split(`
|
|
707
|
+
`).forEach(function(s) {
|
|
708
|
+
o = s.indexOf(":"), r = s.substring(0, o).trim().toLowerCase(), n = s.substring(o + 1).trim(), !(!r || t[r] && Zn[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
709
|
+
}), t;
|
|
710
|
+
}, Et = Symbol("internals");
|
|
711
|
+
function he(e) {
|
|
712
|
+
return e && String(e).trim().toLowerCase();
|
|
713
|
+
}
|
|
714
|
+
function Ie(e) {
|
|
715
|
+
return e === !1 || e == null ? e : u.isArray(e) ? e.map(Ie) : String(e);
|
|
716
|
+
}
|
|
717
|
+
function eo(e) {
|
|
718
|
+
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
719
|
+
let n;
|
|
720
|
+
for (; n = r.exec(e); )
|
|
721
|
+
t[n[1]] = n[2];
|
|
722
|
+
return t;
|
|
723
|
+
}
|
|
724
|
+
const to = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
725
|
+
function Ze(e, t, r, n, o) {
|
|
726
|
+
if (u.isFunction(n))
|
|
727
|
+
return n.call(this, t, r);
|
|
728
|
+
if (o && (t = r), !!u.isString(t)) {
|
|
729
|
+
if (u.isString(n))
|
|
730
|
+
return t.indexOf(n) !== -1;
|
|
731
|
+
if (u.isRegExp(n))
|
|
732
|
+
return n.test(t);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
function ro(e) {
|
|
736
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
737
|
+
}
|
|
738
|
+
function no(e, t) {
|
|
739
|
+
const r = u.toCamelCase(" " + t);
|
|
740
|
+
["get", "set", "has"].forEach((n) => {
|
|
741
|
+
Object.defineProperty(e, n + r, {
|
|
742
|
+
value: function(o, i, s) {
|
|
743
|
+
return this[n].call(this, t, o, i, s);
|
|
744
|
+
},
|
|
745
|
+
configurable: !0
|
|
746
|
+
});
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
let F = class {
|
|
750
|
+
constructor(t) {
|
|
751
|
+
t && this.set(t);
|
|
752
|
+
}
|
|
753
|
+
set(t, r, n) {
|
|
754
|
+
const o = this;
|
|
755
|
+
function i(a, f, c) {
|
|
756
|
+
const l = he(f);
|
|
757
|
+
if (!l)
|
|
758
|
+
throw new Error("header name must be a non-empty string");
|
|
759
|
+
const p = u.findKey(o, l);
|
|
760
|
+
(!p || o[p] === void 0 || c === !0 || c === void 0 && o[p] !== !1) && (o[p || f] = Ie(a));
|
|
761
|
+
}
|
|
762
|
+
const s = (a, f) => u.forEach(a, (c, l) => i(c, l, f));
|
|
763
|
+
if (u.isPlainObject(t) || t instanceof this.constructor)
|
|
764
|
+
s(t, r);
|
|
765
|
+
else if (u.isString(t) && (t = t.trim()) && !to(t))
|
|
766
|
+
s(Qn(t), r);
|
|
767
|
+
else if (u.isObject(t) && u.isIterable(t)) {
|
|
768
|
+
let a = {}, f, c;
|
|
769
|
+
for (const l of t) {
|
|
770
|
+
if (!u.isArray(l))
|
|
771
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
772
|
+
a[c = l[0]] = (f = a[c]) ? u.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
|
|
773
|
+
}
|
|
774
|
+
s(a, r);
|
|
775
|
+
} else
|
|
776
|
+
t != null && i(r, t, n);
|
|
777
|
+
return this;
|
|
778
|
+
}
|
|
779
|
+
get(t, r) {
|
|
780
|
+
if (t = he(t), t) {
|
|
781
|
+
const n = u.findKey(this, t);
|
|
782
|
+
if (n) {
|
|
783
|
+
const o = this[n];
|
|
784
|
+
if (!r)
|
|
785
|
+
return o;
|
|
786
|
+
if (r === !0)
|
|
787
|
+
return eo(o);
|
|
788
|
+
if (u.isFunction(r))
|
|
789
|
+
return r.call(this, o, n);
|
|
790
|
+
if (u.isRegExp(r))
|
|
791
|
+
return r.exec(o);
|
|
792
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
has(t, r) {
|
|
797
|
+
if (t = he(t), t) {
|
|
798
|
+
const n = u.findKey(this, t);
|
|
799
|
+
return !!(n && this[n] !== void 0 && (!r || Ze(this, this[n], n, r)));
|
|
800
|
+
}
|
|
801
|
+
return !1;
|
|
802
|
+
}
|
|
803
|
+
delete(t, r) {
|
|
804
|
+
const n = this;
|
|
805
|
+
let o = !1;
|
|
806
|
+
function i(s) {
|
|
807
|
+
if (s = he(s), s) {
|
|
808
|
+
const a = u.findKey(n, s);
|
|
809
|
+
a && (!r || Ze(n, n[a], a, r)) && (delete n[a], o = !0);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return u.isArray(t) ? t.forEach(i) : i(t), o;
|
|
813
|
+
}
|
|
814
|
+
clear(t) {
|
|
815
|
+
const r = Object.keys(this);
|
|
816
|
+
let n = r.length, o = !1;
|
|
817
|
+
for (; n--; ) {
|
|
818
|
+
const i = r[n];
|
|
819
|
+
(!t || Ze(this, this[i], i, t, !0)) && (delete this[i], o = !0);
|
|
820
|
+
}
|
|
821
|
+
return o;
|
|
822
|
+
}
|
|
823
|
+
normalize(t) {
|
|
824
|
+
const r = this, n = {};
|
|
825
|
+
return u.forEach(this, (o, i) => {
|
|
826
|
+
const s = u.findKey(n, i);
|
|
827
|
+
if (s) {
|
|
828
|
+
r[s] = Ie(o), delete r[i];
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
const a = t ? ro(i) : String(i).trim();
|
|
832
|
+
a !== i && delete r[i], r[a] = Ie(o), n[a] = !0;
|
|
833
|
+
}), this;
|
|
834
|
+
}
|
|
835
|
+
concat(...t) {
|
|
836
|
+
return this.constructor.concat(this, ...t);
|
|
837
|
+
}
|
|
838
|
+
toJSON(t) {
|
|
839
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
840
|
+
return u.forEach(this, (n, o) => {
|
|
841
|
+
n != null && n !== !1 && (r[o] = t && u.isArray(n) ? n.join(", ") : n);
|
|
842
|
+
}), r;
|
|
843
|
+
}
|
|
844
|
+
[Symbol.iterator]() {
|
|
845
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
846
|
+
}
|
|
847
|
+
toString() {
|
|
848
|
+
return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
|
|
849
|
+
`);
|
|
850
|
+
}
|
|
851
|
+
getSetCookie() {
|
|
852
|
+
return this.get("set-cookie") || [];
|
|
853
|
+
}
|
|
854
|
+
get [Symbol.toStringTag]() {
|
|
855
|
+
return "AxiosHeaders";
|
|
856
|
+
}
|
|
857
|
+
static from(t) {
|
|
858
|
+
return t instanceof this ? t : new this(t);
|
|
859
|
+
}
|
|
860
|
+
static concat(t, ...r) {
|
|
861
|
+
const n = new this(t);
|
|
862
|
+
return r.forEach((o) => n.set(o)), n;
|
|
863
|
+
}
|
|
864
|
+
static accessor(t) {
|
|
865
|
+
const n = (this[Et] = this[Et] = {
|
|
866
|
+
accessors: {}
|
|
867
|
+
}).accessors, o = this.prototype;
|
|
868
|
+
function i(s) {
|
|
869
|
+
const a = he(s);
|
|
870
|
+
n[a] || (no(o, s), n[a] = !0);
|
|
871
|
+
}
|
|
872
|
+
return u.isArray(t) ? t.forEach(i) : i(t), this;
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
876
|
+
u.reduceDescriptors(F.prototype, ({ value: e }, t) => {
|
|
877
|
+
let r = t[0].toUpperCase() + t.slice(1);
|
|
878
|
+
return {
|
|
879
|
+
get: () => e,
|
|
880
|
+
set(n) {
|
|
881
|
+
this[r] = n;
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
});
|
|
885
|
+
u.freezeMethods(F);
|
|
886
|
+
function Qe(e, t) {
|
|
887
|
+
const r = this || Ce, n = t || r, o = F.from(n.headers);
|
|
888
|
+
let i = n.data;
|
|
889
|
+
return u.forEach(e, function(a) {
|
|
890
|
+
i = a.call(r, i, o.normalize(), t ? t.status : void 0);
|
|
891
|
+
}), o.normalize(), i;
|
|
892
|
+
}
|
|
893
|
+
function rr(e) {
|
|
894
|
+
return !!(e && e.__CANCEL__);
|
|
895
|
+
}
|
|
896
|
+
function de(e, t, r) {
|
|
897
|
+
R.call(this, e ?? "canceled", R.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
898
|
+
}
|
|
899
|
+
u.inherits(de, R, {
|
|
900
|
+
__CANCEL__: !0
|
|
901
|
+
});
|
|
902
|
+
function nr(e, t, r) {
|
|
903
|
+
const n = r.config.validateStatus;
|
|
904
|
+
!r.status || !n || n(r.status) ? e(r) : t(new R(
|
|
905
|
+
"Request failed with status code " + r.status,
|
|
906
|
+
[R.ERR_BAD_REQUEST, R.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
907
|
+
r.config,
|
|
908
|
+
r.request,
|
|
909
|
+
r
|
|
910
|
+
));
|
|
911
|
+
}
|
|
912
|
+
function oo(e) {
|
|
913
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
914
|
+
return t && t[1] || "";
|
|
915
|
+
}
|
|
916
|
+
function so(e, t) {
|
|
917
|
+
e = e || 10;
|
|
918
|
+
const r = new Array(e), n = new Array(e);
|
|
919
|
+
let o = 0, i = 0, s;
|
|
920
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
921
|
+
const c = Date.now(), l = n[i];
|
|
922
|
+
s || (s = c), r[o] = f, n[o] = c;
|
|
923
|
+
let p = i, b = 0;
|
|
924
|
+
for (; p !== o; )
|
|
925
|
+
b += r[p++], p = p % e;
|
|
926
|
+
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), c - s < t)
|
|
927
|
+
return;
|
|
928
|
+
const y = l && c - l;
|
|
929
|
+
return y ? Math.round(b * 1e3 / y) : void 0;
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
function io(e, t) {
|
|
933
|
+
let r = 0, n = 1e3 / t, o, i;
|
|
934
|
+
const s = (c, l = Date.now()) => {
|
|
935
|
+
r = l, o = null, i && (clearTimeout(i), i = null), e(...c);
|
|
936
|
+
};
|
|
937
|
+
return [(...c) => {
|
|
938
|
+
const l = Date.now(), p = l - r;
|
|
939
|
+
p >= n ? s(c, l) : (o = c, i || (i = setTimeout(() => {
|
|
940
|
+
i = null, s(o);
|
|
941
|
+
}, n - p)));
|
|
942
|
+
}, () => o && s(o)];
|
|
943
|
+
}
|
|
944
|
+
const ze = (e, t, r = 3) => {
|
|
945
|
+
let n = 0;
|
|
946
|
+
const o = so(50, 250);
|
|
947
|
+
return io((i) => {
|
|
948
|
+
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, f = s - n, c = o(f), l = s <= a;
|
|
949
|
+
n = s;
|
|
950
|
+
const p = {
|
|
951
|
+
loaded: s,
|
|
952
|
+
total: a,
|
|
953
|
+
progress: a ? s / a : void 0,
|
|
954
|
+
bytes: f,
|
|
955
|
+
rate: c || void 0,
|
|
956
|
+
estimated: c && a && l ? (a - s) / c : void 0,
|
|
957
|
+
event: i,
|
|
958
|
+
lengthComputable: a != null,
|
|
959
|
+
[t ? "download" : "upload"]: !0
|
|
960
|
+
};
|
|
961
|
+
e(p);
|
|
962
|
+
}, r);
|
|
963
|
+
}, St = (e, t) => {
|
|
964
|
+
const r = e != null;
|
|
965
|
+
return [(n) => t[0]({
|
|
966
|
+
lengthComputable: r,
|
|
967
|
+
total: e,
|
|
968
|
+
loaded: n
|
|
969
|
+
}), t[1]];
|
|
970
|
+
}, xt = (e) => (...t) => u.asap(() => e(...t)), ao = L.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, L.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
971
|
+
new URL(L.origin),
|
|
972
|
+
L.navigator && /(msie|trident)/i.test(L.navigator.userAgent)
|
|
973
|
+
) : () => !0, co = L.hasStandardBrowserEnv ? (
|
|
974
|
+
// Standard browser envs support document.cookie
|
|
975
|
+
{
|
|
976
|
+
write(e, t, r, n, o, i, s) {
|
|
977
|
+
if (typeof document > "u") return;
|
|
978
|
+
const a = [`${e}=${encodeURIComponent(t)}`];
|
|
979
|
+
u.isNumber(r) && a.push(`expires=${new Date(r).toUTCString()}`), u.isString(n) && a.push(`path=${n}`), u.isString(o) && a.push(`domain=${o}`), i === !0 && a.push("secure"), u.isString(s) && a.push(`SameSite=${s}`), document.cookie = a.join("; ");
|
|
980
|
+
},
|
|
981
|
+
read(e) {
|
|
982
|
+
if (typeof document > "u") return null;
|
|
983
|
+
const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
|
|
984
|
+
return t ? decodeURIComponent(t[1]) : null;
|
|
985
|
+
},
|
|
986
|
+
remove(e) {
|
|
987
|
+
this.write(e, "", Date.now() - 864e5, "/");
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
) : (
|
|
991
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
992
|
+
{
|
|
993
|
+
write() {
|
|
994
|
+
},
|
|
995
|
+
read() {
|
|
996
|
+
return null;
|
|
997
|
+
},
|
|
998
|
+
remove() {
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
);
|
|
1002
|
+
function lo(e) {
|
|
1003
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1004
|
+
}
|
|
1005
|
+
function uo(e, t) {
|
|
1006
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1007
|
+
}
|
|
1008
|
+
function or(e, t, r) {
|
|
1009
|
+
let n = !lo(t);
|
|
1010
|
+
return e && (n || r == !1) ? uo(e, t) : t;
|
|
1011
|
+
}
|
|
1012
|
+
const Ot = (e) => e instanceof F ? { ...e } : e;
|
|
1013
|
+
function ne(e, t) {
|
|
1014
|
+
t = t || {};
|
|
1015
|
+
const r = {};
|
|
1016
|
+
function n(c, l, p, b) {
|
|
1017
|
+
return u.isPlainObject(c) && u.isPlainObject(l) ? u.merge.call({ caseless: b }, c, l) : u.isPlainObject(l) ? u.merge({}, l) : u.isArray(l) ? l.slice() : l;
|
|
1018
|
+
}
|
|
1019
|
+
function o(c, l, p, b) {
|
|
1020
|
+
if (u.isUndefined(l)) {
|
|
1021
|
+
if (!u.isUndefined(c))
|
|
1022
|
+
return n(void 0, c, p, b);
|
|
1023
|
+
} else return n(c, l, p, b);
|
|
1024
|
+
}
|
|
1025
|
+
function i(c, l) {
|
|
1026
|
+
if (!u.isUndefined(l))
|
|
1027
|
+
return n(void 0, l);
|
|
1028
|
+
}
|
|
1029
|
+
function s(c, l) {
|
|
1030
|
+
if (u.isUndefined(l)) {
|
|
1031
|
+
if (!u.isUndefined(c))
|
|
1032
|
+
return n(void 0, c);
|
|
1033
|
+
} else return n(void 0, l);
|
|
1034
|
+
}
|
|
1035
|
+
function a(c, l, p) {
|
|
1036
|
+
if (p in t)
|
|
1037
|
+
return n(c, l);
|
|
1038
|
+
if (p in e)
|
|
1039
|
+
return n(void 0, c);
|
|
1040
|
+
}
|
|
1041
|
+
const f = {
|
|
1042
|
+
url: i,
|
|
1043
|
+
method: i,
|
|
1044
|
+
data: i,
|
|
1045
|
+
baseURL: s,
|
|
1046
|
+
transformRequest: s,
|
|
1047
|
+
transformResponse: s,
|
|
1048
|
+
paramsSerializer: s,
|
|
1049
|
+
timeout: s,
|
|
1050
|
+
timeoutMessage: s,
|
|
1051
|
+
withCredentials: s,
|
|
1052
|
+
withXSRFToken: s,
|
|
1053
|
+
adapter: s,
|
|
1054
|
+
responseType: s,
|
|
1055
|
+
xsrfCookieName: s,
|
|
1056
|
+
xsrfHeaderName: s,
|
|
1057
|
+
onUploadProgress: s,
|
|
1058
|
+
onDownloadProgress: s,
|
|
1059
|
+
decompress: s,
|
|
1060
|
+
maxContentLength: s,
|
|
1061
|
+
maxBodyLength: s,
|
|
1062
|
+
beforeRedirect: s,
|
|
1063
|
+
transport: s,
|
|
1064
|
+
httpAgent: s,
|
|
1065
|
+
httpsAgent: s,
|
|
1066
|
+
cancelToken: s,
|
|
1067
|
+
socketPath: s,
|
|
1068
|
+
responseEncoding: s,
|
|
1069
|
+
validateStatus: a,
|
|
1070
|
+
headers: (c, l, p) => o(Ot(c), Ot(l), p, !0)
|
|
1071
|
+
};
|
|
1072
|
+
return u.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
1073
|
+
const p = f[l] || o, b = p(e[l], t[l], l);
|
|
1074
|
+
u.isUndefined(b) && p !== a || (r[l] = b);
|
|
1075
|
+
}), r;
|
|
1076
|
+
}
|
|
1077
|
+
const sr = (e) => {
|
|
1078
|
+
const t = ne({}, e);
|
|
1079
|
+
let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = t;
|
|
1080
|
+
if (t.headers = s = F.from(s), t.url = Qt(or(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && s.set(
|
|
1081
|
+
"Authorization",
|
|
1082
|
+
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1083
|
+
), u.isFormData(r)) {
|
|
1084
|
+
if (L.hasStandardBrowserEnv || L.hasStandardBrowserWebWorkerEnv)
|
|
1085
|
+
s.setContentType(void 0);
|
|
1086
|
+
else if (u.isFunction(r.getHeaders)) {
|
|
1087
|
+
const f = r.getHeaders(), c = ["content-type", "content-length"];
|
|
1088
|
+
Object.entries(f).forEach(([l, p]) => {
|
|
1089
|
+
c.includes(l.toLowerCase()) && s.set(l, p);
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
if (L.hasStandardBrowserEnv && (n && u.isFunction(n) && (n = n(t)), n || n !== !1 && ao(t.url))) {
|
|
1094
|
+
const f = o && i && co.read(i);
|
|
1095
|
+
f && s.set(o, f);
|
|
1096
|
+
}
|
|
1097
|
+
return t;
|
|
1098
|
+
}, fo = typeof XMLHttpRequest < "u", po = fo && function(e) {
|
|
1099
|
+
return new Promise(function(r, n) {
|
|
1100
|
+
const o = sr(e);
|
|
1101
|
+
let i = o.data;
|
|
1102
|
+
const s = F.from(o.headers).normalize();
|
|
1103
|
+
let { responseType: a, onUploadProgress: f, onDownloadProgress: c } = o, l, p, b, y, d;
|
|
1104
|
+
function h() {
|
|
1105
|
+
y && y(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
|
|
1106
|
+
}
|
|
1107
|
+
let g = new XMLHttpRequest();
|
|
1108
|
+
g.open(o.method.toUpperCase(), o.url, !0), g.timeout = o.timeout;
|
|
1109
|
+
function C() {
|
|
1110
|
+
if (!g)
|
|
1111
|
+
return;
|
|
1112
|
+
const w = F.from(
|
|
1113
|
+
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
1114
|
+
), m = {
|
|
1115
|
+
data: !a || a === "text" || a === "json" ? g.responseText : g.response,
|
|
1116
|
+
status: g.status,
|
|
1117
|
+
statusText: g.statusText,
|
|
1118
|
+
headers: w,
|
|
1119
|
+
config: e,
|
|
1120
|
+
request: g
|
|
1121
|
+
};
|
|
1122
|
+
nr(function(v) {
|
|
1123
|
+
r(v), h();
|
|
1124
|
+
}, function(v) {
|
|
1125
|
+
n(v), h();
|
|
1126
|
+
}, m), g = null;
|
|
1127
|
+
}
|
|
1128
|
+
"onloadend" in g ? g.onloadend = C : g.onreadystatechange = function() {
|
|
1129
|
+
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
1130
|
+
}, g.onabort = function() {
|
|
1131
|
+
g && (n(new R("Request aborted", R.ECONNABORTED, e, g)), g = null);
|
|
1132
|
+
}, g.onerror = function(S) {
|
|
1133
|
+
const m = S && S.message ? S.message : "Network Error", O = new R(m, R.ERR_NETWORK, e, g);
|
|
1134
|
+
O.event = S || null, n(O), g = null;
|
|
1135
|
+
}, g.ontimeout = function() {
|
|
1136
|
+
let S = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1137
|
+
const m = o.transitional || er;
|
|
1138
|
+
o.timeoutErrorMessage && (S = o.timeoutErrorMessage), n(new R(
|
|
1139
|
+
S,
|
|
1140
|
+
m.clarifyTimeoutError ? R.ETIMEDOUT : R.ECONNABORTED,
|
|
1141
|
+
e,
|
|
1142
|
+
g
|
|
1143
|
+
)), g = null;
|
|
1144
|
+
}, i === void 0 && s.setContentType(null), "setRequestHeader" in g && u.forEach(s.toJSON(), function(S, m) {
|
|
1145
|
+
g.setRequestHeader(m, S);
|
|
1146
|
+
}), u.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), a && a !== "json" && (g.responseType = o.responseType), c && ([b, d] = ze(c, !0), g.addEventListener("progress", b)), f && g.upload && ([p, y] = ze(f), g.upload.addEventListener("progress", p), g.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (l = (w) => {
|
|
1147
|
+
g && (n(!w || w.type ? new de(null, e, g) : w), g.abort(), g = null);
|
|
1148
|
+
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1149
|
+
const E = oo(o.url);
|
|
1150
|
+
if (E && L.protocols.indexOf(E) === -1) {
|
|
1151
|
+
n(new R("Unsupported protocol " + E + ":", R.ERR_BAD_REQUEST, e));
|
|
1152
|
+
return;
|
|
1153
|
+
}
|
|
1154
|
+
g.send(i || null);
|
|
1155
|
+
});
|
|
1156
|
+
}, mo = (e, t) => {
|
|
1157
|
+
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
1158
|
+
if (t || r) {
|
|
1159
|
+
let n = new AbortController(), o;
|
|
1160
|
+
const i = function(c) {
|
|
1161
|
+
if (!o) {
|
|
1162
|
+
o = !0, a();
|
|
1163
|
+
const l = c instanceof Error ? c : this.reason;
|
|
1164
|
+
n.abort(l instanceof R ? l : new de(l instanceof Error ? l.message : l));
|
|
1165
|
+
}
|
|
1166
|
+
};
|
|
1167
|
+
let s = t && setTimeout(() => {
|
|
1168
|
+
s = null, i(new R(`timeout ${t} of ms exceeded`, R.ETIMEDOUT));
|
|
1169
|
+
}, t);
|
|
1170
|
+
const a = () => {
|
|
1171
|
+
e && (s && clearTimeout(s), s = null, e.forEach((c) => {
|
|
1172
|
+
c.unsubscribe ? c.unsubscribe(i) : c.removeEventListener("abort", i);
|
|
1173
|
+
}), e = null);
|
|
1174
|
+
};
|
|
1175
|
+
e.forEach((c) => c.addEventListener("abort", i));
|
|
1176
|
+
const { signal: f } = n;
|
|
1177
|
+
return f.unsubscribe = () => u.asap(a), f;
|
|
1178
|
+
}
|
|
1179
|
+
}, ho = function* (e, t) {
|
|
1180
|
+
let r = e.byteLength;
|
|
1181
|
+
if (r < t) {
|
|
1182
|
+
yield e;
|
|
1183
|
+
return;
|
|
1184
|
+
}
|
|
1185
|
+
let n = 0, o;
|
|
1186
|
+
for (; n < r; )
|
|
1187
|
+
o = n + t, yield e.slice(n, o), n = o;
|
|
1188
|
+
}, yo = async function* (e, t) {
|
|
1189
|
+
for await (const r of go(e))
|
|
1190
|
+
yield* ho(r, t);
|
|
1191
|
+
}, go = async function* (e) {
|
|
1192
|
+
if (e[Symbol.asyncIterator]) {
|
|
1193
|
+
yield* e;
|
|
1194
|
+
return;
|
|
1195
|
+
}
|
|
1196
|
+
const t = e.getReader();
|
|
1197
|
+
try {
|
|
1198
|
+
for (; ; ) {
|
|
1199
|
+
const { done: r, value: n } = await t.read();
|
|
1200
|
+
if (r)
|
|
1201
|
+
break;
|
|
1202
|
+
yield n;
|
|
1203
|
+
}
|
|
1204
|
+
} finally {
|
|
1205
|
+
await t.cancel();
|
|
1206
|
+
}
|
|
1207
|
+
}, Ct = (e, t, r, n) => {
|
|
1208
|
+
const o = yo(e, t);
|
|
1209
|
+
let i = 0, s, a = (f) => {
|
|
1210
|
+
s || (s = !0, n && n(f));
|
|
1211
|
+
};
|
|
1212
|
+
return new ReadableStream({
|
|
1213
|
+
async pull(f) {
|
|
1214
|
+
try {
|
|
1215
|
+
const { done: c, value: l } = await o.next();
|
|
1216
|
+
if (c) {
|
|
1217
|
+
a(), f.close();
|
|
1218
|
+
return;
|
|
1219
|
+
}
|
|
1220
|
+
let p = l.byteLength;
|
|
1221
|
+
if (r) {
|
|
1222
|
+
let b = i += p;
|
|
1223
|
+
r(b);
|
|
1224
|
+
}
|
|
1225
|
+
f.enqueue(new Uint8Array(l));
|
|
1226
|
+
} catch (c) {
|
|
1227
|
+
throw a(c), c;
|
|
1228
|
+
}
|
|
1229
|
+
},
|
|
1230
|
+
cancel(f) {
|
|
1231
|
+
return a(f), o.return();
|
|
1232
|
+
}
|
|
1233
|
+
}, {
|
|
1234
|
+
highWaterMark: 2
|
|
1235
|
+
});
|
|
1236
|
+
}, Rt = 64 * 1024, { isFunction: De } = u, bo = (({ Request: e, Response: t }) => ({
|
|
1237
|
+
Request: e,
|
|
1238
|
+
Response: t
|
|
1239
|
+
}))(u.global), {
|
|
1240
|
+
ReadableStream: At,
|
|
1241
|
+
TextEncoder: Tt
|
|
1242
|
+
} = u.global, vt = (e, ...t) => {
|
|
1243
|
+
try {
|
|
1244
|
+
return !!e(...t);
|
|
1245
|
+
} catch {
|
|
1246
|
+
return !1;
|
|
1247
|
+
}
|
|
1248
|
+
}, wo = (e) => {
|
|
1249
|
+
e = u.merge.call({
|
|
1250
|
+
skipUndefined: !0
|
|
1251
|
+
}, bo, e);
|
|
1252
|
+
const { fetch: t, Request: r, Response: n } = e, o = t ? De(t) : typeof fetch == "function", i = De(r), s = De(n);
|
|
1253
|
+
if (!o)
|
|
1254
|
+
return !1;
|
|
1255
|
+
const a = o && De(At), f = o && (typeof Tt == "function" ? /* @__PURE__ */ ((d) => (h) => d.encode(h))(new Tt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), c = i && a && vt(() => {
|
|
1256
|
+
let d = !1;
|
|
1257
|
+
const h = new r(L.origin, {
|
|
1258
|
+
body: new At(),
|
|
1259
|
+
method: "POST",
|
|
1260
|
+
get duplex() {
|
|
1261
|
+
return d = !0, "half";
|
|
1262
|
+
}
|
|
1263
|
+
}).headers.has("Content-Type");
|
|
1264
|
+
return d && !h;
|
|
1265
|
+
}), l = s && a && vt(() => u.isReadableStream(new n("").body)), p = {
|
|
1266
|
+
stream: l && ((d) => d.body)
|
|
1267
|
+
};
|
|
1268
|
+
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
|
|
1269
|
+
!p[d] && (p[d] = (h, g) => {
|
|
1270
|
+
let C = h && h[d];
|
|
1271
|
+
if (C)
|
|
1272
|
+
return C.call(h);
|
|
1273
|
+
throw new R(`Response type '${d}' is not supported`, R.ERR_NOT_SUPPORT, g);
|
|
1274
|
+
});
|
|
1275
|
+
});
|
|
1276
|
+
const b = async (d) => {
|
|
1277
|
+
if (d == null)
|
|
1278
|
+
return 0;
|
|
1279
|
+
if (u.isBlob(d))
|
|
1280
|
+
return d.size;
|
|
1281
|
+
if (u.isSpecCompliantForm(d))
|
|
1282
|
+
return (await new r(L.origin, {
|
|
1283
|
+
method: "POST",
|
|
1284
|
+
body: d
|
|
1285
|
+
}).arrayBuffer()).byteLength;
|
|
1286
|
+
if (u.isArrayBufferView(d) || u.isArrayBuffer(d))
|
|
1287
|
+
return d.byteLength;
|
|
1288
|
+
if (u.isURLSearchParams(d) && (d = d + ""), u.isString(d))
|
|
1289
|
+
return (await f(d)).byteLength;
|
|
1290
|
+
}, y = async (d, h) => {
|
|
1291
|
+
const g = u.toFiniteNumber(d.getContentLength());
|
|
1292
|
+
return g ?? b(h);
|
|
1293
|
+
};
|
|
1294
|
+
return async (d) => {
|
|
1295
|
+
let {
|
|
1296
|
+
url: h,
|
|
1297
|
+
method: g,
|
|
1298
|
+
data: C,
|
|
1299
|
+
signal: E,
|
|
1300
|
+
cancelToken: w,
|
|
1301
|
+
timeout: S,
|
|
1302
|
+
onDownloadProgress: m,
|
|
1303
|
+
onUploadProgress: O,
|
|
1304
|
+
responseType: v,
|
|
1305
|
+
headers: k,
|
|
1306
|
+
withCredentials: P = "same-origin",
|
|
1307
|
+
fetchOptions: j
|
|
1308
|
+
} = sr(d), Ae = t || fetch;
|
|
1309
|
+
v = v ? (v + "").toLowerCase() : "text";
|
|
1310
|
+
let oe = mo([E, w && w.toAbortSignal()], S), ee = null;
|
|
1311
|
+
const J = oe && oe.unsubscribe && (() => {
|
|
1312
|
+
oe.unsubscribe();
|
|
1313
|
+
});
|
|
1314
|
+
let Te;
|
|
1315
|
+
try {
|
|
1316
|
+
if (O && c && g !== "get" && g !== "head" && (Te = await y(k, C)) !== 0) {
|
|
1317
|
+
let z = new r(h, {
|
|
1318
|
+
method: "POST",
|
|
1319
|
+
body: C,
|
|
1320
|
+
duplex: "half"
|
|
1321
|
+
}), K;
|
|
1322
|
+
if (u.isFormData(C) && (K = z.headers.get("content-type")) && k.setContentType(K), z.body) {
|
|
1323
|
+
const [pe, se] = St(
|
|
1324
|
+
Te,
|
|
1325
|
+
ze(xt(O))
|
|
1326
|
+
);
|
|
1327
|
+
C = Ct(z.body, Rt, pe, se);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
u.isString(P) || (P = P ? "include" : "omit");
|
|
1331
|
+
const I = i && "credentials" in r.prototype, ve = {
|
|
1332
|
+
...j,
|
|
1333
|
+
signal: oe,
|
|
1334
|
+
method: g.toUpperCase(),
|
|
1335
|
+
headers: k.normalize().toJSON(),
|
|
1336
|
+
body: C,
|
|
1337
|
+
duplex: "half",
|
|
1338
|
+
credentials: I ? P : void 0
|
|
1339
|
+
};
|
|
1340
|
+
ee = i && new r(h, ve);
|
|
1341
|
+
let M = await (i ? Ae(ee, j) : Ae(h, ve));
|
|
1342
|
+
const Pe = l && (v === "stream" || v === "response");
|
|
1343
|
+
if (l && (m || Pe && J)) {
|
|
1344
|
+
const z = {};
|
|
1345
|
+
["status", "statusText", "headers"].forEach((ke) => {
|
|
1346
|
+
z[ke] = M[ke];
|
|
1347
|
+
});
|
|
1348
|
+
const K = u.toFiniteNumber(M.headers.get("content-length")), [pe, se] = m && St(
|
|
1349
|
+
K,
|
|
1350
|
+
ze(xt(m), !0)
|
|
1351
|
+
) || [];
|
|
1352
|
+
M = new n(
|
|
1353
|
+
Ct(M.body, Rt, pe, () => {
|
|
1354
|
+
se && se(), J && J();
|
|
1355
|
+
}),
|
|
1356
|
+
z
|
|
1357
|
+
);
|
|
1358
|
+
}
|
|
1359
|
+
v = v || "text";
|
|
1360
|
+
let _e = await p[u.findKey(p, v) || "text"](M, d);
|
|
1361
|
+
return !Pe && J && J(), await new Promise((z, K) => {
|
|
1362
|
+
nr(z, K, {
|
|
1363
|
+
data: _e,
|
|
1364
|
+
headers: F.from(M.headers),
|
|
1365
|
+
status: M.status,
|
|
1366
|
+
statusText: M.statusText,
|
|
1367
|
+
config: d,
|
|
1368
|
+
request: ee
|
|
1369
|
+
});
|
|
1370
|
+
});
|
|
1371
|
+
} catch (I) {
|
|
1372
|
+
throw J && J(), I && I.name === "TypeError" && /Load failed|fetch/i.test(I.message) ? Object.assign(
|
|
1373
|
+
new R("Network Error", R.ERR_NETWORK, d, ee),
|
|
1374
|
+
{
|
|
1375
|
+
cause: I.cause || I
|
|
1376
|
+
}
|
|
1377
|
+
) : R.from(I, I && I.code, d, ee);
|
|
1378
|
+
}
|
|
1379
|
+
};
|
|
1380
|
+
}, Eo = /* @__PURE__ */ new Map(), ir = (e) => {
|
|
1381
|
+
let t = e && e.env || {};
|
|
1382
|
+
const { fetch: r, Request: n, Response: o } = t, i = [
|
|
1383
|
+
n,
|
|
1384
|
+
o,
|
|
1385
|
+
r
|
|
1386
|
+
];
|
|
1387
|
+
let s = i.length, a = s, f, c, l = Eo;
|
|
1388
|
+
for (; a--; )
|
|
1389
|
+
f = i[a], c = l.get(f), c === void 0 && l.set(f, c = a ? /* @__PURE__ */ new Map() : wo(t)), l = c;
|
|
1390
|
+
return c;
|
|
1391
|
+
};
|
|
1392
|
+
ir();
|
|
1393
|
+
const dt = {
|
|
1394
|
+
http: Fn,
|
|
1395
|
+
xhr: po,
|
|
1396
|
+
fetch: {
|
|
1397
|
+
get: ir
|
|
1398
|
+
}
|
|
1399
|
+
};
|
|
1400
|
+
u.forEach(dt, (e, t) => {
|
|
1401
|
+
if (e) {
|
|
1402
|
+
try {
|
|
1403
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1404
|
+
} catch {
|
|
1405
|
+
}
|
|
1406
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1407
|
+
}
|
|
1408
|
+
});
|
|
1409
|
+
const Pt = (e) => `- ${e}`, So = (e) => u.isFunction(e) || e === null || e === !1;
|
|
1410
|
+
function xo(e, t) {
|
|
1411
|
+
e = u.isArray(e) ? e : [e];
|
|
1412
|
+
const { length: r } = e;
|
|
1413
|
+
let n, o;
|
|
1414
|
+
const i = {};
|
|
1415
|
+
for (let s = 0; s < r; s++) {
|
|
1416
|
+
n = e[s];
|
|
1417
|
+
let a;
|
|
1418
|
+
if (o = n, !So(n) && (o = dt[(a = String(n)).toLowerCase()], o === void 0))
|
|
1419
|
+
throw new R(`Unknown adapter '${a}'`);
|
|
1420
|
+
if (o && (u.isFunction(o) || (o = o.get(t))))
|
|
1421
|
+
break;
|
|
1422
|
+
i[a || "#" + s] = o;
|
|
1423
|
+
}
|
|
1424
|
+
if (!o) {
|
|
1425
|
+
const s = Object.entries(i).map(
|
|
1426
|
+
([f, c]) => `adapter ${f} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1427
|
+
);
|
|
1428
|
+
let a = r ? s.length > 1 ? `since :
|
|
1429
|
+
` + s.map(Pt).join(`
|
|
1430
|
+
`) : " " + Pt(s[0]) : "as no adapter specified";
|
|
1431
|
+
throw new R(
|
|
1432
|
+
"There is no suitable adapter to dispatch the request " + a,
|
|
1433
|
+
"ERR_NOT_SUPPORT"
|
|
1434
|
+
);
|
|
1435
|
+
}
|
|
1436
|
+
return o;
|
|
1437
|
+
}
|
|
1438
|
+
const ar = {
|
|
1439
|
+
/**
|
|
1440
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
1441
|
+
* @type {Function}
|
|
1442
|
+
*/
|
|
1443
|
+
getAdapter: xo,
|
|
1444
|
+
/**
|
|
1445
|
+
* Exposes all known adapters
|
|
1446
|
+
* @type {Object<string, Function|Object>}
|
|
1447
|
+
*/
|
|
1448
|
+
adapters: dt
|
|
1449
|
+
};
|
|
1450
|
+
function et(e) {
|
|
1451
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1452
|
+
throw new de(null, e);
|
|
1453
|
+
}
|
|
1454
|
+
function _t(e) {
|
|
1455
|
+
return et(e), e.headers = F.from(e.headers), e.data = Qe.call(
|
|
1456
|
+
e,
|
|
1457
|
+
e.transformRequest
|
|
1458
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ar.getAdapter(e.adapter || Ce.adapter, e)(e).then(function(n) {
|
|
1459
|
+
return et(e), n.data = Qe.call(
|
|
1460
|
+
e,
|
|
1461
|
+
e.transformResponse,
|
|
1462
|
+
n
|
|
1463
|
+
), n.headers = F.from(n.headers), n;
|
|
1464
|
+
}, function(n) {
|
|
1465
|
+
return rr(n) || (et(e), n && n.response && (n.response.data = Qe.call(
|
|
1466
|
+
e,
|
|
1467
|
+
e.transformResponse,
|
|
1468
|
+
n.response
|
|
1469
|
+
), n.response.headers = F.from(n.response.headers))), Promise.reject(n);
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
const cr = "1.13.2", Ye = {};
|
|
1473
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1474
|
+
Ye[e] = function(n) {
|
|
1475
|
+
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1476
|
+
};
|
|
1477
|
+
});
|
|
1478
|
+
const kt = {};
|
|
1479
|
+
Ye.transitional = function(t, r, n) {
|
|
1480
|
+
function o(i, s) {
|
|
1481
|
+
return "[Axios v" + cr + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
|
|
1482
|
+
}
|
|
1483
|
+
return (i, s, a) => {
|
|
1484
|
+
if (t === !1)
|
|
1485
|
+
throw new R(
|
|
1486
|
+
o(s, " has been removed" + (r ? " in " + r : "")),
|
|
1487
|
+
R.ERR_DEPRECATED
|
|
1488
|
+
);
|
|
1489
|
+
return r && !kt[s] && (kt[s] = !0, console.warn(
|
|
1490
|
+
o(
|
|
1491
|
+
s,
|
|
1492
|
+
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
1493
|
+
)
|
|
1494
|
+
)), t ? t(i, s, a) : !0;
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
Ye.spelling = function(t) {
|
|
1498
|
+
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
1499
|
+
};
|
|
1500
|
+
function Oo(e, t, r) {
|
|
1501
|
+
if (typeof e != "object")
|
|
1502
|
+
throw new R("options must be an object", R.ERR_BAD_OPTION_VALUE);
|
|
1503
|
+
const n = Object.keys(e);
|
|
1504
|
+
let o = n.length;
|
|
1505
|
+
for (; o-- > 0; ) {
|
|
1506
|
+
const i = n[o], s = t[i];
|
|
1507
|
+
if (s) {
|
|
1508
|
+
const a = e[i], f = a === void 0 || s(a, i, e);
|
|
1509
|
+
if (f !== !0)
|
|
1510
|
+
throw new R("option " + i + " must be " + f, R.ERR_BAD_OPTION_VALUE);
|
|
1511
|
+
continue;
|
|
1512
|
+
}
|
|
1513
|
+
if (r !== !0)
|
|
1514
|
+
throw new R("Unknown option " + i, R.ERR_BAD_OPTION);
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
const Me = {
|
|
1518
|
+
assertOptions: Oo,
|
|
1519
|
+
validators: Ye
|
|
1520
|
+
}, H = Me.validators;
|
|
1521
|
+
let re = class {
|
|
1522
|
+
constructor(t) {
|
|
1523
|
+
this.defaults = t || {}, this.interceptors = {
|
|
1524
|
+
request: new wt(),
|
|
1525
|
+
response: new wt()
|
|
1526
|
+
};
|
|
1527
|
+
}
|
|
1528
|
+
/**
|
|
1529
|
+
* Dispatch a request
|
|
1530
|
+
*
|
|
1531
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1532
|
+
* @param {?Object} config
|
|
1533
|
+
*
|
|
1534
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1535
|
+
*/
|
|
1536
|
+
async request(t, r) {
|
|
1537
|
+
try {
|
|
1538
|
+
return await this._request(t, r);
|
|
1539
|
+
} catch (n) {
|
|
1540
|
+
if (n instanceof Error) {
|
|
1541
|
+
let o = {};
|
|
1542
|
+
Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
|
|
1543
|
+
const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
1544
|
+
try {
|
|
1545
|
+
n.stack ? i && !String(n.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (n.stack += `
|
|
1546
|
+
` + i) : n.stack = i;
|
|
1547
|
+
} catch {
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
throw n;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
_request(t, r) {
|
|
1554
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = ne(this.defaults, r);
|
|
1555
|
+
const { transitional: n, paramsSerializer: o, headers: i } = r;
|
|
1556
|
+
n !== void 0 && Me.assertOptions(n, {
|
|
1557
|
+
silentJSONParsing: H.transitional(H.boolean),
|
|
1558
|
+
forcedJSONParsing: H.transitional(H.boolean),
|
|
1559
|
+
clarifyTimeoutError: H.transitional(H.boolean)
|
|
1560
|
+
}, !1), o != null && (u.isFunction(o) ? r.paramsSerializer = {
|
|
1561
|
+
serialize: o
|
|
1562
|
+
} : Me.assertOptions(o, {
|
|
1563
|
+
encode: H.function,
|
|
1564
|
+
serialize: H.function
|
|
1565
|
+
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Me.assertOptions(r, {
|
|
1566
|
+
baseUrl: H.spelling("baseURL"),
|
|
1567
|
+
withXsrfToken: H.spelling("withXSRFToken")
|
|
1568
|
+
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1569
|
+
let s = i && u.merge(
|
|
1570
|
+
i.common,
|
|
1571
|
+
i[r.method]
|
|
1572
|
+
);
|
|
1573
|
+
i && u.forEach(
|
|
1574
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1575
|
+
(d) => {
|
|
1576
|
+
delete i[d];
|
|
1577
|
+
}
|
|
1578
|
+
), r.headers = F.concat(s, i);
|
|
1579
|
+
const a = [];
|
|
1580
|
+
let f = !0;
|
|
1581
|
+
this.interceptors.request.forEach(function(h) {
|
|
1582
|
+
typeof h.runWhen == "function" && h.runWhen(r) === !1 || (f = f && h.synchronous, a.unshift(h.fulfilled, h.rejected));
|
|
1583
|
+
});
|
|
1584
|
+
const c = [];
|
|
1585
|
+
this.interceptors.response.forEach(function(h) {
|
|
1586
|
+
c.push(h.fulfilled, h.rejected);
|
|
1587
|
+
});
|
|
1588
|
+
let l, p = 0, b;
|
|
1589
|
+
if (!f) {
|
|
1590
|
+
const d = [_t.bind(this), void 0];
|
|
1591
|
+
for (d.unshift(...a), d.push(...c), b = d.length, l = Promise.resolve(r); p < b; )
|
|
1592
|
+
l = l.then(d[p++], d[p++]);
|
|
1593
|
+
return l;
|
|
1594
|
+
}
|
|
1595
|
+
b = a.length;
|
|
1596
|
+
let y = r;
|
|
1597
|
+
for (; p < b; ) {
|
|
1598
|
+
const d = a[p++], h = a[p++];
|
|
1599
|
+
try {
|
|
1600
|
+
y = d(y);
|
|
1601
|
+
} catch (g) {
|
|
1602
|
+
h.call(this, g);
|
|
1603
|
+
break;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
try {
|
|
1607
|
+
l = _t.call(this, y);
|
|
1608
|
+
} catch (d) {
|
|
1609
|
+
return Promise.reject(d);
|
|
1610
|
+
}
|
|
1611
|
+
for (p = 0, b = c.length; p < b; )
|
|
1612
|
+
l = l.then(c[p++], c[p++]);
|
|
1613
|
+
return l;
|
|
1614
|
+
}
|
|
1615
|
+
getUri(t) {
|
|
1616
|
+
t = ne(this.defaults, t);
|
|
1617
|
+
const r = or(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1618
|
+
return Qt(r, t.params, t.paramsSerializer);
|
|
1619
|
+
}
|
|
1620
|
+
};
|
|
1621
|
+
u.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1622
|
+
re.prototype[t] = function(r, n) {
|
|
1623
|
+
return this.request(ne(n || {}, {
|
|
1624
|
+
method: t,
|
|
1625
|
+
url: r,
|
|
1626
|
+
data: (n || {}).data
|
|
1627
|
+
}));
|
|
1628
|
+
};
|
|
1629
|
+
});
|
|
1630
|
+
u.forEach(["post", "put", "patch"], function(t) {
|
|
1631
|
+
function r(n) {
|
|
1632
|
+
return function(i, s, a) {
|
|
1633
|
+
return this.request(ne(a || {}, {
|
|
1634
|
+
method: t,
|
|
1635
|
+
headers: n ? {
|
|
1636
|
+
"Content-Type": "multipart/form-data"
|
|
1637
|
+
} : {},
|
|
1638
|
+
url: i,
|
|
1639
|
+
data: s
|
|
1640
|
+
}));
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
re.prototype[t] = r(), re.prototype[t + "Form"] = r(!0);
|
|
1644
|
+
});
|
|
1645
|
+
let Co = class lr {
|
|
1646
|
+
constructor(t) {
|
|
1647
|
+
if (typeof t != "function")
|
|
1648
|
+
throw new TypeError("executor must be a function.");
|
|
1649
|
+
let r;
|
|
1650
|
+
this.promise = new Promise(function(i) {
|
|
1651
|
+
r = i;
|
|
1652
|
+
});
|
|
1653
|
+
const n = this;
|
|
1654
|
+
this.promise.then((o) => {
|
|
1655
|
+
if (!n._listeners) return;
|
|
1656
|
+
let i = n._listeners.length;
|
|
1657
|
+
for (; i-- > 0; )
|
|
1658
|
+
n._listeners[i](o);
|
|
1659
|
+
n._listeners = null;
|
|
1660
|
+
}), this.promise.then = (o) => {
|
|
1661
|
+
let i;
|
|
1662
|
+
const s = new Promise((a) => {
|
|
1663
|
+
n.subscribe(a), i = a;
|
|
1664
|
+
}).then(o);
|
|
1665
|
+
return s.cancel = function() {
|
|
1666
|
+
n.unsubscribe(i);
|
|
1667
|
+
}, s;
|
|
1668
|
+
}, t(function(i, s, a) {
|
|
1669
|
+
n.reason || (n.reason = new de(i, s, a), r(n.reason));
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
1674
|
+
*/
|
|
1675
|
+
throwIfRequested() {
|
|
1676
|
+
if (this.reason)
|
|
1677
|
+
throw this.reason;
|
|
1678
|
+
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Subscribe to the cancel signal
|
|
1681
|
+
*/
|
|
1682
|
+
subscribe(t) {
|
|
1683
|
+
if (this.reason) {
|
|
1684
|
+
t(this.reason);
|
|
1685
|
+
return;
|
|
1686
|
+
}
|
|
1687
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* Unsubscribe from the cancel signal
|
|
1691
|
+
*/
|
|
1692
|
+
unsubscribe(t) {
|
|
1693
|
+
if (!this._listeners)
|
|
1694
|
+
return;
|
|
1695
|
+
const r = this._listeners.indexOf(t);
|
|
1696
|
+
r !== -1 && this._listeners.splice(r, 1);
|
|
1697
|
+
}
|
|
1698
|
+
toAbortSignal() {
|
|
1699
|
+
const t = new AbortController(), r = (n) => {
|
|
1700
|
+
t.abort(n);
|
|
1701
|
+
};
|
|
1702
|
+
return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1706
|
+
* cancels the `CancelToken`.
|
|
1707
|
+
*/
|
|
1708
|
+
static source() {
|
|
1709
|
+
let t;
|
|
1710
|
+
return {
|
|
1711
|
+
token: new lr(function(o) {
|
|
1712
|
+
t = o;
|
|
1713
|
+
}),
|
|
1714
|
+
cancel: t
|
|
1715
|
+
};
|
|
1716
|
+
}
|
|
1717
|
+
};
|
|
1718
|
+
function Ro(e) {
|
|
1719
|
+
return function(r) {
|
|
1720
|
+
return e.apply(null, r);
|
|
1721
|
+
};
|
|
1722
|
+
}
|
|
1723
|
+
function Ao(e) {
|
|
1724
|
+
return u.isObject(e) && e.isAxiosError === !0;
|
|
1725
|
+
}
|
|
1726
|
+
const it = {
|
|
1727
|
+
Continue: 100,
|
|
1728
|
+
SwitchingProtocols: 101,
|
|
1729
|
+
Processing: 102,
|
|
1730
|
+
EarlyHints: 103,
|
|
1731
|
+
Ok: 200,
|
|
1732
|
+
Created: 201,
|
|
1733
|
+
Accepted: 202,
|
|
1734
|
+
NonAuthoritativeInformation: 203,
|
|
1735
|
+
NoContent: 204,
|
|
1736
|
+
ResetContent: 205,
|
|
1737
|
+
PartialContent: 206,
|
|
1738
|
+
MultiStatus: 207,
|
|
1739
|
+
AlreadyReported: 208,
|
|
1740
|
+
ImUsed: 226,
|
|
1741
|
+
MultipleChoices: 300,
|
|
1742
|
+
MovedPermanently: 301,
|
|
1743
|
+
Found: 302,
|
|
1744
|
+
SeeOther: 303,
|
|
1745
|
+
NotModified: 304,
|
|
1746
|
+
UseProxy: 305,
|
|
1747
|
+
Unused: 306,
|
|
1748
|
+
TemporaryRedirect: 307,
|
|
1749
|
+
PermanentRedirect: 308,
|
|
1750
|
+
BadRequest: 400,
|
|
1751
|
+
Unauthorized: 401,
|
|
1752
|
+
PaymentRequired: 402,
|
|
1753
|
+
Forbidden: 403,
|
|
1754
|
+
NotFound: 404,
|
|
1755
|
+
MethodNotAllowed: 405,
|
|
1756
|
+
NotAcceptable: 406,
|
|
1757
|
+
ProxyAuthenticationRequired: 407,
|
|
1758
|
+
RequestTimeout: 408,
|
|
1759
|
+
Conflict: 409,
|
|
1760
|
+
Gone: 410,
|
|
1761
|
+
LengthRequired: 411,
|
|
1762
|
+
PreconditionFailed: 412,
|
|
1763
|
+
PayloadTooLarge: 413,
|
|
1764
|
+
UriTooLong: 414,
|
|
1765
|
+
UnsupportedMediaType: 415,
|
|
1766
|
+
RangeNotSatisfiable: 416,
|
|
1767
|
+
ExpectationFailed: 417,
|
|
1768
|
+
ImATeapot: 418,
|
|
1769
|
+
MisdirectedRequest: 421,
|
|
1770
|
+
UnprocessableEntity: 422,
|
|
1771
|
+
Locked: 423,
|
|
1772
|
+
FailedDependency: 424,
|
|
1773
|
+
TooEarly: 425,
|
|
1774
|
+
UpgradeRequired: 426,
|
|
1775
|
+
PreconditionRequired: 428,
|
|
1776
|
+
TooManyRequests: 429,
|
|
1777
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1778
|
+
UnavailableForLegalReasons: 451,
|
|
1779
|
+
InternalServerError: 500,
|
|
1780
|
+
NotImplemented: 501,
|
|
1781
|
+
BadGateway: 502,
|
|
1782
|
+
ServiceUnavailable: 503,
|
|
1783
|
+
GatewayTimeout: 504,
|
|
1784
|
+
HttpVersionNotSupported: 505,
|
|
1785
|
+
VariantAlsoNegotiates: 506,
|
|
1786
|
+
InsufficientStorage: 507,
|
|
1787
|
+
LoopDetected: 508,
|
|
1788
|
+
NotExtended: 510,
|
|
1789
|
+
NetworkAuthenticationRequired: 511,
|
|
1790
|
+
WebServerIsDown: 521,
|
|
1791
|
+
ConnectionTimedOut: 522,
|
|
1792
|
+
OriginIsUnreachable: 523,
|
|
1793
|
+
TimeoutOccurred: 524,
|
|
1794
|
+
SslHandshakeFailed: 525,
|
|
1795
|
+
InvalidSslCertificate: 526
|
|
1796
|
+
};
|
|
1797
|
+
Object.entries(it).forEach(([e, t]) => {
|
|
1798
|
+
it[t] = e;
|
|
1799
|
+
});
|
|
1800
|
+
function ur(e) {
|
|
1801
|
+
const t = new re(e), r = Bt(re.prototype.request, t);
|
|
1802
|
+
return u.extend(r, re.prototype, t, { allOwnKeys: !0 }), u.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
1803
|
+
return ur(ne(e, o));
|
|
1804
|
+
}, r;
|
|
1805
|
+
}
|
|
1806
|
+
const _ = ur(Ce);
|
|
1807
|
+
_.Axios = re;
|
|
1808
|
+
_.CanceledError = de;
|
|
1809
|
+
_.CancelToken = Co;
|
|
1810
|
+
_.isCancel = rr;
|
|
1811
|
+
_.VERSION = cr;
|
|
1812
|
+
_.toFormData = We;
|
|
1813
|
+
_.AxiosError = R;
|
|
1814
|
+
_.Cancel = _.CanceledError;
|
|
1815
|
+
_.all = function(t) {
|
|
1816
|
+
return Promise.all(t);
|
|
1817
|
+
};
|
|
1818
|
+
_.spread = Ro;
|
|
1819
|
+
_.isAxiosError = Ao;
|
|
1820
|
+
_.mergeConfig = ne;
|
|
1821
|
+
_.AxiosHeaders = F;
|
|
1822
|
+
_.formToJSON = (e) => tr(u.isHTMLForm(e) ? new FormData(e) : e);
|
|
1823
|
+
_.getAdapter = ar.getAdapter;
|
|
1824
|
+
_.HttpStatusCode = it;
|
|
1825
|
+
_.default = _;
|
|
1826
|
+
const {
|
|
1827
|
+
Axios: Gs,
|
|
1828
|
+
AxiosError: Zs,
|
|
1829
|
+
CanceledError: Qs,
|
|
1830
|
+
isCancel: ei,
|
|
1831
|
+
CancelToken: ti,
|
|
1832
|
+
VERSION: ri,
|
|
1833
|
+
all: ni,
|
|
1834
|
+
Cancel: oi,
|
|
1835
|
+
isAxiosError: si,
|
|
1836
|
+
spread: ii,
|
|
1837
|
+
toFormData: ai,
|
|
1838
|
+
AxiosHeaders: ci,
|
|
1839
|
+
HttpStatusCode: li,
|
|
1840
|
+
formToJSON: ui,
|
|
1841
|
+
getAdapter: fi,
|
|
1842
|
+
mergeConfig: di
|
|
1843
|
+
} = _;
|
|
1844
|
+
var Le = {};
|
|
1845
|
+
/*!
|
|
1846
|
+
* cookie
|
|
1847
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1848
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1849
|
+
* MIT Licensed
|
|
1850
|
+
*/
|
|
1851
|
+
var Nt;
|
|
1852
|
+
function To() {
|
|
1853
|
+
if (Nt) return Le;
|
|
1854
|
+
Nt = 1, Le.parse = s, Le.serialize = c;
|
|
1855
|
+
var e = Object.prototype.toString, t = Object.prototype.hasOwnProperty, r = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/, n = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/, o = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, i = /^[\u0020-\u003A\u003D-\u007E]*$/;
|
|
1856
|
+
function s(y, d) {
|
|
1857
|
+
if (typeof y != "string")
|
|
1858
|
+
throw new TypeError("argument str must be a string");
|
|
1859
|
+
var h = {}, g = y.length;
|
|
1860
|
+
if (g < 2) return h;
|
|
1861
|
+
var C = d && d.decode || l, E = 0, w = 0, S = 0;
|
|
1862
|
+
do {
|
|
1863
|
+
if (w = y.indexOf("=", E), w === -1) break;
|
|
1864
|
+
if (S = y.indexOf(";", E), S === -1)
|
|
1865
|
+
S = g;
|
|
1866
|
+
else if (w > S) {
|
|
1867
|
+
E = y.lastIndexOf(";", w - 1) + 1;
|
|
1868
|
+
continue;
|
|
1869
|
+
}
|
|
1870
|
+
var m = a(y, E, w), O = f(y, w, m), v = y.slice(m, O);
|
|
1871
|
+
if (!t.call(h, v)) {
|
|
1872
|
+
var k = a(y, w + 1, S), P = f(y, S, k);
|
|
1873
|
+
y.charCodeAt(k) === 34 && y.charCodeAt(P - 1) === 34 && (k++, P--);
|
|
1874
|
+
var j = y.slice(k, P);
|
|
1875
|
+
h[v] = b(j, C);
|
|
1876
|
+
}
|
|
1877
|
+
E = S + 1;
|
|
1878
|
+
} while (E < g);
|
|
1879
|
+
return h;
|
|
1880
|
+
}
|
|
1881
|
+
function a(y, d, h) {
|
|
1882
|
+
do {
|
|
1883
|
+
var g = y.charCodeAt(d);
|
|
1884
|
+
if (g !== 32 && g !== 9) return d;
|
|
1885
|
+
} while (++d < h);
|
|
1886
|
+
return h;
|
|
1887
|
+
}
|
|
1888
|
+
function f(y, d, h) {
|
|
1889
|
+
for (; d > h; ) {
|
|
1890
|
+
var g = y.charCodeAt(--d);
|
|
1891
|
+
if (g !== 32 && g !== 9) return d + 1;
|
|
1892
|
+
}
|
|
1893
|
+
return h;
|
|
1894
|
+
}
|
|
1895
|
+
function c(y, d, h) {
|
|
1896
|
+
var g = h && h.encode || encodeURIComponent;
|
|
1897
|
+
if (typeof g != "function")
|
|
1898
|
+
throw new TypeError("option encode is invalid");
|
|
1899
|
+
if (!r.test(y))
|
|
1900
|
+
throw new TypeError("argument name is invalid");
|
|
1901
|
+
var C = g(d);
|
|
1902
|
+
if (!n.test(C))
|
|
1903
|
+
throw new TypeError("argument val is invalid");
|
|
1904
|
+
var E = y + "=" + C;
|
|
1905
|
+
if (!h) return E;
|
|
1906
|
+
if (h.maxAge != null) {
|
|
1907
|
+
var w = Math.floor(h.maxAge);
|
|
1908
|
+
if (!isFinite(w))
|
|
1909
|
+
throw new TypeError("option maxAge is invalid");
|
|
1910
|
+
E += "; Max-Age=" + w;
|
|
1911
|
+
}
|
|
1912
|
+
if (h.domain) {
|
|
1913
|
+
if (!o.test(h.domain))
|
|
1914
|
+
throw new TypeError("option domain is invalid");
|
|
1915
|
+
E += "; Domain=" + h.domain;
|
|
1916
|
+
}
|
|
1917
|
+
if (h.path) {
|
|
1918
|
+
if (!i.test(h.path))
|
|
1919
|
+
throw new TypeError("option path is invalid");
|
|
1920
|
+
E += "; Path=" + h.path;
|
|
1921
|
+
}
|
|
1922
|
+
if (h.expires) {
|
|
1923
|
+
var S = h.expires;
|
|
1924
|
+
if (!p(S) || isNaN(S.valueOf()))
|
|
1925
|
+
throw new TypeError("option expires is invalid");
|
|
1926
|
+
E += "; Expires=" + S.toUTCString();
|
|
1927
|
+
}
|
|
1928
|
+
if (h.httpOnly && (E += "; HttpOnly"), h.secure && (E += "; Secure"), h.partitioned && (E += "; Partitioned"), h.priority) {
|
|
1929
|
+
var m = typeof h.priority == "string" ? h.priority.toLowerCase() : h.priority;
|
|
1930
|
+
switch (m) {
|
|
1931
|
+
case "low":
|
|
1932
|
+
E += "; Priority=Low";
|
|
1933
|
+
break;
|
|
1934
|
+
case "medium":
|
|
1935
|
+
E += "; Priority=Medium";
|
|
1936
|
+
break;
|
|
1937
|
+
case "high":
|
|
1938
|
+
E += "; Priority=High";
|
|
1939
|
+
break;
|
|
1940
|
+
default:
|
|
1941
|
+
throw new TypeError("option priority is invalid");
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
if (h.sameSite) {
|
|
1945
|
+
var O = typeof h.sameSite == "string" ? h.sameSite.toLowerCase() : h.sameSite;
|
|
1946
|
+
switch (O) {
|
|
1947
|
+
case !0:
|
|
1948
|
+
E += "; SameSite=Strict";
|
|
1949
|
+
break;
|
|
1950
|
+
case "lax":
|
|
1951
|
+
E += "; SameSite=Lax";
|
|
1952
|
+
break;
|
|
1953
|
+
case "strict":
|
|
1954
|
+
E += "; SameSite=Strict";
|
|
1955
|
+
break;
|
|
1956
|
+
case "none":
|
|
1957
|
+
E += "; SameSite=None";
|
|
1958
|
+
break;
|
|
1959
|
+
default:
|
|
1960
|
+
throw new TypeError("option sameSite is invalid");
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
return E;
|
|
1964
|
+
}
|
|
1965
|
+
function l(y) {
|
|
1966
|
+
return y.indexOf("%") !== -1 ? decodeURIComponent(y) : y;
|
|
1967
|
+
}
|
|
1968
|
+
function p(y) {
|
|
1969
|
+
return e.call(y) === "[object Date]";
|
|
1970
|
+
}
|
|
1971
|
+
function b(y, d) {
|
|
1972
|
+
try {
|
|
1973
|
+
return d(y);
|
|
1974
|
+
} catch {
|
|
1975
|
+
return y;
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
return Le;
|
|
1979
|
+
}
|
|
1980
|
+
var Ue = To();
|
|
1981
|
+
function vo() {
|
|
1982
|
+
const e = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
|
|
1983
|
+
return typeof e == "boolean" ? e : typeof document == "object" && typeof document.cookie == "string";
|
|
1984
|
+
}
|
|
1985
|
+
function Po(e) {
|
|
1986
|
+
return typeof e == "string" ? Ue.parse(e) : typeof e == "object" && e !== null ? e : {};
|
|
1987
|
+
}
|
|
1988
|
+
function tt(e, t = {}) {
|
|
1989
|
+
const r = _o(e);
|
|
1990
|
+
if (!t.doNotParse)
|
|
1991
|
+
try {
|
|
1992
|
+
return JSON.parse(r);
|
|
1993
|
+
} catch {
|
|
1994
|
+
}
|
|
1995
|
+
return e;
|
|
1996
|
+
}
|
|
1997
|
+
function _o(e) {
|
|
1998
|
+
return e && e[0] === "j" && e[1] === ":" ? e.substr(2) : e;
|
|
1999
|
+
}
|
|
2000
|
+
class ko {
|
|
2001
|
+
constructor(t, r = {}) {
|
|
2002
|
+
this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
|
|
2003
|
+
if (!this.HAS_DOCUMENT_COOKIE)
|
|
2004
|
+
return;
|
|
2005
|
+
const o = this.cookies;
|
|
2006
|
+
this.cookies = Ue.parse(document.cookie), this._checkChanges(o);
|
|
2007
|
+
};
|
|
2008
|
+
const n = typeof document > "u" ? "" : document.cookie;
|
|
2009
|
+
this.cookies = Po(t || n), this.defaultSetOptions = r, this.HAS_DOCUMENT_COOKIE = vo();
|
|
2010
|
+
}
|
|
2011
|
+
_emitChange(t) {
|
|
2012
|
+
for (let r = 0; r < this.changeListeners.length; ++r)
|
|
2013
|
+
this.changeListeners[r](t);
|
|
2014
|
+
}
|
|
2015
|
+
_checkChanges(t) {
|
|
2016
|
+
new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach((n) => {
|
|
2017
|
+
t[n] !== this.cookies[n] && this._emitChange({
|
|
2018
|
+
name: n,
|
|
2019
|
+
value: tt(this.cookies[n])
|
|
2020
|
+
});
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
_startPolling() {
|
|
2024
|
+
this.pollingInterval = setInterval(this.update, 300);
|
|
2025
|
+
}
|
|
2026
|
+
_stopPolling() {
|
|
2027
|
+
this.pollingInterval && clearInterval(this.pollingInterval);
|
|
2028
|
+
}
|
|
2029
|
+
get(t, r = {}) {
|
|
2030
|
+
return r.doNotUpdate || this.update(), tt(this.cookies[t], r);
|
|
2031
|
+
}
|
|
2032
|
+
getAll(t = {}) {
|
|
2033
|
+
t.doNotUpdate || this.update();
|
|
2034
|
+
const r = {};
|
|
2035
|
+
for (let n in this.cookies)
|
|
2036
|
+
r[n] = tt(this.cookies[n], t);
|
|
2037
|
+
return r;
|
|
2038
|
+
}
|
|
2039
|
+
set(t, r, n) {
|
|
2040
|
+
n ? n = Object.assign(Object.assign({}, this.defaultSetOptions), n) : n = this.defaultSetOptions;
|
|
2041
|
+
const o = typeof r == "string" ? r : JSON.stringify(r);
|
|
2042
|
+
this.cookies = Object.assign(Object.assign({}, this.cookies), { [t]: o }), this.HAS_DOCUMENT_COOKIE && (document.cookie = Ue.serialize(t, o, n)), this._emitChange({ name: t, value: r, options: n });
|
|
2043
|
+
}
|
|
2044
|
+
remove(t, r) {
|
|
2045
|
+
const n = r = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), r), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 });
|
|
2046
|
+
this.cookies = Object.assign({}, this.cookies), delete this.cookies[t], this.HAS_DOCUMENT_COOKIE && (document.cookie = Ue.serialize(t, "", n)), this._emitChange({ name: t, value: void 0, options: r });
|
|
2047
|
+
}
|
|
2048
|
+
addChangeListener(t) {
|
|
2049
|
+
this.changeListeners.push(t), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.addEventListener("change", this.update) : this._startPolling());
|
|
2050
|
+
}
|
|
2051
|
+
removeChangeListener(t) {
|
|
2052
|
+
const r = this.changeListeners.indexOf(t);
|
|
2053
|
+
r >= 0 && this.changeListeners.splice(r, 1), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 0 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.removeEventListener("change", this.update) : this._stopPolling());
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
const fr = N.createContext(new ko()), { Provider: pi, Consumer: mi } = fr;
|
|
2057
|
+
var $e = { exports: {} }, A = {};
|
|
2058
|
+
/** @license React v16.13.1
|
|
2059
|
+
* react-is.production.min.js
|
|
2060
|
+
*
|
|
2061
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2062
|
+
*
|
|
2063
|
+
* This source code is licensed under the MIT license found in the
|
|
2064
|
+
* LICENSE file in the root directory of this source tree.
|
|
2065
|
+
*/
|
|
2066
|
+
var Dt;
|
|
2067
|
+
function No() {
|
|
2068
|
+
if (Dt) return A;
|
|
2069
|
+
Dt = 1;
|
|
2070
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, d = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
2071
|
+
function w(m) {
|
|
2072
|
+
if (typeof m == "object" && m !== null) {
|
|
2073
|
+
var O = m.$$typeof;
|
|
2074
|
+
switch (O) {
|
|
2075
|
+
case t:
|
|
2076
|
+
switch (m = m.type, m) {
|
|
2077
|
+
case f:
|
|
2078
|
+
case c:
|
|
2079
|
+
case n:
|
|
2080
|
+
case i:
|
|
2081
|
+
case o:
|
|
2082
|
+
case p:
|
|
2083
|
+
return m;
|
|
2084
|
+
default:
|
|
2085
|
+
switch (m = m && m.$$typeof, m) {
|
|
2086
|
+
case a:
|
|
2087
|
+
case l:
|
|
2088
|
+
case d:
|
|
2089
|
+
case y:
|
|
2090
|
+
case s:
|
|
2091
|
+
return m;
|
|
2092
|
+
default:
|
|
2093
|
+
return O;
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
case r:
|
|
2097
|
+
return O;
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
function S(m) {
|
|
2102
|
+
return w(m) === c;
|
|
2103
|
+
}
|
|
2104
|
+
return A.AsyncMode = f, A.ConcurrentMode = c, A.ContextConsumer = a, A.ContextProvider = s, A.Element = t, A.ForwardRef = l, A.Fragment = n, A.Lazy = d, A.Memo = y, A.Portal = r, A.Profiler = i, A.StrictMode = o, A.Suspense = p, A.isAsyncMode = function(m) {
|
|
2105
|
+
return S(m) || w(m) === f;
|
|
2106
|
+
}, A.isConcurrentMode = S, A.isContextConsumer = function(m) {
|
|
2107
|
+
return w(m) === a;
|
|
2108
|
+
}, A.isContextProvider = function(m) {
|
|
2109
|
+
return w(m) === s;
|
|
2110
|
+
}, A.isElement = function(m) {
|
|
2111
|
+
return typeof m == "object" && m !== null && m.$$typeof === t;
|
|
2112
|
+
}, A.isForwardRef = function(m) {
|
|
2113
|
+
return w(m) === l;
|
|
2114
|
+
}, A.isFragment = function(m) {
|
|
2115
|
+
return w(m) === n;
|
|
2116
|
+
}, A.isLazy = function(m) {
|
|
2117
|
+
return w(m) === d;
|
|
2118
|
+
}, A.isMemo = function(m) {
|
|
2119
|
+
return w(m) === y;
|
|
2120
|
+
}, A.isPortal = function(m) {
|
|
2121
|
+
return w(m) === r;
|
|
2122
|
+
}, A.isProfiler = function(m) {
|
|
2123
|
+
return w(m) === i;
|
|
2124
|
+
}, A.isStrictMode = function(m) {
|
|
2125
|
+
return w(m) === o;
|
|
2126
|
+
}, A.isSuspense = function(m) {
|
|
2127
|
+
return w(m) === p;
|
|
2128
|
+
}, A.isValidElementType = function(m) {
|
|
2129
|
+
return typeof m == "string" || typeof m == "function" || m === n || m === c || m === i || m === o || m === p || m === b || typeof m == "object" && m !== null && (m.$$typeof === d || m.$$typeof === y || m.$$typeof === s || m.$$typeof === a || m.$$typeof === l || m.$$typeof === g || m.$$typeof === C || m.$$typeof === E || m.$$typeof === h);
|
|
2130
|
+
}, A.typeOf = w, A;
|
|
2131
|
+
}
|
|
2132
|
+
var T = {};
|
|
2133
|
+
/** @license React v16.13.1
|
|
2134
|
+
* react-is.development.js
|
|
2135
|
+
*
|
|
2136
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2137
|
+
*
|
|
2138
|
+
* This source code is licensed under the MIT license found in the
|
|
2139
|
+
* LICENSE file in the root directory of this source tree.
|
|
2140
|
+
*/
|
|
2141
|
+
var Lt;
|
|
2142
|
+
function Do() {
|
|
2143
|
+
return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2144
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, d = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
2145
|
+
function w(x) {
|
|
2146
|
+
return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2147
|
+
x === n || x === c || x === i || x === o || x === p || x === b || typeof x == "object" && x !== null && (x.$$typeof === d || x.$$typeof === y || x.$$typeof === s || x.$$typeof === a || x.$$typeof === l || x.$$typeof === g || x.$$typeof === C || x.$$typeof === E || x.$$typeof === h);
|
|
2148
|
+
}
|
|
2149
|
+
function S(x) {
|
|
2150
|
+
if (typeof x == "object" && x !== null) {
|
|
2151
|
+
var Ge = x.$$typeof;
|
|
2152
|
+
switch (Ge) {
|
|
2153
|
+
case t:
|
|
2154
|
+
var Ne = x.type;
|
|
2155
|
+
switch (Ne) {
|
|
2156
|
+
case f:
|
|
2157
|
+
case c:
|
|
2158
|
+
case n:
|
|
2159
|
+
case i:
|
|
2160
|
+
case o:
|
|
2161
|
+
case p:
|
|
2162
|
+
return Ne;
|
|
2163
|
+
default:
|
|
2164
|
+
var ht = Ne && Ne.$$typeof;
|
|
2165
|
+
switch (ht) {
|
|
2166
|
+
case a:
|
|
2167
|
+
case l:
|
|
2168
|
+
case d:
|
|
2169
|
+
case y:
|
|
2170
|
+
case s:
|
|
2171
|
+
return ht;
|
|
2172
|
+
default:
|
|
2173
|
+
return Ge;
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
case r:
|
|
2177
|
+
return Ge;
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
var m = f, O = c, v = a, k = s, P = t, j = l, Ae = n, oe = d, ee = y, J = r, Te = i, I = o, ve = p, M = !1;
|
|
2182
|
+
function Pe(x) {
|
|
2183
|
+
return M || (M = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _e(x) || S(x) === f;
|
|
2184
|
+
}
|
|
2185
|
+
function _e(x) {
|
|
2186
|
+
return S(x) === c;
|
|
2187
|
+
}
|
|
2188
|
+
function z(x) {
|
|
2189
|
+
return S(x) === a;
|
|
2190
|
+
}
|
|
2191
|
+
function K(x) {
|
|
2192
|
+
return S(x) === s;
|
|
2193
|
+
}
|
|
2194
|
+
function pe(x) {
|
|
2195
|
+
return typeof x == "object" && x !== null && x.$$typeof === t;
|
|
2196
|
+
}
|
|
2197
|
+
function se(x) {
|
|
2198
|
+
return S(x) === l;
|
|
2199
|
+
}
|
|
2200
|
+
function ke(x) {
|
|
2201
|
+
return S(x) === n;
|
|
2202
|
+
}
|
|
2203
|
+
function Sr(x) {
|
|
2204
|
+
return S(x) === d;
|
|
2205
|
+
}
|
|
2206
|
+
function xr(x) {
|
|
2207
|
+
return S(x) === y;
|
|
2208
|
+
}
|
|
2209
|
+
function Or(x) {
|
|
2210
|
+
return S(x) === r;
|
|
2211
|
+
}
|
|
2212
|
+
function Cr(x) {
|
|
2213
|
+
return S(x) === i;
|
|
2214
|
+
}
|
|
2215
|
+
function Rr(x) {
|
|
2216
|
+
return S(x) === o;
|
|
2217
|
+
}
|
|
2218
|
+
function Ar(x) {
|
|
2219
|
+
return S(x) === p;
|
|
2220
|
+
}
|
|
2221
|
+
T.AsyncMode = m, T.ConcurrentMode = O, T.ContextConsumer = v, T.ContextProvider = k, T.Element = P, T.ForwardRef = j, T.Fragment = Ae, T.Lazy = oe, T.Memo = ee, T.Portal = J, T.Profiler = Te, T.StrictMode = I, T.Suspense = ve, T.isAsyncMode = Pe, T.isConcurrentMode = _e, T.isContextConsumer = z, T.isContextProvider = K, T.isElement = pe, T.isForwardRef = se, T.isFragment = ke, T.isLazy = Sr, T.isMemo = xr, T.isPortal = Or, T.isProfiler = Cr, T.isStrictMode = Rr, T.isSuspense = Ar, T.isValidElementType = w, T.typeOf = S;
|
|
2222
|
+
}()), T;
|
|
2223
|
+
}
|
|
2224
|
+
var $t;
|
|
2225
|
+
function Lo() {
|
|
2226
|
+
return $t || ($t = 1, process.env.NODE_ENV === "production" ? $e.exports = No() : $e.exports = Do()), $e.exports;
|
|
2227
|
+
}
|
|
2228
|
+
var rt, Ft;
|
|
2229
|
+
function $o() {
|
|
2230
|
+
if (Ft) return rt;
|
|
2231
|
+
Ft = 1;
|
|
2232
|
+
var e = Lo(), t = {
|
|
2233
|
+
childContextTypes: !0,
|
|
2234
|
+
contextType: !0,
|
|
2235
|
+
contextTypes: !0,
|
|
2236
|
+
defaultProps: !0,
|
|
2237
|
+
displayName: !0,
|
|
2238
|
+
getDefaultProps: !0,
|
|
2239
|
+
getDerivedStateFromError: !0,
|
|
2240
|
+
getDerivedStateFromProps: !0,
|
|
2241
|
+
mixins: !0,
|
|
2242
|
+
propTypes: !0,
|
|
2243
|
+
type: !0
|
|
2244
|
+
}, r = {
|
|
2245
|
+
name: !0,
|
|
2246
|
+
length: !0,
|
|
2247
|
+
prototype: !0,
|
|
2248
|
+
caller: !0,
|
|
2249
|
+
callee: !0,
|
|
2250
|
+
arguments: !0,
|
|
2251
|
+
arity: !0
|
|
2252
|
+
}, n = {
|
|
2253
|
+
$$typeof: !0,
|
|
2254
|
+
render: !0,
|
|
2255
|
+
defaultProps: !0,
|
|
2256
|
+
displayName: !0,
|
|
2257
|
+
propTypes: !0
|
|
2258
|
+
}, o = {
|
|
2259
|
+
$$typeof: !0,
|
|
2260
|
+
compare: !0,
|
|
2261
|
+
defaultProps: !0,
|
|
2262
|
+
displayName: !0,
|
|
2263
|
+
propTypes: !0,
|
|
2264
|
+
type: !0
|
|
2265
|
+
}, i = {};
|
|
2266
|
+
i[e.ForwardRef] = n, i[e.Memo] = o;
|
|
2267
|
+
function s(d) {
|
|
2268
|
+
return e.isMemo(d) ? o : i[d.$$typeof] || t;
|
|
2269
|
+
}
|
|
2270
|
+
var a = Object.defineProperty, f = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, l = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, b = Object.prototype;
|
|
2271
|
+
function y(d, h, g) {
|
|
2272
|
+
if (typeof h != "string") {
|
|
2273
|
+
if (b) {
|
|
2274
|
+
var C = p(h);
|
|
2275
|
+
C && C !== b && y(d, C, g);
|
|
2276
|
+
}
|
|
2277
|
+
var E = f(h);
|
|
2278
|
+
c && (E = E.concat(c(h)));
|
|
2279
|
+
for (var w = s(d), S = s(h), m = 0; m < E.length; ++m) {
|
|
2280
|
+
var O = E[m];
|
|
2281
|
+
if (!r[O] && !(g && g[O]) && !(S && S[O]) && !(w && w[O])) {
|
|
2282
|
+
var v = l(h, O);
|
|
2283
|
+
try {
|
|
2284
|
+
a(d, O, v);
|
|
2285
|
+
} catch {
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
return d;
|
|
2291
|
+
}
|
|
2292
|
+
return rt = y, rt;
|
|
2293
|
+
}
|
|
2294
|
+
$o();
|
|
2295
|
+
function Fo() {
|
|
2296
|
+
return typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
2297
|
+
}
|
|
2298
|
+
function dr(e, t) {
|
|
2299
|
+
const r = V(fr);
|
|
2300
|
+
if (!r)
|
|
2301
|
+
throw new Error("Missing <CookiesProvider>");
|
|
2302
|
+
const o = Object.assign(Object.assign({}, { doNotUpdate: !0 }), t), [i, s] = we(() => r.getAll(o));
|
|
2303
|
+
Fo() && Tr(() => {
|
|
2304
|
+
function l() {
|
|
2305
|
+
const p = r.getAll(o);
|
|
2306
|
+
jo(e || null, p, i) && s(p);
|
|
2307
|
+
}
|
|
2308
|
+
return r.addChangeListener(l), () => {
|
|
2309
|
+
r.removeChangeListener(l);
|
|
2310
|
+
};
|
|
2311
|
+
}, [r, i]);
|
|
2312
|
+
const a = be(() => r.set.bind(r), [r]), f = be(() => r.remove.bind(r), [r]), c = be(() => r.update.bind(r), [r]);
|
|
2313
|
+
return [i, a, f, c];
|
|
2314
|
+
}
|
|
2315
|
+
function jo(e, t, r) {
|
|
2316
|
+
if (!e)
|
|
2317
|
+
return !0;
|
|
2318
|
+
for (let n of e)
|
|
2319
|
+
if (t[n] !== r[n])
|
|
2320
|
+
return !0;
|
|
2321
|
+
return !1;
|
|
2322
|
+
}
|
|
2323
|
+
const Io = () => {
|
|
2324
|
+
const e = Z.c(12), {
|
|
2325
|
+
axiosOptions: t,
|
|
2326
|
+
cookieDomain: r
|
|
2327
|
+
} = V(It);
|
|
2328
|
+
let n;
|
|
2329
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = ["Authorization"], e[0] = n) : n = e[0];
|
|
2330
|
+
const [, o, i] = dr(n);
|
|
2331
|
+
let s;
|
|
2332
|
+
e[1] !== t ? (s = _.create(t), e[1] = t, e[2] = s) : s = e[2];
|
|
2333
|
+
const a = s, f = Mo;
|
|
2334
|
+
let c;
|
|
2335
|
+
e[3] !== a || e[4] !== r || e[5] !== o ? (c = async (d, h) => a.post("/user/login", {
|
|
2336
|
+
kid: d,
|
|
2337
|
+
password: h
|
|
2338
|
+
}).then((g) => (localStorage.setItem("token", g.data), window.dispatchEvent(new Event("dev-auth-change")), o("Authorization", g.data, {
|
|
2339
|
+
path: "/",
|
|
2340
|
+
secure: window.location.protocol === "https:",
|
|
2341
|
+
sameSite: "none",
|
|
2342
|
+
domain: r,
|
|
2343
|
+
expires: Ut(new Date(Date.now()), 24)
|
|
2344
|
+
}), g.data)).catch(Uo), e[3] = a, e[4] = r, e[5] = o, e[6] = c) : c = e[6];
|
|
2345
|
+
const l = c;
|
|
2346
|
+
let p;
|
|
2347
|
+
e[7] !== i ? (p = () => {
|
|
2348
|
+
localStorage.removeItem("token"), localStorage.removeItem("user"), window.dispatchEvent(new Event("dev-auth-change")), i("Authorization");
|
|
2349
|
+
}, e[7] = i, e[8] = p) : p = e[8];
|
|
2350
|
+
const b = p;
|
|
2351
|
+
let y;
|
|
2352
|
+
return e[9] !== l || e[10] !== b ? (y = {
|
|
2353
|
+
isAuthenticated: f,
|
|
2354
|
+
login: l,
|
|
2355
|
+
logout: b
|
|
2356
|
+
}, e[9] = l, e[10] = b, e[11] = y) : y = e[11], y;
|
|
2357
|
+
};
|
|
2358
|
+
function Mo() {
|
|
2359
|
+
const e = localStorage.getItem("token");
|
|
2360
|
+
return e !== null && e.length > 0;
|
|
2361
|
+
}
|
|
2362
|
+
function Uo(e) {
|
|
2363
|
+
return console.log(e), null;
|
|
2364
|
+
}
|
|
2365
|
+
const Bo = () => {
|
|
2366
|
+
const e = Z.c(18);
|
|
2367
|
+
let t;
|
|
2368
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = ["Authorization"], e[0] = t) : t = e[0];
|
|
2369
|
+
const [, , r] = dr(t), {
|
|
2370
|
+
msalScopes: n,
|
|
2371
|
+
msalExtraScopes: o
|
|
2372
|
+
} = V(mt), {
|
|
2373
|
+
instance: i,
|
|
2374
|
+
inProgress: s
|
|
2375
|
+
} = zr(), a = Hr();
|
|
2376
|
+
let f;
|
|
2377
|
+
e[1] !== a ? (f = () => a, e[1] = a, e[2] = f) : f = e[2];
|
|
2378
|
+
const c = f;
|
|
2379
|
+
let l;
|
|
2380
|
+
e[3] !== c || e[4] !== s ? (l = () => !c() && s !== Br.None, e[3] = c, e[4] = s, e[5] = l) : l = e[5];
|
|
2381
|
+
const p = l;
|
|
2382
|
+
let b;
|
|
2383
|
+
e[6] !== i || e[7] !== o || e[8] !== n ? (b = async () => i.loginRedirect({
|
|
2384
|
+
scopes: n,
|
|
2385
|
+
extraScopesToConsent: o
|
|
2386
|
+
}).then(zo).catch(Ho), e[6] = i, e[7] = o, e[8] = n, e[9] = b) : b = e[9];
|
|
2387
|
+
const y = b;
|
|
2388
|
+
let d;
|
|
2389
|
+
e[10] !== i || e[11] !== r ? (d = () => {
|
|
2390
|
+
i.logout(), localStorage.removeItem("user"), r("Authorization");
|
|
2391
|
+
}, e[10] = i, e[11] = r, e[12] = d) : d = e[12];
|
|
2392
|
+
const h = d;
|
|
2393
|
+
let g;
|
|
2394
|
+
return e[13] !== c || e[14] !== p || e[15] !== y || e[16] !== h ? (g = {
|
|
2395
|
+
isAuthenticated: c,
|
|
2396
|
+
isAuthenticating: p,
|
|
2397
|
+
login: y,
|
|
2398
|
+
logout: h
|
|
2399
|
+
}, e[13] = c, e[14] = p, e[15] = y, e[16] = h, e[17] = g) : g = e[17], g;
|
|
2400
|
+
};
|
|
2401
|
+
function zo() {
|
|
2402
|
+
return "";
|
|
2403
|
+
}
|
|
2404
|
+
function Ho() {
|
|
2405
|
+
return null;
|
|
2406
|
+
}
|
|
2407
|
+
const pr = () => {
|
|
2408
|
+
const e = Z.c(12), {
|
|
2409
|
+
useMsal: t
|
|
2410
|
+
} = V(mt), r = Io(), n = Bo();
|
|
2411
|
+
let o;
|
|
2412
|
+
e[0] !== r || e[1] !== n || e[2] !== t ? (o = (l, p) => t ? n.login() : r.login(l, p), e[0] = r, e[1] = n, e[2] = t, e[3] = o) : o = e[3];
|
|
2413
|
+
const i = o, s = t ? n.isAuthenticated : r.isAuthenticated;
|
|
2414
|
+
let a;
|
|
2415
|
+
e[4] !== n || e[5] !== t ? (a = t ? n.isAuthenticating : qo, e[4] = n, e[5] = t, e[6] = a) : a = e[6];
|
|
2416
|
+
const f = t ? n.logout : r.logout;
|
|
2417
|
+
let c;
|
|
2418
|
+
return e[7] !== s || e[8] !== a || e[9] !== f || e[10] !== i ? (c = {
|
|
2419
|
+
isAuthenticated: s,
|
|
2420
|
+
isAuthenticating: a,
|
|
2421
|
+
login: i,
|
|
2422
|
+
logout: f
|
|
2423
|
+
}, e[7] = s, e[8] = a, e[9] = f, e[10] = i, e[11] = c) : c = e[11], c;
|
|
2424
|
+
};
|
|
2425
|
+
function qo() {
|
|
2426
|
+
return !1;
|
|
2427
|
+
}
|
|
2428
|
+
let Vo = { data: "" }, Jo = (e) => {
|
|
2429
|
+
if (typeof window == "object") {
|
|
2430
|
+
let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), { innerHTML: " ", id: "_goober" });
|
|
2431
|
+
return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
|
|
2432
|
+
}
|
|
2433
|
+
return e || Vo;
|
|
2434
|
+
}, Wo = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Yo = /\/\*[^]*?\*\/| +/g, jt = /\n+/g, X = (e, t) => {
|
|
2435
|
+
let r = "", n = "", o = "";
|
|
2436
|
+
for (let i in e) {
|
|
2437
|
+
let s = e[i];
|
|
2438
|
+
i[0] == "@" ? i[1] == "i" ? r = i + " " + s + ";" : n += i[1] == "f" ? X(s, i) : i + "{" + X(s, i[1] == "k" ? "" : t) + "}" : typeof s == "object" ? n += X(s, t ? t.replace(/([^,])+/g, (a) => i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (f) => /&/.test(f) ? f.replace(/&/g, a) : a ? a + " " + f : f)) : i) : s != null && (i = /^--/.test(i) ? i : i.replace(/[A-Z]/g, "-$&").toLowerCase(), o += X.p ? X.p(i, s) : i + ":" + s + ";");
|
|
2439
|
+
}
|
|
2440
|
+
return r + (t && o ? t + "{" + o + "}" : o) + n;
|
|
2441
|
+
}, W = {}, mr = (e) => {
|
|
2442
|
+
if (typeof e == "object") {
|
|
2443
|
+
let t = "";
|
|
2444
|
+
for (let r in e) t += r + mr(e[r]);
|
|
2445
|
+
return t;
|
|
2446
|
+
}
|
|
2447
|
+
return e;
|
|
2448
|
+
}, Ko = (e, t, r, n, o) => {
|
|
2449
|
+
let i = mr(e), s = W[i] || (W[i] = ((f) => {
|
|
2450
|
+
let c = 0, l = 11;
|
|
2451
|
+
for (; c < f.length; ) l = 101 * l + f.charCodeAt(c++) >>> 0;
|
|
2452
|
+
return "go" + l;
|
|
2453
|
+
})(i));
|
|
2454
|
+
if (!W[s]) {
|
|
2455
|
+
let f = i !== e ? e : ((c) => {
|
|
2456
|
+
let l, p, b = [{}];
|
|
2457
|
+
for (; l = Wo.exec(c.replace(Yo, "")); ) l[4] ? b.shift() : l[3] ? (p = l[3].replace(jt, " ").trim(), b.unshift(b[0][p] = b[0][p] || {})) : b[0][l[1]] = l[2].replace(jt, " ").trim();
|
|
2458
|
+
return b[0];
|
|
2459
|
+
})(e);
|
|
2460
|
+
W[s] = X(o ? { ["@keyframes " + s]: f } : f, r ? "" : "." + s);
|
|
2461
|
+
}
|
|
2462
|
+
let a = r && W.g ? W.g : null;
|
|
2463
|
+
return r && (W.g = W[s]), ((f, c, l, p) => {
|
|
2464
|
+
p ? c.data = c.data.replace(p, f) : c.data.indexOf(f) === -1 && (c.data = l ? f + c.data : c.data + f);
|
|
2465
|
+
})(W[s], t, n, a), s;
|
|
2466
|
+
}, Xo = (e, t, r) => e.reduce((n, o, i) => {
|
|
2467
|
+
let s = t[i];
|
|
2468
|
+
if (s && s.call) {
|
|
2469
|
+
let a = s(r), f = a && a.props && a.props.className || /^go/.test(a) && a;
|
|
2470
|
+
s = f ? "." + f : a && typeof a == "object" ? a.props ? "" : X(a, "") : a === !1 ? "" : a;
|
|
2471
|
+
}
|
|
2472
|
+
return n + o + (s ?? "");
|
|
2473
|
+
}, "");
|
|
2474
|
+
function Ke(e) {
|
|
2475
|
+
let t = this || {}, r = e.call ? e(t.p) : e;
|
|
2476
|
+
return Ko(r.unshift ? r.raw ? Xo(r, [].slice.call(arguments, 1), t.p) : r.reduce((n, o) => Object.assign(n, o && o.call ? o(t.p) : o), {}) : r, Jo(t.target), t.g, t.o, t.k);
|
|
2477
|
+
}
|
|
2478
|
+
let hr, at, ct;
|
|
2479
|
+
Ke.bind({ g: 1 });
|
|
2480
|
+
let Y = Ke.bind({ k: 1 });
|
|
2481
|
+
function Go(e, t, r, n) {
|
|
2482
|
+
X.p = t, hr = e, at = r, ct = n;
|
|
2483
|
+
}
|
|
2484
|
+
function Q(e, t) {
|
|
2485
|
+
let r = this || {};
|
|
2486
|
+
return function() {
|
|
2487
|
+
let n = arguments;
|
|
2488
|
+
function o(i, s) {
|
|
2489
|
+
let a = Object.assign({}, i), f = a.className || o.className;
|
|
2490
|
+
r.p = Object.assign({ theme: at && at() }, a), r.o = / *go\d+/.test(f), a.className = Ke.apply(r, n) + (f ? " " + f : "");
|
|
2491
|
+
let c = e;
|
|
2492
|
+
return e[0] && (c = a.as || e, delete a.as), ct && c[0] && ct(a), hr(c, a);
|
|
2493
|
+
}
|
|
2494
|
+
return o;
|
|
2495
|
+
};
|
|
2496
|
+
}
|
|
2497
|
+
var Zo = (e) => typeof e == "function", He = (e, t) => Zo(e) ? e(t) : e, Qo = /* @__PURE__ */ (() => {
|
|
2498
|
+
let e = 0;
|
|
2499
|
+
return () => (++e).toString();
|
|
2500
|
+
})(), yr = /* @__PURE__ */ (() => {
|
|
2501
|
+
let e;
|
|
2502
|
+
return () => {
|
|
2503
|
+
if (e === void 0 && typeof window < "u") {
|
|
2504
|
+
let t = matchMedia("(prefers-reduced-motion: reduce)");
|
|
2505
|
+
e = !t || t.matches;
|
|
2506
|
+
}
|
|
2507
|
+
return e;
|
|
2508
|
+
};
|
|
2509
|
+
})(), es = 20, pt = "default", gr = (e, t) => {
|
|
2510
|
+
let { toastLimit: r } = e.settings;
|
|
2511
|
+
switch (t.type) {
|
|
2512
|
+
case 0:
|
|
2513
|
+
return { ...e, toasts: [t.toast, ...e.toasts].slice(0, r) };
|
|
2514
|
+
case 1:
|
|
2515
|
+
return { ...e, toasts: e.toasts.map((s) => s.id === t.toast.id ? { ...s, ...t.toast } : s) };
|
|
2516
|
+
case 2:
|
|
2517
|
+
let { toast: n } = t;
|
|
2518
|
+
return gr(e, { type: e.toasts.find((s) => s.id === n.id) ? 1 : 0, toast: n });
|
|
2519
|
+
case 3:
|
|
2520
|
+
let { toastId: o } = t;
|
|
2521
|
+
return { ...e, toasts: e.toasts.map((s) => s.id === o || o === void 0 ? { ...s, dismissed: !0, visible: !1 } : s) };
|
|
2522
|
+
case 4:
|
|
2523
|
+
return t.toastId === void 0 ? { ...e, toasts: [] } : { ...e, toasts: e.toasts.filter((s) => s.id !== t.toastId) };
|
|
2524
|
+
case 5:
|
|
2525
|
+
return { ...e, pausedAt: t.time };
|
|
2526
|
+
case 6:
|
|
2527
|
+
let i = t.time - (e.pausedAt || 0);
|
|
2528
|
+
return { ...e, pausedAt: void 0, toasts: e.toasts.map((s) => ({ ...s, pauseDuration: s.pauseDuration + i })) };
|
|
2529
|
+
}
|
|
2530
|
+
}, Be = [], br = { toasts: [], pausedAt: void 0, settings: { toastLimit: es } }, q = {}, wr = (e, t = pt) => {
|
|
2531
|
+
q[t] = gr(q[t] || br, e), Be.forEach(([r, n]) => {
|
|
2532
|
+
r === t && n(q[t]);
|
|
2533
|
+
});
|
|
2534
|
+
}, Er = (e) => Object.keys(q).forEach((t) => wr(e, t)), ts = (e) => Object.keys(q).find((t) => q[t].toasts.some((r) => r.id === e)), Xe = (e = pt) => (t) => {
|
|
2535
|
+
wr(t, e);
|
|
2536
|
+
}, rs = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, ns = (e = {}, t = pt) => {
|
|
2537
|
+
let [r, n] = we(q[t] || br), o = le(q[t]);
|
|
2538
|
+
G(() => (o.current !== q[t] && n(q[t]), Be.push([t, n]), () => {
|
|
2539
|
+
let s = Be.findIndex(([a]) => a === t);
|
|
2540
|
+
s > -1 && Be.splice(s, 1);
|
|
2541
|
+
}), [t]);
|
|
2542
|
+
let i = r.toasts.map((s) => {
|
|
2543
|
+
var a, f, c;
|
|
2544
|
+
return { ...e, ...e[s.type], ...s, removeDelay: s.removeDelay || ((a = e[s.type]) == null ? void 0 : a.removeDelay) || (e == null ? void 0 : e.removeDelay), duration: s.duration || ((f = e[s.type]) == null ? void 0 : f.duration) || (e == null ? void 0 : e.duration) || rs[s.type], style: { ...e.style, ...(c = e[s.type]) == null ? void 0 : c.style, ...s.style } };
|
|
2545
|
+
});
|
|
2546
|
+
return { ...r, toasts: i };
|
|
2547
|
+
}, os = (e, t = "blank", r) => ({ createdAt: Date.now(), visible: !0, dismissed: !1, type: t, ariaProps: { role: "status", "aria-live": "polite" }, message: e, pauseDuration: 0, ...r, id: (r == null ? void 0 : r.id) || Qo() }), Re = (e) => (t, r) => {
|
|
2548
|
+
let n = os(t, e, r);
|
|
2549
|
+
return Xe(n.toasterId || ts(n.id))({ type: 2, toast: n }), n.id;
|
|
2550
|
+
}, D = (e, t) => Re("blank")(e, t);
|
|
2551
|
+
D.error = Re("error");
|
|
2552
|
+
D.success = Re("success");
|
|
2553
|
+
D.loading = Re("loading");
|
|
2554
|
+
D.custom = Re("custom");
|
|
2555
|
+
D.dismiss = (e, t) => {
|
|
2556
|
+
let r = { type: 3, toastId: e };
|
|
2557
|
+
t ? Xe(t)(r) : Er(r);
|
|
2558
|
+
};
|
|
2559
|
+
D.dismissAll = (e) => D.dismiss(void 0, e);
|
|
2560
|
+
D.remove = (e, t) => {
|
|
2561
|
+
let r = { type: 4, toastId: e };
|
|
2562
|
+
t ? Xe(t)(r) : Er(r);
|
|
2563
|
+
};
|
|
2564
|
+
D.removeAll = (e) => D.remove(void 0, e);
|
|
2565
|
+
D.promise = (e, t, r) => {
|
|
2566
|
+
let n = D.loading(t.loading, { ...r, ...r == null ? void 0 : r.loading });
|
|
2567
|
+
return typeof e == "function" && (e = e()), e.then((o) => {
|
|
2568
|
+
let i = t.success ? He(t.success, o) : void 0;
|
|
2569
|
+
return i ? D.success(i, { id: n, ...r, ...r == null ? void 0 : r.success }) : D.dismiss(n), o;
|
|
2570
|
+
}).catch((o) => {
|
|
2571
|
+
let i = t.error ? He(t.error, o) : void 0;
|
|
2572
|
+
i ? D.error(i, { id: n, ...r, ...r == null ? void 0 : r.error }) : D.dismiss(n);
|
|
2573
|
+
}), e;
|
|
2574
|
+
};
|
|
2575
|
+
var ss = 1e3, is = (e, t = "default") => {
|
|
2576
|
+
let { toasts: r, pausedAt: n } = ns(e, t), o = le(/* @__PURE__ */ new Map()).current, i = U((p, b = ss) => {
|
|
2577
|
+
if (o.has(p)) return;
|
|
2578
|
+
let y = setTimeout(() => {
|
|
2579
|
+
o.delete(p), s({ type: 4, toastId: p });
|
|
2580
|
+
}, b);
|
|
2581
|
+
o.set(p, y);
|
|
2582
|
+
}, []);
|
|
2583
|
+
G(() => {
|
|
2584
|
+
if (n) return;
|
|
2585
|
+
let p = Date.now(), b = r.map((y) => {
|
|
2586
|
+
if (y.duration === 1 / 0) return;
|
|
2587
|
+
let d = (y.duration || 0) + y.pauseDuration - (p - y.createdAt);
|
|
2588
|
+
if (d < 0) {
|
|
2589
|
+
y.visible && D.dismiss(y.id);
|
|
2590
|
+
return;
|
|
2591
|
+
}
|
|
2592
|
+
return setTimeout(() => D.dismiss(y.id, t), d);
|
|
2593
|
+
});
|
|
2594
|
+
return () => {
|
|
2595
|
+
b.forEach((y) => y && clearTimeout(y));
|
|
2596
|
+
};
|
|
2597
|
+
}, [r, n, t]);
|
|
2598
|
+
let s = U(Xe(t), [t]), a = U(() => {
|
|
2599
|
+
s({ type: 5, time: Date.now() });
|
|
2600
|
+
}, [s]), f = U((p, b) => {
|
|
2601
|
+
s({ type: 1, toast: { id: p, height: b } });
|
|
2602
|
+
}, [s]), c = U(() => {
|
|
2603
|
+
n && s({ type: 6, time: Date.now() });
|
|
2604
|
+
}, [n, s]), l = U((p, b) => {
|
|
2605
|
+
let { reverseOrder: y = !1, gutter: d = 8, defaultPosition: h } = b || {}, g = r.filter((w) => (w.position || h) === (p.position || h) && w.height), C = g.findIndex((w) => w.id === p.id), E = g.filter((w, S) => S < C && w.visible).length;
|
|
2606
|
+
return g.filter((w) => w.visible).slice(...y ? [E + 1] : [0, E]).reduce((w, S) => w + (S.height || 0) + d, 0);
|
|
2607
|
+
}, [r]);
|
|
2608
|
+
return G(() => {
|
|
2609
|
+
r.forEach((p) => {
|
|
2610
|
+
if (p.dismissed) i(p.id, p.removeDelay);
|
|
2611
|
+
else {
|
|
2612
|
+
let b = o.get(p.id);
|
|
2613
|
+
b && (clearTimeout(b), o.delete(p.id));
|
|
2614
|
+
}
|
|
2615
|
+
});
|
|
2616
|
+
}, [r, i]), { toasts: r, handlers: { updateHeight: f, startPause: a, endPause: c, calculateOffset: l } };
|
|
2617
|
+
}, as = Y`
|
|
2618
|
+
from {
|
|
2619
|
+
transform: scale(0) rotate(45deg);
|
|
2620
|
+
opacity: 0;
|
|
2621
|
+
}
|
|
2622
|
+
to {
|
|
2623
|
+
transform: scale(1) rotate(45deg);
|
|
2624
|
+
opacity: 1;
|
|
2625
|
+
}`, cs = Y`
|
|
2626
|
+
from {
|
|
2627
|
+
transform: scale(0);
|
|
2628
|
+
opacity: 0;
|
|
2629
|
+
}
|
|
2630
|
+
to {
|
|
2631
|
+
transform: scale(1);
|
|
2632
|
+
opacity: 1;
|
|
2633
|
+
}`, ls = Y`
|
|
2634
|
+
from {
|
|
2635
|
+
transform: scale(0) rotate(90deg);
|
|
2636
|
+
opacity: 0;
|
|
2637
|
+
}
|
|
2638
|
+
to {
|
|
2639
|
+
transform: scale(1) rotate(90deg);
|
|
2640
|
+
opacity: 1;
|
|
2641
|
+
}`, us = Q("div")`
|
|
2642
|
+
width: 20px;
|
|
2643
|
+
opacity: 0;
|
|
2644
|
+
height: 20px;
|
|
2645
|
+
border-radius: 10px;
|
|
2646
|
+
background: ${(e) => e.primary || "#ff4b4b"};
|
|
2647
|
+
position: relative;
|
|
2648
|
+
transform: rotate(45deg);
|
|
2649
|
+
|
|
2650
|
+
animation: ${as} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
2651
|
+
forwards;
|
|
2652
|
+
animation-delay: 100ms;
|
|
2653
|
+
|
|
2654
|
+
&:after,
|
|
2655
|
+
&:before {
|
|
2656
|
+
content: '';
|
|
2657
|
+
animation: ${cs} 0.15s ease-out forwards;
|
|
2658
|
+
animation-delay: 150ms;
|
|
2659
|
+
position: absolute;
|
|
2660
|
+
border-radius: 3px;
|
|
2661
|
+
opacity: 0;
|
|
2662
|
+
background: ${(e) => e.secondary || "#fff"};
|
|
2663
|
+
bottom: 9px;
|
|
2664
|
+
left: 4px;
|
|
2665
|
+
height: 2px;
|
|
2666
|
+
width: 12px;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
&:before {
|
|
2670
|
+
animation: ${ls} 0.15s ease-out forwards;
|
|
2671
|
+
animation-delay: 180ms;
|
|
2672
|
+
transform: rotate(90deg);
|
|
2673
|
+
}
|
|
2674
|
+
`, fs = Y`
|
|
2675
|
+
from {
|
|
2676
|
+
transform: rotate(0deg);
|
|
2677
|
+
}
|
|
2678
|
+
to {
|
|
2679
|
+
transform: rotate(360deg);
|
|
2680
|
+
}
|
|
2681
|
+
`, ds = Q("div")`
|
|
2682
|
+
width: 12px;
|
|
2683
|
+
height: 12px;
|
|
2684
|
+
box-sizing: border-box;
|
|
2685
|
+
border: 2px solid;
|
|
2686
|
+
border-radius: 100%;
|
|
2687
|
+
border-color: ${(e) => e.secondary || "#e0e0e0"};
|
|
2688
|
+
border-right-color: ${(e) => e.primary || "#616161"};
|
|
2689
|
+
animation: ${fs} 1s linear infinite;
|
|
2690
|
+
`, ps = Y`
|
|
2691
|
+
from {
|
|
2692
|
+
transform: scale(0) rotate(45deg);
|
|
2693
|
+
opacity: 0;
|
|
2694
|
+
}
|
|
2695
|
+
to {
|
|
2696
|
+
transform: scale(1) rotate(45deg);
|
|
2697
|
+
opacity: 1;
|
|
2698
|
+
}`, ms = Y`
|
|
2699
|
+
0% {
|
|
2700
|
+
height: 0;
|
|
2701
|
+
width: 0;
|
|
2702
|
+
opacity: 0;
|
|
2703
|
+
}
|
|
2704
|
+
40% {
|
|
2705
|
+
height: 0;
|
|
2706
|
+
width: 6px;
|
|
2707
|
+
opacity: 1;
|
|
2708
|
+
}
|
|
2709
|
+
100% {
|
|
2710
|
+
opacity: 1;
|
|
2711
|
+
height: 10px;
|
|
2712
|
+
}`, hs = Q("div")`
|
|
2713
|
+
width: 20px;
|
|
2714
|
+
opacity: 0;
|
|
2715
|
+
height: 20px;
|
|
2716
|
+
border-radius: 10px;
|
|
2717
|
+
background: ${(e) => e.primary || "#61d345"};
|
|
2718
|
+
position: relative;
|
|
2719
|
+
transform: rotate(45deg);
|
|
2720
|
+
|
|
2721
|
+
animation: ${ps} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
2722
|
+
forwards;
|
|
2723
|
+
animation-delay: 100ms;
|
|
2724
|
+
&:after {
|
|
2725
|
+
content: '';
|
|
2726
|
+
box-sizing: border-box;
|
|
2727
|
+
animation: ${ms} 0.2s ease-out forwards;
|
|
2728
|
+
opacity: 0;
|
|
2729
|
+
animation-delay: 200ms;
|
|
2730
|
+
position: absolute;
|
|
2731
|
+
border-right: 2px solid;
|
|
2732
|
+
border-bottom: 2px solid;
|
|
2733
|
+
border-color: ${(e) => e.secondary || "#fff"};
|
|
2734
|
+
bottom: 6px;
|
|
2735
|
+
left: 6px;
|
|
2736
|
+
height: 10px;
|
|
2737
|
+
width: 6px;
|
|
2738
|
+
}
|
|
2739
|
+
`, ys = Q("div")`
|
|
2740
|
+
position: absolute;
|
|
2741
|
+
`, gs = Q("div")`
|
|
2742
|
+
position: relative;
|
|
2743
|
+
display: flex;
|
|
2744
|
+
justify-content: center;
|
|
2745
|
+
align-items: center;
|
|
2746
|
+
min-width: 20px;
|
|
2747
|
+
min-height: 20px;
|
|
2748
|
+
`, bs = Y`
|
|
2749
|
+
from {
|
|
2750
|
+
transform: scale(0.6);
|
|
2751
|
+
opacity: 0.4;
|
|
2752
|
+
}
|
|
2753
|
+
to {
|
|
2754
|
+
transform: scale(1);
|
|
2755
|
+
opacity: 1;
|
|
2756
|
+
}`, ws = Q("div")`
|
|
2757
|
+
position: relative;
|
|
2758
|
+
transform: scale(0.6);
|
|
2759
|
+
opacity: 0.4;
|
|
2760
|
+
min-width: 20px;
|
|
2761
|
+
animation: ${bs} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
2762
|
+
forwards;
|
|
2763
|
+
`, Es = ({ toast: e }) => {
|
|
2764
|
+
let { icon: t, type: r, iconTheme: n } = e;
|
|
2765
|
+
return t !== void 0 ? typeof t == "string" ? N.createElement(ws, null, t) : t : r === "blank" ? null : N.createElement(gs, null, N.createElement(ds, { ...n }), r !== "loading" && N.createElement(ys, null, r === "error" ? N.createElement(us, { ...n }) : N.createElement(hs, { ...n })));
|
|
2766
|
+
}, Ss = (e) => `
|
|
2767
|
+
0% {transform: translate3d(0,${e * -200}%,0) scale(.6); opacity:.5;}
|
|
2768
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
2769
|
+
`, xs = (e) => `
|
|
2770
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
2771
|
+
100% {transform: translate3d(0,${e * -150}%,-1px) scale(.6); opacity:0;}
|
|
2772
|
+
`, Os = "0%{opacity:0;} 100%{opacity:1;}", Cs = "0%{opacity:1;} 100%{opacity:0;}", Rs = Q("div")`
|
|
2773
|
+
display: flex;
|
|
2774
|
+
align-items: center;
|
|
2775
|
+
background: #fff;
|
|
2776
|
+
color: #363636;
|
|
2777
|
+
line-height: 1.3;
|
|
2778
|
+
will-change: transform;
|
|
2779
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
2780
|
+
max-width: 350px;
|
|
2781
|
+
pointer-events: auto;
|
|
2782
|
+
padding: 8px 10px;
|
|
2783
|
+
border-radius: 8px;
|
|
2784
|
+
`, As = Q("div")`
|
|
2785
|
+
display: flex;
|
|
2786
|
+
justify-content: center;
|
|
2787
|
+
margin: 4px 10px;
|
|
2788
|
+
color: inherit;
|
|
2789
|
+
flex: 1 1 auto;
|
|
2790
|
+
white-space: pre-line;
|
|
2791
|
+
`, Ts = (e, t) => {
|
|
2792
|
+
let r = e.includes("top") ? 1 : -1, [n, o] = yr() ? [Os, Cs] : [Ss(r), xs(r)];
|
|
2793
|
+
return { animation: t ? `${Y(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards` : `${Y(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)` };
|
|
2794
|
+
}, vs = N.memo(({ toast: e, position: t, style: r, children: n }) => {
|
|
2795
|
+
let o = e.height ? Ts(e.position || t || "top-center", e.visible) : { opacity: 0 }, i = N.createElement(Es, { toast: e }), s = N.createElement(As, { ...e.ariaProps }, He(e.message, e));
|
|
2796
|
+
return N.createElement(Rs, { className: e.className, style: { ...o, ...r, ...e.style } }, typeof n == "function" ? n({ icon: i, message: s }) : N.createElement(N.Fragment, null, i, s));
|
|
2797
|
+
});
|
|
2798
|
+
Go(N.createElement);
|
|
2799
|
+
var Ps = ({ id: e, className: t, style: r, onHeightUpdate: n, children: o }) => {
|
|
2800
|
+
let i = N.useCallback((s) => {
|
|
2801
|
+
if (s) {
|
|
2802
|
+
let a = () => {
|
|
2803
|
+
let f = s.getBoundingClientRect().height;
|
|
2804
|
+
n(e, f);
|
|
2805
|
+
};
|
|
2806
|
+
a(), new MutationObserver(a).observe(s, { subtree: !0, childList: !0, characterData: !0 });
|
|
2807
|
+
}
|
|
2808
|
+
}, [e, n]);
|
|
2809
|
+
return N.createElement("div", { ref: i, className: t, style: r }, o);
|
|
2810
|
+
}, _s = (e, t) => {
|
|
2811
|
+
let r = e.includes("top"), n = r ? { top: 0 } : { bottom: 0 }, o = e.includes("center") ? { justifyContent: "center" } : e.includes("right") ? { justifyContent: "flex-end" } : {};
|
|
2812
|
+
return { left: 0, right: 0, display: "flex", position: "absolute", transition: yr() ? void 0 : "all 230ms cubic-bezier(.21,1.02,.73,1)", transform: `translateY(${t * (r ? 1 : -1)}px)`, ...n, ...o };
|
|
2813
|
+
}, ks = Ke`
|
|
2814
|
+
z-index: 9999;
|
|
2815
|
+
> * {
|
|
2816
|
+
pointer-events: auto;
|
|
2817
|
+
}
|
|
2818
|
+
`, Fe = 16, hi = ({ reverseOrder: e, position: t = "top-center", toastOptions: r, gutter: n, children: o, toasterId: i, containerStyle: s, containerClassName: a }) => {
|
|
2819
|
+
let { toasts: f, handlers: c } = is(r, i);
|
|
2820
|
+
return N.createElement("div", { "data-rht-toaster": i || "", style: { position: "fixed", zIndex: 9999, top: Fe, left: Fe, right: Fe, bottom: Fe, pointerEvents: "none", ...s }, className: a, onMouseEnter: c.startPause, onMouseLeave: c.endPause }, f.map((l) => {
|
|
2821
|
+
let p = l.position || t, b = c.calculateOffset(l, { reverseOrder: e, gutter: n, defaultPosition: t }), y = _s(p, b);
|
|
2822
|
+
return N.createElement(Ps, { id: l.id, key: l.id, onHeightUpdate: c.updateHeight, className: l.visible ? ks : "", style: y }, l.type === "custom" ? He(l.message, l) : o ? o(l) : N.createElement(vs, { toast: l, position: p }));
|
|
2823
|
+
}));
|
|
2824
|
+
}, ae = D;
|
|
2825
|
+
const Ns = "_toast_1s57i_1", ye = {
|
|
2826
|
+
toast: Ns
|
|
2827
|
+
}, Ds = (e) => {
|
|
2828
|
+
switch (e) {
|
|
2829
|
+
case "success":
|
|
2830
|
+
return 5e3;
|
|
2831
|
+
case "info":
|
|
2832
|
+
return 5e3;
|
|
2833
|
+
case "danger":
|
|
2834
|
+
return 1e4;
|
|
2835
|
+
case "warning":
|
|
2836
|
+
return 1e4;
|
|
2837
|
+
case "prompt":
|
|
2838
|
+
return 1e4;
|
|
2839
|
+
default:
|
|
2840
|
+
return 5e3;
|
|
2841
|
+
}
|
|
2842
|
+
}, Ls = () => {
|
|
2843
|
+
const e = Z.c(1), t = $s;
|
|
2844
|
+
let r;
|
|
2845
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
2846
|
+
addNotification: t
|
|
2847
|
+
}, e[0] = r) : r = e[0], r;
|
|
2848
|
+
};
|
|
2849
|
+
function $s(e, t) {
|
|
2850
|
+
const r = Fr(e), n = Ds(t), o = /* @__PURE__ */ qr(Vr, { children: [
|
|
2851
|
+
r,
|
|
2852
|
+
/* @__PURE__ */ ie(vr, { onClick: () => ae.dismiss(r), type: "button", style: {
|
|
2853
|
+
position: "absolute",
|
|
2854
|
+
fontSize: "12px",
|
|
2855
|
+
top: "calc(50% - 6px)",
|
|
2856
|
+
right: "8px"
|
|
2857
|
+
} })
|
|
2858
|
+
] });
|
|
2859
|
+
e: switch (t) {
|
|
2860
|
+
case "success": {
|
|
2861
|
+
ae(o, {
|
|
2862
|
+
id: r,
|
|
2863
|
+
duration: n,
|
|
2864
|
+
position: "top-center",
|
|
2865
|
+
icon: /* @__PURE__ */ ie(Dr, { size: 12 }),
|
|
2866
|
+
className: me("luminus-toast-success rounded shadow bg-success", ye.toast)
|
|
2867
|
+
});
|
|
2868
|
+
break e;
|
|
2869
|
+
}
|
|
2870
|
+
case "danger": {
|
|
2871
|
+
ae(o, {
|
|
2872
|
+
id: r,
|
|
2873
|
+
duration: n,
|
|
2874
|
+
position: "top-center",
|
|
2875
|
+
icon: /* @__PURE__ */ ie(Nr, { size: 12 }),
|
|
2876
|
+
className: me("luminus-toast-danger rounded shadow bg-danger", ye.toast)
|
|
2877
|
+
});
|
|
2878
|
+
break e;
|
|
2879
|
+
}
|
|
2880
|
+
case "warning": {
|
|
2881
|
+
ae(o, {
|
|
2882
|
+
id: r,
|
|
2883
|
+
duration: n,
|
|
2884
|
+
position: "top-center",
|
|
2885
|
+
icon: /* @__PURE__ */ ie(kr, { size: 12 }),
|
|
2886
|
+
className: me("luminus-toast-warning rounded shadow bg-warning", ye.toast)
|
|
2887
|
+
});
|
|
2888
|
+
break e;
|
|
2889
|
+
}
|
|
2890
|
+
case "info": {
|
|
2891
|
+
ae(o, {
|
|
2892
|
+
id: r,
|
|
2893
|
+
duration: n,
|
|
2894
|
+
position: "top-center",
|
|
2895
|
+
icon: /* @__PURE__ */ ie(_r, { size: 12 }),
|
|
2896
|
+
className: me("luminus-toast-info rounded shadow bg-info", ye.toast)
|
|
2897
|
+
});
|
|
2898
|
+
break e;
|
|
2899
|
+
}
|
|
2900
|
+
case "prompt": {
|
|
2901
|
+
ae(o, {
|
|
2902
|
+
id: r,
|
|
2903
|
+
duration: n,
|
|
2904
|
+
position: "top-center",
|
|
2905
|
+
icon: /* @__PURE__ */ ie(Pr, { size: 12 }),
|
|
2906
|
+
className: me("luminus-toast-prompt rounded shadow bg-light", ye.toast)
|
|
2907
|
+
});
|
|
2908
|
+
break e;
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
}
|
|
2912
|
+
const yi = _.CancelToken, Fs = (e) => {
|
|
2913
|
+
const {
|
|
2914
|
+
authenticated: t = !0,
|
|
2915
|
+
differentBaseUrl: r,
|
|
2916
|
+
silent: n = !1,
|
|
2917
|
+
customToken: o,
|
|
2918
|
+
ignoreDelegation: i,
|
|
2919
|
+
noToastOnStatus: s
|
|
2920
|
+
} = {
|
|
2921
|
+
...e
|
|
2922
|
+
}, {
|
|
2923
|
+
language: a,
|
|
2924
|
+
axiosOptions: f,
|
|
2925
|
+
texts: {
|
|
2926
|
+
axios: c
|
|
2927
|
+
}
|
|
2928
|
+
} = V(It), {
|
|
2929
|
+
delegation: l
|
|
2930
|
+
} = V(Us), {
|
|
2931
|
+
getToken: p
|
|
2932
|
+
} = V(mt), b = be(() => (l == null ? void 0 : l.id) ?? null, [l == null ? void 0 : l.id]), {
|
|
2933
|
+
addNotification: y
|
|
2934
|
+
} = Ls(), {
|
|
2935
|
+
isAuthenticating: d,
|
|
2936
|
+
isAuthenticated: h
|
|
2937
|
+
} = pr(), g = le(null), C = le(null), E = be(() => {
|
|
2938
|
+
const m = _.create(f);
|
|
2939
|
+
return m.interceptors.request.use((O) => g.current(O), (O) => Promise.reject(O)), m.interceptors.response.use((O) => O, (O) => C.current(O)), m;
|
|
2940
|
+
}, [f]), w = U(async (m) => {
|
|
2941
|
+
var v, k, P;
|
|
2942
|
+
if (t && !m.headers.Authorization) {
|
|
2943
|
+
if (d())
|
|
2944
|
+
return Promise.reject(new Error("Authentication in progress"));
|
|
2945
|
+
if (!h())
|
|
2946
|
+
return Promise.reject(new Error("Not authenticated"));
|
|
2947
|
+
const j = o ? {
|
|
2948
|
+
token: o,
|
|
2949
|
+
expiresOn: Ut(new Date(Date.now()), 1)
|
|
2950
|
+
} : await p();
|
|
2951
|
+
if (!j)
|
|
2952
|
+
return console.log("No bearer token"), Promise.reject(new Error("No bearer token"));
|
|
2953
|
+
if (Wr(j.expiresOn))
|
|
2954
|
+
return console.log("Token expired"), Promise.reject(new Error("Token expired"));
|
|
2955
|
+
m.headers.Authorization = `Bearer ${j.token}`;
|
|
2956
|
+
}
|
|
2957
|
+
b !== null && !i && (m.headers.DelegationId = b.toString());
|
|
2958
|
+
const O = localStorage.getItem("search-use-asterisk") !== "false";
|
|
2959
|
+
return m.headers["Search-Use-Asterisk"] = O ? "true" : "false", (v = m.url) != null && v.includes("culture=") ? m.url = (k = m.url) == null ? void 0 : k.replace(/culture=[a-z]{2}/, `culture=${a}`) : m.url = `${m.url}${(P = m.url) != null && P.includes("?") ? "&" : "?"}culture=${a}`, m;
|
|
2960
|
+
}, [t, p, a, o, b, i, d, h]), S = U(
|
|
2961
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2962
|
+
async (m) => {
|
|
2963
|
+
if (_.isCancel(m) || m.message === "Authentication in progress" || m.message === "No bearer token" || m.message === "Token expired")
|
|
2964
|
+
return Promise.reject(m);
|
|
2965
|
+
if (!m.response)
|
|
2966
|
+
return m.message === "Network Error" ? !n && y(c.networkError, "danger") : !n && y(c.unexpectedError, "danger"), Promise.reject(m);
|
|
2967
|
+
let O;
|
|
2968
|
+
if (m.response.data instanceof Blob ? O = await jr(m.response.data) : O = Ir(m.response.data), O.length > 0) {
|
|
2969
|
+
const k = O.find((P) => P.name.toLowerCase() === "others");
|
|
2970
|
+
return k ? (!n && y(k.errors, "danger"), Promise.reject(m)) : (!n && y(c.validationError, "warning"), Promise.reject(m));
|
|
2971
|
+
}
|
|
2972
|
+
const v = Mr(m);
|
|
2973
|
+
return v !== null ? (!n && y(`${c.permissionError}: ${Ur(", ", ...v)}`, "danger"), Promise.reject(m)) : (s ?? []).includes(m.response.status) ? Promise.reject(m) : m.response.status === 403 ? (!n && y(c.forbiddenError, "danger"), Promise.reject(m)) : (!n && y(c.unexpectedError, "danger"), Promise.reject(m));
|
|
2974
|
+
},
|
|
2975
|
+
[y, c.forbiddenError, c.networkError, c.permissionError, c.unexpectedError, c.validationError, n, s]
|
|
2976
|
+
);
|
|
2977
|
+
return g.current = w, C.current = S, G(() => {
|
|
2978
|
+
r && (E.defaults.baseURL = r);
|
|
2979
|
+
}, [r, E.defaults]), E;
|
|
2980
|
+
};
|
|
2981
|
+
let ge;
|
|
2982
|
+
const gi = () => {
|
|
2983
|
+
const e = Z.c(15), {
|
|
2984
|
+
show: t,
|
|
2985
|
+
text: r,
|
|
2986
|
+
showConfirm: n,
|
|
2987
|
+
hideConfirm: o,
|
|
2988
|
+
textSm: i
|
|
2989
|
+
} = V(Yr);
|
|
2990
|
+
let s;
|
|
2991
|
+
e[0] !== o ? (s = () => {
|
|
2992
|
+
o();
|
|
2993
|
+
}, e[0] = o, e[1] = s) : s = e[1];
|
|
2994
|
+
const a = s;
|
|
2995
|
+
let f;
|
|
2996
|
+
e[2] !== a ? (f = () => {
|
|
2997
|
+
a(), ge && ge(!0);
|
|
2998
|
+
}, e[2] = a, e[3] = f) : f = e[3];
|
|
2999
|
+
const c = f;
|
|
3000
|
+
let l;
|
|
3001
|
+
e[4] !== a ? (l = () => {
|
|
3002
|
+
a(), ge && ge(!1);
|
|
3003
|
+
}, e[4] = a, e[5] = l) : l = e[5];
|
|
3004
|
+
const p = l;
|
|
3005
|
+
let b;
|
|
3006
|
+
e[6] !== n ? (b = async (h, g) => (n(h, g), new Promise(js)), e[6] = n, e[7] = b) : b = e[7];
|
|
3007
|
+
const y = b;
|
|
3008
|
+
let d;
|
|
3009
|
+
return e[8] !== y || e[9] !== p || e[10] !== c || e[11] !== t || e[12] !== r || e[13] !== i ? (d = {
|
|
3010
|
+
confirm: y,
|
|
3011
|
+
onConfirm: c,
|
|
3012
|
+
onCancel: p,
|
|
3013
|
+
show: t,
|
|
3014
|
+
text: r,
|
|
3015
|
+
textSm: i
|
|
3016
|
+
}, e[8] = y, e[9] = p, e[10] = c, e[11] = t, e[12] = r, e[13] = i, e[14] = d) : d = e[14], d;
|
|
3017
|
+
};
|
|
3018
|
+
function js(e) {
|
|
3019
|
+
ge = e;
|
|
3020
|
+
}
|
|
3021
|
+
const bi = (e, t) => {
|
|
3022
|
+
const r = Z.c(6);
|
|
3023
|
+
let n, o;
|
|
3024
|
+
r[0] !== e ? (n = () => (document.addEventListener("keydown", e), () => {
|
|
3025
|
+
document.removeEventListener("keydown", e);
|
|
3026
|
+
}), o = [e], r[0] = e, r[1] = n, r[2] = o) : (n = r[1], o = r[2]), G(n, o);
|
|
3027
|
+
let i, s;
|
|
3028
|
+
r[3] !== t ? (i = () => t === void 0 ? Is : (document.addEventListener("keyup", t), () => {
|
|
3029
|
+
document.removeEventListener("keyup", t);
|
|
3030
|
+
}), s = [t], r[3] = t, r[4] = i, r[5] = s) : (i = r[4], s = r[5]), G(i, s);
|
|
3031
|
+
};
|
|
3032
|
+
function Is() {
|
|
3033
|
+
}
|
|
3034
|
+
const ce = {
|
|
3035
|
+
loadOnInit: !0,
|
|
3036
|
+
silent: !1,
|
|
3037
|
+
enabled: !0,
|
|
3038
|
+
nullStateBeforeLoad: !0,
|
|
3039
|
+
nullStateOnFail: !1
|
|
3040
|
+
}, wi = (e, {
|
|
3041
|
+
loadOnInit: t = ce.loadOnInit,
|
|
3042
|
+
enabled: r = ce.enabled,
|
|
3043
|
+
silent: n = ce.silent,
|
|
3044
|
+
nullStateBeforeLoad: o = ce.nullStateBeforeLoad,
|
|
3045
|
+
nullStateOnFail: i = ce.nullStateOnFail,
|
|
3046
|
+
customApiUrl: s,
|
|
3047
|
+
customBearerToken: a,
|
|
3048
|
+
dataTransformer: f
|
|
3049
|
+
} = ce) => {
|
|
3050
|
+
const c = Fs({
|
|
3051
|
+
silent: n,
|
|
3052
|
+
customToken: a,
|
|
3053
|
+
differentBaseUrl: s
|
|
3054
|
+
}), [l, p] = we(0), {
|
|
3055
|
+
startLoading: b,
|
|
3056
|
+
stopLoading: y
|
|
3057
|
+
} = V(Ms), d = le(0), {
|
|
3058
|
+
isAuthenticated: h
|
|
3059
|
+
} = pr(), [g, C] = we(null), E = le(t ?? !1), w = U(async (O, v) => {
|
|
3060
|
+
if (!h() || r === !1)
|
|
3061
|
+
return null;
|
|
3062
|
+
p((P) => P + 1), !n && b(`loadData-${e}-${v}`), o && C(null);
|
|
3063
|
+
let k;
|
|
3064
|
+
try {
|
|
3065
|
+
const P = await c.get(e, {
|
|
3066
|
+
signal: O
|
|
3067
|
+
}), j = f ? f(P.data) : P.data;
|
|
3068
|
+
C(j), k = j;
|
|
3069
|
+
} catch (P) {
|
|
3070
|
+
throw i && C(null), P;
|
|
3071
|
+
} finally {
|
|
3072
|
+
E.current = !1, p((P) => P - 1), !n && y(`loadData-${e}-${v}`);
|
|
3073
|
+
}
|
|
3074
|
+
return k;
|
|
3075
|
+
}, [h, r, n, b, e, o, c, f, i, y]), S = U(async () => {
|
|
3076
|
+
w();
|
|
3077
|
+
}, [w]), m = U(async () => w(), [w]);
|
|
3078
|
+
return G(() => {
|
|
3079
|
+
if (t === !1)
|
|
3080
|
+
return;
|
|
3081
|
+
const O = new AbortController();
|
|
3082
|
+
return w(O.signal, ++d.current), () => {
|
|
3083
|
+
O.abort();
|
|
3084
|
+
};
|
|
3085
|
+
}, [w, t]), {
|
|
3086
|
+
data: g,
|
|
3087
|
+
setData: C,
|
|
3088
|
+
reloadData: S,
|
|
3089
|
+
isLoading: E.current || l > 0,
|
|
3090
|
+
reloadDataWithReturn: m
|
|
3091
|
+
};
|
|
3092
|
+
}, Ei = (e, t) => {
|
|
3093
|
+
const r = Z.c(12);
|
|
3094
|
+
let n;
|
|
3095
|
+
r[0] !== t || r[1] !== e ? (n = () => {
|
|
3096
|
+
const b = localStorage.getItem(e);
|
|
3097
|
+
return b != null && b !== "undefined" ? JSON.parse(b) : t;
|
|
3098
|
+
}, r[0] = t, r[1] = e, r[2] = n) : n = r[2];
|
|
3099
|
+
const o = n, [i, s] = we(o);
|
|
3100
|
+
let a, f;
|
|
3101
|
+
r[3] !== e || r[4] !== i ? (a = () => {
|
|
3102
|
+
localStorage.setItem(e, JSON.stringify(i));
|
|
3103
|
+
}, f = [e, i], r[3] = e, r[4] = i, r[5] = a, r[6] = f) : (a = r[5], f = r[6]), G(a, f);
|
|
3104
|
+
let c;
|
|
3105
|
+
r[7] !== o ? (c = () => {
|
|
3106
|
+
s(o);
|
|
3107
|
+
}, r[7] = o, r[8] = c) : c = r[8];
|
|
3108
|
+
const l = c;
|
|
3109
|
+
let p;
|
|
3110
|
+
return r[9] !== l || r[10] !== i ? (p = [i, s, l], r[9] = l, r[10] = i, r[11] = p) : p = r[11], p;
|
|
3111
|
+
}, Ms = Ee({
|
|
3112
|
+
isLoading: !1,
|
|
3113
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3114
|
+
startLoading: (e) => {
|
|
3115
|
+
},
|
|
3116
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3117
|
+
stopLoading: (e) => {
|
|
3118
|
+
}
|
|
3119
|
+
}), mt = Ee({
|
|
3120
|
+
useMsal: !1,
|
|
3121
|
+
msalInstance: null,
|
|
3122
|
+
msalScopes: [],
|
|
3123
|
+
msalExtraScopes: [],
|
|
3124
|
+
getToken: async () => null,
|
|
3125
|
+
authState: "NO_AUTH"
|
|
3126
|
+
}), Us = Ee({
|
|
3127
|
+
delegation: null,
|
|
3128
|
+
setDelegation: () => {
|
|
3129
|
+
},
|
|
3130
|
+
availableDelegations: null,
|
|
3131
|
+
setAvailableDelegations: () => {
|
|
3132
|
+
},
|
|
3133
|
+
refreshAvailableDelegations: async () => {
|
|
3134
|
+
}
|
|
3135
|
+
});
|
|
3136
|
+
export {
|
|
3137
|
+
mt as A,
|
|
3138
|
+
Yr as C,
|
|
3139
|
+
Us as D,
|
|
3140
|
+
hi as F,
|
|
3141
|
+
Ms as L,
|
|
3142
|
+
Kr as P,
|
|
3143
|
+
Jr as a,
|
|
3144
|
+
wi as b,
|
|
3145
|
+
Ys as c,
|
|
3146
|
+
gi as d,
|
|
3147
|
+
Ls as e,
|
|
3148
|
+
_ as f,
|
|
3149
|
+
Ei as g,
|
|
3150
|
+
bi as h,
|
|
3151
|
+
pr as i,
|
|
3152
|
+
Wr as j,
|
|
3153
|
+
dr as k,
|
|
3154
|
+
yi as l,
|
|
3155
|
+
Fs as u
|
|
3156
|
+
};
|