@fuul/sdk 3.2.2 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,47 +1,47 @@
1
- var We = Object.defineProperty;
2
- var Ge = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var S = (e, t, n) => (Ge(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- function Ae(e, t) {
1
+ var Ze = Object.defineProperty;
2
+ var et = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var S = (e, t, n) => (et(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ function Ne(e, t) {
5
5
  return function() {
6
6
  return e.apply(t, arguments);
7
7
  };
8
8
  }
9
- const { toString: Re } = Object.prototype, { getPrototypeOf: re } = Object, se = ((e) => (t) => {
10
- const n = Re.call(t);
9
+ const { toString: _e } = Object.prototype, { getPrototypeOf: oe } = Object, ie = ((e) => (t) => {
10
+ const n = _e.call(t);
11
11
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
12
- })(/* @__PURE__ */ Object.create(null)), O = (e) => (e = e.toLowerCase(), (t) => se(t) === e), V = (e) => (t) => typeof t === e, { isArray: x } = Array, U = V("undefined");
13
- function Xe(e) {
14
- return e !== null && !U(e) && e.constructor !== null && !U(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
12
+ })(/* @__PURE__ */ Object.create(null)), O = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), v = (e) => (t) => typeof t === e, { isArray: F } = Array, B = v("undefined");
13
+ function tt(e) {
14
+ return e !== null && !B(e) && e.constructor !== null && !B(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
15
15
  }
16
- const Oe = O("ArrayBuffer");
17
- function Ye(e) {
16
+ const xe = O("ArrayBuffer");
17
+ function nt(e) {
18
18
  let t;
19
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Oe(e.buffer), t;
19
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && xe(e.buffer), t;
20
20
  }
21
- const Qe = V("string"), P = V("function"), Te = V("number"), oe = (e) => e !== null && typeof e == "object", Ze = (e) => e === !0 || e === !1, j = (e) => {
22
- if (se(e) !== "object")
21
+ const rt = v("string"), P = v("function"), Fe = v("number"), ae = (e) => e !== null && typeof e == "object", st = (e) => e === !0 || e === !1, H = (e) => {
22
+ if (ie(e) !== "object")
23
23
  return !1;
24
- const t = re(e);
24
+ const t = oe(e);
25
25
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
26
- }, et = O("Date"), tt = O("File"), nt = O("Blob"), rt = O("FileList"), st = (e) => oe(e) && P(e.pipe), ot = (e) => {
26
+ }, ot = O("Date"), it = O("File"), at = O("Blob"), ct = O("FileList"), ut = (e) => ae(e) && P(e.pipe), lt = (e) => {
27
27
  const t = "[object FormData]";
28
- return e && (typeof FormData == "function" && e instanceof FormData || Re.call(e) === t || P(e.toString) && e.toString() === t);
29
- }, it = O("URLSearchParams"), at = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
30
- function L(e, t, { allOwnKeys: n = !1 } = {}) {
28
+ return e && (typeof FormData == "function" && e instanceof FormData || _e.call(e) === t || P(e.toString) && e.toString() === t);
29
+ }, ft = O("URLSearchParams"), dt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
30
+ function I(e, t, { allOwnKeys: n = !1 } = {}) {
31
31
  if (e === null || typeof e > "u")
32
32
  return;
33
33
  let r, s;
34
- if (typeof e != "object" && (e = [e]), x(e))
34
+ if (typeof e != "object" && (e = [e]), F(e))
35
35
  for (r = 0, s = e.length; r < s; r++)
36
36
  t.call(null, e[r], r, e);
37
37
  else {
38
- const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
38
+ const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
39
39
  let c;
40
- for (r = 0; r < i; r++)
41
- c = o[r], t.call(null, e[c], c, e);
40
+ for (r = 0; r < o; r++)
41
+ c = i[r], t.call(null, e[c], c, e);
42
42
  }
43
43
  }
44
- function Ce(e, t) {
44
+ function De(e, t) {
45
45
  t = t.toLowerCase();
46
46
  const n = Object.keys(e);
47
47
  let r = n.length, s;
@@ -50,74 +50,74 @@ function Ce(e, t) {
50
50
  return s;
51
51
  return null;
52
52
  }
53
- const Pe = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), _e = (e) => !U(e) && e !== Pe;
54
- function Q() {
55
- const { caseless: e } = _e(this) && this || {}, t = {}, n = (r, s) => {
56
- const o = e && Ce(t, s) || s;
57
- j(t[o]) && j(r) ? t[o] = Q(t[o], r) : j(r) ? t[o] = Q({}, r) : x(r) ? t[o] = r.slice() : t[o] = r;
53
+ const Ue = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Le = (e) => !B(e) && e !== Ue;
54
+ function ee() {
55
+ const { caseless: e } = Le(this) && this || {}, t = {}, n = (r, s) => {
56
+ const i = e && De(t, s) || s;
57
+ H(t[i]) && H(r) ? t[i] = ee(t[i], r) : H(r) ? t[i] = ee({}, r) : F(r) ? t[i] = r.slice() : t[i] = r;
58
58
  };
59
59
  for (let r = 0, s = arguments.length; r < s; r++)
60
- arguments[r] && L(arguments[r], n);
60
+ arguments[r] && I(arguments[r], n);
61
61
  return t;
62
62
  }
63
- const ct = (e, t, n, { allOwnKeys: r } = {}) => (L(t, (s, o) => {
64
- n && P(s) ? e[o] = Ae(s, n) : e[o] = s;
65
- }, { allOwnKeys: r }), e), ut = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), lt = (e, t, n, r) => {
63
+ const ht = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, i) => {
64
+ n && P(s) ? e[i] = Ne(s, n) : e[i] = s;
65
+ }, { allOwnKeys: r }), e), pt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), mt = (e, t, n, r) => {
66
66
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
67
67
  value: t.prototype
68
68
  }), n && Object.assign(e.prototype, n);
69
- }, ft = (e, t, n, r) => {
70
- let s, o, i;
69
+ }, yt = (e, t, n, r) => {
70
+ let s, i, o;
71
71
  const c = {};
72
72
  if (t = t || {}, e == null)
73
73
  return t;
74
74
  do {
75
- for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
76
- i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
77
- e = n !== !1 && re(e);
75
+ for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
76
+ o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
77
+ e = n !== !1 && oe(e);
78
78
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
79
79
  return t;
80
- }, dt = (e, t, n) => {
80
+ }, wt = (e, t, n) => {
81
81
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
82
82
  const r = e.indexOf(t, n);
83
83
  return r !== -1 && r === n;
84
- }, pt = (e) => {
84
+ }, Et = (e) => {
85
85
  if (!e)
86
86
  return null;
87
- if (x(e))
87
+ if (F(e))
88
88
  return e;
89
89
  let t = e.length;
90
- if (!Te(t))
90
+ if (!Fe(t))
91
91
  return null;
92
92
  const n = new Array(t);
93
93
  for (; t-- > 0; )
94
94
  n[t] = e[t];
95
95
  return n;
96
- }, ht = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && re(Uint8Array)), mt = (e, t) => {
96
+ }, gt = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && oe(Uint8Array)), St = (e, t) => {
97
97
  const r = (e && e[Symbol.iterator]).call(e);
98
98
  let s;
99
99
  for (; (s = r.next()) && !s.done; ) {
100
- const o = s.value;
101
- t.call(e, o[0], o[1]);
100
+ const i = s.value;
101
+ t.call(e, i[0], i[1]);
102
102
  }
103
- }, yt = (e, t) => {
103
+ }, bt = (e, t) => {
104
104
  let n;
105
105
  const r = [];
106
106
  for (; (n = e.exec(t)) !== null; )
107
107
  r.push(n);
108
108
  return r;
109
- }, Et = O("HTMLFormElement"), wt = (e) => e.toLowerCase().replace(
109
+ }, At = O("HTMLFormElement"), Rt = (e) => e.toLowerCase().replace(
110
110
  /[-_\s]([a-z\d])(\w*)/g,
111
111
  function(n, r, s) {
112
112
  return r.toUpperCase() + s;
113
113
  }
114
- ), fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), gt = O("RegExp"), Ne = (e, t) => {
114
+ ), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ot = O("RegExp"), Be = (e, t) => {
115
115
  const n = Object.getOwnPropertyDescriptors(e), r = {};
116
- L(n, (s, o) => {
117
- t(s, o, e) !== !1 && (r[o] = s);
116
+ I(n, (s, i) => {
117
+ t(s, i, e) !== !1 && (r[i] = s);
118
118
  }), Object.defineProperties(e, r);
119
- }, St = (e) => {
120
- Ne(e, (t, n) => {
119
+ }, Ct = (e) => {
120
+ Be(e, (t, n) => {
121
121
  if (P(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
122
122
  return !1;
123
123
  const r = e[n];
@@ -131,96 +131,96 @@ const ct = (e, t, n, { allOwnKeys: r } = {}) => (L(t, (s, o) => {
131
131
  });
132
132
  }
133
133
  });
134
- }, bt = (e, t) => {
134
+ }, Tt = (e, t) => {
135
135
  const n = {}, r = (s) => {
136
- s.forEach((o) => {
137
- n[o] = !0;
136
+ s.forEach((i) => {
137
+ n[i] = !0;
138
138
  });
139
139
  };
140
- return x(e) ? r(e) : r(String(e).split(t)), n;
141
- }, At = () => {
142
- }, Rt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), W = "abcdefghijklmnopqrstuvwxyz", de = "0123456789", xe = {
143
- DIGIT: de,
144
- ALPHA: W,
145
- ALPHA_DIGIT: W + W.toUpperCase() + de
146
- }, Ot = (e = 16, t = xe.ALPHA_DIGIT) => {
140
+ return F(e) ? r(e) : r(String(e).split(t)), n;
141
+ }, Pt = () => {
142
+ }, Nt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), G = "abcdefghijklmnopqrstuvwxyz", pe = "0123456789", Ie = {
143
+ DIGIT: pe,
144
+ ALPHA: G,
145
+ ALPHA_DIGIT: G + G.toUpperCase() + pe
146
+ }, _t = (e = 16, t = Ie.ALPHA_DIGIT) => {
147
147
  let n = "";
148
148
  const { length: r } = t;
149
149
  for (; e--; )
150
150
  n += t[Math.random() * r | 0];
151
151
  return n;
152
152
  };
153
- function Tt(e) {
153
+ function xt(e) {
154
154
  return !!(e && P(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
155
155
  }
156
- const Ct = (e) => {
156
+ const Ft = (e) => {
157
157
  const t = new Array(10), n = (r, s) => {
158
- if (oe(r)) {
158
+ if (ae(r)) {
159
159
  if (t.indexOf(r) >= 0)
160
160
  return;
161
161
  if (!("toJSON" in r)) {
162
162
  t[s] = r;
163
- const o = x(r) ? [] : {};
164
- return L(r, (i, c) => {
165
- const f = n(i, s + 1);
166
- !U(f) && (o[c] = f);
167
- }), t[s] = void 0, o;
163
+ const i = F(r) ? [] : {};
164
+ return I(r, (o, c) => {
165
+ const d = n(o, s + 1);
166
+ !B(d) && (i[c] = d);
167
+ }), t[s] = void 0, i;
168
168
  }
169
169
  }
170
170
  return r;
171
171
  };
172
172
  return n(e, 0);
173
173
  }, a = {
174
- isArray: x,
175
- isArrayBuffer: Oe,
176
- isBuffer: Xe,
177
- isFormData: ot,
178
- isArrayBufferView: Ye,
179
- isString: Qe,
180
- isNumber: Te,
181
- isBoolean: Ze,
182
- isObject: oe,
183
- isPlainObject: j,
184
- isUndefined: U,
185
- isDate: et,
186
- isFile: tt,
187
- isBlob: nt,
188
- isRegExp: gt,
174
+ isArray: F,
175
+ isArrayBuffer: xe,
176
+ isBuffer: tt,
177
+ isFormData: lt,
178
+ isArrayBufferView: nt,
179
+ isString: rt,
180
+ isNumber: Fe,
181
+ isBoolean: st,
182
+ isObject: ae,
183
+ isPlainObject: H,
184
+ isUndefined: B,
185
+ isDate: ot,
186
+ isFile: it,
187
+ isBlob: at,
188
+ isRegExp: Ot,
189
189
  isFunction: P,
190
- isStream: st,
191
- isURLSearchParams: it,
192
- isTypedArray: ht,
193
- isFileList: rt,
194
- forEach: L,
195
- merge: Q,
196
- extend: ct,
197
- trim: at,
198
- stripBOM: ut,
199
- inherits: lt,
200
- toFlatObject: ft,
201
- kindOf: se,
190
+ isStream: ut,
191
+ isURLSearchParams: ft,
192
+ isTypedArray: gt,
193
+ isFileList: ct,
194
+ forEach: I,
195
+ merge: ee,
196
+ extend: ht,
197
+ trim: dt,
198
+ stripBOM: pt,
199
+ inherits: mt,
200
+ toFlatObject: yt,
201
+ kindOf: ie,
202
202
  kindOfTest: O,
203
- endsWith: dt,
204
- toArray: pt,
205
- forEachEntry: mt,
206
- matchAll: yt,
207
- isHTMLForm: Et,
208
- hasOwnProperty: fe,
209
- hasOwnProp: fe,
203
+ endsWith: wt,
204
+ toArray: Et,
205
+ forEachEntry: St,
206
+ matchAll: bt,
207
+ isHTMLForm: At,
208
+ hasOwnProperty: he,
209
+ hasOwnProp: he,
210
210
  // an alias to avoid ESLint no-prototype-builtins detection
211
- reduceDescriptors: Ne,
212
- freezeMethods: St,
213
- toObjectSet: bt,
214
- toCamelCase: wt,
215
- noop: At,
216
- toFiniteNumber: Rt,
217
- findKey: Ce,
218
- global: Pe,
219
- isContextDefined: _e,
220
- ALPHABET: xe,
221
- generateString: Ot,
222
- isSpecCompliantForm: Tt,
223
- toJSONObject: Ct
211
+ reduceDescriptors: Be,
212
+ freezeMethods: Ct,
213
+ toObjectSet: Tt,
214
+ toCamelCase: Rt,
215
+ noop: Pt,
216
+ toFiniteNumber: Nt,
217
+ findKey: De,
218
+ global: Ue,
219
+ isContextDefined: Le,
220
+ ALPHABET: Ie,
221
+ generateString: _t,
222
+ isSpecCompliantForm: xt,
223
+ toJSONObject: Ft
224
224
  };
225
225
  function m(e, t, n, r, s) {
226
226
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
@@ -246,7 +246,7 @@ a.inherits(m, Error, {
246
246
  };
247
247
  }
248
248
  });
249
- const De = m.prototype, Fe = {};
249
+ const ke = m.prototype, je = {};
250
250
  [
251
251
  "ERR_BAD_OPTION_VALUE",
252
252
  "ERR_BAD_OPTION",
@@ -262,97 +262,97 @@ const De = m.prototype, Fe = {};
262
262
  "ERR_INVALID_URL"
263
263
  // eslint-disable-next-line func-names
264
264
  ].forEach((e) => {
265
- Fe[e] = { value: e };
265
+ je[e] = { value: e };
266
266
  });
267
- Object.defineProperties(m, Fe);
268
- Object.defineProperty(De, "isAxiosError", { value: !0 });
269
- m.from = (e, t, n, r, s, o) => {
270
- const i = Object.create(De);
271
- return a.toFlatObject(e, i, function(f) {
272
- return f !== Error.prototype;
273
- }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
267
+ Object.defineProperties(m, je);
268
+ Object.defineProperty(ke, "isAxiosError", { value: !0 });
269
+ m.from = (e, t, n, r, s, i) => {
270
+ const o = Object.create(ke);
271
+ return a.toFlatObject(e, o, function(d) {
272
+ return d !== Error.prototype;
273
+ }, (c) => c !== "isAxiosError"), m.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
274
274
  };
275
- const Pt = null;
276
- function Z(e) {
275
+ const Dt = null;
276
+ function te(e) {
277
277
  return a.isPlainObject(e) || a.isArray(e);
278
278
  }
279
- function Ue(e) {
279
+ function qe(e) {
280
280
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
281
281
  }
282
- function pe(e, t, n) {
283
- return e ? e.concat(t).map(function(s, o) {
284
- return s = Ue(s), !n && o ? "[" + s + "]" : s;
282
+ function me(e, t, n) {
283
+ return e ? e.concat(t).map(function(s, i) {
284
+ return s = qe(s), !n && i ? "[" + s + "]" : s;
285
285
  }).join(n ? "." : "") : t;
286
286
  }
287
- function _t(e) {
288
- return a.isArray(e) && !e.some(Z);
287
+ function Ut(e) {
288
+ return a.isArray(e) && !e.some(te);
289
289
  }
290
- const Nt = a.toFlatObject(a, {}, null, function(t) {
290
+ const Lt = a.toFlatObject(a, {}, null, function(t) {
291
291
  return /^is[A-Z]/.test(t);
292
292
  });
293
- function K(e, t, n) {
293
+ function J(e, t, n) {
294
294
  if (!a.isObject(e))
295
295
  throw new TypeError("target must be an object");
296
296
  t = t || new FormData(), n = a.toFlatObject(n, {
297
297
  metaTokens: !0,
298
298
  dots: !1,
299
299
  indexes: !1
300
- }, !1, function(h, A) {
301
- return !a.isUndefined(A[h]);
300
+ }, !1, function(p, A) {
301
+ return !a.isUndefined(A[p]);
302
302
  });
303
- const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
303
+ const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
304
304
  if (!a.isFunction(s))
305
305
  throw new TypeError("visitor must be a function");
306
- function u(d) {
307
- if (d === null)
306
+ function u(f) {
307
+ if (f === null)
308
308
  return "";
309
- if (a.isDate(d))
310
- return d.toISOString();
311
- if (!f && a.isBlob(d))
309
+ if (a.isDate(f))
310
+ return f.toISOString();
311
+ if (!d && a.isBlob(f))
312
312
  throw new m("Blob is not supported. Use a Buffer instead.");
313
- return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
314
- }
315
- function l(d, h, A) {
316
- let g = d;
317
- if (d && !A && typeof d == "object") {
318
- if (a.endsWith(h, "{}"))
319
- h = r ? h : h.slice(0, -2), d = JSON.stringify(d);
320
- else if (a.isArray(d) && _t(d) || (a.isFileList(d) || a.endsWith(h, "[]")) && (g = a.toArray(d)))
321
- return h = Ue(h), g.forEach(function(I, Me) {
322
- !(a.isUndefined(I) || I === null) && t.append(
313
+ return a.isArrayBuffer(f) || a.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
314
+ }
315
+ function l(f, p, A) {
316
+ let g = f;
317
+ if (f && !A && typeof f == "object") {
318
+ if (a.endsWith(p, "{}"))
319
+ p = r ? p : p.slice(0, -2), f = JSON.stringify(f);
320
+ else if (a.isArray(f) && Ut(f) || (a.isFileList(f) || a.endsWith(p, "[]")) && (g = a.toArray(f)))
321
+ return p = qe(p), g.forEach(function(j, Qe) {
322
+ !(a.isUndefined(j) || j === null) && t.append(
323
323
  // eslint-disable-next-line no-nested-ternary
324
- i === !0 ? pe([h], Me, o) : i === null ? h : h + "[]",
325
- u(I)
324
+ o === !0 ? me([p], Qe, i) : o === null ? p : p + "[]",
325
+ u(j)
326
326
  );
327
327
  }), !1;
328
328
  }
329
- return Z(d) ? !0 : (t.append(pe(A, h, o), u(d)), !1);
329
+ return te(f) ? !0 : (t.append(me(A, p, i), u(f)), !1);
330
330
  }
331
- const p = [], w = Object.assign(Nt, {
331
+ const h = [], E = Object.assign(Lt, {
332
332
  defaultVisitor: l,
333
333
  convertValue: u,
334
- isVisitable: Z
334
+ isVisitable: te
335
335
  });
336
- function y(d, h) {
337
- if (!a.isUndefined(d)) {
338
- if (p.indexOf(d) !== -1)
339
- throw Error("Circular reference detected in " + h.join("."));
340
- p.push(d), a.forEach(d, function(g, _) {
336
+ function y(f, p) {
337
+ if (!a.isUndefined(f)) {
338
+ if (h.indexOf(f) !== -1)
339
+ throw Error("Circular reference detected in " + p.join("."));
340
+ h.push(f), a.forEach(f, function(g, _) {
341
341
  (!(a.isUndefined(g) || g === null) && s.call(
342
342
  t,
343
343
  g,
344
344
  a.isString(_) ? _.trim() : _,
345
- h,
346
- w
347
- )) === !0 && y(g, h ? h.concat(_) : [_]);
348
- }), p.pop();
345
+ p,
346
+ E
347
+ )) === !0 && y(g, p ? p.concat(_) : [_]);
348
+ }), h.pop();
349
349
  }
350
350
  }
351
351
  if (!a.isObject(e))
352
352
  throw new TypeError("data must be an object");
353
353
  return y(e), t;
354
354
  }
355
- function he(e) {
355
+ function ye(e) {
356
356
  const t = {
357
357
  "!": "%21",
358
358
  "'": "%27",
@@ -366,36 +366,36 @@ function he(e) {
366
366
  return t[r];
367
367
  });
368
368
  }
369
- function ie(e, t) {
370
- this._pairs = [], e && K(e, this, t);
369
+ function ce(e, t) {
370
+ this._pairs = [], e && J(e, this, t);
371
371
  }
372
- const Le = ie.prototype;
373
- Le.append = function(t, n) {
372
+ const He = ce.prototype;
373
+ He.append = function(t, n) {
374
374
  this._pairs.push([t, n]);
375
375
  };
376
- Le.toString = function(t) {
376
+ He.toString = function(t) {
377
377
  const n = t ? function(r) {
378
- return t.call(this, r, he);
379
- } : he;
378
+ return t.call(this, r, ye);
379
+ } : ye;
380
380
  return this._pairs.map(function(s) {
381
381
  return n(s[0]) + "=" + n(s[1]);
382
382
  }, "").join("&");
383
383
  };
384
- function xt(e) {
384
+ function Bt(e) {
385
385
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
386
386
  }
387
- function Be(e, t, n) {
387
+ function $e(e, t, n) {
388
388
  if (!t)
389
389
  return e;
390
- const r = n && n.encode || xt, s = n && n.serialize;
391
- let o;
392
- if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ie(t, n).toString(r), o) {
393
- const i = e.indexOf("#");
394
- i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
390
+ const r = n && n.encode || Bt, s = n && n.serialize;
391
+ let i;
392
+ if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new ce(t, n).toString(r), i) {
393
+ const o = e.indexOf("#");
394
+ o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
395
395
  }
396
396
  return e;
397
397
  }
398
- class Dt {
398
+ class It {
399
399
  constructor() {
400
400
  this.handlers = [];
401
401
  }
@@ -449,62 +449,62 @@ class Dt {
449
449
  });
450
450
  }
451
451
  }
452
- const me = Dt, Ie = {
452
+ const we = It, ze = {
453
453
  silentJSONParsing: !0,
454
454
  forcedJSONParsing: !0,
455
455
  clarifyTimeoutError: !1
456
- }, Ft = typeof URLSearchParams < "u" ? URLSearchParams : ie, Ut = typeof FormData < "u" ? FormData : null, Lt = typeof Blob < "u" ? Blob : null, Bt = (() => {
456
+ }, kt = typeof URLSearchParams < "u" ? URLSearchParams : ce, jt = typeof FormData < "u" ? FormData : null, qt = typeof Blob < "u" ? Blob : null, Ht = (() => {
457
457
  let e;
458
458
  return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
459
- })(), It = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
459
+ })(), $t = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
460
460
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), b = {
461
461
  isBrowser: !0,
462
462
  classes: {
463
- URLSearchParams: Ft,
464
- FormData: Ut,
465
- Blob: Lt
463
+ URLSearchParams: kt,
464
+ FormData: jt,
465
+ Blob: qt
466
466
  },
467
- isStandardBrowserEnv: Bt,
468
- isStandardBrowserWebWorkerEnv: It,
467
+ isStandardBrowserEnv: Ht,
468
+ isStandardBrowserWebWorkerEnv: $t,
469
469
  protocols: ["http", "https", "file", "blob", "url", "data"]
470
470
  };
471
- function kt(e, t) {
472
- return K(e, new b.classes.URLSearchParams(), Object.assign({
473
- visitor: function(n, r, s, o) {
474
- return b.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
471
+ function zt(e, t) {
472
+ return J(e, new b.classes.URLSearchParams(), Object.assign({
473
+ visitor: function(n, r, s, i) {
474
+ return b.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
475
475
  }
476
476
  }, t));
477
477
  }
478
- function jt(e) {
478
+ function Vt(e) {
479
479
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
480
480
  }
481
- function qt(e) {
481
+ function Kt(e) {
482
482
  const t = {}, n = Object.keys(e);
483
483
  let r;
484
484
  const s = n.length;
485
- let o;
485
+ let i;
486
486
  for (r = 0; r < s; r++)
487
- o = n[r], t[o] = e[o];
487
+ i = n[r], t[i] = e[i];
488
488
  return t;
489
489
  }
490
- function ke(e) {
491
- function t(n, r, s, o) {
492
- let i = n[o++];
493
- const c = Number.isFinite(+i), f = o >= n.length;
494
- return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = qt(s[i])), !c);
490
+ function Ve(e) {
491
+ function t(n, r, s, i) {
492
+ let o = n[i++];
493
+ const c = Number.isFinite(+o), d = i >= n.length;
494
+ return o = !o && a.isArray(s) ? s.length : o, d ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = Kt(s[o])), !c);
495
495
  }
496
496
  if (a.isFormData(e) && a.isFunction(e.entries)) {
497
497
  const n = {};
498
498
  return a.forEachEntry(e, (r, s) => {
499
- t(jt(r), s, n, 0);
499
+ t(Vt(r), s, n, 0);
500
500
  }), n;
501
501
  }
502
502
  return null;
503
503
  }
504
- const $t = {
504
+ const vt = {
505
505
  "Content-Type": void 0
506
506
  };
507
- function Ht(e, t, n) {
507
+ function Jt(e, t, n) {
508
508
  if (a.isString(e))
509
509
  try {
510
510
  return (t || JSON.parse)(e), a.trim(e);
@@ -514,13 +514,13 @@ function Ht(e, t, n) {
514
514
  }
515
515
  return (n || JSON.stringify)(e);
516
516
  }
517
- const J = {
518
- transitional: Ie,
517
+ const M = {
518
+ transitional: ze,
519
519
  adapter: ["xhr", "http"],
520
520
  transformRequest: [function(t, n) {
521
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
522
- if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
523
- return s && s ? JSON.stringify(ke(t)) : t;
521
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
522
+ if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
523
+ return s && s ? JSON.stringify(Ve(t)) : t;
524
524
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
525
525
  return t;
526
526
  if (a.isArrayBufferView(t))
@@ -528,28 +528,28 @@ const J = {
528
528
  if (a.isURLSearchParams(t))
529
529
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
530
530
  let c;
531
- if (o) {
531
+ if (i) {
532
532
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
533
- return kt(t, this.formSerializer).toString();
533
+ return zt(t, this.formSerializer).toString();
534
534
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
535
- const f = this.env && this.env.FormData;
536
- return K(
535
+ const d = this.env && this.env.FormData;
536
+ return J(
537
537
  c ? { "files[]": t } : t,
538
- f && new f(),
538
+ d && new d(),
539
539
  this.formSerializer
540
540
  );
541
541
  }
542
542
  }
543
- return o || s ? (n.setContentType("application/json", !1), Ht(t)) : t;
543
+ return i || s ? (n.setContentType("application/json", !1), Jt(t)) : t;
544
544
  }],
545
545
  transformResponse: [function(t) {
546
- const n = this.transitional || J.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
546
+ const n = this.transitional || M.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
547
547
  if (t && a.isString(t) && (r && !this.responseType || s)) {
548
- const i = !(n && n.silentJSONParsing) && s;
548
+ const o = !(n && n.silentJSONParsing) && s;
549
549
  try {
550
550
  return JSON.parse(t);
551
551
  } catch (c) {
552
- if (i)
552
+ if (o)
553
553
  throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
554
554
  }
555
555
  }
@@ -578,12 +578,12 @@ const J = {
578
578
  }
579
579
  };
580
580
  a.forEach(["delete", "get", "head"], function(t) {
581
- J.headers[t] = {};
581
+ M.headers[t] = {};
582
582
  });
583
583
  a.forEach(["post", "put", "patch"], function(t) {
584
- J.headers[t] = a.merge($t);
584
+ M.headers[t] = a.merge(vt);
585
585
  });
586
- const ae = J, zt = a.toObjectSet([
586
+ const ue = M, Mt = a.toObjectSet([
587
587
  "age",
588
588
  "authorization",
589
589
  "content-length",
@@ -601,31 +601,31 @@ const ae = J, zt = a.toObjectSet([
601
601
  "referer",
602
602
  "retry-after",
603
603
  "user-agent"
604
- ]), Vt = (e) => {
604
+ ]), Wt = (e) => {
605
605
  const t = {};
606
606
  let n, r, s;
607
607
  return e && e.split(`
608
- `).forEach(function(i) {
609
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && zt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
608
+ `).forEach(function(o) {
609
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Mt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
610
610
  }), t;
611
- }, ye = Symbol("internals");
612
- function D(e) {
611
+ }, Ee = Symbol("internals");
612
+ function U(e) {
613
613
  return e && String(e).trim().toLowerCase();
614
614
  }
615
- function q(e) {
616
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(q) : String(e);
615
+ function $(e) {
616
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map($) : String(e);
617
617
  }
618
- function Kt(e) {
618
+ function Gt(e) {
619
619
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
620
620
  let r;
621
621
  for (; r = n.exec(e); )
622
622
  t[r[1]] = r[2];
623
623
  return t;
624
624
  }
625
- function Jt(e) {
625
+ function Xt(e) {
626
626
  return /^[-_a-zA-Z]+$/.test(e.trim());
627
627
  }
628
- function G(e, t, n, r, s) {
628
+ function X(e, t, n, r, s) {
629
629
  if (a.isFunction(r))
630
630
  return r.call(this, t, n);
631
631
  if (s && (t = n), !!a.isString(t)) {
@@ -635,45 +635,45 @@ function G(e, t, n, r, s) {
635
635
  return r.test(t);
636
636
  }
637
637
  }
638
- function vt(e) {
638
+ function Yt(e) {
639
639
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
640
640
  }
641
- function Mt(e, t) {
641
+ function Qt(e, t) {
642
642
  const n = a.toCamelCase(" " + t);
643
643
  ["get", "set", "has"].forEach((r) => {
644
644
  Object.defineProperty(e, r + n, {
645
- value: function(s, o, i) {
646
- return this[r].call(this, t, s, o, i);
645
+ value: function(s, i, o) {
646
+ return this[r].call(this, t, s, i, o);
647
647
  },
648
648
  configurable: !0
649
649
  });
650
650
  });
651
651
  }
652
- let v = class {
652
+ let W = class {
653
653
  constructor(t) {
654
654
  t && this.set(t);
655
655
  }
656
656
  set(t, n, r) {
657
657
  const s = this;
658
- function o(c, f, u) {
659
- const l = D(f);
658
+ function i(c, d, u) {
659
+ const l = U(d);
660
660
  if (!l)
661
661
  throw new Error("header name must be a non-empty string");
662
- const p = a.findKey(s, l);
663
- (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || f] = q(c));
662
+ const h = a.findKey(s, l);
663
+ (!h || s[h] === void 0 || u === !0 || u === void 0 && s[h] !== !1) && (s[h || d] = $(c));
664
664
  }
665
- const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
666
- return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !Jt(t) ? i(Vt(t), n) : t != null && o(n, t, r), this;
665
+ const o = (c, d) => a.forEach(c, (u, l) => i(u, l, d));
666
+ return a.isPlainObject(t) || t instanceof this.constructor ? o(t, n) : a.isString(t) && (t = t.trim()) && !Xt(t) ? o(Wt(t), n) : t != null && i(n, t, r), this;
667
667
  }
668
668
  get(t, n) {
669
- if (t = D(t), t) {
669
+ if (t = U(t), t) {
670
670
  const r = a.findKey(this, t);
671
671
  if (r) {
672
672
  const s = this[r];
673
673
  if (!n)
674
674
  return s;
675
675
  if (n === !0)
676
- return Kt(s);
676
+ return Gt(s);
677
677
  if (a.isFunction(n))
678
678
  return n.call(this, s, r);
679
679
  if (a.isRegExp(n))
@@ -683,42 +683,42 @@ let v = class {
683
683
  }
684
684
  }
685
685
  has(t, n) {
686
- if (t = D(t), t) {
686
+ if (t = U(t), t) {
687
687
  const r = a.findKey(this, t);
688
- return !!(r && this[r] !== void 0 && (!n || G(this, this[r], r, n)));
688
+ return !!(r && this[r] !== void 0 && (!n || X(this, this[r], r, n)));
689
689
  }
690
690
  return !1;
691
691
  }
692
692
  delete(t, n) {
693
693
  const r = this;
694
694
  let s = !1;
695
- function o(i) {
696
- if (i = D(i), i) {
697
- const c = a.findKey(r, i);
698
- c && (!n || G(r, r[c], c, n)) && (delete r[c], s = !0);
695
+ function i(o) {
696
+ if (o = U(o), o) {
697
+ const c = a.findKey(r, o);
698
+ c && (!n || X(r, r[c], c, n)) && (delete r[c], s = !0);
699
699
  }
700
700
  }
701
- return a.isArray(t) ? t.forEach(o) : o(t), s;
701
+ return a.isArray(t) ? t.forEach(i) : i(t), s;
702
702
  }
703
703
  clear(t) {
704
704
  const n = Object.keys(this);
705
705
  let r = n.length, s = !1;
706
706
  for (; r--; ) {
707
- const o = n[r];
708
- (!t || G(this, this[o], o, t, !0)) && (delete this[o], s = !0);
707
+ const i = n[r];
708
+ (!t || X(this, this[i], i, t, !0)) && (delete this[i], s = !0);
709
709
  }
710
710
  return s;
711
711
  }
712
712
  normalize(t) {
713
713
  const n = this, r = {};
714
- return a.forEach(this, (s, o) => {
715
- const i = a.findKey(r, o);
716
- if (i) {
717
- n[i] = q(s), delete n[o];
714
+ return a.forEach(this, (s, i) => {
715
+ const o = a.findKey(r, i);
716
+ if (o) {
717
+ n[o] = $(s), delete n[i];
718
718
  return;
719
719
  }
720
- const c = t ? vt(o) : String(o).trim();
721
- c !== o && delete n[o], n[c] = q(s), r[c] = !0;
720
+ const c = t ? Yt(i) : String(i).trim();
721
+ c !== i && delete n[i], n[c] = $(s), r[c] = !0;
722
722
  }), this;
723
723
  }
724
724
  concat(...t) {
@@ -748,37 +748,37 @@ let v = class {
748
748
  return n.forEach((s) => r.set(s)), r;
749
749
  }
750
750
  static accessor(t) {
751
- const r = (this[ye] = this[ye] = {
751
+ const r = (this[Ee] = this[Ee] = {
752
752
  accessors: {}
753
753
  }).accessors, s = this.prototype;
754
- function o(i) {
755
- const c = D(i);
756
- r[c] || (Mt(s, i), r[c] = !0);
754
+ function i(o) {
755
+ const c = U(o);
756
+ r[c] || (Qt(s, o), r[c] = !0);
757
757
  }
758
- return a.isArray(t) ? t.forEach(o) : o(t), this;
758
+ return a.isArray(t) ? t.forEach(i) : i(t), this;
759
759
  }
760
760
  };
761
- v.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
762
- a.freezeMethods(v.prototype);
763
- a.freezeMethods(v);
764
- const R = v;
765
- function X(e, t) {
766
- const n = this || ae, r = t || n, s = R.from(r.headers);
767
- let o = r.data;
761
+ W.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
762
+ a.freezeMethods(W.prototype);
763
+ a.freezeMethods(W);
764
+ const R = W;
765
+ function Y(e, t) {
766
+ const n = this || ue, r = t || n, s = R.from(r.headers);
767
+ let i = r.data;
768
768
  return a.forEach(e, function(c) {
769
- o = c.call(n, o, s.normalize(), t ? t.status : void 0);
770
- }), s.normalize(), o;
769
+ i = c.call(n, i, s.normalize(), t ? t.status : void 0);
770
+ }), s.normalize(), i;
771
771
  }
772
- function je(e) {
772
+ function Ke(e) {
773
773
  return !!(e && e.__CANCEL__);
774
774
  }
775
- function B(e, t, n) {
775
+ function k(e, t, n) {
776
776
  m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
777
777
  }
778
- a.inherits(B, m, {
778
+ a.inherits(k, m, {
779
779
  __CANCEL__: !0
780
780
  });
781
- function Wt(e, t, n) {
781
+ function Zt(e, t, n) {
782
782
  const r = n.config.validateStatus;
783
783
  !n.status || !r || r(n.status) ? e(n) : t(new m(
784
784
  "Request failed with status code " + n.status,
@@ -788,13 +788,13 @@ function Wt(e, t, n) {
788
788
  n
789
789
  ));
790
790
  }
791
- const Gt = b.isStandardBrowserEnv ? (
791
+ const en = b.isStandardBrowserEnv ? (
792
792
  // Standard browser envs support document.cookie
793
793
  function() {
794
794
  return {
795
- write: function(n, r, s, o, i, c) {
796
- const f = [];
797
- f.push(n + "=" + encodeURIComponent(r)), a.isNumber(s) && f.push("expires=" + new Date(s).toGMTString()), a.isString(o) && f.push("path=" + o), a.isString(i) && f.push("domain=" + i), c === !0 && f.push("secure"), document.cookie = f.join("; ");
795
+ write: function(n, r, s, i, o, c) {
796
+ const d = [];
797
+ d.push(n + "=" + encodeURIComponent(r)), a.isNumber(s) && d.push("expires=" + new Date(s).toGMTString()), a.isString(i) && d.push("path=" + i), a.isString(o) && d.push("domain=" + o), c === !0 && d.push("secure"), document.cookie = d.join("; ");
798
798
  },
799
799
  read: function(n) {
800
800
  const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
@@ -819,24 +819,24 @@ const Gt = b.isStandardBrowserEnv ? (
819
819
  };
820
820
  }()
821
821
  );
822
- function Xt(e) {
822
+ function tn(e) {
823
823
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
824
824
  }
825
- function Yt(e, t) {
825
+ function nn(e, t) {
826
826
  return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
827
827
  }
828
- function qe(e, t) {
829
- return e && !Xt(t) ? Yt(e, t) : t;
828
+ function ve(e, t) {
829
+ return e && !tn(t) ? nn(e, t) : t;
830
830
  }
831
- const Qt = b.isStandardBrowserEnv ? (
831
+ const rn = b.isStandardBrowserEnv ? (
832
832
  // Standard browser envs have full support of the APIs needed to test
833
833
  // whether the request URL is of the same origin as current location.
834
834
  function() {
835
835
  const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
836
836
  let r;
837
- function s(o) {
838
- let i = o;
839
- return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
837
+ function s(i) {
838
+ let o = i;
839
+ return t && (n.setAttribute("href", o), o = n.href), n.setAttribute("href", o), {
840
840
  href: n.href,
841
841
  protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
842
842
  host: n.host,
@@ -847,8 +847,8 @@ const Qt = b.isStandardBrowserEnv ? (
847
847
  pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
848
848
  };
849
849
  }
850
- return r = s(window.location.href), function(i) {
851
- const c = a.isString(i) ? s(i) : i;
850
+ return r = s(window.location.href), function(o) {
851
+ const c = a.isString(o) ? s(o) : o;
852
852
  return c.protocol === r.protocol && c.host === r.host;
853
853
  };
854
854
  }()
@@ -860,115 +860,115 @@ const Qt = b.isStandardBrowserEnv ? (
860
860
  };
861
861
  }()
862
862
  );
863
- function Zt(e) {
863
+ function sn(e) {
864
864
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
865
865
  return t && t[1] || "";
866
866
  }
867
- function en(e, t) {
867
+ function on(e, t) {
868
868
  e = e || 10;
869
869
  const n = new Array(e), r = new Array(e);
870
- let s = 0, o = 0, i;
871
- return t = t !== void 0 ? t : 1e3, function(f) {
872
- const u = Date.now(), l = r[o];
873
- i || (i = u), n[s] = f, r[s] = u;
874
- let p = o, w = 0;
875
- for (; p !== s; )
876
- w += n[p++], p = p % e;
877
- if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
870
+ let s = 0, i = 0, o;
871
+ return t = t !== void 0 ? t : 1e3, function(d) {
872
+ const u = Date.now(), l = r[i];
873
+ o || (o = u), n[s] = d, r[s] = u;
874
+ let h = i, E = 0;
875
+ for (; h !== s; )
876
+ E += n[h++], h = h % e;
877
+ if (s = (s + 1) % e, s === i && (i = (i + 1) % e), u - o < t)
878
878
  return;
879
879
  const y = l && u - l;
880
- return y ? Math.round(w * 1e3 / y) : void 0;
880
+ return y ? Math.round(E * 1e3 / y) : void 0;
881
881
  };
882
882
  }
883
- function Ee(e, t) {
883
+ function ge(e, t) {
884
884
  let n = 0;
885
- const r = en(50, 250);
885
+ const r = on(50, 250);
886
886
  return (s) => {
887
- const o = s.loaded, i = s.lengthComputable ? s.total : void 0, c = o - n, f = r(c), u = o <= i;
888
- n = o;
887
+ const i = s.loaded, o = s.lengthComputable ? s.total : void 0, c = i - n, d = r(c), u = i <= o;
888
+ n = i;
889
889
  const l = {
890
- loaded: o,
891
- total: i,
892
- progress: i ? o / i : void 0,
890
+ loaded: i,
891
+ total: o,
892
+ progress: o ? i / o : void 0,
893
893
  bytes: c,
894
- rate: f || void 0,
895
- estimated: f && i && u ? (i - o) / f : void 0,
894
+ rate: d || void 0,
895
+ estimated: d && o && u ? (o - i) / d : void 0,
896
896
  event: s
897
897
  };
898
898
  l[t ? "download" : "upload"] = !0, e(l);
899
899
  };
900
900
  }
901
- const tn = typeof XMLHttpRequest < "u", nn = tn && function(e) {
901
+ const an = typeof XMLHttpRequest < "u", cn = an && function(e) {
902
902
  return new Promise(function(n, r) {
903
903
  let s = e.data;
904
- const o = R.from(e.headers).normalize(), i = e.responseType;
904
+ const i = R.from(e.headers).normalize(), o = e.responseType;
905
905
  let c;
906
- function f() {
906
+ function d() {
907
907
  e.cancelToken && e.cancelToken.unsubscribe(c), e.signal && e.signal.removeEventListener("abort", c);
908
908
  }
909
- a.isFormData(s) && (b.isStandardBrowserEnv || b.isStandardBrowserWebWorkerEnv) && o.setContentType(!1);
909
+ a.isFormData(s) && (b.isStandardBrowserEnv || b.isStandardBrowserWebWorkerEnv) && i.setContentType(!1);
910
910
  let u = new XMLHttpRequest();
911
911
  if (e.auth) {
912
- const y = e.auth.username || "", d = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
913
- o.set("Authorization", "Basic " + btoa(y + ":" + d));
912
+ const y = e.auth.username || "", f = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
913
+ i.set("Authorization", "Basic " + btoa(y + ":" + f));
914
914
  }
915
- const l = qe(e.baseURL, e.url);
916
- u.open(e.method.toUpperCase(), Be(l, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
917
- function p() {
915
+ const l = ve(e.baseURL, e.url);
916
+ u.open(e.method.toUpperCase(), $e(l, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
917
+ function h() {
918
918
  if (!u)
919
919
  return;
920
920
  const y = R.from(
921
921
  "getAllResponseHeaders" in u && u.getAllResponseHeaders()
922
- ), h = {
923
- data: !i || i === "text" || i === "json" ? u.responseText : u.response,
922
+ ), p = {
923
+ data: !o || o === "text" || o === "json" ? u.responseText : u.response,
924
924
  status: u.status,
925
925
  statusText: u.statusText,
926
926
  headers: y,
927
927
  config: e,
928
928
  request: u
929
929
  };
930
- Wt(function(g) {
931
- n(g), f();
930
+ Zt(function(g) {
931
+ n(g), d();
932
932
  }, function(g) {
933
- r(g), f();
934
- }, h), u = null;
933
+ r(g), d();
934
+ }, p), u = null;
935
935
  }
936
- if ("onloadend" in u ? u.onloadend = p : u.onreadystatechange = function() {
937
- !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(p);
936
+ if ("onloadend" in u ? u.onloadend = h : u.onreadystatechange = function() {
937
+ !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(h);
938
938
  }, u.onabort = function() {
939
939
  u && (r(new m("Request aborted", m.ECONNABORTED, e, u)), u = null);
940
940
  }, u.onerror = function() {
941
941
  r(new m("Network Error", m.ERR_NETWORK, e, u)), u = null;
942
942
  }, u.ontimeout = function() {
943
- let d = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
944
- const h = e.transitional || Ie;
945
- e.timeoutErrorMessage && (d = e.timeoutErrorMessage), r(new m(
946
- d,
947
- h.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
943
+ let f = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
944
+ const p = e.transitional || ze;
945
+ e.timeoutErrorMessage && (f = e.timeoutErrorMessage), r(new m(
946
+ f,
947
+ p.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
948
948
  e,
949
949
  u
950
950
  )), u = null;
951
951
  }, b.isStandardBrowserEnv) {
952
- const y = (e.withCredentials || Qt(l)) && e.xsrfCookieName && Gt.read(e.xsrfCookieName);
953
- y && o.set(e.xsrfHeaderName, y);
952
+ const y = (e.withCredentials || rn(l)) && e.xsrfCookieName && en.read(e.xsrfCookieName);
953
+ y && i.set(e.xsrfHeaderName, y);
954
954
  }
955
- s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(d, h) {
956
- u.setRequestHeader(h, d);
957
- }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", Ee(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Ee(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (y) => {
958
- u && (r(!y || y.type ? new B(null, e, u) : y), u.abort(), u = null);
955
+ s === void 0 && i.setContentType(null), "setRequestHeader" in u && a.forEach(i.toJSON(), function(f, p) {
956
+ u.setRequestHeader(p, f);
957
+ }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), o && o !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", ge(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ge(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (y) => {
958
+ u && (r(!y || y.type ? new k(null, e, u) : y), u.abort(), u = null);
959
959
  }, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
960
- const w = Zt(l);
961
- if (w && b.protocols.indexOf(w) === -1) {
962
- r(new m("Unsupported protocol " + w + ":", m.ERR_BAD_REQUEST, e));
960
+ const E = sn(l);
961
+ if (E && b.protocols.indexOf(E) === -1) {
962
+ r(new m("Unsupported protocol " + E + ":", m.ERR_BAD_REQUEST, e));
963
963
  return;
964
964
  }
965
965
  u.send(s || null);
966
966
  });
967
- }, $ = {
968
- http: Pt,
969
- xhr: nn
967
+ }, z = {
968
+ http: Dt,
969
+ xhr: cn
970
970
  };
971
- a.forEach($, (e, t) => {
971
+ a.forEach(z, (e, t) => {
972
972
  if (e) {
973
973
  try {
974
974
  Object.defineProperty(e, "name", { value: t });
@@ -977,165 +977,165 @@ a.forEach($, (e, t) => {
977
977
  Object.defineProperty(e, "adapterName", { value: t });
978
978
  }
979
979
  });
980
- const rn = {
980
+ const un = {
981
981
  getAdapter: (e) => {
982
982
  e = a.isArray(e) ? e : [e];
983
983
  const { length: t } = e;
984
984
  let n, r;
985
- for (let s = 0; s < t && (n = e[s], !(r = a.isString(n) ? $[n.toLowerCase()] : n)); s++)
985
+ for (let s = 0; s < t && (n = e[s], !(r = a.isString(n) ? z[n.toLowerCase()] : n)); s++)
986
986
  ;
987
987
  if (!r)
988
988
  throw r === !1 ? new m(
989
989
  `Adapter ${n} is not supported by the environment`,
990
990
  "ERR_NOT_SUPPORT"
991
991
  ) : new Error(
992
- a.hasOwnProp($, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
992
+ a.hasOwnProp(z, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
993
993
  );
994
994
  if (!a.isFunction(r))
995
995
  throw new TypeError("adapter is not a function");
996
996
  return r;
997
997
  },
998
- adapters: $
998
+ adapters: z
999
999
  };
1000
- function Y(e) {
1000
+ function Q(e) {
1001
1001
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1002
- throw new B(null, e);
1002
+ throw new k(null, e);
1003
1003
  }
1004
- function we(e) {
1005
- return Y(e), e.headers = R.from(e.headers), e.data = X.call(
1004
+ function Se(e) {
1005
+ return Q(e), e.headers = R.from(e.headers), e.data = Y.call(
1006
1006
  e,
1007
1007
  e.transformRequest
1008
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), rn.getAdapter(e.adapter || ae.adapter)(e).then(function(r) {
1009
- return Y(e), r.data = X.call(
1008
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), un.getAdapter(e.adapter || ue.adapter)(e).then(function(r) {
1009
+ return Q(e), r.data = Y.call(
1010
1010
  e,
1011
1011
  e.transformResponse,
1012
1012
  r
1013
1013
  ), r.headers = R.from(r.headers), r;
1014
1014
  }, function(r) {
1015
- return je(r) || (Y(e), r && r.response && (r.response.data = X.call(
1015
+ return Ke(r) || (Q(e), r && r.response && (r.response.data = Y.call(
1016
1016
  e,
1017
1017
  e.transformResponse,
1018
1018
  r.response
1019
1019
  ), r.response.headers = R.from(r.response.headers))), Promise.reject(r);
1020
1020
  });
1021
1021
  }
1022
- const ge = (e) => e instanceof R ? e.toJSON() : e;
1023
- function N(e, t) {
1022
+ const be = (e) => e instanceof R ? e.toJSON() : e;
1023
+ function x(e, t) {
1024
1024
  t = t || {};
1025
1025
  const n = {};
1026
- function r(u, l, p) {
1027
- return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: p }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
1026
+ function r(u, l, h) {
1027
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: h }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
1028
1028
  }
1029
- function s(u, l, p) {
1029
+ function s(u, l, h) {
1030
1030
  if (a.isUndefined(l)) {
1031
1031
  if (!a.isUndefined(u))
1032
- return r(void 0, u, p);
1032
+ return r(void 0, u, h);
1033
1033
  } else
1034
- return r(u, l, p);
1034
+ return r(u, l, h);
1035
1035
  }
1036
- function o(u, l) {
1036
+ function i(u, l) {
1037
1037
  if (!a.isUndefined(l))
1038
1038
  return r(void 0, l);
1039
1039
  }
1040
- function i(u, l) {
1040
+ function o(u, l) {
1041
1041
  if (a.isUndefined(l)) {
1042
1042
  if (!a.isUndefined(u))
1043
1043
  return r(void 0, u);
1044
1044
  } else
1045
1045
  return r(void 0, l);
1046
1046
  }
1047
- function c(u, l, p) {
1048
- if (p in t)
1047
+ function c(u, l, h) {
1048
+ if (h in t)
1049
1049
  return r(u, l);
1050
- if (p in e)
1050
+ if (h in e)
1051
1051
  return r(void 0, u);
1052
1052
  }
1053
- const f = {
1054
- url: o,
1055
- method: o,
1056
- data: o,
1057
- baseURL: i,
1058
- transformRequest: i,
1059
- transformResponse: i,
1060
- paramsSerializer: i,
1061
- timeout: i,
1062
- timeoutMessage: i,
1063
- withCredentials: i,
1064
- adapter: i,
1065
- responseType: i,
1066
- xsrfCookieName: i,
1067
- xsrfHeaderName: i,
1068
- onUploadProgress: i,
1069
- onDownloadProgress: i,
1070
- decompress: i,
1071
- maxContentLength: i,
1072
- maxBodyLength: i,
1073
- beforeRedirect: i,
1074
- transport: i,
1075
- httpAgent: i,
1076
- httpsAgent: i,
1077
- cancelToken: i,
1078
- socketPath: i,
1079
- responseEncoding: i,
1053
+ const d = {
1054
+ url: i,
1055
+ method: i,
1056
+ data: i,
1057
+ baseURL: o,
1058
+ transformRequest: o,
1059
+ transformResponse: o,
1060
+ paramsSerializer: o,
1061
+ timeout: o,
1062
+ timeoutMessage: o,
1063
+ withCredentials: o,
1064
+ adapter: o,
1065
+ responseType: o,
1066
+ xsrfCookieName: o,
1067
+ xsrfHeaderName: o,
1068
+ onUploadProgress: o,
1069
+ onDownloadProgress: o,
1070
+ decompress: o,
1071
+ maxContentLength: o,
1072
+ maxBodyLength: o,
1073
+ beforeRedirect: o,
1074
+ transport: o,
1075
+ httpAgent: o,
1076
+ httpsAgent: o,
1077
+ cancelToken: o,
1078
+ socketPath: o,
1079
+ responseEncoding: o,
1080
1080
  validateStatus: c,
1081
- headers: (u, l) => s(ge(u), ge(l), !0)
1081
+ headers: (u, l) => s(be(u), be(l), !0)
1082
1082
  };
1083
1083
  return a.forEach(Object.keys(e).concat(Object.keys(t)), function(l) {
1084
- const p = f[l] || s, w = p(e[l], t[l], l);
1085
- a.isUndefined(w) && p !== c || (n[l] = w);
1084
+ const h = d[l] || s, E = h(e[l], t[l], l);
1085
+ a.isUndefined(E) && h !== c || (n[l] = E);
1086
1086
  }), n;
1087
1087
  }
1088
- const $e = "1.3.4", ce = {};
1088
+ const Je = "1.3.4", le = {};
1089
1089
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1090
- ce[e] = function(r) {
1090
+ le[e] = function(r) {
1091
1091
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1092
1092
  };
1093
1093
  });
1094
- const Se = {};
1095
- ce.transitional = function(t, n, r) {
1096
- function s(o, i) {
1097
- return "[Axios v" + $e + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1094
+ const Ae = {};
1095
+ le.transitional = function(t, n, r) {
1096
+ function s(i, o) {
1097
+ return "[Axios v" + Je + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1098
1098
  }
1099
- return (o, i, c) => {
1099
+ return (i, o, c) => {
1100
1100
  if (t === !1)
1101
1101
  throw new m(
1102
- s(i, " has been removed" + (n ? " in " + n : "")),
1102
+ s(o, " has been removed" + (n ? " in " + n : "")),
1103
1103
  m.ERR_DEPRECATED
1104
1104
  );
1105
- return n && !Se[i] && (Se[i] = !0, console.warn(
1105
+ return n && !Ae[o] && (Ae[o] = !0, console.warn(
1106
1106
  s(
1107
- i,
1107
+ o,
1108
1108
  " has been deprecated since v" + n + " and will be removed in the near future"
1109
1109
  )
1110
- )), t ? t(o, i, c) : !0;
1110
+ )), t ? t(i, o, c) : !0;
1111
1111
  };
1112
1112
  };
1113
- function sn(e, t, n) {
1113
+ function ln(e, t, n) {
1114
1114
  if (typeof e != "object")
1115
1115
  throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1116
1116
  const r = Object.keys(e);
1117
1117
  let s = r.length;
1118
1118
  for (; s-- > 0; ) {
1119
- const o = r[s], i = t[o];
1120
- if (i) {
1121
- const c = e[o], f = c === void 0 || i(c, o, e);
1122
- if (f !== !0)
1123
- throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1119
+ const i = r[s], o = t[i];
1120
+ if (o) {
1121
+ const c = e[i], d = c === void 0 || o(c, i, e);
1122
+ if (d !== !0)
1123
+ throw new m("option " + i + " must be " + d, m.ERR_BAD_OPTION_VALUE);
1124
1124
  continue;
1125
1125
  }
1126
1126
  if (n !== !0)
1127
- throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1127
+ throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
1128
1128
  }
1129
1129
  }
1130
- const ee = {
1131
- assertOptions: sn,
1132
- validators: ce
1133
- }, T = ee.validators;
1134
- let z = class {
1130
+ const ne = {
1131
+ assertOptions: ln,
1132
+ validators: le
1133
+ }, C = ne.validators;
1134
+ let K = class {
1135
1135
  constructor(t) {
1136
1136
  this.defaults = t, this.interceptors = {
1137
- request: new me(),
1138
- response: new me()
1137
+ request: new we(),
1138
+ response: new we()
1139
1139
  };
1140
1140
  }
1141
1141
  /**
@@ -1147,71 +1147,71 @@ let z = class {
1147
1147
  * @returns {Promise} The Promise to be fulfilled
1148
1148
  */
1149
1149
  request(t, n) {
1150
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = N(this.defaults, n);
1151
- const { transitional: r, paramsSerializer: s, headers: o } = n;
1152
- r !== void 0 && ee.assertOptions(r, {
1153
- silentJSONParsing: T.transitional(T.boolean),
1154
- forcedJSONParsing: T.transitional(T.boolean),
1155
- clarifyTimeoutError: T.transitional(T.boolean)
1156
- }, !1), s !== void 0 && ee.assertOptions(s, {
1157
- encode: T.function,
1158
- serialize: T.function
1150
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = x(this.defaults, n);
1151
+ const { transitional: r, paramsSerializer: s, headers: i } = n;
1152
+ r !== void 0 && ne.assertOptions(r, {
1153
+ silentJSONParsing: C.transitional(C.boolean),
1154
+ forcedJSONParsing: C.transitional(C.boolean),
1155
+ clarifyTimeoutError: C.transitional(C.boolean)
1156
+ }, !1), s !== void 0 && ne.assertOptions(s, {
1157
+ encode: C.function,
1158
+ serialize: C.function
1159
1159
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1160
- let i;
1161
- i = o && a.merge(
1162
- o.common,
1163
- o[n.method]
1164
- ), i && a.forEach(
1160
+ let o;
1161
+ o = i && a.merge(
1162
+ i.common,
1163
+ i[n.method]
1164
+ ), o && a.forEach(
1165
1165
  ["delete", "get", "head", "post", "put", "patch", "common"],
1166
- (d) => {
1167
- delete o[d];
1166
+ (f) => {
1167
+ delete i[f];
1168
1168
  }
1169
- ), n.headers = R.concat(i, o);
1169
+ ), n.headers = R.concat(o, i);
1170
1170
  const c = [];
1171
- let f = !0;
1172
- this.interceptors.request.forEach(function(h) {
1173
- typeof h.runWhen == "function" && h.runWhen(n) === !1 || (f = f && h.synchronous, c.unshift(h.fulfilled, h.rejected));
1171
+ let d = !0;
1172
+ this.interceptors.request.forEach(function(p) {
1173
+ typeof p.runWhen == "function" && p.runWhen(n) === !1 || (d = d && p.synchronous, c.unshift(p.fulfilled, p.rejected));
1174
1174
  });
1175
1175
  const u = [];
1176
- this.interceptors.response.forEach(function(h) {
1177
- u.push(h.fulfilled, h.rejected);
1176
+ this.interceptors.response.forEach(function(p) {
1177
+ u.push(p.fulfilled, p.rejected);
1178
1178
  });
1179
- let l, p = 0, w;
1180
- if (!f) {
1181
- const d = [we.bind(this), void 0];
1182
- for (d.unshift.apply(d, c), d.push.apply(d, u), w = d.length, l = Promise.resolve(n); p < w; )
1183
- l = l.then(d[p++], d[p++]);
1179
+ let l, h = 0, E;
1180
+ if (!d) {
1181
+ const f = [Se.bind(this), void 0];
1182
+ for (f.unshift.apply(f, c), f.push.apply(f, u), E = f.length, l = Promise.resolve(n); h < E; )
1183
+ l = l.then(f[h++], f[h++]);
1184
1184
  return l;
1185
1185
  }
1186
- w = c.length;
1186
+ E = c.length;
1187
1187
  let y = n;
1188
- for (p = 0; p < w; ) {
1189
- const d = c[p++], h = c[p++];
1188
+ for (h = 0; h < E; ) {
1189
+ const f = c[h++], p = c[h++];
1190
1190
  try {
1191
- y = d(y);
1191
+ y = f(y);
1192
1192
  } catch (A) {
1193
- h.call(this, A);
1193
+ p.call(this, A);
1194
1194
  break;
1195
1195
  }
1196
1196
  }
1197
1197
  try {
1198
- l = we.call(this, y);
1199
- } catch (d) {
1200
- return Promise.reject(d);
1198
+ l = Se.call(this, y);
1199
+ } catch (f) {
1200
+ return Promise.reject(f);
1201
1201
  }
1202
- for (p = 0, w = u.length; p < w; )
1203
- l = l.then(u[p++], u[p++]);
1202
+ for (h = 0, E = u.length; h < E; )
1203
+ l = l.then(u[h++], u[h++]);
1204
1204
  return l;
1205
1205
  }
1206
1206
  getUri(t) {
1207
- t = N(this.defaults, t);
1208
- const n = qe(t.baseURL, t.url);
1209
- return Be(n, t.params, t.paramsSerializer);
1207
+ t = x(this.defaults, t);
1208
+ const n = ve(t.baseURL, t.url);
1209
+ return $e(n, t.params, t.paramsSerializer);
1210
1210
  }
1211
1211
  };
1212
1212
  a.forEach(["delete", "get", "head", "options"], function(t) {
1213
- z.prototype[t] = function(n, r) {
1214
- return this.request(N(r || {}, {
1213
+ K.prototype[t] = function(n, r) {
1214
+ return this.request(x(r || {}, {
1215
1215
  method: t,
1216
1216
  url: n,
1217
1217
  data: (r || {}).data
@@ -1220,46 +1220,46 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1220
1220
  });
1221
1221
  a.forEach(["post", "put", "patch"], function(t) {
1222
1222
  function n(r) {
1223
- return function(o, i, c) {
1224
- return this.request(N(c || {}, {
1223
+ return function(i, o, c) {
1224
+ return this.request(x(c || {}, {
1225
1225
  method: t,
1226
1226
  headers: r ? {
1227
1227
  "Content-Type": "multipart/form-data"
1228
1228
  } : {},
1229
- url: o,
1230
- data: i
1229
+ url: i,
1230
+ data: o
1231
1231
  }));
1232
1232
  };
1233
1233
  }
1234
- z.prototype[t] = n(), z.prototype[t + "Form"] = n(!0);
1234
+ K.prototype[t] = n(), K.prototype[t + "Form"] = n(!0);
1235
1235
  });
1236
- const H = z;
1237
- let on = class He {
1236
+ const V = K;
1237
+ let fn = class Me {
1238
1238
  constructor(t) {
1239
1239
  if (typeof t != "function")
1240
1240
  throw new TypeError("executor must be a function.");
1241
1241
  let n;
1242
- this.promise = new Promise(function(o) {
1243
- n = o;
1242
+ this.promise = new Promise(function(i) {
1243
+ n = i;
1244
1244
  });
1245
1245
  const r = this;
1246
1246
  this.promise.then((s) => {
1247
1247
  if (!r._listeners)
1248
1248
  return;
1249
- let o = r._listeners.length;
1250
- for (; o-- > 0; )
1251
- r._listeners[o](s);
1249
+ let i = r._listeners.length;
1250
+ for (; i-- > 0; )
1251
+ r._listeners[i](s);
1252
1252
  r._listeners = null;
1253
1253
  }), this.promise.then = (s) => {
1254
- let o;
1255
- const i = new Promise((c) => {
1256
- r.subscribe(c), o = c;
1254
+ let i;
1255
+ const o = new Promise((c) => {
1256
+ r.subscribe(c), i = c;
1257
1257
  }).then(s);
1258
- return i.cancel = function() {
1259
- r.unsubscribe(o);
1260
- }, i;
1261
- }, t(function(o, i, c) {
1262
- r.reason || (r.reason = new B(o, i, c), n(r.reason));
1258
+ return o.cancel = function() {
1259
+ r.unsubscribe(i);
1260
+ }, o;
1261
+ }, t(function(i, o, c) {
1262
+ r.reason || (r.reason = new k(i, o, c), n(r.reason));
1263
1263
  });
1264
1264
  }
1265
1265
  /**
@@ -1295,23 +1295,23 @@ let on = class He {
1295
1295
  static source() {
1296
1296
  let t;
1297
1297
  return {
1298
- token: new He(function(s) {
1298
+ token: new Me(function(s) {
1299
1299
  t = s;
1300
1300
  }),
1301
1301
  cancel: t
1302
1302
  };
1303
1303
  }
1304
1304
  };
1305
- const an = on;
1306
- function cn(e) {
1305
+ const dn = fn;
1306
+ function hn(e) {
1307
1307
  return function(n) {
1308
1308
  return e.apply(null, n);
1309
1309
  };
1310
1310
  }
1311
- function un(e) {
1311
+ function pn(e) {
1312
1312
  return a.isObject(e) && e.isAxiosError === !0;
1313
1313
  }
1314
- const te = {
1314
+ const re = {
1315
1315
  Continue: 100,
1316
1316
  SwitchingProtocols: 101,
1317
1317
  Processing: 102,
@@ -1376,74 +1376,74 @@ const te = {
1376
1376
  NotExtended: 510,
1377
1377
  NetworkAuthenticationRequired: 511
1378
1378
  };
1379
- Object.entries(te).forEach(([e, t]) => {
1380
- te[t] = e;
1379
+ Object.entries(re).forEach(([e, t]) => {
1380
+ re[t] = e;
1381
1381
  });
1382
- const ln = te;
1383
- function ze(e) {
1384
- const t = new H(e), n = Ae(H.prototype.request, t);
1385
- return a.extend(n, H.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1386
- return ze(N(e, s));
1382
+ const mn = re;
1383
+ function We(e) {
1384
+ const t = new V(e), n = Ne(V.prototype.request, t);
1385
+ return a.extend(n, V.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1386
+ return We(x(e, s));
1387
1387
  }, n;
1388
1388
  }
1389
- const E = ze(ae);
1390
- E.Axios = H;
1391
- E.CanceledError = B;
1392
- E.CancelToken = an;
1393
- E.isCancel = je;
1394
- E.VERSION = $e;
1395
- E.toFormData = K;
1396
- E.AxiosError = m;
1397
- E.Cancel = E.CanceledError;
1398
- E.all = function(t) {
1389
+ const w = We(ue);
1390
+ w.Axios = V;
1391
+ w.CanceledError = k;
1392
+ w.CancelToken = dn;
1393
+ w.isCancel = Ke;
1394
+ w.VERSION = Je;
1395
+ w.toFormData = J;
1396
+ w.AxiosError = m;
1397
+ w.Cancel = w.CanceledError;
1398
+ w.all = function(t) {
1399
1399
  return Promise.all(t);
1400
1400
  };
1401
- E.spread = cn;
1402
- E.isAxiosError = un;
1403
- E.mergeConfig = N;
1404
- E.AxiosHeaders = R;
1405
- E.formToJSON = (e) => ke(a.isHTMLForm(e) ? new FormData(e) : e);
1406
- E.HttpStatusCode = ln;
1407
- E.default = E;
1408
- const Ve = E, {
1409
- Axios: Wn,
1410
- AxiosError: fn,
1411
- CanceledError: Gn,
1412
- isCancel: Xn,
1413
- CancelToken: Yn,
1414
- VERSION: Qn,
1415
- all: Zn,
1416
- Cancel: er,
1417
- isAxiosError: tr,
1418
- spread: nr,
1419
- toFormData: rr,
1420
- AxiosHeaders: sr,
1421
- HttpStatusCode: or,
1422
- formToJSON: ir,
1423
- mergeConfig: ar
1424
- } = Ve;
1425
- class dn extends Error {
1401
+ w.spread = hn;
1402
+ w.isAxiosError = pn;
1403
+ w.mergeConfig = x;
1404
+ w.AxiosHeaders = R;
1405
+ w.formToJSON = (e) => Ve(a.isHTMLForm(e) ? new FormData(e) : e);
1406
+ w.HttpStatusCode = mn;
1407
+ w.default = w;
1408
+ const Ge = w, {
1409
+ Axios: Qn,
1410
+ AxiosError: Z,
1411
+ CanceledError: Zn,
1412
+ isCancel: er,
1413
+ CancelToken: tr,
1414
+ VERSION: nr,
1415
+ all: rr,
1416
+ Cancel: sr,
1417
+ isAxiosError: or,
1418
+ spread: ir,
1419
+ toFormData: ar,
1420
+ AxiosHeaders: cr,
1421
+ HttpStatusCode: ur,
1422
+ formToJSON: lr,
1423
+ mergeConfig: fr
1424
+ } = Ge;
1425
+ class Re extends Error {
1426
1426
  constructor(n) {
1427
1427
  super(n.join(", "));
1428
1428
  S(this, "errors");
1429
1429
  this.name = "ValidationError", this.errors = n;
1430
1430
  }
1431
1431
  }
1432
- class pn extends Error {
1432
+ class Oe extends Error {
1433
1433
  constructor(n) {
1434
- super(`Address already used: ${n}`);
1434
+ super("Address already registered.");
1435
1435
  S(this, "address");
1436
1436
  this.name = "AddressInUseError", this.address = n;
1437
1437
  }
1438
1438
  }
1439
- class hn extends Error {
1439
+ class Ce extends Error {
1440
1440
  constructor(n) {
1441
- super(`Code already used: ${n}`);
1441
+ super("Code already registered.");
1442
1442
  S(this, "code");
1443
1443
  this.name = "CodeInUseError", this.code = n;
1444
1444
  }
1445
1445
  }
1446
- class mn extends Error {
1446
+ class Te extends Error {
1447
1447
  constructor() {
1448
1448
  super("Invalid signature provided"), this.name = "InvalidSignatureError";
1449
1449
  }
@@ -1454,38 +1454,64 @@ class yn {
1454
1454
  S(this, "_debug");
1455
1455
  this.httpClient = t.httpClient, this._debug = t.debug;
1456
1456
  }
1457
- async create(t, n, r, s) {
1458
- var o;
1457
+ async create(t, n, r) {
1458
+ var s;
1459
1459
  try {
1460
1460
  await this.httpClient.post("/affiliates", {
1461
1461
  address: t,
1462
1462
  name: n,
1463
1463
  code: n,
1464
- signature: r,
1465
- signature_message: s
1464
+ signature: r
1465
+ });
1466
+ } catch (i) {
1467
+ if (i instanceof Z) {
1468
+ const o = (s = i.response) == null ? void 0 : s.data;
1469
+ if (typeof (o == null ? void 0 : o.message) == "string") {
1470
+ const c = o.message.toLowerCase();
1471
+ throw c == "invalid signature" ? new Te() : c == "address in use" ? new Oe(t) : c == "code in use" ? new Ce(n) : new Error(c);
1472
+ } else if ((o == null ? void 0 : o.message) instanceof Array)
1473
+ throw new Re(o.message);
1474
+ }
1475
+ throw i;
1476
+ }
1477
+ }
1478
+ async update(t, n, r) {
1479
+ var s;
1480
+ try {
1481
+ await this.httpClient.post(`/affiliates/${t}`, {
1482
+ code: n,
1483
+ address: t,
1484
+ signature: r
1466
1485
  });
1467
1486
  } catch (i) {
1468
- if (i instanceof fn) {
1469
- const c = (o = i.response) == null ? void 0 : o.data;
1470
- if (typeof (c == null ? void 0 : c.message) == "string") {
1471
- const f = c.message.toLowerCase();
1472
- throw f == "invalid signature" ? new mn() : f == "address in use" ? new pn(t) : f == "code in use" ? new hn(n) : new Error(f);
1473
- } else if ((c == null ? void 0 : c.message) instanceof Array)
1474
- throw new dn(c.message);
1487
+ if (i instanceof Z) {
1488
+ const o = (s = i.response) == null ? void 0 : s.data;
1489
+ if (typeof (o == null ? void 0 : o.message) == "string") {
1490
+ const c = o.message.toLowerCase();
1491
+ throw c == "invalid signature" ? new Te() : c == "address in use" ? new Oe(t) : c == "code in use" ? new Ce(n) : new Error(c);
1492
+ } else if ((o == null ? void 0 : o.message) instanceof Array)
1493
+ throw new Re(o.message);
1475
1494
  }
1476
1495
  throw i;
1477
1496
  }
1478
1497
  }
1498
+ async isCodeFree(t) {
1499
+ var n;
1500
+ try {
1501
+ return await this.httpClient.get(`/affiliates/codes/${t}`), !1;
1502
+ } catch (r) {
1503
+ return r instanceof Z && ((n = r.response) == null ? void 0 : n.status) === 404 ? !0 : (console.error("Fuul SDK: Could not check affiliate code", r), !1);
1504
+ }
1505
+ }
1479
1506
  async getCode(t) {
1480
1507
  try {
1481
- const n = await this.httpClient.get(`/affiliates/${t}`);
1482
- return n.status !== 200 ? null : n.data.code;
1508
+ return (await this.httpClient.get(`/affiliates/${t}`)).data.code;
1483
1509
  } catch (n) {
1484
1510
  return console.error("Fuul SDK: Could not get affiliate code", n), null;
1485
1511
  }
1486
1512
  }
1487
1513
  }
1488
- class En {
1514
+ class wn {
1489
1515
  constructor(t) {
1490
1516
  S(this, "httpClient");
1491
1517
  this.httpClient = t.httpClient;
@@ -1495,7 +1521,7 @@ class En {
1495
1521
  return t;
1496
1522
  }
1497
1523
  }
1498
- const be = "fuul.sent", wn = 60;
1524
+ const Pe = "fuul.sent", En = 60;
1499
1525
  class gn {
1500
1526
  constructor(t) {
1501
1527
  S(this, "debug");
@@ -1510,34 +1536,37 @@ class gn {
1510
1536
  await this.httpClient.post("events", t), this.debug && console.debug(`Fuul SDK: Sent '${t.name}' event`), this.saveSentEvent(t);
1511
1537
  }
1512
1538
  isDuplicate(t) {
1513
- const n = `${be}_${t.name}`, r = localStorage.getItem(n);
1539
+ const n = `${Pe}_${t.name}`, r = localStorage.getItem(n);
1514
1540
  if (!r)
1515
1541
  return !1;
1516
1542
  const s = JSON.parse(r);
1517
- if (this.getCurrentTimestamp() - s.timestamp > wn)
1543
+ if (this.getCurrentTimestamp() - s.timestamp > En)
1518
1544
  return !1;
1519
- let f = !1;
1520
- t.metadata && (f = 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 && s.signature === t.signature && s.signature_message === t.signature_message);
1545
+ let d = !1;
1546
+ 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 && s.signature === t.signature && s.signature_message === t.signature_message);
1521
1547
  let u = !1;
1522
- return t.args && s.args && (u = s.args.page === t.args.page), u && f;
1548
+ return t.args && s.args && (u = s.args.page === t.args.page), u && d;
1523
1549
  }
1524
1550
  getCurrentTimestamp() {
1525
1551
  return Date.now() / 1e3;
1526
1552
  }
1527
1553
  saveSentEvent(t) {
1528
- const n = `${be}_${t.name}`, r = this.getCurrentTimestamp(), s = { ...t, timestamp: r };
1554
+ const n = `${Pe}_${t.name}`, r = this.getCurrentTimestamp(), s = { ...t, timestamp: r };
1529
1555
  localStorage.setItem(n, JSON.stringify(s));
1530
1556
  }
1531
1557
  }
1532
- class Sn {
1558
+ const Sn = "3.3.1", bn = {
1559
+ version: Sn
1560
+ };
1561
+ class An {
1533
1562
  constructor(t) {
1534
1563
  S(this, "client");
1535
1564
  S(this, "queryParams");
1536
- this.client = Ve.create({
1565
+ this.client = Ge.create({
1537
1566
  ...t,
1538
1567
  headers: {
1539
1568
  Authorization: `Bearer ${t.apiKey}`,
1540
- "X-Fuul-Sdk-Version": "3.2.2"
1569
+ "X-Fuul-Sdk-Version": bn.version
1541
1570
  }
1542
1571
  }), this.queryParams = t.queryParams ? this.buildQueryParams(t.queryParams) : "";
1543
1572
  }
@@ -1560,8 +1589,8 @@ class Sn {
1560
1589
  return this.client.delete(t + this.queryParams);
1561
1590
  }
1562
1591
  }
1563
- let bn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += "-" : t += "_", t), "");
1564
- const An = "fuul.tracking_id", Rn = ["google.com", "bing.com", "yahoo.com"], On = () => Dn(An, () => bn()), Tn = () => C("af") || C("referrer"), Cn = () => document.referrer, Pn = () => Fn(), _n = () => C("category"), Nn = () => C("title"), xn = () => C("tag"), Dn = (e, t) => {
1592
+ let Rn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += "-" : t += "_", t), "");
1593
+ const On = "fuul.tracking_id", Cn = ["google.com", "bing.com", "yahoo.com"], Tn = () => Un(On, () => Rn()), Pn = () => T("af") || T("referrer"), Nn = () => document.referrer, _n = () => Ln(), xn = () => T("category"), Fn = () => T("title"), Dn = () => T("tag"), Un = (e, t) => {
1565
1594
  const n = localStorage.getItem(e);
1566
1595
  if (n)
1567
1596
  return n;
@@ -1569,95 +1598,107 @@ const An = "fuul.tracking_id", Rn = ["google.com", "bing.com", "yahoo.com"], On
1569
1598
  const r = t();
1570
1599
  return r ? localStorage.setItem(e, r) : localStorage.removeItem(e), r;
1571
1600
  }
1572
- }, C = (e) => new URLSearchParams(window.location.search).get(e), Fn = () => {
1573
- const e = C("source"), t = C("af") || C("referrer");
1601
+ }, T = (e) => new URLSearchParams(window.location.search).get(e), Ln = () => {
1602
+ const e = T("source"), t = T("af") || T("referrer");
1574
1603
  if (e)
1575
1604
  return e;
1576
1605
  if (t)
1577
1606
  return "affiliate";
1578
- const n = Un(document.referrer);
1579
- return n && Rn.includes(n) ? "organic" : "direct";
1580
- }, Un = (e) => {
1607
+ const n = Bn(document.referrer);
1608
+ return n && Cn.includes(n) ? "organic" : "direct";
1609
+ }, Bn = (e) => {
1581
1610
  var t;
1582
1611
  try {
1583
1612
  return (t = new URL(e).hostname) == null ? void 0 : t.split(".").slice(-2).join(".");
1584
1613
  } catch {
1585
1614
  return null;
1586
1615
  }
1587
- }, Ln = "https://api.fuul.xyz/api/v1/";
1588
- let F = !1, ne = !1, ue, k, Ke, M, Je;
1589
- function Bn(e) {
1590
- F = !!e.debug, !ne && (ue = e.apiKey, Vn(), k = Kn(
1591
- e.baseApiUrl ?? Ln,
1616
+ }, In = "https://api.fuul.xyz/api/v1/";
1617
+ let L = !1, se = !1, fe, q, Xe, D, Ye;
1618
+ function kn(e) {
1619
+ L = !!e.debug, !se && (fe = e.apiKey, Mn(), q = Wn(
1620
+ e.baseApiUrl ?? In,
1592
1621
  e.defaultQueryParams ?? {}
1593
- ), Ke = new En({ httpClient: k, debug: F }), Je = new gn({ httpClient: k, debug: F }), M = new yn({ httpClient: k, debug: F }), ne = !0, F && console.debug("Fuul SDK: init() complete"));
1622
+ ), Xe = new wn({ httpClient: q, debug: L }), Ye = new gn({ httpClient: q, debug: L }), D = new yn({ httpClient: q, debug: L }), se = !0, L && console.debug("Fuul SDK: init() complete"));
1594
1623
  }
1595
- function ve() {
1596
- if (!ne)
1624
+ function N() {
1625
+ if (!se)
1597
1626
  throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
1598
1627
  }
1599
- async function le(e, t, n) {
1600
- ve(), zn();
1601
- const r = On(), s = Tn(), o = Pn(), i = _n(), c = Nn(), f = xn(), u = Cn(), l = {
1628
+ async function de(e, t, n) {
1629
+ N(), Jn();
1630
+ const r = Tn(), s = Pn(), i = _n(), o = xn(), c = Fn(), d = Dn(), u = Nn(), l = {
1602
1631
  name: e,
1603
1632
  args: t || {},
1604
1633
  metadata: {
1605
1634
  tracking_id: r ?? ""
1606
1635
  }
1607
1636
  };
1608
- n != null && n.address && (l.user_address = n.address), n != null && n.signature && (l.signature = n == null ? void 0 : n.signature, l.signature_message = n == null ? void 0 : n.message), s && (l.metadata.referrer = s, l.metadata.affiliate_id = s), u && (l.metadata.referrer_url = u), o && (l.metadata.source = o), i && (l.metadata.category = i), c && (l.metadata.title = c), f && (l.metadata.tag = f), Je.sendEvent(l);
1637
+ n != null && n.address && (l.user_address = n.address), n != null && n.signature && (l.signature = n == null ? void 0 : n.signature, l.signature_message = n == null ? void 0 : n.message), s && (l.metadata.referrer = s, l.metadata.affiliate_id = s), u && (l.metadata.referrer_url = u), i && (l.metadata.source = i), o && (l.metadata.category = o), c && (l.metadata.title = c), d && (l.metadata.tag = d), Ye.sendEvent(l);
1609
1638
  }
1610
- async function In(e) {
1611
- await le("pageview", {
1639
+ async function jn(e) {
1640
+ await de("pageview", {
1612
1641
  page: e ?? document.location.pathname,
1613
1642
  locationOrigin: document.location.origin
1614
1643
  });
1615
1644
  }
1616
- async function kn(e) {
1617
- await le("connect_wallet", {}, e);
1645
+ async function qn(e) {
1646
+ await de("connect_wallet", {}, e);
1618
1647
  }
1619
- async function jn(e, t, n) {
1620
- const r = `I confirm that I am creating the ${t} code on Fuul`;
1621
- await M.create(e, t, n, r);
1648
+ async function Hn(e, t, n) {
1649
+ N(), await D.create(e, t, n);
1622
1650
  }
1623
- async function qn(e, t, n) {
1624
- const r = await M.getCode(t), s = new URLSearchParams({
1651
+ async function $n(e, t, n) {
1652
+ N(), await D.update(e, t, n);
1653
+ }
1654
+ async function zn(e) {
1655
+ return N(), await D.getCode(e);
1656
+ }
1657
+ async function Vn(e) {
1658
+ return N(), await D.isCodeFree(e);
1659
+ }
1660
+ async function Kn(e, t, n) {
1661
+ N();
1662
+ const r = await D.getCode(t), s = new URLSearchParams({
1625
1663
  af: r ?? t
1626
1664
  });
1627
1665
  return n != null && n.title && s.append("af_title", n.title), n != null && n.format && s.append("af_format", n.format), n != null && n.place && s.append("af_place", n.place), `${e}?${s.toString()}`;
1628
1666
  }
1629
- async function $n(e) {
1630
- return await M.getCode(e);
1631
- }
1632
- async function Hn() {
1633
- return ve(), Ke.getAll();
1667
+ async function vn() {
1668
+ return N(), Xe.getAll();
1634
1669
  }
1635
- function zn() {
1670
+ function Jn() {
1636
1671
  if (typeof window > "u" || typeof document > "u")
1637
1672
  throw new Error("Fuul SDK: Browser context required");
1638
1673
  }
1639
- function Vn() {
1640
- if (!ue)
1674
+ function Mn() {
1675
+ if (!fe)
1641
1676
  throw new Error("Fuul SDK: Invalid API key");
1642
1677
  }
1643
- function Kn(e, t) {
1644
- return new Sn({
1678
+ function Wn(e, t) {
1679
+ return new An({
1645
1680
  baseURL: e,
1646
1681
  timeout: 1e4,
1647
- apiKey: ue,
1682
+ apiKey: fe,
1648
1683
  queryParams: t
1649
1684
  });
1650
1685
  }
1651
- const cr = {
1652
- init: Bn,
1653
- sendEvent: le,
1654
- sendPageview: In,
1655
- sendConnectWallet: kn,
1656
- generateTrackingLink: qn,
1657
- getConversions: Hn,
1658
- createAffiliateCode: jn,
1659
- getAffiliateCode: $n
1686
+ const dr = {
1687
+ init: kn,
1688
+ sendEvent: de,
1689
+ sendPageview: jn,
1690
+ sendConnectWallet: qn,
1691
+ generateTrackingLink: Kn,
1692
+ getConversions: vn,
1693
+ createAffiliateCode: Hn,
1694
+ updateAffiliateCode: $n,
1695
+ getAffiliateCode: zn,
1696
+ isAffiliateCodeFree: Vn
1660
1697
  };
1661
1698
  export {
1662
- cr as Fuul
1699
+ Oe as AddressInUseError,
1700
+ Ce as CodeInUseError,
1701
+ dr as Fuul,
1702
+ Te as InvalidSignatureError,
1703
+ Re as ValidationError
1663
1704
  };