@fuul/sdk 7.0.9 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.d.ts +11 -7
- package/dist/core.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +240 -240
- package/dist/index.umd.js +1 -1
- package/dist/release.json.d.ts +1 -1
- package/dist/types/api.d.ts +7 -4
- package/dist/types/api.d.ts.map +1 -1
- package/dist/user/UserService.d.ts +2 -2
- package/dist/user/UserService.d.ts.map +1 -1
- package/dist/user/types/index.d.ts +7 -8
- package/dist/user/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,10 +6,10 @@ function Ye(e, t) {
|
|
|
6
6
|
return e.apply(t, arguments);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
const { toString: Pt } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator:
|
|
9
|
+
const { toString: Pt } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator: oe, toStringTag: Ge } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
|
|
10
10
|
const n = Pt.call(t);
|
|
11
11
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
12
|
-
})(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) =>
|
|
12
|
+
})(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray: j } = Array, J = ae("undefined");
|
|
13
13
|
function W(e) {
|
|
14
14
|
return e !== null && !J(e) && e.constructor !== null && !J(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
@@ -19,10 +19,10 @@ function Ot(e) {
|
|
|
19
19
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ze(e.buffer), t;
|
|
20
20
|
}
|
|
21
21
|
const Nt = ae("string"), P = ae("function"), et = ae("number"), Q = (e) => e !== null && typeof e == "object", xt = (e) => e === !0 || e === !1, ee = (e) => {
|
|
22
|
-
if (
|
|
22
|
+
if (ie(e) !== "object")
|
|
23
23
|
return !1;
|
|
24
24
|
const t = _e(e);
|
|
25
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ge in e) && !(
|
|
25
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ge in e) && !(oe in e);
|
|
26
26
|
}, Ut = (e) => {
|
|
27
27
|
if (!Q(e) || W(e))
|
|
28
28
|
return !1;
|
|
@@ -33,7 +33,7 @@ const Nt = ae("string"), P = ae("function"), et = ae("number"), Q = (e) => e !==
|
|
|
33
33
|
}
|
|
34
34
|
}, Lt = N("Date"), Ft = N("File"), Dt = N("Blob"), kt = N("FileList"), vt = (e) => Q(e) && P(e.pipe), It = (e) => {
|
|
35
35
|
let t;
|
|
36
|
-
return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t =
|
|
36
|
+
return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = ie(e)) === "formdata" || // detect form-data instance
|
|
37
37
|
t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
|
|
38
38
|
}, Bt = N("URLSearchParams"), [qt, jt, Mt, $t] = ["ReadableStream", "Request", "Response", "Headers"].map(N), Ht = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
39
39
|
function X(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
@@ -46,10 +46,10 @@ function X(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
46
46
|
else {
|
|
47
47
|
if (W(e))
|
|
48
48
|
return;
|
|
49
|
-
const
|
|
49
|
+
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
50
50
|
let c;
|
|
51
|
-
for (r = 0; r <
|
|
52
|
-
c =
|
|
51
|
+
for (r = 0; r < i; r++)
|
|
52
|
+
c = o[r], t.call(null, e[c], c, e);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function tt(e, t) {
|
|
@@ -66,26 +66,26 @@ function tt(e, t) {
|
|
|
66
66
|
const v = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, nt = (e) => !J(e) && e !== v;
|
|
67
67
|
function ye() {
|
|
68
68
|
const { caseless: e } = nt(this) && this || {}, t = {}, n = (r, s) => {
|
|
69
|
-
const
|
|
70
|
-
ee(t[
|
|
69
|
+
const o = e && tt(t, s) || s;
|
|
70
|
+
ee(t[o]) && ee(r) ? t[o] = ye(t[o], r) : ee(r) ? t[o] = ye({}, r) : j(r) ? t[o] = r.slice() : t[o] = r;
|
|
71
71
|
};
|
|
72
72
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
73
73
|
arguments[r] && X(arguments[r], n);
|
|
74
74
|
return t;
|
|
75
75
|
}
|
|
76
|
-
const Kt = (e, t, n, { allOwnKeys: r } = {}) => (X(t, (s,
|
|
77
|
-
n && P(s) ? e[
|
|
76
|
+
const Kt = (e, t, n, { allOwnKeys: r } = {}) => (X(t, (s, o) => {
|
|
77
|
+
n && P(s) ? e[o] = Ye(s, n) : e[o] = s;
|
|
78
78
|
}, { allOwnKeys: r }), e), Vt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), zt = (e, t, n, r) => {
|
|
79
79
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
80
80
|
value: t.prototype
|
|
81
81
|
}), n && Object.assign(e.prototype, n);
|
|
82
82
|
}, Jt = (e, t, n, r) => {
|
|
83
|
-
let s,
|
|
83
|
+
let s, o, i;
|
|
84
84
|
const c = {};
|
|
85
85
|
if (t = t || {}, e == null) return t;
|
|
86
86
|
do {
|
|
87
|
-
for (s = Object.getOwnPropertyNames(e),
|
|
88
|
-
|
|
87
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
88
|
+
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
89
89
|
e = n !== !1 && _e(e);
|
|
90
90
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
91
91
|
return t;
|
|
@@ -103,11 +103,11 @@ const Kt = (e, t, n, { allOwnKeys: r } = {}) => (X(t, (s, i) => {
|
|
|
103
103
|
n[t] = e[t];
|
|
104
104
|
return n;
|
|
105
105
|
}, Xt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && _e(Uint8Array)), Yt = (e, t) => {
|
|
106
|
-
const r = (e && e[
|
|
106
|
+
const r = (e && e[oe]).call(e);
|
|
107
107
|
let s;
|
|
108
108
|
for (; (s = r.next()) && !s.done; ) {
|
|
109
|
-
const
|
|
110
|
-
t.call(e,
|
|
109
|
+
const o = s.value;
|
|
110
|
+
t.call(e, o[0], o[1]);
|
|
111
111
|
}
|
|
112
112
|
}, Gt = (e, t) => {
|
|
113
113
|
let n;
|
|
@@ -122,9 +122,9 @@ const Kt = (e, t, n, { allOwnKeys: r } = {}) => (X(t, (s, i) => {
|
|
|
122
122
|
}
|
|
123
123
|
), Ue = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), tn = N("RegExp"), rt = (e, t) => {
|
|
124
124
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
125
|
-
X(n, (s,
|
|
126
|
-
let
|
|
127
|
-
(
|
|
125
|
+
X(n, (s, o) => {
|
|
126
|
+
let i;
|
|
127
|
+
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
128
128
|
}), Object.defineProperties(e, r);
|
|
129
129
|
}, nn = (e) => {
|
|
130
130
|
rt(e, (t, n) => {
|
|
@@ -143,15 +143,15 @@ const Kt = (e, t, n, { allOwnKeys: r } = {}) => (X(t, (s, i) => {
|
|
|
143
143
|
});
|
|
144
144
|
}, rn = (e, t) => {
|
|
145
145
|
const n = {}, r = (s) => {
|
|
146
|
-
s.forEach((
|
|
147
|
-
n[
|
|
146
|
+
s.forEach((o) => {
|
|
147
|
+
n[o] = !0;
|
|
148
148
|
});
|
|
149
149
|
};
|
|
150
150
|
return j(e) ? r(e) : r(String(e).split(t)), n;
|
|
151
151
|
}, sn = () => {
|
|
152
152
|
}, on = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
153
153
|
function an(e) {
|
|
154
|
-
return !!(e && P(e.append) && e[Ge] === "FormData" && e[
|
|
154
|
+
return !!(e && P(e.append) && e[Ge] === "FormData" && e[oe]);
|
|
155
155
|
}
|
|
156
156
|
const cn = (e) => {
|
|
157
157
|
const t = new Array(10), n = (r, s) => {
|
|
@@ -162,24 +162,24 @@ const cn = (e) => {
|
|
|
162
162
|
return r;
|
|
163
163
|
if (!("toJSON" in r)) {
|
|
164
164
|
t[s] = r;
|
|
165
|
-
const
|
|
166
|
-
return X(r, (
|
|
167
|
-
const d = n(
|
|
168
|
-
!J(d) && (
|
|
169
|
-
}), t[s] = void 0,
|
|
165
|
+
const o = j(r) ? [] : {};
|
|
166
|
+
return X(r, (i, c) => {
|
|
167
|
+
const d = n(i, s + 1);
|
|
168
|
+
!J(d) && (o[c] = d);
|
|
169
|
+
}), t[s] = void 0, o;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
return r;
|
|
173
173
|
};
|
|
174
174
|
return n(e, 0);
|
|
175
|
-
}, un = N("AsyncFunction"), ln = (e) => e && (Q(e) || P(e)) && P(e.then) && P(e.catch), st = ((e, t) => e ? setImmediate : t ? ((n, r) => (v.addEventListener("message", ({ source: s, data:
|
|
176
|
-
s === v &&
|
|
175
|
+
}, un = N("AsyncFunction"), ln = (e) => e && (Q(e) || P(e)) && P(e.then) && P(e.catch), st = ((e, t) => e ? setImmediate : t ? ((n, r) => (v.addEventListener("message", ({ source: s, data: o }) => {
|
|
176
|
+
s === v && o === n && r.length && r.shift()();
|
|
177
177
|
}, !1), (s) => {
|
|
178
178
|
r.push(s), v.postMessage(n, "*");
|
|
179
179
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
180
180
|
typeof setImmediate == "function",
|
|
181
181
|
P(v.postMessage)
|
|
182
|
-
), dn = typeof queueMicrotask < "u" ? queueMicrotask.bind(v) : typeof process < "u" && process.nextTick || st, fn = (e) => e != null && P(e[
|
|
182
|
+
), dn = typeof queueMicrotask < "u" ? queueMicrotask.bind(v) : typeof process < "u" && process.nextTick || st, fn = (e) => e != null && P(e[oe]), a = {
|
|
183
183
|
isArray: j,
|
|
184
184
|
isArrayBuffer: Ze,
|
|
185
185
|
isBuffer: W,
|
|
@@ -212,7 +212,7 @@ const cn = (e) => {
|
|
|
212
212
|
stripBOM: Vt,
|
|
213
213
|
inherits: zt,
|
|
214
214
|
toFlatObject: Jt,
|
|
215
|
-
kindOf:
|
|
215
|
+
kindOf: ie,
|
|
216
216
|
kindOfTest: N,
|
|
217
217
|
endsWith: Wt,
|
|
218
218
|
toArray: Qt,
|
|
@@ -263,7 +263,7 @@ a.inherits(m, Error, {
|
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
|
-
const
|
|
266
|
+
const ot = m.prototype, it = {};
|
|
267
267
|
[
|
|
268
268
|
"ERR_BAD_OPTION_VALUE",
|
|
269
269
|
"ERR_BAD_OPTION",
|
|
@@ -279,15 +279,15 @@ const it = m.prototype, ot = {};
|
|
|
279
279
|
"ERR_INVALID_URL"
|
|
280
280
|
// eslint-disable-next-line func-names
|
|
281
281
|
].forEach((e) => {
|
|
282
|
-
|
|
282
|
+
it[e] = { value: e };
|
|
283
283
|
});
|
|
284
|
-
Object.defineProperties(m,
|
|
285
|
-
Object.defineProperty(
|
|
286
|
-
m.from = (e, t, n, r, s,
|
|
287
|
-
const
|
|
288
|
-
return a.toFlatObject(e,
|
|
284
|
+
Object.defineProperties(m, it);
|
|
285
|
+
Object.defineProperty(ot, "isAxiosError", { value: !0 });
|
|
286
|
+
m.from = (e, t, n, r, s, o) => {
|
|
287
|
+
const i = Object.create(ot);
|
|
288
|
+
return a.toFlatObject(e, i, function(d) {
|
|
289
289
|
return d !== Error.prototype;
|
|
290
|
-
}, (c) => c !== "isAxiosError"), m.call(
|
|
290
|
+
}, (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;
|
|
291
291
|
};
|
|
292
292
|
const hn = null;
|
|
293
293
|
function ge(e) {
|
|
@@ -297,8 +297,8 @@ function at(e) {
|
|
|
297
297
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
298
298
|
}
|
|
299
299
|
function Le(e, t, n) {
|
|
300
|
-
return e ? e.concat(t).map(function(s,
|
|
301
|
-
return s = at(s), !n &&
|
|
300
|
+
return e ? e.concat(t).map(function(s, o) {
|
|
301
|
+
return s = at(s), !n && o ? "[" + s + "]" : s;
|
|
302
302
|
}).join(n ? "." : "") : t;
|
|
303
303
|
}
|
|
304
304
|
function pn(e) {
|
|
@@ -317,7 +317,7 @@ function ce(e, t, n) {
|
|
|
317
317
|
}, !1, function(y, p) {
|
|
318
318
|
return !a.isUndefined(p[y]);
|
|
319
319
|
});
|
|
320
|
-
const r = n.metaTokens, s = n.visitor || l,
|
|
320
|
+
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
321
321
|
if (!a.isFunction(s))
|
|
322
322
|
throw new TypeError("visitor must be a function");
|
|
323
323
|
function u(h) {
|
|
@@ -339,12 +339,12 @@ function ce(e, t, n) {
|
|
|
339
339
|
return y = at(y), b.forEach(function(_, U) {
|
|
340
340
|
!(a.isUndefined(_) || _ === null) && t.append(
|
|
341
341
|
// eslint-disable-next-line no-nested-ternary
|
|
342
|
-
|
|
342
|
+
i === !0 ? Le([y], U, o) : i === null ? y : y + "[]",
|
|
343
343
|
u(_)
|
|
344
344
|
);
|
|
345
345
|
}), !1;
|
|
346
346
|
}
|
|
347
|
-
return ge(h) ? !0 : (t.append(Le(p, y,
|
|
347
|
+
return ge(h) ? !0 : (t.append(Le(p, y, o), u(h)), !1);
|
|
348
348
|
}
|
|
349
349
|
const f = [], g = Object.assign(mn, {
|
|
350
350
|
defaultVisitor: l,
|
|
@@ -410,10 +410,10 @@ function ut(e, t, n) {
|
|
|
410
410
|
serialize: n
|
|
411
411
|
});
|
|
412
412
|
const s = n && n.serialize;
|
|
413
|
-
let
|
|
414
|
-
if (s ?
|
|
415
|
-
const
|
|
416
|
-
|
|
413
|
+
let o;
|
|
414
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Re(t, n).toString(r), o) {
|
|
415
|
+
const i = e.indexOf("#");
|
|
416
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
417
417
|
}
|
|
418
418
|
return e;
|
|
419
419
|
}
|
|
@@ -497,8 +497,8 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", _n
|
|
|
497
497
|
};
|
|
498
498
|
function Tn(e, t) {
|
|
499
499
|
return ce(e, new R.classes.URLSearchParams(), {
|
|
500
|
-
visitor: function(n, r, s,
|
|
501
|
-
return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) :
|
|
500
|
+
visitor: function(n, r, s, o) {
|
|
501
|
+
return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
502
502
|
},
|
|
503
503
|
...t
|
|
504
504
|
});
|
|
@@ -510,17 +510,17 @@ function Pn(e) {
|
|
|
510
510
|
const t = {}, n = Object.keys(e);
|
|
511
511
|
let r;
|
|
512
512
|
const s = n.length;
|
|
513
|
-
let
|
|
513
|
+
let o;
|
|
514
514
|
for (r = 0; r < s; r++)
|
|
515
|
-
|
|
515
|
+
o = n[r], t[o] = e[o];
|
|
516
516
|
return t;
|
|
517
517
|
}
|
|
518
518
|
function dt(e) {
|
|
519
|
-
function t(n, r, s,
|
|
520
|
-
let
|
|
521
|
-
if (
|
|
522
|
-
const c = Number.isFinite(+
|
|
523
|
-
return
|
|
519
|
+
function t(n, r, s, o) {
|
|
520
|
+
let i = n[o++];
|
|
521
|
+
if (i === "__proto__") return !0;
|
|
522
|
+
const c = Number.isFinite(+i), d = o >= n.length;
|
|
523
|
+
return i = !i && a.isArray(s) ? s.length : i, d ? (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] = Pn(s[i])), !c);
|
|
524
524
|
}
|
|
525
525
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
526
526
|
const n = {};
|
|
@@ -544,8 +544,8 @@ const Y = {
|
|
|
544
544
|
transitional: lt,
|
|
545
545
|
adapter: ["xhr", "http", "fetch"],
|
|
546
546
|
transformRequest: [function(t, n) {
|
|
547
|
-
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1,
|
|
548
|
-
if (
|
|
547
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
548
|
+
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
549
549
|
return s ? JSON.stringify(dt(t)) : t;
|
|
550
550
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
551
551
|
return t;
|
|
@@ -554,7 +554,7 @@ const Y = {
|
|
|
554
554
|
if (a.isURLSearchParams(t))
|
|
555
555
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
556
556
|
let c;
|
|
557
|
-
if (
|
|
557
|
+
if (o) {
|
|
558
558
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
559
559
|
return Tn(t, this.formSerializer).toString();
|
|
560
560
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
@@ -566,18 +566,18 @@ const Y = {
|
|
|
566
566
|
);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
return
|
|
569
|
+
return o || s ? (n.setContentType("application/json", !1), On(t)) : t;
|
|
570
570
|
}],
|
|
571
571
|
transformResponse: [function(t) {
|
|
572
572
|
const n = this.transitional || Y.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
573
573
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
574
574
|
return t;
|
|
575
575
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
576
|
-
const
|
|
576
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
577
577
|
try {
|
|
578
578
|
return JSON.parse(t);
|
|
579
579
|
} catch (c) {
|
|
580
|
-
if (
|
|
580
|
+
if (i)
|
|
581
581
|
throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
@@ -631,8 +631,8 @@ const Nn = a.toObjectSet([
|
|
|
631
631
|
const t = {};
|
|
632
632
|
let n, r, s;
|
|
633
633
|
return e && e.split(`
|
|
634
|
-
`).forEach(function(
|
|
635
|
-
s =
|
|
634
|
+
`).forEach(function(i) {
|
|
635
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Nn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
636
636
|
}), t;
|
|
637
637
|
}, ke = Symbol("internals");
|
|
638
638
|
function V(e) {
|
|
@@ -666,8 +666,8 @@ function Dn(e, t) {
|
|
|
666
666
|
const n = a.toCamelCase(" " + t);
|
|
667
667
|
["get", "set", "has"].forEach((r) => {
|
|
668
668
|
Object.defineProperty(e, r + n, {
|
|
669
|
-
value: function(s,
|
|
670
|
-
return this[r].call(this, t, s,
|
|
669
|
+
value: function(s, o, i) {
|
|
670
|
+
return this[r].call(this, t, s, o, i);
|
|
671
671
|
},
|
|
672
672
|
configurable: !0
|
|
673
673
|
});
|
|
@@ -679,18 +679,18 @@ let O = class {
|
|
|
679
679
|
}
|
|
680
680
|
set(t, n, r) {
|
|
681
681
|
const s = this;
|
|
682
|
-
function
|
|
682
|
+
function o(c, d, u) {
|
|
683
683
|
const l = V(d);
|
|
684
684
|
if (!l)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
686
|
const f = a.findKey(s, l);
|
|
687
687
|
(!f || s[f] === void 0 || u === !0 || u === void 0 && s[f] !== !1) && (s[f || d] = te(c));
|
|
688
688
|
}
|
|
689
|
-
const
|
|
689
|
+
const i = (c, d) => a.forEach(c, (u, l) => o(u, l, d));
|
|
690
690
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
691
|
-
|
|
691
|
+
i(t, n);
|
|
692
692
|
else if (a.isString(t) && (t = t.trim()) && !Ln(t))
|
|
693
|
-
|
|
693
|
+
i(xn(t), n);
|
|
694
694
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
695
695
|
let c = {}, d, u;
|
|
696
696
|
for (const l of t) {
|
|
@@ -698,9 +698,9 @@ let O = class {
|
|
|
698
698
|
throw TypeError("Object iterator must return a key-value pair");
|
|
699
699
|
c[u = l[0]] = (d = c[u]) ? a.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
|
|
700
700
|
}
|
|
701
|
-
|
|
701
|
+
i(c, n);
|
|
702
702
|
} else
|
|
703
|
-
t != null &&
|
|
703
|
+
t != null && o(n, t, r);
|
|
704
704
|
return this;
|
|
705
705
|
}
|
|
706
706
|
get(t, n) {
|
|
@@ -730,33 +730,33 @@ let O = class {
|
|
|
730
730
|
delete(t, n) {
|
|
731
731
|
const r = this;
|
|
732
732
|
let s = !1;
|
|
733
|
-
function i
|
|
734
|
-
if (
|
|
735
|
-
const c = a.findKey(r,
|
|
733
|
+
function o(i) {
|
|
734
|
+
if (i = V(i), i) {
|
|
735
|
+
const c = a.findKey(r, i);
|
|
736
736
|
c && (!n || he(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
return a.isArray(t) ? t.forEach(
|
|
739
|
+
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
740
740
|
}
|
|
741
741
|
clear(t) {
|
|
742
742
|
const n = Object.keys(this);
|
|
743
743
|
let r = n.length, s = !1;
|
|
744
744
|
for (; r--; ) {
|
|
745
|
-
const
|
|
746
|
-
(!t || he(this, this[
|
|
745
|
+
const o = n[r];
|
|
746
|
+
(!t || he(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
747
747
|
}
|
|
748
748
|
return s;
|
|
749
749
|
}
|
|
750
750
|
normalize(t) {
|
|
751
751
|
const n = this, r = {};
|
|
752
|
-
return a.forEach(this, (s,
|
|
753
|
-
const
|
|
754
|
-
if (
|
|
755
|
-
n[
|
|
752
|
+
return a.forEach(this, (s, o) => {
|
|
753
|
+
const i = a.findKey(r, o);
|
|
754
|
+
if (i) {
|
|
755
|
+
n[i] = te(s), delete n[o];
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
const c = t ? Fn(
|
|
759
|
-
c !==
|
|
758
|
+
const c = t ? Fn(o) : String(o).trim();
|
|
759
|
+
c !== o && delete n[o], n[c] = te(s), r[c] = !0;
|
|
760
760
|
}), this;
|
|
761
761
|
}
|
|
762
762
|
concat(...t) {
|
|
@@ -792,11 +792,11 @@ let O = class {
|
|
|
792
792
|
const r = (this[ke] = this[ke] = {
|
|
793
793
|
accessors: {}
|
|
794
794
|
}).accessors, s = this.prototype;
|
|
795
|
-
function i
|
|
796
|
-
const c = V(
|
|
797
|
-
r[c] || (Dn(s,
|
|
795
|
+
function o(i) {
|
|
796
|
+
const c = V(i);
|
|
797
|
+
r[c] || (Dn(s, i), r[c] = !0);
|
|
798
798
|
}
|
|
799
|
-
return a.isArray(t) ? t.forEach(
|
|
799
|
+
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
802
|
O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
@@ -812,10 +812,10 @@ a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
|
|
|
812
812
|
a.freezeMethods(O);
|
|
813
813
|
function pe(e, t) {
|
|
814
814
|
const n = this || Y, r = t || n, s = O.from(r.headers);
|
|
815
|
-
let
|
|
815
|
+
let o = r.data;
|
|
816
816
|
return a.forEach(e, function(c) {
|
|
817
|
-
|
|
818
|
-
}), s.normalize(),
|
|
817
|
+
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
818
|
+
}), s.normalize(), o;
|
|
819
819
|
}
|
|
820
820
|
function ft(e) {
|
|
821
821
|
return !!(e && e.__CANCEL__);
|
|
@@ -843,45 +843,45 @@ function kn(e) {
|
|
|
843
843
|
function vn(e, t) {
|
|
844
844
|
e = e || 10;
|
|
845
845
|
const n = new Array(e), r = new Array(e);
|
|
846
|
-
let s = 0,
|
|
846
|
+
let s = 0, o = 0, i;
|
|
847
847
|
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
848
|
-
const u = Date.now(), l = r[
|
|
849
|
-
|
|
850
|
-
let f =
|
|
848
|
+
const u = Date.now(), l = r[o];
|
|
849
|
+
i || (i = u), n[s] = d, r[s] = u;
|
|
850
|
+
let f = o, g = 0;
|
|
851
851
|
for (; f !== s; )
|
|
852
852
|
g += n[f++], f = f % e;
|
|
853
|
-
if (s = (s + 1) % e, s ===
|
|
853
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
854
854
|
return;
|
|
855
855
|
const w = l && u - l;
|
|
856
856
|
return w ? Math.round(g * 1e3 / w) : void 0;
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
859
|
function In(e, t) {
|
|
860
|
-
let n = 0, r = 1e3 / t, s,
|
|
861
|
-
const
|
|
862
|
-
n = l, s = null,
|
|
860
|
+
let n = 0, r = 1e3 / t, s, o;
|
|
861
|
+
const i = (u, l = Date.now()) => {
|
|
862
|
+
n = l, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
863
863
|
};
|
|
864
864
|
return [(...u) => {
|
|
865
865
|
const l = Date.now(), f = l - n;
|
|
866
|
-
f >= r ?
|
|
867
|
-
|
|
866
|
+
f >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
867
|
+
o = null, i(s);
|
|
868
868
|
}, r - f)));
|
|
869
|
-
}, () => s &&
|
|
869
|
+
}, () => s && i(s)];
|
|
870
870
|
}
|
|
871
871
|
const re = (e, t, n = 3) => {
|
|
872
872
|
let r = 0;
|
|
873
873
|
const s = vn(50, 250);
|
|
874
|
-
return In((
|
|
875
|
-
const
|
|
876
|
-
r =
|
|
874
|
+
return In((o) => {
|
|
875
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, d = i - r, u = s(d), l = i <= c;
|
|
876
|
+
r = i;
|
|
877
877
|
const f = {
|
|
878
|
-
loaded:
|
|
878
|
+
loaded: i,
|
|
879
879
|
total: c,
|
|
880
|
-
progress: c ?
|
|
880
|
+
progress: c ? i / c : void 0,
|
|
881
881
|
bytes: d,
|
|
882
882
|
rate: u || void 0,
|
|
883
|
-
estimated: u && c && l ? (c -
|
|
884
|
-
event:
|
|
883
|
+
estimated: u && c && l ? (c - i) / u : void 0,
|
|
884
|
+
event: o,
|
|
885
885
|
lengthComputable: c != null,
|
|
886
886
|
[t ? "download" : "upload"]: !0
|
|
887
887
|
};
|
|
@@ -900,9 +900,9 @@ const re = (e, t, n = 3) => {
|
|
|
900
900
|
) : () => !0, qn = R.hasStandardBrowserEnv ? (
|
|
901
901
|
// Standard browser envs support document.cookie
|
|
902
902
|
{
|
|
903
|
-
write(e, t, n, r, s,
|
|
904
|
-
const
|
|
905
|
-
a.isNumber(n) &&
|
|
903
|
+
write(e, t, n, r, s, o) {
|
|
904
|
+
const i = [e + "=" + encodeURIComponent(t)];
|
|
905
|
+
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("; ");
|
|
906
906
|
},
|
|
907
907
|
read(e) {
|
|
908
908
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -947,11 +947,11 @@ function B(e, t) {
|
|
|
947
947
|
return r(void 0, u, f, g);
|
|
948
948
|
} else return r(u, l, f, g);
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function o(u, l) {
|
|
951
951
|
if (!a.isUndefined(l))
|
|
952
952
|
return r(void 0, l);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function i(u, l) {
|
|
955
955
|
if (a.isUndefined(l)) {
|
|
956
956
|
if (!a.isUndefined(u))
|
|
957
957
|
return r(void 0, u);
|
|
@@ -964,33 +964,33 @@ function B(e, t) {
|
|
|
964
964
|
return r(void 0, u);
|
|
965
965
|
}
|
|
966
966
|
const d = {
|
|
967
|
-
url:
|
|
968
|
-
method:
|
|
969
|
-
data:
|
|
970
|
-
baseURL:
|
|
971
|
-
transformRequest:
|
|
972
|
-
transformResponse:
|
|
973
|
-
paramsSerializer:
|
|
974
|
-
timeout:
|
|
975
|
-
timeoutMessage:
|
|
976
|
-
withCredentials:
|
|
977
|
-
withXSRFToken:
|
|
978
|
-
adapter:
|
|
979
|
-
responseType:
|
|
980
|
-
xsrfCookieName:
|
|
981
|
-
xsrfHeaderName:
|
|
982
|
-
onUploadProgress:
|
|
983
|
-
onDownloadProgress:
|
|
984
|
-
decompress:
|
|
985
|
-
maxContentLength:
|
|
986
|
-
maxBodyLength:
|
|
987
|
-
beforeRedirect:
|
|
988
|
-
transport:
|
|
989
|
-
httpAgent:
|
|
990
|
-
httpsAgent:
|
|
991
|
-
cancelToken:
|
|
992
|
-
socketPath:
|
|
993
|
-
responseEncoding:
|
|
967
|
+
url: o,
|
|
968
|
+
method: o,
|
|
969
|
+
data: o,
|
|
970
|
+
baseURL: i,
|
|
971
|
+
transformRequest: i,
|
|
972
|
+
transformResponse: i,
|
|
973
|
+
paramsSerializer: i,
|
|
974
|
+
timeout: i,
|
|
975
|
+
timeoutMessage: i,
|
|
976
|
+
withCredentials: i,
|
|
977
|
+
withXSRFToken: i,
|
|
978
|
+
adapter: i,
|
|
979
|
+
responseType: i,
|
|
980
|
+
xsrfCookieName: i,
|
|
981
|
+
xsrfHeaderName: i,
|
|
982
|
+
onUploadProgress: i,
|
|
983
|
+
onDownloadProgress: i,
|
|
984
|
+
decompress: i,
|
|
985
|
+
maxContentLength: i,
|
|
986
|
+
maxBodyLength: i,
|
|
987
|
+
beforeRedirect: i,
|
|
988
|
+
transport: i,
|
|
989
|
+
httpAgent: i,
|
|
990
|
+
httpsAgent: i,
|
|
991
|
+
cancelToken: i,
|
|
992
|
+
socketPath: i,
|
|
993
|
+
responseEncoding: i,
|
|
994
994
|
validateStatus: c,
|
|
995
995
|
headers: (u, l, f) => s(Be(u), Be(l), f, !0)
|
|
996
996
|
};
|
|
@@ -1001,30 +1001,30 @@ function B(e, t) {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
const mt = (e) => {
|
|
1003
1003
|
const t = B({}, e);
|
|
1004
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName:
|
|
1005
|
-
t.headers =
|
|
1004
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
1005
|
+
t.headers = i = O.from(i), t.url = ut(pt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
1006
1006
|
"Authorization",
|
|
1007
1007
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1008
1008
|
);
|
|
1009
1009
|
let d;
|
|
1010
1010
|
if (a.isFormData(n)) {
|
|
1011
1011
|
if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
|
|
1012
|
-
|
|
1013
|
-
else if ((d =
|
|
1012
|
+
i.setContentType(void 0);
|
|
1013
|
+
else if ((d = i.getContentType()) !== !1) {
|
|
1014
1014
|
const [u, ...l] = d ? d.split(";").map((f) => f.trim()).filter(Boolean) : [];
|
|
1015
|
-
|
|
1015
|
+
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Bn(t.url))) {
|
|
1019
|
-
const u = s &&
|
|
1020
|
-
u &&
|
|
1019
|
+
const u = s && o && qn.read(o);
|
|
1020
|
+
u && i.set(s, u);
|
|
1021
1021
|
}
|
|
1022
1022
|
return t;
|
|
1023
1023
|
}, $n = typeof XMLHttpRequest < "u", Hn = $n && function(e) {
|
|
1024
1024
|
return new Promise(function(n, r) {
|
|
1025
1025
|
const s = mt(e);
|
|
1026
|
-
let
|
|
1027
|
-
const
|
|
1026
|
+
let o = s.data;
|
|
1027
|
+
const i = O.from(s.headers).normalize();
|
|
1028
1028
|
let { responseType: c, onUploadProgress: d, onDownloadProgress: u } = s, l, f, g, w, h;
|
|
1029
1029
|
function y() {
|
|
1030
1030
|
w && w(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
@@ -1065,7 +1065,7 @@ const mt = (e) => {
|
|
|
1065
1065
|
e,
|
|
1066
1066
|
p
|
|
1067
1067
|
)), p = null;
|
|
1068
|
-
},
|
|
1068
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(U, A) {
|
|
1069
1069
|
p.setRequestHeader(A, U);
|
|
1070
1070
|
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([g, h] = re(u, !0), p.addEventListener("progress", g)), d && p.upload && ([f, w] = re(d), p.upload.addEventListener("progress", f), p.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (l = (_) => {
|
|
1071
1071
|
p && (r(!_ || _.type ? new M(null, e, p) : _), p.abort(), p = null);
|
|
@@ -1075,28 +1075,28 @@ const mt = (e) => {
|
|
|
1075
1075
|
r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, e));
|
|
1076
1076
|
return;
|
|
1077
1077
|
}
|
|
1078
|
-
p.send(
|
|
1078
|
+
p.send(o || null);
|
|
1079
1079
|
});
|
|
1080
1080
|
}, Kn = (e, t) => {
|
|
1081
1081
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1082
1082
|
if (t || n) {
|
|
1083
1083
|
let r = new AbortController(), s;
|
|
1084
|
-
const
|
|
1084
|
+
const o = function(u) {
|
|
1085
1085
|
if (!s) {
|
|
1086
1086
|
s = !0, c();
|
|
1087
1087
|
const l = u instanceof Error ? u : this.reason;
|
|
1088
1088
|
r.abort(l instanceof m ? l : new M(l instanceof Error ? l.message : l));
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
|
-
let
|
|
1092
|
-
|
|
1091
|
+
let i = t && setTimeout(() => {
|
|
1092
|
+
i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
|
|
1093
1093
|
}, t);
|
|
1094
1094
|
const c = () => {
|
|
1095
|
-
e && (
|
|
1096
|
-
u.unsubscribe ? u.unsubscribe(
|
|
1095
|
+
e && (i && clearTimeout(i), i = null, e.forEach((u) => {
|
|
1096
|
+
u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
|
|
1097
1097
|
}), e = null);
|
|
1098
1098
|
};
|
|
1099
|
-
e.forEach((u) => u.addEventListener("abort",
|
|
1099
|
+
e.forEach((u) => u.addEventListener("abort", o));
|
|
1100
1100
|
const { signal: d } = r;
|
|
1101
1101
|
return d.unsubscribe = () => a.asap(c), d;
|
|
1102
1102
|
}
|
|
@@ -1130,8 +1130,8 @@ const mt = (e) => {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
}, qe = (e, t, n, r) => {
|
|
1132
1132
|
const s = zn(e, t);
|
|
1133
|
-
let
|
|
1134
|
-
|
|
1133
|
+
let o = 0, i, c = (d) => {
|
|
1134
|
+
i || (i = !0, r && r(d));
|
|
1135
1135
|
};
|
|
1136
1136
|
return new ReadableStream({
|
|
1137
1137
|
async pull(d) {
|
|
@@ -1143,7 +1143,7 @@ const mt = (e) => {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
let f = l.byteLength;
|
|
1145
1145
|
if (n) {
|
|
1146
|
-
let g =
|
|
1146
|
+
let g = o += f;
|
|
1147
1147
|
n(g);
|
|
1148
1148
|
}
|
|
1149
1149
|
d.enqueue(new Uint8Array(l));
|
|
@@ -1206,8 +1206,8 @@ const Xn = async (e) => {
|
|
|
1206
1206
|
method: n,
|
|
1207
1207
|
data: r,
|
|
1208
1208
|
signal: s,
|
|
1209
|
-
cancelToken:
|
|
1210
|
-
timeout:
|
|
1209
|
+
cancelToken: o,
|
|
1210
|
+
timeout: i,
|
|
1211
1211
|
onDownloadProgress: c,
|
|
1212
1212
|
onUploadProgress: d,
|
|
1213
1213
|
responseType: u,
|
|
@@ -1216,7 +1216,7 @@ const Xn = async (e) => {
|
|
|
1216
1216
|
fetchOptions: g
|
|
1217
1217
|
} = mt(e);
|
|
1218
1218
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1219
|
-
let w = Kn([s,
|
|
1219
|
+
let w = Kn([s, o && o.toAbortSignal()], i), h;
|
|
1220
1220
|
const y = w && w.unsubscribe && (() => {
|
|
1221
1221
|
w.unsubscribe();
|
|
1222
1222
|
});
|
|
@@ -1305,24 +1305,24 @@ const Me = (e) => `- ${e}`, Zn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1305
1305
|
const { length: t } = e;
|
|
1306
1306
|
let n, r;
|
|
1307
1307
|
const s = {};
|
|
1308
|
-
for (let
|
|
1309
|
-
n = e[
|
|
1310
|
-
let
|
|
1311
|
-
if (r = n, !Zn(n) && (r = Ee[(
|
|
1312
|
-
throw new m(`Unknown adapter '${
|
|
1308
|
+
for (let o = 0; o < t; o++) {
|
|
1309
|
+
n = e[o];
|
|
1310
|
+
let i;
|
|
1311
|
+
if (r = n, !Zn(n) && (r = Ee[(i = String(n)).toLowerCase()], r === void 0))
|
|
1312
|
+
throw new m(`Unknown adapter '${i}'`);
|
|
1313
1313
|
if (r)
|
|
1314
1314
|
break;
|
|
1315
|
-
s[
|
|
1315
|
+
s[i || "#" + o] = r;
|
|
1316
1316
|
}
|
|
1317
1317
|
if (!r) {
|
|
1318
|
-
const
|
|
1318
|
+
const o = Object.entries(s).map(
|
|
1319
1319
|
([c, d]) => `adapter ${c} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1320
1320
|
);
|
|
1321
|
-
let
|
|
1322
|
-
` +
|
|
1323
|
-
`) : " " + Me(
|
|
1321
|
+
let i = t ? o.length > 1 ? `since :
|
|
1322
|
+
` + o.map(Me).join(`
|
|
1323
|
+
`) : " " + Me(o[0]) : "as no adapter specified";
|
|
1324
1324
|
throw new m(
|
|
1325
|
-
"There is no suitable adapter to dispatch the request " +
|
|
1325
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
1326
1326
|
"ERR_NOT_SUPPORT"
|
|
1327
1327
|
);
|
|
1328
1328
|
}
|
|
@@ -1360,21 +1360,21 @@ const bt = "1.11.0", le = {};
|
|
|
1360
1360
|
});
|
|
1361
1361
|
const He = {};
|
|
1362
1362
|
le.transitional = function(t, n, r) {
|
|
1363
|
-
function s(
|
|
1364
|
-
return "[Axios v" + bt + "] Transitional option '" +
|
|
1363
|
+
function s(o, i) {
|
|
1364
|
+
return "[Axios v" + bt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1365
1365
|
}
|
|
1366
|
-
return (
|
|
1366
|
+
return (o, i, c) => {
|
|
1367
1367
|
if (t === !1)
|
|
1368
1368
|
throw new m(
|
|
1369
|
-
s(
|
|
1369
|
+
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1370
1370
|
m.ERR_DEPRECATED
|
|
1371
1371
|
);
|
|
1372
|
-
return n && !He[
|
|
1372
|
+
return n && !He[i] && (He[i] = !0, console.warn(
|
|
1373
1373
|
s(
|
|
1374
|
-
|
|
1374
|
+
i,
|
|
1375
1375
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1376
1376
|
)
|
|
1377
|
-
)), t ? t(
|
|
1377
|
+
)), t ? t(o, i, c) : !0;
|
|
1378
1378
|
};
|
|
1379
1379
|
};
|
|
1380
1380
|
le.spelling = function(t) {
|
|
@@ -1386,15 +1386,15 @@ function er(e, t, n) {
|
|
|
1386
1386
|
const r = Object.keys(e);
|
|
1387
1387
|
let s = r.length;
|
|
1388
1388
|
for (; s-- > 0; ) {
|
|
1389
|
-
const
|
|
1390
|
-
if (
|
|
1391
|
-
const c = e[
|
|
1389
|
+
const o = r[s], i = t[o];
|
|
1390
|
+
if (i) {
|
|
1391
|
+
const c = e[o], d = c === void 0 || i(c, o, e);
|
|
1392
1392
|
if (d !== !0)
|
|
1393
|
-
throw new m("option " +
|
|
1393
|
+
throw new m("option " + o + " must be " + d, m.ERR_BAD_OPTION_VALUE);
|
|
1394
1394
|
continue;
|
|
1395
1395
|
}
|
|
1396
1396
|
if (n !== !0)
|
|
1397
|
-
throw new m("Unknown option " +
|
|
1397
|
+
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
const ne = {
|
|
@@ -1423,10 +1423,10 @@ let I = class {
|
|
|
1423
1423
|
if (r instanceof Error) {
|
|
1424
1424
|
let s = {};
|
|
1425
1425
|
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1426
|
-
const
|
|
1426
|
+
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1427
1427
|
try {
|
|
1428
|
-
r.stack ?
|
|
1429
|
-
` +
|
|
1428
|
+
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1429
|
+
` + o) : r.stack = o;
|
|
1430
1430
|
} catch {
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
@@ -1435,7 +1435,7 @@ let I = class {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
_request(t, n) {
|
|
1437
1437
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
|
|
1438
|
-
const { transitional: r, paramsSerializer: s, headers:
|
|
1438
|
+
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1439
1439
|
r !== void 0 && ne.assertOptions(r, {
|
|
1440
1440
|
silentJSONParsing: x.transitional(x.boolean),
|
|
1441
1441
|
forcedJSONParsing: x.transitional(x.boolean),
|
|
@@ -1449,16 +1449,16 @@ let I = class {
|
|
|
1449
1449
|
baseUrl: x.spelling("baseURL"),
|
|
1450
1450
|
withXsrfToken: x.spelling("withXSRFToken")
|
|
1451
1451
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1452
|
-
let
|
|
1453
|
-
|
|
1454
|
-
|
|
1452
|
+
let i = o && a.merge(
|
|
1453
|
+
o.common,
|
|
1454
|
+
o[n.method]
|
|
1455
1455
|
);
|
|
1456
|
-
|
|
1456
|
+
o && a.forEach(
|
|
1457
1457
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1458
1458
|
(h) => {
|
|
1459
|
-
delete
|
|
1459
|
+
delete o[h];
|
|
1460
1460
|
}
|
|
1461
|
-
), n.headers = O.concat(
|
|
1461
|
+
), n.headers = O.concat(i, o);
|
|
1462
1462
|
const c = [];
|
|
1463
1463
|
let d = !0;
|
|
1464
1464
|
this.interceptors.request.forEach(function(y) {
|
|
@@ -1512,14 +1512,14 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1512
1512
|
});
|
|
1513
1513
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1514
1514
|
function n(r) {
|
|
1515
|
-
return function(
|
|
1515
|
+
return function(o, i, c) {
|
|
1516
1516
|
return this.request(B(c || {}, {
|
|
1517
1517
|
method: t,
|
|
1518
1518
|
headers: r ? {
|
|
1519
1519
|
"Content-Type": "multipart/form-data"
|
|
1520
1520
|
} : {},
|
|
1521
|
-
url:
|
|
1522
|
-
data:
|
|
1521
|
+
url: o,
|
|
1522
|
+
data: i
|
|
1523
1523
|
}));
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
@@ -1530,26 +1530,26 @@ let tr = class Et {
|
|
|
1530
1530
|
if (typeof t != "function")
|
|
1531
1531
|
throw new TypeError("executor must be a function.");
|
|
1532
1532
|
let n;
|
|
1533
|
-
this.promise = new Promise(function(
|
|
1534
|
-
n =
|
|
1533
|
+
this.promise = new Promise(function(o) {
|
|
1534
|
+
n = o;
|
|
1535
1535
|
});
|
|
1536
1536
|
const r = this;
|
|
1537
1537
|
this.promise.then((s) => {
|
|
1538
1538
|
if (!r._listeners) return;
|
|
1539
|
-
let
|
|
1540
|
-
for (;
|
|
1541
|
-
r._listeners[
|
|
1539
|
+
let o = r._listeners.length;
|
|
1540
|
+
for (; o-- > 0; )
|
|
1541
|
+
r._listeners[o](s);
|
|
1542
1542
|
r._listeners = null;
|
|
1543
1543
|
}), this.promise.then = (s) => {
|
|
1544
|
-
let
|
|
1545
|
-
const
|
|
1546
|
-
r.subscribe(c),
|
|
1544
|
+
let o;
|
|
1545
|
+
const i = new Promise((c) => {
|
|
1546
|
+
r.subscribe(c), o = c;
|
|
1547
1547
|
}).then(s);
|
|
1548
|
-
return
|
|
1549
|
-
r.unsubscribe(
|
|
1550
|
-
},
|
|
1551
|
-
}, t(function(
|
|
1552
|
-
r.reason || (r.reason = new M(
|
|
1548
|
+
return i.cancel = function() {
|
|
1549
|
+
r.unsubscribe(o);
|
|
1550
|
+
}, i;
|
|
1551
|
+
}, t(function(o, i, c) {
|
|
1552
|
+
r.reason || (r.reason = new M(o, i, c), n(r.reason));
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
1555
|
/**
|
|
@@ -1750,7 +1750,7 @@ class sr {
|
|
|
1750
1750
|
C(this, "_debug");
|
|
1751
1751
|
this.httpClient = t.httpClient, this._debug = t.debug;
|
|
1752
1752
|
}
|
|
1753
|
-
async create(t, n, r, s,
|
|
1753
|
+
async create(t, n, r, s, o, i) {
|
|
1754
1754
|
var c;
|
|
1755
1755
|
try {
|
|
1756
1756
|
await this.httpClient.post({
|
|
@@ -1761,8 +1761,8 @@ class sr {
|
|
|
1761
1761
|
name: r,
|
|
1762
1762
|
code: r,
|
|
1763
1763
|
signature: s,
|
|
1764
|
-
signature_public_key:
|
|
1765
|
-
account_chain_id:
|
|
1764
|
+
signature_public_key: o,
|
|
1765
|
+
account_chain_id: i
|
|
1766
1766
|
}
|
|
1767
1767
|
});
|
|
1768
1768
|
} catch (d) {
|
|
@@ -1777,7 +1777,7 @@ class sr {
|
|
|
1777
1777
|
throw d;
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
async update(t, n, r, s,
|
|
1780
|
+
async update(t, n, r, s, o, i) {
|
|
1781
1781
|
var c;
|
|
1782
1782
|
try {
|
|
1783
1783
|
await this.httpClient.post({
|
|
@@ -1787,8 +1787,8 @@ class sr {
|
|
|
1787
1787
|
user_identifier: t,
|
|
1788
1788
|
identifier_type: n,
|
|
1789
1789
|
signature: s,
|
|
1790
|
-
signature_public_key:
|
|
1791
|
-
account_chain_id:
|
|
1790
|
+
signature_public_key: o,
|
|
1791
|
+
account_chain_id: i
|
|
1792
1792
|
}
|
|
1793
1793
|
});
|
|
1794
1794
|
} catch (d) {
|
|
@@ -1824,8 +1824,8 @@ class sr {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
1826
|
}
|
|
1827
|
-
const
|
|
1828
|
-
class
|
|
1827
|
+
const or = "/audiences";
|
|
1828
|
+
class ir {
|
|
1829
1829
|
constructor(t) {
|
|
1830
1830
|
C(this, "httpClient");
|
|
1831
1831
|
C(this, "_debug");
|
|
@@ -1833,7 +1833,7 @@ class or {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
async getUserAudiences(t) {
|
|
1835
1835
|
return (await this.httpClient.get({
|
|
1836
|
-
path: `${
|
|
1836
|
+
path: `${or}/user`,
|
|
1837
1837
|
queryParams: { ...t }
|
|
1838
1838
|
})).data;
|
|
1839
1839
|
}
|
|
@@ -1886,13 +1886,13 @@ class lr {
|
|
|
1886
1886
|
return Date.now() / 1e3;
|
|
1887
1887
|
}
|
|
1888
1888
|
saveSentEvent(t) {
|
|
1889
|
-
var
|
|
1890
|
-
const n = `${We}_${t.name}`, r = `${n}_all`, s = this.getCurrentTimestamp(),
|
|
1891
|
-
if (localStorage.setItem(n, JSON.stringify(
|
|
1889
|
+
var i, c, d, u;
|
|
1890
|
+
const n = `${We}_${t.name}`, r = `${n}_all`, s = this.getCurrentTimestamp(), o = { ...t, timestamp: s };
|
|
1891
|
+
if (localStorage.setItem(n, JSON.stringify(o)), t.name === ur) {
|
|
1892
1892
|
const l = JSON.parse(localStorage.getItem(r) || "[]"), f = {
|
|
1893
1893
|
name: t.name,
|
|
1894
1894
|
user: {
|
|
1895
|
-
identifier: (
|
|
1895
|
+
identifier: (i = t.user) == null ? void 0 : i.identifier,
|
|
1896
1896
|
identifier_type: (c = t.user) == null ? void 0 : c.identifier_type
|
|
1897
1897
|
},
|
|
1898
1898
|
tracking_id: (d = t.metadata) == null ? void 0 : d.tracking_id,
|
|
@@ -1904,7 +1904,7 @@ class lr {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
|
-
const dr = "7.0
|
|
1907
|
+
const dr = "7.1.0", fr = {
|
|
1908
1908
|
version: dr
|
|
1909
1909
|
};
|
|
1910
1910
|
class hr {
|
|
@@ -2006,7 +2006,7 @@ class pr {
|
|
|
2006
2006
|
})).data;
|
|
2007
2007
|
}
|
|
2008
2008
|
async useInviteCode(t) {
|
|
2009
|
-
const { code: n, user_identifier: r, user_identifier_type: s, signature:
|
|
2009
|
+
const { code: n, user_identifier: r, user_identifier_type: s, signature: o, signature_message: i, chain_id: c } = t;
|
|
2010
2010
|
await this.httpClient.patch({
|
|
2011
2011
|
path: "/invite_codes/use",
|
|
2012
2012
|
queryParams: {
|
|
@@ -2016,8 +2016,8 @@ class pr {
|
|
|
2016
2016
|
chain_id: c
|
|
2017
2017
|
},
|
|
2018
2018
|
postData: {
|
|
2019
|
-
signature:
|
|
2020
|
-
signature_message:
|
|
2019
|
+
signature: o,
|
|
2020
|
+
signature_message: i
|
|
2021
2021
|
}
|
|
2022
2022
|
});
|
|
2023
2023
|
}
|
|
@@ -2109,14 +2109,14 @@ class Or {
|
|
|
2109
2109
|
C(this, "httpClient");
|
|
2110
2110
|
this.httpClient = t.httpClient;
|
|
2111
2111
|
}
|
|
2112
|
-
async
|
|
2113
|
-
return (await this.httpClient.get({ path: Pr
|
|
2112
|
+
async getUserReferrer(t) {
|
|
2113
|
+
return (await this.httpClient.get({ path: `${Pr}/referrer`, queryParams: { ...t } })).data;
|
|
2114
2114
|
}
|
|
2115
2115
|
}
|
|
2116
2116
|
const Nr = "https://api.fuul.xyz/api/v1/";
|
|
2117
2117
|
let D = !1, Ce = !1, Pe, L, Ct, _t, $, de, H, Rt, fe, K;
|
|
2118
2118
|
function xr(e) {
|
|
2119
|
-
D = !!e.debug, !Ce && (Pe = e.apiKey, ts(), L = ns(e.baseApiUrl ?? Nr, e.defaultQueryParams ?? {}), Ct = new ar({ httpClient: L, debug: D }), de = new lr({ httpClient: L, debug: D }), $ = new sr({ httpClient: L, debug: D }), H = new yr({ httpClient: L, debug: D }), _t = new Or({ httpClient: L }), Rt = new
|
|
2119
|
+
D = !!e.debug, !Ce && (Pe = e.apiKey, ts(), L = ns(e.baseApiUrl ?? Nr, e.defaultQueryParams ?? {}), Ct = new ar({ httpClient: L, debug: D }), de = new lr({ httpClient: L, debug: D }), $ = new sr({ httpClient: L, debug: D }), H = new yr({ httpClient: L, debug: D }), _t = new Or({ httpClient: L }), Rt = new ir({ httpClient: L, debug: D }), fe = new mr({ httpClient: L }), K = new pr({ httpClient: L, debug: D }), Ce = !0, D && console.debug("Fuul SDK: init() complete"));
|
|
2120
2120
|
}
|
|
2121
2121
|
function T() {
|
|
2122
2122
|
if (!Ce)
|
|
@@ -2200,10 +2200,10 @@ async function Ir(e) {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
async function Br(e, t, n, r) {
|
|
2202
2202
|
T();
|
|
2203
|
-
const s = await $.getCode(t, n),
|
|
2203
|
+
const s = await $.getCode(t, n), o = new URLSearchParams({
|
|
2204
2204
|
af: s ?? t
|
|
2205
2205
|
});
|
|
2206
|
-
return r != null && r.title &&
|
|
2206
|
+
return r != null && r.title && o.append("af_title", r.title), r != null && r.format && o.append("af_format", r.format), r != null && r.place && o.append("af_place", r.place), `${e}?${o.toString()}`;
|
|
2207
2207
|
}
|
|
2208
2208
|
function qr(e) {
|
|
2209
2209
|
return fe.getPayoutsLeaderboard(e);
|
|
@@ -2233,7 +2233,7 @@ async function Jr(e) {
|
|
|
2233
2233
|
return T(), Ct.getAll(e);
|
|
2234
2234
|
}
|
|
2235
2235
|
async function Wr(e) {
|
|
2236
|
-
return T(), _t.
|
|
2236
|
+
return T(), _t.getUserReferrer(e);
|
|
2237
2237
|
}
|
|
2238
2238
|
async function Qr(e) {
|
|
2239
2239
|
return T(), Rt.getUserAudiences(e);
|
|
@@ -2292,7 +2292,7 @@ const Cs = {
|
|
|
2292
2292
|
getUserPointsByConversion: Kr,
|
|
2293
2293
|
getUserPointsMovements: zr,
|
|
2294
2294
|
getUserPayoutMovements: Vr,
|
|
2295
|
-
|
|
2295
|
+
getUserReferrer: Wr,
|
|
2296
2296
|
getVolumeLeaderboard: $r,
|
|
2297
2297
|
listUserInviteCodes: Xr,
|
|
2298
2298
|
generateInviteCodes: Yr,
|