@unicom-cloud/axios 0.1.1 → 0.1.3
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/chunk/CYdDqQOh.js +274 -0
- package/chunk/DtlKw_Ta.js +67 -0
- package/index.d.cts +791 -0
- package/index.d.ts +28 -11
- package/index.js +1 -1
- package/lib/axios.js +228 -210
- package/lib/utils.js +2 -2
- package/mock-adapter/LICENSE +20 -0
- package/mock-adapter/index.js +3 -3
- package/mock-adapter/request.js +2 -2
- package/mock-adapter/utils.js +3 -3
- package/package.json +1 -1
- package/chunk/CBBFLbi8.js +0 -253
- package/chunk/Turrizj0.js +0 -62
package/lib/axios.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
import { A as b } from "../chunk/
|
|
3
|
-
import { A as i, b as ze } from "../chunk/
|
|
1
|
+
/* 2026-02-26 14:42:51 */
|
|
2
|
+
import { A as b } from "../chunk/DtlKw_Ta.js";
|
|
3
|
+
import { A as i, b as ze } from "../chunk/CYdDqQOh.js";
|
|
4
4
|
const $e = i.toObjectSet([
|
|
5
5
|
"age",
|
|
6
6
|
"authorization",
|
|
@@ -26,8 +26,8 @@ const $e = i.toObjectSet([
|
|
|
26
26
|
`).forEach(function(o) {
|
|
27
27
|
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || e[n] && $e[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
28
28
|
}), e;
|
|
29
|
-
},
|
|
30
|
-
function
|
|
29
|
+
}, me = /* @__PURE__ */ Symbol("internals");
|
|
30
|
+
function D(t) {
|
|
31
31
|
return t && String(t).trim().toLowerCase();
|
|
32
32
|
}
|
|
33
33
|
function W(t) {
|
|
@@ -65,14 +65,14 @@ function Xe(t, e) {
|
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
class
|
|
68
|
+
class A {
|
|
69
69
|
constructor(e) {
|
|
70
70
|
e && this.set(e);
|
|
71
71
|
}
|
|
72
72
|
set(e, n, r) {
|
|
73
73
|
const s = this;
|
|
74
74
|
function a(c, h, f) {
|
|
75
|
-
const l =
|
|
75
|
+
const l = D(h);
|
|
76
76
|
if (!l)
|
|
77
77
|
throw new Error("header name must be a non-empty string");
|
|
78
78
|
const p = i.findKey(s, l);
|
|
@@ -99,7 +99,7 @@ class O {
|
|
|
99
99
|
return this;
|
|
100
100
|
}
|
|
101
101
|
get(e, n) {
|
|
102
|
-
if (e =
|
|
102
|
+
if (e = D(e), e) {
|
|
103
103
|
const r = i.findKey(this, e);
|
|
104
104
|
if (r) {
|
|
105
105
|
const s = this[r];
|
|
@@ -116,7 +116,7 @@ class O {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
has(e, n) {
|
|
119
|
-
if (e =
|
|
119
|
+
if (e = D(e), e) {
|
|
120
120
|
const r = i.findKey(this, e);
|
|
121
121
|
return !!(r && this[r] !== void 0 && (!n || Q(this, this[r], r, n)));
|
|
122
122
|
}
|
|
@@ -126,7 +126,7 @@ class O {
|
|
|
126
126
|
const r = this;
|
|
127
127
|
let s = !1;
|
|
128
128
|
function a(o) {
|
|
129
|
-
if (o =
|
|
129
|
+
if (o = D(o), o) {
|
|
130
130
|
const c = i.findKey(r, o);
|
|
131
131
|
c && (!n || Q(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
132
132
|
}
|
|
@@ -184,17 +184,17 @@ class O {
|
|
|
184
184
|
return n.forEach((s) => r.set(s)), r;
|
|
185
185
|
}
|
|
186
186
|
static accessor(e) {
|
|
187
|
-
const r = (this[
|
|
187
|
+
const r = (this[me] = this[me] = {
|
|
188
188
|
accessors: {}
|
|
189
189
|
}).accessors, s = this.prototype;
|
|
190
190
|
function a(o) {
|
|
191
|
-
const c =
|
|
191
|
+
const c = D(o);
|
|
192
192
|
r[c] || (Xe(s, o), r[c] = !0);
|
|
193
193
|
}
|
|
194
194
|
return i.isArray(e) ? e.forEach(a) : a(e), this;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
A.accessor([
|
|
198
198
|
"Content-Type",
|
|
199
199
|
"Content-Length",
|
|
200
200
|
"Accept",
|
|
@@ -202,7 +202,7 @@ O.accessor([
|
|
|
202
202
|
"User-Agent",
|
|
203
203
|
"Authorization"
|
|
204
204
|
]);
|
|
205
|
-
i.reduceDescriptors(
|
|
205
|
+
i.reduceDescriptors(A.prototype, ({ value: t }, e) => {
|
|
206
206
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
207
207
|
return {
|
|
208
208
|
get: () => t,
|
|
@@ -211,8 +211,8 @@ i.reduceDescriptors(O.prototype, ({ value: t }, e) => {
|
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
});
|
|
214
|
-
i.freezeMethods(
|
|
215
|
-
function
|
|
214
|
+
i.freezeMethods(A);
|
|
215
|
+
function Ne(t, e, n) {
|
|
216
216
|
const r = n.config.validateStatus;
|
|
217
217
|
!n.status || !r || r(n.status) ? t(n) : e(
|
|
218
218
|
new b(
|
|
@@ -259,7 +259,7 @@ const Ge = (t, e) => {
|
|
|
259
259
|
let o = e && setTimeout(() => {
|
|
260
260
|
o = null, a(
|
|
261
261
|
new b(
|
|
262
|
-
`timeout ${e}
|
|
262
|
+
`timeout of ${e}ms exceeded`,
|
|
263
263
|
b.ETIMEDOUT
|
|
264
264
|
)
|
|
265
265
|
);
|
|
@@ -286,8 +286,8 @@ function Ze(t, e) {
|
|
|
286
286
|
w += n[p++], p = p % t;
|
|
287
287
|
if (s = (s + 1) % t, s === a && (a = (a + 1) % t), f - o < e)
|
|
288
288
|
return;
|
|
289
|
-
const
|
|
290
|
-
return
|
|
289
|
+
const R = l && f - l;
|
|
290
|
+
return R ? Math.round(w * 1e3 / R) : void 0;
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
293
|
function Qe(t, e) {
|
|
@@ -321,7 +321,7 @@ const V = (t, e, n = 3) => {
|
|
|
321
321
|
};
|
|
322
322
|
t(p);
|
|
323
323
|
}, n);
|
|
324
|
-
},
|
|
324
|
+
}, be = (t, e) => {
|
|
325
325
|
const n = t != null;
|
|
326
326
|
return [
|
|
327
327
|
(r) => e[0]({
|
|
@@ -331,18 +331,18 @@ const V = (t, e, n = 3) => {
|
|
|
331
331
|
}),
|
|
332
332
|
e[1]
|
|
333
333
|
];
|
|
334
|
-
},
|
|
334
|
+
}, we = (t) => (...e) => i.asap(() => t(...e));
|
|
335
335
|
function Ye(t, e) {
|
|
336
336
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
337
337
|
}
|
|
338
338
|
function et(t) {
|
|
339
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
339
|
+
return typeof t != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function _e(t, e, n) {
|
|
342
342
|
let r = !et(e);
|
|
343
343
|
return t && (r || n == !1) ? Ye(t, e) : e;
|
|
344
344
|
}
|
|
345
|
-
const
|
|
345
|
+
const ye = (t) => t instanceof A ? { ...t } : t;
|
|
346
346
|
function k(t, e) {
|
|
347
347
|
e = e || {};
|
|
348
348
|
const n = {};
|
|
@@ -400,12 +400,14 @@ function k(t, e) {
|
|
|
400
400
|
socketPath: o,
|
|
401
401
|
responseEncoding: o,
|
|
402
402
|
validateStatus: c,
|
|
403
|
-
headers: (f, l, p) => s(
|
|
403
|
+
headers: (f, l, p) => s(ye(f), ye(l), p, !0)
|
|
404
404
|
};
|
|
405
405
|
return i.forEach(
|
|
406
406
|
Object.keys({ ...t, ...e }),
|
|
407
407
|
function(l) {
|
|
408
|
-
|
|
408
|
+
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
409
|
+
return;
|
|
410
|
+
const p = i.hasOwnProp(h, l) ? h[l] : s, w = p(t[l], e[l], l);
|
|
409
411
|
i.isUndefined(w) && p !== c || (n[l] = w);
|
|
410
412
|
}
|
|
411
413
|
), n;
|
|
@@ -424,7 +426,7 @@ function ne(t) {
|
|
|
424
426
|
function Fe(t) {
|
|
425
427
|
return i.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
426
428
|
}
|
|
427
|
-
function
|
|
429
|
+
function ge(t, e, n) {
|
|
428
430
|
return t ? t.concat(e).map(function(s, a) {
|
|
429
431
|
return s = Fe(s), !n && a ? "[" + s + "]" : s;
|
|
430
432
|
}).join(n ? "." : "") : e;
|
|
@@ -469,38 +471,38 @@ function I(t, e, n) {
|
|
|
469
471
|
if (i.endsWith(m, "{}"))
|
|
470
472
|
m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
|
|
471
473
|
else if (i.isArray(u) && at(u) || (i.isFileList(u) || i.endsWith(m, "[]")) && (y = i.toArray(u)))
|
|
472
|
-
return m = Fe(m), y.forEach(function(
|
|
473
|
-
!(i.isUndefined(
|
|
474
|
-
o === !0 ?
|
|
475
|
-
f(
|
|
474
|
+
return m = Fe(m), y.forEach(function(S, T) {
|
|
475
|
+
!(i.isUndefined(S) || S === null) && e.append(
|
|
476
|
+
o === !0 ? ge([m], T, a) : o === null ? m : m + "[]",
|
|
477
|
+
f(S)
|
|
476
478
|
);
|
|
477
479
|
}), !1;
|
|
478
480
|
}
|
|
479
|
-
return ne(u) ? !0 : (e.append(
|
|
481
|
+
return ne(u) ? !0 : (e.append(ge(d, m, a), f(u)), !1);
|
|
480
482
|
}
|
|
481
483
|
const p = [], w = Object.assign(ct, {
|
|
482
484
|
defaultVisitor: l,
|
|
483
485
|
convertValue: f,
|
|
484
486
|
isVisitable: ne
|
|
485
487
|
});
|
|
486
|
-
function
|
|
488
|
+
function R(u, m) {
|
|
487
489
|
if (!i.isUndefined(u)) {
|
|
488
490
|
if (p.indexOf(u) !== -1)
|
|
489
491
|
throw Error("Circular reference detected in " + m.join("."));
|
|
490
|
-
p.push(u), i.forEach(u, function(y,
|
|
492
|
+
p.push(u), i.forEach(u, function(y, x) {
|
|
491
493
|
(!(i.isUndefined(y) || y === null) && s.call(
|
|
492
494
|
e,
|
|
493
495
|
y,
|
|
494
|
-
i.isString(
|
|
496
|
+
i.isString(x) ? x.trim() : x,
|
|
495
497
|
m,
|
|
496
498
|
w
|
|
497
|
-
)) === !0 &&
|
|
499
|
+
)) === !0 && R(y, m ? m.concat(x) : [x]);
|
|
498
500
|
}), p.pop();
|
|
499
501
|
}
|
|
500
502
|
}
|
|
501
503
|
if (!i.isObject(t))
|
|
502
504
|
throw new TypeError("data must be an object");
|
|
503
|
-
return
|
|
505
|
+
return R(t), e;
|
|
504
506
|
}
|
|
505
507
|
function Se(t) {
|
|
506
508
|
const e = {
|
|
@@ -542,29 +544,27 @@ const lt = typeof URLSearchParams < "u" ? URLSearchParams : oe, ut = {
|
|
|
542
544
|
Blob: ot
|
|
543
545
|
},
|
|
544
546
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
545
|
-
},
|
|
547
|
+
}, E = {
|
|
546
548
|
...st,
|
|
547
549
|
...ut
|
|
548
550
|
};
|
|
549
551
|
function ft(t) {
|
|
550
552
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
551
553
|
}
|
|
552
|
-
function
|
|
554
|
+
function je(t, e, n) {
|
|
553
555
|
if (!e)
|
|
554
556
|
return t;
|
|
555
|
-
const r = n && n.encode || ft
|
|
556
|
-
i.isFunction(n) && (n = {
|
|
557
|
+
const r = n && n.encode || ft, s = i.isFunction(n) ? {
|
|
557
558
|
serialize: n
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
559
|
+
} : n, a = s && s.serialize;
|
|
560
|
+
let o;
|
|
561
|
+
if (a ? o = a(e, s) : o = i.isURLSearchParams(e) ? e.toString() : new oe(e, s).toString(r), o) {
|
|
562
|
+
const c = t.indexOf("#");
|
|
563
|
+
c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
|
|
564
564
|
}
|
|
565
565
|
return t;
|
|
566
566
|
}
|
|
567
|
-
const dt =
|
|
567
|
+
const dt = E.hasStandardBrowserEnv ? (
|
|
568
568
|
// Standard browser envs support document.cookie
|
|
569
569
|
{
|
|
570
570
|
write(t, e, n, r, s, a, o) {
|
|
@@ -594,14 +594,14 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
594
594
|
remove() {
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
), ht =
|
|
598
|
-
new URL(
|
|
599
|
-
|
|
600
|
-
) : () => !0,
|
|
597
|
+
), ht = E.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, E.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
598
|
+
new URL(E.origin),
|
|
599
|
+
E.navigator && /(msie|trident)/i.test(E.navigator.userAgent)
|
|
600
|
+
) : () => !0, ke = (t) => {
|
|
601
601
|
const e = k({}, t);
|
|
602
602
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: a, headers: o, auth: c } = e;
|
|
603
|
-
if (e.headers = o =
|
|
604
|
-
|
|
603
|
+
if (e.headers = o = A.from(o), e.url = je(
|
|
604
|
+
_e(
|
|
605
605
|
e.baseURL,
|
|
606
606
|
e.url,
|
|
607
607
|
e.allowAbsoluteUrls
|
|
@@ -614,7 +614,7 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
614
614
|
(c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : "")
|
|
615
615
|
)
|
|
616
616
|
), i.isFormData(n)) {
|
|
617
|
-
if (
|
|
617
|
+
if (E.hasStandardBrowserEnv || E.hasStandardBrowserWebWorkerEnv)
|
|
618
618
|
o.setContentType(void 0);
|
|
619
619
|
else if (i.isFunction(n.getHeaders)) {
|
|
620
620
|
const h = n.getHeaders(), f = ["content-type", "content-length"];
|
|
@@ -623,7 +623,7 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
if (
|
|
626
|
+
if (E.hasStandardBrowserEnv && (r && i.isFunction(r) && (r = r(e)), r || r !== !1 && ht(e.url))) {
|
|
627
627
|
const h = s && a && dt.read(a);
|
|
628
628
|
h && o.set(s, h);
|
|
629
629
|
}
|
|
@@ -656,7 +656,7 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
656
656
|
} finally {
|
|
657
657
|
await e.cancel();
|
|
658
658
|
}
|
|
659
|
-
},
|
|
659
|
+
}, Re = (t, e, n, r) => {
|
|
660
660
|
const s = mt(t, e);
|
|
661
661
|
let a = 0, o, c = (h) => {
|
|
662
662
|
o || (o = !0, r && r(h));
|
|
@@ -691,7 +691,7 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
691
691
|
}, Ee = 64 * 1024, { isFunction: J } = i, wt = (({ Request: t, Response: e }) => ({
|
|
692
692
|
Request: t,
|
|
693
693
|
Response: e
|
|
694
|
-
}))(i.global), { ReadableStream:
|
|
694
|
+
}))(i.global), { ReadableStream: Te, TextEncoder: Oe } = i.global, Ae = (t, ...e) => {
|
|
695
695
|
try {
|
|
696
696
|
return !!t(...e);
|
|
697
697
|
} catch {
|
|
@@ -708,17 +708,17 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
708
708
|
const { fetch: e, Request: n, Response: r } = t, s = e ? J(e) : typeof fetch == "function", a = J(n), o = J(r);
|
|
709
709
|
if (!s)
|
|
710
710
|
return !1;
|
|
711
|
-
const c = s && J(
|
|
711
|
+
const c = s && J(Te), h = s && (typeof Oe == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new Oe()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = a && c && Ae(() => {
|
|
712
712
|
let u = !1;
|
|
713
|
-
const m = new n(
|
|
714
|
-
body: new
|
|
713
|
+
const m = new n(E.origin, {
|
|
714
|
+
body: new Te(),
|
|
715
715
|
method: "POST",
|
|
716
716
|
get duplex() {
|
|
717
717
|
return u = !0, "half";
|
|
718
718
|
}
|
|
719
719
|
}).headers.has("Content-Type");
|
|
720
720
|
return u && !m;
|
|
721
|
-
}), l = o && c &&
|
|
721
|
+
}), l = o && c && Ae(() => i.isReadableStream(new r("").body)), p = {
|
|
722
722
|
stream: l && ((u) => u.body)
|
|
723
723
|
};
|
|
724
724
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
@@ -739,7 +739,7 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
739
739
|
if (i.isBlob(u))
|
|
740
740
|
return u.size;
|
|
741
741
|
if (i.isSpecCompliantForm(u))
|
|
742
|
-
return (await new n(
|
|
742
|
+
return (await new n(E.origin, {
|
|
743
743
|
method: "POST",
|
|
744
744
|
body: u
|
|
745
745
|
}).arrayBuffer()).byteLength;
|
|
@@ -747,7 +747,7 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
747
747
|
return u.byteLength;
|
|
748
748
|
if (i.isURLSearchParams(u) && (u = u + ""), i.isString(u))
|
|
749
749
|
return (await h(u)).byteLength;
|
|
750
|
-
},
|
|
750
|
+
}, R = async (u, m) => {
|
|
751
751
|
const d = i.toFiniteNumber(u.getContentLength());
|
|
752
752
|
return d ?? w(m);
|
|
753
753
|
};
|
|
@@ -756,39 +756,39 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
756
756
|
url: m,
|
|
757
757
|
method: d,
|
|
758
758
|
data: y,
|
|
759
|
-
signal:
|
|
760
|
-
cancelToken:
|
|
759
|
+
signal: x,
|
|
760
|
+
cancelToken: S,
|
|
761
761
|
timeout: T,
|
|
762
|
-
onDownloadProgress:
|
|
763
|
-
onUploadProgress:
|
|
764
|
-
responseType:
|
|
762
|
+
onDownloadProgress: U,
|
|
763
|
+
onUploadProgress: F,
|
|
764
|
+
responseType: C,
|
|
765
765
|
headers: G,
|
|
766
766
|
withCredentials: M = "same-origin",
|
|
767
|
-
fetchOptions:
|
|
768
|
-
} =
|
|
769
|
-
|
|
767
|
+
fetchOptions: le
|
|
768
|
+
} = ke(u), ue = e || fetch;
|
|
769
|
+
C = C ? (C + "").toLowerCase() : "text";
|
|
770
770
|
let z = Ge(
|
|
771
|
-
[
|
|
771
|
+
[x, S && S.toAbortSignal()],
|
|
772
772
|
T
|
|
773
|
-
),
|
|
774
|
-
const
|
|
773
|
+
), q = null;
|
|
774
|
+
const L = z && z.unsubscribe && (() => {
|
|
775
775
|
z.unsubscribe();
|
|
776
776
|
});
|
|
777
|
-
let
|
|
777
|
+
let fe;
|
|
778
778
|
try {
|
|
779
|
-
if (
|
|
780
|
-
let
|
|
779
|
+
if (F && f && d !== "get" && d !== "head" && (fe = await R(G, y)) !== 0) {
|
|
780
|
+
let _ = new n(m, {
|
|
781
781
|
method: "POST",
|
|
782
782
|
body: y,
|
|
783
783
|
duplex: "half"
|
|
784
784
|
}), B;
|
|
785
|
-
if (i.isFormData(y) && (B =
|
|
786
|
-
const [Z, $] =
|
|
787
|
-
|
|
788
|
-
V(
|
|
785
|
+
if (i.isFormData(y) && (B = _.headers.get("content-type")) && G.setContentType(B), _.body) {
|
|
786
|
+
const [Z, $] = be(
|
|
787
|
+
fe,
|
|
788
|
+
V(we(F))
|
|
789
789
|
);
|
|
790
|
-
y =
|
|
791
|
-
|
|
790
|
+
y = Re(
|
|
791
|
+
_.body,
|
|
792
792
|
Ee,
|
|
793
793
|
Z,
|
|
794
794
|
$
|
|
@@ -796,112 +796,120 @@ const dt = R.hasStandardBrowserEnv ? (
|
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
i.isString(M) || (M = M ? "include" : "omit");
|
|
799
|
-
const
|
|
800
|
-
...
|
|
799
|
+
const O = a && "credentials" in n.prototype, de = {
|
|
800
|
+
...le,
|
|
801
801
|
signal: z,
|
|
802
802
|
method: d.toUpperCase(),
|
|
803
803
|
headers: G.normalize().toJSON(),
|
|
804
804
|
body: y,
|
|
805
805
|
duplex: "half",
|
|
806
|
-
credentials:
|
|
806
|
+
credentials: O ? M : void 0
|
|
807
807
|
};
|
|
808
|
-
|
|
809
|
-
let N = await (a ?
|
|
810
|
-
const
|
|
811
|
-
if (l && (
|
|
812
|
-
const
|
|
813
|
-
["status", "statusText", "headers"].forEach((
|
|
814
|
-
|
|
808
|
+
q = a && new n(m, de);
|
|
809
|
+
let N = await (a ? ue(q, le) : ue(m, de));
|
|
810
|
+
const he = l && (C === "stream" || C === "response");
|
|
811
|
+
if (l && (U || he && L)) {
|
|
812
|
+
const _ = {};
|
|
813
|
+
["status", "statusText", "headers"].forEach((pe) => {
|
|
814
|
+
_[pe] = N[pe];
|
|
815
815
|
});
|
|
816
816
|
const B = i.toFiniteNumber(
|
|
817
817
|
N.headers.get("content-length")
|
|
818
|
-
), [Z, $] =
|
|
818
|
+
), [Z, $] = U && be(
|
|
819
819
|
B,
|
|
820
|
-
V(
|
|
820
|
+
V(we(U), !0)
|
|
821
821
|
) || [];
|
|
822
822
|
N = new r(
|
|
823
|
-
|
|
824
|
-
$ && $(),
|
|
823
|
+
Re(N.body, Ee, Z, () => {
|
|
824
|
+
$ && $(), L && L();
|
|
825
825
|
}),
|
|
826
|
-
|
|
826
|
+
_
|
|
827
827
|
);
|
|
828
828
|
}
|
|
829
|
-
|
|
830
|
-
let Me = await p[i.findKey(p,
|
|
831
|
-
return !
|
|
832
|
-
|
|
829
|
+
C = C || "text";
|
|
830
|
+
let Me = await p[i.findKey(p, C) || "text"](N, u);
|
|
831
|
+
return !he && L && L(), await new Promise((_, B) => {
|
|
832
|
+
Ne(_, B, {
|
|
833
833
|
data: Me,
|
|
834
|
-
headers:
|
|
834
|
+
headers: A.from(N.headers),
|
|
835
835
|
status: N.status,
|
|
836
836
|
statusText: N.statusText,
|
|
837
837
|
config: u,
|
|
838
|
-
request:
|
|
838
|
+
request: q
|
|
839
839
|
});
|
|
840
840
|
});
|
|
841
|
-
} catch (
|
|
842
|
-
throw
|
|
841
|
+
} catch (O) {
|
|
842
|
+
throw L && L(), O && O.name === "TypeError" && /Load failed|fetch/i.test(O.message) ? Object.assign(
|
|
843
843
|
new b(
|
|
844
844
|
"Network Error",
|
|
845
845
|
b.ERR_NETWORK,
|
|
846
846
|
u,
|
|
847
|
-
|
|
847
|
+
q,
|
|
848
|
+
O && O.response
|
|
848
849
|
),
|
|
849
850
|
{
|
|
850
|
-
cause:
|
|
851
|
+
cause: O.cause || O
|
|
851
852
|
}
|
|
852
|
-
) : b.from(
|
|
853
|
+
) : b.from(
|
|
854
|
+
O,
|
|
855
|
+
O && O.code,
|
|
856
|
+
u,
|
|
857
|
+
q,
|
|
858
|
+
O && O.response
|
|
859
|
+
);
|
|
853
860
|
}
|
|
854
861
|
};
|
|
855
|
-
},
|
|
862
|
+
}, gt = /* @__PURE__ */ new Map(), Be = (t) => {
|
|
856
863
|
let e = t && t.env || {};
|
|
857
864
|
const { fetch: n, Request: r, Response: s } = e, a = [r, s, n];
|
|
858
|
-
let o = a.length, c = o, h, f, l =
|
|
865
|
+
let o = a.length, c = o, h, f, l = gt;
|
|
859
866
|
for (; c--; )
|
|
860
867
|
h = a[c], f = l.get(h), f === void 0 && l.set(h, f = c ? /* @__PURE__ */ new Map() : yt(e)), l = f;
|
|
861
868
|
return f;
|
|
862
869
|
};
|
|
863
|
-
|
|
864
|
-
const
|
|
870
|
+
Be();
|
|
871
|
+
const St = null, ie = {
|
|
865
872
|
silentJSONParsing: !0,
|
|
866
873
|
forcedJSONParsing: !0,
|
|
867
|
-
clarifyTimeoutError: !1
|
|
874
|
+
clarifyTimeoutError: !1,
|
|
875
|
+
legacyInterceptorReqResOrdering: !0
|
|
868
876
|
};
|
|
869
|
-
function
|
|
877
|
+
function Rt(t) {
|
|
870
878
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
871
879
|
return e && e[1] || "";
|
|
872
880
|
}
|
|
873
|
-
const
|
|
881
|
+
const Et = typeof XMLHttpRequest < "u", Tt = Et && function(t) {
|
|
874
882
|
return new Promise(function(n, r) {
|
|
875
|
-
const s =
|
|
883
|
+
const s = ke(t);
|
|
876
884
|
let a = s.data;
|
|
877
|
-
const o =
|
|
878
|
-
let { responseType: c, onUploadProgress: h, onDownloadProgress: f } = s, l, p, w,
|
|
885
|
+
const o = A.from(s.headers).normalize();
|
|
886
|
+
let { responseType: c, onUploadProgress: h, onDownloadProgress: f } = s, l, p, w, R, u;
|
|
879
887
|
function m() {
|
|
880
|
-
|
|
888
|
+
R && R(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
881
889
|
}
|
|
882
890
|
let d = new XMLHttpRequest();
|
|
883
891
|
d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout;
|
|
884
892
|
function y() {
|
|
885
893
|
if (!d)
|
|
886
894
|
return;
|
|
887
|
-
const
|
|
895
|
+
const S = A.from(
|
|
888
896
|
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
889
|
-
),
|
|
897
|
+
), U = {
|
|
890
898
|
data: !c || c === "text" || c === "json" ? d.responseText : d.response,
|
|
891
899
|
status: d.status,
|
|
892
900
|
statusText: d.statusText,
|
|
893
|
-
headers:
|
|
901
|
+
headers: S,
|
|
894
902
|
config: t,
|
|
895
903
|
request: d
|
|
896
904
|
};
|
|
897
|
-
|
|
898
|
-
function(
|
|
899
|
-
n(
|
|
905
|
+
Ne(
|
|
906
|
+
function(C) {
|
|
907
|
+
n(C), m();
|
|
900
908
|
},
|
|
901
|
-
function(
|
|
902
|
-
r(
|
|
909
|
+
function(C) {
|
|
910
|
+
r(C), m();
|
|
903
911
|
},
|
|
904
|
-
|
|
912
|
+
U
|
|
905
913
|
), d = null;
|
|
906
914
|
}
|
|
907
915
|
"onloadend" in d ? d.onloadend = y : d.onreadystatechange = function() {
|
|
@@ -916,42 +924,42 @@ const Rt = typeof XMLHttpRequest < "u", Tt = Rt && function(t) {
|
|
|
916
924
|
)
|
|
917
925
|
), d = null);
|
|
918
926
|
}, d.onerror = function(T) {
|
|
919
|
-
const
|
|
920
|
-
|
|
927
|
+
const U = T && T.message ? T.message : "Network Error", F = new b(
|
|
928
|
+
U,
|
|
921
929
|
b.ERR_NETWORK,
|
|
922
930
|
t,
|
|
923
931
|
d
|
|
924
932
|
);
|
|
925
|
-
|
|
933
|
+
F.event = T || null, r(F), d = null;
|
|
926
934
|
}, d.ontimeout = function() {
|
|
927
935
|
let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
928
|
-
const
|
|
936
|
+
const U = s.transitional || ie;
|
|
929
937
|
s.timeoutErrorMessage && (T = s.timeoutErrorMessage), r(
|
|
930
938
|
new b(
|
|
931
939
|
T,
|
|
932
|
-
|
|
940
|
+
U.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
|
|
933
941
|
t,
|
|
934
942
|
d
|
|
935
943
|
)
|
|
936
944
|
), d = null;
|
|
937
945
|
}, a === void 0 && o.setContentType(null), "setRequestHeader" in d && i.forEach(
|
|
938
946
|
o.toJSON(),
|
|
939
|
-
function(T,
|
|
940
|
-
d.setRequestHeader(
|
|
947
|
+
function(T, U) {
|
|
948
|
+
d.setRequestHeader(U, T);
|
|
941
949
|
}
|
|
942
950
|
), i.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), f && ([w, u] = V(
|
|
943
951
|
f,
|
|
944
952
|
!0
|
|
945
|
-
), d.addEventListener("progress", w)), h && d.upload && ([p,
|
|
953
|
+
), d.addEventListener("progress", w)), h && d.upload && ([p, R] = V(h), d.upload.addEventListener("progress", p), d.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (l = (S) => {
|
|
946
954
|
d && (r(
|
|
947
|
-
!
|
|
955
|
+
!S || S.type ? new H(null, t, d) : S
|
|
948
956
|
), d.abort(), d = null);
|
|
949
957
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
950
|
-
const
|
|
951
|
-
if (
|
|
958
|
+
const x = Rt(s.url);
|
|
959
|
+
if (x && E.protocols.indexOf(x) === -1) {
|
|
952
960
|
r(
|
|
953
961
|
new b(
|
|
954
|
-
"Unsupported protocol " +
|
|
962
|
+
"Unsupported protocol " + x + ":",
|
|
955
963
|
b.ERR_BAD_REQUEST,
|
|
956
964
|
t
|
|
957
965
|
)
|
|
@@ -960,14 +968,14 @@ const Rt = typeof XMLHttpRequest < "u", Tt = Rt && function(t) {
|
|
|
960
968
|
}
|
|
961
969
|
d.send(a || null);
|
|
962
970
|
});
|
|
963
|
-
},
|
|
964
|
-
http:
|
|
971
|
+
}, ae = {
|
|
972
|
+
http: St,
|
|
965
973
|
xhr: Tt,
|
|
966
974
|
fetch: {
|
|
967
|
-
get:
|
|
975
|
+
get: Be
|
|
968
976
|
}
|
|
969
977
|
};
|
|
970
|
-
i.forEach(
|
|
978
|
+
i.forEach(ae, (t, e) => {
|
|
971
979
|
if (t) {
|
|
972
980
|
try {
|
|
973
981
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -976,7 +984,7 @@ i.forEach(ie, (t, e) => {
|
|
|
976
984
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
977
985
|
}
|
|
978
986
|
});
|
|
979
|
-
const
|
|
987
|
+
const xe = (t) => `- ${t}`, Ot = (t) => i.isFunction(t) || t === null || t === !1;
|
|
980
988
|
function At(t, e) {
|
|
981
989
|
t = i.isArray(t) ? t : [t];
|
|
982
990
|
const { length: n } = t;
|
|
@@ -985,7 +993,7 @@ function At(t, e) {
|
|
|
985
993
|
for (let o = 0; o < n; o++) {
|
|
986
994
|
r = t[o];
|
|
987
995
|
let c;
|
|
988
|
-
if (s = r, !Ot(r) && (s =
|
|
996
|
+
if (s = r, !Ot(r) && (s = ae[(c = String(r)).toLowerCase()], s === void 0))
|
|
989
997
|
throw new b(`Unknown adapter '${c}'`);
|
|
990
998
|
if (s && (i.isFunction(s) || (s = s.get(e))))
|
|
991
999
|
break;
|
|
@@ -996,8 +1004,8 @@ function At(t, e) {
|
|
|
996
1004
|
([h, f]) => `adapter ${h} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
997
1005
|
);
|
|
998
1006
|
let c = n ? o.length > 1 ? `since :
|
|
999
|
-
` + o.map(
|
|
1000
|
-
`) : " " +
|
|
1007
|
+
` + o.map(xe).join(`
|
|
1008
|
+
`) : " " + xe(o[0]) : "as no adapter specified";
|
|
1001
1009
|
throw new b(
|
|
1002
1010
|
"There is no suitable adapter to dispatch the request " + c,
|
|
1003
1011
|
"ERR_NOT_SUPPORT"
|
|
@@ -1005,7 +1013,7 @@ function At(t, e) {
|
|
|
1005
1013
|
}
|
|
1006
1014
|
return s;
|
|
1007
1015
|
}
|
|
1008
|
-
const
|
|
1016
|
+
const qe = {
|
|
1009
1017
|
/**
|
|
1010
1018
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1011
1019
|
* @type {Function}
|
|
@@ -1015,9 +1023,9 @@ const De = {
|
|
|
1015
1023
|
* Exposes all known adapters
|
|
1016
1024
|
* @type {Object<string, Function|Object>}
|
|
1017
1025
|
*/
|
|
1018
|
-
adapters:
|
|
1026
|
+
adapters: ae
|
|
1019
1027
|
};
|
|
1020
|
-
class
|
|
1028
|
+
class ce {
|
|
1021
1029
|
constructor(e) {
|
|
1022
1030
|
if (typeof e != "function")
|
|
1023
1031
|
throw new TypeError("executor must be a function.");
|
|
@@ -1083,17 +1091,17 @@ class ae {
|
|
|
1083
1091
|
static source() {
|
|
1084
1092
|
let e;
|
|
1085
1093
|
return {
|
|
1086
|
-
token: new
|
|
1094
|
+
token: new ce(function(s) {
|
|
1087
1095
|
e = s;
|
|
1088
1096
|
}),
|
|
1089
1097
|
cancel: e
|
|
1090
1098
|
};
|
|
1091
1099
|
}
|
|
1092
1100
|
}
|
|
1093
|
-
function
|
|
1101
|
+
function De(t) {
|
|
1094
1102
|
return !!(t && t.__CANCEL__);
|
|
1095
1103
|
}
|
|
1096
|
-
const He = "1.13.
|
|
1104
|
+
const He = "1.13.5", X = {};
|
|
1097
1105
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(
|
|
1098
1106
|
(t, e) => {
|
|
1099
1107
|
X[t] = function(r) {
|
|
@@ -1101,7 +1109,7 @@ const He = "1.13.2", X = {};
|
|
|
1101
1109
|
};
|
|
1102
1110
|
}
|
|
1103
1111
|
);
|
|
1104
|
-
const
|
|
1112
|
+
const Ce = {};
|
|
1105
1113
|
X.transitional = function(e, n, r) {
|
|
1106
1114
|
function s(a, o) {
|
|
1107
1115
|
return "[Axios v" + He + "] Transitional option '" + a + "'" + o + (r ? ". " + r : "");
|
|
@@ -1115,7 +1123,7 @@ X.transitional = function(e, n, r) {
|
|
|
1115
1123
|
),
|
|
1116
1124
|
b.ERR_DEPRECATED
|
|
1117
1125
|
);
|
|
1118
|
-
return n && !
|
|
1126
|
+
return n && !Ce[o] && (Ce[o] = !0, console.warn(
|
|
1119
1127
|
s(
|
|
1120
1128
|
o,
|
|
1121
1129
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1153,7 +1161,7 @@ const K = {
|
|
|
1153
1161
|
assertOptions: xt,
|
|
1154
1162
|
validators: X
|
|
1155
1163
|
};
|
|
1156
|
-
class
|
|
1164
|
+
class Pe {
|
|
1157
1165
|
constructor() {
|
|
1158
1166
|
this.handlers = [];
|
|
1159
1167
|
}
|
|
@@ -1236,9 +1244,9 @@ function Ie(t) {
|
|
|
1236
1244
|
return null;
|
|
1237
1245
|
}
|
|
1238
1246
|
function Ut(t, e) {
|
|
1239
|
-
return I(t, new
|
|
1247
|
+
return I(t, new E.classes.URLSearchParams(), {
|
|
1240
1248
|
visitor: function(n, r, s, a) {
|
|
1241
|
-
return
|
|
1249
|
+
return E.isNode && i.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
1242
1250
|
},
|
|
1243
1251
|
...e
|
|
1244
1252
|
});
|
|
@@ -1254,7 +1262,7 @@ function Nt(t, e, n) {
|
|
|
1254
1262
|
return (n || JSON.stringify)(t);
|
|
1255
1263
|
}
|
|
1256
1264
|
const v = {
|
|
1257
|
-
transitional:
|
|
1265
|
+
transitional: ie,
|
|
1258
1266
|
adapter: ["xhr", "http", "fetch"],
|
|
1259
1267
|
transformRequest: [
|
|
1260
1268
|
function(e, n) {
|
|
@@ -1319,8 +1327,8 @@ const v = {
|
|
|
1319
1327
|
maxContentLength: -1,
|
|
1320
1328
|
maxBodyLength: -1,
|
|
1321
1329
|
env: {
|
|
1322
|
-
FormData:
|
|
1323
|
-
Blob:
|
|
1330
|
+
FormData: E.classes.FormData,
|
|
1331
|
+
Blob: E.classes.Blob
|
|
1324
1332
|
},
|
|
1325
1333
|
validateStatus: function(e) {
|
|
1326
1334
|
return e >= 200 && e < 300;
|
|
@@ -1336,7 +1344,7 @@ i.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
|
1336
1344
|
v.headers[t] = {};
|
|
1337
1345
|
});
|
|
1338
1346
|
function Y(t, e) {
|
|
1339
|
-
const n = this || v, r = e || n, s =
|
|
1347
|
+
const n = this || v, r = e || n, s = A.from(r.headers);
|
|
1340
1348
|
let a = r.data;
|
|
1341
1349
|
return i.forEach(t, function(c) {
|
|
1342
1350
|
a = c.call(
|
|
@@ -1351,8 +1359,8 @@ function ee(t) {
|
|
|
1351
1359
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1352
1360
|
throw new H(null, t);
|
|
1353
1361
|
}
|
|
1354
|
-
function
|
|
1355
|
-
return ee(t), t.headers =
|
|
1362
|
+
function Ue(t) {
|
|
1363
|
+
return ee(t), t.headers = A.from(t.headers), t.data = Y.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), qe.getAdapter(
|
|
1356
1364
|
t.adapter || v.adapter,
|
|
1357
1365
|
t
|
|
1358
1366
|
)(t).then(
|
|
@@ -1361,23 +1369,23 @@ function Pe(t) {
|
|
|
1361
1369
|
t,
|
|
1362
1370
|
t.transformResponse,
|
|
1363
1371
|
r
|
|
1364
|
-
), r.headers =
|
|
1372
|
+
), r.headers = A.from(r.headers), r;
|
|
1365
1373
|
},
|
|
1366
1374
|
function(r) {
|
|
1367
|
-
return
|
|
1375
|
+
return De(r) || (ee(t), r && r.response && (r.response.data = Y.call(
|
|
1368
1376
|
t,
|
|
1369
1377
|
t.transformResponse,
|
|
1370
1378
|
r.response
|
|
1371
|
-
), r.response.headers =
|
|
1379
|
+
), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
|
|
1372
1380
|
}
|
|
1373
1381
|
);
|
|
1374
1382
|
}
|
|
1375
|
-
const
|
|
1383
|
+
const P = K.validators;
|
|
1376
1384
|
class j {
|
|
1377
1385
|
constructor(e) {
|
|
1378
1386
|
this.defaults = e || {}, this.interceptors = {
|
|
1379
|
-
request: new
|
|
1380
|
-
response: new
|
|
1387
|
+
request: new Pe(),
|
|
1388
|
+
response: new Pe()
|
|
1381
1389
|
};
|
|
1382
1390
|
}
|
|
1383
1391
|
/**
|
|
@@ -1411,9 +1419,12 @@ class j {
|
|
|
1411
1419
|
r !== void 0 && K.assertOptions(
|
|
1412
1420
|
r,
|
|
1413
1421
|
{
|
|
1414
|
-
silentJSONParsing:
|
|
1415
|
-
forcedJSONParsing:
|
|
1416
|
-
clarifyTimeoutError:
|
|
1422
|
+
silentJSONParsing: P.transitional(P.boolean),
|
|
1423
|
+
forcedJSONParsing: P.transitional(P.boolean),
|
|
1424
|
+
clarifyTimeoutError: P.transitional(P.boolean),
|
|
1425
|
+
legacyInterceptorReqResOrdering: P.transitional(
|
|
1426
|
+
P.boolean
|
|
1427
|
+
)
|
|
1417
1428
|
},
|
|
1418
1429
|
!1
|
|
1419
1430
|
), s != null && (i.isFunction(s) ? n.paramsSerializer = {
|
|
@@ -1421,15 +1432,15 @@ class j {
|
|
|
1421
1432
|
} : K.assertOptions(
|
|
1422
1433
|
s,
|
|
1423
1434
|
{
|
|
1424
|
-
encode:
|
|
1425
|
-
serialize:
|
|
1435
|
+
encode: P.function,
|
|
1436
|
+
serialize: P.function
|
|
1426
1437
|
},
|
|
1427
1438
|
!0
|
|
1428
1439
|
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), K.assertOptions(
|
|
1429
1440
|
n,
|
|
1430
1441
|
{
|
|
1431
|
-
baseUrl:
|
|
1432
|
-
withXsrfToken:
|
|
1442
|
+
baseUrl: P.spelling("baseURL"),
|
|
1443
|
+
withXsrfToken: P.spelling("withXSRFToken")
|
|
1433
1444
|
},
|
|
1434
1445
|
!0
|
|
1435
1446
|
), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1439,15 +1450,22 @@ class j {
|
|
|
1439
1450
|
(u) => {
|
|
1440
1451
|
delete a[u];
|
|
1441
1452
|
}
|
|
1442
|
-
), n.headers =
|
|
1453
|
+
), n.headers = A.concat(o, a);
|
|
1443
1454
|
const c = [];
|
|
1444
1455
|
let h = !0;
|
|
1445
1456
|
this.interceptors.request.forEach(
|
|
1446
1457
|
function(m) {
|
|
1447
|
-
typeof m.runWhen == "function" && m.runWhen(n) === !1
|
|
1458
|
+
if (typeof m.runWhen == "function" && m.runWhen(n) === !1)
|
|
1459
|
+
return;
|
|
1460
|
+
h = h && m.synchronous;
|
|
1461
|
+
const d = n.transitional || ie;
|
|
1462
|
+
d && d.legacyInterceptorReqResOrdering ? c.unshift(
|
|
1463
|
+
m.fulfilled,
|
|
1464
|
+
m.rejected
|
|
1465
|
+
) : c.push(
|
|
1448
1466
|
m.fulfilled,
|
|
1449
1467
|
m.rejected
|
|
1450
|
-
)
|
|
1468
|
+
);
|
|
1451
1469
|
}
|
|
1452
1470
|
);
|
|
1453
1471
|
const f = [];
|
|
@@ -1461,24 +1479,24 @@ class j {
|
|
|
1461
1479
|
);
|
|
1462
1480
|
let l, p = 0, w;
|
|
1463
1481
|
if (!h) {
|
|
1464
|
-
const u = [
|
|
1482
|
+
const u = [Ue.bind(this), void 0];
|
|
1465
1483
|
for (u.unshift(...c), u.push(...f), w = u.length, l = Promise.resolve(n); p < w; )
|
|
1466
1484
|
l = l.then(u[p++], u[p++]);
|
|
1467
1485
|
return l;
|
|
1468
1486
|
}
|
|
1469
1487
|
w = c.length;
|
|
1470
|
-
let
|
|
1488
|
+
let R = n;
|
|
1471
1489
|
for (; p < w; ) {
|
|
1472
1490
|
const u = c[p++], m = c[p++];
|
|
1473
1491
|
try {
|
|
1474
|
-
|
|
1492
|
+
R = u(R);
|
|
1475
1493
|
} catch (d) {
|
|
1476
1494
|
m.call(this, d);
|
|
1477
1495
|
break;
|
|
1478
1496
|
}
|
|
1479
1497
|
}
|
|
1480
1498
|
try {
|
|
1481
|
-
l =
|
|
1499
|
+
l = Ue.call(this, R);
|
|
1482
1500
|
} catch (u) {
|
|
1483
1501
|
return Promise.reject(u);
|
|
1484
1502
|
}
|
|
@@ -1491,12 +1509,12 @@ class j {
|
|
|
1491
1509
|
}
|
|
1492
1510
|
getUri(e) {
|
|
1493
1511
|
e = k(this.defaults, e);
|
|
1494
|
-
const n =
|
|
1512
|
+
const n = _e(
|
|
1495
1513
|
e.baseURL,
|
|
1496
1514
|
e.url,
|
|
1497
1515
|
e.allowAbsoluteUrls
|
|
1498
1516
|
);
|
|
1499
|
-
return
|
|
1517
|
+
return je(n, e.params, e.paramsSerializer);
|
|
1500
1518
|
}
|
|
1501
1519
|
}
|
|
1502
1520
|
i.forEach(
|
|
@@ -1604,10 +1622,10 @@ const re = {
|
|
|
1604
1622
|
Object.entries(re).forEach(([t, e]) => {
|
|
1605
1623
|
re[e] = t;
|
|
1606
1624
|
});
|
|
1607
|
-
function
|
|
1625
|
+
function _t(t) {
|
|
1608
1626
|
return i.isObject(t) && t.isAxiosError === !0;
|
|
1609
1627
|
}
|
|
1610
|
-
function
|
|
1628
|
+
function Ft(t) {
|
|
1611
1629
|
return function(n) {
|
|
1612
1630
|
return t.apply(null, n);
|
|
1613
1631
|
};
|
|
@@ -1618,26 +1636,26 @@ function ve(t) {
|
|
|
1618
1636
|
return ve(k(t, s));
|
|
1619
1637
|
}, n;
|
|
1620
1638
|
}
|
|
1621
|
-
const
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1639
|
+
const g = ve(v);
|
|
1640
|
+
g.Axios = j;
|
|
1641
|
+
g.CanceledError = H;
|
|
1642
|
+
g.CancelToken = ce;
|
|
1643
|
+
g.isCancel = De;
|
|
1644
|
+
g.VERSION = He;
|
|
1645
|
+
g.toFormData = I;
|
|
1646
|
+
g.AxiosError = b;
|
|
1647
|
+
g.Cancel = g.CanceledError;
|
|
1648
|
+
g.all = function(e) {
|
|
1631
1649
|
return Promise.all(e);
|
|
1632
1650
|
};
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1651
|
+
g.spread = Ft;
|
|
1652
|
+
g.isAxiosError = _t;
|
|
1653
|
+
g.mergeConfig = k;
|
|
1654
|
+
g.AxiosHeaders = A;
|
|
1655
|
+
g.formToJSON = (t) => Ie(i.isHTMLForm(t) ? new FormData(t) : t);
|
|
1656
|
+
g.getAdapter = qe.getAdapter;
|
|
1657
|
+
g.HttpStatusCode = re;
|
|
1658
|
+
g.default = g;
|
|
1641
1659
|
export {
|
|
1642
|
-
|
|
1660
|
+
g as default
|
|
1643
1661
|
};
|