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