@neuctra/authix 1.2.17 → 1.2.18

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.
@@ -1,26 +1,26 @@
1
- import Ce, { forwardRef as zt, createElement as Je, createContext as cr, useContext as dr, useState as P, useEffect as ee, useRef as dt } from "react";
2
- function At(t, e) {
1
+ import Ce, { forwardRef as At, createElement as Je, createContext as cr, useContext as dr, useState as P, useEffect as ee, useRef as ut } from "react";
2
+ function Ut(t, e) {
3
3
  return function() {
4
4
  return t.apply(e, arguments);
5
5
  };
6
6
  }
7
- const { toString: ur } = Object.prototype, { getPrototypeOf: rt } = Object, { iterator: Fe, toStringTag: Ut } = Symbol, Le = /* @__PURE__ */ ((t) => (e) => {
7
+ const { toString: ur } = Object.prototype, { getPrototypeOf: nt } = Object, { iterator: Fe, toStringTag: _t } = Symbol, Le = /* @__PURE__ */ ((t) => (e) => {
8
8
  const n = ur.call(e);
9
9
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Le(e) === t), qe = (t) => (e) => typeof e === t, { isArray: je } = Array, be = qe("undefined");
10
+ })(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Le(e) === t), qe = (t) => (e) => typeof e === t, { isArray: je } = Array, we = qe("undefined");
11
11
  function Te(t) {
12
- return t !== null && !be(t) && t.constructor !== null && !be(t.constructor) && te(t.constructor.isBuffer) && t.constructor.isBuffer(t);
12
+ return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && te(t.constructor.isBuffer) && t.constructor.isBuffer(t);
13
13
  }
14
- const _t = ae("ArrayBuffer");
14
+ const $t = ae("ArrayBuffer");
15
15
  function pr(t) {
16
16
  let e;
17
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && _t(t.buffer), e;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && $t(t.buffer), e;
18
18
  }
19
- const fr = qe("string"), te = qe("function"), $t = qe("number"), Re = (t) => t !== null && typeof t == "object", xr = (t) => t === !0 || t === !1, Ue = (t) => {
19
+ const fr = qe("string"), te = qe("function"), Dt = qe("number"), Re = (t) => t !== null && typeof t == "object", xr = (t) => t === !0 || t === !1, Ue = (t) => {
20
20
  if (Le(t) !== "object")
21
21
  return !1;
22
- const e = rt(t);
23
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ut in t) && !(Fe in t);
22
+ const e = nt(t);
23
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(_t in t) && !(Fe in t);
24
24
  }, hr = (t) => {
25
25
  if (!Re(t) || Te(t))
26
26
  return !1;
@@ -50,7 +50,7 @@ function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
50
50
  c = a[s], e.call(null, t[c], c, t);
51
51
  }
52
52
  }
53
- function Dt(t, e) {
53
+ function Nt(t, e) {
54
54
  if (Te(t))
55
55
  return null;
56
56
  e = e.toLowerCase();
@@ -61,18 +61,18 @@ function Dt(t, e) {
61
61
  return i;
62
62
  return null;
63
63
  }
64
- const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Nt = (t) => !be(t) && t !== fe;
64
+ const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ft = (t) => !we(t) && t !== fe;
65
65
  function Ge() {
66
- const { caseless: t, skipUndefined: e } = Nt(this) && this || {}, n = {}, s = (i, a) => {
67
- const o = t && Dt(n, a) || a;
68
- Ue(n[o]) && Ue(i) ? n[o] = Ge(n[o], i) : Ue(i) ? n[o] = Ge({}, i) : je(i) ? n[o] = i.slice() : (!e || !be(i)) && (n[o] = i);
66
+ const { caseless: t, skipUndefined: e } = Ft(this) && this || {}, n = {}, s = (i, a) => {
67
+ const o = t && Nt(n, a) || a;
68
+ Ue(n[o]) && Ue(i) ? n[o] = Ge(n[o], i) : Ue(i) ? n[o] = Ge({}, i) : je(i) ? n[o] = i.slice() : (!e || !we(i)) && (n[o] = i);
69
69
  };
70
70
  for (let i = 0, a = arguments.length; i < a; i++)
71
71
  arguments[i] && Pe(arguments[i], s);
72
72
  return n;
73
73
  }
74
74
  const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
75
- n && te(i) ? t[a] = At(i, n) : t[a] = i;
75
+ n && te(i) ? t[a] = Ut(i, n) : t[a] = i;
76
76
  }, { allOwnKeys: s }), t), Pr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ir = (t, e, n, s) => {
77
77
  t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
78
78
  value: e.prototype
@@ -84,7 +84,7 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
84
84
  do {
85
85
  for (i = Object.getOwnPropertyNames(t), a = i.length; a-- > 0; )
86
86
  o = i[a], (!s || s(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
87
- t = n !== !1 && rt(t);
87
+ t = n !== !1 && nt(t);
88
88
  } while (t && (!n || n(t, e)) && t !== Object.prototype);
89
89
  return e;
90
90
  }, zr = (t, e, n) => {
@@ -95,12 +95,12 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
95
95
  if (!t) return null;
96
96
  if (je(t)) return t;
97
97
  let e = t.length;
98
- if (!$t(e)) return null;
98
+ if (!Dt(e)) return null;
99
99
  const n = new Array(e);
100
100
  for (; e-- > 0; )
101
101
  n[e] = t[e];
102
102
  return n;
103
- }, Ur = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && rt(Uint8Array)), _r = (t, e) => {
103
+ }, Ur = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && nt(Uint8Array)), _r = (t, e) => {
104
104
  const s = (t && t[Fe]).call(t);
105
105
  let i;
106
106
  for (; (i = s.next()) && !i.done; ) {
@@ -118,14 +118,14 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
118
118
  function(n, s, i) {
119
119
  return s.toUpperCase() + i;
120
120
  }
121
- ), ut = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Fr = ae("RegExp"), Ft = (t, e) => {
121
+ ), pt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Fr = ae("RegExp"), Lt = (t, e) => {
122
122
  const n = Object.getOwnPropertyDescriptors(t), s = {};
123
123
  Pe(n, (i, a) => {
124
124
  let o;
125
125
  (o = e(i, a, t)) !== !1 && (s[a] = o || i);
126
126
  }), Object.defineProperties(t, s);
127
127
  }, Lr = (t) => {
128
- Ft(t, (e, n) => {
128
+ Lt(t, (e, n) => {
129
129
  if (te(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
130
130
  return !1;
131
131
  const s = t[n];
@@ -149,7 +149,7 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
149
149
  }, Mr = () => {
150
150
  }, Wr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
151
151
  function Br(t) {
152
- return !!(t && te(t.append) && t[Ut] === "FormData" && t[Fe]);
152
+ return !!(t && te(t.append) && t[_t] === "FormData" && t[Fe]);
153
153
  }
154
154
  const Hr = (t) => {
155
155
  const e = new Array(10), n = (s, i) => {
@@ -163,28 +163,28 @@ const Hr = (t) => {
163
163
  const a = je(s) ? [] : {};
164
164
  return Pe(s, (o, c) => {
165
165
  const d = n(o, i + 1);
166
- !be(d) && (a[c] = d);
166
+ !we(d) && (a[c] = d);
167
167
  }), e[i] = void 0, a;
168
168
  }
169
169
  }
170
170
  return s;
171
171
  };
172
172
  return n(t, 0);
173
- }, Vr = ae("AsyncFunction"), Yr = (t) => t && (Re(t) || te(t)) && te(t.then) && te(t.catch), Lt = ((t, e) => t ? setImmediate : e ? ((n, s) => (fe.addEventListener("message", ({ source: i, data: a }) => {
173
+ }, Vr = ae("AsyncFunction"), Yr = (t) => t && (Re(t) || te(t)) && te(t.then) && te(t.catch), qt = ((t, e) => t ? setImmediate : e ? ((n, s) => (fe.addEventListener("message", ({ source: i, data: a }) => {
174
174
  i === fe && a === n && s.length && s.shift()();
175
175
  }, !1), (i) => {
176
176
  s.push(i), fe.postMessage(n, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
178
  typeof setImmediate == "function",
179
179
  te(fe.postMessage)
180
- ), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Lt, Jr = (t) => t != null && te(t[Fe]), p = {
180
+ ), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || qt, Jr = (t) => t != null && te(t[Fe]), p = {
181
181
  isArray: je,
182
- isArrayBuffer: _t,
182
+ isArrayBuffer: $t,
183
183
  isBuffer: Te,
184
184
  isFormData: jr,
185
185
  isArrayBufferView: pr,
186
186
  isString: fr,
187
- isNumber: $t,
187
+ isNumber: Dt,
188
188
  isBoolean: xr,
189
189
  isObject: Re,
190
190
  isPlainObject: Ue,
@@ -193,7 +193,7 @@ const Hr = (t) => {
193
193
  isRequest: kr,
194
194
  isResponse: Er,
195
195
  isHeaders: Cr,
196
- isUndefined: be,
196
+ isUndefined: we,
197
197
  isDate: mr,
198
198
  isFile: gr,
199
199
  isBlob: yr,
@@ -217,23 +217,23 @@ const Hr = (t) => {
217
217
  forEachEntry: _r,
218
218
  matchAll: $r,
219
219
  isHTMLForm: Dr,
220
- hasOwnProperty: ut,
221
- hasOwnProp: ut,
220
+ hasOwnProperty: pt,
221
+ hasOwnProp: pt,
222
222
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: Ft,
223
+ reduceDescriptors: Lt,
224
224
  freezeMethods: Lr,
225
225
  toObjectSet: qr,
226
226
  toCamelCase: Nr,
227
227
  noop: Mr,
228
228
  toFiniteNumber: Wr,
229
- findKey: Dt,
229
+ findKey: Nt,
230
230
  global: fe,
231
- isContextDefined: Nt,
231
+ isContextDefined: Ft,
232
232
  isSpecCompliantForm: Br,
233
233
  toJSONObject: Hr,
234
234
  isAsyncFn: Vr,
235
235
  isThenable: Yr,
236
- setImmediate: Lt,
236
+ setImmediate: qt,
237
237
  asap: Kr,
238
238
  isIterable: Jr
239
239
  };
@@ -261,7 +261,7 @@ p.inherits($, Error, {
261
261
  };
262
262
  }
263
263
  });
264
- const qt = $.prototype, Mt = {};
264
+ const Mt = $.prototype, Wt = {};
265
265
  [
266
266
  "ERR_BAD_OPTION_VALUE",
267
267
  "ERR_BAD_OPTION",
@@ -277,12 +277,12 @@ const qt = $.prototype, Mt = {};
277
277
  "ERR_INVALID_URL"
278
278
  // eslint-disable-next-line func-names
279
279
  ].forEach((t) => {
280
- Mt[t] = { value: t };
280
+ Wt[t] = { value: t };
281
281
  });
282
- Object.defineProperties($, Mt);
283
- Object.defineProperty(qt, "isAxiosError", { value: !0 });
282
+ Object.defineProperties($, Wt);
283
+ Object.defineProperty(Mt, "isAxiosError", { value: !0 });
284
284
  $.from = (t, e, n, s, i, a) => {
285
- const o = Object.create(qt);
285
+ const o = Object.create(Mt);
286
286
  p.toFlatObject(t, o, function(x) {
287
287
  return x !== Error.prototype;
288
288
  }, (f) => f !== "isAxiosError");
@@ -293,12 +293,12 @@ const Gr = null;
293
293
  function Xe(t) {
294
294
  return p.isPlainObject(t) || p.isArray(t);
295
295
  }
296
- function Wt(t) {
296
+ function Bt(t) {
297
297
  return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
298
298
  }
299
- function pt(t, e, n) {
299
+ function ft(t, e, n) {
300
300
  return t ? t.concat(e).map(function(i, a) {
301
- return i = Wt(i), !n && a ? "[" + i + "]" : i;
301
+ return i = Bt(i), !n && a ? "[" + i + "]" : i;
302
302
  }).join(n ? "." : "") : e;
303
303
  }
304
304
  function Xr(t) {
@@ -336,15 +336,15 @@ function Me(t, e, n) {
336
336
  if (p.endsWith(w, "{}"))
337
337
  w = s ? w : w.slice(0, -2), u = JSON.stringify(u);
338
338
  else if (p.isArray(u) && Xr(u) || (p.isFileList(u) || p.endsWith(w, "[]")) && (I = p.toArray(u)))
339
- return w = Wt(w), I.forEach(function(g, A) {
339
+ return w = Bt(w), I.forEach(function(g, U) {
340
340
  !(p.isUndefined(g) || g === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
- o === !0 ? pt([w], A, a) : o === null ? w : w + "[]",
342
+ o === !0 ? ft([w], U, a) : o === null ? w : w + "[]",
343
343
  f(g)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return Xe(u) ? !0 : (e.append(pt(h, w, a), f(u)), !1);
347
+ return Xe(u) ? !0 : (e.append(ft(h, w, a), f(u)), !1);
348
348
  }
349
349
  const y = [], k = Object.assign(Zr, {
350
350
  defaultVisitor: x,
@@ -370,7 +370,7 @@ function Me(t, e, n) {
370
370
  throw new TypeError("data must be an object");
371
371
  return E(t), e;
372
372
  }
373
- function ft(t) {
373
+ function xt(t) {
374
374
  const e = {
375
375
  "!": "%21",
376
376
  "'": "%27",
@@ -384,17 +384,17 @@ function ft(t) {
384
384
  return e[s];
385
385
  });
386
386
  }
387
- function nt(t, e) {
387
+ function st(t, e) {
388
388
  this._pairs = [], t && Me(t, this, e);
389
389
  }
390
- const Bt = nt.prototype;
391
- Bt.append = function(e, n) {
390
+ const Ht = st.prototype;
391
+ Ht.append = function(e, n) {
392
392
  this._pairs.push([e, n]);
393
393
  };
394
- Bt.toString = function(e) {
394
+ Ht.toString = function(e) {
395
395
  const n = e ? function(s) {
396
- return e.call(this, s, ft);
397
- } : ft;
396
+ return e.call(this, s, xt);
397
+ } : xt;
398
398
  return this._pairs.map(function(i) {
399
399
  return n(i[0]) + "=" + n(i[1]);
400
400
  }, "").join("&");
@@ -402,7 +402,7 @@ Bt.toString = function(e) {
402
402
  function Qr(t) {
403
403
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
404
404
  }
405
- function Ht(t, e, n) {
405
+ function Vt(t, e, n) {
406
406
  if (!e)
407
407
  return t;
408
408
  const s = n && n.encode || Qr;
@@ -411,13 +411,13 @@ function Ht(t, e, n) {
411
411
  });
412
412
  const i = n && n.serialize;
413
413
  let a;
414
- if (i ? a = i(e, n) : a = p.isURLSearchParams(e) ? e.toString() : new nt(e, n).toString(s), a) {
414
+ if (i ? a = i(e, n) : a = p.isURLSearchParams(e) ? e.toString() : new st(e, n).toString(s), a) {
415
415
  const o = t.indexOf("#");
416
416
  o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
417
417
  }
418
418
  return t;
419
419
  }
420
- class xt {
420
+ class ht {
421
421
  constructor() {
422
422
  this.handlers = [];
423
423
  }
@@ -471,11 +471,11 @@ class xt {
471
471
  });
472
472
  }
473
473
  }
474
- const Vt = {
474
+ const Yt = {
475
475
  silentJSONParsing: !0,
476
476
  forcedJSONParsing: !0,
477
477
  clarifyTimeoutError: !1
478
- }, en = typeof URLSearchParams < "u" ? URLSearchParams : nt, tn = typeof FormData < "u" ? FormData : null, rn = typeof Blob < "u" ? Blob : null, nn = {
478
+ }, en = typeof URLSearchParams < "u" ? URLSearchParams : st, tn = typeof FormData < "u" ? FormData : null, rn = typeof Blob < "u" ? Blob : null, nn = {
479
479
  isBrowser: !0,
480
480
  classes: {
481
481
  URLSearchParams: en,
@@ -483,10 +483,10 @@ const Vt = {
483
483
  Blob: rn
484
484
  },
485
485
  protocols: ["http", "https", "file", "blob", "url", "data"]
486
- }, st = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, sn = st && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), an = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on = st && window.location.href || "http://localhost", ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
+ }, it = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, sn = it && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), an = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on = it && window.location.href || "http://localhost", ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
488
  __proto__: null,
489
- hasBrowserEnv: st,
489
+ hasBrowserEnv: it,
490
490
  hasStandardBrowserEnv: sn,
491
491
  hasStandardBrowserWebWorkerEnv: an,
492
492
  navigator: Ze,
@@ -515,7 +515,7 @@ function un(t) {
515
515
  a = n[s], e[a] = t[a];
516
516
  return e;
517
517
  }
518
- function Yt(t) {
518
+ function Kt(t) {
519
519
  function e(n, s, i, a) {
520
520
  let o = n[a++];
521
521
  if (o === "__proto__") return !0;
@@ -541,12 +541,12 @@ function pn(t, e, n) {
541
541
  return (n || JSON.stringify)(t);
542
542
  }
543
543
  const Ie = {
544
- transitional: Vt,
544
+ transitional: Yt,
545
545
  adapter: ["xhr", "http", "fetch"],
546
546
  transformRequest: [function(e, n) {
547
547
  const s = n.getContentType() || "", i = s.indexOf("application/json") > -1, a = p.isObject(e);
548
548
  if (a && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
549
- return i ? JSON.stringify(Yt(e)) : e;
549
+ return i ? JSON.stringify(Kt(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))
@@ -634,7 +634,7 @@ const fn = p.toObjectSet([
634
634
  `).forEach(function(o) {
635
635
  i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), s = o.substring(i + 1).trim(), !(!n || e[n] && fn[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
636
636
  }), e;
637
- }, ht = Symbol("internals");
637
+ }, mt = Symbol("internals");
638
638
  function Se(t) {
639
639
  return t && String(t).trim().toLowerCase();
640
640
  }
@@ -789,7 +789,7 @@ let re = class {
789
789
  return n.forEach((i) => s.set(i)), s;
790
790
  }
791
791
  static accessor(e) {
792
- const s = (this[ht] = this[ht] = {
792
+ const s = (this[mt] = this[mt] = {
793
793
  accessors: {}
794
794
  }).accessors, i = this.prototype;
795
795
  function a(o) {
@@ -817,7 +817,7 @@ function Ve(t, e) {
817
817
  a = c.call(n, a, i.normalize(), e ? e.status : void 0);
818
818
  }), i.normalize(), a;
819
819
  }
820
- function Kt(t) {
820
+ function Jt(t) {
821
821
  return !!(t && t.__CANCEL__);
822
822
  }
823
823
  function ve(t, e, n) {
@@ -826,7 +826,7 @@ function ve(t, e, n) {
826
826
  p.inherits(ve, $, {
827
827
  __CANCEL__: !0
828
828
  });
829
- function Jt(t, e, n) {
829
+ function Gt(t, e, n) {
830
830
  const s = n.config.validateStatus;
831
831
  !n.status || !s || s(n.status) ? t(n) : e(new $(
832
832
  "Request failed with status code " + n.status,
@@ -887,14 +887,14 @@ const Ne = (t, e, n = 3) => {
887
887
  };
888
888
  t(y);
889
889
  }, n);
890
- }, mt = (t, e) => {
890
+ }, gt = (t, e) => {
891
891
  const n = t != null;
892
892
  return [(s) => e[0]({
893
893
  lengthComputable: n,
894
894
  total: t,
895
895
  loaded: s
896
896
  }), e[1]];
897
- }, gt = (t) => (...e) => p.asap(() => t(...e)), vn = Q.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Q.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
897
+ }, yt = (t) => (...e) => p.asap(() => t(...e)), vn = Q.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Q.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
898
898
  new URL(Q.origin),
899
899
  Q.navigator && /(msie|trident)/i.test(Q.navigator.userAgent)
900
900
  ) : () => !0, Sn = Q.hasStandardBrowserEnv ? (
@@ -930,12 +930,12 @@ function kn(t) {
930
930
  function En(t, e) {
931
931
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
932
932
  }
933
- function Gt(t, e, n) {
933
+ function Xt(t, e, n) {
934
934
  let s = !kn(e);
935
935
  return t && (s || n == !1) ? En(t, e) : e;
936
936
  }
937
- const yt = (t) => t instanceof re ? { ...t } : t;
938
- function he(t, e) {
937
+ const bt = (t) => t instanceof re ? { ...t } : t;
938
+ function me(t, e) {
939
939
  e = e || {};
940
940
  const n = {};
941
941
  function s(f, x, y, k) {
@@ -992,17 +992,17 @@ function he(t, e) {
992
992
  socketPath: o,
993
993
  responseEncoding: o,
994
994
  validateStatus: c,
995
- headers: (f, x, y) => i(yt(f), yt(x), y, !0)
995
+ headers: (f, x, y) => i(bt(f), bt(x), y, !0)
996
996
  };
997
997
  return p.forEach(Object.keys({ ...t, ...e }), function(x) {
998
998
  const y = d[x] || i, k = y(t[x], e[x], x);
999
999
  p.isUndefined(k) && y !== c || (n[x] = k);
1000
1000
  }), n;
1001
1001
  }
1002
- const Xt = (t) => {
1003
- const e = he({}, t);
1002
+ const Zt = (t) => {
1003
+ const e = me({}, t);
1004
1004
  let { data: n, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: c } = e;
1005
- if (e.headers = o = re.from(o), e.url = Ht(Gt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && o.set(
1005
+ if (e.headers = o = re.from(o), e.url = Vt(Xt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && o.set(
1006
1006
  "Authorization",
1007
1007
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1008
1008
  ), p.isFormData(n)) {
@@ -1022,7 +1022,7 @@ const Xt = (t) => {
1022
1022
  return e;
1023
1023
  }, Cn = typeof XMLHttpRequest < "u", Tn = Cn && function(t) {
1024
1024
  return new Promise(function(n, s) {
1025
- const i = Xt(t);
1025
+ const i = Zt(t);
1026
1026
  let a = i.data;
1027
1027
  const o = re.from(i.headers).normalize();
1028
1028
  let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = i, x, y, k, E, u;
@@ -1044,7 +1044,7 @@ const Xt = (t) => {
1044
1044
  config: t,
1045
1045
  request: h
1046
1046
  };
1047
- Jt(function(j) {
1047
+ Gt(function(j) {
1048
1048
  n(j), w();
1049
1049
  }, function(j) {
1050
1050
  s(j), w();
@@ -1054,20 +1054,20 @@ const Xt = (t) => {
1054
1054
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(I);
1055
1055
  }, h.onabort = function() {
1056
1056
  h && (s(new $("Request aborted", $.ECONNABORTED, t, h)), h = null);
1057
- }, h.onerror = function(A) {
1058
- const N = A && A.message ? A.message : "Network Error", b = new $(N, $.ERR_NETWORK, t, h);
1059
- b.event = A || null, s(b), h = null;
1057
+ }, h.onerror = function(U) {
1058
+ const N = U && U.message ? U.message : "Network Error", b = new $(N, $.ERR_NETWORK, t, h);
1059
+ b.event = U || null, s(b), h = null;
1060
1060
  }, h.ontimeout = function() {
1061
- let A = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
1062
- const N = i.transitional || Vt;
1063
- i.timeoutErrorMessage && (A = i.timeoutErrorMessage), s(new $(
1064
- A,
1061
+ let U = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
1062
+ const N = i.transitional || Yt;
1063
+ i.timeoutErrorMessage && (U = i.timeoutErrorMessage), s(new $(
1064
+ U,
1065
1065
  N.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
1066
1066
  t,
1067
1067
  h
1068
1068
  )), h = null;
1069
- }, a === void 0 && o.setContentType(null), "setRequestHeader" in h && p.forEach(o.toJSON(), function(A, N) {
1070
- h.setRequestHeader(N, A);
1069
+ }, a === void 0 && o.setContentType(null), "setRequestHeader" in h && p.forEach(o.toJSON(), function(U, N) {
1070
+ h.setRequestHeader(N, U);
1071
1071
  }), p.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), f && ([k, u] = Ne(f, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = Ne(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (x = (g) => {
1072
1072
  h && (s(!g || g.type ? new ve(null, t, h) : g), h.abort(), h = null);
1073
1073
  }, i.cancelToken && i.cancelToken.subscribe(x), i.signal && (i.signal.aborted ? x() : i.signal.addEventListener("abort", x)));
@@ -1129,7 +1129,7 @@ const Xt = (t) => {
1129
1129
  } finally {
1130
1130
  await e.cancel();
1131
1131
  }
1132
- }, bt = (t, e, n, s) => {
1132
+ }, wt = (t, e, n, s) => {
1133
1133
  const i = In(t, e);
1134
1134
  let a = 0, o, c = (d) => {
1135
1135
  o || (o = !0, s && s(d));
@@ -1158,13 +1158,13 @@ const Xt = (t) => {
1158
1158
  }, {
1159
1159
  highWaterMark: 2
1160
1160
  });
1161
- }, wt = 64 * 1024, { isFunction: ze } = p, zn = (({ Request: t, Response: e }) => ({
1161
+ }, jt = 64 * 1024, { isFunction: ze } = p, zn = (({ Request: t, Response: e }) => ({
1162
1162
  Request: t,
1163
1163
  Response: e
1164
1164
  }))(p.global), {
1165
- ReadableStream: jt,
1166
- TextEncoder: vt
1167
- } = p.global, St = (t, ...e) => {
1165
+ ReadableStream: vt,
1166
+ TextEncoder: St
1167
+ } = p.global, kt = (t, ...e) => {
1168
1168
  try {
1169
1169
  return !!t(...e);
1170
1170
  } catch {
@@ -1177,17 +1177,17 @@ const Xt = (t) => {
1177
1177
  const { fetch: e, Request: n, Response: s } = t, i = e ? ze(e) : typeof fetch == "function", a = ze(n), o = ze(s);
1178
1178
  if (!i)
1179
1179
  return !1;
1180
- const c = i && ze(jt), d = i && (typeof vt == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new vt()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = a && c && St(() => {
1180
+ const c = i && ze(vt), d = i && (typeof St == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new St()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = a && c && kt(() => {
1181
1181
  let u = !1;
1182
1182
  const w = new n(Q.origin, {
1183
- body: new jt(),
1183
+ body: new vt(),
1184
1184
  method: "POST",
1185
1185
  get duplex() {
1186
1186
  return u = !0, "half";
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
1189
  return u && !w;
1190
- }), x = o && c && St(() => p.isReadableStream(new s("").body)), y = {
1190
+ }), x = o && c && kt(() => p.isReadableStream(new s("").body)), y = {
1191
1191
  stream: x && ((u) => u.body)
1192
1192
  };
1193
1193
  i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
@@ -1223,16 +1223,16 @@ const Xt = (t) => {
1223
1223
  data: I,
1224
1224
  signal: C,
1225
1225
  cancelToken: g,
1226
- timeout: A,
1226
+ timeout: U,
1227
1227
  onDownloadProgress: N,
1228
1228
  onUploadProgress: b,
1229
1229
  responseType: j,
1230
1230
  headers: q,
1231
1231
  withCredentials: O = "same-origin",
1232
1232
  fetchOptions: X
1233
- } = Xt(u), W = e || fetch;
1233
+ } = Zt(u), W = e || fetch;
1234
1234
  j = j ? (j + "").toLowerCase() : "text";
1235
- let R = Rn([C, g && g.toAbortSignal()], A), G = null;
1235
+ let R = Rn([C, g && g.toAbortSignal()], U), G = null;
1236
1236
  const T = R && R.unsubscribe && (() => {
1237
1237
  R.unsubscribe();
1238
1238
  });
@@ -1245,11 +1245,11 @@ const Xt = (t) => {
1245
1245
  duplex: "half"
1246
1246
  }), m;
1247
1247
  if (p.isFormData(I) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
1248
- const [S, D] = mt(
1248
+ const [S, D] = gt(
1249
1249
  z,
1250
- Ne(gt(b))
1250
+ Ne(yt(b))
1251
1251
  );
1252
- I = bt(l.body, wt, S, D);
1252
+ I = wt(l.body, jt, S, D);
1253
1253
  }
1254
1254
  }
1255
1255
  p.isString(O) || (O = O ? "include" : "omit");
@@ -1270,12 +1270,12 @@ const Xt = (t) => {
1270
1270
  ["status", "statusText", "headers"].forEach((ne) => {
1271
1271
  l[ne] = H[ne];
1272
1272
  });
1273
- const m = p.toFiniteNumber(H.headers.get("content-length")), [S, D] = N && mt(
1273
+ const m = p.toFiniteNumber(H.headers.get("content-length")), [S, D] = N && gt(
1274
1274
  m,
1275
- Ne(gt(N), !0)
1275
+ Ne(yt(N), !0)
1276
1276
  ) || [];
1277
1277
  H = new s(
1278
- bt(H.body, wt, S, () => {
1278
+ wt(H.body, jt, S, () => {
1279
1279
  D && D(), T && T();
1280
1280
  }),
1281
1281
  l
@@ -1284,7 +1284,7 @@ const Xt = (t) => {
1284
1284
  j = j || "text";
1285
1285
  let Y = await y[p.findKey(y, j) || "text"](H, u);
1286
1286
  return !F && T && T(), await new Promise((l, m) => {
1287
- Jt(l, m, {
1287
+ Gt(l, m, {
1288
1288
  data: Y,
1289
1289
  headers: re.from(H.headers),
1290
1290
  status: H.status,
@@ -1302,7 +1302,7 @@ const Xt = (t) => {
1302
1302
  ) : $.from(M, M && M.code, u, G);
1303
1303
  }
1304
1304
  };
1305
- }, Un = /* @__PURE__ */ new Map(), Zt = (t) => {
1305
+ }, Un = /* @__PURE__ */ new Map(), Qt = (t) => {
1306
1306
  let e = t ? t.env : {};
1307
1307
  const { fetch: n, Request: s, Response: i } = e, a = [
1308
1308
  s,
@@ -1314,12 +1314,12 @@ const Xt = (t) => {
1314
1314
  d = a[c], f = x.get(d), f === void 0 && x.set(d, f = c ? /* @__PURE__ */ new Map() : An(e)), x = f;
1315
1315
  return f;
1316
1316
  };
1317
- Zt();
1317
+ Qt();
1318
1318
  const Qe = {
1319
1319
  http: Gr,
1320
1320
  xhr: Tn,
1321
1321
  fetch: {
1322
- get: Zt
1322
+ get: Qt
1323
1323
  }
1324
1324
  };
1325
1325
  p.forEach(Qe, (t, e) => {
@@ -1331,7 +1331,7 @@ p.forEach(Qe, (t, e) => {
1331
1331
  Object.defineProperty(t, "adapterName", { value: e });
1332
1332
  }
1333
1333
  });
1334
- const kt = (t) => `- ${t}`, _n = (t) => p.isFunction(t) || t === null || t === !1, Qt = {
1334
+ const Et = (t) => `- ${t}`, _n = (t) => p.isFunction(t) || t === null || t === !1, er = {
1335
1335
  getAdapter: (t, e) => {
1336
1336
  t = p.isArray(t) ? t : [t];
1337
1337
  const { length: n } = t;
@@ -1351,8 +1351,8 @@ const kt = (t) => `- ${t}`, _n = (t) => p.isFunction(t) || t === null || t === !
1351
1351
  ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
1353
  let c = n ? o.length > 1 ? `since :
1354
- ` + o.map(kt).join(`
1355
- `) : " " + kt(o[0]) : "as no adapter specified";
1354
+ ` + o.map(Et).join(`
1355
+ `) : " " + Et(o[0]) : "as no adapter specified";
1356
1356
  throw new $(
1357
1357
  "There is no suitable adapter to dispatch the request " + c,
1358
1358
  "ERR_NOT_SUPPORT"
@@ -1366,34 +1366,34 @@ function Ye(t) {
1366
1366
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1367
1367
  throw new ve(null, t);
1368
1368
  }
1369
- function Et(t) {
1369
+ function Ct(t) {
1370
1370
  return Ye(t), t.headers = re.from(t.headers), t.data = Ve.call(
1371
1371
  t,
1372
1372
  t.transformRequest
1373
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Qt.getAdapter(t.adapter || Ie.adapter, t)(t).then(function(s) {
1373
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), er.getAdapter(t.adapter || Ie.adapter, t)(t).then(function(s) {
1374
1374
  return Ye(t), s.data = Ve.call(
1375
1375
  t,
1376
1376
  t.transformResponse,
1377
1377
  s
1378
1378
  ), s.headers = re.from(s.headers), s;
1379
1379
  }, function(s) {
1380
- return Kt(s) || (Ye(t), s && s.response && (s.response.data = Ve.call(
1380
+ return Jt(s) || (Ye(t), s && s.response && (s.response.data = Ve.call(
1381
1381
  t,
1382
1382
  t.transformResponse,
1383
1383
  s.response
1384
1384
  ), s.response.headers = re.from(s.response.headers))), Promise.reject(s);
1385
1385
  });
1386
1386
  }
1387
- const er = "1.12.2", We = {};
1387
+ const tr = "1.12.2", We = {};
1388
1388
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1389
1389
  We[t] = function(s) {
1390
1390
  return typeof s === t || "a" + (e < 1 ? "n " : " ") + t;
1391
1391
  };
1392
1392
  });
1393
- const Ct = {};
1393
+ const Tt = {};
1394
1394
  We.transitional = function(e, n, s) {
1395
1395
  function i(a, o) {
1396
- return "[Axios v" + er + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
1396
+ return "[Axios v" + tr + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
1397
1397
  }
1398
1398
  return (a, o, c) => {
1399
1399
  if (e === !1)
@@ -1401,7 +1401,7 @@ We.transitional = function(e, n, s) {
1401
1401
  i(o, " has been removed" + (n ? " in " + n : "")),
1402
1402
  $.ERR_DEPRECATED
1403
1403
  );
1404
- return n && !Ct[o] && (Ct[o] = !0, console.warn(
1404
+ return n && !Tt[o] && (Tt[o] = !0, console.warn(
1405
1405
  i(
1406
1406
  o,
1407
1407
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1436,8 +1436,8 @@ const $e = {
1436
1436
  let xe = class {
1437
1437
  constructor(e) {
1438
1438
  this.defaults = e || {}, this.interceptors = {
1439
- request: new xt(),
1440
- response: new xt()
1439
+ request: new ht(),
1440
+ response: new ht()
1441
1441
  };
1442
1442
  }
1443
1443
  /**
@@ -1466,7 +1466,7 @@ let xe = class {
1466
1466
  }
1467
1467
  }
1468
1468
  _request(e, n) {
1469
- typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = he(this.defaults, n);
1469
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = me(this.defaults, n);
1470
1470
  const { transitional: s, paramsSerializer: i, headers: a } = n;
1471
1471
  s !== void 0 && $e.assertOptions(s, {
1472
1472
  silentJSONParsing: ce.transitional(ce.boolean),
@@ -1502,7 +1502,7 @@ let xe = class {
1502
1502
  });
1503
1503
  let x, y = 0, k;
1504
1504
  if (!d) {
1505
- const u = [Et.bind(this), void 0];
1505
+ const u = [Ct.bind(this), void 0];
1506
1506
  for (u.unshift(...c), u.push(...f), k = u.length, x = Promise.resolve(n); y < k; )
1507
1507
  x = x.then(u[y++], u[y++]);
1508
1508
  return x;
@@ -1519,7 +1519,7 @@ let xe = class {
1519
1519
  }
1520
1520
  }
1521
1521
  try {
1522
- x = Et.call(this, E);
1522
+ x = Ct.call(this, E);
1523
1523
  } catch (u) {
1524
1524
  return Promise.reject(u);
1525
1525
  }
@@ -1528,14 +1528,14 @@ let xe = class {
1528
1528
  return x;
1529
1529
  }
1530
1530
  getUri(e) {
1531
- e = he(this.defaults, e);
1532
- const n = Gt(e.baseURL, e.url, e.allowAbsoluteUrls);
1533
- return Ht(n, e.params, e.paramsSerializer);
1531
+ e = me(this.defaults, e);
1532
+ const n = Xt(e.baseURL, e.url, e.allowAbsoluteUrls);
1533
+ return Vt(n, e.params, e.paramsSerializer);
1534
1534
  }
1535
1535
  };
1536
1536
  p.forEach(["delete", "get", "head", "options"], function(e) {
1537
1537
  xe.prototype[e] = function(n, s) {
1538
- return this.request(he(s || {}, {
1538
+ return this.request(me(s || {}, {
1539
1539
  method: e,
1540
1540
  url: n,
1541
1541
  data: (s || {}).data
@@ -1545,7 +1545,7 @@ p.forEach(["delete", "get", "head", "options"], function(e) {
1545
1545
  p.forEach(["post", "put", "patch"], function(e) {
1546
1546
  function n(s) {
1547
1547
  return function(a, o, c) {
1548
- return this.request(he(c || {}, {
1548
+ return this.request(me(c || {}, {
1549
1549
  method: e,
1550
1550
  headers: s ? {
1551
1551
  "Content-Type": "multipart/form-data"
@@ -1557,7 +1557,7 @@ p.forEach(["post", "put", "patch"], function(e) {
1557
1557
  }
1558
1558
  xe.prototype[e] = n(), xe.prototype[e + "Form"] = n(!0);
1559
1559
  });
1560
- let Dn = class tr {
1560
+ let Dn = class rr {
1561
1561
  constructor(e) {
1562
1562
  if (typeof e != "function")
1563
1563
  throw new TypeError("executor must be a function.");
@@ -1623,7 +1623,7 @@ let Dn = class tr {
1623
1623
  static source() {
1624
1624
  let e;
1625
1625
  return {
1626
- token: new tr(function(i) {
1626
+ token: new rr(function(i) {
1627
1627
  e = i;
1628
1628
  }),
1629
1629
  cancel: e
@@ -1706,18 +1706,18 @@ const et = {
1706
1706
  Object.entries(et).forEach(([t, e]) => {
1707
1707
  et[e] = t;
1708
1708
  });
1709
- function rr(t) {
1710
- const e = new xe(t), n = At(xe.prototype.request, e);
1709
+ function nr(t) {
1710
+ const e = new xe(t), n = Ut(xe.prototype.request, e);
1711
1711
  return p.extend(n, xe.prototype, e, { allOwnKeys: !0 }), p.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
1712
- return rr(he(t, i));
1712
+ return nr(me(t, i));
1713
1713
  }, n;
1714
1714
  }
1715
- const K = rr(Ie);
1715
+ const K = nr(Ie);
1716
1716
  K.Axios = xe;
1717
1717
  K.CanceledError = ve;
1718
1718
  K.CancelToken = Dn;
1719
- K.isCancel = Kt;
1720
- K.VERSION = er;
1719
+ K.isCancel = Jt;
1720
+ K.VERSION = tr;
1721
1721
  K.toFormData = Me;
1722
1722
  K.AxiosError = $;
1723
1723
  K.Cancel = K.CanceledError;
@@ -1726,10 +1726,10 @@ K.all = function(e) {
1726
1726
  };
1727
1727
  K.spread = Nn;
1728
1728
  K.isAxiosError = Fn;
1729
- K.mergeConfig = he;
1729
+ K.mergeConfig = me;
1730
1730
  K.AxiosHeaders = re;
1731
- K.formToJSON = (t) => Yt(p.isHTMLForm(t) ? new FormData(t) : t);
1732
- K.getAdapter = Qt.getAdapter;
1731
+ K.formToJSON = (t) => Kt(p.isHTMLForm(t) ? new FormData(t) : t);
1732
+ K.getAdapter = er.getAdapter;
1733
1733
  K.HttpStatusCode = et;
1734
1734
  K.default = K;
1735
1735
  const {
@@ -2364,10 +2364,10 @@ var Ae = { exports: {} }, ke = {};
2364
2364
  * This source code is licensed under the MIT license found in the
2365
2365
  * LICENSE file in the root directory of this source tree.
2366
2366
  */
2367
- var Tt;
2367
+ var Rt;
2368
2368
  function Ln() {
2369
- if (Tt) return ke;
2370
- Tt = 1;
2369
+ if (Rt) return ke;
2370
+ Rt = 1;
2371
2371
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
2372
2372
  function n(s, i, a) {
2373
2373
  var o = null;
@@ -2396,9 +2396,9 @@ var Ee = {};
2396
2396
  * This source code is licensed under the MIT license found in the
2397
2397
  * LICENSE file in the root directory of this source tree.
2398
2398
  */
2399
- var Rt;
2399
+ var Pt;
2400
2400
  function qn() {
2401
- return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && (function() {
2401
+ return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && (function() {
2402
2402
  function t(l) {
2403
2403
  if (l == null) return null;
2404
2404
  if (typeof l == "function")
@@ -2424,7 +2424,7 @@ function qn() {
2424
2424
  ), l.$$typeof) {
2425
2425
  case w:
2426
2426
  return "Portal";
2427
- case A:
2427
+ case U:
2428
2428
  return l.displayName || "Context";
2429
2429
  case g:
2430
2430
  return (l._context.displayName || "Context") + ".Consumer";
@@ -2553,8 +2553,8 @@ function qn() {
2553
2553
  else y(B);
2554
2554
  if (G.call(m, "key")) {
2555
2555
  B = t(l);
2556
- var le = Object.keys(m).filter(function(U) {
2557
- return U !== "key";
2556
+ var le = Object.keys(m).filter(function(A) {
2557
+ return A !== "key";
2558
2558
  });
2559
2559
  D = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", Y[B + D] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
2560
2560
  `A props object containing a "key" prop is being spread into JSX:
@@ -2571,8 +2571,8 @@ React keys must be passed directly to JSX without using spread:
2571
2571
  }
2572
2572
  if (B = null, S !== void 0 && (n(S), B = "" + S), o(m) && (n(m.key), B = "" + m.key), "key" in m) {
2573
2573
  S = {};
2574
- for (var ge in m)
2575
- ge !== "key" && (S[ge] = m[ge]);
2574
+ for (var ye in m)
2575
+ ye !== "key" && (S[ye] = m[ye]);
2576
2576
  } else S = m;
2577
2577
  return B && c(
2578
2578
  S,
@@ -2592,7 +2592,7 @@ React keys must be passed directly to JSX without using spread:
2592
2592
  function k(l) {
2593
2593
  return typeof l == "object" && l !== null && l.$$typeof === u;
2594
2594
  }
2595
- var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), A = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray, z = console.createTask ? console.createTask : function() {
2595
+ var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), U = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray, z = console.createTask ? console.createTask : function() {
2596
2596
  return null;
2597
2597
  };
2598
2598
  E = {
@@ -2627,9 +2627,9 @@ React keys must be passed directly to JSX without using spread:
2627
2627
  };
2628
2628
  })()), Ee;
2629
2629
  }
2630
- var Pt;
2630
+ var It;
2631
2631
  function Mn() {
2632
- return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ae.exports = Ln() : Ae.exports = qn()), Ae.exports;
2632
+ return It || (It = 1, process.env.NODE_ENV === "production" ? Ae.exports = Ln() : Ae.exports = qn()), Ae.exports;
2633
2633
  }
2634
2634
  var r = Mn();
2635
2635
  /**
@@ -2641,10 +2641,10 @@ var r = Mn();
2641
2641
  const Wn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Bn = (t) => t.replace(
2642
2642
  /^([A-Z])|[\s-_]+(\w)/g,
2643
2643
  (e, n, s) => s ? s.toUpperCase() : n.toLowerCase()
2644
- ), It = (t) => {
2644
+ ), Ot = (t) => {
2645
2645
  const e = Bn(t);
2646
2646
  return e.charAt(0).toUpperCase() + e.slice(1);
2647
- }, nr = (...t) => t.filter((e, n, s) => !!e && e.trim() !== "" && s.indexOf(e) === n).join(" ").trim(), Hn = (t) => {
2647
+ }, sr = (...t) => t.filter((e, n, s) => !!e && e.trim() !== "" && s.indexOf(e) === n).join(" ").trim(), Hn = (t) => {
2648
2648
  for (const e in t)
2649
2649
  if (e.startsWith("aria-") || e === "role" || e === "title")
2650
2650
  return !0;
@@ -2672,7 +2672,7 @@ var Vn = {
2672
2672
  * This source code is licensed under the ISC license.
2673
2673
  * See the LICENSE file in the root directory of this source tree.
2674
2674
  */
2675
- const Yn = zt(
2675
+ const Yn = At(
2676
2676
  ({
2677
2677
  color: t = "currentColor",
2678
2678
  size: e = 24,
@@ -2691,7 +2691,7 @@ const Yn = zt(
2691
2691
  height: e,
2692
2692
  stroke: t,
2693
2693
  strokeWidth: s ? Number(n) * 24 / Number(e) : n,
2694
- className: nr("lucide", i),
2694
+ className: sr("lucide", i),
2695
2695
  ...!a && !Hn(c) && { "aria-hidden": "true" },
2696
2696
  ...c
2697
2697
  },
@@ -2708,19 +2708,19 @@ const Yn = zt(
2708
2708
  * See the LICENSE file in the root directory of this source tree.
2709
2709
  */
2710
2710
  const L = (t, e) => {
2711
- const n = zt(
2711
+ const n = At(
2712
2712
  ({ className: s, ...i }, a) => Je(Yn, {
2713
2713
  ref: a,
2714
2714
  iconNode: e,
2715
- className: nr(
2716
- `lucide-${Wn(It(t))}`,
2715
+ className: sr(
2716
+ `lucide-${Wn(Ot(t))}`,
2717
2717
  `lucide-${t}`,
2718
2718
  s
2719
2719
  ),
2720
2720
  ...i
2721
2721
  })
2722
2722
  );
2723
- return n.displayName = It(t), n;
2723
+ return n.displayName = Ot(t), n;
2724
2724
  };
2725
2725
  /**
2726
2726
  * @license lucide-react v0.544.0 - ISC
@@ -2837,7 +2837,7 @@ const as = [
2837
2837
  }
2838
2838
  ],
2839
2839
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
2840
- ], it = L("eye-off", as);
2840
+ ], at = L("eye-off", as);
2841
2841
  /**
2842
2842
  * @license lucide-react v0.544.0 - ISC
2843
2843
  *
@@ -2853,7 +2853,7 @@ const os = [
2853
2853
  }
2854
2854
  ],
2855
2855
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2856
- ], at = L("eye", os);
2856
+ ], ot = L("eye", os);
2857
2857
  /**
2858
2858
  * @license lucide-react v0.544.0 - ISC
2859
2859
  *
@@ -2880,7 +2880,7 @@ const ds = [
2880
2880
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
2881
2881
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
2882
2882
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
2883
- ], sr = L("image", ds);
2883
+ ], ir = L("image", ds);
2884
2884
  /**
2885
2885
  * @license lucide-react v0.544.0 - ISC
2886
2886
  *
@@ -2896,7 +2896,7 @@ const us = [
2896
2896
  }
2897
2897
  ],
2898
2898
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
2899
- ], ir = L("key-round", us);
2899
+ ], ar = L("key-round", us);
2900
2900
  /**
2901
2901
  * @license lucide-react v0.544.0 - ISC
2902
2902
  *
@@ -2907,7 +2907,7 @@ const ps = [
2907
2907
  ["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
2908
2908
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
2909
2909
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
2910
- ], ot = L("key", ps);
2910
+ ], lt = L("key", ps);
2911
2911
  /**
2912
2912
  * @license lucide-react v0.544.0 - ISC
2913
2913
  *
@@ -2951,7 +2951,7 @@ const ms = [
2951
2951
  const ys = [
2952
2952
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
2953
2953
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
2954
- ], ye = L("lock", ys);
2954
+ ], be = L("lock", ys);
2955
2955
  /**
2956
2956
  * @license lucide-react v0.544.0 - ISC
2957
2957
  *
@@ -2962,7 +2962,7 @@ const bs = [
2962
2962
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
2963
2963
  ["path", { d: "M21 12H9", key: "dn1m92" }],
2964
2964
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
2965
- ], lt = L("log-out", bs);
2965
+ ], ct = L("log-out", bs);
2966
2966
  /**
2967
2967
  * @license lucide-react v0.544.0 - ISC
2968
2968
  *
@@ -3052,7 +3052,7 @@ const Ps = [
3052
3052
  }
3053
3053
  ],
3054
3054
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
3055
- ], ct = L("send", Ps);
3055
+ ], dt = L("send", Ps);
3056
3056
  /**
3057
3057
  * @license lucide-react v0.544.0 - ISC
3058
3058
  *
@@ -3083,7 +3083,7 @@ const zs = [
3083
3083
  key: "oel41y"
3084
3084
  }
3085
3085
  ]
3086
- ], ar = L("shield", zs);
3086
+ ], rt = L("shield", zs);
3087
3087
  /**
3088
3088
  * @license lucide-react v0.544.0 - ISC
3089
3089
  *
@@ -3113,7 +3113,7 @@ const Us = [
3113
3113
  ],
3114
3114
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3115
3115
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3116
- ], Ot = L("triangle-alert", Us);
3116
+ ], zt = L("triangle-alert", Us);
3117
3117
  /**
3118
3118
  * @license lucide-react v0.544.0 - ISC
3119
3119
  *
@@ -3135,7 +3135,7 @@ const _s = [
3135
3135
  const Ds = [
3136
3136
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
3137
3137
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
3138
- ], we = L("user", Ds);
3138
+ ], he = L("user", Ds);
3139
3139
  /**
3140
3140
  * @license lucide-react v0.544.0 - ISC
3141
3141
  *
@@ -3148,7 +3148,7 @@ const Ns = [
3148
3148
  ], Oe = L("x", Ns), or = cr(null), ci = ({
3149
3149
  authix: t,
3150
3150
  children: e
3151
- }) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), me = () => {
3151
+ }) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), ge = () => {
3152
3152
  const t = dr(or);
3153
3153
  if (!t)
3154
3154
  throw new Error("useAuthix must be used inside <AuthixProvider />");
@@ -3171,13 +3171,13 @@ const Ns = [
3171
3171
  onSuccess: y,
3172
3172
  onError: k
3173
3173
  }) => {
3174
- const E = me(), u = {
3174
+ const E = ge(), u = {
3175
3175
  name: "",
3176
3176
  email: "",
3177
3177
  password: "",
3178
3178
  role: d.length ? d[0] : "user",
3179
3179
  ...c && { avatarUrl: "" }
3180
- }, [w, h] = P(u), [I, C] = P(!1), [g, A] = P(!1), [N, b] = P(null), [j, q] = P({}), [O, X] = P(!1), W = o ? "#ffffff" : "#111827", R = o ? "#a1a1aa" : "#6b7280", G = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", T = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3180
+ }, [w, h] = P(u), [I, C] = P(!1), [g, U] = P(!1), [N, b] = P(null), [j, q] = P({}), [O, X] = P(!1), W = o ? "#ffffff" : "#111827", R = o ? "#a1a1aa" : "#6b7280", G = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", T = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3181
3181
  Ce.useEffect(() => {
3182
3182
  if (typeof window < "u") {
3183
3183
  const F = () => X(window.innerWidth < 768);
@@ -3192,7 +3192,7 @@ const Ns = [
3192
3192
  return w.name.trim() || (F.name = "Name is required"), w.email.trim() ? /\S+@\S+\.\S+/.test(w.email) || (F.email = "Invalid email address") : F.email = "Email is required", w.password ? w.password.length < 6 && (F.password = "Password must be at least 6 characters") : F.password = "Password is required", q(F), Object.keys(F).length === 0;
3193
3193
  }, J = async (F) => {
3194
3194
  if (F.preventDefault(), !!M()) {
3195
- A(!0), b(null);
3195
+ U(!0), b(null);
3196
3196
  try {
3197
3197
  const Y = {
3198
3198
  name: w.name,
@@ -3211,7 +3211,7 @@ const Ns = [
3211
3211
  text: Y.message || "Signup failed. Please try again."
3212
3212
  }), k?.(Y);
3213
3213
  } finally {
3214
- A(!1);
3214
+ U(!1);
3215
3215
  }
3216
3216
  }
3217
3217
  }, H = {
@@ -3276,7 +3276,7 @@ const Ns = [
3276
3276
  )
3277
3277
  }
3278
3278
  ) : /* @__PURE__ */ r.jsx(
3279
- we,
3279
+ he,
3280
3280
  {
3281
3281
  size: 40,
3282
3282
  color: i,
@@ -3456,7 +3456,7 @@ const Ns = [
3456
3456
  ),
3457
3457
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
3458
3458
  /* @__PURE__ */ r.jsx(
3459
- we,
3459
+ he,
3460
3460
  {
3461
3461
  size: 20,
3462
3462
  style: {
@@ -3566,7 +3566,7 @@ const Ns = [
3566
3566
  ),
3567
3567
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
3568
3568
  /* @__PURE__ */ r.jsx(
3569
- ye,
3569
+ be,
3570
3570
  {
3571
3571
  size: 20,
3572
3572
  style: {
@@ -3609,7 +3609,7 @@ const Ns = [
3609
3609
  cursor: "pointer",
3610
3610
  padding: "4px"
3611
3611
  },
3612
- children: I ? /* @__PURE__ */ r.jsx(it, { size: 20 }) : /* @__PURE__ */ r.jsx(at, { size: 20 })
3612
+ children: I ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
3613
3613
  }
3614
3614
  )
3615
3615
  ] }),
@@ -3644,7 +3644,7 @@ const Ns = [
3644
3644
  ),
3645
3645
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
3646
3646
  /* @__PURE__ */ r.jsx(
3647
- sr,
3647
+ ir,
3648
3648
  {
3649
3649
  size: 20,
3650
3650
  style: {
@@ -3790,7 +3790,7 @@ const Ns = [
3790
3790
  onSuccess: d,
3791
3791
  onError: f
3792
3792
  }) => {
3793
- const x = me(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [I, C] = P(!1), [g, A] = P(null), [N, b] = P(""), [j, q] = P(""), [O, X] = P({
3793
+ const x = ge(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [I, C] = P(!1), [g, U] = P(null), [N, b] = P(""), [j, q] = P(""), [O, X] = P({
3794
3794
  email: "",
3795
3795
  otp: "",
3796
3796
  newPassword: ""
@@ -3802,7 +3802,7 @@ const Ns = [
3802
3802
  }
3803
3803
  }, []);
3804
3804
  const J = async (m) => {
3805
- m.preventDefault(), C(!0), A(null);
3805
+ m.preventDefault(), C(!0), U(null);
3806
3806
  try {
3807
3807
  const S = await x.loginUser({ email: N, password: j }), { user: D } = S;
3808
3808
  if (!D)
@@ -3811,30 +3811,30 @@ const Ns = [
3811
3811
  const ne = "a_s_b", oe = "true", B = /* @__PURE__ */ new Date();
3812
3812
  B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${oe}; path=/; expires=${B.toUTCString()}; SameSite=Lax`;
3813
3813
  }
3814
- A({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
3814
+ U({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
3815
3815
  } catch (S) {
3816
3816
  const D = S.message || "Login failed";
3817
- A({ type: "error", text: D }), f?.(S);
3817
+ U({ type: "error", text: D }), f?.(S);
3818
3818
  } finally {
3819
3819
  C(!1);
3820
3820
  }
3821
3821
  }, H = (m) => {
3822
3822
  X({ ...O, [m.target.name]: m.target.value });
3823
3823
  }, F = async (m) => {
3824
- m.preventDefault(), C(!0), A(null);
3824
+ m.preventDefault(), C(!0), U(null);
3825
3825
  try {
3826
3826
  const S = await x.requestResetUserPasswordOTP({
3827
3827
  email: O.email
3828
3828
  });
3829
- S.success ? (u(2), A({
3829
+ S.success ? (u(2), U({
3830
3830
  type: "success",
3831
3831
  text: S.message || "OTP sent to your email"
3832
- })) : A({
3832
+ })) : U({
3833
3833
  type: "error",
3834
3834
  text: S.message || "Failed to send OTP"
3835
3835
  });
3836
3836
  } catch (S) {
3837
- A({
3837
+ U({
3838
3838
  type: "error",
3839
3839
  text: S.message || "Something went wrong"
3840
3840
  });
@@ -3842,19 +3842,19 @@ const Ns = [
3842
3842
  C(!1);
3843
3843
  }
3844
3844
  }, Y = async (m) => {
3845
- m.preventDefault(), C(!0), A(null);
3845
+ m.preventDefault(), C(!0), U(null);
3846
3846
  try {
3847
3847
  const S = await x.resetUserPassword({
3848
3848
  email: O.email,
3849
3849
  otp: O.otp,
3850
3850
  newPassword: O.newPassword
3851
3851
  });
3852
- S.success ? (A({
3852
+ S.success ? (U({
3853
3853
  type: "success",
3854
3854
  text: S.message || "Password reset successfully!"
3855
- }), u(1), X({ email: "", otp: "", newPassword: "" }), k("login")) : A({ type: "error", text: S.message || "Reset failed" });
3855
+ }), u(1), X({ email: "", otp: "", newPassword: "" }), k("login")) : U({ type: "error", text: S.message || "Reset failed" });
3856
3856
  } catch (S) {
3857
- A({
3857
+ U({
3858
3858
  type: "error",
3859
3859
  text: S.message || "Something went wrong"
3860
3860
  });
@@ -3921,7 +3921,7 @@ const Ns = [
3921
3921
  )
3922
3922
  }
3923
3923
  ) : /* @__PURE__ */ r.jsx(
3924
- we,
3924
+ he,
3925
3925
  {
3926
3926
  size: 40,
3927
3927
  color: i,
@@ -4024,7 +4024,7 @@ const Ns = [
4024
4024
  ),
4025
4025
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
4026
4026
  /* @__PURE__ */ r.jsx(
4027
- ye,
4027
+ be,
4028
4028
  {
4029
4029
  size: 20,
4030
4030
  style: {
@@ -4063,7 +4063,7 @@ const Ns = [
4063
4063
  color: T,
4064
4064
  cursor: "pointer"
4065
4065
  },
4066
- children: w ? /* @__PURE__ */ r.jsx(it, { size: 20 }) : /* @__PURE__ */ r.jsx(at, { size: 20 })
4066
+ children: w ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
4067
4067
  }
4068
4068
  )
4069
4069
  ] })
@@ -4205,7 +4205,7 @@ const Ns = [
4205
4205
  ),
4206
4206
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
4207
4207
  /* @__PURE__ */ r.jsx(
4208
- ir,
4208
+ ar,
4209
4209
  {
4210
4210
  size: 20,
4211
4211
  style: {
@@ -4256,7 +4256,7 @@ const Ns = [
4256
4256
  ),
4257
4257
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
4258
4258
  /* @__PURE__ */ r.jsx(
4259
- ye,
4259
+ be,
4260
4260
  {
4261
4261
  size: 20,
4262
4262
  style: {
@@ -4400,7 +4400,7 @@ const Ns = [
4400
4400
  userId: i,
4401
4401
  colors: a
4402
4402
  }) => {
4403
- const o = me(), [c, d] = P(!1), [f, x] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4403
+ const o = ge(), [c, d] = P(!1), [f, x] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4404
4404
  if (ee(() => {
4405
4405
  if (typeof window > "u") return;
4406
4406
  const g = () => {
@@ -4536,7 +4536,7 @@ const Ns = [
4536
4536
  display: "flex",
4537
4537
  alignItems: "flex-start"
4538
4538
  },
4539
- children: /* @__PURE__ */ r.jsx(Ot, { size: 24 })
4539
+ children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4540
4540
  }
4541
4541
  ),
4542
4542
  /* @__PURE__ */ r.jsxs("div", { style: { flex: 1 }, children: [
@@ -4570,10 +4570,10 @@ const Ns = [
4570
4570
  text: "This action cannot be reversed"
4571
4571
  },
4572
4572
  {
4573
- icon: /* @__PURE__ */ r.jsx(lt, { size: 16 }),
4573
+ icon: /* @__PURE__ */ r.jsx(ct, { size: 16 }),
4574
4574
  text: "You will lose access to all services"
4575
4575
  }
4576
- ].map((g, A) => /* @__PURE__ */ r.jsxs(
4576
+ ].map((g, U) => /* @__PURE__ */ r.jsxs(
4577
4577
  "div",
4578
4578
  {
4579
4579
  style: {
@@ -4588,7 +4588,7 @@ const Ns = [
4588
4588
  /* @__PURE__ */ r.jsx("span", { children: g.text })
4589
4589
  ]
4590
4590
  },
4591
- A
4591
+ U
4592
4592
  ))
4593
4593
  }
4594
4594
  )
@@ -4697,7 +4697,7 @@ const Ns = [
4697
4697
  color: "white",
4698
4698
  flexShrink: 0
4699
4699
  },
4700
- children: /* @__PURE__ */ r.jsx(Ot, { size: 24 })
4700
+ children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4701
4701
  }
4702
4702
  ),
4703
4703
  /* @__PURE__ */ r.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ r.jsx(
@@ -4940,7 +4940,7 @@ const Ns = [
4940
4940
  { text: "Removing your data", active: !0 },
4941
4941
  { text: "Closing active sessions", active: !1 },
4942
4942
  { text: "Finalizing deletion", active: !1 }
4943
- ].map((g, A) => /* @__PURE__ */ r.jsxs(
4943
+ ].map((g, U) => /* @__PURE__ */ r.jsxs(
4944
4944
  "div",
4945
4945
  {
4946
4946
  style: {
@@ -4979,7 +4979,7 @@ const Ns = [
4979
4979
  )
4980
4980
  ]
4981
4981
  },
4982
- A
4982
+ U
4983
4983
  ))
4984
4984
  }
4985
4985
  ) }),
@@ -4998,7 +4998,7 @@ const Ns = [
4998
4998
  },
4999
4999
  children: [
5000
5000
  /* @__PURE__ */ r.jsx(
5001
- ar,
5001
+ rt,
5002
5002
  {
5003
5003
  size: 18,
5004
5004
  style: { color: a.accent, flexShrink: 0 }
@@ -5479,7 +5479,7 @@ const Ns = [
5479
5479
  transform: "translateY(-50%)",
5480
5480
  color: s.textTertiary
5481
5481
  },
5482
- children: /* @__PURE__ */ r.jsx(sr, { size: 18 })
5482
+ children: /* @__PURE__ */ r.jsx(ir, { size: 18 })
5483
5483
  }
5484
5484
  )
5485
5485
  ] }),
@@ -5703,7 +5703,7 @@ const Ns = [
5703
5703
  userId: i,
5704
5704
  colors: a
5705
5705
  }) => {
5706
- const o = me(), [c, d] = P({
5706
+ const o = ge(), [c, d] = P({
5707
5707
  currentPassword: "",
5708
5708
  newPassword: "",
5709
5709
  confirmPassword: ""
@@ -5727,7 +5727,7 @@ const Ns = [
5727
5727
  }, g = () => {
5728
5728
  const b = {};
5729
5729
  return c.currentPassword || (b.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (b.newPassword = "Password must be at least 6 characters") : b.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (b.confirmPassword = "Passwords do not match"), x(b), Object.keys(b).length === 0;
5730
- }, A = async (b) => {
5730
+ }, U = async (b) => {
5731
5731
  if (b.preventDefault(), !!g()) {
5732
5732
  k(!0);
5733
5733
  try {
@@ -5751,17 +5751,17 @@ const Ns = [
5751
5751
  {
5752
5752
  field: "currentPassword",
5753
5753
  label: "Current Password",
5754
- icon: /* @__PURE__ */ r.jsx(ot, { size: 18 })
5754
+ icon: /* @__PURE__ */ r.jsx(lt, { size: 18 })
5755
5755
  },
5756
5756
  {
5757
5757
  field: "newPassword",
5758
5758
  label: "New Password",
5759
- icon: /* @__PURE__ */ r.jsx(ye, { size: 18 })
5759
+ icon: /* @__PURE__ */ r.jsx(be, { size: 18 })
5760
5760
  },
5761
5761
  {
5762
5762
  field: "confirmPassword",
5763
5763
  label: "Confirm Password",
5764
- icon: /* @__PURE__ */ r.jsx(ye, { size: 18 })
5764
+ icon: /* @__PURE__ */ r.jsx(be, { size: 18 })
5765
5765
  }
5766
5766
  ];
5767
5767
  return /* @__PURE__ */ r.jsx(
@@ -5829,7 +5829,7 @@ const Ns = [
5829
5829
  color: a.accent,
5830
5830
  flexShrink: 0
5831
5831
  },
5832
- children: /* @__PURE__ */ r.jsx(ye, { size: 20 })
5832
+ children: /* @__PURE__ */ r.jsx(be, { size: 20 })
5833
5833
  }
5834
5834
  ),
5835
5835
  /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
@@ -5879,7 +5879,7 @@ const Ns = [
5879
5879
  ]
5880
5880
  }
5881
5881
  ),
5882
- /* @__PURE__ */ r.jsxs("form", { onSubmit: A, children: [
5882
+ /* @__PURE__ */ r.jsxs("form", { onSubmit: U, children: [
5883
5883
  N.map(({ field: b, label: j, icon: q }) => /* @__PURE__ */ r.jsxs(
5884
5884
  "div",
5885
5885
  {
@@ -5975,7 +5975,7 @@ const Ns = [
5975
5975
  onMouseOut: (O) => {
5976
5976
  O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color = a.textTertiary;
5977
5977
  },
5978
- children: E[b] ? /* @__PURE__ */ r.jsx(it, { size: 18 }) : /* @__PURE__ */ r.jsx(at, { size: 18 })
5978
+ children: E[b] ? /* @__PURE__ */ r.jsx(at, { size: 18 }) : /* @__PURE__ */ r.jsx(ot, { size: 18 })
5979
5979
  }
5980
5980
  )
5981
5981
  ] }),
@@ -6217,7 +6217,7 @@ const Ns = [
6217
6217
  /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "OTP" }),
6218
6218
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6219
6219
  /* @__PURE__ */ r.jsx(
6220
- ir,
6220
+ ar,
6221
6221
  {
6222
6222
  size: 18,
6223
6223
  style: { color: f.textTertiary },
@@ -6275,7 +6275,7 @@ const Ns = [
6275
6275
  },
6276
6276
  "aria-label": c ? "Sending OTP" : "Send OTP",
6277
6277
  children: [
6278
- c ? /* @__PURE__ */ r.jsx(se, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ r.jsx(ct, { size: 16, "aria-hidden": "true" }),
6278
+ c ? /* @__PURE__ */ r.jsx(se, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ r.jsx(dt, { size: 16, "aria-hidden": "true" }),
6279
6279
  c ? "Sending..." : "Send OTP"
6280
6280
  ]
6281
6281
  }
@@ -6442,7 +6442,7 @@ const Ns = [
6442
6442
  onVerify: s,
6443
6443
  primaryColor: i = "#00C212"
6444
6444
  }) => {
6445
- const a = me(), [o, c] = P(null), [d, f] = P(), [x, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [A, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, z] = P(!1), [M, J] = P({
6445
+ const a = ge(), [o, c] = P(null), [d, f] = P(), [x, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, z] = P(!1), [M, J] = P({
6446
6446
  email: "",
6447
6447
  otp: ""
6448
6448
  }), [H, F] = P(!1), [Y, l] = P(!1);
@@ -6599,10 +6599,10 @@ const Ns = [
6599
6599
  }, []), ee(() => {
6600
6600
  d?.email && J((v) => ({ ...v, email: d.email }));
6601
6601
  }, [d?.email]);
6602
- const ge = (v, _) => {
6602
+ const ye = (v, _) => {
6603
6603
  let V = parseInt(v.replace("#", ""), 16), Z = (V >> 16) + _, de = (V >> 8 & 255) + _, Be = (V & 255) + _;
6604
6604
  return Z = Math.min(255, Math.max(0, Z)), de = Math.min(255, Math.max(0, de)), Be = Math.min(255, Math.max(0, Be)), `#${(Be | de << 8 | Z << 16).toString(16).padStart(6, "0")}`;
6605
- }, U = t ? {
6605
+ }, A = t ? {
6606
6606
  background: "#000000",
6607
6607
  surface: "#09090b",
6608
6608
  surfaceLight: "#27272a",
@@ -6611,7 +6611,7 @@ const Ns = [
6611
6611
  textSecondary: "#d4d4d8",
6612
6612
  textTertiary: "#a1a1aa",
6613
6613
  accent: i,
6614
- accentHover: ge(i, -15),
6614
+ accentHover: ye(i, -15),
6615
6615
  success: "#10b981",
6616
6616
  error: "#ef4444",
6617
6617
  border: "#27272a",
@@ -6625,7 +6625,7 @@ const Ns = [
6625
6625
  textSecondary: "#52525b",
6626
6626
  textTertiary: "#71717a",
6627
6627
  accent: i,
6628
- accentHover: ge(i, -15),
6628
+ accentHover: ye(i, -15),
6629
6629
  success: "#10b981",
6630
6630
  error: "#ef4444",
6631
6631
  border: "#e4e4e7",
@@ -6641,7 +6641,7 @@ const Ns = [
6641
6641
  display: "flex",
6642
6642
  alignItems: "center",
6643
6643
  justifyContent: "center",
6644
- color: U.textPrimary,
6644
+ color: A.textPrimary,
6645
6645
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6646
6646
  },
6647
6647
  children: /* @__PURE__ */ r.jsxs(
@@ -6659,12 +6659,12 @@ const Ns = [
6659
6659
  se,
6660
6660
  {
6661
6661
  size: 40,
6662
- color: U.accent,
6662
+ color: A.accent,
6663
6663
  style: { animation: "spin 1s linear infinite" },
6664
6664
  "aria-hidden": "true"
6665
6665
  }
6666
6666
  ),
6667
- /* @__PURE__ */ r.jsx("p", { style: { color: U.textTertiary, margin: 0 }, children: "Loading your profile..." })
6667
+ /* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "Loading your profile..." })
6668
6668
  ]
6669
6669
  }
6670
6670
  )
@@ -6680,7 +6680,7 @@ const Ns = [
6680
6680
  display: "flex",
6681
6681
  alignItems: "center",
6682
6682
  justifyContent: "center",
6683
- color: U.textPrimary,
6683
+ color: A.textPrimary,
6684
6684
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6685
6685
  },
6686
6686
  children: /* @__PURE__ */ r.jsxs(
@@ -6694,20 +6694,28 @@ const Ns = [
6694
6694
  textAlign: "center"
6695
6695
  },
6696
6696
  children: [
6697
- /* @__PURE__ */ r.jsx(ie, { size: 40, color: U.error, "aria-hidden": "true" }),
6698
- /* @__PURE__ */ r.jsx("p", { style: { color: U.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6697
+ /* @__PURE__ */ r.jsx(ie, { size: 40, color: A.error, "aria-hidden": "true" }),
6698
+ /* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6699
6699
  ]
6700
6700
  }
6701
6701
  )
6702
6702
  }
6703
6703
  );
6704
6704
  const lr = [
6705
+ {
6706
+ label: "Username",
6707
+ value: d.username || "Not set",
6708
+ name: "username",
6709
+ type: "text",
6710
+ icon: he,
6711
+ readonly: !0
6712
+ },
6705
6713
  {
6706
6714
  label: "Full Name",
6707
6715
  value: d.name,
6708
6716
  name: "name",
6709
6717
  type: "text",
6710
- icon: we
6718
+ icon: he
6711
6719
  },
6712
6720
  {
6713
6721
  label: "Email Address",
@@ -6716,6 +6724,14 @@ const Ns = [
6716
6724
  type: "email",
6717
6725
  icon: pe
6718
6726
  },
6727
+ {
6728
+ label: "Role",
6729
+ value: d.role || "user",
6730
+ name: "role",
6731
+ type: "text",
6732
+ icon: rt,
6733
+ readonly: !0
6734
+ },
6719
6735
  {
6720
6736
  label: "Phone Number",
6721
6737
  value: d.phone || "Not set",
@@ -6739,7 +6755,7 @@ const Ns = [
6739
6755
  display: "flex",
6740
6756
  alignItems: "center",
6741
6757
  justifyContent: "center",
6742
- color: U.textPrimary,
6758
+ color: A.textPrimary,
6743
6759
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
6744
6760
  lineHeight: 1.5,
6745
6761
  minHeight: "80vh"
@@ -6825,7 +6841,7 @@ const Ns = [
6825
6841
  "section",
6826
6842
  {
6827
6843
  style: {
6828
- backgroundColor: U.surface,
6844
+ backgroundColor: A.surface,
6829
6845
  borderRadius: "16px",
6830
6846
  position: "relative",
6831
6847
  padding: "24px",
@@ -6879,7 +6895,7 @@ const Ns = [
6879
6895
  borderRadius: "50%",
6880
6896
  objectFit: "cover",
6881
6897
  boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
6882
- border: `3px solid ${U.border}`
6898
+ border: `3px solid ${A.border}`
6883
6899
  },
6884
6900
  width: 128,
6885
6901
  height: 128,
@@ -6894,7 +6910,7 @@ const Ns = [
6894
6910
  position: "absolute",
6895
6911
  bottom: "8px",
6896
6912
  right: "8px",
6897
- backgroundColor: U.accent,
6913
+ backgroundColor: A.accent,
6898
6914
  color: "white",
6899
6915
  padding: "8px",
6900
6916
  borderRadius: "50%",
@@ -6921,16 +6937,31 @@ const Ns = [
6921
6937
  fontSize: "24px",
6922
6938
  fontWeight: 600,
6923
6939
  margin: "0 0 4px 0",
6924
- color: U.textPrimary
6940
+ color: A.textPrimary
6925
6941
  },
6926
6942
  children: d.name
6927
6943
  }
6928
6944
  ),
6945
+ /* @__PURE__ */ r.jsxs(
6946
+ "h2",
6947
+ {
6948
+ style: {
6949
+ fontSize: "24px",
6950
+ fontWeight: 600,
6951
+ margin: "0 0 4px 0",
6952
+ color: A.textPrimary
6953
+ },
6954
+ children: [
6955
+ "@",
6956
+ d.username || "Not set"
6957
+ ]
6958
+ }
6959
+ ),
6929
6960
  /* @__PURE__ */ r.jsx(
6930
6961
  "p",
6931
6962
  {
6932
6963
  style: {
6933
- color: U.textTertiary,
6964
+ color: A.textTertiary,
6934
6965
  margin: "0 0 8px 0"
6935
6966
  },
6936
6967
  children: d.email
@@ -6941,7 +6972,7 @@ const Ns = [
6941
6972
  {
6942
6973
  style: {
6943
6974
  backgroundColor: d.isVerified ? t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)" : t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
6944
- color: d.isVerified ? U.success : U.warning,
6975
+ color: d.isVerified ? A.success : A.warning,
6945
6976
  border: `1px solid ${d.isVerified ? t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)" : t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`,
6946
6977
  padding: "6px 12px",
6947
6978
  borderRadius: "20px",
@@ -6975,9 +7006,9 @@ const Ns = [
6975
7006
  {
6976
7007
  onClick: () => E(!1),
6977
7008
  style: {
6978
- backgroundColor: U.surfaceLight,
6979
- border: `1px solid ${U.border}`,
6980
- color: U.textPrimary,
7009
+ backgroundColor: A.surfaceLight,
7010
+ border: `1px solid ${A.border}`,
7011
+ color: A.textPrimary,
6981
7012
  padding: "10px 20px",
6982
7013
  borderRadius: "6px",
6983
7014
  borderStyle: "solid",
@@ -7005,7 +7036,7 @@ const Ns = [
7005
7036
  onClick: B,
7006
7037
  disabled: u,
7007
7038
  style: {
7008
- background: `linear-gradient(to right, ${U.accent}, ${U.accentHover})`,
7039
+ background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
7009
7040
  opacity: u ? 0.7 : 1,
7010
7041
  color: "white",
7011
7042
  padding: "10px 20px",
@@ -7042,7 +7073,7 @@ const Ns = [
7042
7073
  {
7043
7074
  onClick: () => E(!0),
7044
7075
  style: {
7045
- background: `linear-gradient(to right, ${U.accent}, ${U.accentHover})`,
7076
+ background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
7046
7077
  color: "white",
7047
7078
  padding: "10px 20px",
7048
7079
  borderRadius: "6px",
@@ -7097,7 +7128,7 @@ const Ns = [
7097
7128
  style: { animation: "spin 1s linear infinite" },
7098
7129
  "aria-hidden": "true"
7099
7130
  }
7100
- ) : /* @__PURE__ */ r.jsx(ct, { size: 14, "aria-hidden": "true" }),
7131
+ ) : /* @__PURE__ */ r.jsx(dt, { size: 14, "aria-hidden": "true" }),
7101
7132
  T ? "Sending..." : "Verify Email"
7102
7133
  ]
7103
7134
  }
@@ -7107,8 +7138,8 @@ const Ns = [
7107
7138
  "button",
7108
7139
  {
7109
7140
  style: {
7110
- backgroundColor: U.surfaceLight,
7111
- color: U.textPrimary,
7141
+ backgroundColor: A.surfaceLight,
7142
+ color: A.textPrimary,
7112
7143
  padding: "10px 20px",
7113
7144
  borderRadius: "6px",
7114
7145
  border: "none",
@@ -7141,8 +7172,8 @@ const Ns = [
7141
7172
  bottom: "100%",
7142
7173
  left: 0,
7143
7174
  right: 0,
7144
- backgroundColor: U.surface,
7145
- border: `1px solid ${U.border}`,
7175
+ backgroundColor: A.surface,
7176
+ border: `1px solid ${A.border}`,
7146
7177
  borderRadius: "12px 12px 0 0",
7147
7178
  boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
7148
7179
  zIndex: 200,
@@ -7162,7 +7193,7 @@ const Ns = [
7162
7193
  padding: "14px 18px",
7163
7194
  backgroundColor: "transparent",
7164
7195
  border: "none",
7165
- color: U.textPrimary,
7196
+ color: A.textPrimary,
7166
7197
  cursor: "pointer",
7167
7198
  transition: "all 0.2s ease",
7168
7199
  fontSize: "13px",
@@ -7172,10 +7203,10 @@ const Ns = [
7172
7203
  gap: "8px",
7173
7204
  textAlign: "left"
7174
7205
  },
7175
- onMouseEnter: (v) => v.currentTarget.style.backgroundColor = U.surfaceLight,
7206
+ onMouseEnter: (v) => v.currentTarget.style.backgroundColor = A.surfaceLight,
7176
7207
  onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
7177
7208
  children: [
7178
- /* @__PURE__ */ r.jsx(ot, { size: 14, "aria-hidden": "true" }),
7209
+ /* @__PURE__ */ r.jsx(lt, { size: 14, "aria-hidden": "true" }),
7179
7210
  "Change Password"
7180
7211
  ]
7181
7212
  }
@@ -7206,7 +7237,7 @@ const Ns = [
7206
7237
  },
7207
7238
  onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
7208
7239
  children: [
7209
- /* @__PURE__ */ r.jsx(lt, { size: 14, "aria-hidden": "true" }),
7240
+ /* @__PURE__ */ r.jsx(ct, { size: 14, "aria-hidden": "true" }),
7210
7241
  "Logout"
7211
7242
  ]
7212
7243
  }
@@ -7266,7 +7297,7 @@ const Ns = [
7266
7297
  "section",
7267
7298
  {
7268
7299
  style: {
7269
- backgroundColor: U.surface,
7300
+ backgroundColor: A.surface,
7270
7301
  borderRadius: "16px",
7271
7302
  padding: "24px",
7272
7303
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7279,13 +7310,13 @@ const Ns = [
7279
7310
  fontSize: "20px",
7280
7311
  fontWeight: 600,
7281
7312
  margin: "0 0 24px 0",
7282
- color: U.textSecondary,
7313
+ color: A.textSecondary,
7283
7314
  display: "flex",
7284
7315
  alignItems: "center",
7285
7316
  gap: "8px"
7286
7317
  },
7287
7318
  children: [
7288
- /* @__PURE__ */ r.jsx(we, { size: 20, "aria-hidden": "true" }),
7319
+ /* @__PURE__ */ r.jsx(he, { size: 20, "aria-hidden": "true" }),
7289
7320
  "Personal Information"
7290
7321
  ]
7291
7322
  }
@@ -7317,7 +7348,7 @@ const Ns = [
7317
7348
  "label",
7318
7349
  {
7319
7350
  style: {
7320
- color: U.textTertiary,
7351
+ color: A.textTertiary,
7321
7352
  fontSize: "12px",
7322
7353
  fontWeight: 500,
7323
7354
  display: "flex",
@@ -7330,7 +7361,7 @@ const Ns = [
7330
7361
  ]
7331
7362
  }
7332
7363
  ),
7333
- k ? /* @__PURE__ */ r.jsx(
7364
+ k && !v.readonly ? /* @__PURE__ */ r.jsx(
7334
7365
  "input",
7335
7366
  {
7336
7367
  type: v.type,
@@ -7344,13 +7375,14 @@ const Ns = [
7344
7375
  borderRadius: "8px",
7345
7376
  border: `1px solid ${i}`,
7346
7377
  backgroundColor: "transparent",
7347
- color: U.textPrimary,
7378
+ color: A.textPrimary,
7348
7379
  fontSize: "12px",
7349
7380
  outline: "none",
7350
7381
  transition: "border-color 0.2s ease",
7351
7382
  minHeight: "44px",
7352
7383
  width: "100%",
7353
- boxSizing: "border-box"
7384
+ boxSizing: "border-box",
7385
+ opacity: v.readonly ? 0.7 : 1
7354
7386
  },
7355
7387
  placeholder: `Enter ${v.label.toLowerCase()}`,
7356
7388
  "aria-label": v.label
@@ -7367,7 +7399,7 @@ const Ns = [
7367
7399
  display: "flex",
7368
7400
  alignItems: "center",
7369
7401
  boxSizing: "border-box",
7370
- color: U.textPrimary,
7402
+ color: A.textPrimary,
7371
7403
  backgroundColor: t ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
7372
7404
  },
7373
7405
  children: v.value
@@ -7387,7 +7419,7 @@ const Ns = [
7387
7419
  "section",
7388
7420
  {
7389
7421
  style: {
7390
- backgroundColor: U.surface,
7422
+ backgroundColor: A.surface,
7391
7423
  borderRadius: "16px",
7392
7424
  padding: "30px 24px",
7393
7425
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7400,13 +7432,13 @@ const Ns = [
7400
7432
  fontSize: "20px",
7401
7433
  fontWeight: 600,
7402
7434
  margin: "0 0 24px 0",
7403
- color: U.textSecondary,
7435
+ color: A.textSecondary,
7404
7436
  display: "flex",
7405
7437
  alignItems: "center",
7406
7438
  gap: "8px"
7407
7439
  },
7408
7440
  children: [
7409
- /* @__PURE__ */ r.jsx(ar, { size: 20, "aria-hidden": "true" }),
7441
+ /* @__PURE__ */ r.jsx(rt, { size: 20, "aria-hidden": "true" }),
7410
7442
  "Security Status"
7411
7443
  ]
7412
7444
  }
@@ -7437,7 +7469,7 @@ const Ns = [
7437
7469
  display: "flex",
7438
7470
  alignItems: "center",
7439
7471
  gap: "12px",
7440
- color: U.textSecondary
7472
+ color: A.textSecondary
7441
7473
  },
7442
7474
  children: [
7443
7475
  /* @__PURE__ */ r.jsx(pe, { size: 16, "aria-hidden": "true" }),
@@ -7458,11 +7490,11 @@ const Ns = [
7458
7490
  gap: "6px",
7459
7491
  ...d.isVerified ? {
7460
7492
  backgroundColor: t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
7461
- color: U.success,
7493
+ color: A.success,
7462
7494
  border: `1px solid ${t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
7463
7495
  } : {
7464
7496
  backgroundColor: t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
7465
- color: U.warning,
7497
+ color: A.warning,
7466
7498
  border: `1px solid ${t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
7467
7499
  }
7468
7500
  },
@@ -7490,7 +7522,7 @@ const Ns = [
7490
7522
  "p",
7491
7523
  {
7492
7524
  style: {
7493
- color: U.textTertiary,
7525
+ color: A.textTertiary,
7494
7526
  fontSize: "12px",
7495
7527
  margin: 0
7496
7528
  },
@@ -7521,7 +7553,7 @@ const Ns = [
7521
7553
  I(!1);
7522
7554
  },
7523
7555
  onUpdate: oe,
7524
- colors: U
7556
+ colors: A
7525
7557
  }
7526
7558
  ),
7527
7559
  /* @__PURE__ */ r.jsx(
@@ -7532,18 +7564,18 @@ const Ns = [
7532
7564
  onClose: () => g(!1),
7533
7565
  onSuccess: (v) => m("success", v),
7534
7566
  onError: (v) => m("error", v),
7535
- colors: U
7567
+ colors: A
7536
7568
  }
7537
7569
  ),
7538
7570
  /* @__PURE__ */ r.jsx(
7539
7571
  Fs,
7540
7572
  {
7541
7573
  userId: d.id,
7542
- isOpen: A,
7574
+ isOpen: U,
7543
7575
  onClose: () => N(!1),
7544
7576
  onSuccess: (v) => m("success", v),
7545
7577
  onError: (v) => m("error", v),
7546
- colors: U
7578
+ colors: A
7547
7579
  }
7548
7580
  ),
7549
7581
  /* @__PURE__ */ r.jsx(
@@ -7560,7 +7592,7 @@ const Ns = [
7560
7592
  otpSent: H,
7561
7593
  verifying: Y,
7562
7594
  user: d,
7563
- colors: U,
7595
+ colors: A,
7564
7596
  darkMode: t
7565
7597
  }
7566
7598
  ),
@@ -7676,7 +7708,7 @@ const Ns = [
7676
7708
  viewProfileLabel: E = "View Profile",
7677
7709
  logoutLabel: u = "Sign Out"
7678
7710
  }) => {
7679
- const w = me(), [h, I] = P(!1), [C, g] = P(null), [A, N] = P(!0), [b, j] = P(null), q = dt(null), O = dt(null), [X, W] = P(!1), [R, G] = P(!1);
7711
+ const w = ge(), [h, I] = P(!1), [C, g] = P(null), [U, N] = P(!0), [b, j] = P(null), q = ut(null), O = ut(null), [X, W] = P(!1), [R, G] = P(!1);
7680
7712
  ee(() => {
7681
7713
  if (typeof window > "u") return;
7682
7714
  const l = () => {
@@ -8141,7 +8173,7 @@ const Ns = [
8141
8173
  ]
8142
8174
  }
8143
8175
  ),
8144
- h && /* @__PURE__ */ r.jsx("div", { style: z.dropdown, role: "menu", "aria-label": "User options", children: A ? /* @__PURE__ */ r.jsxs(
8176
+ h && /* @__PURE__ */ r.jsx("div", { style: z.dropdown, role: "menu", "aria-label": "User options", children: U ? /* @__PURE__ */ r.jsxs(
8145
8177
  "div",
8146
8178
  {
8147
8179
  style: z.loadingContainer,
@@ -8210,7 +8242,7 @@ const Ns = [
8210
8242
  role: "menuitem",
8211
8243
  tabIndex: 0,
8212
8244
  children: [
8213
- /* @__PURE__ */ r.jsx(we, { style: z.icon, "aria-hidden": "true" }),
8245
+ /* @__PURE__ */ r.jsx(he, { style: z.icon, "aria-hidden": "true" }),
8214
8246
  /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: y })
8215
8247
  ]
8216
8248
  }
@@ -8273,7 +8305,7 @@ const Ns = [
8273
8305
  tabIndex: 0,
8274
8306
  children: [
8275
8307
  /* @__PURE__ */ r.jsx(
8276
- lt,
8308
+ ct,
8277
8309
  {
8278
8310
  style: { ...z.icon, color: T.error },
8279
8311
  "aria-hidden": "true"
@@ -8323,7 +8355,7 @@ const Ns = [
8323
8355
  primaryColor: n = "#00C212",
8324
8356
  onVerify: s
8325
8357
  }) => {
8326
- const i = me();
8358
+ const i = ge();
8327
8359
  if (!t)
8328
8360
  return /* @__PURE__ */ r.jsxs(
8329
8361
  "div",
@@ -8434,7 +8466,7 @@ const Ns = [
8434
8466
  } finally {
8435
8467
  k(!1);
8436
8468
  }
8437
- }, A = {
8469
+ }, U = {
8438
8470
  width: "100%",
8439
8471
  padding: "12px 12px 12px 40px",
8440
8472
  borderRadius: 8,
@@ -8565,7 +8597,7 @@ const Ns = [
8565
8597
  onChange: (b) => d((j) => ({ ...j, email: b.target.value })),
8566
8598
  placeholder: "Enter your email",
8567
8599
  style: {
8568
- ...A,
8600
+ ...U,
8569
8601
  paddingLeft: 40,
8570
8602
  // enough space for icon
8571
8603
  height: 40,
@@ -8597,7 +8629,7 @@ const Ns = [
8597
8629
  },
8598
8630
  children: [
8599
8631
  /* @__PURE__ */ r.jsx(
8600
- ot,
8632
+ lt,
8601
8633
  {
8602
8634
  size: 18,
8603
8635
  style: {
@@ -8616,7 +8648,7 @@ const Ns = [
8616
8648
  onChange: (b) => d((j) => ({ ...j, otp: b.target.value })),
8617
8649
  placeholder: "Enter OTP",
8618
8650
  style: {
8619
- ...A,
8651
+ ...U,
8620
8652
  paddingLeft: 40,
8621
8653
  height: 40,
8622
8654
  borderRadius: 8,
@@ -8665,7 +8697,7 @@ const Ns = [
8665
8697
  fontSize: 14
8666
8698
  },
8667
8699
  children: [
8668
- y ? /* @__PURE__ */ r.jsx(se, { size: 16, className: "spinner" }) : /* @__PURE__ */ r.jsx(ct, { size: 16 }),
8700
+ y ? /* @__PURE__ */ r.jsx(se, { size: 16, className: "spinner" }) : /* @__PURE__ */ r.jsx(dt, { size: 16 }),
8669
8701
  y ? "Sending..." : "Send OTP"
8670
8702
  ]
8671
8703
  }