@fuul/sdk 4.10.1 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -14,11 +14,11 @@ function dt(e) {
14
14
  return e !== null && !v(e) && e.constructor !== null && !v(e.constructor) && C(e.constructor.isBuffer) && e.constructor.isBuffer(e);
15
15
  }
16
16
  const ke = O("ArrayBuffer");
17
- function pt(e) {
17
+ function ht(e) {
18
18
  let t;
19
19
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ke(e.buffer), t;
20
20
  }
21
- const ht = W("string"), C = W("function"), je = W("number"), G = (e) => e !== null && typeof e == "object", mt = (e) => e === !0 || e === !1, z = (e) => {
21
+ const pt = W("string"), C = W("function"), je = W("number"), G = (e) => e !== null && typeof e == "object", mt = (e) => e === !0 || e === !1, z = (e) => {
22
22
  if (M(e) !== "object")
23
23
  return !1;
24
24
  const t = le(e);
@@ -36,10 +36,10 @@ function $(e, t, { allOwnKeys: n = !1 } = {}) {
36
36
  for (r = 0, s = e.length; r < s; r++)
37
37
  t.call(null, e[r], r, e);
38
38
  else {
39
- const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
39
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
40
40
  let c;
41
- for (r = 0; r < o; r++)
42
- c = i[r], t.call(null, e[c], c, e);
41
+ for (r = 0; r < i; r++)
42
+ c = o[r], t.call(null, e[c], c, e);
43
43
  }
44
44
  }
45
45
  function ve(e, t) {
@@ -54,27 +54,27 @@ function ve(e, t) {
54
54
  const $e = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), qe = (e) => !v(e) && e !== $e;
55
55
  function se() {
56
56
  const { caseless: e } = qe(this) && this || {}, t = {}, n = (r, s) => {
57
- const i = e && ve(t, s) || s;
58
- z(t[i]) && z(r) ? t[i] = se(t[i], r) : z(r) ? t[i] = se({}, r) : D(r) ? t[i] = r.slice() : t[i] = r;
57
+ const o = e && ve(t, s) || s;
58
+ z(t[o]) && z(r) ? t[o] = se(t[o], r) : z(r) ? t[o] = se({}, r) : D(r) ? t[o] = r.slice() : t[o] = r;
59
59
  };
60
60
  for (let r = 0, s = arguments.length; r < s; r++)
61
61
  arguments[r] && $(arguments[r], n);
62
62
  return t;
63
63
  }
64
- const Rt = (e, t, n, { allOwnKeys: r } = {}) => ($(t, (s, i) => {
65
- n && C(s) ? e[i] = Ie(s, n) : e[i] = s;
64
+ const Rt = (e, t, n, { allOwnKeys: r } = {}) => ($(t, (s, o) => {
65
+ n && C(s) ? e[o] = Ie(s, n) : e[o] = s;
66
66
  }, { allOwnKeys: r }), e), Ot = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tt = (e, t, n, r) => {
67
67
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
68
68
  value: t.prototype
69
69
  }), n && Object.assign(e.prototype, n);
70
70
  }, Pt = (e, t, n, r) => {
71
- let s, i, o;
71
+ let s, o, i;
72
72
  const c = {};
73
73
  if (t = t || {}, e == null)
74
74
  return t;
75
75
  do {
76
- for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
77
- o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
76
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
77
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
78
78
  e = n !== !1 && le(e);
79
79
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
80
80
  return t;
@@ -98,8 +98,8 @@ const Rt = (e, t, n, { allOwnKeys: r } = {}) => ($(t, (s, i) => {
98
98
  const r = (e && e[Symbol.iterator]).call(e);
99
99
  let s;
100
100
  for (; (s = r.next()) && !s.done; ) {
101
- const i = s.value;
102
- t.call(e, i[0], i[1]);
101
+ const o = s.value;
102
+ t.call(e, o[0], o[1]);
103
103
  }
104
104
  }, Ft = (e, t) => {
105
105
  let n;
@@ -114,9 +114,9 @@ const Rt = (e, t, n, { allOwnKeys: r } = {}) => ($(t, (s, i) => {
114
114
  }
115
115
  ), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Bt = O("RegExp"), He = (e, t) => {
116
116
  const n = Object.getOwnPropertyDescriptors(e), r = {};
117
- $(n, (s, i) => {
118
- let o;
119
- (o = t(s, i, e)) !== !1 && (r[i] = o || s);
117
+ $(n, (s, o) => {
118
+ let i;
119
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
120
120
  }), Object.defineProperties(e, r);
121
121
  }, It = (e) => {
122
122
  He(e, (t, n) => {
@@ -135,8 +135,8 @@ const Rt = (e, t, n, { allOwnKeys: r } = {}) => ($(t, (s, i) => {
135
135
  });
136
136
  }, kt = (e, t) => {
137
137
  const n = {}, r = (s) => {
138
- s.forEach((i) => {
139
- n[i] = !0;
138
+ s.forEach((o) => {
139
+ n[o] = !0;
140
140
  });
141
141
  };
142
142
  return D(e) ? r(e) : r(String(e).split(t)), n;
@@ -162,11 +162,11 @@ const Ht = (e) => {
162
162
  return;
163
163
  if (!("toJSON" in r)) {
164
164
  t[s] = r;
165
- const i = D(r) ? [] : {};
166
- return $(r, (o, c) => {
167
- const p = n(o, s + 1);
168
- !v(p) && (i[c] = p);
169
- }), t[s] = void 0, i;
165
+ const o = D(r) ? [] : {};
166
+ return $(r, (i, c) => {
167
+ const l = n(i, s + 1);
168
+ !v(l) && (o[c] = l);
169
+ }), t[s] = void 0, o;
170
170
  }
171
171
  }
172
172
  return r;
@@ -177,8 +177,8 @@ const Ht = (e) => {
177
177
  isArrayBuffer: ke,
178
178
  isBuffer: dt,
179
179
  isFormData: St,
180
- isArrayBufferView: pt,
181
- isString: ht,
180
+ isArrayBufferView: ht,
181
+ isString: pt,
182
182
  isNumber: je,
183
183
  isBoolean: mt,
184
184
  isObject: G,
@@ -270,11 +270,11 @@ const Ve = m.prototype, Ke = {};
270
270
  });
271
271
  Object.defineProperties(m, Ke);
272
272
  Object.defineProperty(Ve, "isAxiosError", { value: !0 });
273
- m.from = (e, t, n, r, s, i) => {
274
- const o = Object.create(Ve);
275
- return a.toFlatObject(e, o, function(p) {
276
- return p !== Error.prototype;
277
- }, (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;
273
+ m.from = (e, t, n, r, s, o) => {
274
+ const i = Object.create(Ve);
275
+ return a.toFlatObject(e, i, function(l) {
276
+ return l !== Error.prototype;
277
+ }, (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;
278
278
  };
279
279
  const Kt = null;
280
280
  function oe(e) {
@@ -284,8 +284,8 @@ function Je(e) {
284
284
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
285
285
  }
286
286
  function Se(e, t, n) {
287
- return e ? e.concat(t).map(function(s, i) {
288
- return s = Je(s), !n && i ? "[" + s + "]" : s;
287
+ return e ? e.concat(t).map(function(s, o) {
288
+ return s = Je(s), !n && o ? "[" + s + "]" : s;
289
289
  }).join(n ? "." : "") : t;
290
290
  }
291
291
  function Jt(e) {
@@ -301,54 +301,54 @@ function X(e, t, n) {
301
301
  metaTokens: !0,
302
302
  dots: !1,
303
303
  indexes: !1
304
- }, !1, function(d, w) {
305
- return !a.isUndefined(w[d]);
304
+ }, !1, function(h, w) {
305
+ return !a.isUndefined(w[h]);
306
306
  });
307
- const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
307
+ const r = n.metaTokens, s = n.visitor || f, o = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
308
308
  if (!a.isFunction(s))
309
309
  throw new TypeError("visitor must be a function");
310
- function h(f) {
311
- if (f === null)
310
+ function p(d) {
311
+ if (d === null)
312
312
  return "";
313
- if (a.isDate(f))
314
- return f.toISOString();
315
- if (!p && a.isBlob(f))
313
+ if (a.isDate(d))
314
+ return d.toISOString();
315
+ if (!l && a.isBlob(d))
316
316
  throw new m("Blob is not supported. Use a Buffer instead.");
317
- return a.isArrayBuffer(f) || a.isTypedArray(f) ? p && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
318
- }
319
- function l(f, d, w) {
320
- let E = f;
321
- if (f && !w && typeof f == "object") {
322
- if (a.endsWith(d, "{}"))
323
- d = r ? d : d.slice(0, -2), f = JSON.stringify(f);
324
- else if (a.isArray(f) && Jt(f) || (a.isFileList(f) || a.endsWith(d, "[]")) && (E = a.toArray(f)))
325
- return d = Je(d), E.forEach(function(_, ct) {
317
+ return a.isArrayBuffer(d) || a.isTypedArray(d) ? l && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
318
+ }
319
+ function f(d, h, w) {
320
+ let E = d;
321
+ if (d && !w && typeof d == "object") {
322
+ if (a.endsWith(h, "{}"))
323
+ h = r ? h : h.slice(0, -2), d = JSON.stringify(d);
324
+ else if (a.isArray(d) && Jt(d) || (a.isFileList(d) || a.endsWith(h, "[]")) && (E = a.toArray(d)))
325
+ return h = Je(h), E.forEach(function(_, ct) {
326
326
  !(a.isUndefined(_) || _ === null) && t.append(
327
327
  // eslint-disable-next-line no-nested-ternary
328
- o === !0 ? Se([d], ct, i) : o === null ? d : d + "[]",
329
- h(_)
328
+ i === !0 ? Se([h], ct, o) : i === null ? h : h + "[]",
329
+ p(_)
330
330
  );
331
331
  }), !1;
332
332
  }
333
- return oe(f) ? !0 : (t.append(Se(w, d, i), h(f)), !1);
333
+ return oe(d) ? !0 : (t.append(Se(w, h, o), p(d)), !1);
334
334
  }
335
335
  const u = [], g = Object.assign(Mt, {
336
- defaultVisitor: l,
337
- convertValue: h,
336
+ defaultVisitor: f,
337
+ convertValue: p,
338
338
  isVisitable: oe
339
339
  });
340
- function S(f, d) {
341
- if (!a.isUndefined(f)) {
342
- if (u.indexOf(f) !== -1)
343
- throw Error("Circular reference detected in " + d.join("."));
344
- u.push(f), a.forEach(f, function(E, P) {
340
+ function S(d, h) {
341
+ if (!a.isUndefined(d)) {
342
+ if (u.indexOf(d) !== -1)
343
+ throw Error("Circular reference detected in " + h.join("."));
344
+ u.push(d), a.forEach(d, function(E, P) {
345
345
  (!(a.isUndefined(E) || E === null) && s.call(
346
346
  t,
347
347
  E,
348
348
  a.isString(P) ? P.trim() : P,
349
- d,
349
+ h,
350
350
  g
351
- )) === !0 && S(E, d ? d.concat(P) : [P]);
351
+ )) === !0 && S(E, h ? h.concat(P) : [P]);
352
352
  }), u.pop();
353
353
  }
354
354
  }
@@ -392,10 +392,10 @@ function We(e, t, n) {
392
392
  if (!t)
393
393
  return e;
394
394
  const r = n && n.encode || Wt, s = n && n.serialize;
395
- let i;
396
- if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new fe(t, n).toString(r), i) {
397
- const o = e.indexOf("#");
398
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
395
+ let o;
396
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new fe(t, n).toString(r), o) {
397
+ const i = e.indexOf("#");
398
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
399
399
  }
400
400
  return e;
401
401
  }
@@ -477,8 +477,8 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
477
477
  };
478
478
  function rn(e, t) {
479
479
  return X(e, new R.classes.URLSearchParams(), Object.assign({
480
- visitor: function(n, r, s, i) {
481
- return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
480
+ visitor: function(n, r, s, o) {
481
+ return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
482
482
  }
483
483
  }, t));
484
484
  }
@@ -489,16 +489,16 @@ function on(e) {
489
489
  const t = {}, n = Object.keys(e);
490
490
  let r;
491
491
  const s = n.length;
492
- let i;
492
+ let o;
493
493
  for (r = 0; r < s; r++)
494
- i = n[r], t[i] = e[i];
494
+ o = n[r], t[o] = e[o];
495
495
  return t;
496
496
  }
497
497
  function Ye(e) {
498
- function t(n, r, s, i) {
499
- let o = n[i++];
500
- const c = Number.isFinite(+o), p = i >= n.length;
501
- return o = !o && a.isArray(s) ? s.length : o, p ? (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] = on(s[o])), !c);
498
+ function t(n, r, s, o) {
499
+ let i = n[o++];
500
+ const c = Number.isFinite(+i), l = o >= n.length;
501
+ return i = !i && a.isArray(s) ? s.length : i, l ? (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] = on(s[i])), !c);
502
502
  }
503
503
  if (a.isFormData(e) && a.isFunction(e.entries)) {
504
504
  const n = {};
@@ -522,8 +522,8 @@ const de = {
522
522
  transitional: Ge,
523
523
  adapter: ["xhr", "http"],
524
524
  transformRequest: [function(t, n) {
525
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
526
- if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
525
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
526
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
527
527
  return s && s ? JSON.stringify(Ye(t)) : t;
528
528
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
529
529
  return t;
@@ -532,28 +532,28 @@ const de = {
532
532
  if (a.isURLSearchParams(t))
533
533
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
534
534
  let c;
535
- if (i) {
535
+ if (o) {
536
536
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
537
537
  return rn(t, this.formSerializer).toString();
538
538
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
539
- const p = this.env && this.env.FormData;
539
+ const l = this.env && this.env.FormData;
540
540
  return X(
541
541
  c ? { "files[]": t } : t,
542
- p && new p(),
542
+ l && new l(),
543
543
  this.formSerializer
544
544
  );
545
545
  }
546
546
  }
547
- return i || s ? (n.setContentType("application/json", !1), an(t)) : t;
547
+ return o || s ? (n.setContentType("application/json", !1), an(t)) : t;
548
548
  }],
549
549
  transformResponse: [function(t) {
550
550
  const n = this.transitional || de.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
551
551
  if (t && a.isString(t) && (r && !this.responseType || s)) {
552
- const o = !(n && n.silentJSONParsing) && s;
552
+ const i = !(n && n.silentJSONParsing) && s;
553
553
  try {
554
554
  return JSON.parse(t);
555
555
  } catch (c) {
556
- if (o)
556
+ if (i)
557
557
  throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
558
558
  }
559
559
  }
@@ -585,7 +585,7 @@ const de = {
585
585
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
586
586
  de.headers[e] = {};
587
587
  });
588
- const pe = de, cn = a.toObjectSet([
588
+ const he = de, cn = a.toObjectSet([
589
589
  "age",
590
590
  "authorization",
591
591
  "content-length",
@@ -607,8 +607,8 @@ const pe = de, cn = a.toObjectSet([
607
607
  const t = {};
608
608
  let n, r, s;
609
609
  return e && e.split(`
610
- `).forEach(function(o) {
611
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && cn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
610
+ `).forEach(function(i) {
611
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && cn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
612
612
  }), t;
613
613
  }, Re = Symbol("internals");
614
614
  function k(e) {
@@ -638,12 +638,12 @@ function te(e, t, n, r, s) {
638
638
  function dn(e) {
639
639
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
640
640
  }
641
- function pn(e, t) {
641
+ function hn(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, i, o) {
646
- return this[r].call(this, t, s, i, o);
645
+ value: function(s, o, i) {
646
+ return this[r].call(this, t, s, o, i);
647
647
  },
648
648
  configurable: !0
649
649
  });
@@ -655,15 +655,15 @@ let Y = class {
655
655
  }
656
656
  set(t, n, r) {
657
657
  const s = this;
658
- function i(c, p, h) {
659
- const l = k(p);
660
- if (!l)
658
+ function o(c, l, p) {
659
+ const f = k(l);
660
+ if (!f)
661
661
  throw new Error("header name must be a non-empty string");
662
- const u = a.findKey(s, l);
663
- (!u || s[u] === void 0 || h === !0 || h === void 0 && s[u] !== !1) && (s[u || p] = V(c));
662
+ const u = a.findKey(s, f);
663
+ (!u || s[u] === void 0 || p === !0 || p === void 0 && s[u] !== !1) && (s[u || l] = V(c));
664
664
  }
665
- const o = (c, p) => a.forEach(c, (h, l) => i(h, l, p));
666
- return a.isPlainObject(t) || t instanceof this.constructor ? o(t, n) : a.isString(t) && (t = t.trim()) && !fn(t) ? o(un(t), n) : t != null && i(n, t, r), this;
665
+ const i = (c, l) => a.forEach(c, (p, f) => o(p, f, l));
666
+ return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !fn(t) ? i(un(t), n) : t != null && o(n, t, r), this;
667
667
  }
668
668
  get(t, n) {
669
669
  if (t = k(t), t) {
@@ -692,33 +692,33 @@ let Y = class {
692
692
  delete(t, n) {
693
693
  const r = this;
694
694
  let s = !1;
695
- function i(o) {
696
- if (o = k(o), o) {
697
- const c = a.findKey(r, o);
695
+ function o(i) {
696
+ if (i = k(i), i) {
697
+ const c = a.findKey(r, i);
698
698
  c && (!n || te(r, r[c], c, n)) && (delete r[c], s = !0);
699
699
  }
700
700
  }
701
- return a.isArray(t) ? t.forEach(i) : i(t), s;
701
+ return a.isArray(t) ? t.forEach(o) : o(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 i = n[r];
708
- (!t || te(this, this[i], i, t, !0)) && (delete this[i], s = !0);
707
+ const o = n[r];
708
+ (!t || te(this, this[o], o, t, !0)) && (delete this[o], 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, i) => {
715
- const o = a.findKey(r, i);
716
- if (o) {
717
- n[o] = V(s), delete n[i];
714
+ return a.forEach(this, (s, o) => {
715
+ const i = a.findKey(r, o);
716
+ if (i) {
717
+ n[i] = V(s), delete n[o];
718
718
  return;
719
719
  }
720
- const c = t ? dn(i) : String(i).trim();
721
- c !== i && delete n[i], n[c] = V(s), r[c] = !0;
720
+ const c = t ? dn(o) : String(o).trim();
721
+ c !== o && delete n[o], n[c] = V(s), r[c] = !0;
722
722
  }), this;
723
723
  }
724
724
  concat(...t) {
@@ -751,11 +751,11 @@ let Y = class {
751
751
  const r = (this[Re] = this[Re] = {
752
752
  accessors: {}
753
753
  }).accessors, s = this.prototype;
754
- function i(o) {
755
- const c = k(o);
756
- r[c] || (pn(s, o), r[c] = !0);
754
+ function o(i) {
755
+ const c = k(i);
756
+ r[c] || (hn(s, i), r[c] = !0);
757
757
  }
758
- return a.isArray(t) ? t.forEach(i) : i(t), this;
758
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
759
759
  }
760
760
  };
761
761
  Y.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
@@ -771,11 +771,11 @@ a.reduceDescriptors(Y.prototype, ({ value: e }, t) => {
771
771
  a.freezeMethods(Y);
772
772
  const T = Y;
773
773
  function ne(e, t) {
774
- const n = this || pe, r = t || n, s = T.from(r.headers);
775
- let i = r.data;
774
+ const n = this || he, r = t || n, s = T.from(r.headers);
775
+ let o = r.data;
776
776
  return a.forEach(e, function(c) {
777
- i = c.call(n, i, s.normalize(), t ? t.status : void 0);
778
- }), s.normalize(), i;
777
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
778
+ }), s.normalize(), o;
779
779
  }
780
780
  function Qe(e) {
781
781
  return !!(e && e.__CANCEL__);
@@ -786,7 +786,7 @@ function q(e, t, n) {
786
786
  a.inherits(q, m, {
787
787
  __CANCEL__: !0
788
788
  });
789
- function hn(e, t, n) {
789
+ function pn(e, t, n) {
790
790
  const r = n.config.validateStatus;
791
791
  !n.status || !r || r(n.status) ? e(n) : t(new m(
792
792
  "Request failed with status code " + n.status,
@@ -799,9 +799,9 @@ function hn(e, t, n) {
799
799
  const mn = R.hasStandardBrowserEnv ? (
800
800
  // Standard browser envs support document.cookie
801
801
  {
802
- write(e, t, n, r, s, i) {
803
- const o = [e + "=" + encodeURIComponent(t)];
804
- a.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), a.isString(r) && o.push("path=" + r), a.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
802
+ write(e, t, n, r, s, o) {
803
+ const i = [e + "=" + encodeURIComponent(t)];
804
+ a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
805
805
  },
806
806
  read(e) {
807
807
  const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
@@ -838,9 +838,9 @@ const wn = R.hasStandardBrowserEnv ? (
838
838
  function() {
839
839
  const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
840
840
  let r;
841
- function s(i) {
842
- let o = i;
843
- return t && (n.setAttribute("href", o), o = n.href), n.setAttribute("href", o), {
841
+ function s(o) {
842
+ let i = o;
843
+ return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
844
844
  href: n.href,
845
845
  protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
846
846
  host: n.host,
@@ -851,8 +851,8 @@ const wn = R.hasStandardBrowserEnv ? (
851
851
  pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
852
852
  };
853
853
  }
854
- return r = s(window.location.href), function(o) {
855
- const c = a.isString(o) ? s(o) : o;
854
+ return r = s(window.location.href), function(i) {
855
+ const c = a.isString(i) ? s(i) : i;
856
856
  return c.protocol === r.protocol && c.host === r.host;
857
857
  };
858
858
  }()
@@ -871,16 +871,16 @@ function bn(e) {
871
871
  function En(e, t) {
872
872
  e = e || 10;
873
873
  const n = new Array(e), r = new Array(e);
874
- let s = 0, i = 0, o;
875
- return t = t !== void 0 ? t : 1e3, function(p) {
876
- const h = Date.now(), l = r[i];
877
- o || (o = h), n[s] = p, r[s] = h;
878
- let u = i, g = 0;
874
+ let s = 0, o = 0, i;
875
+ return t = t !== void 0 ? t : 1e3, function(l) {
876
+ const p = Date.now(), f = r[o];
877
+ i || (i = p), n[s] = l, r[s] = p;
878
+ let u = o, g = 0;
879
879
  for (; u !== s; )
880
880
  g += n[u++], u = u % e;
881
- if (s = (s + 1) % e, s === i && (i = (i + 1) % e), h - o < t)
881
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), p - i < t)
882
882
  return;
883
- const S = l && h - l;
883
+ const S = f && p - f;
884
884
  return S ? Math.round(g * 1e3 / S) : void 0;
885
885
  };
886
886
  }
@@ -888,61 +888,61 @@ function Oe(e, t) {
888
888
  let n = 0;
889
889
  const r = En(50, 250);
890
890
  return (s) => {
891
- const i = s.loaded, o = s.lengthComputable ? s.total : void 0, c = i - n, p = r(c), h = i <= o;
892
- n = i;
893
- const l = {
894
- loaded: i,
895
- total: o,
896
- progress: o ? i / o : void 0,
891
+ const o = s.loaded, i = s.lengthComputable ? s.total : void 0, c = o - n, l = r(c), p = o <= i;
892
+ n = o;
893
+ const f = {
894
+ loaded: o,
895
+ total: i,
896
+ progress: i ? o / i : void 0,
897
897
  bytes: c,
898
- rate: p || void 0,
899
- estimated: p && o && h ? (o - i) / p : void 0,
898
+ rate: l || void 0,
899
+ estimated: l && i && p ? (i - o) / l : void 0,
900
900
  event: s
901
901
  };
902
- l[t ? "download" : "upload"] = !0, e(l);
902
+ f[t ? "download" : "upload"] = !0, e(f);
903
903
  };
904
904
  }
905
905
  const Sn = typeof XMLHttpRequest < "u", Cn = Sn && function(e) {
906
906
  return new Promise(function(n, r) {
907
907
  let s = e.data;
908
- const i = T.from(e.headers).normalize();
909
- let { responseType: o, withXSRFToken: c } = e, p;
910
- function h() {
911
- e.cancelToken && e.cancelToken.unsubscribe(p), e.signal && e.signal.removeEventListener("abort", p);
908
+ const o = T.from(e.headers).normalize();
909
+ let { responseType: i, withXSRFToken: c } = e, l;
910
+ function p() {
911
+ e.cancelToken && e.cancelToken.unsubscribe(l), e.signal && e.signal.removeEventListener("abort", l);
912
912
  }
913
- let l;
913
+ let f;
914
914
  if (a.isFormData(s)) {
915
915
  if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
916
- i.setContentType(!1);
917
- else if ((l = i.getContentType()) !== !1) {
918
- const [d, ...w] = l ? l.split(";").map((E) => E.trim()).filter(Boolean) : [];
919
- i.setContentType([d || "multipart/form-data", ...w].join("; "));
916
+ o.setContentType(!1);
917
+ else if ((f = o.getContentType()) !== !1) {
918
+ const [h, ...w] = f ? f.split(";").map((E) => E.trim()).filter(Boolean) : [];
919
+ o.setContentType([h || "multipart/form-data", ...w].join("; "));
920
920
  }
921
921
  }
922
922
  let u = new XMLHttpRequest();
923
923
  if (e.auth) {
924
- const d = e.auth.username || "", w = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
925
- i.set("Authorization", "Basic " + btoa(d + ":" + w));
924
+ const h = e.auth.username || "", w = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
925
+ o.set("Authorization", "Basic " + btoa(h + ":" + w));
926
926
  }
927
927
  const g = Ze(e.baseURL, e.url);
928
928
  u.open(e.method.toUpperCase(), We(g, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
929
929
  function S() {
930
930
  if (!u)
931
931
  return;
932
- const d = T.from(
932
+ const h = T.from(
933
933
  "getAllResponseHeaders" in u && u.getAllResponseHeaders()
934
934
  ), E = {
935
- data: !o || o === "text" || o === "json" ? u.responseText : u.response,
935
+ data: !i || i === "text" || i === "json" ? u.responseText : u.response,
936
936
  status: u.status,
937
937
  statusText: u.statusText,
938
- headers: d,
938
+ headers: h,
939
939
  config: e,
940
940
  request: u
941
941
  };
942
- hn(function(_) {
943
- n(_), h();
942
+ pn(function(_) {
943
+ n(_), p();
944
944
  }, function(_) {
945
- r(_), h();
945
+ r(_), p();
946
946
  }, E), u = null;
947
947
  }
948
948
  if ("onloadend" in u ? u.onloadend = S : u.onreadystatechange = function() {
@@ -961,17 +961,17 @@ const Sn = typeof XMLHttpRequest < "u", Cn = Sn && function(e) {
961
961
  u
962
962
  )), u = null;
963
963
  }, R.hasStandardBrowserEnv && (c && a.isFunction(c) && (c = c(e)), c || c !== !1 && wn(g))) {
964
- const d = e.xsrfHeaderName && e.xsrfCookieName && mn.read(e.xsrfCookieName);
965
- d && i.set(e.xsrfHeaderName, d);
964
+ const h = e.xsrfHeaderName && e.xsrfCookieName && mn.read(e.xsrfCookieName);
965
+ h && o.set(e.xsrfHeaderName, h);
966
966
  }
967
- s === void 0 && i.setContentType(null), "setRequestHeader" in u && a.forEach(i.toJSON(), function(w, E) {
967
+ s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(w, E) {
968
968
  u.setRequestHeader(E, w);
969
- }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), o && o !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", Oe(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Oe(e.onUploadProgress)), (e.cancelToken || e.signal) && (p = (d) => {
970
- u && (r(!d || d.type ? new q(null, e, u) : d), u.abort(), u = null);
971
- }, e.cancelToken && e.cancelToken.subscribe(p), e.signal && (e.signal.aborted ? p() : e.signal.addEventListener("abort", p)));
972
- const f = bn(g);
973
- if (f && R.protocols.indexOf(f) === -1) {
974
- r(new m("Unsupported protocol " + f + ":", m.ERR_BAD_REQUEST, e));
969
+ }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", Oe(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Oe(e.onUploadProgress)), (e.cancelToken || e.signal) && (l = (h) => {
970
+ u && (r(!h || h.type ? new q(null, e, u) : h), u.abort(), u = null);
971
+ }, e.cancelToken && e.cancelToken.subscribe(l), e.signal && (e.signal.aborted ? l() : e.signal.addEventListener("abort", l)));
972
+ const d = bn(g);
973
+ if (d && R.protocols.indexOf(d) === -1) {
974
+ r(new m("Unsupported protocol " + d + ":", m.ERR_BAD_REQUEST, e));
975
975
  return;
976
976
  }
977
977
  u.send(s || null);
@@ -995,24 +995,24 @@ const Te = (e) => `- ${e}`, An = (e) => a.isFunction(e) || e === null || e === !
995
995
  const { length: t } = e;
996
996
  let n, r;
997
997
  const s = {};
998
- for (let i = 0; i < t; i++) {
999
- n = e[i];
1000
- let o;
1001
- if (r = n, !An(n) && (r = ie[(o = String(n)).toLowerCase()], r === void 0))
1002
- throw new m(`Unknown adapter '${o}'`);
998
+ for (let o = 0; o < t; o++) {
999
+ n = e[o];
1000
+ let i;
1001
+ if (r = n, !An(n) && (r = ie[(i = String(n)).toLowerCase()], r === void 0))
1002
+ throw new m(`Unknown adapter '${i}'`);
1003
1003
  if (r)
1004
1004
  break;
1005
- s[o || "#" + i] = r;
1005
+ s[i || "#" + o] = r;
1006
1006
  }
1007
1007
  if (!r) {
1008
- const i = Object.entries(s).map(
1009
- ([c, p]) => `adapter ${c} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1008
+ const o = Object.entries(s).map(
1009
+ ([c, l]) => `adapter ${c} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1010
1010
  );
1011
- let o = t ? i.length > 1 ? `since :
1012
- ` + i.map(Te).join(`
1013
- `) : " " + Te(i[0]) : "as no adapter specified";
1011
+ let i = t ? o.length > 1 ? `since :
1012
+ ` + o.map(Te).join(`
1013
+ `) : " " + Te(o[0]) : "as no adapter specified";
1014
1014
  throw new m(
1015
- "There is no suitable adapter to dispatch the request " + o,
1015
+ "There is no suitable adapter to dispatch the request " + i,
1016
1016
  "ERR_NOT_SUPPORT"
1017
1017
  );
1018
1018
  }
@@ -1028,7 +1028,7 @@ function Pe(e) {
1028
1028
  return re(e), e.headers = T.from(e.headers), e.data = ne.call(
1029
1029
  e,
1030
1030
  e.transformRequest
1031
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), et.getAdapter(e.adapter || pe.adapter)(e).then(function(r) {
1031
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), et.getAdapter(e.adapter || he.adapter)(e).then(function(r) {
1032
1032
  return re(e), r.data = ne.call(
1033
1033
  e,
1034
1034
  e.transformResponse,
@@ -1046,92 +1046,92 @@ const _e = (e) => e instanceof T ? e.toJSON() : e;
1046
1046
  function F(e, t) {
1047
1047
  t = t || {};
1048
1048
  const n = {};
1049
- function r(h, l, u) {
1050
- return a.isPlainObject(h) && a.isPlainObject(l) ? a.merge.call({ caseless: u }, h, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
1049
+ function r(p, f, u) {
1050
+ return a.isPlainObject(p) && a.isPlainObject(f) ? a.merge.call({ caseless: u }, p, f) : a.isPlainObject(f) ? a.merge({}, f) : a.isArray(f) ? f.slice() : f;
1051
1051
  }
1052
- function s(h, l, u) {
1053
- if (a.isUndefined(l)) {
1054
- if (!a.isUndefined(h))
1055
- return r(void 0, h, u);
1052
+ function s(p, f, u) {
1053
+ if (a.isUndefined(f)) {
1054
+ if (!a.isUndefined(p))
1055
+ return r(void 0, p, u);
1056
1056
  } else
1057
- return r(h, l, u);
1057
+ return r(p, f, u);
1058
1058
  }
1059
- function i(h, l) {
1060
- if (!a.isUndefined(l))
1061
- return r(void 0, l);
1059
+ function o(p, f) {
1060
+ if (!a.isUndefined(f))
1061
+ return r(void 0, f);
1062
1062
  }
1063
- function o(h, l) {
1064
- if (a.isUndefined(l)) {
1065
- if (!a.isUndefined(h))
1066
- return r(void 0, h);
1063
+ function i(p, f) {
1064
+ if (a.isUndefined(f)) {
1065
+ if (!a.isUndefined(p))
1066
+ return r(void 0, p);
1067
1067
  } else
1068
- return r(void 0, l);
1068
+ return r(void 0, f);
1069
1069
  }
1070
- function c(h, l, u) {
1070
+ function c(p, f, u) {
1071
1071
  if (u in t)
1072
- return r(h, l);
1072
+ return r(p, f);
1073
1073
  if (u in e)
1074
- return r(void 0, h);
1075
- }
1076
- const p = {
1077
- url: i,
1078
- method: i,
1079
- data: i,
1080
- baseURL: o,
1081
- transformRequest: o,
1082
- transformResponse: o,
1083
- paramsSerializer: o,
1084
- timeout: o,
1085
- timeoutMessage: o,
1086
- withCredentials: o,
1087
- withXSRFToken: o,
1088
- adapter: o,
1089
- responseType: o,
1090
- xsrfCookieName: o,
1091
- xsrfHeaderName: o,
1092
- onUploadProgress: o,
1093
- onDownloadProgress: o,
1094
- decompress: o,
1095
- maxContentLength: o,
1096
- maxBodyLength: o,
1097
- beforeRedirect: o,
1098
- transport: o,
1099
- httpAgent: o,
1100
- httpsAgent: o,
1101
- cancelToken: o,
1102
- socketPath: o,
1103
- responseEncoding: o,
1074
+ return r(void 0, p);
1075
+ }
1076
+ const l = {
1077
+ url: o,
1078
+ method: o,
1079
+ data: o,
1080
+ baseURL: i,
1081
+ transformRequest: i,
1082
+ transformResponse: i,
1083
+ paramsSerializer: i,
1084
+ timeout: i,
1085
+ timeoutMessage: i,
1086
+ withCredentials: i,
1087
+ withXSRFToken: i,
1088
+ adapter: i,
1089
+ responseType: i,
1090
+ xsrfCookieName: i,
1091
+ xsrfHeaderName: i,
1092
+ onUploadProgress: i,
1093
+ onDownloadProgress: i,
1094
+ decompress: i,
1095
+ maxContentLength: i,
1096
+ maxBodyLength: i,
1097
+ beforeRedirect: i,
1098
+ transport: i,
1099
+ httpAgent: i,
1100
+ httpsAgent: i,
1101
+ cancelToken: i,
1102
+ socketPath: i,
1103
+ responseEncoding: i,
1104
1104
  validateStatus: c,
1105
- headers: (h, l) => s(_e(h), _e(l), !0)
1105
+ headers: (p, f) => s(_e(p), _e(f), !0)
1106
1106
  };
1107
- return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
1108
- const u = p[l] || s, g = u(e[l], t[l], l);
1109
- a.isUndefined(g) && u !== c || (n[l] = g);
1107
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(f) {
1108
+ const u = l[f] || s, g = u(e[f], t[f], f);
1109
+ a.isUndefined(g) && u !== c || (n[f] = g);
1110
1110
  }), n;
1111
1111
  }
1112
- const tt = "1.6.3", he = {};
1112
+ const tt = "1.6.3", pe = {};
1113
1113
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1114
- he[e] = function(r) {
1114
+ pe[e] = function(r) {
1115
1115
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1116
1116
  };
1117
1117
  });
1118
1118
  const xe = {};
1119
- he.transitional = function(t, n, r) {
1120
- function s(i, o) {
1121
- return "[Axios v" + tt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1119
+ pe.transitional = function(t, n, r) {
1120
+ function s(o, i) {
1121
+ return "[Axios v" + tt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1122
1122
  }
1123
- return (i, o, c) => {
1123
+ return (o, i, c) => {
1124
1124
  if (t === !1)
1125
1125
  throw new m(
1126
- s(o, " has been removed" + (n ? " in " + n : "")),
1126
+ s(i, " has been removed" + (n ? " in " + n : "")),
1127
1127
  m.ERR_DEPRECATED
1128
1128
  );
1129
- return n && !xe[o] && (xe[o] = !0, console.warn(
1129
+ return n && !xe[i] && (xe[i] = !0, console.warn(
1130
1130
  s(
1131
- o,
1131
+ i,
1132
1132
  " has been deprecated since v" + n + " and will be removed in the near future"
1133
1133
  )
1134
- )), t ? t(i, o, c) : !0;
1134
+ )), t ? t(o, i, c) : !0;
1135
1135
  };
1136
1136
  };
1137
1137
  function Rn(e, t, n) {
@@ -1140,20 +1140,20 @@ function Rn(e, t, n) {
1140
1140
  const r = Object.keys(e);
1141
1141
  let s = r.length;
1142
1142
  for (; s-- > 0; ) {
1143
- const i = r[s], o = t[i];
1144
- if (o) {
1145
- const c = e[i], p = c === void 0 || o(c, i, e);
1146
- if (p !== !0)
1147
- throw new m("option " + i + " must be " + p, m.ERR_BAD_OPTION_VALUE);
1143
+ const o = r[s], i = t[o];
1144
+ if (i) {
1145
+ const c = e[o], l = c === void 0 || i(c, o, e);
1146
+ if (l !== !0)
1147
+ throw new m("option " + o + " must be " + l, m.ERR_BAD_OPTION_VALUE);
1148
1148
  continue;
1149
1149
  }
1150
1150
  if (n !== !0)
1151
- throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
1151
+ throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1152
1152
  }
1153
1153
  }
1154
1154
  const ae = {
1155
1155
  assertOptions: Rn,
1156
- validators: he
1156
+ validators: pe
1157
1157
  }, x = ae.validators;
1158
1158
  let J = class {
1159
1159
  constructor(t) {
@@ -1172,7 +1172,7 @@ let J = class {
1172
1172
  */
1173
1173
  request(t, n) {
1174
1174
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = F(this.defaults, n);
1175
- const { transitional: r, paramsSerializer: s, headers: i } = n;
1175
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1176
1176
  r !== void 0 && ae.assertOptions(r, {
1177
1177
  silentJSONParsing: x.transitional(x.boolean),
1178
1178
  forcedJSONParsing: x.transitional(x.boolean),
@@ -1183,51 +1183,51 @@ let J = class {
1183
1183
  encode: x.function,
1184
1184
  serialize: x.function
1185
1185
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1186
- let o = i && a.merge(
1187
- i.common,
1188
- i[n.method]
1186
+ let i = o && a.merge(
1187
+ o.common,
1188
+ o[n.method]
1189
1189
  );
1190
- i && a.forEach(
1190
+ o && a.forEach(
1191
1191
  ["delete", "get", "head", "post", "put", "patch", "common"],
1192
- (f) => {
1193
- delete i[f];
1192
+ (d) => {
1193
+ delete o[d];
1194
1194
  }
1195
- ), n.headers = T.concat(o, i);
1195
+ ), n.headers = T.concat(i, o);
1196
1196
  const c = [];
1197
- let p = !0;
1198
- this.interceptors.request.forEach(function(d) {
1199
- typeof d.runWhen == "function" && d.runWhen(n) === !1 || (p = p && d.synchronous, c.unshift(d.fulfilled, d.rejected));
1197
+ let l = !0;
1198
+ this.interceptors.request.forEach(function(h) {
1199
+ typeof h.runWhen == "function" && h.runWhen(n) === !1 || (l = l && h.synchronous, c.unshift(h.fulfilled, h.rejected));
1200
1200
  });
1201
- const h = [];
1202
- this.interceptors.response.forEach(function(d) {
1203
- h.push(d.fulfilled, d.rejected);
1201
+ const p = [];
1202
+ this.interceptors.response.forEach(function(h) {
1203
+ p.push(h.fulfilled, h.rejected);
1204
1204
  });
1205
- let l, u = 0, g;
1206
- if (!p) {
1207
- const f = [Pe.bind(this), void 0];
1208
- for (f.unshift.apply(f, c), f.push.apply(f, h), g = f.length, l = Promise.resolve(n); u < g; )
1209
- l = l.then(f[u++], f[u++]);
1210
- return l;
1205
+ let f, u = 0, g;
1206
+ if (!l) {
1207
+ const d = [Pe.bind(this), void 0];
1208
+ for (d.unshift.apply(d, c), d.push.apply(d, p), g = d.length, f = Promise.resolve(n); u < g; )
1209
+ f = f.then(d[u++], d[u++]);
1210
+ return f;
1211
1211
  }
1212
1212
  g = c.length;
1213
1213
  let S = n;
1214
1214
  for (u = 0; u < g; ) {
1215
- const f = c[u++], d = c[u++];
1215
+ const d = c[u++], h = c[u++];
1216
1216
  try {
1217
- S = f(S);
1217
+ S = d(S);
1218
1218
  } catch (w) {
1219
- d.call(this, w);
1219
+ h.call(this, w);
1220
1220
  break;
1221
1221
  }
1222
1222
  }
1223
1223
  try {
1224
- l = Pe.call(this, S);
1225
- } catch (f) {
1226
- return Promise.reject(f);
1224
+ f = Pe.call(this, S);
1225
+ } catch (d) {
1226
+ return Promise.reject(d);
1227
1227
  }
1228
- for (u = 0, g = h.length; u < g; )
1229
- l = l.then(h[u++], h[u++]);
1230
- return l;
1228
+ for (u = 0, g = p.length; u < g; )
1229
+ f = f.then(p[u++], p[u++]);
1230
+ return f;
1231
1231
  }
1232
1232
  getUri(t) {
1233
1233
  t = F(this.defaults, t);
@@ -1246,14 +1246,14 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1246
1246
  });
1247
1247
  a.forEach(["post", "put", "patch"], function(t) {
1248
1248
  function n(r) {
1249
- return function(i, o, c) {
1249
+ return function(o, i, c) {
1250
1250
  return this.request(F(c || {}, {
1251
1251
  method: t,
1252
1252
  headers: r ? {
1253
1253
  "Content-Type": "multipart/form-data"
1254
1254
  } : {},
1255
- url: i,
1256
- data: o
1255
+ url: o,
1256
+ data: i
1257
1257
  }));
1258
1258
  };
1259
1259
  }
@@ -1265,27 +1265,27 @@ let On = class nt {
1265
1265
  if (typeof t != "function")
1266
1266
  throw new TypeError("executor must be a function.");
1267
1267
  let n;
1268
- this.promise = new Promise(function(i) {
1269
- n = i;
1268
+ this.promise = new Promise(function(o) {
1269
+ n = o;
1270
1270
  });
1271
1271
  const r = this;
1272
1272
  this.promise.then((s) => {
1273
1273
  if (!r._listeners)
1274
1274
  return;
1275
- let i = r._listeners.length;
1276
- for (; i-- > 0; )
1277
- r._listeners[i](s);
1275
+ let o = r._listeners.length;
1276
+ for (; o-- > 0; )
1277
+ r._listeners[o](s);
1278
1278
  r._listeners = null;
1279
1279
  }), this.promise.then = (s) => {
1280
- let i;
1281
- const o = new Promise((c) => {
1282
- r.subscribe(c), i = c;
1280
+ let o;
1281
+ const i = new Promise((c) => {
1282
+ r.subscribe(c), o = c;
1283
1283
  }).then(s);
1284
- return o.cancel = function() {
1285
- r.unsubscribe(i);
1286
- }, o;
1287
- }, t(function(i, o, c) {
1288
- r.reason || (r.reason = new q(i, o, c), n(r.reason));
1284
+ return i.cancel = function() {
1285
+ r.unsubscribe(o);
1286
+ }, i;
1287
+ }, t(function(o, i, c) {
1288
+ r.reason || (r.reason = new q(o, i, c), n(r.reason));
1289
1289
  });
1290
1290
  }
1291
1291
  /**
@@ -1412,7 +1412,7 @@ function rt(e) {
1412
1412
  return rt(F(e, s));
1413
1413
  }, n;
1414
1414
  }
1415
- const y = rt(pe);
1415
+ const y = rt(he);
1416
1416
  y.Axios = K;
1417
1417
  y.CanceledError = q;
1418
1418
  y.CancelToken = Tn;
@@ -1482,43 +1482,45 @@ class Nn {
1482
1482
  b(this, "_debug");
1483
1483
  this.httpClient = t.httpClient, this._debug = t.debug;
1484
1484
  }
1485
- async create(t, n, r) {
1486
- var s;
1485
+ async create(t, n, r, s) {
1486
+ var o;
1487
1487
  try {
1488
1488
  await this.httpClient.post("/affiliates", {
1489
1489
  address: t,
1490
1490
  name: n,
1491
1491
  code: n,
1492
- signature: r
1492
+ signature: r,
1493
+ account_chain_id: s
1493
1494
  });
1494
1495
  } catch (i) {
1495
1496
  if (i instanceof H) {
1496
- const o = (s = i.response) == null ? void 0 : s.data;
1497
- if (typeof (o == null ? void 0 : o.message) == "string") {
1498
- const c = o.message.toLowerCase();
1499
- throw c == "invalid signature" ? new Le() : c == "address in use" ? new Ue(t) : c == "code in use" ? new Fe(n) : new Error(c);
1500
- } else if ((o == null ? void 0 : o.message) instanceof Array)
1501
- throw new Ne(o.message);
1497
+ const c = (o = i.response) == null ? void 0 : o.data;
1498
+ if (typeof (c == null ? void 0 : c.message) == "string") {
1499
+ const l = c.message.toLowerCase();
1500
+ throw l == "invalid signature" ? new Le() : l == "address in use" ? new Ue(t) : l == "code in use" ? new Fe(n) : new Error(l);
1501
+ } else if ((c == null ? void 0 : c.message) instanceof Array)
1502
+ throw new Ne(c.message);
1502
1503
  }
1503
1504
  throw i;
1504
1505
  }
1505
1506
  }
1506
- async update(t, n, r) {
1507
- var s;
1507
+ async update(t, n, r, s) {
1508
+ var o;
1508
1509
  try {
1509
1510
  await this.httpClient.post(`/affiliates/${t}`, {
1510
1511
  code: n,
1511
1512
  address: t,
1512
- signature: r
1513
+ signature: r,
1514
+ account_chain_id: s
1513
1515
  });
1514
1516
  } catch (i) {
1515
1517
  if (i instanceof H) {
1516
- const o = (s = i.response) == null ? void 0 : s.data;
1517
- if (typeof (o == null ? void 0 : o.message) == "string") {
1518
- const c = o.message.toLowerCase();
1519
- throw c == "invalid signature" ? new Le() : c == "address in use" ? new Ue(t) : c == "code in use" ? new Fe(n) : new Error(c);
1520
- } else if ((o == null ? void 0 : o.message) instanceof Array)
1521
- throw new Ne(o.message);
1518
+ const c = (o = i.response) == null ? void 0 : o.data;
1519
+ if (typeof (c == null ? void 0 : c.message) == "string") {
1520
+ const l = c.message.toLowerCase();
1521
+ throw l == "invalid signature" ? new Le() : l == "address in use" ? new Ue(t) : l == "code in use" ? new Fe(n) : new Error(l);
1522
+ } else if ((c == null ? void 0 : c.message) instanceof Array)
1523
+ throw new Ne(c.message);
1522
1524
  }
1523
1525
  throw i;
1524
1526
  }
@@ -1586,10 +1588,10 @@ class Bn {
1586
1588
  const s = JSON.parse(r);
1587
1589
  if (this.getCurrentTimestamp() - s.timestamp > Dn)
1588
1590
  return !1;
1591
+ let l = !1;
1592
+ t.metadata && (l = 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);
1589
1593
  let p = !1;
1590
- t.metadata && (p = 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);
1591
- let h = !1;
1592
- return t.args && s.args && (h = s.args.page === t.args.page), h && p;
1594
+ return t.args && s.args && (p = s.args.page === t.args.page), p && l;
1593
1595
  }
1594
1596
  getCurrentTimestamp() {
1595
1597
  return Date.now() / 1e3;
@@ -1599,7 +1601,7 @@ class Bn {
1599
1601
  localStorage.setItem(n, JSON.stringify(s));
1600
1602
  }
1601
1603
  }
1602
- const In = "4.10.1", kn = {
1604
+ const In = "4.11.0", kn = {
1603
1605
  version: In
1604
1606
  };
1605
1607
  class jn {
@@ -1749,11 +1751,11 @@ async function nr(e) {
1749
1751
  };
1750
1752
  e != null && e.address && (t.user_address = e.address), e != null && e.signature && (t.signature = e == null ? void 0 : e.signature, t.signature_message = e == null ? void 0 : e.message), e != null && e.accountChainId && (t.account_chain_id = e.accountChainId), await Q.sendEvent(t);
1751
1753
  }
1752
- async function rr(e, t, n) {
1753
- A(), await B.create(e, t, n);
1754
+ async function rr(e) {
1755
+ A(), await B.create(e.address, e.code, e.signature, e.accountChainId);
1754
1756
  }
1755
- async function sr(e, t, n) {
1756
- A(), await B.update(e, t, n);
1757
+ async function sr(e) {
1758
+ A(), await B.update(e.address, e.code, e.signature, e.accountChainId);
1757
1759
  }
1758
1760
  async function or(e) {
1759
1761
  return A(), await B.getCode(e);
@@ -1783,10 +1785,10 @@ function fr(e) {
1783
1785
  function dr(e) {
1784
1786
  return I.getUserPayoutsByConversion(e);
1785
1787
  }
1786
- function pr(e) {
1788
+ function hr(e) {
1787
1789
  return I.getUserPointsByConversion(e);
1788
1790
  }
1789
- function hr(e) {
1791
+ function pr(e) {
1790
1792
  return I.getUserPayoutMovements(e);
1791
1793
  }
1792
1794
  function mr(e) {
@@ -1837,9 +1839,9 @@ const vr = {
1837
1839
  getReferredUsersLeaderboard: lr,
1838
1840
  getUserAudiences: wr,
1839
1841
  getUserPayoutsByConversion: dr,
1840
- getUserPointsByConversion: pr,
1842
+ getUserPointsByConversion: hr,
1841
1843
  getUserPointsMovements: mr,
1842
- getUserPayoutMovements: hr,
1844
+ getUserPayoutMovements: pr,
1843
1845
  getUserAffiliates: gr,
1844
1846
  getVolumeLeaderboard: fr
1845
1847
  };