@akad/sdk 1.0.19 → 1.0.21

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/ts-lib.js CHANGED
@@ -6,30 +6,30 @@ function Be(e, t) {
6
6
  const { toString: nt } = Object.prototype, { getPrototypeOf: le } = Object, K = /* @__PURE__ */ ((e) => (t) => {
7
7
  const n = nt.call(t);
8
8
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
9
- })(/* @__PURE__ */ Object.create(null)), A = (e) => (e = e.toLowerCase(), (t) => K(t) === e), v = (e) => (t) => typeof t === e, { isArray: U } = Array, $ = v("undefined");
9
+ })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => K(t) === e), v = (e) => (t) => typeof t === e, { isArray: F } = Array, $ = v("undefined");
10
10
  function rt(e) {
11
11
  return e !== null && !$(e) && e.constructor !== null && !$(e.constructor) && R(e.constructor.isBuffer) && e.constructor.isBuffer(e);
12
12
  }
13
- const qe = A("ArrayBuffer");
13
+ const Ue = P("ArrayBuffer");
14
14
  function st(e) {
15
15
  let t;
16
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qe(e.buffer), t;
16
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ue(e.buffer), t;
17
17
  }
18
- const ot = v("string"), R = v("function"), Fe = v("number"), W = (e) => e !== null && typeof e == "object", it = (e) => e === !0 || e === !1, M = (e) => {
18
+ const ot = v("string"), R = v("function"), qe = v("number"), W = (e) => e !== null && typeof e == "object", it = (e) => e === !0 || e === !1, M = (e) => {
19
19
  if (K(e) !== "object")
20
20
  return !1;
21
21
  const t = le(e);
22
22
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
23
- }, at = A("Date"), ct = A("File"), ut = A("Blob"), lt = A("FileList"), ft = (e) => W(e) && R(e.pipe), dt = (e) => {
23
+ }, at = P("Date"), ct = P("File"), ut = P("Blob"), lt = P("FileList"), ft = (e) => W(e) && R(e.pipe), dt = (e) => {
24
24
  let t;
25
25
  return e && (typeof FormData == "function" && e instanceof FormData || R(e.append) && ((t = K(e)) === "formdata" || // detect form-data instance
26
26
  t === "object" && R(e.toString) && e.toString() === "[object FormData]"));
27
- }, pt = A("URLSearchParams"), [ht, mt, yt, gt] = ["ReadableStream", "Request", "Response", "Headers"].map(A), wt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
27
+ }, ht = P("URLSearchParams"), [pt, mt, yt, gt] = ["ReadableStream", "Request", "Response", "Headers"].map(P), wt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
28
28
  function I(e, t, { allOwnKeys: n = !1 } = {}) {
29
29
  if (e === null || typeof e > "u")
30
30
  return;
31
31
  let r, s;
32
- if (typeof e != "object" && (e = [e]), U(e))
32
+ if (typeof e != "object" && (e = [e]), F(e))
33
33
  for (r = 0, s = e.length; r < s; r++)
34
34
  t.call(null, e[r], r, e);
35
35
  else {
@@ -39,7 +39,7 @@ function I(e, t, { allOwnKeys: n = !1 } = {}) {
39
39
  u = o[r], t.call(null, e[u], u, e);
40
40
  }
41
41
  }
42
- function Ue(e, t) {
42
+ function Fe(e, t) {
43
43
  t = t.toLowerCase();
44
44
  const n = Object.keys(e);
45
45
  let r = n.length, s;
@@ -51,8 +51,8 @@ function Ue(e, t) {
51
51
  const Le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _e = (e) => !$(e) && e !== Le;
52
52
  function re() {
53
53
  const { caseless: e } = _e(this) && this || {}, t = {}, n = (r, s) => {
54
- const o = e && Ue(t, s) || s;
55
- M(t[o]) && M(r) ? t[o] = re(t[o], r) : M(r) ? t[o] = re({}, r) : U(r) ? t[o] = r.slice() : t[o] = r;
54
+ const o = e && Fe(t, s) || s;
55
+ M(t[o]) && M(r) ? t[o] = re(t[o], r) : M(r) ? t[o] = re({}, r) : F(r) ? t[o] = r.slice() : t[o] = r;
56
56
  };
57
57
  for (let r = 0, s = arguments.length; r < s; r++)
58
58
  arguments[r] && I(arguments[r], n);
@@ -60,11 +60,11 @@ function re() {
60
60
  }
61
61
  const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
62
62
  n && R(s) ? e[o] = Be(s, n) : e[o] = s;
63
- }, { allOwnKeys: r }), e), Tt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Et = (e, t, n, r) => {
63
+ }, { allOwnKeys: r }), e), St = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tt = (e, t, n, r) => {
64
64
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
65
65
  value: t.prototype
66
66
  }), n && Object.assign(e.prototype, n);
67
- }, St = (e, t, n, r) => {
67
+ }, Et = (e, t, n, r) => {
68
68
  let s, o, i;
69
69
  const u = {};
70
70
  if (t = t || {}, e == null)
@@ -82,10 +82,10 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
82
82
  }, Ot = (e) => {
83
83
  if (!e)
84
84
  return null;
85
- if (U(e))
85
+ if (F(e))
86
86
  return e;
87
87
  let t = e.length;
88
- if (!Fe(t))
88
+ if (!qe(t))
89
89
  return null;
90
90
  const n = new Array(t);
91
91
  for (; t-- > 0; )
@@ -104,12 +104,12 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
104
104
  for (; (n = e.exec(t)) !== null; )
105
105
  r.push(n);
106
106
  return r;
107
- }, Ct = A("HTMLFormElement"), kt = (e) => e.toLowerCase().replace(
107
+ }, Ct = P("HTMLFormElement"), kt = (e) => e.toLowerCase().replace(
108
108
  /[-_\s]([a-z\d])(\w*)/g,
109
109
  function(n, r, s) {
110
110
  return r.toUpperCase() + s;
111
111
  }
112
- ), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), xt = A("RegExp"), De = (e, t) => {
112
+ ), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), xt = P("RegExp"), De = (e, t) => {
113
113
  const n = Object.getOwnPropertyDescriptors(e), r = {};
114
114
  I(n, (s, o) => {
115
115
  let i;
@@ -130,15 +130,15 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
130
130
  });
131
131
  }
132
132
  });
