@neuctra/authix 1.1.76 → 1.1.78

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.
@@ -4,23 +4,23 @@ function Nt(t, e) {
4
4
  return t.apply(e, arguments);
5
5
  };
6
6
  }
7
- const { toString: xr } = Object.prototype, { getPrototypeOf: st } = Object, { iterator: qe, toStringTag: Dt } = Symbol, Me = /* @__PURE__ */ ((t) => (e) => {
7
+ const { toString: xr } = Object.prototype, { getPrototypeOf: st } = Object, { iterator: qe, toStringTag: $t } = Symbol, Me = /* @__PURE__ */ ((t) => (e) => {
8
8
  const r = xr.call(e);
9
9
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
10
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");
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 $t = ae("ArrayBuffer");
14
+ const Dt = ae("ArrayBuffer");
15
15
  function hr(t) {
16
16
  let e;
17
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && $t(t.buffer), e;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Dt(t.buffer), e;
18
18
  }
19
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
20
  if (Me(t) !== "object")
21
21
  return !1;
22
22
  const e = st(t);
23
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Dt in t) && !(qe in t);
23
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !($t in t) && !(qe in t);
24
24
  }, yr = (t) => {
25
25
  if (!Pe(t) || Re(t))
26
26
  return !1;
@@ -100,7 +100,7 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
100
100
  for (; e-- > 0; )
101
101
  r[e] = t[e];
102
102
  return r;
103
- }, Dr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && st(Uint8Array)), $r = (t, e) => {
103
+ }, $r = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && st(Uint8Array)), Dr = (t, e) => {
104
104
  const s = (t && t[qe]).call(t);
105
105
  let i;
106
106
  for (; (i = s.next()) && !i.done; ) {
@@ -149,7 +149,7 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
149
149
  }, Hr = () => {
150
150
  }, Vr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
151
151
  function Yr(t) {
152
- return !!(t && re(t.append) && t[Dt] === "FormData" && t[qe]);
152
+ return !!(t && re(t.append) && t[$t] === "FormData" && t[qe]);
153
153
  }
154
154
  const Kr = (t) => {
155
155
  const e = new Array(10), r = (s, i) => {
@@ -179,7 +179,7 @@ const Kr = (t) => {
179
179
  re(fe.postMessage)
180
180
  ), Xr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Wt, Zr = (t) => t != null && re(t[qe]), f = {
181
181
  isArray: we,
182
- isArrayBuffer: $t,
182
+ isArrayBuffer: Dt,
183
183
  isBuffer: Re,
184
184
  isFormData: kr,
185
185
  isArrayBufferView: hr,
@@ -201,7 +201,7 @@ const Kr = (t) => {
201
201
  isFunction: re,
202
202
  isStream: Sr,
203
203
  isURLSearchParams: Er,
204
- isTypedArray: Dr,
204
+ isTypedArray: $r,
205
205
  isFileList: vr,
206
206
  forEach: Ie,
207
207
  merge: Ze,
@@ -214,7 +214,7 @@ const Kr = (t) => {
214
214
  kindOfTest: ae,
215
215
  endsWith: Ur,
216
216
  toArray: Nr,
217
- forEachEntry: $r,
217
+ forEachEntry: Dr,
218
218
  matchAll: Fr,
219
219
  isHTMLForm: Lr,
220
220
  hasOwnProperty: xt,
@@ -237,10 +237,10 @@ const Kr = (t) => {
237
237
  asap: Xr,
238
238
  isIterable: Zr
239
239
  };
240
- function $(t, e, r, s, i) {
240
+ function D(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($, Error, {
243
+ f.inherits(D, Error, {
244
244
  toJSON: function() {
245
245
  return {
246
246
  // Standard
@@ -261,7 +261,7 @@ f.inherits($, Error, {
261
261
  };
262
262
  }
263
263
  });
264
- const Bt = $.prototype, Ht = {};
264
+ const Bt = D.prototype, Ht = {};
265
265
  [
266
266
  "ERR_BAD_OPTION_VALUE",
267
267
  "ERR_BAD_OPTION",
@@ -279,15 +279,15 @@ const Bt = $.prototype, Ht = {};
279
279
  ].forEach((t) => {
280
280
  Ht[t] = { value: t };
281
281
  });
282
- Object.defineProperties($, Ht);
282
+ Object.defineProperties(D, Ht);
283
283
  Object.defineProperty(Bt, "isAxiosError", { value: !0 });
284
- $.from = (t, e, r, s, i, o) => {
284
+ D.from = (t, e, r, s, i, o) => {
285
285
  const a = Object.create(Bt);
286
286
  f.toFlatObject(t, a, 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 $.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 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;
291
291
  };
292
292
  const Qr = null;
293
293
  function Qe(t) {
@@ -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 $("Blob is not supported. Use a Buffer instead.");
330
+ throw new D("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) {
@@ -578,7 +578,7 @@ const Oe = {
578
578
  return JSON.parse(e, this.parseReviver);
579
579
  } catch (c) {
580
580
  if (a)
581
- throw c.name === "SyntaxError" ? $.from(c, $.ERR_BAD_RESPONSE, this, null, this.response) : c;
581
+ throw c.name === "SyntaxError" ? D.from(c, D.ERR_BAD_RESPONSE, this, null, this.response) : c;
582
582
  }
583
583
  }
584
584
  return e;
@@ -821,16 +821,16 @@ function Xt(t) {
821
821
  return !!(t && t.__CANCEL__);
822
822
  }
823
823
  function je(t, e, r) {
824
- $.call(this, t ?? "canceled", $.ERR_CANCELED, e, r), this.name = "CanceledError";
824
+ D.call(this, t ?? "canceled", D.ERR_CANCELED, e, r), this.name = "CanceledError";
825
825
  }
826
- f.inherits(je, $, {
826
+ f.inherits(je, D, {
827
827
  __CANCEL__: !0
828
828
  });
829
829
  function Zt(t, e, r) {
830
830
  const s = r.config.validateStatus;
831
- !r.status || !s || s(r.status) ? t(r) : e(new $(
831
+ !r.status || !s || s(r.status) ? t(r) : e(new D(
832
832
  "Request failed with status code " + r.status,
833
- [$.ERR_BAD_REQUEST, $.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
833
+ [D.ERR_BAD_REQUEST, D.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
834
834
  r.config,
835
835
  r.request,
836
836
  r
@@ -1053,16 +1053,16 @@ const er = (t) => {
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 $("Request aborted", $.ECONNABORTED, t, x)), x = null);
1056
+ x && (s(new D("Request aborted", D.ECONNABORTED, t, x)), x = null);
1057
1057
  }, x.onerror = function(y) {
1058
- const _ = y && y.message ? y.message : "Network Error", g = new $(_, $.ERR_NETWORK, t, x);
1058
+ const _ = y && y.message ? y.message : "Network Error", g = new D(_, D.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
1062
  const _ = i.transitional || Jt;
1063
- i.timeoutErrorMessage && (y = i.timeoutErrorMessage), s(new $(
1063
+ i.timeoutErrorMessage && (y = i.timeoutErrorMessage), s(new D(
1064
1064
  y,
1065
- _.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
1065
+ _.clarifyTimeoutError ? D.ETIMEDOUT : D.ECONNABORTED,
1066
1066
  t,
1067
1067
  x
1068
1068
  )), x = null;
@@ -1073,7 +1073,7 @@ const er = (t) => {
1073
1073
  }, i.cancelToken && i.cancelToken.subscribe(d), i.signal && (i.signal.aborted ? d() : i.signal.addEventListener("abort", d)));
1074
1074
  const T = vn(i.url);
1075
1075
  if (T && ee.protocols.indexOf(T) === -1) {
1076
- s(new $("Unsupported protocol " + T + ":", $.ERR_BAD_REQUEST, t));
1076
+ s(new D("Unsupported protocol " + T + ":", D.ERR_BAD_REQUEST, t));
1077
1077
  return;
1078
1078
  }
1079
1079
  x.send(o || null);
@@ -1086,11 +1086,11 @@ const er = (t) => {
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 : new je(d instanceof Error ? d.message : d));
1089
+ s.abort(d instanceof D ? d : new je(d instanceof Error ? d.message : d));
1090
1090
  }
1091
1091
  };
1092
1092
  let a = e && setTimeout(() => {
1093
- a = null, o(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
1093
+ a = null, o(new D(`timeout ${e} of ms exceeded`, D.ETIMEDOUT));
1094
1094
  }, e);
1095
1095
  const c = () => {
1096
1096
  t && (a && clearTimeout(a), a = null, t.forEach((u) => {
@@ -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 $(`Response type '${p}' is not supported`, $.ERR_NOT_SUPPORT, x);
1198
+ throw new D(`Response type '${p}' is not supported`, D.ERR_NOT_SUPPORT, x);
1199
1199
  });
1200
1200
  });
1201
1201
  const P = async (p) => {
@@ -1295,21 +1295,21 @@ 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 $("Network Error", $.ERR_NETWORK, p, V),
1298
+ new D("Network Error", D.ERR_NETWORK, p, V),
1299
1299
  {
1300
1300
  cause: W.cause || W
1301
1301
  }
1302
- ) : $.from(W, W && W.code, p, V);
1302
+ ) : D.from(W, W && W.code, p, V);
1303
1303
  }
1304
1304
  };
1305
- }, Dn = /* @__PURE__ */ new Map(), tr = (t) => {
1305
+ }, $n = /* @__PURE__ */ new Map(), tr = (t) => {
1306
1306
  let e = t ? t.env : {};
1307
1307
  const { fetch: r, Request: s, Response: i } = e, o = [
1308
1308
  s,
1309
1309
  i,
1310
1310
  r
1311
1311
  ];
1312
- let a = o.length, c = a, h, u, d = Dn;
1312
+ let a = o.length, c = a, h, u, d = $n;
1313
1313
  for (; c--; )
1314
1314
  h = o[c], u = d.get(h), u === void 0 && d.set(h, u = c ? /* @__PURE__ */ new Map() : Nn(e)), d = u;
1315
1315
  return u;
@@ -1331,7 +1331,7 @@ f.forEach(tt, (t, e) => {
1331
1331
  Object.defineProperty(t, "adapterName", { value: e });
1332
1332
  }
1333
1333
  });
1334
- const Tt = (t) => `- ${t}`, $n = (t) => f.isFunction(t) || t === null || t === !1, rr = {
1334
+ const Tt = (t) => `- ${t}`, Dn = (t) => f.isFunction(t) || t === null || t === !1, rr = {
1335
1335
  getAdapter: (t, e) => {
1336
1336
  t = f.isArray(t) ? t : [t];
1337
1337
  const { length: r } = t;
@@ -1340,8 +1340,8 @@ const Tt = (t) => `- ${t}`, $n = (t) => f.isFunction(t) || t === null || t === !
1340
1340
  for (let a = 0; a < r; a++) {
1341
1341
  s = t[a];
1342
1342
  let c;
1343
- if (i = s, !$n(s) && (i = tt[(c = String(s)).toLowerCase()], i === void 0))
1344
- throw new $(`Unknown adapter '${c}'`);
1343
+ if (i = s, !Dn(s) && (i = tt[(c = String(s)).toLowerCase()], i === void 0))
1344
+ throw new D(`Unknown adapter '${c}'`);
1345
1345
  if (i && (f.isFunction(i) || (i = i.get(e))))
1346
1346
  break;
1347
1347
  o[c || "#" + a] = i;
@@ -1353,7 +1353,7 @@ const Tt = (t) => `- ${t}`, $n = (t) => f.isFunction(t) || t === null || t === !
1353
1353
  let c = r ? a.length > 1 ? `since :
1354
1354
  ` + a.map(Tt).join(`
1355
1355
  `) : " " + Tt(a[0]) : "as no adapter specified";
1356
- throw new $(
1356
+ throw new D(
1357
1357
  "There is no suitable adapter to dispatch the request " + c,
1358
1358
  "ERR_NOT_SUPPORT"
1359
1359
  );
@@ -1397,9 +1397,9 @@ He.transitional = function(e, r, s) {
1397
1397
  }
1398
1398
  return (o, a, c) => {
1399
1399
  if (e === !1)
1400
- throw new $(
1400
+ throw new D(
1401
1401
  i(a, " has been removed" + (r ? " in " + r : "")),
1402
- $.ERR_DEPRECATED
1402
+ D.ERR_DEPRECATED
1403
1403
  );
1404
1404
  return r && !Pt[a] && (Pt[a] = !0, console.warn(
1405
1405
  i(
@@ -1414,7 +1414,7 @@ He.spelling = function(e) {
1414
1414
  };
1415
1415
  function Fn(t, e, r) {
1416
1416
  if (typeof t != "object")
1417
- throw new $("options must be an object", $.ERR_BAD_OPTION_VALUE);
1417
+ throw new D("options must be an object", D.ERR_BAD_OPTION_VALUE);
1418
1418
  const s = Object.keys(t);
1419
1419
  let i = s.length;
1420
1420
  for (; i-- > 0; ) {
@@ -1422,17 +1422,17 @@ function Fn(t, e, r) {
1422
1422
  if (a) {
1423
1423
  const c = t[o], h = c === void 0 || a(c, o, t);
1424
1424
  if (h !== !0)
1425
- throw new $("option " + o + " must be " + h, $.ERR_BAD_OPTION_VALUE);
1425
+ throw new D("option " + o + " must be " + h, D.ERR_BAD_OPTION_VALUE);
1426
1426
  continue;
1427
1427
  }
1428
1428
  if (r !== !0)
1429
- throw new $("Unknown option " + o, $.ERR_BAD_OPTION);
1429
+ throw new D("Unknown option " + o, D.ERR_BAD_OPTION);
1430
1430
  }
1431
1431
  }
1432
- const De = {
1432
+ const $e = {
1433
1433
  assertOptions: Fn,
1434
1434
  validators: He
1435
- }, ce = De.validators;
1435
+ }, ce = $e.validators;
1436
1436
  let xe = class {
1437
1437
  constructor(e) {
1438
1438
  this.defaults = e || {}, this.interceptors = {
@@ -1468,16 +1468,16 @@ let xe = class {
1468
1468
  _request(e, r) {
1469
1469
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = he(this.defaults, r);
1470
1470
  const { transitional: s, paramsSerializer: i, headers: o } = r;
1471
- s !== void 0 && De.assertOptions(s, {
1471
+ s !== void 0 && $e.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
- } : De.assertOptions(i, {
1477
+ } : $e.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), De.assertOptions(r, {
1480
+ }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), $e.assertOptions(r, {
1481
1481
  baseUrl: ce.spelling("baseURL"),
1482
1482
  withXsrfToken: ce.spelling("withXSRFToken")
1483
1483
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
@@ -1719,7 +1719,7 @@ J.CancelToken = Ln;
1719
1719
  J.isCancel = Xt;
1720
1720
  J.VERSION = nr;
1721
1721
  J.toFormData = Be;
1722
- J.AxiosError = $;
1722
+ J.AxiosError = D;
1723
1723
  J.Cancel = J.CanceledError;
1724
1724
  J.all = function(e) {
1725
1725
  return Promise.all(e);
@@ -1914,15 +1914,16 @@ class ui {
1914
1914
  if (typeof window > "u")
1915
1915
  return { authenticated: !1 };
1916
1916
  try {
1917
- return await this.request(
1917
+ const e = await this.request(
1918
1918
  "GET",
1919
1919
  "/users/session",
1920
1920
  void 0,
1921
1921
  {},
1922
1922
  !0
1923
1923
  );
1924
+ return e.authenticated ? document.cookie = `a_s_b=true; path=/; max-age=${1440 * 60}; Secure; SameSite=Lax` : document.cookie = "a_s_b=; path=/; max-age=0", e;
1924
1925
  } catch {
1925
- return { authenticated: !1 };
1926
+ return document.cookie = "a_s_b=; path=/; max-age=0", { authenticated: !1 };
1926
1927
  }
1927
1928
  }
1928
1929
  /**
@@ -2990,14 +2991,14 @@ const Ns = [
2990
2991
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
2991
2992
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
2992
2993
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
2993
- ], $e = q("trash-2", Ns);
2994
+ ], De = q("trash-2", Ns);
2994
2995
  /**
2995
2996
  * @license lucide-react v0.544.0 - ISC
2996
2997
  *
2997
2998
  * This source code is licensed under the ISC license.
2998
2999
  * See the LICENSE file in the root directory of this source tree.
2999
3000
  */
3000
- const Ds = [
3001
+ const $s = [
3001
3002
  [
3002
3003
  "path",
3003
3004
  {
@@ -3007,19 +3008,19 @@ const Ds = [
3007
3008
  ],
3008
3009
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3009
3010
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3010
- ], _t = q("triangle-alert", Ds);
3011
+ ], _t = q("triangle-alert", $s);
3011
3012
  /**
3012
3013
  * @license lucide-react v0.544.0 - ISC
3013
3014
  *
3014
3015
  * This source code is licensed under the ISC license.
3015
3016
  * See the LICENSE file in the root directory of this source tree.
3016
3017
  */
3017
- const $s = [
3018
+ const Ds = [
3018
3019
  ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
3019
3020
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
3020
3021
  ["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
3021
3022
  ["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
3022
- ], Fs = q("user-x", $s);
3023
+ ], Fs = q("user-x", Ds);
3023
3024
  /**
3024
3025
  * @license lucide-react v0.544.0 - ISC
3025
3026
  *
@@ -4265,10 +4266,8 @@ const qs = [
4265
4266
  const [r, s] = R(!1), [i, o] = R(null);
4266
4267
  if (te(() => {
4267
4268
  s(!0);
4268
- const h = document.cookie.split(";").map((u) => u.trim()).some(
4269
- (u) => u.startsWith("authix_session=")
4270
- );
4271
- o(h);
4269
+ const h = document.cookie.split(";").map((u) => u.trim()).find((u) => u.startsWith("a_s_b="));
4270
+ o(h?.split("=")[1] === "true");
4272
4271
  }, []), !r) return null;
4273
4272
  const a = (c) => typeof c == "function" ? c() : c;
4274
4273
  return i === null ? a(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : a(e);
@@ -4279,10 +4278,8 @@ const qs = [
4279
4278
  const [r, s] = R(!1), [i, o] = R(null);
4280
4279
  if (te(() => {
4281
4280
  s(!0);
4282
- const h = document.cookie.split(";").map((u) => u.trim()).some(
4283
- (u) => u.startsWith("authix_session=")
4284
- );
4285
- o(!h);
4281
+ const h = document.cookie.split(";").map((u) => u.trim()).find((u) => u.startsWith("a_s_b="));
4282
+ o(h?.split("=")[1] !== "true");
4286
4283
  }, []), !r) return null;
4287
4284
  const a = (c) => typeof c == "function" ? c() : c;
4288
4285
  return i === null ? a(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : a(e);
@@ -4358,7 +4355,7 @@ const qs = [
4358
4355
  color: "white",
4359
4356
  flexShrink: 0
4360
4357
  },
4361
- children: /* @__PURE__ */ n.jsx($e, { size: 20 })
4358
+ children: /* @__PURE__ */ n.jsx(De, { size: 20 })
4362
4359
  }
4363
4360
  ),
4364
4361
  /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
@@ -4557,7 +4554,7 @@ const qs = [
4557
4554
  y.currentTarget.style.transform = "translateY(0)", y.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)";
4558
4555
  },
4559
4556
  children: [
4560
- /* @__PURE__ */ n.jsx($e, { size: 16 }),
4557
+ /* @__PURE__ */ n.jsx(De, { size: 16 }),
4561
4558
  "Continue to Delete"
4562
4559
  ]
4563
4560
  }
@@ -4747,7 +4744,7 @@ const qs = [
4747
4744
  C && !h && (y.currentTarget.style.transform = "translateY(0)", y.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)");
4748
4745
  },
4749
4746
  children: [
4750
- /* @__PURE__ */ n.jsx($e, { size: 16 }),
4747
+ /* @__PURE__ */ n.jsx(De, { size: 16 }),
4751
4748
  "Yes, Delete My Account"
4752
4749
  ]
4753
4750
  }
@@ -6484,7 +6481,7 @@ const qs = [
6484
6481
  const pt = (k, N) => {
6485
6482
  let H = parseInt(k.replace("#", ""), 16), Q = (H >> 16) + N, le = (H >> 8 & 255) + N, Se = (H & 255) + N;
6486
6483
  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")}`;
6487
- }, D = r ? {
6484
+ }, $ = r ? {
6488
6485
  background: "#000000",
6489
6486
  surface: "#09090b",
6490
6487
  surfaceLight: "#27272a",
@@ -6523,7 +6520,7 @@ const qs = [
6523
6520
  display: "flex",
6524
6521
  alignItems: "center",
6525
6522
  justifyContent: "center",
6526
- color: D.textPrimary,
6523
+ color: $.textPrimary,
6527
6524
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6528
6525
  },
6529
6526
  children: /* @__PURE__ */ n.jsxs(
@@ -6541,12 +6538,12 @@ const qs = [
6541
6538
  ie,
6542
6539
  {
6543
6540
  size: 40,
6544
- color: D.accent,
6541
+ color: $.accent,
6545
6542
  style: { animation: "spin 1s linear infinite" },
6546
6543
  "aria-hidden": "true"
6547
6544
  }
6548
6545
  ),
6549
- /* @__PURE__ */ n.jsx("p", { style: { color: D.textTertiary, margin: 0 }, children: "Loading your profile..." })
6546
+ /* @__PURE__ */ n.jsx("p", { style: { color: $.textTertiary, margin: 0 }, children: "Loading your profile..." })
6550
6547
  ]
6551
6548
  }
6552
6549
  )
@@ -6562,7 +6559,7 @@ const qs = [
6562
6559
  display: "flex",
6563
6560
  alignItems: "center",
6564
6561
  justifyContent: "center",
6565
- color: D.textPrimary,
6562
+ color: $.textPrimary,
6566
6563
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6567
6564
  },
6568
6565
  children: /* @__PURE__ */ n.jsxs(
@@ -6576,8 +6573,8 @@ const qs = [
6576
6573
  textAlign: "center"
6577
6574
  },
6578
6575
  children: [
6579
- /* @__PURE__ */ n.jsx(se, { size: 40, color: D.error, "aria-hidden": "true" }),
6580
- /* @__PURE__ */ n.jsx("p", { style: { color: D.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6576
+ /* @__PURE__ */ n.jsx(se, { size: 40, color: $.error, "aria-hidden": "true" }),
6577
+ /* @__PURE__ */ n.jsx("p", { style: { color: $.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6581
6578
  ]
6582
6579
  }
6583
6580
  )
@@ -6621,7 +6618,7 @@ const qs = [
6621
6618
  display: "flex",
6622
6619
  alignItems: "center",
6623
6620
  justifyContent: "center",
6624
- color: D.textPrimary,
6621
+ color: $.textPrimary,
6625
6622
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
6626
6623
  lineHeight: 1.5,
6627
6624
  minHeight: "80vh"
@@ -6707,7 +6704,7 @@ const qs = [
6707
6704
  "section",
6708
6705
  {
6709
6706
  style: {
6710
- backgroundColor: D.surface,
6707
+ backgroundColor: $.surface,
6711
6708
  borderRadius: "16px",
6712
6709
  position: "relative",
6713
6710
  padding: "24px",
@@ -6761,7 +6758,7 @@ const qs = [
6761
6758
  borderRadius: "50%",
6762
6759
  objectFit: "cover",
6763
6760
  boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
6764
- border: `3px solid ${D.border}`
6761
+ border: `3px solid ${$.border}`
6765
6762
  },
6766
6763
  width: 128,
6767
6764
  height: 128,
@@ -6776,7 +6773,7 @@ const qs = [
6776
6773
  position: "absolute",
6777
6774
  bottom: "8px",
6778
6775
  right: "8px",
6779
- backgroundColor: D.accent,
6776
+ backgroundColor: $.accent,
6780
6777
  color: "white",
6781
6778
  padding: "8px",
6782
6779
  borderRadius: "50%",
@@ -6803,7 +6800,7 @@ const qs = [
6803
6800
  fontSize: "24px",
6804
6801
  fontWeight: 600,
6805
6802
  margin: "0 0 4px 0",
6806
- color: D.textPrimary
6803
+ color: $.textPrimary
6807
6804
  },
6808
6805
  children: d.name
6809
6806
  }
@@ -6812,7 +6809,7 @@ const qs = [
6812
6809
  "p",
6813
6810
  {
6814
6811
  style: {
6815
- color: D.textTertiary,
6812
+ color: $.textTertiary,
6816
6813
  margin: "0 0 8px 0"
6817
6814
  },
6818
6815
  children: d.email
@@ -6823,7 +6820,7 @@ const qs = [
6823
6820
  {
6824
6821
  style: {
6825
6822
  backgroundColor: d.isVerified ? r ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)" : r ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
6826
- color: d.isVerified ? D.success : D.warning,
6823
+ color: d.isVerified ? $.success : $.warning,
6827
6824
  border: `1px solid ${d.isVerified ? r ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)" : r ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`,
6828
6825
  padding: "6px 12px",
6829
6826
  borderRadius: "20px",
@@ -6857,9 +6854,9 @@ const qs = [
6857
6854
  {
6858
6855
  onClick: () => w(!1),
6859
6856
  style: {
6860
- backgroundColor: D.surfaceLight,
6861
- border: `1px solid ${D.border}`,
6862
- color: D.textPrimary,
6857
+ backgroundColor: $.surfaceLight,
6858
+ border: `1px solid ${$.border}`,
6859
+ color: $.textPrimary,
6863
6860
  padding: "10px 20px",
6864
6861
  borderRadius: "6px",
6865
6862
  borderStyle: "solid",
@@ -6887,7 +6884,7 @@ const qs = [
6887
6884
  onClick: ve,
6888
6885
  disabled: x,
6889
6886
  style: {
6890
- background: `linear-gradient(to right, ${D.accent}, ${D.accentHover})`,
6887
+ background: `linear-gradient(to right, ${$.accent}, ${$.accentHover})`,
6891
6888
  opacity: x ? 0.7 : 1,
6892
6889
  color: "white",
6893
6890
  padding: "10px 20px",
@@ -6924,7 +6921,7 @@ const qs = [
6924
6921
  {
6925
6922
  onClick: () => w(!0),
6926
6923
  style: {
6927
- background: `linear-gradient(to right, ${D.accent}, ${D.accentHover})`,
6924
+ background: `linear-gradient(to right, ${$.accent}, ${$.accentHover})`,
6928
6925
  color: "white",
6929
6926
  padding: "10px 20px",
6930
6927
  borderRadius: "6px",
@@ -6989,8 +6986,8 @@ const qs = [
6989
6986
  "button",
6990
6987
  {
6991
6988
  style: {
6992
- backgroundColor: D.surfaceLight,
6993
- color: D.textPrimary,
6989
+ backgroundColor: $.surfaceLight,
6990
+ color: $.textPrimary,
6994
6991
  padding: "10px 20px",
6995
6992
  borderRadius: "6px",
6996
6993
  border: "none",
@@ -7023,8 +7020,8 @@ const qs = [
7023
7020
  bottom: "100%",
7024
7021
  left: 0,
7025
7022
  right: 0,
7026
- backgroundColor: D.surface,
7027
- border: `1px solid ${D.border}`,
7023
+ backgroundColor: $.surface,
7024
+ border: `1px solid ${$.border}`,
7028
7025
  borderRadius: "12px 12px 0 0",
7029
7026
  boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
7030
7027
  zIndex: 200,
@@ -7044,7 +7041,7 @@ const qs = [
7044
7041
  padding: "14px 18px",
7045
7042
  backgroundColor: "transparent",
7046
7043
  border: "none",
7047
- color: D.textPrimary,
7044
+ color: $.textPrimary,
7048
7045
  cursor: "pointer",
7049
7046
  transition: "all 0.2s ease",
7050
7047
  fontSize: "13px",
@@ -7054,7 +7051,7 @@ const qs = [
7054
7051
  gap: "8px",
7055
7052
  textAlign: "left"
7056
7053
  },
7057
- onMouseEnter: (k) => k.currentTarget.style.backgroundColor = D.surfaceLight,
7054
+ onMouseEnter: (k) => k.currentTarget.style.backgroundColor = $.surfaceLight,
7058
7055
  onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
7059
7056
  children: [
7060
7057
  /* @__PURE__ */ n.jsx(ct, { size: 14, "aria-hidden": "true" }),
@@ -7119,7 +7116,7 @@ const qs = [
7119
7116
  },
7120
7117
  onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
7121
7118
  children: [
7122
- /* @__PURE__ */ n.jsx($e, { size: 14, "aria-hidden": "true" }),
7119
+ /* @__PURE__ */ n.jsx(De, { size: 14, "aria-hidden": "true" }),
7123
7120
  "Delete Account"
7124
7121
  ]
7125
7122
  }
@@ -7148,7 +7145,7 @@ const qs = [
7148
7145
  "section",
7149
7146
  {
7150
7147
  style: {
7151
- backgroundColor: D.surface,
7148
+ backgroundColor: $.surface,
7152
7149
  borderRadius: "16px",
7153
7150
  padding: "24px",
7154
7151
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7161,7 +7158,7 @@ const qs = [
7161
7158
  fontSize: "20px",
7162
7159
  fontWeight: 600,
7163
7160
  margin: "0 0 24px 0",
7164
- color: D.textSecondary,
7161
+ color: $.textSecondary,
7165
7162
  display: "flex",
7166
7163
  alignItems: "center",
7167
7164
  gap: "8px"
@@ -7199,7 +7196,7 @@ const qs = [
7199
7196
  "label",
7200
7197
  {
7201
7198
  style: {
7202
- color: D.textTertiary,
7199
+ color: $.textTertiary,
7203
7200
  fontSize: "12px",
7204
7201
  fontWeight: 500,
7205
7202
  display: "flex",
@@ -7226,7 +7223,7 @@ const qs = [
7226
7223
  borderRadius: "8px",
7227
7224
  border: `1px solid ${a}`,
7228
7225
  backgroundColor: "transparent",
7229
- color: D.textPrimary,
7226
+ color: $.textPrimary,
7230
7227
  fontSize: "12px",
7231
7228
  outline: "none",
7232
7229
  transition: "border-color 0.2s ease",
@@ -7249,7 +7246,7 @@ const qs = [
7249
7246
  display: "flex",
7250
7247
  alignItems: "center",
7251
7248
  boxSizing: "border-box",
7252
- color: D.textPrimary,
7249
+ color: $.textPrimary,
7253
7250
  backgroundColor: r ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
7254
7251
  },
7255
7252
  children: k.value
@@ -7269,7 +7266,7 @@ const qs = [
7269
7266
  "section",
7270
7267
  {
7271
7268
  style: {
7272
- backgroundColor: D.surface,
7269
+ backgroundColor: $.surface,
7273
7270
  borderRadius: "16px",
7274
7271
  padding: "30px 24px",
7275
7272
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7282,7 +7279,7 @@ const qs = [
7282
7279
  fontSize: "20px",
7283
7280
  fontWeight: 600,
7284
7281
  margin: "0 0 24px 0",
7285
- color: D.textSecondary,
7282
+ color: $.textSecondary,
7286
7283
  display: "flex",
7287
7284
  alignItems: "center",
7288
7285
  gap: "8px"
@@ -7319,7 +7316,7 @@ const qs = [
7319
7316
  display: "flex",
7320
7317
  alignItems: "center",
7321
7318
  gap: "12px",
7322
- color: D.textSecondary
7319
+ color: $.textSecondary
7323
7320
  },
7324
7321
  children: [
7325
7322
  /* @__PURE__ */ n.jsx(pe, { size: 16, "aria-hidden": "true" }),
@@ -7340,11 +7337,11 @@ const qs = [
7340
7337
  gap: "6px",
7341
7338
  ...d.isVerified ? {
7342
7339
  backgroundColor: r ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
7343
- color: D.success,
7340
+ color: $.success,
7344
7341
  border: `1px solid ${r ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
7345
7342
  } : {
7346
7343
  backgroundColor: r ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
7347
- color: D.warning,
7344
+ color: $.warning,
7348
7345
  border: `1px solid ${r ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
7349
7346
  }
7350
7347
  },
@@ -7372,7 +7369,7 @@ const qs = [
7372
7369
  "p",
7373
7370
  {
7374
7371
  style: {
7375
- color: D.textTertiary,
7372
+ color: $.textTertiary,
7376
7373
  fontSize: "12px",
7377
7374
  margin: 0
7378
7375
  },
@@ -7403,7 +7400,7 @@ const qs = [
7403
7400
  A(!1);
7404
7401
  },
7405
7402
  onUpdate: oe,
7406
- colors: D
7403
+ colors: $
7407
7404
  }
7408
7405
  ),
7409
7406
  /* @__PURE__ */ n.jsx(
@@ -7414,7 +7411,7 @@ const qs = [
7414
7411
  onClose: () => _(!1),
7415
7412
  onSuccess: (k) => j("success", k),
7416
7413
  onError: (k) => j("error", k),
7417
- colors: D
7414
+ colors: $
7418
7415
  }
7419
7416
  ),
7420
7417
  /* @__PURE__ */ n.jsx(
@@ -7426,7 +7423,7 @@ const qs = [
7426
7423
  onClose: () => v(!1),
7427
7424
  onSuccess: (k) => j("success", k),
7428
7425
  onError: (k) => j("error", k),
7429
- colors: D
7426
+ colors: $
7430
7427
  }
7431
7428
  ),
7432
7429
  /* @__PURE__ */ n.jsx(
@@ -7443,7 +7440,7 @@ const qs = [
7443
7440
  otpSent: L,
7444
7441
  verifying: b,
7445
7442
  user: d,
7446
- colors: D,
7443
+ colors: $,
7447
7444
  darkMode: r
7448
7445
  }
7449
7446
  ),