@opencloud-eu/web-client 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-43W1CNwK.cjs +6 -0
- package/dist/{index-DUkXQ4_E.cjs → index-Bx7ChFWK.cjs} +1 -1
- package/dist/{index-DQ96P-uk.js → index-DcTD5HFk.js} +333 -324
- package/dist/{index-CX217VSc.js → index-DjQzHOD1.js} +1 -1
- package/dist/web-client/graph/generated.cjs +1 -1
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/ocs.cjs +12 -12
- package/dist/web-client/ocs.js +1793 -1791
- package/dist/web-client/webdav.cjs +1 -1
- package/dist/web-client/webdav.js +2 -2
- package/dist/web-client.cjs +1 -1
- package/dist/web-client.js +2 -2
- package/package.json +1 -1
- package/dist/index-re-e8Ljt.cjs +0 -6
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
function
|
|
1
|
+
import { p as pe, g as Ze, B as Ye } from "./index-Pl8khka8.js";
|
|
2
|
+
function Ce(e, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString:
|
|
8
|
-
const n =
|
|
7
|
+
const { toString: et } = Object.prototype, { getPrototypeOf: le } = Object, { iterator: K, toStringTag: Ne } = Symbol, v = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
+
const n = et.call(t);
|
|
9
9
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) =>
|
|
11
|
-
function
|
|
12
|
-
return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) &&
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => v(t) === e), X = (e) => (t) => typeof t === e, { isArray: D } = Array, q = X("undefined");
|
|
11
|
+
function tt(e) {
|
|
12
|
+
return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
14
|
+
const Pe = C("ArrayBuffer");
|
|
15
|
+
function nt(e) {
|
|
16
16
|
let t;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
19
|
+
const rt = X("string"), A = X("function"), Fe = X("number"), G = (e) => e !== null && typeof e == "object", st = (e) => e === !0 || e === !1, $ = (e) => {
|
|
20
|
+
if (v(e) !== "object")
|
|
21
21
|
return !1;
|
|
22
|
-
const t =
|
|
23
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
24
|
-
},
|
|
22
|
+
const t = le(e);
|
|
23
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ne in e) && !(K in e);
|
|
24
|
+
}, ot = C("Date"), it = C("File"), at = C("Blob"), ct = C("FileList"), lt = (e) => G(e) && A(e.pipe), ut = (e) => {
|
|
25
25
|
let t;
|
|
26
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
27
|
-
t === "object" &&
|
|
28
|
-
},
|
|
26
|
+
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = v(e)) === "formdata" || // detect form-data instance
|
|
27
|
+
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
28
|
+
}, ft = C("URLSearchParams"), [dt, pt, ht, mt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), yt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
29
|
function H(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
30
|
if (e === null || typeof e > "u")
|
|
31
31
|
return;
|
|
@@ -40,7 +40,7 @@ function H(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
40
40
|
c = o[r], t.call(null, e[c], c, e);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function _e(e, t) {
|
|
44
44
|
t = t.toLowerCase();
|
|
45
45
|
const n = Object.keys(e);
|
|
46
46
|
let r = n.length, s;
|
|
@@ -49,75 +49,75 @@ function Pe(e, t) {
|
|
|
49
49
|
return s;
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
|
-
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window :
|
|
53
|
-
function
|
|
54
|
-
const { caseless: e } =
|
|
55
|
-
const o = e &&
|
|
56
|
-
$(t[o]) && $(r) ? t[o] =
|
|
52
|
+
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ze, Ue = (e) => !q(e) && e !== U;
|
|
53
|
+
function re() {
|
|
54
|
+
const { caseless: e } = Ue(this) && this || {}, t = {}, n = (r, s) => {
|
|
55
|
+
const o = e && _e(t, s) || s;
|
|
56
|
+
$(t[o]) && $(r) ? t[o] = re(t[o], r) : $(r) ? t[o] = re({}, r) : D(r) ? t[o] = r.slice() : t[o] = r;
|
|
57
57
|
};
|
|
58
58
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
59
59
|
arguments[r] && H(arguments[r], n);
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
n &&
|
|
64
|
-
}, { allOwnKeys: r }), e),
|
|
62
|
+
const bt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
|
|
63
|
+
n && A(s) ? e[o] = Ce(s, n) : e[o] = s;
|
|
64
|
+
}, { allOwnKeys: r }), e), wt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Et = (e, t, n, r) => {
|
|
65
65
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
66
|
value: t.prototype
|
|
67
67
|
}), n && Object.assign(e.prototype, n);
|
|
68
|
-
},
|
|
68
|
+
}, Rt = (e, t, n, r) => {
|
|
69
69
|
let s, o, i;
|
|
70
70
|
const c = {};
|
|
71
71
|
if (t = t || {}, e == null) return t;
|
|
72
72
|
do {
|
|
73
73
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
74
74
|
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
75
|
-
e = n !== !1 &&
|
|
75
|
+
e = n !== !1 && le(e);
|
|
76
76
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
77
77
|
return t;
|
|
78
|
-
},
|
|
78
|
+
}, St = (e, t, n) => {
|
|
79
79
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
80
80
|
const r = e.indexOf(t, n);
|
|
81
81
|
return r !== -1 && r === n;
|
|
82
|
-
},
|
|
82
|
+
}, gt = (e) => {
|
|
83
83
|
if (!e) return null;
|
|
84
84
|
if (D(e)) return e;
|
|
85
85
|
let t = e.length;
|
|
86
|
-
if (!
|
|
86
|
+
if (!Fe(t)) return null;
|
|
87
87
|
const n = new Array(t);
|
|
88
88
|
for (; t-- > 0; )
|
|
89
89
|
n[t] = e[t];
|
|
90
90
|
return n;
|
|
91
|
-
},
|
|
92
|
-
const r = (e && e[
|
|
91
|
+
}, Ot = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && le(Uint8Array)), Tt = (e, t) => {
|
|
92
|
+
const r = (e && e[K]).call(e);
|
|
93
93
|
let s;
|
|
94
94
|
for (; (s = r.next()) && !s.done; ) {
|
|
95
95
|
const o = s.value;
|
|
96
96
|
t.call(e, o[0], o[1]);
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, At = (e, t) => {
|
|
99
99
|
let n;
|
|
100
100
|
const r = [];
|
|
101
101
|
for (; (n = e.exec(t)) !== null; )
|
|
102
102
|
r.push(n);
|
|
103
103
|
return r;
|
|
104
|
-
},
|
|
104
|
+
}, xt = C("HTMLFormElement"), Ct = (e) => e.toLowerCase().replace(
|
|
105
105
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
106
106
|
function(n, r, s) {
|
|
107
107
|
return r.toUpperCase() + s;
|
|
108
108
|
}
|
|
109
|
-
),
|
|
109
|
+
), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Nt = C("RegExp"), Le = (e, t) => {
|
|
110
110
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
111
111
|
H(n, (s, o) => {
|
|
112
112
|
let i;
|
|
113
113
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
114
114
|
}), Object.defineProperties(e, r);
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
if (
|
|
115
|
+
}, Pt = (e) => {
|
|
116
|
+
Le(e, (t, n) => {
|
|
117
|
+
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
118
118
|
return !1;
|
|
119
119
|
const r = e[n];
|
|
120
|
-
if (
|
|
120
|
+
if (A(r)) {
|
|
121
121
|
if (t.enumerable = !1, "writable" in t) {
|
|
122
122
|
t.writable = !1;
|
|
123
123
|
return;
|
|
@@ -127,21 +127,21 @@ const mt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
-
},
|
|
130
|
+
}, Ft = (e, t) => {
|
|
131
131
|
const n = {}, r = (s) => {
|
|
132
132
|
s.forEach((o) => {
|
|
133
133
|
n[o] = !0;
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
136
|
return D(e) ? r(e) : r(String(e).split(t)), n;
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
function
|
|
140
|
-
return !!(e &&
|
|
137
|
+
}, _t = () => {
|
|
138
|
+
}, Ut = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
139
|
+
function Lt(e) {
|
|
140
|
+
return !!(e && A(e.append) && e[Ne] === "FormData" && e[K]);
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const Bt = (e) => {
|
|
143
143
|
const t = new Array(10), n = (r, s) => {
|
|
144
|
-
if (
|
|
144
|
+
if (G(r)) {
|
|
145
145
|
if (t.indexOf(r) >= 0)
|
|
146
146
|
return;
|
|
147
147
|
if (!("toJSON" in r)) {
|
|
@@ -156,70 +156,71 @@ const Ut = (e) => {
|
|
|
156
156
|
return r;
|
|
157
157
|
};
|
|
158
158
|
return n(e, 0);
|
|
159
|
-
},
|
|
159
|
+
}, Dt = C("AsyncFunction"), kt = (e) => e && (G(e) || A(e)) && A(e.then) && A(e.catch), Be = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
|
|
160
160
|
s === U && o === n && r.length && r.shift()();
|
|
161
161
|
}, !1), (s) => {
|
|
162
162
|
r.push(s), U.postMessage(n, "*");
|
|
163
163
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
164
164
|
typeof setImmediate == "function",
|
|
165
|
-
|
|
166
|
-
),
|
|
165
|
+
A(U.postMessage)
|
|
166
|
+
), jt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof pe < "u" && pe.nextTick || Be, qt = (e) => e != null && A(e[K]), a = {
|
|
167
167
|
isArray: D,
|
|
168
|
-
isArrayBuffer:
|
|
169
|
-
isBuffer:
|
|
170
|
-
isFormData:
|
|
171
|
-
isArrayBufferView:
|
|
172
|
-
isString:
|
|
173
|
-
isNumber:
|
|
174
|
-
isBoolean:
|
|
175
|
-
isObject:
|
|
168
|
+
isArrayBuffer: Pe,
|
|
169
|
+
isBuffer: tt,
|
|
170
|
+
isFormData: ut,
|
|
171
|
+
isArrayBufferView: nt,
|
|
172
|
+
isString: rt,
|
|
173
|
+
isNumber: Fe,
|
|
174
|
+
isBoolean: st,
|
|
175
|
+
isObject: G,
|
|
176
176
|
isPlainObject: $,
|
|
177
|
-
isReadableStream:
|
|
178
|
-
isRequest:
|
|
179
|
-
isResponse:
|
|
180
|
-
isHeaders:
|
|
177
|
+
isReadableStream: dt,
|
|
178
|
+
isRequest: pt,
|
|
179
|
+
isResponse: ht,
|
|
180
|
+
isHeaders: mt,
|
|
181
181
|
isUndefined: q,
|
|
182
|
-
isDate:
|
|
183
|
-
isFile:
|
|
184
|
-
isBlob:
|
|
185
|
-
isRegExp:
|
|
186
|
-
isFunction:
|
|
187
|
-
isStream:
|
|
188
|
-
isURLSearchParams:
|
|
189
|
-
isTypedArray:
|
|
190
|
-
isFileList:
|
|
182
|
+
isDate: ot,
|
|
183
|
+
isFile: it,
|
|
184
|
+
isBlob: at,
|
|
185
|
+
isRegExp: Nt,
|
|
186
|
+
isFunction: A,
|
|
187
|
+
isStream: lt,
|
|
188
|
+
isURLSearchParams: ft,
|
|
189
|
+
isTypedArray: Ot,
|
|
190
|
+
isFileList: ct,
|
|
191
191
|
forEach: H,
|
|
192
|
-
merge:
|
|
193
|
-
extend:
|
|
194
|
-
trim:
|
|
195
|
-
stripBOM:
|
|
196
|
-
inherits:
|
|
197
|
-
toFlatObject:
|
|
198
|
-
kindOf:
|
|
192
|
+
merge: re,
|
|
193
|
+
extend: bt,
|
|
194
|
+
trim: yt,
|
|
195
|
+
stripBOM: wt,
|
|
196
|
+
inherits: Et,
|
|
197
|
+
toFlatObject: Rt,
|
|
198
|
+
kindOf: v,
|
|
199
199
|
kindOfTest: C,
|
|
200
|
-
endsWith:
|
|
201
|
-
toArray:
|
|
202
|
-
forEachEntry:
|
|
203
|
-
matchAll:
|
|
204
|
-
isHTMLForm:
|
|
205
|
-
hasOwnProperty:
|
|
206
|
-
hasOwnProp:
|
|
200
|
+
endsWith: St,
|
|
201
|
+
toArray: gt,
|
|
202
|
+
forEachEntry: Tt,
|
|
203
|
+
matchAll: At,
|
|
204
|
+
isHTMLForm: xt,
|
|
205
|
+
hasOwnProperty: he,
|
|
206
|
+
hasOwnProp: he,
|
|
207
207
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
208
|
-
reduceDescriptors:
|
|
209
|
-
freezeMethods:
|
|
210
|
-
toObjectSet:
|
|
211
|
-
toCamelCase:
|
|
212
|
-
noop:
|
|
213
|
-
toFiniteNumber:
|
|
214
|
-
findKey:
|
|
208
|
+
reduceDescriptors: Le,
|
|
209
|
+
freezeMethods: Pt,
|
|
210
|
+
toObjectSet: Ft,
|
|
211
|
+
toCamelCase: Ct,
|
|
212
|
+
noop: _t,
|
|
213
|
+
toFiniteNumber: Ut,
|
|
214
|
+
findKey: _e,
|
|
215
215
|
global: U,
|
|
216
|
-
isContextDefined:
|
|
217
|
-
isSpecCompliantForm:
|
|
218
|
-
toJSONObject:
|
|
219
|
-
isAsyncFn:
|
|
220
|
-
isThenable:
|
|
221
|
-
setImmediate:
|
|
222
|
-
asap:
|
|
216
|
+
isContextDefined: Ue,
|
|
217
|
+
isSpecCompliantForm: Lt,
|
|
218
|
+
toJSONObject: Bt,
|
|
219
|
+
isAsyncFn: Dt,
|
|
220
|
+
isThenable: kt,
|
|
221
|
+
setImmediate: Be,
|
|
222
|
+
asap: jt,
|
|
223
|
+
isIterable: qt
|
|
223
224
|
};
|
|
224
225
|
function m(e, t, n, r, s) {
|
|
225
226
|
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);
|
|
@@ -245,7 +246,7 @@ a.inherits(m, Error, {
|
|
|
245
246
|
};
|
|
246
247
|
}
|
|
247
248
|
});
|
|
248
|
-
const
|
|
249
|
+
const De = m.prototype, ke = {};
|
|
249
250
|
[
|
|
250
251
|
"ERR_BAD_OPTION_VALUE",
|
|
251
252
|
"ERR_BAD_OPTION",
|
|
@@ -261,35 +262,35 @@ const Le = m.prototype, Be = {};
|
|
|
261
262
|
"ERR_INVALID_URL"
|
|
262
263
|
// eslint-disable-next-line func-names
|
|
263
264
|
].forEach((e) => {
|
|
264
|
-
|
|
265
|
+
ke[e] = { value: e };
|
|
265
266
|
});
|
|
266
|
-
Object.defineProperties(m,
|
|
267
|
-
Object.defineProperty(
|
|
267
|
+
Object.defineProperties(m, ke);
|
|
268
|
+
Object.defineProperty(De, "isAxiosError", { value: !0 });
|
|
268
269
|
m.from = (e, t, n, r, s, o) => {
|
|
269
|
-
const i = Object.create(
|
|
270
|
+
const i = Object.create(De);
|
|
270
271
|
return a.toFlatObject(e, i, function(f) {
|
|
271
272
|
return f !== Error.prototype;
|
|
272
273
|
}, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
273
274
|
};
|
|
274
|
-
const
|
|
275
|
-
function
|
|
275
|
+
const Ht = null;
|
|
276
|
+
function se(e) {
|
|
276
277
|
return a.isPlainObject(e) || a.isArray(e);
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
+
function je(e) {
|
|
279
280
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
+
function me(e, t, n) {
|
|
282
283
|
return e ? e.concat(t).map(function(s, o) {
|
|
283
|
-
return s =
|
|
284
|
+
return s = je(s), !n && o ? "[" + s + "]" : s;
|
|
284
285
|
}).join(n ? "." : "") : t;
|
|
285
286
|
}
|
|
286
|
-
function
|
|
287
|
-
return a.isArray(e) && !e.some(
|
|
287
|
+
function It(e) {
|
|
288
|
+
return a.isArray(e) && !e.some(se);
|
|
288
289
|
}
|
|
289
|
-
const
|
|
290
|
+
const Mt = a.toFlatObject(a, {}, null, function(t) {
|
|
290
291
|
return /^is[A-Z]/.test(t);
|
|
291
292
|
});
|
|
292
|
-
function
|
|
293
|
+
function Q(e, t, n) {
|
|
293
294
|
if (!a.isObject(e))
|
|
294
295
|
throw new TypeError("target must be an object");
|
|
295
296
|
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
@@ -308,28 +309,28 @@ function G(e, t, n) {
|
|
|
308
309
|
return p.toISOString();
|
|
309
310
|
if (!f && a.isBlob(p))
|
|
310
311
|
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
311
|
-
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) :
|
|
312
|
+
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Ye.from(p) : p;
|
|
312
313
|
}
|
|
313
314
|
function u(p, y, h) {
|
|
314
315
|
let w = p;
|
|
315
316
|
if (p && !h && typeof p == "object") {
|
|
316
317
|
if (a.endsWith(y, "{}"))
|
|
317
318
|
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
318
|
-
else if (a.isArray(p) &&
|
|
319
|
-
return y =
|
|
319
|
+
else if (a.isArray(p) && It(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (w = a.toArray(p)))
|
|
320
|
+
return y = je(y), w.forEach(function(g, P) {
|
|
320
321
|
!(a.isUndefined(g) || g === null) && t.append(
|
|
321
322
|
// eslint-disable-next-line no-nested-ternary
|
|
322
|
-
i === !0 ?
|
|
323
|
+
i === !0 ? me([y], P, o) : i === null ? y : y + "[]",
|
|
323
324
|
l(g)
|
|
324
325
|
);
|
|
325
326
|
}), !1;
|
|
326
327
|
}
|
|
327
|
-
return
|
|
328
|
+
return se(p) ? !0 : (t.append(me(h, y, o), l(p)), !1);
|
|
328
329
|
}
|
|
329
|
-
const d = [], b = Object.assign(
|
|
330
|
+
const d = [], b = Object.assign(Mt, {
|
|
330
331
|
defaultVisitor: u,
|
|
331
332
|
convertValue: l,
|
|
332
|
-
isVisitable:
|
|
333
|
+
isVisitable: se
|
|
333
334
|
});
|
|
334
335
|
function R(p, y) {
|
|
335
336
|
if (!a.isUndefined(p)) {
|
|
@@ -350,7 +351,7 @@ function G(e, t, n) {
|
|
|
350
351
|
throw new TypeError("data must be an object");
|
|
351
352
|
return R(e), t;
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function ye(e) {
|
|
354
355
|
const t = {
|
|
355
356
|
"!": "%21",
|
|
356
357
|
"'": "%27",
|
|
@@ -364,40 +365,40 @@ function me(e) {
|
|
|
364
365
|
return t[r];
|
|
365
366
|
});
|
|
366
367
|
}
|
|
367
|
-
function
|
|
368
|
-
this._pairs = [], e &&
|
|
368
|
+
function ue(e, t) {
|
|
369
|
+
this._pairs = [], e && Q(e, this, t);
|
|
369
370
|
}
|
|
370
|
-
const
|
|
371
|
-
|
|
371
|
+
const qe = ue.prototype;
|
|
372
|
+
qe.append = function(t, n) {
|
|
372
373
|
this._pairs.push([t, n]);
|
|
373
374
|
};
|
|
374
|
-
|
|
375
|
+
qe.toString = function(t) {
|
|
375
376
|
const n = t ? function(r) {
|
|
376
|
-
return t.call(this, r,
|
|
377
|
-
} :
|
|
377
|
+
return t.call(this, r, ye);
|
|
378
|
+
} : ye;
|
|
378
379
|
return this._pairs.map(function(s) {
|
|
379
380
|
return n(s[0]) + "=" + n(s[1]);
|
|
380
381
|
}, "").join("&");
|
|
381
382
|
};
|
|
382
|
-
function
|
|
383
|
+
function $t(e) {
|
|
383
384
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
384
385
|
}
|
|
385
|
-
function
|
|
386
|
+
function He(e, t, n) {
|
|
386
387
|
if (!t)
|
|
387
388
|
return e;
|
|
388
|
-
const r = n && n.encode ||
|
|
389
|
+
const r = n && n.encode || $t;
|
|
389
390
|
a.isFunction(n) && (n = {
|
|
390
391
|
serialize: n
|
|
391
392
|
});
|
|
392
393
|
const s = n && n.serialize;
|
|
393
394
|
let o;
|
|
394
|
-
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new
|
|
395
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ue(t, n).toString(r), o) {
|
|
395
396
|
const i = e.indexOf("#");
|
|
396
397
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
397
398
|
}
|
|
398
399
|
return e;
|
|
399
400
|
}
|
|
400
|
-
class
|
|
401
|
+
class be {
|
|
401
402
|
constructor() {
|
|
402
403
|
this.handlers = [];
|
|
403
404
|
}
|
|
@@ -451,41 +452,41 @@ class ye {
|
|
|
451
452
|
});
|
|
452
453
|
}
|
|
453
454
|
}
|
|
454
|
-
const
|
|
455
|
+
const Ie = {
|
|
455
456
|
silentJSONParsing: !0,
|
|
456
457
|
forcedJSONParsing: !0,
|
|
457
458
|
clarifyTimeoutError: !1
|
|
458
|
-
},
|
|
459
|
+
}, zt = typeof URLSearchParams < "u" ? URLSearchParams : ue, Jt = typeof FormData < "u" ? FormData : null, Vt = typeof Blob < "u" ? Blob : null, Wt = {
|
|
459
460
|
isBrowser: !0,
|
|
460
461
|
classes: {
|
|
461
|
-
URLSearchParams:
|
|
462
|
-
FormData:
|
|
463
|
-
Blob:
|
|
462
|
+
URLSearchParams: zt,
|
|
463
|
+
FormData: Jt,
|
|
464
|
+
Blob: Vt
|
|
464
465
|
},
|
|
465
466
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
466
|
-
},
|
|
467
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
467
|
+
}, fe = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0, Kt = fe && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0), vt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
468
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xt = fe && window.location.href || "http://localhost", Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
468
469
|
__proto__: null,
|
|
469
|
-
hasBrowserEnv:
|
|
470
|
-
hasStandardBrowserEnv:
|
|
471
|
-
hasStandardBrowserWebWorkerEnv:
|
|
472
|
-
navigator:
|
|
473
|
-
origin:
|
|
470
|
+
hasBrowserEnv: fe,
|
|
471
|
+
hasStandardBrowserEnv: Kt,
|
|
472
|
+
hasStandardBrowserWebWorkerEnv: vt,
|
|
473
|
+
navigator: oe,
|
|
474
|
+
origin: Xt
|
|
474
475
|
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
475
|
-
...
|
|
476
|
-
...
|
|
476
|
+
...Gt,
|
|
477
|
+
...Wt
|
|
477
478
|
};
|
|
478
|
-
function
|
|
479
|
-
return
|
|
479
|
+
function Qt(e, t) {
|
|
480
|
+
return Q(e, new O.classes.URLSearchParams(), Object.assign({
|
|
480
481
|
visitor: function(n, r, s, o) {
|
|
481
482
|
return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
482
483
|
}
|
|
483
484
|
}, t));
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
+
function Zt(e) {
|
|
486
487
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
487
488
|
}
|
|
488
|
-
function
|
|
489
|
+
function Yt(e) {
|
|
489
490
|
const t = {}, n = Object.keys(e);
|
|
490
491
|
let r;
|
|
491
492
|
const s = n.length;
|
|
@@ -494,22 +495,22 @@ function Gt(e) {
|
|
|
494
495
|
o = n[r], t[o] = e[o];
|
|
495
496
|
return t;
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
+
function Me(e) {
|
|
498
499
|
function t(n, r, s, o) {
|
|
499
500
|
let i = n[o++];
|
|
500
501
|
if (i === "__proto__") return !0;
|
|
501
502
|
const c = Number.isFinite(+i), f = o >= n.length;
|
|
502
|
-
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] =
|
|
503
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Yt(s[i])), !c);
|
|
503
504
|
}
|
|
504
505
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
505
506
|
const n = {};
|
|
506
507
|
return a.forEachEntry(e, (r, s) => {
|
|
507
|
-
t(
|
|
508
|
+
t(Zt(r), s, n, 0);
|
|
508
509
|
}), n;
|
|
509
510
|
}
|
|
510
511
|
return null;
|
|
511
512
|
}
|
|
512
|
-
function
|
|
513
|
+
function en(e, t, n) {
|
|
513
514
|
if (a.isString(e))
|
|
514
515
|
try {
|
|
515
516
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -520,12 +521,12 @@ function Qt(e, t, n) {
|
|
|
520
521
|
return (n || JSON.stringify)(e);
|
|
521
522
|
}
|
|
522
523
|
const I = {
|
|
523
|
-
transitional:
|
|
524
|
+
transitional: Ie,
|
|
524
525
|
adapter: ["xhr", "http", "fetch"],
|
|
525
526
|
transformRequest: [function(t, n) {
|
|
526
527
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
527
528
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
528
|
-
return s ? JSON.stringify(
|
|
529
|
+
return s ? JSON.stringify(Me(t)) : t;
|
|
529
530
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
530
531
|
return t;
|
|
531
532
|
if (a.isArrayBufferView(t))
|
|
@@ -535,17 +536,17 @@ const I = {
|
|
|
535
536
|
let c;
|
|
536
537
|
if (o) {
|
|
537
538
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
538
|
-
return
|
|
539
|
+
return Qt(t, this.formSerializer).toString();
|
|
539
540
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
540
541
|
const f = this.env && this.env.FormData;
|
|
541
|
-
return
|
|
542
|
+
return Q(
|
|
542
543
|
c ? { "files[]": t } : t,
|
|
543
544
|
f && new f(),
|
|
544
545
|
this.formSerializer
|
|
545
546
|
);
|
|
546
547
|
}
|
|
547
548
|
}
|
|
548
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
549
|
+
return o || s ? (n.setContentType("application/json", !1), en(t)) : t;
|
|
549
550
|
}],
|
|
550
551
|
transformResponse: [function(t) {
|
|
551
552
|
const n = this.transitional || I.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -588,7 +589,7 @@ const I = {
|
|
|
588
589
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
589
590
|
I.headers[e] = {};
|
|
590
591
|
});
|
|
591
|
-
const
|
|
592
|
+
const tn = a.toObjectSet([
|
|
592
593
|
"age",
|
|
593
594
|
"authorization",
|
|
594
595
|
"content-length",
|
|
@@ -606,29 +607,29 @@ const Zt = a.toObjectSet([
|
|
|
606
607
|
"referer",
|
|
607
608
|
"retry-after",
|
|
608
609
|
"user-agent"
|
|
609
|
-
]),
|
|
610
|
+
]), nn = (e) => {
|
|
610
611
|
const t = {};
|
|
611
612
|
let n, r, s;
|
|
612
613
|
return e && e.split(`
|
|
613
614
|
`).forEach(function(i) {
|
|
614
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
615
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && tn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
615
616
|
}), t;
|
|
616
|
-
},
|
|
617
|
+
}, we = Symbol("internals");
|
|
617
618
|
function j(e) {
|
|
618
619
|
return e && String(e).trim().toLowerCase();
|
|
619
620
|
}
|
|
620
621
|
function z(e) {
|
|
621
622
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(z) : String(e);
|
|
622
623
|
}
|
|
623
|
-
function
|
|
624
|
+
function rn(e) {
|
|
624
625
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
625
626
|
let r;
|
|
626
627
|
for (; r = n.exec(e); )
|
|
627
628
|
t[r[1]] = r[2];
|
|
628
629
|
return t;
|
|
629
630
|
}
|
|
630
|
-
const
|
|
631
|
-
function
|
|
631
|
+
const sn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
632
|
+
function ee(e, t, n, r, s) {
|
|
632
633
|
if (a.isFunction(r))
|
|
633
634
|
return r.call(this, t, n);
|
|
634
635
|
if (s && (t = n), !!a.isString(t)) {
|
|
@@ -638,10 +639,10 @@ function Y(e, t, n, r, s) {
|
|
|
638
639
|
return r.test(t);
|
|
639
640
|
}
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
+
function on(e) {
|
|
642
643
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
643
644
|
}
|
|
644
|
-
function
|
|
645
|
+
function an(e, t) {
|
|
645
646
|
const n = a.toCamelCase(" " + t);
|
|
646
647
|
["get", "set", "has"].forEach((r) => {
|
|
647
648
|
Object.defineProperty(e, r + n, {
|
|
@@ -652,7 +653,7 @@ function rn(e, t) {
|
|
|
652
653
|
});
|
|
653
654
|
});
|
|
654
655
|
}
|
|
655
|
-
let
|
|
656
|
+
let x = class {
|
|
656
657
|
constructor(t) {
|
|
657
658
|
t && this.set(t);
|
|
658
659
|
}
|
|
@@ -668,12 +669,17 @@ let A = class {
|
|
|
668
669
|
const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
|
|
669
670
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
670
671
|
i(t, n);
|
|
671
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
672
|
-
i(
|
|
673
|
-
else if (a.
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
672
|
+
else if (a.isString(t) && (t = t.trim()) && !sn(t))
|
|
673
|
+
i(nn(t), n);
|
|
674
|
+
else if (a.isObject(t) && a.isIterable(t)) {
|
|
675
|
+
let c = {}, f, l;
|
|
676
|
+
for (const u of t) {
|
|
677
|
+
if (!a.isArray(u))
|
|
678
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
679
|
+
c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
|
|
680
|
+
}
|
|
681
|
+
i(c, n);
|
|
682
|
+
} else
|
|
677
683
|
t != null && o(n, t, r);
|
|
678
684
|
return this;
|
|
679
685
|
}
|
|
@@ -685,7 +691,7 @@ let A = class {
|
|
|
685
691
|
if (!n)
|
|
686
692
|
return s;
|
|
687
693
|
if (n === !0)
|
|
688
|
-
return
|
|
694
|
+
return rn(s);
|
|
689
695
|
if (a.isFunction(n))
|
|
690
696
|
return n.call(this, s, r);
|
|
691
697
|
if (a.isRegExp(n))
|
|
@@ -697,7 +703,7 @@ let A = class {
|
|
|
697
703
|
has(t, n) {
|
|
698
704
|
if (t = j(t), t) {
|
|
699
705
|
const r = a.findKey(this, t);
|
|
700
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
706
|
+
return !!(r && this[r] !== void 0 && (!n || ee(this, this[r], r, n)));
|
|
701
707
|
}
|
|
702
708
|
return !1;
|
|
703
709
|
}
|
|
@@ -707,7 +713,7 @@ let A = class {
|
|
|
707
713
|
function o(i) {
|
|
708
714
|
if (i = j(i), i) {
|
|
709
715
|
const c = a.findKey(r, i);
|
|
710
|
-
c && (!n ||
|
|
716
|
+
c && (!n || ee(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
711
717
|
}
|
|
712
718
|
}
|
|
713
719
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
@@ -717,7 +723,7 @@ let A = class {
|
|
|
717
723
|
let r = n.length, s = !1;
|
|
718
724
|
for (; r--; ) {
|
|
719
725
|
const o = n[r];
|
|
720
|
-
(!t ||
|
|
726
|
+
(!t || ee(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
721
727
|
}
|
|
722
728
|
return s;
|
|
723
729
|
}
|
|
@@ -729,7 +735,7 @@ let A = class {
|
|
|
729
735
|
n[i] = z(s), delete n[o];
|
|
730
736
|
return;
|
|
731
737
|
}
|
|
732
|
-
const c = t ?
|
|
738
|
+
const c = t ? on(o) : String(o).trim();
|
|
733
739
|
c !== o && delete n[o], n[c] = z(s), r[c] = !0;
|
|
734
740
|
}), this;
|
|
735
741
|
}
|
|
@@ -749,6 +755,9 @@ let A = class {
|
|
|
749
755
|
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
750
756
|
`);
|
|
751
757
|
}
|
|
758
|
+
getSetCookie() {
|
|
759
|
+
return this.get("set-cookie") || [];
|
|
760
|
+
}
|
|
752
761
|
get [Symbol.toStringTag]() {
|
|
753
762
|
return "AxiosHeaders";
|
|
754
763
|
}
|
|
@@ -760,18 +769,18 @@ let A = class {
|
|
|
760
769
|
return n.forEach((s) => r.set(s)), r;
|
|
761
770
|
}
|
|
762
771
|
static accessor(t) {
|
|
763
|
-
const r = (this[
|
|
772
|
+
const r = (this[we] = this[we] = {
|
|
764
773
|
accessors: {}
|
|
765
774
|
}).accessors, s = this.prototype;
|
|
766
775
|
function o(i) {
|
|
767
776
|
const c = j(i);
|
|
768
|
-
r[c] || (
|
|
777
|
+
r[c] || (an(s, i), r[c] = !0);
|
|
769
778
|
}
|
|
770
779
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
771
780
|
}
|
|
772
781
|
};
|
|
773
|
-
|
|
774
|
-
a.reduceDescriptors(
|
|
782
|
+
x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
783
|
+
a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
775
784
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
776
785
|
return {
|
|
777
786
|
get: () => e,
|
|
@@ -780,15 +789,15 @@ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
|
|
|
780
789
|
}
|
|
781
790
|
};
|
|
782
791
|
});
|
|
783
|
-
a.freezeMethods(
|
|
784
|
-
function
|
|
785
|
-
const n = this || I, r = t || n, s =
|
|
792
|
+
a.freezeMethods(x);
|
|
793
|
+
function te(e, t) {
|
|
794
|
+
const n = this || I, r = t || n, s = x.from(r.headers);
|
|
786
795
|
let o = r.data;
|
|
787
796
|
return a.forEach(e, function(c) {
|
|
788
797
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
789
798
|
}), s.normalize(), o;
|
|
790
799
|
}
|
|
791
|
-
function
|
|
800
|
+
function $e(e) {
|
|
792
801
|
return !!(e && e.__CANCEL__);
|
|
793
802
|
}
|
|
794
803
|
function k(e, t, n) {
|
|
@@ -797,7 +806,7 @@ function k(e, t, n) {
|
|
|
797
806
|
a.inherits(k, m, {
|
|
798
807
|
__CANCEL__: !0
|
|
799
808
|
});
|
|
800
|
-
function
|
|
809
|
+
function ze(e, t, n) {
|
|
801
810
|
const r = n.config.validateStatus;
|
|
802
811
|
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
803
812
|
"Request failed with status code " + n.status,
|
|
@@ -807,11 +816,11 @@ function Me(e, t, n) {
|
|
|
807
816
|
n
|
|
808
817
|
));
|
|
809
818
|
}
|
|
810
|
-
function
|
|
819
|
+
function cn(e) {
|
|
811
820
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
812
821
|
return t && t[1] || "";
|
|
813
822
|
}
|
|
814
|
-
function
|
|
823
|
+
function ln(e, t) {
|
|
815
824
|
e = e || 10;
|
|
816
825
|
const n = new Array(e), r = new Array(e);
|
|
817
826
|
let s = 0, o = 0, i;
|
|
@@ -827,7 +836,7 @@ function on(e, t) {
|
|
|
827
836
|
return R ? Math.round(b * 1e3 / R) : void 0;
|
|
828
837
|
};
|
|
829
838
|
}
|
|
830
|
-
function
|
|
839
|
+
function un(e, t) {
|
|
831
840
|
let n = 0, r = 1e3 / t, s, o;
|
|
832
841
|
const i = (l, u = Date.now()) => {
|
|
833
842
|
n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l);
|
|
@@ -841,8 +850,8 @@ function an(e, t) {
|
|
|
841
850
|
}
|
|
842
851
|
const V = (e, t, n = 3) => {
|
|
843
852
|
let r = 0;
|
|
844
|
-
const s =
|
|
845
|
-
return
|
|
853
|
+
const s = ln(50, 250);
|
|
854
|
+
return un((o) => {
|
|
846
855
|
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= c;
|
|
847
856
|
r = i;
|
|
848
857
|
const d = {
|
|
@@ -858,17 +867,17 @@ const V = (e, t, n = 3) => {
|
|
|
858
867
|
};
|
|
859
868
|
e(d);
|
|
860
869
|
}, n);
|
|
861
|
-
},
|
|
870
|
+
}, Ee = (e, t) => {
|
|
862
871
|
const n = e != null;
|
|
863
872
|
return [(r) => t[0]({
|
|
864
873
|
lengthComputable: n,
|
|
865
874
|
total: e,
|
|
866
875
|
loaded: r
|
|
867
876
|
}), t[1]];
|
|
868
|
-
},
|
|
877
|
+
}, Re = (e) => (...t) => a.asap(() => e(...t)), fn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
869
878
|
new URL(O.origin),
|
|
870
879
|
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
871
|
-
) : () => !0,
|
|
880
|
+
) : () => !0, dn = O.hasStandardBrowserEnv ? (
|
|
872
881
|
// Standard browser envs support document.cookie
|
|
873
882
|
{
|
|
874
883
|
write(e, t, n, r, s, o) {
|
|
@@ -895,17 +904,17 @@ const V = (e, t, n = 3) => {
|
|
|
895
904
|
}
|
|
896
905
|
}
|
|
897
906
|
);
|
|
898
|
-
function
|
|
907
|
+
function pn(e) {
|
|
899
908
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
900
909
|
}
|
|
901
|
-
function
|
|
910
|
+
function hn(e, t) {
|
|
902
911
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
903
912
|
}
|
|
904
|
-
function
|
|
905
|
-
let r = !
|
|
906
|
-
return e && (r || n == !1) ?
|
|
913
|
+
function Je(e, t, n) {
|
|
914
|
+
let r = !pn(t);
|
|
915
|
+
return e && (r || n == !1) ? hn(e, t) : t;
|
|
907
916
|
}
|
|
908
|
-
const
|
|
917
|
+
const Se = (e) => e instanceof x ? { ...e } : e;
|
|
909
918
|
function B(e, t) {
|
|
910
919
|
t = t || {};
|
|
911
920
|
const n = {};
|
|
@@ -963,17 +972,17 @@ function B(e, t) {
|
|
|
963
972
|
socketPath: i,
|
|
964
973
|
responseEncoding: i,
|
|
965
974
|
validateStatus: c,
|
|
966
|
-
headers: (l, u, d) => s(
|
|
975
|
+
headers: (l, u, d) => s(Se(l), Se(u), d, !0)
|
|
967
976
|
};
|
|
968
977
|
return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
969
978
|
const d = f[u] || s, b = d(e[u], t[u], u);
|
|
970
979
|
a.isUndefined(b) && d !== c || (n[u] = b);
|
|
971
980
|
}), n;
|
|
972
981
|
}
|
|
973
|
-
const
|
|
982
|
+
const Ve = (e) => {
|
|
974
983
|
const t = B({}, e);
|
|
975
984
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
976
|
-
t.headers = i =
|
|
985
|
+
t.headers = i = x.from(i), t.url = He(Je(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
977
986
|
"Authorization",
|
|
978
987
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
979
988
|
);
|
|
@@ -986,16 +995,16 @@ const ze = (e) => {
|
|
|
986
995
|
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
987
996
|
}
|
|
988
997
|
}
|
|
989
|
-
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
990
|
-
const l = s && o &&
|
|
998
|
+
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && fn(t.url))) {
|
|
999
|
+
const l = s && o && dn.read(o);
|
|
991
1000
|
l && i.set(s, l);
|
|
992
1001
|
}
|
|
993
1002
|
return t;
|
|
994
|
-
},
|
|
1003
|
+
}, mn = typeof XMLHttpRequest < "u", yn = mn && function(e) {
|
|
995
1004
|
return new Promise(function(n, r) {
|
|
996
|
-
const s =
|
|
1005
|
+
const s = Ve(e);
|
|
997
1006
|
let o = s.data;
|
|
998
|
-
const i =
|
|
1007
|
+
const i = x.from(s.headers).normalize();
|
|
999
1008
|
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, b, R, p;
|
|
1000
1009
|
function y() {
|
|
1001
1010
|
R && R(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
@@ -1005,7 +1014,7 @@ const ze = (e) => {
|
|
|
1005
1014
|
function w() {
|
|
1006
1015
|
if (!h)
|
|
1007
1016
|
return;
|
|
1008
|
-
const g =
|
|
1017
|
+
const g = x.from(
|
|
1009
1018
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1010
1019
|
), T = {
|
|
1011
1020
|
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
@@ -1015,7 +1024,7 @@ const ze = (e) => {
|
|
|
1015
1024
|
config: e,
|
|
1016
1025
|
request: h
|
|
1017
1026
|
};
|
|
1018
|
-
|
|
1027
|
+
ze(function(_) {
|
|
1019
1028
|
n(_), y();
|
|
1020
1029
|
}, function(_) {
|
|
1021
1030
|
r(_), y();
|
|
@@ -1029,7 +1038,7 @@ const ze = (e) => {
|
|
|
1029
1038
|
r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
|
|
1030
1039
|
}, h.ontimeout = function() {
|
|
1031
1040
|
let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1032
|
-
const T = s.transitional ||
|
|
1041
|
+
const T = s.transitional || Ie;
|
|
1033
1042
|
s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m(
|
|
1034
1043
|
P,
|
|
1035
1044
|
T.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
@@ -1041,14 +1050,14 @@ const ze = (e) => {
|
|
|
1041
1050
|
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, p] = V(l, !0), h.addEventListener("progress", b)), f && h.upload && ([d, R] = V(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (g) => {
|
|
1042
1051
|
h && (r(!g || g.type ? new k(null, e, h) : g), h.abort(), h = null);
|
|
1043
1052
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1044
|
-
const S =
|
|
1053
|
+
const S = cn(s.url);
|
|
1045
1054
|
if (S && O.protocols.indexOf(S) === -1) {
|
|
1046
1055
|
r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, e));
|
|
1047
1056
|
return;
|
|
1048
1057
|
}
|
|
1049
1058
|
h.send(o || null);
|
|
1050
1059
|
});
|
|
1051
|
-
},
|
|
1060
|
+
}, bn = (e, t) => {
|
|
1052
1061
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1053
1062
|
if (t || n) {
|
|
1054
1063
|
let r = new AbortController(), s;
|
|
@@ -1071,7 +1080,7 @@ const ze = (e) => {
|
|
|
1071
1080
|
const { signal: f } = r;
|
|
1072
1081
|
return f.unsubscribe = () => a.asap(c), f;
|
|
1073
1082
|
}
|
|
1074
|
-
},
|
|
1083
|
+
}, wn = function* (e, t) {
|
|
1075
1084
|
let n = e.byteLength;
|
|
1076
1085
|
if (n < t) {
|
|
1077
1086
|
yield e;
|
|
@@ -1080,10 +1089,10 @@ const ze = (e) => {
|
|
|
1080
1089
|
let r = 0, s;
|
|
1081
1090
|
for (; r < n; )
|
|
1082
1091
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1083
|
-
},
|
|
1084
|
-
for await (const n of
|
|
1085
|
-
yield*
|
|
1086
|
-
},
|
|
1092
|
+
}, En = async function* (e, t) {
|
|
1093
|
+
for await (const n of Rn(e))
|
|
1094
|
+
yield* wn(n, t);
|
|
1095
|
+
}, Rn = async function* (e) {
|
|
1087
1096
|
if (e[Symbol.asyncIterator]) {
|
|
1088
1097
|
yield* e;
|
|
1089
1098
|
return;
|
|
@@ -1099,8 +1108,8 @@ const ze = (e) => {
|
|
|
1099
1108
|
} finally {
|
|
1100
1109
|
await t.cancel();
|
|
1101
1110
|
}
|
|
1102
|
-
},
|
|
1103
|
-
const s =
|
|
1111
|
+
}, ge = (e, t, n, r) => {
|
|
1112
|
+
const s = En(e, t);
|
|
1104
1113
|
let o = 0, i, c = (f) => {
|
|
1105
1114
|
i || (i = !0, r && r(f));
|
|
1106
1115
|
};
|
|
@@ -1128,13 +1137,13 @@ const ze = (e) => {
|
|
|
1128
1137
|
}, {
|
|
1129
1138
|
highWaterMark: 2
|
|
1130
1139
|
});
|
|
1131
|
-
},
|
|
1140
|
+
}, Z = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", We = Z && typeof ReadableStream == "function", Sn = Z && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ke = (e, ...t) => {
|
|
1132
1141
|
try {
|
|
1133
1142
|
return !!e(...t);
|
|
1134
1143
|
} catch {
|
|
1135
1144
|
return !1;
|
|
1136
1145
|
}
|
|
1137
|
-
},
|
|
1146
|
+
}, gn = We && Ke(() => {
|
|
1138
1147
|
let e = !1;
|
|
1139
1148
|
const t = new Request(O.origin, {
|
|
1140
1149
|
body: new ReadableStream(),
|
|
@@ -1144,17 +1153,17 @@ const ze = (e) => {
|
|
|
1144
1153
|
}
|
|
1145
1154
|
}).headers.has("Content-Type");
|
|
1146
1155
|
return e && !t;
|
|
1147
|
-
}),
|
|
1148
|
-
stream:
|
|
1156
|
+
}), Oe = 64 * 1024, ie = We && Ke(() => a.isReadableStream(new Response("").body)), W = {
|
|
1157
|
+
stream: ie && ((e) => e.body)
|
|
1149
1158
|
};
|
|
1150
|
-
|
|
1159
|
+
Z && ((e) => {
|
|
1151
1160
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1152
1161
|
!W[t] && (W[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1153
1162
|
throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
|
|
1154
1163
|
});
|
|
1155
1164
|
});
|
|
1156
1165
|
})(new Response());
|
|
1157
|
-
const
|
|
1166
|
+
const On = async (e) => {
|
|
1158
1167
|
if (e == null)
|
|
1159
1168
|
return 0;
|
|
1160
1169
|
if (a.isBlob(e))
|
|
@@ -1167,11 +1176,11 @@ const Rn = async (e) => {
|
|
|
1167
1176
|
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1168
1177
|
return e.byteLength;
|
|
1169
1178
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1170
|
-
return (await
|
|
1171
|
-
},
|
|
1179
|
+
return (await Sn(e)).byteLength;
|
|
1180
|
+
}, Tn = async (e, t) => {
|
|
1172
1181
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1173
|
-
return n ??
|
|
1174
|
-
},
|
|
1182
|
+
return n ?? On(t);
|
|
1183
|
+
}, An = Z && (async (e) => {
|
|
1175
1184
|
let {
|
|
1176
1185
|
url: t,
|
|
1177
1186
|
method: n,
|
|
@@ -1185,26 +1194,26 @@ const Rn = async (e) => {
|
|
|
1185
1194
|
headers: u,
|
|
1186
1195
|
withCredentials: d = "same-origin",
|
|
1187
1196
|
fetchOptions: b
|
|
1188
|
-
} =
|
|
1197
|
+
} = Ve(e);
|
|
1189
1198
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1190
|
-
let R =
|
|
1199
|
+
let R = bn([s, o && o.toAbortSignal()], i), p;
|
|
1191
1200
|
const y = R && R.unsubscribe && (() => {
|
|
1192
1201
|
R.unsubscribe();
|
|
1193
1202
|
});
|
|
1194
1203
|
let h;
|
|
1195
1204
|
try {
|
|
1196
|
-
if (f &&
|
|
1205
|
+
if (f && gn && n !== "get" && n !== "head" && (h = await Tn(u, r)) !== 0) {
|
|
1197
1206
|
let T = new Request(t, {
|
|
1198
1207
|
method: "POST",
|
|
1199
1208
|
body: r,
|
|
1200
1209
|
duplex: "half"
|
|
1201
1210
|
}), F;
|
|
1202
1211
|
if (a.isFormData(r) && (F = T.headers.get("content-type")) && u.setContentType(F), T.body) {
|
|
1203
|
-
const [_, M] =
|
|
1212
|
+
const [_, M] = Ee(
|
|
1204
1213
|
h,
|
|
1205
|
-
V(
|
|
1214
|
+
V(Re(f))
|
|
1206
1215
|
);
|
|
1207
|
-
r =
|
|
1216
|
+
r = ge(T.body, Oe, _, M);
|
|
1208
1217
|
}
|
|
1209
1218
|
}
|
|
1210
1219
|
a.isString(d) || (d = d ? "include" : "omit");
|
|
@@ -1219,18 +1228,18 @@ const Rn = async (e) => {
|
|
|
1219
1228
|
credentials: w ? d : void 0
|
|
1220
1229
|
});
|
|
1221
1230
|
let S = await fetch(p);
|
|
1222
|
-
const g =
|
|
1223
|
-
if (
|
|
1231
|
+
const g = ie && (l === "stream" || l === "response");
|
|
1232
|
+
if (ie && (c || g && y)) {
|
|
1224
1233
|
const T = {};
|
|
1225
|
-
["status", "statusText", "headers"].forEach((
|
|
1226
|
-
T[
|
|
1234
|
+
["status", "statusText", "headers"].forEach((de) => {
|
|
1235
|
+
T[de] = S[de];
|
|
1227
1236
|
});
|
|
1228
|
-
const F = a.toFiniteNumber(S.headers.get("content-length")), [_, M] = c &&
|
|
1237
|
+
const F = a.toFiniteNumber(S.headers.get("content-length")), [_, M] = c && Ee(
|
|
1229
1238
|
F,
|
|
1230
|
-
V(
|
|
1239
|
+
V(Re(c), !0)
|
|
1231
1240
|
) || [];
|
|
1232
1241
|
S = new Response(
|
|
1233
|
-
|
|
1242
|
+
ge(S.body, Oe, _, () => {
|
|
1234
1243
|
M && M(), y && y();
|
|
1235
1244
|
}),
|
|
1236
1245
|
T
|
|
@@ -1239,9 +1248,9 @@ const Rn = async (e) => {
|
|
|
1239
1248
|
l = l || "text";
|
|
1240
1249
|
let P = await W[a.findKey(W, l) || "text"](S, e);
|
|
1241
1250
|
return !g && y && y(), await new Promise((T, F) => {
|
|
1242
|
-
|
|
1251
|
+
ze(T, F, {
|
|
1243
1252
|
data: P,
|
|
1244
|
-
headers:
|
|
1253
|
+
headers: x.from(S.headers),
|
|
1245
1254
|
status: S.status,
|
|
1246
1255
|
statusText: S.statusText,
|
|
1247
1256
|
config: e,
|
|
@@ -1249,19 +1258,19 @@ const Rn = async (e) => {
|
|
|
1249
1258
|
});
|
|
1250
1259
|
});
|
|
1251
1260
|
} catch (w) {
|
|
1252
|
-
throw y && y(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
|
|
1261
|
+
throw y && y(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
|
|
1253
1262
|
new m("Network Error", m.ERR_NETWORK, e, p),
|
|
1254
1263
|
{
|
|
1255
1264
|
cause: w.cause || w
|
|
1256
1265
|
}
|
|
1257
1266
|
) : m.from(w, w && w.code, e, p);
|
|
1258
1267
|
}
|
|
1259
|
-
}),
|
|
1260
|
-
http:
|
|
1261
|
-
xhr:
|
|
1262
|
-
fetch:
|
|
1268
|
+
}), ae = {
|
|
1269
|
+
http: Ht,
|
|
1270
|
+
xhr: yn,
|
|
1271
|
+
fetch: An
|
|
1263
1272
|
};
|
|
1264
|
-
a.forEach(
|
|
1273
|
+
a.forEach(ae, (e, t) => {
|
|
1265
1274
|
if (e) {
|
|
1266
1275
|
try {
|
|
1267
1276
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1270,7 +1279,7 @@ a.forEach(ie, (e, t) => {
|
|
|
1270
1279
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1271
1280
|
}
|
|
1272
1281
|
});
|
|
1273
|
-
const
|
|
1282
|
+
const Te = (e) => `- ${e}`, xn = (e) => a.isFunction(e) || e === null || e === !1, ve = {
|
|
1274
1283
|
getAdapter: (e) => {
|
|
1275
1284
|
e = a.isArray(e) ? e : [e];
|
|
1276
1285
|
const { length: t } = e;
|
|
@@ -1279,7 +1288,7 @@ const Oe = (e) => `- ${e}`, On = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1279
1288
|
for (let o = 0; o < t; o++) {
|
|
1280
1289
|
n = e[o];
|
|
1281
1290
|
let i;
|
|
1282
|
-
if (r = n, !
|
|
1291
|
+
if (r = n, !xn(n) && (r = ae[(i = String(n)).toLowerCase()], r === void 0))
|
|
1283
1292
|
throw new m(`Unknown adapter '${i}'`);
|
|
1284
1293
|
if (r)
|
|
1285
1294
|
break;
|
|
@@ -1290,8 +1299,8 @@ const Oe = (e) => `- ${e}`, On = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1290
1299
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1291
1300
|
);
|
|
1292
1301
|
let i = t ? o.length > 1 ? `since :
|
|
1293
|
-
` + o.map(
|
|
1294
|
-
`) : " " +
|
|
1302
|
+
` + o.map(Te).join(`
|
|
1303
|
+
`) : " " + Te(o[0]) : "as no adapter specified";
|
|
1295
1304
|
throw new m(
|
|
1296
1305
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1297
1306
|
"ERR_NOT_SUPPORT"
|
|
@@ -1299,40 +1308,40 @@ const Oe = (e) => `- ${e}`, On = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1299
1308
|
}
|
|
1300
1309
|
return r;
|
|
1301
1310
|
},
|
|
1302
|
-
adapters:
|
|
1311
|
+
adapters: ae
|
|
1303
1312
|
};
|
|
1304
|
-
function
|
|
1313
|
+
function ne(e) {
|
|
1305
1314
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1306
1315
|
throw new k(null, e);
|
|
1307
1316
|
}
|
|
1308
|
-
function
|
|
1309
|
-
return
|
|
1317
|
+
function Ae(e) {
|
|
1318
|
+
return ne(e), e.headers = x.from(e.headers), e.data = te.call(
|
|
1310
1319
|
e,
|
|
1311
1320
|
e.transformRequest
|
|
1312
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1313
|
-
return
|
|
1321
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ve.getAdapter(e.adapter || I.adapter)(e).then(function(r) {
|
|
1322
|
+
return ne(e), r.data = te.call(
|
|
1314
1323
|
e,
|
|
1315
1324
|
e.transformResponse,
|
|
1316
1325
|
r
|
|
1317
|
-
), r.headers =
|
|
1326
|
+
), r.headers = x.from(r.headers), r;
|
|
1318
1327
|
}, function(r) {
|
|
1319
|
-
return
|
|
1328
|
+
return $e(r) || (ne(e), r && r.response && (r.response.data = te.call(
|
|
1320
1329
|
e,
|
|
1321
1330
|
e.transformResponse,
|
|
1322
1331
|
r.response
|
|
1323
|
-
), r.response.headers =
|
|
1332
|
+
), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
1324
1333
|
});
|
|
1325
1334
|
}
|
|
1326
|
-
const
|
|
1335
|
+
const Xe = "1.9.0", Y = {};
|
|
1327
1336
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1328
|
-
|
|
1337
|
+
Y[e] = function(r) {
|
|
1329
1338
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1330
1339
|
};
|
|
1331
1340
|
});
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1341
|
+
const xe = {};
|
|
1342
|
+
Y.transitional = function(t, n, r) {
|
|
1334
1343
|
function s(o, i) {
|
|
1335
|
-
return "[Axios v" +
|
|
1344
|
+
return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1336
1345
|
}
|
|
1337
1346
|
return (o, i, c) => {
|
|
1338
1347
|
if (t === !1)
|
|
@@ -1340,7 +1349,7 @@ Z.transitional = function(t, n, r) {
|
|
|
1340
1349
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1341
1350
|
m.ERR_DEPRECATED
|
|
1342
1351
|
);
|
|
1343
|
-
return n && !
|
|
1352
|
+
return n && !xe[i] && (xe[i] = !0, console.warn(
|
|
1344
1353
|
s(
|
|
1345
1354
|
i,
|
|
1346
1355
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1348,10 +1357,10 @@ Z.transitional = function(t, n, r) {
|
|
|
1348
1357
|
)), t ? t(o, i, c) : !0;
|
|
1349
1358
|
};
|
|
1350
1359
|
};
|
|
1351
|
-
|
|
1360
|
+
Y.spelling = function(t) {
|
|
1352
1361
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1353
1362
|
};
|
|
1354
|
-
function
|
|
1363
|
+
function Cn(e, t, n) {
|
|
1355
1364
|
if (typeof e != "object")
|
|
1356
1365
|
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1357
1366
|
const r = Object.keys(e);
|
|
@@ -1369,14 +1378,14 @@ function Tn(e, t, n) {
|
|
|
1369
1378
|
}
|
|
1370
1379
|
}
|
|
1371
1380
|
const J = {
|
|
1372
|
-
assertOptions:
|
|
1373
|
-
validators:
|
|
1381
|
+
assertOptions: Cn,
|
|
1382
|
+
validators: Y
|
|
1374
1383
|
}, N = J.validators;
|
|
1375
1384
|
let L = class {
|
|
1376
1385
|
constructor(t) {
|
|
1377
|
-
this.defaults = t, this.interceptors = {
|
|
1378
|
-
request: new
|
|
1379
|
-
response: new
|
|
1386
|
+
this.defaults = t || {}, this.interceptors = {
|
|
1387
|
+
request: new be(),
|
|
1388
|
+
response: new be()
|
|
1380
1389
|
};
|
|
1381
1390
|
}
|
|
1382
1391
|
/**
|
|
@@ -1429,7 +1438,7 @@ let L = class {
|
|
|
1429
1438
|
(p) => {
|
|
1430
1439
|
delete o[p];
|
|
1431
1440
|
}
|
|
1432
|
-
), n.headers =
|
|
1441
|
+
), n.headers = x.concat(i, o);
|
|
1433
1442
|
const c = [];
|
|
1434
1443
|
let f = !0;
|
|
1435
1444
|
this.interceptors.request.forEach(function(y) {
|
|
@@ -1441,7 +1450,7 @@ let L = class {
|
|
|
1441
1450
|
});
|
|
1442
1451
|
let u, d = 0, b;
|
|
1443
1452
|
if (!f) {
|
|
1444
|
-
const p = [
|
|
1453
|
+
const p = [Ae.bind(this), void 0];
|
|
1445
1454
|
for (p.unshift.apply(p, c), p.push.apply(p, l), b = p.length, u = Promise.resolve(n); d < b; )
|
|
1446
1455
|
u = u.then(p[d++], p[d++]);
|
|
1447
1456
|
return u;
|
|
@@ -1458,7 +1467,7 @@ let L = class {
|
|
|
1458
1467
|
}
|
|
1459
1468
|
}
|
|
1460
1469
|
try {
|
|
1461
|
-
u =
|
|
1470
|
+
u = Ae.call(this, R);
|
|
1462
1471
|
} catch (p) {
|
|
1463
1472
|
return Promise.reject(p);
|
|
1464
1473
|
}
|
|
@@ -1468,8 +1477,8 @@ let L = class {
|
|
|
1468
1477
|
}
|
|
1469
1478
|
getUri(t) {
|
|
1470
1479
|
t = B(this.defaults, t);
|
|
1471
|
-
const n =
|
|
1472
|
-
return
|
|
1480
|
+
const n = Je(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1481
|
+
return He(n, t.params, t.paramsSerializer);
|
|
1473
1482
|
}
|
|
1474
1483
|
};
|
|
1475
1484
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1496,7 +1505,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1496
1505
|
}
|
|
1497
1506
|
L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
|
|
1498
1507
|
});
|
|
1499
|
-
let
|
|
1508
|
+
let Nn = class Ge {
|
|
1500
1509
|
constructor(t) {
|
|
1501
1510
|
if (typeof t != "function")
|
|
1502
1511
|
throw new TypeError("executor must be a function.");
|
|
@@ -1562,22 +1571,22 @@ let An = class ve {
|
|
|
1562
1571
|
static source() {
|
|
1563
1572
|
let t;
|
|
1564
1573
|
return {
|
|
1565
|
-
token: new
|
|
1574
|
+
token: new Ge(function(s) {
|
|
1566
1575
|
t = s;
|
|
1567
1576
|
}),
|
|
1568
1577
|
cancel: t
|
|
1569
1578
|
};
|
|
1570
1579
|
}
|
|
1571
1580
|
};
|
|
1572
|
-
function
|
|
1581
|
+
function Pn(e) {
|
|
1573
1582
|
return function(n) {
|
|
1574
1583
|
return e.apply(null, n);
|
|
1575
1584
|
};
|
|
1576
1585
|
}
|
|
1577
|
-
function
|
|
1586
|
+
function Fn(e) {
|
|
1578
1587
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1579
1588
|
}
|
|
1580
|
-
const
|
|
1589
|
+
const ce = {
|
|
1581
1590
|
Continue: 100,
|
|
1582
1591
|
SwitchingProtocols: 101,
|
|
1583
1592
|
Processing: 102,
|
|
@@ -1642,52 +1651,52 @@ const ae = {
|
|
|
1642
1651
|
NotExtended: 510,
|
|
1643
1652
|
NetworkAuthenticationRequired: 511
|
|
1644
1653
|
};
|
|
1645
|
-
Object.entries(
|
|
1646
|
-
|
|
1654
|
+
Object.entries(ce).forEach(([e, t]) => {
|
|
1655
|
+
ce[t] = e;
|
|
1647
1656
|
});
|
|
1648
|
-
function
|
|
1649
|
-
const t = new L(e), n =
|
|
1657
|
+
function Qe(e) {
|
|
1658
|
+
const t = new L(e), n = Ce(L.prototype.request, t);
|
|
1650
1659
|
return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1651
|
-
return
|
|
1660
|
+
return Qe(B(e, s));
|
|
1652
1661
|
}, n;
|
|
1653
1662
|
}
|
|
1654
|
-
const E =
|
|
1663
|
+
const E = Qe(I);
|
|
1655
1664
|
E.Axios = L;
|
|
1656
1665
|
E.CanceledError = k;
|
|
1657
|
-
E.CancelToken =
|
|
1658
|
-
E.isCancel =
|
|
1659
|
-
E.VERSION =
|
|
1660
|
-
E.toFormData =
|
|
1666
|
+
E.CancelToken = Nn;
|
|
1667
|
+
E.isCancel = $e;
|
|
1668
|
+
E.VERSION = Xe;
|
|
1669
|
+
E.toFormData = Q;
|
|
1661
1670
|
E.AxiosError = m;
|
|
1662
1671
|
E.Cancel = E.CanceledError;
|
|
1663
1672
|
E.all = function(t) {
|
|
1664
1673
|
return Promise.all(t);
|
|
1665
1674
|
};
|
|
1666
|
-
E.spread =
|
|
1667
|
-
E.isAxiosError =
|
|
1675
|
+
E.spread = Pn;
|
|
1676
|
+
E.isAxiosError = Fn;
|
|
1668
1677
|
E.mergeConfig = B;
|
|
1669
|
-
E.AxiosHeaders =
|
|
1670
|
-
E.formToJSON = (e) =>
|
|
1671
|
-
E.getAdapter =
|
|
1672
|
-
E.HttpStatusCode =
|
|
1678
|
+
E.AxiosHeaders = x;
|
|
1679
|
+
E.formToJSON = (e) => Me(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1680
|
+
E.getAdapter = ve.getAdapter;
|
|
1681
|
+
E.HttpStatusCode = ce;
|
|
1673
1682
|
E.default = E;
|
|
1674
1683
|
const {
|
|
1675
|
-
Axios:
|
|
1676
|
-
AxiosError:
|
|
1677
|
-
CanceledError:
|
|
1678
|
-
isCancel:
|
|
1679
|
-
CancelToken:
|
|
1680
|
-
VERSION:
|
|
1681
|
-
all:
|
|
1682
|
-
Cancel:
|
|
1683
|
-
isAxiosError:
|
|
1684
|
-
spread:
|
|
1685
|
-
toFormData:
|
|
1686
|
-
AxiosHeaders:
|
|
1687
|
-
HttpStatusCode:
|
|
1688
|
-
formToJSON:
|
|
1689
|
-
getAdapter:
|
|
1690
|
-
mergeConfig:
|
|
1684
|
+
Axios: Bn,
|
|
1685
|
+
AxiosError: Dn,
|
|
1686
|
+
CanceledError: kn,
|
|
1687
|
+
isCancel: jn,
|
|
1688
|
+
CancelToken: qn,
|
|
1689
|
+
VERSION: Hn,
|
|
1690
|
+
all: In,
|
|
1691
|
+
Cancel: Mn,
|
|
1692
|
+
isAxiosError: $n,
|
|
1693
|
+
spread: zn,
|
|
1694
|
+
toFormData: Jn,
|
|
1695
|
+
AxiosHeaders: Vn,
|
|
1696
|
+
HttpStatusCode: Wn,
|
|
1697
|
+
formToJSON: Kn,
|
|
1698
|
+
getAdapter: vn,
|
|
1699
|
+
mergeConfig: Xn
|
|
1691
1700
|
} = E;
|
|
1692
1701
|
export {
|
|
1693
1702
|
E as a
|