133
- }, qt = (e, t) => {
133
+ }, Ut = (e, t) => {
134
134
  const n = {}, r = (s) => {
135
135
  s.forEach((o) => {
136
136
  n[o] = !0;
137
137
  });
138
138
  };
139
- return U(e) ? r(e) : r(String(e).split(t)), n;
140
- }, Ft = () => {
141
- }, Ut = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Z = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789", $e = {
139
+ return F(e) ? r(e) : r(String(e).split(t)), n;
140
+ }, qt = () => {
141
+ }, Ft = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Z = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789", $e = {
142
142
  DIGIT: ye,
143
143
  ALPHA: Z,
144
144
  ALPHA_DIGIT: Z + Z.toUpperCase() + ye
@@ -159,7 +159,7 @@ const Dt = (e) => {
159
159
  return;
160
160
  if (!("toJSON" in r)) {
161
161
  t[s] = r;
162
- const o = U(r) ? [] : {};
162
+ const o = F(r) ? [] : {};
163
163
  return I(r, (i, u) => {
164
164
  const f = n(i, s + 1);
165
165
  !$(f) && (o[u] = f);
@@ -169,18 +169,18 @@ const Dt = (e) => {
169
169
  return r;
170
170
  };
171
171
  return n(e, 0);
172
- }, $t = A("AsyncFunction"), It = (e) => e && (W(e) || R(e)) && R(e.then) && R(e.catch), c = {
173
- isArray: U,
174
- isArrayBuffer: qe,
172
+ }, $t = P("AsyncFunction"), It = (e) => e && (W(e) || R(e)) && R(e.then) && R(e.catch), c = {
173
+ isArray: F,
174
+ isArrayBuffer: Ue,
175
175
  isBuffer: rt,
176
176
  isFormData: dt,
177
177
  isArrayBufferView: st,
178
178
  isString: ot,
179
- isNumber: Fe,
179
+ isNumber: qe,
180
180
  isBoolean: it,
181
181
  isObject: W,
182
182
  isPlainObject: M,
183
- isReadableStream: ht,
183
+ isReadableStream: pt,
184
184
  isRequest: mt,
185
185
  isResponse: yt,
186
186
  isHeaders: gt,
@@ -191,18 +191,18 @@ const Dt = (e) => {
191
191
  isRegExp: xt,
192
192
  isFunction: R,
193
193
  isStream: ft,
194
- isURLSearchParams: pt,
194
+ isURLSearchParams: ht,
195
195
  isTypedArray: At,
196
196
  isFileList: lt,
197
197
  forEach: I,
198
198
  merge: re,
199
199
  extend: bt,
200
200
  trim: wt,
201
- stripBOM: Tt,
202
- inherits: Et,
203
- toFlatObject: St,
201
+ stripBOM: St,
202
+ inherits: Tt,
203
+ toFlatObject: Et,
204
204
  kindOf: K,
205
- kindOfTest: A,
205
+ kindOfTest: P,
206
206
  endsWith: Rt,
207
207
  toArray: Ot,
208
208
  forEachEntry: Pt,
@@ -213,11 +213,11 @@ const Dt = (e) => {
213
213
  // an alias to avoid ESLint no-prototype-builtins detection
214
214
  reduceDescriptors: De,
215
215
  freezeMethods: Bt,
216
- toObjectSet: qt,
216
+ toObjectSet: Ut,
217
217
  toCamelCase: kt,
218
- noop: Ft,
219
- toFiniteNumber: Ut,
220
- findKey: Ue,
218
+ noop: qt,
219
+ toFiniteNumber: Ft,
220
+ findKey: Fe,
221
221
  global: Le,
222
222
  isContextDefined: _e,
223
223
  ALPHABET: $e,
@@ -302,54 +302,54 @@ function Q(e, t, n) {
302
302
  metaTokens: !0,
303
303
  dots: !1,
304
304
  indexes: !1
305
- }, !1, function(h, w) {
306
- return !c.isUndefined(w[h]);
305
+ }, !1, function(p, w) {
306
+ return !c.isUndefined(w[p]);
307
307
  });
308
308
  const r = n.metaTokens, s = n.visitor || a, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
309
309
  if (!c.isFunction(s))
310
310
  throw new TypeError("visitor must be a function");
311
- function l(p) {
312
- if (p === null)
311
+ function l(h) {
312
+ if (h === null)
313
313
  return "";
314
- if (c.isDate(p))
315
- return p.toISOString();
316
- if (!f && c.isBlob(p))
314
+ if (c.isDate(h))
315
+ return h.toISOString();
316
+ if (!f && c.isBlob(h))
317
317
  throw new y("Blob is not supported. Use a Buffer instead.");
318
- return c.isArrayBuffer(p) || c.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
318
+ return c.isArrayBuffer(h) || c.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
319
319
  }
320
- function a(p, h, w) {
321
- let E = p;
322
- if (p && !w && typeof p == "object") {
323
- if (c.endsWith(h, "{}"))
324
- h = r ? h : h.slice(0, -2), p = JSON.stringify(p);
325
- else if (c.isArray(p) && Ht(p) || (c.isFileList(p) || c.endsWith(h, "[]")) && (E = c.toArray(p)))
326
- return h = He(h), E.forEach(function(b, _) {
320
+ function a(h, p, w) {
321
+ let T = h;
322
+ if (h && !w && typeof h == "object") {
323
+ if (c.endsWith(p, "{}"))
324
+ p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
325
+ else if (c.isArray(h) && Ht(h) || (c.isFileList(h) || c.endsWith(p, "[]")) && (T = c.toArray(h)))
326
+ return p = He(p), T.forEach(function(b, _) {
327
327
  !(c.isUndefined(b) || b === null) && t.append(
328
328
  // eslint-disable-next-line no-nested-ternary
329
- i === !0 ? ge([h], _, o) : i === null ? h : h + "[]",
329
+ i === !0 ? ge([p], _, o) : i === null ? p : p + "[]",
330
330
  l(b)
331
331
  );
332
332
  }), !1;
333
333
  }
334
- return se(p) ? !0 : (t.append(ge(w, h, o), l(p)), !1);
334
+ return se(h) ? !0 : (t.append(ge(w, p, o), l(h)), !1);
335
335
  }
336
336
  const d = [], m = Object.assign(Jt, {
337
337
  defaultVisitor: a,
338
338
  convertValue: l,
339
339
  isVisitable: se
340
340
  });
341
- function g(p, h) {
342
- if (!c.isUndefined(p)) {
343
- if (d.indexOf(p) !== -1)
344
- throw Error("Circular reference detected in " + h.join("."));
345
- d.push(p), c.forEach(p, function(E, N) {
346
- (!(c.isUndefined(E) || E === null) && s.call(
341
+ function g(h, p) {
342
+ if (!c.isUndefined(h)) {
343
+ if (d.indexOf(h) !== -1)
344
+ throw Error("Circular reference detected in " + p.join("."));
345
+ d.push(h), c.forEach(h, function(T, N) {
346
+ (!(c.isUndefined(T) || T === null) && s.call(
347
347
  t,
348
- E,
348
+ T,
349
349
  c.isString(N) ? N.trim() : N,
350
- h,
350
+ p,
351
351
  m
352
- )) === !0 && g(E, h ? h.concat(N) : [N]);
352
+ )) === !0 && g(T, p ? p.concat(N) : [N]);
353
353
  }), d.pop();
354
354
  }
355
355
  }
@@ -473,14 +473,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Qt
473
473
  hasStandardBrowserEnv: vt,
474
474
  hasStandardBrowserWebWorkerEnv: Wt,
475
475
  origin: Qt
476
- }, Symbol.toStringTag, { value: "Module" })), O = {
476
+ }, Symbol.toStringTag, { value: "Module" })), A = {
477
477
  ...Xt,
478
478
  ...Kt
479
479
  };
480
480
  function Zt(e, t) {
481
- return Q(e, new O.classes.URLSearchParams(), Object.assign({
481
+ return Q(e, new A.classes.URLSearchParams(), Object.assign({
482
482
  visitor: function(n, r, s, o) {
483
- return O.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
483
+ return A.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
484
484
  }
485
485
  }, t));
486
486
  }
@@ -575,8 +575,8 @@ const j = {
575
575
  maxContentLength: -1,
576
576
  maxBodyLength: -1,
577
577
  env: {
578
- FormData: O.classes.FormData,
579
- Blob: O.classes.Blob
578
+ FormData: A.classes.FormData,
579
+ Blob: A.classes.Blob
580
580
  },
581
581
  validateStatus: function(t) {
582
582
  return t >= 200 && t < 300;
@@ -616,7 +616,7 @@ const nn = c.toObjectSet([
616
616
  `).forEach(function(i) {
617
617
  s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && nn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
618
618
  }), t;
619
- }, Te = Symbol("internals");
619
+ }, Se = Symbol("internals");
620
620
  function D(e) {
621
621
  return e && String(e).trim().toLowerCase();
622
622
  }
@@ -655,7 +655,7 @@ function cn(e, t) {
655
655
  });
656
656
  });
657
657
  }
658
- let S = class {
658
+ let E = class {
659
659
  constructor(t) {
660
660
  t && this.set(t);
661
661
  }
@@ -763,7 +763,7 @@ let S = class {
763
763
  return n.forEach((s) => r.set(s)), r;
764
764
  }
765
765
  static accessor(t) {
766
- const r = (this[Te] = this[Te] = {
766
+ const r = (this[Se] = this[Se] = {
767
767
  accessors: {}
768
768
  }).accessors, s = this.prototype;
769
769
  function o(i) {
@@ -773,8 +773,8 @@ let S = class {
773
773
  return c.isArray(t) ? t.forEach(o) : o(t), this;
774
774
  }
775
775
  };
776
- S.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
777
- c.reduceDescriptors(S.prototype, ({ value: e }, t) => {
776
+ E.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
777
+ c.reduceDescriptors(E.prototype, ({ value: e }, t) => {
778
778
  let n = t[0].toUpperCase() + t.slice(1);
779
779
  return {
780
780
  get: () => e,
@@ -783,9 +783,9 @@ c.reduceDescriptors(S.prototype, ({ value: e }, t) => {
783
783
  }
784
784
  };
785
785
  });
786
- c.freezeMethods(S);
786
+ c.freezeMethods(E);
787
787
  function ee(e, t) {
788
- const n = this || j, r = t || n, s = S.from(r.headers);
788
+ const n = this || j, r = t || n, s = E.from(r.headers);
789
789
  let o = r.data;
790
790
  return c.forEach(e, function(u) {
791
791
  o = u.call(n, o, s.normalize(), t ? t.status : void 0);
@@ -859,7 +859,7 @@ const V = (e, t, n = 3) => {
859
859
  };
860
860
  d[t ? "download" : "upload"] = !0, e(d);
861
861
  }, n);
862
- }, dn = O.hasStandardBrowserEnv ? (
862
+ }, dn = A.hasStandardBrowserEnv ? (
863
863
  // Standard browser envs have full support of the APIs needed to test
864
864
  // whether the request URL is of the same origin as current location.
865
865
  function() {
@@ -890,7 +890,7 @@ const V = (e, t, n = 3) => {
890
890
  return !0;
891
891
  };
892
892
  }()
893
- ), pn = O.hasStandardBrowserEnv ? (
893
+ ), hn = A.hasStandardBrowserEnv ? (
894
894
  // Standard browser envs support document.cookie
895
895
  {
896
896
  write(e, t, n, r, s, o) {
@@ -917,17 +917,17 @@ const V = (e, t, n = 3) => {
917
917
  }
918
918
  }
919
919
  );
920
- function hn(e) {
920
+ function pn(e) {
921
921
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
922
922
  }
923
923
  function mn(e, t) {
924
924
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
925
925
  }
926
926
  function ve(e, t) {
927
- return e && !hn(t) ? mn(e, t) : t;
927
+ return e && !pn(t) ? mn(e, t) : t;
928
928
  }
929
- const Ee = (e) => e instanceof S ? { ...e } : e;
930
- function q(e, t) {
929
+ const Te = (e) => e instanceof E ? { ...e } : e;
930
+ function U(e, t) {
931
931
  t = t || {};
932
932
  const n = {};
933
933
  function r(l, a, d) {
@@ -986,7 +986,7 @@ function q(e, t) {
986
986
  socketPath: i,
987
987
  responseEncoding: i,
988
988
  validateStatus: u,
989
- headers: (l, a) => s(Ee(l), Ee(a), !0)
989
+ headers: (l, a) => s(Te(l), Te(a), !0)
990
990
  };
991
991
  return c.forEach(Object.keys(Object.assign({}, e, t)), function(a) {
992
992
  const d = f[a] || s, m = d(e[a], t[a], a);
@@ -994,23 +994,23 @@ function q(e, t) {
994
994
  }), n;
995
995
  }
996
996
  const We = (e) => {
997
- const t = q({}, e);
997
+ const t = U({}, e);
998
998
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: u } = t;
999
- t.headers = i = S.from(i), t.url = Me(ve(t.baseURL, t.url), e.params, e.paramsSerializer), u && i.set(
999
+ t.headers = i = E.from(i), t.url = Me(ve(t.baseURL, t.url), e.params, e.paramsSerializer), u && i.set(
1000
1000
  "Authorization",
1001
1001
  "Basic " + btoa((u.username || "") + ":" + (u.password ? unescape(encodeURIComponent(u.password)) : ""))
1002
1002
  );
1003
1003
  let f;
1004
1004
  if (c.isFormData(n)) {
1005
- if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
1005
+ if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
1006
1006
  i.setContentType(void 0);
1007
1007
  else if ((f = i.getContentType()) !== !1) {
1008
1008
  const [l, ...a] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1009
1009
  i.setContentType([l || "multipart/form-data", ...a].join("; "));
1010
1010
  }
1011
1011
  }
1012
- if (O.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && dn(t.url))) {
1013
- const l = s && o && pn.read(o);
1012
+ if (A.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && dn(t.url))) {
1013
+ const l = s && o && hn.read(o);
1014
1014
  l && i.set(s, l);
1015
1015
  }
1016
1016
  return t;
@@ -1018,7 +1018,7 @@ const We = (e) => {
1018
1018
  return new Promise(function(n, r) {
1019
1019
  const s = We(e);
1020
1020
  let o = s.data;
1021
- const i = S.from(s.headers).normalize();
1021
+ const i = E.from(s.headers).normalize();
1022
1022
  let { responseType: u } = s, f;
1023
1023
  function l() {
1024
1024
  s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
@@ -1028,9 +1028,9 @@ const We = (e) => {
1028
1028
  function d() {
1029
1029
  if (!a)
1030
1030
  return;
1031
- const g = S.from(
1031
+ const g = E.from(
1032
1032
  "getAllResponseHeaders" in a && a.getAllResponseHeaders()
1033
- ), h = {
1033
+ ), p = {
1034
1034
  data: !u || u === "text" || u === "json" ? a.responseText : a.response,
1035
1035
  status: a.status,
1036
1036
  statusText: a.statusText,
@@ -1038,11 +1038,11 @@ const We = (e) => {
1038
1038
  config: e,
1039
1039
  request: a
1040
1040
  };
1041
- Ke(function(E) {
1042
- n(E), l();
1043
- }, function(E) {
1044
- r(E), l();
1045
- }, h), a = null;
1041
+ Ke(function(T) {
1042
+ n(T), l();
1043
+ }, function(T) {
1044
+ r(T), l();
1045
+ }, p), a = null;
1046
1046
  }
1047
1047
  "onloadend" in a ? a.onloadend = d : a.onreadystatechange = function() {
1048
1048
  !a || a.readyState !== 4 || a.status === 0 && !(a.responseURL && a.responseURL.indexOf("file:") === 0) || setTimeout(d);
@@ -1051,21 +1051,21 @@ const We = (e) => {
1051
1051
  }, a.onerror = function() {
1052
1052
  r(new y("Network Error", y.ERR_NETWORK, s, a)), a = null;
1053
1053
  }, a.ontimeout = function() {
1054
- let p = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1055
- const h = s.transitional || ze;
1056
- s.timeoutErrorMessage && (p = s.timeoutErrorMessage), r(new y(
1057
- p,
1058
- h.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1054
+ let h = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1055
+ const p = s.transitional || ze;
1056
+ s.timeoutErrorMessage && (h = s.timeoutErrorMessage), r(new y(
1057
+ h,
1058
+ p.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1059
1059
  s,
1060
1060
  a
1061
1061
  )), a = null;
1062
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in a && c.forEach(i.toJSON(), function(p, h) {
1063
- a.setRequestHeader(h, p);
1062
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in a && c.forEach(i.toJSON(), function(h, p) {
1063
+ a.setRequestHeader(p, h);
1064
1064
  }), c.isUndefined(s.withCredentials) || (a.withCredentials = !!s.withCredentials), u && u !== "json" && (a.responseType = s.responseType), typeof s.onDownloadProgress == "function" && a.addEventListener("progress", V(s.onDownloadProgress, !0)), typeof s.onUploadProgress == "function" && a.upload && a.upload.addEventListener("progress", V(s.onUploadProgress)), (s.cancelToken || s.signal) && (f = (g) => {
1065
1065
  a && (r(!g || g.type ? new L(null, e, a) : g), a.abort(), a = null);
1066
1066
  }, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
1067
1067
  const m = un(s.url);
1068
- if (m && O.protocols.indexOf(m) === -1) {
1068
+ if (m && A.protocols.indexOf(m) === -1) {
1069
1069
  r(new y("Unsupported protocol " + m + ":", y.ERR_BAD_REQUEST, e));
1070
1070
  return;
1071
1071
  }
@@ -1102,11 +1102,11 @@ const We = (e) => {
1102
1102
  let r = 0, s;
1103
1103
  for (; r < n; )
1104
1104
  s = r + t, yield e.slice(r, s), r = s;
1105
- }, Tn = async function* (e, t, n) {
1105
+ }, Sn = async function* (e, t, n) {
1106
1106
  for await (const r of e)
1107
1107
  yield* bn(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
1108
- }, Se = (e, t, n, r, s) => {
1109
- const o = Tn(e, t, s);
1108
+ }, Ee = (e, t, n, r, s) => {
1109
+ const o = Sn(e, t, s);
1110
1110
  let i = 0;
1111
1111
  return new ReadableStream({
1112
1112
  type: "bytes",
@@ -1132,9 +1132,9 @@ const We = (e) => {
1132
1132
  total: e,
1133
1133
  loaded: r
1134
1134
  }));
1135
- }, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Qe = X && typeof ReadableStream == "function", oe = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), En = Qe && (() => {
1135
+ }, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Qe = X && typeof ReadableStream == "function", oe = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Tn = Qe && (() => {
1136
1136
  let e = !1;
1137
- const t = new Request(O.origin, {
1137
+ const t = new Request(A.origin, {
1138
1138
  body: new ReadableStream(),
1139
1139
  method: "POST",
1140
1140
  get duplex() {
@@ -1157,7 +1157,7 @@ X && ((e) => {
1157
1157
  });
1158
1158
  });
1159
1159
  })(new Response());
1160
- const Sn = async (e) => {
1160
+ const En = async (e) => {
1161
1161
  if (e == null)
1162
1162
  return 0;
1163
1163
  if (c.isBlob(e))
@@ -1170,7 +1170,7 @@ const Sn = async (e) => {
1170
1170
  return (await oe(e)).byteLength;
1171
1171
  }, Rn = async (e, t) => {
1172
1172
  const n = c.toFiniteNumber(e.getContentLength());
1173
- return n ?? Sn(t);
1173
+ return n ?? En(t);
1174
1174
  }, On = X && (async (e) => {
1175
1175
  let {
1176
1176
  url: t,
@@ -1187,21 +1187,21 @@ const Sn = async (e) => {
1187
1187
  fetchOptions: m
1188
1188
  } = We(e);
1189
1189
  l = l ? (l + "").toLowerCase() : "text";
1190
- let [g, p] = s || o || i ? wn([s, o], i) : [], h, w;
1191
- const E = () => {
1192
- !h && setTimeout(() => {
1190
+ let [g, h] = s || o || i ? wn([s, o], i) : [], p, w;
1191
+ const T = () => {
1192
+ !p && setTimeout(() => {
1193
1193
  g && g.unsubscribe();
1194
- }), h = !0;
1194
+ }), p = !0;
1195
1195
  };
1196
1196
  let N;
1197
1197
  try {
1198
- if (f && En && n !== "get" && n !== "head" && (N = await Rn(a, r)) !== 0) {
1198
+ if (f && Tn && n !== "get" && n !== "head" && (N = await Rn(a, r)) !== 0) {
1199
1199
  let C = new Request(t, {
1200
1200
  method: "POST",
1201
1201
  body: r,
1202
1202
  duplex: "half"
1203
- }), F;
1204
- c.isFormData(r) && (F = C.headers.get("content-type")) && a.setContentType(F), C.body && (r = Se(C.body, Oe, Re(
1203
+ }), q;
1204
+ c.isFormData(r) && (q = C.headers.get("content-type")) && a.setContentType(q), C.body && (r = Ee(C.body, Oe, Re(
1205
1205
  N,
1206
1206
  V(f)
1207
1207
  ), null, oe));
@@ -1219,24 +1219,24 @@ const Sn = async (e) => {
1219
1219
  const _ = ie && (l === "stream" || l === "response");
1220
1220
  if (ie && (u || _)) {
1221
1221
  const C = {};
1222
- ["status", "statusText", "headers"].forEach((he) => {
1223
- C[he] = b[he];
1222
+ ["status", "statusText", "headers"].forEach((pe) => {
1223
+ C[pe] = b[pe];
1224
1224
  });
1225
- const F = c.toFiniteNumber(b.headers.get("content-length"));
1225
+ const q = c.toFiniteNumber(b.headers.get("content-length"));
1226
1226
  b = new Response(
1227
- Se(b.body, Oe, u && Re(
1228
- F,
1227
+ Ee(b.body, Oe, u && Re(
1228
+ q,
1229
1229
  V(u, !0)
1230
- ), _ && E, oe),
1230
+ ), _ && T, oe),
1231
1231
  C
1232
1232
  );
1233
1233
  }
1234
1234
  l = l || "text";
1235
1235
  let tt = await G[c.findKey(G, l) || "text"](b, e);
1236
- return !_ && E(), p && p(), await new Promise((C, F) => {
1237
- Ke(C, F, {
1236
+ return !_ && T(), h && h(), await new Promise((C, q) => {
1237
+ Ke(C, q, {
1238
1238
  data: tt,
1239
- headers: S.from(b.headers),
1239
+ headers: E.from(b.headers),
1240
1240
  status: b.status,
1241
1241
  statusText: b.statusText,
1242
1242
  config: e,
@@ -1244,7 +1244,7 @@ const Sn = async (e) => {
1244
1244
  });
1245
1245
  });
1246
1246
  } catch (b) {
1247
- throw E(), b && b.name === "TypeError" && /fetch/i.test(b.message) ? Object.assign(
1247
+ throw T(), b && b.name === "TypeError" && /fetch/i.test(b.message) ? Object.assign(
1248
1248
  new y("Network Error", y.ERR_NETWORK, e, w),
1249
1249
  {
1250
1250
  cause: b.cause || b
@@ -1301,7 +1301,7 @@ function te(e) {
1301
1301
  throw new L(null, e);
1302
1302
  }
1303
1303
  function Pe(e) {
1304
- return te(e), e.headers = S.from(e.headers), e.data = ee.call(
1304
+ return te(e), e.headers = E.from(e.headers), e.data = ee.call(
1305
1305
  e,
1306
1306
  e.transformRequest
1307
1307
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Xe.getAdapter(e.adapter || j.adapter)(e).then(function(r) {
@@ -1309,23 +1309,23 @@ function Pe(e) {
1309
1309
  e,
1310
1310
  e.transformResponse,
1311
1311
  r
1312
- ), r.headers = S.from(r.headers), r;
1312
+ ), r.headers = E.from(r.headers), r;
1313
1313
  }, function(r) {
1314
1314
  return Ge(r) || (te(e), r && r.response && (r.response.data = ee.call(
1315
1315
  e,
1316
1316
  e.transformResponse,
1317
1317
  r.response
1318
- ), r.response.headers = S.from(r.response.headers))), Promise.reject(r);
1318
+ ), r.response.headers = E.from(r.response.headers))), Promise.reject(r);
1319
1319
  });
1320
1320
  }
1321
- const Ze = "1.7.2", pe = {};
1321
+ const Ze = "1.7.2", he = {};
1322
1322
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1323
- pe[e] = function(r) {
1323
+ he[e] = function(r) {
1324
1324
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1325
1325
  };
1326
1326
  });
1327
1327
  const Ne = {};
1328
- pe.transitional = function(t, n, r) {
1328
+ he.transitional = function(t, n, r) {
1329
1329
  function s(o, i) {
1330
1330
  return "[Axios v" + Ze + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1331
1331
  }
@@ -1362,7 +1362,7 @@ function Pn(e, t, n) {
1362
1362
  }
1363
1363
  const ce = {
1364
1364
  assertOptions: Pn,
1365
- validators: pe
1365
+ validators: he
1366
1366
  }, k = ce.validators;
1367
1367
  let B = class {
1368
1368
  constructor(t) {
@@ -1397,7 +1397,7 @@ let B = class {
1397
1397
  }
1398
1398
  }
1399
1399
  _request(t, n) {
1400
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = q(this.defaults, n);
1400
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = U(this.defaults, n);
1401
1401
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1402
1402
  r !== void 0 && ce.assertOptions(r, {
1403
1403
  silentJSONParsing: k.transitional(k.boolean),
@@ -1415,55 +1415,55 @@ let B = class {
1415
1415
  );
1416
1416
  o && c.forEach(
1417
1417
  ["delete", "get", "head", "post", "put", "patch", "common"],
1418
- (p) => {
1419
- delete o[p];
1418
+ (h) => {
1419
+ delete o[h];
1420
1420
  }
1421
- ), n.headers = S.concat(i, o);
1421
+ ), n.headers = E.concat(i, o);
1422
1422
  const u = [];
1423
1423
  let f = !0;
1424
- this.interceptors.request.forEach(function(h) {
1425
- typeof h.runWhen == "function" && h.runWhen(n) === !1 || (f = f && h.synchronous, u.unshift(h.fulfilled, h.rejected));
1424
+ this.interceptors.request.forEach(function(p) {
1425
+ typeof p.runWhen == "function" && p.runWhen(n) === !1 || (f = f && p.synchronous, u.unshift(p.fulfilled, p.rejected));
1426
1426
  });
1427
1427
  const l = [];
1428
- this.interceptors.response.forEach(function(h) {
1429
- l.push(h.fulfilled, h.rejected);
1428
+ this.interceptors.response.forEach(function(p) {
1429
+ l.push(p.fulfilled, p.rejected);
1430
1430
  });
1431
1431
  let a, d = 0, m;
1432
1432
  if (!f) {
1433
- const p = [Pe.bind(this), void 0];
1434
- for (p.unshift.apply(p, u), p.push.apply(p, l), m = p.length, a = Promise.resolve(n); d < m; )
1435
- a = a.then(p[d++], p[d++]);
1433
+ const h = [Pe.bind(this), void 0];
1434
+ for (h.unshift.apply(h, u), h.push.apply(h, l), m = h.length, a = Promise.resolve(n); d < m; )
1435
+ a = a.then(h[d++], h[d++]);
1436
1436
  return a;
1437
1437
  }
1438
1438
  m = u.length;
1439
1439
  let g = n;
1440
1440
  for (d = 0; d < m; ) {
1441
- const p = u[d++], h = u[d++];
1441
+ const h = u[d++], p = u[d++];
1442
1442
  try {
1443
- g = p(g);
1443
+ g = h(g);
1444
1444
  } catch (w) {
1445
- h.call(this, w);
1445
+ p.call(this, w);
1446
1446
  break;
1447
1447
  }
1448
1448
  }
1449
1449
  try {
1450
1450
  a = Pe.call(this, g);
1451
- } catch (p) {
1452
- return Promise.reject(p);
1451
+ } catch (h) {
1452
+ return Promise.reject(h);
1453
1453
  }
1454
1454
  for (d = 0, m = l.length; d < m; )
1455
1455
  a = a.then(l[d++], l[d++]);
1456
1456
  return a;
1457
1457
  }
1458
1458
  getUri(t) {
1459
- t = q(this.defaults, t);
1459
+ t = U(this.defaults, t);
1460
1460
  const n = ve(t.baseURL, t.url);
1461
1461
  return Me(n, t.params, t.paramsSerializer);
1462
1462
  }
1463
1463
  };
1464
1464
  c.forEach(["delete", "get", "head", "options"], function(t) {
1465
1465
  B.prototype[t] = function(n, r) {
1466
- return this.request(q(r || {}, {
1466
+ return this.request(U(r || {}, {
1467
1467
  method: t,
1468
1468
  url: n,
1469
1469
  data: (r || {}).data
@@ -1473,7 +1473,7 @@ c.forEach(["delete", "get", "head", "options"], function(t) {
1473
1473
  c.forEach(["post", "put", "patch"], function(t) {
1474
1474
  function n(r) {
1475
1475
  return function(o, i, u) {
1476
- return this.request(q(u || {}, {
1476
+ return this.request(U(u || {}, {
1477
1477
  method: t,
1478
1478
  headers: r ? {
1479
1479
  "Content-Type": "multipart/form-data"
@@ -1632,29 +1632,29 @@ Object.entries(ue).forEach(([e, t]) => {
1632
1632
  function et(e) {
1633
1633
  const t = new B(e), n = Be(B.prototype.request, t);
1634
1634
  return c.extend(n, B.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1635
- return et(q(e, s));
1635
+ return et(U(e, s));
1636
1636
  }, n;
1637
1637
  }
1638
- const T = et(j);
1639
- T.Axios = B;
1640
- T.CanceledError = L;
1641
- T.CancelToken = Nn;
1642
- T.isCancel = Ge;
1643
- T.VERSION = Ze;
1644
- T.toFormData = Q;
1645
- T.AxiosError = y;
1646
- T.Cancel = T.CanceledError;
1647
- T.all = function(t) {
1638
+ const S = et(j);
1639
+ S.Axios = B;
1640
+ S.CanceledError = L;
1641
+ S.CancelToken = Nn;
1642
+ S.isCancel = Ge;
1643
+ S.VERSION = Ze;
1644
+ S.toFormData = Q;
1645
+ S.AxiosError = y;
1646
+ S.Cancel = S.CanceledError;
1647
+ S.all = function(t) {
1648
1648
  return Promise.all(t);
1649
1649
  };
1650
- T.spread = Cn;
1651
- T.isAxiosError = kn;
1652
- T.mergeConfig = q;
1653
- T.AxiosHeaders = S;
1654
- T.formToJSON = (e) => Ve(c.isHTMLForm(e) ? new FormData(e) : e);
1655
- T.getAdapter = Xe.getAdapter;
1656
- T.HttpStatusCode = ue;
1657
- T.default = T;
1650
+ S.spread = Cn;
1651
+ S.isAxiosError = kn;
1652
+ S.mergeConfig = U;
1653
+ S.AxiosHeaders = E;
1654
+ S.formToJSON = (e) => Ve(c.isHTMLForm(e) ? new FormData(e) : e);
1655
+ S.getAdapter = Xe.getAdapter;
1656
+ S.HttpStatusCode = ue;
1657
+ S.default = S;
1658
1658
  const {
1659
1659
  Axios: Qn,
1660
1660
  AxiosError: xn,
@@ -1672,7 +1672,7 @@ const {
1672
1672
  formToJSON: ar,
1673
1673
  getAdapter: cr,
1674
1674
  mergeConfig: ur
1675
- } = T, H = () => new xn(
1675
+ } = S, H = () => new xn(
1676
1676
  "Unauthorized",
1677
1677
  "ERR_UNAUTHORIZED",
1678
1678
  { headers: new Ce() },
@@ -1692,7 +1692,8 @@ const {
1692
1692
  localStorage.removeItem("accessToken"), localStorage.removeItem("refreshToken");
1693
1693
  }, u = (a, d = null) => {
1694
1694
  n.forEach((m) => {
1695
- a ? m.reject(a) : (m.requestConfig.headers || (m.requestConfig.headers = {}), m.requestConfig.headers.Authorization = `Bearer ${d}`, m.resolve(m.requestConfig));
1695
+ var g;
1696
+ a ? m.reject(a) : ((g = m.requestConfig).headers ?? (g.headers = {}), m.requestConfig.headers.Authorization = `Bearer ${d}`, m.resolve(m.requestConfig));
1696
1697
  }), n.length = 0;
1697
1698
  };
1698
1699
  return {
@@ -1700,23 +1701,23 @@ const {
1700
1701
  setTokens: o,
1701
1702
  clearTokens: i,
1702
1703
  handleTokenRefresh: async (a) => {
1703
- var p;
1704
- if ((p = a.url) == null ? void 0 : p.includes(
1704
+ var h;
1705
+ if ((h = a.url) == null ? void 0 : h.includes(
1705
1706
  e.refreshTokenEndpointPath
1706
1707
  )) {
1707
1708
  i();
1708
- const h = H();
1709
- throw u(h), h;
1709
+ const p = H();
1710
+ throw u(p), p;
1710
1711
  }
1711
1712
  if (!r()) {
1712
1713
  i();
1713
- const h = H();
1714
- throw u(h), h;
1714
+ const p = H();
1715
+ throw u(p), p;
1715
1716
  }
1716
1717
  if (t)
1717
- return new Promise((h, w) => {
1718
+ return new Promise((p, w) => {
1718
1719
  n.push({
1719
- resolve: h,
1720
+ resolve: p,
1720
1721
  reject: w,
1721
1722
  requestConfig: a
1722
1723
  });
@@ -1724,13 +1725,13 @@ const {
1724
1725
  const g = s();
1725
1726
  if (!g) {
1726
1727
  i();
1727
- const h = H();
1728
- throw u(h), h;
1728
+ const p = H();
1729
+ throw u(p), p;
1729
1730
  }
1730
1731
  t = !0;
1731
1732
  try {
1732
- const h = await e.onRefreshToken(g);
1733
- return o(h), a.headers || (a.headers = {}), a.headers.Authorization = `Bearer ${h.accessToken}`, u(null, h.accessToken), t = !1, a;
1733
+ const p = await e.onRefreshToken(g);
1734
+ return o(p), a.headers ?? (a.headers = {}), a.headers.Authorization = `Bearer ${p.accessToken}`, u(null, p.accessToken), t = !1, a;
1734
1735
  } catch {
1735
1736
  i();
1736
1737
  const w = H();
@@ -1742,9 +1743,9 @@ const {
1742
1743
  return ((d = a == null ? void 0 : a.response) == null ? void 0 : d.status) === 401;
1743
1744
  }
1744
1745
  };
1745
- }, P = (e) => {
1746
- const t = T.create(), n = e.apiVersion, r = e.productCode, s = e.baseUrl, o = s ? s.replace(/\/$/, "") : "", i = e.refreshTokenApiVersion || n, u = e.refreshTokenEndpointPath || "/refresh-token", f = `${o}/auth/${i}${u}`, l = Bn({
1747
- baseUrl: s || "",
1746
+ }, O = (e) => {
1747
+ const t = S.create(), n = e.apiVersion, r = e.productCode, s = e.baseUrl, o = s ? s.replace(/\/$/, "") : "", i = e.refreshTokenApiVersion ?? n, u = e.refreshTokenEndpointPath ?? "/refresh-token", f = `${o}/auth/${i}${u}`, l = Bn({
1748
+ baseUrl: s ?? "",
1748
1749
  apiVersion: n,
1749
1750
  refreshTokenEndpointPath: u,
1750
1751
  onRefreshToken: async (d) => (await t.post(f, {
@@ -1770,31 +1771,32 @@ const {
1770
1771
  e.responseInterceptor.onReject
1771
1772
  ), {
1772
1773
  request: async (d, m) => {
1773
- const g = d.startsWith("/") ? d.substring(1) : d, p = `${o}/${r}/${n}/${g}`, h = {
1774
- "Content-Type": (m == null ? void 0 : m.contentType) || "application/json",
1774
+ const g = d.startsWith("/") ? d.substring(1) : d, h = `${o}/${r}/${n}/${g}`, p = {
1775
+ "Content-Type": (m == null ? void 0 : m.contentType) ?? "application/json",
1775
1776
  apiVersion: n,
1776
1777
  Authorization: "",
1777
- ...e.headers ?? {}
1778
+ ...e.headers ?? {},
1779
+ ...(m == null ? void 0 : m.headers) ?? {}
1778
1780
  }, w = l.getAccessToken();
1779
- w && (h.Authorization = `Bearer ${w}`);
1780
- const E = {
1781
- method: (m == null ? void 0 : m.method) || "GET",
1782
- headers: h,
1783
- url: p,
1781
+ w && (p.Authorization = `Bearer ${w}`);
1782
+ const T = {
1783
+ method: (m == null ? void 0 : m.method) ?? "GET",
1784
+ headers: p,
1785
+ url: h,
1784
1786
  data: m == null ? void 0 : m.data,
1785
1787
  responseType: m == null ? void 0 : m.responseType
1786
1788
  };
1787
- return await t.request(E);
1789
+ return await t.request(T);
1788
1790
  },
1789
1791
  getAccessToken: l.getAccessToken,
1790
1792
  setTokens: l.setTokens,
1791
1793
  clearTokens: l.clearTokens
1792
1794
  };
1793
- }, qn = "cep";
1794
- function Fn(e) {
1795
- const t = P(e);
1795
+ }, Un = "cep";
1796
+ function qn(e) {
1797
+ const t = O(e);
1796
1798
  function n(r) {
1797
- return t.request(`/${qn}`, {
1799
+ return t.request(`/${Un}`, {
1798
1800
  method: "POST",
1799
1801
  data: JSON.stringify(r)
1800
1802
  });
@@ -1803,8 +1805,8 @@ function Fn(e) {
1803
1805
  getAddress: n
1804
1806
  };
1805
1807
  }
1806
- const ke = "auth", Un = (e) => {
1807
- const t = P(e);
1808
+ const ke = "auth", Fn = (e) => {
1809
+ const t = O(e);
1808
1810
  return {
1809
1811
  postLogin: async (s) => {
1810
1812
  var i;
@@ -1820,7 +1822,7 @@ const ke = "auth", Un = (e) => {
1820
1822
  })
1821
1823
  };
1822
1824
  }, Ln = (e) => {
1823
- const t = P(e);
1825
+ const t = O(e);
1824
1826
  return {
1825
1827
  signUp: async (u) => await t.request("/sign-up", {
1826
1828
  method: "POST",
@@ -1848,7 +1850,7 @@ const ke = "auth", Un = (e) => {
1848
1850
  })
1849
1851
  };
1850
1852
  }, xe = "digital", _n = (e) => {
1851
- const t = P(e);
1853
+ const t = O(e);
1852
1854
  return {
1853
1855
  getBroker: () => t.request(`/${xe}/getBroker`, {
1854
1856
  method: "GET",
@@ -1863,7 +1865,7 @@ const ke = "auth", Un = (e) => {
1863
1865
  )
1864
1866
  };
1865
1867
  }, Dn = "data", $n = (e) => {
1866
- const t = P(e);
1868
+ const t = O(e);
1867
1869
  return {
1868
1870
  postData: async (r) => await t.request(`/${Dn}`, {
1869
1871
  method: "POST",
@@ -1871,7 +1873,7 @@ const ke = "auth", Un = (e) => {
1871
1873
  })
1872
1874
  };
1873
1875
  }, In = "endorsement", jn = (e) => {
1874
- const t = P(e);
1876
+ const t = O(e);
1875
1877
  return {
1876
1878
  putEndorsement: (r, s) => {
1877
1879
  const o = new FormData();
@@ -1885,7 +1887,7 @@ const ke = "auth", Un = (e) => {
1885
1887
  }
1886
1888
  };
1887
1889
  }, ne = "payment", Hn = (e) => {
1888
- const t = P(e);
1890
+ const t = O(e);
1889
1891
  return {
1890
1892
  postPayment: (o) => t.request(`/${ne}`, {
1891
1893
  method: "POST",
@@ -1907,12 +1909,21 @@ const ke = "auth", Un = (e) => {
1907
1909
  )
1908
1910
  };
1909
1911
  }, J = "product/action", Jn = (e) => {
1910
- const t = P(e);
1912
+ const t = O(e);
1911
1913
  return {
1912
- getCnpjStatus: (i) => t.request(`/${J}/Custom/CnpjCheck?cnpj=${i}`, {
1913
- method: "GET",
1914
- data: ""
1915
- }),
1914
+ getCnpjStatus: (i, u, f) => {
1915
+ const a = new URLSearchParams({
1916
+ ...i && { cnpj: i },
1917
+ ...u && { brokerageIdentity: u },
1918
+ ...f !== void 0 && {
1919
+ isBrokerageDefinedAtStart: String(f)
1920
+ }
1921
+ }).toString(), d = `/${J}/Custom/CnpjCheck?${a}`;
1922
+ return t.request(d, {
1923
+ method: "GET",
1924
+ data: ""
1925
+ });
1926
+ },
1916
1927
  getKeyNumber: () => t.request(`/${J}/Custom/GetKeyNumber`, {
1917
1928
  method: "GET",
1918
1929
  data: ""
@@ -1933,7 +1944,7 @@ const ke = "auth", Un = (e) => {
1933
1944
  )
1934
1945
  };
1935
1946
  }, x = "quotation", Mn = (e) => {
1936
- const t = P(e);
1947
+ const t = O(e);
1937
1948
  return {
1938
1949
  getQuotations: (a) => {
1939
1950
  const d = new URLSearchParams({ ...a });
@@ -1987,12 +1998,12 @@ const ke = "auth", Un = (e) => {
1987
1998
  )
1988
1999
  };
1989
2000
  }, zn = "report", Vn = (e) => {
1990
- const t = P(e);
2001
+ const t = O(e);
1991
2002
  return {
1992
2003
  getReportStream: (r) => {
1993
2004
  const s = new URLSearchParams({
1994
2005
  policyId: r.policyId,
1995
- documentType: r.documentType || "certificate",
2006
+ documentType: r.documentType ?? "certificate",
1996
2007
  ...r.additionalParams
1997
2008
  });
1998
2009
  return t.request(
@@ -2006,7 +2017,7 @@ const ke = "auth", Un = (e) => {
2006
2017
  }
2007
2018
  };
2008
2019
  }, Gn = "SubscriberData", Kn = (e) => {
2009
- const t = P(e);
2020
+ const t = O(e);
2010
2021
  return {
2011
2022
  getSubscriber: (r) => t.request(
2012
2023
  `/${Gn}/get-subscriber-data?cnpj=${r}`,
@@ -2018,7 +2029,7 @@ const ke = "auth", Un = (e) => {
2018
2029
  };
2019
2030
  };
2020
2031
  function lr(e) {
2021
- const t = Un(e), n = Ln(e), r = $n(e), s = Mn(e), o = Hn(e), i = Fn(e), u = _n(e), f = jn(e), l = Jn(e), a = Vn(e), d = Kn(e);
2032
+ const t = Fn(e), n = Ln(e), r = $n(e), s = Mn(e), o = Hn(e), i = qn(e), u = _n(e), f = jn(e), l = Jn(e), a = Vn(e), d = Kn(e), m = O(e);
2022
2033
  return {
2023
2034
  auth: t,
2024
2035
  authAkad: n,
@@ -2030,7 +2041,8 @@ function lr(e) {
2030
2041
  endorsement: f,
2031
2042
  plugin: l,
2032
2043
  report: a,
2033
- subscriber: d
2044
+ subscriber: d,
2045
+ base: m
2034
2046
  };
2035
2047
  }
2036
2048
  export {