@wikicasa-dev/components 1.2.17 → 1.2.19
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/BaseAutocomplete.vue_vue_type_script_setup_true_lang-BKT74JOA.cjs +1 -0
- package/dist/{BaseAutocomplete.vue_vue_type_script_setup_true_lang-CVOeKK-H.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang-CyKiFL9U.js} +80 -68
- package/dist/{CheckboxGroup.vue_vue_type_script_setup_true_lang-B28hp87l.js → CheckboxGroup.vue_vue_type_script_setup_true_lang-B7br31oI.js} +27 -26
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-r0BQC_c8.cjs +1 -0
- package/dist/ObjectUtils-B1Dk4qsM.js +12 -0
- package/dist/ObjectUtils-C5gq8MtL.cjs +1 -0
- package/dist/SwiperCarousel.vue_vue_type_style_index_0_lang-i2Sb9Y22.cjs +5 -0
- package/dist/{SwiperCarousel.vue_vue_type_style_index_0_lang-DUANcQKT.js → SwiperCarousel.vue_vue_type_style_index_0_lang-wAOLSjLf.js} +25 -24
- package/dist/{index-6DJ6N4f8.js → index-BgbVfPBC.js} +2 -2
- package/dist/{index-Dz30IWWY.cjs → index-zWmFcQq_.cjs} +1 -1
- package/dist/js.cookie-BMVAK0Pe.cjs +1 -0
- package/dist/js.cookie-BaTT4o7s.js +101 -0
- package/dist/lib/UIKit/BaseAutocomplete.cjs +1 -1
- package/dist/lib/UIKit/BaseAutocomplete.js +1 -1
- package/dist/lib/UIKit/BaseBtModal.cjs +1 -1
- package/dist/lib/UIKit/BaseBtModal.js +43 -35
- package/dist/lib/UIKit/BasePagination.cjs +1 -1
- package/dist/lib/UIKit/BasePagination.js +52 -39
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.cjs +1 -1
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/lib/components/carousel/SwiperCarousel.cjs +1 -1
- package/dist/lib/components/carousel/SwiperCarousel.js +1 -1
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/index.js +3 -3
- package/package.json +2 -2
- package/dist/BaseAutocomplete.vue_vue_type_script_setup_true_lang-LiuIZMOu.cjs +0 -1
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-BkB2KUyO.cjs +0 -1
- package/dist/SwiperCarousel.vue_vue_type_style_index_0_lang-CQsYG4_e.cjs +0 -5
- package/dist/utilities-CBCDB5EB.js +0 -1558
- package/dist/utilities-gwVlEyWn.cjs +0 -3
|
@@ -1,1558 +0,0 @@
|
|
|
1
|
-
function yt(t, e) {
|
|
2
|
-
return function() {
|
|
3
|
-
return t.apply(e, arguments);
|
|
4
|
-
};
|
|
5
|
-
}
|
|
6
|
-
const { toString: Lt } = Object.prototype, { getPrototypeOf: et } = Object, I = /* @__PURE__ */ ((t) => (e) => {
|
|
7
|
-
const n = Lt.call(e);
|
|
8
|
-
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null)), R = (t) => (t = t.toLowerCase(), (e) => I(e) === t), q = (t) => (e) => typeof e === t, { isArray: v } = Array, x = q("undefined");
|
|
10
|
-
function kt(t) {
|
|
11
|
-
return t !== null && !x(t) && t.constructor !== null && !x(t.constructor) && w(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
12
|
-
}
|
|
13
|
-
const bt = R("ArrayBuffer");
|
|
14
|
-
function It(t) {
|
|
15
|
-
let e;
|
|
16
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && bt(t.buffer), e;
|
|
17
|
-
}
|
|
18
|
-
const qt = q("string"), w = q("function"), wt = q("number"), z = (t) => t !== null && typeof t == "object", zt = (t) => t === !0 || t === !1, F = (t) => {
|
|
19
|
-
if (I(t) !== "object")
|
|
20
|
-
return !1;
|
|
21
|
-
const e = et(t);
|
|
22
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
23
|
-
}, Mt = R("Date"), Ht = R("File"), Jt = R("Blob"), Vt = R("FileList"), Wt = (t) => z(t) && w(t.pipe), Kt = (t) => {
|
|
24
|
-
let e;
|
|
25
|
-
return t && (typeof FormData == "function" && t instanceof FormData || w(t.append) && ((e = I(t)) === "formdata" || // detect form-data instance
|
|
26
|
-
e === "object" && w(t.toString) && t.toString() === "[object FormData]"));
|
|
27
|
-
}, Gt = R("URLSearchParams"), $t = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
28
|
-
function U(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
29
|
-
if (t === null || typeof t > "u")
|
|
30
|
-
return;
|
|
31
|
-
let r, o;
|
|
32
|
-
if (typeof t != "object" && (t = [t]), v(t))
|
|
33
|
-
for (r = 0, o = t.length; r < o; r++)
|
|
34
|
-
e.call(null, t[r], r, t);
|
|
35
|
-
else {
|
|
36
|
-
const i = n ? Object.getOwnPropertyNames(t) : Object.keys(t), s = i.length;
|
|
37
|
-
let u;
|
|
38
|
-
for (r = 0; r < s; r++)
|
|
39
|
-
u = i[r], e.call(null, t[u], u, t);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function Et(t, e) {
|
|
43
|
-
e = e.toLowerCase();
|
|
44
|
-
const n = Object.keys(t);
|
|
45
|
-
let r = n.length, o;
|
|
46
|
-
for (; r-- > 0; )
|
|
47
|
-
if (o = n[r], e === o.toLowerCase())
|
|
48
|
-
return o;
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
const Ot = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Rt = (t) => !x(t) && t !== Ot;
|
|
52
|
-
function X() {
|
|
53
|
-
const { caseless: t } = Rt(this) && this || {}, e = {}, n = (r, o) => {
|
|
54
|
-
const i = t && Et(e, o) || o;
|
|
55
|
-
F(e[i]) && F(r) ? e[i] = X(e[i], r) : F(r) ? e[i] = X({}, r) : v(r) ? e[i] = r.slice() : e[i] = r;
|
|
56
|
-
};
|
|
57
|
-
for (let r = 0, o = arguments.length; r < o; r++)
|
|
58
|
-
arguments[r] && U(arguments[r], n);
|
|
59
|
-
return e;
|
|
60
|
-
}
|
|
61
|
-
const Xt = (t, e, n, { allOwnKeys: r } = {}) => (U(e, (o, i) => {
|
|
62
|
-
n && w(o) ? t[i] = yt(o, n) : t[i] = o;
|
|
63
|
-
}, { allOwnKeys: r }), t), Qt = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Zt = (t, e, n, r) => {
|
|
64
|
-
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
65
|
-
value: e.prototype
|
|
66
|
-
}), n && Object.assign(t.prototype, n);
|
|
67
|
-
}, Yt = (t, e, n, r) => {
|
|
68
|
-
let o, i, s;
|
|
69
|
-
const u = {};
|
|
70
|
-
if (e = e || {}, t == null)
|
|
71
|
-
return e;
|
|
72
|
-
do {
|
|
73
|
-
for (o = Object.getOwnPropertyNames(t), i = o.length; i-- > 0; )
|
|
74
|
-
s = o[i], (!r || r(s, t, e)) && !u[s] && (e[s] = t[s], u[s] = !0);
|
|
75
|
-
t = n !== !1 && et(t);
|
|
76
|
-
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
77
|
-
return e;
|
|
78
|
-
}, te = (t, e, n) => {
|
|
79
|
-
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
80
|
-
const r = t.indexOf(e, n);
|
|
81
|
-
return r !== -1 && r === n;
|
|
82
|
-
}, ee = (t) => {
|
|
83
|
-
if (!t)
|
|
84
|
-
return null;
|
|
85
|
-
if (v(t))
|
|
86
|
-
return t;
|
|
87
|
-
let e = t.length;
|
|
88
|
-
if (!wt(e))
|
|
89
|
-
return null;
|
|
90
|
-
const n = new Array(e);
|
|
91
|
-
for (; e-- > 0; )
|
|
92
|
-
n[e] = t[e];
|
|
93
|
-
return n;
|
|
94
|
-
}, ne = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && et(Uint8Array)), re = (t, e) => {
|
|
95
|
-
const n = (t && t[Symbol.iterator]).call(t);
|
|
96
|
-
let r;
|
|
97
|
-
for (; (r = n.next()) && !r.done; ) {
|
|
98
|
-
const o = r.value;
|
|
99
|
-
e.call(t, o[0], o[1]);
|
|
100
|
-
}
|
|
101
|
-
}, oe = (t, e) => {
|
|
102
|
-
let n;
|
|
103
|
-
const r = [];
|
|
104
|
-
for (; (n = t.exec(e)) !== null; )
|
|
105
|
-
r.push(n);
|
|
106
|
-
return r;
|
|
107
|
-
}, ie = R("HTMLFormElement"), se = (t) => t.toLowerCase().replace(
|
|
108
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
109
|
-
function(e, n, r) {
|
|
110
|
-
return n.toUpperCase() + r;
|
|
111
|
-
}
|
|
112
|
-
), st = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), ae = R("RegExp"), St = (t, e) => {
|
|
113
|
-
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
114
|
-
U(n, (o, i) => {
|
|
115
|
-
e(o, i, t) !== !1 && (r[i] = o);
|
|
116
|
-
}), Object.defineProperties(t, r);
|
|
117
|
-
}, ce = (t) => {
|
|
118
|
-
St(t, (e, n) => {
|
|
119
|
-
if (w(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
120
|
-
return !1;
|
|
121
|
-
const r = t[n];
|
|
122
|
-
if (w(r)) {
|
|
123
|
-
if (e.enumerable = !1, "writable" in e) {
|
|
124
|
-
e.writable = !1;
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
e.set || (e.set = () => {
|
|
128
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
}, ue = (t, e) => {
|
|
133
|
-
const n = {}, r = (o) => {
|
|
134
|
-
o.forEach((i) => {
|
|
135
|
-
n[i] = !0;
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
return v(t) ? r(t) : r(String(t).split(e)), n;
|
|
139
|
-
}, le = () => {
|
|
140
|
-
}, fe = (t, e) => (t = +t, Number.isFinite(t) ? t : e), W = "abcdefghijklmnopqrstuvwxyz", at = "0123456789", At = {
|
|
141
|
-
DIGIT: at,
|
|
142
|
-
ALPHA: W,
|
|
143
|
-
ALPHA_DIGIT: W + W.toUpperCase() + at
|
|
144
|
-
}, de = (t = 16, e = At.ALPHA_DIGIT) => {
|
|
145
|
-
let n = "";
|
|
146
|
-
const { length: r } = e;
|
|
147
|
-
for (; t--; )
|
|
148
|
-
n += e[Math.random() * r | 0];
|
|
149
|
-
return n;
|
|
150
|
-
};
|
|
151
|
-
function pe(t) {
|
|
152
|
-
return !!(t && w(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
153
|
-
}
|
|
154
|
-
const he = (t) => {
|
|
155
|
-
const e = new Array(10), n = (r, o) => {
|
|
156
|
-
if (z(r)) {
|
|
157
|
-
if (e.indexOf(r) >= 0)
|
|
158
|
-
return;
|
|
159
|
-
if (!("toJSON" in r)) {
|
|
160
|
-
e[o] = r;
|
|
161
|
-
const i = v(r) ? [] : {};
|
|
162
|
-
return U(r, (s, u) => {
|
|
163
|
-
const c = n(s, o + 1);
|
|
164
|
-
!x(c) && (i[u] = c);
|
|
165
|
-
}), e[o] = void 0, i;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return r;
|
|
169
|
-
};
|
|
170
|
-
return n(t, 0);
|
|
171
|
-
}, me = R("AsyncFunction"), ge = (t) => t && (z(t) || w(t)) && w(t.then) && w(t.catch), a = {
|
|
172
|
-
isArray: v,
|
|
173
|
-
isArrayBuffer: bt,
|
|
174
|
-
isBuffer: kt,
|
|
175
|
-
isFormData: Kt,
|
|
176
|
-
isArrayBufferView: It,
|
|
177
|
-
isString: qt,
|
|
178
|
-
isNumber: wt,
|
|
179
|
-
isBoolean: zt,
|
|
180
|
-
isObject: z,
|
|
181
|
-
isPlainObject: F,
|
|
182
|
-
isUndefined: x,
|
|
183
|
-
isDate: Mt,
|
|
184
|
-
isFile: Ht,
|
|
185
|
-
isBlob: Jt,
|
|
186
|
-
isRegExp: ae,
|
|
187
|
-
isFunction: w,
|
|
188
|
-
isStream: Wt,
|
|
189
|
-
isURLSearchParams: Gt,
|
|
190
|
-
isTypedArray: ne,
|
|
191
|
-
isFileList: Vt,
|
|
192
|
-
forEach: U,
|
|
193
|
-
merge: X,
|
|
194
|
-
extend: Xt,
|
|
195
|
-
trim: $t,
|
|
196
|
-
stripBOM: Qt,
|
|
197
|
-
inherits: Zt,
|
|
198
|
-
toFlatObject: Yt,
|
|
199
|
-
kindOf: I,
|
|
200
|
-
kindOfTest: R,
|
|
201
|
-
endsWith: te,
|
|
202
|
-
toArray: ee,
|
|
203
|
-
forEachEntry: re,
|
|
204
|
-
matchAll: oe,
|
|
205
|
-
isHTMLForm: ie,
|
|
206
|
-
hasOwnProperty: st,
|
|
207
|
-
hasOwnProp: st,
|
|
208
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
209
|
-
reduceDescriptors: St,
|
|
210
|
-
freezeMethods: ce,
|
|
211
|
-
toObjectSet: ue,
|
|
212
|
-
toCamelCase: se,
|
|
213
|
-
noop: le,
|
|
214
|
-
toFiniteNumber: fe,
|
|
215
|
-
findKey: Et,
|
|
216
|
-
global: Ot,
|
|
217
|
-
isContextDefined: Rt,
|
|
218
|
-
ALPHABET: At,
|
|
219
|
-
generateString: de,
|
|
220
|
-
isSpecCompliantForm: pe,
|
|
221
|
-
toJSONObject: he,
|
|
222
|
-
isAsyncFn: me,
|
|
223
|
-
isThenable: ge
|
|
224
|
-
};
|
|
225
|
-
function m(t, e, n, r, o) {
|
|
226
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o);
|
|
227
|
-
}
|
|
228
|
-
a.inherits(m, Error, {
|
|
229
|
-
toJSON: function() {
|
|
230
|
-
return {
|
|
231
|
-
// Standard
|
|
232
|
-
message: this.message,
|
|
233
|
-
name: this.name,
|
|
234
|
-
// Microsoft
|
|
235
|
-
description: this.description,
|
|
236
|
-
number: this.number,
|
|
237
|
-
// Mozilla
|
|
238
|
-
fileName: this.fileName,
|
|
239
|
-
lineNumber: this.lineNumber,
|
|
240
|
-
columnNumber: this.columnNumber,
|
|
241
|
-
stack: this.stack,
|
|
242
|
-
// Axios
|
|
243
|
-
config: a.toJSONObject(this.config),
|
|
244
|
-
code: this.code,
|
|
245
|
-
status: this.response && this.response.status ? this.response.status : null
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
const Tt = m.prototype, Ct = {};
|
|
250
|
-
[
|
|
251
|
-
"ERR_BAD_OPTION_VALUE",
|
|
252
|
-
"ERR_BAD_OPTION",
|
|
253
|
-
"ECONNABORTED",
|
|
254
|
-
"ETIMEDOUT",
|
|
255
|
-
"ERR_NETWORK",
|
|
256
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
257
|
-
"ERR_DEPRECATED",
|
|
258
|
-
"ERR_BAD_RESPONSE",
|
|
259
|
-
"ERR_BAD_REQUEST",
|
|
260
|
-
"ERR_CANCELED",
|
|
261
|
-
"ERR_NOT_SUPPORT",
|
|
262
|
-
"ERR_INVALID_URL"
|
|
263
|
-
// eslint-disable-next-line func-names
|
|
264
|
-
].forEach((t) => {
|
|
265
|
-
Ct[t] = { value: t };
|
|
266
|
-
});
|
|
267
|
-
Object.defineProperties(m, Ct);
|
|
268
|
-
Object.defineProperty(Tt, "isAxiosError", { value: !0 });
|
|
269
|
-
m.from = (t, e, n, r, o, i) => {
|
|
270
|
-
const s = Object.create(Tt);
|
|
271
|
-
return a.toFlatObject(t, s, function(u) {
|
|
272
|
-
return u !== Error.prototype;
|
|
273
|
-
}, (u) => u !== "isAxiosError"), m.call(s, t.message, e, n, r, o), s.cause = t, s.name = t.name, i && Object.assign(s, i), s;
|
|
274
|
-
};
|
|
275
|
-
const ye = null;
|
|
276
|
-
function Q(t) {
|
|
277
|
-
return a.isPlainObject(t) || a.isArray(t);
|
|
278
|
-
}
|
|
279
|
-
function vt(t) {
|
|
280
|
-
return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
281
|
-
}
|
|
282
|
-
function ct(t, e, n) {
|
|
283
|
-
return t ? t.concat(e).map(function(r, o) {
|
|
284
|
-
return r = vt(r), !n && o ? "[" + r + "]" : r;
|
|
285
|
-
}).join(n ? "." : "") : e;
|
|
286
|
-
}
|
|
287
|
-
function be(t) {
|
|
288
|
-
return a.isArray(t) && !t.some(Q);
|
|
289
|
-
}
|
|
290
|
-
const we = a.toFlatObject(a, {}, null, function(t) {
|
|
291
|
-
return /^is[A-Z]/.test(t);
|
|
292
|
-
});
|
|
293
|
-
function M(t, e, n) {
|
|
294
|
-
if (!a.isObject(t))
|
|
295
|
-
throw new TypeError("target must be an object");
|
|
296
|
-
e = e || new FormData(), n = a.toFlatObject(n, {
|
|
297
|
-
metaTokens: !0,
|
|
298
|
-
dots: !1,
|
|
299
|
-
indexes: !1
|
|
300
|
-
}, !1, function(p, d) {
|
|
301
|
-
return !a.isUndefined(d[p]);
|
|
302
|
-
});
|
|
303
|
-
const r = n.metaTokens, o = n.visitor || f, i = n.dots, s = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(e);
|
|
304
|
-
if (!a.isFunction(o))
|
|
305
|
-
throw new TypeError("visitor must be a function");
|
|
306
|
-
function c(p) {
|
|
307
|
-
if (p === null)
|
|
308
|
-
return "";
|
|
309
|
-
if (a.isDate(p))
|
|
310
|
-
return p.toISOString();
|
|
311
|
-
if (!u && a.isBlob(p))
|
|
312
|
-
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
313
|
-
return a.isArrayBuffer(p) || a.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
314
|
-
}
|
|
315
|
-
function f(p, d, S) {
|
|
316
|
-
let E = p;
|
|
317
|
-
if (p && !S && typeof p == "object") {
|
|
318
|
-
if (a.endsWith(d, "{}"))
|
|
319
|
-
d = r ? d : d.slice(0, -2), p = JSON.stringify(p);
|
|
320
|
-
else if (a.isArray(p) && be(p) || (a.isFileList(p) || a.endsWith(d, "[]")) && (E = a.toArray(p)))
|
|
321
|
-
return d = vt(d), E.forEach(function(V, _t) {
|
|
322
|
-
!(a.isUndefined(V) || V === null) && e.append(
|
|
323
|
-
// eslint-disable-next-line no-nested-ternary
|
|
324
|
-
s === !0 ? ct([d], _t, i) : s === null ? d : d + "[]",
|
|
325
|
-
c(V)
|
|
326
|
-
);
|
|
327
|
-
}), !1;
|
|
328
|
-
}
|
|
329
|
-
return Q(p) ? !0 : (e.append(ct(S, d, i), c(p)), !1);
|
|
330
|
-
}
|
|
331
|
-
const l = [], h = Object.assign(we, {
|
|
332
|
-
defaultVisitor: f,
|
|
333
|
-
convertValue: c,
|
|
334
|
-
isVisitable: Q
|
|
335
|
-
});
|
|
336
|
-
function g(p, d) {
|
|
337
|
-
if (!a.isUndefined(p)) {
|
|
338
|
-
if (l.indexOf(p) !== -1)
|
|
339
|
-
throw Error("Circular reference detected in " + d.join("."));
|
|
340
|
-
l.push(p), a.forEach(p, function(S, E) {
|
|
341
|
-
(!(a.isUndefined(S) || S === null) && o.call(
|
|
342
|
-
e,
|
|
343
|
-
S,
|
|
344
|
-
a.isString(E) ? E.trim() : E,
|
|
345
|
-
d,
|
|
346
|
-
h
|
|
347
|
-
)) === !0 && g(S, d ? d.concat(E) : [E]);
|
|
348
|
-
}), l.pop();
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
if (!a.isObject(t))
|
|
352
|
-
throw new TypeError("data must be an object");
|
|
353
|
-
return g(t), e;
|
|
354
|
-
}
|
|
355
|
-
function ut(t) {
|
|
356
|
-
const e = {
|
|
357
|
-
"!": "%21",
|
|
358
|
-
"'": "%27",
|
|
359
|
-
"(": "%28",
|
|
360
|
-
")": "%29",
|
|
361
|
-
"~": "%7E",
|
|
362
|
-
"%20": "+",
|
|
363
|
-
"%00": "\0"
|
|
364
|
-
};
|
|
365
|
-
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) {
|
|
366
|
-
return e[n];
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
function nt(t, e) {
|
|
370
|
-
this._pairs = [], t && M(t, this, e);
|
|
371
|
-
}
|
|
372
|
-
const jt = nt.prototype;
|
|
373
|
-
jt.append = function(t, e) {
|
|
374
|
-
this._pairs.push([t, e]);
|
|
375
|
-
};
|
|
376
|
-
jt.toString = function(t) {
|
|
377
|
-
const e = t ? function(n) {
|
|
378
|
-
return t.call(this, n, ut);
|
|
379
|
-
} : ut;
|
|
380
|
-
return this._pairs.map(function(n) {
|
|
381
|
-
return e(n[0]) + "=" + e(n[1]);
|
|
382
|
-
}, "").join("&");
|
|
383
|
-
};
|
|
384
|
-
function Ee(t) {
|
|
385
|
-
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
386
|
-
}
|
|
387
|
-
function xt(t, e, n) {
|
|
388
|
-
if (!e)
|
|
389
|
-
return t;
|
|
390
|
-
const r = n && n.encode || Ee, o = n && n.serialize;
|
|
391
|
-
let i;
|
|
392
|
-
if (o ? i = o(e, n) : i = a.isURLSearchParams(e) ? e.toString() : new nt(e, n).toString(r), i) {
|
|
393
|
-
const s = t.indexOf("#");
|
|
394
|
-
s !== -1 && (t = t.slice(0, s)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
|
|
395
|
-
}
|
|
396
|
-
return t;
|
|
397
|
-
}
|
|
398
|
-
class lt {
|
|
399
|
-
constructor() {
|
|
400
|
-
this.handlers = [];
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* Add a new interceptor to the stack
|
|
404
|
-
*
|
|
405
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
406
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
407
|
-
*
|
|
408
|
-
* @return {Number} An ID used to remove interceptor later
|
|
409
|
-
*/
|
|
410
|
-
use(e, n, r) {
|
|
411
|
-
return this.handlers.push({
|
|
412
|
-
fulfilled: e,
|
|
413
|
-
rejected: n,
|
|
414
|
-
synchronous: r ? r.synchronous : !1,
|
|
415
|
-
runWhen: r ? r.runWhen : null
|
|
416
|
-
}), this.handlers.length - 1;
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* Remove an interceptor from the stack
|
|
420
|
-
*
|
|
421
|
-
* @param {Number} id The ID that was returned by `use`
|
|
422
|
-
*
|
|
423
|
-
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
424
|
-
*/
|
|
425
|
-
eject(e) {
|
|
426
|
-
this.handlers[e] && (this.handlers[e] = null);
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* Clear all interceptors from the stack
|
|
430
|
-
*
|
|
431
|
-
* @returns {void}
|
|
432
|
-
*/
|
|
433
|
-
clear() {
|
|
434
|
-
this.handlers && (this.handlers = []);
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* Iterate over all the registered interceptors
|
|
438
|
-
*
|
|
439
|
-
* This method is particularly useful for skipping over any
|
|
440
|
-
* interceptors that may have become `null` calling `eject`.
|
|
441
|
-
*
|
|
442
|
-
* @param {Function} fn The function to call for each interceptor
|
|
443
|
-
*
|
|
444
|
-
* @returns {void}
|
|
445
|
-
*/
|
|
446
|
-
forEach(e) {
|
|
447
|
-
a.forEach(this.handlers, function(n) {
|
|
448
|
-
n !== null && e(n);
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
const Ut = {
|
|
453
|
-
silentJSONParsing: !0,
|
|
454
|
-
forcedJSONParsing: !0,
|
|
455
|
-
clarifyTimeoutError: !1
|
|
456
|
-
}, Oe = typeof URLSearchParams < "u" ? URLSearchParams : nt, Re = typeof FormData < "u" ? FormData : null, Se = typeof Blob < "u" ? Blob : null, Ae = (() => {
|
|
457
|
-
let t;
|
|
458
|
-
return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
459
|
-
})(), Te = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
460
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", O = {
|
|
461
|
-
isBrowser: !0,
|
|
462
|
-
classes: {
|
|
463
|
-
URLSearchParams: Oe,
|
|
464
|
-
FormData: Re,
|
|
465
|
-
Blob: Se
|
|
466
|
-
},
|
|
467
|
-
isStandardBrowserEnv: Ae,
|
|
468
|
-
isStandardBrowserWebWorkerEnv: Te,
|
|
469
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
470
|
-
};
|
|
471
|
-
function Ce(t, e) {
|
|
472
|
-
return M(t, new O.classes.URLSearchParams(), Object.assign({
|
|
473
|
-
visitor: function(n, r, o, i) {
|
|
474
|
-
return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
475
|
-
}
|
|
476
|
-
}, e));
|
|
477
|
-
}
|
|
478
|
-
function ve(t) {
|
|
479
|
-
return a.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
480
|
-
}
|
|
481
|
-
function je(t) {
|
|
482
|
-
const e = {}, n = Object.keys(t);
|
|
483
|
-
let r;
|
|
484
|
-
const o = n.length;
|
|
485
|
-
let i;
|
|
486
|
-
for (r = 0; r < o; r++)
|
|
487
|
-
i = n[r], e[i] = t[i];
|
|
488
|
-
return e;
|
|
489
|
-
}
|
|
490
|
-
function Pt(t) {
|
|
491
|
-
function e(n, r, o, i) {
|
|
492
|
-
let s = n[i++];
|
|
493
|
-
const u = Number.isFinite(+s), c = i >= n.length;
|
|
494
|
-
return s = !s && a.isArray(o) ? o.length : s, c ? (a.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !u) : ((!o[s] || !a.isObject(o[s])) && (o[s] = []), e(n, r, o[s], i) && a.isArray(o[s]) && (o[s] = je(o[s])), !u);
|
|
495
|
-
}
|
|
496
|
-
if (a.isFormData(t) && a.isFunction(t.entries)) {
|
|
497
|
-
const n = {};
|
|
498
|
-
return a.forEachEntry(t, (r, o) => {
|
|
499
|
-
e(ve(r), o, n, 0);
|
|
500
|
-
}), n;
|
|
501
|
-
}
|
|
502
|
-
return null;
|
|
503
|
-
}
|
|
504
|
-
const xe = {
|
|
505
|
-
"Content-Type": void 0
|
|
506
|
-
};
|
|
507
|
-
function Ue(t, e, n) {
|
|
508
|
-
if (a.isString(t))
|
|
509
|
-
try {
|
|
510
|
-
return (e || JSON.parse)(t), a.trim(t);
|
|
511
|
-
} catch (r) {
|
|
512
|
-
if (r.name !== "SyntaxError")
|
|
513
|
-
throw r;
|
|
514
|
-
}
|
|
515
|
-
return (n || JSON.stringify)(t);
|
|
516
|
-
}
|
|
517
|
-
const H = {
|
|
518
|
-
transitional: Ut,
|
|
519
|
-
adapter: ["xhr", "http"],
|
|
520
|
-
transformRequest: [function(t, e) {
|
|
521
|
-
const n = e.getContentType() || "", r = n.indexOf("application/json") > -1, o = a.isObject(t);
|
|
522
|
-
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
523
|
-
return r && r ? JSON.stringify(Pt(t)) : t;
|
|
524
|
-
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
|
|
525
|
-
return t;
|
|
526
|
-
if (a.isArrayBufferView(t))
|
|
527
|
-
return t.buffer;
|
|
528
|
-
if (a.isURLSearchParams(t))
|
|
529
|
-
return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
530
|
-
let i;
|
|
531
|
-
if (o) {
|
|
532
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
533
|
-
return Ce(t, this.formSerializer).toString();
|
|
534
|
-
if ((i = a.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
535
|
-
const s = this.env && this.env.FormData;
|
|
536
|
-
return M(
|
|
537
|
-
i ? { "files[]": t } : t,
|
|
538
|
-
s && new s(),
|
|
539
|
-
this.formSerializer
|
|
540
|
-
);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
return o || r ? (e.setContentType("application/json", !1), Ue(t)) : t;
|
|
544
|
-
}],
|
|
545
|
-
transformResponse: [function(t) {
|
|
546
|
-
const e = this.transitional || H.transitional, n = e && e.forcedJSONParsing, r = this.responseType === "json";
|
|
547
|
-
if (t && a.isString(t) && (n && !this.responseType || r)) {
|
|
548
|
-
const o = !(e && e.silentJSONParsing) && r;
|
|
549
|
-
try {
|
|
550
|
-
return JSON.parse(t);
|
|
551
|
-
} catch (i) {
|
|
552
|
-
if (o)
|
|
553
|
-
throw i.name === "SyntaxError" ? m.from(i, m.ERR_BAD_RESPONSE, this, null, this.response) : i;
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
return t;
|
|
557
|
-
}],
|
|
558
|
-
/**
|
|
559
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
560
|
-
* timeout is not created.
|
|
561
|
-
*/
|
|
562
|
-
timeout: 0,
|
|
563
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
564
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
565
|
-
maxContentLength: -1,
|
|
566
|
-
maxBodyLength: -1,
|
|
567
|
-
env: {
|
|
568
|
-
FormData: O.classes.FormData,
|
|
569
|
-
Blob: O.classes.Blob
|
|
570
|
-
},
|
|
571
|
-
validateStatus: function(t) {
|
|
572
|
-
return t >= 200 && t < 300;
|
|
573
|
-
},
|
|
574
|
-
headers: {
|
|
575
|
-
common: {
|
|
576
|
-
Accept: "application/json, text/plain, */*"
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
a.forEach(["delete", "get", "head"], function(t) {
|
|
581
|
-
H.headers[t] = {};
|
|
582
|
-
});
|
|
583
|
-
a.forEach(["post", "put", "patch"], function(t) {
|
|
584
|
-
H.headers[t] = a.merge(xe);
|
|
585
|
-
});
|
|
586
|
-
const rt = H, Pe = a.toObjectSet([
|
|
587
|
-
"age",
|
|
588
|
-
"authorization",
|
|
589
|
-
"content-length",
|
|
590
|
-
"content-type",
|
|
591
|
-
"etag",
|
|
592
|
-
"expires",
|
|
593
|
-
"from",
|
|
594
|
-
"host",
|
|
595
|
-
"if-modified-since",
|
|
596
|
-
"if-unmodified-since",
|
|
597
|
-
"last-modified",
|
|
598
|
-
"location",
|
|
599
|
-
"max-forwards",
|
|
600
|
-
"proxy-authorization",
|
|
601
|
-
"referer",
|
|
602
|
-
"retry-after",
|
|
603
|
-
"user-agent"
|
|
604
|
-
]), Ne = (t) => {
|
|
605
|
-
const e = {};
|
|
606
|
-
let n, r, o;
|
|
607
|
-
return t && t.split(`
|
|
608
|
-
`).forEach(function(i) {
|
|
609
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && Pe[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
610
|
-
}), e;
|
|
611
|
-
}, ft = Symbol("internals");
|
|
612
|
-
function j(t) {
|
|
613
|
-
return t && String(t).trim().toLowerCase();
|
|
614
|
-
}
|
|
615
|
-
function B(t) {
|
|
616
|
-
return t === !1 || t == null ? t : a.isArray(t) ? t.map(B) : String(t);
|
|
617
|
-
}
|
|
618
|
-
function De(t) {
|
|
619
|
-
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
620
|
-
let r;
|
|
621
|
-
for (; r = n.exec(t); )
|
|
622
|
-
e[r[1]] = r[2];
|
|
623
|
-
return e;
|
|
624
|
-
}
|
|
625
|
-
const Fe = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
626
|
-
function K(t, e, n, r, o) {
|
|
627
|
-
if (a.isFunction(r))
|
|
628
|
-
return r.call(this, e, n);
|
|
629
|
-
if (o && (e = n), !!a.isString(e)) {
|
|
630
|
-
if (a.isString(r))
|
|
631
|
-
return e.indexOf(r) !== -1;
|
|
632
|
-
if (a.isRegExp(r))
|
|
633
|
-
return r.test(e);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
function Be(t) {
|
|
637
|
-
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
638
|
-
}
|
|
639
|
-
function _e(t, e) {
|
|
640
|
-
const n = a.toCamelCase(" " + e);
|
|
641
|
-
["get", "set", "has"].forEach((r) => {
|
|
642
|
-
Object.defineProperty(t, r + n, {
|
|
643
|
-
value: function(o, i, s) {
|
|
644
|
-
return this[r].call(this, e, o, i, s);
|
|
645
|
-
},
|
|
646
|
-
configurable: !0
|
|
647
|
-
});
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
class J {
|
|
651
|
-
constructor(e) {
|
|
652
|
-
e && this.set(e);
|
|
653
|
-
}
|
|
654
|
-
set(e, n, r) {
|
|
655
|
-
const o = this;
|
|
656
|
-
function i(u, c, f) {
|
|
657
|
-
const l = j(c);
|
|
658
|
-
if (!l)
|
|
659
|
-
throw new Error("header name must be a non-empty string");
|
|
660
|
-
const h = a.findKey(o, l);
|
|
661
|
-
(!h || o[h] === void 0 || f === !0 || f === void 0 && o[h] !== !1) && (o[h || c] = B(u));
|
|
662
|
-
}
|
|
663
|
-
const s = (u, c) => a.forEach(u, (f, l) => i(f, l, c));
|
|
664
|
-
return a.isPlainObject(e) || e instanceof this.constructor ? s(e, n) : a.isString(e) && (e = e.trim()) && !Fe(e) ? s(Ne(e), n) : e != null && i(n, e, r), this;
|
|
665
|
-
}
|
|
666
|
-
get(e, n) {
|
|
667
|
-
if (e = j(e), e) {
|
|
668
|
-
const r = a.findKey(this, e);
|
|
669
|
-
if (r) {
|
|
670
|
-
const o = this[r];
|
|
671
|
-
if (!n)
|
|
672
|
-
return o;
|
|
673
|
-
if (n === !0)
|
|
674
|
-
return De(o);
|
|
675
|
-
if (a.isFunction(n))
|
|
676
|
-
return n.call(this, o, r);
|
|
677
|
-
if (a.isRegExp(n))
|
|
678
|
-
return n.exec(o);
|
|
679
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
has(e, n) {
|
|
684
|
-
if (e = j(e), e) {
|
|
685
|
-
const r = a.findKey(this, e);
|
|
686
|
-
return !!(r && this[r] !== void 0 && (!n || K(this, this[r], r, n)));
|
|
687
|
-
}
|
|
688
|
-
return !1;
|
|
689
|
-
}
|
|
690
|
-
delete(e, n) {
|
|
691
|
-
const r = this;
|
|
692
|
-
let o = !1;
|
|
693
|
-
function i(s) {
|
|
694
|
-
if (s = j(s), s) {
|
|
695
|
-
const u = a.findKey(r, s);
|
|
696
|
-
u && (!n || K(r, r[u], u, n)) && (delete r[u], o = !0);
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
return a.isArray(e) ? e.forEach(i) : i(e), o;
|
|
700
|
-
}
|
|
701
|
-
clear(e) {
|
|
702
|
-
const n = Object.keys(this);
|
|
703
|
-
let r = n.length, o = !1;
|
|
704
|
-
for (; r--; ) {
|
|
705
|
-
const i = n[r];
|
|
706
|
-
(!e || K(this, this[i], i, e, !0)) && (delete this[i], o = !0);
|
|
707
|
-
}
|
|
708
|
-
return o;
|
|
709
|
-
}
|
|
710
|
-
normalize(e) {
|
|
711
|
-
const n = this, r = {};
|
|
712
|
-
return a.forEach(this, (o, i) => {
|
|
713
|
-
const s = a.findKey(r, i);
|
|
714
|
-
if (s) {
|
|
715
|
-
n[s] = B(o), delete n[i];
|
|
716
|
-
return;
|
|
717
|
-
}
|
|
718
|
-
const u = e ? Be(i) : String(i).trim();
|
|
719
|
-
u !== i && delete n[i], n[u] = B(o), r[u] = !0;
|
|
720
|
-
}), this;
|
|
721
|
-
}
|
|
722
|
-
concat(...e) {
|
|
723
|
-
return this.constructor.concat(this, ...e);
|
|
724
|
-
}
|
|
725
|
-
toJSON(e) {
|
|
726
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
727
|
-
return a.forEach(this, (r, o) => {
|
|
728
|
-
r != null && r !== !1 && (n[o] = e && a.isArray(r) ? r.join(", ") : r);
|
|
729
|
-
}), n;
|
|
730
|
-
}
|
|
731
|
-
[Symbol.iterator]() {
|
|
732
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
733
|
-
}
|
|
734
|
-
toString() {
|
|
735
|
-
return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
|
|
736
|
-
`);
|
|
737
|
-
}
|
|
738
|
-
get [Symbol.toStringTag]() {
|
|
739
|
-
return "AxiosHeaders";
|
|
740
|
-
}
|
|
741
|
-
static from(e) {
|
|
742
|
-
return e instanceof this ? e : new this(e);
|
|
743
|
-
}
|
|
744
|
-
static concat(e, ...n) {
|
|
745
|
-
const r = new this(e);
|
|
746
|
-
return n.forEach((o) => r.set(o)), r;
|
|
747
|
-
}
|
|
748
|
-
static accessor(e) {
|
|
749
|
-
const n = (this[ft] = this[ft] = {
|
|
750
|
-
accessors: {}
|
|
751
|
-
}).accessors, r = this.prototype;
|
|
752
|
-
function o(i) {
|
|
753
|
-
const s = j(i);
|
|
754
|
-
n[s] || (_e(r, i), n[s] = !0);
|
|
755
|
-
}
|
|
756
|
-
return a.isArray(e) ? e.forEach(o) : o(e), this;
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
J.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
760
|
-
a.freezeMethods(J.prototype);
|
|
761
|
-
a.freezeMethods(J);
|
|
762
|
-
const A = J;
|
|
763
|
-
function G(t, e) {
|
|
764
|
-
const n = this || rt, r = e || n, o = A.from(r.headers);
|
|
765
|
-
let i = r.data;
|
|
766
|
-
return a.forEach(t, function(s) {
|
|
767
|
-
i = s.call(n, i, o.normalize(), e ? e.status : void 0);
|
|
768
|
-
}), o.normalize(), i;
|
|
769
|
-
}
|
|
770
|
-
function Nt(t) {
|
|
771
|
-
return !!(t && t.__CANCEL__);
|
|
772
|
-
}
|
|
773
|
-
function P(t, e, n) {
|
|
774
|
-
m.call(this, t ?? "canceled", m.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
775
|
-
}
|
|
776
|
-
a.inherits(P, m, {
|
|
777
|
-
__CANCEL__: !0
|
|
778
|
-
});
|
|
779
|
-
function Le(t, e, n) {
|
|
780
|
-
const r = n.config.validateStatus;
|
|
781
|
-
!n.status || !r || r(n.status) ? t(n) : e(new m(
|
|
782
|
-
"Request failed with status code " + n.status,
|
|
783
|
-
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
784
|
-
n.config,
|
|
785
|
-
n.request,
|
|
786
|
-
n
|
|
787
|
-
));
|
|
788
|
-
}
|
|
789
|
-
const ke = O.isStandardBrowserEnv ? (
|
|
790
|
-
// Standard browser envs support document.cookie
|
|
791
|
-
/* @__PURE__ */ function() {
|
|
792
|
-
return {
|
|
793
|
-
write: function(t, e, n, r, o, i) {
|
|
794
|
-
const s = [];
|
|
795
|
-
s.push(t + "=" + encodeURIComponent(e)), a.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()), a.isString(r) && s.push("path=" + r), a.isString(o) && s.push("domain=" + o), i === !0 && s.push("secure"), document.cookie = s.join("; ");
|
|
796
|
-
},
|
|
797
|
-
read: function(t) {
|
|
798
|
-
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
799
|
-
return e ? decodeURIComponent(e[3]) : null;
|
|
800
|
-
},
|
|
801
|
-
remove: function(t) {
|
|
802
|
-
this.write(t, "", Date.now() - 864e5);
|
|
803
|
-
}
|
|
804
|
-
};
|
|
805
|
-
}()
|
|
806
|
-
) : (
|
|
807
|
-
// Non standard browser env (web workers, react-native) lack needed support.
|
|
808
|
-
/* @__PURE__ */ function() {
|
|
809
|
-
return {
|
|
810
|
-
write: function() {
|
|
811
|
-
},
|
|
812
|
-
read: function() {
|
|
813
|
-
return null;
|
|
814
|
-
},
|
|
815
|
-
remove: function() {
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
}()
|
|
819
|
-
);
|
|
820
|
-
function Ie(t) {
|
|
821
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
822
|
-
}
|
|
823
|
-
function qe(t, e) {
|
|
824
|
-
return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
825
|
-
}
|
|
826
|
-
function Dt(t, e) {
|
|
827
|
-
return t && !Ie(e) ? qe(t, e) : e;
|
|
828
|
-
}
|
|
829
|
-
const ze = O.isStandardBrowserEnv ? (
|
|
830
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
831
|
-
// whether the request URL is of the same origin as current location.
|
|
832
|
-
function() {
|
|
833
|
-
const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a");
|
|
834
|
-
let n;
|
|
835
|
-
function r(o) {
|
|
836
|
-
let i = o;
|
|
837
|
-
return t && (e.setAttribute("href", i), i = e.href), e.setAttribute("href", i), {
|
|
838
|
-
href: e.href,
|
|
839
|
-
protocol: e.protocol ? e.protocol.replace(/:$/, "") : "",
|
|
840
|
-
host: e.host,
|
|
841
|
-
search: e.search ? e.search.replace(/^\?/, "") : "",
|
|
842
|
-
hash: e.hash ? e.hash.replace(/^#/, "") : "",
|
|
843
|
-
hostname: e.hostname,
|
|
844
|
-
port: e.port,
|
|
845
|
-
pathname: e.pathname.charAt(0) === "/" ? e.pathname : "/" + e.pathname
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
return n = r(window.location.href), function(o) {
|
|
849
|
-
const i = a.isString(o) ? r(o) : o;
|
|
850
|
-
return i.protocol === n.protocol && i.host === n.host;
|
|
851
|
-
};
|
|
852
|
-
}()
|
|
853
|
-
) : (
|
|
854
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
855
|
-
/* @__PURE__ */ function() {
|
|
856
|
-
return function() {
|
|
857
|
-
return !0;
|
|
858
|
-
};
|
|
859
|
-
}()
|
|
860
|
-
);
|
|
861
|
-
function Me(t) {
|
|
862
|
-
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
863
|
-
return e && e[1] || "";
|
|
864
|
-
}
|
|
865
|
-
function He(t, e) {
|
|
866
|
-
t = t || 10;
|
|
867
|
-
const n = new Array(t), r = new Array(t);
|
|
868
|
-
let o = 0, i = 0, s;
|
|
869
|
-
return e = e !== void 0 ? e : 1e3, function(u) {
|
|
870
|
-
const c = Date.now(), f = r[i];
|
|
871
|
-
s || (s = c), n[o] = u, r[o] = c;
|
|
872
|
-
let l = i, h = 0;
|
|
873
|
-
for (; l !== o; )
|
|
874
|
-
h += n[l++], l = l % t;
|
|
875
|
-
if (o = (o + 1) % t, o === i && (i = (i + 1) % t), c - s < e)
|
|
876
|
-
return;
|
|
877
|
-
const g = f && c - f;
|
|
878
|
-
return g ? Math.round(h * 1e3 / g) : void 0;
|
|
879
|
-
};
|
|
880
|
-
}
|
|
881
|
-
function dt(t, e) {
|
|
882
|
-
let n = 0;
|
|
883
|
-
const r = He(50, 250);
|
|
884
|
-
return (o) => {
|
|
885
|
-
const i = o.loaded, s = o.lengthComputable ? o.total : void 0, u = i - n, c = r(u), f = i <= s;
|
|
886
|
-
n = i;
|
|
887
|
-
const l = {
|
|
888
|
-
loaded: i,
|
|
889
|
-
total: s,
|
|
890
|
-
progress: s ? i / s : void 0,
|
|
891
|
-
bytes: u,
|
|
892
|
-
rate: c || void 0,
|
|
893
|
-
estimated: c && s && f ? (s - i) / c : void 0,
|
|
894
|
-
event: o
|
|
895
|
-
};
|
|
896
|
-
l[e ? "download" : "upload"] = !0, t(l);
|
|
897
|
-
};
|
|
898
|
-
}
|
|
899
|
-
const Je = typeof XMLHttpRequest < "u", Ve = Je && function(t) {
|
|
900
|
-
return new Promise(function(e, n) {
|
|
901
|
-
let r = t.data;
|
|
902
|
-
const o = A.from(t.headers).normalize(), i = t.responseType;
|
|
903
|
-
let s;
|
|
904
|
-
function u() {
|
|
905
|
-
t.cancelToken && t.cancelToken.unsubscribe(s), t.signal && t.signal.removeEventListener("abort", s);
|
|
906
|
-
}
|
|
907
|
-
a.isFormData(r) && (O.isStandardBrowserEnv || O.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1));
|
|
908
|
-
let c = new XMLHttpRequest();
|
|
909
|
-
if (t.auth) {
|
|
910
|
-
const g = t.auth.username || "", p = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
911
|
-
o.set("Authorization", "Basic " + btoa(g + ":" + p));
|
|
912
|
-
}
|
|
913
|
-
const f = Dt(t.baseURL, t.url);
|
|
914
|
-
c.open(t.method.toUpperCase(), xt(f, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
|
|
915
|
-
function l() {
|
|
916
|
-
if (!c)
|
|
917
|
-
return;
|
|
918
|
-
const g = A.from(
|
|
919
|
-
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
920
|
-
), p = {
|
|
921
|
-
data: !i || i === "text" || i === "json" ? c.responseText : c.response,
|
|
922
|
-
status: c.status,
|
|
923
|
-
statusText: c.statusText,
|
|
924
|
-
headers: g,
|
|
925
|
-
config: t,
|
|
926
|
-
request: c
|
|
927
|
-
};
|
|
928
|
-
Le(function(d) {
|
|
929
|
-
e(d), u();
|
|
930
|
-
}, function(d) {
|
|
931
|
-
n(d), u();
|
|
932
|
-
}, p), c = null;
|
|
933
|
-
}
|
|
934
|
-
if ("onloadend" in c ? c.onloadend = l : c.onreadystatechange = function() {
|
|
935
|
-
!c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(l);
|
|
936
|
-
}, c.onabort = function() {
|
|
937
|
-
c && (n(new m("Request aborted", m.ECONNABORTED, t, c)), c = null);
|
|
938
|
-
}, c.onerror = function() {
|
|
939
|
-
n(new m("Network Error", m.ERR_NETWORK, t, c)), c = null;
|
|
940
|
-
}, c.ontimeout = function() {
|
|
941
|
-
let g = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
942
|
-
const p = t.transitional || Ut;
|
|
943
|
-
t.timeoutErrorMessage && (g = t.timeoutErrorMessage), n(new m(
|
|
944
|
-
g,
|
|
945
|
-
p.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
946
|
-
t,
|
|
947
|
-
c
|
|
948
|
-
)), c = null;
|
|
949
|
-
}, O.isStandardBrowserEnv) {
|
|
950
|
-
const g = (t.withCredentials || ze(f)) && t.xsrfCookieName && ke.read(t.xsrfCookieName);
|
|
951
|
-
g && o.set(t.xsrfHeaderName, g);
|
|
952
|
-
}
|
|
953
|
-
r === void 0 && o.setContentType(null), "setRequestHeader" in c && a.forEach(o.toJSON(), function(g, p) {
|
|
954
|
-
c.setRequestHeader(p, g);
|
|
955
|
-
}), a.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), i && i !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", dt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", dt(t.onUploadProgress)), (t.cancelToken || t.signal) && (s = (g) => {
|
|
956
|
-
c && (n(!g || g.type ? new P(null, t, c) : g), c.abort(), c = null);
|
|
957
|
-
}, t.cancelToken && t.cancelToken.subscribe(s), t.signal && (t.signal.aborted ? s() : t.signal.addEventListener("abort", s)));
|
|
958
|
-
const h = Me(f);
|
|
959
|
-
if (h && O.protocols.indexOf(h) === -1) {
|
|
960
|
-
n(new m("Unsupported protocol " + h + ":", m.ERR_BAD_REQUEST, t));
|
|
961
|
-
return;
|
|
962
|
-
}
|
|
963
|
-
c.send(r || null);
|
|
964
|
-
});
|
|
965
|
-
}, _ = {
|
|
966
|
-
http: ye,
|
|
967
|
-
xhr: Ve
|
|
968
|
-
};
|
|
969
|
-
a.forEach(_, (t, e) => {
|
|
970
|
-
if (t) {
|
|
971
|
-
try {
|
|
972
|
-
Object.defineProperty(t, "name", { value: e });
|
|
973
|
-
} catch {
|
|
974
|
-
}
|
|
975
|
-
Object.defineProperty(t, "adapterName", { value: e });
|
|
976
|
-
}
|
|
977
|
-
});
|
|
978
|
-
const We = {
|
|
979
|
-
getAdapter: (t) => {
|
|
980
|
-
t = a.isArray(t) ? t : [t];
|
|
981
|
-
const { length: e } = t;
|
|
982
|
-
let n, r;
|
|
983
|
-
for (let o = 0; o < e && (n = t[o], !(r = a.isString(n) ? _[n.toLowerCase()] : n)); o++)
|
|
984
|
-
;
|
|
985
|
-
if (!r)
|
|
986
|
-
throw r === !1 ? new m(
|
|
987
|
-
`Adapter ${n} is not supported by the environment`,
|
|
988
|
-
"ERR_NOT_SUPPORT"
|
|
989
|
-
) : new Error(
|
|
990
|
-
a.hasOwnProp(_, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
|
|
991
|
-
);
|
|
992
|
-
if (!a.isFunction(r))
|
|
993
|
-
throw new TypeError("adapter is not a function");
|
|
994
|
-
return r;
|
|
995
|
-
},
|
|
996
|
-
adapters: _
|
|
997
|
-
};
|
|
998
|
-
function $(t) {
|
|
999
|
-
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1000
|
-
throw new P(null, t);
|
|
1001
|
-
}
|
|
1002
|
-
function pt(t) {
|
|
1003
|
-
return $(t), t.headers = A.from(t.headers), t.data = G.call(
|
|
1004
|
-
t,
|
|
1005
|
-
t.transformRequest
|
|
1006
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), We.getAdapter(t.adapter || rt.adapter)(t).then(function(e) {
|
|
1007
|
-
return $(t), e.data = G.call(
|
|
1008
|
-
t,
|
|
1009
|
-
t.transformResponse,
|
|
1010
|
-
e
|
|
1011
|
-
), e.headers = A.from(e.headers), e;
|
|
1012
|
-
}, function(e) {
|
|
1013
|
-
return Nt(e) || ($(t), e && e.response && (e.response.data = G.call(
|
|
1014
|
-
t,
|
|
1015
|
-
t.transformResponse,
|
|
1016
|
-
e.response
|
|
1017
|
-
), e.response.headers = A.from(e.response.headers))), Promise.reject(e);
|
|
1018
|
-
});
|
|
1019
|
-
}
|
|
1020
|
-
const ht = (t) => t instanceof A ? t.toJSON() : t;
|
|
1021
|
-
function C(t, e) {
|
|
1022
|
-
e = e || {};
|
|
1023
|
-
const n = {};
|
|
1024
|
-
function r(f, l, h) {
|
|
1025
|
-
return a.isPlainObject(f) && a.isPlainObject(l) ? a.merge.call({ caseless: h }, f, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
1026
|
-
}
|
|
1027
|
-
function o(f, l, h) {
|
|
1028
|
-
if (a.isUndefined(l)) {
|
|
1029
|
-
if (!a.isUndefined(f))
|
|
1030
|
-
return r(void 0, f, h);
|
|
1031
|
-
} else
|
|
1032
|
-
return r(f, l, h);
|
|
1033
|
-
}
|
|
1034
|
-
function i(f, l) {
|
|
1035
|
-
if (!a.isUndefined(l))
|
|
1036
|
-
return r(void 0, l);
|
|
1037
|
-
}
|
|
1038
|
-
function s(f, l) {
|
|
1039
|
-
if (a.isUndefined(l)) {
|
|
1040
|
-
if (!a.isUndefined(f))
|
|
1041
|
-
return r(void 0, f);
|
|
1042
|
-
} else
|
|
1043
|
-
return r(void 0, l);
|
|
1044
|
-
}
|
|
1045
|
-
function u(f, l, h) {
|
|
1046
|
-
if (h in e)
|
|
1047
|
-
return r(f, l);
|
|
1048
|
-
if (h in t)
|
|
1049
|
-
return r(void 0, f);
|
|
1050
|
-
}
|
|
1051
|
-
const c = {
|
|
1052
|
-
url: i,
|
|
1053
|
-
method: i,
|
|
1054
|
-
data: i,
|
|
1055
|
-
baseURL: s,
|
|
1056
|
-
transformRequest: s,
|
|
1057
|
-
transformResponse: s,
|
|
1058
|
-
paramsSerializer: s,
|
|
1059
|
-
timeout: s,
|
|
1060
|
-
timeoutMessage: s,
|
|
1061
|
-
withCredentials: s,
|
|
1062
|
-
adapter: s,
|
|
1063
|
-
responseType: s,
|
|
1064
|
-
xsrfCookieName: s,
|
|
1065
|
-
xsrfHeaderName: s,
|
|
1066
|
-
onUploadProgress: s,
|
|
1067
|
-
onDownloadProgress: s,
|
|
1068
|
-
decompress: s,
|
|
1069
|
-
maxContentLength: s,
|
|
1070
|
-
maxBodyLength: s,
|
|
1071
|
-
beforeRedirect: s,
|
|
1072
|
-
transport: s,
|
|
1073
|
-
httpAgent: s,
|
|
1074
|
-
httpsAgent: s,
|
|
1075
|
-
cancelToken: s,
|
|
1076
|
-
socketPath: s,
|
|
1077
|
-
responseEncoding: s,
|
|
1078
|
-
validateStatus: u,
|
|
1079
|
-
headers: (f, l) => o(ht(f), ht(l), !0)
|
|
1080
|
-
};
|
|
1081
|
-
return a.forEach(Object.keys(Object.assign({}, t, e)), function(f) {
|
|
1082
|
-
const l = c[f] || o, h = l(t[f], e[f], f);
|
|
1083
|
-
a.isUndefined(h) && l !== u || (n[f] = h);
|
|
1084
|
-
}), n;
|
|
1085
|
-
}
|
|
1086
|
-
const Ft = "1.4.0", ot = {};
|
|
1087
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1088
|
-
ot[t] = function(n) {
|
|
1089
|
-
return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1090
|
-
};
|
|
1091
|
-
});
|
|
1092
|
-
const mt = {};
|
|
1093
|
-
ot.transitional = function(t, e, n) {
|
|
1094
|
-
function r(o, i) {
|
|
1095
|
-
return "[Axios v" + Ft + "] Transitional option '" + o + "'" + i + (n ? ". " + n : "");
|
|
1096
|
-
}
|
|
1097
|
-
return (o, i, s) => {
|
|
1098
|
-
if (t === !1)
|
|
1099
|
-
throw new m(
|
|
1100
|
-
r(i, " has been removed" + (e ? " in " + e : "")),
|
|
1101
|
-
m.ERR_DEPRECATED
|
|
1102
|
-
);
|
|
1103
|
-
return e && !mt[i] && (mt[i] = !0, console.warn(
|
|
1104
|
-
r(
|
|
1105
|
-
i,
|
|
1106
|
-
" has been deprecated since v" + e + " and will be removed in the near future"
|
|
1107
|
-
)
|
|
1108
|
-
)), t ? t(o, i, s) : !0;
|
|
1109
|
-
};
|
|
1110
|
-
};
|
|
1111
|
-
function Ke(t, e, n) {
|
|
1112
|
-
if (typeof t != "object")
|
|
1113
|
-
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1114
|
-
const r = Object.keys(t);
|
|
1115
|
-
let o = r.length;
|
|
1116
|
-
for (; o-- > 0; ) {
|
|
1117
|
-
const i = r[o], s = e[i];
|
|
1118
|
-
if (s) {
|
|
1119
|
-
const u = t[i], c = u === void 0 || s(u, i, t);
|
|
1120
|
-
if (c !== !0)
|
|
1121
|
-
throw new m("option " + i + " must be " + c, m.ERR_BAD_OPTION_VALUE);
|
|
1122
|
-
continue;
|
|
1123
|
-
}
|
|
1124
|
-
if (n !== !0)
|
|
1125
|
-
throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
const Z = {
|
|
1129
|
-
assertOptions: Ke,
|
|
1130
|
-
validators: ot
|
|
1131
|
-
}, T = Z.validators;
|
|
1132
|
-
class k {
|
|
1133
|
-
constructor(e) {
|
|
1134
|
-
this.defaults = e, this.interceptors = {
|
|
1135
|
-
request: new lt(),
|
|
1136
|
-
response: new lt()
|
|
1137
|
-
};
|
|
1138
|
-
}
|
|
1139
|
-
/**
|
|
1140
|
-
* Dispatch a request
|
|
1141
|
-
*
|
|
1142
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1143
|
-
* @param {?Object} config
|
|
1144
|
-
*
|
|
1145
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
1146
|
-
*/
|
|
1147
|
-
request(e, n) {
|
|
1148
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = C(this.defaults, n);
|
|
1149
|
-
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
1150
|
-
r !== void 0 && Z.assertOptions(r, {
|
|
1151
|
-
silentJSONParsing: T.transitional(T.boolean),
|
|
1152
|
-
forcedJSONParsing: T.transitional(T.boolean),
|
|
1153
|
-
clarifyTimeoutError: T.transitional(T.boolean)
|
|
1154
|
-
}, !1), o != null && (a.isFunction(o) ? n.paramsSerializer = {
|
|
1155
|
-
serialize: o
|
|
1156
|
-
} : Z.assertOptions(o, {
|
|
1157
|
-
encode: T.function,
|
|
1158
|
-
serialize: T.function
|
|
1159
|
-
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1160
|
-
let s;
|
|
1161
|
-
s = i && a.merge(
|
|
1162
|
-
i.common,
|
|
1163
|
-
i[n.method]
|
|
1164
|
-
), s && a.forEach(
|
|
1165
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1166
|
-
(d) => {
|
|
1167
|
-
delete i[d];
|
|
1168
|
-
}
|
|
1169
|
-
), n.headers = A.concat(s, i);
|
|
1170
|
-
const u = [];
|
|
1171
|
-
let c = !0;
|
|
1172
|
-
this.interceptors.request.forEach(function(d) {
|
|
1173
|
-
typeof d.runWhen == "function" && d.runWhen(n) === !1 || (c = c && d.synchronous, u.unshift(d.fulfilled, d.rejected));
|
|
1174
|
-
});
|
|
1175
|
-
const f = [];
|
|
1176
|
-
this.interceptors.response.forEach(function(d) {
|
|
1177
|
-
f.push(d.fulfilled, d.rejected);
|
|
1178
|
-
});
|
|
1179
|
-
let l, h = 0, g;
|
|
1180
|
-
if (!c) {
|
|
1181
|
-
const d = [pt.bind(this), void 0];
|
|
1182
|
-
for (d.unshift.apply(d, u), d.push.apply(d, f), g = d.length, l = Promise.resolve(n); h < g; )
|
|
1183
|
-
l = l.then(d[h++], d[h++]);
|
|
1184
|
-
return l;
|
|
1185
|
-
}
|
|
1186
|
-
g = u.length;
|
|
1187
|
-
let p = n;
|
|
1188
|
-
for (h = 0; h < g; ) {
|
|
1189
|
-
const d = u[h++], S = u[h++];
|
|
1190
|
-
try {
|
|
1191
|
-
p = d(p);
|
|
1192
|
-
} catch (E) {
|
|
1193
|
-
S.call(this, E);
|
|
1194
|
-
break;
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
try {
|
|
1198
|
-
l = pt.call(this, p);
|
|
1199
|
-
} catch (d) {
|
|
1200
|
-
return Promise.reject(d);
|
|
1201
|
-
}
|
|
1202
|
-
for (h = 0, g = f.length; h < g; )
|
|
1203
|
-
l = l.then(f[h++], f[h++]);
|
|
1204
|
-
return l;
|
|
1205
|
-
}
|
|
1206
|
-
getUri(e) {
|
|
1207
|
-
e = C(this.defaults, e);
|
|
1208
|
-
const n = Dt(e.baseURL, e.url);
|
|
1209
|
-
return xt(n, e.params, e.paramsSerializer);
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1213
|
-
k.prototype[t] = function(e, n) {
|
|
1214
|
-
return this.request(C(n || {}, {
|
|
1215
|
-
method: t,
|
|
1216
|
-
url: e,
|
|
1217
|
-
data: (n || {}).data
|
|
1218
|
-
}));
|
|
1219
|
-
};
|
|
1220
|
-
});
|
|
1221
|
-
a.forEach(["post", "put", "patch"], function(t) {
|
|
1222
|
-
function e(n) {
|
|
1223
|
-
return function(r, o, i) {
|
|
1224
|
-
return this.request(C(i || {}, {
|
|
1225
|
-
method: t,
|
|
1226
|
-
headers: n ? {
|
|
1227
|
-
"Content-Type": "multipart/form-data"
|
|
1228
|
-
} : {},
|
|
1229
|
-
url: r,
|
|
1230
|
-
data: o
|
|
1231
|
-
}));
|
|
1232
|
-
};
|
|
1233
|
-
}
|
|
1234
|
-
k.prototype[t] = e(), k.prototype[t + "Form"] = e(!0);
|
|
1235
|
-
});
|
|
1236
|
-
const L = k;
|
|
1237
|
-
class it {
|
|
1238
|
-
constructor(e) {
|
|
1239
|
-
if (typeof e != "function")
|
|
1240
|
-
throw new TypeError("executor must be a function.");
|
|
1241
|
-
let n;
|
|
1242
|
-
this.promise = new Promise(function(o) {
|
|
1243
|
-
n = o;
|
|
1244
|
-
});
|
|
1245
|
-
const r = this;
|
|
1246
|
-
this.promise.then((o) => {
|
|
1247
|
-
if (!r._listeners)
|
|
1248
|
-
return;
|
|
1249
|
-
let i = r._listeners.length;
|
|
1250
|
-
for (; i-- > 0; )
|
|
1251
|
-
r._listeners[i](o);
|
|
1252
|
-
r._listeners = null;
|
|
1253
|
-
}), this.promise.then = (o) => {
|
|
1254
|
-
let i;
|
|
1255
|
-
const s = new Promise((u) => {
|
|
1256
|
-
r.subscribe(u), i = u;
|
|
1257
|
-
}).then(o);
|
|
1258
|
-
return s.cancel = function() {
|
|
1259
|
-
r.unsubscribe(i);
|
|
1260
|
-
}, s;
|
|
1261
|
-
}, e(function(o, i, s) {
|
|
1262
|
-
r.reason || (r.reason = new P(o, i, s), n(r.reason));
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
/**
|
|
1266
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
1267
|
-
*/
|
|
1268
|
-
throwIfRequested() {
|
|
1269
|
-
if (this.reason)
|
|
1270
|
-
throw this.reason;
|
|
1271
|
-
}
|
|
1272
|
-
/**
|
|
1273
|
-
* Subscribe to the cancel signal
|
|
1274
|
-
*/
|
|
1275
|
-
subscribe(e) {
|
|
1276
|
-
if (this.reason) {
|
|
1277
|
-
e(this.reason);
|
|
1278
|
-
return;
|
|
1279
|
-
}
|
|
1280
|
-
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
1281
|
-
}
|
|
1282
|
-
/**
|
|
1283
|
-
* Unsubscribe from the cancel signal
|
|
1284
|
-
*/
|
|
1285
|
-
unsubscribe(e) {
|
|
1286
|
-
if (!this._listeners)
|
|
1287
|
-
return;
|
|
1288
|
-
const n = this._listeners.indexOf(e);
|
|
1289
|
-
n !== -1 && this._listeners.splice(n, 1);
|
|
1290
|
-
}
|
|
1291
|
-
/**
|
|
1292
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1293
|
-
* cancels the `CancelToken`.
|
|
1294
|
-
*/
|
|
1295
|
-
static source() {
|
|
1296
|
-
let e;
|
|
1297
|
-
return {
|
|
1298
|
-
token: new it(function(n) {
|
|
1299
|
-
e = n;
|
|
1300
|
-
}),
|
|
1301
|
-
cancel: e
|
|
1302
|
-
};
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
const Ge = it;
|
|
1306
|
-
function $e(t) {
|
|
1307
|
-
return function(e) {
|
|
1308
|
-
return t.apply(null, e);
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
function Xe(t) {
|
|
1312
|
-
return a.isObject(t) && t.isAxiosError === !0;
|
|
1313
|
-
}
|
|
1314
|
-
const Y = {
|
|
1315
|
-
Continue: 100,
|
|
1316
|
-
SwitchingProtocols: 101,
|
|
1317
|
-
Processing: 102,
|
|
1318
|
-
EarlyHints: 103,
|
|
1319
|
-
Ok: 200,
|
|
1320
|
-
Created: 201,
|
|
1321
|
-
Accepted: 202,
|
|
1322
|
-
NonAuthoritativeInformation: 203,
|
|
1323
|
-
NoContent: 204,
|
|
1324
|
-
ResetContent: 205,
|
|
1325
|
-
PartialContent: 206,
|
|
1326
|
-
MultiStatus: 207,
|
|
1327
|
-
AlreadyReported: 208,
|
|
1328
|
-
ImUsed: 226,
|
|
1329
|
-
MultipleChoices: 300,
|
|
1330
|
-
MovedPermanently: 301,
|
|
1331
|
-
Found: 302,
|
|
1332
|
-
SeeOther: 303,
|
|
1333
|
-
NotModified: 304,
|
|
1334
|
-
UseProxy: 305,
|
|
1335
|
-
Unused: 306,
|
|
1336
|
-
TemporaryRedirect: 307,
|
|
1337
|
-
PermanentRedirect: 308,
|
|
1338
|
-
BadRequest: 400,
|
|
1339
|
-
Unauthorized: 401,
|
|
1340
|
-
PaymentRequired: 402,
|
|
1341
|
-
Forbidden: 403,
|
|
1342
|
-
NotFound: 404,
|
|
1343
|
-
MethodNotAllowed: 405,
|
|
1344
|
-
NotAcceptable: 406,
|
|
1345
|
-
ProxyAuthenticationRequired: 407,
|
|
1346
|
-
RequestTimeout: 408,
|
|
1347
|
-
Conflict: 409,
|
|
1348
|
-
Gone: 410,
|
|
1349
|
-
LengthRequired: 411,
|
|
1350
|
-
PreconditionFailed: 412,
|
|
1351
|
-
PayloadTooLarge: 413,
|
|
1352
|
-
UriTooLong: 414,
|
|
1353
|
-
UnsupportedMediaType: 415,
|
|
1354
|
-
RangeNotSatisfiable: 416,
|
|
1355
|
-
ExpectationFailed: 417,
|
|
1356
|
-
ImATeapot: 418,
|
|
1357
|
-
MisdirectedRequest: 421,
|
|
1358
|
-
UnprocessableEntity: 422,
|
|
1359
|
-
Locked: 423,
|
|
1360
|
-
FailedDependency: 424,
|
|
1361
|
-
TooEarly: 425,
|
|
1362
|
-
UpgradeRequired: 426,
|
|
1363
|
-
PreconditionRequired: 428,
|
|
1364
|
-
TooManyRequests: 429,
|
|
1365
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
1366
|
-
UnavailableForLegalReasons: 451,
|
|
1367
|
-
InternalServerError: 500,
|
|
1368
|
-
NotImplemented: 501,
|
|
1369
|
-
BadGateway: 502,
|
|
1370
|
-
ServiceUnavailable: 503,
|
|
1371
|
-
GatewayTimeout: 504,
|
|
1372
|
-
HttpVersionNotSupported: 505,
|
|
1373
|
-
VariantAlsoNegotiates: 506,
|
|
1374
|
-
InsufficientStorage: 507,
|
|
1375
|
-
LoopDetected: 508,
|
|
1376
|
-
NotExtended: 510,
|
|
1377
|
-
NetworkAuthenticationRequired: 511
|
|
1378
|
-
};
|
|
1379
|
-
Object.entries(Y).forEach(([t, e]) => {
|
|
1380
|
-
Y[e] = t;
|
|
1381
|
-
});
|
|
1382
|
-
const Qe = Y;
|
|
1383
|
-
function Bt(t) {
|
|
1384
|
-
const e = new L(t), n = yt(L.prototype.request, e);
|
|
1385
|
-
return a.extend(n, L.prototype, e, { allOwnKeys: !0 }), a.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
1386
|
-
return Bt(C(t, r));
|
|
1387
|
-
}, n;
|
|
1388
|
-
}
|
|
1389
|
-
const y = Bt(rt);
|
|
1390
|
-
y.Axios = L;
|
|
1391
|
-
y.CanceledError = P;
|
|
1392
|
-
y.CancelToken = Ge;
|
|
1393
|
-
y.isCancel = Nt;
|
|
1394
|
-
y.VERSION = Ft;
|
|
1395
|
-
y.toFormData = M;
|
|
1396
|
-
y.AxiosError = m;
|
|
1397
|
-
y.Cancel = y.CanceledError;
|
|
1398
|
-
y.all = function(t) {
|
|
1399
|
-
return Promise.all(t);
|
|
1400
|
-
};
|
|
1401
|
-
y.spread = $e;
|
|
1402
|
-
y.isAxiosError = Xe;
|
|
1403
|
-
y.mergeConfig = C;
|
|
1404
|
-
y.AxiosHeaders = A;
|
|
1405
|
-
y.formToJSON = (t) => Pt(a.isHTMLForm(t) ? new FormData(t) : t);
|
|
1406
|
-
y.HttpStatusCode = Qe;
|
|
1407
|
-
y.default = y;
|
|
1408
|
-
function sn(t, e) {
|
|
1409
|
-
if (t)
|
|
1410
|
-
for (const n in t)
|
|
1411
|
-
e[n] = t[n];
|
|
1412
|
-
}
|
|
1413
|
-
function an(t) {
|
|
1414
|
-
return !t || !Object.keys(t).length;
|
|
1415
|
-
}
|
|
1416
|
-
let N;
|
|
1417
|
-
const Ze = new Uint8Array(16);
|
|
1418
|
-
function Ye() {
|
|
1419
|
-
if (!N && (N = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !N))
|
|
1420
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1421
|
-
return N(Ze);
|
|
1422
|
-
}
|
|
1423
|
-
const b = [];
|
|
1424
|
-
for (let t = 0; t < 256; ++t)
|
|
1425
|
-
b.push((t + 256).toString(16).slice(1));
|
|
1426
|
-
function tn(t, e = 0) {
|
|
1427
|
-
return (b[t[e + 0]] + b[t[e + 1]] + b[t[e + 2]] + b[t[e + 3]] + "-" + b[t[e + 4]] + b[t[e + 5]] + "-" + b[t[e + 6]] + b[t[e + 7]] + "-" + b[t[e + 8]] + b[t[e + 9]] + "-" + b[t[e + 10]] + b[t[e + 11]] + b[t[e + 12]] + b[t[e + 13]] + b[t[e + 14]] + b[t[e + 15]]).toLowerCase();
|
|
1428
|
-
}
|
|
1429
|
-
const en = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), gt = {
|
|
1430
|
-
randomUUID: en
|
|
1431
|
-
};
|
|
1432
|
-
function nn(t, e, n) {
|
|
1433
|
-
if (gt.randomUUID && !e && !t)
|
|
1434
|
-
return gt.randomUUID();
|
|
1435
|
-
t = t || {};
|
|
1436
|
-
const r = t.random || (t.rng || Ye)();
|
|
1437
|
-
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, e) {
|
|
1438
|
-
n = n || 0;
|
|
1439
|
-
for (let o = 0; o < 16; ++o)
|
|
1440
|
-
e[n + o] = r[o];
|
|
1441
|
-
return e;
|
|
1442
|
-
}
|
|
1443
|
-
return tn(r);
|
|
1444
|
-
}
|
|
1445
|
-
nn();
|
|
1446
|
-
/*! js-cookie v3.0.5 | MIT */
|
|
1447
|
-
function D(t) {
|
|
1448
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
1449
|
-
var n = arguments[e];
|
|
1450
|
-
for (var r in n)
|
|
1451
|
-
t[r] = n[r];
|
|
1452
|
-
}
|
|
1453
|
-
return t;
|
|
1454
|
-
}
|
|
1455
|
-
var rn = {
|
|
1456
|
-
read: function(t) {
|
|
1457
|
-
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1458
|
-
},
|
|
1459
|
-
write: function(t) {
|
|
1460
|
-
return encodeURIComponent(t).replace(
|
|
1461
|
-
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
1462
|
-
decodeURIComponent
|
|
1463
|
-
);
|
|
1464
|
-
}
|
|
1465
|
-
};
|
|
1466
|
-
function tt(t, e) {
|
|
1467
|
-
function n(o, i, s) {
|
|
1468
|
-
if (!(typeof document > "u")) {
|
|
1469
|
-
s = D({}, e, s), typeof s.expires == "number" && (s.expires = new Date(Date.now() + s.expires * 864e5)), s.expires && (s.expires = s.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
1470
|
-
var u = "";
|
|
1471
|
-
for (var c in s)
|
|
1472
|
-
s[c] && (u += "; " + c, s[c] !== !0 && (u += "=" + s[c].split(";")[0]));
|
|
1473
|
-
return document.cookie = o + "=" + t.write(i, o) + u;
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
function r(o) {
|
|
1477
|
-
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
1478
|
-
for (var i = document.cookie ? document.cookie.split("; ") : [], s = {}, u = 0; u < i.length; u++) {
|
|
1479
|
-
var c = i[u].split("="), f = c.slice(1).join("=");
|
|
1480
|
-
try {
|
|
1481
|
-
var l = decodeURIComponent(c[0]);
|
|
1482
|
-
if (s[l] = t.read(f, l), o === l)
|
|
1483
|
-
break;
|
|
1484
|
-
} catch {
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
return o ? s[o] : s;
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
return Object.create(
|
|
1491
|
-
{
|
|
1492
|
-
set: n,
|
|
1493
|
-
get: r,
|
|
1494
|
-
remove: function(o, i) {
|
|
1495
|
-
n(
|
|
1496
|
-
o,
|
|
1497
|
-
"",
|
|
1498
|
-
D({}, i, {
|
|
1499
|
-
expires: -1
|
|
1500
|
-
})
|
|
1501
|
-
);
|
|
1502
|
-
},
|
|
1503
|
-
withAttributes: function(o) {
|
|
1504
|
-
return tt(this.converter, D({}, this.attributes, o));
|
|
1505
|
-
},
|
|
1506
|
-
withConverter: function(o) {
|
|
1507
|
-
return tt(D({}, this.converter, o), this.attributes);
|
|
1508
|
-
}
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
attributes: { value: Object.freeze(e) },
|
|
1512
|
-
converter: { value: Object.freeze(t) }
|
|
1513
|
-
}
|
|
1514
|
-
);
|
|
1515
|
-
}
|
|
1516
|
-
tt(rn, { path: "/" });
|
|
1517
|
-
function cn(t, e) {
|
|
1518
|
-
return (...n) => new Promise((r, o) => {
|
|
1519
|
-
t.id && clearTimeout(t.id), t.id = setTimeout(() => {
|
|
1520
|
-
try {
|
|
1521
|
-
const i = e(...n);
|
|
1522
|
-
r(i);
|
|
1523
|
-
} catch (i) {
|
|
1524
|
-
o(i);
|
|
1525
|
-
}
|
|
1526
|
-
}, t.delay);
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
const un = (t = "") => !t || !t.trim() ? "" : (t = t.trim(), t.replace(" ", "-").toLowerCase()), ln = (t, e) => new Promise((n, r) => {
|
|
1530
|
-
setTimeout(() => {
|
|
1531
|
-
try {
|
|
1532
|
-
t && t(), n();
|
|
1533
|
-
} catch {
|
|
1534
|
-
r();
|
|
1535
|
-
}
|
|
1536
|
-
}, e);
|
|
1537
|
-
});
|
|
1538
|
-
function fn(t, e = !1) {
|
|
1539
|
-
return t == null ? "" : on(e ? Math.round(t) : Math.floor(t), 0);
|
|
1540
|
-
}
|
|
1541
|
-
function on(t, e) {
|
|
1542
|
-
return !t && t !== 0 ? "" : t.toLocaleString(
|
|
1543
|
-
"it-IT",
|
|
1544
|
-
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
1545
|
-
{
|
|
1546
|
-
minimumFractionDigits: e,
|
|
1547
|
-
maximumFractionDigits: e
|
|
1548
|
-
}
|
|
1549
|
-
);
|
|
1550
|
-
}
|
|
1551
|
-
export {
|
|
1552
|
-
an as G,
|
|
1553
|
-
sn as S,
|
|
1554
|
-
cn as c,
|
|
1555
|
-
un as h,
|
|
1556
|
-
fn as w,
|
|
1557
|
-
ln as y
|
|
1558
|
-
};
|