@fuul/sdk 7.0.4 → 7.0.6
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/HttpClient.d.ts +1 -0
- package/dist/HttpClient.d.ts.map +1 -1
- package/dist/core.d.ts +79 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +693 -592
- package/dist/index.umd.js +6 -6
- package/dist/invite-codes/InviteCodeService.d.ts +17 -0
- package/dist/invite-codes/InviteCodeService.d.ts.map +1 -0
- package/dist/release.json.d.ts +1 -1
- package/dist/types/api.d.ts +45 -2
- package/dist/types/api.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
var Tt = Object.defineProperty;
|
|
2
2
|
var At = (e, t, n) => t in e ? Tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
function
|
|
3
|
+
var C = (e, t, n) => At(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
function Ye(e, t) {
|
|
5
5
|
return function() {
|
|
6
6
|
return e.apply(t, arguments);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
const { toString:
|
|
10
|
-
const n =
|
|
9
|
+
const { toString: Pt } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator: oe, toStringTag: Ge } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
|
|
10
|
+
const n = Pt.call(t);
|
|
11
11
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
12
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
13
|
-
function
|
|
14
|
-
return e !== null && !
|
|
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
|
+
function W(e) {
|
|
14
|
+
return e !== null && !J(e) && e.constructor !== null && !J(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const Ze = N("ArrayBuffer");
|
|
17
17
|
function Ot(e) {
|
|
18
18
|
let t;
|
|
19
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
19
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ze(e.buffer), t;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
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 (ie(e) !== "object")
|
|
23
23
|
return !1;
|
|
24
|
-
const t =
|
|
25
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
26
|
-
},
|
|
27
|
-
if (!
|
|
24
|
+
const t = _e(e);
|
|
25
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ge in e) && !(oe in e);
|
|
26
|
+
}, Ut = (e) => {
|
|
27
|
+
if (!Q(e) || W(e))
|
|
28
28
|
return !1;
|
|
29
29
|
try {
|
|
30
30
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
31
31
|
} catch {
|
|
32
32
|
return !1;
|
|
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 ||
|
|
37
|
-
t === "object" &&
|
|
38
|
-
},
|
|
39
|
-
function
|
|
36
|
+
return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = ie(e)) === "formdata" || // detect form-data instance
|
|
37
|
+
t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
|
|
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
|
+
function X(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
40
40
|
if (e === null || typeof e > "u")
|
|
41
41
|
return;
|
|
42
42
|
let r, s;
|
|
@@ -44,7 +44,7 @@ function Q(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
44
44
|
for (r = 0, s = e.length; r < s; r++)
|
|
45
45
|
t.call(null, e[r], r, e);
|
|
46
46
|
else {
|
|
47
|
-
if (
|
|
47
|
+
if (W(e))
|
|
48
48
|
return;
|
|
49
49
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
50
50
|
let c;
|
|
@@ -52,8 +52,8 @@ function Q(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
52
52
|
c = o[r], t.call(null, e[c], c, e);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
if (
|
|
55
|
+
function tt(e, t) {
|
|
56
|
+
if (W(e))
|
|
57
57
|
return null;
|
|
58
58
|
t = t.toLowerCase();
|
|
59
59
|
const n = Object.keys(e);
|
|
@@ -63,75 +63,75 @@ function et(e, t) {
|
|
|
63
63
|
return s;
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
66
|
-
const
|
|
67
|
-
function
|
|
68
|
-
const { caseless: e } =
|
|
69
|
-
const o = e &&
|
|
70
|
-
|
|
66
|
+
const v = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, nt = (e) => !J(e) && e !== v;
|
|
67
|
+
function ye() {
|
|
68
|
+
const { caseless: e } = nt(this) && this || {}, t = {}, n = (r, s) => {
|
|
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
|
-
arguments[r] &&
|
|
73
|
+
arguments[r] && X(arguments[r], n);
|
|
74
74
|
return t;
|
|
75
75
|
}
|
|
76
|
-
const
|
|
77
|
-
n &&
|
|
78
|
-
}, { allOwnKeys: r }), 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
|
+
}, { 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
83
|
let s, o, i;
|
|
84
84
|
const c = {};
|
|
85
85
|
if (t = t || {}, e == null) return t;
|
|
86
86
|
do {
|
|
87
87
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
88
88
|
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
89
|
-
e = n !== !1 &&
|
|
89
|
+
e = n !== !1 && _e(e);
|
|
90
90
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
91
91
|
return t;
|
|
92
|
-
},
|
|
92
|
+
}, Wt = (e, t, n) => {
|
|
93
93
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
94
94
|
const r = e.indexOf(t, n);
|
|
95
95
|
return r !== -1 && r === n;
|
|
96
|
-
},
|
|
96
|
+
}, Qt = (e) => {
|
|
97
97
|
if (!e) return null;
|
|
98
98
|
if (j(e)) return e;
|
|
99
99
|
let t = e.length;
|
|
100
|
-
if (!
|
|
100
|
+
if (!et(t)) return null;
|
|
101
101
|
const n = new Array(t);
|
|
102
102
|
for (; t-- > 0; )
|
|
103
103
|
n[t] = e[t];
|
|
104
104
|
return n;
|
|
105
|
-
},
|
|
106
|
-
const r = (e && e[
|
|
105
|
+
}, Xt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && _e(Uint8Array)), Yt = (e, t) => {
|
|
106
|
+
const r = (e && e[oe]).call(e);
|
|
107
107
|
let s;
|
|
108
108
|
for (; (s = r.next()) && !s.done; ) {
|
|
109
109
|
const o = s.value;
|
|
110
110
|
t.call(e, o[0], o[1]);
|
|
111
111
|
}
|
|
112
|
-
},
|
|
112
|
+
}, Gt = (e, t) => {
|
|
113
113
|
let n;
|
|
114
114
|
const r = [];
|
|
115
115
|
for (; (n = e.exec(t)) !== null; )
|
|
116
116
|
r.push(n);
|
|
117
117
|
return r;
|
|
118
|
-
},
|
|
118
|
+
}, Zt = N("HTMLFormElement"), en = (e) => e.toLowerCase().replace(
|
|
119
119
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
120
120
|
function(n, r, s) {
|
|
121
121
|
return r.toUpperCase() + s;
|
|
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
|
-
|
|
125
|
+
X(n, (s, o) => {
|
|
126
126
|
let i;
|
|
127
127
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
128
128
|
}), Object.defineProperties(e, r);
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
if (
|
|
129
|
+
}, nn = (e) => {
|
|
130
|
+
rt(e, (t, n) => {
|
|
131
|
+
if (P(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
132
132
|
return !1;
|
|
133
133
|
const r = e[n];
|
|
134
|
-
if (
|
|
134
|
+
if (P(r)) {
|
|
135
135
|
if (t.enumerable = !1, "writable" in t) {
|
|
136
136
|
t.writable = !1;
|
|
137
137
|
return;
|
|
@@ -141,102 +141,102 @@ const Ht = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (s, o) => {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
|
-
},
|
|
144
|
+
}, rn = (e, t) => {
|
|
145
145
|
const n = {}, r = (s) => {
|
|
146
146
|
s.forEach((o) => {
|
|
147
147
|
n[o] = !0;
|
|
148
148
|
});
|
|
149
149
|
};
|
|
150
150
|
return j(e) ? r(e) : r(String(e).split(t)), n;
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
function
|
|
154
|
-
return !!(e &&
|
|
151
|
+
}, sn = () => {
|
|
152
|
+
}, on = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
153
|
+
function an(e) {
|
|
154
|
+
return !!(e && P(e.append) && e[Ge] === "FormData" && e[oe]);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const cn = (e) => {
|
|
157
157
|
const t = new Array(10), n = (r, s) => {
|
|
158
|
-
if (
|
|
158
|
+
if (Q(r)) {
|
|
159
159
|
if (t.indexOf(r) >= 0)
|
|
160
160
|
return;
|
|
161
|
-
if (
|
|
161
|
+
if (W(r))
|
|
162
162
|
return r;
|
|
163
163
|
if (!("toJSON" in r)) {
|
|
164
164
|
t[s] = r;
|
|
165
165
|
const o = j(r) ? [] : {};
|
|
166
|
-
return
|
|
167
|
-
const
|
|
168
|
-
!
|
|
166
|
+
return X(r, (i, c) => {
|
|
167
|
+
const d = n(i, s + 1);
|
|
168
|
+
!J(d) && (o[c] = d);
|
|
169
169
|
}), t[s] = void 0, o;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
return r;
|
|
173
173
|
};
|
|
174
174
|
return n(e, 0);
|
|
175
|
-
},
|
|
176
|
-
s ===
|
|
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
|
-
r.push(s),
|
|
178
|
+
r.push(s), v.postMessage(n, "*");
|
|
179
179
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
180
180
|
typeof setImmediate == "function",
|
|
181
|
-
|
|
182
|
-
),
|
|
181
|
+
P(v.postMessage)
|
|
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
|
-
isArrayBuffer:
|
|
185
|
-
isBuffer:
|
|
186
|
-
isFormData:
|
|
184
|
+
isArrayBuffer: Ze,
|
|
185
|
+
isBuffer: W,
|
|
186
|
+
isFormData: It,
|
|
187
187
|
isArrayBufferView: Ot,
|
|
188
|
-
isString:
|
|
189
|
-
isNumber:
|
|
190
|
-
isBoolean:
|
|
191
|
-
isObject:
|
|
192
|
-
isPlainObject:
|
|
193
|
-
isEmptyObject:
|
|
194
|
-
isReadableStream:
|
|
195
|
-
isRequest:
|
|
196
|
-
isResponse:
|
|
197
|
-
isHeaders:
|
|
198
|
-
isUndefined:
|
|
199
|
-
isDate:
|
|
200
|
-
isFile:
|
|
201
|
-
isBlob:
|
|
202
|
-
isRegExp:
|
|
203
|
-
isFunction:
|
|
204
|
-
isStream:
|
|
205
|
-
isURLSearchParams:
|
|
206
|
-
isTypedArray:
|
|
207
|
-
isFileList:
|
|
208
|
-
forEach:
|
|
209
|
-
merge:
|
|
210
|
-
extend:
|
|
211
|
-
trim:
|
|
212
|
-
stripBOM:
|
|
213
|
-
inherits:
|
|
214
|
-
toFlatObject:
|
|
215
|
-
kindOf:
|
|
216
|
-
kindOfTest:
|
|
217
|
-
endsWith:
|
|
218
|
-
toArray:
|
|
219
|
-
forEachEntry:
|
|
220
|
-
matchAll:
|
|
221
|
-
isHTMLForm:
|
|
222
|
-
hasOwnProperty:
|
|
223
|
-
hasOwnProp:
|
|
188
|
+
isString: Nt,
|
|
189
|
+
isNumber: et,
|
|
190
|
+
isBoolean: xt,
|
|
191
|
+
isObject: Q,
|
|
192
|
+
isPlainObject: ee,
|
|
193
|
+
isEmptyObject: Ut,
|
|
194
|
+
isReadableStream: qt,
|
|
195
|
+
isRequest: jt,
|
|
196
|
+
isResponse: Mt,
|
|
197
|
+
isHeaders: $t,
|
|
198
|
+
isUndefined: J,
|
|
199
|
+
isDate: Lt,
|
|
200
|
+
isFile: Ft,
|
|
201
|
+
isBlob: Dt,
|
|
202
|
+
isRegExp: tn,
|
|
203
|
+
isFunction: P,
|
|
204
|
+
isStream: vt,
|
|
205
|
+
isURLSearchParams: Bt,
|
|
206
|
+
isTypedArray: Xt,
|
|
207
|
+
isFileList: kt,
|
|
208
|
+
forEach: X,
|
|
209
|
+
merge: ye,
|
|
210
|
+
extend: Kt,
|
|
211
|
+
trim: Ht,
|
|
212
|
+
stripBOM: Vt,
|
|
213
|
+
inherits: zt,
|
|
214
|
+
toFlatObject: Jt,
|
|
215
|
+
kindOf: ie,
|
|
216
|
+
kindOfTest: N,
|
|
217
|
+
endsWith: Wt,
|
|
218
|
+
toArray: Qt,
|
|
219
|
+
forEachEntry: Yt,
|
|
220
|
+
matchAll: Gt,
|
|
221
|
+
isHTMLForm: Zt,
|
|
222
|
+
hasOwnProperty: Ue,
|
|
223
|
+
hasOwnProp: Ue,
|
|
224
224
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
225
|
-
reduceDescriptors:
|
|
226
|
-
freezeMethods:
|
|
227
|
-
toObjectSet:
|
|
228
|
-
toCamelCase:
|
|
229
|
-
noop:
|
|
230
|
-
toFiniteNumber:
|
|
231
|
-
findKey:
|
|
232
|
-
global:
|
|
233
|
-
isContextDefined:
|
|
234
|
-
isSpecCompliantForm:
|
|
235
|
-
toJSONObject:
|
|
236
|
-
isAsyncFn:
|
|
237
|
-
isThenable:
|
|
238
|
-
setImmediate:
|
|
239
|
-
asap:
|
|
225
|
+
reduceDescriptors: rt,
|
|
226
|
+
freezeMethods: nn,
|
|
227
|
+
toObjectSet: rn,
|
|
228
|
+
toCamelCase: en,
|
|
229
|
+
noop: sn,
|
|
230
|
+
toFiniteNumber: on,
|
|
231
|
+
findKey: tt,
|
|
232
|
+
global: v,
|
|
233
|
+
isContextDefined: nt,
|
|
234
|
+
isSpecCompliantForm: an,
|
|
235
|
+
toJSONObject: cn,
|
|
236
|
+
isAsyncFn: un,
|
|
237
|
+
isThenable: ln,
|
|
238
|
+
setImmediate: st,
|
|
239
|
+
asap: dn,
|
|
240
240
|
isIterable: fn
|
|
241
241
|
};
|
|
242
242
|
function m(e, t, n, r, s) {
|
|
@@ -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,35 +279,35 @@ const st = 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(
|
|
284
|
+
Object.defineProperties(m, it);
|
|
285
|
+
Object.defineProperty(ot, "isAxiosError", { value: !0 });
|
|
286
286
|
m.from = (e, t, n, r, s, o) => {
|
|
287
|
-
const i = Object.create(
|
|
288
|
-
return a.toFlatObject(e, i, function(
|
|
289
|
-
return
|
|
287
|
+
const i = Object.create(ot);
|
|
288
|
+
return a.toFlatObject(e, i, function(d) {
|
|
289
|
+
return d !== Error.prototype;
|
|
290
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
|
-
const
|
|
293
|
-
function
|
|
292
|
+
const hn = null;
|
|
293
|
+
function ge(e) {
|
|
294
294
|
return a.isPlainObject(e) || a.isArray(e);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function at(e) {
|
|
297
297
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Le(e, t, n) {
|
|
300
300
|
return e ? e.concat(t).map(function(s, o) {
|
|
301
|
-
return s =
|
|
301
|
+
return s = at(s), !n && o ? "[" + s + "]" : s;
|
|
302
302
|
}).join(n ? "." : "") : t;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
return a.isArray(e) && !e.some(
|
|
304
|
+
function pn(e) {
|
|
305
|
+
return a.isArray(e) && !e.some(ge);
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const mn = a.toFlatObject(a, {}, null, function(t) {
|
|
308
308
|
return /^is[A-Z]/.test(t);
|
|
309
309
|
});
|
|
310
|
-
function
|
|
310
|
+
function ce(e, t, n) {
|
|
311
311
|
if (!a.isObject(e))
|
|
312
312
|
throw new TypeError("target must be an object");
|
|
313
313
|
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
@@ -317,7 +317,7 @@ function ae(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, o = n.dots, i = n.indexes,
|
|
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) {
|
|
@@ -326,36 +326,36 @@ function ae(e, t, n) {
|
|
|
326
326
|
return h.toISOString();
|
|
327
327
|
if (a.isBoolean(h))
|
|
328
328
|
return h.toString();
|
|
329
|
-
if (!
|
|
329
|
+
if (!d && a.isBlob(h))
|
|
330
330
|
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
331
|
-
return a.isArrayBuffer(h) || a.isTypedArray(h) ?
|
|
331
|
+
return a.isArrayBuffer(h) || a.isTypedArray(h) ? d && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
332
332
|
}
|
|
333
333
|
function l(h, y, p) {
|
|
334
334
|
let b = h;
|
|
335
335
|
if (h && !p && typeof h == "object") {
|
|
336
336
|
if (a.endsWith(y, "{}"))
|
|
337
337
|
y = r ? y : y.slice(0, -2), h = JSON.stringify(h);
|
|
338
|
-
else if (a.isArray(h) &&
|
|
339
|
-
return y =
|
|
340
|
-
!(a.isUndefined(
|
|
338
|
+
else if (a.isArray(h) && pn(h) || (a.isFileList(h) || a.endsWith(y, "[]")) && (b = a.toArray(h)))
|
|
339
|
+
return y = at(y), b.forEach(function(_, U) {
|
|
340
|
+
!(a.isUndefined(_) || _ === null) && t.append(
|
|
341
341
|
// eslint-disable-next-line no-nested-ternary
|
|
342
|
-
i === !0 ?
|
|
343
|
-
u(
|
|
342
|
+
i === !0 ? Le([y], U, o) : i === null ? y : y + "[]",
|
|
343
|
+
u(_)
|
|
344
344
|
);
|
|
345
345
|
}), !1;
|
|
346
346
|
}
|
|
347
|
-
return
|
|
347
|
+
return ge(h) ? !0 : (t.append(Le(p, y, o), u(h)), !1);
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const f = [], g = Object.assign(mn, {
|
|
350
350
|
defaultVisitor: l,
|
|
351
351
|
convertValue: u,
|
|
352
|
-
isVisitable:
|
|
352
|
+
isVisitable: ge
|
|
353
353
|
});
|
|
354
354
|
function w(h, y) {
|
|
355
355
|
if (!a.isUndefined(h)) {
|
|
356
|
-
if (
|
|
356
|
+
if (f.indexOf(h) !== -1)
|
|
357
357
|
throw Error("Circular reference detected in " + y.join("."));
|
|
358
|
-
|
|
358
|
+
f.push(h), a.forEach(h, function(b, S) {
|
|
359
359
|
(!(a.isUndefined(b) || b === null) && s.call(
|
|
360
360
|
t,
|
|
361
361
|
b,
|
|
@@ -363,14 +363,14 @@ function ae(e, t, n) {
|
|
|
363
363
|
y,
|
|
364
364
|
g
|
|
365
365
|
)) === !0 && w(b, y ? y.concat(S) : [S]);
|
|
366
|
-
}),
|
|
366
|
+
}), f.pop();
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
if (!a.isObject(e))
|
|
370
370
|
throw new TypeError("data must be an object");
|
|
371
371
|
return w(e), t;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Fe(e) {
|
|
374
374
|
const t = {
|
|
375
375
|
"!": "%21",
|
|
376
376
|
"'": "%27",
|
|
@@ -385,27 +385,27 @@ function Le(e) {
|
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
function Re(e, t) {
|
|
388
|
-
this._pairs = [], e &&
|
|
388
|
+
this._pairs = [], e && ce(e, this, t);
|
|
389
389
|
}
|
|
390
|
-
const
|
|
391
|
-
|
|
390
|
+
const ct = Re.prototype;
|
|
391
|
+
ct.append = function(t, n) {
|
|
392
392
|
this._pairs.push([t, n]);
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
ct.toString = function(t) {
|
|
395
395
|
const n = t ? function(r) {
|
|
396
|
-
return t.call(this, r,
|
|
397
|
-
} :
|
|
396
|
+
return t.call(this, r, Fe);
|
|
397
|
+
} : Fe;
|
|
398
398
|
return this._pairs.map(function(s) {
|
|
399
399
|
return n(s[0]) + "=" + n(s[1]);
|
|
400
400
|
}, "").join("&");
|
|
401
401
|
};
|
|
402
|
-
function
|
|
402
|
+
function yn(e) {
|
|
403
403
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ut(e, t, n) {
|
|
406
406
|
if (!t)
|
|
407
407
|
return e;
|
|
408
|
-
const r = n && n.encode ||
|
|
408
|
+
const r = n && n.encode || yn;
|
|
409
409
|
a.isFunction(n) && (n = {
|
|
410
410
|
serialize: n
|
|
411
411
|
});
|
|
@@ -417,7 +417,7 @@ function ct(e, t, n) {
|
|
|
417
417
|
}
|
|
418
418
|
return e;
|
|
419
419
|
}
|
|
420
|
-
class
|
|
420
|
+
class De {
|
|
421
421
|
constructor() {
|
|
422
422
|
this.handlers = [];
|
|
423
423
|
}
|
|
@@ -471,34 +471,34 @@ class Fe {
|
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
474
|
+
const lt = {
|
|
475
475
|
silentJSONParsing: !0,
|
|
476
476
|
forcedJSONParsing: !0,
|
|
477
477
|
clarifyTimeoutError: !1
|
|
478
|
-
},
|
|
478
|
+
}, gn = typeof URLSearchParams < "u" ? URLSearchParams : Re, wn = typeof FormData < "u" ? FormData : null, bn = typeof Blob < "u" ? Blob : null, En = {
|
|
479
479
|
isBrowser: !0,
|
|
480
480
|
classes: {
|
|
481
|
-
URLSearchParams:
|
|
482
|
-
FormData:
|
|
483
|
-
Blob:
|
|
481
|
+
URLSearchParams: gn,
|
|
482
|
+
FormData: wn,
|
|
483
|
+
Blob: bn
|
|
484
484
|
},
|
|
485
485
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
486
|
-
}, Te = typeof window < "u" && typeof document < "u",
|
|
487
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
486
|
+
}, Te = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, Sn = Te && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), Cn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
487
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", _n = Te && window.location.href || "http://localhost", Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
488
488
|
__proto__: null,
|
|
489
489
|
hasBrowserEnv: Te,
|
|
490
|
-
hasStandardBrowserEnv:
|
|
491
|
-
hasStandardBrowserWebWorkerEnv:
|
|
492
|
-
navigator:
|
|
493
|
-
origin:
|
|
494
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
490
|
+
hasStandardBrowserEnv: Sn,
|
|
491
|
+
hasStandardBrowserWebWorkerEnv: Cn,
|
|
492
|
+
navigator: we,
|
|
493
|
+
origin: _n
|
|
494
|
+
}, Symbol.toStringTag, { value: "Module" })), R = {
|
|
495
495
|
...Rn,
|
|
496
|
-
...
|
|
496
|
+
...En
|
|
497
497
|
};
|
|
498
498
|
function Tn(e, t) {
|
|
499
|
-
return
|
|
499
|
+
return ce(e, new R.classes.URLSearchParams(), {
|
|
500
500
|
visitor: function(n, r, s, o) {
|
|
501
|
-
return
|
|
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
|
});
|
|
@@ -506,7 +506,7 @@ function Tn(e, t) {
|
|
|
506
506
|
function An(e) {
|
|
507
507
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Pn(e) {
|
|
510
510
|
const t = {}, n = Object.keys(e);
|
|
511
511
|
let r;
|
|
512
512
|
const s = n.length;
|
|
@@ -515,12 +515,12 @@ function _n(e) {
|
|
|
515
515
|
o = n[r], t[o] = e[o];
|
|
516
516
|
return t;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function dt(e) {
|
|
519
519
|
function t(n, r, s, o) {
|
|
520
520
|
let i = n[o++];
|
|
521
521
|
if (i === "__proto__") return !0;
|
|
522
|
-
const c = Number.isFinite(+i),
|
|
523
|
-
return i = !i && a.isArray(s) ? s.length : i,
|
|
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 = {};
|
|
@@ -540,13 +540,13 @@ function On(e, t, n) {
|
|
|
540
540
|
}
|
|
541
541
|
return (0, JSON.stringify)(e);
|
|
542
542
|
}
|
|
543
|
-
const
|
|
544
|
-
transitional:
|
|
543
|
+
const Y = {
|
|
544
|
+
transitional: lt,
|
|
545
545
|
adapter: ["xhr", "http", "fetch"],
|
|
546
546
|
transformRequest: [function(t, n) {
|
|
547
547
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
548
548
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
549
|
-
return s ? JSON.stringify(
|
|
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;
|
|
552
552
|
if (a.isArrayBufferView(t))
|
|
@@ -558,10 +558,10 @@ const X = {
|
|
|
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) {
|
|
561
|
-
const
|
|
562
|
-
return
|
|
561
|
+
const d = this.env && this.env.FormData;
|
|
562
|
+
return ce(
|
|
563
563
|
c ? { "files[]": t } : t,
|
|
564
|
-
|
|
564
|
+
d && new d(),
|
|
565
565
|
this.formSerializer
|
|
566
566
|
);
|
|
567
567
|
}
|
|
@@ -569,7 +569,7 @@ const X = {
|
|
|
569
569
|
return o || s ? (n.setContentType("application/json", !1), On(t)) : t;
|
|
570
570
|
}],
|
|
571
571
|
transformResponse: [function(t) {
|
|
572
|
-
const n = this.transitional ||
|
|
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)) {
|
|
@@ -593,8 +593,8 @@ const X = {
|
|
|
593
593
|
maxContentLength: -1,
|
|
594
594
|
maxBodyLength: -1,
|
|
595
595
|
env: {
|
|
596
|
-
FormData:
|
|
597
|
-
Blob:
|
|
596
|
+
FormData: R.classes.FormData,
|
|
597
|
+
Blob: R.classes.Blob
|
|
598
598
|
},
|
|
599
599
|
validateStatus: function(t) {
|
|
600
600
|
return t >= 200 && t < 300;
|
|
@@ -607,9 +607,9 @@ const X = {
|
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
609
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
610
|
-
|
|
610
|
+
Y.headers[e] = {};
|
|
611
611
|
});
|
|
612
|
-
const
|
|
612
|
+
const Nn = a.toObjectSet([
|
|
613
613
|
"age",
|
|
614
614
|
"authorization",
|
|
615
615
|
"content-length",
|
|
@@ -627,29 +627,29 @@ const Pn = a.toObjectSet([
|
|
|
627
627
|
"referer",
|
|
628
628
|
"retry-after",
|
|
629
629
|
"user-agent"
|
|
630
|
-
]),
|
|
630
|
+
]), xn = (e) => {
|
|
631
631
|
const t = {};
|
|
632
632
|
let n, r, s;
|
|
633
633
|
return e && e.split(`
|
|
634
634
|
`).forEach(function(i) {
|
|
635
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
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
|
-
},
|
|
638
|
-
function
|
|
637
|
+
}, ke = Symbol("internals");
|
|
638
|
+
function V(e) {
|
|
639
639
|
return e && String(e).trim().toLowerCase();
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
641
|
+
function te(e) {
|
|
642
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(te) : String(e);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function Un(e) {
|
|
645
645
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
646
646
|
let r;
|
|
647
647
|
for (; r = n.exec(e); )
|
|
648
648
|
t[r[1]] = r[2];
|
|
649
649
|
return t;
|
|
650
650
|
}
|
|
651
|
-
const
|
|
652
|
-
function
|
|
651
|
+
const Ln = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
652
|
+
function he(e, t, n, r, s) {
|
|
653
653
|
if (a.isFunction(r))
|
|
654
654
|
return r.call(this, t, n);
|
|
655
655
|
if (s && (t = n), !!a.isString(t)) {
|
|
@@ -659,10 +659,10 @@ function de(e, t, n, r, s) {
|
|
|
659
659
|
return r.test(t);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Fn(e) {
|
|
663
663
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
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, {
|
|
@@ -679,24 +679,24 @@ let O = class {
|
|
|
679
679
|
}
|
|
680
680
|
set(t, n, r) {
|
|
681
681
|
const s = this;
|
|
682
|
-
function o(c,
|
|
683
|
-
const l =
|
|
682
|
+
function o(c, d, u) {
|
|
683
|
+
const l = V(d);
|
|
684
684
|
if (!l)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
|
-
const
|
|
687
|
-
(!
|
|
686
|
+
const f = a.findKey(s, l);
|
|
687
|
+
(!f || s[f] === void 0 || u === !0 || u === void 0 && s[f] !== !1) && (s[f || d] = te(c));
|
|
688
688
|
}
|
|
689
|
-
const i = (c,
|
|
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
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
693
|
-
i(
|
|
692
|
+
else if (a.isString(t) && (t = t.trim()) && !Ln(t))
|
|
693
|
+
i(xn(t), n);
|
|
694
694
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
695
|
-
let c = {},
|
|
695
|
+
let c = {}, d, u;
|
|
696
696
|
for (const l of t) {
|
|
697
697
|
if (!a.isArray(l))
|
|
698
698
|
throw TypeError("Object iterator must return a key-value pair");
|
|
699
|
-
c[u = l[0]] = (
|
|
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
|
|
@@ -704,14 +704,14 @@ let O = class {
|
|
|
704
704
|
return this;
|
|
705
705
|
}
|
|
706
706
|
get(t, n) {
|
|
707
|
-
if (t =
|
|
707
|
+
if (t = V(t), t) {
|
|
708
708
|
const r = a.findKey(this, t);
|
|
709
709
|
if (r) {
|
|
710
710
|
const s = this[r];
|
|
711
711
|
if (!n)
|
|
712
712
|
return s;
|
|
713
713
|
if (n === !0)
|
|
714
|
-
return
|
|
714
|
+
return Un(s);
|
|
715
715
|
if (a.isFunction(n))
|
|
716
716
|
return n.call(this, s, r);
|
|
717
717
|
if (a.isRegExp(n))
|
|
@@ -721,9 +721,9 @@ let O = class {
|
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
has(t, n) {
|
|
724
|
-
if (t =
|
|
724
|
+
if (t = V(t), t) {
|
|
725
725
|
const r = a.findKey(this, t);
|
|
726
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
726
|
+
return !!(r && this[r] !== void 0 && (!n || he(this, this[r], r, n)));
|
|
727
727
|
}
|
|
728
728
|
return !1;
|
|
729
729
|
}
|
|
@@ -731,9 +731,9 @@ let O = class {
|
|
|
731
731
|
const r = this;
|
|
732
732
|
let s = !1;
|
|
733
733
|
function o(i) {
|
|
734
|
-
if (i =
|
|
734
|
+
if (i = V(i), i) {
|
|
735
735
|
const c = a.findKey(r, i);
|
|
736
|
-
c && (!n ||
|
|
736
|
+
c && (!n || he(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
@@ -743,7 +743,7 @@ let O = class {
|
|
|
743
743
|
let r = n.length, s = !1;
|
|
744
744
|
for (; r--; ) {
|
|
745
745
|
const o = n[r];
|
|
746
|
-
(!t ||
|
|
746
|
+
(!t || he(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
747
747
|
}
|
|
748
748
|
return s;
|
|
749
749
|
}
|
|
@@ -752,11 +752,11 @@ let O = class {
|
|
|
752
752
|
return a.forEach(this, (s, o) => {
|
|
753
753
|
const i = a.findKey(r, o);
|
|
754
754
|
if (i) {
|
|
755
|
-
n[i] =
|
|
755
|
+
n[i] = te(s), delete n[o];
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
const c = t ?
|
|
759
|
-
c !== o && delete n[o], n[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) {
|
|
@@ -789,12 +789,12 @@ let O = class {
|
|
|
789
789
|
return n.forEach((s) => r.set(s)), r;
|
|
790
790
|
}
|
|
791
791
|
static accessor(t) {
|
|
792
|
-
const r = (this[
|
|
792
|
+
const r = (this[ke] = this[ke] = {
|
|
793
793
|
accessors: {}
|
|
794
794
|
}).accessors, s = this.prototype;
|
|
795
795
|
function o(i) {
|
|
796
|
-
const c =
|
|
797
|
-
r[c] || (
|
|
796
|
+
const c = V(i);
|
|
797
|
+
r[c] || (Dn(s, i), r[c] = !0);
|
|
798
798
|
}
|
|
799
799
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
800
800
|
}
|
|
@@ -810,8 +810,8 @@ a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
|
|
|
810
810
|
};
|
|
811
811
|
});
|
|
812
812
|
a.freezeMethods(O);
|
|
813
|
-
function
|
|
814
|
-
const n = this ||
|
|
813
|
+
function pe(e, t) {
|
|
814
|
+
const n = this || Y, r = t || n, s = O.from(r.headers);
|
|
815
815
|
let o = r.data;
|
|
816
816
|
return a.forEach(e, function(c) {
|
|
817
817
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
@@ -826,7 +826,7 @@ function M(e, t, n) {
|
|
|
826
826
|
a.inherits(M, m, {
|
|
827
827
|
__CANCEL__: !0
|
|
828
828
|
});
|
|
829
|
-
function
|
|
829
|
+
function ht(e, t, n) {
|
|
830
830
|
const r = n.config.validateStatus;
|
|
831
831
|
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
832
832
|
"Request failed with status code " + n.status,
|
|
@@ -836,68 +836,68 @@ function dt(e, t, n) {
|
|
|
836
836
|
n
|
|
837
837
|
));
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function kn(e) {
|
|
840
840
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
841
841
|
return t && t[1] || "";
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function vn(e, t) {
|
|
844
844
|
e = e || 10;
|
|
845
845
|
const n = new Array(e), r = new Array(e);
|
|
846
846
|
let s = 0, o = 0, i;
|
|
847
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
847
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
848
848
|
const u = Date.now(), l = r[o];
|
|
849
|
-
i || (i = u), n[s] =
|
|
850
|
-
let
|
|
851
|
-
for (;
|
|
852
|
-
g += n[
|
|
849
|
+
i || (i = u), n[s] = d, r[s] = u;
|
|
850
|
+
let f = o, g = 0;
|
|
851
|
+
for (; f !== s; )
|
|
852
|
+
g += n[f++], f = f % e;
|
|
853
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
|
-
function
|
|
859
|
+
function In(e, t) {
|
|
860
860
|
let n = 0, r = 1e3 / t, s, o;
|
|
861
861
|
const i = (u, l = Date.now()) => {
|
|
862
862
|
n = l, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
863
863
|
};
|
|
864
864
|
return [(...u) => {
|
|
865
|
-
const l = Date.now(),
|
|
866
|
-
|
|
865
|
+
const l = Date.now(), f = l - n;
|
|
866
|
+
f >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
867
867
|
o = null, i(s);
|
|
868
|
-
}, r -
|
|
868
|
+
}, r - f)));
|
|
869
869
|
}, () => s && i(s)];
|
|
870
870
|
}
|
|
871
|
-
const
|
|
871
|
+
const re = (e, t, n = 3) => {
|
|
872
872
|
let r = 0;
|
|
873
|
-
const s =
|
|
874
|
-
return
|
|
875
|
-
const i = o.loaded, c = o.lengthComputable ? o.total : void 0,
|
|
873
|
+
const s = vn(50, 250);
|
|
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
876
|
r = i;
|
|
877
|
-
const
|
|
877
|
+
const f = {
|
|
878
878
|
loaded: i,
|
|
879
879
|
total: c,
|
|
880
880
|
progress: c ? i / c : void 0,
|
|
881
|
-
bytes:
|
|
881
|
+
bytes: d,
|
|
882
882
|
rate: u || void 0,
|
|
883
883
|
estimated: u && c && l ? (c - i) / u : void 0,
|
|
884
884
|
event: o,
|
|
885
885
|
lengthComputable: c != null,
|
|
886
886
|
[t ? "download" : "upload"]: !0
|
|
887
887
|
};
|
|
888
|
-
e(
|
|
888
|
+
e(f);
|
|
889
889
|
}, n);
|
|
890
|
-
},
|
|
890
|
+
}, ve = (e, t) => {
|
|
891
891
|
const n = e != null;
|
|
892
892
|
return [(r) => t[0]({
|
|
893
893
|
lengthComputable: n,
|
|
894
894
|
total: e,
|
|
895
895
|
loaded: r
|
|
896
896
|
}), t[1]];
|
|
897
|
-
},
|
|
898
|
-
new URL(
|
|
899
|
-
|
|
900
|
-
) : () => !0,
|
|
897
|
+
}, Ie = (e) => (...t) => a.asap(() => e(...t)), Bn = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
898
|
+
new URL(R.origin),
|
|
899
|
+
R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
|
|
900
|
+
) : () => !0, qn = R.hasStandardBrowserEnv ? (
|
|
901
901
|
// Standard browser envs support document.cookie
|
|
902
902
|
{
|
|
903
903
|
write(e, t, n, r, s, o) {
|
|
@@ -924,28 +924,28 @@ const ne = (e, t, n = 3) => {
|
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
);
|
|
927
|
-
function
|
|
927
|
+
function jn(e) {
|
|
928
928
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Mn(e, t) {
|
|
931
931
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
932
932
|
}
|
|
933
|
-
function
|
|
934
|
-
let r = !
|
|
935
|
-
return e && (r || n == !1) ?
|
|
933
|
+
function pt(e, t, n) {
|
|
934
|
+
let r = !jn(t);
|
|
935
|
+
return e && (r || n == !1) ? Mn(e, t) : t;
|
|
936
936
|
}
|
|
937
|
-
const
|
|
938
|
-
function
|
|
937
|
+
const Be = (e) => e instanceof O ? { ...e } : e;
|
|
938
|
+
function B(e, t) {
|
|
939
939
|
t = t || {};
|
|
940
940
|
const n = {};
|
|
941
|
-
function r(u, l,
|
|
941
|
+
function r(u, l, f, g) {
|
|
942
942
|
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: g }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
943
943
|
}
|
|
944
|
-
function s(u, l,
|
|
944
|
+
function s(u, l, f, g) {
|
|
945
945
|
if (a.isUndefined(l)) {
|
|
946
946
|
if (!a.isUndefined(u))
|
|
947
|
-
return r(void 0, u,
|
|
948
|
-
} else return r(u, l,
|
|
947
|
+
return r(void 0, u, f, g);
|
|
948
|
+
} else return r(u, l, f, g);
|
|
949
949
|
}
|
|
950
950
|
function o(u, l) {
|
|
951
951
|
if (!a.isUndefined(l))
|
|
@@ -957,13 +957,13 @@ function I(e, t) {
|
|
|
957
957
|
return r(void 0, u);
|
|
958
958
|
} else return r(void 0, l);
|
|
959
959
|
}
|
|
960
|
-
function c(u, l,
|
|
961
|
-
if (
|
|
960
|
+
function c(u, l, f) {
|
|
961
|
+
if (f in t)
|
|
962
962
|
return r(u, l);
|
|
963
|
-
if (
|
|
963
|
+
if (f in e)
|
|
964
964
|
return r(void 0, u);
|
|
965
965
|
}
|
|
966
|
-
const
|
|
966
|
+
const d = {
|
|
967
967
|
url: o,
|
|
968
968
|
method: o,
|
|
969
969
|
data: o,
|
|
@@ -992,40 +992,40 @@ function I(e, t) {
|
|
|
992
992
|
socketPath: i,
|
|
993
993
|
responseEncoding: i,
|
|
994
994
|
validateStatus: c,
|
|
995
|
-
headers: (u, l,
|
|
995
|
+
headers: (u, l, f) => s(Be(u), Be(l), f, !0)
|
|
996
996
|
};
|
|
997
997
|
return a.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
998
|
-
const
|
|
999
|
-
a.isUndefined(g) &&
|
|
998
|
+
const f = d[l] || s, g = f(e[l], t[l], l);
|
|
999
|
+
a.isUndefined(g) && f !== c || (n[l] = g);
|
|
1000
1000
|
}), n;
|
|
1001
1001
|
}
|
|
1002
|
-
const
|
|
1003
|
-
const t =
|
|
1002
|
+
const mt = (e) => {
|
|
1003
|
+
const t = B({}, e);
|
|
1004
1004
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
1005
|
-
t.headers = i = O.from(i), t.url =
|
|
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
|
-
let
|
|
1009
|
+
let d;
|
|
1010
1010
|
if (a.isFormData(n)) {
|
|
1011
|
-
if (
|
|
1011
|
+
if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
|
|
1012
1012
|
i.setContentType(void 0);
|
|
1013
|
-
else if ((
|
|
1014
|
-
const [u, ...l] =
|
|
1013
|
+
else if ((d = i.getContentType()) !== !1) {
|
|
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
|
-
if (
|
|
1019
|
-
const u = s && o &&
|
|
1018
|
+
if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Bn(t.url))) {
|
|
1019
|
+
const u = s && o && qn.read(o);
|
|
1020
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
|
-
const s =
|
|
1025
|
+
const s = mt(e);
|
|
1026
1026
|
let o = s.data;
|
|
1027
1027
|
const i = O.from(s.headers).normalize();
|
|
1028
|
-
let { responseType: c, onUploadProgress:
|
|
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);
|
|
1031
1031
|
}
|
|
@@ -1034,20 +1034,20 @@ const pt = (e) => {
|
|
|
1034
1034
|
function b() {
|
|
1035
1035
|
if (!p)
|
|
1036
1036
|
return;
|
|
1037
|
-
const
|
|
1037
|
+
const _ = O.from(
|
|
1038
1038
|
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
1039
1039
|
), A = {
|
|
1040
1040
|
data: !c || c === "text" || c === "json" ? p.responseText : p.response,
|
|
1041
1041
|
status: p.status,
|
|
1042
1042
|
statusText: p.statusText,
|
|
1043
|
-
headers:
|
|
1043
|
+
headers: _,
|
|
1044
1044
|
config: e,
|
|
1045
1045
|
request: p
|
|
1046
1046
|
};
|
|
1047
|
-
|
|
1048
|
-
n(
|
|
1049
|
-
}, function(
|
|
1050
|
-
r(
|
|
1047
|
+
ht(function(k) {
|
|
1048
|
+
n(k), y();
|
|
1049
|
+
}, function(k) {
|
|
1050
|
+
r(k), y();
|
|
1051
1051
|
}, A), p = null;
|
|
1052
1052
|
}
|
|
1053
1053
|
"onloadend" in p ? p.onloadend = b : p.onreadystatechange = function() {
|
|
@@ -1058,7 +1058,7 @@ const pt = (e) => {
|
|
|
1058
1058
|
r(new m("Network Error", m.ERR_NETWORK, e, p)), p = null;
|
|
1059
1059
|
}, p.ontimeout = function() {
|
|
1060
1060
|
let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1061
|
-
const A = s.transitional ||
|
|
1061
|
+
const A = s.transitional || lt;
|
|
1062
1062
|
s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new m(
|
|
1063
1063
|
U,
|
|
1064
1064
|
A.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
@@ -1067,17 +1067,17 @@ const pt = (e) => {
|
|
|
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
|
-
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([g, h] =
|
|
1071
|
-
p && (r(!
|
|
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
|
+
p && (r(!_ || _.type ? new M(null, e, p) : _), p.abort(), p = null);
|
|
1072
1072
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1073
|
-
const S =
|
|
1074
|
-
if (S &&
|
|
1073
|
+
const S = kn(s.url);
|
|
1074
|
+
if (S && R.protocols.indexOf(S) === -1) {
|
|
1075
1075
|
r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, e));
|
|
1076
1076
|
return;
|
|
1077
1077
|
}
|
|
1078
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;
|
|
@@ -1097,10 +1097,10 @@ const pt = (e) => {
|
|
|
1097
1097
|
}), e = null);
|
|
1098
1098
|
};
|
|
1099
1099
|
e.forEach((u) => u.addEventListener("abort", o));
|
|
1100
|
-
const { signal:
|
|
1101
|
-
return
|
|
1100
|
+
const { signal: d } = r;
|
|
1101
|
+
return d.unsubscribe = () => a.asap(c), d;
|
|
1102
1102
|
}
|
|
1103
|
-
},
|
|
1103
|
+
}, Vn = function* (e, t) {
|
|
1104
1104
|
let n = e.byteLength;
|
|
1105
1105
|
if (n < t) {
|
|
1106
1106
|
yield e;
|
|
@@ -1109,10 +1109,10 @@ const pt = (e) => {
|
|
|
1109
1109
|
let r = 0, s;
|
|
1110
1110
|
for (; r < n; )
|
|
1111
1111
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1112
|
-
},
|
|
1113
|
-
for await (const n of
|
|
1114
|
-
yield*
|
|
1115
|
-
},
|
|
1112
|
+
}, zn = async function* (e, t) {
|
|
1113
|
+
for await (const n of Jn(e))
|
|
1114
|
+
yield* Vn(n, t);
|
|
1115
|
+
}, Jn = async function* (e) {
|
|
1116
1116
|
if (e[Symbol.asyncIterator]) {
|
|
1117
1117
|
yield* e;
|
|
1118
1118
|
return;
|
|
@@ -1128,44 +1128,44 @@ const pt = (e) => {
|
|
|
1128
1128
|
} finally {
|
|
1129
1129
|
await t.cancel();
|
|
1130
1130
|
}
|
|
1131
|
-
},
|
|
1132
|
-
const s =
|
|
1133
|
-
let o = 0, i, c = (
|
|
1134
|
-
i || (i = !0, r && r(
|
|
1131
|
+
}, qe = (e, t, n, r) => {
|
|
1132
|
+
const s = zn(e, t);
|
|
1133
|
+
let o = 0, i, c = (d) => {
|
|
1134
|
+
i || (i = !0, r && r(d));
|
|
1135
1135
|
};
|
|
1136
1136
|
return new ReadableStream({
|
|
1137
|
-
async pull(
|
|
1137
|
+
async pull(d) {
|
|
1138
1138
|
try {
|
|
1139
1139
|
const { done: u, value: l } = await s.next();
|
|
1140
1140
|
if (u) {
|
|
1141
|
-
c(),
|
|
1141
|
+
c(), d.close();
|
|
1142
1142
|
return;
|
|
1143
1143
|
}
|
|
1144
|
-
let
|
|
1144
|
+
let f = l.byteLength;
|
|
1145
1145
|
if (n) {
|
|
1146
|
-
let g = o +=
|
|
1146
|
+
let g = o += f;
|
|
1147
1147
|
n(g);
|
|
1148
1148
|
}
|
|
1149
|
-
|
|
1149
|
+
d.enqueue(new Uint8Array(l));
|
|
1150
1150
|
} catch (u) {
|
|
1151
1151
|
throw c(u), u;
|
|
1152
1152
|
}
|
|
1153
1153
|
},
|
|
1154
|
-
cancel(
|
|
1155
|
-
return c(
|
|
1154
|
+
cancel(d) {
|
|
1155
|
+
return c(d), s.return();
|
|
1156
1156
|
}
|
|
1157
1157
|
}, {
|
|
1158
1158
|
highWaterMark: 2
|
|
1159
1159
|
});
|
|
1160
|
-
},
|
|
1160
|
+
}, ue = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", yt = ue && typeof ReadableStream == "function", Wn = ue && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), gt = (e, ...t) => {
|
|
1161
1161
|
try {
|
|
1162
1162
|
return !!e(...t);
|
|
1163
1163
|
} catch {
|
|
1164
1164
|
return !1;
|
|
1165
1165
|
}
|
|
1166
|
-
},
|
|
1166
|
+
}, Qn = yt && gt(() => {
|
|
1167
1167
|
let e = !1;
|
|
1168
|
-
const t = new Request(
|
|
1168
|
+
const t = new Request(R.origin, {
|
|
1169
1169
|
body: new ReadableStream(),
|
|
1170
1170
|
method: "POST",
|
|
1171
1171
|
get duplex() {
|
|
@@ -1173,34 +1173,34 @@ const pt = (e) => {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
}).headers.has("Content-Type");
|
|
1175
1175
|
return e && !t;
|
|
1176
|
-
}),
|
|
1177
|
-
stream:
|
|
1176
|
+
}), je = 64 * 1024, be = yt && gt(() => a.isReadableStream(new Response("").body)), se = {
|
|
1177
|
+
stream: be && ((e) => e.body)
|
|
1178
1178
|
};
|
|
1179
|
-
|
|
1179
|
+
ue && ((e) => {
|
|
1180
1180
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1181
|
-
!
|
|
1181
|
+
!se[t] && (se[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1182
1182
|
throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
|
|
1183
1183
|
});
|
|
1184
1184
|
});
|
|
1185
1185
|
})(new Response());
|
|
1186
|
-
const
|
|
1186
|
+
const Xn = async (e) => {
|
|
1187
1187
|
if (e == null)
|
|
1188
1188
|
return 0;
|
|
1189
1189
|
if (a.isBlob(e))
|
|
1190
1190
|
return e.size;
|
|
1191
1191
|
if (a.isSpecCompliantForm(e))
|
|
1192
|
-
return (await new Request(
|
|
1192
|
+
return (await new Request(R.origin, {
|
|
1193
1193
|
method: "POST",
|
|
1194
1194
|
body: e
|
|
1195
1195
|
}).arrayBuffer()).byteLength;
|
|
1196
1196
|
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1197
1197
|
return e.byteLength;
|
|
1198
1198
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1199
|
-
return (await
|
|
1200
|
-
},
|
|
1199
|
+
return (await Wn(e)).byteLength;
|
|
1200
|
+
}, Yn = async (e, t) => {
|
|
1201
1201
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1202
|
-
return n ??
|
|
1203
|
-
},
|
|
1202
|
+
return n ?? Xn(t);
|
|
1203
|
+
}, Gn = ue && (async (e) => {
|
|
1204
1204
|
let {
|
|
1205
1205
|
url: t,
|
|
1206
1206
|
method: n,
|
|
@@ -1209,34 +1209,34 @@ const Qn = async (e) => {
|
|
|
1209
1209
|
cancelToken: o,
|
|
1210
1210
|
timeout: i,
|
|
1211
1211
|
onDownloadProgress: c,
|
|
1212
|
-
onUploadProgress:
|
|
1212
|
+
onUploadProgress: d,
|
|
1213
1213
|
responseType: u,
|
|
1214
1214
|
headers: l,
|
|
1215
|
-
withCredentials:
|
|
1215
|
+
withCredentials: f = "same-origin",
|
|
1216
1216
|
fetchOptions: g
|
|
1217
|
-
} =
|
|
1217
|
+
} = mt(e);
|
|
1218
1218
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1219
|
-
let w =
|
|
1219
|
+
let w = Kn([s, o && o.toAbortSignal()], i), h;
|
|
1220
1220
|
const y = w && w.unsubscribe && (() => {
|
|
1221
1221
|
w.unsubscribe();
|
|
1222
1222
|
});
|
|
1223
1223
|
let p;
|
|
1224
1224
|
try {
|
|
1225
|
-
if (
|
|
1225
|
+
if (d && Qn && n !== "get" && n !== "head" && (p = await Yn(l, r)) !== 0) {
|
|
1226
1226
|
let A = new Request(t, {
|
|
1227
1227
|
method: "POST",
|
|
1228
1228
|
body: r,
|
|
1229
1229
|
duplex: "half"
|
|
1230
|
-
}),
|
|
1231
|
-
if (a.isFormData(r) && (
|
|
1232
|
-
const [
|
|
1230
|
+
}), F;
|
|
1231
|
+
if (a.isFormData(r) && (F = A.headers.get("content-type")) && l.setContentType(F), A.body) {
|
|
1232
|
+
const [k, G] = ve(
|
|
1233
1233
|
p,
|
|
1234
|
-
|
|
1234
|
+
re(Ie(d))
|
|
1235
1235
|
);
|
|
1236
|
-
r =
|
|
1236
|
+
r = qe(A.body, je, k, G);
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
a.isString(
|
|
1239
|
+
a.isString(f) || (f = f ? "include" : "omit");
|
|
1240
1240
|
const b = "credentials" in Request.prototype;
|
|
1241
1241
|
h = new Request(t, {
|
|
1242
1242
|
...g,
|
|
@@ -1245,30 +1245,30 @@ const Qn = async (e) => {
|
|
|
1245
1245
|
headers: l.normalize().toJSON(),
|
|
1246
1246
|
body: r,
|
|
1247
1247
|
duplex: "half",
|
|
1248
|
-
credentials: b ?
|
|
1248
|
+
credentials: b ? f : void 0
|
|
1249
1249
|
});
|
|
1250
1250
|
let S = await fetch(h, g);
|
|
1251
|
-
const
|
|
1252
|
-
if (
|
|
1251
|
+
const _ = be && (u === "stream" || u === "response");
|
|
1252
|
+
if (be && (c || _ && y)) {
|
|
1253
1253
|
const A = {};
|
|
1254
|
-
["status", "statusText", "headers"].forEach((
|
|
1255
|
-
A[
|
|
1254
|
+
["status", "statusText", "headers"].forEach((xe) => {
|
|
1255
|
+
A[xe] = S[xe];
|
|
1256
1256
|
});
|
|
1257
|
-
const
|
|
1258
|
-
|
|
1259
|
-
|
|
1257
|
+
const F = a.toFiniteNumber(S.headers.get("content-length")), [k, G] = c && ve(
|
|
1258
|
+
F,
|
|
1259
|
+
re(Ie(c), !0)
|
|
1260
1260
|
) || [];
|
|
1261
1261
|
S = new Response(
|
|
1262
|
-
|
|
1263
|
-
|
|
1262
|
+
qe(S.body, je, k, () => {
|
|
1263
|
+
G && G(), y && y();
|
|
1264
1264
|
}),
|
|
1265
1265
|
A
|
|
1266
1266
|
);
|
|
1267
1267
|
}
|
|
1268
1268
|
u = u || "text";
|
|
1269
|
-
let U = await
|
|
1270
|
-
return !
|
|
1271
|
-
|
|
1269
|
+
let U = await se[a.findKey(se, u) || "text"](S, e);
|
|
1270
|
+
return !_ && y && y(), await new Promise((A, F) => {
|
|
1271
|
+
ht(A, F, {
|
|
1272
1272
|
data: U,
|
|
1273
1273
|
headers: O.from(S.headers),
|
|
1274
1274
|
status: S.status,
|
|
@@ -1285,12 +1285,12 @@ const Qn = async (e) => {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
) : m.from(b, b && b.code, e, h);
|
|
1287
1287
|
}
|
|
1288
|
-
}),
|
|
1289
|
-
http:
|
|
1290
|
-
xhr:
|
|
1291
|
-
fetch:
|
|
1288
|
+
}), Ee = {
|
|
1289
|
+
http: hn,
|
|
1290
|
+
xhr: Hn,
|
|
1291
|
+
fetch: Gn
|
|
1292
1292
|
};
|
|
1293
|
-
a.forEach(
|
|
1293
|
+
a.forEach(Ee, (e, t) => {
|
|
1294
1294
|
if (e) {
|
|
1295
1295
|
try {
|
|
1296
1296
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1299,7 +1299,7 @@ a.forEach(be, (e, t) => {
|
|
|
1299
1299
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1300
1300
|
}
|
|
1301
1301
|
});
|
|
1302
|
-
const
|
|
1302
|
+
const Me = (e) => `- ${e}`, Zn = (e) => a.isFunction(e) || e === null || e === !1, wt = {
|
|
1303
1303
|
getAdapter: (e) => {
|
|
1304
1304
|
e = a.isArray(e) ? e : [e];
|
|
1305
1305
|
const { length: t } = e;
|
|
@@ -1308,7 +1308,7 @@ const je = (e) => `- ${e}`, Gn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1308
1308
|
for (let o = 0; o < t; o++) {
|
|
1309
1309
|
n = e[o];
|
|
1310
1310
|
let i;
|
|
1311
|
-
if (r = n, !
|
|
1311
|
+
if (r = n, !Zn(n) && (r = Ee[(i = String(n)).toLowerCase()], r === void 0))
|
|
1312
1312
|
throw new m(`Unknown adapter '${i}'`);
|
|
1313
1313
|
if (r)
|
|
1314
1314
|
break;
|
|
@@ -1316,11 +1316,11 @@ const je = (e) => `- ${e}`, Gn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1316
1316
|
}
|
|
1317
1317
|
if (!r) {
|
|
1318
1318
|
const o = Object.entries(s).map(
|
|
1319
|
-
([c,
|
|
1319
|
+
([c, d]) => `adapter ${c} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1320
1320
|
);
|
|
1321
1321
|
let i = t ? o.length > 1 ? `since :
|
|
1322
|
-
` + o.map(
|
|
1323
|
-
`) : " " +
|
|
1322
|
+
` + o.map(Me).join(`
|
|
1323
|
+
`) : " " + Me(o[0]) : "as no adapter specified";
|
|
1324
1324
|
throw new m(
|
|
1325
1325
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1326
1326
|
"ERR_NOT_SUPPORT"
|
|
@@ -1328,40 +1328,40 @@ const je = (e) => `- ${e}`, Gn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1328
1328
|
}
|
|
1329
1329
|
return r;
|
|
1330
1330
|
},
|
|
1331
|
-
adapters:
|
|
1331
|
+
adapters: Ee
|
|
1332
1332
|
};
|
|
1333
|
-
function
|
|
1333
|
+
function me(e) {
|
|
1334
1334
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1335
1335
|
throw new M(null, e);
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return
|
|
1337
|
+
function $e(e) {
|
|
1338
|
+
return me(e), e.headers = O.from(e.headers), e.data = pe.call(
|
|
1339
1339
|
e,
|
|
1340
1340
|
e.transformRequest
|
|
1341
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1342
|
-
return
|
|
1341
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), wt.getAdapter(e.adapter || Y.adapter)(e).then(function(r) {
|
|
1342
|
+
return me(e), r.data = pe.call(
|
|
1343
1343
|
e,
|
|
1344
1344
|
e.transformResponse,
|
|
1345
1345
|
r
|
|
1346
1346
|
), r.headers = O.from(r.headers), r;
|
|
1347
1347
|
}, function(r) {
|
|
1348
|
-
return ft(r) || (
|
|
1348
|
+
return ft(r) || (me(e), r && r.response && (r.response.data = pe.call(
|
|
1349
1349
|
e,
|
|
1350
1350
|
e.transformResponse,
|
|
1351
1351
|
r.response
|
|
1352
1352
|
), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
1355
|
-
const
|
|
1355
|
+
const bt = "1.11.0", le = {};
|
|
1356
1356
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1357
|
-
|
|
1357
|
+
le[e] = function(r) {
|
|
1358
1358
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1359
1359
|
};
|
|
1360
1360
|
});
|
|
1361
|
-
const
|
|
1362
|
-
|
|
1361
|
+
const He = {};
|
|
1362
|
+
le.transitional = function(t, n, r) {
|
|
1363
1363
|
function s(o, i) {
|
|
1364
|
-
return "[Axios v" +
|
|
1364
|
+
return "[Axios v" + bt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1365
1365
|
}
|
|
1366
1366
|
return (o, i, c) => {
|
|
1367
1367
|
if (t === !1)
|
|
@@ -1369,7 +1369,7 @@ ue.transitional = function(t, n, r) {
|
|
|
1369
1369
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1370
1370
|
m.ERR_DEPRECATED
|
|
1371
1371
|
);
|
|
1372
|
-
return n &&
|
|
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"
|
|
@@ -1377,10 +1377,10 @@ ue.transitional = function(t, n, r) {
|
|
|
1377
1377
|
)), t ? t(o, i, c) : !0;
|
|
1378
1378
|
};
|
|
1379
1379
|
};
|
|
1380
|
-
|
|
1380
|
+
le.spelling = function(t) {
|
|
1381
1381
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1382
1382
|
};
|
|
1383
|
-
function
|
|
1383
|
+
function er(e, t, n) {
|
|
1384
1384
|
if (typeof e != "object")
|
|
1385
1385
|
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1386
1386
|
const r = Object.keys(e);
|
|
@@ -1388,24 +1388,24 @@ function Zn(e, t, n) {
|
|
|
1388
1388
|
for (; s-- > 0; ) {
|
|
1389
1389
|
const o = r[s], i = t[o];
|
|
1390
1390
|
if (i) {
|
|
1391
|
-
const c = e[o],
|
|
1392
|
-
if (
|
|
1393
|
-
throw new m("option " + o + " must be " +
|
|
1391
|
+
const c = e[o], d = c === void 0 || i(c, o, e);
|
|
1392
|
+
if (d !== !0)
|
|
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
1397
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
|
-
const
|
|
1401
|
-
assertOptions:
|
|
1402
|
-
validators:
|
|
1403
|
-
}, x =
|
|
1404
|
-
let
|
|
1400
|
+
const ne = {
|
|
1401
|
+
assertOptions: er,
|
|
1402
|
+
validators: le
|
|
1403
|
+
}, x = ne.validators;
|
|
1404
|
+
let I = class {
|
|
1405
1405
|
constructor(t) {
|
|
1406
1406
|
this.defaults = t || {}, this.interceptors = {
|
|
1407
|
-
request: new
|
|
1408
|
-
response: new
|
|
1407
|
+
request: new De(),
|
|
1408
|
+
response: new De()
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
/**
|
|
@@ -1434,18 +1434,18 @@ let q = class {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
_request(t, n) {
|
|
1437
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1437
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
|
|
1438
1438
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1439
|
-
r !== void 0 &&
|
|
1439
|
+
r !== void 0 && ne.assertOptions(r, {
|
|
1440
1440
|
silentJSONParsing: x.transitional(x.boolean),
|
|
1441
1441
|
forcedJSONParsing: x.transitional(x.boolean),
|
|
1442
1442
|
clarifyTimeoutError: x.transitional(x.boolean)
|
|
1443
1443
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1444
1444
|
serialize: s
|
|
1445
|
-
} :
|
|
1445
|
+
} : ne.assertOptions(s, {
|
|
1446
1446
|
encode: x.function,
|
|
1447
1447
|
serialize: x.function
|
|
1448
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1448
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ne.assertOptions(n, {
|
|
1449
1449
|
baseUrl: x.spelling("baseURL"),
|
|
1450
1450
|
withXsrfToken: x.spelling("withXSRFToken")
|
|
1451
1451
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1460,25 +1460,25 @@ let q = class {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
), n.headers = O.concat(i, o);
|
|
1462
1462
|
const c = [];
|
|
1463
|
-
let
|
|
1463
|
+
let d = !0;
|
|
1464
1464
|
this.interceptors.request.forEach(function(y) {
|
|
1465
|
-
typeof y.runWhen == "function" && y.runWhen(n) === !1 || (
|
|
1465
|
+
typeof y.runWhen == "function" && y.runWhen(n) === !1 || (d = d && y.synchronous, c.unshift(y.fulfilled, y.rejected));
|
|
1466
1466
|
});
|
|
1467
1467
|
const u = [];
|
|
1468
1468
|
this.interceptors.response.forEach(function(y) {
|
|
1469
1469
|
u.push(y.fulfilled, y.rejected);
|
|
1470
1470
|
});
|
|
1471
|
-
let l,
|
|
1472
|
-
if (!
|
|
1473
|
-
const h = [
|
|
1474
|
-
for (h.unshift(...c), h.push(...u), g = h.length, l = Promise.resolve(n);
|
|
1475
|
-
l = l.then(h[
|
|
1471
|
+
let l, f = 0, g;
|
|
1472
|
+
if (!d) {
|
|
1473
|
+
const h = [$e.bind(this), void 0];
|
|
1474
|
+
for (h.unshift(...c), h.push(...u), g = h.length, l = Promise.resolve(n); f < g; )
|
|
1475
|
+
l = l.then(h[f++], h[f++]);
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
1478
|
g = c.length;
|
|
1479
1479
|
let w = n;
|
|
1480
|
-
for (
|
|
1481
|
-
const h = c[
|
|
1480
|
+
for (f = 0; f < g; ) {
|
|
1481
|
+
const h = c[f++], y = c[f++];
|
|
1482
1482
|
try {
|
|
1483
1483
|
w = h(w);
|
|
1484
1484
|
} catch (p) {
|
|
@@ -1487,23 +1487,23 @@ let q = class {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
1489
|
try {
|
|
1490
|
-
l =
|
|
1490
|
+
l = $e.call(this, w);
|
|
1491
1491
|
} catch (h) {
|
|
1492
1492
|
return Promise.reject(h);
|
|
1493
1493
|
}
|
|
1494
|
-
for (
|
|
1495
|
-
l = l.then(u[
|
|
1494
|
+
for (f = 0, g = u.length; f < g; )
|
|
1495
|
+
l = l.then(u[f++], u[f++]);
|
|
1496
1496
|
return l;
|
|
1497
1497
|
}
|
|
1498
1498
|
getUri(t) {
|
|
1499
|
-
t =
|
|
1500
|
-
const n =
|
|
1501
|
-
return
|
|
1499
|
+
t = B(this.defaults, t);
|
|
1500
|
+
const n = pt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1501
|
+
return ut(n, t.params, t.paramsSerializer);
|
|
1502
1502
|
}
|
|
1503
1503
|
};
|
|
1504
1504
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1505
|
-
|
|
1506
|
-
return this.request(
|
|
1505
|
+
I.prototype[t] = function(n, r) {
|
|
1506
|
+
return this.request(B(r || {}, {
|
|
1507
1507
|
method: t,
|
|
1508
1508
|
url: n,
|
|
1509
1509
|
data: (r || {}).data
|
|
@@ -1513,7 +1513,7 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1513
1513
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1514
1514
|
function n(r) {
|
|
1515
1515
|
return function(o, i, c) {
|
|
1516
|
-
return this.request(
|
|
1516
|
+
return this.request(B(c || {}, {
|
|
1517
1517
|
method: t,
|
|
1518
1518
|
headers: r ? {
|
|
1519
1519
|
"Content-Type": "multipart/form-data"
|
|
@@ -1523,9 +1523,9 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1523
1523
|
}));
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
|
|
1526
|
+
I.prototype[t] = n(), I.prototype[t + "Form"] = n(!0);
|
|
1527
1527
|
});
|
|
1528
|
-
let
|
|
1528
|
+
let tr = class Et {
|
|
1529
1529
|
constructor(t) {
|
|
1530
1530
|
if (typeof t != "function")
|
|
1531
1531
|
throw new TypeError("executor must be a function.");
|
|
@@ -1591,22 +1591,22 @@ let er = class bt {
|
|
|
1591
1591
|
static source() {
|
|
1592
1592
|
let t;
|
|
1593
1593
|
return {
|
|
1594
|
-
token: new
|
|
1594
|
+
token: new Et(function(s) {
|
|
1595
1595
|
t = s;
|
|
1596
1596
|
}),
|
|
1597
1597
|
cancel: t
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
1600
1600
|
};
|
|
1601
|
-
function
|
|
1601
|
+
function nr(e) {
|
|
1602
1602
|
return function(n) {
|
|
1603
1603
|
return e.apply(null, n);
|
|
1604
1604
|
};
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function rr(e) {
|
|
1607
1607
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1608
1608
|
}
|
|
1609
|
-
const
|
|
1609
|
+
const Se = {
|
|
1610
1610
|
Continue: 100,
|
|
1611
1611
|
SwitchingProtocols: 101,
|
|
1612
1612
|
Processing: 102,
|
|
@@ -1671,83 +1671,83 @@ const Ee = {
|
|
|
1671
1671
|
NotExtended: 510,
|
|
1672
1672
|
NetworkAuthenticationRequired: 511
|
|
1673
1673
|
};
|
|
1674
|
-
Object.entries(
|
|
1675
|
-
|
|
1674
|
+
Object.entries(Se).forEach(([e, t]) => {
|
|
1675
|
+
Se[t] = e;
|
|
1676
1676
|
});
|
|
1677
|
-
function
|
|
1678
|
-
const t = new
|
|
1679
|
-
return a.extend(n,
|
|
1680
|
-
return
|
|
1677
|
+
function St(e) {
|
|
1678
|
+
const t = new I(e), n = Ye(I.prototype.request, t);
|
|
1679
|
+
return a.extend(n, I.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1680
|
+
return St(B(e, s));
|
|
1681
1681
|
}, n;
|
|
1682
1682
|
}
|
|
1683
|
-
const E =
|
|
1684
|
-
E.Axios =
|
|
1683
|
+
const E = St(Y);
|
|
1684
|
+
E.Axios = I;
|
|
1685
1685
|
E.CanceledError = M;
|
|
1686
|
-
E.CancelToken =
|
|
1686
|
+
E.CancelToken = tr;
|
|
1687
1687
|
E.isCancel = ft;
|
|
1688
|
-
E.VERSION =
|
|
1689
|
-
E.toFormData =
|
|
1688
|
+
E.VERSION = bt;
|
|
1689
|
+
E.toFormData = ce;
|
|
1690
1690
|
E.AxiosError = m;
|
|
1691
1691
|
E.Cancel = E.CanceledError;
|
|
1692
1692
|
E.all = function(t) {
|
|
1693
1693
|
return Promise.all(t);
|
|
1694
1694
|
};
|
|
1695
|
-
E.spread =
|
|
1696
|
-
E.isAxiosError =
|
|
1697
|
-
E.mergeConfig =
|
|
1695
|
+
E.spread = nr;
|
|
1696
|
+
E.isAxiosError = rr;
|
|
1697
|
+
E.mergeConfig = B;
|
|
1698
1698
|
E.AxiosHeaders = O;
|
|
1699
|
-
E.formToJSON = (e) =>
|
|
1700
|
-
E.getAdapter =
|
|
1701
|
-
E.HttpStatusCode =
|
|
1699
|
+
E.formToJSON = (e) => dt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1700
|
+
E.getAdapter = wt.getAdapter;
|
|
1701
|
+
E.HttpStatusCode = Se;
|
|
1702
1702
|
E.default = E;
|
|
1703
1703
|
const {
|
|
1704
|
-
Axios:
|
|
1705
|
-
AxiosError:
|
|
1706
|
-
CanceledError:
|
|
1707
|
-
isCancel:
|
|
1708
|
-
CancelToken:
|
|
1709
|
-
VERSION:
|
|
1710
|
-
all:
|
|
1711
|
-
Cancel:
|
|
1712
|
-
isAxiosError:
|
|
1713
|
-
spread:
|
|
1714
|
-
toFormData:
|
|
1715
|
-
AxiosHeaders:
|
|
1716
|
-
HttpStatusCode:
|
|
1717
|
-
formToJSON:
|
|
1718
|
-
getAdapter:
|
|
1719
|
-
mergeConfig:
|
|
1704
|
+
Axios: as,
|
|
1705
|
+
AxiosError: Z,
|
|
1706
|
+
CanceledError: cs,
|
|
1707
|
+
isCancel: us,
|
|
1708
|
+
CancelToken: ls,
|
|
1709
|
+
VERSION: ds,
|
|
1710
|
+
all: fs,
|
|
1711
|
+
Cancel: hs,
|
|
1712
|
+
isAxiosError: ps,
|
|
1713
|
+
spread: ms,
|
|
1714
|
+
toFormData: ys,
|
|
1715
|
+
AxiosHeaders: gs,
|
|
1716
|
+
HttpStatusCode: ws,
|
|
1717
|
+
formToJSON: bs,
|
|
1718
|
+
getAdapter: Es,
|
|
1719
|
+
mergeConfig: Ss
|
|
1720
1720
|
} = E;
|
|
1721
|
-
class
|
|
1721
|
+
class Ke extends Error {
|
|
1722
1722
|
constructor(n) {
|
|
1723
1723
|
super(n.join(", "));
|
|
1724
|
-
|
|
1724
|
+
C(this, "errors");
|
|
1725
1725
|
this.name = "ValidationError", this.errors = n;
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
|
-
class
|
|
1728
|
+
class Ve extends Error {
|
|
1729
1729
|
constructor(n) {
|
|
1730
1730
|
super("Address already registered.");
|
|
1731
|
-
|
|
1731
|
+
C(this, "address");
|
|
1732
1732
|
this.name = "AddressInUseError", this.address = n;
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
class
|
|
1735
|
+
class ze extends Error {
|
|
1736
1736
|
constructor(n) {
|
|
1737
1737
|
super("Code already registered.");
|
|
1738
|
-
|
|
1738
|
+
C(this, "code");
|
|
1739
1739
|
this.name = "CodeInUseError", this.code = n;
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
class
|
|
1742
|
+
class Je extends Error {
|
|
1743
1743
|
constructor() {
|
|
1744
1744
|
super("Invalid signature provided"), this.name = "InvalidSignatureError";
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
|
-
class
|
|
1747
|
+
class sr {
|
|
1748
1748
|
constructor(t) {
|
|
1749
|
-
|
|
1750
|
-
|
|
1749
|
+
C(this, "httpClient");
|
|
1750
|
+
C(this, "_debug");
|
|
1751
1751
|
this.httpClient = t.httpClient, this._debug = t.debug;
|
|
1752
1752
|
}
|
|
1753
1753
|
async create(t, n, r, s, o, i) {
|
|
@@ -1765,16 +1765,16 @@ class rr {
|
|
|
1765
1765
|
account_chain_id: i
|
|
1766
1766
|
}
|
|
1767
1767
|
});
|
|
1768
|
-
} catch (
|
|
1769
|
-
if (
|
|
1770
|
-
const u = (c =
|
|
1768
|
+
} catch (d) {
|
|
1769
|
+
if (d instanceof Z) {
|
|
1770
|
+
const u = (c = d.response) == null ? void 0 : c.data;
|
|
1771
1771
|
if (typeof (u == null ? void 0 : u.message) == "string") {
|
|
1772
1772
|
const l = u.message.toLowerCase();
|
|
1773
|
-
throw l == "invalid signature" ? new
|
|
1773
|
+
throw l == "invalid signature" ? new Je() : l == "address in use" ? new Ve(t) : l == "code in use" ? new ze(r) : new Error(l);
|
|
1774
1774
|
} else if ((u == null ? void 0 : u.message) instanceof Array)
|
|
1775
|
-
throw new
|
|
1775
|
+
throw new Ke(u.message);
|
|
1776
1776
|
}
|
|
1777
|
-
throw
|
|
1777
|
+
throw d;
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
async update(t, n, r, s, o, i) {
|
|
@@ -1791,16 +1791,16 @@ class rr {
|
|
|
1791
1791
|
account_chain_id: i
|
|
1792
1792
|
}
|
|
1793
1793
|
});
|
|
1794
|
-
} catch (
|
|
1795
|
-
if (
|
|
1796
|
-
const u = (c =
|
|
1794
|
+
} catch (d) {
|
|
1795
|
+
if (d instanceof Z) {
|
|
1796
|
+
const u = (c = d.response) == null ? void 0 : c.data;
|
|
1797
1797
|
if (typeof (u == null ? void 0 : u.message) == "string") {
|
|
1798
1798
|
const l = u.message.toLowerCase();
|
|
1799
|
-
throw l == "invalid signature" ? new
|
|
1799
|
+
throw l == "invalid signature" ? new Je() : l == "address in use" ? new Ve(t) : l == "code in use" ? new ze(r) : new Error(l);
|
|
1800
1800
|
} else if ((u == null ? void 0 : u.message) instanceof Array)
|
|
1801
|
-
throw new
|
|
1801
|
+
throw new Ke(u.message);
|
|
1802
1802
|
}
|
|
1803
|
-
throw
|
|
1803
|
+
throw d;
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
async isCodeFree(t) {
|
|
@@ -1808,7 +1808,7 @@ class rr {
|
|
|
1808
1808
|
try {
|
|
1809
1809
|
return await this.httpClient.get({ path: `/affiliates/codes/${t}` }), !1;
|
|
1810
1810
|
} catch (r) {
|
|
1811
|
-
if (r instanceof
|
|
1811
|
+
if (r instanceof Z && ((n = r.response) == null ? void 0 : n.status) === 404)
|
|
1812
1812
|
return !0;
|
|
1813
1813
|
throw console.error("Fuul SDK: Could not check affiliate code", r), r;
|
|
1814
1814
|
}
|
|
@@ -1818,29 +1818,29 @@ class rr {
|
|
|
1818
1818
|
try {
|
|
1819
1819
|
return (await this.httpClient.get({ path: `/affiliates/${t}`, queryParams: { identifier_type: n } })).data.code;
|
|
1820
1820
|
} catch (s) {
|
|
1821
|
-
if (s instanceof
|
|
1821
|
+
if (s instanceof Z && ((r = s.response) == null ? void 0 : r.status) === 404)
|
|
1822
1822
|
return null;
|
|
1823
1823
|
throw console.error("Fuul SDK: Could not get affiliate code", s), s;
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
1826
|
}
|
|
1827
|
-
const
|
|
1828
|
-
class
|
|
1827
|
+
const or = "/audiences";
|
|
1828
|
+
class ir {
|
|
1829
1829
|
constructor(t) {
|
|
1830
|
-
|
|
1831
|
-
|
|
1830
|
+
C(this, "httpClient");
|
|
1831
|
+
C(this, "_debug");
|
|
1832
1832
|
this.httpClient = t.httpClient, this._debug = t.debug;
|
|
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
|
}
|
|
1840
1840
|
}
|
|
1841
|
-
class
|
|
1841
|
+
class ar {
|
|
1842
1842
|
constructor(t) {
|
|
1843
|
-
|
|
1843
|
+
C(this, "httpClient");
|
|
1844
1844
|
this.httpClient = t.httpClient;
|
|
1845
1845
|
}
|
|
1846
1846
|
async getAll(t) {
|
|
@@ -1848,11 +1848,11 @@ class ir {
|
|
|
1848
1848
|
return n;
|
|
1849
1849
|
}
|
|
1850
1850
|
}
|
|
1851
|
-
const
|
|
1852
|
-
class
|
|
1851
|
+
const We = "fuul.sent", cr = 60, ur = "connect_wallet", Qe = 10;
|
|
1852
|
+
class lr {
|
|
1853
1853
|
constructor(t) {
|
|
1854
|
-
|
|
1855
|
-
|
|
1854
|
+
C(this, "debug");
|
|
1855
|
+
C(this, "httpClient");
|
|
1856
1856
|
this.httpClient = t.httpClient, this.debug = !!t.debug;
|
|
1857
1857
|
}
|
|
1858
1858
|
async sendEvent(t, n) {
|
|
@@ -1870,47 +1870,47 @@ class ur {
|
|
|
1870
1870
|
this.debug && console.debug(`Fuul SDK: Sent '${t.name}' event`), this.saveSentEvent(t);
|
|
1871
1871
|
}
|
|
1872
1872
|
isDuplicate(t) {
|
|
1873
|
-
var l,
|
|
1874
|
-
const n = `${
|
|
1873
|
+
var l, f, g, w;
|
|
1874
|
+
const n = `${We}_${t.name}`, r = localStorage.getItem(n);
|
|
1875
1875
|
if (!r)
|
|
1876
1876
|
return !1;
|
|
1877
1877
|
const s = JSON.parse(r);
|
|
1878
|
-
if (this.getCurrentTimestamp() - s.timestamp >
|
|
1878
|
+
if (this.getCurrentTimestamp() - s.timestamp > cr)
|
|
1879
1879
|
return !1;
|
|
1880
|
-
let
|
|
1881
|
-
t.metadata && (
|
|
1880
|
+
let d = !1;
|
|
1881
|
+
t.metadata && (d = s.metadata.tracking_id === t.metadata.tracking_id && s.metadata.project_id === t.metadata.project_id && s.metadata.referrer === t.metadata.referrer && s.metadata.source === t.metadata.source && s.metadata.category === t.metadata.category && s.metadata.title === t.metadata.title && s.metadata.tag === t.metadata.tag && s.user_address === t.user_address && ((l = s.user) == null ? void 0 : l.identifier) === ((f = t.user) == null ? void 0 : f.identifier) && ((g = s.user) == null ? void 0 : g.identifier_type) === ((w = t.user) == null ? void 0 : w.identifier_type) && s.signature === t.signature && s.signature_message === t.signature_message);
|
|
1882
1882
|
let u = !1;
|
|
1883
|
-
return t.args && s.args && (u = s.args.page === t.args.page), u &&
|
|
1883
|
+
return t.args && s.args && (u = s.args.page === t.args.page), u && d;
|
|
1884
1884
|
}
|
|
1885
1885
|
getCurrentTimestamp() {
|
|
1886
1886
|
return Date.now() / 1e3;
|
|
1887
1887
|
}
|
|
1888
1888
|
saveSentEvent(t) {
|
|
1889
|
-
var i, c,
|
|
1890
|
-
const n = `${
|
|
1891
|
-
if (localStorage.setItem(n, JSON.stringify(o)), t.name ===
|
|
1892
|
-
const l = JSON.parse(localStorage.getItem(r) || "[]"),
|
|
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
|
+
const l = JSON.parse(localStorage.getItem(r) || "[]"), f = {
|
|
1893
1893
|
name: t.name,
|
|
1894
1894
|
user: {
|
|
1895
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
|
-
tracking_id: (
|
|
1898
|
+
tracking_id: (d = t.metadata) == null ? void 0 : d.tracking_id,
|
|
1899
1899
|
page: (u = t.args) == null ? void 0 : u.page
|
|
1900
1900
|
};
|
|
1901
|
-
"user_address" in t && (
|
|
1902
|
-
const g = [...l,
|
|
1903
|
-
g.length >
|
|
1901
|
+
"user_address" in t && (f.user_address = t.user_address);
|
|
1902
|
+
const g = [...l, f];
|
|
1903
|
+
g.length > Qe && g.splice(0, g.length - Qe), localStorage.setItem(r, JSON.stringify(g));
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
|
-
const
|
|
1908
|
-
version:
|
|
1907
|
+
const dr = "7.0.6", fr = {
|
|
1908
|
+
version: dr
|
|
1909
1909
|
};
|
|
1910
|
-
class
|
|
1910
|
+
class hr {
|
|
1911
1911
|
constructor(t) {
|
|
1912
|
-
|
|
1913
|
-
|
|
1912
|
+
C(this, "client");
|
|
1913
|
+
C(this, "defaultQueryParams");
|
|
1914
1914
|
this.client = E.create({
|
|
1915
1915
|
...t,
|
|
1916
1916
|
headers: {
|
|
@@ -1945,6 +1945,14 @@ class dr {
|
|
|
1945
1945
|
method: "PUT"
|
|
1946
1946
|
});
|
|
1947
1947
|
}
|
|
1948
|
+
async patch(t) {
|
|
1949
|
+
return this.client.request({
|
|
1950
|
+
url: t.path,
|
|
1951
|
+
params: this.makeQueryParams(t.queryParams),
|
|
1952
|
+
data: t.postData,
|
|
1953
|
+
method: "PATCH"
|
|
1954
|
+
});
|
|
1955
|
+
}
|
|
1948
1956
|
async delete(t) {
|
|
1949
1957
|
return this.client.request({
|
|
1950
1958
|
url: t.path,
|
|
@@ -1953,9 +1961,68 @@ class dr {
|
|
|
1953
1961
|
});
|
|
1954
1962
|
}
|
|
1955
1963
|
}
|
|
1956
|
-
class
|
|
1964
|
+
class pr {
|
|
1957
1965
|
constructor(t) {
|
|
1958
|
-
|
|
1966
|
+
C(this, "httpClient");
|
|
1967
|
+
C(this, "_debug");
|
|
1968
|
+
this.httpClient = t.httpClient, this._debug = t.debug;
|
|
1969
|
+
}
|
|
1970
|
+
async listUserInviteCodes(t) {
|
|
1971
|
+
return (await this.httpClient.get({
|
|
1972
|
+
path: "/invite_codes",
|
|
1973
|
+
queryParams: {
|
|
1974
|
+
user_identifier: t.user_identifier,
|
|
1975
|
+
user_identifier_type: t.user_identifier_type,
|
|
1976
|
+
page: t.page,
|
|
1977
|
+
page_size: t.page_size
|
|
1978
|
+
}
|
|
1979
|
+
})).data;
|
|
1980
|
+
}
|
|
1981
|
+
async generateInviteCodes(t) {
|
|
1982
|
+
return (await this.httpClient.post({
|
|
1983
|
+
path: "/invite_codes",
|
|
1984
|
+
queryParams: {
|
|
1985
|
+
user_identifier: t.user_identifier,
|
|
1986
|
+
user_identifier_type: t.user_identifier_type
|
|
1987
|
+
}
|
|
1988
|
+
})).data;
|
|
1989
|
+
}
|
|
1990
|
+
async getInvitationStatus(t) {
|
|
1991
|
+
return (await this.httpClient.get({
|
|
1992
|
+
path: "/invite_codes/status",
|
|
1993
|
+
queryParams: {
|
|
1994
|
+
user_identifier: t.user_identifier,
|
|
1995
|
+
user_identifier_type: t.user_identifier_type
|
|
1996
|
+
}
|
|
1997
|
+
})).data;
|
|
1998
|
+
}
|
|
1999
|
+
async checkInviteCode(t) {
|
|
2000
|
+
return (await this.httpClient.get({
|
|
2001
|
+
path: "/invite_codes/check",
|
|
2002
|
+
queryParams: {
|
|
2003
|
+
code: t.code
|
|
2004
|
+
}
|
|
2005
|
+
})).data;
|
|
2006
|
+
}
|
|
2007
|
+
async useInviteCode(t) {
|
|
2008
|
+
const { code: n, user_identifier: r, user_identifier_type: s, signature: o, signature_message: i } = t;
|
|
2009
|
+
await this.httpClient.patch({
|
|
2010
|
+
path: "/invite_codes/use",
|
|
2011
|
+
queryParams: {
|
|
2012
|
+
code: n,
|
|
2013
|
+
user_identifier: r,
|
|
2014
|
+
user_identifier_type: s
|
|
2015
|
+
},
|
|
2016
|
+
postData: {
|
|
2017
|
+
signature: o,
|
|
2018
|
+
signature_message: i
|
|
2019
|
+
}
|
|
2020
|
+
});
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
class mr {
|
|
2024
|
+
constructor(t) {
|
|
2025
|
+
C(this, "httpClient");
|
|
1959
2026
|
this.httpClient = t.httpClient;
|
|
1960
2027
|
}
|
|
1961
2028
|
async getPayoutsLeaderboard(t) {
|
|
@@ -1977,52 +2044,52 @@ class hr {
|
|
|
1977
2044
|
})).data;
|
|
1978
2045
|
}
|
|
1979
2046
|
}
|
|
1980
|
-
const
|
|
1981
|
-
class
|
|
2047
|
+
const z = "/payouts";
|
|
2048
|
+
class yr {
|
|
1982
2049
|
constructor(t) {
|
|
1983
|
-
|
|
1984
|
-
|
|
2050
|
+
C(this, "httpClient");
|
|
2051
|
+
C(this, "_debug");
|
|
1985
2052
|
this.httpClient = t.httpClient, this._debug = t.debug;
|
|
1986
2053
|
}
|
|
1987
2054
|
async getUserPayoutsByConversion(t) {
|
|
1988
2055
|
return (await this.httpClient.get({
|
|
1989
|
-
path:
|
|
2056
|
+
path: z,
|
|
1990
2057
|
queryParams: { ...t, type: "onchain-currency" }
|
|
1991
2058
|
})).data;
|
|
1992
2059
|
}
|
|
1993
2060
|
async getUserPointsByConversion(t) {
|
|
1994
2061
|
return (await this.httpClient.get({
|
|
1995
|
-
path:
|
|
2062
|
+
path: z,
|
|
1996
2063
|
queryParams: { ...t, type: "point" }
|
|
1997
2064
|
})).data;
|
|
1998
2065
|
}
|
|
1999
2066
|
async getUserPayoutMovements(t) {
|
|
2000
2067
|
return (await this.httpClient.get({
|
|
2001
|
-
path: `${
|
|
2068
|
+
path: `${z}/movements`,
|
|
2002
2069
|
queryParams: { ...t, type: "onchain-currency" }
|
|
2003
2070
|
})).data;
|
|
2004
2071
|
}
|
|
2005
2072
|
async getUserPointsMovements(t) {
|
|
2006
2073
|
return (await this.httpClient.get({
|
|
2007
|
-
path: `${
|
|
2074
|
+
path: `${z}/movements`,
|
|
2008
2075
|
queryParams: { ...t, type: "point" }
|
|
2009
2076
|
})).data;
|
|
2010
2077
|
}
|
|
2011
2078
|
async getVolumeLeaderboard(t) {
|
|
2012
2079
|
return (await this.httpClient.get({
|
|
2013
|
-
path: `${
|
|
2080
|
+
path: `${z}/leaderboard/volume`,
|
|
2014
2081
|
queryParams: { ...t }
|
|
2015
2082
|
})).data;
|
|
2016
2083
|
}
|
|
2017
2084
|
}
|
|
2018
|
-
const
|
|
2019
|
-
let
|
|
2085
|
+
const gr = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
2086
|
+
let wr = (e = 21) => {
|
|
2020
2087
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
2021
2088
|
for (; e--; )
|
|
2022
|
-
t +=
|
|
2089
|
+
t += gr[n[e] & 63];
|
|
2023
2090
|
return t;
|
|
2024
2091
|
};
|
|
2025
|
-
const
|
|
2092
|
+
const br = "fuul.tracking_id", Ae = () => Tr(br, () => wr()), Xe = () => q("af") || q("referrer"), Er = () => document.referrer, Sr = () => Ar(), Cr = () => q("category"), _r = () => q("title"), Rr = () => q("tag"), Tr = (e, t) => {
|
|
2026
2093
|
const n = localStorage.getItem(e);
|
|
2027
2094
|
if (n)
|
|
2028
2095
|
return n;
|
|
@@ -2030,31 +2097,31 @@ const gr = "fuul.tracking_id", Ae = () => Rr(gr, () => yr()), Qe = () => v("af")
|
|
|
2030
2097
|
const r = t();
|
|
2031
2098
|
return r ? localStorage.setItem(e, r) : localStorage.removeItem(e), r;
|
|
2032
2099
|
}
|
|
2033
|
-
},
|
|
2034
|
-
const e =
|
|
2100
|
+
}, q = (e) => new URLSearchParams(window.location.search).get(e), Ar = () => {
|
|
2101
|
+
const e = q("source");
|
|
2035
2102
|
if (e)
|
|
2036
2103
|
return e;
|
|
2037
|
-
},
|
|
2038
|
-
class
|
|
2104
|
+
}, Pr = "/user";
|
|
2105
|
+
class Or {
|
|
2039
2106
|
constructor(t) {
|
|
2040
|
-
|
|
2107
|
+
C(this, "httpClient");
|
|
2041
2108
|
this.httpClient = t.httpClient;
|
|
2042
2109
|
}
|
|
2043
2110
|
async getUserAffiliates(t) {
|
|
2044
|
-
return (await this.httpClient.get({ path:
|
|
2111
|
+
return (await this.httpClient.get({ path: Pr, queryParams: { ...t } })).data.affiliates;
|
|
2045
2112
|
}
|
|
2046
2113
|
}
|
|
2047
|
-
const
|
|
2048
|
-
let
|
|
2049
|
-
function
|
|
2050
|
-
|
|
2114
|
+
const Nr = "https://api.fuul.xyz/api/v1/";
|
|
2115
|
+
let D = !1, Ce = !1, Pe, L, Ct, _t, $, de, H, Rt, fe, K;
|
|
2116
|
+
function xr(e) {
|
|
2117
|
+
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"));
|
|
2051
2118
|
}
|
|
2052
|
-
function
|
|
2053
|
-
if (!
|
|
2119
|
+
function T() {
|
|
2120
|
+
if (!Ce)
|
|
2054
2121
|
throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
|
|
2055
2122
|
}
|
|
2056
|
-
async function
|
|
2057
|
-
|
|
2123
|
+
async function Ur(e, t) {
|
|
2124
|
+
T(), Oe(), Ne();
|
|
2058
2125
|
const n = {
|
|
2059
2126
|
name: e,
|
|
2060
2127
|
args: t ?? {},
|
|
@@ -2062,10 +2129,10 @@ async function Nr(e, t) {
|
|
|
2062
2129
|
tracking_id: Ae()
|
|
2063
2130
|
}
|
|
2064
2131
|
};
|
|
2065
|
-
await
|
|
2132
|
+
await de.sendEvent(n);
|
|
2066
2133
|
}
|
|
2067
|
-
async function
|
|
2068
|
-
|
|
2134
|
+
async function Lr(e, t) {
|
|
2135
|
+
T(), Oe(), Ne();
|
|
2069
2136
|
const n = {
|
|
2070
2137
|
name: "pageview",
|
|
2071
2138
|
args: {
|
|
@@ -2074,19 +2141,19 @@ async function xr(e, t) {
|
|
|
2074
2141
|
},
|
|
2075
2142
|
metadata: {
|
|
2076
2143
|
tracking_id: Ae(),
|
|
2077
|
-
referrer_url:
|
|
2078
|
-
source:
|
|
2079
|
-
affiliate_id:
|
|
2080
|
-
referrer:
|
|
2081
|
-
category:
|
|
2082
|
-
title:
|
|
2083
|
-
tag:
|
|
2144
|
+
referrer_url: Er(),
|
|
2145
|
+
source: Sr(),
|
|
2146
|
+
affiliate_id: Xe() ?? void 0,
|
|
2147
|
+
referrer: Xe() ?? void 0,
|
|
2148
|
+
category: Cr() ?? void 0,
|
|
2149
|
+
title: _r() ?? void 0,
|
|
2150
|
+
tag: Rr() ?? void 0
|
|
2084
2151
|
}
|
|
2085
2152
|
};
|
|
2086
|
-
await
|
|
2153
|
+
await de.sendEvent(n, t);
|
|
2087
2154
|
}
|
|
2088
|
-
async function
|
|
2089
|
-
|
|
2155
|
+
async function Fr(e, t) {
|
|
2156
|
+
T(), Oe(), Ne();
|
|
2090
2157
|
const n = {
|
|
2091
2158
|
name: "connect_wallet",
|
|
2092
2159
|
user: {
|
|
@@ -2101,22 +2168,36 @@ async function Ur(e, t) {
|
|
|
2101
2168
|
tracking_id: Ae()
|
|
2102
2169
|
}
|
|
2103
2170
|
};
|
|
2104
|
-
e != null && e.signature && (n.signature = e == null ? void 0 : e.signature, n.signature_message = e == null ? void 0 : e.message), e != null && e.signaturePublicKey && (n.signature_public_key = e.signaturePublicKey), e != null && e.accountChainId && (n.account_chain_id = e.accountChainId), await
|
|
2105
|
-
}
|
|
2106
|
-
async function
|
|
2107
|
-
|
|
2171
|
+
e != null && e.signature && (n.signature = e == null ? void 0 : e.signature, n.signature_message = e == null ? void 0 : e.message), e != null && e.signaturePublicKey && (n.signature_public_key = e.signaturePublicKey), e != null && e.accountChainId && (n.account_chain_id = e.accountChainId), await de.sendEvent(n, t);
|
|
2172
|
+
}
|
|
2173
|
+
async function Dr(e) {
|
|
2174
|
+
T(), await $.create(
|
|
2175
|
+
e.userIdentifier,
|
|
2176
|
+
e.identifierType,
|
|
2177
|
+
e.code,
|
|
2178
|
+
e.signature,
|
|
2179
|
+
e.signaturePublicKey,
|
|
2180
|
+
e.accountChainId
|
|
2181
|
+
);
|
|
2108
2182
|
}
|
|
2109
|
-
async function
|
|
2110
|
-
|
|
2183
|
+
async function kr(e) {
|
|
2184
|
+
T(), await $.update(
|
|
2185
|
+
e.userIdentifier,
|
|
2186
|
+
e.identifierType,
|
|
2187
|
+
e.code,
|
|
2188
|
+
e.signature,
|
|
2189
|
+
e.signaturePublicKey,
|
|
2190
|
+
e.accountChainId
|
|
2191
|
+
);
|
|
2111
2192
|
}
|
|
2112
|
-
async function
|
|
2113
|
-
return
|
|
2193
|
+
async function vr(e, t) {
|
|
2194
|
+
return T(), await $.getCode(e, t);
|
|
2114
2195
|
}
|
|
2115
|
-
async function
|
|
2116
|
-
return
|
|
2196
|
+
async function Ir(e) {
|
|
2197
|
+
return T(), await $.isCodeFree(e);
|
|
2117
2198
|
}
|
|
2118
2199
|
async function Br(e, t, n, r) {
|
|
2119
|
-
|
|
2200
|
+
T();
|
|
2120
2201
|
const s = await $.getCode(t, n), o = new URLSearchParams({
|
|
2121
2202
|
af: s ?? t
|
|
2122
2203
|
});
|
|
@@ -2125,84 +2206,104 @@ async function Br(e, t, n, r) {
|
|
|
2125
2206
|
function qr(e) {
|
|
2126
2207
|
return fe.getPayoutsLeaderboard(e);
|
|
2127
2208
|
}
|
|
2128
|
-
function
|
|
2209
|
+
function jr(e) {
|
|
2129
2210
|
return fe.getPointsLeaderboard(e);
|
|
2130
2211
|
}
|
|
2131
|
-
function
|
|
2212
|
+
function Mr(e) {
|
|
2132
2213
|
return fe.getReferredUsersLeaderboard(e);
|
|
2133
2214
|
}
|
|
2134
|
-
function
|
|
2215
|
+
function $r(e) {
|
|
2135
2216
|
return H.getVolumeLeaderboard(e);
|
|
2136
2217
|
}
|
|
2137
|
-
function
|
|
2218
|
+
function Hr(e) {
|
|
2138
2219
|
return H.getUserPayoutsByConversion(e);
|
|
2139
2220
|
}
|
|
2140
|
-
function
|
|
2221
|
+
function Kr(e) {
|
|
2141
2222
|
return H.getUserPointsByConversion(e);
|
|
2142
2223
|
}
|
|
2143
|
-
function
|
|
2224
|
+
function Vr(e) {
|
|
2144
2225
|
return H.getUserPayoutMovements(e);
|
|
2145
2226
|
}
|
|
2146
|
-
function
|
|
2227
|
+
function zr(e) {
|
|
2147
2228
|
return H.getUserPointsMovements(e);
|
|
2148
2229
|
}
|
|
2149
|
-
async function
|
|
2150
|
-
return
|
|
2230
|
+
async function Jr(e) {
|
|
2231
|
+
return T(), Ct.getAll(e);
|
|
2232
|
+
}
|
|
2233
|
+
async function Wr(e) {
|
|
2234
|
+
return T(), _t.getUserAffiliates(e);
|
|
2151
2235
|
}
|
|
2152
|
-
async function
|
|
2153
|
-
return
|
|
2236
|
+
async function Qr(e) {
|
|
2237
|
+
return T(), Rt.getUserAudiences(e);
|
|
2154
2238
|
}
|
|
2155
|
-
async function
|
|
2156
|
-
return
|
|
2239
|
+
async function Xr(e) {
|
|
2240
|
+
return T(), K.listUserInviteCodes(e);
|
|
2241
|
+
}
|
|
2242
|
+
async function Yr(e) {
|
|
2243
|
+
return T(), K.generateInviteCodes(e);
|
|
2244
|
+
}
|
|
2245
|
+
async function Gr(e) {
|
|
2246
|
+
return T(), K.getInvitationStatus(e);
|
|
2247
|
+
}
|
|
2248
|
+
async function Zr(e) {
|
|
2249
|
+
return T(), K.checkInviteCode(e);
|
|
2250
|
+
}
|
|
2251
|
+
async function es(e) {
|
|
2252
|
+
return T(), K.useInviteCode(e);
|
|
2157
2253
|
}
|
|
2158
2254
|
function Oe() {
|
|
2159
2255
|
if (typeof window > "u" || typeof document > "u")
|
|
2160
2256
|
throw new Error("Fuul SDK: Browser context required");
|
|
2161
2257
|
}
|
|
2162
|
-
function
|
|
2258
|
+
function Ne() {
|
|
2163
2259
|
if (navigator.webdriver)
|
|
2164
2260
|
throw new Error("Fuul SDK: Error");
|
|
2165
2261
|
}
|
|
2166
|
-
function
|
|
2167
|
-
if (!
|
|
2262
|
+
function ts() {
|
|
2263
|
+
if (!Pe)
|
|
2168
2264
|
throw new Error("Fuul SDK: Invalid API key");
|
|
2169
2265
|
}
|
|
2170
|
-
function
|
|
2171
|
-
return new
|
|
2266
|
+
function ns(e, t) {
|
|
2267
|
+
return new hr({
|
|
2172
2268
|
baseURL: e,
|
|
2173
2269
|
timeout: 3e4,
|
|
2174
|
-
apiKey:
|
|
2270
|
+
apiKey: Pe,
|
|
2175
2271
|
queryParams: t
|
|
2176
2272
|
});
|
|
2177
2273
|
}
|
|
2178
|
-
const
|
|
2179
|
-
init:
|
|
2180
|
-
sendEvent:
|
|
2181
|
-
sendPageview:
|
|
2182
|
-
identifyUser:
|
|
2274
|
+
const Cs = {
|
|
2275
|
+
init: xr,
|
|
2276
|
+
sendEvent: Ur,
|
|
2277
|
+
sendPageview: Lr,
|
|
2278
|
+
identifyUser: Fr,
|
|
2183
2279
|
generateTrackingLink: Br,
|
|
2184
|
-
getConversions:
|
|
2185
|
-
createAffiliateCode:
|
|
2186
|
-
updateAffiliateCode:
|
|
2187
|
-
getAffiliateCode:
|
|
2188
|
-
isAffiliateCodeFree:
|
|
2280
|
+
getConversions: Jr,
|
|
2281
|
+
createAffiliateCode: Dr,
|
|
2282
|
+
updateAffiliateCode: kr,
|
|
2283
|
+
getAffiliateCode: vr,
|
|
2284
|
+
isAffiliateCodeFree: Ir,
|
|
2189
2285
|
getPayoutsLeaderboard: qr,
|
|
2190
|
-
getPointsLeaderboard:
|
|
2191
|
-
getReferredUsersLeaderboard:
|
|
2192
|
-
getUserAudiences:
|
|
2193
|
-
getUserPayoutsByConversion:
|
|
2194
|
-
getUserPointsByConversion:
|
|
2195
|
-
getUserPointsMovements:
|
|
2196
|
-
getUserPayoutMovements:
|
|
2197
|
-
getUserAffiliates:
|
|
2198
|
-
getVolumeLeaderboard:
|
|
2286
|
+
getPointsLeaderboard: jr,
|
|
2287
|
+
getReferredUsersLeaderboard: Mr,
|
|
2288
|
+
getUserAudiences: Qr,
|
|
2289
|
+
getUserPayoutsByConversion: Hr,
|
|
2290
|
+
getUserPointsByConversion: Kr,
|
|
2291
|
+
getUserPointsMovements: zr,
|
|
2292
|
+
getUserPayoutMovements: Vr,
|
|
2293
|
+
getUserAffiliates: Wr,
|
|
2294
|
+
getVolumeLeaderboard: $r,
|
|
2295
|
+
listUserInviteCodes: Xr,
|
|
2296
|
+
generateInviteCodes: Yr,
|
|
2297
|
+
getInvitationStatus: Gr,
|
|
2298
|
+
checkInviteCode: Zr,
|
|
2299
|
+
useInviteCode: es
|
|
2199
2300
|
};
|
|
2200
|
-
var
|
|
2301
|
+
var rs = /* @__PURE__ */ ((e) => (e.EvmAddress = "evm_address", e.SolanaAddress = "solana_address", e.Email = "email", e))(rs || {});
|
|
2201
2302
|
export {
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2303
|
+
Ve as AddressInUseError,
|
|
2304
|
+
ze as CodeInUseError,
|
|
2305
|
+
Cs as Fuul,
|
|
2306
|
+
Je as InvalidSignatureError,
|
|
2307
|
+
rs as UserIdentifierType,
|
|
2308
|
+
Ke as ValidationError
|
|
2208
2309
|
};
|