@articles-media/articles-dev-box 1.0.12 → 1.0.13
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/package.json +5 -1
- package/dist/Ad.cjs +0 -1
- package/dist/Ad.js +0 -600
- package/dist/AdConfirmExitModal-CKkMAvBK.js +0 -72
- package/dist/AdConfirmExitModal-CcSxmXKT.cjs +0 -1
- package/dist/AdDetailsModal-Bp5hZm9N.js +0 -83
- package/dist/AdDetailsModal-k840vrS2.cjs +0 -1
- package/dist/ArticlesAd.cjs +0 -1
- package/dist/ArticlesAd.js +0 -16
- package/dist/Button-0ZK0NKiK.cjs +0 -1
- package/dist/Button-_Quon8UV.js +0 -54
- package/dist/GameScoreboard.cjs +0 -1
- package/dist/GameScoreboard.js +0 -182
- package/dist/GlobalBody-BQ2qC81K.cjs +0 -33
- package/dist/GlobalBody-tmIC_GWn.js +0 -123
- package/dist/GlobalBody.cjs +0 -1
- package/dist/GlobalBody.js +0 -7
- package/dist/GlobalHead.cjs +0 -1
- package/dist/GlobalHead.js +0 -13
- package/dist/Modal-C9oYRgI1.js +0 -2073
- package/dist/Modal-Wmqy9fOm.cjs +0 -2
- package/dist/ReturnToLauncherButton.cjs +0 -1
- package/dist/ReturnToLauncherButton.js +0 -50
- package/dist/StatusModal-BlwaI-2B.cjs +0 -1
- package/dist/StatusModal-CAVxWCUq.js +0 -71
- package/dist/ViewUserModal.cjs +0 -1
- package/dist/ViewUserModal.js +0 -3189
- package/dist/articles-dev-box.css +0 -1
- package/dist/index-BlP2-uOi.cjs +0 -1
- package/dist/index-DLYx67wi.js +0 -2394
- package/dist/index-Ddv_TnxK.cjs +0 -6
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/index.cjs +0 -1
- package/dist/index.js +0 -20
- package/dist/jsx-runtime-nZSsnGb7.cjs +0 -6
- package/dist/jsx-runtime-tc70JA_2.js +0 -264
- package/dist/numberWithCommas-CRgrb58X.cjs +0 -1
- package/dist/numberWithCommas-DnAkiOFL.js +0 -1256
- package/dist/useUserDetails.cjs +0 -1
- package/dist/useUserDetails.js +0 -33
- package/dist/useUserToken.cjs +0 -1
- package/dist/useUserToken.js +0 -22
package/dist/index-DLYx67wi.js
DELETED
|
@@ -1,2394 +0,0 @@
|
|
|
1
|
-
import Oe, { createContext as kn, useEffect as qn, useLayoutEffect as Hn, useContext as Mn, useMemo as en, useRef as le, useCallback as ze, useDebugValue as Vn } from "react";
|
|
2
|
-
function tn(e, t) {
|
|
3
|
-
return function() {
|
|
4
|
-
return e.apply(t, arguments);
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
const { toString: $n } = Object.prototype, { getPrototypeOf: Et } = Object, { iterator: ke, toStringTag: nn } = Symbol, qe = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
-
const n = $n.call(t);
|
|
9
|
-
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)), G = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), He = (e) => (t) => typeof t === e, { isArray: we } = Array, ye = He("undefined");
|
|
11
|
-
function Te(e) {
|
|
12
|
-
return e !== null && !ye(e) && e.constructor !== null && !ye(e.constructor) && k(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
|
-
}
|
|
14
|
-
const rn = G("ArrayBuffer");
|
|
15
|
-
function Wn(e) {
|
|
16
|
-
let t;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && rn(e.buffer), t;
|
|
18
|
-
}
|
|
19
|
-
const zn = He("string"), k = He("function"), sn = He("number"), Ae = (e) => e !== null && typeof e == "object", Jn = (e) => e === !0 || e === !1, Ue = (e) => {
|
|
20
|
-
if (qe(e) !== "object")
|
|
21
|
-
return !1;
|
|
22
|
-
const t = Et(e);
|
|
23
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(nn in e) && !(ke in e);
|
|
24
|
-
}, Kn = (e) => {
|
|
25
|
-
if (!Ae(e) || Te(e))
|
|
26
|
-
return !1;
|
|
27
|
-
try {
|
|
28
|
-
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
29
|
-
} catch {
|
|
30
|
-
return !1;
|
|
31
|
-
}
|
|
32
|
-
}, Gn = G("Date"), Xn = G("File"), Yn = G("Blob"), Qn = G("FileList"), Zn = (e) => Ae(e) && k(e.pipe), er = (e) => {
|
|
33
|
-
let t;
|
|
34
|
-
return e && (typeof FormData == "function" && e instanceof FormData || k(e.append) && ((t = qe(e)) === "formdata" || // detect form-data instance
|
|
35
|
-
t === "object" && k(e.toString) && e.toString() === "[object FormData]"));
|
|
36
|
-
}, tr = G("URLSearchParams"), [nr, rr, sr, or] = ["ReadableStream", "Request", "Response", "Headers"].map(G), ir = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
|
-
function _e(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
38
|
-
if (e === null || typeof e > "u")
|
|
39
|
-
return;
|
|
40
|
-
let r, s;
|
|
41
|
-
if (typeof e != "object" && (e = [e]), we(e))
|
|
42
|
-
for (r = 0, s = e.length; r < s; r++)
|
|
43
|
-
t.call(null, e[r], r, e);
|
|
44
|
-
else {
|
|
45
|
-
if (Te(e))
|
|
46
|
-
return;
|
|
47
|
-
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
48
|
-
let a;
|
|
49
|
-
for (r = 0; r < o; r++)
|
|
50
|
-
a = i[r], t.call(null, e[a], a, e);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function on(e, t) {
|
|
54
|
-
if (Te(e))
|
|
55
|
-
return null;
|
|
56
|
-
t = t.toLowerCase();
|
|
57
|
-
const n = Object.keys(e);
|
|
58
|
-
let r = n.length, s;
|
|
59
|
-
for (; r-- > 0; )
|
|
60
|
-
if (s = n[r], t === s.toLowerCase())
|
|
61
|
-
return s;
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, an = (e) => !ye(e) && e !== fe;
|
|
65
|
-
function st() {
|
|
66
|
-
const { caseless: e, skipUndefined: t } = an(this) && this || {}, n = {}, r = (s, i) => {
|
|
67
|
-
const o = e && on(n, i) || i;
|
|
68
|
-
Ue(n[o]) && Ue(s) ? n[o] = st(n[o], s) : Ue(s) ? n[o] = st({}, s) : we(s) ? n[o] = s.slice() : (!t || !ye(s)) && (n[o] = s);
|
|
69
|
-
};
|
|
70
|
-
for (let s = 0, i = arguments.length; s < i; s++)
|
|
71
|
-
arguments[s] && _e(arguments[s], r);
|
|
72
|
-
return n;
|
|
73
|
-
}
|
|
74
|
-
const ar = (e, t, n, { allOwnKeys: r } = {}) => (_e(t, (s, i) => {
|
|
75
|
-
n && k(s) ? e[i] = tn(s, n) : e[i] = s;
|
|
76
|
-
}, { allOwnKeys: r }), e), cr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ur = (e, t, n, r) => {
|
|
77
|
-
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
78
|
-
value: t.prototype
|
|
79
|
-
}), n && Object.assign(e.prototype, n);
|
|
80
|
-
}, lr = (e, t, n, r) => {
|
|
81
|
-
let s, i, o;
|
|
82
|
-
const a = {};
|
|
83
|
-
if (t = t || {}, e == null) return t;
|
|
84
|
-
do {
|
|
85
|
-
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
86
|
-
o = s[i], (!r || r(o, e, t)) && !a[o] && (t[o] = e[o], a[o] = !0);
|
|
87
|
-
e = n !== !1 && Et(e);
|
|
88
|
-
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
89
|
-
return t;
|
|
90
|
-
}, fr = (e, t, n) => {
|
|
91
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
92
|
-
const r = e.indexOf(t, n);
|
|
93
|
-
return r !== -1 && r === n;
|
|
94
|
-
}, dr = (e) => {
|
|
95
|
-
if (!e) return null;
|
|
96
|
-
if (we(e)) return e;
|
|
97
|
-
let t = e.length;
|
|
98
|
-
if (!sn(t)) return null;
|
|
99
|
-
const n = new Array(t);
|
|
100
|
-
for (; t-- > 0; )
|
|
101
|
-
n[t] = e[t];
|
|
102
|
-
return n;
|
|
103
|
-
}, pr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Et(Uint8Array)), hr = (e, t) => {
|
|
104
|
-
const r = (e && e[ke]).call(e);
|
|
105
|
-
let s;
|
|
106
|
-
for (; (s = r.next()) && !s.done; ) {
|
|
107
|
-
const i = s.value;
|
|
108
|
-
t.call(e, i[0], i[1]);
|
|
109
|
-
}
|
|
110
|
-
}, mr = (e, t) => {
|
|
111
|
-
let n;
|
|
112
|
-
const r = [];
|
|
113
|
-
for (; (n = e.exec(t)) !== null; )
|
|
114
|
-
r.push(n);
|
|
115
|
-
return r;
|
|
116
|
-
}, Er = G("HTMLFormElement"), yr = (e) => e.toLowerCase().replace(
|
|
117
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
118
|
-
function(n, r, s) {
|
|
119
|
-
return r.toUpperCase() + s;
|
|
120
|
-
}
|
|
121
|
-
), xt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), wr = G("RegExp"), cn = (e, t) => {
|
|
122
|
-
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
123
|
-
_e(n, (s, i) => {
|
|
124
|
-
let o;
|
|
125
|
-
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
126
|
-
}), Object.defineProperties(e, r);
|
|
127
|
-
}, Sr = (e) => {
|
|
128
|
-
cn(e, (t, n) => {
|
|
129
|
-
if (k(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
130
|
-
return !1;
|
|
131
|
-
const r = e[n];
|
|
132
|
-
if (k(r)) {
|
|
133
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
134
|
-
t.writable = !1;
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
t.set || (t.set = () => {
|
|
138
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}, gr = (e, t) => {
|
|
143
|
-
const n = {}, r = (s) => {
|
|
144
|
-
s.forEach((i) => {
|
|
145
|
-
n[i] = !0;
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
return we(e) ? r(e) : r(String(e).split(t)), n;
|
|
149
|
-
}, br = () => {
|
|
150
|
-
}, Rr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
151
|
-
function Or(e) {
|
|
152
|
-
return !!(e && k(e.append) && e[nn] === "FormData" && e[ke]);
|
|
153
|
-
}
|
|
154
|
-
const Tr = (e) => {
|
|
155
|
-
const t = new Array(10), n = (r, s) => {
|
|
156
|
-
if (Ae(r)) {
|
|
157
|
-
if (t.indexOf(r) >= 0)
|
|
158
|
-
return;
|
|
159
|
-
if (Te(r))
|
|
160
|
-
return r;
|
|
161
|
-
if (!("toJSON" in r)) {
|
|
162
|
-
t[s] = r;
|
|
163
|
-
const i = we(r) ? [] : {};
|
|
164
|
-
return _e(r, (o, a) => {
|
|
165
|
-
const d = n(o, s + 1);
|
|
166
|
-
!ye(d) && (i[a] = d);
|
|
167
|
-
}), t[s] = void 0, i;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return r;
|
|
171
|
-
};
|
|
172
|
-
return n(e, 0);
|
|
173
|
-
}, Ar = G("AsyncFunction"), _r = (e) => e && (Ae(e) || k(e)) && k(e.then) && k(e.catch), un = ((e, t) => e ? setImmediate : t ? ((n, r) => (fe.addEventListener("message", ({ source: s, data: i }) => {
|
|
174
|
-
s === fe && i === n && r.length && r.shift()();
|
|
175
|
-
}, !1), (s) => {
|
|
176
|
-
r.push(s), fe.postMessage(n, "*");
|
|
177
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
178
|
-
typeof setImmediate == "function",
|
|
179
|
-
k(fe.postMessage)
|
|
180
|
-
), Cr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || un, xr = (e) => e != null && k(e[ke]), c = {
|
|
181
|
-
isArray: we,
|
|
182
|
-
isArrayBuffer: rn,
|
|
183
|
-
isBuffer: Te,
|
|
184
|
-
isFormData: er,
|
|
185
|
-
isArrayBufferView: Wn,
|
|
186
|
-
isString: zn,
|
|
187
|
-
isNumber: sn,
|
|
188
|
-
isBoolean: Jn,
|
|
189
|
-
isObject: Ae,
|
|
190
|
-
isPlainObject: Ue,
|
|
191
|
-
isEmptyObject: Kn,
|
|
192
|
-
isReadableStream: nr,
|
|
193
|
-
isRequest: rr,
|
|
194
|
-
isResponse: sr,
|
|
195
|
-
isHeaders: or,
|
|
196
|
-
isUndefined: ye,
|
|
197
|
-
isDate: Gn,
|
|
198
|
-
isFile: Xn,
|
|
199
|
-
isBlob: Yn,
|
|
200
|
-
isRegExp: wr,
|
|
201
|
-
isFunction: k,
|
|
202
|
-
isStream: Zn,
|
|
203
|
-
isURLSearchParams: tr,
|
|
204
|
-
isTypedArray: pr,
|
|
205
|
-
isFileList: Qn,
|
|
206
|
-
forEach: _e,
|
|
207
|
-
merge: st,
|
|
208
|
-
extend: ar,
|
|
209
|
-
trim: ir,
|
|
210
|
-
stripBOM: cr,
|
|
211
|
-
inherits: ur,
|
|
212
|
-
toFlatObject: lr,
|
|
213
|
-
kindOf: qe,
|
|
214
|
-
kindOfTest: G,
|
|
215
|
-
endsWith: fr,
|
|
216
|
-
toArray: dr,
|
|
217
|
-
forEachEntry: hr,
|
|
218
|
-
matchAll: mr,
|
|
219
|
-
isHTMLForm: Er,
|
|
220
|
-
hasOwnProperty: xt,
|
|
221
|
-
hasOwnProp: xt,
|
|
222
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
223
|
-
reduceDescriptors: cn,
|
|
224
|
-
freezeMethods: Sr,
|
|
225
|
-
toObjectSet: gr,
|
|
226
|
-
toCamelCase: yr,
|
|
227
|
-
noop: br,
|
|
228
|
-
toFiniteNumber: Rr,
|
|
229
|
-
findKey: on,
|
|
230
|
-
global: fe,
|
|
231
|
-
isContextDefined: an,
|
|
232
|
-
isSpecCompliantForm: Or,
|
|
233
|
-
toJSONObject: Tr,
|
|
234
|
-
isAsyncFn: Ar,
|
|
235
|
-
isThenable: _r,
|
|
236
|
-
setImmediate: un,
|
|
237
|
-
asap: Cr,
|
|
238
|
-
isIterable: xr
|
|
239
|
-
};
|
|
240
|
-
function S(e, t, n, r, s) {
|
|
241
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
242
|
-
}
|
|
243
|
-
c.inherits(S, Error, {
|
|
244
|
-
toJSON: function() {
|
|
245
|
-
return {
|
|
246
|
-
// Standard
|
|
247
|
-
message: this.message,
|
|
248
|
-
name: this.name,
|
|
249
|
-
// Microsoft
|
|
250
|
-
description: this.description,
|
|
251
|
-
number: this.number,
|
|
252
|
-
// Mozilla
|
|
253
|
-
fileName: this.fileName,
|
|
254
|
-
lineNumber: this.lineNumber,
|
|
255
|
-
columnNumber: this.columnNumber,
|
|
256
|
-
stack: this.stack,
|
|
257
|
-
// Axios
|
|
258
|
-
config: c.toJSONObject(this.config),
|
|
259
|
-
code: this.code,
|
|
260
|
-
status: this.status
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
const ln = S.prototype, fn = {};
|
|
265
|
-
[
|
|
266
|
-
"ERR_BAD_OPTION_VALUE",
|
|
267
|
-
"ERR_BAD_OPTION",
|
|
268
|
-
"ECONNABORTED",
|
|
269
|
-
"ETIMEDOUT",
|
|
270
|
-
"ERR_NETWORK",
|
|
271
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
272
|
-
"ERR_DEPRECATED",
|
|
273
|
-
"ERR_BAD_RESPONSE",
|
|
274
|
-
"ERR_BAD_REQUEST",
|
|
275
|
-
"ERR_CANCELED",
|
|
276
|
-
"ERR_NOT_SUPPORT",
|
|
277
|
-
"ERR_INVALID_URL"
|
|
278
|
-
// eslint-disable-next-line func-names
|
|
279
|
-
].forEach((e) => {
|
|
280
|
-
fn[e] = { value: e };
|
|
281
|
-
});
|
|
282
|
-
Object.defineProperties(S, fn);
|
|
283
|
-
Object.defineProperty(ln, "isAxiosError", { value: !0 });
|
|
284
|
-
S.from = (e, t, n, r, s, i) => {
|
|
285
|
-
const o = Object.create(ln);
|
|
286
|
-
c.toFlatObject(e, o, function(l) {
|
|
287
|
-
return l !== Error.prototype;
|
|
288
|
-
}, (f) => f !== "isAxiosError");
|
|
289
|
-
const a = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
|
|
290
|
-
return S.call(o, a, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
|
|
291
|
-
};
|
|
292
|
-
const Dr = null;
|
|
293
|
-
function ot(e) {
|
|
294
|
-
return c.isPlainObject(e) || c.isArray(e);
|
|
295
|
-
}
|
|
296
|
-
function dn(e) {
|
|
297
|
-
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
298
|
-
}
|
|
299
|
-
function Dt(e, t, n) {
|
|
300
|
-
return e ? e.concat(t).map(function(s, i) {
|
|
301
|
-
return s = dn(s), !n && i ? "[" + s + "]" : s;
|
|
302
|
-
}).join(n ? "." : "") : t;
|
|
303
|
-
}
|
|
304
|
-
function Lr(e) {
|
|
305
|
-
return c.isArray(e) && !e.some(ot);
|
|
306
|
-
}
|
|
307
|
-
const Nr = c.toFlatObject(c, {}, null, function(t) {
|
|
308
|
-
return /^is[A-Z]/.test(t);
|
|
309
|
-
});
|
|
310
|
-
function Me(e, t, n) {
|
|
311
|
-
if (!c.isObject(e))
|
|
312
|
-
throw new TypeError("target must be an object");
|
|
313
|
-
t = t || new FormData(), n = c.toFlatObject(n, {
|
|
314
|
-
metaTokens: !0,
|
|
315
|
-
dots: !1,
|
|
316
|
-
indexes: !1
|
|
317
|
-
}, !1, function(m, h) {
|
|
318
|
-
return !c.isUndefined(h[m]);
|
|
319
|
-
});
|
|
320
|
-
const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
|
|
321
|
-
if (!c.isFunction(s))
|
|
322
|
-
throw new TypeError("visitor must be a function");
|
|
323
|
-
function f(u) {
|
|
324
|
-
if (u === null) return "";
|
|
325
|
-
if (c.isDate(u))
|
|
326
|
-
return u.toISOString();
|
|
327
|
-
if (c.isBoolean(u))
|
|
328
|
-
return u.toString();
|
|
329
|
-
if (!d && c.isBlob(u))
|
|
330
|
-
throw new S("Blob is not supported. Use a Buffer instead.");
|
|
331
|
-
return c.isArrayBuffer(u) || c.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
|
|
332
|
-
}
|
|
333
|
-
function l(u, m, h) {
|
|
334
|
-
let g = u;
|
|
335
|
-
if (u && !h && typeof u == "object") {
|
|
336
|
-
if (c.endsWith(m, "{}"))
|
|
337
|
-
m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
|
|
338
|
-
else if (c.isArray(u) && Lr(u) || (c.isFileList(u) || c.endsWith(m, "[]")) && (g = c.toArray(u)))
|
|
339
|
-
return m = dn(m), g.forEach(function(A, x) {
|
|
340
|
-
!(c.isUndefined(A) || A === null) && t.append(
|
|
341
|
-
// eslint-disable-next-line no-nested-ternary
|
|
342
|
-
o === !0 ? Dt([m], x, i) : o === null ? m : m + "[]",
|
|
343
|
-
f(A)
|
|
344
|
-
);
|
|
345
|
-
}), !1;
|
|
346
|
-
}
|
|
347
|
-
return ot(u) ? !0 : (t.append(Dt(h, m, i), f(u)), !1);
|
|
348
|
-
}
|
|
349
|
-
const p = [], E = Object.assign(Nr, {
|
|
350
|
-
defaultVisitor: l,
|
|
351
|
-
convertValue: f,
|
|
352
|
-
isVisitable: ot
|
|
353
|
-
});
|
|
354
|
-
function y(u, m) {
|
|
355
|
-
if (!c.isUndefined(u)) {
|
|
356
|
-
if (p.indexOf(u) !== -1)
|
|
357
|
-
throw Error("Circular reference detected in " + m.join("."));
|
|
358
|
-
p.push(u), c.forEach(u, function(g, w) {
|
|
359
|
-
(!(c.isUndefined(g) || g === null) && s.call(
|
|
360
|
-
t,
|
|
361
|
-
g,
|
|
362
|
-
c.isString(w) ? w.trim() : w,
|
|
363
|
-
m,
|
|
364
|
-
E
|
|
365
|
-
)) === !0 && y(g, m ? m.concat(w) : [w]);
|
|
366
|
-
}), p.pop();
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
if (!c.isObject(e))
|
|
370
|
-
throw new TypeError("data must be an object");
|
|
371
|
-
return y(e), t;
|
|
372
|
-
}
|
|
373
|
-
function Lt(e) {
|
|
374
|
-
const t = {
|
|
375
|
-
"!": "%21",
|
|
376
|
-
"'": "%27",
|
|
377
|
-
"(": "%28",
|
|
378
|
-
")": "%29",
|
|
379
|
-
"~": "%7E",
|
|
380
|
-
"%20": "+",
|
|
381
|
-
"%00": "\0"
|
|
382
|
-
};
|
|
383
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
384
|
-
return t[r];
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
function yt(e, t) {
|
|
388
|
-
this._pairs = [], e && Me(e, this, t);
|
|
389
|
-
}
|
|
390
|
-
const pn = yt.prototype;
|
|
391
|
-
pn.append = function(t, n) {
|
|
392
|
-
this._pairs.push([t, n]);
|
|
393
|
-
};
|
|
394
|
-
pn.toString = function(t) {
|
|
395
|
-
const n = t ? function(r) {
|
|
396
|
-
return t.call(this, r, Lt);
|
|
397
|
-
} : Lt;
|
|
398
|
-
return this._pairs.map(function(s) {
|
|
399
|
-
return n(s[0]) + "=" + n(s[1]);
|
|
400
|
-
}, "").join("&");
|
|
401
|
-
};
|
|
402
|
-
function Fr(e) {
|
|
403
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
404
|
-
}
|
|
405
|
-
function hn(e, t, n) {
|
|
406
|
-
if (!t)
|
|
407
|
-
return e;
|
|
408
|
-
const r = n && n.encode || Fr;
|
|
409
|
-
c.isFunction(n) && (n = {
|
|
410
|
-
serialize: n
|
|
411
|
-
});
|
|
412
|
-
const s = n && n.serialize;
|
|
413
|
-
let i;
|
|
414
|
-
if (s ? i = s(t, n) : i = c.isURLSearchParams(t) ? t.toString() : new yt(t, n).toString(r), i) {
|
|
415
|
-
const o = e.indexOf("#");
|
|
416
|
-
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
417
|
-
}
|
|
418
|
-
return e;
|
|
419
|
-
}
|
|
420
|
-
class Nt {
|
|
421
|
-
constructor() {
|
|
422
|
-
this.handlers = [];
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* Add a new interceptor to the stack
|
|
426
|
-
*
|
|
427
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
428
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
429
|
-
*
|
|
430
|
-
* @return {Number} An ID used to remove interceptor later
|
|
431
|
-
*/
|
|
432
|
-
use(t, n, r) {
|
|
433
|
-
return this.handlers.push({
|
|
434
|
-
fulfilled: t,
|
|
435
|
-
rejected: n,
|
|
436
|
-
synchronous: r ? r.synchronous : !1,
|
|
437
|
-
runWhen: r ? r.runWhen : null
|
|
438
|
-
}), this.handlers.length - 1;
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* Remove an interceptor from the stack
|
|
442
|
-
*
|
|
443
|
-
* @param {Number} id The ID that was returned by `use`
|
|
444
|
-
*
|
|
445
|
-
* @returns {void}
|
|
446
|
-
*/
|
|
447
|
-
eject(t) {
|
|
448
|
-
this.handlers[t] && (this.handlers[t] = null);
|
|
449
|
-
}
|
|
450
|
-
/**
|
|
451
|
-
* Clear all interceptors from the stack
|
|
452
|
-
*
|
|
453
|
-
* @returns {void}
|
|
454
|
-
*/
|
|
455
|
-
clear() {
|
|
456
|
-
this.handlers && (this.handlers = []);
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* Iterate over all the registered interceptors
|
|
460
|
-
*
|
|
461
|
-
* This method is particularly useful for skipping over any
|
|
462
|
-
* interceptors that may have become `null` calling `eject`.
|
|
463
|
-
*
|
|
464
|
-
* @param {Function} fn The function to call for each interceptor
|
|
465
|
-
*
|
|
466
|
-
* @returns {void}
|
|
467
|
-
*/
|
|
468
|
-
forEach(t) {
|
|
469
|
-
c.forEach(this.handlers, function(r) {
|
|
470
|
-
r !== null && t(r);
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
const mn = {
|
|
475
|
-
silentJSONParsing: !0,
|
|
476
|
-
forcedJSONParsing: !0,
|
|
477
|
-
clarifyTimeoutError: !1
|
|
478
|
-
}, Pr = typeof URLSearchParams < "u" ? URLSearchParams : yt, vr = typeof FormData < "u" ? FormData : null, Ur = typeof Blob < "u" ? Blob : null, Ir = {
|
|
479
|
-
isBrowser: !0,
|
|
480
|
-
classes: {
|
|
481
|
-
URLSearchParams: Pr,
|
|
482
|
-
FormData: vr,
|
|
483
|
-
Blob: Ur
|
|
484
|
-
},
|
|
485
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
486
|
-
}, wt = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, Br = wt && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0), jr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
487
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", kr = wt && window.location.href || "http://localhost", qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
488
|
-
__proto__: null,
|
|
489
|
-
hasBrowserEnv: wt,
|
|
490
|
-
hasStandardBrowserEnv: Br,
|
|
491
|
-
hasStandardBrowserWebWorkerEnv: jr,
|
|
492
|
-
navigator: it,
|
|
493
|
-
origin: kr
|
|
494
|
-
}, Symbol.toStringTag, { value: "Module" })), I = {
|
|
495
|
-
...qr,
|
|
496
|
-
...Ir
|
|
497
|
-
};
|
|
498
|
-
function Hr(e, t) {
|
|
499
|
-
return Me(e, new I.classes.URLSearchParams(), {
|
|
500
|
-
visitor: function(n, r, s, i) {
|
|
501
|
-
return I.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
502
|
-
},
|
|
503
|
-
...t
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
function Mr(e) {
|
|
507
|
-
return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
508
|
-
}
|
|
509
|
-
function Vr(e) {
|
|
510
|
-
const t = {}, n = Object.keys(e);
|
|
511
|
-
let r;
|
|
512
|
-
const s = n.length;
|
|
513
|
-
let i;
|
|
514
|
-
for (r = 0; r < s; r++)
|
|
515
|
-
i = n[r], t[i] = e[i];
|
|
516
|
-
return t;
|
|
517
|
-
}
|
|
518
|
-
function En(e) {
|
|
519
|
-
function t(n, r, s, i) {
|
|
520
|
-
let o = n[i++];
|
|
521
|
-
if (o === "__proto__") return !0;
|
|
522
|
-
const a = Number.isFinite(+o), d = i >= n.length;
|
|
523
|
-
return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && c.isArray(s[o]) && (s[o] = Vr(s[o])), !a);
|
|
524
|
-
}
|
|
525
|
-
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
526
|
-
const n = {};
|
|
527
|
-
return c.forEachEntry(e, (r, s) => {
|
|
528
|
-
t(Mr(r), s, n, 0);
|
|
529
|
-
}), n;
|
|
530
|
-
}
|
|
531
|
-
return null;
|
|
532
|
-
}
|
|
533
|
-
function $r(e, t, n) {
|
|
534
|
-
if (c.isString(e))
|
|
535
|
-
try {
|
|
536
|
-
return (t || JSON.parse)(e), c.trim(e);
|
|
537
|
-
} catch (r) {
|
|
538
|
-
if (r.name !== "SyntaxError")
|
|
539
|
-
throw r;
|
|
540
|
-
}
|
|
541
|
-
return (n || JSON.stringify)(e);
|
|
542
|
-
}
|
|
543
|
-
const Ce = {
|
|
544
|
-
transitional: mn,
|
|
545
|
-
adapter: ["xhr", "http", "fetch"],
|
|
546
|
-
transformRequest: [function(t, n) {
|
|
547
|
-
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = c.isObject(t);
|
|
548
|
-
if (i && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
|
|
549
|
-
return s ? JSON.stringify(En(t)) : t;
|
|
550
|
-
if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
|
|
551
|
-
return t;
|
|
552
|
-
if (c.isArrayBufferView(t))
|
|
553
|
-
return t.buffer;
|
|
554
|
-
if (c.isURLSearchParams(t))
|
|
555
|
-
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
556
|
-
let a;
|
|
557
|
-
if (i) {
|
|
558
|
-
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
559
|
-
return Hr(t, this.formSerializer).toString();
|
|
560
|
-
if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
561
|
-
const d = this.env && this.env.FormData;
|
|
562
|
-
return Me(
|
|
563
|
-
a ? { "files[]": t } : t,
|
|
564
|
-
d && new d(),
|
|
565
|
-
this.formSerializer
|
|
566
|
-
);
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
return i || s ? (n.setContentType("application/json", !1), $r(t)) : t;
|
|
570
|
-
}],
|
|
571
|
-
transformResponse: [function(t) {
|
|
572
|
-
const n = this.transitional || Ce.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
573
|
-
if (c.isResponse(t) || c.isReadableStream(t))
|
|
574
|
-
return t;
|
|
575
|
-
if (t && c.isString(t) && (r && !this.responseType || s)) {
|
|
576
|
-
const o = !(n && n.silentJSONParsing) && s;
|
|
577
|
-
try {
|
|
578
|
-
return JSON.parse(t, this.parseReviver);
|
|
579
|
-
} catch (a) {
|
|
580
|
-
if (o)
|
|
581
|
-
throw a.name === "SyntaxError" ? S.from(a, S.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
return t;
|
|
585
|
-
}],
|
|
586
|
-
/**
|
|
587
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
588
|
-
* timeout is not created.
|
|
589
|
-
*/
|
|
590
|
-
timeout: 0,
|
|
591
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
592
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
593
|
-
maxContentLength: -1,
|
|
594
|
-
maxBodyLength: -1,
|
|
595
|
-
env: {
|
|
596
|
-
FormData: I.classes.FormData,
|
|
597
|
-
Blob: I.classes.Blob
|
|
598
|
-
},
|
|
599
|
-
validateStatus: function(t) {
|
|
600
|
-
return t >= 200 && t < 300;
|
|
601
|
-
},
|
|
602
|
-
headers: {
|
|
603
|
-
common: {
|
|
604
|
-
Accept: "application/json, text/plain, */*",
|
|
605
|
-
"Content-Type": void 0
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
|
-
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
610
|
-
Ce.headers[e] = {};
|
|
611
|
-
});
|
|
612
|
-
const Wr = c.toObjectSet([
|
|
613
|
-
"age",
|
|
614
|
-
"authorization",
|
|
615
|
-
"content-length",
|
|
616
|
-
"content-type",
|
|
617
|
-
"etag",
|
|
618
|
-
"expires",
|
|
619
|
-
"from",
|
|
620
|
-
"host",
|
|
621
|
-
"if-modified-since",
|
|
622
|
-
"if-unmodified-since",
|
|
623
|
-
"last-modified",
|
|
624
|
-
"location",
|
|
625
|
-
"max-forwards",
|
|
626
|
-
"proxy-authorization",
|
|
627
|
-
"referer",
|
|
628
|
-
"retry-after",
|
|
629
|
-
"user-agent"
|
|
630
|
-
]), zr = (e) => {
|
|
631
|
-
const t = {};
|
|
632
|
-
let n, r, s;
|
|
633
|
-
return e && e.split(`
|
|
634
|
-
`).forEach(function(o) {
|
|
635
|
-
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Wr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
636
|
-
}), t;
|
|
637
|
-
}, Ft = /* @__PURE__ */ Symbol("internals");
|
|
638
|
-
function Re(e) {
|
|
639
|
-
return e && String(e).trim().toLowerCase();
|
|
640
|
-
}
|
|
641
|
-
function Ie(e) {
|
|
642
|
-
return e === !1 || e == null ? e : c.isArray(e) ? e.map(Ie) : String(e);
|
|
643
|
-
}
|
|
644
|
-
function Jr(e) {
|
|
645
|
-
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
646
|
-
let r;
|
|
647
|
-
for (; r = n.exec(e); )
|
|
648
|
-
t[r[1]] = r[2];
|
|
649
|
-
return t;
|
|
650
|
-
}
|
|
651
|
-
const Kr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
652
|
-
function Je(e, t, n, r, s) {
|
|
653
|
-
if (c.isFunction(r))
|
|
654
|
-
return r.call(this, t, n);
|
|
655
|
-
if (s && (t = n), !!c.isString(t)) {
|
|
656
|
-
if (c.isString(r))
|
|
657
|
-
return t.indexOf(r) !== -1;
|
|
658
|
-
if (c.isRegExp(r))
|
|
659
|
-
return r.test(t);
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
function Gr(e) {
|
|
663
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
664
|
-
}
|
|
665
|
-
function Xr(e, t) {
|
|
666
|
-
const n = c.toCamelCase(" " + t);
|
|
667
|
-
["get", "set", "has"].forEach((r) => {
|
|
668
|
-
Object.defineProperty(e, r + n, {
|
|
669
|
-
value: function(s, i, o) {
|
|
670
|
-
return this[r].call(this, t, s, i, o);
|
|
671
|
-
},
|
|
672
|
-
configurable: !0
|
|
673
|
-
});
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
let q = class {
|
|
677
|
-
constructor(t) {
|
|
678
|
-
t && this.set(t);
|
|
679
|
-
}
|
|
680
|
-
set(t, n, r) {
|
|
681
|
-
const s = this;
|
|
682
|
-
function i(a, d, f) {
|
|
683
|
-
const l = Re(d);
|
|
684
|
-
if (!l)
|
|
685
|
-
throw new Error("header name must be a non-empty string");
|
|
686
|
-
const p = c.findKey(s, l);
|
|
687
|
-
(!p || s[p] === void 0 || f === !0 || f === void 0 && s[p] !== !1) && (s[p || d] = Ie(a));
|
|
688
|
-
}
|
|
689
|
-
const o = (a, d) => c.forEach(a, (f, l) => i(f, l, d));
|
|
690
|
-
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
691
|
-
o(t, n);
|
|
692
|
-
else if (c.isString(t) && (t = t.trim()) && !Kr(t))
|
|
693
|
-
o(zr(t), n);
|
|
694
|
-
else if (c.isObject(t) && c.isIterable(t)) {
|
|
695
|
-
let a = {}, d, f;
|
|
696
|
-
for (const l of t) {
|
|
697
|
-
if (!c.isArray(l))
|
|
698
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
699
|
-
a[f = l[0]] = (d = a[f]) ? c.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
|
|
700
|
-
}
|
|
701
|
-
o(a, n);
|
|
702
|
-
} else
|
|
703
|
-
t != null && i(n, t, r);
|
|
704
|
-
return this;
|
|
705
|
-
}
|
|
706
|
-
get(t, n) {
|
|
707
|
-
if (t = Re(t), t) {
|
|
708
|
-
const r = c.findKey(this, t);
|
|
709
|
-
if (r) {
|
|
710
|
-
const s = this[r];
|
|
711
|
-
if (!n)
|
|
712
|
-
return s;
|
|
713
|
-
if (n === !0)
|
|
714
|
-
return Jr(s);
|
|
715
|
-
if (c.isFunction(n))
|
|
716
|
-
return n.call(this, s, r);
|
|
717
|
-
if (c.isRegExp(n))
|
|
718
|
-
return n.exec(s);
|
|
719
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
has(t, n) {
|
|
724
|
-
if (t = Re(t), t) {
|
|
725
|
-
const r = c.findKey(this, t);
|
|
726
|
-
return !!(r && this[r] !== void 0 && (!n || Je(this, this[r], r, n)));
|
|
727
|
-
}
|
|
728
|
-
return !1;
|
|
729
|
-
}
|
|
730
|
-
delete(t, n) {
|
|
731
|
-
const r = this;
|
|
732
|
-
let s = !1;
|
|
733
|
-
function i(o) {
|
|
734
|
-
if (o = Re(o), o) {
|
|
735
|
-
const a = c.findKey(r, o);
|
|
736
|
-
a && (!n || Je(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
return c.isArray(t) ? t.forEach(i) : i(t), s;
|
|
740
|
-
}
|
|
741
|
-
clear(t) {
|
|
742
|
-
const n = Object.keys(this);
|
|
743
|
-
let r = n.length, s = !1;
|
|
744
|
-
for (; r--; ) {
|
|
745
|
-
const i = n[r];
|
|
746
|
-
(!t || Je(this, this[i], i, t, !0)) && (delete this[i], s = !0);
|
|
747
|
-
}
|
|
748
|
-
return s;
|
|
749
|
-
}
|
|
750
|
-
normalize(t) {
|
|
751
|
-
const n = this, r = {};
|
|
752
|
-
return c.forEach(this, (s, i) => {
|
|
753
|
-
const o = c.findKey(r, i);
|
|
754
|
-
if (o) {
|
|
755
|
-
n[o] = Ie(s), delete n[i];
|
|
756
|
-
return;
|
|
757
|
-
}
|
|
758
|
-
const a = t ? Gr(i) : String(i).trim();
|
|
759
|
-
a !== i && delete n[i], n[a] = Ie(s), r[a] = !0;
|
|
760
|
-
}), this;
|
|
761
|
-
}
|
|
762
|
-
concat(...t) {
|
|
763
|
-
return this.constructor.concat(this, ...t);
|
|
764
|
-
}
|
|
765
|
-
toJSON(t) {
|
|
766
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
767
|
-
return c.forEach(this, (r, s) => {
|
|
768
|
-
r != null && r !== !1 && (n[s] = t && c.isArray(r) ? r.join(", ") : r);
|
|
769
|
-
}), n;
|
|
770
|
-
}
|
|
771
|
-
[Symbol.iterator]() {
|
|
772
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
773
|
-
}
|
|
774
|
-
toString() {
|
|
775
|
-
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
776
|
-
`);
|
|
777
|
-
}
|
|
778
|
-
getSetCookie() {
|
|
779
|
-
return this.get("set-cookie") || [];
|
|
780
|
-
}
|
|
781
|
-
get [Symbol.toStringTag]() {
|
|
782
|
-
return "AxiosHeaders";
|
|
783
|
-
}
|
|
784
|
-
static from(t) {
|
|
785
|
-
return t instanceof this ? t : new this(t);
|
|
786
|
-
}
|
|
787
|
-
static concat(t, ...n) {
|
|
788
|
-
const r = new this(t);
|
|
789
|
-
return n.forEach((s) => r.set(s)), r;
|
|
790
|
-
}
|
|
791
|
-
static accessor(t) {
|
|
792
|
-
const r = (this[Ft] = this[Ft] = {
|
|
793
|
-
accessors: {}
|
|
794
|
-
}).accessors, s = this.prototype;
|
|
795
|
-
function i(o) {
|
|
796
|
-
const a = Re(o);
|
|
797
|
-
r[a] || (Xr(s, o), r[a] = !0);
|
|
798
|
-
}
|
|
799
|
-
return c.isArray(t) ? t.forEach(i) : i(t), this;
|
|
800
|
-
}
|
|
801
|
-
};
|
|
802
|
-
q.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
803
|
-
c.reduceDescriptors(q.prototype, ({ value: e }, t) => {
|
|
804
|
-
let n = t[0].toUpperCase() + t.slice(1);
|
|
805
|
-
return {
|
|
806
|
-
get: () => e,
|
|
807
|
-
set(r) {
|
|
808
|
-
this[n] = r;
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
|
-
});
|
|
812
|
-
c.freezeMethods(q);
|
|
813
|
-
function Ke(e, t) {
|
|
814
|
-
const n = this || Ce, r = t || n, s = q.from(r.headers);
|
|
815
|
-
let i = r.data;
|
|
816
|
-
return c.forEach(e, function(a) {
|
|
817
|
-
i = a.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
818
|
-
}), s.normalize(), i;
|
|
819
|
-
}
|
|
820
|
-
function yn(e) {
|
|
821
|
-
return !!(e && e.__CANCEL__);
|
|
822
|
-
}
|
|
823
|
-
function Se(e, t, n) {
|
|
824
|
-
S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
825
|
-
}
|
|
826
|
-
c.inherits(Se, S, {
|
|
827
|
-
__CANCEL__: !0
|
|
828
|
-
});
|
|
829
|
-
function wn(e, t, n) {
|
|
830
|
-
const r = n.config.validateStatus;
|
|
831
|
-
!n.status || !r || r(n.status) ? e(n) : t(new S(
|
|
832
|
-
"Request failed with status code " + n.status,
|
|
833
|
-
[S.ERR_BAD_REQUEST, S.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
834
|
-
n.config,
|
|
835
|
-
n.request,
|
|
836
|
-
n
|
|
837
|
-
));
|
|
838
|
-
}
|
|
839
|
-
function Yr(e) {
|
|
840
|
-
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
841
|
-
return t && t[1] || "";
|
|
842
|
-
}
|
|
843
|
-
function Qr(e, t) {
|
|
844
|
-
e = e || 10;
|
|
845
|
-
const n = new Array(e), r = new Array(e);
|
|
846
|
-
let s = 0, i = 0, o;
|
|
847
|
-
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
848
|
-
const f = Date.now(), l = r[i];
|
|
849
|
-
o || (o = f), n[s] = d, r[s] = f;
|
|
850
|
-
let p = i, E = 0;
|
|
851
|
-
for (; p !== s; )
|
|
852
|
-
E += n[p++], p = p % e;
|
|
853
|
-
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
|
|
854
|
-
return;
|
|
855
|
-
const y = l && f - l;
|
|
856
|
-
return y ? Math.round(E * 1e3 / y) : void 0;
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
function Zr(e, t) {
|
|
860
|
-
let n = 0, r = 1e3 / t, s, i;
|
|
861
|
-
const o = (f, l = Date.now()) => {
|
|
862
|
-
n = l, s = null, i && (clearTimeout(i), i = null), e(...f);
|
|
863
|
-
};
|
|
864
|
-
return [(...f) => {
|
|
865
|
-
const l = Date.now(), p = l - n;
|
|
866
|
-
p >= r ? o(f, l) : (s = f, i || (i = setTimeout(() => {
|
|
867
|
-
i = null, o(s);
|
|
868
|
-
}, r - p)));
|
|
869
|
-
}, () => s && o(s)];
|
|
870
|
-
}
|
|
871
|
-
const je = (e, t, n = 3) => {
|
|
872
|
-
let r = 0;
|
|
873
|
-
const s = Qr(50, 250);
|
|
874
|
-
return Zr((i) => {
|
|
875
|
-
const o = i.loaded, a = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), l = o <= a;
|
|
876
|
-
r = o;
|
|
877
|
-
const p = {
|
|
878
|
-
loaded: o,
|
|
879
|
-
total: a,
|
|
880
|
-
progress: a ? o / a : void 0,
|
|
881
|
-
bytes: d,
|
|
882
|
-
rate: f || void 0,
|
|
883
|
-
estimated: f && a && l ? (a - o) / f : void 0,
|
|
884
|
-
event: i,
|
|
885
|
-
lengthComputable: a != null,
|
|
886
|
-
[t ? "download" : "upload"]: !0
|
|
887
|
-
};
|
|
888
|
-
e(p);
|
|
889
|
-
}, n);
|
|
890
|
-
}, Pt = (e, t) => {
|
|
891
|
-
const n = e != null;
|
|
892
|
-
return [(r) => t[0]({
|
|
893
|
-
lengthComputable: n,
|
|
894
|
-
total: e,
|
|
895
|
-
loaded: r
|
|
896
|
-
}), t[1]];
|
|
897
|
-
}, vt = (e) => (...t) => c.asap(() => e(...t)), es = I.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, I.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
898
|
-
new URL(I.origin),
|
|
899
|
-
I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
|
|
900
|
-
) : () => !0, ts = I.hasStandardBrowserEnv ? (
|
|
901
|
-
// Standard browser envs support document.cookie
|
|
902
|
-
{
|
|
903
|
-
write(e, t, n, r, s, i, o) {
|
|
904
|
-
if (typeof document > "u") return;
|
|
905
|
-
const a = [`${e}=${encodeURIComponent(t)}`];
|
|
906
|
-
c.isNumber(n) && a.push(`expires=${new Date(n).toUTCString()}`), c.isString(r) && a.push(`path=${r}`), c.isString(s) && a.push(`domain=${s}`), i === !0 && a.push("secure"), c.isString(o) && a.push(`SameSite=${o}`), document.cookie = a.join("; ");
|
|
907
|
-
},
|
|
908
|
-
read(e) {
|
|
909
|
-
if (typeof document > "u") return null;
|
|
910
|
-
const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
|
|
911
|
-
return t ? decodeURIComponent(t[1]) : null;
|
|
912
|
-
},
|
|
913
|
-
remove(e) {
|
|
914
|
-
this.write(e, "", Date.now() - 864e5, "/");
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
) : (
|
|
918
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
919
|
-
{
|
|
920
|
-
write() {
|
|
921
|
-
},
|
|
922
|
-
read() {
|
|
923
|
-
return null;
|
|
924
|
-
},
|
|
925
|
-
remove() {
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
);
|
|
929
|
-
function ns(e) {
|
|
930
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
931
|
-
}
|
|
932
|
-
function rs(e, t) {
|
|
933
|
-
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
934
|
-
}
|
|
935
|
-
function Sn(e, t, n) {
|
|
936
|
-
let r = !ns(t);
|
|
937
|
-
return e && (r || n == !1) ? rs(e, t) : t;
|
|
938
|
-
}
|
|
939
|
-
const Ut = (e) => e instanceof q ? { ...e } : e;
|
|
940
|
-
function pe(e, t) {
|
|
941
|
-
t = t || {};
|
|
942
|
-
const n = {};
|
|
943
|
-
function r(f, l, p, E) {
|
|
944
|
-
return c.isPlainObject(f) && c.isPlainObject(l) ? c.merge.call({ caseless: E }, f, l) : c.isPlainObject(l) ? c.merge({}, l) : c.isArray(l) ? l.slice() : l;
|
|
945
|
-
}
|
|
946
|
-
function s(f, l, p, E) {
|
|
947
|
-
if (c.isUndefined(l)) {
|
|
948
|
-
if (!c.isUndefined(f))
|
|
949
|
-
return r(void 0, f, p, E);
|
|
950
|
-
} else return r(f, l, p, E);
|
|
951
|
-
}
|
|
952
|
-
function i(f, l) {
|
|
953
|
-
if (!c.isUndefined(l))
|
|
954
|
-
return r(void 0, l);
|
|
955
|
-
}
|
|
956
|
-
function o(f, l) {
|
|
957
|
-
if (c.isUndefined(l)) {
|
|
958
|
-
if (!c.isUndefined(f))
|
|
959
|
-
return r(void 0, f);
|
|
960
|
-
} else return r(void 0, l);
|
|
961
|
-
}
|
|
962
|
-
function a(f, l, p) {
|
|
963
|
-
if (p in t)
|
|
964
|
-
return r(f, l);
|
|
965
|
-
if (p in e)
|
|
966
|
-
return r(void 0, f);
|
|
967
|
-
}
|
|
968
|
-
const d = {
|
|
969
|
-
url: i,
|
|
970
|
-
method: i,
|
|
971
|
-
data: i,
|
|
972
|
-
baseURL: o,
|
|
973
|
-
transformRequest: o,
|
|
974
|
-
transformResponse: o,
|
|
975
|
-
paramsSerializer: o,
|
|
976
|
-
timeout: o,
|
|
977
|
-
timeoutMessage: o,
|
|
978
|
-
withCredentials: o,
|
|
979
|
-
withXSRFToken: o,
|
|
980
|
-
adapter: o,
|
|
981
|
-
responseType: o,
|
|
982
|
-
xsrfCookieName: o,
|
|
983
|
-
xsrfHeaderName: o,
|
|
984
|
-
onUploadProgress: o,
|
|
985
|
-
onDownloadProgress: o,
|
|
986
|
-
decompress: o,
|
|
987
|
-
maxContentLength: o,
|
|
988
|
-
maxBodyLength: o,
|
|
989
|
-
beforeRedirect: o,
|
|
990
|
-
transport: o,
|
|
991
|
-
httpAgent: o,
|
|
992
|
-
httpsAgent: o,
|
|
993
|
-
cancelToken: o,
|
|
994
|
-
socketPath: o,
|
|
995
|
-
responseEncoding: o,
|
|
996
|
-
validateStatus: a,
|
|
997
|
-
headers: (f, l, p) => s(Ut(f), Ut(l), p, !0)
|
|
998
|
-
};
|
|
999
|
-
return c.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
1000
|
-
const p = d[l] || s, E = p(e[l], t[l], l);
|
|
1001
|
-
c.isUndefined(E) && p !== a || (n[l] = E);
|
|
1002
|
-
}), n;
|
|
1003
|
-
}
|
|
1004
|
-
const gn = (e) => {
|
|
1005
|
-
const t = pe({}, e);
|
|
1006
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = t;
|
|
1007
|
-
if (t.headers = o = q.from(o), t.url = hn(Sn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
|
|
1008
|
-
"Authorization",
|
|
1009
|
-
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1010
|
-
), c.isFormData(n)) {
|
|
1011
|
-
if (I.hasStandardBrowserEnv || I.hasStandardBrowserWebWorkerEnv)
|
|
1012
|
-
o.setContentType(void 0);
|
|
1013
|
-
else if (c.isFunction(n.getHeaders)) {
|
|
1014
|
-
const d = n.getHeaders(), f = ["content-type", "content-length"];
|
|
1015
|
-
Object.entries(d).forEach(([l, p]) => {
|
|
1016
|
-
f.includes(l.toLowerCase()) && o.set(l, p);
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
if (I.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && es(t.url))) {
|
|
1021
|
-
const d = s && i && ts.read(i);
|
|
1022
|
-
d && o.set(s, d);
|
|
1023
|
-
}
|
|
1024
|
-
return t;
|
|
1025
|
-
}, ss = typeof XMLHttpRequest < "u", os = ss && function(e) {
|
|
1026
|
-
return new Promise(function(n, r) {
|
|
1027
|
-
const s = gn(e);
|
|
1028
|
-
let i = s.data;
|
|
1029
|
-
const o = q.from(s.headers).normalize();
|
|
1030
|
-
let { responseType: a, onUploadProgress: d, onDownloadProgress: f } = s, l, p, E, y, u;
|
|
1031
|
-
function m() {
|
|
1032
|
-
y && y(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1033
|
-
}
|
|
1034
|
-
let h = new XMLHttpRequest();
|
|
1035
|
-
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1036
|
-
function g() {
|
|
1037
|
-
if (!h)
|
|
1038
|
-
return;
|
|
1039
|
-
const A = q.from(
|
|
1040
|
-
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1041
|
-
), R = {
|
|
1042
|
-
data: !a || a === "text" || a === "json" ? h.responseText : h.response,
|
|
1043
|
-
status: h.status,
|
|
1044
|
-
statusText: h.statusText,
|
|
1045
|
-
headers: A,
|
|
1046
|
-
config: e,
|
|
1047
|
-
request: h
|
|
1048
|
-
};
|
|
1049
|
-
wn(function(_) {
|
|
1050
|
-
n(_), m();
|
|
1051
|
-
}, function(_) {
|
|
1052
|
-
r(_), m();
|
|
1053
|
-
}, R), h = null;
|
|
1054
|
-
}
|
|
1055
|
-
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
1056
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1057
|
-
}, h.onabort = function() {
|
|
1058
|
-
h && (r(new S("Request aborted", S.ECONNABORTED, e, h)), h = null);
|
|
1059
|
-
}, h.onerror = function(x) {
|
|
1060
|
-
const R = x && x.message ? x.message : "Network Error", P = new S(R, S.ERR_NETWORK, e, h);
|
|
1061
|
-
P.event = x || null, r(P), h = null;
|
|
1062
|
-
}, h.ontimeout = function() {
|
|
1063
|
-
let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1064
|
-
const R = s.transitional || mn;
|
|
1065
|
-
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), r(new S(
|
|
1066
|
-
x,
|
|
1067
|
-
R.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
|
|
1068
|
-
e,
|
|
1069
|
-
h
|
|
1070
|
-
)), h = null;
|
|
1071
|
-
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && c.forEach(o.toJSON(), function(x, R) {
|
|
1072
|
-
h.setRequestHeader(R, x);
|
|
1073
|
-
}), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), f && ([E, u] = je(f, !0), h.addEventListener("progress", E)), d && h.upload && ([p, y] = je(d), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (A) => {
|
|
1074
|
-
h && (r(!A || A.type ? new Se(null, e, h) : A), h.abort(), h = null);
|
|
1075
|
-
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1076
|
-
const w = Yr(s.url);
|
|
1077
|
-
if (w && I.protocols.indexOf(w) === -1) {
|
|
1078
|
-
r(new S("Unsupported protocol " + w + ":", S.ERR_BAD_REQUEST, e));
|
|
1079
|
-
return;
|
|
1080
|
-
}
|
|
1081
|
-
h.send(i || null);
|
|
1082
|
-
});
|
|
1083
|
-
}, is = (e, t) => {
|
|
1084
|
-
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1085
|
-
if (t || n) {
|
|
1086
|
-
let r = new AbortController(), s;
|
|
1087
|
-
const i = function(f) {
|
|
1088
|
-
if (!s) {
|
|
1089
|
-
s = !0, a();
|
|
1090
|
-
const l = f instanceof Error ? f : this.reason;
|
|
1091
|
-
r.abort(l instanceof S ? l : new Se(l instanceof Error ? l.message : l));
|
|
1092
|
-
}
|
|
1093
|
-
};
|
|
1094
|
-
let o = t && setTimeout(() => {
|
|
1095
|
-
o = null, i(new S(`timeout ${t} of ms exceeded`, S.ETIMEDOUT));
|
|
1096
|
-
}, t);
|
|
1097
|
-
const a = () => {
|
|
1098
|
-
e && (o && clearTimeout(o), o = null, e.forEach((f) => {
|
|
1099
|
-
f.unsubscribe ? f.unsubscribe(i) : f.removeEventListener("abort", i);
|
|
1100
|
-
}), e = null);
|
|
1101
|
-
};
|
|
1102
|
-
e.forEach((f) => f.addEventListener("abort", i));
|
|
1103
|
-
const { signal: d } = r;
|
|
1104
|
-
return d.unsubscribe = () => c.asap(a), d;
|
|
1105
|
-
}
|
|
1106
|
-
}, as = function* (e, t) {
|
|
1107
|
-
let n = e.byteLength;
|
|
1108
|
-
if (n < t) {
|
|
1109
|
-
yield e;
|
|
1110
|
-
return;
|
|
1111
|
-
}
|
|
1112
|
-
let r = 0, s;
|
|
1113
|
-
for (; r < n; )
|
|
1114
|
-
s = r + t, yield e.slice(r, s), r = s;
|
|
1115
|
-
}, cs = async function* (e, t) {
|
|
1116
|
-
for await (const n of us(e))
|
|
1117
|
-
yield* as(n, t);
|
|
1118
|
-
}, us = async function* (e) {
|
|
1119
|
-
if (e[Symbol.asyncIterator]) {
|
|
1120
|
-
yield* e;
|
|
1121
|
-
return;
|
|
1122
|
-
}
|
|
1123
|
-
const t = e.getReader();
|
|
1124
|
-
try {
|
|
1125
|
-
for (; ; ) {
|
|
1126
|
-
const { done: n, value: r } = await t.read();
|
|
1127
|
-
if (n)
|
|
1128
|
-
break;
|
|
1129
|
-
yield r;
|
|
1130
|
-
}
|
|
1131
|
-
} finally {
|
|
1132
|
-
await t.cancel();
|
|
1133
|
-
}
|
|
1134
|
-
}, It = (e, t, n, r) => {
|
|
1135
|
-
const s = cs(e, t);
|
|
1136
|
-
let i = 0, o, a = (d) => {
|
|
1137
|
-
o || (o = !0, r && r(d));
|
|
1138
|
-
};
|
|
1139
|
-
return new ReadableStream({
|
|
1140
|
-
async pull(d) {
|
|
1141
|
-
try {
|
|
1142
|
-
const { done: f, value: l } = await s.next();
|
|
1143
|
-
if (f) {
|
|
1144
|
-
a(), d.close();
|
|
1145
|
-
return;
|
|
1146
|
-
}
|
|
1147
|
-
let p = l.byteLength;
|
|
1148
|
-
if (n) {
|
|
1149
|
-
let E = i += p;
|
|
1150
|
-
n(E);
|
|
1151
|
-
}
|
|
1152
|
-
d.enqueue(new Uint8Array(l));
|
|
1153
|
-
} catch (f) {
|
|
1154
|
-
throw a(f), f;
|
|
1155
|
-
}
|
|
1156
|
-
},
|
|
1157
|
-
cancel(d) {
|
|
1158
|
-
return a(d), s.return();
|
|
1159
|
-
}
|
|
1160
|
-
}, {
|
|
1161
|
-
highWaterMark: 2
|
|
1162
|
-
});
|
|
1163
|
-
}, Bt = 64 * 1024, { isFunction: Ne } = c, ls = (({ Request: e, Response: t }) => ({
|
|
1164
|
-
Request: e,
|
|
1165
|
-
Response: t
|
|
1166
|
-
}))(c.global), {
|
|
1167
|
-
ReadableStream: jt,
|
|
1168
|
-
TextEncoder: kt
|
|
1169
|
-
} = c.global, qt = (e, ...t) => {
|
|
1170
|
-
try {
|
|
1171
|
-
return !!e(...t);
|
|
1172
|
-
} catch {
|
|
1173
|
-
return !1;
|
|
1174
|
-
}
|
|
1175
|
-
}, fs = (e) => {
|
|
1176
|
-
e = c.merge.call({
|
|
1177
|
-
skipUndefined: !0
|
|
1178
|
-
}, ls, e);
|
|
1179
|
-
const { fetch: t, Request: n, Response: r } = e, s = t ? Ne(t) : typeof fetch == "function", i = Ne(n), o = Ne(r);
|
|
1180
|
-
if (!s)
|
|
1181
|
-
return !1;
|
|
1182
|
-
const a = s && Ne(jt), d = s && (typeof kt == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new kt()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && a && qt(() => {
|
|
1183
|
-
let u = !1;
|
|
1184
|
-
const m = new n(I.origin, {
|
|
1185
|
-
body: new jt(),
|
|
1186
|
-
method: "POST",
|
|
1187
|
-
get duplex() {
|
|
1188
|
-
return u = !0, "half";
|
|
1189
|
-
}
|
|
1190
|
-
}).headers.has("Content-Type");
|
|
1191
|
-
return u && !m;
|
|
1192
|
-
}), l = o && a && qt(() => c.isReadableStream(new r("").body)), p = {
|
|
1193
|
-
stream: l && ((u) => u.body)
|
|
1194
|
-
};
|
|
1195
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
1196
|
-
!p[u] && (p[u] = (m, h) => {
|
|
1197
|
-
let g = m && m[u];
|
|
1198
|
-
if (g)
|
|
1199
|
-
return g.call(m);
|
|
1200
|
-
throw new S(`Response type '${u}' is not supported`, S.ERR_NOT_SUPPORT, h);
|
|
1201
|
-
});
|
|
1202
|
-
});
|
|
1203
|
-
const E = async (u) => {
|
|
1204
|
-
if (u == null)
|
|
1205
|
-
return 0;
|
|
1206
|
-
if (c.isBlob(u))
|
|
1207
|
-
return u.size;
|
|
1208
|
-
if (c.isSpecCompliantForm(u))
|
|
1209
|
-
return (await new n(I.origin, {
|
|
1210
|
-
method: "POST",
|
|
1211
|
-
body: u
|
|
1212
|
-
}).arrayBuffer()).byteLength;
|
|
1213
|
-
if (c.isArrayBufferView(u) || c.isArrayBuffer(u))
|
|
1214
|
-
return u.byteLength;
|
|
1215
|
-
if (c.isURLSearchParams(u) && (u = u + ""), c.isString(u))
|
|
1216
|
-
return (await d(u)).byteLength;
|
|
1217
|
-
}, y = async (u, m) => {
|
|
1218
|
-
const h = c.toFiniteNumber(u.getContentLength());
|
|
1219
|
-
return h ?? E(m);
|
|
1220
|
-
};
|
|
1221
|
-
return async (u) => {
|
|
1222
|
-
let {
|
|
1223
|
-
url: m,
|
|
1224
|
-
method: h,
|
|
1225
|
-
data: g,
|
|
1226
|
-
signal: w,
|
|
1227
|
-
cancelToken: A,
|
|
1228
|
-
timeout: x,
|
|
1229
|
-
onDownloadProgress: R,
|
|
1230
|
-
onUploadProgress: P,
|
|
1231
|
-
responseType: _,
|
|
1232
|
-
headers: X,
|
|
1233
|
-
withCredentials: O = "same-origin",
|
|
1234
|
-
fetchOptions: ee
|
|
1235
|
-
} = gn(u), H = t || fetch;
|
|
1236
|
-
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
1237
|
-
let W = is([w, A && A.toAbortSignal()], x), M = null;
|
|
1238
|
-
const F = W && W.unsubscribe && (() => {
|
|
1239
|
-
W.unsubscribe();
|
|
1240
|
-
});
|
|
1241
|
-
let te;
|
|
1242
|
-
try {
|
|
1243
|
-
if (P && f && h !== "get" && h !== "head" && (te = await y(X, g)) !== 0) {
|
|
1244
|
-
let Y = new n(m, {
|
|
1245
|
-
method: "POST",
|
|
1246
|
-
body: g,
|
|
1247
|
-
duplex: "half"
|
|
1248
|
-
}), V;
|
|
1249
|
-
if (c.isFormData(g) && (V = Y.headers.get("content-type")) && X.setContentType(V), Y.body) {
|
|
1250
|
-
const [J, re] = Pt(
|
|
1251
|
-
te,
|
|
1252
|
-
je(vt(P))
|
|
1253
|
-
);
|
|
1254
|
-
g = It(Y.body, Bt, J, re);
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
c.isString(O) || (O = O ? "include" : "omit");
|
|
1258
|
-
const B = i && "credentials" in n.prototype, ge = {
|
|
1259
|
-
...ee,
|
|
1260
|
-
signal: W,
|
|
1261
|
-
method: h.toUpperCase(),
|
|
1262
|
-
headers: X.normalize().toJSON(),
|
|
1263
|
-
body: g,
|
|
1264
|
-
duplex: "half",
|
|
1265
|
-
credentials: B ? O : void 0
|
|
1266
|
-
};
|
|
1267
|
-
M = i && new n(m, ge);
|
|
1268
|
-
let z = await (i ? H(M, ee) : H(m, ge));
|
|
1269
|
-
const ne = l && (_ === "stream" || _ === "response");
|
|
1270
|
-
if (l && (R || ne && F)) {
|
|
1271
|
-
const Y = {};
|
|
1272
|
-
["status", "statusText", "headers"].forEach((he) => {
|
|
1273
|
-
Y[he] = z[he];
|
|
1274
|
-
});
|
|
1275
|
-
const V = c.toFiniteNumber(z.headers.get("content-length")), [J, re] = R && Pt(
|
|
1276
|
-
V,
|
|
1277
|
-
je(vt(R), !0)
|
|
1278
|
-
) || [];
|
|
1279
|
-
z = new r(
|
|
1280
|
-
It(z.body, Bt, J, () => {
|
|
1281
|
-
re && re(), F && F();
|
|
1282
|
-
}),
|
|
1283
|
-
Y
|
|
1284
|
-
);
|
|
1285
|
-
}
|
|
1286
|
-
_ = _ || "text";
|
|
1287
|
-
let De = await p[c.findKey(p, _) || "text"](z, u);
|
|
1288
|
-
return !ne && F && F(), await new Promise((Y, V) => {
|
|
1289
|
-
wn(Y, V, {
|
|
1290
|
-
data: De,
|
|
1291
|
-
headers: q.from(z.headers),
|
|
1292
|
-
status: z.status,
|
|
1293
|
-
statusText: z.statusText,
|
|
1294
|
-
config: u,
|
|
1295
|
-
request: M
|
|
1296
|
-
});
|
|
1297
|
-
});
|
|
1298
|
-
} catch (B) {
|
|
1299
|
-
throw F && F(), B && B.name === "TypeError" && /Load failed|fetch/i.test(B.message) ? Object.assign(
|
|
1300
|
-
new S("Network Error", S.ERR_NETWORK, u, M),
|
|
1301
|
-
{
|
|
1302
|
-
cause: B.cause || B
|
|
1303
|
-
}
|
|
1304
|
-
) : S.from(B, B && B.code, u, M);
|
|
1305
|
-
}
|
|
1306
|
-
};
|
|
1307
|
-
}, ds = /* @__PURE__ */ new Map(), bn = (e) => {
|
|
1308
|
-
let t = e && e.env || {};
|
|
1309
|
-
const { fetch: n, Request: r, Response: s } = t, i = [
|
|
1310
|
-
r,
|
|
1311
|
-
s,
|
|
1312
|
-
n
|
|
1313
|
-
];
|
|
1314
|
-
let o = i.length, a = o, d, f, l = ds;
|
|
1315
|
-
for (; a--; )
|
|
1316
|
-
d = i[a], f = l.get(d), f === void 0 && l.set(d, f = a ? /* @__PURE__ */ new Map() : fs(t)), l = f;
|
|
1317
|
-
return f;
|
|
1318
|
-
};
|
|
1319
|
-
bn();
|
|
1320
|
-
const St = {
|
|
1321
|
-
http: Dr,
|
|
1322
|
-
xhr: os,
|
|
1323
|
-
fetch: {
|
|
1324
|
-
get: bn
|
|
1325
|
-
}
|
|
1326
|
-
};
|
|
1327
|
-
c.forEach(St, (e, t) => {
|
|
1328
|
-
if (e) {
|
|
1329
|
-
try {
|
|
1330
|
-
Object.defineProperty(e, "name", { value: t });
|
|
1331
|
-
} catch {
|
|
1332
|
-
}
|
|
1333
|
-
Object.defineProperty(e, "adapterName", { value: t });
|
|
1334
|
-
}
|
|
1335
|
-
});
|
|
1336
|
-
const Ht = (e) => `- ${e}`, ps = (e) => c.isFunction(e) || e === null || e === !1;
|
|
1337
|
-
function hs(e, t) {
|
|
1338
|
-
e = c.isArray(e) ? e : [e];
|
|
1339
|
-
const { length: n } = e;
|
|
1340
|
-
let r, s;
|
|
1341
|
-
const i = {};
|
|
1342
|
-
for (let o = 0; o < n; o++) {
|
|
1343
|
-
r = e[o];
|
|
1344
|
-
let a;
|
|
1345
|
-
if (s = r, !ps(r) && (s = St[(a = String(r)).toLowerCase()], s === void 0))
|
|
1346
|
-
throw new S(`Unknown adapter '${a}'`);
|
|
1347
|
-
if (s && (c.isFunction(s) || (s = s.get(t))))
|
|
1348
|
-
break;
|
|
1349
|
-
i[a || "#" + o] = s;
|
|
1350
|
-
}
|
|
1351
|
-
if (!s) {
|
|
1352
|
-
const o = Object.entries(i).map(
|
|
1353
|
-
([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1354
|
-
);
|
|
1355
|
-
let a = n ? o.length > 1 ? `since :
|
|
1356
|
-
` + o.map(Ht).join(`
|
|
1357
|
-
`) : " " + Ht(o[0]) : "as no adapter specified";
|
|
1358
|
-
throw new S(
|
|
1359
|
-
"There is no suitable adapter to dispatch the request " + a,
|
|
1360
|
-
"ERR_NOT_SUPPORT"
|
|
1361
|
-
);
|
|
1362
|
-
}
|
|
1363
|
-
return s;
|
|
1364
|
-
}
|
|
1365
|
-
const Rn = {
|
|
1366
|
-
/**
|
|
1367
|
-
* Resolve an adapter from a list of adapter names or functions.
|
|
1368
|
-
* @type {Function}
|
|
1369
|
-
*/
|
|
1370
|
-
getAdapter: hs,
|
|
1371
|
-
/**
|
|
1372
|
-
* Exposes all known adapters
|
|
1373
|
-
* @type {Object<string, Function|Object>}
|
|
1374
|
-
*/
|
|
1375
|
-
adapters: St
|
|
1376
|
-
};
|
|
1377
|
-
function Ge(e) {
|
|
1378
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1379
|
-
throw new Se(null, e);
|
|
1380
|
-
}
|
|
1381
|
-
function Mt(e) {
|
|
1382
|
-
return Ge(e), e.headers = q.from(e.headers), e.data = Ke.call(
|
|
1383
|
-
e,
|
|
1384
|
-
e.transformRequest
|
|
1385
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Rn.getAdapter(e.adapter || Ce.adapter, e)(e).then(function(r) {
|
|
1386
|
-
return Ge(e), r.data = Ke.call(
|
|
1387
|
-
e,
|
|
1388
|
-
e.transformResponse,
|
|
1389
|
-
r
|
|
1390
|
-
), r.headers = q.from(r.headers), r;
|
|
1391
|
-
}, function(r) {
|
|
1392
|
-
return yn(r) || (Ge(e), r && r.response && (r.response.data = Ke.call(
|
|
1393
|
-
e,
|
|
1394
|
-
e.transformResponse,
|
|
1395
|
-
r.response
|
|
1396
|
-
), r.response.headers = q.from(r.response.headers))), Promise.reject(r);
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
const On = "1.13.2", Ve = {};
|
|
1400
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1401
|
-
Ve[e] = function(r) {
|
|
1402
|
-
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1403
|
-
};
|
|
1404
|
-
});
|
|
1405
|
-
const Vt = {};
|
|
1406
|
-
Ve.transitional = function(t, n, r) {
|
|
1407
|
-
function s(i, o) {
|
|
1408
|
-
return "[Axios v" + On + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1409
|
-
}
|
|
1410
|
-
return (i, o, a) => {
|
|
1411
|
-
if (t === !1)
|
|
1412
|
-
throw new S(
|
|
1413
|
-
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1414
|
-
S.ERR_DEPRECATED
|
|
1415
|
-
);
|
|
1416
|
-
return n && !Vt[o] && (Vt[o] = !0, console.warn(
|
|
1417
|
-
s(
|
|
1418
|
-
o,
|
|
1419
|
-
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1420
|
-
)
|
|
1421
|
-
)), t ? t(i, o, a) : !0;
|
|
1422
|
-
};
|
|
1423
|
-
};
|
|
1424
|
-
Ve.spelling = function(t) {
|
|
1425
|
-
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1426
|
-
};
|
|
1427
|
-
function ms(e, t, n) {
|
|
1428
|
-
if (typeof e != "object")
|
|
1429
|
-
throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
|
|
1430
|
-
const r = Object.keys(e);
|
|
1431
|
-
let s = r.length;
|
|
1432
|
-
for (; s-- > 0; ) {
|
|
1433
|
-
const i = r[s], o = t[i];
|
|
1434
|
-
if (o) {
|
|
1435
|
-
const a = e[i], d = a === void 0 || o(a, i, e);
|
|
1436
|
-
if (d !== !0)
|
|
1437
|
-
throw new S("option " + i + " must be " + d, S.ERR_BAD_OPTION_VALUE);
|
|
1438
|
-
continue;
|
|
1439
|
-
}
|
|
1440
|
-
if (n !== !0)
|
|
1441
|
-
throw new S("Unknown option " + i, S.ERR_BAD_OPTION);
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
const Be = {
|
|
1445
|
-
assertOptions: ms,
|
|
1446
|
-
validators: Ve
|
|
1447
|
-
}, Q = Be.validators;
|
|
1448
|
-
let de = class {
|
|
1449
|
-
constructor(t) {
|
|
1450
|
-
this.defaults = t || {}, this.interceptors = {
|
|
1451
|
-
request: new Nt(),
|
|
1452
|
-
response: new Nt()
|
|
1453
|
-
};
|
|
1454
|
-
}
|
|
1455
|
-
/**
|
|
1456
|
-
* Dispatch a request
|
|
1457
|
-
*
|
|
1458
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1459
|
-
* @param {?Object} config
|
|
1460
|
-
*
|
|
1461
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
1462
|
-
*/
|
|
1463
|
-
async request(t, n) {
|
|
1464
|
-
try {
|
|
1465
|
-
return await this._request(t, n);
|
|
1466
|
-
} catch (r) {
|
|
1467
|
-
if (r instanceof Error) {
|
|
1468
|
-
let s = {};
|
|
1469
|
-
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1470
|
-
const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1471
|
-
try {
|
|
1472
|
-
r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1473
|
-
` + i) : r.stack = i;
|
|
1474
|
-
} catch {
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
throw r;
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
_request(t, n) {
|
|
1481
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = pe(this.defaults, n);
|
|
1482
|
-
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1483
|
-
r !== void 0 && Be.assertOptions(r, {
|
|
1484
|
-
silentJSONParsing: Q.transitional(Q.boolean),
|
|
1485
|
-
forcedJSONParsing: Q.transitional(Q.boolean),
|
|
1486
|
-
clarifyTimeoutError: Q.transitional(Q.boolean)
|
|
1487
|
-
}, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
|
|
1488
|
-
serialize: s
|
|
1489
|
-
} : Be.assertOptions(s, {
|
|
1490
|
-
encode: Q.function,
|
|
1491
|
-
serialize: Q.function
|
|
1492
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Be.assertOptions(n, {
|
|
1493
|
-
baseUrl: Q.spelling("baseURL"),
|
|
1494
|
-
withXsrfToken: Q.spelling("withXSRFToken")
|
|
1495
|
-
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1496
|
-
let o = i && c.merge(
|
|
1497
|
-
i.common,
|
|
1498
|
-
i[n.method]
|
|
1499
|
-
);
|
|
1500
|
-
i && c.forEach(
|
|
1501
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1502
|
-
(u) => {
|
|
1503
|
-
delete i[u];
|
|
1504
|
-
}
|
|
1505
|
-
), n.headers = q.concat(o, i);
|
|
1506
|
-
const a = [];
|
|
1507
|
-
let d = !0;
|
|
1508
|
-
this.interceptors.request.forEach(function(m) {
|
|
1509
|
-
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, a.unshift(m.fulfilled, m.rejected));
|
|
1510
|
-
});
|
|
1511
|
-
const f = [];
|
|
1512
|
-
this.interceptors.response.forEach(function(m) {
|
|
1513
|
-
f.push(m.fulfilled, m.rejected);
|
|
1514
|
-
});
|
|
1515
|
-
let l, p = 0, E;
|
|
1516
|
-
if (!d) {
|
|
1517
|
-
const u = [Mt.bind(this), void 0];
|
|
1518
|
-
for (u.unshift(...a), u.push(...f), E = u.length, l = Promise.resolve(n); p < E; )
|
|
1519
|
-
l = l.then(u[p++], u[p++]);
|
|
1520
|
-
return l;
|
|
1521
|
-
}
|
|
1522
|
-
E = a.length;
|
|
1523
|
-
let y = n;
|
|
1524
|
-
for (; p < E; ) {
|
|
1525
|
-
const u = a[p++], m = a[p++];
|
|
1526
|
-
try {
|
|
1527
|
-
y = u(y);
|
|
1528
|
-
} catch (h) {
|
|
1529
|
-
m.call(this, h);
|
|
1530
|
-
break;
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
try {
|
|
1534
|
-
l = Mt.call(this, y);
|
|
1535
|
-
} catch (u) {
|
|
1536
|
-
return Promise.reject(u);
|
|
1537
|
-
}
|
|
1538
|
-
for (p = 0, E = f.length; p < E; )
|
|
1539
|
-
l = l.then(f[p++], f[p++]);
|
|
1540
|
-
return l;
|
|
1541
|
-
}
|
|
1542
|
-
getUri(t) {
|
|
1543
|
-
t = pe(this.defaults, t);
|
|
1544
|
-
const n = Sn(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1545
|
-
return hn(n, t.params, t.paramsSerializer);
|
|
1546
|
-
}
|
|
1547
|
-
};
|
|
1548
|
-
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1549
|
-
de.prototype[t] = function(n, r) {
|
|
1550
|
-
return this.request(pe(r || {}, {
|
|
1551
|
-
method: t,
|
|
1552
|
-
url: n,
|
|
1553
|
-
data: (r || {}).data
|
|
1554
|
-
}));
|
|
1555
|
-
};
|
|
1556
|
-
});
|
|
1557
|
-
c.forEach(["post", "put", "patch"], function(t) {
|
|
1558
|
-
function n(r) {
|
|
1559
|
-
return function(i, o, a) {
|
|
1560
|
-
return this.request(pe(a || {}, {
|
|
1561
|
-
method: t,
|
|
1562
|
-
headers: r ? {
|
|
1563
|
-
"Content-Type": "multipart/form-data"
|
|
1564
|
-
} : {},
|
|
1565
|
-
url: i,
|
|
1566
|
-
data: o
|
|
1567
|
-
}));
|
|
1568
|
-
};
|
|
1569
|
-
}
|
|
1570
|
-
de.prototype[t] = n(), de.prototype[t + "Form"] = n(!0);
|
|
1571
|
-
});
|
|
1572
|
-
let Es = class Tn {
|
|
1573
|
-
constructor(t) {
|
|
1574
|
-
if (typeof t != "function")
|
|
1575
|
-
throw new TypeError("executor must be a function.");
|
|
1576
|
-
let n;
|
|
1577
|
-
this.promise = new Promise(function(i) {
|
|
1578
|
-
n = i;
|
|
1579
|
-
});
|
|
1580
|
-
const r = this;
|
|
1581
|
-
this.promise.then((s) => {
|
|
1582
|
-
if (!r._listeners) return;
|
|
1583
|
-
let i = r._listeners.length;
|
|
1584
|
-
for (; i-- > 0; )
|
|
1585
|
-
r._listeners[i](s);
|
|
1586
|
-
r._listeners = null;
|
|
1587
|
-
}), this.promise.then = (s) => {
|
|
1588
|
-
let i;
|
|
1589
|
-
const o = new Promise((a) => {
|
|
1590
|
-
r.subscribe(a), i = a;
|
|
1591
|
-
}).then(s);
|
|
1592
|
-
return o.cancel = function() {
|
|
1593
|
-
r.unsubscribe(i);
|
|
1594
|
-
}, o;
|
|
1595
|
-
}, t(function(i, o, a) {
|
|
1596
|
-
r.reason || (r.reason = new Se(i, o, a), n(r.reason));
|
|
1597
|
-
});
|
|
1598
|
-
}
|
|
1599
|
-
/**
|
|
1600
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
1601
|
-
*/
|
|
1602
|
-
throwIfRequested() {
|
|
1603
|
-
if (this.reason)
|
|
1604
|
-
throw this.reason;
|
|
1605
|
-
}
|
|
1606
|
-
/**
|
|
1607
|
-
* Subscribe to the cancel signal
|
|
1608
|
-
*/
|
|
1609
|
-
subscribe(t) {
|
|
1610
|
-
if (this.reason) {
|
|
1611
|
-
t(this.reason);
|
|
1612
|
-
return;
|
|
1613
|
-
}
|
|
1614
|
-
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1615
|
-
}
|
|
1616
|
-
/**
|
|
1617
|
-
* Unsubscribe from the cancel signal
|
|
1618
|
-
*/
|
|
1619
|
-
unsubscribe(t) {
|
|
1620
|
-
if (!this._listeners)
|
|
1621
|
-
return;
|
|
1622
|
-
const n = this._listeners.indexOf(t);
|
|
1623
|
-
n !== -1 && this._listeners.splice(n, 1);
|
|
1624
|
-
}
|
|
1625
|
-
toAbortSignal() {
|
|
1626
|
-
const t = new AbortController(), n = (r) => {
|
|
1627
|
-
t.abort(r);
|
|
1628
|
-
};
|
|
1629
|
-
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1630
|
-
}
|
|
1631
|
-
/**
|
|
1632
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1633
|
-
* cancels the `CancelToken`.
|
|
1634
|
-
*/
|
|
1635
|
-
static source() {
|
|
1636
|
-
let t;
|
|
1637
|
-
return {
|
|
1638
|
-
token: new Tn(function(s) {
|
|
1639
|
-
t = s;
|
|
1640
|
-
}),
|
|
1641
|
-
cancel: t
|
|
1642
|
-
};
|
|
1643
|
-
}
|
|
1644
|
-
};
|
|
1645
|
-
function ys(e) {
|
|
1646
|
-
return function(n) {
|
|
1647
|
-
return e.apply(null, n);
|
|
1648
|
-
};
|
|
1649
|
-
}
|
|
1650
|
-
function ws(e) {
|
|
1651
|
-
return c.isObject(e) && e.isAxiosError === !0;
|
|
1652
|
-
}
|
|
1653
|
-
const at = {
|
|
1654
|
-
Continue: 100,
|
|
1655
|
-
SwitchingProtocols: 101,
|
|
1656
|
-
Processing: 102,
|
|
1657
|
-
EarlyHints: 103,
|
|
1658
|
-
Ok: 200,
|
|
1659
|
-
Created: 201,
|
|
1660
|
-
Accepted: 202,
|
|
1661
|
-
NonAuthoritativeInformation: 203,
|
|
1662
|
-
NoContent: 204,
|
|
1663
|
-
ResetContent: 205,
|
|
1664
|
-
PartialContent: 206,
|
|
1665
|
-
MultiStatus: 207,
|
|
1666
|
-
AlreadyReported: 208,
|
|
1667
|
-
ImUsed: 226,
|
|
1668
|
-
MultipleChoices: 300,
|
|
1669
|
-
MovedPermanently: 301,
|
|
1670
|
-
Found: 302,
|
|
1671
|
-
SeeOther: 303,
|
|
1672
|
-
NotModified: 304,
|
|
1673
|
-
UseProxy: 305,
|
|
1674
|
-
Unused: 306,
|
|
1675
|
-
TemporaryRedirect: 307,
|
|
1676
|
-
PermanentRedirect: 308,
|
|
1677
|
-
BadRequest: 400,
|
|
1678
|
-
Unauthorized: 401,
|
|
1679
|
-
PaymentRequired: 402,
|
|
1680
|
-
Forbidden: 403,
|
|
1681
|
-
NotFound: 404,
|
|
1682
|
-
MethodNotAllowed: 405,
|
|
1683
|
-
NotAcceptable: 406,
|
|
1684
|
-
ProxyAuthenticationRequired: 407,
|
|
1685
|
-
RequestTimeout: 408,
|
|
1686
|
-
Conflict: 409,
|
|
1687
|
-
Gone: 410,
|
|
1688
|
-
LengthRequired: 411,
|
|
1689
|
-
PreconditionFailed: 412,
|
|
1690
|
-
PayloadTooLarge: 413,
|
|
1691
|
-
UriTooLong: 414,
|
|
1692
|
-
UnsupportedMediaType: 415,
|
|
1693
|
-
RangeNotSatisfiable: 416,
|
|
1694
|
-
ExpectationFailed: 417,
|
|
1695
|
-
ImATeapot: 418,
|
|
1696
|
-
MisdirectedRequest: 421,
|
|
1697
|
-
UnprocessableEntity: 422,
|
|
1698
|
-
Locked: 423,
|
|
1699
|
-
FailedDependency: 424,
|
|
1700
|
-
TooEarly: 425,
|
|
1701
|
-
UpgradeRequired: 426,
|
|
1702
|
-
PreconditionRequired: 428,
|
|
1703
|
-
TooManyRequests: 429,
|
|
1704
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
1705
|
-
UnavailableForLegalReasons: 451,
|
|
1706
|
-
InternalServerError: 500,
|
|
1707
|
-
NotImplemented: 501,
|
|
1708
|
-
BadGateway: 502,
|
|
1709
|
-
ServiceUnavailable: 503,
|
|
1710
|
-
GatewayTimeout: 504,
|
|
1711
|
-
HttpVersionNotSupported: 505,
|
|
1712
|
-
VariantAlsoNegotiates: 506,
|
|
1713
|
-
InsufficientStorage: 507,
|
|
1714
|
-
LoopDetected: 508,
|
|
1715
|
-
NotExtended: 510,
|
|
1716
|
-
NetworkAuthenticationRequired: 511,
|
|
1717
|
-
WebServerIsDown: 521,
|
|
1718
|
-
ConnectionTimedOut: 522,
|
|
1719
|
-
OriginIsUnreachable: 523,
|
|
1720
|
-
TimeoutOccurred: 524,
|
|
1721
|
-
SslHandshakeFailed: 525,
|
|
1722
|
-
InvalidSslCertificate: 526
|
|
1723
|
-
};
|
|
1724
|
-
Object.entries(at).forEach(([e, t]) => {
|
|
1725
|
-
at[t] = e;
|
|
1726
|
-
});
|
|
1727
|
-
function An(e) {
|
|
1728
|
-
const t = new de(e), n = tn(de.prototype.request, t);
|
|
1729
|
-
return c.extend(n, de.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1730
|
-
return An(pe(e, s));
|
|
1731
|
-
}, n;
|
|
1732
|
-
}
|
|
1733
|
-
const N = An(Ce);
|
|
1734
|
-
N.Axios = de;
|
|
1735
|
-
N.CanceledError = Se;
|
|
1736
|
-
N.CancelToken = Es;
|
|
1737
|
-
N.isCancel = yn;
|
|
1738
|
-
N.VERSION = On;
|
|
1739
|
-
N.toFormData = Me;
|
|
1740
|
-
N.AxiosError = S;
|
|
1741
|
-
N.Cancel = N.CanceledError;
|
|
1742
|
-
N.all = function(t) {
|
|
1743
|
-
return Promise.all(t);
|
|
1744
|
-
};
|
|
1745
|
-
N.spread = ys;
|
|
1746
|
-
N.isAxiosError = ws;
|
|
1747
|
-
N.mergeConfig = pe;
|
|
1748
|
-
N.AxiosHeaders = q;
|
|
1749
|
-
N.formToJSON = (e) => En(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
1750
|
-
N.getAdapter = Rn.getAdapter;
|
|
1751
|
-
N.HttpStatusCode = at;
|
|
1752
|
-
N.default = N;
|
|
1753
|
-
const {
|
|
1754
|
-
Axios: eo,
|
|
1755
|
-
AxiosError: to,
|
|
1756
|
-
CanceledError: no,
|
|
1757
|
-
isCancel: ro,
|
|
1758
|
-
CancelToken: so,
|
|
1759
|
-
VERSION: oo,
|
|
1760
|
-
all: io,
|
|
1761
|
-
Cancel: ao,
|
|
1762
|
-
isAxiosError: co,
|
|
1763
|
-
spread: uo,
|
|
1764
|
-
toFormData: lo,
|
|
1765
|
-
AxiosHeaders: fo,
|
|
1766
|
-
HttpStatusCode: po,
|
|
1767
|
-
formToJSON: ho,
|
|
1768
|
-
getAdapter: mo,
|
|
1769
|
-
mergeConfig: Eo
|
|
1770
|
-
} = N;
|
|
1771
|
-
var Fe = { exports: {} }, Xe = {};
|
|
1772
|
-
var $t;
|
|
1773
|
-
function Ss() {
|
|
1774
|
-
if ($t) return Xe;
|
|
1775
|
-
$t = 1;
|
|
1776
|
-
var e = Oe;
|
|
1777
|
-
function t(p, E) {
|
|
1778
|
-
return p === E && (p !== 0 || 1 / p === 1 / E) || p !== p && E !== E;
|
|
1779
|
-
}
|
|
1780
|
-
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, s = e.useEffect, i = e.useLayoutEffect, o = e.useDebugValue;
|
|
1781
|
-
function a(p, E) {
|
|
1782
|
-
var y = E(), u = r({ inst: { value: y, getSnapshot: E } }), m = u[0].inst, h = u[1];
|
|
1783
|
-
return i(
|
|
1784
|
-
function() {
|
|
1785
|
-
m.value = y, m.getSnapshot = E, d(m) && h({ inst: m });
|
|
1786
|
-
},
|
|
1787
|
-
[p, y, E]
|
|
1788
|
-
), s(
|
|
1789
|
-
function() {
|
|
1790
|
-
return d(m) && h({ inst: m }), p(function() {
|
|
1791
|
-
d(m) && h({ inst: m });
|
|
1792
|
-
});
|
|
1793
|
-
},
|
|
1794
|
-
[p]
|
|
1795
|
-
), o(y), y;
|
|
1796
|
-
}
|
|
1797
|
-
function d(p) {
|
|
1798
|
-
var E = p.getSnapshot;
|
|
1799
|
-
p = p.value;
|
|
1800
|
-
try {
|
|
1801
|
-
var y = E();
|
|
1802
|
-
return !n(p, y);
|
|
1803
|
-
} catch {
|
|
1804
|
-
return !0;
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
function f(p, E) {
|
|
1808
|
-
return E();
|
|
1809
|
-
}
|
|
1810
|
-
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : a;
|
|
1811
|
-
return Xe.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, Xe;
|
|
1812
|
-
}
|
|
1813
|
-
var Ye = {};
|
|
1814
|
-
var Wt;
|
|
1815
|
-
function gs() {
|
|
1816
|
-
return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1817
|
-
function e(y, u) {
|
|
1818
|
-
return y === u && (y !== 0 || 1 / y === 1 / u) || y !== y && u !== u;
|
|
1819
|
-
}
|
|
1820
|
-
function t(y, u) {
|
|
1821
|
-
l || s.startTransition === void 0 || (l = !0, console.error(
|
|
1822
|
-
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
1823
|
-
));
|
|
1824
|
-
var m = u();
|
|
1825
|
-
if (!p) {
|
|
1826
|
-
var h = u();
|
|
1827
|
-
i(m, h) || (console.error(
|
|
1828
|
-
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
1829
|
-
), p = !0);
|
|
1830
|
-
}
|
|
1831
|
-
h = o({
|
|
1832
|
-
inst: { value: m, getSnapshot: u }
|
|
1833
|
-
});
|
|
1834
|
-
var g = h[0].inst, w = h[1];
|
|
1835
|
-
return d(
|
|
1836
|
-
function() {
|
|
1837
|
-
g.value = m, g.getSnapshot = u, n(g) && w({ inst: g });
|
|
1838
|
-
},
|
|
1839
|
-
[y, m, u]
|
|
1840
|
-
), a(
|
|
1841
|
-
function() {
|
|
1842
|
-
return n(g) && w({ inst: g }), y(function() {
|
|
1843
|
-
n(g) && w({ inst: g });
|
|
1844
|
-
});
|
|
1845
|
-
},
|
|
1846
|
-
[y]
|
|
1847
|
-
), f(m), m;
|
|
1848
|
-
}
|
|
1849
|
-
function n(y) {
|
|
1850
|
-
var u = y.getSnapshot;
|
|
1851
|
-
y = y.value;
|
|
1852
|
-
try {
|
|
1853
|
-
var m = u();
|
|
1854
|
-
return !i(y, m);
|
|
1855
|
-
} catch {
|
|
1856
|
-
return !0;
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
function r(y, u) {
|
|
1860
|
-
return u();
|
|
1861
|
-
}
|
|
1862
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1863
|
-
var s = Oe, i = typeof Object.is == "function" ? Object.is : e, o = s.useState, a = s.useEffect, d = s.useLayoutEffect, f = s.useDebugValue, l = !1, p = !1, E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
1864
|
-
Ye.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1865
|
-
})()), Ye;
|
|
1866
|
-
}
|
|
1867
|
-
var zt;
|
|
1868
|
-
function bs() {
|
|
1869
|
-
return zt || (zt = 1, process.env.NODE_ENV === "production" ? Fe.exports = Ss() : Fe.exports = gs()), Fe.exports;
|
|
1870
|
-
}
|
|
1871
|
-
var Jt = bs();
|
|
1872
|
-
const _n = 0, Cn = 1, xn = 2, Kt = 3;
|
|
1873
|
-
var Gt = Object.prototype.hasOwnProperty;
|
|
1874
|
-
function ct(e, t) {
|
|
1875
|
-
var n, r;
|
|
1876
|
-
if (e === t) return !0;
|
|
1877
|
-
if (e && t && (n = e.constructor) === t.constructor) {
|
|
1878
|
-
if (n === Date) return e.getTime() === t.getTime();
|
|
1879
|
-
if (n === RegExp) return e.toString() === t.toString();
|
|
1880
|
-
if (n === Array) {
|
|
1881
|
-
if ((r = e.length) === t.length)
|
|
1882
|
-
for (; r-- && ct(e[r], t[r]); ) ;
|
|
1883
|
-
return r === -1;
|
|
1884
|
-
}
|
|
1885
|
-
if (!n || typeof e == "object") {
|
|
1886
|
-
r = 0;
|
|
1887
|
-
for (n in e)
|
|
1888
|
-
if (Gt.call(e, n) && ++r && !Gt.call(t, n) || !(n in t) || !ct(e[n], t[n])) return !1;
|
|
1889
|
-
return Object.keys(t).length === r;
|
|
1890
|
-
}
|
|
1891
|
-
}
|
|
1892
|
-
return e !== e && t !== t;
|
|
1893
|
-
}
|
|
1894
|
-
const ie = /* @__PURE__ */ new WeakMap(), ae = () => {
|
|
1895
|
-
}, U = (
|
|
1896
|
-
/*#__NOINLINE__*/
|
|
1897
|
-
ae()
|
|
1898
|
-
), ut = Object, b = (e) => e === U, Z = (e) => typeof e == "function", ce = (e, t) => ({
|
|
1899
|
-
...e,
|
|
1900
|
-
...t
|
|
1901
|
-
}), Dn = (e) => Z(e.then), Qe = {}, Pe = {}, gt = "undefined", xe = typeof window != gt, lt = typeof document != gt, Rs = xe && "Deno" in window, Os = () => xe && typeof window.requestAnimationFrame != gt, Ln = (e, t) => {
|
|
1902
|
-
const n = ie.get(e);
|
|
1903
|
-
return [
|
|
1904
|
-
// Getter
|
|
1905
|
-
() => !b(t) && e.get(t) || Qe,
|
|
1906
|
-
// Setter
|
|
1907
|
-
(r) => {
|
|
1908
|
-
if (!b(t)) {
|
|
1909
|
-
const s = e.get(t);
|
|
1910
|
-
t in Pe || (Pe[t] = s), n[5](t, ce(s, r), s || Qe);
|
|
1911
|
-
}
|
|
1912
|
-
},
|
|
1913
|
-
// Subscriber
|
|
1914
|
-
n[6],
|
|
1915
|
-
// Get server cache snapshot
|
|
1916
|
-
() => !b(t) && t in Pe ? Pe[t] : !b(t) && e.get(t) || Qe
|
|
1917
|
-
];
|
|
1918
|
-
};
|
|
1919
|
-
let ft = !0;
|
|
1920
|
-
const Ts = () => ft, [dt, pt] = xe && window.addEventListener ? [
|
|
1921
|
-
window.addEventListener.bind(window),
|
|
1922
|
-
window.removeEventListener.bind(window)
|
|
1923
|
-
] : [
|
|
1924
|
-
ae,
|
|
1925
|
-
ae
|
|
1926
|
-
], As = () => {
|
|
1927
|
-
const e = lt && document.visibilityState;
|
|
1928
|
-
return b(e) || e !== "hidden";
|
|
1929
|
-
}, _s = (e) => (lt && document.addEventListener("visibilitychange", e), dt("focus", e), () => {
|
|
1930
|
-
lt && document.removeEventListener("visibilitychange", e), pt("focus", e);
|
|
1931
|
-
}), Cs = (e) => {
|
|
1932
|
-
const t = () => {
|
|
1933
|
-
ft = !0, e();
|
|
1934
|
-
}, n = () => {
|
|
1935
|
-
ft = !1;
|
|
1936
|
-
};
|
|
1937
|
-
return dt("online", t), dt("offline", n), () => {
|
|
1938
|
-
pt("online", t), pt("offline", n);
|
|
1939
|
-
};
|
|
1940
|
-
}, xs = {
|
|
1941
|
-
isOnline: Ts,
|
|
1942
|
-
isVisible: As
|
|
1943
|
-
}, Ds = {
|
|
1944
|
-
initFocus: _s,
|
|
1945
|
-
initReconnect: Cs
|
|
1946
|
-
}, Xt = !Oe.useId, Ee = !xe || Rs, Ls = (e) => Os() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ze = Ee ? qn : Hn, et = typeof navigator < "u" && navigator.connection, Yt = !Ee && et && ([
|
|
1947
|
-
"slow-2g",
|
|
1948
|
-
"2g"
|
|
1949
|
-
].includes(et.effectiveType) || et.saveData), ve = /* @__PURE__ */ new WeakMap(), Ns = (e) => ut.prototype.toString.call(e), tt = (e, t) => e === `[object ${t}]`;
|
|
1950
|
-
let Fs = 0;
|
|
1951
|
-
const ht = (e) => {
|
|
1952
|
-
const t = typeof e, n = Ns(e), r = tt(n, "Date"), s = tt(n, "RegExp"), i = tt(n, "Object");
|
|
1953
|
-
let o, a;
|
|
1954
|
-
if (ut(e) === e && !r && !s) {
|
|
1955
|
-
if (o = ve.get(e), o) return o;
|
|
1956
|
-
if (o = ++Fs + "~", ve.set(e, o), Array.isArray(e)) {
|
|
1957
|
-
for (o = "@", a = 0; a < e.length; a++)
|
|
1958
|
-
o += ht(e[a]) + ",";
|
|
1959
|
-
ve.set(e, o);
|
|
1960
|
-
}
|
|
1961
|
-
if (i) {
|
|
1962
|
-
o = "#";
|
|
1963
|
-
const d = ut.keys(e).sort();
|
|
1964
|
-
for (; !b(a = d.pop()); )
|
|
1965
|
-
b(e[a]) || (o += a + ":" + ht(e[a]) + ",");
|
|
1966
|
-
ve.set(e, o);
|
|
1967
|
-
}
|
|
1968
|
-
} else
|
|
1969
|
-
o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
|
1970
|
-
return o;
|
|
1971
|
-
}, bt = (e) => {
|
|
1972
|
-
if (Z(e))
|
|
1973
|
-
try {
|
|
1974
|
-
e = e();
|
|
1975
|
-
} catch {
|
|
1976
|
-
e = "";
|
|
1977
|
-
}
|
|
1978
|
-
const t = e;
|
|
1979
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? ht(e) : "", [
|
|
1980
|
-
e,
|
|
1981
|
-
t
|
|
1982
|
-
];
|
|
1983
|
-
};
|
|
1984
|
-
let Ps = 0;
|
|
1985
|
-
const mt = () => ++Ps;
|
|
1986
|
-
async function Nn(...e) {
|
|
1987
|
-
const [t, n, r, s] = e, i = ce({
|
|
1988
|
-
populateCache: !0,
|
|
1989
|
-
throwOnError: !0
|
|
1990
|
-
}, typeof s == "boolean" ? {
|
|
1991
|
-
revalidate: s
|
|
1992
|
-
} : s || {});
|
|
1993
|
-
let o = i.populateCache;
|
|
1994
|
-
const a = i.rollbackOnError;
|
|
1995
|
-
let d = i.optimisticData;
|
|
1996
|
-
const f = (E) => typeof a == "function" ? a(E) : a !== !1, l = i.throwOnError;
|
|
1997
|
-
if (Z(n)) {
|
|
1998
|
-
const E = n, y = [], u = t.keys();
|
|
1999
|
-
for (const m of u)
|
|
2000
|
-
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
|
2001
|
-
!/^\$(inf|sub)\$/.test(m) && E(t.get(m)._k) && y.push(m);
|
|
2002
|
-
return Promise.all(y.map(p));
|
|
2003
|
-
}
|
|
2004
|
-
return p(n);
|
|
2005
|
-
async function p(E) {
|
|
2006
|
-
const [y] = bt(E);
|
|
2007
|
-
if (!y) return;
|
|
2008
|
-
const [u, m] = Ln(t, y), [h, g, w, A] = ie.get(t), x = () => {
|
|
2009
|
-
const F = h[y];
|
|
2010
|
-
return (Z(i.revalidate) ? i.revalidate(u().data, E) : i.revalidate !== !1) && (delete w[y], delete A[y], F && F[0]) ? F[0](xn).then(() => u().data) : u().data;
|
|
2011
|
-
};
|
|
2012
|
-
if (e.length < 3)
|
|
2013
|
-
return x();
|
|
2014
|
-
let R = r, P, _ = !1;
|
|
2015
|
-
const X = mt();
|
|
2016
|
-
g[y] = [
|
|
2017
|
-
X,
|
|
2018
|
-
0
|
|
2019
|
-
];
|
|
2020
|
-
const O = !b(d), ee = u(), H = ee.data, W = ee._c, M = b(W) ? H : W;
|
|
2021
|
-
if (O && (d = Z(d) ? d(M, H) : d, m({
|
|
2022
|
-
data: d,
|
|
2023
|
-
_c: M
|
|
2024
|
-
})), Z(R))
|
|
2025
|
-
try {
|
|
2026
|
-
R = R(M);
|
|
2027
|
-
} catch (F) {
|
|
2028
|
-
P = F, _ = !0;
|
|
2029
|
-
}
|
|
2030
|
-
if (R && Dn(R))
|
|
2031
|
-
if (R = await R.catch((F) => {
|
|
2032
|
-
P = F, _ = !0;
|
|
2033
|
-
}), X !== g[y][0]) {
|
|
2034
|
-
if (_) throw P;
|
|
2035
|
-
return R;
|
|
2036
|
-
} else _ && O && f(P) && (o = !0, m({
|
|
2037
|
-
data: M,
|
|
2038
|
-
_c: U
|
|
2039
|
-
}));
|
|
2040
|
-
if (o && !_)
|
|
2041
|
-
if (Z(o)) {
|
|
2042
|
-
const F = o(R, M);
|
|
2043
|
-
m({
|
|
2044
|
-
data: F,
|
|
2045
|
-
error: U,
|
|
2046
|
-
_c: U
|
|
2047
|
-
});
|
|
2048
|
-
} else
|
|
2049
|
-
m({
|
|
2050
|
-
data: R,
|
|
2051
|
-
error: U,
|
|
2052
|
-
_c: U
|
|
2053
|
-
});
|
|
2054
|
-
if (g[y][1] = mt(), Promise.resolve(x()).then(() => {
|
|
2055
|
-
m({
|
|
2056
|
-
_c: U
|
|
2057
|
-
});
|
|
2058
|
-
}), _) {
|
|
2059
|
-
if (l) throw P;
|
|
2060
|
-
return;
|
|
2061
|
-
}
|
|
2062
|
-
return R;
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
const Qt = (e, t) => {
|
|
2066
|
-
for (const n in e)
|
|
2067
|
-
e[n][0] && e[n][0](t);
|
|
2068
|
-
}, vs = (e, t) => {
|
|
2069
|
-
if (!ie.has(e)) {
|
|
2070
|
-
const n = ce(Ds, t), r = /* @__PURE__ */ Object.create(null), s = Nn.bind(U, e);
|
|
2071
|
-
let i = ae;
|
|
2072
|
-
const o = /* @__PURE__ */ Object.create(null), a = (l, p) => {
|
|
2073
|
-
const E = o[l] || [];
|
|
2074
|
-
return o[l] = E, E.push(p), () => E.splice(E.indexOf(p), 1);
|
|
2075
|
-
}, d = (l, p, E) => {
|
|
2076
|
-
e.set(l, p);
|
|
2077
|
-
const y = o[l];
|
|
2078
|
-
if (y)
|
|
2079
|
-
for (const u of y)
|
|
2080
|
-
u(p, E);
|
|
2081
|
-
}, f = () => {
|
|
2082
|
-
if (!ie.has(e) && (ie.set(e, [
|
|
2083
|
-
r,
|
|
2084
|
-
/* @__PURE__ */ Object.create(null),
|
|
2085
|
-
/* @__PURE__ */ Object.create(null),
|
|
2086
|
-
/* @__PURE__ */ Object.create(null),
|
|
2087
|
-
s,
|
|
2088
|
-
d,
|
|
2089
|
-
a
|
|
2090
|
-
]), !Ee)) {
|
|
2091
|
-
const l = n.initFocus(setTimeout.bind(U, Qt.bind(U, r, _n))), p = n.initReconnect(setTimeout.bind(U, Qt.bind(U, r, Cn)));
|
|
2092
|
-
i = () => {
|
|
2093
|
-
l && l(), p && p(), ie.delete(e);
|
|
2094
|
-
};
|
|
2095
|
-
}
|
|
2096
|
-
};
|
|
2097
|
-
return f(), [
|
|
2098
|
-
e,
|
|
2099
|
-
s,
|
|
2100
|
-
f,
|
|
2101
|
-
i
|
|
2102
|
-
];
|
|
2103
|
-
}
|
|
2104
|
-
return [
|
|
2105
|
-
e,
|
|
2106
|
-
ie.get(e)[4]
|
|
2107
|
-
];
|
|
2108
|
-
}, Us = (e, t, n, r, s) => {
|
|
2109
|
-
const i = n.errorRetryCount, o = s.retryCount, a = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * n.errorRetryInterval;
|
|
2110
|
-
!b(i) && o > i || setTimeout(r, a, s);
|
|
2111
|
-
}, Is = ct, [Fn, Bs] = vs(/* @__PURE__ */ new Map()), js = ce(
|
|
2112
|
-
{
|
|
2113
|
-
// events
|
|
2114
|
-
onLoadingSlow: ae,
|
|
2115
|
-
onSuccess: ae,
|
|
2116
|
-
onError: ae,
|
|
2117
|
-
onErrorRetry: Us,
|
|
2118
|
-
onDiscarded: ae,
|
|
2119
|
-
// switches
|
|
2120
|
-
revalidateOnFocus: !0,
|
|
2121
|
-
revalidateOnReconnect: !0,
|
|
2122
|
-
revalidateIfStale: !0,
|
|
2123
|
-
shouldRetryOnError: !0,
|
|
2124
|
-
// timeouts
|
|
2125
|
-
errorRetryInterval: Yt ? 1e4 : 5e3,
|
|
2126
|
-
focusThrottleInterval: 5 * 1e3,
|
|
2127
|
-
dedupingInterval: 2 * 1e3,
|
|
2128
|
-
loadingTimeout: Yt ? 5e3 : 3e3,
|
|
2129
|
-
// providers
|
|
2130
|
-
compare: Is,
|
|
2131
|
-
isPaused: () => !1,
|
|
2132
|
-
cache: Fn,
|
|
2133
|
-
mutate: Bs,
|
|
2134
|
-
fallback: {}
|
|
2135
|
-
},
|
|
2136
|
-
// use web preset by default
|
|
2137
|
-
xs
|
|
2138
|
-
), ks = (e, t) => {
|
|
2139
|
-
const n = ce(e, t);
|
|
2140
|
-
if (t) {
|
|
2141
|
-
const { use: r, fallback: s } = e, { use: i, fallback: o } = t;
|
|
2142
|
-
r && i && (n.use = r.concat(i)), s && o && (n.fallback = ce(s, o));
|
|
2143
|
-
}
|
|
2144
|
-
return n;
|
|
2145
|
-
}, qs = kn({}), Hs = "$inf$", Pn = xe && window.__SWR_DEVTOOLS_USE__, Ms = Pn ? window.__SWR_DEVTOOLS_USE__ : [], Vs = () => {
|
|
2146
|
-
Pn && (window.__SWR_DEVTOOLS_REACT__ = Oe);
|
|
2147
|
-
}, vn = (e) => Z(e[1]) ? [
|
|
2148
|
-
e[0],
|
|
2149
|
-
e[1],
|
|
2150
|
-
e[2] || {}
|
|
2151
|
-
] : [
|
|
2152
|
-
e[0],
|
|
2153
|
-
null,
|
|
2154
|
-
(e[1] === null ? e[2] : e[1]) || {}
|
|
2155
|
-
], $s = () => {
|
|
2156
|
-
const e = Mn(qs);
|
|
2157
|
-
return en(() => ce(js, e), [
|
|
2158
|
-
e
|
|
2159
|
-
]);
|
|
2160
|
-
}, Ws = (e) => (t, n, r) => e(t, n && ((...i) => {
|
|
2161
|
-
const [o] = bt(t), [, , , a] = ie.get(Fn);
|
|
2162
|
-
if (o.startsWith(Hs))
|
|
2163
|
-
return n(...i);
|
|
2164
|
-
const d = a[o];
|
|
2165
|
-
return b(d) ? n(...i) : (delete a[o], d);
|
|
2166
|
-
}), r), zs = Ms.concat(Ws), Js = (e) => function(...n) {
|
|
2167
|
-
const r = $s(), [s, i, o] = vn(n), a = ks(r, o);
|
|
2168
|
-
let d = e;
|
|
2169
|
-
const { use: f } = a, l = (f || []).concat(zs);
|
|
2170
|
-
for (let p = l.length; p--; )
|
|
2171
|
-
d = l[p](d);
|
|
2172
|
-
return d(s, i || a.fetcher || null, a);
|
|
2173
|
-
}, Ks = (e, t, n) => {
|
|
2174
|
-
const r = t[e] || (t[e] = []);
|
|
2175
|
-
return r.push(n), () => {
|
|
2176
|
-
const s = r.indexOf(n);
|
|
2177
|
-
s >= 0 && (r[s] = r[r.length - 1], r.pop());
|
|
2178
|
-
};
|
|
2179
|
-
}, yo = (e, t) => (...n) => {
|
|
2180
|
-
const [r, s, i] = vn(n), o = (i.use || []).concat(t);
|
|
2181
|
-
return e(r, s, {
|
|
2182
|
-
...i,
|
|
2183
|
-
use: o
|
|
2184
|
-
});
|
|
2185
|
-
};
|
|
2186
|
-
Vs();
|
|
2187
|
-
const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
|
|
2188
|
-
// and emitting an error.
|
|
2189
|
-
// We assume that this is only for the `use(thenable)` case, not `use(context)`.
|
|
2190
|
-
// https://github.com/facebook/react/blob/aed00dacfb79d17c53218404c52b1c7aa59c4a89/packages/react-server/src/ReactFizzThenable.js#L45
|
|
2191
|
-
((e) => {
|
|
2192
|
-
switch (e.status) {
|
|
2193
|
-
case "pending":
|
|
2194
|
-
throw e;
|
|
2195
|
-
case "fulfilled":
|
|
2196
|
-
return e.value;
|
|
2197
|
-
case "rejected":
|
|
2198
|
-
throw e.reason;
|
|
2199
|
-
default:
|
|
2200
|
-
throw e.status = "pending", e.then((t) => {
|
|
2201
|
-
e.status = "fulfilled", e.value = t;
|
|
2202
|
-
}, (t) => {
|
|
2203
|
-
e.status = "rejected", e.reason = t;
|
|
2204
|
-
}), e;
|
|
2205
|
-
}
|
|
2206
|
-
}), rt = {
|
|
2207
|
-
dedupe: !0
|
|
2208
|
-
}, Zt = Promise.resolve(U), Gs = (e, t, n) => {
|
|
2209
|
-
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: a, revalidateIfStale: d, refreshInterval: f, refreshWhenHidden: l, refreshWhenOffline: p, keepPreviousData: E, strictServerPrefetchWarning: y } = n, [u, m, h, g] = ie.get(r), [w, A] = bt(e), x = le(!1), R = le(!1), P = le(w), _ = le(t), X = le(n), O = () => X.current, ee = () => O().isVisible() && O().isOnline(), [H, W, M, F] = Ln(r, w), te = le({}).current, B = b(o) ? b(n.fallback) ? U : n.fallback[w] : o, ge = (T, C) => {
|
|
2210
|
-
for (const L in te) {
|
|
2211
|
-
const D = L;
|
|
2212
|
-
if (D === "data") {
|
|
2213
|
-
if (!s(T[D], C[D]) && (!b(T[D]) || !s(Le, C[D])))
|
|
2214
|
-
return !1;
|
|
2215
|
-
} else if (C[D] !== T[D])
|
|
2216
|
-
return !1;
|
|
2217
|
-
}
|
|
2218
|
-
return !0;
|
|
2219
|
-
}, z = en(() => {
|
|
2220
|
-
const T = !w || !t ? !1 : b(a) ? O().isPaused() || i ? !1 : d !== !1 : a, C = (j) => {
|
|
2221
|
-
const se = ce(j);
|
|
2222
|
-
return delete se._k, T ? {
|
|
2223
|
-
isValidating: !0,
|
|
2224
|
-
isLoading: !0,
|
|
2225
|
-
...se
|
|
2226
|
-
} : se;
|
|
2227
|
-
}, L = H(), D = F(), K = C(L), me = L === D ? K : C(D);
|
|
2228
|
-
let v = K;
|
|
2229
|
-
return [
|
|
2230
|
-
() => {
|
|
2231
|
-
const j = C(H());
|
|
2232
|
-
return ge(j, v) ? (v.data = j.data, v.isLoading = j.isLoading, v.isValidating = j.isValidating, v.error = j.error, v) : (v = j, j);
|
|
2233
|
-
},
|
|
2234
|
-
() => me
|
|
2235
|
-
];
|
|
2236
|
-
}, [
|
|
2237
|
-
r,
|
|
2238
|
-
w
|
|
2239
|
-
]), ne = Jt.useSyncExternalStore(ze(
|
|
2240
|
-
(T) => M(w, (C, L) => {
|
|
2241
|
-
ge(L, C) || T();
|
|
2242
|
-
}),
|
|
2243
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2244
|
-
[
|
|
2245
|
-
r,
|
|
2246
|
-
w
|
|
2247
|
-
]
|
|
2248
|
-
), z[0], z[1]), De = !x.current, Y = u[w] && u[w].length > 0, V = ne.data, J = b(V) ? B && Dn(B) ? nt(B) : B : V, re = ne.error, he = le(J), Le = E ? b(V) ? b(he.current) ? J : he.current : V : J, ue = w && b(J), Un = !Ee && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2249
|
-
Jt.useSyncExternalStore(() => ae, () => !1, () => !0);
|
|
2250
|
-
y && Un && !i && ue && console.warn(`Missing pre-initiated data for serialized key "${w}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
|
|
2251
|
-
const Rt = Y && !b(re) ? !1 : De && !b(a) ? a : O().isPaused() ? !1 : i ? b(J) ? !1 : d : b(J) || d, Ot = !!(w && t && De && Rt), In = b(ne.isValidating) ? Ot : ne.isValidating, Bn = b(ne.isLoading) ? Ot : ne.isLoading, be = ze(
|
|
2252
|
-
async (T) => {
|
|
2253
|
-
const C = _.current;
|
|
2254
|
-
if (!w || !C || R.current || O().isPaused())
|
|
2255
|
-
return !1;
|
|
2256
|
-
let L, D, K = !0;
|
|
2257
|
-
const me = T || {}, v = !h[w] || !me.dedupe, j = () => Xt ? !R.current && w === P.current && x.current : w === P.current, se = {
|
|
2258
|
-
isValidating: !1,
|
|
2259
|
-
isLoading: !1
|
|
2260
|
-
}, At = () => {
|
|
2261
|
-
W(se);
|
|
2262
|
-
}, _t = () => {
|
|
2263
|
-
const $ = h[w];
|
|
2264
|
-
$ && $[1] === D && delete h[w];
|
|
2265
|
-
}, Ct = {
|
|
2266
|
-
isValidating: !0
|
|
2267
|
-
};
|
|
2268
|
-
b(H().data) && (Ct.isLoading = !0);
|
|
2269
|
-
try {
|
|
2270
|
-
if (v && (W(Ct), n.loadingTimeout && b(H().data) && setTimeout(() => {
|
|
2271
|
-
K && j() && O().onLoadingSlow(w, n);
|
|
2272
|
-
}, n.loadingTimeout), h[w] = [
|
|
2273
|
-
C(A),
|
|
2274
|
-
mt()
|
|
2275
|
-
]), [L, D] = h[w], L = await L, v && setTimeout(_t, n.dedupingInterval), !h[w] || h[w][1] !== D)
|
|
2276
|
-
return v && j() && O().onDiscarded(w), !1;
|
|
2277
|
-
se.error = U;
|
|
2278
|
-
const $ = m[w];
|
|
2279
|
-
if (!b($) && // case 1
|
|
2280
|
-
(D <= $[0] || // case 2
|
|
2281
|
-
D <= $[1] || // case 3
|
|
2282
|
-
$[1] === 0))
|
|
2283
|
-
return At(), v && j() && O().onDiscarded(w), !1;
|
|
2284
|
-
const oe = H().data;
|
|
2285
|
-
se.data = s(oe, L) ? oe : L, v && j() && O().onSuccess(L, w, n);
|
|
2286
|
-
} catch ($) {
|
|
2287
|
-
_t();
|
|
2288
|
-
const oe = O(), { shouldRetryOnError: $e } = oe;
|
|
2289
|
-
oe.isPaused() || (se.error = $, v && j() && (oe.onError($, w, oe), ($e === !0 || Z($e) && $e($)) && (!O().revalidateOnFocus || !O().revalidateOnReconnect || ee()) && oe.onErrorRetry($, w, oe, (jn) => {
|
|
2290
|
-
const We = u[w];
|
|
2291
|
-
We && We[0] && We[0](Kt, jn);
|
|
2292
|
-
}, {
|
|
2293
|
-
retryCount: (me.retryCount || 0) + 1,
|
|
2294
|
-
dedupe: !0
|
|
2295
|
-
})));
|
|
2296
|
-
}
|
|
2297
|
-
return K = !1, At(), !0;
|
|
2298
|
-
},
|
|
2299
|
-
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
|
2300
|
-
// `keyValidating` are depending on `key`, so we can exclude them from
|
|
2301
|
-
// the deps array.
|
|
2302
|
-
//
|
|
2303
|
-
// FIXME:
|
|
2304
|
-
// `fn` and `config` might be changed during the lifecycle,
|
|
2305
|
-
// but they might be changed every render like this.
|
|
2306
|
-
// `useSWR('key', () => fetch('/api/'), { suspense: true })`
|
|
2307
|
-
// So we omit the values from the deps array
|
|
2308
|
-
// even though it might cause unexpected behaviors.
|
|
2309
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2310
|
-
[
|
|
2311
|
-
w,
|
|
2312
|
-
r
|
|
2313
|
-
]
|
|
2314
|
-
), Tt = ze(
|
|
2315
|
-
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
2316
|
-
(...T) => Nn(r, P.current, ...T),
|
|
2317
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2318
|
-
[]
|
|
2319
|
-
);
|
|
2320
|
-
if (Ze(() => {
|
|
2321
|
-
_.current = t, X.current = n, b(V) || (he.current = V);
|
|
2322
|
-
}), Ze(() => {
|
|
2323
|
-
if (!w) return;
|
|
2324
|
-
const T = be.bind(U, rt);
|
|
2325
|
-
let C = 0;
|
|
2326
|
-
O().revalidateOnFocus && (C = Date.now() + O().focusThrottleInterval);
|
|
2327
|
-
const D = Ks(w, u, (K, me = {}) => {
|
|
2328
|
-
if (K == _n) {
|
|
2329
|
-
const v = Date.now();
|
|
2330
|
-
O().revalidateOnFocus && v > C && ee() && (C = v + O().focusThrottleInterval, T());
|
|
2331
|
-
} else if (K == Cn)
|
|
2332
|
-
O().revalidateOnReconnect && ee() && T();
|
|
2333
|
-
else {
|
|
2334
|
-
if (K == xn)
|
|
2335
|
-
return be();
|
|
2336
|
-
if (K == Kt)
|
|
2337
|
-
return be(me);
|
|
2338
|
-
}
|
|
2339
|
-
});
|
|
2340
|
-
return R.current = !1, P.current = w, x.current = !0, W({
|
|
2341
|
-
_k: A
|
|
2342
|
-
}), Rt && (h[w] || (b(J) || Ee ? T() : Ls(T))), () => {
|
|
2343
|
-
R.current = !0, D();
|
|
2344
|
-
};
|
|
2345
|
-
}, [
|
|
2346
|
-
w
|
|
2347
|
-
]), Ze(() => {
|
|
2348
|
-
let T;
|
|
2349
|
-
function C() {
|
|
2350
|
-
const D = Z(f) ? f(H().data) : f;
|
|
2351
|
-
D && T !== -1 && (T = setTimeout(L, D));
|
|
2352
|
-
}
|
|
2353
|
-
function L() {
|
|
2354
|
-
!H().error && (l || O().isVisible()) && (p || O().isOnline()) ? be(rt).then(C) : C();
|
|
2355
|
-
}
|
|
2356
|
-
return C(), () => {
|
|
2357
|
-
T && (clearTimeout(T), T = -1);
|
|
2358
|
-
};
|
|
2359
|
-
}, [
|
|
2360
|
-
f,
|
|
2361
|
-
l,
|
|
2362
|
-
p,
|
|
2363
|
-
w
|
|
2364
|
-
]), Vn(Le), i) {
|
|
2365
|
-
if (!Xt && Ee && ue)
|
|
2366
|
-
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
2367
|
-
ue && (_.current = t, X.current = n, R.current = !1);
|
|
2368
|
-
const T = g[w], C = !b(T) && ue ? Tt(T) : Zt;
|
|
2369
|
-
if (nt(C), !b(re) && ue)
|
|
2370
|
-
throw re;
|
|
2371
|
-
const L = ue ? be(rt) : Zt;
|
|
2372
|
-
!b(Le) && ue && (L.status = "fulfilled", L.value = !0), nt(L);
|
|
2373
|
-
}
|
|
2374
|
-
return {
|
|
2375
|
-
mutate: Tt,
|
|
2376
|
-
get data() {
|
|
2377
|
-
return te.data = !0, Le;
|
|
2378
|
-
},
|
|
2379
|
-
get error() {
|
|
2380
|
-
return te.error = !0, re;
|
|
2381
|
-
},
|
|
2382
|
-
get isValidating() {
|
|
2383
|
-
return te.isValidating = !0, In;
|
|
2384
|
-
},
|
|
2385
|
-
get isLoading() {
|
|
2386
|
-
return te.isLoading = !0, Bn;
|
|
2387
|
-
}
|
|
2388
|
-
};
|
|
2389
|
-
}, wo = Js(Gs);
|
|
2390
|
-
export {
|
|
2391
|
-
N as a,
|
|
2392
|
-
wo as u,
|
|
2393
|
-
yo as w
|
|
2394
|
-
};
|