@neuctra/authix 1.1.78 → 1.1.79

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,27 +1,27 @@
1
- import Te, { forwardRef as Ut, createElement as Xe, createContext as pr, useContext as fr, useState as R, useEffect as te, useRef as ft } from "react";
1
+ import Te, { forwardRef as $t, createElement as Ze, createContext as xr, useContext as hr, useState as R, useEffect as te, useRef as ht } from "react";
2
2
  function Nt(t, e) {
3
3
  return function() {
4
4
  return t.apply(e, arguments);
5
5
  };
6
6
  }
7
- const { toString: xr } = Object.prototype, { getPrototypeOf: st } = Object, { iterator: qe, toStringTag: $t } = Symbol, Me = /* @__PURE__ */ ((t) => (e) => {
8
- const r = xr.call(e);
7
+ const { toString: mr } = Object.prototype, { getPrototypeOf: ot } = Object, { iterator: Me, toStringTag: Ft } = Symbol, We = /* @__PURE__ */ ((t) => (e) => {
8
+ const r = mr.call(e);
9
9
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Me(e) === t), We = (t) => (e) => typeof e === t, { isArray: we } = Array, ye = We("undefined");
10
+ })(/* @__PURE__ */ Object.create(null)), oe = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Be = (t) => (e) => typeof e === t, { isArray: we } = Array, ye = Be("undefined");
11
11
  function Re(t) {
12
12
  return t !== null && !ye(t) && t.constructor !== null && !ye(t.constructor) && re(t.constructor.isBuffer) && t.constructor.isBuffer(t);
13
13
  }
14
- const Dt = ae("ArrayBuffer");
15
- function hr(t) {
14
+ const Lt = oe("ArrayBuffer");
15
+ function gr(t) {
16
16
  let e;
17
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Dt(t.buffer), e;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Lt(t.buffer), e;
18
18
  }
19
- const mr = We("string"), re = We("function"), Ft = We("number"), Pe = (t) => t !== null && typeof t == "object", gr = (t) => t === !0 || t === !1, Ue = (t) => {
20
- if (Me(t) !== "object")
19
+ const yr = Be("string"), re = Be("function"), qt = Be("number"), Pe = (t) => t !== null && typeof t == "object", br = (t) => t === !0 || t === !1, De = (t) => {
20
+ if (We(t) !== "object")
21
21
  return !1;
22
- const e = st(t);
23
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !($t in t) && !(qe in t);
24
- }, yr = (t) => {
22
+ const e = ot(t);
23
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ft in t) && !(Me in t);
24
+ }, wr = (t) => {
25
25
  if (!Pe(t) || Re(t))
26
26
  return !1;
27
27
  try {
@@ -29,11 +29,11 @@ const mr = We("string"), re = We("function"), Ft = We("number"), Pe = (t) => t !
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, br = ae("Date"), wr = ae("File"), jr = ae("Blob"), vr = ae("FileList"), Sr = (t) => Pe(t) && re(t.pipe), kr = (t) => {
32
+ }, vr = oe("Date"), jr = oe("File"), Sr = oe("Blob"), kr = oe("FileList"), Er = (t) => Pe(t) && re(t.pipe), Cr = (t) => {
33
33
  let e;
34
- return t && (typeof FormData == "function" && t instanceof FormData || re(t.append) && ((e = Me(t)) === "formdata" || // detect form-data instance
34
+ return t && (typeof FormData == "function" && t instanceof FormData || re(t.append) && ((e = We(t)) === "formdata" || // detect form-data instance
35
35
  e === "object" && re(t.toString) && t.toString() === "[object FormData]"));
36
- }, Er = ae("URLSearchParams"), [Cr, Tr, Rr, Pr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Ir = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
36
+ }, Tr = oe("URLSearchParams"), [Rr, Pr, Ir, Or] = ["ReadableStream", "Request", "Response", "Headers"].map(oe), zr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
37
  function Ie(t, e, { allOwnKeys: r = !1 } = {}) {
38
38
  if (t === null || typeof t > "u")
39
39
  return;
@@ -44,13 +44,13 @@ function Ie(t, e, { allOwnKeys: r = !1 } = {}) {
44
44
  else {
45
45
  if (Re(t))
46
46
  return;
47
- const o = r ? Object.getOwnPropertyNames(t) : Object.keys(t), a = o.length;
47
+ const a = r ? Object.getOwnPropertyNames(t) : Object.keys(t), o = a.length;
48
48
  let c;
49
- for (s = 0; s < a; s++)
50
- c = o[s], e.call(null, t[c], c, t);
49
+ for (s = 0; s < o; s++)
50
+ c = a[s], e.call(null, t[c], c, t);
51
51
  }
52
52
  }
53
- function Lt(t, e) {
53
+ function Mt(t, e) {
54
54
  if (Re(t))
55
55
  return null;
56
56
  e = e.toLowerCase();
@@ -61,33 +61,33 @@ function Lt(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, qt = (t) => !ye(t) && t !== fe;
65
- function Ze() {
66
- const { caseless: t, skipUndefined: e } = qt(this) && this || {}, r = {}, s = (i, o) => {
67
- const a = t && Lt(r, o) || o;
68
- Ue(r[a]) && Ue(i) ? r[a] = Ze(r[a], i) : Ue(i) ? r[a] = Ze({}, i) : we(i) ? r[a] = i.slice() : (!e || !ye(i)) && (r[a] = i);
64
+ const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Wt = (t) => !ye(t) && t !== fe;
65
+ function Qe() {
66
+ const { caseless: t, skipUndefined: e } = Wt(this) && this || {}, r = {}, s = (i, a) => {
67
+ const o = t && Mt(r, a) || a;
68
+ De(r[o]) && De(i) ? r[o] = Qe(r[o], i) : De(i) ? r[o] = Qe({}, i) : we(i) ? r[o] = i.slice() : (!e || !ye(i)) && (r[o] = i);
69
69
  };
70
- for (let i = 0, o = arguments.length; i < o; i++)
70
+ for (let i = 0, a = arguments.length; i < a; i++)
71
71
  arguments[i] && Ie(arguments[i], s);
72
72
  return r;
73
73
  }
74
- const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
75
- r && re(i) ? t[o] = Nt(i, r) : t[o] = i;
76
- }, { allOwnKeys: s }), t), zr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ar = (t, e, r, s) => {
74
+ const Ar = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, a) => {
75
+ r && re(i) ? t[a] = Nt(i, r) : t[a] = i;
76
+ }, { allOwnKeys: s }), t), _r = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ur = (t, e, r, s) => {
77
77
  t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
78
78
  value: e.prototype
79
79
  }), r && Object.assign(t.prototype, r);
80
- }, _r = (t, e, r, s) => {
81
- let i, o, a;
80
+ }, Dr = (t, e, r, s) => {
81
+ let i, a, o;
82
82
  const c = {};
83
83
  if (e = e || {}, t == null) return e;
84
84
  do {
85
- for (i = Object.getOwnPropertyNames(t), o = i.length; o-- > 0; )
86
- a = i[o], (!s || s(a, t, e)) && !c[a] && (e[a] = t[a], c[a] = !0);
87
- t = r !== !1 && st(t);
85
+ for (i = Object.getOwnPropertyNames(t), a = i.length; a-- > 0; )
86
+ o = i[a], (!s || s(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
87
+ t = r !== !1 && ot(t);
88
88
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
89
89
  return e;
90
- }, Ur = (t, e, r) => {
90
+ }, $r = (t, e, r) => {
91
91
  t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
92
92
  const s = t.indexOf(e, r);
93
93
  return s !== -1 && s === r;
@@ -95,37 +95,37 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
95
95
  if (!t) return null;
96
96
  if (we(t)) return t;
97
97
  let e = t.length;
98
- if (!Ft(e)) return null;
98
+ if (!qt(e)) return null;
99
99
  const r = new Array(e);
100
100
  for (; e-- > 0; )
101
101
  r[e] = t[e];
102
102
  return r;
103
- }, $r = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && st(Uint8Array)), Dr = (t, e) => {
104
- const s = (t && t[qe]).call(t);
103
+ }, Fr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ot(Uint8Array)), Lr = (t, e) => {
104
+ const s = (t && t[Me]).call(t);
105
105
  let i;
106
106
  for (; (i = s.next()) && !i.done; ) {
107
- const o = i.value;
108
- e.call(t, o[0], o[1]);
107
+ const a = i.value;
108
+ e.call(t, a[0], a[1]);
109
109
  }
110
- }, Fr = (t, e) => {
110
+ }, qr = (t, e) => {
111
111
  let r;
112
112
  const s = [];
113
113
  for (; (r = t.exec(e)) !== null; )
114
114
  s.push(r);
115
115
  return s;
116
- }, Lr = ae("HTMLFormElement"), qr = (t) => t.toLowerCase().replace(
116
+ }, Mr = oe("HTMLFormElement"), Wr = (t) => t.toLowerCase().replace(
117
117
  /[-_\s]([a-z\d])(\w*)/g,
118
118
  function(r, s, i) {
119
119
  return s.toUpperCase() + i;
120
120
  }
121
- ), xt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Mr = ae("RegExp"), Mt = (t, e) => {
121
+ ), mt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Br = oe("RegExp"), Bt = (t, e) => {
122
122
  const r = Object.getOwnPropertyDescriptors(t), s = {};
123
- Ie(r, (i, o) => {
124
- let a;
125
- (a = e(i, o, t)) !== !1 && (s[o] = a || i);
123
+ Ie(r, (i, a) => {
124
+ let o;
125
+ (o = e(i, a, t)) !== !1 && (s[a] = o || i);
126
126
  }), Object.defineProperties(t, s);
127
- }, Wr = (t) => {
128
- Mt(t, (e, r) => {
127
+ }, Hr = (t) => {
128
+ Bt(t, (e, r) => {
129
129
  if (re(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
130
130
  return !1;
131
131
  const s = t[r];
@@ -139,19 +139,19 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
139
139
  });
140
140
  }
141
141
  });
142
- }, Br = (t, e) => {
142
+ }, Vr = (t, e) => {
143
143
  const r = {}, s = (i) => {
144
- i.forEach((o) => {
145
- r[o] = !0;
144
+ i.forEach((a) => {
145
+ r[a] = !0;
146
146
  });
147
147
  };
148
148
  return we(t) ? s(t) : s(String(t).split(e)), r;
149
- }, Hr = () => {
150
- }, Vr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
151
- function Yr(t) {
152
- return !!(t && re(t.append) && t[$t] === "FormData" && t[qe]);
149
+ }, Yr = () => {
150
+ }, Kr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
151
+ function Jr(t) {
152
+ return !!(t && re(t.append) && t[Ft] === "FormData" && t[Me]);
153
153
  }
154
- const Kr = (t) => {
154
+ const Gr = (t) => {
155
155
  const e = new Array(10), r = (s, i) => {
156
156
  if (Pe(s)) {
157
157
  if (e.indexOf(s) >= 0)
@@ -160,87 +160,87 @@ const Kr = (t) => {
160
160
  return s;
161
161
  if (!("toJSON" in s)) {
162
162
  e[i] = s;
163
- const o = we(s) ? [] : {};
164
- return Ie(s, (a, c) => {
165
- const h = r(a, i + 1);
166
- !ye(h) && (o[c] = h);
167
- }), e[i] = void 0, o;
163
+ const a = we(s) ? [] : {};
164
+ return Ie(s, (o, c) => {
165
+ const h = r(o, i + 1);
166
+ !ye(h) && (a[c] = h);
167
+ }), e[i] = void 0, a;
168
168
  }
169
169
  }
170
170
  return s;
171
171
  };
172
172
  return r(t, 0);
173
- }, Jr = ae("AsyncFunction"), Gr = (t) => t && (Pe(t) || re(t)) && re(t.then) && re(t.catch), Wt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: i, data: o }) => {
174
- i === fe && o === r && s.length && s.shift()();
173
+ }, Xr = oe("AsyncFunction"), Zr = (t) => t && (Pe(t) || re(t)) && re(t.then) && re(t.catch), Ht = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: i, data: a }) => {
174
+ i === fe && a === r && s.length && s.shift()();
175
175
  }, !1), (i) => {
176
176
  s.push(i), fe.postMessage(r, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
178
178
  typeof setImmediate == "function",
179
179
  re(fe.postMessage)
180
- ), Xr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Wt, Zr = (t) => t != null && re(t[qe]), f = {
180
+ ), Qr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Ht, en = (t) => t != null && re(t[Me]), f = {
181
181
  isArray: we,
182
- isArrayBuffer: Dt,
182
+ isArrayBuffer: Lt,
183
183
  isBuffer: Re,
184
- isFormData: kr,
185
- isArrayBufferView: hr,
186
- isString: mr,
187
- isNumber: Ft,
188
- isBoolean: gr,
184
+ isFormData: Cr,
185
+ isArrayBufferView: gr,
186
+ isString: yr,
187
+ isNumber: qt,
188
+ isBoolean: br,
189
189
  isObject: Pe,
190
- isPlainObject: Ue,
191
- isEmptyObject: yr,
192
- isReadableStream: Cr,
193
- isRequest: Tr,
194
- isResponse: Rr,
195
- isHeaders: Pr,
190
+ isPlainObject: De,
191
+ isEmptyObject: wr,
192
+ isReadableStream: Rr,
193
+ isRequest: Pr,
194
+ isResponse: Ir,
195
+ isHeaders: Or,
196
196
  isUndefined: ye,
197
- isDate: br,
198
- isFile: wr,
199
- isBlob: jr,
200
- isRegExp: Mr,
197
+ isDate: vr,
198
+ isFile: jr,
199
+ isBlob: Sr,
200
+ isRegExp: Br,
201
201
  isFunction: re,
202
- isStream: Sr,
203
- isURLSearchParams: Er,
204
- isTypedArray: $r,
205
- isFileList: vr,
202
+ isStream: Er,
203
+ isURLSearchParams: Tr,
204
+ isTypedArray: Fr,
205
+ isFileList: kr,
206
206
  forEach: Ie,
207
- merge: Ze,
208
- extend: Or,
209
- trim: Ir,
210
- stripBOM: zr,
211
- inherits: Ar,
212
- toFlatObject: _r,
213
- kindOf: Me,
214
- kindOfTest: ae,
215
- endsWith: Ur,
207
+ merge: Qe,
208
+ extend: Ar,
209
+ trim: zr,
210
+ stripBOM: _r,
211
+ inherits: Ur,
212
+ toFlatObject: Dr,
213
+ kindOf: We,
214
+ kindOfTest: oe,
215
+ endsWith: $r,
216
216
  toArray: Nr,
217
- forEachEntry: Dr,
218
- matchAll: Fr,
219
- isHTMLForm: Lr,
220
- hasOwnProperty: xt,
221
- hasOwnProp: xt,
217
+ forEachEntry: Lr,
218
+ matchAll: qr,
219
+ isHTMLForm: Mr,
220
+ hasOwnProperty: mt,
221
+ hasOwnProp: mt,
222
222
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: Mt,
224
- freezeMethods: Wr,
225
- toObjectSet: Br,
226
- toCamelCase: qr,
227
- noop: Hr,
228
- toFiniteNumber: Vr,
229
- findKey: Lt,
223
+ reduceDescriptors: Bt,
224
+ freezeMethods: Hr,
225
+ toObjectSet: Vr,
226
+ toCamelCase: Wr,
227
+ noop: Yr,
228
+ toFiniteNumber: Kr,
229
+ findKey: Mt,
230
230
  global: fe,
231
- isContextDefined: qt,
232
- isSpecCompliantForm: Yr,
233
- toJSONObject: Kr,
234
- isAsyncFn: Jr,
235
- isThenable: Gr,
236
- setImmediate: Wt,
237
- asap: Xr,
238
- isIterable: Zr
231
+ isContextDefined: Wt,
232
+ isSpecCompliantForm: Jr,
233
+ toJSONObject: Gr,
234
+ isAsyncFn: Xr,
235
+ isThenable: Zr,
236
+ setImmediate: Ht,
237
+ asap: Qr,
238
+ isIterable: en
239
239
  };
240
- function D(t, e, r, s, i) {
240
+ function N(t, e, r, 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), r && (this.config = r), s && (this.request = s), i && (this.response = i, this.status = i.status ? i.status : null);
242
242
  }
243
- f.inherits(D, Error, {
243
+ f.inherits(N, Error, {
244
244
  toJSON: function() {
245
245
  return {
246
246
  // Standard
@@ -261,7 +261,7 @@ f.inherits(D, Error, {
261
261
  };
262
262
  }
263
263
  });
264
- const Bt = D.prototype, Ht = {};
264
+ const Vt = N.prototype, Yt = {};
265
265
  [
266
266
  "ERR_BAD_OPTION_VALUE",
267
267
  "ERR_BAD_OPTION",
@@ -277,37 +277,37 @@ const Bt = D.prototype, Ht = {};
277
277
  "ERR_INVALID_URL"
278
278
  // eslint-disable-next-line func-names
279
279
  ].forEach((t) => {
280
- Ht[t] = { value: t };
280
+ Yt[t] = { value: t };
281
281
  });
282
- Object.defineProperties(D, Ht);
283
- Object.defineProperty(Bt, "isAxiosError", { value: !0 });
284
- D.from = (t, e, r, s, i, o) => {
285
- const a = Object.create(Bt);
286
- f.toFlatObject(t, a, function(d) {
282
+ Object.defineProperties(N, Yt);
283
+ Object.defineProperty(Vt, "isAxiosError", { value: !0 });
284
+ N.from = (t, e, r, s, i, a) => {
285
+ const o = Object.create(Vt);
286
+ f.toFlatObject(t, o, function(d) {
287
287
  return d !== Error.prototype;
288
288
  }, (u) => u !== "isAxiosError");
289
289
  const c = t && t.message ? t.message : "Error", h = e == null && t ? t.code : e;
290
- return D.call(a, c, h, r, s, i), t && a.cause == null && Object.defineProperty(a, "cause", { value: t, configurable: !0 }), a.name = t && t.name || "Error", o && Object.assign(a, o), a;
290
+ return N.call(o, c, h, r, s, i), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", a && Object.assign(o, a), o;
291
291
  };
292
- const Qr = null;
293
- function Qe(t) {
292
+ const tn = null;
293
+ function et(t) {
294
294
  return f.isPlainObject(t) || f.isArray(t);
295
295
  }
296
- function Vt(t) {
296
+ function Kt(t) {
297
297
  return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
298
298
  }
299
- function ht(t, e, r) {
300
- return t ? t.concat(e).map(function(i, o) {
301
- return i = Vt(i), !r && o ? "[" + i + "]" : i;
299
+ function gt(t, e, r) {
300
+ return t ? t.concat(e).map(function(i, a) {
301
+ return i = Kt(i), !r && a ? "[" + i + "]" : i;
302
302
  }).join(r ? "." : "") : e;
303
303
  }
304
- function en(t) {
305
- return f.isArray(t) && !t.some(Qe);
304
+ function rn(t) {
305
+ return f.isArray(t) && !t.some(et);
306
306
  }
307
- const tn = f.toFlatObject(f, {}, null, function(e) {
307
+ const nn = f.toFlatObject(f, {}, null, function(e) {
308
308
  return /^is[A-Z]/.test(e);
309
309
  });
310
- function Be(t, e, r) {
310
+ function He(t, e, r) {
311
311
  if (!f.isObject(t))
312
312
  throw new TypeError("target must be an object");
313
313
  e = e || new FormData(), r = f.toFlatObject(r, {
@@ -317,7 +317,7 @@ function Be(t, e, r) {
317
317
  }, !1, function(w, x) {
318
318
  return !f.isUndefined(x[w]);
319
319
  });
320
- const s = r.metaTokens, i = r.visitor || d, o = r.dots, a = r.indexes, h = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
320
+ const s = r.metaTokens, i = r.visitor || d, a = r.dots, o = r.indexes, h = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
321
321
  if (!f.isFunction(i))
322
322
  throw new TypeError("visitor must be a function");
323
323
  function u(p) {
@@ -327,7 +327,7 @@ function Be(t, e, r) {
327
327
  if (f.isBoolean(p))
328
328
  return p.toString();
329
329
  if (!h && f.isBlob(p))
330
- throw new D("Blob is not supported. Use a Buffer instead.");
330
+ throw new N("Blob is not supported. Use a Buffer instead.");
331
331
  return f.isArrayBuffer(p) || f.isTypedArray(p) ? h && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
332
332
  }
333
333
  function d(p, w, x) {
@@ -335,21 +335,21 @@ function Be(t, e, r) {
335
335
  if (p && !x && typeof p == "object") {
336
336
  if (f.endsWith(w, "{}"))
337
337
  w = s ? w : w.slice(0, -2), p = JSON.stringify(p);
338
- else if (f.isArray(p) && en(p) || (f.isFileList(p) || f.endsWith(w, "[]")) && (C = f.toArray(p)))
339
- return w = Vt(w), C.forEach(function(A, y) {
338
+ else if (f.isArray(p) && rn(p) || (f.isFileList(p) || f.endsWith(w, "[]")) && (C = f.toArray(p)))
339
+ return w = Kt(w), C.forEach(function(A, y) {
340
340
  !(f.isUndefined(A) || A === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
- a === !0 ? ht([w], y, o) : a === null ? w : w + "[]",
342
+ o === !0 ? gt([w], y, a) : o === null ? w : w + "[]",
343
343
  u(A)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return Qe(p) ? !0 : (e.append(ht(x, w, o), u(p)), !1);
347
+ return et(p) ? !0 : (e.append(gt(x, w, a), u(p)), !1);
348
348
  }
349
- const m = [], P = Object.assign(tn, {
349
+ const m = [], P = Object.assign(nn, {
350
350
  defaultVisitor: d,
351
351
  convertValue: u,
352
- isVisitable: Qe
352
+ isVisitable: et
353
353
  });
354
354
  function O(p, w) {
355
355
  if (!f.isUndefined(p)) {
@@ -370,7 +370,7 @@ function Be(t, e, r) {
370
370
  throw new TypeError("data must be an object");
371
371
  return O(t), e;
372
372
  }
373
- function mt(t) {
373
+ function yt(t) {
374
374
  const e = {
375
375
  "!": "%21",
376
376
  "'": "%27",
@@ -384,40 +384,40 @@ function mt(t) {
384
384
  return e[s];
385
385
  });
386
386
  }
387
- function it(t, e) {
388
- this._pairs = [], t && Be(t, this, e);
387
+ function at(t, e) {
388
+ this._pairs = [], t && He(t, this, e);
389
389
  }
390
- const Yt = it.prototype;
391
- Yt.append = function(e, r) {
390
+ const Jt = at.prototype;
391
+ Jt.append = function(e, r) {
392
392
  this._pairs.push([e, r]);
393
393
  };
394
- Yt.toString = function(e) {
394
+ Jt.toString = function(e) {
395
395
  const r = e ? function(s) {
396
- return e.call(this, s, mt);
397
- } : mt;
396
+ return e.call(this, s, yt);
397
+ } : yt;
398
398
  return this._pairs.map(function(i) {
399
399
  return r(i[0]) + "=" + r(i[1]);
400
400
  }, "").join("&");
401
401
  };
402
- function rn(t) {
402
+ function sn(t) {
403
403
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
404
404
  }
405
- function Kt(t, e, r) {
405
+ function Gt(t, e, r) {
406
406
  if (!e)
407
407
  return t;
408
- const s = r && r.encode || rn;
408
+ const s = r && r.encode || sn;
409
409
  f.isFunction(r) && (r = {
410
410
  serialize: r
411
411
  });
412
412
  const i = r && r.serialize;
413
- let o;
414
- if (i ? o = i(e, r) : o = f.isURLSearchParams(e) ? e.toString() : new it(e, r).toString(s), o) {
415
- const a = t.indexOf("#");
416
- a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
413
+ let a;
414
+ if (i ? a = i(e, r) : a = f.isURLSearchParams(e) ? e.toString() : new at(e, r).toString(s), a) {
415
+ const o = t.indexOf("#");
416
+ o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
417
417
  }
418
418
  return t;
419
419
  }
420
- class gt {
420
+ class bt {
421
421
  constructor() {
422
422
  this.handlers = [];
423
423
  }
@@ -471,66 +471,66 @@ class gt {
471
471
  });
472
472
  }
473
473
  }
474
- const Jt = {
474
+ const Xt = {
475
475
  silentJSONParsing: !0,
476
476
  forcedJSONParsing: !0,
477
477
  clarifyTimeoutError: !1
478
- }, nn = typeof URLSearchParams < "u" ? URLSearchParams : it, sn = typeof FormData < "u" ? FormData : null, an = typeof Blob < "u" ? Blob : null, on = {
478
+ }, on = typeof URLSearchParams < "u" ? URLSearchParams : at, an = typeof FormData < "u" ? FormData : null, ln = typeof Blob < "u" ? Blob : null, cn = {
479
479
  isBrowser: !0,
480
480
  classes: {
481
- URLSearchParams: nn,
482
- FormData: sn,
483
- Blob: an
481
+ URLSearchParams: on,
482
+ FormData: an,
483
+ Blob: ln
484
484
  },
485
485
  protocols: ["http", "https", "file", "blob", "url", "data"]
486
- }, at = typeof window < "u" && typeof document < "u", et = typeof navigator == "object" && navigator || void 0, ln = at && (!et || ["ReactNative", "NativeScript", "NS"].indexOf(et.product) < 0), cn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", dn = at && window.location.href || "http://localhost", un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
+ }, lt = typeof window < "u" && typeof document < "u", tt = typeof navigator == "object" && navigator || void 0, dn = lt && (!tt || ["ReactNative", "NativeScript", "NS"].indexOf(tt.product) < 0), un = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", pn = lt && window.location.href || "http://localhost", fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
488
  __proto__: null,
489
- hasBrowserEnv: at,
490
- hasStandardBrowserEnv: ln,
491
- hasStandardBrowserWebWorkerEnv: cn,
492
- navigator: et,
493
- origin: dn
489
+ hasBrowserEnv: lt,
490
+ hasStandardBrowserEnv: dn,
491
+ hasStandardBrowserWebWorkerEnv: un,
492
+ navigator: tt,
493
+ origin: pn
494
494
  }, Symbol.toStringTag, { value: "Module" })), ee = {
495
- ...un,
496
- ...on
495
+ ...fn,
496
+ ...cn
497
497
  };
498
- function pn(t, e) {
499
- return Be(t, new ee.classes.URLSearchParams(), {
500
- visitor: function(r, s, i, o) {
501
- return ee.isNode && f.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
498
+ function xn(t, e) {
499
+ return He(t, new ee.classes.URLSearchParams(), {
500
+ visitor: function(r, s, i, a) {
501
+ return ee.isNode && f.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
502
502
  },
503
503
  ...e
504
504
  });
505
505
  }
506
- function fn(t) {
506
+ function hn(t) {
507
507
  return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
508
508
  }
509
- function xn(t) {
509
+ function mn(t) {
510
510
  const e = {}, r = Object.keys(t);
511
511
  let s;
512
512
  const i = r.length;
513
- let o;
513
+ let a;
514
514
  for (s = 0; s < i; s++)
515
- o = r[s], e[o] = t[o];
515
+ a = r[s], e[a] = t[a];
516
516
  return e;
517
517
  }
518
- function Gt(t) {
519
- function e(r, s, i, o) {
520
- let a = r[o++];
521
- if (a === "__proto__") return !0;
522
- const c = Number.isFinite(+a), h = o >= r.length;
523
- return a = !a && f.isArray(i) ? i.length : a, h ? (f.hasOwnProp(i, a) ? i[a] = [i[a], s] : i[a] = s, !c) : ((!i[a] || !f.isObject(i[a])) && (i[a] = []), e(r, s, i[a], o) && f.isArray(i[a]) && (i[a] = xn(i[a])), !c);
518
+ function Zt(t) {
519
+ function e(r, s, i, a) {
520
+ let o = r[a++];
521
+ if (o === "__proto__") return !0;
522
+ const c = Number.isFinite(+o), h = a >= r.length;
523
+ return o = !o && f.isArray(i) ? i.length : o, h ? (f.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !f.isObject(i[o])) && (i[o] = []), e(r, s, i[o], a) && f.isArray(i[o]) && (i[o] = mn(i[o])), !c);
524
524
  }
525
525
  if (f.isFormData(t) && f.isFunction(t.entries)) {
526
526
  const r = {};
527
527
  return f.forEachEntry(t, (s, i) => {
528
- e(fn(s), i, r, 0);
528
+ e(hn(s), i, r, 0);
529
529
  }), r;
530
530
  }
531
531
  return null;
532
532
  }
533
- function hn(t, e, r) {
533
+ function gn(t, e, r) {
534
534
  if (f.isString(t))
535
535
  try {
536
536
  return (e || JSON.parse)(t), f.trim(t);
@@ -541,12 +541,12 @@ function hn(t, e, r) {
541
541
  return (r || JSON.stringify)(t);
542
542
  }
543
543
  const Oe = {
544
- transitional: Jt,
544
+ transitional: Xt,
545
545
  adapter: ["xhr", "http", "fetch"],
546
546
  transformRequest: [function(e, r) {
547
- const s = r.getContentType() || "", i = s.indexOf("application/json") > -1, o = f.isObject(e);
548
- if (o && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
549
- return i ? JSON.stringify(Gt(e)) : e;
547
+ const s = r.getContentType() || "", i = s.indexOf("application/json") > -1, a = f.isObject(e);
548
+ if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
549
+ return i ? JSON.stringify(Zt(e)) : e;
550
550
  if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
551
551
  return e;
552
552
  if (f.isArrayBufferView(e))
@@ -554,31 +554,31 @@ const Oe = {
554
554
  if (f.isURLSearchParams(e))
555
555
  return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
556
556
  let c;
557
- if (o) {
557
+ if (a) {
558
558
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
559
- return pn(e, this.formSerializer).toString();
559
+ return xn(e, this.formSerializer).toString();
560
560
  if ((c = f.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
561
561
  const h = this.env && this.env.FormData;
562
- return Be(
562
+ return He(
563
563
  c ? { "files[]": e } : e,
564
564
  h && new h(),
565
565
  this.formSerializer
566
566
  );
567
567
  }
568
568
  }
569
- return o || i ? (r.setContentType("application/json", !1), hn(e)) : e;
569
+ return a || i ? (r.setContentType("application/json", !1), gn(e)) : e;
570
570
  }],
571
571
  transformResponse: [function(e) {
572
572
  const r = this.transitional || Oe.transitional, s = r && r.forcedJSONParsing, i = this.responseType === "json";
573
573
  if (f.isResponse(e) || f.isReadableStream(e))
574
574
  return e;
575
575
  if (e && f.isString(e) && (s && !this.responseType || i)) {
576
- const a = !(r && r.silentJSONParsing) && i;
576
+ const o = !(r && r.silentJSONParsing) && i;
577
577
  try {
578
578
  return JSON.parse(e, this.parseReviver);
579
579
  } catch (c) {
580
- if (a)
581
- throw c.name === "SyntaxError" ? D.from(c, D.ERR_BAD_RESPONSE, this, null, this.response) : c;
580
+ if (o)
581
+ throw c.name === "SyntaxError" ? N.from(c, N.ERR_BAD_RESPONSE, this, null, this.response) : c;
582
582
  }
583
583
  }
584
584
  return e;
@@ -609,7 +609,7 @@ const Oe = {
609
609
  f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
610
610
  Oe.headers[t] = {};
611
611
  });
612
- const mn = f.toObjectSet([
612
+ const yn = f.toObjectSet([
613
613
  "age",
614
614
  "authorization",
615
615
  "content-length",
@@ -627,29 +627,29 @@ const mn = f.toObjectSet([
627
627
  "referer",
628
628
  "retry-after",
629
629
  "user-agent"
630
- ]), gn = (t) => {
630
+ ]), bn = (t) => {
631
631
  const e = {};
632
632
  let r, s, i;
633
633
  return t && t.split(`
634
- `).forEach(function(a) {
635
- i = a.indexOf(":"), r = a.substring(0, i).trim().toLowerCase(), s = a.substring(i + 1).trim(), !(!r || e[r] && mn[r]) && (r === "set-cookie" ? e[r] ? e[r].push(s) : e[r] = [s] : e[r] = e[r] ? e[r] + ", " + s : s);
634
+ `).forEach(function(o) {
635
+ i = o.indexOf(":"), r = o.substring(0, i).trim().toLowerCase(), s = o.substring(i + 1).trim(), !(!r || e[r] && yn[r]) && (r === "set-cookie" ? e[r] ? e[r].push(s) : e[r] = [s] : e[r] = e[r] ? e[r] + ", " + s : s);
636
636
  }), e;
637
- }, yt = Symbol("internals");
637
+ }, wt = Symbol("internals");
638
638
  function ke(t) {
639
639
  return t && String(t).trim().toLowerCase();
640
640
  }
641
- function Ne(t) {
642
- return t === !1 || t == null ? t : f.isArray(t) ? t.map(Ne) : String(t);
641
+ function $e(t) {
642
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map($e) : String(t);
643
643
  }
644
- function yn(t) {
644
+ function wn(t) {
645
645
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
646
646
  let s;
647
647
  for (; s = r.exec(t); )
648
648
  e[s[1]] = s[2];
649
649
  return e;
650
650
  }
651
- const bn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
652
- function Ye(t, e, r, s, i) {
651
+ const vn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
652
+ function Ke(t, e, r, s, i) {
653
653
  if (f.isFunction(s))
654
654
  return s.call(this, e, r);
655
655
  if (i && (e = r), !!f.isString(e)) {
@@ -659,15 +659,15 @@ function Ye(t, e, r, s, i) {
659
659
  return s.test(e);
660
660
  }
661
661
  }
662
- function wn(t) {
662
+ function jn(t) {
663
663
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, s) => r.toUpperCase() + s);
664
664
  }
665
- function jn(t, e) {
665
+ function Sn(t, e) {
666
666
  const r = f.toCamelCase(" " + e);
667
667
  ["get", "set", "has"].forEach((s) => {
668
668
  Object.defineProperty(t, s + r, {
669
- value: function(i, o, a) {
670
- return this[s].call(this, e, i, o, a);
669
+ value: function(i, a, o) {
670
+ return this[s].call(this, e, i, a, o);
671
671
  },
672
672
  configurable: !0
673
673
  });
@@ -679,18 +679,18 @@ let ne = class {
679
679
  }
680
680
  set(e, r, s) {
681
681
  const i = this;
682
- function o(c, h, u) {
682
+ function a(c, h, u) {
683
683
  const d = ke(h);
684
684
  if (!d)
685
685
  throw new Error("header name must be a non-empty string");
686
686
  const m = f.findKey(i, d);
687
- (!m || i[m] === void 0 || u === !0 || u === void 0 && i[m] !== !1) && (i[m || h] = Ne(c));
687
+ (!m || i[m] === void 0 || u === !0 || u === void 0 && i[m] !== !1) && (i[m || h] = $e(c));
688
688
  }
689
- const a = (c, h) => f.forEach(c, (u, d) => o(u, d, h));
689
+ const o = (c, h) => f.forEach(c, (u, d) => a(u, d, h));
690
690
  if (f.isPlainObject(e) || e instanceof this.constructor)
691
- a(e, r);
692
- else if (f.isString(e) && (e = e.trim()) && !bn(e))
693
- a(gn(e), r);
691
+ o(e, r);
692
+ else if (f.isString(e) && (e = e.trim()) && !vn(e))
693
+ o(bn(e), r);
694
694
  else if (f.isObject(e) && f.isIterable(e)) {
695
695
  let c = {}, h, u;
696
696
  for (const d of e) {
@@ -698,9 +698,9 @@ let ne = class {
698
698
  throw TypeError("Object iterator must return a key-value pair");
699
699
  c[u = d[0]] = (h = c[u]) ? f.isArray(h) ? [...h, d[1]] : [h, d[1]] : d[1];
700
700
  }
701
- a(c, r);
701
+ o(c, r);
702
702
  } else
703
- e != null && o(r, e, s);
703
+ e != null && a(r, e, s);
704
704
  return this;
705
705
  }
706
706
  get(e, r) {
@@ -711,7 +711,7 @@ let ne = class {
711
711
  if (!r)
712
712
  return i;
713
713
  if (r === !0)
714
- return yn(i);
714
+ return wn(i);
715
715
  if (f.isFunction(r))
716
716
  return r.call(this, i, s);
717
717
  if (f.isRegExp(r))
@@ -723,40 +723,40 @@ let ne = class {
723
723
  has(e, r) {
724
724
  if (e = ke(e), e) {
725
725
  const s = f.findKey(this, e);
726
- return !!(s && this[s] !== void 0 && (!r || Ye(this, this[s], s, r)));
726
+ return !!(s && this[s] !== void 0 && (!r || Ke(this, this[s], s, r)));
727
727
  }
728
728
  return !1;
729
729
  }
730
730
  delete(e, r) {
731
731
  const s = this;
732
732
  let i = !1;
733
- function o(a) {
734
- if (a = ke(a), a) {
735
- const c = f.findKey(s, a);
736
- c && (!r || Ye(s, s[c], c, r)) && (delete s[c], i = !0);
733
+ function a(o) {
734
+ if (o = ke(o), o) {
735
+ const c = f.findKey(s, o);
736
+ c && (!r || Ke(s, s[c], c, r)) && (delete s[c], i = !0);
737
737
  }
738
738
  }
739
- return f.isArray(e) ? e.forEach(o) : o(e), i;
739
+ return f.isArray(e) ? e.forEach(a) : a(e), i;
740
740
  }
741
741
  clear(e) {
742
742
  const r = Object.keys(this);
743
743
  let s = r.length, i = !1;
744
744
  for (; s--; ) {
745
- const o = r[s];
746
- (!e || Ye(this, this[o], o, e, !0)) && (delete this[o], i = !0);
745
+ const a = r[s];
746
+ (!e || Ke(this, this[a], a, e, !0)) && (delete this[a], i = !0);
747
747
  }
748
748
  return i;
749
749
  }
750
750
  normalize(e) {
751
751
  const r = this, s = {};
752
- return f.forEach(this, (i, o) => {
753
- const a = f.findKey(s, o);
754
- if (a) {
755
- r[a] = Ne(i), delete r[o];
752
+ return f.forEach(this, (i, a) => {
753
+ const o = f.findKey(s, a);
754
+ if (o) {
755
+ r[o] = $e(i), delete r[a];
756
756
  return;
757
757
  }
758
- const c = e ? wn(o) : String(o).trim();
759
- c !== o && delete r[o], r[c] = Ne(i), s[c] = !0;
758
+ const c = e ? jn(a) : String(a).trim();
759
+ c !== a && delete r[a], r[c] = $e(i), s[c] = !0;
760
760
  }), this;
761
761
  }
762
762
  concat(...e) {
@@ -789,14 +789,14 @@ let ne = class {
789
789
  return r.forEach((i) => s.set(i)), s;
790
790
  }
791
791
  static accessor(e) {
792
- const s = (this[yt] = this[yt] = {
792
+ const s = (this[wt] = this[wt] = {
793
793
  accessors: {}
794
794
  }).accessors, i = this.prototype;
795
- function o(a) {
796
- const c = ke(a);
797
- s[c] || (jn(i, a), s[c] = !0);
795
+ function a(o) {
796
+ const c = ke(o);
797
+ s[c] || (Sn(i, o), s[c] = !0);
798
798
  }
799
- return f.isArray(e) ? e.forEach(o) : o(e), this;
799
+ return f.isArray(e) ? e.forEach(a) : a(e), this;
800
800
  }
801
801
  };
802
802
  ne.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
@@ -810,99 +810,99 @@ f.reduceDescriptors(ne.prototype, ({ value: t }, e) => {
810
810
  };
811
811
  });
812
812
  f.freezeMethods(ne);
813
- function Ke(t, e) {
813
+ function Je(t, e) {
814
814
  const r = this || Oe, s = e || r, i = ne.from(s.headers);
815
- let o = s.data;
815
+ let a = s.data;
816
816
  return f.forEach(t, function(c) {
817
- o = c.call(r, o, i.normalize(), e ? e.status : void 0);
818
- }), i.normalize(), o;
817
+ a = c.call(r, a, i.normalize(), e ? e.status : void 0);
818
+ }), i.normalize(), a;
819
819
  }
820
- function Xt(t) {
820
+ function Qt(t) {
821
821
  return !!(t && t.__CANCEL__);
822
822
  }
823
- function je(t, e, r) {
824
- D.call(this, t ?? "canceled", D.ERR_CANCELED, e, r), this.name = "CanceledError";
823
+ function ve(t, e, r) {
824
+ N.call(this, t ?? "canceled", N.ERR_CANCELED, e, r), this.name = "CanceledError";
825
825
  }
826
- f.inherits(je, D, {
826
+ f.inherits(ve, N, {
827
827
  __CANCEL__: !0
828
828
  });
829
- function Zt(t, e, r) {
829
+ function er(t, e, r) {
830
830
  const s = r.config.validateStatus;
831
- !r.status || !s || s(r.status) ? t(r) : e(new D(
831
+ !r.status || !s || s(r.status) ? t(r) : e(new N(
832
832
  "Request failed with status code " + r.status,
833
- [D.ERR_BAD_REQUEST, D.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
833
+ [N.ERR_BAD_REQUEST, N.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
834
834
  r.config,
835
835
  r.request,
836
836
  r
837
837
  ));
838
838
  }
839
- function vn(t) {
839
+ function kn(t) {
840
840
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
841
841
  return e && e[1] || "";
842
842
  }
843
- function Sn(t, e) {
843
+ function En(t, e) {
844
844
  t = t || 10;
845
845
  const r = new Array(t), s = new Array(t);
846
- let i = 0, o = 0, a;
846
+ let i = 0, a = 0, o;
847
847
  return e = e !== void 0 ? e : 1e3, function(h) {
848
- const u = Date.now(), d = s[o];
849
- a || (a = u), r[i] = h, s[i] = u;
850
- let m = o, P = 0;
848
+ const u = Date.now(), d = s[a];
849
+ o || (o = u), r[i] = h, s[i] = u;
850
+ let m = a, P = 0;
851
851
  for (; m !== i; )
852
852
  P += r[m++], m = m % t;
853
- if (i = (i + 1) % t, i === o && (o = (o + 1) % t), u - a < e)
853
+ if (i = (i + 1) % t, i === a && (a = (a + 1) % t), u - o < e)
854
854
  return;
855
855
  const O = d && u - d;
856
856
  return O ? Math.round(P * 1e3 / O) : void 0;
857
857
  };
858
858
  }
859
- function kn(t, e) {
860
- let r = 0, s = 1e3 / e, i, o;
861
- const a = (u, d = Date.now()) => {
862
- r = d, i = null, o && (clearTimeout(o), o = null), t(...u);
859
+ function Cn(t, e) {
860
+ let r = 0, s = 1e3 / e, i, a;
861
+ const o = (u, d = Date.now()) => {
862
+ r = d, i = null, a && (clearTimeout(a), a = null), t(...u);
863
863
  };
864
864
  return [(...u) => {
865
865
  const d = Date.now(), m = d - r;
866
- m >= s ? a(u, d) : (i = u, o || (o = setTimeout(() => {
867
- o = null, a(i);
866
+ m >= s ? o(u, d) : (i = u, a || (a = setTimeout(() => {
867
+ a = null, o(i);
868
868
  }, s - m)));
869
- }, () => i && a(i)];
869
+ }, () => i && o(i)];
870
870
  }
871
- const Le = (t, e, r = 3) => {
871
+ const qe = (t, e, r = 3) => {
872
872
  let s = 0;
873
- const i = Sn(50, 250);
874
- return kn((o) => {
875
- const a = o.loaded, c = o.lengthComputable ? o.total : void 0, h = a - s, u = i(h), d = a <= c;
876
- s = a;
873
+ const i = En(50, 250);
874
+ return Cn((a) => {
875
+ const o = a.loaded, c = a.lengthComputable ? a.total : void 0, h = o - s, u = i(h), d = o <= c;
876
+ s = o;
877
877
  const m = {
878
- loaded: a,
878
+ loaded: o,
879
879
  total: c,
880
- progress: c ? a / c : void 0,
880
+ progress: c ? o / c : void 0,
881
881
  bytes: h,
882
882
  rate: u || void 0,
883
- estimated: u && c && d ? (c - a) / u : void 0,
884
- event: o,
883
+ estimated: u && c && d ? (c - o) / u : void 0,
884
+ event: a,
885
885
  lengthComputable: c != null,
886
886
  [e ? "download" : "upload"]: !0
887
887
  };
888
888
  t(m);
889
889
  }, r);
890
- }, bt = (t, e) => {
890
+ }, vt = (t, e) => {
891
891
  const r = t != null;
892
892
  return [(s) => e[0]({
893
893
  lengthComputable: r,
894
894
  total: t,
895
895
  loaded: s
896
896
  }), e[1]];
897
- }, wt = (t) => (...e) => f.asap(() => t(...e)), En = ee.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, ee.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
897
+ }, jt = (t) => (...e) => f.asap(() => t(...e)), Tn = ee.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, ee.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
898
898
  new URL(ee.origin),
899
899
  ee.navigator && /(msie|trident)/i.test(ee.navigator.userAgent)
900
- ) : () => !0, Cn = ee.hasStandardBrowserEnv ? (
900
+ ) : () => !0, Rn = ee.hasStandardBrowserEnv ? (
901
901
  // Standard browser envs support document.cookie
902
902
  {
903
- write(t, e, r, s, i, o) {
904
- const a = [t + "=" + encodeURIComponent(e)];
905
- f.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), f.isString(s) && a.push("path=" + s), f.isString(i) && a.push("domain=" + i), o === !0 && a.push("secure"), document.cookie = a.join("; ");
903
+ write(t, e, r, s, i, a) {
904
+ const o = [t + "=" + encodeURIComponent(e)];
905
+ f.isNumber(r) && o.push("expires=" + new Date(r).toGMTString()), f.isString(s) && o.push("path=" + s), f.isString(i) && o.push("domain=" + i), a === !0 && o.push("secure"), document.cookie = o.join("; ");
906
906
  },
907
907
  read(t) {
908
908
  const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
@@ -924,17 +924,17 @@ const Le = (t, e, r = 3) => {
924
924
  }
925
925
  }
926
926
  );
927
- function Tn(t) {
927
+ function Pn(t) {
928
928
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
929
929
  }
930
- function Rn(t, e) {
930
+ function In(t, e) {
931
931
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
932
932
  }
933
- function Qt(t, e, r) {
934
- let s = !Tn(e);
935
- return t && (s || r == !1) ? Rn(t, e) : e;
933
+ function tr(t, e, r) {
934
+ let s = !Pn(e);
935
+ return t && (s || r == !1) ? In(t, e) : e;
936
936
  }
937
- const jt = (t) => t instanceof ne ? { ...t } : t;
937
+ const St = (t) => t instanceof ne ? { ...t } : t;
938
938
  function he(t, e) {
939
939
  e = e || {};
940
940
  const r = {};
@@ -947,11 +947,11 @@ function he(t, e) {
947
947
  return s(void 0, u, m, P);
948
948
  } else return s(u, d, m, P);
949
949
  }
950
- function o(u, d) {
950
+ function a(u, d) {
951
951
  if (!f.isUndefined(d))
952
952
  return s(void 0, d);
953
953
  }
954
- function a(u, d) {
954
+ function o(u, d) {
955
955
  if (f.isUndefined(d)) {
956
956
  if (!f.isUndefined(u))
957
957
  return s(void 0, u);
@@ -964,67 +964,67 @@ function he(t, e) {
964
964
  return s(void 0, u);
965
965
  }
966
966
  const h = {
967
- url: o,
968
- method: o,
969
- data: o,
970
- baseURL: a,
971
- transformRequest: a,
972
- transformResponse: a,
973
- paramsSerializer: a,
974
- timeout: a,
975
- timeoutMessage: a,
976
- withCredentials: a,
977
- withXSRFToken: a,
978
- adapter: a,
979
- responseType: a,
980
- xsrfCookieName: a,
981
- xsrfHeaderName: a,
982
- onUploadProgress: a,
983
- onDownloadProgress: a,
984
- decompress: a,
985
- maxContentLength: a,
986
- maxBodyLength: a,
987
- beforeRedirect: a,
988
- transport: a,
989
- httpAgent: a,
990
- httpsAgent: a,
991
- cancelToken: a,
992
- socketPath: a,
993
- responseEncoding: a,
967
+ url: a,
968
+ method: a,
969
+ data: a,
970
+ baseURL: o,
971
+ transformRequest: o,
972
+ transformResponse: o,
973
+ paramsSerializer: o,
974
+ timeout: o,
975
+ timeoutMessage: o,
976
+ withCredentials: o,
977
+ withXSRFToken: o,
978
+ adapter: o,
979
+ responseType: o,
980
+ xsrfCookieName: o,
981
+ xsrfHeaderName: o,
982
+ onUploadProgress: o,
983
+ onDownloadProgress: o,
984
+ decompress: o,
985
+ maxContentLength: o,
986
+ maxBodyLength: o,
987
+ beforeRedirect: o,
988
+ transport: o,
989
+ httpAgent: o,
990
+ httpsAgent: o,
991
+ cancelToken: o,
992
+ socketPath: o,
993
+ responseEncoding: o,
994
994
  validateStatus: c,
995
- headers: (u, d, m) => i(jt(u), jt(d), m, !0)
995
+ headers: (u, d, m) => i(St(u), St(d), m, !0)
996
996
  };
997
997
  return f.forEach(Object.keys({ ...t, ...e }), function(d) {
998
998
  const m = h[d] || i, P = m(t[d], e[d], d);
999
999
  f.isUndefined(P) && m !== c || (r[d] = P);
1000
1000
  }), r;
1001
1001
  }
1002
- const er = (t) => {
1002
+ const rr = (t) => {
1003
1003
  const e = he({}, t);
1004
- let { data: r, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: o, headers: a, auth: c } = e;
1005
- if (e.headers = a = ne.from(a), e.url = Kt(Qt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && a.set(
1004
+ let { data: r, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: c } = e;
1005
+ if (e.headers = o = ne.from(o), e.url = Gt(tr(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
  ), f.isFormData(r)) {
1009
1009
  if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
1010
- a.setContentType(void 0);
1010
+ o.setContentType(void 0);
1011
1011
  else if (f.isFunction(r.getHeaders)) {
1012
1012
  const h = r.getHeaders(), u = ["content-type", "content-length"];
1013
1013
  Object.entries(h).forEach(([d, m]) => {
1014
- u.includes(d.toLowerCase()) && a.set(d, m);
1014
+ u.includes(d.toLowerCase()) && o.set(d, m);
1015
1015
  });
1016
1016
  }
1017
1017
  }
1018
- if (ee.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && En(e.url))) {
1019
- const h = i && o && Cn.read(o);
1020
- h && a.set(i, h);
1018
+ if (ee.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && Tn(e.url))) {
1019
+ const h = i && a && Rn.read(a);
1020
+ h && o.set(i, h);
1021
1021
  }
1022
1022
  return e;
1023
- }, Pn = typeof XMLHttpRequest < "u", In = Pn && function(t) {
1023
+ }, On = typeof XMLHttpRequest < "u", zn = On && function(t) {
1024
1024
  return new Promise(function(r, s) {
1025
- const i = er(t);
1026
- let o = i.data;
1027
- const a = ne.from(i.headers).normalize();
1025
+ const i = rr(t);
1026
+ let a = i.data;
1027
+ const o = ne.from(i.headers).normalize();
1028
1028
  let { responseType: c, onUploadProgress: h, onDownloadProgress: u } = i, d, m, P, O, p;
1029
1029
  function w() {
1030
1030
  O && O(), p && p(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
@@ -1044,64 +1044,64 @@ const er = (t) => {
1044
1044
  config: t,
1045
1045
  request: x
1046
1046
  };
1047
- Zt(function(v) {
1048
- r(v), w();
1049
- }, function(v) {
1050
- s(v), w();
1047
+ er(function(j) {
1048
+ r(j), w();
1049
+ }, function(j) {
1050
+ s(j), w();
1051
1051
  }, _), x = null;
1052
1052
  }
1053
1053
  "onloadend" in x ? x.onloadend = C : x.onreadystatechange = function() {
1054
1054
  !x || x.readyState !== 4 || x.status === 0 && !(x.responseURL && x.responseURL.indexOf("file:") === 0) || setTimeout(C);
1055
1055
  }, x.onabort = function() {
1056
- x && (s(new D("Request aborted", D.ECONNABORTED, t, x)), x = null);
1056
+ x && (s(new N("Request aborted", N.ECONNABORTED, t, x)), x = null);
1057
1057
  }, x.onerror = function(y) {
1058
- const _ = y && y.message ? y.message : "Network Error", g = new D(_, D.ERR_NETWORK, t, x);
1058
+ const _ = y && y.message ? y.message : "Network Error", g = new N(_, N.ERR_NETWORK, t, x);
1059
1059
  g.event = y || null, s(g), x = null;
1060
1060
  }, x.ontimeout = function() {
1061
1061
  let y = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
1062
- const _ = i.transitional || Jt;
1063
- i.timeoutErrorMessage && (y = i.timeoutErrorMessage), s(new D(
1062
+ const _ = i.transitional || Xt;
1063
+ i.timeoutErrorMessage && (y = i.timeoutErrorMessage), s(new N(
1064
1064
  y,
1065
- _.clarifyTimeoutError ? D.ETIMEDOUT : D.ECONNABORTED,
1065
+ _.clarifyTimeoutError ? N.ETIMEDOUT : N.ECONNABORTED,
1066
1066
  t,
1067
1067
  x
1068
1068
  )), x = null;
1069
- }, o === void 0 && a.setContentType(null), "setRequestHeader" in x && f.forEach(a.toJSON(), function(y, _) {
1069
+ }, a === void 0 && o.setContentType(null), "setRequestHeader" in x && f.forEach(o.toJSON(), function(y, _) {
1070
1070
  x.setRequestHeader(_, y);
1071
- }), f.isUndefined(i.withCredentials) || (x.withCredentials = !!i.withCredentials), c && c !== "json" && (x.responseType = i.responseType), u && ([P, p] = Le(u, !0), x.addEventListener("progress", P)), h && x.upload && ([m, O] = Le(h), x.upload.addEventListener("progress", m), x.upload.addEventListener("loadend", O)), (i.cancelToken || i.signal) && (d = (A) => {
1072
- x && (s(!A || A.type ? new je(null, t, x) : A), x.abort(), x = null);
1071
+ }), f.isUndefined(i.withCredentials) || (x.withCredentials = !!i.withCredentials), c && c !== "json" && (x.responseType = i.responseType), u && ([P, p] = qe(u, !0), x.addEventListener("progress", P)), h && x.upload && ([m, O] = qe(h), x.upload.addEventListener("progress", m), x.upload.addEventListener("loadend", O)), (i.cancelToken || i.signal) && (d = (A) => {
1072
+ x && (s(!A || A.type ? new ve(null, t, x) : A), x.abort(), x = null);
1073
1073
  }, i.cancelToken && i.cancelToken.subscribe(d), i.signal && (i.signal.aborted ? d() : i.signal.addEventListener("abort", d)));
1074
- const T = vn(i.url);
1074
+ const T = kn(i.url);
1075
1075
  if (T && ee.protocols.indexOf(T) === -1) {
1076
- s(new D("Unsupported protocol " + T + ":", D.ERR_BAD_REQUEST, t));
1076
+ s(new N("Unsupported protocol " + T + ":", N.ERR_BAD_REQUEST, t));
1077
1077
  return;
1078
1078
  }
1079
- x.send(o || null);
1079
+ x.send(a || null);
1080
1080
  });
1081
- }, On = (t, e) => {
1081
+ }, An = (t, e) => {
1082
1082
  const { length: r } = t = t ? t.filter(Boolean) : [];
1083
1083
  if (e || r) {
1084
1084
  let s = new AbortController(), i;
1085
- const o = function(u) {
1085
+ const a = function(u) {
1086
1086
  if (!i) {
1087
1087
  i = !0, c();
1088
1088
  const d = u instanceof Error ? u : this.reason;
1089
- s.abort(d instanceof D ? d : new je(d instanceof Error ? d.message : d));
1089
+ s.abort(d instanceof N ? d : new ve(d instanceof Error ? d.message : d));
1090
1090
  }
1091
1091
  };
1092
- let a = e && setTimeout(() => {
1093
- a = null, o(new D(`timeout ${e} of ms exceeded`, D.ETIMEDOUT));
1092
+ let o = e && setTimeout(() => {
1093
+ o = null, a(new N(`timeout ${e} of ms exceeded`, N.ETIMEDOUT));
1094
1094
  }, e);
1095
1095
  const c = () => {
1096
- t && (a && clearTimeout(a), a = null, t.forEach((u) => {
1097
- u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1096
+ t && (o && clearTimeout(o), o = null, t.forEach((u) => {
1097
+ u.unsubscribe ? u.unsubscribe(a) : u.removeEventListener("abort", a);
1098
1098
  }), t = null);
1099
1099
  };
1100
- t.forEach((u) => u.addEventListener("abort", o));
1100
+ t.forEach((u) => u.addEventListener("abort", a));
1101
1101
  const { signal: h } = s;
1102
1102
  return h.unsubscribe = () => f.asap(c), h;
1103
1103
  }
1104
- }, zn = function* (t, e) {
1104
+ }, _n = function* (t, e) {
1105
1105
  let r = t.byteLength;
1106
1106
  if (r < e) {
1107
1107
  yield t;
@@ -1110,10 +1110,10 @@ const er = (t) => {
1110
1110
  let s = 0, i;
1111
1111
  for (; s < r; )
1112
1112
  i = s + e, yield t.slice(s, i), s = i;
1113
- }, An = async function* (t, e) {
1114
- for await (const r of _n(t))
1115
- yield* zn(r, e);
1116
- }, _n = async function* (t) {
1113
+ }, Un = async function* (t, e) {
1114
+ for await (const r of Dn(t))
1115
+ yield* _n(r, e);
1116
+ }, Dn = async function* (t) {
1117
1117
  if (t[Symbol.asyncIterator]) {
1118
1118
  yield* t;
1119
1119
  return;
@@ -1129,10 +1129,10 @@ const er = (t) => {
1129
1129
  } finally {
1130
1130
  await e.cancel();
1131
1131
  }
1132
- }, vt = (t, e, r, s) => {
1133
- const i = An(t, e);
1134
- let o = 0, a, c = (h) => {
1135
- a || (a = !0, s && s(h));
1132
+ }, kt = (t, e, r, s) => {
1133
+ const i = Un(t, e);
1134
+ let a = 0, o, c = (h) => {
1135
+ o || (o = !0, s && s(h));
1136
1136
  };
1137
1137
  return new ReadableStream({
1138
1138
  async pull(h) {
@@ -1144,7 +1144,7 @@ const er = (t) => {
1144
1144
  }
1145
1145
  let m = d.byteLength;
1146
1146
  if (r) {
1147
- let P = o += m;
1147
+ let P = a += m;
1148
1148
  r(P);
1149
1149
  }
1150
1150
  h.enqueue(new Uint8Array(d));
@@ -1158,13 +1158,13 @@ const er = (t) => {
1158
1158
  }, {
1159
1159
  highWaterMark: 2
1160
1160
  });
1161
- }, St = 64 * 1024, { isFunction: Ae } = f, Un = (({ Request: t, Response: e }) => ({
1161
+ }, Et = 64 * 1024, { isFunction: Ae } = f, $n = (({ Request: t, Response: e }) => ({
1162
1162
  Request: t,
1163
1163
  Response: e
1164
1164
  }))(f.global), {
1165
- ReadableStream: kt,
1166
- TextEncoder: Et
1167
- } = f.global, Ct = (t, ...e) => {
1165
+ ReadableStream: Ct,
1166
+ TextEncoder: Tt
1167
+ } = f.global, Rt = (t, ...e) => {
1168
1168
  try {
1169
1169
  return !!t(...e);
1170
1170
  } catch {
@@ -1173,21 +1173,21 @@ const er = (t) => {
1173
1173
  }, Nn = (t) => {
1174
1174
  t = f.merge.call({
1175
1175
  skipUndefined: !0
1176
- }, Un, t);
1177
- const { fetch: e, Request: r, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function", o = Ae(r), a = Ae(s);
1176
+ }, $n, t);
1177
+ const { fetch: e, Request: r, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function", a = Ae(r), o = Ae(s);
1178
1178
  if (!i)
1179
1179
  return !1;
1180
- const c = i && Ae(kt), h = i && (typeof Et == "function" ? /* @__PURE__ */ ((p) => (w) => p.encode(w))(new Et()) : async (p) => new Uint8Array(await new r(p).arrayBuffer())), u = o && c && Ct(() => {
1180
+ const c = i && Ae(Ct), h = i && (typeof Tt == "function" ? /* @__PURE__ */ ((p) => (w) => p.encode(w))(new Tt()) : async (p) => new Uint8Array(await new r(p).arrayBuffer())), u = a && c && Rt(() => {
1181
1181
  let p = !1;
1182
1182
  const w = new r(ee.origin, {
1183
- body: new kt(),
1183
+ body: new Ct(),
1184
1184
  method: "POST",
1185
1185
  get duplex() {
1186
1186
  return p = !0, "half";
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
1189
  return p && !w;
1190
- }), d = a && c && Ct(() => f.isReadableStream(new s("").body)), m = {
1190
+ }), d = o && c && Rt(() => f.isReadableStream(new s("").body)), m = {
1191
1191
  stream: d && ((p) => p.body)
1192
1192
  };
1193
1193
  i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
@@ -1195,7 +1195,7 @@ const er = (t) => {
1195
1195
  let C = w && w[p];
1196
1196
  if (C)
1197
1197
  return C.call(w);
1198
- throw new D(`Response type '${p}' is not supported`, D.ERR_NOT_SUPPORT, x);
1198
+ throw new N(`Response type '${p}' is not supported`, N.ERR_NOT_SUPPORT, x);
1199
1199
  });
1200
1200
  });
1201
1201
  const P = async (p) => {
@@ -1226,13 +1226,13 @@ const er = (t) => {
1226
1226
  timeout: y,
1227
1227
  onDownloadProgress: _,
1228
1228
  onUploadProgress: g,
1229
- responseType: v,
1229
+ responseType: j,
1230
1230
  headers: F,
1231
1231
  withCredentials: U = "same-origin",
1232
1232
  fetchOptions: M
1233
- } = er(p), X = e || fetch;
1234
- v = v ? (v + "").toLowerCase() : "text";
1235
- let E = On([T, A && A.toAbortSignal()], y), V = null;
1233
+ } = rr(p), X = e || fetch;
1234
+ j = j ? (j + "").toLowerCase() : "text";
1235
+ let E = An([T, A && A.toAbortSignal()], y), V = null;
1236
1236
  const z = E && E.unsubscribe && (() => {
1237
1237
  E.unsubscribe();
1238
1238
  });
@@ -1245,15 +1245,15 @@ const er = (t) => {
1245
1245
  duplex: "half"
1246
1246
  }), b;
1247
1247
  if (f.isFormData(C) && (b = l.headers.get("content-type")) && F.setContentType(b), l.body) {
1248
- const [S, j] = bt(
1248
+ const [S, v] = vt(
1249
1249
  I,
1250
- Le(wt(g))
1250
+ qe(jt(g))
1251
1251
  );
1252
- C = vt(l.body, St, S, j);
1252
+ C = kt(l.body, Et, S, v);
1253
1253
  }
1254
1254
  }
1255
1255
  f.isString(U) || (U = U ? "include" : "omit");
1256
- const W = o && "credentials" in r.prototype, Z = {
1256
+ const W = a && "credentials" in r.prototype, Z = {
1257
1257
  ...M,
1258
1258
  signal: E,
1259
1259
  method: x.toUpperCase(),
@@ -1262,29 +1262,29 @@ const er = (t) => {
1262
1262
  duplex: "half",
1263
1263
  credentials: W ? U : void 0
1264
1264
  };
1265
- V = o && new r(w, Z);
1266
- let B = await (o ? X(V, M) : X(w, Z));
1267
- const K = d && (v === "stream" || v === "response");
1265
+ V = a && new r(w, Z);
1266
+ let B = await (a ? X(V, M) : X(w, Z));
1267
+ const K = d && (j === "stream" || j === "response");
1268
1268
  if (d && (_ || K && z)) {
1269
1269
  const l = {};
1270
1270
  ["status", "statusText", "headers"].forEach((G) => {
1271
1271
  l[G] = B[G];
1272
1272
  });
1273
- const b = f.toFiniteNumber(B.headers.get("content-length")), [S, j] = _ && bt(
1273
+ const b = f.toFiniteNumber(B.headers.get("content-length")), [S, v] = _ && vt(
1274
1274
  b,
1275
- Le(wt(_), !0)
1275
+ qe(jt(_), !0)
1276
1276
  ) || [];
1277
1277
  B = new s(
1278
- vt(B.body, St, S, () => {
1279
- j && j(), z && z();
1278
+ kt(B.body, Et, S, () => {
1279
+ v && v(), z && z();
1280
1280
  }),
1281
1281
  l
1282
1282
  );
1283
1283
  }
1284
- v = v || "text";
1285
- let L = await m[f.findKey(m, v) || "text"](B, p);
1284
+ j = j || "text";
1285
+ let L = await m[f.findKey(m, j) || "text"](B, p);
1286
1286
  return !K && z && z(), await new Promise((l, b) => {
1287
- Zt(l, b, {
1287
+ er(l, b, {
1288
1288
  data: L,
1289
1289
  headers: ne.from(B.headers),
1290
1290
  status: B.status,
@@ -1295,34 +1295,34 @@ const er = (t) => {
1295
1295
  });
1296
1296
  } catch (W) {
1297
1297
  throw z && z(), W && W.name === "TypeError" && /Load failed|fetch/i.test(W.message) ? Object.assign(
1298
- new D("Network Error", D.ERR_NETWORK, p, V),
1298
+ new N("Network Error", N.ERR_NETWORK, p, V),
1299
1299
  {
1300
1300
  cause: W.cause || W
1301
1301
  }
1302
- ) : D.from(W, W && W.code, p, V);
1302
+ ) : N.from(W, W && W.code, p, V);
1303
1303
  }
1304
1304
  };
1305
- }, $n = /* @__PURE__ */ new Map(), tr = (t) => {
1305
+ }, Fn = /* @__PURE__ */ new Map(), nr = (t) => {
1306
1306
  let e = t ? t.env : {};
1307
- const { fetch: r, Request: s, Response: i } = e, o = [
1307
+ const { fetch: r, Request: s, Response: i } = e, a = [
1308
1308
  s,
1309
1309
  i,
1310
1310
  r
1311
1311
  ];
1312
- let a = o.length, c = a, h, u, d = $n;
1312
+ let o = a.length, c = o, h, u, d = Fn;
1313
1313
  for (; c--; )
1314
- h = o[c], u = d.get(h), u === void 0 && d.set(h, u = c ? /* @__PURE__ */ new Map() : Nn(e)), d = u;
1314
+ h = a[c], u = d.get(h), u === void 0 && d.set(h, u = c ? /* @__PURE__ */ new Map() : Nn(e)), d = u;
1315
1315
  return u;
1316
1316
  };
1317
- tr();
1318
- const tt = {
1319
- http: Qr,
1320
- xhr: In,
1317
+ nr();
1318
+ const rt = {
1319
+ http: tn,
1320
+ xhr: zn,
1321
1321
  fetch: {
1322
- get: tr
1322
+ get: nr
1323
1323
  }
1324
1324
  };
1325
- f.forEach(tt, (t, e) => {
1325
+ f.forEach(rt, (t, e) => {
1326
1326
  if (t) {
1327
1327
  try {
1328
1328
  Object.defineProperty(t, "name", { value: e });
@@ -1331,113 +1331,113 @@ f.forEach(tt, (t, e) => {
1331
1331
  Object.defineProperty(t, "adapterName", { value: e });
1332
1332
  }
1333
1333
  });
1334
- const Tt = (t) => `- ${t}`, Dn = (t) => f.isFunction(t) || t === null || t === !1, rr = {
1334
+ const Pt = (t) => `- ${t}`, Ln = (t) => f.isFunction(t) || t === null || t === !1, sr = {
1335
1335
  getAdapter: (t, e) => {
1336
1336
  t = f.isArray(t) ? t : [t];
1337
1337
  const { length: r } = t;
1338
1338
  let s, i;
1339
- const o = {};
1340
- for (let a = 0; a < r; a++) {
1341
- s = t[a];
1339
+ const a = {};
1340
+ for (let o = 0; o < r; o++) {
1341
+ s = t[o];
1342
1342
  let c;
1343
- if (i = s, !Dn(s) && (i = tt[(c = String(s)).toLowerCase()], i === void 0))
1344
- throw new D(`Unknown adapter '${c}'`);
1343
+ if (i = s, !Ln(s) && (i = rt[(c = String(s)).toLowerCase()], i === void 0))
1344
+ throw new N(`Unknown adapter '${c}'`);
1345
1345
  if (i && (f.isFunction(i) || (i = i.get(e))))
1346
1346
  break;
1347
- o[c || "#" + a] = i;
1347
+ a[c || "#" + o] = i;
1348
1348
  }
1349
1349
  if (!i) {
1350
- const a = Object.entries(o).map(
1350
+ const o = Object.entries(a).map(
1351
1351
  ([h, u]) => `adapter ${h} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
- let c = r ? a.length > 1 ? `since :
1354
- ` + a.map(Tt).join(`
1355
- `) : " " + Tt(a[0]) : "as no adapter specified";
1356
- throw new D(
1353
+ let c = r ? o.length > 1 ? `since :
1354
+ ` + o.map(Pt).join(`
1355
+ `) : " " + Pt(o[0]) : "as no adapter specified";
1356
+ throw new N(
1357
1357
  "There is no suitable adapter to dispatch the request " + c,
1358
1358
  "ERR_NOT_SUPPORT"
1359
1359
  );
1360
1360
  }
1361
1361
  return i;
1362
1362
  },
1363
- adapters: tt
1363
+ adapters: rt
1364
1364
  };
1365
- function Je(t) {
1365
+ function Ge(t) {
1366
1366
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1367
- throw new je(null, t);
1367
+ throw new ve(null, t);
1368
1368
  }
1369
- function Rt(t) {
1370
- return Je(t), t.headers = ne.from(t.headers), t.data = Ke.call(
1369
+ function It(t) {
1370
+ return Ge(t), t.headers = ne.from(t.headers), t.data = Je.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), rr.getAdapter(t.adapter || Oe.adapter, t)(t).then(function(s) {
1374
- return Je(t), s.data = Ke.call(
1373
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), sr.getAdapter(t.adapter || Oe.adapter, t)(t).then(function(s) {
1374
+ return Ge(t), s.data = Je.call(
1375
1375
  t,
1376
1376
  t.transformResponse,
1377
1377
  s
1378
1378
  ), s.headers = ne.from(s.headers), s;
1379
1379
  }, function(s) {
1380
- return Xt(s) || (Je(t), s && s.response && (s.response.data = Ke.call(
1380
+ return Qt(s) || (Ge(t), s && s.response && (s.response.data = Je.call(
1381
1381
  t,
1382
1382
  t.transformResponse,
1383
1383
  s.response
1384
1384
  ), s.response.headers = ne.from(s.response.headers))), Promise.reject(s);
1385
1385
  });
1386
1386
  }
1387
- const nr = "1.12.2", He = {};
1387
+ const ir = "1.12.2", Ve = {};
1388
1388
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1389
- He[t] = function(s) {
1389
+ Ve[t] = function(s) {
1390
1390
  return typeof s === t || "a" + (e < 1 ? "n " : " ") + t;
1391
1391
  };
1392
1392
  });
1393
- const Pt = {};
1394
- He.transitional = function(e, r, s) {
1395
- function i(o, a) {
1396
- return "[Axios v" + nr + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
1393
+ const Ot = {};
1394
+ Ve.transitional = function(e, r, s) {
1395
+ function i(a, o) {
1396
+ return "[Axios v" + ir + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
1397
1397
  }
1398
- return (o, a, c) => {
1398
+ return (a, o, c) => {
1399
1399
  if (e === !1)
1400
- throw new D(
1401
- i(a, " has been removed" + (r ? " in " + r : "")),
1402
- D.ERR_DEPRECATED
1400
+ throw new N(
1401
+ i(o, " has been removed" + (r ? " in " + r : "")),
1402
+ N.ERR_DEPRECATED
1403
1403
  );
1404
- return r && !Pt[a] && (Pt[a] = !0, console.warn(
1404
+ return r && !Ot[o] && (Ot[o] = !0, console.warn(
1405
1405
  i(
1406
- a,
1406
+ o,
1407
1407
  " has been deprecated since v" + r + " and will be removed in the near future"
1408
1408
  )
1409
- )), e ? e(o, a, c) : !0;
1409
+ )), e ? e(a, o, c) : !0;
1410
1410
  };
1411
1411
  };
1412
- He.spelling = function(e) {
1412
+ Ve.spelling = function(e) {
1413
1413
  return (r, s) => (console.warn(`${s} is likely a misspelling of ${e}`), !0);
1414
1414
  };
1415
- function Fn(t, e, r) {
1415
+ function qn(t, e, r) {
1416
1416
  if (typeof t != "object")
1417
- throw new D("options must be an object", D.ERR_BAD_OPTION_VALUE);
1417
+ throw new N("options must be an object", N.ERR_BAD_OPTION_VALUE);
1418
1418
  const s = Object.keys(t);
1419
1419
  let i = s.length;
1420
1420
  for (; i-- > 0; ) {
1421
- const o = s[i], a = e[o];
1422
- if (a) {
1423
- const c = t[o], h = c === void 0 || a(c, o, t);
1421
+ const a = s[i], o = e[a];
1422
+ if (o) {
1423
+ const c = t[a], h = c === void 0 || o(c, a, t);
1424
1424
  if (h !== !0)
1425
- throw new D("option " + o + " must be " + h, D.ERR_BAD_OPTION_VALUE);
1425
+ throw new N("option " + a + " must be " + h, N.ERR_BAD_OPTION_VALUE);
1426
1426
  continue;
1427
1427
  }
1428
1428
  if (r !== !0)
1429
- throw new D("Unknown option " + o, D.ERR_BAD_OPTION);
1429
+ throw new N("Unknown option " + a, N.ERR_BAD_OPTION);
1430
1430
  }
1431
1431
  }
1432
- const $e = {
1433
- assertOptions: Fn,
1434
- validators: He
1435
- }, ce = $e.validators;
1432
+ const Ne = {
1433
+ assertOptions: qn,
1434
+ validators: Ve
1435
+ }, ce = Ne.validators;
1436
1436
  let xe = class {
1437
1437
  constructor(e) {
1438
1438
  this.defaults = e || {}, this.interceptors = {
1439
- request: new gt(),
1440
- response: new gt()
1439
+ request: new bt(),
1440
+ response: new bt()
1441
1441
  };
1442
1442
  }
1443
1443
  /**
@@ -1455,10 +1455,10 @@ let xe = class {
1455
1455
  if (s instanceof Error) {
1456
1456
  let i = {};
1457
1457
  Error.captureStackTrace ? Error.captureStackTrace(i) : i = new Error();
1458
- const o = i.stack ? i.stack.replace(/^.+\n/, "") : "";
1458
+ const a = i.stack ? i.stack.replace(/^.+\n/, "") : "";
1459
1459
  try {
1460
- s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
1461
- ` + o) : s.stack = o;
1460
+ s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
1461
+ ` + a) : s.stack = a;
1462
1462
  } catch {
1463
1463
  }
1464
1464
  }
@@ -1467,30 +1467,30 @@ let xe = class {
1467
1467
  }
1468
1468
  _request(e, r) {
1469
1469
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = he(this.defaults, r);
1470
- const { transitional: s, paramsSerializer: i, headers: o } = r;
1471
- s !== void 0 && $e.assertOptions(s, {
1470
+ const { transitional: s, paramsSerializer: i, headers: a } = r;
1471
+ s !== void 0 && Ne.assertOptions(s, {
1472
1472
  silentJSONParsing: ce.transitional(ce.boolean),
1473
1473
  forcedJSONParsing: ce.transitional(ce.boolean),
1474
1474
  clarifyTimeoutError: ce.transitional(ce.boolean)
1475
1475
  }, !1), i != null && (f.isFunction(i) ? r.paramsSerializer = {
1476
1476
  serialize: i
1477
- } : $e.assertOptions(i, {
1477
+ } : Ne.assertOptions(i, {
1478
1478
  encode: ce.function,
1479
1479
  serialize: ce.function
1480
- }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), $e.assertOptions(r, {
1480
+ }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Ne.assertOptions(r, {
1481
1481
  baseUrl: ce.spelling("baseURL"),
1482
1482
  withXsrfToken: ce.spelling("withXSRFToken")
1483
1483
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1484
- let a = o && f.merge(
1485
- o.common,
1486
- o[r.method]
1484
+ let o = a && f.merge(
1485
+ a.common,
1486
+ a[r.method]
1487
1487
  );
1488
- o && f.forEach(
1488
+ a && f.forEach(
1489
1489
  ["delete", "get", "head", "post", "put", "patch", "common"],
1490
1490
  (p) => {
1491
- delete o[p];
1491
+ delete a[p];
1492
1492
  }
1493
- ), r.headers = ne.concat(a, o);
1493
+ ), r.headers = ne.concat(o, a);
1494
1494
  const c = [];
1495
1495
  let h = !0;
1496
1496
  this.interceptors.request.forEach(function(w) {
@@ -1502,7 +1502,7 @@ let xe = class {
1502
1502
  });
1503
1503
  let d, m = 0, P;
1504
1504
  if (!h) {
1505
- const p = [Rt.bind(this), void 0];
1505
+ const p = [It.bind(this), void 0];
1506
1506
  for (p.unshift(...c), p.push(...u), P = p.length, d = Promise.resolve(r); m < P; )
1507
1507
  d = d.then(p[m++], p[m++]);
1508
1508
  return d;
@@ -1519,7 +1519,7 @@ let xe = class {
1519
1519
  }
1520
1520
  }
1521
1521
  try {
1522
- d = Rt.call(this, O);
1522
+ d = It.call(this, O);
1523
1523
  } catch (p) {
1524
1524
  return Promise.reject(p);
1525
1525
  }
@@ -1529,8 +1529,8 @@ let xe = class {
1529
1529
  }
1530
1530
  getUri(e) {
1531
1531
  e = he(this.defaults, e);
1532
- const r = Qt(e.baseURL, e.url, e.allowAbsoluteUrls);
1533
- return Kt(r, e.params, e.paramsSerializer);
1532
+ const r = tr(e.baseURL, e.url, e.allowAbsoluteUrls);
1533
+ return Gt(r, e.params, e.paramsSerializer);
1534
1534
  }
1535
1535
  };
1536
1536
  f.forEach(["delete", "get", "head", "options"], function(e) {
@@ -1544,44 +1544,44 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
1544
1544
  });
1545
1545
  f.forEach(["post", "put", "patch"], function(e) {
1546
1546
  function r(s) {
1547
- return function(o, a, c) {
1547
+ return function(a, o, c) {
1548
1548
  return this.request(he(c || {}, {
1549
1549
  method: e,
1550
1550
  headers: s ? {
1551
1551
  "Content-Type": "multipart/form-data"
1552
1552
  } : {},
1553
- url: o,
1554
- data: a
1553
+ url: a,
1554
+ data: o
1555
1555
  }));
1556
1556
  };
1557
1557
  }
1558
1558
  xe.prototype[e] = r(), xe.prototype[e + "Form"] = r(!0);
1559
1559
  });
1560
- let Ln = class sr {
1560
+ let Mn = class or {
1561
1561
  constructor(e) {
1562
1562
  if (typeof e != "function")
1563
1563
  throw new TypeError("executor must be a function.");
1564
1564
  let r;
1565
- this.promise = new Promise(function(o) {
1566
- r = o;
1565
+ this.promise = new Promise(function(a) {
1566
+ r = a;
1567
1567
  });
1568
1568
  const s = this;
1569
1569
  this.promise.then((i) => {
1570
1570
  if (!s._listeners) return;
1571
- let o = s._listeners.length;
1572
- for (; o-- > 0; )
1573
- s._listeners[o](i);
1571
+ let a = s._listeners.length;
1572
+ for (; a-- > 0; )
1573
+ s._listeners[a](i);
1574
1574
  s._listeners = null;
1575
1575
  }), this.promise.then = (i) => {
1576
- let o;
1577
- const a = new Promise((c) => {
1578
- s.subscribe(c), o = c;
1576
+ let a;
1577
+ const o = new Promise((c) => {
1578
+ s.subscribe(c), a = c;
1579
1579
  }).then(i);
1580
- return a.cancel = function() {
1581
- s.unsubscribe(o);
1582
- }, a;
1583
- }, e(function(o, a, c) {
1584
- s.reason || (s.reason = new je(o, a, c), r(s.reason));
1580
+ return o.cancel = function() {
1581
+ s.unsubscribe(a);
1582
+ }, o;
1583
+ }, e(function(a, o, c) {
1584
+ s.reason || (s.reason = new ve(a, o, c), r(s.reason));
1585
1585
  });
1586
1586
  }
1587
1587
  /**
@@ -1623,22 +1623,22 @@ let Ln = class sr {
1623
1623
  static source() {
1624
1624
  let e;
1625
1625
  return {
1626
- token: new sr(function(i) {
1626
+ token: new or(function(i) {
1627
1627
  e = i;
1628
1628
  }),
1629
1629
  cancel: e
1630
1630
  };
1631
1631
  }
1632
1632
  };
1633
- function qn(t) {
1633
+ function Wn(t) {
1634
1634
  return function(r) {
1635
1635
  return t.apply(null, r);
1636
1636
  };
1637
1637
  }
1638
- function Mn(t) {
1638
+ function Bn(t) {
1639
1639
  return f.isObject(t) && t.isAxiosError === !0;
1640
1640
  }
1641
- const rt = {
1641
+ const nt = {
1642
1642
  Continue: 100,
1643
1643
  SwitchingProtocols: 101,
1644
1644
  Processing: 102,
@@ -1703,54 +1703,54 @@ const rt = {
1703
1703
  NotExtended: 510,
1704
1704
  NetworkAuthenticationRequired: 511
1705
1705
  };
1706
- Object.entries(rt).forEach(([t, e]) => {
1707
- rt[e] = t;
1706
+ Object.entries(nt).forEach(([t, e]) => {
1707
+ nt[e] = t;
1708
1708
  });
1709
- function ir(t) {
1709
+ function ar(t) {
1710
1710
  const e = new xe(t), r = Nt(xe.prototype.request, e);
1711
1711
  return f.extend(r, xe.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
1712
- return ir(he(t, i));
1712
+ return ar(he(t, i));
1713
1713
  }, r;
1714
1714
  }
1715
- const J = ir(Oe);
1715
+ const J = ar(Oe);
1716
1716
  J.Axios = xe;
1717
- J.CanceledError = je;
1718
- J.CancelToken = Ln;
1719
- J.isCancel = Xt;
1720
- J.VERSION = nr;
1721
- J.toFormData = Be;
1722
- J.AxiosError = D;
1717
+ J.CanceledError = ve;
1718
+ J.CancelToken = Mn;
1719
+ J.isCancel = Qt;
1720
+ J.VERSION = ir;
1721
+ J.toFormData = He;
1722
+ J.AxiosError = N;
1723
1723
  J.Cancel = J.CanceledError;
1724
1724
  J.all = function(e) {
1725
1725
  return Promise.all(e);
1726
1726
  };
1727
- J.spread = qn;
1728
- J.isAxiosError = Mn;
1727
+ J.spread = Wn;
1728
+ J.isAxiosError = Bn;
1729
1729
  J.mergeConfig = he;
1730
1730
  J.AxiosHeaders = ne;
1731
- J.formToJSON = (t) => Gt(f.isHTMLForm(t) ? new FormData(t) : t);
1732
- J.getAdapter = rr.getAdapter;
1733
- J.HttpStatusCode = rt;
1731
+ J.formToJSON = (t) => Zt(f.isHTMLForm(t) ? new FormData(t) : t);
1732
+ J.getAdapter = sr.getAdapter;
1733
+ J.HttpStatusCode = nt;
1734
1734
  J.default = J;
1735
1735
  const {
1736
- Axios: Js,
1737
- AxiosError: Gs,
1738
- CanceledError: Xs,
1739
- isCancel: Zs,
1740
- CancelToken: Qs,
1741
- VERSION: ei,
1742
- all: ti,
1743
- Cancel: ri,
1744
- isAxiosError: ni,
1745
- spread: si,
1746
- toFormData: ii,
1747
- AxiosHeaders: ai,
1748
- HttpStatusCode: oi,
1749
- formToJSON: li,
1750
- getAdapter: ci,
1751
- mergeConfig: di
1736
+ Axios: Qs,
1737
+ AxiosError: ei,
1738
+ CanceledError: ti,
1739
+ isCancel: ri,
1740
+ CancelToken: ni,
1741
+ VERSION: si,
1742
+ all: ii,
1743
+ Cancel: oi,
1744
+ isAxiosError: ai,
1745
+ spread: li,
1746
+ toFormData: ci,
1747
+ AxiosHeaders: di,
1748
+ HttpStatusCode: ui,
1749
+ formToJSON: pi,
1750
+ getAdapter: fi,
1751
+ mergeConfig: xi
1752
1752
  } = J;
1753
- class ui {
1753
+ class hi {
1754
1754
  baseUrl;
1755
1755
  apiKey;
1756
1756
  appId;
@@ -1781,25 +1781,25 @@ class ui {
1781
1781
  * @param data Optional request body
1782
1782
  * @param extraHeaders Optional custom headers
1783
1783
  */
1784
- async request(e, r, s, i = {}, o = !1) {
1784
+ async request(e, r, s, i = {}, a = !1) {
1785
1785
  try {
1786
- const a = {
1786
+ const o = {
1787
1787
  ...this.appId ? { appId: this.appId } : {},
1788
1788
  ...s || {}
1789
1789
  };
1790
1790
  return (await this.client.request({
1791
1791
  url: r,
1792
1792
  method: e,
1793
- data: a,
1793
+ data: o,
1794
1794
  headers: i,
1795
- withCredentials: o
1795
+ withCredentials: a
1796
1796
  // 👈 override axios default
1797
1797
  })).data;
1798
- } catch (a) {
1799
- throw J.isAxiosError(a) ? {
1800
- message: a.response?.data?.message || a.message || "Request failed",
1801
- status: a.response?.status ?? 0
1802
- } : { message: a.message || "Unexpected error occurred" };
1798
+ } catch (o) {
1799
+ throw J.isAxiosError(o) ? {
1800
+ message: o.response?.data?.message || o.message || "Request failed",
1801
+ status: o.response?.status ?? 0
1802
+ } : { message: o.message || "Unexpected error occurred" };
1803
1803
  }
1804
1804
  }
1805
1805
  // ================= USERS =================
@@ -2045,7 +2045,7 @@ class ui {
2045
2045
  throw new Error("searchUserDataByKeys: 'userId' is required");
2046
2046
  const i = new URLSearchParams(
2047
2047
  Object.entries(s).reduce(
2048
- (o, [a, c]) => (c != null && (o[a] = String(c)), o),
2048
+ (a, [o, c]) => (c != null && (a[o] = String(c)), a),
2049
2049
  {}
2050
2050
  )
2051
2051
  ).toString();
@@ -2259,24 +2259,24 @@ var _e = { exports: {} }, Ee = {};
2259
2259
  * This source code is licensed under the MIT license found in the
2260
2260
  * LICENSE file in the root directory of this source tree.
2261
2261
  */
2262
- var It;
2263
- function Wn() {
2264
- if (It) return Ee;
2265
- It = 1;
2262
+ var zt;
2263
+ function Hn() {
2264
+ if (zt) return Ee;
2265
+ zt = 1;
2266
2266
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
2267
- function r(s, i, o) {
2268
- var a = null;
2269
- if (o !== void 0 && (a = "" + o), i.key !== void 0 && (a = "" + i.key), "key" in i) {
2270
- o = {};
2267
+ function r(s, i, a) {
2268
+ var o = null;
2269
+ if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + i.key), "key" in i) {
2270
+ a = {};
2271
2271
  for (var c in i)
2272
- c !== "key" && (o[c] = i[c]);
2273
- } else o = i;
2274
- return i = o.ref, {
2272
+ c !== "key" && (a[c] = i[c]);
2273
+ } else a = i;
2274
+ return i = a.ref, {
2275
2275
  $$typeof: t,
2276
2276
  type: s,
2277
- key: a,
2277
+ key: o,
2278
2278
  ref: i !== void 0 ? i : null,
2279
- props: o
2279
+ props: a
2280
2280
  };
2281
2281
  }
2282
2282
  return Ee.Fragment = e, Ee.jsx = r, Ee.jsxs = r, Ee;
@@ -2291,9 +2291,9 @@ var Ce = {};
2291
2291
  * This source code is licensed under the MIT license found in the
2292
2292
  * LICENSE file in the root directory of this source tree.
2293
2293
  */
2294
- var Ot;
2295
- function Bn() {
2296
- return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && (function() {
2294
+ var At;
2295
+ function Vn() {
2296
+ return At || (At = 1, process.env.NODE_ENV !== "production" && (function() {
2297
2297
  function t(l) {
2298
2298
  if (l == null) return null;
2299
2299
  if (typeof l == "function")
@@ -2308,7 +2308,7 @@ function Bn() {
2308
2308
  return "StrictMode";
2309
2309
  case g:
2310
2310
  return "Suspense";
2311
- case v:
2311
+ case j:
2312
2312
  return "SuspenseList";
2313
2313
  case M:
2314
2314
  return "Activity";
@@ -2349,11 +2349,11 @@ function Bn() {
2349
2349
  }
2350
2350
  if (b) {
2351
2351
  b = console;
2352
- var S = b.error, j = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
2352
+ var S = b.error, v = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
2353
2353
  return S.call(
2354
2354
  b,
2355
2355
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2356
- j
2356
+ v
2357
2357
  ), e(l);
2358
2358
  }
2359
2359
  }
@@ -2372,10 +2372,10 @@ function Bn() {
2372
2372
  var l = E.A;
2373
2373
  return l === null ? null : l.getOwner();
2374
2374
  }
2375
- function o() {
2375
+ function a() {
2376
2376
  return Error("react-stack-top-frame");
2377
2377
  }
2378
- function a(l) {
2378
+ function o(l) {
2379
2379
  if (V.call(l, "key")) {
2380
2380
  var b = Object.getOwnPropertyDescriptor(l, "key").get;
2381
2381
  if (b && b.isReactWarning) return !1;
@@ -2400,14 +2400,14 @@ function Bn() {
2400
2400
  "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."
2401
2401
  )), l = this.props.ref, l !== void 0 ? l : null;
2402
2402
  }
2403
- function u(l, b, S, j, G, ue) {
2403
+ function u(l, b, S, v, G, ue) {
2404
2404
  var Y = S.ref;
2405
2405
  return l = {
2406
2406
  $$typeof: p,
2407
2407
  type: l,
2408
2408
  key: b,
2409
2409
  props: S,
2410
- _owner: j
2410
+ _owner: v
2411
2411
  }, (Y !== void 0 ? Y : null) !== null ? Object.defineProperty(l, "ref", {
2412
2412
  enumerable: !1,
2413
2413
  get: h
@@ -2433,13 +2433,13 @@ function Bn() {
2433
2433
  value: ue
2434
2434
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
2435
2435
  }
2436
- function d(l, b, S, j, G, ue) {
2436
+ function d(l, b, S, v, G, ue) {
2437
2437
  var Y = b.children;
2438
2438
  if (Y !== void 0)
2439
- if (j)
2439
+ if (v)
2440
2440
  if (z(Y)) {
2441
- for (j = 0; j < Y.length; j++)
2442
- m(Y[j]);
2441
+ for (v = 0; v < Y.length; v++)
2442
+ m(Y[v]);
2443
2443
  Object.freeze && Object.freeze(Y);
2444
2444
  } else
2445
2445
  console.error(
@@ -2448,26 +2448,26 @@ function Bn() {
2448
2448
  else m(Y);
2449
2449
  if (V.call(b, "key")) {
2450
2450
  Y = t(l);
2451
- var oe = Object.keys(b).filter(function(Ve) {
2452
- return Ve !== "key";
2451
+ var ae = Object.keys(b).filter(function(Ye) {
2452
+ return Ye !== "key";
2453
2453
  });
2454
- j = 0 < oe.length ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}", L[Y + j] || (oe = 0 < oe.length ? "{" + oe.join(": ..., ") + ": ...}" : "{}", console.error(
2454
+ v = 0 < ae.length ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}", L[Y + v] || (ae = 0 < ae.length ? "{" + ae.join(": ..., ") + ": ...}" : "{}", console.error(
2455
2455
  `A props object containing a "key" prop is being spread into JSX:
2456
2456
  let props = %s;
2457
2457
  <%s {...props} />
2458
2458
  React keys must be passed directly to JSX without using spread:
2459
2459
  let props = %s;
2460
2460
  <%s key={someKey} {...props} />`,
2461
- j,
2461
+ v,
2462
2462
  Y,
2463
- oe,
2463
+ ae,
2464
2464
  Y
2465
- ), L[Y + j] = !0);
2465
+ ), L[Y + v] = !0);
2466
2466
  }
2467
- if (Y = null, S !== void 0 && (r(S), Y = "" + S), a(b) && (r(b.key), Y = "" + b.key), "key" in b) {
2467
+ if (Y = null, S !== void 0 && (r(S), Y = "" + S), o(b) && (r(b.key), Y = "" + b.key), "key" in b) {
2468
2468
  S = {};
2469
- for (var ve in b)
2470
- ve !== "key" && (S[ve] = b[ve]);
2469
+ for (var je in b)
2470
+ je !== "key" && (S[je] = b[je]);
2471
2471
  } else S = b;
2472
2472
  return Y && c(
2473
2473
  S,
@@ -2487,7 +2487,7 @@ React keys must be passed directly to JSX without using spread:
2487
2487
  function P(l) {
2488
2488
  return typeof l == "object" && l !== null && l.$$typeof === p;
2489
2489
  }
2490
- var O = Te, p = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), y = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), E = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
2490
+ var O = Te, p = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), y = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), E = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
2491
2491
  return null;
2492
2492
  };
2493
2493
  O = {
@@ -2497,49 +2497,49 @@ React keys must be passed directly to JSX without using spread:
2497
2497
  };
2498
2498
  var W, Z = {}, B = O.react_stack_bottom_frame.bind(
2499
2499
  O,
2500
- o
2501
- )(), K = I(s(o)), L = {};
2500
+ a
2501
+ )(), K = I(s(a)), L = {};
2502
2502
  Ce.Fragment = x, Ce.jsx = function(l, b, S) {
2503
- var j = 1e4 > E.recentlyCreatedOwnerStacks++;
2503
+ var v = 1e4 > E.recentlyCreatedOwnerStacks++;
2504
2504
  return d(
2505
2505
  l,
2506
2506
  b,
2507
2507
  S,
2508
2508
  !1,
2509
- j ? Error("react-stack-top-frame") : B,
2510
- j ? I(s(l)) : K
2509
+ v ? Error("react-stack-top-frame") : B,
2510
+ v ? I(s(l)) : K
2511
2511
  );
2512
2512
  }, Ce.jsxs = function(l, b, S) {
2513
- var j = 1e4 > E.recentlyCreatedOwnerStacks++;
2513
+ var v = 1e4 > E.recentlyCreatedOwnerStacks++;
2514
2514
  return d(
2515
2515
  l,
2516
2516
  b,
2517
2517
  S,
2518
2518
  !0,
2519
- j ? Error("react-stack-top-frame") : B,
2520
- j ? I(s(l)) : K
2519
+ v ? Error("react-stack-top-frame") : B,
2520
+ v ? I(s(l)) : K
2521
2521
  );
2522
2522
  };
2523
2523
  })()), Ce;
2524
2524
  }
2525
- var zt;
2526
- function Hn() {
2527
- return zt || (zt = 1, process.env.NODE_ENV === "production" ? _e.exports = Wn() : _e.exports = Bn()), _e.exports;
2525
+ var _t;
2526
+ function Yn() {
2527
+ return _t || (_t = 1, process.env.NODE_ENV === "production" ? _e.exports = Hn() : _e.exports = Vn()), _e.exports;
2528
2528
  }
2529
- var n = Hn();
2529
+ var n = Yn();
2530
2530
  /**
2531
2531
  * @license lucide-react v0.544.0 - ISC
2532
2532
  *
2533
2533
  * This source code is licensed under the ISC license.
2534
2534
  * See the LICENSE file in the root directory of this source tree.
2535
2535
  */
2536
- const Vn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Yn = (t) => t.replace(
2536
+ const Kn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Jn = (t) => t.replace(
2537
2537
  /^([A-Z])|[\s-_]+(\w)/g,
2538
2538
  (e, r, s) => s ? s.toUpperCase() : r.toLowerCase()
2539
- ), At = (t) => {
2540
- const e = Yn(t);
2539
+ ), Ut = (t) => {
2540
+ const e = Jn(t);
2541
2541
  return e.charAt(0).toUpperCase() + e.slice(1);
2542
- }, ar = (...t) => t.filter((e, r, s) => !!e && e.trim() !== "" && s.indexOf(e) === r).join(" ").trim(), Kn = (t) => {
2542
+ }, lr = (...t) => t.filter((e, r, s) => !!e && e.trim() !== "" && s.indexOf(e) === r).join(" ").trim(), Gn = (t) => {
2543
2543
  for (const e in t)
2544
2544
  if (e.startsWith("aria-") || e === "role" || e === "title")
2545
2545
  return !0;
@@ -2550,7 +2550,7 @@ const Vn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Yn = (
2550
2550
  * This source code is licensed under the ISC license.
2551
2551
  * See the LICENSE file in the root directory of this source tree.
2552
2552
  */
2553
- var Jn = {
2553
+ var Xn = {
2554
2554
  xmlns: "http://www.w3.org/2000/svg",
2555
2555
  width: 24,
2556
2556
  height: 24,
@@ -2567,32 +2567,32 @@ var Jn = {
2567
2567
  * This source code is licensed under the ISC license.
2568
2568
  * See the LICENSE file in the root directory of this source tree.
2569
2569
  */
2570
- const Gn = Ut(
2570
+ const Zn = $t(
2571
2571
  ({
2572
2572
  color: t = "currentColor",
2573
2573
  size: e = 24,
2574
2574
  strokeWidth: r = 2,
2575
2575
  absoluteStrokeWidth: s,
2576
2576
  className: i = "",
2577
- children: o,
2578
- iconNode: a,
2577
+ children: a,
2578
+ iconNode: o,
2579
2579
  ...c
2580
- }, h) => Xe(
2580
+ }, h) => Ze(
2581
2581
  "svg",
2582
2582
  {
2583
2583
  ref: h,
2584
- ...Jn,
2584
+ ...Xn,
2585
2585
  width: e,
2586
2586
  height: e,
2587
2587
  stroke: t,
2588
2588
  strokeWidth: s ? Number(r) * 24 / Number(e) : r,
2589
- className: ar("lucide", i),
2590
- ...!o && !Kn(c) && { "aria-hidden": "true" },
2589
+ className: lr("lucide", i),
2590
+ ...!a && !Gn(c) && { "aria-hidden": "true" },
2591
2591
  ...c
2592
2592
  },
2593
2593
  [
2594
- ...a.map(([u, d]) => Xe(u, d)),
2595
- ...Array.isArray(o) ? o : [o]
2594
+ ...o.map(([u, d]) => Ze(u, d)),
2595
+ ...Array.isArray(a) ? a : [a]
2596
2596
  ]
2597
2597
  )
2598
2598
  );
@@ -2603,19 +2603,19 @@ const Gn = Ut(
2603
2603
  * See the LICENSE file in the root directory of this source tree.
2604
2604
  */
2605
2605
  const q = (t, e) => {
2606
- const r = Ut(
2607
- ({ className: s, ...i }, o) => Xe(Gn, {
2608
- ref: o,
2606
+ const r = $t(
2607
+ ({ className: s, ...i }, a) => Ze(Zn, {
2608
+ ref: a,
2609
2609
  iconNode: e,
2610
- className: ar(
2611
- `lucide-${Vn(At(t))}`,
2610
+ className: lr(
2611
+ `lucide-${Kn(Ut(t))}`,
2612
2612
  `lucide-${t}`,
2613
2613
  s
2614
2614
  ),
2615
2615
  ...i
2616
2616
  })
2617
2617
  );
2618
- return r.displayName = At(t), r;
2618
+ return r.displayName = Ut(t), r;
2619
2619
  };
2620
2620
  /**
2621
2621
  * @license lucide-react v0.544.0 - ISC
@@ -2623,7 +2623,7 @@ const q = (t, e) => {
2623
2623
  * This source code is licensed under the ISC license.
2624
2624
  * See the LICENSE file in the root directory of this source tree.
2625
2625
  */
2626
- const Xn = [
2626
+ const Qn = [
2627
2627
  [
2628
2628
  "path",
2629
2629
  {
@@ -2632,14 +2632,14 @@ const Xn = [
2632
2632
  }
2633
2633
  ],
2634
2634
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2635
- ], Zn = q("badge-check", Xn);
2635
+ ], es = q("badge-check", Qn);
2636
2636
  /**
2637
2637
  * @license lucide-react v0.544.0 - ISC
2638
2638
  *
2639
2639
  * This source code is licensed under the ISC license.
2640
2640
  * See the LICENSE file in the root directory of this source tree.
2641
2641
  */
2642
- const Qn = [
2642
+ const ts = [
2643
2643
  [
2644
2644
  "path",
2645
2645
  {
@@ -2648,74 +2648,74 @@ const Qn = [
2648
2648
  }
2649
2649
  ],
2650
2650
  ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
2651
- ], nt = q("camera", Qn);
2651
+ ], st = q("camera", ts);
2652
2652
  /**
2653
2653
  * @license lucide-react v0.544.0 - ISC
2654
2654
  *
2655
2655
  * This source code is licensed under the ISC license.
2656
2656
  * See the LICENSE file in the root directory of this source tree.
2657
2657
  */
2658
- const es = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ts = q("chevron-down", es);
2658
+ const rs = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ns = q("chevron-down", rs);
2659
2659
  /**
2660
2660
  * @license lucide-react v0.544.0 - ISC
2661
2661
  *
2662
2662
  * This source code is licensed under the ISC license.
2663
2663
  * See the LICENSE file in the root directory of this source tree.
2664
2664
  */
2665
- const rs = [
2665
+ const ss = [
2666
2666
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2667
2667
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
2668
2668
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
2669
- ], se = q("circle-alert", rs);
2669
+ ], se = q("circle-alert", ss);
2670
2670
  /**
2671
2671
  * @license lucide-react v0.544.0 - ISC
2672
2672
  *
2673
2673
  * This source code is licensed under the ISC license.
2674
2674
  * See the LICENSE file in the root directory of this source tree.
2675
2675
  */
2676
- const ns = [
2676
+ const is = [
2677
2677
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
2678
2678
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
2679
- ], de = q("circle-check-big", ns);
2679
+ ], de = q("circle-check-big", is);
2680
2680
  /**
2681
2681
  * @license lucide-react v0.544.0 - ISC
2682
2682
  *
2683
2683
  * This source code is licensed under the ISC license.
2684
2684
  * See the LICENSE file in the root directory of this source tree.
2685
2685
  */
2686
- const ss = [
2686
+ const os = [
2687
2687
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2688
2688
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2689
- ], Ge = q("circle-check", ss);
2689
+ ], Xe = q("circle-check", os);
2690
2690
  /**
2691
2691
  * @license lucide-react v0.544.0 - ISC
2692
2692
  *
2693
2693
  * This source code is licensed under the ISC license.
2694
2694
  * See the LICENSE file in the root directory of this source tree.
2695
2695
  */
2696
- const is = [
2696
+ const as = [
2697
2697
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
2698
2698
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
2699
2699
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
2700
- ], as = q("database", is);
2700
+ ], ls = q("database", as);
2701
2701
  /**
2702
2702
  * @license lucide-react v0.544.0 - ISC
2703
2703
  *
2704
2704
  * This source code is licensed under the ISC license.
2705
2705
  * See the LICENSE file in the root directory of this source tree.
2706
2706
  */
2707
- const os = [
2707
+ const cs = [
2708
2708
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
2709
2709
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
2710
2710
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
2711
- ], ls = q("ellipsis-vertical", os);
2711
+ ], ds = q("ellipsis-vertical", cs);
2712
2712
  /**
2713
2713
  * @license lucide-react v0.544.0 - ISC
2714
2714
  *
2715
2715
  * This source code is licensed under the ISC license.
2716
2716
  * See the LICENSE file in the root directory of this source tree.
2717
2717
  */
2718
- const cs = [
2718
+ const us = [
2719
2719
  [
2720
2720
  "path",
2721
2721
  {
@@ -2732,14 +2732,14 @@ const cs = [
2732
2732
  }
2733
2733
  ],
2734
2734
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
2735
- ], ot = q("eye-off", cs);
2735
+ ], ct = q("eye-off", us);
2736
2736
  /**
2737
2737
  * @license lucide-react v0.544.0 - ISC
2738
2738
  *
2739
2739
  * This source code is licensed under the ISC license.
2740
2740
  * See the LICENSE file in the root directory of this source tree.
2741
2741
  */
2742
- const ds = [
2742
+ const ps = [
2743
2743
  [
2744
2744
  "path",
2745
2745
  {
@@ -2748,14 +2748,14 @@ const ds = [
2748
2748
  }
2749
2749
  ],
2750
2750
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2751
- ], lt = q("eye", ds);
2751
+ ], dt = q("eye", ps);
2752
2752
  /**
2753
2753
  * @license lucide-react v0.544.0 - ISC
2754
2754
  *
2755
2755
  * This source code is licensed under the ISC license.
2756
2756
  * See the LICENSE file in the root directory of this source tree.
2757
2757
  */
2758
- const us = [
2758
+ const fs = [
2759
2759
  ["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
2760
2760
  [
2761
2761
  "path",
@@ -2764,25 +2764,25 @@ const us = [
2764
2764
  key: "r6nss1"
2765
2765
  }
2766
2766
  ]
2767
- ], ps = q("house", us);
2767
+ ], xs = q("house", fs);
2768
2768
  /**
2769
2769
  * @license lucide-react v0.544.0 - ISC
2770
2770
  *
2771
2771
  * This source code is licensed under the ISC license.
2772
2772
  * See the LICENSE file in the root directory of this source tree.
2773
2773
  */
2774
- const fs = [
2774
+ const hs = [
2775
2775
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
2776
2776
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
2777
2777
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
2778
- ], or = q("image", fs);
2778
+ ], cr = q("image", hs);
2779
2779
  /**
2780
2780
  * @license lucide-react v0.544.0 - ISC
2781
2781
  *
2782
2782
  * This source code is licensed under the ISC license.
2783
2783
  * See the LICENSE file in the root directory of this source tree.
2784
2784
  */
2785
- const xs = [
2785
+ const ms = [
2786
2786
  [
2787
2787
  "path",
2788
2788
  {
@@ -2791,43 +2791,43 @@ const xs = [
2791
2791
  }
2792
2792
  ],
2793
2793
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
2794
- ], lr = q("key-round", xs);
2794
+ ], dr = q("key-round", ms);
2795
2795
  /**
2796
2796
  * @license lucide-react v0.544.0 - ISC
2797
2797
  *
2798
2798
  * This source code is licensed under the ISC license.
2799
2799
  * See the LICENSE file in the root directory of this source tree.
2800
2800
  */
2801
- const hs = [
2801
+ const gs = [
2802
2802
  ["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" }],
2803
2803
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
2804
2804
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
2805
- ], ct = q("key", hs);
2805
+ ], ut = q("key", gs);
2806
2806
  /**
2807
2807
  * @license lucide-react v0.544.0 - ISC
2808
2808
  *
2809
2809
  * This source code is licensed under the ISC license.
2810
2810
  * See the LICENSE file in the root directory of this source tree.
2811
2811
  */
2812
- const ms = [
2812
+ const ys = [
2813
2813
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
2814
2814
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
2815
2815
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
2816
- ], gs = q("link-2", ms);
2816
+ ], bs = q("link-2", ys);
2817
2817
  /**
2818
2818
  * @license lucide-react v0.544.0 - ISC
2819
2819
  *
2820
2820
  * This source code is licensed under the ISC license.
2821
2821
  * See the LICENSE file in the root directory of this source tree.
2822
2822
  */
2823
- const ys = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ie = q("loader-circle", ys);
2823
+ const ws = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ie = q("loader-circle", ws);
2824
2824
  /**
2825
2825
  * @license lucide-react v0.544.0 - ISC
2826
2826
  *
2827
2827
  * This source code is licensed under the ISC license.
2828
2828
  * See the LICENSE file in the root directory of this source tree.
2829
2829
  */
2830
- const bs = [
2830
+ const vs = [
2831
2831
  ["path", { d: "M12 2v4", key: "3427ic" }],
2832
2832
  ["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
2833
2833
  ["path", { d: "M18 12h4", key: "wj9ykh" }],
@@ -2836,45 +2836,45 @@ const bs = [
2836
2836
  ["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
2837
2837
  ["path", { d: "M2 12h4", key: "j09sii" }],
2838
2838
  ["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
2839
- ], ws = q("loader", bs);
2839
+ ], js = q("loader", vs);
2840
2840
  /**
2841
2841
  * @license lucide-react v0.544.0 - ISC
2842
2842
  *
2843
2843
  * This source code is licensed under the ISC license.
2844
2844
  * See the LICENSE file in the root directory of this source tree.
2845
2845
  */
2846
- const js = [
2846
+ const Ss = [
2847
2847
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
2848
2848
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
2849
- ], ge = q("lock", js);
2849
+ ], ge = q("lock", Ss);
2850
2850
  /**
2851
2851
  * @license lucide-react v0.544.0 - ISC
2852
2852
  *
2853
2853
  * This source code is licensed under the ISC license.
2854
2854
  * See the LICENSE file in the root directory of this source tree.
2855
2855
  */
2856
- const vs = [
2856
+ const ks = [
2857
2857
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
2858
2858
  ["path", { d: "M21 12H9", key: "dn1m92" }],
2859
2859
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
2860
- ], dt = q("log-out", vs);
2860
+ ], pt = q("log-out", ks);
2861
2861
  /**
2862
2862
  * @license lucide-react v0.544.0 - ISC
2863
2863
  *
2864
2864
  * This source code is licensed under the ISC license.
2865
2865
  * See the LICENSE file in the root directory of this source tree.
2866
2866
  */
2867
- const Ss = [
2867
+ const Es = [
2868
2868
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
2869
2869
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
2870
- ], pe = q("mail", Ss);
2870
+ ], pe = q("mail", Es);
2871
2871
  /**
2872
2872
  * @license lucide-react v0.544.0 - ISC
2873
2873
  *
2874
2874
  * This source code is licensed under the ISC license.
2875
2875
  * See the LICENSE file in the root directory of this source tree.
2876
2876
  */
2877
- const ks = [
2877
+ const Cs = [
2878
2878
  [
2879
2879
  "path",
2880
2880
  {
@@ -2883,14 +2883,14 @@ const ks = [
2883
2883
  }
2884
2884
  ],
2885
2885
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
2886
- ], Es = q("map-pin", ks);
2886
+ ], Ts = q("map-pin", Cs);
2887
2887
  /**
2888
2888
  * @license lucide-react v0.544.0 - ISC
2889
2889
  *
2890
2890
  * This source code is licensed under the ISC license.
2891
2891
  * See the LICENSE file in the root directory of this source tree.
2892
2892
  */
2893
- const Cs = [
2893
+ const Rs = [
2894
2894
  ["path", { d: "M13 21h8", key: "1jsn5i" }],
2895
2895
  [
2896
2896
  "path",
@@ -2899,14 +2899,14 @@ const Cs = [
2899
2899
  key: "1a8usu"
2900
2900
  }
2901
2901
  ]
2902
- ], Ts = q("pen-line", Cs);
2902
+ ], Ps = q("pen-line", Rs);
2903
2903
  /**
2904
2904
  * @license lucide-react v0.544.0 - ISC
2905
2905
  *
2906
2906
  * This source code is licensed under the ISC license.
2907
2907
  * See the LICENSE file in the root directory of this source tree.
2908
2908
  */
2909
- const Rs = [
2909
+ const Is = [
2910
2910
  [
2911
2911
  "path",
2912
2912
  {
@@ -2914,14 +2914,14 @@ const Rs = [
2914
2914
  key: "9njp5v"
2915
2915
  }
2916
2916
  ]
2917
- ], Ps = q("phone", Rs);
2917
+ ], Os = q("phone", Is);
2918
2918
  /**
2919
2919
  * @license lucide-react v0.544.0 - ISC
2920
2920
  *
2921
2921
  * This source code is licensed under the ISC license.
2922
2922
  * See the LICENSE file in the root directory of this source tree.
2923
2923
  */
2924
- const Is = [
2924
+ const zs = [
2925
2925
  [
2926
2926
  "path",
2927
2927
  {
@@ -2931,14 +2931,14 @@ const Is = [
2931
2931
  ],
2932
2932
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
2933
2933
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
2934
- ], Os = q("save", Is);
2934
+ ], As = q("save", zs);
2935
2935
  /**
2936
2936
  * @license lucide-react v0.544.0 - ISC
2937
2937
  *
2938
2938
  * This source code is licensed under the ISC license.
2939
2939
  * See the LICENSE file in the root directory of this source tree.
2940
2940
  */
2941
- const zs = [
2941
+ const _s = [
2942
2942
  [
2943
2943
  "path",
2944
2944
  {
@@ -2947,14 +2947,14 @@ const zs = [
2947
2947
  }
2948
2948
  ],
2949
2949
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
2950
- ], ut = q("send", zs);
2950
+ ], ft = q("send", _s);
2951
2951
  /**
2952
2952
  * @license lucide-react v0.544.0 - ISC
2953
2953
  *
2954
2954
  * This source code is licensed under the ISC license.
2955
2955
  * See the LICENSE file in the root directory of this source tree.
2956
2956
  */
2957
- const As = [
2957
+ const Us = [
2958
2958
  [
2959
2959
  "path",
2960
2960
  {
@@ -2963,14 +2963,14 @@ const As = [
2963
2963
  }
2964
2964
  ],
2965
2965
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2966
- ], _s = q("settings", As);
2966
+ ], Ds = q("settings", Us);
2967
2967
  /**
2968
2968
  * @license lucide-react v0.544.0 - ISC
2969
2969
  *
2970
2970
  * This source code is licensed under the ISC license.
2971
2971
  * See the LICENSE file in the root directory of this source tree.
2972
2972
  */
2973
- const Us = [
2973
+ const $s = [
2974
2974
  [
2975
2975
  "path",
2976
2976
  {
@@ -2978,7 +2978,7 @@ const Us = [
2978
2978
  key: "oel41y"
2979
2979
  }
2980
2980
  ]
2981
- ], cr = q("shield", Us);
2981
+ ], ur = q("shield", $s);
2982
2982
  /**
2983
2983
  * @license lucide-react v0.544.0 - ISC
2984
2984
  *
@@ -2991,14 +2991,14 @@ const Ns = [
2991
2991
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
2992
2992
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
2993
2993
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
2994
- ], De = q("trash-2", Ns);
2994
+ ], Fe = q("trash-2", Ns);
2995
2995
  /**
2996
2996
  * @license lucide-react v0.544.0 - ISC
2997
2997
  *
2998
2998
  * This source code is licensed under the ISC license.
2999
2999
  * See the LICENSE file in the root directory of this source tree.
3000
3000
  */
3001
- const $s = [
3001
+ const Fs = [
3002
3002
  [
3003
3003
  "path",
3004
3004
  {
@@ -3008,54 +3008,54 @@ const $s = [
3008
3008
  ],
3009
3009
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3010
3010
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3011
- ], _t = q("triangle-alert", $s);
3011
+ ], Dt = q("triangle-alert", Fs);
3012
3012
  /**
3013
3013
  * @license lucide-react v0.544.0 - ISC
3014
3014
  *
3015
3015
  * This source code is licensed under the ISC license.
3016
3016
  * See the LICENSE file in the root directory of this source tree.
3017
3017
  */
3018
- const Ds = [
3018
+ const Ls = [
3019
3019
  ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
3020
3020
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
3021
3021
  ["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
3022
3022
  ["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
3023
- ], Fs = q("user-x", Ds);
3023
+ ], qs = q("user-x", Ls);
3024
3024
  /**
3025
3025
  * @license lucide-react v0.544.0 - ISC
3026
3026
  *
3027
3027
  * This source code is licensed under the ISC license.
3028
3028
  * See the LICENSE file in the root directory of this source tree.
3029
3029
  */
3030
- const Ls = [
3030
+ const Ms = [
3031
3031
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
3032
3032
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
3033
- ], be = q("user", Ls);
3033
+ ], be = q("user", Ms);
3034
3034
  /**
3035
3035
  * @license lucide-react v0.544.0 - ISC
3036
3036
  *
3037
3037
  * This source code is licensed under the ISC license.
3038
3038
  * See the LICENSE file in the root directory of this source tree.
3039
3039
  */
3040
- const qs = [
3040
+ const Ws = [
3041
3041
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3042
3042
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3043
- ], ze = q("x", qs), dr = pr(null), pi = ({
3043
+ ], ze = q("x", Ws), pr = xr(null), mi = ({
3044
3044
  authix: t,
3045
3045
  children: e
3046
- }) => /* @__PURE__ */ n.jsx(dr.Provider, { value: t, children: e }), me = () => {
3047
- const t = fr(dr);
3046
+ }) => /* @__PURE__ */ n.jsx(pr.Provider, { value: t, children: e }), me = () => {
3047
+ const t = hr(pr);
3048
3048
  if (!t)
3049
3049
  throw new Error("useAuthix must be used inside <AuthixProvider />");
3050
3050
  return t;
3051
- }, fi = ({
3051
+ }, gi = ({
3052
3052
  logoUrl: t,
3053
3053
  logoLinkUrl: e,
3054
3054
  title: r = "Create Your Account",
3055
3055
  subtitle: s = "Join our platform today",
3056
3056
  footerText: i = "Secure authentication powered by Neuctra Authix",
3057
- primaryColor: o = "#00C214",
3058
- gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3057
+ primaryColor: a = "#00C214",
3058
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
3059
3059
  darkMode: c = !0,
3060
3060
  // Only avatar is optional
3061
3061
  showAvatar: h = !1,
@@ -3073,7 +3073,7 @@ const qs = [
3073
3073
  password: "",
3074
3074
  role: u.length ? u[0] : "user",
3075
3075
  ...h && { avatarUrl: "" }
3076
- }, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(null), [F, U] = R({}), [M, X] = R(!1), E = c ? "#ffffff" : "#111827", V = c ? "#a1a1aa" : "#6b7280", z = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", I = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3076
+ }, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g, j] = R(null), [F, U] = R({}), [M, X] = R(!1), E = c ? "#ffffff" : "#111827", V = c ? "#a1a1aa" : "#6b7280", z = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", I = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3077
3077
  Te.useEffect(() => {
3078
3078
  if (typeof window < "u") {
3079
3079
  const L = () => X(window.innerWidth < 768);
@@ -3088,7 +3088,7 @@ const qs = [
3088
3088
  return x.name.trim() || (L.name = "Name is required"), x.email.trim() ? /\S+@\S+\.\S+/.test(x.email) || (L.email = "Invalid email address") : L.email = "Email is required", x.password ? x.password.length < 6 && (L.password = "Password must be at least 6 characters") : L.password = "Password is required", U(L), Object.keys(L).length === 0;
3089
3089
  }, B = async (L) => {
3090
3090
  if (L.preventDefault(), !!Z()) {
3091
- _(!0), v(null);
3091
+ _(!0), j(null);
3092
3092
  try {
3093
3093
  const l = {
3094
3094
  name: x.name,
@@ -3097,12 +3097,12 @@ const qs = [
3097
3097
  role: x.role,
3098
3098
  ...x.avatarUrl ? { avatarUrl: x.avatarUrl } : {}
3099
3099
  }, b = await p.signupUser(l);
3100
- b.success ? (v({
3100
+ b.success ? (j({
3101
3101
  type: "success",
3102
3102
  text: b.message || "Account created successfully!"
3103
- }), P?.(b.user)) : (v({ type: "error", text: b.message || "Signup failed" }), O?.(b));
3103
+ }), P?.(b.user)) : (j({ type: "error", text: b.message || "Signup failed" }), O?.(b));
3104
3104
  } catch (l) {
3105
- v({
3105
+ j({
3106
3106
  type: "error",
3107
3107
  text: l.message || "Signup failed. Please try again."
3108
3108
  }), O?.(l);
@@ -3175,7 +3175,7 @@ const qs = [
3175
3175
  be,
3176
3176
  {
3177
3177
  size: 40,
3178
- color: o,
3178
+ color: a,
3179
3179
  style: { marginBottom: "10px" }
3180
3180
  }
3181
3181
  ),
@@ -3222,7 +3222,7 @@ const qs = [
3222
3222
  height: "60px",
3223
3223
  borderRadius: "50%",
3224
3224
  objectFit: "cover",
3225
- border: `2px solid ${o}30`
3225
+ border: `2px solid ${a}30`
3226
3226
  },
3227
3227
  onError: (L) => {
3228
3228
  const l = L.target;
@@ -3298,7 +3298,7 @@ const qs = [
3298
3298
  zIndex: 10,
3299
3299
  border: "none",
3300
3300
  background: "transparent",
3301
- color: x.role === u[0] ? o : c ? "#9ca3af" : "#6b7280",
3301
+ color: x.role === u[0] ? a : c ? "#9ca3af" : "#6b7280",
3302
3302
  // theme-aware inactive color
3303
3303
  fontWeight: x.role === u[0] ? 600 : 500,
3304
3304
  fontSize: "14px",
@@ -3320,7 +3320,7 @@ const qs = [
3320
3320
  zIndex: 10,
3321
3321
  border: "none",
3322
3322
  background: "transparent",
3323
- color: x.role === u[1] ? o : c ? "#9ca3af" : "#6b7280",
3323
+ color: x.role === u[1] ? a : c ? "#9ca3af" : "#6b7280",
3324
3324
  fontWeight: x.role === u[1] ? 600 : 500,
3325
3325
  fontSize: "14px",
3326
3326
  display: "flex",
@@ -3505,7 +3505,7 @@ const qs = [
3505
3505
  cursor: "pointer",
3506
3506
  padding: "4px"
3507
3507
  },
3508
- children: T ? /* @__PURE__ */ n.jsx(ot, { size: 20 }) : /* @__PURE__ */ n.jsx(lt, { size: 20 })
3508
+ children: T ? /* @__PURE__ */ n.jsx(ct, { size: 20 }) : /* @__PURE__ */ n.jsx(dt, { size: 20 })
3509
3509
  }
3510
3510
  )
3511
3511
  ] }),
@@ -3540,7 +3540,7 @@ const qs = [
3540
3540
  ),
3541
3541
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3542
3542
  /* @__PURE__ */ n.jsx(
3543
- or,
3543
+ cr,
3544
3544
  {
3545
3545
  size: 20,
3546
3546
  style: {
@@ -3581,7 +3581,7 @@ const qs = [
3581
3581
  {
3582
3582
  href: m,
3583
3583
  style: {
3584
- color: o,
3584
+ color: a,
3585
3585
  textDecoration: "none",
3586
3586
  fontWeight: 500
3587
3587
  },
@@ -3600,9 +3600,9 @@ const qs = [
3600
3600
  display: "flex",
3601
3601
  alignItems: "start",
3602
3602
  gap: "10px",
3603
- backgroundColor: g.type === "success" ? `${o}15` : "rgba(239,68,68,0.1)",
3604
- border: g.type === "success" ? `1px solid ${o}30` : "1px solid rgba(239,68,68,0.3)",
3605
- color: g.type === "success" ? o : "#ef4444"
3603
+ backgroundColor: g.type === "success" ? `${a}15` : "rgba(239,68,68,0.1)",
3604
+ border: g.type === "success" ? `1px solid ${a}30` : "1px solid rgba(239,68,68,0.3)",
3605
+ color: g.type === "success" ? a : "#ef4444"
3606
3606
  },
3607
3607
  children: [
3608
3608
  g.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20 }) : /* @__PURE__ */ n.jsx(se, { size: 20 }),
@@ -3617,7 +3617,7 @@ const qs = [
3617
3617
  disabled: y,
3618
3618
  style: {
3619
3619
  padding: "12px",
3620
- background: a,
3620
+ background: o,
3621
3621
  color: "#fff",
3622
3622
  border: "none",
3623
3623
  borderRadius: "10px",
@@ -3632,7 +3632,7 @@ const qs = [
3632
3632
  },
3633
3633
  children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3634
3634
  /* @__PURE__ */ n.jsx(
3635
- ws,
3635
+ js,
3636
3636
  {
3637
3637
  size: 18,
3638
3638
  style: { animation: "spin 1s linear infinite" }
@@ -3658,7 +3658,7 @@ const qs = [
3658
3658
  children: [
3659
3659
  "Secure authentication powered by",
3660
3660
  " ",
3661
- /* @__PURE__ */ n.jsx("span", { style: { color: o, fontWeight: 600 }, children: "Neuctra Authix" })
3661
+ /* @__PURE__ */ n.jsx("span", { style: { color: a, fontWeight: 600 }, children: "Neuctra Authix" })
3662
3662
  ]
3663
3663
  }
3664
3664
  )
@@ -3674,20 +3674,92 @@ const qs = [
3674
3674
  ]
3675
3675
  }
3676
3676
  );
3677
- }, xi = ({
3677
+ };
3678
+ /*! js-cookie v3.0.5 | MIT */
3679
+ function Ue(t) {
3680
+ for (var e = 1; e < arguments.length; e++) {
3681
+ var r = arguments[e];
3682
+ for (var s in r)
3683
+ t[s] = r[s];
3684
+ }
3685
+ return t;
3686
+ }
3687
+ var Bs = {
3688
+ read: function(t) {
3689
+ return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3690
+ },
3691
+ write: function(t) {
3692
+ return encodeURIComponent(t).replace(
3693
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
3694
+ decodeURIComponent
3695
+ );
3696
+ }
3697
+ };
3698
+ function it(t, e) {
3699
+ function r(i, a, o) {
3700
+ if (!(typeof document > "u")) {
3701
+ o = Ue({}, e, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3702
+ var c = "";
3703
+ for (var h in o)
3704
+ o[h] && (c += "; " + h, o[h] !== !0 && (c += "=" + o[h].split(";")[0]));
3705
+ return document.cookie = i + "=" + t.write(a, i) + c;
3706
+ }
3707
+ }
3708
+ function s(i) {
3709
+ if (!(typeof document > "u" || arguments.length && !i)) {
3710
+ for (var a = document.cookie ? document.cookie.split("; ") : [], o = {}, c = 0; c < a.length; c++) {
3711
+ var h = a[c].split("="), u = h.slice(1).join("=");
3712
+ try {
3713
+ var d = decodeURIComponent(h[0]);
3714
+ if (o[d] = t.read(u, d), i === d)
3715
+ break;
3716
+ } catch {
3717
+ }
3718
+ }
3719
+ return i ? o[i] : o;
3720
+ }
3721
+ }
3722
+ return Object.create(
3723
+ {
3724
+ set: r,
3725
+ get: s,
3726
+ remove: function(i, a) {
3727
+ r(
3728
+ i,
3729
+ "",
3730
+ Ue({}, a, {
3731
+ expires: -1
3732
+ })
3733
+ );
3734
+ },
3735
+ withAttributes: function(i) {
3736
+ return it(this.converter, Ue({}, this.attributes, i));
3737
+ },
3738
+ withConverter: function(i) {
3739
+ return it(Ue({}, this.converter, i), this.attributes);
3740
+ }
3741
+ },
3742
+ {
3743
+ attributes: { value: Object.freeze(e) },
3744
+ converter: { value: Object.freeze(t) }
3745
+ }
3746
+ );
3747
+ }
3748
+ var Hs = it(Bs, { path: "/" });
3749
+ const yi = ({
3678
3750
  logoUrl: t,
3679
3751
  logoLinkUrl: e,
3680
3752
  title: r = "Sign In to Your Account",
3681
3753
  subtitle: s = "Welcome back! Please enter your details",
3682
3754
  footerText: i = "Secure authentication powered by Neuctra Authix",
3683
- primaryColor: o = "#00C214",
3684
- gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3755
+ primaryColor: a = "#00C214",
3756
+ gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
3685
3757
  darkMode: c = !0,
3686
3758
  signupUrl: h,
3687
3759
  onSuccess: u,
3688
3760
  onError: d
3689
3761
  }) => {
3690
- const m = me(), [P, O] = R("login"), [p, w] = R(1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(null), [g, v] = R(""), [F, U] = R(""), [M, X] = R({
3762
+ const m = me(), [P, O] = R("login"), [p, w] = R(1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(null), [g, j] = R(""), [F, U] = R(""), [M, X] = R({
3691
3763
  email: "",
3692
3764
  otp: "",
3693
3765
  newPassword: ""
@@ -3701,13 +3773,22 @@ const qs = [
3701
3773
  const B = async (S) => {
3702
3774
  S.preventDefault(), A(!0), _(null);
3703
3775
  try {
3704
- const j = await m.loginUser({ email: g, password: F }), { user: G } = j;
3776
+ const v = await m.loginUser({ email: g, password: F }), { user: G } = v;
3705
3777
  if (!G)
3706
- throw new Error(j.message || "Login failed");
3707
- _({ type: "success", text: `Welcome ${G.name}` }), u?.(G);
3708
- } catch (j) {
3709
- const G = j.message || "Login failed";
3710
- _({ type: "error", text: G }), d?.(j);
3778
+ throw new Error(v.message || "Login failed");
3779
+ Hs.set("a_s_b", "true", {
3780
+ path: "/",
3781
+ // cookie valid for entire frontend
3782
+ expires: 1,
3783
+ // 1 day
3784
+ secure: !0,
3785
+ // only over HTTPS
3786
+ sameSite: "Lax"
3787
+ // or "Strict" if you want tighter control
3788
+ }), _({ type: "success", text: `Welcome ${G.name}` }), u?.(G);
3789
+ } catch (v) {
3790
+ const G = v.message || "Login failed";
3791
+ _({ type: "error", text: G }), d?.(v);
3711
3792
  } finally {
3712
3793
  A(!1);
3713
3794
  }
@@ -3716,20 +3797,20 @@ const qs = [
3716
3797
  }, L = async (S) => {
3717
3798
  S.preventDefault(), A(!0), _(null);
3718
3799
  try {
3719
- const j = await m.requestResetUserPasswordOTP({
3800
+ const v = await m.requestResetUserPasswordOTP({
3720
3801
  email: M.email
3721
3802
  });
3722
- j.success ? (w(2), _({
3803
+ v.success ? (w(2), _({
3723
3804
  type: "success",
3724
- text: j.message || "OTP sent to your email"
3805
+ text: v.message || "OTP sent to your email"
3725
3806
  })) : _({
3726
3807
  type: "error",
3727
- text: j.message || "Failed to send OTP"
3808
+ text: v.message || "Failed to send OTP"
3728
3809
  });
3729
- } catch (j) {
3810
+ } catch (v) {
3730
3811
  _({
3731
3812
  type: "error",
3732
- text: j.message || "Something went wrong"
3813
+ text: v.message || "Something went wrong"
3733
3814
  });
3734
3815
  } finally {
3735
3816
  A(!1);
@@ -3737,19 +3818,19 @@ const qs = [
3737
3818
  }, l = async (S) => {
3738
3819
  S.preventDefault(), A(!0), _(null);
3739
3820
  try {
3740
- const j = await m.resetUserPassword({
3821
+ const v = await m.resetUserPassword({
3741
3822
  email: M.email,
3742
3823
  otp: M.otp,
3743
3824
  newPassword: M.newPassword
3744
3825
  });
3745
- j.success ? (_({
3826
+ v.success ? (_({
3746
3827
  type: "success",
3747
- text: j.message || "Password reset successfully!"
3748
- }), w(1), X({ email: "", otp: "", newPassword: "" }), O("login")) : _({ type: "error", text: j.message || "Reset failed" });
3749
- } catch (j) {
3828
+ text: v.message || "Password reset successfully!"
3829
+ }), w(1), X({ email: "", otp: "", newPassword: "" }), O("login")) : _({ type: "error", text: v.message || "Reset failed" });
3830
+ } catch (v) {
3750
3831
  _({
3751
3832
  type: "error",
3752
- text: j.message || "Something went wrong"
3833
+ text: v.message || "Something went wrong"
3753
3834
  });
3754
3835
  } finally {
3755
3836
  A(!1);
@@ -3817,7 +3898,7 @@ const qs = [
3817
3898
  be,
3818
3899
  {
3819
3900
  size: 40,
3820
- color: o,
3901
+ color: a,
3821
3902
  style: { marginBottom: "10px" }
3822
3903
  }
3823
3904
  ),
@@ -3890,7 +3971,7 @@ const qs = [
3890
3971
  type: "email",
3891
3972
  placeholder: "Enter your email",
3892
3973
  value: g,
3893
- onChange: (S) => v(S.target.value),
3974
+ onChange: (S) => j(S.target.value),
3894
3975
  style: b
3895
3976
  }
3896
3977
  )
@@ -3956,7 +4037,7 @@ const qs = [
3956
4037
  color: I,
3957
4038
  cursor: "pointer"
3958
4039
  },
3959
- children: x ? /* @__PURE__ */ n.jsx(ot, { size: 20 }) : /* @__PURE__ */ n.jsx(lt, { size: 20 })
4040
+ children: x ? /* @__PURE__ */ n.jsx(ct, { size: 20 }) : /* @__PURE__ */ n.jsx(dt, { size: 20 })
3960
4041
  }
3961
4042
  )
3962
4043
  ] })
@@ -3977,7 +4058,7 @@ const qs = [
3977
4058
  {
3978
4059
  href: h,
3979
4060
  style: {
3980
- color: o,
4061
+ color: a,
3981
4062
  textDecoration: "none",
3982
4063
  fontWeight: 500
3983
4064
  },
@@ -3992,7 +4073,7 @@ const qs = [
3992
4073
  style: {
3993
4074
  background: "none",
3994
4075
  border: "none",
3995
- color: o,
4076
+ color: a,
3996
4077
  fontWeight: 500,
3997
4078
  cursor: "pointer"
3998
4079
  },
@@ -4009,7 +4090,7 @@ const qs = [
4009
4090
  disabled: T,
4010
4091
  style: {
4011
4092
  padding: "12px",
4012
- background: a,
4093
+ background: o,
4013
4094
  color: "#fff",
4014
4095
  border: "none",
4015
4096
  borderRadius: "10px",
@@ -4098,7 +4179,7 @@ const qs = [
4098
4179
  ),
4099
4180
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
4100
4181
  /* @__PURE__ */ n.jsx(
4101
- lr,
4182
+ dr,
4102
4183
  {
4103
4184
  size: 20,
4104
4185
  style: {
@@ -4185,7 +4266,7 @@ const qs = [
4185
4266
  disabled: T,
4186
4267
  style: {
4187
4268
  padding: "12px",
4188
- background: a,
4269
+ background: o,
4189
4270
  color: "#fff",
4190
4271
  border: "none",
4191
4272
  fontSize: "14px",
@@ -4227,9 +4308,9 @@ const qs = [
4227
4308
  display: "flex",
4228
4309
  alignItems: "center",
4229
4310
  gap: "10px",
4230
- backgroundColor: y.type === "success" ? `${o}15` : "rgba(239,68,68,0.1)",
4231
- border: y.type === "success" ? `1px solid ${o}30` : "1px solid rgba(239,68,68,0.3)",
4232
- color: y.type === "success" ? o : "#ef4444"
4311
+ backgroundColor: y.type === "success" ? `${a}15` : "rgba(239,68,68,0.1)",
4312
+ border: y.type === "success" ? `1px solid ${a}30` : "1px solid rgba(239,68,68,0.3)",
4313
+ color: y.type === "success" ? a : "#ef4444"
4233
4314
  },
4234
4315
  children: [
4235
4316
  y.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20 }) : /* @__PURE__ */ n.jsx(se, { size: 20 }),
@@ -4250,7 +4331,7 @@ const qs = [
4250
4331
  children: [
4251
4332
  "Secure authentication powered by",
4252
4333
  " ",
4253
- /* @__PURE__ */ n.jsx("span", { style: { color: o, fontWeight: 600 }, children: "Neuctra Authix" })
4334
+ /* @__PURE__ */ n.jsx("span", { style: { color: a, fontWeight: 600 }, children: "Neuctra Authix" })
4254
4335
  ]
4255
4336
  }
4256
4337
  )
@@ -4259,38 +4340,38 @@ const qs = [
4259
4340
  )
4260
4341
  }
4261
4342
  );
4262
- }, hi = ({
4343
+ }, bi = ({
4263
4344
  children: t,
4264
4345
  fallback: e = null
4265
4346
  }) => {
4266
- const [r, s] = R(!1), [i, o] = R(null);
4347
+ const [r, s] = R(!1), [i, a] = R(null);
4267
4348
  if (te(() => {
4268
4349
  s(!0);
4269
4350
  const h = document.cookie.split(";").map((u) => u.trim()).find((u) => u.startsWith("a_s_b="));
4270
- o(h?.split("=")[1] === "true");
4351
+ a(h?.split("=")[1] === "true");
4271
4352
  }, []), !r) return null;
4272
- const a = (c) => typeof c == "function" ? c() : c;
4273
- return i === null ? a(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : a(e);
4274
- }, mi = ({
4353
+ const o = (c) => typeof c == "function" ? c() : c;
4354
+ return i === null ? o(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : o(e);
4355
+ }, wi = ({
4275
4356
  children: t,
4276
4357
  fallback: e = null
4277
4358
  }) => {
4278
- const [r, s] = R(!1), [i, o] = R(null);
4359
+ const [r, s] = R(!1), [i, a] = R(null);
4279
4360
  if (te(() => {
4280
4361
  s(!0);
4281
4362
  const h = document.cookie.split(";").map((u) => u.trim()).find((u) => u.startsWith("a_s_b="));
4282
- o(h?.split("=")[1] !== "true");
4363
+ a(h?.split("=")[1] !== "true");
4283
4364
  }, []), !r) return null;
4284
- const a = (c) => typeof c == "function" ? c() : c;
4285
- return i === null ? a(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : a(e);
4286
- }, Ms = ({
4365
+ const o = (c) => typeof c == "function" ? c() : c;
4366
+ return i === null ? o(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : o(e);
4367
+ }, Vs = ({
4287
4368
  isOpen: t,
4288
4369
  onClose: e,
4289
4370
  onSuccess: r,
4290
4371
  onError: s,
4291
4372
  userId: i,
4292
- token: o,
4293
- colors: a
4373
+ token: a,
4374
+ colors: o
4294
4375
  }) => {
4295
4376
  const c = me(), [h, u] = R(!1), [d, m] = R(""), [P, O] = R("warning"), [p, w] = R(!1);
4296
4377
  if (te(() => {
@@ -4355,14 +4436,14 @@ const qs = [
4355
4436
  color: "white",
4356
4437
  flexShrink: 0
4357
4438
  },
4358
- children: /* @__PURE__ */ n.jsx(De, { size: 20 })
4439
+ children: /* @__PURE__ */ n.jsx(Fe, { size: 20 })
4359
4440
  }
4360
4441
  ),
4361
4442
  /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
4362
4443
  "h3",
4363
4444
  {
4364
4445
  style: {
4365
- color: a.textPrimary,
4446
+ color: o.textPrimary,
4366
4447
  margin: 0,
4367
4448
  fontSize: "20px",
4368
4449
  fontWeight: 700,
@@ -4382,7 +4463,7 @@ const qs = [
4382
4463
  style: {
4383
4464
  background: "transparent",
4384
4465
  border: "none",
4385
- color: a.textTertiary,
4466
+ color: o.textTertiary,
4386
4467
  cursor: "pointer",
4387
4468
  padding: "8px",
4388
4469
  borderRadius: "8px",
@@ -4395,10 +4476,10 @@ const qs = [
4395
4476
  transition: "all 0.2s ease"
4396
4477
  },
4397
4478
  onMouseOver: (y) => {
4398
- y.currentTarget.style.backgroundColor = a.border, y.currentTarget.style.color = a.textPrimary;
4479
+ y.currentTarget.style.backgroundColor = o.border, y.currentTarget.style.color = o.textPrimary;
4399
4480
  },
4400
4481
  onMouseOut: (y) => {
4401
- y.currentTarget.style.backgroundColor = "transparent", y.currentTarget.style.color = a.textTertiary;
4482
+ y.currentTarget.style.backgroundColor = "transparent", y.currentTarget.style.color = o.textTertiary;
4402
4483
  },
4403
4484
  children: /* @__PURE__ */ n.jsx(ze, { size: 20 })
4404
4485
  }
@@ -4413,8 +4494,8 @@ const qs = [
4413
4494
  display: "flex",
4414
4495
  gap: "16px",
4415
4496
  padding: "20px",
4416
- background: `${a.error}15`,
4417
- border: `1px solid ${a.error}30`,
4497
+ background: `${o.error}15`,
4498
+ border: `1px solid ${o.error}30`,
4418
4499
  borderRadius: "12px",
4419
4500
  marginBottom: "20px"
4420
4501
  },
@@ -4423,12 +4504,12 @@ const qs = [
4423
4504
  "div",
4424
4505
  {
4425
4506
  style: {
4426
- color: a.error,
4507
+ color: o.error,
4427
4508
  flexShrink: 0,
4428
4509
  display: "flex",
4429
4510
  alignItems: "flex-start"
4430
4511
  },
4431
- children: /* @__PURE__ */ n.jsx(_t, { size: 24 })
4512
+ children: /* @__PURE__ */ n.jsx(Dt, { size: 24 })
4432
4513
  }
4433
4514
  ),
4434
4515
  /* @__PURE__ */ n.jsxs("div", { style: { flex: 1 }, children: [
@@ -4436,7 +4517,7 @@ const qs = [
4436
4517
  "h4",
4437
4518
  {
4438
4519
  style: {
4439
- color: a.textPrimary,
4520
+ color: o.textPrimary,
4440
4521
  margin: "0 0 12px 0",
4441
4522
  fontSize: "16px",
4442
4523
  fontWeight: 600
@@ -4454,15 +4535,15 @@ const qs = [
4454
4535
  },
4455
4536
  children: [
4456
4537
  {
4457
- icon: /* @__PURE__ */ n.jsx(as, { size: 16 }),
4538
+ icon: /* @__PURE__ */ n.jsx(ls, { size: 16 }),
4458
4539
  text: "All your data will be permanently deleted"
4459
4540
  },
4460
4541
  {
4461
- icon: /* @__PURE__ */ n.jsx(Fs, { size: 16 }),
4542
+ icon: /* @__PURE__ */ n.jsx(qs, { size: 16 }),
4462
4543
  text: "This action cannot be reversed"
4463
4544
  },
4464
4545
  {
4465
- icon: /* @__PURE__ */ n.jsx(dt, { size: 16 }),
4546
+ icon: /* @__PURE__ */ n.jsx(pt, { size: 16 }),
4466
4547
  text: "You will lose access to all services"
4467
4548
  }
4468
4549
  ].map((y, _) => /* @__PURE__ */ n.jsxs(
@@ -4473,10 +4554,10 @@ const qs = [
4473
4554
  alignItems: "center",
4474
4555
  gap: "10px",
4475
4556
  fontSize: "14px",
4476
- color: a.textSecondary
4557
+ color: o.textSecondary
4477
4558
  },
4478
4559
  children: [
4479
- /* @__PURE__ */ n.jsx("div", { style: { color: a.error, flexShrink: 0 }, children: y.icon }),
4560
+ /* @__PURE__ */ n.jsx("div", { style: { color: o.error, flexShrink: 0 }, children: y.icon }),
4480
4561
  /* @__PURE__ */ n.jsx("span", { children: y.text })
4481
4562
  ]
4482
4563
  },
@@ -4506,9 +4587,9 @@ const qs = [
4506
4587
  style: {
4507
4588
  padding: "10px 24px",
4508
4589
  borderRadius: "10px",
4509
- border: `1.5px solid ${a.border}`,
4590
+ border: `1.5px solid ${o.border}`,
4510
4591
  background: "transparent",
4511
- color: a.textPrimary,
4592
+ color: o.textPrimary,
4512
4593
  fontSize: "14px",
4513
4594
  fontWeight: 500,
4514
4595
  cursor: "pointer",
@@ -4517,7 +4598,7 @@ const qs = [
4517
4598
  transition: "all 0.2s ease"
4518
4599
  },
4519
4600
  onMouseOver: (y) => {
4520
- y.currentTarget.style.backgroundColor = a.border, y.currentTarget.style.transform = "translateY(-1px)";
4601
+ y.currentTarget.style.backgroundColor = o.border, y.currentTarget.style.transform = "translateY(-1px)";
4521
4602
  },
4522
4603
  onMouseOut: (y) => {
4523
4604
  y.currentTarget.style.backgroundColor = "transparent", y.currentTarget.style.transform = "translateY(0)";
@@ -4554,7 +4635,7 @@ const qs = [
4554
4635
  y.currentTarget.style.transform = "translateY(0)", y.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)";
4555
4636
  },
4556
4637
  children: [
4557
- /* @__PURE__ */ n.jsx(De, { size: 16 }),
4638
+ /* @__PURE__ */ n.jsx(Fe, { size: 16 }),
4558
4639
  "Continue to Delete"
4559
4640
  ]
4560
4641
  }
@@ -4589,14 +4670,14 @@ const qs = [
4589
4670
  color: "white",
4590
4671
  flexShrink: 0
4591
4672
  },
4592
- children: /* @__PURE__ */ n.jsx(_t, { size: 24 })
4673
+ children: /* @__PURE__ */ n.jsx(Dt, { size: 24 })
4593
4674
  }
4594
4675
  ),
4595
4676
  /* @__PURE__ */ n.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ n.jsx(
4596
4677
  "h3",
4597
4678
  {
4598
4679
  style: {
4599
- color: a.textPrimary,
4680
+ color: o.textPrimary,
4600
4681
  margin: 0,
4601
4682
  fontSize: "20px",
4602
4683
  fontWeight: 700,
@@ -4613,7 +4694,7 @@ const qs = [
4613
4694
  "p",
4614
4695
  {
4615
4696
  style: {
4616
- color: a.textSecondary,
4697
+ color: o.textSecondary,
4617
4698
  marginBottom: "16px",
4618
4699
  fontSize: "14px",
4619
4700
  lineHeight: "1.5"
@@ -4621,7 +4702,7 @@ const qs = [
4621
4702
  children: [
4622
4703
  "Type",
4623
4704
  " ",
4624
- /* @__PURE__ */ n.jsx("strong", { style: { color: a.textPrimary }, children: '"delete my account"' }),
4705
+ /* @__PURE__ */ n.jsx("strong", { style: { color: o.textPrimary }, children: '"delete my account"' }),
4625
4706
  " ",
4626
4707
  "to confirm:"
4627
4708
  ]
@@ -4638,16 +4719,16 @@ const qs = [
4638
4719
  width: "100%",
4639
4720
  padding: "14px 16px",
4640
4721
  borderRadius: "10px",
4641
- border: `2px solid ${C ? a.success : a.error}`,
4722
+ border: `2px solid ${C ? o.success : o.error}`,
4642
4723
  backgroundColor: "transparent",
4643
- color: a.textPrimary,
4724
+ color: o.textPrimary,
4644
4725
  fontSize: "15px",
4645
4726
  outline: "none",
4646
4727
  transition: "all 0.2s ease",
4647
4728
  boxSizing: "border-box"
4648
4729
  },
4649
4730
  onFocus: (y) => {
4650
- y.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
4731
+ y.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
4651
4732
  },
4652
4733
  onBlur: (y) => {
4653
4734
  y.target.style.boxShadow = "none";
@@ -4663,12 +4744,12 @@ const qs = [
4663
4744
  alignItems: "center",
4664
4745
  gap: "8px",
4665
4746
  marginTop: "10px",
4666
- color: a.success,
4747
+ color: o.success,
4667
4748
  fontSize: "14px",
4668
4749
  fontWeight: 500
4669
4750
  },
4670
4751
  children: [
4671
- /* @__PURE__ */ n.jsx(Ge, { size: 16 }),
4752
+ /* @__PURE__ */ n.jsx(Xe, { size: 16 }),
4672
4753
  /* @__PURE__ */ n.jsx("span", { children: "Confirmation accepted" })
4673
4754
  ]
4674
4755
  }
@@ -4694,9 +4775,9 @@ const qs = [
4694
4775
  style: {
4695
4776
  padding: "10px 24px",
4696
4777
  borderRadius: "10px",
4697
- border: `1.5px solid ${a.border}`,
4778
+ border: `1.5px solid ${o.border}`,
4698
4779
  background: "transparent",
4699
- color: a.textPrimary,
4780
+ color: o.textPrimary,
4700
4781
  fontSize: "14px",
4701
4782
  fontWeight: 500,
4702
4783
  cursor: "pointer",
@@ -4705,7 +4786,7 @@ const qs = [
4705
4786
  transition: "all 0.2s ease"
4706
4787
  },
4707
4788
  onMouseOver: (y) => {
4708
- y.currentTarget.style.backgroundColor = a.border, y.currentTarget.style.transform = "translateY(-1px)";
4789
+ y.currentTarget.style.backgroundColor = o.border, y.currentTarget.style.transform = "translateY(-1px)";
4709
4790
  },
4710
4791
  onMouseOut: (y) => {
4711
4792
  y.currentTarget.style.backgroundColor = "transparent", y.currentTarget.style.transform = "translateY(0)";
@@ -4744,7 +4825,7 @@ const qs = [
4744
4825
  C && !h && (y.currentTarget.style.transform = "translateY(0)", y.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)");
4745
4826
  },
4746
4827
  children: [
4747
- /* @__PURE__ */ n.jsx(De, { size: 16 }),
4828
+ /* @__PURE__ */ n.jsx(Fe, { size: 16 }),
4748
4829
  "Yes, Delete My Account"
4749
4830
  ]
4750
4831
  }
@@ -4795,7 +4876,7 @@ const qs = [
4795
4876
  "h3",
4796
4877
  {
4797
4878
  style: {
4798
- color: a.textPrimary,
4879
+ color: o.textPrimary,
4799
4880
  margin: 0,
4800
4881
  fontSize: "20px",
4801
4882
  fontWeight: 700,
@@ -4808,7 +4889,7 @@ const qs = [
4808
4889
  "p",
4809
4890
  {
4810
4891
  style: {
4811
- color: a.textTertiary,
4892
+ color: o.textTertiary,
4812
4893
  margin: "4px 0 0 0",
4813
4894
  fontSize: "14px",
4814
4895
  lineHeight: "1.4"
@@ -4842,7 +4923,7 @@ const qs = [
4842
4923
  padding: "12px",
4843
4924
  borderRadius: "8px",
4844
4925
  transition: "all 0.2s ease",
4845
- backgroundColor: y.active ? `${a.accent}10` : "transparent"
4926
+ backgroundColor: y.active ? `${o.accent}10` : "transparent"
4846
4927
  },
4847
4928
  children: [
4848
4929
  /* @__PURE__ */ n.jsx(
@@ -4852,9 +4933,9 @@ const qs = [
4852
4933
  width: "8px",
4853
4934
  height: "8px",
4854
4935
  borderRadius: "50%",
4855
- backgroundColor: y.active ? a.accent : a.textTertiary,
4936
+ backgroundColor: y.active ? o.accent : o.textTertiary,
4856
4937
  transition: "all 0.3s ease",
4857
- boxShadow: y.active ? `0 0 0 4px ${a.accent}20` : "none"
4938
+ boxShadow: y.active ? `0 0 0 4px ${o.accent}20` : "none"
4858
4939
  }
4859
4940
  }
4860
4941
  ),
@@ -4863,7 +4944,7 @@ const qs = [
4863
4944
  {
4864
4945
  style: {
4865
4946
  fontSize: "14px",
4866
- color: y.active ? a.textPrimary : a.textSecondary,
4947
+ color: y.active ? o.textPrimary : o.textSecondary,
4867
4948
  fontWeight: y.active ? 500 : 400
4868
4949
  },
4869
4950
  children: y.text
@@ -4883,17 +4964,17 @@ const qs = [
4883
4964
  alignItems: "center",
4884
4965
  gap: "10px",
4885
4966
  padding: "16px",
4886
- background: `${a.accent}10`,
4967
+ background: `${o.accent}10`,
4887
4968
  borderRadius: "10px",
4888
4969
  fontSize: "14px",
4889
- color: a.textSecondary
4970
+ color: o.textSecondary
4890
4971
  },
4891
4972
  children: [
4892
4973
  /* @__PURE__ */ n.jsx(
4893
- cr,
4974
+ ur,
4894
4975
  {
4895
4976
  size: 18,
4896
- style: { color: a.accent, flexShrink: 0 }
4977
+ style: { color: o.accent, flexShrink: 0 }
4897
4978
  }
4898
4979
  ),
4899
4980
  /* @__PURE__ */ n.jsx("span", { children: "You will be redirected to the login page shortly" })
@@ -4927,7 +5008,7 @@ const qs = [
4927
5008
  color: "white",
4928
5009
  flexShrink: 0
4929
5010
  },
4930
- children: /* @__PURE__ */ n.jsx(Ge, { size: 20 })
5011
+ children: /* @__PURE__ */ n.jsx(Xe, { size: 20 })
4931
5012
  }
4932
5013
  ),
4933
5014
  /* @__PURE__ */ n.jsxs("div", { style: { flex: 1 }, children: [
@@ -4935,7 +5016,7 @@ const qs = [
4935
5016
  "h3",
4936
5017
  {
4937
5018
  style: {
4938
- color: a.textPrimary,
5019
+ color: o.textPrimary,
4939
5020
  margin: 0,
4940
5021
  fontSize: "20px",
4941
5022
  fontWeight: 700,
@@ -4948,7 +5029,7 @@ const qs = [
4948
5029
  "p",
4949
5030
  {
4950
5031
  style: {
4951
- color: a.textTertiary,
5032
+ color: o.textTertiary,
4952
5033
  margin: "4px 0 0 0",
4953
5034
  fontSize: "14px",
4954
5035
  lineHeight: "1.4"
@@ -4966,18 +5047,18 @@ const qs = [
4966
5047
  style: {
4967
5048
  textAlign: "center",
4968
5049
  padding: "20px",
4969
- background: `${a.success}10`,
4970
- border: `1px solid ${a.success}20`,
5050
+ background: `${o.success}10`,
5051
+ border: `1px solid ${o.success}20`,
4971
5052
  borderRadius: "12px",
4972
5053
  marginBottom: "24px"
4973
5054
  },
4974
5055
  children: [
4975
5056
  /* @__PURE__ */ n.jsx(
4976
- Ge,
5057
+ Xe,
4977
5058
  {
4978
5059
  size: 48,
4979
5060
  style: {
4980
- color: a.success,
5061
+ color: o.success,
4981
5062
  marginBottom: "12px",
4982
5063
  display: "block",
4983
5064
  margin: "0 auto 12px auto"
@@ -4988,7 +5069,7 @@ const qs = [
4988
5069
  "p",
4989
5070
  {
4990
5071
  style: {
4991
- color: a.textPrimary,
5072
+ color: o.textPrimary,
4992
5073
  fontSize: "16px",
4993
5074
  fontWeight: 600,
4994
5075
  margin: "0 0 8px 0"
@@ -5000,7 +5081,7 @@ const qs = [
5000
5081
  "p",
5001
5082
  {
5002
5083
  style: {
5003
- color: a.textSecondary,
5084
+ color: o.textSecondary,
5004
5085
  fontSize: "14px",
5005
5086
  margin: 0,
5006
5087
  lineHeight: "1.5"
@@ -5019,10 +5100,10 @@ const qs = [
5019
5100
  alignItems: "center",
5020
5101
  gap: "10px",
5021
5102
  padding: "16px",
5022
- background: `${a.accent}10`,
5103
+ background: `${o.accent}10`,
5023
5104
  borderRadius: "10px",
5024
5105
  fontSize: "14px",
5025
- color: a.textSecondary,
5106
+ color: o.textSecondary,
5026
5107
  justifyContent: "center"
5027
5108
  },
5028
5109
  children: [
@@ -5032,7 +5113,7 @@ const qs = [
5032
5113
  size: 16,
5033
5114
  style: {
5034
5115
  animation: "spin 1s linear infinite",
5035
- color: a.accent
5116
+ color: o.accent
5036
5117
  }
5037
5118
  }
5038
5119
  ),
@@ -5064,8 +5145,8 @@ const qs = [
5064
5145
  "div",
5065
5146
  {
5066
5147
  style: {
5067
- backgroundColor: a.surface,
5068
- border: `1px solid ${a.border}`,
5148
+ backgroundColor: o.surface,
5149
+ border: `1px solid ${o.border}`,
5069
5150
  borderRadius: "20px",
5070
5151
  width: "100%",
5071
5152
  maxWidth: "480px",
@@ -5135,13 +5216,13 @@ const qs = [
5135
5216
  ]
5136
5217
  }
5137
5218
  );
5138
- }, Ws = ({
5219
+ }, Ys = ({
5139
5220
  isOpen: t,
5140
5221
  onClose: e,
5141
5222
  onUpdate: r,
5142
5223
  colors: s
5143
5224
  }) => {
5144
- const [i, o] = R(""), [a, c] = R(!1), [h, u] = R(!1), [d, m] = R({ isValid: !1, message: "", type: null });
5225
+ const [i, a] = R(""), [o, c] = R(!1), [h, u] = R(!1), [d, m] = R({ isValid: !1, message: "", type: null });
5145
5226
  if (te(() => {
5146
5227
  if (typeof window > "u") return;
5147
5228
  const p = () => {
@@ -5176,7 +5257,7 @@ const qs = [
5176
5257
  if (!(!i || !d.isValid)) {
5177
5258
  c(!0);
5178
5259
  try {
5179
- await r(i) && (o(""), e());
5260
+ await r(i) && (a(""), e());
5180
5261
  } finally {
5181
5262
  c(!1);
5182
5263
  }
@@ -5250,7 +5331,7 @@ const qs = [
5250
5331
  color: s.accent,
5251
5332
  flexShrink: 0
5252
5333
  },
5253
- children: /* @__PURE__ */ n.jsx(nt, { size: 22 })
5334
+ children: /* @__PURE__ */ n.jsx(st, { size: 22 })
5254
5335
  }
5255
5336
  ),
5256
5337
  /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
@@ -5325,7 +5406,7 @@ const qs = [
5325
5406
  gap: "6px"
5326
5407
  },
5327
5408
  children: [
5328
- /* @__PURE__ */ n.jsx(gs, { size: 16 }),
5409
+ /* @__PURE__ */ n.jsx(bs, { size: 16 }),
5329
5410
  "Avatar URL"
5330
5411
  ]
5331
5412
  }
@@ -5338,7 +5419,7 @@ const qs = [
5338
5419
  id: "avatar-url",
5339
5420
  placeholder: "https://example.com/your-avatar.jpg",
5340
5421
  value: i,
5341
- onChange: (p) => o(p.target.value),
5422
+ onChange: (p) => a(p.target.value),
5342
5423
  style: {
5343
5424
  width: "100%",
5344
5425
  padding: "14px 16px",
@@ -5358,7 +5439,7 @@ const qs = [
5358
5439
  onBlur: (p) => {
5359
5440
  p.target.style.borderColor = d.type === "error" ? s.error : d.type === "success" ? s.success : s.border, p.target.style.boxShadow = "none";
5360
5441
  },
5361
- disabled: a
5442
+ disabled: o
5362
5443
  }
5363
5444
  ),
5364
5445
  /* @__PURE__ */ n.jsx(
@@ -5371,7 +5452,7 @@ const qs = [
5371
5452
  transform: "translateY(-50%)",
5372
5453
  color: s.textTertiary
5373
5454
  },
5374
- children: /* @__PURE__ */ n.jsx(or, { size: 18 })
5455
+ children: /* @__PURE__ */ n.jsx(cr, { size: 18 })
5375
5456
  }
5376
5457
  )
5377
5458
  ] }),
@@ -5458,7 +5539,7 @@ const qs = [
5458
5539
  "button",
5459
5540
  {
5460
5541
  onClick: e,
5461
- disabled: a,
5542
+ disabled: o,
5462
5543
  style: {
5463
5544
  padding: "10px 24px",
5464
5545
  borderRadius: "10px",
@@ -5467,17 +5548,17 @@ const qs = [
5467
5548
  color: s.textPrimary,
5468
5549
  fontSize: "14px",
5469
5550
  fontWeight: 500,
5470
- cursor: a ? "not-allowed" : "pointer",
5551
+ cursor: o ? "not-allowed" : "pointer",
5471
5552
  flex: h ? "none" : 1,
5472
5553
  minWidth: h ? "100%" : "120px",
5473
- opacity: a ? 0.6 : 1,
5554
+ opacity: o ? 0.6 : 1,
5474
5555
  transition: "all 0.2s ease"
5475
5556
  },
5476
5557
  onMouseOver: (p) => {
5477
- a || (p.currentTarget.style.backgroundColor = s.border, p.currentTarget.style.transform = "translateY(-1px)");
5558
+ o || (p.currentTarget.style.backgroundColor = s.border, p.currentTarget.style.transform = "translateY(-1px)");
5478
5559
  },
5479
5560
  onMouseOut: (p) => {
5480
- a || (p.currentTarget.style.backgroundColor = "transparent", p.currentTarget.style.transform = "translateY(0)");
5561
+ o || (p.currentTarget.style.backgroundColor = "transparent", p.currentTarget.style.transform = "translateY(0)");
5481
5562
  },
5482
5563
  children: "Cancel"
5483
5564
  }
@@ -5486,7 +5567,7 @@ const qs = [
5486
5567
  "button",
5487
5568
  {
5488
5569
  onClick: P,
5489
- disabled: a || !d.isValid,
5570
+ disabled: o || !d.isValid,
5490
5571
  style: {
5491
5572
  padding: "10px 24px",
5492
5573
  borderRadius: "10px",
@@ -5495,24 +5576,24 @@ const qs = [
5495
5576
  color: "#fff",
5496
5577
  fontSize: "14px",
5497
5578
  fontWeight: 600,
5498
- cursor: a || !d.isValid ? "not-allowed" : "pointer",
5579
+ cursor: o || !d.isValid ? "not-allowed" : "pointer",
5499
5580
  flex: h ? "none" : 1,
5500
5581
  minWidth: h ? "100%" : "140px",
5501
- opacity: a || !d.isValid ? 0.6 : 1,
5582
+ opacity: o || !d.isValid ? 0.6 : 1,
5502
5583
  display: "flex",
5503
5584
  alignItems: "center",
5504
5585
  justifyContent: "center",
5505
5586
  gap: "8px",
5506
5587
  transition: "all 0.2s ease",
5507
- boxShadow: a || !d.isValid ? "none" : `0 4px 12px ${s.accent}40`
5588
+ boxShadow: o || !d.isValid ? "none" : `0 4px 12px ${s.accent}40`
5508
5589
  },
5509
5590
  onMouseOver: (p) => {
5510
- !a && d.isValid && (p.currentTarget.style.transform = "translateY(-1px)", p.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5591
+ !o && d.isValid && (p.currentTarget.style.transform = "translateY(-1px)", p.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5511
5592
  },
5512
5593
  onMouseOut: (p) => {
5513
- !a && d.isValid && (p.currentTarget.style.transform = "translateY(0)", p.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5594
+ !o && d.isValid && (p.currentTarget.style.transform = "translateY(0)", p.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5514
5595
  },
5515
- children: a ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5596
+ children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5516
5597
  /* @__PURE__ */ n.jsx(
5517
5598
  ie,
5518
5599
  {
@@ -5524,7 +5605,7 @@ const qs = [
5524
5605
  ),
5525
5606
  "Updating..."
5526
5607
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5527
- /* @__PURE__ */ n.jsx(nt, { size: 16 }),
5608
+ /* @__PURE__ */ n.jsx(st, { size: 16 }),
5528
5609
  "Update Avatar"
5529
5610
  ] })
5530
5611
  }
@@ -5587,15 +5668,15 @@ const qs = [
5587
5668
  ]
5588
5669
  }
5589
5670
  );
5590
- }, Bs = ({
5671
+ }, Ks = ({
5591
5672
  isOpen: t,
5592
5673
  onClose: e,
5593
5674
  onSuccess: r,
5594
5675
  onError: s,
5595
5676
  userId: i,
5596
- colors: o
5677
+ colors: a
5597
5678
  }) => {
5598
- const a = me(), [c, h] = R({
5679
+ const o = me(), [c, h] = R({
5599
5680
  currentPassword: "",
5600
5681
  newPassword: "",
5601
5682
  confirmPassword: ""
@@ -5612,10 +5693,10 @@ const qs = [
5612
5693
  return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
5613
5694
  }, []), !t) return null;
5614
5695
  const C = (g) => {
5615
- const { name: v, value: F } = g.target;
5616
- h((U) => ({ ...U, [v]: F })), u[v] && d((U) => ({ ...U, [v]: "" }));
5696
+ const { name: j, value: F } = g.target;
5697
+ h((U) => ({ ...U, [j]: F })), u[j] && d((U) => ({ ...U, [j]: "" }));
5617
5698
  }, T = (g) => {
5618
- p((v) => ({ ...v, [g]: !v[g] }));
5699
+ p((j) => ({ ...j, [g]: !j[g] }));
5619
5700
  }, A = () => {
5620
5701
  const g = {};
5621
5702
  return c.currentPassword || (g.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (g.newPassword = "Password must be at least 6 characters") : g.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (g.confirmPassword = "Passwords do not match"), d(g), Object.keys(g).length === 0;
@@ -5623,18 +5704,18 @@ const qs = [
5623
5704
  if (g.preventDefault(), !!A()) {
5624
5705
  P(!0);
5625
5706
  try {
5626
- const { data: v } = await a.changePassword({
5707
+ const { data: j } = await o.changePassword({
5627
5708
  currentPassword: c.currentPassword,
5628
5709
  newPassword: c.newPassword,
5629
5710
  userId: i
5630
5711
  });
5631
- v.success ? (r(v.message || "Password updated successfully"), h({
5712
+ j.success ? (r(j.message || "Password updated successfully"), h({
5632
5713
  currentPassword: "",
5633
5714
  newPassword: "",
5634
5715
  confirmPassword: ""
5635
- }), e()) : s(v.message || "Failed to update password");
5636
- } catch (v) {
5637
- s(v.response?.data?.message || "Something went wrong");
5716
+ }), e()) : s(j.message || "Failed to update password");
5717
+ } catch (j) {
5718
+ s(j.response?.data?.message || "Something went wrong");
5638
5719
  } finally {
5639
5720
  P(!1);
5640
5721
  }
@@ -5643,7 +5724,7 @@ const qs = [
5643
5724
  {
5644
5725
  field: "currentPassword",
5645
5726
  label: "Current Password",
5646
- icon: /* @__PURE__ */ n.jsx(ct, { size: 18 })
5727
+ icon: /* @__PURE__ */ n.jsx(ut, { size: 18 })
5647
5728
  },
5648
5729
  {
5649
5730
  field: "newPassword",
@@ -5674,8 +5755,8 @@ const qs = [
5674
5755
  "div",
5675
5756
  {
5676
5757
  style: {
5677
- backgroundColor: o.surface,
5678
- border: `1px solid ${o.border}`,
5758
+ backgroundColor: a.surface,
5759
+ border: `1px solid ${a.border}`,
5679
5760
  borderRadius: "16px",
5680
5761
  maxWidth: "440px",
5681
5762
  width: "100%",
@@ -5714,11 +5795,11 @@ const qs = [
5714
5795
  width: "40px",
5715
5796
  height: "40px",
5716
5797
  borderRadius: "10px",
5717
- background: `linear-gradient(135deg, ${o.accent}20, ${o.accent}40)`,
5798
+ background: `linear-gradient(135deg, ${a.accent}20, ${a.accent}40)`,
5718
5799
  display: "flex",
5719
5800
  alignItems: "center",
5720
5801
  justifyContent: "center",
5721
- color: o.accent,
5802
+ color: a.accent,
5722
5803
  flexShrink: 0
5723
5804
  },
5724
5805
  children: /* @__PURE__ */ n.jsx(ge, { size: 20 })
@@ -5728,7 +5809,7 @@ const qs = [
5728
5809
  "h3",
5729
5810
  {
5730
5811
  style: {
5731
- color: o.textPrimary,
5812
+ color: a.textPrimary,
5732
5813
  margin: 0,
5733
5814
  fontSize: "18px",
5734
5815
  fontWeight: 600,
@@ -5748,7 +5829,7 @@ const qs = [
5748
5829
  style: {
5749
5830
  background: "transparent",
5750
5831
  border: "none",
5751
- color: o.textTertiary,
5832
+ color: a.textTertiary,
5752
5833
  cursor: "pointer",
5753
5834
  padding: "8px",
5754
5835
  borderRadius: "8px",
@@ -5760,10 +5841,10 @@ const qs = [
5760
5841
  justifyContent: "center"
5761
5842
  },
5762
5843
  onMouseOver: (g) => {
5763
- g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.color = o.textPrimary;
5844
+ g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.color = a.textPrimary;
5764
5845
  },
5765
5846
  onMouseOut: (g) => {
5766
- g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = o.textTertiary;
5847
+ g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = a.textTertiary;
5767
5848
  },
5768
5849
  children: /* @__PURE__ */ n.jsx(ze, { size: 20 })
5769
5850
  }
@@ -5772,7 +5853,7 @@ const qs = [
5772
5853
  }
5773
5854
  ),
5774
5855
  /* @__PURE__ */ n.jsxs("form", { onSubmit: y, children: [
5775
- _.map(({ field: g, label: v, icon: F }) => /* @__PURE__ */ n.jsxs(
5856
+ _.map(({ field: g, label: j, icon: F }) => /* @__PURE__ */ n.jsxs(
5776
5857
  "div",
5777
5858
  {
5778
5859
  style: {
@@ -5787,12 +5868,12 @@ const qs = [
5787
5868
  style: {
5788
5869
  display: "block",
5789
5870
  marginBottom: "8px",
5790
- color: o.textPrimary,
5871
+ color: a.textPrimary,
5791
5872
  fontSize: "14px",
5792
5873
  fontWeight: 500,
5793
5874
  lineHeight: "1.4"
5794
5875
  },
5795
- children: v
5876
+ children: j
5796
5877
  }
5797
5878
  ),
5798
5879
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
@@ -5804,7 +5885,7 @@ const qs = [
5804
5885
  left: "14px",
5805
5886
  top: "50%",
5806
5887
  transform: "translateY(-50%)",
5807
- color: o.textTertiary,
5888
+ color: a.textTertiary,
5808
5889
  zIndex: 2
5809
5890
  },
5810
5891
  children: F
@@ -5816,26 +5897,26 @@ const qs = [
5816
5897
  type: O[g] ? "text" : "password",
5817
5898
  id: g,
5818
5899
  name: g,
5819
- placeholder: `Enter ${v.toLowerCase()}`,
5900
+ placeholder: `Enter ${j.toLowerCase()}`,
5820
5901
  value: c[g],
5821
5902
  onChange: C,
5822
5903
  style: {
5823
5904
  width: "100%",
5824
5905
  padding: "14px 48px 14px 44px",
5825
5906
  borderRadius: "10px",
5826
- border: `1.5px solid ${u[g] ? o.error : o.border}`,
5907
+ border: `1.5px solid ${u[g] ? a.error : a.border}`,
5827
5908
  backgroundColor: "transparent",
5828
- color: o.textPrimary,
5909
+ color: a.textPrimary,
5829
5910
  fontSize: "15px",
5830
5911
  outline: "none",
5831
5912
  transition: "all 0.2s ease",
5832
5913
  boxSizing: "border-box"
5833
5914
  },
5834
5915
  onFocus: (U) => {
5835
- U.target.style.borderColor = o.accent, U.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
5916
+ U.target.style.borderColor = a.accent, U.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
5836
5917
  },
5837
5918
  onBlur: (U) => {
5838
- U.target.style.borderColor = u[g] ? o.error : o.border, U.target.style.boxShadow = "none";
5919
+ U.target.style.borderColor = u[g] ? a.error : a.border, U.target.style.boxShadow = "none";
5839
5920
  }
5840
5921
  }
5841
5922
  ),
@@ -5852,7 +5933,7 @@ const qs = [
5852
5933
  background: "transparent",
5853
5934
  border: "none",
5854
5935
  cursor: "pointer",
5855
- color: o.textTertiary,
5936
+ color: a.textTertiary,
5856
5937
  padding: "4px",
5857
5938
  borderRadius: "4px",
5858
5939
  width: "32px",
@@ -5862,12 +5943,12 @@ const qs = [
5862
5943
  justifyContent: "center"
5863
5944
  },
5864
5945
  onMouseOver: (U) => {
5865
- U.currentTarget.style.backgroundColor = o.border, U.currentTarget.style.color = o.textPrimary;
5946
+ U.currentTarget.style.backgroundColor = a.border, U.currentTarget.style.color = a.textPrimary;
5866
5947
  },
5867
5948
  onMouseOut: (U) => {
5868
- U.currentTarget.style.backgroundColor = "transparent", U.currentTarget.style.color = o.textTertiary;
5949
+ U.currentTarget.style.backgroundColor = "transparent", U.currentTarget.style.color = a.textTertiary;
5869
5950
  },
5870
- children: O[g] ? /* @__PURE__ */ n.jsx(ot, { size: 18 }) : /* @__PURE__ */ n.jsx(lt, { size: 18 })
5951
+ children: O[g] ? /* @__PURE__ */ n.jsx(ct, { size: 18 }) : /* @__PURE__ */ n.jsx(dt, { size: 18 })
5871
5952
  }
5872
5953
  )
5873
5954
  ] }),
@@ -5876,7 +5957,7 @@ const qs = [
5876
5957
  {
5877
5958
  style: {
5878
5959
  fontSize: "13px",
5879
- color: o.error,
5960
+ color: a.error,
5880
5961
  marginTop: "6px",
5881
5962
  display: "flex",
5882
5963
  alignItems: "center",
@@ -5912,9 +5993,9 @@ const qs = [
5912
5993
  style: {
5913
5994
  padding: "14px 24px",
5914
5995
  borderRadius: "10px",
5915
- border: `1.5px solid ${o.border}`,
5996
+ border: `1.5px solid ${a.border}`,
5916
5997
  background: "transparent",
5917
- color: o.textPrimary,
5998
+ color: a.textPrimary,
5918
5999
  fontSize: "14px",
5919
6000
  fontWeight: 500,
5920
6001
  cursor: m ? "not-allowed" : "pointer",
@@ -5924,7 +6005,7 @@ const qs = [
5924
6005
  transition: "all 0.2s ease"
5925
6006
  },
5926
6007
  onMouseOver: (g) => {
5927
- m || (g.currentTarget.style.backgroundColor = o.border, g.currentTarget.style.transform = "translateY(-1px)");
6008
+ m || (g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)");
5928
6009
  },
5929
6010
  onMouseOut: (g) => {
5930
6011
  m || (g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)");
@@ -5941,7 +6022,7 @@ const qs = [
5941
6022
  padding: "14px 24px",
5942
6023
  borderRadius: "10px",
5943
6024
  border: "none",
5944
- background: `linear-gradient(135deg, ${o.accent}, ${o.accent}E6)`,
6025
+ background: `linear-gradient(135deg, ${a.accent}, ${a.accent}E6)`,
5945
6026
  color: "#fff",
5946
6027
  fontSize: "14px",
5947
6028
  fontWeight: 600,
@@ -5954,13 +6035,13 @@ const qs = [
5954
6035
  justifyContent: "center",
5955
6036
  gap: "8px",
5956
6037
  transition: "all 0.2s ease",
5957
- boxShadow: m ? "none" : `0 4px 12px ${o.accent}40`
6038
+ boxShadow: m ? "none" : `0 4px 12px ${a.accent}40`
5958
6039
  },
5959
6040
  onMouseOver: (g) => {
5960
- m || (g.currentTarget.style.transform = "translateY(-1px)", g.currentTarget.style.boxShadow = `0 6px 20px ${o.accent}60`);
6041
+ m || (g.currentTarget.style.transform = "translateY(-1px)", g.currentTarget.style.boxShadow = `0 6px 20px ${a.accent}60`);
5961
6042
  },
5962
6043
  onMouseOut: (g) => {
5963
- m || (g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = `0 4px 12px ${o.accent}40`);
6044
+ m || (g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = `0 4px 12px ${a.accent}40`);
5964
6045
  },
5965
6046
  children: m ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5966
6047
  /* @__PURE__ */ n.jsx(
@@ -5995,12 +6076,12 @@ const qs = [
5995
6076
  }
5996
6077
 
5997
6078
  .change-password-modal::-webkit-scrollbar-thumb {
5998
- background: ${o.border};
6079
+ background: ${a.border};
5999
6080
  border-radius: 3px;
6000
6081
  }
6001
6082
 
6002
6083
  .change-password-modal::-webkit-scrollbar-thumb:hover {
6003
- background: ${o.textTertiary};
6084
+ background: ${a.textTertiary};
6004
6085
  }
6005
6086
 
6006
6087
  /* Mobile responsiveness */
@@ -6024,14 +6105,14 @@ const qs = [
6024
6105
  )
6025
6106
  }
6026
6107
  );
6027
- }, Hs = ({
6108
+ }, Js = ({
6028
6109
  isOpen: t,
6029
6110
  onClose: e,
6030
6111
  onVerify: r,
6031
6112
  onSendOTP: s,
6032
6113
  verifyFormData: i,
6033
- setVerifyFormData: o,
6034
- otpSent: a,
6114
+ setVerifyFormData: a,
6115
+ otpSent: o,
6035
6116
  verifying: c,
6036
6117
  user: h,
6037
6118
  colors: u,
@@ -6039,7 +6120,7 @@ const qs = [
6039
6120
  }) => {
6040
6121
  if (!t) return null;
6041
6122
  const m = () => {
6042
- e(), o({ email: h?.email || "", otp: "" });
6123
+ e(), a({ email: h?.email || "", otp: "" });
6043
6124
  };
6044
6125
  return /* @__PURE__ */ n.jsxs(
6045
6126
  "div",
@@ -6081,7 +6162,7 @@ const qs = [
6081
6162
  {
6082
6163
  type: "email",
6083
6164
  value: i.email,
6084
- onChange: (P) => o((O) => ({ ...O, email: P.target.value })),
6165
+ onChange: (P) => a((O) => ({ ...O, email: P.target.value })),
6085
6166
  placeholder: "Enter your email",
6086
6167
  style: {
6087
6168
  backgroundColor: u.surfaceLight,
@@ -6095,16 +6176,16 @@ const qs = [
6095
6176
  )
6096
6177
  ] })
6097
6178
  ] }),
6098
- a && /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6179
+ o && /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6099
6180
  /* @__PURE__ */ n.jsx("label", { style: { color: u.textSecondary }, children: "OTP" }),
6100
6181
  /* @__PURE__ */ n.jsxs("div", { className: "input-container", children: [
6101
- /* @__PURE__ */ n.jsx(lr, { size: 18, style: { color: u.textTertiary }, "aria-hidden": "true" }),
6182
+ /* @__PURE__ */ n.jsx(dr, { size: 18, style: { color: u.textTertiary }, "aria-hidden": "true" }),
6102
6183
  /* @__PURE__ */ n.jsx(
6103
6184
  "input",
6104
6185
  {
6105
6186
  type: "text",
6106
6187
  value: i.otp,
6107
- onChange: (P) => o((O) => ({ ...O, otp: P.target.value })),
6188
+ onChange: (P) => a((O) => ({ ...O, otp: P.target.value })),
6108
6189
  placeholder: "Enter OTP",
6109
6190
  style: {
6110
6191
  backgroundColor: u.surfaceLight,
@@ -6118,7 +6199,7 @@ const qs = [
6118
6199
  )
6119
6200
  ] })
6120
6201
  ] }),
6121
- /* @__PURE__ */ n.jsx("div", { className: "modal-actions", children: a ? /* @__PURE__ */ n.jsxs(
6202
+ /* @__PURE__ */ n.jsx("div", { className: "modal-actions", children: o ? /* @__PURE__ */ n.jsxs(
6122
6203
  "button",
6123
6204
  {
6124
6205
  type: "submit",
@@ -6147,7 +6228,7 @@ const qs = [
6147
6228
  },
6148
6229
  "aria-label": c ? "Sending OTP" : "Send OTP",
6149
6230
  children: [
6150
- c ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ut, { size: 16, "aria-hidden": "true" }),
6231
+ c ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ft, { size: 16, "aria-hidden": "true" }),
6151
6232
  c ? "Sending..." : "Send OTP"
6152
6233
  ]
6153
6234
  }
@@ -6307,16 +6388,16 @@ const qs = [
6307
6388
  ]
6308
6389
  }
6309
6390
  );
6310
- }, gi = ({
6391
+ }, vi = ({
6311
6392
  token: t,
6312
6393
  user: e = null,
6313
6394
  darkMode: r = !0,
6314
6395
  homeUrl: s,
6315
6396
  onLogout: i,
6316
- onVerify: o,
6317
- primaryColor: a = "#00C212"
6397
+ onVerify: a,
6398
+ primaryColor: o = "#00C212"
6318
6399
  }) => {
6319
- const c = me(), [h, u] = R(null), [d, m] = R(e), [P, O] = R(!0), [p, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(!1), [F, U] = R(!1), [M, X] = R(!1), [E, V] = R(!1), [z, I] = R(null), [W, Z] = R(!1), [B, K] = R({
6400
+ const c = me(), [h, u] = R(null), [d, m] = R(e), [P, O] = R(!0), [p, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g, j] = R(!1), [F, U] = R(!1), [M, X] = R(!1), [E, V] = R(!1), [z, I] = R(null), [W, Z] = R(!1), [B, K] = R({
6320
6401
  email: "",
6321
6402
  otp: ""
6322
6403
  }), [L, l] = R(!1), [b, S] = R(!1);
@@ -6326,8 +6407,8 @@ const qs = [
6326
6407
  return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
6327
6408
  }
6328
6409
  }, []);
6329
- const j = (k, N) => {
6330
- I({ type: k, message: N }), setTimeout(() => I(null), 3e3);
6410
+ const v = (k, D) => {
6411
+ I({ type: k, message: D }), setTimeout(() => I(null), 3e3);
6331
6412
  }, G = () => {
6332
6413
  V(!0);
6333
6414
  const k = setTimeout(() => {
@@ -6336,9 +6417,9 @@ const qs = [
6336
6417
  return () => clearTimeout(k);
6337
6418
  };
6338
6419
  te(() => {
6339
- const k = (N) => {
6420
+ const k = (D) => {
6340
6421
  const H = document.querySelector(".dropdown-container");
6341
- H && !H.contains(N.target) && G();
6422
+ H && !H.contains(D.target) && G();
6342
6423
  };
6343
6424
  return M && document.addEventListener("mousedown", k), () => {
6344
6425
  document.removeEventListener("mousedown", k);
@@ -6346,11 +6427,11 @@ const qs = [
6346
6427
  }, [M]);
6347
6428
  const ue = async () => {
6348
6429
  if (!B.email || !/\S+@\S+\.\S+/.test(B.email)) {
6349
- j("error", "Please enter a valid email");
6430
+ v("error", "Please enter a valid email");
6350
6431
  return;
6351
6432
  }
6352
6433
  if (!d?.id) {
6353
- j("error", "User not found. Cannot send OTP.");
6434
+ v("error", "User not found. Cannot send OTP.");
6354
6435
  return;
6355
6436
  }
6356
6437
  try {
@@ -6358,119 +6439,119 @@ const qs = [
6358
6439
  const k = await c.requestEmailVerificationOTP({
6359
6440
  userId: d.id,
6360
6441
  email: B.email
6361
- }), N = k?.data?.success ?? k?.success, H = k?.data?.message ?? k?.message;
6362
- N ? (j("success", H || "OTP sent to email!"), l(!0)) : j("error", H || "Failed to send OTP");
6442
+ }), D = k?.data?.success ?? k?.success, H = k?.data?.message ?? k?.message;
6443
+ D ? (v("success", H || "OTP sent to email!"), l(!0)) : v("error", H || "Failed to send OTP");
6363
6444
  } catch (k) {
6364
- const N = k?.response?.data?.message || k?.message || "Server error";
6365
- j("error", N);
6445
+ const D = k?.response?.data?.message || k?.message || "Server error";
6446
+ v("error", D);
6366
6447
  } finally {
6367
6448
  S(!1);
6368
6449
  }
6369
6450
  }, Y = async (k) => {
6370
6451
  if (k.preventDefault(), !B.email || !B.otp) {
6371
- j("error", "Please fill in all fields");
6452
+ v("error", "Please fill in all fields");
6372
6453
  return;
6373
6454
  }
6374
6455
  if (!d) {
6375
- j("error", "User not found");
6456
+ v("error", "User not found");
6376
6457
  return;
6377
6458
  }
6378
6459
  try {
6379
6460
  S(!0);
6380
- const N = await c.verifyEmail({
6461
+ const D = await c.verifyEmail({
6381
6462
  email: B.email,
6382
6463
  otp: B.otp
6383
- }), H = N?.data?.success ?? N?.success, Q = N?.data?.message ?? N?.message;
6464
+ }), H = D?.data?.success ?? D?.success, Q = D?.data?.message ?? D?.message;
6384
6465
  if (H) {
6385
- j("success", Q || "Email verified!");
6466
+ v("success", Q || "Email verified!");
6386
6467
  const le = { ...d, isVerified: !0 };
6387
6468
  m(le);
6388
6469
  const Se = d?.token ?? "";
6389
6470
  localStorage.setItem(
6390
6471
  "userInfo",
6391
6472
  JSON.stringify({ ...le, token: Se })
6392
- ), typeof o == "function" && o(le), K({ email: le.email, otp: "" }), l(!1), U?.(!1);
6473
+ ), typeof a == "function" && a(le), K({ email: le.email, otp: "" }), l(!1), U?.(!1);
6393
6474
  } else
6394
- j("error", Q || "Verification failed");
6395
- } catch (N) {
6396
- const H = N?.response?.data?.message || N?.message || "Something went wrong";
6397
- j("error", H);
6475
+ v("error", Q || "Verification failed");
6476
+ } catch (D) {
6477
+ const H = D?.response?.data?.message || D?.message || "Something went wrong";
6478
+ v("error", H);
6398
6479
  } finally {
6399
6480
  S(!1);
6400
6481
  }
6401
- }, oe = async (k) => {
6482
+ }, ae = async (k) => {
6402
6483
  if (!d) return !1;
6403
6484
  try {
6404
- const N = await c.updateUser({
6485
+ const D = await c.updateUser({
6405
6486
  userId: d.id,
6406
6487
  avatarUrl: k
6407
6488
  });
6408
- if (N?.success) {
6489
+ if (D?.success) {
6409
6490
  const H = {
6410
6491
  ...d,
6411
6492
  // 🔒 keep existing auth fields
6412
- ...N.user,
6493
+ ...D.user,
6413
6494
  // 🔁 merge backend response if present
6414
6495
  avatarUrl: k
6415
6496
  };
6416
- return m(H), j("success", "Avatar updated successfully!"), !0;
6497
+ return m(H), v("success", "Avatar updated successfully!"), !0;
6417
6498
  }
6418
- return j("error", N?.message || "Failed to update avatar"), !1;
6419
- } catch (N) {
6420
- return console.error("Avatar update error:", N), j("error", "Failed to update avatar"), !1;
6499
+ return v("error", D?.message || "Failed to update avatar"), !1;
6500
+ } catch (D) {
6501
+ return console.error("Avatar update error:", D), v("error", "Failed to update avatar"), !1;
6421
6502
  }
6422
- }, ve = async () => {
6503
+ }, je = async () => {
6423
6504
  if (d) {
6424
6505
  C(!0);
6425
6506
  try {
6426
- const k = d.email, N = await c.updateUser({
6507
+ const k = d.email, D = await c.updateUser({
6427
6508
  userId: d.id,
6428
6509
  ...d
6429
6510
  });
6430
- if (N.success && N.user) {
6431
- const H = N.user.email !== k, Q = {
6511
+ if (D.success && D.user) {
6512
+ const H = D.user.email !== k, Q = {
6432
6513
  ...d,
6433
6514
  // keep old state
6434
- ...N.user,
6515
+ ...D.user,
6435
6516
  // overwrite updated fields
6436
6517
  isVerified: H ? !1 : d.isVerified
6437
6518
  };
6438
- m(Q), localStorage.setItem("userInfo", JSON.stringify(Q)), j(
6519
+ m(Q), localStorage.setItem("userInfo", JSON.stringify(Q)), v(
6439
6520
  "success",
6440
6521
  H ? "Email updated. Please verify your new email." : "Profile updated successfully"
6441
6522
  ), w(!1);
6442
6523
  } else
6443
- j("error", N.message || "Update failed");
6524
+ v("error", D.message || "Update failed");
6444
6525
  } catch (k) {
6445
- console.error(k), j("error", "Update failed");
6526
+ console.error(k), v("error", "Update failed");
6446
6527
  } finally {
6447
6528
  C(!1);
6448
6529
  }
6449
6530
  }
6450
- }, Ve = async (k) => {
6531
+ }, Ye = async (k) => {
6451
6532
  try {
6452
- const N = await c.checkIfUserExists(k);
6453
- N?.success === !0 && N?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), m(null));
6454
- } catch (N) {
6455
- console.error("⚠️ User validation request failed:", N);
6533
+ const D = await c.checkIfUserExists(k);
6534
+ D?.success === !0 && D?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), m(null));
6535
+ } catch (D) {
6536
+ console.error("⚠️ User validation request failed:", D);
6456
6537
  }
6457
6538
  };
6458
6539
  te(() => {
6459
6540
  (async () => {
6460
6541
  try {
6461
6542
  O(!0);
6462
- const N = await c.checkUserSession();
6463
- if (N.user?.id) {
6464
- const H = N.user.id, Q = await c.getUserProfile({ userId: H });
6543
+ const D = await c.checkUserSession();
6544
+ if (D.user?.id) {
6545
+ const H = D.user.id, Q = await c.getUserProfile({ userId: H });
6465
6546
  if (Q.user) {
6466
6547
  const le = Q.user;
6467
- m(le), Ve(H);
6548
+ m(le), Ye(H);
6468
6549
  } else
6469
6550
  m(null), localStorage.removeItem("userInfo");
6470
6551
  } else
6471
6552
  m(null), localStorage.removeItem("userInfo");
6472
- } catch (N) {
6473
- console.error("User init failed:", N), m(null), localStorage.removeItem("userInfo");
6553
+ } catch (D) {
6554
+ console.error("User init failed:", D), m(null), localStorage.removeItem("userInfo");
6474
6555
  } finally {
6475
6556
  O(!1);
6476
6557
  }
@@ -6478,8 +6559,8 @@ const qs = [
6478
6559
  }, [e]), te(() => {
6479
6560
  d?.email && K((k) => ({ ...k, email: d.email }));
6480
6561
  }, [d?.email]);
6481
- const pt = (k, N) => {
6482
- let H = parseInt(k.replace("#", ""), 16), Q = (H >> 16) + N, le = (H >> 8 & 255) + N, Se = (H & 255) + N;
6562
+ const xt = (k, D) => {
6563
+ let H = parseInt(k.replace("#", ""), 16), Q = (H >> 16) + D, le = (H >> 8 & 255) + D, Se = (H & 255) + D;
6483
6564
  return Q = Math.min(255, Math.max(0, Q)), le = Math.min(255, Math.max(0, le)), Se = Math.min(255, Math.max(0, Se)), `#${(Se | le << 8 | Q << 16).toString(16).padStart(6, "0")}`;
6484
6565
  }, $ = r ? {
6485
6566
  background: "#000000",
@@ -6489,8 +6570,8 @@ const qs = [
6489
6570
  textPrimary: "#ffffff",
6490
6571
  textSecondary: "#d4d4d8",
6491
6572
  textTertiary: "#a1a1aa",
6492
- accent: a,
6493
- accentHover: pt(a, -15),
6573
+ accent: o,
6574
+ accentHover: xt(o, -15),
6494
6575
  success: "#10b981",
6495
6576
  error: "#ef4444",
6496
6577
  border: "#27272a",
@@ -6503,8 +6584,8 @@ const qs = [
6503
6584
  textPrimary: "#18181b",
6504
6585
  textSecondary: "#52525b",
6505
6586
  textTertiary: "#71717a",
6506
- accent: a,
6507
- accentHover: pt(a, -15),
6587
+ accent: o,
6588
+ accentHover: xt(o, -15),
6508
6589
  success: "#10b981",
6509
6590
  error: "#ef4444",
6510
6591
  border: "#e4e4e7",
@@ -6580,7 +6661,7 @@ const qs = [
6580
6661
  )
6581
6662
  }
6582
6663
  );
6583
- const ur = [
6664
+ const fr = [
6584
6665
  {
6585
6666
  label: "Full Name",
6586
6667
  value: d.name,
@@ -6600,14 +6681,14 @@ const qs = [
6600
6681
  value: d.phone || "Not set",
6601
6682
  name: "phone",
6602
6683
  type: "tel",
6603
- icon: Ps
6684
+ icon: Os
6604
6685
  },
6605
6686
  {
6606
6687
  label: "Address",
6607
6688
  value: d.address || "Not provided",
6608
6689
  name: "address",
6609
6690
  type: "text",
6610
- icon: Es
6691
+ icon: Ts
6611
6692
  }
6612
6693
  ];
6613
6694
  return /* @__PURE__ */ n.jsxs(
@@ -6726,7 +6807,7 @@ const qs = [
6726
6807
  rel: "noopener noreferrer",
6727
6808
  style: { position: "absolute", top: "18px", left: "18px" },
6728
6809
  children: /* @__PURE__ */ n.jsx(
6729
- ps,
6810
+ xs,
6730
6811
  {
6731
6812
  size: 20,
6732
6813
  style: {
@@ -6787,7 +6868,7 @@ const qs = [
6787
6868
  height: "32px"
6788
6869
  },
6789
6870
  "aria-label": "Change profile picture",
6790
- children: /* @__PURE__ */ n.jsx(nt, { size: 16, "aria-hidden": "true" })
6871
+ children: /* @__PURE__ */ n.jsx(st, { size: 16, "aria-hidden": "true" })
6791
6872
  }
6792
6873
  )
6793
6874
  ]
@@ -6881,7 +6962,7 @@ const qs = [
6881
6962
  /* @__PURE__ */ n.jsxs(
6882
6963
  "button",
6883
6964
  {
6884
- onClick: ve,
6965
+ onClick: je,
6885
6966
  disabled: x,
6886
6967
  style: {
6887
6968
  background: `linear-gradient(to right, ${$.accent}, ${$.accentHover})`,
@@ -6910,7 +6991,7 @@ const qs = [
6910
6991
  style: { animation: "spin 1s linear infinite" },
6911
6992
  "aria-hidden": "true"
6912
6993
  }
6913
- ) : /* @__PURE__ */ n.jsx(Os, { size: 16, "aria-hidden": "true" }),
6994
+ ) : /* @__PURE__ */ n.jsx(As, { size: 16, "aria-hidden": "true" }),
6914
6995
  x ? "Saving..." : "Save Changes"
6915
6996
  ]
6916
6997
  }
@@ -6939,7 +7020,7 @@ const qs = [
6939
7020
  flex: h && window.innerWidth < 1024 ? "1" : "auto"
6940
7021
  },
6941
7022
  children: [
6942
- /* @__PURE__ */ n.jsx(Ts, { size: 16, "aria-hidden": "true" }),
7023
+ /* @__PURE__ */ n.jsx(Ps, { size: 16, "aria-hidden": "true" }),
6943
7024
  "Edit Profile"
6944
7025
  ]
6945
7026
  }
@@ -6976,7 +7057,7 @@ const qs = [
6976
7057
  style: { animation: "spin 1s linear infinite" },
6977
7058
  "aria-hidden": "true"
6978
7059
  }
6979
- ) : /* @__PURE__ */ n.jsx(ut, { size: 14, "aria-hidden": "true" }),
7060
+ ) : /* @__PURE__ */ n.jsx(ft, { size: 14, "aria-hidden": "true" }),
6980
7061
  W ? "Sending..." : "Verify Email"
6981
7062
  ]
6982
7063
  }
@@ -7006,7 +7087,7 @@ const qs = [
7006
7087
  },
7007
7088
  onClick: () => X(!M),
7008
7089
  children: [
7009
- /* @__PURE__ */ n.jsx(ls, { size: 16, "aria-hidden": "true" }),
7090
+ /* @__PURE__ */ n.jsx(ds, { size: 16, "aria-hidden": "true" }),
7010
7091
  "More Actions"
7011
7092
  ]
7012
7093
  }
@@ -7054,7 +7135,7 @@ const qs = [
7054
7135
  onMouseEnter: (k) => k.currentTarget.style.backgroundColor = $.surfaceLight,
7055
7136
  onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
7056
7137
  children: [
7057
- /* @__PURE__ */ n.jsx(ct, { size: 14, "aria-hidden": "true" }),
7138
+ /* @__PURE__ */ n.jsx(ut, { size: 14, "aria-hidden": "true" }),
7058
7139
  "Change Password"
7059
7140
  ]
7060
7141
  }
@@ -7085,7 +7166,7 @@ const qs = [
7085
7166
  },
7086
7167
  onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
7087
7168
  children: [
7088
- /* @__PURE__ */ n.jsx(dt, { size: 14, "aria-hidden": "true" }),
7169
+ /* @__PURE__ */ n.jsx(pt, { size: 14, "aria-hidden": "true" }),
7089
7170
  "Logout"
7090
7171
  ]
7091
7172
  }
@@ -7094,7 +7175,7 @@ const qs = [
7094
7175
  "button",
7095
7176
  {
7096
7177
  onClick: () => {
7097
- v(!0), G();
7178
+ j(!0), G();
7098
7179
  },
7099
7180
  style: {
7100
7181
  width: "100%",
@@ -7116,7 +7197,7 @@ const qs = [
7116
7197
  },
7117
7198
  onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
7118
7199
  children: [
7119
- /* @__PURE__ */ n.jsx(De, { size: 14, "aria-hidden": "true" }),
7200
+ /* @__PURE__ */ n.jsx(Fe, { size: 14, "aria-hidden": "true" }),
7120
7201
  "Delete Account"
7121
7202
  ]
7122
7203
  }
@@ -7181,8 +7262,8 @@ const qs = [
7181
7262
  gap: "20px"
7182
7263
  }
7183
7264
  },
7184
- children: ur.map((k) => {
7185
- const N = k.icon;
7265
+ children: fr.map((k) => {
7266
+ const D = k.icon;
7186
7267
  return /* @__PURE__ */ n.jsxs(
7187
7268
  "div",
7188
7269
  {
@@ -7204,7 +7285,7 @@ const qs = [
7204
7285
  gap: "8px"
7205
7286
  },
7206
7287
  children: [
7207
- /* @__PURE__ */ n.jsx(N, { size: 16, "aria-hidden": "true" }),
7288
+ /* @__PURE__ */ n.jsx(D, { size: 16, "aria-hidden": "true" }),
7208
7289
  k.label
7209
7290
  ]
7210
7291
  }
@@ -7221,7 +7302,7 @@ const qs = [
7221
7302
  style: {
7222
7303
  padding: "12px",
7223
7304
  borderRadius: "8px",
7224
- border: `1px solid ${a}`,
7305
+ border: `1px solid ${o}`,
7225
7306
  backgroundColor: "transparent",
7226
7307
  color: $.textPrimary,
7227
7308
  fontSize: "12px",
@@ -7285,7 +7366,7 @@ const qs = [
7285
7366
  gap: "8px"
7286
7367
  },
7287
7368
  children: [
7288
- /* @__PURE__ */ n.jsx(cr, { size: 20, "aria-hidden": "true" }),
7369
+ /* @__PURE__ */ n.jsx(ur, { size: 20, "aria-hidden": "true" }),
7289
7370
  "Security Status"
7290
7371
  ]
7291
7372
  }
@@ -7393,41 +7474,41 @@ const qs = [
7393
7474
  }
7394
7475
  ),
7395
7476
  /* @__PURE__ */ n.jsx(
7396
- Ws,
7477
+ Ys,
7397
7478
  {
7398
7479
  isOpen: T,
7399
7480
  onClose: () => {
7400
7481
  A(!1);
7401
7482
  },
7402
- onUpdate: oe,
7483
+ onUpdate: ae,
7403
7484
  colors: $
7404
7485
  }
7405
7486
  ),
7406
7487
  /* @__PURE__ */ n.jsx(
7407
- Bs,
7488
+ Ks,
7408
7489
  {
7409
7490
  userId: d.id,
7410
7491
  isOpen: y,
7411
7492
  onClose: () => _(!1),
7412
- onSuccess: (k) => j("success", k),
7413
- onError: (k) => j("error", k),
7493
+ onSuccess: (k) => v("success", k),
7494
+ onError: (k) => v("error", k),
7414
7495
  colors: $
7415
7496
  }
7416
7497
  ),
7417
7498
  /* @__PURE__ */ n.jsx(
7418
- Ms,
7499
+ Vs,
7419
7500
  {
7420
7501
  userId: d.id,
7421
7502
  token: t,
7422
7503
  isOpen: g,
7423
- onClose: () => v(!1),
7424
- onSuccess: (k) => j("success", k),
7425
- onError: (k) => j("error", k),
7504
+ onClose: () => j(!1),
7505
+ onSuccess: (k) => v("success", k),
7506
+ onError: (k) => v("error", k),
7426
7507
  colors: $
7427
7508
  }
7428
7509
  ),
7429
7510
  /* @__PURE__ */ n.jsx(
7430
- Hs,
7511
+ Js,
7431
7512
  {
7432
7513
  isOpen: F,
7433
7514
  onClose: () => {
@@ -7536,15 +7617,15 @@ const qs = [
7536
7617
  ]
7537
7618
  }
7538
7619
  );
7539
- }, yi = ({
7620
+ }, ji = ({
7540
7621
  darkMode: t = !0,
7541
7622
  primaryColor: e = "#3b82f6",
7542
7623
  onLogout: r,
7543
7624
  varient: s = "classic",
7544
7625
  propUser: i,
7545
- className: o = "",
7626
+ className: a = "",
7546
7627
  // New URL props with defaults
7547
- profileUrl: a,
7628
+ profileUrl: o,
7548
7629
  settingsUrl: c,
7549
7630
  // Menu item visibility with defaults
7550
7631
  showProfileMenuItem: h = !0,
@@ -7556,7 +7637,7 @@ const qs = [
7556
7637
  viewProfileLabel: O = "View Profile",
7557
7638
  logoutLabel: p = "Sign Out"
7558
7639
  }) => {
7559
- const w = me(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g, v] = R(null), F = ft(null), U = ft(null), [M, X] = R(!1), [E, V] = R(!1);
7640
+ const w = me(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g, j] = R(null), F = ht(null), U = ht(null), [M, X] = R(!1), [E, V] = R(!1);
7560
7641
  te(() => {
7561
7642
  if (typeof window > "u") return;
7562
7643
  const l = () => {
@@ -7567,7 +7648,7 @@ const qs = [
7567
7648
  let l = !0;
7568
7649
  return (async () => {
7569
7650
  try {
7570
- if (_(!0), v(null), i) {
7651
+ if (_(!0), j(null), i) {
7571
7652
  if (!i.id || !i.name || !i.email)
7572
7653
  throw new Error("Invalid user data provided");
7573
7654
  l && A(i);
@@ -7579,15 +7660,15 @@ const qs = [
7579
7660
  A(null);
7580
7661
  return;
7581
7662
  }
7582
- const j = {
7663
+ const v = {
7583
7664
  id: S.user.id,
7584
7665
  email: S.user.email,
7585
7666
  name: S.user.email.split("@")[0]
7586
7667
  // fallback until backend sends name
7587
7668
  };
7588
- A(j);
7669
+ A(v);
7589
7670
  } catch (S) {
7590
- console.error("User initialization failed:", S), l && (A(null), v(S.message || "Failed to load user"));
7671
+ console.error("User initialization failed:", S), l && (A(null), j(S.message || "Failed to load user"));
7591
7672
  } finally {
7592
7673
  l && _(!1);
7593
7674
  }
@@ -7598,19 +7679,19 @@ const qs = [
7598
7679
  if (typeof window > "u") return;
7599
7680
  const l = () => {
7600
7681
  if (!x || !U.current) return;
7601
- const b = U.current.getBoundingClientRect(), S = window.innerWidth, j = window.innerHeight, G = 280, ue = S - b.right, Y = b.left;
7602
- j - b.bottom;
7603
- const oe = ue >= G || ue > Y;
7604
- X(oe);
7682
+ const b = U.current.getBoundingClientRect(), S = window.innerWidth, v = window.innerHeight, G = 280, ue = S - b.right, Y = b.left;
7683
+ v - b.bottom;
7684
+ const ae = ue >= G || ue > Y;
7685
+ X(ae);
7605
7686
  };
7606
7687
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
7607
7688
  }, [x]), te(() => {
7608
7689
  if (typeof window > "u" || typeof document > "u")
7609
7690
  return;
7610
- const l = (j) => {
7611
- F.current && !F.current.contains(j.target) && !U.current?.contains(j.target) && C(!1);
7612
- }, b = (j) => {
7613
- j.key === "Escape" && C(!1);
7691
+ const l = (v) => {
7692
+ F.current && !F.current.contains(v.target) && !U.current?.contains(v.target) && C(!1);
7693
+ }, b = (v) => {
7694
+ v.key === "Escape" && C(!1);
7614
7695
  }, S = () => {
7615
7696
  x && C(!1);
7616
7697
  };
@@ -7835,7 +7916,7 @@ const qs = [
7835
7916
  transition: "background-color 0.2s ease"
7836
7917
  }
7837
7918
  }, W = async () => {
7838
- v(null), _(!0);
7919
+ j(null), _(!0);
7839
7920
  try {
7840
7921
  if (i) {
7841
7922
  if (!i.id || !i.name || !i.email)
@@ -7845,7 +7926,7 @@ const qs = [
7845
7926
  }
7846
7927
  const l = await w.checkUserSession();
7847
7928
  if (!l?.authenticated || !l.user) {
7848
- A(null), v("User is not authenticated");
7929
+ A(null), j("User is not authenticated");
7849
7930
  return;
7850
7931
  }
7851
7932
  const b = {
@@ -7856,13 +7937,13 @@ const qs = [
7856
7937
  };
7857
7938
  A(b);
7858
7939
  } catch (l) {
7859
- console.error("Retry failed:", l), A(null), v(l.message || "Failed to reload user");
7940
+ console.error("Retry failed:", l), A(null), j(l.message || "Failed to reload user");
7860
7941
  } finally {
7861
7942
  _(!1);
7862
7943
  }
7863
7944
  }, Z = (l, b) => {
7864
7945
  (l.key === "Enter" || l.key === " ") && (l.preventDefault(), b());
7865
- }, B = () => a || T?.profileUrl, K = () => {
7946
+ }, B = () => o || T?.profileUrl, K = () => {
7866
7947
  const l = B();
7867
7948
  l && window.open(l, "_self", "noopener,noreferrer");
7868
7949
  }, L = () => {
@@ -7873,7 +7954,7 @@ const qs = [
7873
7954
  {
7874
7955
  style: I.wrapper,
7875
7956
  ref: F,
7876
- className: o,
7957
+ className: a,
7877
7958
  role: "menu",
7878
7959
  "aria-label": "User menu",
7879
7960
  children: [
@@ -7976,7 +8057,7 @@ const qs = [
7976
8057
  T?.email && /* @__PURE__ */ n.jsx("div", { style: I.userEmail, title: T.email, children: T.email })
7977
8058
  ] }),
7978
8059
  /* @__PURE__ */ n.jsx(
7979
- ts,
8060
+ ns,
7980
8061
  {
7981
8062
  size: E ? 14 : 16,
7982
8063
  style: I.chevron,
@@ -8050,7 +8131,7 @@ const qs = [
8050
8131
  role: "menuitem",
8051
8132
  tabIndex: 0,
8052
8133
  children: [
8053
- /* @__PURE__ */ n.jsx(_s, { style: I.icon, "aria-hidden": "true" }),
8134
+ /* @__PURE__ */ n.jsx(Ds, { style: I.icon, "aria-hidden": "true" }),
8054
8135
  /* @__PURE__ */ n.jsx("span", { style: I.menuItemText, children: P })
8055
8136
  ]
8056
8137
  }
@@ -8093,7 +8174,7 @@ const qs = [
8093
8174
  tabIndex: 0,
8094
8175
  children: [
8095
8176
  /* @__PURE__ */ n.jsx(
8096
- dt,
8177
+ pt,
8097
8178
  {
8098
8179
  style: { ...I.icon, color: z.error },
8099
8180
  "aria-hidden": "true"
@@ -8132,7 +8213,7 @@ const qs = [
8132
8213
  ]
8133
8214
  }
8134
8215
  );
8135
- }, bi = ({
8216
+ }, Si = ({
8136
8217
  user: t,
8137
8218
  darkMode: e = !0,
8138
8219
  primaryColor: r = "#00C212",
@@ -8162,18 +8243,18 @@ const qs = [
8162
8243
  ]
8163
8244
  }
8164
8245
  );
8165
- const [o, a] = R(!1), [c, h] = R({
8246
+ const [a, o] = R(!1), [c, h] = R({
8166
8247
  email: t?.email || "",
8167
8248
  otp: ""
8168
8249
  }), [u, d] = R(!1), [m, P] = R(!1), [O, p] = R(null);
8169
8250
  Te.useEffect(() => {
8170
8251
  if (typeof window < "u") {
8171
- const g = () => a(window.innerWidth < 768);
8252
+ const g = () => o(window.innerWidth < 768);
8172
8253
  return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
8173
8254
  }
8174
8255
  }, []);
8175
- const w = (g, v) => {
8176
- let F = parseInt(g.replace("#", ""), 16), U = (F >> 16) + v, M = (F >> 8 & 255) + v, X = (F & 255) + v;
8256
+ const w = (g, j) => {
8257
+ let F = parseInt(g.replace("#", ""), 16), U = (F >> 16) + j, M = (F >> 8 & 255) + j, X = (F & 255) + j;
8177
8258
  return U = Math.min(255, Math.max(0, U)), M = Math.min(255, Math.max(0, M)), X = Math.min(255, Math.max(0, X)), `#${(X | M << 8 | U << 16).toString(16).padStart(6, "0")}`;
8178
8259
  }, x = e ? {
8179
8260
  surface: "#000000",
@@ -8199,8 +8280,8 @@ const qs = [
8199
8280
  te(() => {
8200
8281
  t?.email && h((g) => ({ ...g, email: t.email }));
8201
8282
  }, [t?.email]);
8202
- const C = (g, v) => {
8203
- p({ type: g, message: v }), setTimeout(() => p(null), 3e3);
8283
+ const C = (g, j) => {
8284
+ p({ type: g, message: j }), setTimeout(() => p(null), 3e3);
8204
8285
  }, T = async () => {
8205
8286
  if (!c.email || !/\S+@\S+\.\S+/.test(c.email)) {
8206
8287
  C("error", "Please enter a valid email");
@@ -8217,11 +8298,11 @@ const qs = [
8217
8298
  email: c.email
8218
8299
  });
8219
8300
  if (console.log("Send OTP response:", g), g.success || g.data?.success) {
8220
- const v = g.message || g.data?.message || "OTP sent!";
8221
- C("success", v), d(!0);
8301
+ const j = g.message || g.data?.message || "OTP sent!";
8302
+ C("success", j), d(!0);
8222
8303
  } else {
8223
- const v = g.message || g.data?.message || "Failed to send OTP";
8224
- C("error", v);
8304
+ const j = g.message || g.data?.message || "Failed to send OTP";
8305
+ C("error", j);
8225
8306
  }
8226
8307
  } catch (g) {
8227
8308
  console.error("Send OTP error:", g), C("error", g.message || "Server error");
@@ -8235,17 +8316,17 @@ const qs = [
8235
8316
  }
8236
8317
  try {
8237
8318
  P(!0);
8238
- const v = await i.verifyEmail({
8319
+ const j = await i.verifyEmail({
8239
8320
  email: c.email,
8240
8321
  otp: c.otp
8241
8322
  });
8242
- if (v.success) {
8323
+ if (j.success) {
8243
8324
  const F = { ...t, isVerified: !0 };
8244
- s?.(F), C("success", v.message || "Email verified!"), d(!1), h({ email: t.email, otp: "" });
8325
+ s?.(F), C("success", j.message || "Email verified!"), d(!1), h({ email: t.email, otp: "" });
8245
8326
  } else
8246
- C("error", v.message || "Verification failed");
8247
- } catch (v) {
8248
- C("error", v.message || "Server error");
8327
+ C("error", j.message || "Verification failed");
8328
+ } catch (j) {
8329
+ C("error", j.message || "Server error");
8249
8330
  } finally {
8250
8331
  P(!1);
8251
8332
  }
@@ -8280,7 +8361,7 @@ const qs = [
8280
8361
  onSubmit: A,
8281
8362
  style: {
8282
8363
  width: "100%",
8283
- maxWidth: o ? "340px" : "400px",
8364
+ maxWidth: a ? "340px" : "400px",
8284
8365
  display: "flex",
8285
8366
  flexDirection: "column",
8286
8367
  gap: 20,
@@ -8301,7 +8382,7 @@ const qs = [
8301
8382
  gap: 8
8302
8383
  },
8303
8384
  children: [
8304
- /* @__PURE__ */ n.jsx(Zn, { size: 32, color: x.accent }),
8385
+ /* @__PURE__ */ n.jsx(es, { size: 32, color: x.accent }),
8305
8386
  /* @__PURE__ */ n.jsx(
8306
8387
  "h2",
8307
8388
  {
@@ -8377,7 +8458,7 @@ const qs = [
8377
8458
  {
8378
8459
  type: "email",
8379
8460
  value: c.email,
8380
- onChange: (g) => h((v) => ({ ...v, email: g.target.value })),
8461
+ onChange: (g) => h((j) => ({ ...j, email: g.target.value })),
8381
8462
  placeholder: "Enter your email",
8382
8463
  style: {
8383
8464
  ...y,
@@ -8412,7 +8493,7 @@ const qs = [
8412
8493
  },
8413
8494
  children: [
8414
8495
  /* @__PURE__ */ n.jsx(
8415
- ct,
8496
+ ut,
8416
8497
  {
8417
8498
  size: 18,
8418
8499
  style: {
@@ -8428,7 +8509,7 @@ const qs = [
8428
8509
  {
8429
8510
  type: "text",
8430
8511
  value: c.otp,
8431
- onChange: (g) => h((v) => ({ ...v, otp: g.target.value })),
8512
+ onChange: (g) => h((j) => ({ ...j, otp: g.target.value })),
8432
8513
  placeholder: "Enter OTP",
8433
8514
  style: {
8434
8515
  ...y,
@@ -8480,7 +8561,7 @@ const qs = [
8480
8561
  fontSize: 14
8481
8562
  },
8482
8563
  children: [
8483
- m ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ut, { size: 16 }),
8564
+ m ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ft, { size: 16 }),
8484
8565
  m ? "Sending..." : "Send OTP"
8485
8566
  ]
8486
8567
  }
@@ -8488,25 +8569,25 @@ const qs = [
8488
8569
  ]
8489
8570
  }
8490
8571
  );
8491
- }, Fe = {
8572
+ }, Le = {
8492
8573
  baseUrl: "",
8493
8574
  apiKey: "",
8494
8575
  appId: ""
8495
- }, wi = (t) => {
8576
+ }, ki = (t) => {
8496
8577
  if (!t.baseUrl || !t.apiKey || !t.appId)
8497
8578
  throw new Error("baseUrl, apiKey, and appId are required");
8498
- Fe.baseUrl = t.baseUrl, Fe.apiKey = t.apiKey, Fe.appId = t.appId;
8499
- }, ji = () => Fe;
8579
+ Le.baseUrl = t.baseUrl, Le.apiKey = t.apiKey, Le.appId = t.appId;
8580
+ }, Ei = () => Le;
8500
8581
  export {
8501
- pi as AuthixProvider,
8502
- ui as NeuctraAuthix,
8503
- bi as ReactEmailVerification,
8504
- hi as ReactSignedIn,
8505
- mi as ReactSignedOut,
8506
- yi as ReactUserButton,
8507
- xi as ReactUserLogin,
8508
- gi as ReactUserProfile,
8509
- fi as ReactUserSignUp,
8510
- ji as getSdkConfig,
8511
- wi as setSdkConfig
8582
+ mi as AuthixProvider,
8583
+ hi as NeuctraAuthix,
8584
+ Si as ReactEmailVerification,
8585
+ bi as ReactSignedIn,
8586
+ wi as ReactSignedOut,
8587
+ ji as ReactUserButton,
8588
+ yi as ReactUserLogin,
8589
+ vi as ReactUserProfile,
8590
+ gi as ReactUserSignUp,
8591
+ Ei as getSdkConfig,
8592
+ ki as setSdkConfig
8512
8593
  };