@fuul/sdk 7.32.0 → 7.34.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,7 +1,7 @@
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
3
  var w = (t, e, r) => Jt(t, typeof e != "symbol" ? e + "" : e, r);
4
- const ee = "/affiliate-portal";
4
+ const Q = "/affiliate-portal";
5
5
  class Wt {
6
6
  constructor(e) {
7
7
  w(this, "httpClient");
@@ -9,7 +9,7 @@ class Wt {
9
9
  }
10
10
  async getAffiliateStats(e) {
11
11
  return (await this.httpClient.get({
12
- path: `${ee}/stats`,
12
+ path: `${Q}/stats`,
13
13
  queryParams: {
14
14
  user_identifier: e.user_identifier,
15
15
  from: e.from,
@@ -22,7 +22,7 @@ class Wt {
22
22
  }
23
23
  async getAffiliateTotalStats(e) {
24
24
  return (await this.httpClient.get({
25
- path: `${ee}/total-stats`,
25
+ path: `${Q}/total-stats`,
26
26
  queryParams: {
27
27
  statuses: e.statuses,
28
28
  regions: e.regions,
@@ -32,7 +32,7 @@ class Wt {
32
32
  }
33
33
  async getReferralTree(e) {
34
34
  return (await this.httpClient.get({
35
- path: `${ee}/referral-tree`,
35
+ path: `${Q}/referral-tree`,
36
36
  queryParams: {
37
37
  user_identifier: e.user_identifier
38
38
  }
@@ -40,7 +40,7 @@ class Wt {
40
40
  }
41
41
  async getStatsBreakdown(e) {
42
42
  return (await this.httpClient.get({
43
- path: `${ee}/stats-breakdown`,
43
+ path: `${Q}/stats-breakdown`,
44
44
  queryParams: {
45
45
  user_identifier: e.user_identifier,
46
46
  group_by: e.group_by,
@@ -55,7 +55,18 @@ class Wt {
55
55
  }
56
56
  async getAffiliateNewTraders(e) {
57
57
  return (await this.httpClient.get({
58
- path: `${ee}/new-traders`,
58
+ path: `${Q}/new-traders`,
59
+ queryParams: {
60
+ user_identifier: e.user_identifier,
61
+ from: e.from,
62
+ to: e.to,
63
+ this_month: e.this_month
64
+ }
65
+ })).data;
66
+ }
67
+ async getAffiliatePaidVolumesByLevel(e) {
68
+ return (await this.httpClient.get({
69
+ path: `${Q}/paid-volumes-by-level`,
59
70
  queryParams: {
60
71
  user_identifier: e.user_identifier,
61
72
  from: e.from,
@@ -73,29 +84,29 @@ function Ct(t, e) {
73
84
  const { toString: Qt } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: _e, toStringTag: Rt } = Symbol, we = /* @__PURE__ */ ((t) => (e) => {
74
85
  const r = Qt.call(e);
75
86
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
76
- })(/* @__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");
77
- function re(t) {
78
- return t !== null && !Q(t) && t.constructor !== null && !Q(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
87
+ })(/* @__PURE__ */ Object.create(null)), v = (t) => (t = t.toLowerCase(), (e) => we(e) === t), be = (t) => (e) => typeof e === t, { isArray: Z } = Array, Y = be("undefined");
88
+ function se(t) {
89
+ return t !== null && !Y(t) && t.constructor !== null && !Y(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
79
90
  }
80
- const Et = k("ArrayBuffer");
91
+ const Et = v("ArrayBuffer");
81
92
  function Xt(t) {
82
93
  let e;
83
94
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Et(t.buffer), e;
84
95
  }
85
- 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) => {
96
+ const Yt = be("string"), P = be("function"), St = be("number"), ie = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, pe = (t) => {
86
97
  if (we(t) !== "object")
87
98
  return !1;
88
99
  const e = Be(t);
89
100
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Rt in t) && !(_e in t);
90
101
  }, Zt = (t) => {
91
- if (!ne(t) || re(t))
102
+ if (!ie(t) || se(t))
92
103
  return !1;
93
104
  try {
94
105
  return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
95
106
  } catch {
96
107
  return !1;
97
108
  }
98
- }, 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);
109
+ }, er = v("Date"), tr = v("File"), rr = (t) => !!(t && typeof t.uri < "u"), nr = (t) => t && typeof t.getParts < "u", sr = v("Blob"), ir = v("FileList"), or = (t) => ie(t) && P(t.pipe);
99
110
  function ar() {
100
111
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
101
112
  }
@@ -103,21 +114,21 @@ const Ze = ar(), et = typeof Ze.FormData < "u" ? Ze.FormData : void 0, cr = (t)
103
114
  let e;
104
115
  return t && (et && t instanceof et || P(t.append) && ((e = we(t)) === "formdata" || // detect form-data instance
105
116
  e === "object" && P(t.toString) && t.toString() === "[object FormData]"));
106
- }, ur = k("URLSearchParams"), [lr, dr, fr, hr] = [
117
+ }, ur = v("URLSearchParams"), [lr, dr, fr, hr] = [
107
118
  "ReadableStream",
108
119
  "Request",
109
120
  "Response",
110
121
  "Headers"
111
- ].map(k), pr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
112
- function se(t, e, { allOwnKeys: r = !1 } = {}) {
122
+ ].map(v), pr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
123
+ function oe(t, e, { allOwnKeys: r = !1 } = {}) {
113
124
  if (t === null || typeof t > "u")
114
125
  return;
115
126
  let n, s;
116
- if (typeof t != "object" && (t = [t]), Y(t))
127
+ if (typeof t != "object" && (t = [t]), Z(t))
117
128
  for (n = 0, s = t.length; n < s; n++)
118
129
  e.call(null, t[n], n, t);
119
130
  else {
120
- if (re(t))
131
+ if (se(t))
121
132
  return;
122
133
  const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), o = i.length;
123
134
  let a;
@@ -125,8 +136,8 @@ function se(t, e, { allOwnKeys: r = !1 } = {}) {
125
136
  a = i[n], e.call(null, t[a], a, t);
126
137
  }
127
138
  }
128
- function Tt(t, e) {
129
- if (re(t))
139
+ function At(t, e) {
140
+ if (se(t))
130
141
  return null;
131
142
  e = e.toLowerCase();
132
143
  const r = Object.keys(t);
@@ -136,19 +147,19 @@ function Tt(t, e) {
136
147
  return s;
137
148
  return null;
138
149
  }
139
- const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, At = (t) => !Q(t) && t !== M;
150
+ const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Tt = (t) => !Y(t) && t !== H;
140
151
  function De() {
141
- const { caseless: t, skipUndefined: e } = At(this) && this || {}, r = {}, n = (s, i) => {
152
+ const { caseless: t, skipUndefined: e } = Tt(this) && this || {}, r = {}, n = (s, i) => {
142
153
  if (i === "__proto__" || i === "constructor" || i === "prototype")
143
154
  return;
144
- const o = t && Tt(r, i) || i;
145
- 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);
155
+ const o = t && At(r, i) || i;
156
+ pe(r[o]) && pe(s) ? r[o] = De(r[o], s) : pe(s) ? r[o] = De({}, s) : Z(s) ? r[o] = s.slice() : (!e || !Y(s)) && (r[o] = s);
146
157
  };
147
158
  for (let s = 0, i = arguments.length; s < i; s++)
148
- arguments[s] && se(arguments[s], n);
159
+ arguments[s] && oe(arguments[s], n);
149
160
  return r;
150
161
  }
151
- const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
162
+ const yr = (t, e, r, { allOwnKeys: n } = {}) => (oe(
152
163
  e,
153
164
  (s, i) => {
154
165
  r && P(s) ? Object.defineProperty(t, i, {
@@ -189,7 +200,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
189
200
  return n !== -1 && n === r;
190
201
  }, br = (t) => {
191
202
  if (!t) return null;
192
- if (Y(t)) return t;
203
+ if (Z(t)) return t;
193
204
  let e = t.length;
194
205
  if (!St(e)) return null;
195
206
  const r = new Array(e);
@@ -209,11 +220,11 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
209
220
  for (; (r = t.exec(e)) !== null; )
210
221
  n.push(r);
211
222
  return n;
212
- }, Sr = k("HTMLFormElement"), Tr = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
223
+ }, Sr = v("HTMLFormElement"), Ar = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
213
224
  return n.toUpperCase() + s;
214
- }), tt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ar = k("RegExp"), Pt = (t, e) => {
225
+ }), tt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Tr = v("RegExp"), Pt = (t, e) => {
215
226
  const r = Object.getOwnPropertyDescriptors(t), n = {};
216
- se(r, (s, i) => {
227
+ oe(r, (s, i) => {
217
228
  let o;
218
229
  (o = e(s, i, t)) !== !1 && (n[i] = o || s);
219
230
  }), Object.defineProperties(t, n);
@@ -238,7 +249,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
238
249
  r[i] = !0;
239
250
  });
240
251
  };
241
- return Y(t) ? n(t) : n(String(t).split(e)), r;
252
+ return Z(t) ? n(t) : n(String(t).split(e)), r;
242
253
  }, Nr = () => {
243
254
  }, xr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
244
255
  function Ur(t) {
@@ -246,60 +257,60 @@ function Ur(t) {
246
257
  }
247
258
  const Dr = (t) => {
248
259
  const e = new Array(10), r = (n, s) => {
249
- if (ne(n)) {
260
+ if (ie(n)) {
250
261
  if (e.indexOf(n) >= 0)
251
262
  return;
252
- if (re(n))
263
+ if (se(n))
253
264
  return n;
254
265
  if (!("toJSON" in n)) {
255
266
  e[s] = n;
256
- const i = Y(n) ? [] : {};
257
- return se(n, (o, a) => {
267
+ const i = Z(n) ? [] : {};
268
+ return oe(n, (o, a) => {
258
269
  const f = r(o, s + 1);
259
- !Q(f) && (i[a] = f);
270
+ !Y(f) && (i[a] = f);
260
271
  }), e[s] = void 0, i;
261
272
  }
262
273
  }
263
274
  return n;
264
275
  };
265
276
  return r(t, 0);
266
- }, 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(
277
+ }, Lr = v("AsyncFunction"), vr = (t) => t && (ie(t) || P(t)) && P(t.then) && P(t.catch), Ot = ((t, e) => t ? setImmediate : e ? ((r, n) => (H.addEventListener(
267
278
  "message",
268
279
  ({ source: s, data: i }) => {
269
- s === M && i === r && n.length && n.shift()();
280
+ s === H && i === r && n.length && n.shift()();
270
281
  },
271
282
  !1
272
283
  ), (s) => {
273
- n.push(s), M.postMessage(r, "*");
274
- }))(`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 = {
275
- isArray: Y,
284
+ n.push(s), H.postMessage(r, "*");
285
+ }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", P(H.postMessage)), kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || Ot, Fr = (t) => t != null && P(t[_e]), c = {
286
+ isArray: Z,
276
287
  isArrayBuffer: Et,
277
- isBuffer: re,
288
+ isBuffer: se,
278
289
  isFormData: cr,
279
290
  isArrayBufferView: Xt,
280
291
  isString: Yt,
281
292
  isNumber: St,
282
293
  isBoolean: Gt,
283
- isObject: ne,
294
+ isObject: ie,
284
295
  isPlainObject: pe,
285
296
  isEmptyObject: Zt,
286
297
  isReadableStream: lr,
287
298
  isRequest: dr,
288
299
  isResponse: fr,
289
300
  isHeaders: hr,
290
- isUndefined: Q,
301
+ isUndefined: Y,
291
302
  isDate: er,
292
303
  isFile: tr,
293
304
  isReactNativeBlob: rr,
294
305
  isReactNative: nr,
295
306
  isBlob: sr,
296
- isRegExp: Ar,
307
+ isRegExp: Tr,
297
308
  isFunction: P,
298
309
  isStream: or,
299
310
  isURLSearchParams: ur,
300
311
  isTypedArray: Cr,
301
312
  isFileList: ir,
302
- forEach: se,
313
+ forEach: oe,
303
314
  merge: De,
304
315
  extend: yr,
305
316
  trim: pr,
@@ -307,7 +318,7 @@ const Dr = (t) => {
307
318
  inherits: mr,
308
319
  toFlatObject: _r,
309
320
  kindOf: we,
310
- kindOfTest: k,
321
+ kindOfTest: v,
311
322
  endsWith: wr,
312
323
  toArray: br,
313
324
  forEachEntry: Rr,
@@ -319,19 +330,19 @@ const Dr = (t) => {
319
330
  reduceDescriptors: Pt,
320
331
  freezeMethods: Pr,
321
332
  toObjectSet: Or,
322
- toCamelCase: Tr,
333
+ toCamelCase: Ar,
323
334
  noop: Nr,
324
335
  toFiniteNumber: xr,
325
- findKey: Tt,
326
- global: M,
327
- isContextDefined: At,
336
+ findKey: At,
337
+ global: H,
338
+ isContextDefined: Tt,
328
339
  isSpecCompliantForm: Ur,
329
340
  toJSONObject: Dr,
330
341
  isAsyncFn: Lr,
331
- isThenable: kr,
342
+ isThenable: vr,
332
343
  setImmediate: Ot,
333
- asap: Fr,
334
- isIterable: vr
344
+ asap: kr,
345
+ isIterable: Fr
335
346
  };
336
347
  let g = class Nt extends Error {
337
348
  static from(e, r, n, s, i, o) {
@@ -396,7 +407,7 @@ function Le(t) {
396
407
  function xt(t) {
397
408
  return c.endsWith(t, "[]") ? t.slice(0, -2) : t;
398
409
  }
399
- function Ae(t, e, r) {
410
+ function Te(t, e, r) {
400
411
  return t ? t.concat(e).map(function(s, i) {
401
412
  return s = xt(s), !r && i ? "[" + s + "]" : s;
402
413
  }).join(r ? "." : "") : e;
@@ -438,22 +449,22 @@ function Ce(t, e, r) {
438
449
  function u(d, y, p) {
439
450
  let C = d;
440
451
  if (c.isReactNative(e) && c.isReactNativeBlob(d))
441
- return e.append(Ae(p, y, i), l(d)), !1;
452
+ return e.append(Te(p, y, i), l(d)), !1;
442
453
  if (d && !p && typeof d == "object") {
443
454
  if (c.endsWith(y, "{}"))
444
455
  y = n ? y : y.slice(0, -2), d = JSON.stringify(d);
445
456
  else if (c.isArray(d) && Ir(d) || (c.isFileList(d) || c.endsWith(y, "[]")) && (C = c.toArray(d)))
446
- return y = xt(y), C.forEach(function(E, T) {
457
+ return y = xt(y), C.forEach(function(E, A) {
447
458
  !(c.isUndefined(E) || E === null) && e.append(
448
459
  // eslint-disable-next-line no-nested-ternary
449
- o === !0 ? Ae([y], T, i) : o === null ? y : y + "[]",
460
+ o === !0 ? Te([y], A, i) : o === null ? y : y + "[]",
450
461
  l(E)
451
462
  );
452
463
  }), !1;
453
464
  }
454
- return Le(d) ? !0 : (e.append(Ae(p, y, i), l(d)), !1);
465
+ return Le(d) ? !0 : (e.append(Te(p, y, i), l(d)), !1);
455
466
  }
456
- const h = [], m = Object.assign(qr, {
467
+ const h = [], _ = Object.assign(qr, {
457
468
  defaultVisitor: u,
458
469
  convertValue: l,
459
470
  isVisitable: Le
@@ -463,7 +474,7 @@ function Ce(t, e, r) {
463
474
  if (h.indexOf(d) !== -1)
464
475
  throw Error("Circular reference detected in " + y.join("."));
465
476
  h.push(d), c.forEach(d, function(C, N) {
466
- (!(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]);
477
+ (!(c.isUndefined(C) || C === null) && s.call(e, C, c.isString(N) ? N.trim() : N, y, _)) === !0 && R(C, y ? y.concat(N) : [N]);
467
478
  }), h.pop();
468
479
  }
469
480
  }
@@ -576,21 +587,21 @@ const qe = {
576
587
  forcedJSONParsing: !0,
577
588
  clarifyTimeoutError: !1,
578
589
  legacyInterceptorReqResOrdering: !0
579
- }, jr = typeof URLSearchParams < "u" ? URLSearchParams : Ie, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
590
+ }, jr = typeof URLSearchParams < "u" ? URLSearchParams : Ie, Hr = typeof FormData < "u" ? FormData : null, Mr = typeof Blob < "u" ? Blob : null, Vr = {
580
591
  isBrowser: !0,
581
592
  classes: {
582
593
  URLSearchParams: jr,
583
- FormData: Mr,
584
- Blob: Hr
594
+ FormData: Hr,
595
+ Blob: Mr
585
596
  },
586
597
  protocols: ["http", "https", "file", "blob", "url", "data"]
587
- }, $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
598
+ }, $e = typeof window < "u" && typeof document < "u", ve = typeof navigator == "object" && navigator || void 0, Kr = $e && (!ve || ["ReactNative", "NativeScript", "NS"].indexOf(ve.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
588
599
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = $e && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
589
600
  __proto__: null,
590
601
  hasBrowserEnv: $e,
591
602
  hasStandardBrowserEnv: Kr,
592
603
  hasStandardBrowserWebWorkerEnv: zr,
593
- navigator: ke,
604
+ navigator: ve,
594
605
  origin: Jr
595
606
  }, Symbol.toStringTag, { value: "Module" })), S = {
596
607
  ...Wr,
@@ -641,7 +652,7 @@ function Gr(t, e, r) {
641
652
  }
642
653
  return (r || JSON.stringify)(t);
643
654
  }
644
- const ie = {
655
+ const ae = {
645
656
  transitional: qe,
646
657
  adapter: ["xhr", "http", "fetch"],
647
658
  transformRequest: [
@@ -673,7 +684,7 @@ const ie = {
673
684
  ],
674
685
  transformResponse: [
675
686
  function(e) {
676
- const r = this.transitional || ie.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
687
+ const r = this.transitional || ae.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
677
688
  if (c.isResponse(e) || c.isReadableStream(e))
678
689
  return e;
679
690
  if (e && c.isString(e) && (n && !this.responseType || s)) {
@@ -712,7 +723,7 @@ const ie = {
712
723
  }
713
724
  };
714
725
  c.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
715
- ie.headers[t] = {};
726
+ ae.headers[t] = {};
716
727
  });
717
728
  const Zr = c.toObjectSet([
718
729
  "age",
@@ -740,7 +751,7 @@ const Zr = c.toObjectSet([
740
751
  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);
741
752
  }), e;
742
753
  }, st = Symbol("internals");
743
- function te(t) {
754
+ function re(t) {
744
755
  return t && String(t).trim().toLowerCase();
745
756
  }
746
757
  function ye(t) {
@@ -785,7 +796,7 @@ let O = class {
785
796
  set(e, r, n) {
786
797
  const s = this;
787
798
  function i(a, f, l) {
788
- const u = te(f);
799
+ const u = re(f);
789
800
  if (!u)
790
801
  throw new Error("header name must be a non-empty string");
791
802
  const h = c.findKey(s, u);
@@ -809,7 +820,7 @@ let O = class {
809
820
  return this;
810
821
  }
811
822
  get(e, r) {
812
- if (e = te(e), e) {
823
+ if (e = re(e), e) {
813
824
  const n = c.findKey(this, e);
814
825
  if (n) {
815
826
  const s = this[n];
@@ -826,7 +837,7 @@ let O = class {
826
837
  }
827
838
  }
828
839
  has(e, r) {
829
- if (e = te(e), e) {
840
+ if (e = re(e), e) {
830
841
  const n = c.findKey(this, e);
831
842
  return !!(n && this[n] !== void 0 && (!r || Pe(this, this[n], n, r)));
832
843
  }
@@ -836,7 +847,7 @@ let O = class {
836
847
  const n = this;
837
848
  let s = !1;
838
849
  function i(o) {
839
- if (o = te(o), o) {
850
+ if (o = re(o), o) {
840
851
  const a = c.findKey(n, o);
841
852
  a && (!r || Pe(n, n[a], a, r)) && (delete n[a], s = !0);
842
853
  }
@@ -898,7 +909,7 @@ let O = class {
898
909
  accessors: {}
899
910
  }).accessors, s = this.prototype;
900
911
  function i(o) {
901
- const a = te(o);
912
+ const a = re(o);
902
913
  n[a] || (sn(s, o), n[a] = !0);
903
914
  }
904
915
  return c.isArray(e) ? e.forEach(i) : i(e), this;
@@ -923,16 +934,16 @@ c.reduceDescriptors(O.prototype, ({ value: t }, e) => {
923
934
  });
924
935
  c.freezeMethods(O);
925
936
  function Oe(t, e) {
926
- const r = this || ie, n = e || r, s = O.from(n.headers);
937
+ const r = this || ae, n = e || r, s = O.from(n.headers);
927
938
  let i = n.data;
928
939
  return c.forEach(t, function(a) {
929
940
  i = a.call(r, i, s.normalize(), e ? e.status : void 0);
930
941
  }), s.normalize(), i;
931
942
  }
932
- function kt(t) {
943
+ function vt(t) {
933
944
  return !!(t && t.__CANCEL__);
934
945
  }
935
- let oe = class extends g {
946
+ let ce = class extends g {
936
947
  /**
937
948
  * A `CanceledError` is an object that is thrown when an operation is canceled.
938
949
  *
@@ -946,7 +957,7 @@ let oe = class extends g {
946
957
  super(e ?? "canceled", g.ERR_CANCELED, r, n), this.name = "CanceledError", this.__CANCEL__ = !0;
947
958
  }
948
959
  };
949
- function Ft(t, e, r) {
960
+ function kt(t, e, r) {
950
961
  const n = r.config.validateStatus;
951
962
  !r.status || !n || n(r.status) ? t(r) : e(
952
963
  new g(
@@ -969,13 +980,13 @@ function an(t, e) {
969
980
  return e = e !== void 0 ? e : 1e3, function(f) {
970
981
  const l = Date.now(), u = n[i];
971
982
  o || (o = l), r[s] = f, n[s] = l;
972
- let h = i, m = 0;
983
+ let h = i, _ = 0;
973
984
  for (; h !== s; )
974
- m += r[h++], h = h % t;
985
+ _ += r[h++], h = h % t;
975
986
  if (s = (s + 1) % t, s === i && (i = (i + 1) % t), l - o < e)
976
987
  return;
977
988
  const R = u && l - u;
978
- return R ? Math.round(m * 1e3 / R) : void 0;
989
+ return R ? Math.round(_ * 1e3 / R) : void 0;
979
990
  };
980
991
  }
981
992
  function cn(t, e) {
@@ -1057,7 +1068,7 @@ function dn(t) {
1057
1068
  function fn(t, e) {
1058
1069
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
1059
1070
  }
1060
- function vt(t, e, r) {
1071
+ function Ft(t, e, r) {
1061
1072
  let n = !dn(e);
1062
1073
  return t && (n || r == !1) ? fn(t, e) : e;
1063
1074
  }
@@ -1065,14 +1076,14 @@ const at = (t) => t instanceof O ? { ...t } : t;
1065
1076
  function V(t, e) {
1066
1077
  e = e || {};
1067
1078
  const r = {};
1068
- function n(l, u, h, m) {
1069
- 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;
1079
+ function n(l, u, h, _) {
1080
+ return c.isPlainObject(l) && c.isPlainObject(u) ? c.merge.call({ caseless: _ }, l, u) : c.isPlainObject(u) ? c.merge({}, u) : c.isArray(u) ? u.slice() : u;
1070
1081
  }
1071
- function s(l, u, h, m) {
1082
+ function s(l, u, h, _) {
1072
1083
  if (c.isUndefined(u)) {
1073
1084
  if (!c.isUndefined(l))
1074
- return n(void 0, l, h, m);
1075
- } else return n(l, u, h, m);
1085
+ return n(void 0, l, h, _);
1086
+ } else return n(l, u, h, _);
1076
1087
  }
1077
1088
  function i(l, u) {
1078
1089
  if (!c.isUndefined(u))
@@ -1123,15 +1134,15 @@ function V(t, e) {
1123
1134
  };
1124
1135
  return c.forEach(Object.keys({ ...t, ...e }), function(u) {
1125
1136
  if (u === "__proto__" || u === "constructor" || u === "prototype") return;
1126
- const h = c.hasOwnProp(f, u) ? f[u] : s, m = h(t[u], e[u], u);
1127
- c.isUndefined(m) && h !== a || (r[u] = m);
1137
+ const h = c.hasOwnProp(f, u) ? f[u] : s, _ = h(t[u], e[u], u);
1138
+ c.isUndefined(_) && h !== a || (r[u] = _);
1128
1139
  }), r;
1129
1140
  }
1130
1141
  const Bt = (t) => {
1131
1142
  const e = V({}, t);
1132
1143
  let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = e;
1133
1144
  if (e.headers = o = O.from(o), e.url = Dt(
1134
- vt(e.baseURL, e.url, e.allowAbsoluteUrls),
1145
+ Ft(e.baseURL, e.url, e.allowAbsoluteUrls),
1135
1146
  t.params,
1136
1147
  t.paramsSerializer
1137
1148
  ), a && o.set(
@@ -1159,7 +1170,7 @@ const Bt = (t) => {
1159
1170
  const s = Bt(t);
1160
1171
  let i = s.data;
1161
1172
  const o = O.from(s.headers).normalize();
1162
- let { responseType: a, onUploadProgress: f, onDownloadProgress: l } = s, u, h, m, R, d;
1173
+ let { responseType: a, onUploadProgress: f, onDownloadProgress: l } = s, u, h, _, R, d;
1163
1174
  function y() {
1164
1175
  R && R(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1165
1176
  }
@@ -1178,7 +1189,7 @@ const Bt = (t) => {
1178
1189
  config: t,
1179
1190
  request: p
1180
1191
  };
1181
- Ft(
1192
+ kt(
1182
1193
  function(x) {
1183
1194
  r(x), y();
1184
1195
  },
@@ -1192,24 +1203,24 @@ const Bt = (t) => {
1192
1203
  !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(C);
1193
1204
  }, p.onabort = function() {
1194
1205
  p && (n(new g("Request aborted", g.ECONNABORTED, t, p)), p = null);
1195
- }, p.onerror = function(T) {
1196
- const D = T && T.message ? T.message : "Network Error", $ = new g(D, g.ERR_NETWORK, t, p);
1197
- $.event = T || null, n($), p = null;
1206
+ }, p.onerror = function(A) {
1207
+ const D = A && A.message ? A.message : "Network Error", $ = new g(D, g.ERR_NETWORK, t, p);
1208
+ $.event = A || null, n($), p = null;
1198
1209
  }, p.ontimeout = function() {
1199
- let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1210
+ let A = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1200
1211
  const D = s.transitional || qe;
1201
- s.timeoutErrorMessage && (T = s.timeoutErrorMessage), n(
1212
+ s.timeoutErrorMessage && (A = s.timeoutErrorMessage), n(
1202
1213
  new g(
1203
- T,
1214
+ A,
1204
1215
  D.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1205
1216
  t,
1206
1217
  p
1207
1218
  )
1208
1219
  ), p = null;
1209
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && c.forEach(o.toJSON(), function(T, D) {
1210
- p.setRequestHeader(D, T);
1211
- }), 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) => {
1212
- p && (n(!E || E.type ? new oe(null, t, p) : E), p.abort(), p = null);
1220
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && c.forEach(o.toJSON(), function(A, D) {
1221
+ p.setRequestHeader(D, A);
1222
+ }), c.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), a && a !== "json" && (p.responseType = s.responseType), l && ([_, d] = me(l, !0), p.addEventListener("progress", _)), f && p.upload && ([h, R] = me(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (E) => {
1223
+ p && (n(!E || E.type ? new ce(null, t, p) : E), p.abort(), p = null);
1213
1224
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1214
1225
  const N = on(s.url);
1215
1226
  if (N && S.protocols.indexOf(N) === -1) {
@@ -1233,7 +1244,7 @@ const Bt = (t) => {
1233
1244
  s = !0, a();
1234
1245
  const u = l instanceof Error ? l : this.reason;
1235
1246
  n.abort(
1236
- u instanceof g ? u : new oe(u instanceof Error ? u.message : u)
1247
+ u instanceof g ? u : new ce(u instanceof Error ? u.message : u)
1237
1248
  );
1238
1249
  }
1239
1250
  };
@@ -1293,8 +1304,8 @@ const Bt = (t) => {
1293
1304
  }
1294
1305
  let h = u.byteLength;
1295
1306
  if (r) {
1296
- let m = i += h;
1297
- r(m);
1307
+ let _ = i += h;
1308
+ r(_);
1298
1309
  }
1299
1310
  f.enqueue(new Uint8Array(u));
1300
1311
  } catch (l) {
@@ -1309,7 +1320,7 @@ const Bt = (t) => {
1309
1320
  highWaterMark: 2
1310
1321
  }
1311
1322
  );
1312
- }, ut = 64 * 1024, { isFunction: de } = c, wn = (({ Request: t, Response: e }) => ({
1323
+ }, ut = 64 * 1024, { isFunction: fe } = c, wn = (({ Request: t, Response: e }) => ({
1313
1324
  Request: t,
1314
1325
  Response: e
1315
1326
  }))(c.global), { ReadableStream: lt, TextEncoder: dt } = c.global, ft = (t, ...e) => {
@@ -1326,10 +1337,10 @@ const Bt = (t) => {
1326
1337
  wn,
1327
1338
  t
1328
1339
  );
1329
- const { fetch: e, Request: r, Response: n } = t, s = e ? de(e) : typeof fetch == "function", i = de(r), o = de(n);
1340
+ const { fetch: e, Request: r, Response: n } = t, s = e ? fe(e) : typeof fetch == "function", i = fe(r), o = fe(n);
1330
1341
  if (!s)
1331
1342
  return !1;
1332
- 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(() => {
1343
+ const a = s && fe(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(() => {
1333
1344
  let d = !1;
1334
1345
  const y = new r(S.origin, {
1335
1346
  body: new lt(),
@@ -1354,7 +1365,7 @@ const Bt = (t) => {
1354
1365
  );
1355
1366
  });
1356
1367
  });
1357
- const m = async (d) => {
1368
+ const _ = async (d) => {
1358
1369
  if (d == null)
1359
1370
  return 0;
1360
1371
  if (c.isBlob(d))
@@ -1370,7 +1381,7 @@ const Bt = (t) => {
1370
1381
  return (await f(d)).byteLength;
1371
1382
  }, R = async (d, y) => {
1372
1383
  const p = c.toFiniteNumber(d.getContentLength());
1373
- return p ?? m(y);
1384
+ return p ?? _(y);
1374
1385
  };
1375
1386
  return async (d) => {
1376
1387
  let {
@@ -1379,21 +1390,21 @@ const Bt = (t) => {
1379
1390
  data: C,
1380
1391
  signal: N,
1381
1392
  cancelToken: E,
1382
- timeout: T,
1393
+ timeout: A,
1383
1394
  onDownloadProgress: D,
1384
1395
  onUploadProgress: $,
1385
1396
  responseType: x,
1386
1397
  headers: Se,
1387
- withCredentials: ce = "same-origin",
1398
+ withCredentials: ue = "same-origin",
1388
1399
  fetchOptions: Je
1389
1400
  } = Bt(d), We = e || fetch;
1390
1401
  x = x ? (x + "").toLowerCase() : "text";
1391
- let ue = yn(
1402
+ let le = yn(
1392
1403
  [N, E && E.toAbortSignal()],
1393
- T
1394
- ), Z = null;
1395
- const j = ue && ue.unsubscribe && (() => {
1396
- ue.unsubscribe();
1404
+ A
1405
+ ), te = null;
1406
+ const j = le && le.unsubscribe && (() => {
1407
+ le.unsubscribe();
1397
1408
  });
1398
1409
  let Qe;
1399
1410
  try {
@@ -1402,40 +1413,40 @@ const Bt = (t) => {
1402
1413
  method: "POST",
1403
1414
  body: C,
1404
1415
  duplex: "half"
1405
- }), J;
1406
- if (c.isFormData(C) && (J = I.headers.get("content-type")) && Se.setContentType(J), I.body) {
1407
- const [Te, le] = it(
1416
+ }), W;
1417
+ if (c.isFormData(C) && (W = I.headers.get("content-type")) && Se.setContentType(W), I.body) {
1418
+ const [Ae, de] = it(
1408
1419
  Qe,
1409
1420
  me(ot($))
1410
1421
  );
1411
- C = ct(I.body, ut, Te, le);
1422
+ C = ct(I.body, ut, Ae, de);
1412
1423
  }
1413
1424
  }
1414
- c.isString(ce) || (ce = ce ? "include" : "omit");
1415
- const A = i && "credentials" in r.prototype, Xe = {
1425
+ c.isString(ue) || (ue = ue ? "include" : "omit");
1426
+ const T = i && "credentials" in r.prototype, Xe = {
1416
1427
  ...Je,
1417
- signal: ue,
1428
+ signal: le,
1418
1429
  method: p.toUpperCase(),
1419
1430
  headers: Se.normalize().toJSON(),
1420
1431
  body: C,
1421
1432
  duplex: "half",
1422
- credentials: A ? ce : void 0
1433
+ credentials: T ? ue : void 0
1423
1434
  };
1424
- Z = i && new r(y, Xe);
1425
- let B = await (i ? We(Z, Je) : We(y, Xe));
1435
+ te = i && new r(y, Xe);
1436
+ let B = await (i ? We(te, Je) : We(y, Xe));
1426
1437
  const Ye = u && (x === "stream" || x === "response");
1427
1438
  if (u && (D || Ye && j)) {
1428
1439
  const I = {};
1429
1440
  ["status", "statusText", "headers"].forEach((Ge) => {
1430
1441
  I[Ge] = B[Ge];
1431
1442
  });
1432
- const J = c.toFiniteNumber(B.headers.get("content-length")), [Te, le] = D && it(
1433
- J,
1443
+ const W = c.toFiniteNumber(B.headers.get("content-length")), [Ae, de] = D && it(
1444
+ W,
1434
1445
  me(ot(D), !0)
1435
1446
  ) || [];
1436
1447
  B = new n(
1437
- ct(B.body, ut, Te, () => {
1438
- le && le(), j && j();
1448
+ ct(B.body, ut, Ae, () => {
1449
+ de && de(), j && j();
1439
1450
  }),
1440
1451
  I
1441
1452
  );
@@ -1445,29 +1456,29 @@ const Bt = (t) => {
1445
1456
  B,
1446
1457
  d
1447
1458
  );
1448
- return !Ye && j && j(), await new Promise((I, J) => {
1449
- Ft(I, J, {
1459
+ return !Ye && j && j(), await new Promise((I, W) => {
1460
+ kt(I, W, {
1450
1461
  data: Kt,
1451
1462
  headers: O.from(B.headers),
1452
1463
  status: B.status,
1453
1464
  statusText: B.statusText,
1454
1465
  config: d,
1455
- request: Z
1466
+ request: te
1456
1467
  });
1457
1468
  });
1458
- } catch (A) {
1459
- throw j && j(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
1469
+ } catch (T) {
1470
+ throw j && j(), T && T.name === "TypeError" && /Load failed|fetch/i.test(T.message) ? Object.assign(
1460
1471
  new g(
1461
1472
  "Network Error",
1462
1473
  g.ERR_NETWORK,
1463
1474
  d,
1464
- Z,
1465
- A && A.response
1475
+ te,
1476
+ T && T.response
1466
1477
  ),
1467
1478
  {
1468
- cause: A.cause || A
1479
+ cause: T.cause || T
1469
1480
  }
1470
- ) : g.from(A, A && A.code, d, Z, A && A.response);
1481
+ ) : g.from(T, T && T.code, d, te, T && T.response);
1471
1482
  }
1472
1483
  };
1473
1484
  }, Cn = /* @__PURE__ */ new Map(), It = (t) => {
@@ -1538,15 +1549,15 @@ const qt = {
1538
1549
  };
1539
1550
  function Ne(t) {
1540
1551
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1541
- throw new oe(null, t);
1552
+ throw new ce(null, t);
1542
1553
  }
1543
1554
  function pt(t) {
1544
- 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(
1555
+ 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 || ae.adapter, t)(t).then(
1545
1556
  function(n) {
1546
1557
  return Ne(t), n.data = Oe.call(t, t.transformResponse, n), n.headers = O.from(n.headers), n;
1547
1558
  },
1548
1559
  function(n) {
1549
- return kt(n) || (Ne(t), n && n.response && (n.response.data = Oe.call(
1560
+ return vt(n) || (Ne(t), n && n.response && (n.response.data = Oe.call(
1550
1561
  t,
1551
1562
  t.transformResponse,
1552
1563
  n.response
@@ -1606,7 +1617,7 @@ const ge = {
1606
1617
  assertOptions: Sn,
1607
1618
  validators: Re
1608
1619
  }, U = ge.validators;
1609
- let H = class {
1620
+ let M = class {
1610
1621
  constructor(e) {
1611
1622
  this.defaults = e || {}, this.interceptors = {
1612
1623
  request: new nt(),
@@ -1684,16 +1695,16 @@ let H = class {
1684
1695
  this.interceptors.response.forEach(function(y) {
1685
1696
  l.push(y.fulfilled, y.rejected);
1686
1697
  });
1687
- let u, h = 0, m;
1698
+ let u, h = 0, _;
1688
1699
  if (!f) {
1689
1700
  const d = [pt.bind(this), void 0];
1690
- for (d.unshift(...a), d.push(...l), m = d.length, u = Promise.resolve(r); h < m; )
1701
+ for (d.unshift(...a), d.push(...l), _ = d.length, u = Promise.resolve(r); h < _; )
1691
1702
  u = u.then(d[h++], d[h++]);
1692
1703
  return u;
1693
1704
  }
1694
- m = a.length;
1705
+ _ = a.length;
1695
1706
  let R = r;
1696
- for (; h < m; ) {
1707
+ for (; h < _; ) {
1697
1708
  const d = a[h++], y = a[h++];
1698
1709
  try {
1699
1710
  R = d(R);
@@ -1707,18 +1718,18 @@ let H = class {
1707
1718
  } catch (d) {
1708
1719
  return Promise.reject(d);
1709
1720
  }
1710
- for (h = 0, m = l.length; h < m; )
1721
+ for (h = 0, _ = l.length; h < _; )
1711
1722
  u = u.then(l[h++], l[h++]);
1712
1723
  return u;
1713
1724
  }
1714
1725
  getUri(e) {
1715
1726
  e = V(this.defaults, e);
1716
- const r = vt(e.baseURL, e.url, e.allowAbsoluteUrls);
1727
+ const r = Ft(e.baseURL, e.url, e.allowAbsoluteUrls);
1717
1728
  return Dt(r, e.params, e.paramsSerializer);
1718
1729
  }
1719
1730
  };
1720
1731
  c.forEach(["delete", "get", "head", "options"], function(e) {
1721
- H.prototype[e] = function(r, n) {
1732
+ M.prototype[e] = function(r, n) {
1722
1733
  return this.request(
1723
1734
  V(n || {}, {
1724
1735
  method: e,
@@ -1743,9 +1754,9 @@ c.forEach(["post", "put", "patch"], function(e) {
1743
1754
  );
1744
1755
  };
1745
1756
  }
1746
- H.prototype[e] = r(), H.prototype[e + "Form"] = r(!0);
1757
+ M.prototype[e] = r(), M.prototype[e + "Form"] = r(!0);
1747
1758
  });
1748
- let Tn = class jt {
1759
+ let An = class jt {
1749
1760
  constructor(e) {
1750
1761
  if (typeof e != "function")
1751
1762
  throw new TypeError("executor must be a function.");
@@ -1769,7 +1780,7 @@ let Tn = class jt {
1769
1780
  n.unsubscribe(i);
1770
1781
  }, o;
1771
1782
  }, e(function(i, o, a) {
1772
- n.reason || (n.reason = new oe(i, o, a), r(n.reason));
1783
+ n.reason || (n.reason = new ce(i, o, a), r(n.reason));
1773
1784
  });
1774
1785
  }
1775
1786
  /**
@@ -1818,7 +1829,7 @@ let Tn = class jt {
1818
1829
  };
1819
1830
  }
1820
1831
  };
1821
- function An(t) {
1832
+ function Tn(t) {
1822
1833
  return function(r) {
1823
1834
  return t.apply(null, r);
1824
1835
  };
@@ -1826,7 +1837,7 @@ function An(t) {
1826
1837
  function Pn(t) {
1827
1838
  return c.isObject(t) && t.isAxiosError === !0;
1828
1839
  }
1829
- const Fe = {
1840
+ const ke = {
1830
1841
  Continue: 100,
1831
1842
  SwitchingProtocols: 101,
1832
1843
  Processing: 102,
@@ -1897,20 +1908,20 @@ const Fe = {
1897
1908
  SslHandshakeFailed: 525,
1898
1909
  InvalidSslCertificate: 526
1899
1910
  };
1900
- Object.entries(Fe).forEach(([t, e]) => {
1901
- Fe[e] = t;
1911
+ Object.entries(ke).forEach(([t, e]) => {
1912
+ ke[e] = t;
1902
1913
  });
1903
- function Mt(t) {
1904
- const e = new H(t), r = Ct(H.prototype.request, e);
1905
- return c.extend(r, H.prototype, e, { allOwnKeys: !0 }), c.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
1906
- return Mt(V(t, s));
1914
+ function Ht(t) {
1915
+ const e = new M(t), r = Ct(M.prototype.request, e);
1916
+ return c.extend(r, M.prototype, e, { allOwnKeys: !0 }), c.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
1917
+ return Ht(V(t, s));
1907
1918
  }, r;
1908
1919
  }
1909
- const b = Mt(ie);
1910
- b.Axios = H;
1911
- b.CanceledError = oe;
1912
- b.CancelToken = Tn;
1913
- b.isCancel = kt;
1920
+ const b = Ht(ae);
1921
+ b.Axios = M;
1922
+ b.CanceledError = ce;
1923
+ b.CancelToken = An;
1924
+ b.isCancel = vt;
1914
1925
  b.VERSION = $t;
1915
1926
  b.toFormData = Ce;
1916
1927
  b.AxiosError = g;
@@ -1918,31 +1929,31 @@ b.Cancel = b.CanceledError;
1918
1929
  b.all = function(e) {
1919
1930
  return Promise.all(e);
1920
1931
  };
1921
- b.spread = An;
1932
+ b.spread = Tn;
1922
1933
  b.isAxiosError = Pn;
1923
1934
  b.mergeConfig = V;
1924
1935
  b.AxiosHeaders = O;
1925
1936
  b.formToJSON = (t) => Lt(c.isHTMLForm(t) ? new FormData(t) : t);
1926
1937
  b.getAdapter = qt.getAdapter;
1927
- b.HttpStatusCode = Fe;
1938
+ b.HttpStatusCode = ke;
1928
1939
  b.default = b;
1929
1940
  const {
1930
- Axios: Zs,
1931
- AxiosError: fe,
1932
- CanceledError: ei,
1933
- isCancel: ti,
1934
- CancelToken: ri,
1935
- VERSION: ni,
1936
- all: si,
1937
- Cancel: ii,
1938
- isAxiosError: oi,
1939
- spread: ai,
1940
- toFormData: ci,
1941
- AxiosHeaders: ui,
1942
- HttpStatusCode: li,
1943
- formToJSON: di,
1944
- getAdapter: fi,
1945
- mergeConfig: hi
1941
+ Axios: ti,
1942
+ AxiosError: he,
1943
+ CanceledError: ri,
1944
+ isCancel: ni,
1945
+ CancelToken: si,
1946
+ VERSION: ii,
1947
+ all: oi,
1948
+ Cancel: ai,
1949
+ isAxiosError: ci,
1950
+ spread: ui,
1951
+ toFormData: li,
1952
+ AxiosHeaders: di,
1953
+ HttpStatusCode: fi,
1954
+ formToJSON: hi,
1955
+ getAdapter: pi,
1956
+ mergeConfig: yi
1946
1957
  } = b;
1947
1958
  class xe extends Error {
1948
1959
  constructor(r) {
@@ -1993,7 +2004,7 @@ class On {
1993
2004
  }
1994
2005
  })).data;
1995
2006
  } catch (l) {
1996
- if (l instanceof fe) {
2007
+ if (l instanceof he) {
1997
2008
  const u = (f = l.response) == null ? void 0 : f.data;
1998
2009
  if (typeof (u == null ? void 0 : u.message) == "string") {
1999
2010
  const h = u.message.toLowerCase();
@@ -2019,7 +2030,7 @@ class On {
2019
2030
  }
2020
2031
  });
2021
2032
  } catch (f) {
2022
- if (f instanceof fe) {
2033
+ if (f instanceof he) {
2023
2034
  const l = (a = f.response) == null ? void 0 : a.data;
2024
2035
  if (typeof (l == null ? void 0 : l.message) == "string") {
2025
2036
  const u = l.message.toLowerCase();
@@ -2046,11 +2057,11 @@ class On {
2046
2057
  }
2047
2058
  });
2048
2059
  } catch (u) {
2049
- if (u instanceof fe) {
2060
+ if (u instanceof he) {
2050
2061
  const h = (l = u.response) == null ? void 0 : l.data;
2051
2062
  if (typeof (h == null ? void 0 : h.message) == "string") {
2052
- const m = h.message.toLowerCase();
2053
- throw m == "invalid signature" ? new Ue() : new Error(m);
2063
+ const _ = h.message.toLowerCase();
2064
+ throw _ == "invalid signature" ? new Ue() : new Error(_);
2054
2065
  } else if ((h == null ? void 0 : h.message) instanceof Array)
2055
2066
  throw new xe(h.message);
2056
2067
  }
@@ -2093,7 +2104,7 @@ class On {
2093
2104
  current_tier: i.current_tier ?? null
2094
2105
  };
2095
2106
  } catch (s) {
2096
- if (s instanceof fe && ((n = s.response) == null ? void 0 : n.status) === 404)
2107
+ if (s instanceof he && ((n = s.response) == null ? void 0 : n.status) === 404)
2097
2108
  return null;
2098
2109
  throw console.error("Fuul SDK: Could not get affiliate referral", s), s;
2099
2110
  }
@@ -2113,7 +2124,7 @@ class xn {
2113
2124
  })).data;
2114
2125
  }
2115
2126
  }
2116
- const he = "/claim-checks";
2127
+ const ne = "/claim-checks";
2117
2128
  class Un {
2118
2129
  constructor(e) {
2119
2130
  w(this, "httpClient");
@@ -2132,7 +2143,7 @@ class Un {
2132
2143
  user_identifier_type: e.user_identifier_type
2133
2144
  };
2134
2145
  return e.status && (r.status = e.status), (await this.httpClient.get({
2135
- path: he,
2146
+ path: ne,
2136
2147
  queryParams: r
2137
2148
  })).data;
2138
2149
  }
@@ -2144,7 +2155,7 @@ class Un {
2144
2155
  */
2145
2156
  async closeClaimChecks(e) {
2146
2157
  return (await this.httpClient.post({
2147
- path: `${he}/close`,
2158
+ path: `${ne}/close`,
2148
2159
  postData: {
2149
2160
  userIdentifier: e.user_identifier,
2150
2161
  userIdentifierType: e.user_identifier_type,
@@ -2161,7 +2172,7 @@ class Un {
2161
2172
  */
2162
2173
  async getClaimableChecks(e) {
2163
2174
  return (await this.httpClient.post({
2164
- path: `${he}/claim`,
2175
+ path: `${ne}/claim`,
2165
2176
  postData: {
2166
2177
  userIdentifier: e.user_identifier,
2167
2178
  userIdentifierType: e.user_identifier_type
@@ -2177,13 +2188,37 @@ class Un {
2177
2188
  */
2178
2189
  async getClaimCheckTotals(e) {
2179
2190
  return (await this.httpClient.get({
2180
- path: `${he}/totals`,
2191
+ path: `${ne}/totals`,
2181
2192
  queryParams: {
2182
2193
  user_identifier: e.user_identifier,
2183
2194
  user_identifier_type: e.user_identifier_type
2184
2195
  }
2185
2196
  })).data;
2186
2197
  }
2198
+ /**
2199
+ * Returns a paginated list of a user's completed on-chain claim rows for the
2200
+ * project. Each row corresponds to one (transaction hash, currency) pair —
2201
+ * a single transaction that settled multiple currencies produces multiple
2202
+ * consecutive rows sharing the same `hash`. Only claim checks with
2203
+ * status = 'claimed' are returned, ordered by claimed_at DESC.
2204
+ *
2205
+ * `total_count` counts (hash, currency) rows, not distinct transactions.
2206
+ * `amount` is a raw integer string — divide by 10 ** currency_decimals
2207
+ * before displaying to users.
2208
+ *
2209
+ * @param {GetClaimHistoryParams} params - User identifier and pagination
2210
+ * @returns {Promise<GetClaimHistoryResponse>} Paginated (hash, currency) claim history
2211
+ */
2212
+ async getClaimHistory(e) {
2213
+ const r = {
2214
+ user_identifier: e.user_identifier,
2215
+ user_identifier_type: e.user_identifier_type
2216
+ };
2217
+ return e.page !== void 0 && (r.page = e.page), e.page_size !== void 0 && (r.page_size = e.page_size), (await this.httpClient.get({
2218
+ path: `${ne}/claim-history`,
2219
+ queryParams: r
2220
+ })).data;
2221
+ }
2187
2222
  }
2188
2223
  class Dn {
2189
2224
  constructor(e) {
@@ -2195,8 +2230,8 @@ class Dn {
2195
2230
  return r;
2196
2231
  }
2197
2232
  }
2198
- const _t = "fuul.sent", Ln = 60, kn = "connect_wallet", wt = 10;
2199
- class Fn {
2233
+ const _t = "fuul.sent", Ln = 60, vn = "connect_wallet", wt = 10;
2234
+ class kn {
2200
2235
  constructor(e) {
2201
2236
  w(this, "debug");
2202
2237
  w(this, "httpClient");
@@ -2217,7 +2252,7 @@ class Fn {
2217
2252
  this.debug && console.debug(`Fuul SDK: Sent '${e.name}' event`), this.saveSentEvent(e);
2218
2253
  }
2219
2254
  isDuplicate(e) {
2220
- var u, h, m, R;
2255
+ var u, h, _, R;
2221
2256
  const r = `${_t}_${e.name}`, n = localStorage.getItem(r);
2222
2257
  if (!n)
2223
2258
  return !1;
@@ -2225,7 +2260,7 @@ class Fn {
2225
2260
  if (this.getCurrentTimestamp() - s.timestamp > Ln)
2226
2261
  return !1;
2227
2262
  let f = !1;
2228
- 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);
2263
+ 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) && ((_ = s.user) == null ? void 0 : _.identifier_type) === ((R = e.user) == null ? void 0 : R.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
2229
2264
  let l = !1;
2230
2265
  return e.args && s.args && (l = s.args.page === e.args.page), l && f;
2231
2266
  }
@@ -2235,7 +2270,7 @@ class Fn {
2235
2270
  saveSentEvent(e) {
2236
2271
  var o, a, f, l;
2237
2272
  const r = `${_t}_${e.name}`, n = `${r}_all`, s = this.getCurrentTimestamp(), i = { ...e, timestamp: s };
2238
- if (localStorage.setItem(r, JSON.stringify(i)), e.name === kn) {
2273
+ if (localStorage.setItem(r, JSON.stringify(i)), e.name === vn) {
2239
2274
  const u = JSON.parse(localStorage.getItem(n) || "[]"), h = {
2240
2275
  name: e.name,
2241
2276
  user: {
@@ -2246,13 +2281,13 @@ class Fn {
2246
2281
  page: (l = e.args) == null ? void 0 : l.page
2247
2282
  };
2248
2283
  "user_address" in e && (h.user_address = e.user_address);
2249
- const m = [...u, h];
2250
- m.length > wt && m.splice(0, m.length - wt), localStorage.setItem(n, JSON.stringify(m));
2284
+ const _ = [...u, h];
2285
+ _.length > wt && _.splice(0, _.length - wt), localStorage.setItem(n, JSON.stringify(_));
2251
2286
  }
2252
2287
  }
2253
2288
  }
2254
- const vn = "0.0.0", Bn = {
2255
- version: vn
2289
+ const Fn = "0.0.0", Bn = {
2290
+ version: Fn
2256
2291
  };
2257
2292
  class In {
2258
2293
  constructor(e) {
@@ -2371,7 +2406,7 @@ class qn {
2371
2406
  })).data;
2372
2407
  }
2373
2408
  }
2374
- const W = "/payouts";
2409
+ const X = "/payouts";
2375
2410
  class $n {
2376
2411
  constructor(e) {
2377
2412
  w(this, "httpClient");
@@ -2380,31 +2415,31 @@ class $n {
2380
2415
  }
2381
2416
  async getUserPayoutsByConversion(e) {
2382
2417
  return (await this.httpClient.get({
2383
- path: W,
2418
+ path: X,
2384
2419
  queryParams: { ...e, type: "onchain-currency" }
2385
2420
  })).data;
2386
2421
  }
2387
2422
  async getUserPointsByConversion(e) {
2388
2423
  return (await this.httpClient.get({
2389
- path: W,
2424
+ path: X,
2390
2425
  queryParams: { ...e, type: "point" }
2391
2426
  })).data;
2392
2427
  }
2393
2428
  async getUserPayoutMovements(e) {
2394
2429
  return (await this.httpClient.get({
2395
- path: `${W}/movements`,
2430
+ path: `${X}/movements`,
2396
2431
  queryParams: { ...e, type: "onchain-currency" }
2397
2432
  })).data;
2398
2433
  }
2399
2434
  async getUserPointsMovements(e) {
2400
2435
  return (await this.httpClient.get({
2401
- path: `${W}/movements`,
2436
+ path: `${X}/movements`,
2402
2437
  queryParams: { ...e, type: "point" }
2403
2438
  })).data;
2404
2439
  }
2405
2440
  async getPayoutsByReferrer(e) {
2406
2441
  return (await this.httpClient.get({
2407
- path: `${W}/by-referrer`,
2442
+ path: `${X}/by-referrer`,
2408
2443
  queryParams: {
2409
2444
  user_identifier: e.user_identifier,
2410
2445
  user_identifier_type: e.user_identifier_type,
@@ -2415,7 +2450,7 @@ class $n {
2415
2450
  async getIncentivesByTier(e) {
2416
2451
  const r = e != null && e.tier_ids && e.tier_ids.length > 0 ? { tier_ids: e.tier_ids.join(",") } : void 0;
2417
2452
  return (await this.httpClient.get({
2418
- path: `${W}/terms-by-tier`,
2453
+ path: `${X}/terms-by-tier`,
2419
2454
  queryParams: r
2420
2455
  })).data;
2421
2456
  }
@@ -2503,14 +2538,14 @@ class jn {
2503
2538
  });
2504
2539
  }
2505
2540
  }
2506
- const Mn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2507
- let Hn = (t = 21) => {
2541
+ const Hn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2542
+ let Mn = (t = 21) => {
2508
2543
  let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
2509
2544
  for (; t--; )
2510
- e += Mn[r[t] & 63];
2545
+ e += Hn[r[t] & 63];
2511
2546
  return e;
2512
2547
  };
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) => {
2548
+ const Vn = "fuul.tracking_id", He = () => Xn(Vn, () => Mn()), bt = () => G("af") || G("referrer"), Kn = () => document.referrer, zn = () => Yn(), Jn = () => G("category"), Wn = () => G("title"), Qn = () => G("tag"), Xn = (t, e) => {
2514
2549
  const r = localStorage.getItem(t);
2515
2550
  if (r)
2516
2551
  return r;
@@ -2518,8 +2553,8 @@ const Vn = "fuul.tracking_id", Me = () => Xn(Vn, () => Hn()), bt = () => X("af")
2518
2553
  const n = e();
2519
2554
  return n ? localStorage.setItem(t, n) : localStorage.removeItem(t), n;
2520
2555
  }
2521
- }, X = (t) => new URLSearchParams(window.location.search).get(t), Yn = () => {
2522
- const t = X("source");
2556
+ }, G = (t) => new URLSearchParams(window.location.search).get(t), Yn = () => {
2557
+ const t = G("source");
2523
2558
  if (t)
2524
2559
  return t;
2525
2560
  }, Gn = "/user";
@@ -2533,27 +2568,27 @@ class Zn {
2533
2568
  }
2534
2569
  }
2535
2570
  const es = "https://api.fuul.xyz/api/v1/";
2536
- let F = !1, ve = !1, He, L, Ve, Ht, v, G, Ee, K, Vt, z, q, ae;
2571
+ let k = !1, Fe = !1, Me, L, Ve, Mt, F, K, Ee, z, Vt, J, q, ee;
2537
2572
  function ts(t) {
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"));
2573
+ k = !!t.debug, !Fe && (Me = t.apiKey, Js(), L = Ws(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Ve = new Dn({ httpClient: L, debug: k }), Ee = new kn({ httpClient: L, debug: k }), F = new On({ httpClient: L, debug: k }), K = new Wt({ httpClient: L }), z = new $n({ httpClient: L, debug: k }), Mt = new Zn({ httpClient: L }), Vt = new xn({ httpClient: L, debug: k }), J = new qn({ httpClient: L }), q = new jn({ httpClient: L, debug: k }), ee = new Un({ httpClient: L, debug: k }), Fe = !0, k && console.debug("Fuul SDK: init() complete"));
2539
2574
  }
2540
- function _() {
2541
- if (!ve)
2575
+ function m() {
2576
+ if (!Fe)
2542
2577
  throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
2543
2578
  }
2544
2579
  async function rs(t, e) {
2545
- _(), Ke(), ze();
2580
+ m(), Ke(), ze();
2546
2581
  const r = {
2547
2582
  name: t,
2548
2583
  args: e ?? {},
2549
2584
  metadata: {
2550
- tracking_id: Me()
2585
+ tracking_id: He()
2551
2586
  }
2552
2587
  };
2553
2588
  await Ee.sendEvent(r);
2554
2589
  }
2555
2590
  async function ns(t, e) {
2556
- _(), Ke(), ze();
2591
+ m(), Ke(), ze();
2557
2592
  const r = {
2558
2593
  name: "pageview",
2559
2594
  args: {
@@ -2561,7 +2596,7 @@ async function ns(t, e) {
2561
2596
  locationOrigin: document.location.origin
2562
2597
  },
2563
2598
  metadata: {
2564
- tracking_id: Me(),
2599
+ tracking_id: He(),
2565
2600
  referrer_url: Kn(),
2566
2601
  source: zn(),
2567
2602
  affiliate_id: bt() ?? void 0,
@@ -2574,7 +2609,7 @@ async function ns(t, e) {
2574
2609
  await Ee.sendEvent(r, e);
2575
2610
  }
2576
2611
  async function ss(t, e) {
2577
- _(), Ke(), ze();
2612
+ m(), Ke(), ze();
2578
2613
  const r = {
2579
2614
  name: "connect_wallet",
2580
2615
  user: {
@@ -2586,13 +2621,13 @@ async function ss(t, e) {
2586
2621
  locationOrigin: document.location.origin
2587
2622
  },
2588
2623
  metadata: {
2589
- tracking_id: Me()
2624
+ tracking_id: He()
2590
2625
  }
2591
2626
  };
2592
2627
  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);
2593
2628
  }
2594
2629
  async function is(t) {
2595
- return _(), v.create(
2630
+ return m(), F.create(
2596
2631
  t.userIdentifier,
2597
2632
  t.identifierType,
2598
2633
  t.code,
@@ -2603,7 +2638,7 @@ async function is(t) {
2603
2638
  );
2604
2639
  }
2605
2640
  async function os(t) {
2606
- _(), await v.update(
2641
+ m(), await F.update(
2607
2642
  t.userIdentifier,
2608
2643
  t.identifierType,
2609
2644
  t.code,
@@ -2613,7 +2648,7 @@ async function os(t) {
2613
2648
  );
2614
2649
  }
2615
2650
  async function as(t) {
2616
- _(), await v.updateRebateRate(
2651
+ m(), await F.updateRebateRate(
2617
2652
  t.userIdentifier,
2618
2653
  t.identifierType,
2619
2654
  t.code,
@@ -2625,119 +2660,125 @@ async function as(t) {
2625
2660
  );
2626
2661
  }
2627
2662
  async function cs(t, e) {
2628
- return _(), await v.getReferral(t, e);
2663
+ return m(), await F.getReferral(t, e);
2629
2664
  }
2630
2665
  async function us(t, e) {
2631
- return _(), await v.getReferral(t, e);
2666
+ return m(), await F.getReferral(t, e);
2632
2667
  }
2633
2668
  async function ls(t) {
2634
- return _(), await v.isCodeFree(t);
2669
+ return m(), await F.isCodeFree(t);
2635
2670
  }
2636
2671
  async function ds(t) {
2637
- return _(), await v.isCodeAvailable(t);
2672
+ return m(), await F.isCodeAvailable(t);
2638
2673
  }
2639
2674
  async function fs(t, e, r, n) {
2640
- _();
2641
- const s = await v.getReferral(e, r), i = new URLSearchParams({
2675
+ m();
2676
+ const s = await F.getReferral(e, r), i = new URLSearchParams({
2642
2677
  af: (s == null ? void 0 : s.code) ?? e
2643
2678
  });
2644
2679
  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()}`;
2645
2680
  }
2646
2681
  function hs(t) {
2647
- return z.getPayoutsLeaderboard(t);
2682
+ return J.getPayoutsLeaderboard(t);
2648
2683
  }
2649
2684
  function ps(t) {
2650
- return z.getPointsLeaderboard(t);
2685
+ return J.getPointsLeaderboard(t);
2651
2686
  }
2652
2687
  function ys(t) {
2653
- return z.getReferredUsersLeaderboard(t);
2688
+ return J.getReferredUsersLeaderboard(t);
2654
2689
  }
2655
2690
  function gs(t) {
2656
- return _(), z.getReferredVolume(t);
2691
+ return m(), J.getReferredVolume(t);
2657
2692
  }
2658
2693
  function ms(t) {
2659
- return _(), z.getVolumeLeaderboard(t);
2694
+ return m(), J.getVolumeLeaderboard(t);
2660
2695
  }
2661
2696
  function _s(t) {
2662
- return _(), z.getRevenueLeaderboard(t);
2697
+ return m(), J.getRevenueLeaderboard(t);
2663
2698
  }
2664
2699
  function ws(t) {
2665
- return K.getUserPayoutsByConversion(t);
2700
+ return z.getUserPayoutsByConversion(t);
2666
2701
  }
2667
2702
  function bs(t) {
2668
- return K.getUserPointsByConversion(t);
2703
+ return z.getUserPointsByConversion(t);
2669
2704
  }
2670
2705
  function Cs(t) {
2671
- return K.getUserPayoutMovements(t);
2706
+ return z.getUserPayoutMovements(t);
2672
2707
  }
2673
2708
  function Rs(t) {
2674
- return K.getUserPointsMovements(t);
2709
+ return z.getUserPointsMovements(t);
2675
2710
  }
2676
2711
  function Es(t) {
2677
- return _(), K.getPayoutsByReferrer(t);
2712
+ return m(), z.getPayoutsByReferrer(t);
2678
2713
  }
2679
2714
  async function Ss(t) {
2680
- return _(), K.getIncentivesByTier(t);
2715
+ return m(), z.getIncentivesByTier(t);
2681
2716
  }
2682
- async function Ts() {
2683
- return _(), Ve.getAll();
2717
+ async function As() {
2718
+ return m(), Ve.getAll();
2684
2719
  }
2685
- async function As(t) {
2686
- return _(), Ve.getAll(t);
2720
+ async function Ts(t) {
2721
+ return m(), Ve.getAll(t);
2687
2722
  }
2688
2723
  async function Ps(t) {
2689
- return _(), Ht.getUserReferrer(t);
2724
+ return m(), Mt.getUserReferrer(t);
2690
2725
  }
2691
2726
  async function Os(t) {
2692
- return _(), Vt.getUserAudiences(t);
2727
+ return m(), Vt.getUserAudiences(t);
2693
2728
  }
2694
2729
  async function Ns(t) {
2695
- return _(), q.listUserReferralCodes(t);
2730
+ return m(), q.listUserReferralCodes(t);
2696
2731
  }
2697
2732
  async function xs(t) {
2698
- return _(), q.generateReferralCodes(t);
2733
+ return m(), q.generateReferralCodes(t);
2699
2734
  }
2700
2735
  async function Us(t) {
2701
- return _(), q.getReferralStatus(t);
2736
+ return m(), q.getReferralStatus(t);
2702
2737
  }
2703
2738
  async function Ds(t) {
2704
- return _(), q.getReferralCode(t);
2739
+ return m(), q.getReferralCode(t);
2705
2740
  }
2706
2741
  async function Ls(t) {
2707
- return _(), q.useReferralCode(t);
2742
+ return m(), q.useReferralCode(t);
2743
+ }
2744
+ async function vs(t) {
2745
+ return m(), q.updateReferralCode(t);
2708
2746
  }
2709
2747
  async function ks(t) {
2710
- return _(), q.updateReferralCode(t);
2748
+ return m(), q.deleteReferral(t);
2711
2749
  }
2712
2750
  async function Fs(t) {
2713
- return _(), q.deleteReferral(t);
2714
- }
2715
- async function vs(t) {
2716
- return _(), G.getAffiliateStats(t);
2751
+ return m(), K.getAffiliateStats(t);
2717
2752
  }
2718
2753
  async function Bs(t) {
2719
- return _(), G.getAffiliateNewTraders(t);
2754
+ return m(), K.getAffiliateNewTraders(t);
2720
2755
  }
2721
2756
  async function Is(t) {
2722
- return _(), G.getAffiliateTotalStats(t);
2757
+ return m(), K.getAffiliateTotalStats(t);
2723
2758
  }
2724
2759
  async function qs(t) {
2725
- return _(), G.getReferralTree(t);
2760
+ return m(), K.getReferralTree(t);
2726
2761
  }
2727
2762
  async function $s(t) {
2728
- return _(), G.getStatsBreakdown(t);
2763
+ return m(), K.getStatsBreakdown(t);
2729
2764
  }
2730
2765
  async function js(t) {
2731
- return _(), ae.getClaimChecks(t);
2732
- }
2733
- async function Ms(t) {
2734
- return _(), ae.closeClaimChecks(t);
2766
+ return m(), K.getAffiliatePaidVolumesByLevel(t);
2735
2767
  }
2736
2768
  async function Hs(t) {
2737
- return _(), ae.getClaimableChecks(t);
2769
+ return m(), ee.getClaimChecks(t);
2770
+ }
2771
+ async function Ms(t) {
2772
+ return m(), ee.closeClaimChecks(t);
2738
2773
  }
2739
2774
  async function Vs(t) {
2740
- return _(), ae.getClaimCheckTotals(t);
2775
+ return m(), ee.getClaimableChecks(t);
2776
+ }
2777
+ async function Ks(t) {
2778
+ return m(), ee.getClaimCheckTotals(t);
2779
+ }
2780
+ async function zs(t) {
2781
+ return m(), ee.getClaimHistory(t);
2741
2782
  }
2742
2783
  function Ke() {
2743
2784
  if (typeof window > "u" || typeof document > "u")
@@ -2747,26 +2788,26 @@ function ze() {
2747
2788
  if (navigator.webdriver)
2748
2789
  throw new Error("Fuul SDK: Error");
2749
2790
  }
2750
- function Ks() {
2751
- if (!He)
2791
+ function Js() {
2792
+ if (!Me)
2752
2793
  throw new Error("Fuul SDK: Invalid API key");
2753
2794
  }
2754
- function zs(t, e) {
2795
+ function Ws(t, e) {
2755
2796
  return new In({
2756
2797
  baseURL: t,
2757
2798
  timeout: 3e4,
2758
- apiKey: He,
2799
+ apiKey: Me,
2759
2800
  queryParams: e
2760
2801
  });
2761
2802
  }
2762
- const pi = {
2803
+ const gi = {
2763
2804
  init: ts,
2764
2805
  sendEvent: rs,
2765
2806
  sendPageview: ns,
2766
2807
  identifyUser: ss,
2767
2808
  generateTrackingLink: fs,
2768
- getConversions: As,
2769
- getIncentives: Ts,
2809
+ getConversions: Ts,
2810
+ getIncentives: As,
2770
2811
  getIncentivesByTier: Ss,
2771
2812
  createAffiliateCode: is,
2772
2813
  updateAffiliateCode: os,
@@ -2793,25 +2834,27 @@ const pi = {
2793
2834
  getReferralStatus: Us,
2794
2835
  getReferralCode: Ds,
2795
2836
  useReferralCode: Ls,
2796
- updateReferralCode: ks,
2797
- deleteReferral: Fs,
2798
- getAffiliateStats: vs,
2837
+ updateReferralCode: vs,
2838
+ deleteReferral: ks,
2839
+ getAffiliateStats: Fs,
2799
2840
  getAffiliateNewTraders: Bs,
2800
2841
  getAffiliateTotalStats: Is,
2801
2842
  getReferralTree: qs,
2802
2843
  getStatsBreakdown: $s,
2803
- getClaimChecks: js,
2844
+ getAffiliatePaidVolumesByLevel: js,
2845
+ getClaimChecks: Hs,
2804
2846
  closeClaimChecks: Ms,
2805
- getClaimableChecks: Hs,
2806
- getClaimCheckTotals: Vs
2847
+ getClaimableChecks: Vs,
2848
+ getClaimCheckTotals: Ks,
2849
+ getClaimHistory: zs
2807
2850
  };
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 || {});
2851
+ var Qs = /* @__PURE__ */ ((t) => (t.Open = "open", t.Unclaimed = "unclaimed", t.Claimed = "claimed", t))(Qs || {}), Xs = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(Xs || {});
2809
2852
  export {
2810
2853
  gt as AddressInUseError,
2811
- Js as ClaimCheckStatus,
2854
+ Qs as ClaimCheckStatus,
2812
2855
  mt as CodeInUseError,
2813
- pi as Fuul,
2856
+ gi as Fuul,
2814
2857
  Ue as InvalidSignatureError,
2815
- Ws as UserIdentifierType,
2858
+ Xs as UserIdentifierType,
2816
2859
  xe as ValidationError
2817
2860
  };