@neuctra/authix 1.2.16 → 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 Ke, 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
- ), Jr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Lt, Kr = (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,25 +217,25 @@ 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,
237
- asap: Jr,
238
- isIterable: Kr
236
+ setImmediate: qt,
237
+ asap: Kr,
238
+ isIterable: Jr
239
239
  };
240
240
  function $(t, e, n, s, i) {
241
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), n && (this.config = n), s && (this.request = s), i && (this.response = i, this.status = i.status ? i.status : null);
@@ -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) {
@@ -826,7 +826,7 @@ function ve(t, e, n) {
826
826
  p.inherits(ve, $, {
827
827
  __CANCEL__: !0
828
828
  });
829
- function Kt(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
- Kt(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,15 +1245,15 @@ 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");
1256
- const M = a && "credentials" in n.prototype, K = {
1256
+ const M = a && "credentials" in n.prototype, J = {
1257
1257
  ...X,
1258
1258
  signal: R,
1259
1259
  method: h.toUpperCase(),
@@ -1262,20 +1262,20 @@ const Xt = (t) => {
1262
1262
  duplex: "half",
1263
1263
  credentials: M ? O : void 0
1264
1264
  };
1265
- G = a && new n(w, K);
1266
- let H = await (a ? W(G, X) : W(w, K));
1265
+ G = a && new n(w, J);
1266
+ let H = await (a ? W(G, X) : W(w, J));
1267
1267
  const F = x && (j === "stream" || j === "response");
1268
1268
  if (x && (N || F && T)) {
1269
1269
  const l = {};
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
- Kt(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,11 +1366,11 @@ 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,
@@ -1384,16 +1384,16 @@ function Et(t) {
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,37 +1706,37 @@ 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 J = rr(Ie);
1716
- J.Axios = xe;
1717
- J.CanceledError = ve;
1718
- J.CancelToken = Dn;
1719
- J.isCancel = Jt;
1720
- J.VERSION = er;
1721
- J.toFormData = Me;
1722
- J.AxiosError = $;
1723
- J.Cancel = J.CanceledError;
1724
- J.all = function(e) {
1715
+ const K = nr(Ie);
1716
+ K.Axios = xe;
1717
+ K.CanceledError = ve;
1718
+ K.CancelToken = Dn;
1719
+ K.isCancel = Jt;
1720
+ K.VERSION = tr;
1721
+ K.toFormData = Me;
1722
+ K.AxiosError = $;
1723
+ K.Cancel = K.CanceledError;
1724
+ K.all = function(e) {
1725
1725
  return Promise.all(e);
1726
1726
  };
1727
- J.spread = Nn;
1728
- J.isAxiosError = Fn;
1729
- J.mergeConfig = he;
1730
- J.AxiosHeaders = re;
1731
- J.formToJSON = (t) => Yt(p.isHTMLForm(t) ? new FormData(t) : t);
1732
- J.getAdapter = Qt.getAdapter;
1733
- J.HttpStatusCode = et;
1734
- J.default = J;
1727
+ K.spread = Nn;
1728
+ K.isAxiosError = Fn;
1729
+ K.mergeConfig = me;
1730
+ K.AxiosHeaders = re;
1731
+ K.formToJSON = (t) => Kt(p.isHTMLForm(t) ? new FormData(t) : t);
1732
+ K.getAdapter = er.getAdapter;
1733
+ K.HttpStatusCode = et;
1734
+ K.default = K;
1735
1735
  const {
1736
1736
  Axios: Vs,
1737
1737
  AxiosError: Ys,
1738
- CanceledError: Js,
1739
- isCancel: Ks,
1738
+ CanceledError: Ks,
1739
+ isCancel: Js,
1740
1740
  CancelToken: Gs,
1741
1741
  VERSION: Xs,
1742
1742
  all: Zs,
@@ -1749,7 +1749,7 @@ const {
1749
1749
  formToJSON: ii,
1750
1750
  getAdapter: ai,
1751
1751
  mergeConfig: oi
1752
- } = J;
1752
+ } = K;
1753
1753
  class li {
1754
1754
  baseUrl;
1755
1755
  apiKey;
@@ -1762,7 +1762,7 @@ class li {
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 = J.create({
1765
+ this.baseUrl = e.baseUrl.replace(/\/$/, ""), this.apiKey = e.apiKey || null, this.appId = e.appId || null, this.client = K.create({
1766
1766
  baseURL: this.baseUrl,
1767
1767
  headers: {
1768
1768
  "Content-Type": "application/json",
@@ -1796,7 +1796,7 @@ class li {
1796
1796
  // 👈 override axios default
1797
1797
  })).data;
1798
1798
  } catch (o) {
1799
- throw J.isAxiosError(o) ? {
1799
+ throw K.isAxiosError(o) ? {
1800
1800
  message: o.response?.data?.message || o.message || "Request failed",
1801
1801
  status: o.response?.status ?? 0
1802
1802
  } : { message: o.message || "Unexpected error occurred" };
@@ -1943,6 +1943,28 @@ class li {
1943
1943
  return { authenticated: !1 };
1944
1944
  }
1945
1945
  }
1946
+ /**
1947
+ * 👤 Get user by ID or username
1948
+ *
1949
+ * Route:
1950
+ * GET /users/:appId/user?id=USER_ID
1951
+ * GET /users/:appId/user?username=USERNAME
1952
+ */
1953
+ async getUser(e) {
1954
+ const n = this.appId;
1955
+ if (!n)
1956
+ throw new Error("getUser: 'appId' is required in SDK config");
1957
+ if (!e?.id && !e?.username)
1958
+ throw new Error("getUser: either 'id' or 'username' is required");
1959
+ const s = new URLSearchParams();
1960
+ return e.id && s.append("id", e.id), e.username && s.append("username", e.username), await this.request(
1961
+ "GET",
1962
+ `/users/${encodeURIComponent(n)}/user?${s.toString()}`,
1963
+ void 0,
1964
+ {},
1965
+ !0
1966
+ );
1967
+ }
1946
1968
  /**
1947
1969
  * Update an existing user
1948
1970
  * @param params fields to update
@@ -2342,10 +2364,10 @@ var Ae = { exports: {} }, ke = {};
2342
2364
  * This source code is licensed under the MIT license found in the
2343
2365
  * LICENSE file in the root directory of this source tree.
2344
2366
  */
2345
- var Tt;
2367
+ var Rt;
2346
2368
  function Ln() {
2347
- if (Tt) return ke;
2348
- Tt = 1;
2369
+ if (Rt) return ke;
2370
+ Rt = 1;
2349
2371
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
2350
2372
  function n(s, i, a) {
2351
2373
  var o = null;
@@ -2374,9 +2396,9 @@ var Ee = {};
2374
2396
  * This source code is licensed under the MIT license found in the
2375
2397
  * LICENSE file in the root directory of this source tree.
2376
2398
  */
2377
- var Rt;
2399
+ var Pt;
2378
2400
  function qn() {
2379
- return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && (function() {
2401
+ return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && (function() {
2380
2402
  function t(l) {
2381
2403
  if (l == null) return null;
2382
2404
  if (typeof l == "function")
@@ -2402,7 +2424,7 @@ function qn() {
2402
2424
  ), l.$$typeof) {
2403
2425
  case w:
2404
2426
  return "Portal";
2405
- case A:
2427
+ case U:
2406
2428
  return l.displayName || "Context";
2407
2429
  case g:
2408
2430
  return (l._context.displayName || "Context") + ".Consumer";
@@ -2479,7 +2501,7 @@ function qn() {
2479
2501
  }
2480
2502
  function d() {
2481
2503
  var l = t(this.type);
2482
- return K[l] || (K[l] = !0, console.error(
2504
+ return J[l] || (J[l] = !0, console.error(
2483
2505
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
2484
2506
  )), l = this.props.ref, l !== void 0 ? l : null;
2485
2507
  }
@@ -2531,8 +2553,8 @@ function qn() {
2531
2553
  else y(B);
2532
2554
  if (G.call(m, "key")) {
2533
2555
  B = t(l);
2534
- var le = Object.keys(m).filter(function(U) {
2535
- return U !== "key";
2556
+ var le = Object.keys(m).filter(function(A) {
2557
+ return A !== "key";
2536
2558
  });
2537
2559
  D = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", Y[B + D] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
2538
2560
  `A props object containing a "key" prop is being spread into JSX:
@@ -2549,8 +2571,8 @@ React keys must be passed directly to JSX without using spread:
2549
2571
  }
2550
2572
  if (B = null, S !== void 0 && (n(S), B = "" + S), o(m) && (n(m.key), B = "" + m.key), "key" in m) {
2551
2573
  S = {};
2552
- for (var ge in m)
2553
- ge !== "key" && (S[ge] = m[ge]);
2574
+ for (var ye in m)
2575
+ ye !== "key" && (S[ye] = m[ye]);
2554
2576
  } else S = m;
2555
2577
  return B && c(
2556
2578
  S,
@@ -2570,7 +2592,7 @@ React keys must be passed directly to JSX without using spread:
2570
2592
  function k(l) {
2571
2593
  return typeof l == "object" && l !== null && l.$$typeof === u;
2572
2594
  }
2573
- 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() {
2574
2596
  return null;
2575
2597
  };
2576
2598
  E = {
@@ -2578,7 +2600,7 @@ React keys must be passed directly to JSX without using spread:
2578
2600
  return l();
2579
2601
  }
2580
2602
  };
2581
- var M, K = {}, H = E.react_stack_bottom_frame.bind(
2603
+ var M, J = {}, H = E.react_stack_bottom_frame.bind(
2582
2604
  E,
2583
2605
  a
2584
2606
  )(), F = z(s(a)), Y = {};
@@ -2605,9 +2627,9 @@ React keys must be passed directly to JSX without using spread:
2605
2627
  };
2606
2628
  })()), Ee;
2607
2629
  }
2608
- var Pt;
2630
+ var It;
2609
2631
  function Mn() {
2610
- 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;
2611
2633
  }
2612
2634
  var r = Mn();
2613
2635
  /**
@@ -2619,10 +2641,10 @@ var r = Mn();
2619
2641
  const Wn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Bn = (t) => t.replace(
2620
2642
  /^([A-Z])|[\s-_]+(\w)/g,
2621
2643
  (e, n, s) => s ? s.toUpperCase() : n.toLowerCase()
2622
- ), It = (t) => {
2644
+ ), Ot = (t) => {
2623
2645
  const e = Bn(t);
2624
2646
  return e.charAt(0).toUpperCase() + e.slice(1);
2625
- }, 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) => {
2626
2648
  for (const e in t)
2627
2649
  if (e.startsWith("aria-") || e === "role" || e === "title")
2628
2650
  return !0;
@@ -2650,7 +2672,7 @@ var Vn = {
2650
2672
  * This source code is licensed under the ISC license.
2651
2673
  * See the LICENSE file in the root directory of this source tree.
2652
2674
  */
2653
- const Yn = zt(
2675
+ const Yn = At(
2654
2676
  ({
2655
2677
  color: t = "currentColor",
2656
2678
  size: e = 24,
@@ -2660,7 +2682,7 @@ const Yn = zt(
2660
2682
  children: a,
2661
2683
  iconNode: o,
2662
2684
  ...c
2663
- }, d) => Ke(
2685
+ }, d) => Je(
2664
2686
  "svg",
2665
2687
  {
2666
2688
  ref: d,
@@ -2669,12 +2691,12 @@ const Yn = zt(
2669
2691
  height: e,
2670
2692
  stroke: t,
2671
2693
  strokeWidth: s ? Number(n) * 24 / Number(e) : n,
2672
- className: nr("lucide", i),
2694
+ className: sr("lucide", i),
2673
2695
  ...!a && !Hn(c) && { "aria-hidden": "true" },
2674
2696
  ...c
2675
2697
  },
2676
2698
  [
2677
- ...o.map(([f, x]) => Ke(f, x)),
2699
+ ...o.map(([f, x]) => Je(f, x)),
2678
2700
  ...Array.isArray(a) ? a : [a]
2679
2701
  ]
2680
2702
  )
@@ -2686,19 +2708,19 @@ const Yn = zt(
2686
2708
  * See the LICENSE file in the root directory of this source tree.
2687
2709
  */
2688
2710
  const L = (t, e) => {
2689
- const n = zt(
2690
- ({ className: s, ...i }, a) => Ke(Yn, {
2711
+ const n = At(
2712
+ ({ className: s, ...i }, a) => Je(Yn, {
2691
2713
  ref: a,
2692
2714
  iconNode: e,
2693
- className: nr(
2694
- `lucide-${Wn(It(t))}`,
2715
+ className: sr(
2716
+ `lucide-${Wn(Ot(t))}`,
2695
2717
  `lucide-${t}`,
2696
2718
  s
2697
2719
  ),
2698
2720
  ...i
2699
2721
  })
2700
2722
  );
2701
- return n.displayName = It(t), n;
2723
+ return n.displayName = Ot(t), n;
2702
2724
  };
2703
2725
  /**
2704
2726
  * @license lucide-react v0.544.0 - ISC
@@ -2706,7 +2728,7 @@ const L = (t, e) => {
2706
2728
  * This source code is licensed under the ISC license.
2707
2729
  * See the LICENSE file in the root directory of this source tree.
2708
2730
  */
2709
- const Jn = [
2731
+ const Kn = [
2710
2732
  [
2711
2733
  "path",
2712
2734
  {
@@ -2715,7 +2737,7 @@ const Jn = [
2715
2737
  }
2716
2738
  ],
2717
2739
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2718
- ], Kn = L("badge-check", Jn);
2740
+ ], Jn = L("badge-check", Kn);
2719
2741
  /**
2720
2742
  * @license lucide-react v0.544.0 - ISC
2721
2743
  *
@@ -2769,7 +2791,7 @@ const es = [
2769
2791
  const ts = [
2770
2792
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2771
2793
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2772
- ], Je = L("circle-check", ts);
2794
+ ], Ke = L("circle-check", ts);
2773
2795
  /**
2774
2796
  * @license lucide-react v0.544.0 - ISC
2775
2797
  *
@@ -2815,7 +2837,7 @@ const as = [
2815
2837
  }
2816
2838
  ],
2817
2839
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
2818
- ], it = L("eye-off", as);
2840
+ ], at = L("eye-off", as);
2819
2841
  /**
2820
2842
  * @license lucide-react v0.544.0 - ISC
2821
2843
  *
@@ -2831,7 +2853,7 @@ const os = [
2831
2853
  }
2832
2854
  ],
2833
2855
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2834
- ], at = L("eye", os);
2856
+ ], ot = L("eye", os);
2835
2857
  /**
2836
2858
  * @license lucide-react v0.544.0 - ISC
2837
2859
  *
@@ -2858,7 +2880,7 @@ const ds = [
2858
2880
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
2859
2881
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
2860
2882
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
2861
- ], sr = L("image", ds);
2883
+ ], ir = L("image", ds);
2862
2884
  /**
2863
2885
  * @license lucide-react v0.544.0 - ISC
2864
2886
  *
@@ -2874,7 +2896,7 @@ const us = [
2874
2896
  }
2875
2897
  ],
2876
2898
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
2877
- ], ir = L("key-round", us);
2899
+ ], ar = L("key-round", us);
2878
2900
  /**
2879
2901
  * @license lucide-react v0.544.0 - ISC
2880
2902
  *
@@ -2885,7 +2907,7 @@ const ps = [
2885
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" }],
2886
2908
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
2887
2909
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
2888
- ], ot = L("key", ps);
2910
+ ], lt = L("key", ps);
2889
2911
  /**
2890
2912
  * @license lucide-react v0.544.0 - ISC
2891
2913
  *
@@ -2929,7 +2951,7 @@ const ms = [
2929
2951
  const ys = [
2930
2952
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
2931
2953
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
2932
- ], ye = L("lock", ys);
2954
+ ], be = L("lock", ys);
2933
2955
  /**
2934
2956
  * @license lucide-react v0.544.0 - ISC
2935
2957
  *
@@ -2940,7 +2962,7 @@ const bs = [
2940
2962
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
2941
2963
  ["path", { d: "M21 12H9", key: "dn1m92" }],
2942
2964
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
2943
- ], lt = L("log-out", bs);
2965
+ ], ct = L("log-out", bs);
2944
2966
  /**
2945
2967
  * @license lucide-react v0.544.0 - ISC
2946
2968
  *
@@ -3030,7 +3052,7 @@ const Ps = [
3030
3052
  }
3031
3053
  ],
3032
3054
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
3033
- ], ct = L("send", Ps);
3055
+ ], dt = L("send", Ps);
3034
3056
  /**
3035
3057
  * @license lucide-react v0.544.0 - ISC
3036
3058
  *
@@ -3061,7 +3083,7 @@ const zs = [
3061
3083
  key: "oel41y"
3062
3084
  }
3063
3085
  ]
3064
- ], ar = L("shield", zs);
3086
+ ], rt = L("shield", zs);
3065
3087
  /**
3066
3088
  * @license lucide-react v0.544.0 - ISC
3067
3089
  *
@@ -3091,7 +3113,7 @@ const Us = [
3091
3113
  ],
3092
3114
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3093
3115
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3094
- ], Ot = L("triangle-alert", Us);
3116
+ ], zt = L("triangle-alert", Us);
3095
3117
  /**
3096
3118
  * @license lucide-react v0.544.0 - ISC
3097
3119
  *
@@ -3113,7 +3135,7 @@ const _s = [
3113
3135
  const Ds = [
3114
3136
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
3115
3137
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
3116
- ], we = L("user", Ds);
3138
+ ], he = L("user", Ds);
3117
3139
  /**
3118
3140
  * @license lucide-react v0.544.0 - ISC
3119
3141
  *
@@ -3126,7 +3148,7 @@ const Ns = [
3126
3148
  ], Oe = L("x", Ns), or = cr(null), ci = ({
3127
3149
  authix: t,
3128
3150
  children: e
3129
- }) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), me = () => {
3151
+ }) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), ge = () => {
3130
3152
  const t = dr(or);
3131
3153
  if (!t)
3132
3154
  throw new Error("useAuthix must be used inside <AuthixProvider />");
@@ -3149,13 +3171,13 @@ const Ns = [
3149
3171
  onSuccess: y,
3150
3172
  onError: k
3151
3173
  }) => {
3152
- const E = me(), u = {
3174
+ const E = ge(), u = {
3153
3175
  name: "",
3154
3176
  email: "",
3155
3177
  password: "",
3156
3178
  role: d.length ? d[0] : "user",
3157
3179
  ...c && { avatarUrl: "" }
3158
- }, [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)";
3159
3181
  Ce.useEffect(() => {
3160
3182
  if (typeof window < "u") {
3161
3183
  const F = () => X(window.innerWidth < 768);
@@ -3168,9 +3190,9 @@ const Ns = [
3168
3190
  }, M = () => {
3169
3191
  const F = {};
3170
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;
3171
- }, K = async (F) => {
3193
+ }, J = async (F) => {
3172
3194
  if (F.preventDefault(), !!M()) {
3173
- A(!0), b(null);
3195
+ U(!0), b(null);
3174
3196
  try {
3175
3197
  const Y = {
3176
3198
  name: w.name,
@@ -3189,7 +3211,7 @@ const Ns = [
3189
3211
  text: Y.message || "Signup failed. Please try again."
3190
3212
  }), k?.(Y);
3191
3213
  } finally {
3192
- A(!1);
3214
+ U(!1);
3193
3215
  }
3194
3216
  }
3195
3217
  }, H = {
@@ -3254,7 +3276,7 @@ const Ns = [
3254
3276
  )
3255
3277
  }
3256
3278
  ) : /* @__PURE__ */ r.jsx(
3257
- we,
3279
+ he,
3258
3280
  {
3259
3281
  size: 40,
3260
3282
  color: i,
@@ -3317,7 +3339,7 @@ const Ns = [
3317
3339
  /* @__PURE__ */ r.jsxs(
3318
3340
  "form",
3319
3341
  {
3320
- onSubmit: K,
3342
+ onSubmit: J,
3321
3343
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3322
3344
  children: [
3323
3345
  f && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
@@ -3434,7 +3456,7 @@ const Ns = [
3434
3456
  ),
3435
3457
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
3436
3458
  /* @__PURE__ */ r.jsx(
3437
- we,
3459
+ he,
3438
3460
  {
3439
3461
  size: 20,
3440
3462
  style: {
@@ -3544,7 +3566,7 @@ const Ns = [
3544
3566
  ),
3545
3567
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
3546
3568
  /* @__PURE__ */ r.jsx(
3547
- ye,
3569
+ be,
3548
3570
  {
3549
3571
  size: 20,
3550
3572
  style: {
@@ -3587,7 +3609,7 @@ const Ns = [
3587
3609
  cursor: "pointer",
3588
3610
  padding: "4px"
3589
3611
  },
3590
- 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 })
3591
3613
  }
3592
3614
  )
3593
3615
  ] }),
@@ -3622,7 +3644,7 @@ const Ns = [
3622
3644
  ),
3623
3645
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
3624
3646
  /* @__PURE__ */ r.jsx(
3625
- sr,
3647
+ ir,
3626
3648
  {
3627
3649
  size: 20,
3628
3650
  style: {
@@ -3768,7 +3790,7 @@ const Ns = [
3768
3790
  onSuccess: d,
3769
3791
  onError: f
3770
3792
  }) => {
3771
- 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({
3772
3794
  email: "",
3773
3795
  otp: "",
3774
3796
  newPassword: ""
@@ -3779,8 +3801,8 @@ const Ns = [
3779
3801
  return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
3780
3802
  }
3781
3803
  }, []);
3782
- const K = async (m) => {
3783
- m.preventDefault(), C(!0), A(null);
3804
+ const J = async (m) => {
3805
+ m.preventDefault(), C(!0), U(null);
3784
3806
  try {
3785
3807
  const S = await x.loginUser({ email: N, password: j }), { user: D } = S;
3786
3808
  if (!D)
@@ -3789,30 +3811,30 @@ const Ns = [
3789
3811
  const ne = "a_s_b", oe = "true", B = /* @__PURE__ */ new Date();
3790
3812
  B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${oe}; path=/; expires=${B.toUTCString()}; SameSite=Lax`;
3791
3813
  }
3792
- A({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
3814
+ U({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
3793
3815
  } catch (S) {
3794
3816
  const D = S.message || "Login failed";
3795
- A({ type: "error", text: D }), f?.(S);
3817
+ U({ type: "error", text: D }), f?.(S);
3796
3818
  } finally {
3797
3819
  C(!1);
3798
3820
  }
3799
3821
  }, H = (m) => {
3800
3822
  X({ ...O, [m.target.name]: m.target.value });
3801
3823
  }, F = async (m) => {
3802
- m.preventDefault(), C(!0), A(null);
3824
+ m.preventDefault(), C(!0), U(null);
3803
3825
  try {
3804
3826
  const S = await x.requestResetUserPasswordOTP({
3805
3827
  email: O.email
3806
3828
  });
3807
- S.success ? (u(2), A({
3829
+ S.success ? (u(2), U({
3808
3830
  type: "success",
3809
3831
  text: S.message || "OTP sent to your email"
3810
- })) : A({
3832
+ })) : U({
3811
3833
  type: "error",
3812
3834
  text: S.message || "Failed to send OTP"
3813
3835
  });
3814
3836
  } catch (S) {
3815
- A({
3837
+ U({
3816
3838
  type: "error",
3817
3839
  text: S.message || "Something went wrong"
3818
3840
  });
@@ -3820,19 +3842,19 @@ const Ns = [
3820
3842
  C(!1);
3821
3843
  }
3822
3844
  }, Y = async (m) => {
3823
- m.preventDefault(), C(!0), A(null);
3845
+ m.preventDefault(), C(!0), U(null);
3824
3846
  try {
3825
3847
  const S = await x.resetUserPassword({
3826
3848
  email: O.email,
3827
3849
  otp: O.otp,
3828
3850
  newPassword: O.newPassword
3829
3851
  });
3830
- S.success ? (A({
3852
+ S.success ? (U({
3831
3853
  type: "success",
3832
3854
  text: S.message || "Password reset successfully!"
3833
- }), 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" });
3834
3856
  } catch (S) {
3835
- A({
3857
+ U({
3836
3858
  type: "error",
3837
3859
  text: S.message || "Something went wrong"
3838
3860
  });
@@ -3899,7 +3921,7 @@ const Ns = [
3899
3921
  )
3900
3922
  }
3901
3923
  ) : /* @__PURE__ */ r.jsx(
3902
- we,
3924
+ he,
3903
3925
  {
3904
3926
  size: 40,
3905
3927
  color: i,
@@ -3934,7 +3956,7 @@ const Ns = [
3934
3956
  y === "login" && /* @__PURE__ */ r.jsxs(
3935
3957
  "form",
3936
3958
  {
3937
- onSubmit: K,
3959
+ onSubmit: J,
3938
3960
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3939
3961
  children: [
3940
3962
  /* @__PURE__ */ r.jsxs(
@@ -4002,7 +4024,7 @@ const Ns = [
4002
4024
  ),
4003
4025
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
4004
4026
  /* @__PURE__ */ r.jsx(
4005
- ye,
4027
+ be,
4006
4028
  {
4007
4029
  size: 20,
4008
4030
  style: {
@@ -4041,7 +4063,7 @@ const Ns = [
4041
4063
  color: T,
4042
4064
  cursor: "pointer"
4043
4065
  },
4044
- 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 })
4045
4067
  }
4046
4068
  )
4047
4069
  ] })
@@ -4183,7 +4205,7 @@ const Ns = [
4183
4205
  ),
4184
4206
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
4185
4207
  /* @__PURE__ */ r.jsx(
4186
- ir,
4208
+ ar,
4187
4209
  {
4188
4210
  size: 20,
4189
4211
  style: {
@@ -4234,7 +4256,7 @@ const Ns = [
4234
4256
  ),
4235
4257
  /* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
4236
4258
  /* @__PURE__ */ r.jsx(
4237
- ye,
4259
+ be,
4238
4260
  {
4239
4261
  size: 20,
4240
4262
  style: {
@@ -4378,7 +4400,7 @@ const Ns = [
4378
4400
  userId: i,
4379
4401
  colors: a
4380
4402
  }) => {
4381
- 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);
4382
4404
  if (ee(() => {
4383
4405
  if (typeof window > "u") return;
4384
4406
  const g = () => {
@@ -4514,7 +4536,7 @@ const Ns = [
4514
4536
  display: "flex",
4515
4537
  alignItems: "flex-start"
4516
4538
  },
4517
- children: /* @__PURE__ */ r.jsx(Ot, { size: 24 })
4539
+ children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4518
4540
  }
4519
4541
  ),
4520
4542
  /* @__PURE__ */ r.jsxs("div", { style: { flex: 1 }, children: [
@@ -4548,10 +4570,10 @@ const Ns = [
4548
4570
  text: "This action cannot be reversed"
4549
4571
  },
4550
4572
  {
4551
- icon: /* @__PURE__ */ r.jsx(lt, { size: 16 }),
4573
+ icon: /* @__PURE__ */ r.jsx(ct, { size: 16 }),
4552
4574
  text: "You will lose access to all services"
4553
4575
  }
4554
- ].map((g, A) => /* @__PURE__ */ r.jsxs(
4576
+ ].map((g, U) => /* @__PURE__ */ r.jsxs(
4555
4577
  "div",
4556
4578
  {
4557
4579
  style: {
@@ -4566,7 +4588,7 @@ const Ns = [
4566
4588
  /* @__PURE__ */ r.jsx("span", { children: g.text })
4567
4589
  ]
4568
4590
  },
4569
- A
4591
+ U
4570
4592
  ))
4571
4593
  }
4572
4594
  )
@@ -4675,7 +4697,7 @@ const Ns = [
4675
4697
  color: "white",
4676
4698
  flexShrink: 0
4677
4699
  },
4678
- children: /* @__PURE__ */ r.jsx(Ot, { size: 24 })
4700
+ children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4679
4701
  }
4680
4702
  ),
4681
4703
  /* @__PURE__ */ r.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ r.jsx(
@@ -4754,7 +4776,7 @@ const Ns = [
4754
4776
  fontWeight: 500
4755
4777
  },
4756
4778
  children: [
4757
- /* @__PURE__ */ r.jsx(Je, { size: 16 }),
4779
+ /* @__PURE__ */ r.jsx(Ke, { size: 16 }),
4758
4780
  /* @__PURE__ */ r.jsx("span", { children: "Confirmation accepted" })
4759
4781
  ]
4760
4782
  }
@@ -4918,7 +4940,7 @@ const Ns = [
4918
4940
  { text: "Removing your data", active: !0 },
4919
4941
  { text: "Closing active sessions", active: !1 },
4920
4942
  { text: "Finalizing deletion", active: !1 }
4921
- ].map((g, A) => /* @__PURE__ */ r.jsxs(
4943
+ ].map((g, U) => /* @__PURE__ */ r.jsxs(
4922
4944
  "div",
4923
4945
  {
4924
4946
  style: {
@@ -4957,7 +4979,7 @@ const Ns = [
4957
4979
  )
4958
4980
  ]
4959
4981
  },
4960
- A
4982
+ U
4961
4983
  ))
4962
4984
  }
4963
4985
  ) }),
@@ -4976,7 +4998,7 @@ const Ns = [
4976
4998
  },
4977
4999
  children: [
4978
5000
  /* @__PURE__ */ r.jsx(
4979
- ar,
5001
+ rt,
4980
5002
  {
4981
5003
  size: 18,
4982
5004
  style: { color: a.accent, flexShrink: 0 }
@@ -5013,7 +5035,7 @@ const Ns = [
5013
5035
  color: "white",
5014
5036
  flexShrink: 0
5015
5037
  },
5016
- children: /* @__PURE__ */ r.jsx(Je, { size: 20 })
5038
+ children: /* @__PURE__ */ r.jsx(Ke, { size: 20 })
5017
5039
  }
5018
5040
  ),
5019
5041
  /* @__PURE__ */ r.jsxs("div", { style: { flex: 1 }, children: [
@@ -5059,7 +5081,7 @@ const Ns = [
5059
5081
  },
5060
5082
  children: [
5061
5083
  /* @__PURE__ */ r.jsx(
5062
- Je,
5084
+ Ke,
5063
5085
  {
5064
5086
  size: 48,
5065
5087
  style: {
@@ -5457,7 +5479,7 @@ const Ns = [
5457
5479
  transform: "translateY(-50%)",
5458
5480
  color: s.textTertiary
5459
5481
  },
5460
- children: /* @__PURE__ */ r.jsx(sr, { size: 18 })
5482
+ children: /* @__PURE__ */ r.jsx(ir, { size: 18 })
5461
5483
  }
5462
5484
  )
5463
5485
  ] }),
@@ -5681,7 +5703,7 @@ const Ns = [
5681
5703
  userId: i,
5682
5704
  colors: a
5683
5705
  }) => {
5684
- const o = me(), [c, d] = P({
5706
+ const o = ge(), [c, d] = P({
5685
5707
  currentPassword: "",
5686
5708
  newPassword: "",
5687
5709
  confirmPassword: ""
@@ -5705,7 +5727,7 @@ const Ns = [
5705
5727
  }, g = () => {
5706
5728
  const b = {};
5707
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;
5708
- }, A = async (b) => {
5730
+ }, U = async (b) => {
5709
5731
  if (b.preventDefault(), !!g()) {
5710
5732
  k(!0);
5711
5733
  try {
@@ -5729,17 +5751,17 @@ const Ns = [
5729
5751
  {
5730
5752
  field: "currentPassword",
5731
5753
  label: "Current Password",
5732
- icon: /* @__PURE__ */ r.jsx(ot, { size: 18 })
5754
+ icon: /* @__PURE__ */ r.jsx(lt, { size: 18 })
5733
5755
  },
5734
5756
  {
5735
5757
  field: "newPassword",
5736
5758
  label: "New Password",
5737
- icon: /* @__PURE__ */ r.jsx(ye, { size: 18 })
5759
+ icon: /* @__PURE__ */ r.jsx(be, { size: 18 })
5738
5760
  },
5739
5761
  {
5740
5762
  field: "confirmPassword",
5741
5763
  label: "Confirm Password",
5742
- icon: /* @__PURE__ */ r.jsx(ye, { size: 18 })
5764
+ icon: /* @__PURE__ */ r.jsx(be, { size: 18 })
5743
5765
  }
5744
5766
  ];
5745
5767
  return /* @__PURE__ */ r.jsx(
@@ -5807,7 +5829,7 @@ const Ns = [
5807
5829
  color: a.accent,
5808
5830
  flexShrink: 0
5809
5831
  },
5810
- children: /* @__PURE__ */ r.jsx(ye, { size: 20 })
5832
+ children: /* @__PURE__ */ r.jsx(be, { size: 20 })
5811
5833
  }
5812
5834
  ),
5813
5835
  /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
@@ -5857,7 +5879,7 @@ const Ns = [
5857
5879
  ]
5858
5880
  }
5859
5881
  ),
5860
- /* @__PURE__ */ r.jsxs("form", { onSubmit: A, children: [
5882
+ /* @__PURE__ */ r.jsxs("form", { onSubmit: U, children: [
5861
5883
  N.map(({ field: b, label: j, icon: q }) => /* @__PURE__ */ r.jsxs(
5862
5884
  "div",
5863
5885
  {
@@ -5953,7 +5975,7 @@ const Ns = [
5953
5975
  onMouseOut: (O) => {
5954
5976
  O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color = a.textTertiary;
5955
5977
  },
5956
- 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 })
5957
5979
  }
5958
5980
  )
5959
5981
  ] }),
@@ -6195,7 +6217,7 @@ const Ns = [
6195
6217
  /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "OTP" }),
6196
6218
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6197
6219
  /* @__PURE__ */ r.jsx(
6198
- ir,
6220
+ ar,
6199
6221
  {
6200
6222
  size: 18,
6201
6223
  style: { color: f.textTertiary },
@@ -6253,7 +6275,7 @@ const Ns = [
6253
6275
  },
6254
6276
  "aria-label": c ? "Sending OTP" : "Send OTP",
6255
6277
  children: [
6256
- 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" }),
6257
6279
  c ? "Sending..." : "Send OTP"
6258
6280
  ]
6259
6281
  }
@@ -6420,7 +6442,7 @@ const Ns = [
6420
6442
  onVerify: s,
6421
6443
  primaryColor: i = "#00C212"
6422
6444
  }) => {
6423
- 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, K] = 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({
6424
6446
  email: "",
6425
6447
  otp: ""
6426
6448
  }), [H, F] = P(!1), [Y, l] = P(!1);
@@ -6488,7 +6510,7 @@ const Ns = [
6488
6510
  if (V) {
6489
6511
  m("success", Z || "Email verified!");
6490
6512
  const de = { ...d, isVerified: !0 };
6491
- f(de), typeof s == "function" && s(de), K({ email: de.email, otp: "" }), F(!1), j?.(!1);
6513
+ f(de), typeof s == "function" && s(de), J({ email: de.email, otp: "" }), F(!1), j?.(!1);
6492
6514
  } else
6493
6515
  m("error", Z || "Verification failed");
6494
6516
  } catch (_) {
@@ -6575,12 +6597,12 @@ const Ns = [
6575
6597
  }
6576
6598
  })();
6577
6599
  }, []), ee(() => {
6578
- d?.email && K((v) => ({ ...v, email: d.email }));
6600
+ d?.email && J((v) => ({ ...v, email: d.email }));
6579
6601
  }, [d?.email]);
6580
- const ge = (v, _) => {
6602
+ const ye = (v, _) => {
6581
6603
  let V = parseInt(v.replace("#", ""), 16), Z = (V >> 16) + _, de = (V >> 8 & 255) + _, Be = (V & 255) + _;
6582
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")}`;
6583
- }, U = t ? {
6605
+ }, A = t ? {
6584
6606
  background: "#000000",
6585
6607
  surface: "#09090b",
6586
6608
  surfaceLight: "#27272a",
@@ -6589,7 +6611,7 @@ const Ns = [
6589
6611
  textSecondary: "#d4d4d8",
6590
6612
  textTertiary: "#a1a1aa",
6591
6613
  accent: i,
6592
- accentHover: ge(i, -15),
6614
+ accentHover: ye(i, -15),
6593
6615
  success: "#10b981",
6594
6616
  error: "#ef4444",
6595
6617
  border: "#27272a",
@@ -6603,7 +6625,7 @@ const Ns = [
6603
6625
  textSecondary: "#52525b",
6604
6626
  textTertiary: "#71717a",
6605
6627
  accent: i,
6606
- accentHover: ge(i, -15),
6628
+ accentHover: ye(i, -15),
6607
6629
  success: "#10b981",
6608
6630
  error: "#ef4444",
6609
6631
  border: "#e4e4e7",
@@ -6619,7 +6641,7 @@ const Ns = [
6619
6641
  display: "flex",
6620
6642
  alignItems: "center",
6621
6643
  justifyContent: "center",
6622
- color: U.textPrimary,
6644
+ color: A.textPrimary,
6623
6645
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6624
6646
  },
6625
6647
  children: /* @__PURE__ */ r.jsxs(
@@ -6637,12 +6659,12 @@ const Ns = [
6637
6659
  se,
6638
6660
  {
6639
6661
  size: 40,
6640
- color: U.accent,
6662
+ color: A.accent,
6641
6663
  style: { animation: "spin 1s linear infinite" },
6642
6664
  "aria-hidden": "true"
6643
6665
  }
6644
6666
  ),
6645
- /* @__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..." })
6646
6668
  ]
6647
6669
  }
6648
6670
  )
@@ -6658,7 +6680,7 @@ const Ns = [
6658
6680
  display: "flex",
6659
6681
  alignItems: "center",
6660
6682
  justifyContent: "center",
6661
- color: U.textPrimary,
6683
+ color: A.textPrimary,
6662
6684
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6663
6685
  },
6664
6686
  children: /* @__PURE__ */ r.jsxs(
@@ -6672,20 +6694,28 @@ const Ns = [
6672
6694
  textAlign: "center"
6673
6695
  },
6674
6696
  children: [
6675
- /* @__PURE__ */ r.jsx(ie, { size: 40, color: U.error, "aria-hidden": "true" }),
6676
- /* @__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." })
6677
6699
  ]
6678
6700
  }
6679
6701
  )
6680
6702
  }
6681
6703
  );
6682
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
+ },
6683
6713
  {
6684
6714
  label: "Full Name",
6685
6715
  value: d.name,
6686
6716
  name: "name",
6687
6717
  type: "text",
6688
- icon: we
6718
+ icon: he
6689
6719
  },
6690
6720
  {
6691
6721
  label: "Email Address",
@@ -6694,6 +6724,14 @@ const Ns = [
6694
6724
  type: "email",
6695
6725
  icon: pe
6696
6726
  },
6727
+ {
6728
+ label: "Role",
6729
+ value: d.role || "user",
6730
+ name: "role",
6731
+ type: "text",
6732
+ icon: rt,
6733
+ readonly: !0
6734
+ },
6697
6735
  {
6698
6736
  label: "Phone Number",
6699
6737
  value: d.phone || "Not set",
@@ -6717,7 +6755,7 @@ const Ns = [
6717
6755
  display: "flex",
6718
6756
  alignItems: "center",
6719
6757
  justifyContent: "center",
6720
- color: U.textPrimary,
6758
+ color: A.textPrimary,
6721
6759
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
6722
6760
  lineHeight: 1.5,
6723
6761
  minHeight: "80vh"
@@ -6803,7 +6841,7 @@ const Ns = [
6803
6841
  "section",
6804
6842
  {
6805
6843
  style: {
6806
- backgroundColor: U.surface,
6844
+ backgroundColor: A.surface,
6807
6845
  borderRadius: "16px",
6808
6846
  position: "relative",
6809
6847
  padding: "24px",
@@ -6857,7 +6895,7 @@ const Ns = [
6857
6895
  borderRadius: "50%",
6858
6896
  objectFit: "cover",
6859
6897
  boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
6860
- border: `3px solid ${U.border}`
6898
+ border: `3px solid ${A.border}`
6861
6899
  },
6862
6900
  width: 128,
6863
6901
  height: 128,
@@ -6872,7 +6910,7 @@ const Ns = [
6872
6910
  position: "absolute",
6873
6911
  bottom: "8px",
6874
6912
  right: "8px",
6875
- backgroundColor: U.accent,
6913
+ backgroundColor: A.accent,
6876
6914
  color: "white",
6877
6915
  padding: "8px",
6878
6916
  borderRadius: "50%",
@@ -6899,16 +6937,31 @@ const Ns = [
6899
6937
  fontSize: "24px",
6900
6938
  fontWeight: 600,
6901
6939
  margin: "0 0 4px 0",
6902
- color: U.textPrimary
6940
+ color: A.textPrimary
6903
6941
  },
6904
6942
  children: d.name
6905
6943
  }
6906
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
+ ),
6907
6960
  /* @__PURE__ */ r.jsx(
6908
6961
  "p",
6909
6962
  {
6910
6963
  style: {
6911
- color: U.textTertiary,
6964
+ color: A.textTertiary,
6912
6965
  margin: "0 0 8px 0"
6913
6966
  },
6914
6967
  children: d.email
@@ -6919,7 +6972,7 @@ const Ns = [
6919
6972
  {
6920
6973
  style: {
6921
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)",
6922
- color: d.isVerified ? U.success : U.warning,
6975
+ color: d.isVerified ? A.success : A.warning,
6923
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)"}`,
6924
6977
  padding: "6px 12px",
6925
6978
  borderRadius: "20px",
@@ -6953,9 +7006,9 @@ const Ns = [
6953
7006
  {
6954
7007
  onClick: () => E(!1),
6955
7008
  style: {
6956
- backgroundColor: U.surfaceLight,
6957
- border: `1px solid ${U.border}`,
6958
- color: U.textPrimary,
7009
+ backgroundColor: A.surfaceLight,
7010
+ border: `1px solid ${A.border}`,
7011
+ color: A.textPrimary,
6959
7012
  padding: "10px 20px",
6960
7013
  borderRadius: "6px",
6961
7014
  borderStyle: "solid",
@@ -6983,7 +7036,7 @@ const Ns = [
6983
7036
  onClick: B,
6984
7037
  disabled: u,
6985
7038
  style: {
6986
- background: `linear-gradient(to right, ${U.accent}, ${U.accentHover})`,
7039
+ background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
6987
7040
  opacity: u ? 0.7 : 1,
6988
7041
  color: "white",
6989
7042
  padding: "10px 20px",
@@ -7020,7 +7073,7 @@ const Ns = [
7020
7073
  {
7021
7074
  onClick: () => E(!0),
7022
7075
  style: {
7023
- background: `linear-gradient(to right, ${U.accent}, ${U.accentHover})`,
7076
+ background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
7024
7077
  color: "white",
7025
7078
  padding: "10px 20px",
7026
7079
  borderRadius: "6px",
@@ -7075,7 +7128,7 @@ const Ns = [
7075
7128
  style: { animation: "spin 1s linear infinite" },
7076
7129
  "aria-hidden": "true"
7077
7130
  }
7078
- ) : /* @__PURE__ */ r.jsx(ct, { size: 14, "aria-hidden": "true" }),
7131
+ ) : /* @__PURE__ */ r.jsx(dt, { size: 14, "aria-hidden": "true" }),
7079
7132
  T ? "Sending..." : "Verify Email"
7080
7133
  ]
7081
7134
  }
@@ -7085,8 +7138,8 @@ const Ns = [
7085
7138
  "button",
7086
7139
  {
7087
7140
  style: {
7088
- backgroundColor: U.surfaceLight,
7089
- color: U.textPrimary,
7141
+ backgroundColor: A.surfaceLight,
7142
+ color: A.textPrimary,
7090
7143
  padding: "10px 20px",
7091
7144
  borderRadius: "6px",
7092
7145
  border: "none",
@@ -7119,8 +7172,8 @@ const Ns = [
7119
7172
  bottom: "100%",
7120
7173
  left: 0,
7121
7174
  right: 0,
7122
- backgroundColor: U.surface,
7123
- border: `1px solid ${U.border}`,
7175
+ backgroundColor: A.surface,
7176
+ border: `1px solid ${A.border}`,
7124
7177
  borderRadius: "12px 12px 0 0",
7125
7178
  boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
7126
7179
  zIndex: 200,
@@ -7140,7 +7193,7 @@ const Ns = [
7140
7193
  padding: "14px 18px",
7141
7194
  backgroundColor: "transparent",
7142
7195
  border: "none",
7143
- color: U.textPrimary,
7196
+ color: A.textPrimary,
7144
7197
  cursor: "pointer",
7145
7198
  transition: "all 0.2s ease",
7146
7199
  fontSize: "13px",
@@ -7150,10 +7203,10 @@ const Ns = [
7150
7203
  gap: "8px",
7151
7204
  textAlign: "left"
7152
7205
  },
7153
- onMouseEnter: (v) => v.currentTarget.style.backgroundColor = U.surfaceLight,
7206
+ onMouseEnter: (v) => v.currentTarget.style.backgroundColor = A.surfaceLight,
7154
7207
  onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
7155
7208
  children: [
7156
- /* @__PURE__ */ r.jsx(ot, { size: 14, "aria-hidden": "true" }),
7209
+ /* @__PURE__ */ r.jsx(lt, { size: 14, "aria-hidden": "true" }),
7157
7210
  "Change Password"
7158
7211
  ]
7159
7212
  }
@@ -7184,7 +7237,7 @@ const Ns = [
7184
7237
  },
7185
7238
  onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
7186
7239
  children: [
7187
- /* @__PURE__ */ r.jsx(lt, { size: 14, "aria-hidden": "true" }),
7240
+ /* @__PURE__ */ r.jsx(ct, { size: 14, "aria-hidden": "true" }),
7188
7241
  "Logout"
7189
7242
  ]
7190
7243
  }
@@ -7244,7 +7297,7 @@ const Ns = [
7244
7297
  "section",
7245
7298
  {
7246
7299
  style: {
7247
- backgroundColor: U.surface,
7300
+ backgroundColor: A.surface,
7248
7301
  borderRadius: "16px",
7249
7302
  padding: "24px",
7250
7303
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7257,13 +7310,13 @@ const Ns = [
7257
7310
  fontSize: "20px",
7258
7311
  fontWeight: 600,
7259
7312
  margin: "0 0 24px 0",
7260
- color: U.textSecondary,
7313
+ color: A.textSecondary,
7261
7314
  display: "flex",
7262
7315
  alignItems: "center",
7263
7316
  gap: "8px"
7264
7317
  },
7265
7318
  children: [
7266
- /* @__PURE__ */ r.jsx(we, { size: 20, "aria-hidden": "true" }),
7319
+ /* @__PURE__ */ r.jsx(he, { size: 20, "aria-hidden": "true" }),
7267
7320
  "Personal Information"
7268
7321
  ]
7269
7322
  }
@@ -7295,7 +7348,7 @@ const Ns = [
7295
7348
  "label",
7296
7349
  {
7297
7350
  style: {
7298
- color: U.textTertiary,
7351
+ color: A.textTertiary,
7299
7352
  fontSize: "12px",
7300
7353
  fontWeight: 500,
7301
7354
  display: "flex",
@@ -7308,7 +7361,7 @@ const Ns = [
7308
7361
  ]
7309
7362
  }
7310
7363
  ),
7311
- k ? /* @__PURE__ */ r.jsx(
7364
+ k && !v.readonly ? /* @__PURE__ */ r.jsx(
7312
7365
  "input",
7313
7366
  {
7314
7367
  type: v.type,
@@ -7322,13 +7375,14 @@ const Ns = [
7322
7375
  borderRadius: "8px",
7323
7376
  border: `1px solid ${i}`,
7324
7377
  backgroundColor: "transparent",
7325
- color: U.textPrimary,
7378
+ color: A.textPrimary,
7326
7379
  fontSize: "12px",
7327
7380
  outline: "none",
7328
7381
  transition: "border-color 0.2s ease",
7329
7382
  minHeight: "44px",
7330
7383
  width: "100%",
7331
- boxSizing: "border-box"
7384
+ boxSizing: "border-box",
7385
+ opacity: v.readonly ? 0.7 : 1
7332
7386
  },
7333
7387
  placeholder: `Enter ${v.label.toLowerCase()}`,
7334
7388
  "aria-label": v.label
@@ -7345,7 +7399,7 @@ const Ns = [
7345
7399
  display: "flex",
7346
7400
  alignItems: "center",
7347
7401
  boxSizing: "border-box",
7348
- color: U.textPrimary,
7402
+ color: A.textPrimary,
7349
7403
  backgroundColor: t ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
7350
7404
  },
7351
7405
  children: v.value
@@ -7365,7 +7419,7 @@ const Ns = [
7365
7419
  "section",
7366
7420
  {
7367
7421
  style: {
7368
- backgroundColor: U.surface,
7422
+ backgroundColor: A.surface,
7369
7423
  borderRadius: "16px",
7370
7424
  padding: "30px 24px",
7371
7425
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7378,13 +7432,13 @@ const Ns = [
7378
7432
  fontSize: "20px",
7379
7433
  fontWeight: 600,
7380
7434
  margin: "0 0 24px 0",
7381
- color: U.textSecondary,
7435
+ color: A.textSecondary,
7382
7436
  display: "flex",
7383
7437
  alignItems: "center",
7384
7438
  gap: "8px"
7385
7439
  },
7386
7440
  children: [
7387
- /* @__PURE__ */ r.jsx(ar, { size: 20, "aria-hidden": "true" }),
7441
+ /* @__PURE__ */ r.jsx(rt, { size: 20, "aria-hidden": "true" }),
7388
7442
  "Security Status"
7389
7443
  ]
7390
7444
  }
@@ -7415,7 +7469,7 @@ const Ns = [
7415
7469
  display: "flex",
7416
7470
  alignItems: "center",
7417
7471
  gap: "12px",
7418
- color: U.textSecondary
7472
+ color: A.textSecondary
7419
7473
  },
7420
7474
  children: [
7421
7475
  /* @__PURE__ */ r.jsx(pe, { size: 16, "aria-hidden": "true" }),
@@ -7436,11 +7490,11 @@ const Ns = [
7436
7490
  gap: "6px",
7437
7491
  ...d.isVerified ? {
7438
7492
  backgroundColor: t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
7439
- color: U.success,
7493
+ color: A.success,
7440
7494
  border: `1px solid ${t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
7441
7495
  } : {
7442
7496
  backgroundColor: t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
7443
- color: U.warning,
7497
+ color: A.warning,
7444
7498
  border: `1px solid ${t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
7445
7499
  }
7446
7500
  },
@@ -7468,7 +7522,7 @@ const Ns = [
7468
7522
  "p",
7469
7523
  {
7470
7524
  style: {
7471
- color: U.textTertiary,
7525
+ color: A.textTertiary,
7472
7526
  fontSize: "12px",
7473
7527
  margin: 0
7474
7528
  },
@@ -7499,7 +7553,7 @@ const Ns = [
7499
7553
  I(!1);
7500
7554
  },
7501
7555
  onUpdate: oe,
7502
- colors: U
7556
+ colors: A
7503
7557
  }
7504
7558
  ),
7505
7559
  /* @__PURE__ */ r.jsx(
@@ -7510,18 +7564,18 @@ const Ns = [
7510
7564
  onClose: () => g(!1),
7511
7565
  onSuccess: (v) => m("success", v),
7512
7566
  onError: (v) => m("error", v),
7513
- colors: U
7567
+ colors: A
7514
7568
  }
7515
7569
  ),
7516
7570
  /* @__PURE__ */ r.jsx(
7517
7571
  Fs,
7518
7572
  {
7519
7573
  userId: d.id,
7520
- isOpen: A,
7574
+ isOpen: U,
7521
7575
  onClose: () => N(!1),
7522
7576
  onSuccess: (v) => m("success", v),
7523
7577
  onError: (v) => m("error", v),
7524
- colors: U
7578
+ colors: A
7525
7579
  }
7526
7580
  ),
7527
7581
  /* @__PURE__ */ r.jsx(
@@ -7529,16 +7583,16 @@ const Ns = [
7529
7583
  {
7530
7584
  isOpen: b,
7531
7585
  onClose: () => {
7532
- j(!1), F(!1), K({ email: d?.email || "", otp: "" });
7586
+ j(!1), F(!1), J({ email: d?.email || "", otp: "" });
7533
7587
  },
7534
7588
  onVerify: ne,
7535
7589
  onSendOTP: D,
7536
7590
  verifyFormData: M,
7537
- setVerifyFormData: K,
7591
+ setVerifyFormData: J,
7538
7592
  otpSent: H,
7539
7593
  verifying: Y,
7540
7594
  user: d,
7541
- colors: U,
7595
+ colors: A,
7542
7596
  darkMode: t
7543
7597
  }
7544
7598
  ),
@@ -7654,7 +7708,7 @@ const Ns = [
7654
7708
  viewProfileLabel: E = "View Profile",
7655
7709
  logoutLabel: u = "Sign Out"
7656
7710
  }) => {
7657
- 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);
7658
7712
  ee(() => {
7659
7713
  if (typeof window > "u") return;
7660
7714
  const l = () => {
@@ -7993,7 +8047,7 @@ const Ns = [
7993
8047
  } finally {
7994
8048
  N(!1);
7995
8049
  }
7996
- }, K = (l, m) => {
8050
+ }, J = (l, m) => {
7997
8051
  (l.key === "Enter" || l.key === " ") && (l.preventDefault(), m());
7998
8052
  }, H = () => o || C?.profileUrl, F = () => {
7999
8053
  const l = H();
@@ -8015,7 +8069,7 @@ const Ns = [
8015
8069
  {
8016
8070
  ref: O,
8017
8071
  onClick: () => I((l) => !l),
8018
- onKeyDown: (l) => K(l, () => I((m) => !m)),
8072
+ onKeyDown: (l) => J(l, () => I((m) => !m)),
8019
8073
  tabIndex: 0,
8020
8074
  role: "button",
8021
8075
  "aria-haspopup": "true",
@@ -8067,7 +8121,7 @@ const Ns = [
8067
8121
  ref: O,
8068
8122
  style: z.avatarButton,
8069
8123
  onClick: () => I((l) => !l),
8070
- onKeyDown: (l) => K(l, () => I((m) => !m)),
8124
+ onKeyDown: (l) => J(l, () => I((m) => !m)),
8071
8125
  tabIndex: 0,
8072
8126
  role: "button",
8073
8127
  "aria-haspopup": "true",
@@ -8119,7 +8173,7 @@ const Ns = [
8119
8173
  ]
8120
8174
  }
8121
8175
  ),
8122
- 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(
8123
8177
  "div",
8124
8178
  {
8125
8179
  style: z.loadingContainer,
@@ -8184,11 +8238,11 @@ const Ns = [
8184
8238
  onMouseOut: (l) => {
8185
8239
  l.currentTarget.style.backgroundColor = "transparent";
8186
8240
  },
8187
- onKeyDown: (l) => K(l, F),
8241
+ onKeyDown: (l) => J(l, F),
8188
8242
  role: "menuitem",
8189
8243
  tabIndex: 0,
8190
8244
  children: [
8191
- /* @__PURE__ */ r.jsx(we, { style: z.icon, "aria-hidden": "true" }),
8245
+ /* @__PURE__ */ r.jsx(he, { style: z.icon, "aria-hidden": "true" }),
8192
8246
  /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: y })
8193
8247
  ]
8194
8248
  }
@@ -8204,7 +8258,7 @@ const Ns = [
8204
8258
  onMouseOut: (l) => {
8205
8259
  l.currentTarget.style.backgroundColor = "transparent";
8206
8260
  },
8207
- onKeyDown: (l) => K(l, Y),
8261
+ onKeyDown: (l) => J(l, Y),
8208
8262
  role: "menuitem",
8209
8263
  tabIndex: 0,
8210
8264
  children: [
@@ -8246,12 +8300,12 @@ const Ns = [
8246
8300
  onMouseOut: (l) => {
8247
8301
  l.currentTarget.style.backgroundColor = "transparent";
8248
8302
  },
8249
- onKeyDown: (l) => K(l, n),
8303
+ onKeyDown: (l) => J(l, n),
8250
8304
  role: "menuitem",
8251
8305
  tabIndex: 0,
8252
8306
  children: [
8253
8307
  /* @__PURE__ */ r.jsx(
8254
- lt,
8308
+ ct,
8255
8309
  {
8256
8310
  style: { ...z.icon, color: T.error },
8257
8311
  "aria-hidden": "true"
@@ -8301,7 +8355,7 @@ const Ns = [
8301
8355
  primaryColor: n = "#00C212",
8302
8356
  onVerify: s
8303
8357
  }) => {
8304
- const i = me();
8358
+ const i = ge();
8305
8359
  if (!t)
8306
8360
  return /* @__PURE__ */ r.jsxs(
8307
8361
  "div",
@@ -8412,7 +8466,7 @@ const Ns = [
8412
8466
  } finally {
8413
8467
  k(!1);
8414
8468
  }
8415
- }, A = {
8469
+ }, U = {
8416
8470
  width: "100%",
8417
8471
  padding: "12px 12px 12px 40px",
8418
8472
  borderRadius: 8,
@@ -8464,7 +8518,7 @@ const Ns = [
8464
8518
  gap: 8
8465
8519
  },
8466
8520
  children: [
8467
- /* @__PURE__ */ r.jsx(Kn, { size: 32, color: h.accent }),
8521
+ /* @__PURE__ */ r.jsx(Jn, { size: 32, color: h.accent }),
8468
8522
  /* @__PURE__ */ r.jsx(
8469
8523
  "h2",
8470
8524
  {
@@ -8543,7 +8597,7 @@ const Ns = [
8543
8597
  onChange: (b) => d((j) => ({ ...j, email: b.target.value })),
8544
8598
  placeholder: "Enter your email",
8545
8599
  style: {
8546
- ...A,
8600
+ ...U,
8547
8601
  paddingLeft: 40,
8548
8602
  // enough space for icon
8549
8603
  height: 40,
@@ -8575,7 +8629,7 @@ const Ns = [
8575
8629
  },
8576
8630
  children: [
8577
8631
  /* @__PURE__ */ r.jsx(
8578
- ot,
8632
+ lt,
8579
8633
  {
8580
8634
  size: 18,
8581
8635
  style: {
@@ -8594,7 +8648,7 @@ const Ns = [
8594
8648
  onChange: (b) => d((j) => ({ ...j, otp: b.target.value })),
8595
8649
  placeholder: "Enter OTP",
8596
8650
  style: {
8597
- ...A,
8651
+ ...U,
8598
8652
  paddingLeft: 40,
8599
8653
  height: 40,
8600
8654
  borderRadius: 8,
@@ -8643,7 +8697,7 @@ const Ns = [
8643
8697
  fontSize: 14
8644
8698
  },
8645
8699
  children: [
8646
- 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 }),
8647
8701
  y ? "Sending..." : "Send OTP"
8648
8702
  ]
8649
8703
  }