@neuctra/authix 1.1.30 → 1.1.31

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.
@@ -7,16 +7,16 @@ function Ut(t, e) {
7
7
  const { toString: fr } = Object.prototype, { getPrototypeOf: st } = Object, { iterator: Fe, toStringTag: Dt } = Symbol, Me = /* @__PURE__ */ ((t) => (e) => {
8
8
  const r = fr.call(e);
9
9
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Me(e) === t), We = (t) => (e) => typeof e === t, { isArray: we } = Array, ye = We("undefined");
10
+ })(/* @__PURE__ */ Object.create(null)), oe = (t) => (t = t.toLowerCase(), (e) => Me(e) === t), qe = (t) => (e) => typeof e === t, { isArray: we } = Array, ye = qe("undefined");
11
11
  function Ce(t) {
12
12
  return t !== null && !ye(t) && t.constructor !== null && !ye(t.constructor) && re(t.constructor.isBuffer) && t.constructor.isBuffer(t);
13
13
  }
14
- const Lt = ae("ArrayBuffer");
14
+ const Lt = oe("ArrayBuffer");
15
15
  function xr(t) {
16
16
  let e;
17
17
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Lt(t.buffer), e;
18
18
  }
19
- const hr = We("string"), re = We("function"), Ft = We("number"), Te = (t) => t !== null && typeof t == "object", gr = (t) => t === !0 || t === !1, Ae = (t) => {
19
+ const hr = qe("string"), re = qe("function"), Ft = qe("number"), Te = (t) => t !== null && typeof t == "object", gr = (t) => t === !0 || t === !1, Ae = (t) => {
20
20
  if (Me(t) !== "object")
21
21
  return !1;
22
22
  const e = st(t);
@@ -29,24 +29,24 @@ const hr = We("string"), re = We("function"), Ft = We("number"), Te = (t) => t !
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, yr = ae("Date"), br = ae("File"), wr = ae("Blob"), jr = ae("FileList"), vr = (t) => Te(t) && re(t.pipe), Sr = (t) => {
32
+ }, yr = oe("Date"), br = oe("File"), wr = oe("Blob"), jr = oe("FileList"), vr = (t) => Te(t) && re(t.pipe), Sr = (t) => {
33
33
  let e;
34
34
  return t && (typeof FormData == "function" && t instanceof FormData || re(t.append) && ((e = Me(t)) === "formdata" || // detect form-data instance
35
35
  e === "object" && re(t.toString) && t.toString() === "[object FormData]"));
36
- }, kr = ae("URLSearchParams"), [Er, Cr, Tr, Rr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Ir = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
36
+ }, kr = oe("URLSearchParams"), [Er, Cr, Tr, Rr] = ["ReadableStream", "Request", "Response", "Headers"].map(oe), Ir = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
37
  function Re(t, e, { allOwnKeys: r = !1 } = {}) {
38
38
  if (t === null || typeof t > "u")
39
39
  return;
40
- let s, o;
40
+ let s, a;
41
41
  if (typeof t != "object" && (t = [t]), we(t))
42
- for (s = 0, o = t.length; s < o; s++)
42
+ for (s = 0, a = t.length; s < a; s++)
43
43
  e.call(null, t[s], s, t);
44
44
  else {
45
45
  if (Ce(t))
46
46
  return;
47
- const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), a = i.length;
47
+ const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), o = i.length;
48
48
  let l;
49
- for (s = 0; s < a; s++)
49
+ for (s = 0; s < o; s++)
50
50
  l = i[s], e.call(null, t[l], l, t);
51
51
  }
52
52
  }
@@ -55,35 +55,35 @@ function Mt(t, e) {
55
55
  return null;
56
56
  e = e.toLowerCase();
57
57
  const r = Object.keys(t);
58
- let s = r.length, o;
58
+ let s = r.length, a;
59
59
  for (; s-- > 0; )
60
- if (o = r[s], e === o.toLowerCase())
61
- return o;
60
+ if (a = r[s], e === a.toLowerCase())
61
+ return a;
62
62
  return null;
63
63
  }
64
- const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Wt = (t) => !ye(t) && t !== fe;
64
+ const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, qt = (t) => !ye(t) && t !== fe;
65
65
  function Ze() {
66
- const { caseless: t, skipUndefined: e } = Wt(this) && this || {}, r = {}, s = (o, i) => {
67
- const a = t && Mt(r, i) || i;
68
- Ae(r[a]) && Ae(o) ? r[a] = Ze(r[a], o) : Ae(o) ? r[a] = Ze({}, o) : we(o) ? r[a] = o.slice() : (!e || !ye(o)) && (r[a] = o);
66
+ const { caseless: t, skipUndefined: e } = qt(this) && this || {}, r = {}, s = (a, i) => {
67
+ const o = t && Mt(r, i) || i;
68
+ Ae(r[o]) && Ae(a) ? r[o] = Ze(r[o], a) : Ae(a) ? r[o] = Ze({}, a) : we(a) ? r[o] = a.slice() : (!e || !ye(a)) && (r[o] = a);
69
69
  };
70
- for (let o = 0, i = arguments.length; o < i; o++)
71
- arguments[o] && Re(arguments[o], s);
70
+ for (let a = 0, i = arguments.length; a < i; a++)
71
+ arguments[a] && Re(arguments[a], s);
72
72
  return r;
73
73
  }
74
- const Pr = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (o, i) => {
75
- r && re(o) ? t[i] = Ut(o, r) : t[i] = o;
74
+ const Pr = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (a, i) => {
75
+ r && re(a) ? t[i] = Ut(a, r) : t[i] = a;
76
76
  }, { allOwnKeys: s }), t), Or = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), zr = (t, e, r, s) => {
77
77
  t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
78
78
  value: e.prototype
79
79
  }), r && Object.assign(t.prototype, r);
