@fuul/sdk 7.25.0 → 7.27.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
@@ -1,15 +1,15 @@
1
1
  var zt = Object.defineProperty;
2
2
  var Jt = (t, e, r) => e in t ? zt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var b = (t, e, r) => Jt(t, typeof e != "symbol" ? e + "" : e, r);
4
- const Z = "/affiliate-portal";
3
+ var w = (t, e, r) => Jt(t, typeof e != "symbol" ? e + "" : e, r);
4
+ const ee = "/affiliate-portal";
5
5
  class Wt {
6
6
  constructor(e) {
7
- b(this, "httpClient");
7
+ w(this, "httpClient");
8
8
  this.httpClient = e.httpClient;
9
9
  }
10
10
  async getAffiliateStats(e) {
11
11
  return (await this.httpClient.get({
12
- path: `${Z}/stats`,
12
+ path: `${ee}/stats`,
13
13
  queryParams: {
14
14
  user_identifier: e.user_identifier,
15
15
  from: e.from,
@@ -23,7 +23,7 @@ class Wt {
23
23
  }
24
24
  async getAffiliateTotalStats(e) {
25
25
  return (await this.httpClient.get({
26
- path: `${Z}/total-stats`,
26
+ path: `${ee}/total-stats`,
27
27
  queryParams: {
28
28
  statuses: e.statuses,
29
29
  regions: e.regions,
@@ -33,7 +33,7 @@ class Wt {
33
33
  }
34
34
  async getReferralTree(e) {
35
35
  return (await this.httpClient.get({
36
- path: `${Z}/referral-tree`,
36
+ path: `${ee}/referral-tree`,
37
37
  queryParams: {
38
38
  user_identifier: e.user_identifier
39
39
  }
@@ -41,7 +41,7 @@ class Wt {
41
41
  }
42
42
  async getStatsBreakdown(e) {
43
43
  return (await this.httpClient.get({
44
- path: `${Z}/stats-breakdown`,
44
+ path: `${ee}/stats-breakdown`,
45
45
  queryParams: {
46
46
  user_identifier: e.user_identifier,
47
47
  group_by: e.group_by,
@@ -56,7 +56,7 @@ class Wt {
56
56
  }
57
57
  async getAffiliateNewTraders(e) {
58
58
  return (await this.httpClient.get({
59
- path: `${Z}/new-traders`,
59
+ path: `${ee}/new-traders`,
60
60
  queryParams: {
61
61
  user_identifier: e.user_identifier,
62
62
  from: e.from,
@@ -66,28 +66,28 @@ class Wt {
66
66
  })).data;
67
67
  }
68
68
  }
69
- function _t(t, e) {
69
+ function Ct(t, e) {
70
70
  return function() {
71
71
  return t.apply(e, arguments);
72
72
  };
73
73
  }
74
- const { toString: Qt } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: we, toStringTag: Ct } = Symbol, be = /* @__PURE__ */ ((t) => (e) => {
74
+ const { toString: Qt } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: _e, toStringTag: Rt } = Symbol, we = /* @__PURE__ */ ((t) => (e) => {
75
75
  const r = Qt.call(e);
76
76
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
77
- })(/* @__PURE__ */ Object.create(null)), F = (t) => (t = t.toLowerCase(), (e) => be(e) === t), _e = (t) => (e) => typeof e === t, { isArray: Q } = Array, J = _e("undefined");
77
+ })(/* @__PURE__ */ Object.create(null)), k = (t) => (t = t.toLowerCase(), (e) => we(e) === t), be = (t) => (e) => typeof e === t, { isArray: Y } = Array, Q = be("undefined");
78
78
  function re(t) {
79
- return t !== null && !J(t) && t.constructor !== null && !J(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
79
+ return t !== null && !Q(t) && t.constructor !== null && !Q(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
80
80
  }
81
- const Et = F("ArrayBuffer");
81
+ const Et = k("ArrayBuffer");
82
82
  function Xt(t) {
83
83
  let e;
84
84
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Et(t.buffer), e;
85
85
  }
86
- const Yt = _e("string"), P = _e("function"), Rt = _e("number"), ne = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, pe = (t) => {
87
- if (be(t) !== "object")
86
+ const Yt = be("string"), P = be("function"), St = be("number"), ne = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, pe = (t) => {
87
+ if (we(t) !== "object")
88
88
  return !1;
89
89
  const e = Be(t);
90
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ct in t) && !(we in t);
90
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Rt in t) && !(_e in t);
91
91
  }, Zt = (t) => {
92
92
  if (!ne(t) || re(t))
93
93
  return !1;
@@ -96,37 +96,37 @@ const Yt = _e("string"), P = _e("function"), Rt = _e("number"), ne = (t) => t !=
96
96
  } catch {
97
97
  return !1;
98
98
  }
99
- }, er = F("Date"), tr = F("File"), rr = (t) => !!(t && typeof t.uri < "u"), nr = (t) => t && typeof t.getParts < "u", sr = F("Blob"), ir = F("FileList"), or = (t) => ne(t) && P(t.pipe);
99
+ }, er = k("Date"), tr = k("File"), rr = (t) => !!(t && typeof t.uri < "u"), nr = (t) => t && typeof t.getParts < "u", sr = k("Blob"), ir = k("FileList"), or = (t) => ne(t) && P(t.pipe);
100
100
  function ar() {
101
101
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
102
102
  }
103
- const Ge = ar(), Ze = typeof Ge.FormData < "u" ? Ge.FormData : void 0, cr = (t) => {
103
+ const Ze = ar(), et = typeof Ze.FormData < "u" ? Ze.FormData : void 0, cr = (t) => {
104
104
  let e;
105
- return t && (Ze && t instanceof Ze || P(t.append) && ((e = be(t)) === "formdata" || // detect form-data instance
105
+ return t && (et && t instanceof et || P(t.append) && ((e = we(t)) === "formdata" || // detect form-data instance
106
106
  e === "object" && P(t.toString) && t.toString() === "[object FormData]"));
107
- }, ur = F("URLSearchParams"), [lr, dr, fr, hr] = [
107
+ }, ur = k("URLSearchParams"), [lr, dr, fr, hr] = [
108
108
  "ReadableStream",
109
109
  "Request",
110
110
  "Response",
111
111
  "Headers"
112
- ].map(F), pr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
112
+ ].map(k), pr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
113
113
  function se(t, e, { allOwnKeys: r = !1 } = {}) {
114
114
  if (t === null || typeof t > "u")
115
115
  return;
116
116
  let n, s;
117
- if (typeof t != "object" && (t = [t]), Q(t))
117
+ if (typeof t != "object" && (t = [t]), Y(t))
118
118
  for (n = 0, s = t.length; n < s; n++)
119
119
  e.call(null, t[n], n, t);
120
120
  else {
121
121
  if (re(t))
122
122
  return;
123
123
  const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), o = i.length;
124
- let c;
124
+ let a;
125
125
  for (n = 0; n < o; n++)
126
- c = i[n], e.call(null, t[c], c, t);
126
+ a = i[n], e.call(null, t[a], a, t);
127
127
  }
128
128
  }
129
- function St(t, e) {
129
+ function Tt(t, e) {
130
130
  if (re(t))
131
131
  return null;
132
132
  e = e.toLowerCase();
@@ -137,13 +137,13 @@ function St(t, e) {
137
137
  return s;
138
138
  return null;
139
139
  }
140
- const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Tt = (t) => !J(t) && t !== M;
140
+ const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, At = (t) => !Q(t) && t !== M;
141
141
  function De() {
142
- const { caseless: t, skipUndefined: e } = Tt(this) && this || {}, r = {}, n = (s, i) => {
142
+ const { caseless: t, skipUndefined: e } = At(this) && this || {}, r = {}, n = (s, i) => {
143
143
  if (i === "__proto__" || i === "constructor" || i === "prototype")
144
144
  return;
145
- const o = t && St(r, i) || i;
146
- pe(r[o]) && pe(s) ? r[o] = De(r[o], s) : pe(s) ? r[o] = De({}, s) : Q(s) ? r[o] = s.slice() : (!e || !J(s)) && (r[o] = s);
145
+ const o = t && Tt(r, i) || i;
146
+ pe(r[o]) && pe(s) ? r[o] = De(r[o], s) : pe(s) ? r[o] = De({}, s) : Y(s) ? r[o] = s.slice() : (!e || !Q(s)) && (r[o] = s);
147
147
  };
148
148
  for (let s = 0, i = arguments.length; s < i; s++)
149
149
  arguments[s] && se(arguments[s], n);
@@ -153,7 +153,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
153
153
  e,
154
154
  (s, i) => {
155
155
  r && P(s) ? Object.defineProperty(t, i, {
156
- value: _t(s, r),
156
+ value: Ct(s, r),
157
157
  writable: !0,
158
158
  enumerable: !0,
159
159
  configurable: !0
@@ -165,7 +165,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
165
165
  });
166
166
  },
167
167
  { allOwnKeys: n }
168
- ), t), mr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), gr = (t, e, r, n) => {
168
+ ), t), gr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), mr = (t, e, r, n) => {
169
169
  t.prototype = Object.create(e.prototype, n), Object.defineProperty(t.prototype, "constructor", {
170
170
  value: t,
171
171
  writable: !0,
@@ -174,52 +174,52 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
174
174
  }), Object.defineProperty(t, "super", {
175
175
  value: e.prototype
176
176
  }), r && Object.assign(t.prototype, r);
177
- }, wr = (t, e, r, n) => {
177
+ }, _r = (t, e, r, n) => {
178
178
  let s, i, o;
179
- const c = {};
179
+ const a = {};
180
180
  if (e = e || {}, t == null) return e;
181
181
  do {
182
182
  for (s = Object.getOwnPropertyNames(t), i = s.length; i-- > 0; )
183
- o = s[i], (!n || n(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
183
+ o = s[i], (!n || n(o, t, e)) && !a[o] && (e[o] = t[o], a[o] = !0);
184
184
  t = r !== !1 && Be(t);
185
185
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
186
186
  return e;
187
- }, br = (t, e, r) => {
187
+ }, wr = (t, e, r) => {
188
188
  t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
189
189
  const n = t.indexOf(e, r);
190
190
  return n !== -1 && n === r;
191
- }, _r = (t) => {
191
+ }, br = (t) => {
192
192
  if (!t) return null;
193
- if (Q(t)) return t;
193
+ if (Y(t)) return t;
194
194
  let e = t.length;
195
- if (!Rt(e)) return null;
195
+ if (!St(e)) return null;
196
196
  const r = new Array(e);
197
197
  for (; e-- > 0; )
198
198
  r[e] = t[e];
199
199
  return r;
200
- }, Cr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Be(Uint8Array)), Er = (t, e) => {
201
- const n = (t && t[we]).call(t);
200
+ }, Cr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Be(Uint8Array)), Rr = (t, e) => {
201
+ const n = (t && t[_e]).call(t);
202
202
  let s;
203
203
  for (; (s = n.next()) && !s.done; ) {
204
204
  const i = s.value;
205
205
  e.call(t, i[0], i[1]);
206
206
  }
207
- }, Rr = (t, e) => {
207
+ }, Er = (t, e) => {
208
208
  let r;
209
209
  const n = [];
210
210
  for (; (r = t.exec(e)) !== null; )
211
211
  n.push(r);
212
212
  return n;
213
- }, Sr = F("HTMLFormElement"), Tr = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
213
+ }, Sr = k("HTMLFormElement"), Tr = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
214
214
  return n.toUpperCase() + s;
215
- }), et = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ar = F("RegExp"), At = (t, e) => {
215
+ }), tt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ar = k("RegExp"), Pt = (t, e) => {
216
216
  const r = Object.getOwnPropertyDescriptors(t), n = {};
217
217
  se(r, (s, i) => {
218
218
  let o;
219
219
  (o = e(s, i, t)) !== !1 && (n[i] = o || s);
220
220
  }), Object.defineProperties(t, n);
221
221
  }, Pr = (t) => {
222
- At(t, (e, r) => {
222
+ Pt(t, (e, r) => {
223
223
  if (P(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
224
224
  return !1;
225
225
  const n = t[r];
@@ -239,11 +239,11 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
239
239
  r[i] = !0;
240
240
  });
241
241
  };
242
- return Q(t) ? n(t) : n(String(t).split(e)), r;
242
+ return Y(t) ? n(t) : n(String(t).split(e)), r;
243
243
  }, Nr = () => {
244
244
  }, xr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
245
245
  function Ur(t) {
246
- return !!(t && P(t.append) && t[Ct] === "FormData" && t[we]);
246
+ return !!(t && P(t.append) && t[Rt] === "FormData" && t[_e]);
247
247
  }
248
248
  const Dr = (t) => {
249
249
  const e = new Array(10), r = (n, s) => {
@@ -254,17 +254,17 @@ const Dr = (t) => {
254
254
  return n;
255
255
  if (!("toJSON" in n)) {
256
256
  e[s] = n;
257
- const i = Q(n) ? [] : {};
258
- return se(n, (o, c) => {
257
+ const i = Y(n) ? [] : {};
258
+ return se(n, (o, a) => {
259
259
  const f = r(o, s + 1);
260
- !J(f) && (i[c] = f);
260
+ !Q(f) && (i[a] = f);
261
261
  }), e[s] = void 0, i;
262
262
  }
263
263
  }
264
264
  return n;
265
265
  };
266
266
  return r(t, 0);
267
- }, Lr = F("AsyncFunction"), Fr = (t) => t && (ne(t) || P(t)) && P(t.then) && P(t.catch), Pt = ((t, e) => t ? setImmediate : e ? ((r, n) => (M.addEventListener(
267
+ }, Lr = k("AsyncFunction"), kr = (t) => t && (ne(t) || P(t)) && P(t.then) && P(t.catch), Ot = ((t, e) => t ? setImmediate : e ? ((r, n) => (M.addEventListener(
268
268
  "message",
269
269
  ({ source: s, data: i }) => {
270
270
  s === M && i === r && n.length && n.shift()();
@@ -272,14 +272,14 @@ const Dr = (t) => {
272
272
  !1
273
273
  ), (s) => {
274
274
  n.push(s), M.postMessage(r, "*");
275
- }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", P(M.postMessage)), kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(M) : typeof process < "u" && process.nextTick || Pt, vr = (t) => t != null && P(t[we]), a = {
276
- isArray: Q,
275
+ }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", P(M.postMessage)), Fr = typeof queueMicrotask < "u" ? queueMicrotask.bind(M) : typeof process < "u" && process.nextTick || Ot, vr = (t) => t != null && P(t[_e]), c = {
276
+ isArray: Y,
277
277
  isArrayBuffer: Et,
278
278
  isBuffer: re,
279
279
  isFormData: cr,
280
280
  isArrayBufferView: Xt,
281
281
  isString: Yt,
282
- isNumber: Rt,
282
+ isNumber: St,
283
283
  isBoolean: Gt,
284
284
  isObject: ne,
285
285
  isPlainObject: pe,
@@ -288,7 +288,7 @@ const Dr = (t) => {
288
288
  isRequest: dr,
289
289
  isResponse: fr,
290
290
  isHeaders: hr,
291
- isUndefined: J,
291
+ isUndefined: Q,
292
292
  isDate: er,
293
293
  isFile: tr,
294
294
  isReactNativeBlob: rr,
@@ -304,40 +304,40 @@ const Dr = (t) => {
304
304
  merge: De,
305
305
  extend: yr,
306
306
  trim: pr,
307
- stripBOM: mr,
308
- inherits: gr,
309
- toFlatObject: wr,
310
- kindOf: be,
311
- kindOfTest: F,
312
- endsWith: br,
313
- toArray: _r,
314
- forEachEntry: Er,
315
- matchAll: Rr,
307
+ stripBOM: gr,
308
+ inherits: mr,
309
+ toFlatObject: _r,
310
+ kindOf: we,
311
+ kindOfTest: k,
312
+ endsWith: wr,
313
+ toArray: br,
314
+ forEachEntry: Rr,
315
+ matchAll: Er,
316
316
  isHTMLForm: Sr,
317
- hasOwnProperty: et,
318
- hasOwnProp: et,
317
+ hasOwnProperty: tt,
318
+ hasOwnProp: tt,
319
319
  // an alias to avoid ESLint no-prototype-builtins detection
320
- reduceDescriptors: At,
320
+ reduceDescriptors: Pt,
321
321
  freezeMethods: Pr,
322
322
  toObjectSet: Or,
323
323
  toCamelCase: Tr,
324
324
  noop: Nr,
325
325
  toFiniteNumber: xr,
326
- findKey: St,
326
+ findKey: Tt,
327
327
  global: M,
328
- isContextDefined: Tt,
328
+ isContextDefined: At,
329
329
  isSpecCompliantForm: Ur,
330
330
  toJSONObject: Dr,
331
331
  isAsyncFn: Lr,
332
- isThenable: Fr,
333
- setImmediate: Pt,
334
- asap: kr,
332
+ isThenable: kr,
333
+ setImmediate: Ot,
334
+ asap: Fr,
335
335
  isIterable: vr
336
336
  };
337
- let m = class Ot extends Error {
337
+ let g = class Nt extends Error {
338
338
  static from(e, r, n, s, i, o) {
339
- const c = new Ot(e.message, r || e.code, n, s, i);
340
- return c.cause = e, c.name = e.name, e.status != null && c.status == null && (c.status = e.status), o && Object.assign(c, o), c;
339
+ const a = new Nt(e.message, r || e.code, n, s, i);
340
+ return a.cause = e, a.name = e.name, e.status != null && a.status == null && (a.status = e.status), o && Object.assign(a, o), a;
341
341
  }
342
342
  /**
343
343
  * Create an Error with the specified message, config, error code, request and response.
@@ -372,46 +372,46 @@ let m = class Ot extends Error {
372
372
  columnNumber: this.columnNumber,
373
373
  stack: this.stack,
374
374
  // Axios
375
- config: a.toJSONObject(this.config),
375
+ config: c.toJSONObject(this.config),
376
376
  code: this.code,
377
377
  status: this.status
378
378
  };
379
379
  }
380
380
  };
381
- m.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
382
- m.ERR_BAD_OPTION = "ERR_BAD_OPTION";
383
- m.ECONNABORTED = "ECONNABORTED";
384
- m.ETIMEDOUT = "ETIMEDOUT";
385
- m.ERR_NETWORK = "ERR_NETWORK";
386
- m.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
387
- m.ERR_DEPRECATED = "ERR_DEPRECATED";
388
- m.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
389
- m.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
390
- m.ERR_CANCELED = "ERR_CANCELED";
391
- m.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
392
- m.ERR_INVALID_URL = "ERR_INVALID_URL";
381
+ g.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
382
+ g.ERR_BAD_OPTION = "ERR_BAD_OPTION";
383
+ g.ECONNABORTED = "ECONNABORTED";
384
+ g.ETIMEDOUT = "ETIMEDOUT";
385
+ g.ERR_NETWORK = "ERR_NETWORK";
386
+ g.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
387
+ g.ERR_DEPRECATED = "ERR_DEPRECATED";
388
+ g.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
389
+ g.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
390
+ g.ERR_CANCELED = "ERR_CANCELED";
391
+ g.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
392
+ g.ERR_INVALID_URL = "ERR_INVALID_URL";
393
393
  const Br = null;
394
394
  function Le(t) {
395
- return a.isPlainObject(t) || a.isArray(t);
395
+ return c.isPlainObject(t) || c.isArray(t);
396
396
  }
397
- function Nt(t) {
398
- return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
397
+ function xt(t) {
398
+ return c.endsWith(t, "[]") ? t.slice(0, -2) : t;
399
399
  }
400
400
  function Ae(t, e, r) {
401
401
  return t ? t.concat(e).map(function(s, i) {
402
- return s = Nt(s), !r && i ? "[" + s + "]" : s;
402
+ return s = xt(s), !r && i ? "[" + s + "]" : s;
403
403
  }).join(r ? "." : "") : e;
404
404
  }
405
- function qr(t) {
406
- return a.isArray(t) && !t.some(Le);
405
+ function Ir(t) {
406
+ return c.isArray(t) && !t.some(Le);
407
407
  }
408
- const Ir = a.toFlatObject(a, {}, null, function(e) {
408
+ const qr = c.toFlatObject(c, {}, null, function(e) {
409
409
  return /^is[A-Z]/.test(e);
410
410
  });
411
411
  function Ce(t, e, r) {
412
- if (!a.isObject(t))
412
+ if (!c.isObject(t))
413
413
  throw new TypeError("target must be an object");
414
- e = e || new FormData(), r = a.toFlatObject(
414
+ e = e || new FormData(), r = c.toFlatObject(
415
415
  r,
416
416
  {
417
417
  metaTokens: !0,
@@ -420,59 +420,59 @@ function Ce(t, e, r) {
420
420
  },
421
421
  !1,
422
422
  function(y, p) {
423
- return !a.isUndefined(p[y]);
423
+ return !c.isUndefined(p[y]);
424
424
  }
425
425
  );
426
- const n = r.metaTokens, s = r.visitor || u, i = r.dots, o = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(e);
427
- if (!a.isFunction(s))
426
+ const n = r.metaTokens, s = r.visitor || u, i = r.dots, o = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(e);
427
+ if (!c.isFunction(s))
428
428
  throw new TypeError("visitor must be a function");
429
429
  function l(d) {
430
430
  if (d === null) return "";
431
- if (a.isDate(d))
431
+ if (c.isDate(d))
432
432
  return d.toISOString();
433
- if (a.isBoolean(d))
433
+ if (c.isBoolean(d))
434
434
  return d.toString();
435
- if (!f && a.isBlob(d))
436
- throw new m("Blob is not supported. Use a Buffer instead.");
437
- return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
435
+ if (!f && c.isBlob(d))
436
+ throw new g("Blob is not supported. Use a Buffer instead.");
437
+ return c.isArrayBuffer(d) || c.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
438
438
  }
439
439
  function u(d, y, p) {
440
440
  let C = d;
441
- if (a.isReactNative(e) && a.isReactNativeBlob(d))
441
+ if (c.isReactNative(e) && c.isReactNativeBlob(d))
442
442
  return e.append(Ae(p, y, i), l(d)), !1;
443
443
  if (d && !p && typeof d == "object") {
444
- if (a.endsWith(y, "{}"))
444
+ if (c.endsWith(y, "{}"))
445
445
  y = n ? y : y.slice(0, -2), d = JSON.stringify(d);
446
- else if (a.isArray(d) && qr(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (C = a.toArray(d)))
447
- return y = Nt(y), C.forEach(function(R, T) {
448
- !(a.isUndefined(R) || R === null) && e.append(
446
+ else if (c.isArray(d) && Ir(d) || (c.isFileList(d) || c.endsWith(y, "[]")) && (C = c.toArray(d)))
447
+ return y = xt(y), C.forEach(function(E, T) {
448
+ !(c.isUndefined(E) || E === null) && e.append(
449
449
  // eslint-disable-next-line no-nested-ternary
450
450
  o === !0 ? Ae([y], T, i) : o === null ? y : y + "[]",
451
- l(R)
451
+ l(E)
452
452
  );
453
453
  }), !1;
454
454
  }
455
455
  return Le(d) ? !0 : (e.append(Ae(p, y, i), l(d)), !1);
456
456
  }
457
- const h = [], g = Object.assign(Ir, {
457
+ const h = [], m = Object.assign(qr, {
458
458
  defaultVisitor: u,
459
459
  convertValue: l,
460
460
  isVisitable: Le
461
461
  });
462
- function E(d, y) {
463
- if (!a.isUndefined(d)) {
462
+ function R(d, y) {
463
+ if (!c.isUndefined(d)) {
464
464
  if (h.indexOf(d) !== -1)
465
465
  throw Error("Circular reference detected in " + y.join("."));
466
- h.push(d), a.forEach(d, function(C, N) {
467
- (!(a.isUndefined(C) || C === null) && s.call(e, C, a.isString(N) ? N.trim() : N, y, g)) === !0 && E(C, y ? y.concat(N) : [N]);
466
+ h.push(d), c.forEach(d, function(C, N) {
467
+ (!(c.isUndefined(C) || C === null) && s.call(e, C, c.isString(N) ? N.trim() : N, y, m)) === !0 && R(C, y ? y.concat(N) : [N]);
468
468
  }), h.pop();
469
469
  }
470
470
  }
471
- if (!a.isObject(t))
471
+ if (!c.isObject(t))
472
472
  throw new TypeError("data must be an object");
473
- return E(t), e;
473
+ return R(t), e;
474
474
  }
475
- function tt(t) {
475
+ function rt(t) {
476
476
  const e = {
477
477
  "!": "%21",
478
478
  "'": "%27",
@@ -486,17 +486,17 @@ function tt(t) {
486
486
  return e[n];
487
487
  });
488
488
  }
489
- function qe(t, e) {
489
+ function Ie(t, e) {
490
490
  this._pairs = [], t && Ce(t, this, e);
491
491
  }
492
- const xt = qe.prototype;
493
- xt.append = function(e, r) {
492
+ const Ut = Ie.prototype;
493
+ Ut.append = function(e, r) {
494
494
  this._pairs.push([e, r]);
495
495
  };
496
- xt.toString = function(e) {
496
+ Ut.toString = function(e) {
497
497
  const r = e ? function(n) {
498
- return e.call(this, n, tt);
499
- } : tt;
498
+ return e.call(this, n, rt);
499
+ } : rt;
500
500
  return this._pairs.map(function(s) {
501
501
  return r(s[0]) + "=" + r(s[1]);
502
502
  }, "").join("&");
@@ -504,20 +504,20 @@ xt.toString = function(e) {
504
504
  function $r(t) {
505
505
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
506
506
  }
507
- function Ut(t, e, r) {
507
+ function Dt(t, e, r) {
508
508
  if (!e)
509
509
  return t;
510
- const n = r && r.encode || $r, s = a.isFunction(r) ? {
510
+ const n = r && r.encode || $r, s = c.isFunction(r) ? {
511
511
  serialize: r
512
512
  } : r, i = s && s.serialize;
513
513
  let o;
514
- if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new qe(e, s).toString(n), o) {
515
- const c = t.indexOf("#");
516
- c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
514
+ if (i ? o = i(e, s) : o = c.isURLSearchParams(e) ? e.toString() : new Ie(e, s).toString(n), o) {
515
+ const a = t.indexOf("#");
516
+ a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
517
517
  }
518
518
  return t;
519
519
  }
520
- class rt {
520
+ class nt {
521
521
  constructor() {
522
522
  this.handlers = [];
523
523
  }
@@ -567,17 +567,17 @@ class rt {
567
567
  * @returns {void}
568
568
  */
569
569
  forEach(e) {
570
- a.forEach(this.handlers, function(n) {
570
+ c.forEach(this.handlers, function(n) {
571
571
  n !== null && e(n);
572
572
  });
573
573
  }
574
574
  }
575
- const Ie = {
575
+ const qe = {
576
576
  silentJSONParsing: !0,
577
577
  forcedJSONParsing: !0,
578
578
  clarifyTimeoutError: !1,
579
579
  legacyInterceptorReqResOrdering: !0
580
- }, jr = typeof URLSearchParams < "u" ? URLSearchParams : qe, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
580
+ }, jr = typeof URLSearchParams < "u" ? URLSearchParams : Ie, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
581
581
  isBrowser: !0,
582
582
  classes: {
583
583
  URLSearchParams: jr,
@@ -585,13 +585,13 @@ const Ie = {
585
585
  Blob: Hr
586
586
  },
587
587
  protocols: ["http", "https", "file", "blob", "url", "data"]
588
- }, $e = typeof window < "u" && typeof document < "u", Fe = typeof navigator == "object" && navigator || void 0, Kr = $e && (!Fe || ["ReactNative", "NativeScript", "NS"].indexOf(Fe.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
588
+ }, $e = typeof window < "u" && typeof document < "u", ke = typeof navigator == "object" && navigator || void 0, Kr = $e && (!ke || ["ReactNative", "NativeScript", "NS"].indexOf(ke.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
589
589
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = $e && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
590
590
  __proto__: null,
591
591
  hasBrowserEnv: $e,
592
592
  hasStandardBrowserEnv: Kr,
593
593
  hasStandardBrowserWebWorkerEnv: zr,
594
- navigator: Fe,
594
+ navigator: ke,
595
595
  origin: Jr
596
596
  }, Symbol.toStringTag, { value: "Module" })), S = {
597
597
  ...Wr,
@@ -600,13 +600,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr
600
600
  function Qr(t, e) {
601
601
  return Ce(t, new S.classes.URLSearchParams(), {
602
602
  visitor: function(r, n, s, i) {
603
- return S.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
603
+ return S.isNode && c.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
604
604
  },
605
605
  ...e
606
606
  });
607
607
  }
608
608
  function Xr(t) {
609
- return a.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
609
+ return c.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
610
610
  }
611
611
  function Yr(t) {
612
612
  const e = {}, r = Object.keys(t);
@@ -617,25 +617,25 @@ function Yr(t) {
617
617
  i = r[n], e[i] = t[i];
618
618
  return e;
619
619
  }
620
- function Dt(t) {
620
+ function Lt(t) {
621
621
  function e(r, n, s, i) {
622
622
  let o = r[i++];
623
623
  if (o === "__proto__") return !0;
624
- const c = Number.isFinite(+o), f = i >= r.length;
625
- return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], n] : s[o] = n, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), e(r, n, s[o], i) && a.isArray(s[o]) && (s[o] = Yr(s[o])), !c);
624
+ const a = Number.isFinite(+o), f = i >= r.length;
625
+ return o = !o && c.isArray(s) ? s.length : o, f ? (c.hasOwnProp(s, o) ? s[o] = [s[o], n] : s[o] = n, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), e(r, n, s[o], i) && c.isArray(s[o]) && (s[o] = Yr(s[o])), !a);
626
626
  }
627
- if (a.isFormData(t) && a.isFunction(t.entries)) {
627
+ if (c.isFormData(t) && c.isFunction(t.entries)) {
628
628
  const r = {};
629
- return a.forEachEntry(t, (n, s) => {
629
+ return c.forEachEntry(t, (n, s) => {
630
630
  e(Xr(n), s, r, 0);
631
631
  }), r;
632
632
  }
633
633
  return null;
634
634
  }
635
635
  function Gr(t, e, r) {
636
- if (a.isString(t))
636
+ if (c.isString(t))
637
637
  try {
638
- return (e || JSON.parse)(t), a.trim(t);
638
+ return (e || JSON.parse)(t), c.trim(t);
639
639
  } catch (n) {
640
640
  if (n.name !== "SyntaxError")
641
641
  throw n;
@@ -643,27 +643,27 @@ function Gr(t, e, r) {
643
643
  return (r || JSON.stringify)(t);
644
644
  }
645
645
  const ie = {
646
- transitional: Ie,
646
+ transitional: qe,
647
647
  adapter: ["xhr", "http", "fetch"],
648
648
  transformRequest: [
649
649
  function(e, r) {
650
- const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, i = a.isObject(e);
651
- if (i && a.isHTMLForm(e) && (e = new FormData(e)), a.isFormData(e))
652
- return s ? JSON.stringify(Dt(e)) : e;
653
- if (a.isArrayBuffer(e) || a.isBuffer(e) || a.isStream(e) || a.isFile(e) || a.isBlob(e) || a.isReadableStream(e))
650
+ const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, i = c.isObject(e);
651
+ if (i && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
652
+ return s ? JSON.stringify(Lt(e)) : e;
653
+ if (c.isArrayBuffer(e) || c.isBuffer(e) || c.isStream(e) || c.isFile(e) || c.isBlob(e) || c.isReadableStream(e))
654
654
  return e;
655
- if (a.isArrayBufferView(e))
655
+ if (c.isArrayBufferView(e))
656
656
  return e.buffer;
657
- if (a.isURLSearchParams(e))
657
+ if (c.isURLSearchParams(e))
658
658
  return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
659
- let c;
659
+ let a;
660
660
  if (i) {
661
661
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
662
662
  return Qr(e, this.formSerializer).toString();
663
- if ((c = a.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
663
+ if ((a = c.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
664
664
  const f = this.env && this.env.FormData;
665
665
  return Ce(
666
- c ? { "files[]": e } : e,
666
+ a ? { "files[]": e } : e,
667
667
  f && new f(),
668
668
  this.formSerializer
669
669
  );
@@ -675,15 +675,15 @@ const ie = {
675
675
  transformResponse: [
676
676
  function(e) {
677
677
  const r = this.transitional || ie.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
678
- if (a.isResponse(e) || a.isReadableStream(e))
678
+ if (c.isResponse(e) || c.isReadableStream(e))
679
679
  return e;
680
- if (e && a.isString(e) && (n && !this.responseType || s)) {
680
+ if (e && c.isString(e) && (n && !this.responseType || s)) {
681
681
  const o = !(r && r.silentJSONParsing) && s;
682
682
  try {
683
683
  return JSON.parse(e, this.parseReviver);
684
- } catch (c) {
684
+ } catch (a) {
685
685
  if (o)
686
- throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
686
+ throw a.name === "SyntaxError" ? g.from(a, g.ERR_BAD_RESPONSE, this, null, this.response) : a;
687
687
  }
688
688
  }
689
689
  return e;
@@ -712,10 +712,10 @@ const ie = {
712
712
  }
713
713
  }
714
714
  };
715
- a.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
715
+ c.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
716
716
  ie.headers[t] = {};
717
717
  });
718
- const Zr = a.toObjectSet([
718
+ const Zr = c.toObjectSet([
719
719
  "age",
720
720
  "authorization",
721
721
  "content-length",
@@ -740,12 +740,12 @@ const Zr = a.toObjectSet([
740
740
  `).forEach(function(o) {
741
741
  s = o.indexOf(":"), r = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!r || e[r] && Zr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
742
742
  }), e;
743
- }, nt = Symbol("internals");
744
- function ee(t) {
743
+ }, st = Symbol("internals");
744
+ function te(t) {
745
745
  return t && String(t).trim().toLowerCase();
746
746
  }
747
747
  function ye(t) {
748
- return t === !1 || t == null ? t : a.isArray(t) ? t.map(ye) : String(t);
748
+ return t === !1 || t == null ? t : c.isArray(t) ? t.map(ye) : String(t);
749
749
  }
750
750
  function tn(t) {
751
751
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -756,12 +756,12 @@ function tn(t) {
756
756
  }
757
757
  const rn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
758
758
  function Pe(t, e, r, n, s) {
759
- if (a.isFunction(n))
759
+ if (c.isFunction(n))
760
760
  return n.call(this, e, r);
761
- if (s && (e = r), !!a.isString(e)) {
762
- if (a.isString(n))
761
+ if (s && (e = r), !!c.isString(e)) {
762
+ if (c.isString(n))
763
763
  return e.indexOf(n) !== -1;
764
- if (a.isRegExp(n))
764
+ if (c.isRegExp(n))
765
765
  return n.test(e);
766
766
  }
767
767
  }
@@ -769,7 +769,7 @@ function nn(t) {
769
769
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
770
770
  }
771
771
  function sn(t, e) {
772
- const r = a.toCamelCase(" " + e);
772
+ const r = c.toCamelCase(" " + e);
773
773
  ["get", "set", "has"].forEach((n) => {
774
774
  Object.defineProperty(t, n + r, {
775
775
  value: function(s, i, o) {
@@ -785,50 +785,50 @@ let O = class {
785
785
  }
786
786
  set(e, r, n) {
787
787
  const s = this;
788
- function i(c, f, l) {
789
- const u = ee(f);
788
+ function i(a, f, l) {
789
+ const u = te(f);
790
790
  if (!u)
791
791
  throw new Error("header name must be a non-empty string");
792
- const h = a.findKey(s, u);
793
- (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = ye(c));
792
+ const h = c.findKey(s, u);
793
+ (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = ye(a));
794
794
  }
795
- const o = (c, f) => a.forEach(c, (l, u) => i(l, u, f));
796
- if (a.isPlainObject(e) || e instanceof this.constructor)
795
+ const o = (a, f) => c.forEach(a, (l, u) => i(l, u, f));
796
+ if (c.isPlainObject(e) || e instanceof this.constructor)
797
797
  o(e, r);
798
- else if (a.isString(e) && (e = e.trim()) && !rn(e))
798
+ else if (c.isString(e) && (e = e.trim()) && !rn(e))
799
799
  o(en(e), r);
800
- else if (a.isObject(e) && a.isIterable(e)) {
801
- let c = {}, f, l;
800
+ else if (c.isObject(e) && c.isIterable(e)) {
801
+ let a = {}, f, l;
802
802
  for (const u of e) {
803
- if (!a.isArray(u))
803
+ if (!c.isArray(u))
804
804
  throw TypeError("Object iterator must return a key-value pair");
805
- c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
805
+ a[l = u[0]] = (f = a[l]) ? c.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
806
806
  }
807
- o(c, r);
807
+ o(a, r);
808
808
  } else
809
809
  e != null && i(r, e, n);
810
810
  return this;
811
811
  }
812
812
  get(e, r) {
813
- if (e = ee(e), e) {
814
- const n = a.findKey(this, e);
813
+ if (e = te(e), e) {
814
+ const n = c.findKey(this, e);
815
815
  if (n) {
816
816
  const s = this[n];
817
817
  if (!r)
818
818
  return s;
819
819
  if (r === !0)
820
820
  return tn(s);
821
- if (a.isFunction(r))
821
+ if (c.isFunction(r))
822
822
  return r.call(this, s, n);
823
- if (a.isRegExp(r))
823
+ if (c.isRegExp(r))
824
824
  return r.exec(s);
825
825
  throw new TypeError("parser must be boolean|regexp|function");
826
826
  }
827
827
  }
828
828
  }
829
829
  has(e, r) {
830
- if (e = ee(e), e) {
831
- const n = a.findKey(this, e);
830
+ if (e = te(e), e) {
831
+ const n = c.findKey(this, e);
832
832
  return !!(n && this[n] !== void 0 && (!r || Pe(this, this[n], n, r)));
833
833
  }
834
834
  return !1;
@@ -837,12 +837,12 @@ let O = class {
837
837
  const n = this;
838
838
  let s = !1;
839
839
  function i(o) {
840
- if (o = ee(o), o) {
841
- const c = a.findKey(n, o);
842
- c && (!r || Pe(n, n[c], c, r)) && (delete n[c], s = !0);
840
+ if (o = te(o), o) {
841
+ const a = c.findKey(n, o);
842
+ a && (!r || Pe(n, n[a], a, r)) && (delete n[a], s = !0);
843
843
  }
844
844
  }
845
- return a.isArray(e) ? e.forEach(i) : i(e), s;
845
+ return c.isArray(e) ? e.forEach(i) : i(e), s;
846
846
  }
847
847
  clear(e) {
848
848
  const r = Object.keys(this);
@@ -855,14 +855,14 @@ let O = class {
855
855
  }
856
856
  normalize(e) {
857
857
  const r = this, n = {};
858
- return a.forEach(this, (s, i) => {
859
- const o = a.findKey(n, i);
858
+ return c.forEach(this, (s, i) => {
859
+ const o = c.findKey(n, i);
860
860
  if (o) {
861
861
  r[o] = ye(s), delete r[i];
862
862
  return;
863
863
  }
864
- const c = e ? nn(i) : String(i).trim();
865
- c !== i && delete r[i], r[c] = ye(s), n[c] = !0;
864
+ const a = e ? nn(i) : String(i).trim();
865
+ a !== i && delete r[i], r[a] = ye(s), n[a] = !0;
866
866
  }), this;
867
867
  }
868
868
  concat(...e) {
@@ -870,8 +870,8 @@ let O = class {
870
870
  }
871
871
  toJSON(e) {
872
872
  const r = /* @__PURE__ */ Object.create(null);
873
- return a.forEach(this, (n, s) => {
874
- n != null && n !== !1 && (r[s] = e && a.isArray(n) ? n.join(", ") : n);
873
+ return c.forEach(this, (n, s) => {
874
+ n != null && n !== !1 && (r[s] = e && c.isArray(n) ? n.join(", ") : n);
875
875
  }), r;
876
876
  }
877
877
  [Symbol.iterator]() {
@@ -895,14 +895,14 @@ let O = class {
895
895
  return r.forEach((s) => n.set(s)), n;
896
896
  }
897
897
  static accessor(e) {
898
- const n = (this[nt] = this[nt] = {
898
+ const n = (this[st] = this[st] = {
899
899
  accessors: {}
900
900
  }).accessors, s = this.prototype;
901
901
  function i(o) {
902
- const c = ee(o);
903
- n[c] || (sn(s, o), n[c] = !0);
902
+ const a = te(o);
903
+ n[a] || (sn(s, o), n[a] = !0);
904
904
  }
905
- return a.isArray(e) ? e.forEach(i) : i(e), this;
905
+ return c.isArray(e) ? e.forEach(i) : i(e), this;
906
906
  }
907
907
  };
908
908
  O.accessor([
@@ -913,7 +913,7 @@ O.accessor([
913
913
  "User-Agent",
914
914
  "Authorization"
915
915
  ]);
916
- a.reduceDescriptors(O.prototype, ({ value: t }, e) => {
916
+ c.reduceDescriptors(O.prototype, ({ value: t }, e) => {
917
917
  let r = e[0].toUpperCase() + e.slice(1);
918
918
  return {
919
919
  get: () => t,
@@ -922,18 +922,18 @@ a.reduceDescriptors(O.prototype, ({ value: t }, e) => {
922
922
  }
923
923
  };
924
924
  });
925
- a.freezeMethods(O);
925
+ c.freezeMethods(O);
926
926
  function Oe(t, e) {
927
927
  const r = this || ie, n = e || r, s = O.from(n.headers);
928
928
  let i = n.data;
929
- return a.forEach(t, function(c) {
930
- i = c.call(r, i, s.normalize(), e ? e.status : void 0);
929
+ return c.forEach(t, function(a) {
930
+ i = a.call(r, i, s.normalize(), e ? e.status : void 0);
931
931
  }), s.normalize(), i;
932
932
  }
933
- function Lt(t) {
933
+ function kt(t) {
934
934
  return !!(t && t.__CANCEL__);
935
935
  }
936
- let oe = class extends m {
936
+ let oe = class extends g {
937
937
  /**
938
938
  * A `CanceledError` is an object that is thrown when an operation is canceled.
939
939
  *
@@ -944,15 +944,15 @@ let oe = class extends m {
944
944
  * @returns {CanceledError} The created error.
945
945
  */
946
946
  constructor(e, r, n) {
947
- super(e ?? "canceled", m.ERR_CANCELED, r, n), this.name = "CanceledError", this.__CANCEL__ = !0;
947
+ super(e ?? "canceled", g.ERR_CANCELED, r, n), this.name = "CanceledError", this.__CANCEL__ = !0;
948
948
  }
949
949
  };
950
950
  function Ft(t, e, r) {
951
951
  const n = r.config.validateStatus;
952
952
  !r.status || !n || n(r.status) ? t(r) : e(
953
- new m(
953
+ new g(
954
954
  "Request failed with status code " + r.status,
955
- [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
955
+ [g.ERR_BAD_REQUEST, g.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
956
956
  r.config,
957
957
  r.request,
958
958
  r
@@ -970,13 +970,13 @@ function an(t, e) {
970
970
  return e = e !== void 0 ? e : 1e3, function(f) {
971
971
  const l = Date.now(), u = n[i];
972
972
  o || (o = l), r[s] = f, n[s] = l;
973
- let h = i, g = 0;
973
+ let h = i, m = 0;
974
974
  for (; h !== s; )
975
- g += r[h++], h = h % t;
975
+ m += r[h++], h = h % t;
976
976
  if (s = (s + 1) % t, s === i && (i = (i + 1) % t), l - o < e)
977
977
  return;
978
- const E = u && l - u;
979
- return E ? Math.round(g * 1e3 / E) : void 0;
978
+ const R = u && l - u;
979
+ return R ? Math.round(m * 1e3 / R) : void 0;
980
980
  };
981
981
  }
982
982
  function cn(t, e) {
@@ -991,26 +991,26 @@ function cn(t, e) {
991
991
  }, n - h)));
992
992
  }, () => s && o(s)];
993
993
  }
994
- const ge = (t, e, r = 3) => {
994
+ const me = (t, e, r = 3) => {
995
995
  let n = 0;
996
996
  const s = an(50, 250);
997
997
  return cn((i) => {
998
- const o = i.loaded, c = i.lengthComputable ? i.total : void 0, f = o - n, l = s(f), u = o <= c;
998
+ const o = i.loaded, a = i.lengthComputable ? i.total : void 0, f = o - n, l = s(f), u = o <= a;
999
999
  n = o;
1000
1000
  const h = {
1001
1001
  loaded: o,
1002
- total: c,
1003
- progress: c ? o / c : void 0,
1002
+ total: a,
1003
+ progress: a ? o / a : void 0,
1004
1004
  bytes: f,
1005
1005
  rate: l || void 0,
1006
- estimated: l && c && u ? (c - o) / l : void 0,
1006
+ estimated: l && a && u ? (a - o) / l : void 0,
1007
1007
  event: i,
1008
- lengthComputable: c != null,
1008
+ lengthComputable: a != null,
1009
1009
  [e ? "download" : "upload"]: !0
1010
1010
  };
1011
1011
  t(h);
1012
1012
  }, r);
1013
- }, st = (t, e) => {
1013
+ }, it = (t, e) => {
1014
1014
  const r = t != null;
1015
1015
  return [
1016
1016
  (n) => e[0]({
@@ -1020,7 +1020,7 @@ const ge = (t, e, r = 3) => {
1020
1020
  }),
1021
1021
  e[1]
1022
1022
  ];
1023
- }, it = (t) => (...e) => a.asap(() => t(...e)), un = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, S.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1023
+ }, ot = (t) => (...e) => c.asap(() => t(...e)), un = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, S.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1024
1024
  new URL(S.origin),
1025
1025
  S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
1026
1026
  ) : () => !0, ln = S.hasStandardBrowserEnv ? (
@@ -1028,8 +1028,8 @@ const ge = (t, e, r = 3) => {
1028
1028
  {
1029
1029
  write(t, e, r, n, s, i, o) {
1030
1030
  if (typeof document > "u") return;
1031
- const c = [`${t}=${encodeURIComponent(e)}`];
1032
- a.isNumber(r) && c.push(`expires=${new Date(r).toUTCString()}`), a.isString(n) && c.push(`path=${n}`), a.isString(s) && c.push(`domain=${s}`), i === !0 && c.push("secure"), a.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
1031
+ const a = [`${t}=${encodeURIComponent(e)}`];
1032
+ c.isNumber(r) && a.push(`expires=${new Date(r).toUTCString()}`), c.isString(n) && a.push(`path=${n}`), c.isString(s) && a.push(`domain=${s}`), i === !0 && a.push("secure"), c.isString(o) && a.push(`SameSite=${o}`), document.cookie = a.join("; ");
1033
1033
  },
1034
1034
  read(t) {
1035
1035
  if (typeof document > "u") return null;
@@ -1058,34 +1058,34 @@ function dn(t) {
1058
1058
  function fn(t, e) {
1059
1059
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
1060
1060
  }
1061
- function kt(t, e, r) {
1061
+ function vt(t, e, r) {
1062
1062
  let n = !dn(e);
1063
1063
  return t && (n || r == !1) ? fn(t, e) : e;
1064
1064
  }
1065
- const ot = (t) => t instanceof O ? { ...t } : t;
1065
+ const at = (t) => t instanceof O ? { ...t } : t;
1066
1066
  function V(t, e) {
1067
1067
  e = e || {};
1068
1068
  const r = {};
1069
- function n(l, u, h, g) {
1070
- return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: g }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
1069
+ function n(l, u, h, m) {
1070
+ return c.isPlainObject(l) && c.isPlainObject(u) ? c.merge.call({ caseless: m }, l, u) : c.isPlainObject(u) ? c.merge({}, u) : c.isArray(u) ? u.slice() : u;
1071
1071
  }
1072
- function s(l, u, h, g) {
1073
- if (a.isUndefined(u)) {
1074
- if (!a.isUndefined(l))
1075
- return n(void 0, l, h, g);
1076
- } else return n(l, u, h, g);
1072
+ function s(l, u, h, m) {
1073
+ if (c.isUndefined(u)) {
1074
+ if (!c.isUndefined(l))
1075
+ return n(void 0, l, h, m);
1076
+ } else return n(l, u, h, m);
1077
1077
  }
1078
1078
  function i(l, u) {
1079
- if (!a.isUndefined(u))
1079
+ if (!c.isUndefined(u))
1080
1080
  return n(void 0, u);
1081
1081
  }
1082
1082
  function o(l, u) {
1083
- if (a.isUndefined(u)) {
1084
- if (!a.isUndefined(l))
1083
+ if (c.isUndefined(u)) {
1084
+ if (!c.isUndefined(l))
1085
1085
  return n(void 0, l);
1086
1086
  } else return n(void 0, u);
1087
1087
  }
1088
- function c(l, u, h) {
1088
+ function a(l, u, h) {
1089
1089
  if (h in e)
1090
1090
  return n(l, u);
1091
1091
  if (h in t)
@@ -1119,63 +1119,63 @@ function V(t, e) {
1119
1119
  cancelToken: o,
1120
1120
  socketPath: o,
1121
1121
  responseEncoding: o,
1122
- validateStatus: c,
1123
- headers: (l, u, h) => s(ot(l), ot(u), h, !0)
1122
+ validateStatus: a,
1123
+ headers: (l, u, h) => s(at(l), at(u), h, !0)
1124
1124
  };
1125
- return a.forEach(Object.keys({ ...t, ...e }), function(u) {
1125
+ return c.forEach(Object.keys({ ...t, ...e }), function(u) {
1126
1126
  if (u === "__proto__" || u === "constructor" || u === "prototype") return;
1127
- const h = a.hasOwnProp(f, u) ? f[u] : s, g = h(t[u], e[u], u);
1128
- a.isUndefined(g) && h !== c || (r[u] = g);
1127
+ const h = c.hasOwnProp(f, u) ? f[u] : s, m = h(t[u], e[u], u);
1128
+ c.isUndefined(m) && h !== a || (r[u] = m);
1129
1129
  }), r;
1130
1130
  }
1131
- const vt = (t) => {
1131
+ const Bt = (t) => {
1132
1132
  const e = V({}, t);
1133
- let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = e;
1134
- if (e.headers = o = O.from(o), e.url = Ut(
1135
- kt(e.baseURL, e.url, e.allowAbsoluteUrls),
1133
+ let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = e;
1134
+ if (e.headers = o = O.from(o), e.url = Dt(
1135
+ vt(e.baseURL, e.url, e.allowAbsoluteUrls),
1136
1136
  t.params,
1137
1137
  t.paramsSerializer
1138
- ), c && o.set(
1138
+ ), a && o.set(
1139
1139
  "Authorization",
1140
1140
  "Basic " + btoa(
1141
- (c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : "")
1141
+ (a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : "")
1142
1142
  )
1143
- ), a.isFormData(r)) {
1143
+ ), c.isFormData(r)) {
1144
1144
  if (S.hasStandardBrowserEnv || S.hasStandardBrowserWebWorkerEnv)
1145
1145
  o.setContentType(void 0);
1146
- else if (a.isFunction(r.getHeaders)) {
1146
+ else if (c.isFunction(r.getHeaders)) {
1147
1147
  const f = r.getHeaders(), l = ["content-type", "content-length"];
1148
1148
  Object.entries(f).forEach(([u, h]) => {
1149
1149
  l.includes(u.toLowerCase()) && o.set(u, h);
1150
1150
  });
1151
1151
  }
1152
1152
  }
1153
- if (S.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(e)), n || n !== !1 && un(e.url))) {
1153
+ if (S.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(e)), n || n !== !1 && un(e.url))) {
1154
1154
  const f = s && i && ln.read(i);
1155
1155
  f && o.set(s, f);
1156
1156
  }
1157
1157
  return e;
1158
1158
  }, hn = typeof XMLHttpRequest < "u", pn = hn && function(t) {
1159
1159
  return new Promise(function(r, n) {
1160
- const s = vt(t);
1160
+ const s = Bt(t);
1161
1161
  let i = s.data;
1162
1162
  const o = O.from(s.headers).normalize();
1163
- let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, g, E, d;
1163
+ let { responseType: a, onUploadProgress: f, onDownloadProgress: l } = s, u, h, m, R, d;
1164
1164
  function y() {
1165
- E && E(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1165
+ R && R(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1166
1166
  }
1167
1167
  let p = new XMLHttpRequest();
1168
1168
  p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1169
1169
  function C() {
1170
1170
  if (!p)
1171
1171
  return;
1172
- const R = O.from(
1172
+ const E = O.from(
1173
1173
  "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1174
1174
  ), D = {
1175
- data: !c || c === "text" || c === "json" ? p.responseText : p.response,
1175
+ data: !a || a === "text" || a === "json" ? p.responseText : p.response,
1176
1176
  status: p.status,
1177
1177
  statusText: p.statusText,
1178
- headers: R,
1178
+ headers: E,
1179
1179
  config: t,
1180
1180
  request: p
1181
1181
  };
@@ -1192,32 +1192,32 @@ const vt = (t) => {
1192
1192
  "onloadend" in p ? p.onloadend = C : p.onreadystatechange = function() {
1193
1193
  !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(C);
1194
1194
  }, p.onabort = function() {
1195
- p && (n(new m("Request aborted", m.ECONNABORTED, t, p)), p = null);
1195
+ p && (n(new g("Request aborted", g.ECONNABORTED, t, p)), p = null);
1196
1196
  }, p.onerror = function(T) {
1197
- const D = T && T.message ? T.message : "Network Error", $ = new m(D, m.ERR_NETWORK, t, p);
1197
+ const D = T && T.message ? T.message : "Network Error", $ = new g(D, g.ERR_NETWORK, t, p);
1198
1198
  $.event = T || null, n($), p = null;
1199
1199
  }, p.ontimeout = function() {
1200
1200
  let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1201
- const D = s.transitional || Ie;
1201
+ const D = s.transitional || qe;
1202
1202
  s.timeoutErrorMessage && (T = s.timeoutErrorMessage), n(
1203
- new m(
1203
+ new g(
1204
1204
  T,
1205
- D.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1205
+ D.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1206
1206
  t,
1207
1207
  p
1208
1208
  )
1209
1209
  ), p = null;
1210
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(T, D) {
1210
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && c.forEach(o.toJSON(), function(T, D) {
1211
1211
  p.setRequestHeader(D, T);
1212
- }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([g, d] = ge(l, !0), p.addEventListener("progress", g)), f && p.upload && ([h, E] = ge(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (R) => {
1213
- p && (n(!R || R.type ? new oe(null, t, p) : R), p.abort(), p = null);
1212
+ }), c.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), a && a !== "json" && (p.responseType = s.responseType), l && ([m, d] = me(l, !0), p.addEventListener("progress", m)), f && p.upload && ([h, R] = me(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (E) => {
1213
+ p && (n(!E || E.type ? new oe(null, t, p) : E), p.abort(), p = null);
1214
1214
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1215
1215
  const N = on(s.url);
1216
1216
  if (N && S.protocols.indexOf(N) === -1) {
1217
1217
  n(
1218
- new m(
1218
+ new g(
1219
1219
  "Unsupported protocol " + N + ":",
1220
- m.ERR_BAD_REQUEST,
1220
+ g.ERR_BAD_REQUEST,
1221
1221
  t
1222
1222
  )
1223
1223
  );
@@ -1231,26 +1231,26 @@ const vt = (t) => {
1231
1231
  let n = new AbortController(), s;
1232
1232
  const i = function(l) {
1233
1233
  if (!s) {
1234
- s = !0, c();
1234
+ s = !0, a();
1235
1235
  const u = l instanceof Error ? l : this.reason;
1236
1236
  n.abort(
1237
- u instanceof m ? u : new oe(u instanceof Error ? u.message : u)
1237
+ u instanceof g ? u : new oe(u instanceof Error ? u.message : u)
1238
1238
  );
1239
1239
  }
1240
1240
  };
1241
1241
  let o = e && setTimeout(() => {
1242
- o = null, i(new m(`timeout of ${e}ms exceeded`, m.ETIMEDOUT));
1242
+ o = null, i(new g(`timeout of ${e}ms exceeded`, g.ETIMEDOUT));
1243
1243
  }, e);
1244
- const c = () => {
1244
+ const a = () => {
1245
1245
  t && (o && clearTimeout(o), o = null, t.forEach((l) => {
1246
1246
  l.unsubscribe ? l.unsubscribe(i) : l.removeEventListener("abort", i);
1247
1247
  }), t = null);
1248
1248
  };
1249
1249
  t.forEach((l) => l.addEventListener("abort", i));
1250
1250
  const { signal: f } = n;
1251
- return f.unsubscribe = () => a.asap(c), f;
1251
+ return f.unsubscribe = () => c.asap(a), f;
1252
1252
  }
1253
- }, mn = function* (t, e) {
1253
+ }, gn = function* (t, e) {
1254
1254
  let r = t.byteLength;
1255
1255
  if (r < e) {
1256
1256
  yield t;
@@ -1259,10 +1259,10 @@ const vt = (t) => {
1259
1259
  let n = 0, s;
1260
1260
  for (; n < r; )
1261
1261
  s = n + e, yield t.slice(n, s), n = s;
1262
- }, gn = async function* (t, e) {
1263
- for await (const r of wn(t))
1264
- yield* mn(r, e);
1265
- }, wn = async function* (t) {
1262
+ }, mn = async function* (t, e) {
1263
+ for await (const r of _n(t))
1264
+ yield* gn(r, e);
1265
+ }, _n = async function* (t) {
1266
1266
  if (t[Symbol.asyncIterator]) {
1267
1267
  yield* t;
1268
1268
  return;
@@ -1278,9 +1278,9 @@ const vt = (t) => {
1278
1278
  } finally {
1279
1279
  await e.cancel();
1280
1280
  }
1281
- }, at = (t, e, r, n) => {
1282
- const s = gn(t, e);
1283
- let i = 0, o, c = (f) => {
1281
+ }, ct = (t, e, r, n) => {
1282
+ const s = mn(t, e);
1283
+ let i = 0, o, a = (f) => {
1284
1284
  o || (o = !0, n && n(f));
1285
1285
  };
1286
1286
  return new ReadableStream(
@@ -1289,58 +1289,58 @@ const vt = (t) => {
1289
1289
  try {
1290
1290
  const { done: l, value: u } = await s.next();
1291
1291
  if (l) {
1292
- c(), f.close();
1292
+ a(), f.close();
1293
1293
  return;
1294
1294
  }
1295
1295
  let h = u.byteLength;
1296
1296
  if (r) {
1297
- let g = i += h;
1298
- r(g);
1297
+ let m = i += h;
1298
+ r(m);
1299
1299
  }
1300
1300
  f.enqueue(new Uint8Array(u));
1301
1301
  } catch (l) {
1302
- throw c(l), l;
1302
+ throw a(l), l;
1303
1303
  }
1304
1304
  },
1305
1305
  cancel(f) {
1306
- return c(f), s.return();
1306
+ return a(f), s.return();
1307
1307
  }
1308
1308
  },
1309
1309
  {
1310
1310
  highWaterMark: 2
1311
1311
  }
1312
1312
  );
1313
- }, ct = 64 * 1024, { isFunction: de } = a, bn = (({ Request: t, Response: e }) => ({
1313
+ }, ut = 64 * 1024, { isFunction: de } = c, wn = (({ Request: t, Response: e }) => ({
1314
1314
  Request: t,
1315
1315
  Response: e
1316
- }))(a.global), { ReadableStream: ut, TextEncoder: lt } = a.global, dt = (t, ...e) => {
1316
+ }))(c.global), { ReadableStream: lt, TextEncoder: dt } = c.global, ft = (t, ...e) => {
1317
1317
  try {
1318
1318
  return !!t(...e);
1319
1319
  } catch {
1320
1320
  return !1;
1321
1321
  }
1322
- }, _n = (t) => {
1323
- t = a.merge.call(
1322
+ }, bn = (t) => {
1323
+ t = c.merge.call(
1324
1324
  {
1325
1325
  skipUndefined: !0
1326
1326
  },
1327
- bn,
1327
+ wn,
1328
1328
  t
1329
1329
  );
1330
1330
  const { fetch: e, Request: r, Response: n } = t, s = e ? de(e) : typeof fetch == "function", i = de(r), o = de(n);
1331
1331
  if (!s)
1332
1332
  return !1;
1333
- const c = s && de(ut), f = s && (typeof lt == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new lt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && c && dt(() => {
1333
+ const a = s && de(lt), f = s && (typeof dt == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new dt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && a && ft(() => {
1334
1334
  let d = !1;
1335
1335
  const y = new r(S.origin, {
1336
- body: new ut(),
1336
+ body: new lt(),
1337
1337
  method: "POST",
1338
1338
  get duplex() {
1339
1339
  return d = !0, "half";
1340
1340
  }
1341
1341
  }).headers.has("Content-Type");
1342
1342
  return d && !y;
1343
- }), u = o && c && dt(() => a.isReadableStream(new n("").body)), h = {
1343
+ }), u = o && a && ft(() => c.isReadableStream(new n("").body)), h = {
1344
1344
  stream: u && ((d) => d.body)
1345
1345
  };
1346
1346
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
@@ -1348,30 +1348,30 @@ const vt = (t) => {
1348
1348
  let C = y && y[d];
1349
1349
  if (C)
1350
1350
  return C.call(y);
1351
- throw new m(
1351
+ throw new g(
1352
1352
  `Response type '${d}' is not supported`,
1353
- m.ERR_NOT_SUPPORT,
1353
+ g.ERR_NOT_SUPPORT,
1354
1354
  p
1355
1355
  );
1356
1356
  });
1357
1357
  });
1358
- const g = async (d) => {
1358
+ const m = async (d) => {
1359
1359
  if (d == null)
1360
1360
  return 0;
1361
- if (a.isBlob(d))
1361
+ if (c.isBlob(d))
1362
1362
  return d.size;
1363
- if (a.isSpecCompliantForm(d))
1363
+ if (c.isSpecCompliantForm(d))
1364
1364
  return (await new r(S.origin, {
1365
1365
  method: "POST",
1366
1366
  body: d
1367
1367
  }).arrayBuffer()).byteLength;
1368
- if (a.isArrayBufferView(d) || a.isArrayBuffer(d))
1368
+ if (c.isArrayBufferView(d) || c.isArrayBuffer(d))
1369
1369
  return d.byteLength;
1370
- if (a.isURLSearchParams(d) && (d = d + ""), a.isString(d))
1370
+ if (c.isURLSearchParams(d) && (d = d + ""), c.isString(d))
1371
1371
  return (await f(d)).byteLength;
1372
- }, E = async (d, y) => {
1373
- const p = a.toFiniteNumber(d.getContentLength());
1374
- return p ?? g(y);
1372
+ }, R = async (d, y) => {
1373
+ const p = c.toFiniteNumber(d.getContentLength());
1374
+ return p ?? m(y);
1375
1375
  };
1376
1376
  return async (d) => {
1377
1377
  let {
@@ -1379,42 +1379,42 @@ const vt = (t) => {
1379
1379
  method: p,
1380
1380
  data: C,
1381
1381
  signal: N,
1382
- cancelToken: R,
1382
+ cancelToken: E,
1383
1383
  timeout: T,
1384
1384
  onDownloadProgress: D,
1385
1385
  onUploadProgress: $,
1386
1386
  responseType: x,
1387
1387
  headers: Se,
1388
1388
  withCredentials: ce = "same-origin",
1389
- fetchOptions: ze
1390
- } = vt(d), Je = e || fetch;
1389
+ fetchOptions: Je
1390
+ } = Bt(d), We = e || fetch;
1391
1391
  x = x ? (x + "").toLowerCase() : "text";
1392
1392
  let ue = yn(
1393
- [N, R && R.toAbortSignal()],
1393
+ [N, E && E.toAbortSignal()],
1394
1394
  T
1395
- ), G = null;
1395
+ ), Z = null;
1396
1396
  const j = ue && ue.unsubscribe && (() => {
1397
1397
  ue.unsubscribe();
1398
1398
  });
1399
- let We;
1399
+ let Qe;
1400
1400
  try {
1401
- if ($ && l && p !== "get" && p !== "head" && (We = await E(Se, C)) !== 0) {
1402
- let B = new r(y, {
1401
+ if ($ && l && p !== "get" && p !== "head" && (Qe = await R(Se, C)) !== 0) {
1402
+ let I = new r(y, {
1403
1403
  method: "POST",
1404
1404
  body: C,
1405
1405
  duplex: "half"
1406
- }), z;
1407
- if (a.isFormData(C) && (z = B.headers.get("content-type")) && Se.setContentType(z), B.body) {
1408
- const [Te, le] = st(
1409
- We,
1410
- ge(it($))
1406
+ }), J;
1407
+ if (c.isFormData(C) && (J = I.headers.get("content-type")) && Se.setContentType(J), I.body) {
1408
+ const [Te, le] = it(
1409
+ Qe,
1410
+ me(ot($))
1411
1411
  );
1412
- C = at(B.body, ct, Te, le);
1412
+ C = ct(I.body, ut, Te, le);
1413
1413
  }
1414
1414
  }
1415
- a.isString(ce) || (ce = ce ? "include" : "omit");
1416
- const A = i && "credentials" in r.prototype, Qe = {
1417
- ...ze,
1415
+ c.isString(ce) || (ce = ce ? "include" : "omit");
1416
+ const A = i && "credentials" in r.prototype, Xe = {
1417
+ ...Je,
1418
1418
  signal: ue,
1419
1419
  method: p.toUpperCase(),
1420
1420
  headers: Se.normalize().toJSON(),
@@ -1422,72 +1422,72 @@ const vt = (t) => {
1422
1422
  duplex: "half",
1423
1423
  credentials: A ? ce : void 0
1424
1424
  };
1425
- G = i && new r(y, Qe);
1426
- let v = await (i ? Je(G, ze) : Je(y, Qe));
1427
- const Xe = u && (x === "stream" || x === "response");
1428
- if (u && (D || Xe && j)) {
1429
- const B = {};
1430
- ["status", "statusText", "headers"].forEach((Ye) => {
1431
- B[Ye] = v[Ye];
1425
+ Z = i && new r(y, Xe);
1426
+ let B = await (i ? We(Z, Je) : We(y, Xe));
1427
+ const Ye = u && (x === "stream" || x === "response");
1428
+ if (u && (D || Ye && j)) {
1429
+ const I = {};
1430
+ ["status", "statusText", "headers"].forEach((Ge) => {
1431
+ I[Ge] = B[Ge];
1432
1432
  });
1433
- const z = a.toFiniteNumber(v.headers.get("content-length")), [Te, le] = D && st(
1434
- z,
1435
- ge(it(D), !0)
1433
+ const J = c.toFiniteNumber(B.headers.get("content-length")), [Te, le] = D && it(
1434
+ J,
1435
+ me(ot(D), !0)
1436
1436
  ) || [];
1437
- v = new n(
1438
- at(v.body, ct, Te, () => {
1437
+ B = new n(
1438
+ ct(B.body, ut, Te, () => {
1439
1439
  le && le(), j && j();
1440
1440
  }),
1441
- B
1441
+ I
1442
1442
  );
1443
1443
  }
1444
1444
  x = x || "text";
1445
- let Kt = await h[a.findKey(h, x) || "text"](
1446
- v,
1445
+ let Kt = await h[c.findKey(h, x) || "text"](
1446
+ B,
1447
1447
  d
1448
1448
  );
1449
- return !Xe && j && j(), await new Promise((B, z) => {
1450
- Ft(B, z, {
1449
+ return !Ye && j && j(), await new Promise((I, J) => {
1450
+ Ft(I, J, {
1451
1451
  data: Kt,
1452
- headers: O.from(v.headers),
1453
- status: v.status,
1454
- statusText: v.statusText,
1452
+ headers: O.from(B.headers),
1453
+ status: B.status,
1454
+ statusText: B.statusText,
1455
1455
  config: d,
1456
- request: G
1456
+ request: Z
1457
1457
  });
1458
1458
  });
1459
1459
  } catch (A) {
1460
1460
  throw j && j(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
1461
- new m(
1461
+ new g(
1462
1462
  "Network Error",
1463
- m.ERR_NETWORK,
1463
+ g.ERR_NETWORK,
1464
1464
  d,
1465
- G,
1465
+ Z,
1466
1466
  A && A.response
1467
1467
  ),
1468
1468
  {
1469
1469
  cause: A.cause || A
1470
1470
  }
1471
- ) : m.from(A, A && A.code, d, G, A && A.response);
1471
+ ) : g.from(A, A && A.code, d, Z, A && A.response);
1472
1472
  }
1473
1473
  };
1474
- }, Cn = /* @__PURE__ */ new Map(), Bt = (t) => {
1474
+ }, Cn = /* @__PURE__ */ new Map(), It = (t) => {
1475
1475
  let e = t && t.env || {};
1476
1476
  const { fetch: r, Request: n, Response: s } = e, i = [n, s, r];
1477
- let o = i.length, c = o, f, l, u = Cn;
1478
- for (; c--; )
1479
- f = i[c], l = u.get(f), l === void 0 && u.set(f, l = c ? /* @__PURE__ */ new Map() : _n(e)), u = l;
1477
+ let o = i.length, a = o, f, l, u = Cn;
1478
+ for (; a--; )
1479
+ f = i[a], l = u.get(f), l === void 0 && u.set(f, l = a ? /* @__PURE__ */ new Map() : bn(e)), u = l;
1480
1480
  return l;
1481
1481
  };
1482
- Bt();
1482
+ It();
1483
1483
  const je = {
1484
1484
  http: Br,
1485
1485
  xhr: pn,
1486
1486
  fetch: {
1487
- get: Bt
1487
+ get: It
1488
1488
  }
1489
1489
  };
1490
- a.forEach(je, (t, e) => {
1490
+ c.forEach(je, (t, e) => {
1491
1491
  if (t) {
1492
1492
  try {
1493
1493
  Object.defineProperty(t, "name", { value: e });
@@ -1496,30 +1496,30 @@ a.forEach(je, (t, e) => {
1496
1496
  Object.defineProperty(t, "adapterName", { value: e });
1497
1497
  }
1498
1498
  });
1499
- const ft = (t) => `- ${t}`, En = (t) => a.isFunction(t) || t === null || t === !1;
1500
- function Rn(t, e) {
1501
- t = a.isArray(t) ? t : [t];
1499
+ const ht = (t) => `- ${t}`, Rn = (t) => c.isFunction(t) || t === null || t === !1;
1500
+ function En(t, e) {
1501
+ t = c.isArray(t) ? t : [t];
1502
1502
  const { length: r } = t;
1503
1503
  let n, s;
1504
1504
  const i = {};
1505
1505
  for (let o = 0; o < r; o++) {
1506
1506
  n = t[o];
1507
- let c;
1508
- if (s = n, !En(n) && (s = je[(c = String(n)).toLowerCase()], s === void 0))
1509
- throw new m(`Unknown adapter '${c}'`);
1510
- if (s && (a.isFunction(s) || (s = s.get(e))))
1507
+ let a;
1508
+ if (s = n, !Rn(n) && (s = je[(a = String(n)).toLowerCase()], s === void 0))
1509
+ throw new g(`Unknown adapter '${a}'`);
1510
+ if (s && (c.isFunction(s) || (s = s.get(e))))
1511
1511
  break;
1512
- i[c || "#" + o] = s;
1512
+ i[a || "#" + o] = s;
1513
1513
  }
1514
1514
  if (!s) {
1515
1515
  const o = Object.entries(i).map(
1516
1516
  ([f, l]) => `adapter ${f} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1517
1517
  );
1518
- let c = r ? o.length > 1 ? `since :
1519
- ` + o.map(ft).join(`
1520
- `) : " " + ft(o[0]) : "as no adapter specified";
1521
- throw new m(
1522
- "There is no suitable adapter to dispatch the request " + c,
1518
+ let a = r ? o.length > 1 ? `since :
1519
+ ` + o.map(ht).join(`
1520
+ `) : " " + ht(o[0]) : "as no adapter specified";
1521
+ throw new g(
1522
+ "There is no suitable adapter to dispatch the request " + a,
1523
1523
  "ERR_NOT_SUPPORT"
1524
1524
  );
1525
1525
  }
@@ -1530,7 +1530,7 @@ const qt = {
1530
1530
  * Resolve an adapter from a list of adapter names or functions.
1531
1531
  * @type {Function}
1532
1532
  */
1533
- getAdapter: Rn,
1533
+ getAdapter: En,
1534
1534
  /**
1535
1535
  * Exposes all known adapters
1536
1536
  * @type {Object<string, Function|Object>}
@@ -1541,13 +1541,13 @@ function Ne(t) {
1541
1541
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1542
1542
  throw new oe(null, t);
1543
1543
  }
1544
- function ht(t) {
1544
+ function pt(t) {
1545
1545
  return Ne(t), t.headers = O.from(t.headers), t.data = Oe.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), qt.getAdapter(t.adapter || ie.adapter, t)(t).then(
1546
1546
  function(n) {
1547
1547
  return Ne(t), n.data = Oe.call(t, t.transformResponse, n), n.headers = O.from(n.headers), n;
1548
1548
  },
1549
1549
  function(n) {
1550
- return Lt(n) || (Ne(t), n && n.response && (n.response.data = Oe.call(
1550
+ return kt(n) || (Ne(t), n && n.response && (n.response.data = Oe.call(
1551
1551
  t,
1552
1552
  t.transformResponse,
1553
1553
  n.response
@@ -1555,63 +1555,63 @@ function ht(t) {
1555
1555
  }
1556
1556
  );
1557
1557
  }
1558
- const It = "1.13.6", Ee = {};
1558
+ const $t = "1.13.6", Re = {};
1559
1559
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1560
- Ee[t] = function(n) {
1560
+ Re[t] = function(n) {
1561
1561
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1562
1562
  };
1563
1563
  });
1564
- const pt = {};
1565
- Ee.transitional = function(e, r, n) {
1564
+ const yt = {};
1565
+ Re.transitional = function(e, r, n) {
1566
1566
  function s(i, o) {
1567
- return "[Axios v" + It + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1567
+ return "[Axios v" + $t + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1568
1568
  }
1569
- return (i, o, c) => {
1569
+ return (i, o, a) => {
1570
1570
  if (e === !1)
1571
- throw new m(
1571
+ throw new g(
1572
1572
  s(o, " has been removed" + (r ? " in " + r : "")),
1573
- m.ERR_DEPRECATED
1573
+ g.ERR_DEPRECATED
1574
1574
  );
1575
- return r && !pt[o] && (pt[o] = !0, console.warn(
1575
+ return r && !yt[o] && (yt[o] = !0, console.warn(
1576
1576
  s(
1577
1577
  o,
1578
1578
  " has been deprecated since v" + r + " and will be removed in the near future"
1579
1579
  )
1580
- )), e ? e(i, o, c) : !0;
1580
+ )), e ? e(i, o, a) : !0;
1581
1581
  };
1582
1582
  };
1583
- Ee.spelling = function(e) {
1583
+ Re.spelling = function(e) {
1584
1584
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1585
1585
  };
1586
1586
  function Sn(t, e, r) {
1587
1587
  if (typeof t != "object")
1588
- throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1588
+ throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1589
1589
  const n = Object.keys(t);
1590
1590
  let s = n.length;
1591
1591
  for (; s-- > 0; ) {
1592
1592
  const i = n[s], o = e[i];
1593
1593
  if (o) {
1594
- const c = t[i], f = c === void 0 || o(c, i, t);
1594
+ const a = t[i], f = a === void 0 || o(a, i, t);
1595
1595
  if (f !== !0)
1596
- throw new m(
1596
+ throw new g(
1597
1597
  "option " + i + " must be " + f,
1598
- m.ERR_BAD_OPTION_VALUE
1598
+ g.ERR_BAD_OPTION_VALUE
1599
1599
  );
1600
1600
  continue;
1601
1601
  }
1602
1602
  if (r !== !0)
1603
- throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
1603
+ throw new g("Unknown option " + i, g.ERR_BAD_OPTION);
1604
1604
  }
1605
1605
  }
1606
- const me = {
1606
+ const ge = {
1607
1607
  assertOptions: Sn,
1608
- validators: Ee
1609
- }, U = me.validators;
1608
+ validators: Re
1609
+ }, U = ge.validators;
1610
1610
  let H = class {
1611
1611
  constructor(e) {
1612
1612
  this.defaults = e || {}, this.interceptors = {
1613
- request: new rt(),
1614
- response: new rt()
1613
+ request: new nt(),
1614
+ response: new nt()
1615
1615
  };
1616
1616
  }
1617
1617
  /**
@@ -1642,7 +1642,7 @@ let H = class {
1642
1642
  _request(e, r) {
1643
1643
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = V(this.defaults, r);
1644
1644
  const { transitional: n, paramsSerializer: s, headers: i } = r;
1645
- n !== void 0 && me.assertOptions(
1645
+ n !== void 0 && ge.assertOptions(
1646
1646
  n,
1647
1647
  {
1648
1648
  silentJSONParsing: U.transitional(U.boolean),
@@ -1651,16 +1651,16 @@ let H = class {
1651
1651
  legacyInterceptorReqResOrdering: U.transitional(U.boolean)
1652
1652
  },
1653
1653
  !1
1654
- ), s != null && (a.isFunction(s) ? r.paramsSerializer = {
1654
+ ), s != null && (c.isFunction(s) ? r.paramsSerializer = {
1655
1655
  serialize: s
1656
- } : me.assertOptions(
1656
+ } : ge.assertOptions(
1657
1657
  s,
1658
1658
  {
1659
1659
  encode: U.function,
1660
1660
  serialize: U.function
1661
1661
  },
1662
1662
  !0
1663
- )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), me.assertOptions(
1663
+ )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), ge.assertOptions(
1664
1664
  r,
1665
1665
  {
1666
1666
  baseUrl: U.spelling("baseURL"),
@@ -1668,57 +1668,57 @@ let H = class {
1668
1668
  },
1669
1669
  !0
1670
1670
  ), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1671
- let o = i && a.merge(i.common, i[r.method]);
1672
- i && a.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (d) => {
1671
+ let o = i && c.merge(i.common, i[r.method]);
1672
+ i && c.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (d) => {
1673
1673
  delete i[d];
1674
1674
  }), r.headers = O.concat(o, i);
1675
- const c = [];
1675
+ const a = [];
1676
1676
  let f = !0;
1677
1677
  this.interceptors.request.forEach(function(y) {
1678
1678
  if (typeof y.runWhen == "function" && y.runWhen(r) === !1)
1679
1679
  return;
1680
1680
  f = f && y.synchronous;
1681
- const p = r.transitional || Ie;
1682
- p && p.legacyInterceptorReqResOrdering ? c.unshift(y.fulfilled, y.rejected) : c.push(y.fulfilled, y.rejected);
1681
+ const p = r.transitional || qe;
1682
+ p && p.legacyInterceptorReqResOrdering ? a.unshift(y.fulfilled, y.rejected) : a.push(y.fulfilled, y.rejected);
1683
1683
  });
1684
1684
  const l = [];
1685
1685
  this.interceptors.response.forEach(function(y) {
1686
1686
  l.push(y.fulfilled, y.rejected);
1687
1687
  });
1688
- let u, h = 0, g;
1688
+ let u, h = 0, m;
1689
1689
  if (!f) {
1690
- const d = [ht.bind(this), void 0];
1691
- for (d.unshift(...c), d.push(...l), g = d.length, u = Promise.resolve(r); h < g; )
1690
+ const d = [pt.bind(this), void 0];
1691
+ for (d.unshift(...a), d.push(...l), m = d.length, u = Promise.resolve(r); h < m; )
1692
1692
  u = u.then(d[h++], d[h++]);
1693
1693
  return u;
1694
1694
  }
1695
- g = c.length;
1696
- let E = r;
1697
- for (; h < g; ) {
1698
- const d = c[h++], y = c[h++];
1695
+ m = a.length;
1696
+ let R = r;
1697
+ for (; h < m; ) {
1698
+ const d = a[h++], y = a[h++];
1699
1699
  try {
1700
- E = d(E);
1700
+ R = d(R);
1701
1701
  } catch (p) {
1702
1702
  y.call(this, p);
1703
1703
  break;
1704
1704
  }
1705
1705
  }
1706
1706
  try {
1707
- u = ht.call(this, E);
1707
+ u = pt.call(this, R);
1708
1708
  } catch (d) {
1709
1709
  return Promise.reject(d);
1710
1710
  }
1711
- for (h = 0, g = l.length; h < g; )
1711
+ for (h = 0, m = l.length; h < m; )
1712
1712
  u = u.then(l[h++], l[h++]);
1713
1713
  return u;
1714
1714
  }
1715
1715
  getUri(e) {
1716
1716
  e = V(this.defaults, e);
1717
- const r = kt(e.baseURL, e.url, e.allowAbsoluteUrls);
1718
- return Ut(r, e.params, e.paramsSerializer);
1717
+ const r = vt(e.baseURL, e.url, e.allowAbsoluteUrls);
1718
+ return Dt(r, e.params, e.paramsSerializer);
1719
1719
  }
1720
1720
  };
1721
- a.forEach(["delete", "get", "head", "options"], function(e) {
1721
+ c.forEach(["delete", "get", "head", "options"], function(e) {
1722
1722
  H.prototype[e] = function(r, n) {
1723
1723
  return this.request(
1724
1724
  V(n || {}, {
@@ -1729,11 +1729,11 @@ a.forEach(["delete", "get", "head", "options"], function(e) {
1729
1729
  );
1730
1730
  };
1731
1731
  });
1732
- a.forEach(["post", "put", "patch"], function(e) {
1732
+ c.forEach(["post", "put", "patch"], function(e) {
1733
1733
  function r(n) {
1734
- return function(i, o, c) {
1734
+ return function(i, o, a) {
1735
1735
  return this.request(
1736
- V(c || {}, {
1736
+ V(a || {}, {
1737
1737
  method: e,
1738
1738
  headers: n ? {
1739
1739
  "Content-Type": "multipart/form-data"
@@ -1746,7 +1746,7 @@ a.forEach(["post", "put", "patch"], function(e) {
1746
1746
  }
1747
1747
  H.prototype[e] = r(), H.prototype[e + "Form"] = r(!0);
1748
1748
  });
1749
- let Tn = class $t {
1749
+ let Tn = class jt {
1750
1750
  constructor(e) {
1751
1751
  if (typeof e != "function")
1752
1752
  throw new TypeError("executor must be a function.");
@@ -1763,14 +1763,14 @@ let Tn = class $t {
1763
1763
  n._listeners = null;
1764
1764
  }), this.promise.then = (s) => {
1765
1765
  let i;
1766
- const o = new Promise((c) => {
1767
- n.subscribe(c), i = c;
1766
+ const o = new Promise((a) => {
1767
+ n.subscribe(a), i = a;
1768
1768
  }).then(s);
1769
1769
  return o.cancel = function() {
1770
1770
  n.unsubscribe(i);
1771
1771
  }, o;
1772
- }, e(function(i, o, c) {
1773
- n.reason || (n.reason = new oe(i, o, c), r(n.reason));
1772
+ }, e(function(i, o, a) {
1773
+ n.reason || (n.reason = new oe(i, o, a), r(n.reason));
1774
1774
  });
1775
1775
  }
1776
1776
  /**
@@ -1812,7 +1812,7 @@ let Tn = class $t {
1812
1812
  static source() {
1813
1813
  let e;
1814
1814
  return {
1815
- token: new $t(function(s) {
1815
+ token: new jt(function(s) {
1816
1816
  e = s;
1817
1817
  }),
1818
1818
  cancel: e
@@ -1825,9 +1825,9 @@ function An(t) {
1825
1825
  };
1826
1826
  }
1827
1827
  function Pn(t) {
1828
- return a.isObject(t) && t.isAxiosError === !0;
1828
+ return c.isObject(t) && t.isAxiosError === !0;
1829
1829
  }
1830
- const ke = {
1830
+ const Fe = {
1831
1831
  Continue: 100,
1832
1832
  SwitchingProtocols: 101,
1833
1833
  Processing: 102,
@@ -1898,71 +1898,71 @@ const ke = {
1898
1898
  SslHandshakeFailed: 525,
1899
1899
  InvalidSslCertificate: 526
1900
1900
  };
1901
- Object.entries(ke).forEach(([t, e]) => {
1902
- ke[e] = t;
1901
+ Object.entries(Fe).forEach(([t, e]) => {
1902
+ Fe[e] = t;
1903
1903
  });
1904
- function jt(t) {
1905
- const e = new H(t), r = _t(H.prototype.request, e);
1906
- return a.extend(r, H.prototype, e, { allOwnKeys: !0 }), a.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
1907
- return jt(V(t, s));
1904
+ function Mt(t) {
1905
+ const e = new H(t), r = Ct(H.prototype.request, e);
1906
+ return c.extend(r, H.prototype, e, { allOwnKeys: !0 }), c.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
1907
+ return Mt(V(t, s));
1908
1908
  }, r;
1909
1909
  }
1910
- const _ = jt(ie);
1911
- _.Axios = H;
1912
- _.CanceledError = oe;
1913
- _.CancelToken = Tn;
1914
- _.isCancel = Lt;
1915
- _.VERSION = It;
1916
- _.toFormData = Ce;
1917
- _.AxiosError = m;
1918
- _.Cancel = _.CanceledError;
1919
- _.all = function(e) {
1910
+ const b = Mt(ie);
1911
+ b.Axios = H;
1912
+ b.CanceledError = oe;
1913
+ b.CancelToken = Tn;
1914
+ b.isCancel = kt;
1915
+ b.VERSION = $t;
1916
+ b.toFormData = Ce;
1917
+ b.AxiosError = g;
1918
+ b.Cancel = b.CanceledError;
1919
+ b.all = function(e) {
1920
1920
  return Promise.all(e);
1921
1921
  };
1922
- _.spread = An;
1923
- _.isAxiosError = Pn;
1924
- _.mergeConfig = V;
1925
- _.AxiosHeaders = O;
1926
- _.formToJSON = (t) => Dt(a.isHTMLForm(t) ? new FormData(t) : t);
1927
- _.getAdapter = qt.getAdapter;
1928
- _.HttpStatusCode = ke;
1929
- _.default = _;
1922
+ b.spread = An;
1923
+ b.isAxiosError = Pn;
1924
+ b.mergeConfig = V;
1925
+ b.AxiosHeaders = O;
1926
+ b.formToJSON = (t) => Lt(c.isHTMLForm(t) ? new FormData(t) : t);
1927
+ b.getAdapter = qt.getAdapter;
1928
+ b.HttpStatusCode = Fe;
1929
+ b.default = b;
1930
1930
  const {
1931
- Axios: Xs,
1931
+ Axios: Zs,
1932
1932
  AxiosError: fe,
1933
- CanceledError: Ys,
1934
- isCancel: Gs,
1935
- CancelToken: Zs,
1936
- VERSION: ei,
1937
- all: ti,
1938
- Cancel: ri,
1939
- isAxiosError: ni,
1940
- spread: si,
1941
- toFormData: ii,
1942
- AxiosHeaders: oi,
1943
- HttpStatusCode: ai,
1944
- formToJSON: ci,
1945
- getAdapter: ui,
1946
- mergeConfig: li
1947
- } = _;
1933
+ CanceledError: ei,
1934
+ isCancel: ti,
1935
+ CancelToken: ri,
1936
+ VERSION: ni,
1937
+ all: si,
1938
+ Cancel: ii,
1939
+ isAxiosError: oi,
1940
+ spread: ai,
1941
+ toFormData: ci,
1942
+ AxiosHeaders: ui,
1943
+ HttpStatusCode: li,
1944
+ formToJSON: di,
1945
+ getAdapter: fi,
1946
+ mergeConfig: hi
1947
+ } = b;
1948
1948
  class xe extends Error {
1949
1949
  constructor(r) {
1950
1950
  super(r.join(", "));
1951
- b(this, "errors");
1951
+ w(this, "errors");
1952
1952
  this.name = "ValidationError", this.errors = r;
1953
1953
  }
1954
1954
  }
1955
- class yt extends Error {
1955
+ class gt extends Error {
1956
1956
  constructor(r) {
1957
1957
  super("Address already registered.");
1958
- b(this, "address");
1958
+ w(this, "address");
1959
1959
  this.name = "AddressInUseError", this.address = r;
1960
1960
  }
1961
1961
  }
1962
1962
  class mt extends Error {
1963
1963
  constructor(r) {
1964
1964
  super("Code already registered.");
1965
- b(this, "code");
1965
+ w(this, "code");
1966
1966
  this.name = "CodeInUseError", this.code = r;
1967
1967
  }
1968
1968
  }
@@ -1973,11 +1973,11 @@ class Ue extends Error {
1973
1973
  }
1974
1974
  class On {
1975
1975
  constructor(e) {
1976
- b(this, "httpClient");
1977
- b(this, "_debug");
1976
+ w(this, "httpClient");
1977
+ w(this, "_debug");
1978
1978
  this.httpClient = e.httpClient, this._debug = e.debug;
1979
1979
  }
1980
- async create(e, r, n, s, i, o, c) {
1980
+ async create(e, r, n, s, i, o, a) {
1981
1981
  var f;
1982
1982
  try {
1983
1983
  return (await this.httpClient.post({
@@ -1990,7 +1990,7 @@ class On {
1990
1990
  signature: s,
1991
1991
  signature_public_key: i,
1992
1992
  account_chain_id: o,
1993
- user_rebate_rate: c
1993
+ user_rebate_rate: a
1994
1994
  }
1995
1995
  })).data;
1996
1996
  } catch (l) {
@@ -1998,7 +1998,7 @@ class On {
1998
1998
  const u = (f = l.response) == null ? void 0 : f.data;
1999
1999
  if (typeof (u == null ? void 0 : u.message) == "string") {
2000
2000
  const h = u.message.toLowerCase();
2001
- throw h == "invalid signature" ? new Ue() : h == "address in use" ? new yt(e) : h == "code in use" ? new mt(n) : new Error(h);
2001
+ throw h == "invalid signature" ? new Ue() : h == "address in use" ? new gt(e) : h == "code in use" ? new mt(n) : new Error(h);
2002
2002
  } else if ((u == null ? void 0 : u.message) instanceof Array)
2003
2003
  throw new xe(u.message);
2004
2004
  }
@@ -2006,7 +2006,7 @@ class On {
2006
2006
  }
2007
2007
  }
2008
2008
  async update(e, r, n, s, i, o) {
2009
- var c;
2009
+ var a;
2010
2010
  try {
2011
2011
  await this.httpClient.post({
2012
2012
  path: `/affiliates/${e}`,
@@ -2021,17 +2021,17 @@ class On {
2021
2021
  });
2022
2022
  } catch (f) {
2023
2023
  if (f instanceof fe) {
2024
- const l = (c = f.response) == null ? void 0 : c.data;
2024
+ const l = (a = f.response) == null ? void 0 : a.data;
2025
2025
  if (typeof (l == null ? void 0 : l.message) == "string") {
2026
2026
  const u = l.message.toLowerCase();
2027
- throw u == "invalid signature" ? new Ue() : u == "address in use" ? new yt(e) : u == "code in use" ? new mt(n) : new Error(u);
2027
+ throw u == "invalid signature" ? new Ue() : u == "address in use" ? new gt(e) : u == "code in use" ? new mt(n) : new Error(u);
2028
2028
  } else if ((l == null ? void 0 : l.message) instanceof Array)
2029
2029
  throw new xe(l.message);
2030
2030
  }
2031
2031
  throw f;
2032
2032
  }
2033
2033
  }
2034
- async updateRebateRate(e, r, n, s, i, o, c, f) {
2034
+ async updateRebateRate(e, r, n, s, i, o, a, f) {
2035
2035
  var l;
2036
2036
  try {
2037
2037
  await this.httpClient.post({
@@ -2041,7 +2041,7 @@ class On {
2041
2041
  code: n,
2042
2042
  signature: s,
2043
2043
  signature_public_key: o,
2044
- account_chain_id: c,
2044
+ account_chain_id: a,
2045
2045
  source_project_id: f,
2046
2046
  rebate_rate: i
2047
2047
  }
@@ -2050,8 +2050,8 @@ class On {
2050
2050
  if (u instanceof fe) {
2051
2051
  const h = (l = u.response) == null ? void 0 : l.data;
2052
2052
  if (typeof (h == null ? void 0 : h.message) == "string") {
2053
- const g = h.message.toLowerCase();
2054
- throw g == "invalid signature" ? new Ue() : new Error(g);
2053
+ const m = h.message.toLowerCase();
2054
+ throw m == "invalid signature" ? new Ue() : new Error(m);
2055
2055
  } else if ((h == null ? void 0 : h.message) instanceof Array)
2056
2056
  throw new xe(h.message);
2057
2057
  }
@@ -2072,22 +2072,39 @@ class On {
2072
2072
  throw console.error("Fuul SDK: Could not check affiliate code availability", r), r;
2073
2073
  }
2074
2074
  }
2075
- async getCode(e, r) {
2075
+ async getReferral(e, r) {
2076
2076
  var n;
2077
2077
  try {
2078
- return (await this.httpClient.get({ path: `/affiliates/${e}`, queryParams: { identifier_type: r } })).data;
2078
+ const i = (await this.httpClient.get({ path: `/affiliates/${e}`, queryParams: { identifier_type: r } })).data, o = i.codes ?? [], a = o[0];
2079
+ return {
2080
+ id: i.id,
2081
+ name: i.name,
2082
+ user_identifier: i.user_identifier,
2083
+ user_identifier_type: i.user_identifier_type,
2084
+ updated_at: i.updated_at,
2085
+ region: i.region ?? "",
2086
+ codes: o,
2087
+ code: (a == null ? void 0 : a.code) ?? "",
2088
+ created_at: (a == null ? void 0 : a.created_at) ?? "",
2089
+ uses: (a == null ? void 0 : a.uses) ?? 0,
2090
+ clicks: (a == null ? void 0 : a.clicks) ?? 0,
2091
+ total_users: (a == null ? void 0 : a.total_users) ?? 0,
2092
+ total_earnings: (a == null ? void 0 : a.total_earnings) ?? 0,
2093
+ rebate_rate: (a == null ? void 0 : a.rebate_rate) ?? null,
2094
+ current_tier: (a == null ? void 0 : a.current_tier) ?? null
2095
+ };
2079
2096
  } catch (s) {
2080
2097
  if (s instanceof fe && ((n = s.response) == null ? void 0 : n.status) === 404)
2081
2098
  return null;
2082
- throw console.error("Fuul SDK: Could not get affiliate code", s), s;
2099
+ throw console.error("Fuul SDK: Could not get affiliate referral", s), s;
2083
2100
  }
2084
2101
  }
2085
2102
  }
2086
2103
  const Nn = "/audiences";
2087
2104
  class xn {
2088
2105
  constructor(e) {
2089
- b(this, "httpClient");
2090
- b(this, "_debug");
2106
+ w(this, "httpClient");
2107
+ w(this, "_debug");
2091
2108
  this.httpClient = e.httpClient, this._debug = e.debug;
2092
2109
  }
2093
2110
  async getUserAudiences(e) {
@@ -2100,8 +2117,8 @@ class xn {
2100
2117
  const he = "/claim-checks";
2101
2118
  class Un {
2102
2119
  constructor(e) {
2103
- b(this, "httpClient");
2104
- b(this, "_debug");
2120
+ w(this, "httpClient");
2121
+ w(this, "_debug");
2105
2122
  this.httpClient = e.httpClient, this._debug = e.debug;
2106
2123
  }
2107
2124
  /**
@@ -2171,7 +2188,7 @@ class Un {
2171
2188
  }
2172
2189
  class Dn {
2173
2190
  constructor(e) {
2174
- b(this, "httpClient");
2191
+ w(this, "httpClient");
2175
2192
  this.httpClient = e.httpClient;
2176
2193
  }
2177
2194
  async getAll(e) {
@@ -2179,11 +2196,11 @@ class Dn {
2179
2196
  return r;
2180
2197
  }
2181
2198
  }
2182
- const gt = "fuul.sent", Ln = 60, Fn = "connect_wallet", wt = 10;
2183
- class kn {
2199
+ const _t = "fuul.sent", Ln = 60, kn = "connect_wallet", wt = 10;
2200
+ class Fn {
2184
2201
  constructor(e) {
2185
- b(this, "debug");
2186
- b(this, "httpClient");
2202
+ w(this, "debug");
2203
+ w(this, "httpClient");
2187
2204
  this.httpClient = e.httpClient, this.debug = !!e.debug;
2188
2205
  }
2189
2206
  async sendEvent(e, r) {
@@ -2201,15 +2218,15 @@ class kn {
2201
2218
  this.debug && console.debug(`Fuul SDK: Sent '${e.name}' event`), this.saveSentEvent(e);
2202
2219
  }
2203
2220
  isDuplicate(e) {
2204
- var u, h, g, E;
2205
- const r = `${gt}_${e.name}`, n = localStorage.getItem(r);
2221
+ var u, h, m, R;
2222
+ const r = `${_t}_${e.name}`, n = localStorage.getItem(r);
2206
2223
  if (!n)
2207
2224
  return !1;
2208
2225
  const s = JSON.parse(n);
2209
2226
  if (this.getCurrentTimestamp() - s.timestamp > Ln)
2210
2227
  return !1;
2211
2228
  let f = !1;
2212
- e.metadata && (f = s.metadata.tracking_id === e.metadata.tracking_id && s.metadata.project_id === e.metadata.project_id && s.metadata.referrer === e.metadata.referrer && s.metadata.source === e.metadata.source && s.metadata.category === e.metadata.category && s.metadata.title === e.metadata.title && s.metadata.tag === e.metadata.tag && s.user_address === e.user_address && ((u = s.user) == null ? void 0 : u.identifier) === ((h = e.user) == null ? void 0 : h.identifier) && ((g = s.user) == null ? void 0 : g.identifier_type) === ((E = e.user) == null ? void 0 : E.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
2229
+ e.metadata && (f = s.metadata.tracking_id === e.metadata.tracking_id && s.metadata.project_id === e.metadata.project_id && s.metadata.referrer === e.metadata.referrer && s.metadata.source === e.metadata.source && s.metadata.category === e.metadata.category && s.metadata.title === e.metadata.title && s.metadata.tag === e.metadata.tag && s.user_address === e.user_address && ((u = s.user) == null ? void 0 : u.identifier) === ((h = e.user) == null ? void 0 : h.identifier) && ((m = s.user) == null ? void 0 : m.identifier_type) === ((R = e.user) == null ? void 0 : R.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
2213
2230
  let l = !1;
2214
2231
  return e.args && s.args && (l = s.args.page === e.args.page), l && f;
2215
2232
  }
@@ -2217,32 +2234,32 @@ class kn {
2217
2234
  return Date.now() / 1e3;
2218
2235
  }
2219
2236
  saveSentEvent(e) {
2220
- var o, c, f, l;
2221
- const r = `${gt}_${e.name}`, n = `${r}_all`, s = this.getCurrentTimestamp(), i = { ...e, timestamp: s };
2222
- if (localStorage.setItem(r, JSON.stringify(i)), e.name === Fn) {
2237
+ var o, a, f, l;
2238
+ const r = `${_t}_${e.name}`, n = `${r}_all`, s = this.getCurrentTimestamp(), i = { ...e, timestamp: s };
2239
+ if (localStorage.setItem(r, JSON.stringify(i)), e.name === kn) {
2223
2240
  const u = JSON.parse(localStorage.getItem(n) || "[]"), h = {
2224
2241
  name: e.name,
2225
2242
  user: {
2226
2243
  identifier: (o = e.user) == null ? void 0 : o.identifier,
2227
- identifier_type: (c = e.user) == null ? void 0 : c.identifier_type
2244
+ identifier_type: (a = e.user) == null ? void 0 : a.identifier_type
2228
2245
  },
2229
2246
  tracking_id: (f = e.metadata) == null ? void 0 : f.tracking_id,
2230
2247
  page: (l = e.args) == null ? void 0 : l.page
2231
2248
  };
2232
2249
  "user_address" in e && (h.user_address = e.user_address);
2233
- const g = [...u, h];
2234
- g.length > wt && g.splice(0, g.length - wt), localStorage.setItem(n, JSON.stringify(g));
2250
+ const m = [...u, h];
2251
+ m.length > wt && m.splice(0, m.length - wt), localStorage.setItem(n, JSON.stringify(m));
2235
2252
  }
2236
2253
  }
2237
2254
  }
2238
2255
  const vn = "0.0.0", Bn = {
2239
2256
  version: vn
2240
2257
  };
2241
- class qn {
2258
+ class In {
2242
2259
  constructor(e) {
2243
- b(this, "client");
2244
- b(this, "defaultQueryParams");
2245
- this.client = _.create({
2260
+ w(this, "client");
2261
+ w(this, "defaultQueryParams");
2262
+ this.client = b.create({
2246
2263
  ...e,
2247
2264
  headers: {
2248
2265
  Authorization: `Bearer ${e.apiKey}`,
@@ -2293,9 +2310,9 @@ class qn {
2293
2310
  });
2294
2311
  }
2295
2312
  }
2296
- class In {
2313
+ class qn {
2297
2314
  constructor(e) {
2298
- b(this, "httpClient");
2315
+ w(this, "httpClient");
2299
2316
  this.httpClient = e.httpClient;
2300
2317
  }
2301
2318
  async getPayoutsLeaderboard(e) {
@@ -2355,51 +2372,58 @@ class In {
2355
2372
  })).data;
2356
2373
  }
2357
2374
  }
2358
- const te = "/payouts";
2375
+ const W = "/payouts";
2359
2376
  class $n {
2360
2377
  constructor(e) {
2361
- b(this, "httpClient");
2362
- b(this, "_debug");
2378
+ w(this, "httpClient");
2379
+ w(this, "_debug");
2363
2380
  this.httpClient = e.httpClient, this._debug = e.debug;
2364
2381
  }
2365
2382
  async getUserPayoutsByConversion(e) {
2366
2383
  return (await this.httpClient.get({
2367
- path: te,
2384
+ path: W,
2368
2385
  queryParams: { ...e, type: "onchain-currency" }
2369
2386
  })).data;
2370
2387
  }
2371
2388
  async getUserPointsByConversion(e) {
2372
2389
  return (await this.httpClient.get({
2373
- path: te,
2390
+ path: W,
2374
2391
  queryParams: { ...e, type: "point" }
2375
2392
  })).data;
2376
2393
  }
2377
2394
  async getUserPayoutMovements(e) {
2378
2395
  return (await this.httpClient.get({
2379
- path: `${te}/movements`,
2396
+ path: `${W}/movements`,
2380
2397
  queryParams: { ...e, type: "onchain-currency" }
2381
2398
  })).data;
2382
2399
  }
2383
2400
  async getUserPointsMovements(e) {
2384
2401
  return (await this.httpClient.get({
2385
- path: `${te}/movements`,
2402
+ path: `${W}/movements`,
2386
2403
  queryParams: { ...e, type: "point" }
2387
2404
  })).data;
2388
2405
  }
2389
2406
  async getPayoutsByReferrer(e) {
2390
2407
  return (await this.httpClient.get({
2391
- path: `${te}/by-referrer`,
2408
+ path: `${W}/by-referrer`,
2392
2409
  queryParams: {
2393
2410
  user_identifier: e.user_identifier,
2394
2411
  user_identifier_type: e.user_identifier_type
2395
2412
  }
2396
2413
  })).data;
2397
2414
  }
2415
+ async getIncentivesByTier(e) {
2416
+ const r = e != null && e.tier_ids && e.tier_ids.length > 0 ? { tier_ids: e.tier_ids.join(",") } : void 0;
2417
+ return (await this.httpClient.get({
2418
+ path: `${W}/terms-by-tier`,
2419
+ queryParams: r
2420
+ })).data;
2421
+ }
2398
2422
  }
2399
2423
  class jn {
2400
2424
  constructor(e) {
2401
- b(this, "httpClient");
2402
- b(this, "_debug");
2425
+ w(this, "httpClient");
2426
+ w(this, "_debug");
2403
2427
  this.httpClient = e.httpClient, this._debug = e.debug;
2404
2428
  }
2405
2429
  async listUserReferralCodes(e) {
@@ -2439,7 +2463,7 @@ class jn {
2439
2463
  })).data;
2440
2464
  }
2441
2465
  async useReferralCode(e) {
2442
- const { code: r, user_identifier: n, user_identifier_type: s, signature: i, signature_message: o, chain_id: c } = e;
2466
+ const { code: r, user_identifier: n, user_identifier_type: s, signature: i, signature_message: o, chain_id: a } = e;
2443
2467
  await this.httpClient.patch({
2444
2468
  path: `/referral_codes/${r}/use`,
2445
2469
  queryParams: {
@@ -2449,7 +2473,7 @@ class jn {
2449
2473
  postData: {
2450
2474
  signature: i,
2451
2475
  signature_message: o,
2452
- chain_id: c
2476
+ chain_id: a
2453
2477
  }
2454
2478
  });
2455
2479
  }
@@ -2462,7 +2486,7 @@ class jn {
2462
2486
  });
2463
2487
  }
2464
2488
  async deleteReferral(e) {
2465
- const { code: r, user_identifier: n, user_identifier_type: s, referrer_identifier: i, referrer_identifier_type: o, signature: c, signature_message: f, chain_id: l } = e;
2489
+ const { code: r, user_identifier: n, user_identifier_type: s, referrer_identifier: i, referrer_identifier_type: o, signature: a, signature_message: f, chain_id: l } = e;
2466
2490
  await this.httpClient.delete({
2467
2491
  path: `/referral_codes/${r}/referrals`,
2468
2492
  queryParams: {
@@ -2472,7 +2496,7 @@ class jn {
2472
2496
  referrer_identifier_type: o
2473
2497
  },
2474
2498
  postData: {
2475
- signature: c,
2499
+ signature: a,
2476
2500
  signature_message: f,
2477
2501
  chain_id: l
2478
2502
  }
@@ -2486,7 +2510,7 @@ let Hn = (t = 21) => {
2486
2510
  e += Mn[r[t] & 63];
2487
2511
  return e;
2488
2512
  };
2489
- const Vn = "fuul.tracking_id", Me = () => Xn(Vn, () => Hn()), bt = () => W("af") || W("referrer"), Kn = () => document.referrer, zn = () => Yn(), Jn = () => W("category"), Wn = () => W("title"), Qn = () => W("tag"), Xn = (t, e) => {
2513
+ const Vn = "fuul.tracking_id", Me = () => Xn(Vn, () => Hn()), bt = () => X("af") || X("referrer"), Kn = () => document.referrer, zn = () => Yn(), Jn = () => X("category"), Wn = () => X("title"), Qn = () => X("tag"), Xn = (t, e) => {
2490
2514
  const r = localStorage.getItem(t);
2491
2515
  if (r)
2492
2516
  return r;
@@ -2494,14 +2518,14 @@ const Vn = "fuul.tracking_id", Me = () => Xn(Vn, () => Hn()), bt = () => W("af")
2494
2518
  const n = e();
2495
2519
  return n ? localStorage.setItem(t, n) : localStorage.removeItem(t), n;
2496
2520
  }
2497
- }, W = (t) => new URLSearchParams(window.location.search).get(t), Yn = () => {
2498
- const t = W("source");
2521
+ }, X = (t) => new URLSearchParams(window.location.search).get(t), Yn = () => {
2522
+ const t = X("source");
2499
2523
  if (t)
2500
2524
  return t;
2501
2525
  }, Gn = "/user";
2502
2526
  class Zn {
2503
2527
  constructor(e) {
2504
- b(this, "httpClient");
2528
+ w(this, "httpClient");
2505
2529
  this.httpClient = e.httpClient;
2506
2530
  }
2507
2531
  async getUserReferrer(e) {
@@ -2509,16 +2533,16 @@ class Zn {
2509
2533
  }
2510
2534
  }
2511
2535
  const es = "https://api.fuul.xyz/api/v1/";
2512
- let k = !1, ve = !1, He, L, Mt, Ht, q, X, Re, Y, Vt, K, I, ae;
2536
+ let F = !1, ve = !1, He, L, Ve, Ht, v, G, Ee, K, Vt, z, q, ae;
2513
2537
  function ts(t) {
2514
- k = !!t.debug, !ve && (He = t.apiKey, Ms(), L = Hs(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Mt = new Dn({ httpClient: L, debug: k }), Re = new kn({ httpClient: L, debug: k }), q = new On({ httpClient: L, debug: k }), X = new Wt({ httpClient: L }), Y = new $n({ httpClient: L, debug: k }), Ht = new Zn({ httpClient: L }), Vt = new xn({ httpClient: L, debug: k }), K = new In({ httpClient: L }), I = new jn({ httpClient: L, debug: k }), ae = new Un({ httpClient: L, debug: k }), ve = !0, k && console.debug("Fuul SDK: init() complete"));
2538
+ F = !!t.debug, !ve && (He = t.apiKey, Ks(), L = zs(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Ve = new Dn({ httpClient: L, debug: F }), Ee = new Fn({ httpClient: L, debug: F }), v = new On({ httpClient: L, debug: F }), G = new Wt({ httpClient: L }), K = new $n({ httpClient: L, debug: F }), Ht = new Zn({ httpClient: L }), Vt = new xn({ httpClient: L, debug: F }), z = new qn({ httpClient: L }), q = new jn({ httpClient: L, debug: F }), ae = new Un({ httpClient: L, debug: F }), ve = !0, F && console.debug("Fuul SDK: init() complete"));
2515
2539
  }
2516
- function w() {
2540
+ function _() {
2517
2541
  if (!ve)
2518
2542
  throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
2519
2543
  }
2520
2544
  async function rs(t, e) {
2521
- w(), Ve(), Ke();
2545
+ _(), Ke(), ze();
2522
2546
  const r = {
2523
2547
  name: t,
2524
2548
  args: e ?? {},
@@ -2526,10 +2550,10 @@ async function rs(t, e) {
2526
2550
  tracking_id: Me()
2527
2551
  }
2528
2552
  };
2529
- await Re.sendEvent(r);
2553
+ await Ee.sendEvent(r);
2530
2554
  }
2531
2555
  async function ns(t, e) {
2532
- w(), Ve(), Ke();
2556
+ _(), Ke(), ze();
2533
2557
  const r = {
2534
2558
  name: "pageview",
2535
2559
  args: {
@@ -2547,10 +2571,10 @@ async function ns(t, e) {
2547
2571
  tag: Qn() ?? void 0
2548
2572
  }
2549
2573
  };
2550
- await Re.sendEvent(r, e);
2574
+ await Ee.sendEvent(r, e);
2551
2575
  }
2552
2576
  async function ss(t, e) {
2553
- w(), Ve(), Ke();
2577
+ _(), Ke(), ze();
2554
2578
  const r = {
2555
2579
  name: "connect_wallet",
2556
2580
  user: {
@@ -2565,10 +2589,10 @@ async function ss(t, e) {
2565
2589
  tracking_id: Me()
2566
2590
  }
2567
2591
  };
2568
- t != null && t.signature && (r.signature = t == null ? void 0 : t.signature, r.signature_message = t == null ? void 0 : t.message), t != null && t.signaturePublicKey && (r.signature_public_key = t.signaturePublicKey), t != null && t.accountChainId && (r.account_chain_id = t.accountChainId), await Re.sendEvent(r, e);
2592
+ t != null && t.signature && (r.signature = t == null ? void 0 : t.signature, r.signature_message = t == null ? void 0 : t.message), t != null && t.signaturePublicKey && (r.signature_public_key = t.signaturePublicKey), t != null && t.accountChainId && (r.account_chain_id = t.accountChainId), await Ee.sendEvent(r, e);
2569
2593
  }
2570
2594
  async function is(t) {
2571
- return w(), q.create(
2595
+ return _(), v.create(
2572
2596
  t.userIdentifier,
2573
2597
  t.identifierType,
2574
2598
  t.code,
@@ -2579,7 +2603,7 @@ async function is(t) {
2579
2603
  );
2580
2604
  }
2581
2605
  async function os(t) {
2582
- w(), await q.update(
2606
+ _(), await v.update(
2583
2607
  t.userIdentifier,
2584
2608
  t.identifierType,
2585
2609
  t.code,
@@ -2589,7 +2613,7 @@ async function os(t) {
2589
2613
  );
2590
2614
  }
2591
2615
  async function as(t) {
2592
- w(), await q.updateRebateRate(
2616
+ _(), await v.updateRebateRate(
2593
2617
  t.userIdentifier,
2594
2618
  t.identifierType,
2595
2619
  t.code,
@@ -2601,181 +2625,193 @@ async function as(t) {
2601
2625
  );
2602
2626
  }
2603
2627
  async function cs(t, e) {
2604
- return w(), await q.getCode(t, e);
2628
+ return _(), await v.getReferral(t, e);
2605
2629
  }
2606
- async function us(t) {
2607
- return w(), await q.isCodeFree(t);
2630
+ async function us(t, e) {
2631
+ return _(), await v.getReferral(t, e);
2608
2632
  }
2609
2633
  async function ls(t) {
2610
- return w(), await q.isCodeAvailable(t);
2634
+ return _(), await v.isCodeFree(t);
2611
2635
  }
2612
- async function ds(t, e, r, n) {
2613
- w();
2614
- const s = await q.getCode(e, r), i = new URLSearchParams({
2636
+ async function ds(t) {
2637
+ return _(), await v.isCodeAvailable(t);
2638
+ }
2639
+ async function fs(t, e, r, n) {
2640
+ _();
2641
+ const s = await v.getReferral(e, r), i = new URLSearchParams({
2615
2642
  af: (s == null ? void 0 : s.code) ?? e
2616
2643
  });
2617
2644
  return n != null && n.title && i.append("af_title", n.title), n != null && n.format && i.append("af_format", n.format), n != null && n.place && i.append("af_place", n.place), `${t}?${i.toString()}`;
2618
2645
  }
2619
- function fs(t) {
2620
- return K.getPayoutsLeaderboard(t);
2621
- }
2622
2646
  function hs(t) {
2623
- return K.getPointsLeaderboard(t);
2647
+ return z.getPayoutsLeaderboard(t);
2624
2648
  }
2625
2649
  function ps(t) {
2626
- return K.getReferredUsersLeaderboard(t);
2650
+ return z.getPointsLeaderboard(t);
2627
2651
  }
2628
2652
  function ys(t) {
2629
- return w(), K.getReferredVolume(t);
2653
+ return z.getReferredUsersLeaderboard(t);
2654
+ }
2655
+ function gs(t) {
2656
+ return _(), z.getReferredVolume(t);
2630
2657
  }
2631
2658
  function ms(t) {
2632
- return w(), K.getVolumeLeaderboard(t);
2659
+ return _(), z.getVolumeLeaderboard(t);
2633
2660
  }
2634
- function gs(t) {
2635
- return w(), K.getRevenueLeaderboard(t);
2661
+ function _s(t) {
2662
+ return _(), z.getRevenueLeaderboard(t);
2636
2663
  }
2637
2664
  function ws(t) {
2638
- return Y.getUserPayoutsByConversion(t);
2665
+ return K.getUserPayoutsByConversion(t);
2639
2666
  }
2640
2667
  function bs(t) {
2641
- return Y.getUserPointsByConversion(t);
2642
- }
2643
- function _s(t) {
2644
- return Y.getUserPayoutMovements(t);
2668
+ return K.getUserPointsByConversion(t);
2645
2669
  }
2646
2670
  function Cs(t) {
2647
- return Y.getUserPointsMovements(t);
2671
+ return K.getUserPayoutMovements(t);
2648
2672
  }
2649
- function Es(t) {
2650
- return w(), Y.getPayoutsByReferrer(t);
2673
+ function Rs(t) {
2674
+ return K.getUserPointsMovements(t);
2651
2675
  }
2652
- async function Rs(t) {
2653
- return w(), Mt.getAll(t);
2676
+ function Es(t) {
2677
+ return _(), K.getPayoutsByReferrer(t);
2654
2678
  }
2655
2679
  async function Ss(t) {
2656
- return w(), Ht.getUserReferrer(t);
2680
+ return _(), K.getIncentivesByTier(t);
2657
2681
  }
2658
- async function Ts(t) {
2659
- return w(), Vt.getUserAudiences(t);
2682
+ async function Ts() {
2683
+ return _(), Ve.getAll();
2660
2684
  }
2661
2685
  async function As(t) {
2662
- return w(), I.listUserReferralCodes(t);
2686
+ return _(), Ve.getAll(t);
2663
2687
  }
2664
2688
  async function Ps(t) {
2665
- return w(), I.generateReferralCodes(t);
2689
+ return _(), Ht.getUserReferrer(t);
2666
2690
  }
2667
2691
  async function Os(t) {
2668
- return w(), I.getReferralStatus(t);
2692
+ return _(), Vt.getUserAudiences(t);
2669
2693
  }
2670
2694
  async function Ns(t) {
2671
- return w(), I.getReferralCode(t);
2695
+ return _(), q.listUserReferralCodes(t);
2672
2696
  }
2673
2697
  async function xs(t) {
2674
- return w(), I.useReferralCode(t);
2698
+ return _(), q.generateReferralCodes(t);
2675
2699
  }
2676
2700
  async function Us(t) {
2677
- return w(), I.updateReferralCode(t);
2701
+ return _(), q.getReferralStatus(t);
2678
2702
  }
2679
2703
  async function Ds(t) {
2680
- return w(), I.deleteReferral(t);
2704
+ return _(), q.getReferralCode(t);
2681
2705
  }
2682
2706
  async function Ls(t) {
2683
- return w(), X.getAffiliateStats(t);
2684
- }
2685
- async function Fs(t) {
2686
- return w(), X.getAffiliateNewTraders(t);
2707
+ return _(), q.useReferralCode(t);
2687
2708
  }
2688
2709
  async function ks(t) {
2689
- return w(), X.getAffiliateTotalStats(t);
2710
+ return _(), q.updateReferralCode(t);
2711
+ }
2712
+ async function Fs(t) {
2713
+ return _(), q.deleteReferral(t);
2690
2714
  }
2691
2715
  async function vs(t) {
2692
- return w(), X.getReferralTree(t);
2716
+ return _(), G.getAffiliateStats(t);
2693
2717
  }
2694
2718
  async function Bs(t) {
2695
- return w(), X.getStatsBreakdown(t);
2696
- }
2697
- async function qs(t) {
2698
- return w(), ae.getClaimChecks(t);
2719
+ return _(), G.getAffiliateNewTraders(t);
2699
2720
  }
2700
2721
  async function Is(t) {
2701
- return w(), ae.closeClaimChecks(t);
2722
+ return _(), G.getAffiliateTotalStats(t);
2723
+ }
2724
+ async function qs(t) {
2725
+ return _(), G.getReferralTree(t);
2702
2726
  }
2703
2727
  async function $s(t) {
2704
- return w(), ae.getClaimableChecks(t);
2728
+ return _(), G.getStatsBreakdown(t);
2705
2729
  }
2706
2730
  async function js(t) {
2707
- return w(), ae.getClaimCheckTotals(t);
2731
+ return _(), ae.getClaimChecks(t);
2732
+ }
2733
+ async function Ms(t) {
2734
+ return _(), ae.closeClaimChecks(t);
2708
2735
  }
2709
- function Ve() {
2736
+ async function Hs(t) {
2737
+ return _(), ae.getClaimableChecks(t);
2738
+ }
2739
+ async function Vs(t) {
2740
+ return _(), ae.getClaimCheckTotals(t);
2741
+ }
2742
+ function Ke() {
2710
2743
  if (typeof window > "u" || typeof document > "u")
2711
2744
  throw new Error("Fuul SDK: Browser context required");
2712
2745
  }
2713
- function Ke() {
2746
+ function ze() {
2714
2747
  if (navigator.webdriver)
2715
2748
  throw new Error("Fuul SDK: Error");
2716
2749
  }
2717
- function Ms() {
2750
+ function Ks() {
2718
2751
  if (!He)
2719
2752
  throw new Error("Fuul SDK: Invalid API key");
2720
2753
  }
2721
- function Hs(t, e) {
2722
- return new qn({
2754
+ function zs(t, e) {
2755
+ return new In({
2723
2756
  baseURL: t,
2724
2757
  timeout: 3e4,
2725
2758
  apiKey: He,
2726
2759
  queryParams: e
2727
2760
  });
2728
2761
  }
2729
- const di = {
2762
+ const pi = {
2730
2763
  init: ts,
2731
2764
  sendEvent: rs,
2732
2765
  sendPageview: ns,
2733
2766
  identifyUser: ss,
2734
- generateTrackingLink: ds,
2735
- getConversions: Rs,
2767
+ generateTrackingLink: fs,
2768
+ getConversions: As,
2769
+ getIncentives: Ts,
2770
+ getIncentivesByTier: Ss,
2736
2771
  createAffiliateCode: is,
2737
2772
  updateAffiliateCode: os,
2738
2773
  updateRebateRate: as,
2739
- getAffiliateCode: cs,
2740
- isAffiliateCodeFree: us,
2741
- isAffiliateCodeAvailable: ls,
2742
- getPayoutsLeaderboard: fs,
2743
- getPointsLeaderboard: hs,
2744
- getReferredUsersLeaderboard: ps,
2745
- getReferredVolume: ys,
2746
- getUserAudiences: Ts,
2774
+ getAffiliateCode: us,
2775
+ getAffiliateInfo: cs,
2776
+ isAffiliateCodeFree: ls,
2777
+ isAffiliateCodeAvailable: ds,
2778
+ getPayoutsLeaderboard: hs,
2779
+ getPointsLeaderboard: ps,
2780
+ getReferredUsersLeaderboard: ys,
2781
+ getReferredVolume: gs,
2782
+ getUserAudiences: Os,
2747
2783
  getUserPayoutsByConversion: ws,
2748
2784
  getUserPointsByConversion: bs,
2749
- getUserPointsMovements: Cs,
2750
- getUserPayoutMovements: _s,
2785
+ getUserPointsMovements: Rs,
2786
+ getUserPayoutMovements: Cs,
2751
2787
  getPayoutsByReferrer: Es,
2752
- getUserReferrer: Ss,
2788
+ getUserReferrer: Ps,
2753
2789
  getVolumeLeaderboard: ms,
2754
- getRevenueLeaderboard: gs,
2755
- listUserReferralCodes: As,
2756
- generateReferralCodes: Ps,
2757
- getReferralStatus: Os,
2758
- getReferralCode: Ns,
2759
- useReferralCode: xs,
2760
- updateReferralCode: Us,
2761
- deleteReferral: Ds,
2762
- getAffiliateStats: Ls,
2763
- getAffiliateNewTraders: Fs,
2764
- getAffiliateTotalStats: ks,
2765
- getReferralTree: vs,
2766
- getStatsBreakdown: Bs,
2767
- getClaimChecks: qs,
2768
- closeClaimChecks: Is,
2769
- getClaimableChecks: $s,
2770
- getClaimCheckTotals: js
2790
+ getRevenueLeaderboard: _s,
2791
+ listUserReferralCodes: Ns,
2792
+ generateReferralCodes: xs,
2793
+ getReferralStatus: Us,
2794
+ getReferralCode: Ds,
2795
+ useReferralCode: Ls,
2796
+ updateReferralCode: ks,
2797
+ deleteReferral: Fs,
2798
+ getAffiliateStats: vs,
2799
+ getAffiliateNewTraders: Bs,
2800
+ getAffiliateTotalStats: Is,
2801
+ getReferralTree: qs,
2802
+ getStatsBreakdown: $s,
2803
+ getClaimChecks: js,
2804
+ closeClaimChecks: Ms,
2805
+ getClaimableChecks: Hs,
2806
+ getClaimCheckTotals: Vs
2771
2807
  };
2772
- var Vs = /* @__PURE__ */ ((t) => (t.Open = "open", t.Unclaimed = "unclaimed", t.Claimed = "claimed", t))(Vs || {}), Ks = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(Ks || {});
2808
+ var Js = /* @__PURE__ */ ((t) => (t.Open = "open", t.Unclaimed = "unclaimed", t.Claimed = "claimed", t))(Js || {}), Ws = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(Ws || {});
2773
2809
  export {
2774
- yt as AddressInUseError,
2775
- Vs as ClaimCheckStatus,
2810
+ gt as AddressInUseError,
2811
+ Js as ClaimCheckStatus,
2776
2812
  mt as CodeInUseError,
2777
- di as Fuul,
2813
+ pi as Fuul,
2778
2814
  Ue as InvalidSignatureError,
2779
- Ks as UserIdentifierType,
2815
+ Ws as UserIdentifierType,
2780
2816
  xe as ValidationError
2781
2817
  };