80
80
  }, Ar = (t, e, r, s) => {
81
- let o, i, a;
81
+ let a, i, o;
82
82
  const l = {};
83
83
  if (e = e || {}, t == null) return e;
84
84
  do {
85
- for (o = Object.getOwnPropertyNames(t), i = o.length; i-- > 0; )
86
- a = o[i], (!s || s(a, t, e)) && !l[a] && (e[a] = t[a], l[a] = !0);
85
+ for (a = Object.getOwnPropertyNames(t), i = a.length; i-- > 0; )
86
+ o = a[i], (!s || s(o, t, e)) && !l[o] && (e[o] = t[o], l[o] = !0);
87
87
  t = r !== !1 && st(t);
88
88
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
89
89
  return e;
@@ -102,9 +102,9 @@ const Pr = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (o, i) => {
102
102
  return r;
103
103
  }, Nr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && st(Uint8Array)), Ur = (t, e) => {
104
104
  const s = (t && t[Fe]).call(t);
105
- let o;
106
- for (; (o = s.next()) && !o.done; ) {
107
- const i = o.value;
105
+ let a;
106
+ for (; (a = s.next()) && !a.done; ) {
107
+ const i = a.value;
108
108
  e.call(t, i[0], i[1]);
109
109
  }
110
110
  }, Dr = (t, e) => {
@@ -113,19 +113,19 @@ const Pr = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (o, i) => {
113
113
  for (; (r = t.exec(e)) !== null; )
114
114
  s.push(r);
115
115
  return s;
116
- }, Lr = ae("HTMLFormElement"), Fr = (t) => t.toLowerCase().replace(
116
+ }, Lr = oe("HTMLFormElement"), Fr = (t) => t.toLowerCase().replace(
117
117
  /[-_\s]([a-z\d])(\w*)/g,
118
- function(r, s, o) {
119
- return s.toUpperCase() + o;
118
+ function(r, s, a) {
119
+ return s.toUpperCase() + a;
120
120
  }
121
- ), ht = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Mr = ae("RegExp"), qt = (t, e) => {
121
+ ), ht = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Mr = oe("RegExp"), Wt = (t, e) => {
122
122
  const r = Object.getOwnPropertyDescriptors(t), s = {};
123
- Re(r, (o, i) => {
124
- let a;
125
- (a = e(o, i, t)) !== !1 && (s[i] = a || o);
123
+ Re(r, (a, i) => {
124
+ let o;
125
+ (o = e(a, i, t)) !== !1 && (s[i] = o || a);
126
126
  }), Object.defineProperties(t, s);
127
- }, Wr = (t) => {
128
- qt(t, (e, r) => {
127
+ }, qr = (t) => {
128
+ Wt(t, (e, r) => {
129
129
  if (re(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
130
130
  return !1;
131
131
  const s = t[r];
@@ -139,9 +139,9 @@ const Pr = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (o, i) => {
139
139
  });
140
140
  }
141
141
  });
142
- }, qr = (t, e) => {
143
- const r = {}, s = (o) => {
144
- o.forEach((i) => {
142
+ }, Wr = (t, e) => {
143
+ const r = {}, s = (a) => {
144
+ a.forEach((i) => {
145
145
  r[i] = !0;
146
146
  });
147
147
  };
@@ -152,28 +152,28 @@ function Vr(t) {
152
152
  return !!(t && re(t.append) && t[Dt] === "FormData" && t[Fe]);
153
153
  }
154
154
  const Yr = (t) => {
155
- const e = new Array(10), r = (s, o) => {
155
+ const e = new Array(10), r = (s, a) => {
156
156
  if (Te(s)) {
157
157
  if (e.indexOf(s) >= 0)
158
158
  return;
159
159
  if (Ce(s))
160
160
  return s;
161
161
  if (!("toJSON" in s)) {
162
- e[o] = s;
162
+ e[a] = s;
163
163
  const i = we(s) ? [] : {};
164
- return Re(s, (a, l) => {
165
- const h = r(a, o + 1);
164
+ return Re(s, (o, l) => {
165
+ const h = r(o, a + 1);
166
166
  !ye(h) && (i[l] = h);
167
- }), e[o] = void 0, i;
167
+ }), e[a] = void 0, i;
168
168
  }
169
169
  }
170
170
  return s;
171
171
  };
172
172
  return r(t, 0);
173
- }, Kr = ae("AsyncFunction"), Jr = (t) => t && (Te(t) || re(t)) && re(t.then) && re(t.catch), Bt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: o, data: i }) => {
174
- o === fe && i === r && s.length && s.shift()();
175
- }, !1), (o) => {
176
- s.push(o), fe.postMessage(r, "*");
173
+ }, Kr = oe("AsyncFunction"), Jr = (t) => t && (Te(t) || re(t)) && re(t.then) && re(t.catch), Bt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: a, data: i }) => {
174
+ a === fe && i === r && s.length && s.shift()();
175
+ }, !1), (a) => {
176
+ s.push(a), fe.postMessage(r, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
178
178
  typeof setImmediate == "function",
179
179
  re(fe.postMessage)
@@ -211,7 +211,7 @@ const Yr = (t) => {
211
211
  inherits: zr,
212
212
  toFlatObject: Ar,
213
213
  kindOf: Me,
214
- kindOfTest: ae,
214
+ kindOfTest: oe,
215
215
  endsWith: _r,
216
216
  toArray: $r,
217
217
  forEachEntry: Ur,
@@ -220,15 +220,15 @@ const Yr = (t) => {
220
220
  hasOwnProperty: ht,
221
221
  hasOwnProp: ht,
222
222
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: qt,
224
- freezeMethods: Wr,
225
- toObjectSet: qr,
223
+ reduceDescriptors: Wt,
224
+ freezeMethods: qr,
225
+ toObjectSet: Wr,
226
226
  toCamelCase: Fr,
227
227
  noop: Br,
228
228
  toFiniteNumber: Hr,
229
229
  findKey: Mt,
230
230
  global: fe,
231
- isContextDefined: Wt,
231
+ isContextDefined: qt,
232
232
  isSpecCompliantForm: Vr,
233
233
  toJSONObject: Yr,
234
234
  isAsyncFn: Kr,
@@ -237,8 +237,8 @@ const Yr = (t) => {
237
237
  asap: Gr,
238
238
  isIterable: Xr
239
239
  };
240
- function L(t, e, r, s, o) {
241
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), s && (this.request = s), o && (this.response = o, this.status = o.status ? o.status : null);
240
+ function L(t, e, r, s, a) {
241
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), s && (this.request = s), a && (this.response = a, this.status = a.status ? a.status : null);
242
242
  }
243
243
  p.inherits(L, Error, {
244
244
  toJSON: function() {
@@ -281,13 +281,13 @@ const Ht = L.prototype, Vt = {};
281
281
  });
282
282
  Object.defineProperties(L, Vt);
283
283
  Object.defineProperty(Ht, "isAxiosError", { value: !0 });
284
- L.from = (t, e, r, s, o, i) => {
285
- const a = Object.create(Ht);
286
- p.toFlatObject(t, a, function(u) {
284
+ L.from = (t, e, r, s, a, i) => {
285
+ const o = Object.create(Ht);
286
+ p.toFlatObject(t, o, function(u) {
287
287
  return u !== Error.prototype;
288
288
  }, (c) => c !== "isAxiosError");
289
289
  const l = t && t.message ? t.message : "Error", h = e == null && t ? t.code : e;
290
- return L.call(a, l, h, r, s, o), t && a.cause == null && Object.defineProperty(a, "cause", { value: t, configurable: !0 }), a.name = t && t.name || "Error", i && Object.assign(a, i), a;
290
+ return L.call(o, l, h, r, s, a), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", i && Object.assign(o, i), o;
291
291
  };
292
292
  const Zr = null;
293
293
  function Qe(t) {
@@ -297,8 +297,8 @@ function Yt(t) {
297
297
  return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
298
298
  }
299
299
  function gt(t, e, r) {
300
- return t ? t.concat(e).map(function(o, i) {
301
- return o = Yt(o), !r && i ? "[" + o + "]" : o;
300
+ return t ? t.concat(e).map(function(a, i) {
301
+ return a = Yt(a), !r && i ? "[" + a + "]" : a;
302
302
  }).join(r ? "." : "") : e;
303
303
  }
304
304
  function Qr(t) {
@@ -307,7 +307,7 @@ function Qr(t) {
307
307
  const en = p.toFlatObject(p, {}, null, function(e) {
308
308
  return /^is[A-Z]/.test(e);
309
309
  });
310
- function qe(t, e, r) {
310
+ function We(t, e, r) {
311
311
  if (!p.isObject(t))
312
312
  throw new TypeError("target must be an object");
313
313
  e = e || new FormData(), r = p.toFlatObject(r, {
@@ -317,8 +317,8 @@ function qe(t, e, r) {
317
317
  }, !1, function(j, m) {
318
318
  return !p.isUndefined(m[j]);
319
319
  });
320
- const s = r.metaTokens, o = r.visitor || u, i = r.dots, a = r.indexes, h = (r.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(e);
321
- if (!p.isFunction(o))
320
+ const s = r.metaTokens, a = r.visitor || u, i = r.dots, o = r.indexes, h = (r.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(e);
321
+ if (!p.isFunction(a))
322
322
  throw new TypeError("visitor must be a function");
323
323
  function c(d) {
324
324
  if (d === null) return "";
@@ -339,7 +339,7 @@ function qe(t, e, r) {
339
339
  return j = Yt(j), _.forEach(function(A, C) {
340
340
  !(p.isUndefined(A) || A === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
- a === !0 ? gt([j], C, i) : a === null ? j : j + "[]",
342
+ o === !0 ? gt([j], C, i) : o === null ? j : j + "[]",
343
343
  c(A)
344
344
  );
345
345
  }), !1;
@@ -356,7 +356,7 @@ function qe(t, e, r) {
356
356
  if (b.indexOf(d) !== -1)
357
357
  throw Error("Circular reference detected in " + j.join("."));
358
358
  b.push(d), p.forEach(d, function(_, R) {
359
- (!(p.isUndefined(_) || _ === null) && o.call(
359
+ (!(p.isUndefined(_) || _ === null) && a.call(
360
360
  e,
361
361
  _,
362
362
  p.isString(R) ? R.trim() : R,
@@ -384,10 +384,10 @@ function mt(t) {
384
384
  return e[s];
385
385
  });
386
386
  }
387
- function ot(t, e) {
388
- this._pairs = [], t && qe(t, this, e);
387
+ function at(t, e) {
388
+ this._pairs = [], t && We(t, this, e);
389
389
  }
390
- const Kt = ot.prototype;
390
+ const Kt = at.prototype;
391
391
  Kt.append = function(e, r) {
392
392
  this._pairs.push([e, r]);
393
393
  };
@@ -395,8 +395,8 @@ Kt.toString = function(e) {
395
395
  const r = e ? function(s) {
396
396
  return e.call(this, s, mt);
397
397
  } : mt;
398
- return this._pairs.map(function(o) {
399
- return r(o[0]) + "=" + r(o[1]);
398
+ return this._pairs.map(function(a) {
399
+ return r(a[0]) + "=" + r(a[1]);
400
400
  }, "").join("&");
401
401
  };
402
402
  function tn(t) {
@@ -409,11 +409,11 @@ function Jt(t, e, r) {
409
409
  p.isFunction(r) && (r = {
410
410
  serialize: r
411
411
  });
412
- const o = r && r.serialize;
412
+ const a = r && r.serialize;
413
413
  let i;
414
- if (o ? i = o(e, r) : i = p.isURLSearchParams(e) ? e.toString() : new ot(e, r).toString(s), i) {
415
- const a = t.indexOf("#");
416
- a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
414
+ if (a ? i = a(e, r) : i = p.isURLSearchParams(e) ? e.toString() : new at(e, r).toString(s), i) {
415
+ const o = t.indexOf("#");
416
+ o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
417
417
  }
418
418
  return t;
419
419
  }
@@ -475,7 +475,7 @@ const Gt = {
475
475
  silentJSONParsing: !0,
476
476
  forcedJSONParsing: !0,
477
477
  clarifyTimeoutError: !1
478
- }, rn = typeof URLSearchParams < "u" ? URLSearchParams : ot, nn = typeof FormData < "u" ? FormData : null, sn = typeof Blob < "u" ? Blob : null, on = {
478
+ }, rn = typeof URLSearchParams < "u" ? URLSearchParams : at, nn = typeof FormData < "u" ? FormData : null, sn = typeof Blob < "u" ? Blob : null, an = {
479
479
  isBrowser: !0,
480
480
  classes: {
481
481
  URLSearchParams: rn,
@@ -483,21 +483,21 @@ const Gt = {
483
483
  Blob: sn
484
484
  },
485
485
  protocols: ["http", "https", "file", "blob", "url", "data"]
486
- }, at = typeof window < "u" && typeof document < "u", et = typeof navigator == "object" && navigator || void 0, an = at && (!et || ["ReactNative", "NativeScript", "NS"].indexOf(et.product) < 0), ln = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", cn = at && window.location.href || "http://localhost", dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
+ }, ot = typeof window < "u" && typeof document < "u", et = typeof navigator == "object" && navigator || void 0, on = ot && (!et || ["ReactNative", "NativeScript", "NS"].indexOf(et.product) < 0), ln = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", cn = ot && window.location.href || "http://localhost", dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
488
  __proto__: null,
489
- hasBrowserEnv: at,
490
- hasStandardBrowserEnv: an,
489
+ hasBrowserEnv: ot,
490
+ hasStandardBrowserEnv: on,
491
491
  hasStandardBrowserWebWorkerEnv: ln,
492
492
  navigator: et,
493
493
  origin: cn
494
494
  }, Symbol.toStringTag, { value: "Module" })), ee = {
495
495
  ...dn,
496
- ...on
496
+ ...an
497
497
  };
498
498
  function un(t, e) {
499
- return qe(t, new ee.classes.URLSearchParams(), {
500
- visitor: function(r, s, o, i) {
499
+ return We(t, new ee.classes.URLSearchParams(), {
500
+ visitor: function(r, s, a, i) {
501
501
  return ee.isNode && p.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
502
502
  },
503
503
  ...e
@@ -509,23 +509,23 @@ function pn(t) {
509
509
  function fn(t) {
510
510
  const e = {}, r = Object.keys(t);
511
511
  let s;
512
- const o = r.length;
512
+ const a = r.length;
513
513
  let i;
514
- for (s = 0; s < o; s++)
514
+ for (s = 0; s < a; s++)
515
515
  i = r[s], e[i] = t[i];
516
516
  return e;
517
517
  }
518
518
  function Xt(t) {
519
- function e(r, s, o, i) {
520
- let a = r[i++];
521
- if (a === "__proto__") return !0;
522
- const l = Number.isFinite(+a), h = i >= r.length;
523
- return a = !a && p.isArray(o) ? o.length : a, h ? (p.hasOwnProp(o, a) ? o[a] = [o[a], s] : o[a] = s, !l) : ((!o[a] || !p.isObject(o[a])) && (o[a] = []), e(r, s, o[a], i) && p.isArray(o[a]) && (o[a] = fn(o[a])), !l);
519
+ function e(r, s, a, i) {
520
+ let o = r[i++];
521
+ if (o === "__proto__") return !0;
522
+ const l = Number.isFinite(+o), h = i >= r.length;
523
+ return o = !o && p.isArray(a) ? a.length : o, h ? (p.hasOwnProp(a, o) ? a[o] = [a[o], s] : a[o] = s, !l) : ((!a[o] || !p.isObject(a[o])) && (a[o] = []), e(r, s, a[o], i) && p.isArray(a[o]) && (a[o] = fn(a[o])), !l);
524
524
  }
525
525
  if (p.isFormData(t) && p.isFunction(t.entries)) {
526
526
  const r = {};
527
- return p.forEachEntry(t, (s, o) => {
528
- e(pn(s), o, r, 0);
527
+ return p.forEachEntry(t, (s, a) => {
528
+ e(pn(s), a, r, 0);
529
529
  }), r;
530
530
  }
531
531
  return null;
@@ -544,9 +544,9 @@ const Ie = {
544
544
  transitional: Gt,
545
545
  adapter: ["xhr", "http", "fetch"],
546
546
  transformRequest: [function(e, r) {
547
- const s = r.getContentType() || "", o = s.indexOf("application/json") > -1, i = p.isObject(e);
547
+ const s = r.getContentType() || "", a = s.indexOf("application/json") > -1, i = p.isObject(e);
548
548
  if (i && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
549
- return o ? JSON.stringify(Xt(e)) : e;
549
+ return a ? JSON.stringify(Xt(e)) : e;
550
550
  if (p.isArrayBuffer(e) || p.isBuffer(e) || p.isStream(e) || p.isFile(e) || p.isBlob(e) || p.isReadableStream(e))
551
551
  return e;
552
552
  if (p.isArrayBufferView(e))
@@ -559,25 +559,25 @@ const Ie = {
559
559
  return un(e, this.formSerializer).toString();
560
560
  if ((l = p.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
561
561
  const h = this.env && this.env.FormData;
562
- return qe(
562
+ return We(
563
563
  l ? { "files[]": e } : e,
564
564
  h && new h(),
565
565
  this.formSerializer
566
566
  );
567
567
  }
568
568
  }
569
- return i || o ? (r.setContentType("application/json", !1), xn(e)) : e;
569
+ return i || a ? (r.setContentType("application/json", !1), xn(e)) : e;
570
570
  }],
571
571
  transformResponse: [function(e) {
572
- const r = this.transitional || Ie.transitional, s = r && r.forcedJSONParsing, o = this.responseType === "json";
572
+ const r = this.transitional || Ie.transitional, s = r && r.forcedJSONParsing, a = this.responseType === "json";
573
573
  if (p.isResponse(e) || p.isReadableStream(e))
574
574
  return e;
575
- if (e && p.isString(e) && (s && !this.responseType || o)) {
576
- const a = !(r && r.silentJSONParsing) && o;
575
+ if (e && p.isString(e) && (s && !this.responseType || a)) {
576
+ const o = !(r && r.silentJSONParsing) && a;
577
577
  try {
578
578
  return JSON.parse(e, this.parseReviver);
579
579
  } catch (l) {
580
- if (a)
580
+ if (o)
581
581
  throw l.name === "SyntaxError" ? L.from(l, L.ERR_BAD_RESPONSE, this, null, this.response) : l;
582
582
  }
583
583
  }
@@ -629,10 +629,10 @@ const hn = p.toObjectSet([
629
629
  "user-agent"
630
630
  ]), gn = (t) => {
631
631
  const e = {};
632
- let r, s, o;
632
+ let r, s, a;
633
633
  return t && t.split(`
634
- `).forEach(function(a) {
635
- o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), s = a.substring(o + 1).trim(), !(!r || e[r] && hn[r]) && (r === "set-cookie" ? e[r] ? e[r].push(s) : e[r] = [s] : e[r] = e[r] ? e[r] + ", " + s : s);
634
+ `).forEach(function(o) {
635
+ a = o.indexOf(":"), r = o.substring(0, a).trim().toLowerCase(), s = o.substring(a + 1).trim(), !(!r || e[r] && hn[r]) && (r === "set-cookie" ? e[r] ? e[r].push(s) : e[r] = [s] : e[r] = e[r] ? e[r] + ", " + s : s);
636
636
  }), e;
637
637
  }, bt = Symbol("internals");
638
638
  function Se(t) {
@@ -649,10 +649,10 @@ function mn(t) {
649
649
  return e;
650
650
  }
651
651
  const yn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
652
- function Ye(t, e, r, s, o) {
652
+ function Ye(t, e, r, s, a) {
653
653
  if (p.isFunction(s))
654
654
  return s.call(this, e, r);
655
- if (o && (e = r), !!p.isString(e)) {
655
+ if (a && (e = r), !!p.isString(e)) {
656
656
  if (p.isString(s))
657
657
  return e.indexOf(s) !== -1;
658
658
  if (p.isRegExp(s))
@@ -666,8 +666,8 @@ function wn(t, e) {
666
666
  const r = p.toCamelCase(" " + e);
667
667
  ["get", "set", "has"].forEach((s) => {
668
668
  Object.defineProperty(t, s + r, {
669
- value: function(o, i, a) {
670
- return this[s].call(this, e, o, i, a);
669
+ value: function(a, i, o) {
670
+ return this[s].call(this, e, a, i, o);
671
671
  },
672
672
  configurable: !0
673
673
  });
@@ -678,19 +678,19 @@ let ne = class {
678
678
  e && this.set(e);
679
679
  }
680
680
  set(e, r, s) {
681
- const o = this;
681
+ const a = this;
682
682
  function i(l, h, c) {
683
683
  const u = Se(h);
684
684
  if (!u)
685
685
  throw new Error("header name must be a non-empty string");
686
- const b = p.findKey(o, u);
687
- (!b || o[b] === void 0 || c === !0 || c === void 0 && o[b] !== !1) && (o[b || h] = _e(l));
686
+ const b = p.findKey(a, u);
687
+ (!b || a[b] === void 0 || c === !0 || c === void 0 && a[b] !== !1) && (a[b || h] = _e(l));
688
688
  }
689
- const a = (l, h) => p.forEach(l, (c, u) => i(c, u, h));
689
+ const o = (l, h) => p.forEach(l, (c, u) => i(c, u, h));
690
690
  if (p.isPlainObject(e) || e instanceof this.constructor)
691
- a(e, r);
691
+ o(e, r);
692
692
  else if (p.isString(e) && (e = e.trim()) && !yn(e))
693
- a(gn(e), r);
693
+ o(gn(e), r);
694
694
  else if (p.isObject(e) && p.isIterable(e)) {
695
695
  let l = {}, h, c;
696
696
  for (const u of e) {
@@ -698,7 +698,7 @@ let ne = class {
698
698
  throw TypeError("Object iterator must return a key-value pair");
699
699
  l[c = u[0]] = (h = l[c]) ? p.isArray(h) ? [...h, u[1]] : [h, u[1]] : u[1];
700
700
  }
701
- a(l, r);
701
+ o(l, r);
702
702
  } else
703
703
  e != null && i(r, e, s);
704
704
  return this;
@@ -707,15 +707,15 @@ let ne = class {
707
707
  if (e = Se(e), e) {
708
708
  const s = p.findKey(this, e);
709
709
  if (s) {
710
- const o = this[s];
710
+ const a = this[s];
711
711
  if (!r)
712
- return o;
712
+ return a;
713
713
  if (r === !0)
714
- return mn(o);
714
+ return mn(a);
715
715
  if (p.isFunction(r))
716
- return r.call(this, o, s);
716
+ return r.call(this, a, s);
717
717
  if (p.isRegExp(r))
718
- return r.exec(o);
718
+ return r.exec(a);
719
719
  throw new TypeError("parser must be boolean|regexp|function");
720
720
  }
721
721
  }
@@ -729,34 +729,34 @@ let ne = class {
729
729
  }
730
730
  delete(e, r) {
731
731
  const s = this;
732
- let o = !1;
733
- function i(a) {
734
- if (a = Se(a), a) {
735
- const l = p.findKey(s, a);
736
- l && (!r || Ye(s, s[l], l, r)) && (delete s[l], o = !0);
732
+ let a = !1;
733
+ function i(o) {
734
+ if (o = Se(o), o) {
735
+ const l = p.findKey(s, o);
736
+ l && (!r || Ye(s, s[l], l, r)) && (delete s[l], a = !0);
737
737
  }
738
738
  }
739
- return p.isArray(e) ? e.forEach(i) : i(e), o;
739
+ return p.isArray(e) ? e.forEach(i) : i(e), a;
740
740
  }
741
741
  clear(e) {
742
742
  const r = Object.keys(this);
743
- let s = r.length, o = !1;
743
+ let s = r.length, a = !1;
744
744
  for (; s--; ) {
745
745
  const i = r[s];
746
- (!e || Ye(this, this[i], i, e, !0)) && (delete this[i], o = !0);
746
+ (!e || Ye(this, this[i], i, e, !0)) && (delete this[i], a = !0);
747
747
  }
748
- return o;
748
+ return a;
749
749
  }
750
750
  normalize(e) {
751
751
  const r = this, s = {};
752
- return p.forEach(this, (o, i) => {
753
- const a = p.findKey(s, i);
754
- if (a) {
755
- r[a] = _e(o), delete r[i];
752
+ return p.forEach(this, (a, i) => {
753
+ const o = p.findKey(s, i);
754
+ if (o) {
755
+ r[o] = _e(a), delete r[i];
756
756
  return;
757
757
  }
758
758
  const l = e ? bn(i) : String(i).trim();
759
- l !== i && delete r[i], r[l] = _e(o), s[l] = !0;
759
+ l !== i && delete r[i], r[l] = _e(a), s[l] = !0;
760
760
  }), this;
761
761
  }
762
762
  concat(...e) {
@@ -764,8 +764,8 @@ let ne = class {
764
764
  }
765
765
  toJSON(e) {
766
766
  const r = /* @__PURE__ */ Object.create(null);
767
- return p.forEach(this, (s, o) => {
768
- s != null && s !== !1 && (r[o] = e && p.isArray(s) ? s.join(", ") : s);
767
+ return p.forEach(this, (s, a) => {
768
+ s != null && s !== !1 && (r[a] = e && p.isArray(s) ? s.join(", ") : s);
769
769
  }), r;
770
770
  }
771
771
  [Symbol.iterator]() {
@@ -786,15 +786,15 @@ let ne = class {
786
786
  }
787
787
  static concat(e, ...r) {
788
788
  const s = new this(e);
789
- return r.forEach((o) => s.set(o)), s;
789
+ return r.forEach((a) => s.set(a)), s;
790
790
  }
791
791
  static accessor(e) {
792
792
  const s = (this[bt] = this[bt] = {
793
793
  accessors: {}
794
- }).accessors, o = this.prototype;
795
- function i(a) {
796
- const l = Se(a);
797
- s[l] || (wn(o, a), s[l] = !0);
794
+ }).accessors, a = this.prototype;
795
+ function i(o) {
796
+ const l = Se(o);
797
+ s[l] || (wn(a, o), s[l] = !0);
798
798
  }
799
799
  return p.isArray(e) ? e.forEach(i) : i(e), this;
800
800
  }
@@ -811,11 +811,11 @@ p.reduceDescriptors(ne.prototype, ({ value: t }, e) => {
811
811
  });
812
812
  p.freezeMethods(ne);
813
813
  function Ke(t, e) {
814
- const r = this || Ie, s = e || r, o = ne.from(s.headers);
814
+ const r = this || Ie, s = e || r, a = ne.from(s.headers);
815
815
  let i = s.data;
816
816
  return p.forEach(t, function(l) {
817
- i = l.call(r, i, o.normalize(), e ? e.status : void 0);
818
- }), o.normalize(), i;
817
+ i = l.call(r, i, a.normalize(), e ? e.status : void 0);
818
+ }), a.normalize(), i;
819
819
  }
820
820
  function Zt(t) {
821
821
  return !!(t && t.__CANCEL__);
@@ -843,44 +843,44 @@ function jn(t) {
843
843
  function vn(t, e) {
844
844
  t = t || 10;
845
845
  const r = new Array(t), s = new Array(t);
846
- let o = 0, i = 0, a;
846
+ let a = 0, i = 0, o;
847
847
  return e = e !== void 0 ? e : 1e3, function(h) {
848
848
  const c = Date.now(), u = s[i];
849
- a || (a = c), r[o] = h, s[o] = c;
849
+ o || (o = c), r[a] = h, s[a] = c;
850
850
  let b = i, y = 0;
851
- for (; b !== o; )
851
+ for (; b !== a; )
852
852
  y += r[b++], b = b % t;
853
- if (o = (o + 1) % t, o === i && (i = (i + 1) % t), c - a < e)
853
+ if (a = (a + 1) % t, a === i && (i = (i + 1) % t), c - o < e)
854
854
  return;
855
855
  const w = u && c - u;
856
856
  return w ? Math.round(y * 1e3 / w) : void 0;
857
857
  };
858
858
  }
859
859
  function Sn(t, e) {
860
- let r = 0, s = 1e3 / e, o, i;
861
- const a = (c, u = Date.now()) => {
862
- r = u, o = null, i && (clearTimeout(i), i = null), t(...c);
860
+ let r = 0, s = 1e3 / e, a, i;
861
+ const o = (c, u = Date.now()) => {
862
+ r = u, a = null, i && (clearTimeout(i), i = null), t(...c);
863
863
  };
864
864
  return [(...c) => {
865
865
  const u = Date.now(), b = u - r;
866
- b >= s ? a(c, u) : (o = c, i || (i = setTimeout(() => {
867
- i = null, a(o);
866
+ b >= s ? o(c, u) : (a = c, i || (i = setTimeout(() => {
867
+ i = null, o(a);
868
868
  }, s - b)));
869
- }, () => o && a(o)];
869
+ }, () => a && o(a)];
870
870
  }
871
871
  const De = (t, e, r = 3) => {
872
872
  let s = 0;
873
- const o = vn(50, 250);
873
+ const a = vn(50, 250);
874
874
  return Sn((i) => {
875
- const a = i.loaded, l = i.lengthComputable ? i.total : void 0, h = a - s, c = o(h), u = a <= l;
876
- s = a;
875
+ const o = i.loaded, l = i.lengthComputable ? i.total : void 0, h = o - s, c = a(h), u = o <= l;
876
+ s = o;
877
877
  const b = {
878
- loaded: a,
878
+ loaded: o,
879
879
  total: l,
880
- progress: l ? a / l : void 0,
880
+ progress: l ? o / l : void 0,
881
881
  bytes: h,
882
882
  rate: c || void 0,
883
- estimated: c && l && u ? (l - a) / c : void 0,
883
+ estimated: c && l && u ? (l - o) / c : void 0,
884
884
  event: i,
885
885
  lengthComputable: l != null,
886
886
  [e ? "download" : "upload"]: !0
@@ -900,9 +900,9 @@ const De = (t, e, r = 3) => {
900
900
  ) : () => !0, En = ee.hasStandardBrowserEnv ? (
901
901
  // Standard browser envs support document.cookie
902
902
  {
903
- write(t, e, r, s, o, i) {
904
- const a = [t + "=" + encodeURIComponent(e)];
905
- p.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), p.isString(s) && a.push("path=" + s), p.isString(o) && a.push("domain=" + o), i === !0 && a.push("secure"), document.cookie = a.join("; ");
903
+ write(t, e, r, s, a, i) {
904
+ const o = [t + "=" + encodeURIComponent(e)];
905
+ p.isNumber(r) && o.push("expires=" + new Date(r).toGMTString()), p.isString(s) && o.push("path=" + s), p.isString(a) && o.push("domain=" + a), i === !0 && o.push("secure"), document.cookie = o.join("; ");
906
906
  },
907
907
  read(t) {
908
908
  const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
@@ -941,7 +941,7 @@ function he(t, e) {
941
941
  function s(c, u, b, y) {
942
942
  return p.isPlainObject(c) && p.isPlainObject(u) ? p.merge.call({ caseless: y }, c, u) : p.isPlainObject(u) ? p.merge({}, u) : p.isArray(u) ? u.slice() : u;
943
943
  }
944
- function o(c, u, b, y) {
944
+ function a(c, u, b, y) {
945
945
  if (p.isUndefined(u)) {
946
946
  if (!p.isUndefined(c))
947
947
  return s(void 0, c, b, y);
@@ -951,7 +951,7 @@ function he(t, e) {
951
951
  if (!p.isUndefined(u))
952
952
  return s(void 0, u);
953
953
  }
954
- function a(c, u) {
954
+ function o(c, u) {
955
955
  if (p.isUndefined(u)) {
956
956
  if (!p.isUndefined(c))
957
957
  return s(void 0, c);
@@ -967,70 +967,70 @@ function he(t, e) {
967
967
  url: i,
968
968
  method: i,
969
969
  data: i,
970
- baseURL: a,
971
- transformRequest: a,
972
- transformResponse: a,
973
- paramsSerializer: a,
974
- timeout: a,
975
- timeoutMessage: a,
976
- withCredentials: a,
977
- withXSRFToken: a,
978
- adapter: a,
979
- responseType: a,
980
- xsrfCookieName: a,
981
- xsrfHeaderName: a,
982
- onUploadProgress: a,
983
- onDownloadProgress: a,
984
- decompress: a,
985
- maxContentLength: a,
986
- maxBodyLength: a,
987
- beforeRedirect: a,
988
- transport: a,
989
- httpAgent: a,
990
- httpsAgent: a,
991
- cancelToken: a,
992
- socketPath: a,
993
- responseEncoding: a,
970
+ baseURL: o,
971
+ transformRequest: o,
972
+ transformResponse: o,
973
+ paramsSerializer: o,
974
+ timeout: o,
975
+ timeoutMessage: o,
976
+ withCredentials: o,
977
+ withXSRFToken: o,
978
+ adapter: o,
979
+ responseType: o,
980
+ xsrfCookieName: o,
981
+ xsrfHeaderName: o,
982
+ onUploadProgress: o,
983
+ onDownloadProgress: o,
984
+ decompress: o,
985
+ maxContentLength: o,
986
+ maxBodyLength: o,
987
+ beforeRedirect: o,
988
+ transport: o,
989
+ httpAgent: o,
990
+ httpsAgent: o,
991
+ cancelToken: o,
992
+ socketPath: o,
993
+ responseEncoding: o,
994
994
  validateStatus: l,
995
- headers: (c, u, b) => o(vt(c), vt(u), b, !0)
995
+ headers: (c, u, b) => a(vt(c), vt(u), b, !0)
996
996
  };
997
997
  return p.forEach(Object.keys({ ...t, ...e }), function(u) {
998
- const b = h[u] || o, y = b(t[u], e[u], u);
998
+ const b = h[u] || a, y = b(t[u], e[u], u);
999
999
  p.isUndefined(y) && b !== l || (r[u] = y);
1000
1000
  }), r;
1001
1001
  }
1002
1002
  const tr = (t) => {
1003
1003
  const e = he({}, t);
1004
- let { data: r, withXSRFToken: s, xsrfHeaderName: o, xsrfCookieName: i, headers: a, auth: l } = e;
1005
- if (e.headers = a = ne.from(a), e.url = Jt(er(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), l && a.set(
1004
+ let { data: r, withXSRFToken: s, xsrfHeaderName: a, xsrfCookieName: i, headers: o, auth: l } = e;
1005
+ if (e.headers = o = ne.from(o), e.url = Jt(er(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), l && o.set(
1006
1006
  "Authorization",
1007
1007
  "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
1008
1008
  ), p.isFormData(r)) {
1009
1009
  if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
1010
- a.setContentType(void 0);
1010
+ o.setContentType(void 0);
1011
1011
  else if (p.isFunction(r.getHeaders)) {
1012
1012
  const h = r.getHeaders(), c = ["content-type", "content-length"];
1013
1013
  Object.entries(h).forEach(([u, b]) => {
1014
- c.includes(u.toLowerCase()) && a.set(u, b);
1014
+ c.includes(u.toLowerCase()) && o.set(u, b);
1015
1015
  });
1016
1016
  }
1017
1017
  }
1018
1018
  if (ee.hasStandardBrowserEnv && (s && p.isFunction(s) && (s = s(e)), s || s !== !1 && kn(e.url))) {
1019
- const h = o && i && En.read(i);
1020
- h && a.set(o, h);
1019
+ const h = a && i && En.read(i);
1020
+ h && o.set(a, h);
1021
1021
  }
1022
1022
  return e;
1023
1023
  }, Rn = typeof XMLHttpRequest < "u", In = Rn && function(t) {
1024
1024
  return new Promise(function(r, s) {
1025
- const o = tr(t);
1026
- let i = o.data;
1027
- const a = ne.from(o.headers).normalize();
1028
- let { responseType: l, onUploadProgress: h, onDownloadProgress: c } = o, u, b, y, w, d;
1025
+ const a = tr(t);
1026
+ let i = a.data;
1027
+ const o = ne.from(a.headers).normalize();
1028
+ let { responseType: l, onUploadProgress: h, onDownloadProgress: c } = a, u, b, y, w, d;
1029
1029
  function j() {
1030
- w && w(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
1030
+ w && w(), d && d(), a.cancelToken && a.cancelToken.unsubscribe(u), a.signal && a.signal.removeEventListener("abort", u);
1031
1031
  }
1032
1032
  let m = new XMLHttpRequest();
1033
- m.open(o.method.toUpperCase(), o.url, !0), m.timeout = o.timeout;
1033
+ m.open(a.method.toUpperCase(), a.url, !0), m.timeout = a.timeout;
1034
1034
  function _() {
1035
1035
  if (!m)
1036
1036
  return;
@@ -1058,20 +1058,20 @@ const tr = (t) => {
1058
1058
  const M = C && C.message ? C.message : "Network Error", g = new L(M, L.ERR_NETWORK, t, m);
1059
1059
  g.event = C || null, s(g), m = null;
1060
1060
  }, m.ontimeout = function() {
1061
- let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1062
- const M = o.transitional || Gt;
1063
- o.timeoutErrorMessage && (C = o.timeoutErrorMessage), s(new L(
1061
+ let C = a.timeout ? "timeout of " + a.timeout + "ms exceeded" : "timeout exceeded";
1062
+ const M = a.transitional || Gt;
1063
+ a.timeoutErrorMessage && (C = a.timeoutErrorMessage), s(new L(
1064
1064
  C,
1065
1065
  M.clarifyTimeoutError ? L.ETIMEDOUT : L.ECONNABORTED,
1066
1066
  t,
1067
1067
  m
1068
1068
  )), m = null;
1069
- }, i === void 0 && a.setContentType(null), "setRequestHeader" in m && p.forEach(a.toJSON(), function(C, M) {
1069
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in m && p.forEach(o.toJSON(), function(C, M) {
1070
1070
  m.setRequestHeader(M, C);
1071
- }), p.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), l && l !== "json" && (m.responseType = o.responseType), c && ([y, d] = De(c, !0), m.addEventListener("progress", y)), h && m.upload && ([b, w] = De(h), m.upload.addEventListener("progress", b), m.upload.addEventListener("loadend", w)), (o.cancelToken || o.signal) && (u = (A) => {
1071
+ }), p.isUndefined(a.withCredentials) || (m.withCredentials = !!a.withCredentials), l && l !== "json" && (m.responseType = a.responseType), c && ([y, d] = De(c, !0), m.addEventListener("progress", y)), h && m.upload && ([b, w] = De(h), m.upload.addEventListener("progress", b), m.upload.addEventListener("loadend", w)), (a.cancelToken || a.signal) && (u = (A) => {
1072
1072
  m && (s(!A || A.type ? new je(null, t, m) : A), m.abort(), m = null);
1073
- }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1074
- const R = jn(o.url);
1073
+ }, a.cancelToken && a.cancelToken.subscribe(u), a.signal && (a.signal.aborted ? u() : a.signal.addEventListener("abort", u)));
1074
+ const R = jn(a.url);
1075
1075
  if (R && ee.protocols.indexOf(R) === -1) {
1076
1076
  s(new L("Unsupported protocol " + R + ":", L.ERR_BAD_REQUEST, t));
1077
1077
  return;
@@ -1081,19 +1081,19 @@ const tr = (t) => {
1081
1081
  }, Pn = (t, e) => {
1082
1082
  const { length: r } = t = t ? t.filter(Boolean) : [];
1083
1083
  if (e || r) {
1084
- let s = new AbortController(), o;
1084
+ let s = new AbortController(), a;
1085
1085
  const i = function(c) {
1086
- if (!o) {
1087
- o = !0, l();
1086
+ if (!a) {
1087
+ a = !0, l();
1088
1088
  const u = c instanceof Error ? c : this.reason;
1089
1089
  s.abort(u instanceof L ? u : new je(u instanceof Error ? u.message : u));
1090
1090
  }
1091
1091
  };
1092
- let a = e && setTimeout(() => {
1093
- a = null, i(new L(`timeout ${e} of ms exceeded`, L.ETIMEDOUT));
1092
+ let o = e && setTimeout(() => {
1093
+ o = null, i(new L(`timeout ${e} of ms exceeded`, L.ETIMEDOUT));
1094
1094
  }, e);
1095
1095
  const l = () => {
1096
- t && (a && clearTimeout(a), a = null, t.forEach((c) => {
1096
+ t && (o && clearTimeout(o), o = null, t.forEach((c) => {
1097
1097
  c.unsubscribe ? c.unsubscribe(i) : c.removeEventListener("abort", i);
1098
1098
  }), t = null);
1099
1099
  };
@@ -1107,9 +1107,9 @@ const tr = (t) => {
1107
1107
  yield t;
1108
1108
  return;
1109
1109
  }
1110
- let s = 0, o;
1110
+ let s = 0, a;
1111
1111
  for (; s < r; )
1112
- o = s + e, yield t.slice(s, o), s = o;
1112
+ a = s + e, yield t.slice(s, a), s = a;
1113
1113
  }, zn = async function* (t, e) {
1114
1114
  for await (const r of An(t))
1115
1115
  yield* On(r, e);
@@ -1130,14 +1130,14 @@ const tr = (t) => {
1130
1130
  await e.cancel();
1131
1131
  }
1132
1132
  }, St = (t, e, r, s) => {
1133
- const o = zn(t, e);
1134
- let i = 0, a, l = (h) => {
1135
- a || (a = !0, s && s(h));
1133
+ const a = zn(t, e);
1134
+ let i = 0, o, l = (h) => {
1135
+ o || (o = !0, s && s(h));
1136
1136
  };
1137
1137
  return new ReadableStream({
1138
1138
  async pull(h) {
1139
1139
  try {
1140
- const { done: c, value: u } = await o.next();
1140
+ const { done: c, value: u } = await a.next();
1141
1141
  if (c) {
1142
1142
  l(), h.close();
1143
1143
  return;
@@ -1153,7 +1153,7 @@ const tr = (t) => {
1153
1153
  }
1154
1154
  },
1155
1155
  cancel(h) {
1156
- return l(h), o.return();
1156
+ return l(h), a.return();
1157
1157
  }
1158
1158
  }, {
1159
1159
  highWaterMark: 2
@@ -1174,10 +1174,10 @@ const tr = (t) => {
1174
1174
  t = p.merge.call({
1175
1175
  skipUndefined: !0
1176
1176
  }, _n, t);
1177
- const { fetch: e, Request: r, Response: s } = t, o = e ? Oe(e) : typeof fetch == "function", i = Oe(r), a = Oe(s);
1178
- if (!o)
1177
+ const { fetch: e, Request: r, Response: s } = t, a = e ? Oe(e) : typeof fetch == "function", i = Oe(r), o = Oe(s);
1178
+ if (!a)
1179
1179
  return !1;
1180
- const l = o && Oe(Et), h = o && (typeof Ct == "function" ? /* @__PURE__ */ ((d) => (j) => d.encode(j))(new Ct()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), c = i && l && Tt(() => {
1180
+ const l = a && Oe(Et), h = a && (typeof Ct == "function" ? /* @__PURE__ */ ((d) => (j) => d.encode(j))(new Ct()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), c = i && l && Tt(() => {
1181
1181
  let d = !1;
1182
1182
  const j = new r(ee.origin, {
1183
1183
  body: new Et(),
@@ -1187,10 +1187,10 @@ const tr = (t) => {
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
1189
  return d && !j;
1190
- }), u = a && l && Tt(() => p.isReadableStream(new s("").body)), b = {
1190
+ }), u = o && l && Tt(() => p.isReadableStream(new s("").body)), b = {
1191
1191
  stream: u && ((d) => d.body)
1192
1192
  };
1193
- o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
1193
+ a && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
1194
1194
  !b[d] && (b[d] = (j, m) => {
1195
1195
  let _ = j && j[d];
1196
1196
  if (_)
@@ -1229,7 +1229,7 @@ const tr = (t) => {
1229
1229
  responseType: I,
1230
1230
  headers: v,
1231
1231
  withCredentials: U = "same-origin",
1232
- fetchOptions: q
1232
+ fetchOptions: W
1233
1233
  } = tr(d), F = e || fetch;
1234
1234
  I = I ? (I + "").toLowerCase() : "text";
1235
1235
  let V = Pn([R, A && A.toAbortSignal()], C), Z = null;
@@ -1254,7 +1254,7 @@ const tr = (t) => {
1254
1254
  }
1255
1255
  p.isString(U) || (U = U ? "include" : "omit");
1256
1256
  const z = i && "credentials" in r.prototype, P = {
1257
- ...q,
1257
+ ...W,
1258
1258
  signal: V,
1259
1259
  method: m.toUpperCase(),
1260
1260
  headers: v.normalize().toJSON(),
@@ -1263,7 +1263,7 @@ const tr = (t) => {
1263
1263
  credentials: z ? U : void 0
1264
1264
  };
1265
1265
  Z = i && new r(j, P);
1266
- let K = await (i ? F(Z, q) : F(j, P));
1266
+ let K = await (i ? F(Z, W) : F(j, P));
1267
1267
  const Q = u && (I === "stream" || I === "response");
1268
1268
  if (u && (M || Q && T)) {
1269
1269
  const f = {};
@@ -1304,12 +1304,12 @@ const tr = (t) => {
1304
1304
  };
1305
1305
  }, Nn = /* @__PURE__ */ new Map(), rr = (t) => {
1306
1306
  let e = t ? t.env : {};
1307
- const { fetch: r, Request: s, Response: o } = e, i = [
1307
+ const { fetch: r, Request: s, Response: a } = e, i = [
1308
1308
  s,
1309
- o,
1309
+ a,
1310
1310
  r
1311
1311
  ];
1312
- let a = i.length, l = a, h, c, u = Nn;
1312
+ let o = i.length, l = o, h, c, u = Nn;
1313
1313
  for (; l--; )
1314
1314
  h = i[l], c = u.get(h), c === void 0 && u.set(h, c = l ? /* @__PURE__ */ new Map() : $n(e)), u = c;
1315
1315
  return c;
@@ -1335,30 +1335,30 @@ const Rt = (t) => `- ${t}`, Un = (t) => p.isFunction(t) || t === null || t === !
1335
1335
  getAdapter: (t, e) => {
1336
1336
  t = p.isArray(t) ? t : [t];
1337
1337
  const { length: r } = t;
1338
- let s, o;
1338
+ let s, a;
1339
1339
  const i = {};
1340
- for (let a = 0; a < r; a++) {
1341
- s = t[a];
1340
+ for (let o = 0; o < r; o++) {
1341
+ s = t[o];
1342
1342
  let l;
1343
- if (o = s, !Un(s) && (o = tt[(l = String(s)).toLowerCase()], o === void 0))
1343
+ if (a = s, !Un(s) && (a = tt[(l = String(s)).toLowerCase()], a === void 0))
1344
1344
  throw new L(`Unknown adapter '${l}'`);
1345
- if (o && (p.isFunction(o) || (o = o.get(e))))
1345
+ if (a && (p.isFunction(a) || (a = a.get(e))))
1346
1346
  break;
1347
- i[l || "#" + a] = o;
1347
+ i[l || "#" + o] = a;
1348
1348
  }
1349
- if (!o) {
1350
- const a = Object.entries(i).map(
1349
+ if (!a) {
1350
+ const o = Object.entries(i).map(
1351
1351
  ([h, c]) => `adapter ${h} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
- let l = r ? a.length > 1 ? `since :
1354
- ` + a.map(Rt).join(`
1355
- `) : " " + Rt(a[0]) : "as no adapter specified";
1353
+ let l = r ? o.length > 1 ? `since :
1354
+ ` + o.map(Rt).join(`
1355
+ `) : " " + Rt(o[0]) : "as no adapter specified";
1356
1356
  throw new L(
1357
1357
  "There is no suitable adapter to dispatch the request " + l,
1358
1358
  "ERR_NOT_SUPPORT"
1359
1359
  );
1360
1360
  }
1361
- return o;
1361
+ return a;
1362
1362
  },
1363
1363
  adapters: tt
1364
1364
  };
@@ -1392,21 +1392,21 @@ const sr = "1.12.2", Be = {};
1392
1392
  });
1393
1393
  const Pt = {};
1394
1394
  Be.transitional = function(e, r, s) {
1395
- function o(i, a) {
1396
- return "[Axios v" + sr + "] Transitional option '" + i + "'" + a + (s ? ". " + s : "");
1395
+ function a(i, o) {
1396
+ return "[Axios v" + sr + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
1397
1397
  }
1398
- return (i, a, l) => {
1398
+ return (i, o, l) => {
1399
1399
  if (e === !1)
1400
1400
  throw new L(
1401
- o(a, " has been removed" + (r ? " in " + r : "")),
1401
+ a(o, " has been removed" + (r ? " in " + r : "")),
1402
1402
  L.ERR_DEPRECATED
1403
1403
  );
1404
- return r && !Pt[a] && (Pt[a] = !0, console.warn(
1405
- o(
1406
- a,
1404
+ return r && !Pt[o] && (Pt[o] = !0, console.warn(
1405
+ a(
1406
+ o,
1407
1407
  " has been deprecated since v" + r + " and will be removed in the near future"
1408
1408
  )
1409
- )), e ? e(i, a, l) : !0;
1409
+ )), e ? e(i, o, l) : !0;
1410
1410
  };
1411
1411
  };
1412
1412
  Be.spelling = function(e) {
@@ -1416,11 +1416,11 @@ function Dn(t, e, r) {
1416
1416
  if (typeof t != "object")
1417
1417
  throw new L("options must be an object", L.ERR_BAD_OPTION_VALUE);
1418
1418
  const s = Object.keys(t);
1419
- let o = s.length;
1420
- for (; o-- > 0; ) {
1421
- const i = s[o], a = e[i];
1422
- if (a) {
1423
- const l = t[i], h = l === void 0 || a(l, i, t);
1419
+ let a = s.length;
1420
+ for (; a-- > 0; ) {
1421
+ const i = s[a], o = e[i];
1422
+ if (o) {
1423
+ const l = t[i], h = l === void 0 || o(l, i, t);
1424
1424
  if (h !== !0)
1425
1425
  throw new L("option " + i + " must be " + h, L.ERR_BAD_OPTION_VALUE);
1426
1426
  continue;
@@ -1453,9 +1453,9 @@ let xe = class {
1453
1453
  return await this._request(e, r);
1454
1454
  } catch (s) {
1455
1455
  if (s instanceof Error) {
1456
- let o = {};
1457
- Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
1458
- const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1456
+ let a = {};
1457
+ Error.captureStackTrace ? Error.captureStackTrace(a) : a = new Error();
1458
+ const i = a.stack ? a.stack.replace(/^.+\n/, "") : "";
1459
1459
  try {
1460
1460
  s.stack ? i && !String(s.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (s.stack += `
1461
1461
  ` + i) : s.stack = i;
@@ -1467,21 +1467,21 @@ let xe = class {
1467
1467
  }
1468
1468
  _request(e, r) {
1469
1469
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = he(this.defaults, r);
1470
- const { transitional: s, paramsSerializer: o, headers: i } = r;
1470
+ const { transitional: s, paramsSerializer: a, headers: i } = r;
1471
1471
  s !== void 0 && $e.assertOptions(s, {
1472
1472
  silentJSONParsing: ie.transitional(ie.boolean),
1473
1473
  forcedJSONParsing: ie.transitional(ie.boolean),
1474
1474
  clarifyTimeoutError: ie.transitional(ie.boolean)
1475
- }, !1), o != null && (p.isFunction(o) ? r.paramsSerializer = {
1476
- serialize: o
1477
- } : $e.assertOptions(o, {
1475
+ }, !1), a != null && (p.isFunction(a) ? r.paramsSerializer = {
1476
+ serialize: a
1477
+ } : $e.assertOptions(a, {
1478
1478
  encode: ie.function,
1479
1479
  serialize: ie.function
1480
1480
  }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), $e.assertOptions(r, {
1481
1481
  baseUrl: ie.spelling("baseURL"),
1482
1482
  withXsrfToken: ie.spelling("withXSRFToken")
1483
1483
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1484
- let a = i && p.merge(
1484
+ let o = i && p.merge(
1485
1485
  i.common,
1486
1486
  i[r.method]
1487
1487
  );
@@ -1490,7 +1490,7 @@ let xe = class {
1490
1490
  (d) => {
1491
1491
  delete i[d];
1492
1492
  }
1493
- ), r.headers = ne.concat(a, i);
1493
+ ), r.headers = ne.concat(o, i);
1494
1494
  const l = [];
1495
1495
  let h = !0;
1496
1496
  this.interceptors.request.forEach(function(j) {
@@ -1544,20 +1544,20 @@ p.forEach(["delete", "get", "head", "options"], function(e) {
1544
1544
  });
1545
1545
  p.forEach(["post", "put", "patch"], function(e) {
1546
1546
  function r(s) {
1547
- return function(i, a, l) {
1547
+ return function(i, o, l) {
1548
1548
  return this.request(he(l || {}, {
1549
1549
  method: e,
1550
1550
  headers: s ? {
1551
1551
  "Content-Type": "multipart/form-data"
1552
1552
  } : {},
1553
1553
  url: i,
1554
- data: a
1554
+ data: o
1555
1555
  }));
1556
1556
  };
1557
1557
  }
1558
1558
  xe.prototype[e] = r(), xe.prototype[e + "Form"] = r(!0);
1559
1559
  });
1560
- let Ln = class or {
1560
+ let Ln = class ar {
1561
1561
  constructor(e) {
1562
1562
  if (typeof e != "function")
1563
1563
  throw new TypeError("executor must be a function.");
@@ -1566,22 +1566,22 @@ let Ln = class or {
1566
1566
  r = i;
1567
1567
  });
1568
1568
  const s = this;
1569
- this.promise.then((o) => {
1569
+ this.promise.then((a) => {
1570
1570
  if (!s._listeners) return;
1571
1571
  let i = s._listeners.length;
1572
1572
  for (; i-- > 0; )
1573
- s._listeners[i](o);
1573
+ s._listeners[i](a);
1574
1574
  s._listeners = null;
1575
- }), this.promise.then = (o) => {
1575
+ }), this.promise.then = (a) => {
1576
1576
  let i;
1577
- const a = new Promise((l) => {
1577
+ const o = new Promise((l) => {
1578
1578
  s.subscribe(l), i = l;
1579
- }).then(o);
1580
- return a.cancel = function() {
1579
+ }).then(a);
1580
+ return o.cancel = function() {
1581
1581
  s.unsubscribe(i);
1582
- }, a;
1583
- }, e(function(i, a, l) {
1584
- s.reason || (s.reason = new je(i, a, l), r(s.reason));
1582
+ }, o;
1583
+ }, e(function(i, o, l) {
1584
+ s.reason || (s.reason = new je(i, o, l), r(s.reason));
1585
1585
  });
1586
1586
  }
1587
1587
  /**
@@ -1623,8 +1623,8 @@ let Ln = class or {
1623
1623
  static source() {
1624
1624
  let e;
1625
1625
  return {
1626
- token: new or(function(o) {
1627
- e = o;
1626
+ token: new ar(function(a) {
1627
+ e = a;
1628
1628
  }),
1629
1629
  cancel: e
1630
1630
  };
@@ -1706,32 +1706,32 @@ const rt = {
1706
1706
  Object.entries(rt).forEach(([t, e]) => {
1707
1707
  rt[e] = t;
1708
1708
  });
1709
- function ar(t) {
1709
+ function or(t) {
1710
1710
  const e = new xe(t), r = Ut(xe.prototype.request, e);
1711
- return p.extend(r, xe.prototype, e, { allOwnKeys: !0 }), p.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
1712
- return ar(he(t, o));
1711
+ return p.extend(r, xe.prototype, e, { allOwnKeys: !0 }), p.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(a) {
1712
+ return or(he(t, a));
1713
1713
  }, r;
1714
1714
  }
1715
- const W = ar(Ie);
1716
- W.Axios = xe;
1717
- W.CanceledError = je;
1718
- W.CancelToken = Ln;
1719
- W.isCancel = Zt;
1720
- W.VERSION = sr;
1721
- W.toFormData = qe;
1722
- W.AxiosError = L;
1723
- W.Cancel = W.CanceledError;
1724
- W.all = function(e) {
1715
+ const q = or(Ie);
1716
+ q.Axios = xe;
1717
+ q.CanceledError = je;
1718
+ q.CancelToken = Ln;
1719
+ q.isCancel = Zt;
1720
+ q.VERSION = sr;
1721
+ q.toFormData = We;
1722
+ q.AxiosError = L;
1723
+ q.Cancel = q.CanceledError;
1724
+ q.all = function(e) {
1725
1725
  return Promise.all(e);
1726
1726
  };
1727
- W.spread = Fn;
1728
- W.isAxiosError = Mn;
1729
- W.mergeConfig = he;
1730
- W.AxiosHeaders = ne;
1731
- W.formToJSON = (t) => Xt(p.isHTMLForm(t) ? new FormData(t) : t);
1732
- W.getAdapter = nr.getAdapter;
1733
- W.HttpStatusCode = rt;
1734
- W.default = W;
1727
+ q.spread = Fn;
1728
+ q.isAxiosError = Mn;
1729
+ q.mergeConfig = he;
1730
+ q.AxiosHeaders = ne;
1731
+ q.formToJSON = (t) => Xt(p.isHTMLForm(t) ? new FormData(t) : t);
1732
+ q.getAdapter = nr.getAdapter;
1733
+ q.HttpStatusCode = rt;
1734
+ q.default = q;
1735
1735
  const {
1736
1736
  Axios: Ks,
1737
1737
  AxiosError: Js,
@@ -1739,18 +1739,18 @@ const {
1739
1739
  isCancel: Xs,
1740
1740
  CancelToken: Zs,
1741
1741
  VERSION: Qs,
1742
- all: eo,
1743
- Cancel: to,
1744
- isAxiosError: ro,
1745
- spread: no,
1746
- toFormData: so,
1747
- AxiosHeaders: oo,
1748
- HttpStatusCode: ao,
1749
- formToJSON: io,
1750
- getAdapter: lo,
1751
- mergeConfig: co
1752
- } = W;
1753
- class uo {
1742
+ all: ea,
1743
+ Cancel: ta,
1744
+ isAxiosError: ra,
1745
+ spread: na,
1746
+ toFormData: sa,
1747
+ AxiosHeaders: aa,
1748
+ HttpStatusCode: oa,
1749
+ formToJSON: ia,
1750
+ getAdapter: la,
1751
+ mergeConfig: ca
1752
+ } = q;
1753
+ class da {
1754
1754
  baseUrl;
1755
1755
  apiKey;
1756
1756
  appId;
@@ -1762,7 +1762,7 @@ class uo {
1762
1762
  constructor(e) {
1763
1763
  if (!e || !e.baseUrl)
1764
1764
  throw new Error("NeuctraAuthixClient: 'baseUrl' is required in config");
1765
- this.baseUrl = e.baseUrl.replace(/\/$/, ""), this.apiKey = e.apiKey || null, this.appId = e.appId || null, this.client = W.create({
1765
+ this.baseUrl = e.baseUrl.replace(/\/$/, ""), this.apiKey = e.apiKey || null, this.appId = e.appId || null, this.client = q.create({
1766
1766
  baseURL: this.baseUrl,
1767
1767
  headers: {
1768
1768
  "Content-Type": "application/json",
@@ -1779,7 +1779,7 @@ class uo {
1779
1779
  * @param data Optional request body
1780
1780
  * @param extraHeaders Optional custom headers
1781
1781
  */
1782
- async request(e, r, s, o = {}) {
1782
+ async request(e, r, s, a = {}) {
1783
1783
  if (!e) throw new Error("HTTP method is required");
1784
1784
  if (!r) throw new Error("Request path is required");
1785
1785
  try {
@@ -1791,12 +1791,12 @@ class uo {
1791
1791
  url: r,
1792
1792
  method: e,
1793
1793
  data: i,
1794
- headers: o
1794
+ headers: a
1795
1795
  })).data;
1796
1796
  } catch (i) {
1797
1797
  if (console.error("❌ [Request Error]:", i), i.isAxiosError) {
1798
- const a = i.response?.status || 0, l = i.response?.data?.message || i.message || "Unknown Axios error occurred";
1799
- throw new Error(`Request failed (${a}): ${l}`);
1798
+ const o = i.response?.status || 0, l = i.response?.data?.message || i.message || "Unknown Axios error occurred";
1799
+ throw new Error(`Request failed (${o}): ${l}`);
1800
1800
  }
1801
1801
  throw new Error(`Unexpected error: ${i.message || "Unknown failure"}`);
1802
1802
  }
@@ -1807,8 +1807,8 @@ class uo {
1807
1807
  * @param params user details
1808
1808
  */
1809
1809
  async signup(e) {
1810
- const { name: r, email: s, password: o } = e;
1811
- if (!r || !s || !o)
1810
+ const { name: r, email: s, password: a } = e;
1811
+ if (!r || !s || !a)
1812
1812
  throw new Error("signup: 'name', 'email', and 'password' are required");
1813
1813
  return this.request("POST", "/users/signup", e);
1814
1814
  }
@@ -1817,13 +1817,13 @@ class uo {
1817
1817
  * @param params login details
1818
1818
  */
1819
1819
  async login(e) {
1820
- const { email: r, password: s, appId: o } = e;
1820
+ const { email: r, password: s, appId: a } = e;
1821
1821
  if (!r || !s)
1822
1822
  throw new Error("login: 'email' and 'password' are required");
1823
1823
  return this.request("POST", "/users/login", {
1824
1824
  email: r,
1825
1825
  password: s,
1826
- appId: o || this.appId
1826
+ appId: a || this.appId
1827
1827
  });
1828
1828
  }
1829
1829
  /**
@@ -1843,15 +1843,15 @@ class uo {
1843
1843
  * @param params requires userId, currentPassword, newPassword
1844
1844
  */
1845
1845
  async changePassword(e) {
1846
- const { userId: r, currentPassword: s, newPassword: o, appId: i } = e;
1846
+ const { userId: r, currentPassword: s, newPassword: a, appId: i } = e;
1847
1847
  if (!r) throw new Error("changePassword: 'userId' is required");
1848
- if (!s || !o)
1848
+ if (!s || !a)
1849
1849
  throw new Error(
1850
1850
  "changePassword: both 'currentPassword' and 'newPassword' are required"
1851
1851
  );
1852
1852
  return this.request("PUT", `/users/change-password/${r}`, {
1853
1853
  currentPassword: s,
1854
- newPassword: o,
1854
+ newPassword: a,
1855
1855
  appId: i || this.appId
1856
1856
  });
1857
1857
  }
@@ -1900,13 +1900,13 @@ class uo {
1900
1900
  * @param params requires token + otp
1901
1901
  */
1902
1902
  async verifyEmail(e) {
1903
- const { token: r, otp: s, appId: o } = e;
1903
+ const { token: r, otp: s, appId: a } = e;
1904
1904
  if (!r) throw new Error("verifyEmail: 'token' is required");
1905
1905
  if (!s) throw new Error("verifyEmail: 'otp' is required");
1906
1906
  return this.request(
1907
1907
  "POST",
1908
1908
  "/users/verify-email",
1909
- { otp: s, appId: o || this.appId },
1909
+ { otp: s, appId: a || this.appId },
1910
1910
  { Authorization: `Bearer ${r}` }
1911
1911
  );
1912
1912
  }
@@ -1927,15 +1927,15 @@ class uo {
1927
1927
  * @param params requires email, otp, newPassword
1928
1928
  */
1929
1929
  async resetPassword(e) {
1930
- const { email: r, otp: s, newPassword: o, appId: i } = e;
1931
- if (!r || !s || !o)
1930
+ const { email: r, otp: s, newPassword: a, appId: i } = e;
1931
+ if (!r || !s || !a)
1932
1932
  throw new Error(
1933
1933
  "resetPassword: 'email', 'otp' and 'newPassword' are required"
1934
1934
  );
1935
1935
  return this.request("POST", "/users/reset-password", {
1936
1936
  email: r,
1937
1937
  otp: s,
1938
- newPassword: o,
1938
+ newPassword: a,
1939
1939
  appId: i || this.appId
1940
1940
  });
1941
1941
  }
@@ -1963,8 +1963,30 @@ class uo {
1963
1963
  async searchUserData(e) {
1964
1964
  const { userId: r, ...s } = e;
1965
1965
  if (!r) throw new Error("userId required");
1966
- const o = new URLSearchParams(s).toString();
1967
- return this.request("GET", `/users/${r}/data/search?${o}`);
1966
+ const a = new URLSearchParams(s).toString();
1967
+ return this.request("GET", `/users/${r}/data/search?${a}`);
1968
+ }
1969
+ /**
1970
+ * Search user's extra data by dynamic reference keys
1971
+ * @example
1972
+ * searchUserDataByKeys({
1973
+ * userId: "123",
1974
+ * category: "orders",
1975
+ * shopId: 12,
1976
+ * productId: 99,
1977
+ * status: "active"
1978
+ * })
1979
+ */
1980
+ async searchUserDataByKeys(e) {
1981
+ const { userId: r, ...s } = e;
1982
+ if (!r)
1983
+ throw new Error("searchUserDataByKeys: 'userId' is required");
1984
+ if (!s.category)
1985
+ throw new Error("searchUserDataByKeys: 'category' is required");
1986
+ const a = new URLSearchParams(
1987
+ Object.entries(s).reduce((i, [o, l]) => (l != null && (i[o] = String(l)), i), {})
1988
+ ).toString();
1989
+ return this.request("GET", `/users/${r}/data/searchbyref?${a}`);
1968
1990
  }
1969
1991
  /**
1970
1992
  * Fetch ALL users' merged data for a specific app
@@ -1999,14 +2021,14 @@ class uo {
1999
2021
  * @param params requires userId and data object
2000
2022
  */
2001
2023
  async addUserData(e) {
2002
- const { userId: r, dataCategory: s, data: o } = e;
2024
+ const { userId: r, dataCategory: s, data: a } = e;
2003
2025
  if (!r) throw new Error("addUserData: 'userId' is required");
2004
2026
  if (!s)
2005
2027
  throw new Error("addUserData: 'dataCategory' is required");
2006
- if (!o) throw new Error("addUserData: 'data' is required");
2028
+ if (!a) throw new Error("addUserData: 'data' is required");
2007
2029
  return this.request("POST", `/users/${r}/data`, {
2008
2030
  dataCategory: s,
2009
- ...o
2031
+ ...a
2010
2032
  });
2011
2033
  }
2012
2034
  /**
@@ -2014,11 +2036,11 @@ class uo {
2014
2036
  * @param params requires userId, dataId, and updated fields
2015
2037
  */
2016
2038
  async updateUserData(e) {
2017
- const { userId: r, dataId: s, data: o } = e;
2039
+ const { userId: r, dataId: s, data: a } = e;
2018
2040
  if (!r || !s)
2019
2041
  throw new Error("updateUserData: 'userId' and 'dataId' are required");
2020
- if (!o) throw new Error("updateUserData: 'data' is required");
2021
- return this.request("PUT", `/users/${r}/data/${s}`, o);
2042
+ if (!a) throw new Error("updateUserData: 'data' is required");
2043
+ return this.request("PUT", `/users/${r}/data/${s}`, a);
2022
2044
  }
2023
2045
  /**
2024
2046
  * Delete a data object by its id
@@ -2042,22 +2064,22 @@ var ze = { exports: {} }, ke = {};
2042
2064
  * LICENSE file in the root directory of this source tree.
2043
2065
  */
2044
2066
  var Ot;
2045
- function Wn() {
2067
+ function qn() {
2046
2068
  if (Ot) return ke;
2047
2069
  Ot = 1;
2048
2070
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
2049
- function r(s, o, i) {
2050
- var a = null;
2051
- if (i !== void 0 && (a = "" + i), o.key !== void 0 && (a = "" + o.key), "key" in o) {
2071
+ function r(s, a, i) {
2072
+ var o = null;
2073
+ if (i !== void 0 && (o = "" + i), a.key !== void 0 && (o = "" + a.key), "key" in a) {
2052
2074
  i = {};
2053
- for (var l in o)
2054
- l !== "key" && (i[l] = o[l]);
2055
- } else i = o;
2056
- return o = i.ref, {
2075
+ for (var l in a)
2076
+ l !== "key" && (i[l] = a[l]);
2077
+ } else i = a;
2078
+ return a = i.ref, {
2057
2079
  $$typeof: t,
2058
2080
  type: s,
2059
- key: a,
2060
- ref: o !== void 0 ? o : null,
2081
+ key: o,
2082
+ ref: a !== void 0 ? a : null,
2061
2083
  props: i
2062
2084
  };
2063
2085
  }
@@ -2074,7 +2096,7 @@ var Ee = {};
2074
2096
  * LICENSE file in the root directory of this source tree.
2075
2097
  */
2076
2098
  var zt;
2077
- function qn() {
2099
+ function Wn() {
2078
2100
  return zt || (zt = 1, process.env.NODE_ENV !== "production" && (function() {
2079
2101
  function t(f) {
2080
2102
  if (f == null) return null;
@@ -2092,7 +2114,7 @@ function qn() {
2092
2114
  return "Suspense";
2093
2115
  case I:
2094
2116
  return "SuspenseList";
2095
- case q:
2117
+ case W:
2096
2118
  return "Activity";
2097
2119
  }
2098
2120
  if (typeof f == "object")
@@ -2150,14 +2172,14 @@ function qn() {
2150
2172
  return "<...>";
2151
2173
  }
2152
2174
  }
2153
- function o() {
2175
+ function a() {
2154
2176
  var f = V.A;
2155
2177
  return f === null ? null : f.getOwner();
2156
2178
  }
2157
2179
  function i() {
2158
2180
  return Error("react-stack-top-frame");
2159
2181
  }
2160
- function a(f) {
2182
+ function o(f) {
2161
2183
  if (Z.call(f, "key")) {
2162
2184
  var S = Object.getOwnPropertyDescriptor(f, "key").get;
2163
2185
  if (S && S.isReactWarning) return !1;
@@ -2246,7 +2268,7 @@ React keys must be passed directly to JSX without using spread:
2246
2268
  Y
2247
2269
  ), G[Y + k] = !0);
2248
2270
  }
2249
- if (Y = null, x !== void 0 && (r(x), Y = "" + x), a(S) && (r(S.key), Y = "" + S.key), "key" in S) {
2271
+ if (Y = null, x !== void 0 && (r(x), Y = "" + x), o(S) && (r(S.key), Y = "" + S.key), "key" in S) {
2250
2272
  x = {};
2251
2273
  for (var ue in S)
2252
2274
  ue !== "key" && (x[ue] = S[ue]);
@@ -2258,7 +2280,7 @@ React keys must be passed directly to JSX without using spread:
2258
2280
  f,
2259
2281
  Y,
2260
2282
  x,
2261
- o(),
2283
+ a(),
2262
2284
  $,
2263
2285
  N
2264
2286
  );
@@ -2269,7 +2291,7 @@ React keys must be passed directly to JSX without using spread:
2269
2291
  function y(f) {
2270
2292
  return typeof f == "object" && f !== null && f.$$typeof === d;
2271
2293
  }
2272
- var w = Le, d = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), C = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), V = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, T = Array.isArray, J = console.createTask ? console.createTask : function() {
2294
+ var w = Le, d = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), C = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), V = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, T = Array.isArray, J = console.createTask ? console.createTask : function() {
2273
2295
  return null;
2274
2296
  };
2275
2297
  w = {
@@ -2306,24 +2328,24 @@ React keys must be passed directly to JSX without using spread:
2306
2328
  }
2307
2329
  var At;
2308
2330
  function Bn() {
2309
- return At || (At = 1, process.env.NODE_ENV === "production" ? ze.exports = Wn() : ze.exports = qn()), ze.exports;
2331
+ return At || (At = 1, process.env.NODE_ENV === "production" ? ze.exports = qn() : ze.exports = Wn()), ze.exports;
2310
2332
  }
2311
2333
  var n = Bn();
2312
2334
  const Hn = async (t, e) => {
2313
- const { name: r, email: s, password: o, appId: i, phone: a, address: l, avatarUrl: h, isActive: c = !0, role: u = "user" } = t, { baseUrl: b, apiKey: y } = e;
2335
+ const { name: r, email: s, password: a, appId: i, phone: o, address: l, avatarUrl: h, isActive: c = !0, role: u = "user" } = t, { baseUrl: b, apiKey: y } = e;
2314
2336
  if (!y)
2315
2337
  throw new Error("API key is required for signup");
2316
- if (!r || !s || !o || !i)
2338
+ if (!r || !s || !a || !i)
2317
2339
  throw new Error("Name, email, password, and appId are required");
2318
2340
  try {
2319
- const w = await W.post(
2341
+ const w = await q.post(
2320
2342
  `${b}/users/signup`,
2321
2343
  {
2322
2344
  name: r,
2323
2345
  email: s,
2324
- password: o,
2346
+ password: a,
2325
2347
  appId: i,
2326
- phone: a,
2348
+ phone: o,
2327
2349
  address: l,
2328
2350
  avatarUrl: h,
2329
2351
  isActive: c,
@@ -2410,9 +2432,9 @@ const Gn = Nt(
2410
2432
  size: e = 24,
2411
2433
  strokeWidth: r = 2,
2412
2434
  absoluteStrokeWidth: s,
2413
- className: o = "",
2435
+ className: a = "",
2414
2436
  children: i,
2415
- iconNode: a,
2437
+ iconNode: o,
2416
2438
  ...l
2417
2439
  }, h) => Xe(
2418
2440
  "svg",
@@ -2423,12 +2445,12 @@ const Gn = Nt(
2423
2445
  height: e,
2424
2446
  stroke: t,
2425
2447
  strokeWidth: s ? Number(r) * 24 / Number(e) : r,
2426
- className: ir("lucide", o),
2448
+ className: ir("lucide", a),
2427
2449
  ...!i && !Kn(l) && { "aria-hidden": "true" },
2428
2450
  ...l
2429
2451
  },
2430
2452
  [
2431
- ...a.map(([c, u]) => Xe(c, u)),
2453
+ ...o.map(([c, u]) => Xe(c, u)),
2432
2454
  ...Array.isArray(i) ? i : [i]
2433
2455
  ]
2434
2456
  )
@@ -2441,7 +2463,7 @@ const Gn = Nt(
2441
2463
  */
2442
2464
  const B = (t, e) => {
2443
2465
  const r = Nt(
2444
- ({ className: s, ...o }, i) => Xe(Gn, {
2466
+ ({ className: s, ...a }, i) => Xe(Gn, {
2445
2467
  ref: i,
2446
2468
  iconNode: e,
2447
2469
  className: ir(
@@ -2449,7 +2471,7 @@ const B = (t, e) => {
2449
2471
  `lucide-${t}`,
2450
2472
  s
2451
2473
  ),
2452
- ...o
2474
+ ...a
2453
2475
  })
2454
2476
  );
2455
2477
  return r.displayName = _t(t), r;
@@ -2525,11 +2547,11 @@ const ns = [
2525
2547
  * This source code is licensed under the ISC license.
2526
2548
  * See the LICENSE file in the root directory of this source tree.
2527
2549
  */
2528
- const os = [
2550
+ const as = [
2529
2551
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
2530
2552
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
2531
2553
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
2532
- ], as = B("ellipsis-vertical", os);
2554
+ ], os = B("ellipsis-vertical", as);
2533
2555
  /**
2534
2556
  * @license lucide-react v0.544.0 - ISC
2535
2557
  *
@@ -2641,7 +2663,7 @@ const xs = [
2641
2663
  * This source code is licensed under the ISC license.
2642
2664
  * See the LICENSE file in the root directory of this source tree.
2643
2665
  */
2644
- const gs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], oe = B("loader-circle", gs);
2666
+ const gs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ae = B("loader-circle", gs);
2645
2667
  /**
2646
2668
  * @license lucide-react v0.544.0 - ISC
2647
2669
  *
@@ -2865,18 +2887,18 @@ const Ls = [
2865
2887
  baseUrl: "",
2866
2888
  apiKey: "",
2867
2889
  appId: ""
2868
- }, po = (t) => {
2890
+ }, ua = (t) => {
2869
2891
  if (!t.baseUrl || !t.apiKey || !t.appId)
2870
2892
  throw new Error("baseUrl, apiKey, and appId are required");
2871
2893
  Ue.baseUrl = t.baseUrl, Ue.apiKey = t.apiKey, Ue.appId = t.appId;
2872
- }, ge = () => Ue, fo = ({
2894
+ }, ge = () => Ue, pa = ({
2873
2895
  logoUrl: t,
2874
2896
  logoLinkUrl: e,
2875
2897
  title: r = "Create Your Account",
2876
2898
  subtitle: s = "Join our platform today",
2877
- footerText: o = "Secure authentication powered by Neuctra Authix",
2899
+ footerText: a = "Secure authentication powered by Neuctra Authix",
2878
2900
  primaryColor: i = "#00C214",
2879
- gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
2901
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
2880
2902
  darkMode: l = !0,
2881
2903
  // Only avatar is optional
2882
2904
  showAvatar: h = !1,
@@ -2894,7 +2916,7 @@ const Ls = [
2894
2916
  password: "",
2895
2917
  role: c.length ? c[0] : "user",
2896
2918
  ...h && { avatarUrl: "" }
2897
- }, [R, A] = O(_), [C, M] = O(!1), [g, I] = O(!1), [v, U] = O(null), [q, F] = O({}), [V, Z] = O(!1), T = l ? "#ffffff" : "#111827", J = l ? "#a1a1aa" : "#6b7280", z = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", P = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
2919
+ }, [R, A] = O(_), [C, M] = O(!1), [g, I] = O(!1), [v, U] = O(null), [W, F] = O({}), [V, Z] = O(!1), T = l ? "#ffffff" : "#111827", J = l ? "#a1a1aa" : "#6b7280", z = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", P = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
2898
2920
  Le.useEffect(() => {
2899
2921
  if (typeof window < "u") {
2900
2922
  const S = () => Z(window.innerWidth < 768);
@@ -2903,7 +2925,7 @@ const Ls = [
2903
2925
  }, []);
2904
2926
  const K = (S) => {
2905
2927
  const { name: x, value: k } = S.target;
2906
- A(($) => ({ ...$, [x]: k })), q[x] && F(($) => ({ ...$, [x]: void 0 }));
2928
+ A(($) => ({ ...$, [x]: k })), W[x] && F(($) => ({ ...$, [x]: void 0 }));
2907
2929
  }, Q = () => {
2908
2930
  const S = {};
2909
2931
  return R.name.trim() || (S.name = "Name is required"), R.email.trim() ? /\S+@\S+\.\S+/.test(R.email) || (S.email = "Invalid email address") : S.email = "Email is required", R.password ? R.password.length < 6 && (S.password = "Password must be at least 6 characters") : S.password = "Password is required", F(S), Object.keys(S).length === 0;
@@ -3188,12 +3210,12 @@ const Ls = [
3188
3210
  onChange: K,
3189
3211
  style: {
3190
3212
  ...f,
3191
- borderColor: q.name ? "#ef4444" : P
3213
+ borderColor: W.name ? "#ef4444" : P
3192
3214
  }
3193
3215
  }
3194
3216
  )
3195
3217
  ] }),
3196
- q.name && /* @__PURE__ */ n.jsx(
3218
+ W.name && /* @__PURE__ */ n.jsx(
3197
3219
  "span",
3198
3220
  {
3199
3221
  style: {
@@ -3201,7 +3223,7 @@ const Ls = [
3201
3223
  fontSize: "12px",
3202
3224
  marginTop: "2px"
3203
3225
  },
3204
- children: q.name
3226
+ children: W.name
3205
3227
  }
3206
3228
  )
3207
3229
  ] }),
@@ -3243,12 +3265,12 @@ const Ls = [
3243
3265
  onChange: K,
3244
3266
  style: {
3245
3267
  ...f,
3246
- borderColor: q.email ? "#ef4444" : P
3268
+ borderColor: W.email ? "#ef4444" : P
3247
3269
  }
3248
3270
  }
3249
3271
  )
3250
3272
  ] }),
3251
- q.email && /* @__PURE__ */ n.jsx(
3273
+ W.email && /* @__PURE__ */ n.jsx(
3252
3274
  "span",
3253
3275
  {
3254
3276
  style: {
@@ -3256,7 +3278,7 @@ const Ls = [
3256
3278
  fontSize: "12px",
3257
3279
  marginTop: "2px"
3258
3280
  },
3259
- children: q.email
3281
+ children: W.email
3260
3282
  }
3261
3283
  )
3262
3284
  ] }),
@@ -3298,7 +3320,7 @@ const Ls = [
3298
3320
  onChange: K,
3299
3321
  style: {
3300
3322
  ...f,
3301
- borderColor: q.password ? "#ef4444" : P
3323
+ borderColor: W.password ? "#ef4444" : P
3302
3324
  }
3303
3325
  }
3304
3326
  ),
@@ -3322,7 +3344,7 @@ const Ls = [
3322
3344
  }
3323
3345
  )
3324
3346
  ] }),
3325
- q.password && /* @__PURE__ */ n.jsx(
3347
+ W.password && /* @__PURE__ */ n.jsx(
3326
3348
  "span",
3327
3349
  {
3328
3350
  style: {
@@ -3330,7 +3352,7 @@ const Ls = [
3330
3352
  fontSize: "12px",
3331
3353
  marginTop: "2px"
3332
3354
  },
3333
- children: q.password
3355
+ children: W.password
3334
3356
  }
3335
3357
  )
3336
3358
  ] }),
@@ -3430,7 +3452,7 @@ const Ls = [
3430
3452
  disabled: g,
3431
3453
  style: {
3432
3454
  padding: "12px",
3433
- background: a,
3455
+ background: o,
3434
3456
  color: "#fff",
3435
3457
  border: "none",
3436
3458
  borderRadius: "10px",
@@ -3488,17 +3510,17 @@ const Ls = [
3488
3510
  }
3489
3511
  );
3490
3512
  }, Fs = async (t, e) => {
3491
- const { email: r, password: s, appId: o } = t, { baseUrl: i, apiKey: a } = e;
3492
- if (!a)
3513
+ const { email: r, password: s, appId: a } = t, { baseUrl: i, apiKey: o } = e;
3514
+ if (!o)
3493
3515
  throw new Error("API key is required for login");
3494
3516
  try {
3495
- const l = await W.post(
3517
+ const l = await q.post(
3496
3518
  `${i}/users/login`,
3497
- { email: r, password: s, appId: o },
3519
+ { email: r, password: s, appId: a },
3498
3520
  {
3499
3521
  headers: {
3500
3522
  "Content-Type": "application/json",
3501
- "x-api-key": a
3523
+ "x-api-key": o
3502
3524
  }
3503
3525
  }
3504
3526
  );
@@ -3511,20 +3533,20 @@ const Ls = [
3511
3533
  status: l.response?.status || 500
3512
3534
  };
3513
3535
  }
3514
- }, xo = ({
3536
+ }, fa = ({
3515
3537
  logoUrl: t,
3516
3538
  logoLinkUrl: e,
3517
3539
  title: r = "Sign In to Your Account",
3518
3540
  subtitle: s = "Welcome back! Please enter your details",
3519
- footerText: o = "Secure authentication powered by Neuctra Authix",
3541
+ footerText: a = "Secure authentication powered by Neuctra Authix",
3520
3542
  primaryColor: i = "#00C214",
3521
- gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3543
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
3522
3544
  darkMode: l = !0,
3523
3545
  signupUrl: h,
3524
3546
  onSuccess: c,
3525
3547
  onError: u
3526
3548
  }) => {
3527
- const { baseUrl: b, apiKey: y, appId: w } = ge(), [d, j] = O("login"), [m, _] = O(1), [R, A] = O(!1), [C, M] = O(!1), [g, I] = O(null), [v, U] = O(""), [q, F] = O(""), [V, Z] = O({
3549
+ const { baseUrl: b, apiKey: y, appId: w } = ge(), [d, j] = O("login"), [m, _] = O(1), [R, A] = O(!1), [C, M] = O(!1), [g, I] = O(null), [v, U] = O(""), [W, F] = O(""), [V, Z] = O({
3528
3550
  email: "",
3529
3551
  otp: "",
3530
3552
  newPassword: "",
@@ -3540,7 +3562,7 @@ const Ls = [
3540
3562
  $.preventDefault(), M(!0), I(null);
3541
3563
  try {
3542
3564
  const N = await Fs(
3543
- { email: v, password: q, appId: w },
3565
+ { email: v, password: W, appId: w },
3544
3566
  { baseUrl: b, apiKey: y }
3545
3567
  );
3546
3568
  I({ type: "success", text: `Welcome ${N.name}` }), c?.(N);
@@ -3555,7 +3577,7 @@ const Ls = [
3555
3577
  }, S = async ($) => {
3556
3578
  $.preventDefault(), M(!0), I(null);
3557
3579
  try {
3558
- const N = await W.post(
3580
+ const N = await q.post(
3559
3581
  `${b}/users/forgot-password`,
3560
3582
  {
3561
3583
  email: V.email,
@@ -3578,7 +3600,7 @@ const Ls = [
3578
3600
  }, x = async ($) => {
3579
3601
  $.preventDefault(), M(!0), I(null);
3580
3602
  try {
3581
- const N = await W.post(
3603
+ const N = await q.post(
3582
3604
  `${b}/users/reset-password`,
3583
3605
  V,
3584
3606
  { headers: { "x-api-key": y } }
@@ -3773,7 +3795,7 @@ const Ls = [
3773
3795
  id: "login-password",
3774
3796
  type: R ? "text" : "password",
3775
3797
  placeholder: "Enter your password",
3776
- value: q,
3798
+ value: W,
3777
3799
  onChange: ($) => F($.target.value),
3778
3800
  style: k
3779
3801
  }
@@ -3847,7 +3869,7 @@ const Ls = [
3847
3869
  disabled: C,
3848
3870
  style: {
3849
3871
  padding: "12px",
3850
- background: a,
3872
+ background: o,
3851
3873
  color: "#fff",
3852
3874
  border: "none",
3853
3875
  borderRadius: "10px",
@@ -4023,7 +4045,7 @@ const Ls = [
4023
4045
  disabled: C,
4024
4046
  style: {
4025
4047
  padding: "12px",
4026
- background: a,
4048
+ background: o,
4027
4049
  color: "#fff",
4028
4050
  border: "none",
4029
4051
  fontSize: "14px",
@@ -4097,14 +4119,14 @@ const Ls = [
4097
4119
  )
4098
4120
  }
4099
4121
  );
4100
- }, ho = ({
4122
+ }, xa = ({
4101
4123
  children: t,
4102
4124
  fallback: e = null,
4103
4125
  className: r,
4104
4126
  width: s,
4105
- height: o
4127
+ height: a
4106
4128
  }) => {
4107
- const [i, a] = O(() => {
4129
+ const [i, o] = O(() => {
4108
4130
  if (typeof window > "u") return !1;
4109
4131
  try {
4110
4132
  const l = localStorage.getItem("userInfo");
@@ -4118,11 +4140,11 @@ const Ls = [
4118
4140
  if (!(typeof window > "u"))
4119
4141
  try {
4120
4142
  const h = localStorage.getItem("userInfo");
4121
- a(
4143
+ o(
4122
4144
  !!(h && h !== "undefined" && h !== "null")
4123
4145
  );
4124
4146
  } catch {
4125
- a(!1);
4147
+ o(!1);
4126
4148
  }
4127
4149
  };
4128
4150
  return window.addEventListener("storage", l), () => {
@@ -4136,19 +4158,19 @@ const Ls = [
4136
4158
  display: "flex",
4137
4159
  alignItems: "center",
4138
4160
  width: s,
4139
- height: o
4161
+ height: a
4140
4162
  },
4141
4163
  children: t
4142
4164
  }
4143
4165
  ) : typeof e == "function" ? e() : e;
4144
- }, go = ({
4166
+ }, ha = ({
4145
4167
  children: t,
4146
4168
  fallback: e = null,
4147
4169
  className: r,
4148
4170
  width: s,
4149
- height: o
4171
+ height: a
4150
4172
  }) => {
4151
- const [i, a] = O(() => {
4173
+ const [i, o] = O(() => {
4152
4174
  if (typeof window > "u") return !0;
4153
4175
  try {
4154
4176
  const l = localStorage.getItem("userInfo");
@@ -4161,11 +4183,11 @@ const Ls = [
4161
4183
  const l = () => {
4162
4184
  try {
4163
4185
  const h = localStorage.getItem("userInfo");
4164
- a(
4186
+ o(
4165
4187
  !h || h === "undefined" || h === "null"
4166
4188
  );
4167
4189
  } catch {
4168
- a(!0);
4190
+ o(!0);
4169
4191
  }
4170
4192
  };
4171
4193
  return l(), window.addEventListener("storage", l), () => window.removeEventListener("storage", l);
@@ -4177,7 +4199,7 @@ const Ls = [
4177
4199
  display: "flex",
4178
4200
  alignItems: "center",
4179
4201
  width: s,
4180
- height: o
4202
+ height: a
4181
4203
  },
4182
4204
  children: t
4183
4205
  }
@@ -4187,9 +4209,9 @@ const Ls = [
4187
4209
  onClose: e,
4188
4210
  onSuccess: r,
4189
4211
  onError: s,
4190
- userId: o,
4212
+ userId: a,
4191
4213
  token: i,
4192
- colors: a
4214
+ colors: o
4193
4215
  }) => {
4194
4216
  const { baseUrl: l, apiKey: h, appId: c } = ge(), [u, b] = O(!1), [y, w] = O(""), [d, j] = O("warning"), [m, _] = O(!1);
4195
4217
  if (te(() => {
@@ -4202,7 +4224,7 @@ const Ls = [
4202
4224
  const R = async () => {
4203
4225
  b(!0), j("processing");
4204
4226
  try {
4205
- const { data: g } = await W.delete(`${l}/users/delete/${o}`, {
4227
+ const { data: g } = await q.delete(`${l}/users/delete/${a}`, {
4206
4228
  data: { appId: c },
4207
4229
  headers: {
4208
4230
  "x-api-key": h
@@ -4264,7 +4286,7 @@ const Ls = [
4264
4286
  "h3",
4265
4287
  {
4266
4288
  style: {
4267
- color: a.textPrimary,
4289
+ color: o.textPrimary,
4268
4290
  margin: 0,
4269
4291
  fontSize: "20px",
4270
4292
  fontWeight: 700,
@@ -4284,7 +4306,7 @@ const Ls = [
4284
4306
  style: {
4285
4307
  background: "transparent",
4286
4308
  border: "none",
4287
- color: a.textTertiary,
4309
+ color: o.textTertiary,
4288
4310
  cursor: "pointer",
4289
4311
  padding: "8px",
4290
4312
  borderRadius: "8px",
@@ -4297,10 +4319,10 @@ const Ls = [
4297
4319
  transition: "all 0.2s ease"
4298
4320
  },
4299
4321
  onMouseOver: (g) => {
4300
- g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.color = a.textPrimary;
4322
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.color = o.textPrimary;
4301
4323
  },
4302
4324
  onMouseOut: (g) => {
4303
- g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = a.textTertiary;
4325
+ g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = o.textTertiary;
4304
4326
  },
4305
4327
  children: /* @__PURE__ */ n.jsx(Pe, { size: 20 })
4306
4328
  }
@@ -4315,8 +4337,8 @@ const Ls = [
4315
4337
  display: "flex",
4316
4338
  gap: "16px",
4317
4339
  padding: "20px",
4318
- background: `${a.error}15`,
4319
- border: `1px solid ${a.error}30`,
4340
+ background: `${o.error}15`,
4341
+ border: `1px solid ${o.error}30`,
4320
4342
  borderRadius: "12px",
4321
4343
  marginBottom: "20px"
4322
4344
  },
@@ -4325,7 +4347,7 @@ const Ls = [
4325
4347
  "div",
4326
4348
  {
4327
4349
  style: {
4328
- color: a.error,
4350
+ color: o.error,
4329
4351
  flexShrink: 0,
4330
4352
  display: "flex",
4331
4353
  alignItems: "flex-start"
@@ -4338,7 +4360,7 @@ const Ls = [
4338
4360
  "h4",
4339
4361
  {
4340
4362
  style: {
4341
- color: a.textPrimary,
4363
+ color: o.textPrimary,
4342
4364
  margin: "0 0 12px 0",
4343
4365
  fontSize: "16px",
4344
4366
  fontWeight: 600
@@ -4375,10 +4397,10 @@ const Ls = [
4375
4397
  alignItems: "center",
4376
4398
  gap: "10px",
4377
4399
  fontSize: "14px",
4378
- color: a.textSecondary
4400
+ color: o.textSecondary
4379
4401
  },
4380
4402
  children: [
4381
- /* @__PURE__ */ n.jsx("div", { style: { color: a.error, flexShrink: 0 }, children: g.icon }),
4403
+ /* @__PURE__ */ n.jsx("div", { style: { color: o.error, flexShrink: 0 }, children: g.icon }),
4382
4404
  /* @__PURE__ */ n.jsx("span", { children: g.text })
4383
4405
  ]
4384
4406
  },
@@ -4408,9 +4430,9 @@ const Ls = [
4408
4430
  style: {
4409
4431
  padding: "10px 24px",
4410
4432
  borderRadius: "10px",
4411
- border: `1.5px solid ${a.border}`,
4433
+ border: `1.5px solid ${o.border}`,
4412
4434
  background: "transparent",
4413
- color: a.textPrimary,
4435
+ color: o.textPrimary,
4414
4436
  fontSize: "14px",
4415
4437
  fontWeight: 500,
4416
4438
  cursor: "pointer",
@@ -4419,7 +4441,7 @@ const Ls = [
4419
4441
  transition: "all 0.2s ease"
4420
4442
  },
4421
4443
  onMouseOver: (g) => {
4422
- g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
4444
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.transform = "translateY(-1px)";
4423
4445
  },
4424
4446
  onMouseOut: (g) => {
4425
4447
  g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
@@ -4498,7 +4520,7 @@ const Ls = [
4498
4520
  "h3",
4499
4521
  {
4500
4522
  style: {
4501
- color: a.textPrimary,
4523
+ color: o.textPrimary,
4502
4524
  margin: 0,
4503
4525
  fontSize: "20px",
4504
4526
  fontWeight: 700,
@@ -4515,7 +4537,7 @@ const Ls = [
4515
4537
  "p",
4516
4538
  {
4517
4539
  style: {
4518
- color: a.textSecondary,
4540
+ color: o.textSecondary,
4519
4541
  marginBottom: "16px",
4520
4542
  fontSize: "14px",
4521
4543
  lineHeight: "1.5"
@@ -4523,7 +4545,7 @@ const Ls = [
4523
4545
  children: [
4524
4546
  "Type",
4525
4547
  " ",
4526
- /* @__PURE__ */ n.jsx("strong", { style: { color: a.textPrimary }, children: '"delete my account"' }),
4548
+ /* @__PURE__ */ n.jsx("strong", { style: { color: o.textPrimary }, children: '"delete my account"' }),
4527
4549
  " ",
4528
4550
  "to confirm:"
4529
4551
  ]
@@ -4540,16 +4562,16 @@ const Ls = [
4540
4562
  width: "100%",
4541
4563
  padding: "14px 16px",
4542
4564
  borderRadius: "10px",
4543
- border: `2px solid ${A ? a.success : a.error}`,
4565
+ border: `2px solid ${A ? o.success : o.error}`,
4544
4566
  backgroundColor: "transparent",
4545
- color: a.textPrimary,
4567
+ color: o.textPrimary,
4546
4568
  fontSize: "15px",
4547
4569
  outline: "none",
4548
4570
  transition: "all 0.2s ease",
4549
4571
  boxSizing: "border-box"
4550
4572
  },
4551
4573
  onFocus: (g) => {
4552
- g.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
4574
+ g.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
4553
4575
  },
4554
4576
  onBlur: (g) => {
4555
4577
  g.target.style.boxShadow = "none";
@@ -4565,7 +4587,7 @@ const Ls = [
4565
4587
  alignItems: "center",
4566
4588
  gap: "8px",
4567
4589
  marginTop: "10px",
4568
- color: a.success,
4590
+ color: o.success,
4569
4591
  fontSize: "14px",
4570
4592
  fontWeight: 500
4571
4593
  },
@@ -4596,9 +4618,9 @@ const Ls = [
4596
4618
  style: {
4597
4619
  padding: "10px 24px",
4598
4620
  borderRadius: "10px",
4599
- border: `1.5px solid ${a.border}`,
4621
+ border: `1.5px solid ${o.border}`,
4600
4622
  background: "transparent",
4601
- color: a.textPrimary,
4623
+ color: o.textPrimary,
4602
4624
  fontSize: "14px",
4603
4625
  fontWeight: 500,
4604
4626
  cursor: "pointer",
@@ -4607,7 +4629,7 @@ const Ls = [
4607
4629
  transition: "all 0.2s ease"
4608
4630
  },
4609
4631
  onMouseOver: (g) => {
4610
- g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
4632
+ g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.transform = "translateY(-1px)";
4611
4633
  },
4612
4634
  onMouseOut: (g) => {
4613
4635
  g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
@@ -4682,7 +4704,7 @@ const Ls = [
4682
4704
  flexShrink: 0
4683
4705
  },
4684
4706
  children: /* @__PURE__ */ n.jsx(
4685
- oe,
4707
+ ae,
4686
4708
  {
4687
4709
  size: 20,
4688
4710
  style: {
@@ -4697,7 +4719,7 @@ const Ls = [
4697
4719
  "h3",
4698
4720
  {
4699
4721
  style: {
4700
- color: a.textPrimary,
4722
+ color: o.textPrimary,
4701
4723
  margin: 0,
4702
4724
  fontSize: "20px",
4703
4725
  fontWeight: 700,
@@ -4710,7 +4732,7 @@ const Ls = [
4710
4732
  "p",
4711
4733
  {
4712
4734
  style: {
4713
- color: a.textTertiary,
4735
+ color: o.textTertiary,
4714
4736
  margin: "4px 0 0 0",
4715
4737
  fontSize: "14px",
4716
4738
  lineHeight: "1.4"
@@ -4744,7 +4766,7 @@ const Ls = [
4744
4766
  padding: "12px",
4745
4767
  borderRadius: "8px",
4746
4768
  transition: "all 0.2s ease",
4747
- backgroundColor: g.active ? `${a.accent}10` : "transparent"
4769
+ backgroundColor: g.active ? `${o.accent}10` : "transparent"
4748
4770
  },
4749
4771
  children: [
4750
4772
  /* @__PURE__ */ n.jsx(
@@ -4754,9 +4776,9 @@ const Ls = [
4754
4776
  width: "8px",
4755
4777
  height: "8px",
4756
4778
  borderRadius: "50%",
4757
- backgroundColor: g.active ? a.accent : a.textTertiary,
4779
+ backgroundColor: g.active ? o.accent : o.textTertiary,
4758
4780
  transition: "all 0.3s ease",
4759
- boxShadow: g.active ? `0 0 0 4px ${a.accent}20` : "none"
4781
+ boxShadow: g.active ? `0 0 0 4px ${o.accent}20` : "none"
4760
4782
  }
4761
4783
  }
4762
4784
  ),
@@ -4765,7 +4787,7 @@ const Ls = [
4765
4787
  {
4766
4788
  style: {
4767
4789
  fontSize: "14px",
4768
- color: g.active ? a.textPrimary : a.textSecondary,
4790
+ color: g.active ? o.textPrimary : o.textSecondary,
4769
4791
  fontWeight: g.active ? 500 : 400
4770
4792
  },
4771
4793
  children: g.text
@@ -4785,17 +4807,17 @@ const Ls = [
4785
4807
  alignItems: "center",
4786
4808
  gap: "10px",
4787
4809
  padding: "16px",
4788
- background: `${a.accent}10`,
4810
+ background: `${o.accent}10`,
4789
4811
  borderRadius: "10px",
4790
4812
  fontSize: "14px",
4791
- color: a.textSecondary
4813
+ color: o.textSecondary
4792
4814
  },
4793
4815
  children: [
4794
4816
  /* @__PURE__ */ n.jsx(
4795
4817
  dr,
4796
4818
  {
4797
4819
  size: 18,
4798
- style: { color: a.accent, flexShrink: 0 }
4820
+ style: { color: o.accent, flexShrink: 0 }
4799
4821
  }
4800
4822
  ),
4801
4823
  /* @__PURE__ */ n.jsx("span", { children: "You will be redirected to the login page shortly" })
@@ -4837,7 +4859,7 @@ const Ls = [
4837
4859
  "h3",
4838
4860
  {
4839
4861
  style: {
4840
- color: a.textPrimary,
4862
+ color: o.textPrimary,
4841
4863
  margin: 0,
4842
4864
  fontSize: "20px",
4843
4865
  fontWeight: 700,
@@ -4850,7 +4872,7 @@ const Ls = [
4850
4872
  "p",
4851
4873
  {
4852
4874
  style: {
4853
- color: a.textTertiary,
4875
+ color: o.textTertiary,
4854
4876
  margin: "4px 0 0 0",
4855
4877
  fontSize: "14px",
4856
4878
  lineHeight: "1.4"
@@ -4868,8 +4890,8 @@ const Ls = [
4868
4890
  style: {
4869
4891
  textAlign: "center",
4870
4892
  padding: "20px",
4871
- background: `${a.success}10`,
4872
- border: `1px solid ${a.success}20`,
4893
+ background: `${o.success}10`,
4894
+ border: `1px solid ${o.success}20`,
4873
4895
  borderRadius: "12px",
4874
4896
  marginBottom: "24px"
4875
4897
  },
@@ -4879,7 +4901,7 @@ const Ls = [
4879
4901
  {
4880
4902
  size: 48,
4881
4903
  style: {
4882
- color: a.success,
4904
+ color: o.success,
4883
4905
  marginBottom: "12px",
4884
4906
  display: "block",
4885
4907
  margin: "0 auto 12px auto"
@@ -4890,7 +4912,7 @@ const Ls = [
4890
4912
  "p",
4891
4913
  {
4892
4914
  style: {
4893
- color: a.textPrimary,
4915
+ color: o.textPrimary,
4894
4916
  fontSize: "16px",
4895
4917
  fontWeight: 600,
4896
4918
  margin: "0 0 8px 0"
@@ -4902,7 +4924,7 @@ const Ls = [
4902
4924
  "p",
4903
4925
  {
4904
4926
  style: {
4905
- color: a.textSecondary,
4927
+ color: o.textSecondary,
4906
4928
  fontSize: "14px",
4907
4929
  margin: 0,
4908
4930
  lineHeight: "1.5"
@@ -4921,20 +4943,20 @@ const Ls = [
4921
4943
  alignItems: "center",
4922
4944
  gap: "10px",
4923
4945
  padding: "16px",
4924
- background: `${a.accent}10`,
4946
+ background: `${o.accent}10`,
4925
4947
  borderRadius: "10px",
4926
4948
  fontSize: "14px",
4927
- color: a.textSecondary,
4949
+ color: o.textSecondary,
4928
4950
  justifyContent: "center"
4929
4951
  },
4930
4952
  children: [
4931
4953
  /* @__PURE__ */ n.jsx(
4932
- oe,
4954
+ ae,
4933
4955
  {
4934
4956
  size: 16,
4935
4957
  style: {
4936
4958
  animation: "spin 1s linear infinite",
4937
- color: a.accent
4959
+ color: o.accent
4938
4960
  }
4939
4961
  }
4940
4962
  ),
@@ -4966,8 +4988,8 @@ const Ls = [
4966
4988
  "div",
4967
4989
  {
4968
4990
  style: {
4969
- backgroundColor: a.surface,
4970
- border: `1px solid ${a.border}`,
4991
+ backgroundColor: o.surface,
4992
+ border: `1px solid ${o.border}`,
4971
4993
  borderRadius: "20px",
4972
4994
  width: "100%",
4973
4995
  maxWidth: "480px",
@@ -5037,13 +5059,13 @@ const Ls = [
5037
5059
  ]
5038
5060
  }
5039
5061
  );
5040
- }, Ws = ({
5062
+ }, qs = ({
5041
5063
  isOpen: t,
5042
5064
  onClose: e,
5043
5065
  onUpdate: r,
5044
5066
  colors: s
5045
5067
  }) => {
5046
- const [o, i] = O(""), [a, l] = O(!1), [h, c] = O(!1), [u, b] = O({ isValid: !1, message: "", type: null });
5068
+ const [a, i] = O(""), [o, l] = O(!1), [h, c] = O(!1), [u, b] = O({ isValid: !1, message: "", type: null });
5047
5069
  if (te(() => {
5048
5070
  if (typeof window > "u") return;
5049
5071
  const d = () => {
@@ -5051,12 +5073,12 @@ const Ls = [
5051
5073
  };
5052
5074
  return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
5053
5075
  }, []), te(() => {
5054
- if (!o.trim()) {
5076
+ if (!a.trim()) {
5055
5077
  b({ isValid: !1, message: "", type: null });
5056
5078
  return;
5057
5079
  }
5058
5080
  try {
5059
- const d = new URL(o), j = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(d.pathname);
5081
+ const d = new URL(a), j = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(d.pathname);
5060
5082
  b(j ? {
5061
5083
  isValid: !0,
5062
5084
  message: "Valid image URL",
@@ -5073,12 +5095,12 @@ const Ls = [
5073
5095
  type: "error"
5074
5096
  });
5075
5097
  }
5076
- }, [o]), !t) return null;
5098
+ }, [a]), !t) return null;
5077
5099
  const y = async () => {
5078
- if (!(!o || !u.isValid)) {
5100
+ if (!(!a || !u.isValid)) {
5079
5101
  l(!0);
5080
5102
  try {
5081
- await r(o) && (i(""), e());
5103
+ await r(a) && (i(""), e());
5082
5104
  } finally {
5083
5105
  l(!1);
5084
5106
  }
@@ -5239,7 +5261,7 @@ const Ls = [
5239
5261
  type: "url",
5240
5262
  id: "avatar-url",
5241
5263
  placeholder: "https://example.com/your-avatar.jpg",
5242
- value: o,
5264
+ value: a,
5243
5265
  onChange: (d) => i(d.target.value),
5244
5266
  style: {
5245
5267
  width: "100%",
@@ -5260,7 +5282,7 @@ const Ls = [
5260
5282
  onBlur: (d) => {
5261
5283
  d.target.style.borderColor = u.type === "error" ? s.error : u.type === "success" ? s.success : s.border, d.target.style.boxShadow = "none";
5262
5284
  },
5263
- disabled: a
5285
+ disabled: o
5264
5286
  }
5265
5287
  ),
5266
5288
  /* @__PURE__ */ n.jsx(
@@ -5297,7 +5319,7 @@ const Ls = [
5297
5319
  }
5298
5320
  )
5299
5321
  ] }),
5300
- o && u.type === "success" && /* @__PURE__ */ n.jsxs(
5322
+ a && u.type === "success" && /* @__PURE__ */ n.jsxs(
5301
5323
  "div",
5302
5324
  {
5303
5325
  style: {
@@ -5323,7 +5345,7 @@ const Ls = [
5323
5345
  /* @__PURE__ */ n.jsx(
5324
5346
  "img",
5325
5347
  {
5326
- src: o,
5348
+ src: a,
5327
5349
  alt: "Avatar preview",
5328
5350
  style: {
5329
5351
  width: "80px",
@@ -5360,7 +5382,7 @@ const Ls = [
5360
5382
  "button",
5361
5383
  {
5362
5384
  onClick: e,
5363
- disabled: a,
5385
+ disabled: o,
5364
5386
  style: {
5365
5387
  padding: "10px 24px",
5366
5388
  borderRadius: "10px",
@@ -5369,17 +5391,17 @@ const Ls = [
5369
5391
  color: s.textPrimary,
5370
5392
  fontSize: "14px",
5371
5393
  fontWeight: 500,
5372
- cursor: a ? "not-allowed" : "pointer",
5394
+ cursor: o ? "not-allowed" : "pointer",
5373
5395
  flex: h ? "none" : 1,
5374
5396
  minWidth: h ? "100%" : "120px",
5375
- opacity: a ? 0.6 : 1,
5397
+ opacity: o ? 0.6 : 1,
5376
5398
  transition: "all 0.2s ease"
5377
5399
  },
5378
5400
  onMouseOver: (d) => {
5379
- a || (d.currentTarget.style.backgroundColor = s.border, d.currentTarget.style.transform = "translateY(-1px)");
5401
+ o || (d.currentTarget.style.backgroundColor = s.border, d.currentTarget.style.transform = "translateY(-1px)");
5380
5402
  },
5381
5403
  onMouseOut: (d) => {
5382
- a || (d.currentTarget.style.backgroundColor = "transparent", d.currentTarget.style.transform = "translateY(0)");
5404
+ o || (d.currentTarget.style.backgroundColor = "transparent", d.currentTarget.style.transform = "translateY(0)");
5383
5405
  },
5384
5406
  children: "Cancel"
5385
5407
  }
@@ -5388,7 +5410,7 @@ const Ls = [
5388
5410
  "button",
5389
5411
  {
5390
5412
  onClick: y,
5391
- disabled: a || !u.isValid,
5413
+ disabled: o || !u.isValid,
5392
5414
  style: {
5393
5415
  padding: "10px 24px",
5394
5416
  borderRadius: "10px",
@@ -5397,26 +5419,26 @@ const Ls = [
5397
5419
  color: "#fff",
5398
5420
  fontSize: "14px",
5399
5421
  fontWeight: 600,
5400
- cursor: a || !u.isValid ? "not-allowed" : "pointer",
5422
+ cursor: o || !u.isValid ? "not-allowed" : "pointer",
5401
5423
  flex: h ? "none" : 1,
5402
5424
  minWidth: h ? "100%" : "140px",
5403
- opacity: a || !u.isValid ? 0.6 : 1,
5425
+ opacity: o || !u.isValid ? 0.6 : 1,
5404
5426
  display: "flex",
5405
5427
  alignItems: "center",
5406
5428
  justifyContent: "center",
5407
5429
  gap: "8px",
5408
5430
  transition: "all 0.2s ease",
5409
- boxShadow: a || !u.isValid ? "none" : `0 4px 12px ${s.accent}40`
5431
+ boxShadow: o || !u.isValid ? "none" : `0 4px 12px ${s.accent}40`
5410
5432
  },
5411
5433
  onMouseOver: (d) => {
5412
- !a && u.isValid && (d.currentTarget.style.transform = "translateY(-1px)", d.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5434
+ !o && u.isValid && (d.currentTarget.style.transform = "translateY(-1px)", d.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5413
5435
  },
5414
5436
  onMouseOut: (d) => {
5415
- !a && u.isValid && (d.currentTarget.style.transform = "translateY(0)", d.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5437
+ !o && u.isValid && (d.currentTarget.style.transform = "translateY(0)", d.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5416
5438
  },
5417
- children: a ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5439
+ children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5418
5440
  /* @__PURE__ */ n.jsx(
5419
- oe,
5441
+ ae,
5420
5442
  {
5421
5443
  size: 16,
5422
5444
  style: {
@@ -5489,15 +5511,15 @@ const Ls = [
5489
5511
  ]
5490
5512
  }
5491
5513
  );
5492
- }, qs = ({
5514
+ }, Ws = ({
5493
5515
  isOpen: t,
5494
5516
  onClose: e,
5495
5517
  onSuccess: r,
5496
5518
  onError: s,
5497
- userId: o,
5519
+ userId: a,
5498
5520
  colors: i
5499
5521
  }) => {
5500
- const { baseUrl: a, apiKey: l, appId: h } = ge(), [c, u] = O({
5522
+ const { baseUrl: o, apiKey: l, appId: h } = ge(), [c, u] = O({
5501
5523
  currentPassword: "",
5502
5524
  newPassword: "",
5503
5525
  confirmPassword: ""
@@ -5514,8 +5536,8 @@ const Ls = [
5514
5536
  return v(), window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
5515
5537
  }, []), !t) return null;
5516
5538
  const A = (v) => {
5517
- const { name: U, value: q } = v.target;
5518
- u((F) => ({ ...F, [U]: q })), b[U] && y((F) => ({ ...F, [U]: "" }));
5539
+ const { name: U, value: W } = v.target;
5540
+ u((F) => ({ ...F, [U]: W })), b[U] && y((F) => ({ ...F, [U]: "" }));
5519
5541
  }, C = (v) => {
5520
5542
  m((U) => ({ ...U, [v]: !U[v] }));
5521
5543
  }, M = () => {
@@ -5525,8 +5547,8 @@ const Ls = [
5525
5547
  if (v.preventDefault(), !!M()) {
5526
5548
  d(!0);
5527
5549
  try {
5528
- const { data: U } = await W.put(
5529
- `${a}/users/change-password/${o}`,
5550
+ const { data: U } = await q.put(
5551
+ `${o}/users/change-password/${a}`,
5530
5552
  {
5531
5553
  appId: h,
5532
5554
  currentPassword: c.currentPassword,
@@ -5682,7 +5704,7 @@ const Ls = [
5682
5704
  }
5683
5705
  ),
5684
5706
  /* @__PURE__ */ n.jsxs("form", { onSubmit: g, children: [
5685
- I.map(({ field: v, label: U, icon: q }) => /* @__PURE__ */ n.jsxs(
5707
+ I.map(({ field: v, label: U, icon: W }) => /* @__PURE__ */ n.jsxs(
5686
5708
  "div",
5687
5709
  {
5688
5710
  style: {
@@ -5717,7 +5739,7 @@ const Ls = [
5717
5739
  color: i.textTertiary,
5718
5740
  zIndex: 2
5719
5741
  },
5720
- children: q
5742
+ children: W
5721
5743
  }
5722
5744
  ),
5723
5745
  /* @__PURE__ */ n.jsx(
@@ -5874,7 +5896,7 @@ const Ls = [
5874
5896
  },
5875
5897
  children: w ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5876
5898
  /* @__PURE__ */ n.jsx(
5877
- oe,
5899
+ ae,
5878
5900
  {
5879
5901
  size: 16,
5880
5902
  style: {
@@ -5939,9 +5961,9 @@ const Ls = [
5939
5961
  onClose: e,
5940
5962
  onVerify: r,
5941
5963
  onSendOTP: s,
5942
- verifyFormData: o,
5964
+ verifyFormData: a,
5943
5965
  setVerifyFormData: i,
5944
- otpSent: a,
5966
+ otpSent: o,
5945
5967
  verifying: l,
5946
5968
  user: h,
5947
5969
  colors: c,
@@ -5949,7 +5971,7 @@ const Ls = [
5949
5971
  }) => {
5950
5972
  if (!t) return null;
5951
5973
  const b = () => {
5952
- e(), i({ email: h?.email || "", otp: "", appId: o.appId });
5974
+ e(), i({ email: h?.email || "", otp: "", appId: a.appId });
5953
5975
  };
5954
5976
  return /* @__PURE__ */ n.jsxs(
5955
5977
  "div",
@@ -5990,7 +6012,7 @@ const Ls = [
5990
6012
  "input",
5991
6013
  {
5992
6014
  type: "email",
5993
- value: o.email,
6015
+ value: a.email,
5994
6016
  onChange: (y) => i((w) => ({ ...w, email: y.target.value })),
5995
6017
  placeholder: "Enter your email",
5996
6018
  style: {
@@ -6005,7 +6027,7 @@ const Ls = [
6005
6027
  )
6006
6028
  ] })
6007
6029
  ] }),
6008
- a && /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6030
+ o && /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6009
6031
  /* @__PURE__ */ n.jsx("label", { style: { color: c.textSecondary }, children: "OTP" }),
6010
6032
  /* @__PURE__ */ n.jsxs("div", { className: "input-container", children: [
6011
6033
  /* @__PURE__ */ n.jsx(cr, { size: 18, style: { color: c.textTertiary }, "aria-hidden": "true" }),
@@ -6013,7 +6035,7 @@ const Ls = [
6013
6035
  "input",
6014
6036
  {
6015
6037
  type: "text",
6016
- value: o.otp,
6038
+ value: a.otp,
6017
6039
  onChange: (y) => i((w) => ({ ...w, otp: y.target.value })),
6018
6040
  placeholder: "Enter OTP",
6019
6041
  style: {
@@ -6028,7 +6050,7 @@ const Ls = [
6028
6050
  )
6029
6051
  ] })
6030
6052
  ] }),
6031
- /* @__PURE__ */ n.jsx("div", { className: "modal-actions", children: a ? /* @__PURE__ */ n.jsxs(
6053
+ /* @__PURE__ */ n.jsx("div", { className: "modal-actions", children: o ? /* @__PURE__ */ n.jsxs(
6032
6054
  "button",
6033
6055
  {
6034
6056
  type: "submit",
@@ -6040,7 +6062,7 @@ const Ls = [
6040
6062
  },
6041
6063
  "aria-label": l ? "Verifying email" : "Verify email",
6042
6064
  children: [
6043
- l ? /* @__PURE__ */ n.jsx(oe, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ce, { size: 16, "aria-hidden": "true" }),
6065
+ l ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ce, { size: 16, "aria-hidden": "true" }),
6044
6066
  l ? "Verifying..." : "Verify Email"
6045
6067
  ]
6046
6068
  }
@@ -6057,7 +6079,7 @@ const Ls = [
6057
6079
  },
6058
6080
  "aria-label": l ? "Sending OTP" : "Send OTP",
6059
6081
  children: [
6060
- l ? /* @__PURE__ */ n.jsx(oe, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ut, { size: 16, "aria-hidden": "true" }),
6082
+ l ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ut, { size: 16, "aria-hidden": "true" }),
6061
6083
  l ? "Sending..." : "Send OTP"
6062
6084
  ]
6063
6085
  }
@@ -6217,16 +6239,16 @@ const Ls = [
6217
6239
  ]
6218
6240
  }
6219
6241
  );
6220
- }, mo = ({
6242
+ }, ga = ({
6221
6243
  token: t,
6222
6244
  user: e = null,
6223
6245
  darkMode: r = !0,
6224
6246
  homeUrl: s,
6225
- onLogout: o,
6247
+ onLogout: a,
6226
6248
  onVerify: i,
6227
- primaryColor: a = "#00C212"
6249
+ primaryColor: o = "#00C212"
6228
6250
  }) => {
6229
- const { baseUrl: l, apiKey: h, appId: c } = ge(), [u, b] = O(null), [y, w] = O(e), [d, j] = O(!0), [m, _] = O(!1), [R, A] = O(!1), [C, M] = O(!1), [g, I] = O(!1), [v, U] = O(!1), [q, F] = O(!1), [V, Z] = O(!1), [T, J] = O(!1), [z, P] = O(null), [K, Q] = O(!1), [G, f] = O({
6251
+ const { baseUrl: l, apiKey: h, appId: c } = ge(), [u, b] = O(null), [y, w] = O(e), [d, j] = O(!0), [m, _] = O(!1), [R, A] = O(!1), [C, M] = O(!1), [g, I] = O(!1), [v, U] = O(!1), [W, F] = O(!1), [V, Z] = O(!1), [T, J] = O(!1), [z, P] = O(null), [K, Q] = O(!1), [G, f] = O({
6230
6252
  email: "",
6231
6253
  otp: "",
6232
6254
  appId: c
@@ -6262,7 +6284,7 @@ const Ls = [
6262
6284
  }
6263
6285
  try {
6264
6286
  $(!0);
6265
- const E = await W.post(
6287
+ const E = await q.post(
6266
6288
  `${l}/users/send-verify-otp/${y?.id}`,
6267
6289
  { email: G.email },
6268
6290
  {
@@ -6282,7 +6304,7 @@ const Ls = [
6282
6304
  }
6283
6305
  try {
6284
6306
  $(!0);
6285
- const H = await W.post(
6307
+ const H = await q.post(
6286
6308
  `${l}/users/verify-email`,
6287
6309
  G
6288
6310
  );
@@ -6308,7 +6330,7 @@ const Ls = [
6308
6330
  }, ve = async (E) => {
6309
6331
  if (!y) return !1;
6310
6332
  try {
6311
- const H = { ...y, avatarUrl: E }, { data: X } = await W.put(
6333
+ const H = { ...y, avatarUrl: E }, { data: X } = await q.put(
6312
6334
  `${l}/users/update/${y.id}`,
6313
6335
  H,
6314
6336
  { headers: { "x-api-key": h } }
@@ -6324,7 +6346,7 @@ const Ls = [
6324
6346
  if (y) {
6325
6347
  A(!0);
6326
6348
  try {
6327
- const { data: E } = await W.put(
6349
+ const { data: E } = await q.put(
6328
6350
  `${l}/users/update/${y.id}`,
6329
6351
  y,
6330
6352
  { headers: { "x-api-key": h } }
@@ -6341,7 +6363,7 @@ const Ls = [
6341
6363
  }
6342
6364
  }, pt = async (E) => {
6343
6365
  try {
6344
- const { data: H } = await W.get(
6366
+ const { data: H } = await q.get(
6345
6367
  `${l}/users/check-user/${E}?appId=${c}`,
6346
6368
  { headers: { "x-api-key": h } }
6347
6369
  );
@@ -6377,8 +6399,8 @@ const Ls = [
6377
6399
  textPrimary: "#ffffff",
6378
6400
  textSecondary: "#d4d4d8",
6379
6401
  textTertiary: "#a1a1aa",
6380
- accent: a,
6381
- accentHover: ft(a, -15),
6402
+ accent: o,
6403
+ accentHover: ft(o, -15),
6382
6404
  success: "#10b981",
6383
6405
  error: "#ef4444",
6384
6406
  border: "#27272a",
@@ -6391,8 +6413,8 @@ const Ls = [
6391
6413
  textPrimary: "#18181b",
6392
6414
  textSecondary: "#52525b",
6393
6415
  textTertiary: "#71717a",
6394
- accent: a,
6395
- accentHover: ft(a, -15),
6416
+ accent: o,
6417
+ accentHover: ft(o, -15),
6396
6418
  success: "#10b981",
6397
6419
  error: "#ef4444",
6398
6420
  border: "#e4e4e7",
@@ -6423,7 +6445,7 @@ const Ls = [
6423
6445
  },
6424
6446
  children: [
6425
6447
  /* @__PURE__ */ n.jsx(
6426
- oe,
6448
+ ae,
6427
6449
  {
6428
6450
  size: 40,
6429
6451
  color: D.accent,
@@ -6792,7 +6814,7 @@ const Ls = [
6792
6814
  },
6793
6815
  children: [
6794
6816
  R ? /* @__PURE__ */ n.jsx(
6795
- oe,
6817
+ ae,
6796
6818
  {
6797
6819
  size: 16,
6798
6820
  style: { animation: "spin 1s linear infinite" },
@@ -6858,7 +6880,7 @@ const Ls = [
6858
6880
  },
6859
6881
  children: [
6860
6882
  K ? /* @__PURE__ */ n.jsx(
6861
- oe,
6883
+ ae,
6862
6884
  {
6863
6885
  size: 14,
6864
6886
  style: { animation: "spin 1s linear infinite" },
@@ -6894,7 +6916,7 @@ const Ls = [
6894
6916
  },
6895
6917
  onClick: () => Z(!V),
6896
6918
  children: [
6897
- /* @__PURE__ */ n.jsx(as, { size: 16, "aria-hidden": "true" }),
6919
+ /* @__PURE__ */ n.jsx(os, { size: 16, "aria-hidden": "true" }),
6898
6920
  "More Actions"
6899
6921
  ]
6900
6922
  }
@@ -6947,11 +6969,11 @@ const Ls = [
6947
6969
  ]
6948
6970
  }
6949
6971
  ),
6950
- o && /* @__PURE__ */ n.jsxs(
6972
+ a && /* @__PURE__ */ n.jsxs(
6951
6973
  "button",
6952
6974
  {
6953
6975
  onClick: () => {
6954
- o(), Y();
6976
+ a(), Y();
6955
6977
  },
6956
6978
  style: {
6957
6979
  width: "100%",
@@ -7109,7 +7131,7 @@ const Ls = [
7109
7131
  style: {
7110
7132
  padding: "12px",
7111
7133
  borderRadius: "8px",
7112
- border: `1px solid ${a}`,
7134
+ border: `1px solid ${o}`,
7113
7135
  backgroundColor: "transparent",
7114
7136
  color: D.textPrimary,
7115
7137
  fontSize: "12px",
@@ -7281,7 +7303,7 @@ const Ls = [
7281
7303
  }
7282
7304
  ),
7283
7305
  /* @__PURE__ */ n.jsx(
7284
- Ws,
7306
+ qs,
7285
7307
  {
7286
7308
  isOpen: C,
7287
7309
  onClose: () => {
@@ -7292,7 +7314,7 @@ const Ls = [
7292
7314
  }
7293
7315
  ),
7294
7316
  /* @__PURE__ */ n.jsx(
7295
- qs,
7317
+ Ws,
7296
7318
  {
7297
7319
  baseUrl: l,
7298
7320
  apiKey: h,
@@ -7323,7 +7345,7 @@ const Ls = [
7323
7345
  /* @__PURE__ */ n.jsx(
7324
7346
  Bs,
7325
7347
  {
7326
- isOpen: q,
7348
+ isOpen: W,
7327
7349
  onClose: () => {
7328
7350
  F(!1), x(!1), f({ email: y?.email || "", otp: "", appId: c });
7329
7351
  },
@@ -7430,15 +7452,15 @@ const Ls = [
7430
7452
  ]
7431
7453
  }
7432
7454
  );
7433
- }, yo = ({
7455
+ }, ma = ({
7434
7456
  darkMode: t = !0,
7435
7457
  primaryColor: e = "#3b82f6",
7436
7458
  onLogout: r,
7437
7459
  varient: s = "classic",
7438
- propUser: o,
7460
+ propUser: a,
7439
7461
  className: i = "",
7440
7462
  // New URL props with defaults
7441
- profileUrl: a,
7463
+ profileUrl: o,
7442
7464
  settingsUrl: l,
7443
7465
  // Menu item visibility with defaults
7444
7466
  showProfileMenuItem: h = !0,
@@ -7450,7 +7472,7 @@ const Ls = [
7450
7472
  viewProfileLabel: w = "View Profile",
7451
7473
  logoutLabel: d = "Sign Out"
7452
7474
  }) => {
7453
- const { baseUrl: j, apiKey: m, appId: _ } = ge(), [R, A] = O(!1), [C, M] = O(null), [g, I] = O(!0), [v, U] = O(null), q = xt(null), F = xt(null), [V, Z] = O(!1), [T, J] = O(!1);
7475
+ const { baseUrl: j, apiKey: m, appId: _ } = ge(), [R, A] = O(!1), [C, M] = O(null), [g, I] = O(!0), [v, U] = O(null), W = xt(null), F = xt(null), [V, Z] = O(!1), [T, J] = O(!1);
7454
7476
  te(() => {
7455
7477
  if (typeof window > "u") return;
7456
7478
  const x = () => {
@@ -7460,10 +7482,10 @@ const Ls = [
7460
7482
  }, []), te(() => {
7461
7483
  (async () => {
7462
7484
  try {
7463
- if (I(!0), U(null), o) {
7464
- if (!o.id || !o.name || !o.email)
7485
+ if (I(!0), U(null), a) {
7486
+ if (!a.id || !a.name || !a.email)
7465
7487
  throw new Error("Invalid user data provided");
7466
- M(o);
7488
+ M(a);
7467
7489
  } else if (typeof window < "u") {
7468
7490
  const k = localStorage.getItem("userInfo");
7469
7491
  if (k)
@@ -7482,7 +7504,7 @@ const Ls = [
7482
7504
  I(!1);
7483
7505
  }
7484
7506
  })();
7485
- }, [o]), te(() => {
7507
+ }, [a]), te(() => {
7486
7508
  if (typeof window > "u") return;
7487
7509
  const x = () => {
7488
7510
  if (!R || !F.current) return;
@@ -7496,7 +7518,7 @@ const Ls = [
7496
7518
  if (typeof window > "u" || typeof document > "u")
7497
7519
  return;
7498
7520
  const x = (N) => {
7499
- q.current && !q.current.contains(N.target) && !F.current?.contains(N.target) && A(!1);
7521
+ W.current && !W.current.contains(N.target) && !F.current?.contains(N.target) && A(!1);
7500
7522
  }, k = (N) => {
7501
7523
  N.key === "Escape" && A(!1);
7502
7524
  }, $ = () => {
@@ -7729,7 +7751,7 @@ const Ls = [
7729
7751
  if (x) {
7730
7752
  const k = JSON.parse(x);
7731
7753
  M(k);
7732
- } else o && M(o);
7754
+ } else a && M(a);
7733
7755
  } catch (x) {
7734
7756
  console.error("Retry failed:", x), U("Invalid user data"), localStorage.removeItem("userInfo"), M(null);
7735
7757
  } finally {
@@ -7737,7 +7759,7 @@ const Ls = [
7737
7759
  }
7738
7760
  }, Q = (x, k) => {
7739
7761
  (x.key === "Enter" || x.key === " ") && (x.preventDefault(), k());
7740
- }, G = () => a || C?.profileUrl, f = () => {
7762
+ }, G = () => o || C?.profileUrl, f = () => {
7741
7763
  const x = G();
7742
7764
  x && window.open(x, "_self", "noopener,noreferrer");
7743
7765
  }, S = () => {
@@ -7747,7 +7769,7 @@ const Ls = [
7747
7769
  "div",
7748
7770
  {
7749
7771
  style: P.wrapper,
7750
- ref: q,
7772
+ ref: W,
7751
7773
  className: i,
7752
7774
  role: "menu",
7753
7775
  "aria-label": "User menu",
@@ -8007,19 +8029,19 @@ const Ls = [
8007
8029
  ]
8008
8030
  }
8009
8031
  );
8010
- }, bo = ({
8032
+ }, ya = ({
8011
8033
  user: t,
8012
8034
  darkMode: e = !0,
8013
8035
  primaryColor: r = "#00C212",
8014
8036
  onVerify: s
8015
8037
  }) => {
8016
- const { appId: o, baseUrl: i, apiKey: a } = ge(), [l, h] = O({
8038
+ const { appId: a, baseUrl: i, apiKey: o } = ge(), [l, h] = O({
8017
8039
  email: t?.email || "",
8018
8040
  otp: "",
8019
- appId: o
8041
+ appId: a
8020
8042
  }), [c, u] = O(!1), [b, y] = O(!1), [w, d] = O(null), j = (g, I) => {
8021
- let v = parseInt(g.replace("#", ""), 16), U = (v >> 16) + I, q = (v >> 8 & 255) + I, F = (v & 255) + I;
8022
- return U = Math.min(255, Math.max(0, U)), q = Math.min(255, Math.max(0, q)), F = Math.min(255, Math.max(0, F)), `#${(F | q << 8 | U << 16).toString(16).padStart(6, "0")}`;
8043
+ let v = parseInt(g.replace("#", ""), 16), U = (v >> 16) + I, W = (v >> 8 & 255) + I, F = (v & 255) + I;
8044
+ return U = Math.min(255, Math.max(0, U)), W = Math.min(255, Math.max(0, W)), F = Math.min(255, Math.max(0, F)), `#${(F | W << 8 | U << 16).toString(16).padStart(6, "0")}`;
8023
8045
  }, m = e ? {
8024
8046
  surface: "#09090b",
8025
8047
  surfaceLight: "#27272a",
@@ -8055,10 +8077,10 @@ const Ls = [
8055
8077
  }
8056
8078
  try {
8057
8079
  y(!0);
8058
- const g = await W.post(
8080
+ const g = await q.post(
8059
8081
  `${i}/users/send-verify-otp/${t?.id}`,
8060
8082
  { email: l.email },
8061
- { headers: { "x-api-key": a, "x-app-id": o } }
8083
+ { headers: { "x-api-key": o, "x-app-id": a } }
8062
8084
  );
8063
8085
  g.data.success ? (_("success", g.data.message || "OTP sent!"), u(!0)) : _("error", g.data.message || "Failed to send OTP");
8064
8086
  } catch (g) {
@@ -8073,10 +8095,10 @@ const Ls = [
8073
8095
  }
8074
8096
  try {
8075
8097
  y(!0);
8076
- const I = await W.post(`${i}/users/verify-email`, l);
8098
+ const I = await q.post(`${i}/users/verify-email`, l);
8077
8099
  if (I.data.success && t) {
8078
8100
  const v = { ...t, isVerified: !0 };
8079
- s?.(v), _("success", I.data.message || "Email verified!"), u(!1), h({ email: t.email, otp: "", appId: o });
8101
+ s?.(v), _("success", I.data.message || "Email verified!"), u(!1), h({ email: t.email, otp: "", appId: a });
8080
8102
  } else
8081
8103
  _("error", I.data.message || "Verification failed");
8082
8104
  } catch (I) {
@@ -8207,7 +8229,7 @@ const Ls = [
8207
8229
  ] })
8208
8230
  ] }),
8209
8231
  /* @__PURE__ */ n.jsx("div", { style: { display: "flex", gap: 12 }, children: c ? /* @__PURE__ */ n.jsxs("button", { type: "submit", disabled: b, style: M(b), children: [
8210
- b ? /* @__PURE__ */ n.jsx(oe, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ce, { size: 16 }),
8232
+ b ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ce, { size: 16 }),
8211
8233
  b ? "Verifying..." : "Verify Email"
8212
8234
  ] }) : /* @__PURE__ */ n.jsxs(
8213
8235
  "button",
@@ -8217,7 +8239,7 @@ const Ls = [
8217
8239
  disabled: b,
8218
8240
  style: M(b),
8219
8241
  children: [
8220
- b ? /* @__PURE__ */ n.jsx(oe, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ut, { size: 16 }),
8242
+ b ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ut, { size: 16 }),
8221
8243
  b ? "Sending..." : "Send OTP"
8222
8244
  ]
8223
8245
  }
@@ -8227,14 +8249,14 @@ const Ls = [
8227
8249
  );
8228
8250
  };
8229
8251
  export {
8230
- uo as NeuctraAuthix,
8231
- bo as ReactEmailVerification,
8232
- ho as ReactSignedIn,
8233
- go as ReactSignedOut,
8234
- yo as ReactUserButton,
8235
- xo as ReactUserLogin,
8236
- mo as ReactUserProfile,
8237
- fo as ReactUserSignUp,
8252
+ da as NeuctraAuthix,
8253
+ ya as ReactEmailVerification,
8254
+ xa as ReactSignedIn,
8255
+ ha as ReactSignedOut,
8256
+ ma as ReactUserButton,
8257
+ fa as ReactUserLogin,
8258
+ ga as ReactUserProfile,
8259
+ pa as ReactUserSignUp,
8238
8260
  ge as getSdkConfig,
8239
- po as setSdkConfig
8261
+ ua as setSdkConfig
8240
8262
  };