chordia-ui 3.3.0 → 3.3.2

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.
package/dist/index.es2.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { jsxs as x, jsx as p, Fragment as Te } from "react/jsx-runtime";
2
- import ae, { useMemo as rt, useState as D, useRef as Oe, useEffect as ce, useCallback as tt, useImperativeHandle as Nn, lazy as Io, Suspense as xo } from "react";
3
- import { CircleCheckBig as So, ShieldCheck as Co, Radar as Oo, EyeOff as Uo, Eye as Ao } from "lucide-react";
2
+ import ae, { useMemo as at, useState as E, useRef as Oe, useEffect as ce, useCallback as ot, useImperativeHandle as Ln, lazy as So, Suspense as Co } from "react";
3
+ import { CircleCheckBig as Oo, ShieldCheck as Uo, Radar as Ao, EyeOff as To, Eye as jo } from "lucide-react";
4
4
  import "./colors.es.js";
5
- const Pn = ae.createContext(void 0), un = (e) => (...t) => {
5
+ const Fn = ae.createContext(void 0), gn = (e) => (...t) => {
6
6
  if (!e)
7
7
  throw Error("You can only use this function after sdk initialization. Make sure to supply 'projectId' to <AuthProvider /> component");
8
8
  return e(...t);
9
- }, To = () => typeof window < "u" && !!window.descopeBridge, et = { "x-descope-sdk-name": "react", "x-descope-sdk-version": "2.26.7" }, pn = typeof window < "u";
10
- var nt = function() {
11
- return nt = Object.assign || function(t) {
9
+ }, Eo = () => typeof window < "u" && !!window.descopeBridge, nt = { "x-descope-sdk-name": "react", "x-descope-sdk-version": "2.26.7" }, hn = typeof window < "u";
10
+ var rt = function() {
11
+ return rt = Object.assign || function(t) {
12
12
  for (var n, o = 1, r = arguments.length; o < r; o++) {
13
13
  n = arguments[o];
14
14
  for (var i in n)
15
15
  Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
16
16
  }
17
17
  return t;
18
- }, nt.apply(this, arguments);
18
+ }, rt.apply(this, arguments);
19
19
  };
20
20
  function B(e, t) {
21
21
  var n = {};
@@ -26,7 +26,7 @@ function B(e, t) {
26
26
  t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
27
27
  return n;
28
28
  }
29
- function Qi(e, t, n, o) {
29
+ function Gi(e, t, n, o) {
30
30
  function r(i) {
31
31
  return i instanceof n ? i : new n(function(a) {
32
32
  a(i);
@@ -53,20 +53,20 @@ function Qi(e, t, n, o) {
53
53
  c((o = o.apply(e, t || [])).next());
54
54
  });
55
55
  }
56
- function jo(e, t, n) {
56
+ function Do(e, t, n) {
57
57
  if (n || arguments.length === 2)
58
58
  for (var o = 0, r = t.length, i; o < r; o++)
59
59
  (i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
60
60
  return e.concat(i || Array.prototype.slice.call(t));
61
61
  }
62
- function Xi(e, t, n, o) {
62
+ function Zi(e, t, n, o) {
63
63
  if (n === "a" && !o)
64
64
  throw new TypeError("Private accessor was defined without a getter");
65
65
  if (typeof t == "function" ? e !== t || !o : !t.has(e))
66
66
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
67
67
  return n === "m" ? o : n === "a" ? o.call(e) : o ? o.value : t.get(e);
68
68
  }
69
- function Gi(e, t, n, o, r) {
69
+ function _i(e, t, n, o, r) {
70
70
  if (o === "m")
71
71
  throw new TypeError("Private method is not writable");
72
72
  if (o === "a" && !r)
@@ -78,13 +78,13 @@ function Gi(e, t, n, o, r) {
78
78
  class Je extends Error {
79
79
  }
80
80
  Je.prototype.name = "InvalidTokenError";
81
- function Eo(e) {
81
+ function Ro(e) {
82
82
  return decodeURIComponent(atob(e).replace(/(.)/g, (t, n) => {
83
83
  let o = n.charCodeAt(0).toString(16).toUpperCase();
84
84
  return o.length < 2 && (o = "0" + o), "%" + o;
85
85
  }));
86
86
  }
87
- function Do(e) {
87
+ function No(e) {
88
88
  let t = e.replace(/-/g, "+").replace(/_/g, "/");
89
89
  switch (t.length % 4) {
90
90
  case 0:
@@ -99,12 +99,12 @@ function Do(e) {
99
99
  throw new Error("base64 string is not of the correct length");
100
100
  }
101
101
  try {
102
- return Eo(t);
102
+ return Ro(t);
103
103
  } catch {
104
104
  return atob(t);
105
105
  }
106
106
  }
107
- function Ft(e, t) {
107
+ function qt(e, t) {
108
108
  if (typeof e != "string")
109
109
  throw new Je("Invalid token specified: must be a string");
110
110
  t || (t = {});
@@ -113,7 +113,7 @@ function Ft(e, t) {
113
113
  throw new Je(`Invalid token specified: missing part #${n + 1}`);
114
114
  let r;
115
115
  try {
116
- r = Do(o);
116
+ r = No(o);
117
117
  } catch (i) {
118
118
  throw new Je(`Invalid token specified: invalid base64 for part #${n + 1} (${i.message})`);
119
119
  }
@@ -124,7 +124,7 @@ function Ft(e, t) {
124
124
  }
125
125
  }
126
126
  var m = { accessKey: { exchange: "/v1/auth/accesskey/exchange" }, otp: { verify: "/v1/auth/otp/verify", signIn: "/v1/auth/otp/signin", signUp: "/v1/auth/otp/signup", update: { email: "/v1/auth/otp/update/email", phone: "/v1/auth/otp/update/phone" }, signUpOrIn: "/v1/auth/otp/signup-in" }, magicLink: { verify: "/v1/auth/magiclink/verify", signIn: "/v1/auth/magiclink/signin", signUp: "/v1/auth/magiclink/signup", update: { email: "/v1/auth/magiclink/update/email", phone: "/v1/auth/magiclink/update/phone" }, signUpOrIn: "/v1/auth/magiclink/signup-in" }, enchantedLink: { verify: "/v1/auth/enchantedlink/verify", signIn: "/v1/auth/enchantedlink/signin", signUp: "/v1/auth/enchantedlink/signup", session: "/v1/auth/enchantedlink/pending-session", update: { email: "/v1/auth/enchantedlink/update/email" }, signUpOrIn: "/v1/auth/enchantedlink/signup-in" }, oauth: { start: "/v1/auth/oauth/authorize", exchange: "/v1/auth/oauth/exchange", startNative: "v1/auth/oauth/native/start", finishNative: "v1/auth/oauth/native/finish", oneTap: { getOneTapClientId: "/v1/auth/onetap/clientid/{provider}", exchangeOneTapIDToken: "/v1/auth/onetap/idtoken/exchange", verifyOneTapIDToken: "/v1/auth/onetap/idtoken/verify" } }, outbound: { connect: "/v1/outbound/oauth/connect" }, saml: { start: "/v1/auth/saml/authorize", exchange: "/v1/auth/saml/exchange" }, totp: { verify: "/v1/auth/totp/verify", signUp: "/v1/auth/totp/signup", update: "/v1/auth/totp/update" }, notp: { signIn: "/v1/auth/notp/whatsapp/signin", signUp: "/v1/auth/notp/whatsapp/signup", signUpOrIn: "/v1/auth/notp/whatsapp/signup-in", session: "/v1/auth/notp/pending-session" }, webauthn: { signUp: { start: "/v1/auth/webauthn/signup/start", finish: "/v1/auth/webauthn/signup/finish" }, signIn: { start: "/v1/auth/webauthn/signin/start", finish: "/v1/auth/webauthn/signin/finish" }, signUpOrIn: { start: "/v1/auth/webauthn/signup-in/start" }, update: { start: "v1/auth/webauthn/update/start", finish: "/v1/auth/webauthn/update/finish" } }, password: { signUp: "/v1/auth/password/signup", signIn: "/v1/auth/password/signin", sendReset: "/v1/auth/password/reset", update: "/v1/auth/password/update", replace: "/v1/auth/password/replace", policy: "/v1/auth/password/policy" }, refresh: "/v1/auth/refresh", tryRefresh: "/v1/auth/try-refresh", selectTenant: "/v1/auth/tenant/select", logout: "/v1/auth/logout", logoutAll: "/v1/auth/logoutall", me: "/v1/auth/me", myTenants: "/v1/auth/me/tenants", history: "/v1/auth/me/history", flow: { start: "/v1/flow/start", next: "/v1/flow/next" } };
127
- const Ln = "<region>", Ro = `https://api.${Ln}descope.com`, gn = 1e3, hn = 6e5, Fn = "dct", fn = () => {
127
+ const Bn = "<region>", Po = `https://api.${Bn}descope.com`, fn = 1e3, vn = 6e5, qn = "dct", mn = () => {
128
128
  const e = {};
129
129
  return { headers(t) {
130
130
  const n = typeof t.entries == "function" ? Object.fromEntries(t.entries()) : t;
@@ -143,38 +143,38 @@ const Ln = "<region>", Ro = `https://api.${Ln}descope.com`, gn = 1e3, hn = 6e5,
143
143
  return e.Retries = t, this;
144
144
  }, build: () => Object.keys(e).flatMap((t) => e[t] ? [`${t !== "Title" ? `${t}: ` : ""}${e[t]}`] : []).join(`
145
145
  `) };
146
- }, No = [521, 524], vn = (e) => async (...t) => {
146
+ }, Lo = [521, 524], wn = (e) => async (...t) => {
147
147
  let n = await e(...t);
148
- No.includes(n.status) && (n = await e(...t), n.retries = 1);
148
+ Lo.includes(n.status) && (n = await e(...t), n.retries = 1);
149
149
  const o = await n.text();
150
150
  return n.text = () => Promise.resolve(o), n.json = () => Promise.resolve(JSON.parse(o)), n.clone = () => n, n;
151
- }, Po = (e, t) => {
151
+ }, Fo = (e, t) => {
152
152
  const n = t || fetch;
153
153
  return n || e == null || e.warn("Fetch is not defined, you will not be able to send http requests, if you are running in a test, make sure fetch is defined globally"), e ? async (...o) => {
154
154
  if (!n)
155
155
  throw Error("Cannot send http request, fetch is not defined, if you are running in a test, make sure fetch is defined globally");
156
- e.log(((i) => fn().title("Request").url(i[0]).method(i[1].method).headers(i[1].headers).body(i[1].body).build())(o));
157
- const r = await vn(n)(...o);
156
+ e.log(((i) => mn().title("Request").url(i[0]).method(i[1].method).headers(i[1].headers).body(i[1].body).build())(o));
157
+ const r = await wn(n)(...o);
158
158
  return e[r.ok ? "log" : "error"](await (async (i) => {
159
159
  const a = await i.text();
160
- return fn().title("Response").url(i.url.toString()).status(`${i.status} ${i.statusText}`).headers(i.headers).body(a).retries(i.retries).build();
160
+ return mn().title("Response").url(i.url.toString()).status(`${i.status} ${i.statusText}`).headers(i.headers).body(a).retries(i.retries).build();
161
161
  })(r)), r;
162
- } : vn(n);
162
+ } : wn(n);
163
163
  };
164
- let Qe;
165
- const Lo = () => {
166
- if (Qe)
167
- return Qe;
164
+ let Ge;
165
+ const Bo = () => {
166
+ if (Ge)
167
+ return Ge;
168
168
  const e = /* @__PURE__ */ new Date(), t = `${e.getUTCFullYear().toString()}-${(e.getUTCMonth() + 1).toString().padStart(2, "0")}-${e.getUTCDate().toString().padStart(2, "0")}-${e.getUTCHours().toString().padStart(2, "0")}:${e.getUTCMinutes().toString().padStart(2, "0")}:${e.getUTCSeconds().toString().padStart(2, "0")}:${e.getUTCMilliseconds().toString()}`, n = Math.floor(1e3 + 9e3 * Math.random());
169
- return Qe = `${t}-${n}`, Qe;
169
+ return Ge = `${t}-${n}`, Ge;
170
170
  };
171
171
  var Ce;
172
172
  (function(e) {
173
173
  e.get = "GET", e.delete = "DELETE", e.post = "POST", e.put = "PUT", e.patch = "PATCH";
174
174
  })(Ce || (Ce = {}));
175
- const mn = ({ path: e, baseUrl: t, queryParams: n, projectId: o }) => {
175
+ const yn = ({ path: e, baseUrl: t, queryParams: n, projectId: o }) => {
176
176
  const r = o.slice(1, -27);
177
- t = t.replace(Ln, r ? r + "." : "");
177
+ t = t.replace(Bn, r ? r + "." : "");
178
178
  let i = e ? `${t.replace(/\/$/, "")}/${e == null ? void 0 : e.replace(/^\//, "")}` : t;
179
179
  if (n) {
180
180
  const a = Object.keys(n);
@@ -183,15 +183,15 @@ const mn = ({ path: e, baseUrl: t, queryParams: n, projectId: o }) => {
183
183
  });
184
184
  }
185
185
  return i;
186
- }, Fo = (...e) => new Headers(e.reduce((t, n) => (((o) => Array.isArray(o) ? o : o instanceof Headers ? Array.from(o.entries()) : o ? Object.entries(o) : [])(n).forEach(([o, r]) => {
186
+ }, qo = (...e) => new Headers(e.reduce((t, n) => (((o) => Array.isArray(o) ? o : o instanceof Headers ? Array.from(o.entries()) : o ? Object.entries(o) : [])(n).forEach(([o, r]) => {
187
187
  t[o] = typeof r == "function" ? r() : r;
188
- }), t), {})), Bo = { "Content-Type": "application/json" }, qo = (e, t = "") => {
188
+ }), t), {})), zo = { "Content-Type": "application/json" }, Jo = (e, t = "") => {
189
189
  let n = e;
190
190
  return t && (n = n + ":" + t), { Authorization: `Bearer ${n}` };
191
- }, zo = (e, t) => {
192
- const n = { "x-descope-sdk-session-id": Lo(), "x-descope-sdk-name": "core-js", "x-descope-sdk-version": "2.57.0", "x-descope-project-id": e };
191
+ }, Ho = (e, t) => {
192
+ const n = { "x-descope-sdk-session-id": Bo(), "x-descope-sdk-name": "core-js", "x-descope-sdk-version": "2.57.0", "x-descope-project-id": e };
193
193
  return t && (n["x-descope-refresh-cookie-name"] = t), n;
194
- }, Jo = (e) => {
194
+ }, Ko = (e) => {
195
195
  try {
196
196
  e = JSON.parse(e);
197
197
  } catch {
@@ -199,7 +199,7 @@ const mn = ({ path: e, baseUrl: t, queryParams: n, projectId: o }) => {
199
199
  }
200
200
  return typeof e == "object" && e !== null;
201
201
  };
202
- var Ko = ((e) => (t) => {
202
+ var Vo = ((e) => (t) => {
203
203
  var n;
204
204
  return e(Object.assign(Object.assign({}, t), { hooks: { beforeRequest: (o) => {
205
205
  var r;
@@ -214,79 +214,79 @@ var Ko = ((e) => (t) => {
214
214
  });
215
215
  }, transformResponse: (n = t.hooks) === null || n === void 0 ? void 0 : n.transformResponse } }));
216
216
  })(({ baseUrl: e, projectId: t, baseConfig: n, refreshCookieName: o, logger: r, hooks: i, cookiePolicy: a, fetch: l }) => {
217
- const s = e || Ro, c = Po(r, l), d = async (u) => {
217
+ const s = e || Po, c = Fo(r, l), d = async (u) => {
218
218
  var g;
219
- const y = i != null && i.beforeRequest ? i.beforeRequest(u) : u, { path: v, body: f, headers: b, queryParams: O, method: U, token: A } = y, L = ((H) => H === void 0 ? void 0 : JSON.stringify(H))(f), J = { headers: Fo(qo(t, A), zo(t, o), (n == null ? void 0 : n.baseHeaders) || {}, Jo(L) ? Bo : {}, b), method: U, body: L };
219
+ const y = i != null && i.beforeRequest ? i.beforeRequest(u) : u, { path: v, body: f, headers: b, queryParams: O, method: U, token: A } = y, L = ((K) => K === void 0 ? void 0 : JSON.stringify(K))(f), J = { headers: qo(Jo(t, A), Ho(t, o), (n == null ? void 0 : n.baseHeaders) || {}, Ko(L) ? zo : {}, b), method: U, body: L };
220
220
  a !== null && (J.credentials = a || "include");
221
- const q = await c(mn({ path: v, baseUrl: s, queryParams: O, projectId: t }), J);
221
+ const q = await c(yn({ path: v, baseUrl: s, queryParams: O, projectId: t }), J);
222
222
  if (i != null && i.afterRequest && await i.afterRequest(u, q == null ? void 0 : q.clone()), i == null ? void 0 : i.transformResponse) {
223
- const H = await q.json(), V = (((g = q.headers) === null || g === void 0 ? void 0 : g.get("set-cookie")) || "").split(";").reduce((Y, F) => {
223
+ const K = await q.json(), V = (((g = q.headers) === null || g === void 0 ? void 0 : g.get("set-cookie")) || "").split(";").reduce((Y, F) => {
224
224
  const [Q, X] = F.split("=");
225
225
  return Object.assign(Object.assign({}, Y), { [Q.trim()]: X });
226
- }, {}), K = Object.assign(Object.assign({}, q), { json: () => Promise.resolve(H), cookies: V });
227
- return K.clone = () => K, i.transformResponse(K);
226
+ }, {}), H = Object.assign(Object.assign({}, q), { json: () => Promise.resolve(K), cookies: V });
227
+ return H.clone = () => H, i.transformResponse(H);
228
228
  }
229
229
  return q;
230
230
  };
231
- return { get: (u, { headers: g, queryParams: y, token: v } = {}) => d({ path: u, headers: g, queryParams: y, body: void 0, method: Ce.get, token: v }), post: (u, g, { headers: y, queryParams: v, token: f } = {}) => d({ path: u, headers: y, queryParams: v, body: g, method: Ce.post, token: f }), patch: (u, g, { headers: y, queryParams: v, token: f } = {}) => d({ path: u, headers: y, queryParams: v, body: g, method: Ce.patch, token: f }), put: (u, g, { headers: y, queryParams: v, token: f } = {}) => d({ path: u, headers: y, queryParams: v, body: g, method: Ce.put, token: f }), delete: (u, { headers: g, queryParams: y, token: v } = {}) => d({ path: u, headers: g, queryParams: y, body: void 0, method: Ce.delete, token: v }), hooks: i, buildUrl: (u, g) => mn({ projectId: t, baseUrl: s, path: u, queryParams: g }) };
232
- }), Ho = { TOO_MANY_REQUESTS: 429 };
233
- function Bn(e, t, n) {
231
+ return { get: (u, { headers: g, queryParams: y, token: v } = {}) => d({ path: u, headers: g, queryParams: y, body: void 0, method: Ce.get, token: v }), post: (u, g, { headers: y, queryParams: v, token: f } = {}) => d({ path: u, headers: y, queryParams: v, body: g, method: Ce.post, token: f }), patch: (u, g, { headers: y, queryParams: v, token: f } = {}) => d({ path: u, headers: y, queryParams: v, body: g, method: Ce.patch, token: f }), put: (u, g, { headers: y, queryParams: v, token: f } = {}) => d({ path: u, headers: y, queryParams: v, body: g, method: Ce.put, token: f }), delete: (u, { headers: g, queryParams: y, token: v } = {}) => d({ path: u, headers: g, queryParams: y, body: void 0, method: Ce.delete, token: v }), hooks: i, buildUrl: (u, g) => yn({ projectId: t, baseUrl: s, path: u, queryParams: g }) };
232
+ }), Mo = { TOO_MANY_REQUESTS: 429 };
233
+ function zn(e, t, n) {
234
234
  var o;
235
- let r = it(e);
235
+ let r = st(e);
236
236
  if (t) {
237
- if (!(r != null && r.tenants) && (r == null ? void 0 : r[Fn]) === t)
237
+ if (!(r != null && r.tenants) && (r == null ? void 0 : r[qn]) === t)
238
238
  return (r == null ? void 0 : r[n]) || [];
239
239
  r = (o = r == null ? void 0 : r.tenants) === null || o === void 0 ? void 0 : o[t];
240
240
  }
241
241
  const i = r == null ? void 0 : r[n];
242
242
  return Array.isArray(i) ? i : [];
243
243
  }
244
- function it(e) {
244
+ function st(e) {
245
245
  if (typeof e != "string" || !e)
246
246
  throw new Error("Invalid token provided");
247
- return Ft(e);
247
+ return qt(e);
248
248
  }
249
- function Vo(e) {
250
- const { exp: t } = it(e);
249
+ function Wo(e) {
250
+ const { exp: t } = st(e);
251
251
  return (/* @__PURE__ */ new Date()).getTime() / 1e3 > t;
252
252
  }
253
- function Mo(e) {
254
- let t = it(e);
253
+ function Yo(e) {
254
+ let t = st(e);
255
255
  const n = Object.keys(t == null ? void 0 : t.tenants);
256
256
  return Array.isArray(n) ? n : [];
257
257
  }
258
- function Wo(e, t) {
259
- return Bn(e, t, "permissions");
258
+ function $o(e, t) {
259
+ return zn(e, t, "permissions");
260
260
  }
261
- function Yo(e, t) {
262
- return Bn(e, t, "roles");
261
+ function Qo(e, t) {
262
+ return zn(e, t, "roles");
263
263
  }
264
264
  const _ = (...e) => e.join("/").replace(/\/{2,}/g, "/");
265
265
  async function w(e, t) {
266
266
  var n;
267
267
  const o = await e, r = { code: o.status, ok: o.ok, response: o }, i = await o.clone().json();
268
- return o.ok ? r.data = t ? t(i) : i : (r.error = i, o.status === Ho.TOO_MANY_REQUESTS && Object.assign(r.error, { retryAfter: Number.parseInt((n = o.headers) === null || n === void 0 ? void 0 : n.get("retry-after")) || 0 })), r;
268
+ return o.ok ? r.data = t ? t(i) : i : (r.error = i, o.status === Mo.TOO_MANY_REQUESTS && Object.assign(r.error, { retryAfter: Number.parseInt((n = o.headers) === null || n === void 0 ? void 0 : n.get("retry-after")) || 0 })), r;
269
269
  }
270
- function $o(e) {
270
+ function Xo(e) {
271
271
  var t;
272
- return ((t = it(e)) === null || t === void 0 ? void 0 : t[Fn]) || "";
272
+ return ((t = st(e)) === null || t === void 0 ? void 0 : t[qn]) || "";
273
273
  }
274
- const we = (e, t) => (n = t) => (o) => !e(o) && n.replace("{val}", o), qn = (e, t) => (n = t) => (o) => {
274
+ const we = (e, t) => (n = t) => (o) => !e(o) && n.replace("{val}", o), Jn = (e, t) => (n = t) => (o) => {
275
275
  const r = e.filter((i) => i(o));
276
276
  return !(r.length < e.length) && (n ? n.replace("{val}", o) : r.join(" OR "));
277
- }, zn = (...e) => ({ validate: (t) => (e.forEach((n) => {
277
+ }, Hn = (...e) => ({ validate: (t) => (e.forEach((n) => {
278
278
  const o = n(t);
279
279
  if (o)
280
280
  throw new Error(o);
281
- }), !0) }), Jn = (e) => (t) => e.test(t), Qo = Jn(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/), Xo = Jn(/^\+[1-9]{1}[0-9]{3,14}$/), Go = (e, t) => (n) => zn(...t).validate(((o, r, i) => {
281
+ }), !0) }), Kn = (e) => (t) => e.test(t), Go = Kn(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/), Zo = Kn(/^\+[1-9]{1}[0-9]{3,14}$/), _o = (e, t) => (n) => Hn(...t).validate(((o, r, i) => {
282
282
  const a = (Array.isArray(r) ? r.join(".") : String(r)).replace(/\[\\?("|')?(\w|d)+\\?("|')?\]/g, (d, u, g) => "." + g).split("."), l = a.length;
283
283
  let s = 0, c = o === Object(o) ? o : void 0;
284
284
  for (; c != null && s < l; )
285
285
  c = c[a[s++]];
286
286
  return s && s === l && c !== void 0 ? c : i;
287
- })(n, e)), Zo = we(Qo, '"{val}" is not a valid email'), _o = we(Xo, '"{val}" is not a valid phone number'), er = we((wn = 1, (e) => e.length >= wn), "Minimum length is 1");
288
- var wn;
289
- const Ne = we((e) => typeof e == "string", "Input is not a string"), tr = we((e) => Array.isArray(e), "Input is not an array"), nr = we((e) => typeof e == "boolean", "Input is not a boolean"), or = we((e) => e === void 0, "Input is defined"), Ut = qn([Ne(), or()], "Input is not a string or undefined"), rr = qn([tr(), nr()], "Input is not an array or boolean"), S = (...e) => (t) => (...n) => (e.forEach((o, r) => zn(...o).validate(n[r])), t(...n)), Kn = (e) => [Ne(`"${e}" must be a string`)], Hn = (e) => [Ut(`"${e}" must be string or undefined`)], E = (e) => [Ne(`"${e}" must be a string`), er(`"${e}" must not be empty`)], Bt = (e) => [Ne(`"${e}" must be a string`), Zo()], Vn = (e) => [Ne(`"${e}" must be a string`), _o()], ir = S(E("accessKey")), ar = (e) => ({ exchange: ir((t, n) => w(e.post(m.accessKey.exchange, { loginOptions: n }, { token: t }))) }), Le = (e, t, n) => (t.forEach((o) => {
287
+ })(n, e)), er = we(Go, '"{val}" is not a valid email'), tr = we(Zo, '"{val}" is not a valid phone number'), nr = we((bn = 1, (e) => e.length >= bn), "Minimum length is 1");
288
+ var bn;
289
+ const Ne = we((e) => typeof e == "string", "Input is not a string"), or = we((e) => Array.isArray(e), "Input is not an array"), rr = we((e) => typeof e == "boolean", "Input is not a boolean"), ir = we((e) => e === void 0, "Input is defined"), Tt = Jn([Ne(), ir()], "Input is not a string or undefined"), ar = Jn([or(), rr()], "Input is not an array or boolean"), S = (...e) => (t) => (...n) => (e.forEach((o, r) => Hn(...o).validate(n[r])), t(...n)), Vn = (e) => [Ne(`"${e}" must be a string`)], Mn = (e) => [Tt(`"${e}" must be string or undefined`)], R = (e) => [Ne(`"${e}" must be a string`), nr(`"${e}" must not be empty`)], zt = (e) => [Ne(`"${e}" must be a string`), er()], Wn = (e) => [Ne(`"${e}" must be a string`), tr()], sr = S(R("accessKey")), lr = (e) => ({ exchange: sr((t, n) => w(e.post(m.accessKey.exchange, { loginOptions: n }, { token: t }))) }), Le = (e, t, n) => (t.forEach((o) => {
290
290
  const r = o.split(".");
291
291
  let i = r.shift(), a = e;
292
292
  for (; r.length > 0; ) {
@@ -298,29 +298,29 @@ const Ne = we((e) => typeof e == "string", "Input is not a string"), tr = we((e)
298
298
  throw Error(`"${o}" is not a function`);
299
299
  const l = a[i];
300
300
  a[i] = n(l);
301
- }), e), Mn = ({ pollingIntervalMs: e = 1e3, timeoutMs: t = 6e5 } = {}) => ({ pollingIntervalMs: Math.max(e || gn, gn), timeoutMs: Math.min(t || hn, hn) });
302
- var me, At;
301
+ }), e), Yn = ({ pollingIntervalMs: e = 1e3, timeoutMs: t = 6e5 } = {}) => ({ pollingIntervalMs: Math.max(e || fn, fn), timeoutMs: Math.min(t || vn, vn) });
302
+ var me, jt;
303
303
  (function(e) {
304
304
  e.sms = "sms", e.voice = "voice", e.whatsapp = "whatsapp", e.im = "im";
305
305
  })(me || (me = {})), function(e) {
306
306
  e.email = "email";
307
- }(At || (At = {}));
308
- const ge = Object.assign(Object.assign({}, me), At);
309
- var yn;
307
+ }(jt || (jt = {}));
308
+ const ge = Object.assign(Object.assign({}, me), jt);
309
+ var kn;
310
310
  (function(e) {
311
311
  e.waiting = "waiting", e.running = "running", e.completed = "completed", e.failed = "failed";
312
- })(yn || (yn = {}));
313
- const Wn = E("loginId"), sr = S(E("token")), vt = S(Wn), lr = S(E("pendingRef")), cr = S(Wn, Bt("email")), dr = (e) => ({ verify: sr((t) => w(e.post(m.enchantedLink.verify, { token: t }))), signIn: vt((t, n, o = {}, r) => {
312
+ })(kn || (kn = {}));
313
+ const $n = R("loginId"), cr = S(R("token")), wt = S($n), dr = S(R("pendingRef")), ur = S($n, zt("email")), pr = (e) => ({ verify: cr((t) => w(e.post(m.enchantedLink.verify, { token: t }))), signIn: wt((t, n, o = {}, r) => {
314
314
  var { providerId: i } = o, a = B(o, ["providerId"]);
315
315
  return w(e.post(_(m.enchantedLink.signIn, ge.email), { loginId: t, URI: n, loginOptions: a, providerId: i }, { token: r }));
316
- }), signUpOrIn: vt((t, n, o = {}) => {
316
+ }), signUpOrIn: wt((t, n, o = {}) => {
317
317
  var { providerId: r } = o, i = B(o, ["providerId"]);
318
318
  return w(e.post(_(m.enchantedLink.signUpOrIn, ge.email), { loginId: t, URI: n, loginOptions: i, providerId: r }));
319
- }), signUp: vt((t, n, o, r = {}) => {
319
+ }), signUp: wt((t, n, o, r = {}) => {
320
320
  var { providerId: i } = r, a = B(r, ["providerId"]);
321
321
  return w(e.post(_(m.enchantedLink.signUp, ge.email), { loginId: t, URI: n, user: o, loginOptions: a, providerId: i }));
322
- }), waitForSession: lr((t, n) => new Promise((o) => {
323
- const { pollingIntervalMs: r, timeoutMs: i } = Mn(n);
322
+ }), waitForSession: dr((t, n) => new Promise((o) => {
323
+ const { pollingIntervalMs: r, timeoutMs: i } = Yn(n);
324
324
  let a;
325
325
  const l = setInterval(async () => {
326
326
  const s = await e.post(m.enchantedLink.session, { pendingRef: t });
@@ -329,49 +329,49 @@ const Wn = E("loginId"), sr = S(E("token")), vt = S(Wn), lr = S(E("pendingRef"))
329
329
  a = setTimeout(() => {
330
330
  o({ error: { errorDescription: `Session polling timeout exceeded: ${i}ms`, errorCode: "0" }, ok: !1 }), clearInterval(l);
331
331
  }, i);
332
- })), update: { email: cr((t, n, o, r, i) => w(e.post(m.enchantedLink.update.email, Object.assign({ loginId: t, email: n, URI: o }, i), { token: r }))) } }), ur = S(E("flowId")), pr = S(E("executionId"), E("stepId"), E("interactionId")), gr = (e) => ({ start: ur((t, n, o, r, i, a, l, s = !1) => w(e.post(m.flow.start, { flowId: t, options: n, conditionInteractionId: o, interactionId: r, componentsVersion: i, flowVersions: a, input: l, isCustomScreen: s }))), next: pr((t, n, o, r, i, a, l = !1) => w(e.post(m.flow.next, { executionId: t, stepId: n, interactionId: o, version: r, componentsVersion: i, input: a, isCustomScreen: l }))) }), qt = E("loginId"), hr = S(E("token")), mt = S(qt), fr = S(qt, Vn("phone")), vr = S(qt, Bt("email")), wt = Object.keys(ge).filter((e) => e !== me.voice && e !== me.im), mr = (e) => ({ verify: hr((t) => w(e.post(m.magicLink.verify, { token: t }))), signIn: wt.reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: mt((o, r, i = {}, a) => {
332
+ })), update: { email: ur((t, n, o, r, i) => w(e.post(m.enchantedLink.update.email, Object.assign({ loginId: t, email: n, URI: o }, i), { token: r }))) } }), gr = S(R("flowId")), hr = S(R("executionId"), R("stepId"), R("interactionId")), fr = (e) => ({ start: gr((t, n, o, r, i, a, l, s = !1) => w(e.post(m.flow.start, { flowId: t, options: n, conditionInteractionId: o, interactionId: r, componentsVersion: i, flowVersions: a, input: l, isCustomScreen: s }))), next: hr((t, n, o, r, i, a, l = !1) => w(e.post(m.flow.next, { executionId: t, stepId: n, interactionId: o, version: r, componentsVersion: i, input: a, isCustomScreen: l }))) }), Jt = R("loginId"), vr = S(R("token")), yt = S(Jt), mr = S(Jt, Wn("phone")), wr = S(Jt, zt("email")), bt = Object.keys(ge).filter((e) => e !== me.voice && e !== me.im), yr = (e) => ({ verify: vr((t) => w(e.post(m.magicLink.verify, { token: t }))), signIn: bt.reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: yt((o, r, i = {}, a) => {
333
333
  var { providerId: l } = i, s = B(i, ["providerId"]);
334
334
  return w(e.post(_(m.magicLink.signIn, n), { loginId: o, URI: r, loginOptions: s, providerId: l }, { token: a }));
335
- }) }), {}), signUp: wt.reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: mt((o, r, i, a = {}) => {
335
+ }) }), {}), signUp: bt.reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: yt((o, r, i, a = {}) => {
336
336
  var { providerId: l } = a, s = B(a, ["providerId"]);
337
337
  return w(e.post(_(m.magicLink.signUp, n), { loginId: o, URI: r, user: i, loginOptions: s, providerId: l }));
338
- }) }), {}), signUpOrIn: wt.reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: mt((o, r, i = {}) => {
338
+ }) }), {}), signUpOrIn: bt.reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: yt((o, r, i = {}) => {
339
339
  var { providerId: a } = i, l = B(i, ["providerId"]);
340
340
  return w(e.post(_(m.magicLink.signUpOrIn, n), { loginId: o, URI: r, loginOptions: l, providerId: a }));
341
- }) }), {}), update: { email: vr((t, n, o, r, i) => w(e.post(m.magicLink.update.email, Object.assign({ loginId: t, email: n, URI: o }, i), { token: r }))), phone: Object.keys(me).filter((t) => t !== me.voice).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: fr((o, r, i, a, l) => w(e.post(_(m.magicLink.update.phone, n), Object.assign({ loginId: o, phone: r, URI: i }, l), { token: a }))) }), {}) } });
342
- var Tt;
341
+ }) }), {}), update: { email: wr((t, n, o, r, i) => w(e.post(m.magicLink.update.email, Object.assign({ loginId: t, email: n, URI: o }, i), { token: r }))), phone: Object.keys(me).filter((t) => t !== me.voice).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: mr((o, r, i, a, l) => w(e.post(_(m.magicLink.update.phone, n), Object.assign({ loginId: o, phone: r, URI: i }, l), { token: a }))) }), {}) } });
342
+ var Et;
343
343
  (function(e) {
344
344
  e.facebook = "facebook", e.github = "github", e.google = "google", e.microsoft = "microsoft", e.gitlab = "gitlab", e.apple = "apple", e.discord = "discord", e.linkedin = "linkedin", e.slack = "slack";
345
- })(Tt || (Tt = {}));
346
- const wr = S(E("code")), yr = (e) => ({ start: Object.assign((t, n, o, r, i) => w(e.post(m.oauth.start, o || {}, { queryParams: Object.assign(Object.assign({ provider: t }, n && { redirectURL: n }), i && { loginHint: i }), token: r })), Object.keys(Tt).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: (o, r, i, a) => w(e.post(m.oauth.start, r || {}, { queryParams: Object.assign(Object.assign({ provider: n }, o && { redirectURL: o }), a && { loginHint: a }), token: i })) }), {})), exchange: wr((t) => w(e.post(m.oauth.exchange, { code: t }))), startNative: (t, n, o) => w(e.post(m.oauth.startNative, { provider: t, loginOptions: n, implicit: o })), finishNative: (t, n, o, r, i) => w(e.post(m.oauth.finishNative, { provider: t, stateId: n, user: o, code: r, idToken: i })), getOneTapClientId: (t) => w(e.get(m.oauth.oneTap.getOneTapClientId.replace("{provider}", t))), verifyOneTapIDToken: (t, n, o, r) => w(e.post(m.oauth.oneTap.verifyOneTapIDToken, { provider: t, idToken: n, nonce: o, loginOptions: r })), exchangeOneTapIDToken: (t, n, o, r) => w(e.post(m.oauth.oneTap.exchangeOneTapIDToken, { provider: t, idToken: n, nonce: o, loginOptions: r })) }), br = E("appId"), kr = S(br), Ir = (e) => ({ connect: kr((t, n, o) => {
345
+ })(Et || (Et = {}));
346
+ const br = S(R("code")), kr = (e) => ({ start: Object.assign((t, n, o, r, i) => w(e.post(m.oauth.start, o || {}, { queryParams: Object.assign(Object.assign({ provider: t }, n && { redirectURL: n }), i && { loginHint: i }), token: r })), Object.keys(Et).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: (o, r, i, a) => w(e.post(m.oauth.start, r || {}, { queryParams: Object.assign(Object.assign({ provider: n }, o && { redirectURL: o }), a && { loginHint: a }), token: i })) }), {})), exchange: br((t) => w(e.post(m.oauth.exchange, { code: t }))), startNative: (t, n, o) => w(e.post(m.oauth.startNative, { provider: t, loginOptions: n, implicit: o })), finishNative: (t, n, o, r, i) => w(e.post(m.oauth.finishNative, { provider: t, stateId: n, user: o, code: r, idToken: i })), getOneTapClientId: (t) => w(e.get(m.oauth.oneTap.getOneTapClientId.replace("{provider}", t))), verifyOneTapIDToken: (t, n, o, r) => w(e.post(m.oauth.oneTap.verifyOneTapIDToken, { provider: t, idToken: n, nonce: o, loginOptions: r })), exchangeOneTapIDToken: (t, n, o, r) => w(e.post(m.oauth.oneTap.exchangeOneTapIDToken, { provider: t, idToken: n, nonce: o, loginOptions: r })) }), Ir = R("appId"), xr = S(Ir), Sr = (e) => ({ connect: xr((t, n, o) => {
347
347
  const r = n == null ? void 0 : n.tenantId, i = n == null ? void 0 : n.tenantLevel;
348
348
  return n == null || delete n.tenantId, n == null || delete n.tenantLevel, w(e.post(m.outbound.connect, { appId: t, tenantId: r, tenantLevel: i, options: n }, { token: o }));
349
- }) }), at = E("loginId"), xr = S(at, E("code")), yt = S(at), Sr = S(at, Vn("phone")), Cr = S(at, Bt("email")), Or = (e) => ({ verify: Object.keys(ge).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: xr((o, r) => w(e.post(_(m.otp.verify, n), { code: r, loginId: o }))) }), {}), signIn: Object.keys(ge).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: yt((o, r = {}, i) => {
349
+ }) }), lt = R("loginId"), Cr = S(lt, R("code")), kt = S(lt), Or = S(lt, Wn("phone")), Ur = S(lt, zt("email")), Ar = (e) => ({ verify: Object.keys(ge).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: Cr((o, r) => w(e.post(_(m.otp.verify, n), { code: r, loginId: o }))) }), {}), signIn: Object.keys(ge).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: kt((o, r = {}, i) => {
350
350
  var { providerId: a } = r, l = B(r, ["providerId"]);
351
351
  return w(e.post(_(m.otp.signIn, n), { loginId: o, loginOptions: l, providerId: a }, { token: i }));
352
- }) }), {}), signUp: Object.keys(ge).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: yt((o, r, i = {}) => {
352
+ }) }), {}), signUp: Object.keys(ge).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: kt((o, r, i = {}) => {
353
353
  var { providerId: a } = i, l = B(i, ["providerId"]);
354
354
  return w(e.post(_(m.otp.signUp, n), { loginId: o, user: r, loginOptions: l, providerId: a }));
355
- }) }), {}), signUpOrIn: Object.keys(ge).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: yt((o, r = {}) => {
355
+ }) }), {}), signUpOrIn: Object.keys(ge).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: kt((o, r = {}) => {
356
356
  var { providerId: i } = r, a = B(r, ["providerId"]);
357
357
  return w(e.post(_(m.otp.signUpOrIn, n), { loginId: o, loginOptions: a, providerId: i }));
358
- }) }), {}), update: { email: Cr((t, n, o, r) => w(e.post(m.otp.update.email, Object.assign({ loginId: t, email: n }, r), { token: o }))), phone: Object.keys(me).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: Sr((o, r, i, a) => w(e.post(_(m.otp.update.phone, n), Object.assign({ loginId: o, phone: r }, a), { token: i }))) }), {}) } }), Ur = S(E("tenant")), Ar = S(E("code")), Tr = (e) => ({ start: Ur((t, n, o, r, i, a, l, s) => w(e.post(m.saml.start, o || {}, Object.assign({ queryParams: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ tenant: t }, n && { redirectURL: n }), i && { ssoId: i }), a && { forceAuthn: "true" }), l && { loginHint: l }), s && { initiatedEmail: t }) }, r && { token: r })))), exchange: Ar((t) => w(e.post(m.saml.exchange, { code: t }))) }), zt = E("loginId"), jr = S(zt, E("code")), Er = S(zt), Dr = S(zt), Rr = (e) => ({ signUp: Er((t, n) => w(e.post(m.totp.signUp, { loginId: t, user: n }))), verify: jr((t, n, o, r) => w(e.post(m.totp.verify, { loginId: t, code: n, loginOptions: o }, { token: r }))), update: Dr((t, n) => w(e.post(m.totp.update, { loginId: t }, { token: n }))) }), st = E("loginId"), Yn = E("newPassword"), bn = S(st, E("password")), Nr = S(st), Pr = S(st, Yn), Lr = S(st, E("oldPassword"), Yn), Fr = (e) => ({ signUp: bn((t, n, o, r = {}) => {
358
+ }) }), {}), update: { email: Ur((t, n, o, r) => w(e.post(m.otp.update.email, Object.assign({ loginId: t, email: n }, r), { token: o }))), phone: Object.keys(me).reduce((t, n) => Object.assign(Object.assign({}, t), { [n]: Or((o, r, i, a) => w(e.post(_(m.otp.update.phone, n), Object.assign({ loginId: o, phone: r }, a), { token: i }))) }), {}) } }), Tr = S(R("tenant")), jr = S(R("code")), Er = (e) => ({ start: Tr((t, n, o, r, i, a, l, s) => w(e.post(m.saml.start, o || {}, Object.assign({ queryParams: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ tenant: t }, n && { redirectURL: n }), i && { ssoId: i }), a && { forceAuthn: "true" }), l && { loginHint: l }), s && { initiatedEmail: t }) }, r && { token: r })))), exchange: jr((t) => w(e.post(m.saml.exchange, { code: t }))) }), Ht = R("loginId"), Dr = S(Ht, R("code")), Rr = S(Ht), Nr = S(Ht), Pr = (e) => ({ signUp: Rr((t, n) => w(e.post(m.totp.signUp, { loginId: t, user: n }))), verify: Dr((t, n, o, r) => w(e.post(m.totp.verify, { loginId: t, code: n, loginOptions: o }, { token: r }))), update: Nr((t, n) => w(e.post(m.totp.update, { loginId: t }, { token: n }))) }), ct = R("loginId"), Qn = R("newPassword"), In = S(ct, R("password")), Lr = S(ct), Fr = S(ct, Qn), Br = S(ct, R("oldPassword"), Qn), qr = (e) => ({ signUp: In((t, n, o, r = {}) => {
359
359
  var { providerId: i } = r, a = B(r, ["providerId"]);
360
360
  return w(e.post(m.password.signUp, { loginId: t, password: n, user: o, loginOptions: a, providerId: i }));
361
- }), signIn: bn((t, n, o = {}) => {
361
+ }), signIn: In((t, n, o = {}) => {
362
362
  var { providerId: r } = o, i = B(o, ["providerId"]);
363
363
  return w(e.post(m.password.signIn, { loginId: t, password: n, loginOptions: i, providerId: r }));
364
- }), sendReset: Nr((t, n, o) => w(e.post(m.password.sendReset, { loginId: t, redirectUrl: n, templateOptions: o }))), update: Pr((t, n, o) => w(e.post(m.password.update, { loginId: t, newPassword: n }, { token: o }))), replace: Lr((t, n, o) => w(e.post(m.password.replace, { loginId: t, oldPassword: n, newPassword: o }))), policy: () => w(e.get(m.password.policy)) }), Br = Kn("loginId"), Jt = E("loginId"), lt = E("origin"), qr = S(Jt, lt, E("name")), zr = S(Jt, lt), Jr = S(Br, lt), Kr = S(Jt, lt, Hn("token")), bt = S(E("transactionId"), E("response")), Hr = (e) => ({ signUp: { start: qr((t, n, o, r) => w(e.post(m.webauthn.signUp.start, { user: { loginId: t, name: o }, origin: n, passkeyOptions: r }))), finish: bt((t, n) => w(e.post(m.webauthn.signUp.finish, { transactionId: t, response: n }))) }, signIn: { start: Jr((t, n, o, r, i) => w(e.post(m.webauthn.signIn.start, { loginId: t, origin: n, loginOptions: o, passkeyOptions: i }, { token: r }))), finish: bt((t, n) => w(e.post(m.webauthn.signIn.finish, { transactionId: t, response: n }))) }, signUpOrIn: { start: zr((t, n, o) => w(e.post(m.webauthn.signUpOrIn.start, { loginId: t, origin: n, passkeyOptions: o }))) }, update: { start: Kr((t, n, o, r) => w(e.post(m.webauthn.update.start, { loginId: t, origin: n, passkeyOptions: r }, { token: o }))), finish: bt((t, n) => w(e.post(m.webauthn.update.finish, { transactionId: t, response: n }))) } }), Vr = Kn("loginId"), kt = S(Vr), Mr = S(E("pendingRef")), Wr = (e) => ({ signUpOrIn: kt((t, n = {}) => {
364
+ }), sendReset: Lr((t, n, o) => w(e.post(m.password.sendReset, { loginId: t, redirectUrl: n, templateOptions: o }))), update: Fr((t, n, o) => w(e.post(m.password.update, { loginId: t, newPassword: n }, { token: o }))), replace: Br((t, n, o) => w(e.post(m.password.replace, { loginId: t, oldPassword: n, newPassword: o }))), policy: () => w(e.get(m.password.policy)) }), zr = Vn("loginId"), Kt = R("loginId"), dt = R("origin"), Jr = S(Kt, dt, R("name")), Hr = S(Kt, dt), Kr = S(zr, dt), Vr = S(Kt, dt, Mn("token")), It = S(R("transactionId"), R("response")), Mr = (e) => ({ signUp: { start: Jr((t, n, o, r) => w(e.post(m.webauthn.signUp.start, { user: { loginId: t, name: o }, origin: n, passkeyOptions: r }))), finish: It((t, n) => w(e.post(m.webauthn.signUp.finish, { transactionId: t, response: n }))) }, signIn: { start: Kr((t, n, o, r, i) => w(e.post(m.webauthn.signIn.start, { loginId: t, origin: n, loginOptions: o, passkeyOptions: i }, { token: r }))), finish: It((t, n) => w(e.post(m.webauthn.signIn.finish, { transactionId: t, response: n }))) }, signUpOrIn: { start: Hr((t, n, o) => w(e.post(m.webauthn.signUpOrIn.start, { loginId: t, origin: n, passkeyOptions: o }))) }, update: { start: Vr((t, n, o, r) => w(e.post(m.webauthn.update.start, { loginId: t, origin: n, passkeyOptions: r }, { token: o }))), finish: It((t, n) => w(e.post(m.webauthn.update.finish, { transactionId: t, response: n }))) } }), Wr = Vn("loginId"), xt = S(Wr), Yr = S(R("pendingRef")), $r = (e) => ({ signUpOrIn: xt((t, n = {}) => {
365
365
  var { providerId: o } = n, r = B(n, ["providerId"]);
366
366
  return w(e.post(m.notp.signUpOrIn, { loginId: t, loginOptions: r, providerId: o }));
367
- }), signUp: kt((t, n, o = {}) => {
367
+ }), signUp: xt((t, n, o = {}) => {
368
368
  var { providerId: r } = o, i = B(o, ["providerId"]);
369
369
  return w(e.post(m.notp.signUp, { loginId: t, user: n, providerId: r, loginOptions: i }));
370
- }), signIn: kt((t, n = {}, o) => {
370
+ }), signIn: xt((t, n = {}, o) => {
371
371
  var { providerId: r } = n, i = B(n, ["providerId"]);
372
372
  return w(e.post(m.notp.signIn, { loginId: t, loginOptions: i, providerId: r }, { token: o }));
373
- }), waitForSession: Mr((t, n) => new Promise((o) => {
374
- const { pollingIntervalMs: r, timeoutMs: i } = Mn(n);
373
+ }), waitForSession: Yr((t, n) => new Promise((o) => {
374
+ const { pollingIntervalMs: r, timeoutMs: i } = Yn(n);
375
375
  let a;
376
376
  const l = setInterval(async () => {
377
377
  const s = await e.post(m.notp.session, { pendingRef: t });
@@ -380,10 +380,10 @@ const wr = S(E("code")), yr = (e) => ({ start: Object.assign((t, n, o, r, i) =>
380
380
  a = setTimeout(() => {
381
381
  o({ error: { errorDescription: `Session polling timeout exceeded: ${i}ms`, errorCode: "0" }, ok: !1 }), clearInterval(l);
382
382
  }, i);
383
- })) }), Fe = S(E("token")), Be = S(Hn("token"));
384
- var kn, In, Yr = S([(kn = "projectId", In = E("projectId"), we(Go(kn, In))())])((e) => {
383
+ })) }), Fe = S(R("token")), Be = S(Mn("token"));
384
+ var xn, Sn, Qr = S([(xn = "projectId", Sn = R("projectId"), we(_o(xn, Sn))())])((e) => {
385
385
  const { projectId: t, logger: n, baseUrl: o, cookiePolicy: r, baseHeaders: i = {}, refreshCookieName: a, fetch: l } = e;
386
- return s = Ko({ baseUrl: o, projectId: t, logger: n, hooks: { get beforeRequest() {
386
+ return s = Vo({ baseUrl: o, projectId: t, logger: n, hooks: { get beforeRequest() {
387
387
  var c;
388
388
  return (c = e.hooks) === null || c === void 0 ? void 0 : c.beforeRequest;
389
389
  }, get afterRequest() {
@@ -392,19 +392,19 @@ var kn, In, Yr = S([(kn = "projectId", In = E("projectId"), we(Go(kn, In))())])(
392
392
  }, get transformResponse() {
393
393
  var c;
394
394
  return (c = e.hooks) === null || c === void 0 ? void 0 : c.transformResponse;
395
- } }, cookiePolicy: r, baseConfig: { baseHeaders: i }, refreshCookieName: a, fetch: l }), { accessKey: ar(s), otp: Or(s), magicLink: mr(s), enchantedLink: dr(s), oauth: yr(s), outbound: Ir(s), saml: Tr(s), totp: Rr(s), notp: Wr(s), webauthn: Hr(s), password: Fr(s), flow: gr(s), refresh: Be((c, d, u, g) => {
395
+ } }, cookiePolicy: r, baseConfig: { baseHeaders: i }, refreshCookieName: a, fetch: l }), { accessKey: lr(s), otp: Ar(s), magicLink: yr(s), enchantedLink: pr(s), oauth: kr(s), outbound: Sr(s), saml: Er(s), totp: Pr(s), notp: $r(s), webauthn: Mr(s), password: qr(s), flow: fr(s), refresh: Be((c, d, u, g) => {
396
396
  const y = {};
397
397
  u && (y.externalToken = u);
398
398
  const v = g ? m.tryRefresh : m.refresh;
399
399
  return w(s.post(v, y, { token: c, queryParams: d }));
400
- }), selectTenant: S([Ne("tenantId")], [Ut('"token" must be string or undefined')])((c, d) => w(s.post(m.selectTenant, { tenant: c }, { token: d }))), logout: Be((c) => w(s.post(m.logout, {}, { token: c }))), logoutAll: Be((c) => w(s.post(m.logoutAll, {}, { token: c }))), me: Be((c) => w(s.get(m.me, { token: c }))), myTenants: S([rr('"tenants" must a string array or a boolean')], [Ut('"token" must be string or undefined')])((c, d) => {
400
+ }), selectTenant: S([Ne("tenantId")], [Tt('"token" must be string or undefined')])((c, d) => w(s.post(m.selectTenant, { tenant: c }, { token: d }))), logout: Be((c) => w(s.post(m.logout, {}, { token: c }))), logoutAll: Be((c) => w(s.post(m.logoutAll, {}, { token: c }))), me: Be((c) => w(s.get(m.me, { token: c }))), myTenants: S([ar('"tenants" must a string array or a boolean')], [Tt('"token" must be string or undefined')])((c, d) => {
401
401
  const u = {};
402
402
  return typeof c == "boolean" ? u.dct = c : u.ids = c, w(s.post(m.myTenants, u, { token: d }));
403
- }), history: Be((c) => w(s.get(m.history, { token: c }))), isJwtExpired: Fe(Vo), getTenants: Fe(Mo), getJwtPermissions: Fe(Wo), getJwtRoles: Fe(Yo), getCurrentTenant: Fe($o), httpClient: s };
403
+ }), history: Be((c) => w(s.get(m.history, { token: c }))), isJwtExpired: Fe(Wo), getTenants: Fe(Yo), getJwtPermissions: Fe($o), getJwtRoles: Fe(Qo), getCurrentTenant: Fe(Xo), httpClient: s };
404
404
  var s;
405
- }), $r = Object.assign(Yr, { DeliveryMethods: ge });
405
+ }), Xr = Object.assign(Qr, { DeliveryMethods: ge });
406
406
  /*! js-cookie v3.0.5 | MIT */
407
- function Xe(e) {
407
+ function Ze(e) {
408
408
  for (var t = 1; t < arguments.length; t++) {
409
409
  var n = arguments[t];
410
410
  for (var o in n)
@@ -412,7 +412,7 @@ function Xe(e) {
412
412
  }
413
413
  return e;
414
414
  }
415
- var Qr = {
415
+ var Gr = {
416
416
  read: function(e) {
417
417
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
418
418
  },
@@ -423,10 +423,10 @@ var Qr = {
423
423
  );
424
424
  }
425
425
  };
426
- function jt(e, t) {
426
+ function Dt(e, t) {
427
427
  function n(r, i, a) {
428
428
  if (!(typeof document > "u")) {
429
- a = Xe({}, t, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
429
+ a = Ze({}, t, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
430
430
  var l = "";
431
431
  for (var s in a)
432
432
  a[s] && (l += "; " + s, a[s] !== !0 && (l += "=" + a[s].split(";")[0]));
@@ -455,16 +455,16 @@ function jt(e, t) {
455
455
  n(
456
456
  r,
457
457
  "",
458
- Xe({}, i, {
458
+ Ze({}, i, {
459
459
  expires: -1
460
460
  })
461
461
  );
462
462
  },
463
463
  withAttributes: function(r) {
464
- return jt(this.converter, Xe({}, this.attributes, r));
464
+ return Dt(this.converter, Ze({}, this.attributes, r));
465
465
  },
466
466
  withConverter: function(r) {
467
- return jt(Xe({}, this.converter, r), this.attributes);
467
+ return Dt(Ze({}, this.converter, r), this.attributes);
468
468
  }
469
469
  },
470
470
  {
@@ -473,13 +473,13 @@ function jt(e, t) {
473
473
  }
474
474
  );
475
475
  }
476
- var Re = jt(Qr, { path: "/" });
477
- function Xr(e, t) {
476
+ var Re = Dt(Gr, { path: "/" });
477
+ function Zr(e, t) {
478
478
  return function(n, o) {
479
479
  return Object.prototype.hasOwnProperty.call(n, o);
480
480
  }(e, t) ? e[t] : void 0;
481
481
  }
482
- function Gr(e, t, n, o) {
482
+ function _r(e, t, n, o) {
483
483
  var r, i = document, a = "securitypolicyviolation", l = function(c) {
484
484
  var d = new URL(e, location.href), u = c.blockedURI;
485
485
  u !== d.href && u !== d.protocol.slice(0, -1) && u !== d.origin || (r = c, s());
@@ -503,10 +503,10 @@ function Gr(e, t, n, o) {
503
503
  });
504
504
  });
505
505
  }
506
- var Zr = { default: "endpoint" }, $n = "Blocked by CSP", Qn = "The endpoint parameter is not a valid URL", _r = "API key required", ei = "3.11.6", Kt = "Failed to load the JS script of the agent", Ht = "9319";
507
- function ti(e, t) {
506
+ var ei = { default: "endpoint" }, Xn = "Blocked by CSP", Gn = "The endpoint parameter is not a valid URL", ti = "API key required", ni = "3.11.6", Vt = "Failed to load the JS script of the agent", Mt = "9319";
507
+ function oi(e, t) {
508
508
  var n, o, r, i, a, l, s, c = [], d = (n = function(v) {
509
- var f = jo([], v, !0);
509
+ var f = Do([], v, !0);
510
510
  return { current: function() {
511
511
  return f[0];
512
512
  }, postpone: function() {
@@ -519,11 +519,11 @@ function ti(e, t) {
519
519
  return Math.random() * Math.min(a, i * Math.pow(2, l++));
520
520
  }, r = /* @__PURE__ */ new Set(), [n.current(), function(v, f) {
521
521
  var b, O = f instanceof Error ? f.message : "";
522
- if (O === $n || O === Qn)
522
+ if (O === Xn || O === Gn)
523
523
  n.exclude(), b = 0;
524
- else if (O === Ht)
524
+ else if (O === Mt)
525
525
  n.exclude();
526
- else if (O === Kt) {
526
+ else if (O === Vt) {
527
527
  var U = Date.now() - v.getTime() < 50, A = n.current();
528
528
  A && U && !r.has(A) && (r.add(A), b = 0), n.postpone();
529
529
  } else
@@ -546,8 +546,8 @@ function ti(e, t) {
546
546
  if (!A)
547
547
  throw s;
548
548
  var L, J = A[0], q = A[1];
549
- return (L = q, new Promise(function(H) {
550
- return setTimeout(H, L);
549
+ return (L = q, new Promise(function(K) {
550
+ return setTimeout(K, L);
551
551
  })).then(function() {
552
552
  return y(J);
553
553
  });
@@ -557,11 +557,11 @@ function ti(e, t) {
557
557
  return [v, c];
558
558
  });
559
559
  }
560
- var Xn = "https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js", ni = Xn;
561
- function oi(e) {
560
+ var Zn = "https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js", ri = Zn;
561
+ function ii(e) {
562
562
  var t;
563
563
  e.scriptUrlPattern;
564
- var n = e.token, o = e.apiKey, r = o === void 0 ? n : o, i = B(e, ["scriptUrlPattern", "token", "apiKey"]), a = (t = Xr(e, "scriptUrlPattern")) !== null && t !== void 0 ? t : Xn, l = function() {
564
+ var n = e.token, o = e.apiKey, r = o === void 0 ? n : o, i = B(e, ["scriptUrlPattern", "token", "apiKey"]), a = (t = Zr(e, "scriptUrlPattern")) !== null && t !== void 0 ? t : Zn, l = function() {
565
565
  var d = [], u = function() {
566
566
  d.push({ time: /* @__PURE__ */ new Date(), state: document.visibilityState });
567
567
  }, g = function(y, v, f, b) {
@@ -573,29 +573,29 @@ function oi(e) {
573
573
  }(), s = l[0], c = l[1];
574
574
  return Promise.resolve().then(function() {
575
575
  if (!r || typeof r != "string")
576
- throw new Error(_r);
576
+ throw new Error(ti);
577
577
  var d = function(u, g) {
578
578
  return (Array.isArray(u) ? u : [u]).map(function(y) {
579
579
  return function(v, f) {
580
580
  var b = encodeURIComponent;
581
581
  return v.replace(/<[^<>]+>/g, function(O) {
582
- return O === "<version>" ? "3" : O === "<apiKey>" ? b(f) : O === "<loaderVersion>" ? b(ei) : O;
582
+ return O === "<version>" ? "3" : O === "<apiKey>" ? b(f) : O === "<loaderVersion>" ? b(ni) : O;
583
583
  });
584
584
  }(String(y), g);
585
585
  });
586
586
  }(a, r);
587
- return ti(d, ri);
587
+ return oi(d, ai);
588
588
  }).catch(function(d) {
589
589
  throw c(), function(u) {
590
- return u instanceof Error && u.message === Ht ? new Error(Kt) : u;
590
+ return u instanceof Error && u.message === Mt ? new Error(Vt) : u;
591
591
  }(d);
592
592
  }).then(function(d) {
593
593
  var u = d[0], g = d[1];
594
- return c(), u.load(nt(nt({}, i), { ldi: { attempts: g, visibilityStates: s } }));
594
+ return c(), u.load(rt(rt({}, i), { ldi: { attempts: g, visibilityStates: s } }));
595
595
  });
596
596
  }
597
- function ri(e) {
598
- return Gr(e, function() {
597
+ function ai(e) {
598
+ return _r(e, function() {
599
599
  return function(t) {
600
600
  return new Promise(function(n, o) {
601
601
  if (function(l) {
@@ -608,7 +608,7 @@ function ri(e) {
608
608
  throw s;
609
609
  }
610
610
  }(t))
611
- throw new Error(Qn);
611
+ throw new Error(Gn);
612
612
  var r = document.createElement("script"), i = function() {
613
613
  var l;
614
614
  return (l = r.parentNode) === null || l === void 0 ? void 0 : l.removeChild(r);
@@ -616,57 +616,57 @@ function ri(e) {
616
616
  r.onload = function() {
617
617
  i(), n();
618
618
  }, r.onerror = function() {
619
- i(), o(new Error(Kt));
619
+ i(), o(new Error(Vt));
620
620
  }, r.async = !0, r.src = t, a.appendChild(r);
621
621
  });
622
622
  }(e);
623
623
  }, function() {
624
- throw new Error($n);
625
- }).then(ii);
624
+ throw new Error(Xn);
625
+ }).then(si);
626
626
  }
627
- function ii() {
627
+ function si() {
628
628
  var e = window, t = "__fpjs_p_l_b", n = e[t];
629
629
  if (function(o, r) {
630
630
  var i, a = (i = Object.getOwnPropertyDescriptor) === null || i === void 0 ? void 0 : i.call(Object, o, r);
631
631
  a != null && a.configurable ? delete o[r] : a && !a.writable || (o[r] = void 0);
632
632
  }(e, t), typeof (n == null ? void 0 : n.load) != "function")
633
- throw new Error(Ht);
633
+ throw new Error(Mt);
634
634
  return n;
635
635
  }
636
- const Gn = "3.2.0", $ = typeof window < "u", It = Math.pow(2, 31) - 1, ai = `https://descopecdn.com/npm/oidc-client-ts@${Gn}/dist/browser/oidc-client-ts.min.js`, si = `https://cdn.jsdelivr.net/npm/oidc-client-ts@${Gn}/dist/browser/oidc-client-ts.min.js`, li = ["/v1/auth/refresh", "/v1/auth/try-refresh", "/v1/auth/me", "/v1/auth/me/tenants", "/v1/auth/me/history"];
636
+ const _n = "3.2.0", $ = typeof window < "u", St = Math.pow(2, 31) - 1, li = `https://descopecdn.com/npm/oidc-client-ts@${_n}/dist/browser/oidc-client-ts.min.js`, ci = `https://cdn.jsdelivr.net/npm/oidc-client-ts@${_n}/dist/browser/oidc-client-ts.min.js`, di = ["/v1/auth/refresh", "/v1/auth/try-refresh", "/v1/auth/me", "/v1/auth/me/tenants", "/v1/auth/me/history"];
637
637
  let de;
638
- const Zn = (e) => {
638
+ const eo = (e) => {
639
639
  try {
640
- return Ft(e).exp;
640
+ return qt(e).exp;
641
641
  } catch {
642
642
  return null;
643
643
  }
644
- }, ci = (e) => {
644
+ }, ui = (e) => {
645
645
  const { refresh_expire_in: t, refresh_token: n } = e;
646
- return t ? Math.floor(Date.now() / 1e3) + t : Zn(n);
647
- }, di = (e) => {
646
+ return t ? Math.floor(Date.now() / 1e3) + t : eo(n);
647
+ }, pi = (e) => {
648
648
  const { expires_in: t, expires_at: n, access_token: o } = e;
649
- return n || (t ? Math.floor(Date.now() / 1e3) + t : o ? Zn(o) : void 0);
650
- }, _n = (e) => {
649
+ return n || (t ? Math.floor(Date.now() / 1e3) + t : o ? eo(o) : void 0);
650
+ }, to = (e) => {
651
651
  const { access_token: t, id_token: n, refresh_token: o, refresh_expire_in: r } = e, i = B(e, ["access_token", "id_token", "refresh_token", "refresh_expire_in"]);
652
- return Object.assign({ sessionJwt: e.sessionJwt || t, idToken: n, refreshJwt: e.refreshJwt || o, sessionExpiration: e.sessionExpiration || di(e), cookieExpiration: e.cookieExpiration || ci(e) }, i);
652
+ return Object.assign({ sessionJwt: e.sessionJwt || t, idToken: n, refreshJwt: e.refreshJwt || o, sessionExpiration: e.sessionExpiration || pi(e), cookieExpiration: e.cookieExpiration || ui(e) }, i);
653
653
  }, je = (e, t) => {
654
654
  var n;
655
655
  return ["beforeRequest", "afterRequest"].reduce((o, r) => {
656
656
  var i;
657
657
  return o[r] = [].concat(((i = e.hooks) === null || i === void 0 ? void 0 : i[r]) || []).concat((t == null ? void 0 : t[r]) || []), o;
658
658
  }, (n = e.hooks) !== null && n !== void 0 ? n : e.hooks = {}), e;
659
- }, Ge = async (e) => {
659
+ }, _e = async (e) => {
660
660
  if (!(e != null && e.ok))
661
661
  return {};
662
662
  const t = await (e == null ? void 0 : e.clone().json()), n = (t == null ? void 0 : t.authInfo) || t || {};
663
- return _n(n);
664
- }, Et = () => $ && !!window.descopeBridge, xt = (e, t) => {
663
+ return to(n);
664
+ }, Rt = () => $ && !!window.descopeBridge, Ct = (e, t) => {
665
665
  if (!((t == null ? void 0 : t.status) >= 400 && (t == null ? void 0 : t.status) < 500))
666
666
  return !1;
667
667
  const n = (e == null ? void 0 : e.path) || "";
668
- return li.includes(n);
669
- }, ui = de !== void 0 || $ && window.localStorage !== void 0, pe = (e, t) => {
668
+ return di.includes(n);
669
+ }, gi = de !== void 0 || $ && window.localStorage !== void 0, pe = (e, t) => {
670
670
  var n, o;
671
671
  return (o = (n = de || $ && window.localStorage) === null || n === void 0 ? void 0 : n.setItem) === null || o === void 0 ? void 0 : o.call(n, e, t);
672
672
  }, ue = (e) => {
@@ -675,100 +675,100 @@ const Zn = (e) => {
675
675
  }, se = (e) => {
676
676
  var t, n;
677
677
  return (n = (t = de || $ && window.localStorage) === null || t === void 0 ? void 0 : t.removeItem) === null || n === void 0 ? void 0 : n.call(t, e);
678
- }, pi = (e) => {
678
+ }, hi = (e) => {
679
679
  var t, n, o, r, i;
680
680
  return (i = (n = (t = de == null ? void 0 : de.key) === null || t === void 0 ? void 0 : t.call(de, e)) !== null && n !== void 0 ? n : $ && ((r = (o = window.localStorage) === null || o === void 0 ? void 0 : o.key) === null || r === void 0 ? void 0 : r.call(o, e))) !== null && i !== void 0 ? i : null;
681
681
  }, W = (...e) => {
682
682
  console.debug(...e);
683
- }, xn = (...e) => {
683
+ }, Cn = (...e) => {
684
684
  console.warn(...e);
685
- }, gi = (e, t) => {
685
+ }, fi = (e, t) => {
686
686
  let n;
687
687
  var o;
688
- return t > 0 ? (n = 1e3 * t, W(`Using provided nextRefreshSeconds: ${t}s`)) : n = ((o = e) ? o.getTime() - (/* @__PURE__ */ new Date()).getTime() : 0) - 2e4, n > It && (W(`Timeout is too large (${n}ms), setting it to ${It}ms`), n = It), n;
689
- }, ct = "DS", Me = "DSR", Vt = "DSI";
690
- function Sn(e, t, n) {
688
+ return t > 0 ? (n = 1e3 * t, W(`Using provided nextRefreshSeconds: ${t}s`)) : n = ((o = e) ? o.getTime() - (/* @__PURE__ */ new Date()).getTime() : 0) - 2e4, n > St && (W(`Timeout is too large (${n}ms), setting it to ${St}ms`), n = St), n;
689
+ }, ut = "DS", Me = "DSR", Wt = "DSI";
690
+ function On(e, t, n) {
691
691
  if (t) {
692
- const { cookieDomain: o, cookiePath: r, cookieSameSite: i, cookieExpiration: a, cookieSecure: l } = n, s = new Date(1e3 * a), c = Dt(o);
692
+ const { cookieDomain: o, cookiePath: r, cookieSameSite: i, cookieExpiration: a, cookieSecure: l } = n, s = new Date(1e3 * a), c = Nt(o);
693
693
  Re.set(e, t, { path: r, domain: c ? o : void 0, expires: s, sameSite: i, secure: l });
694
694
  }
695
695
  }
696
- function Dt(e) {
696
+ function Nt(e) {
697
697
  const t = window.location.hostname.split("."), n = e == null ? void 0 : e.split(".");
698
698
  return t.slice(-(n == null ? void 0 : n.length)).join(".") === e;
699
699
  }
700
- const Mt = (e) => (e == null ? void 0 : e.cookieName) || ct, ot = (e) => (e == null ? void 0 : e.cookieName) || Me;
701
- function Ke(e = "", t) {
702
- return Re.get(ot(t)) || ue(`${e}${Me}`) || "";
700
+ const Yt = (e) => (e == null ? void 0 : e.cookieName) || ut, it = (e) => (e == null ? void 0 : e.cookieName) || Me;
701
+ function He(e = "", t) {
702
+ return Re.get(it(t)) || ue(`${e}${Me}`) || "";
703
703
  }
704
- function Cn(e = "", t) {
705
- return Re.get(Mt(t)) || ue(`${e}${ct}`) || "";
704
+ function Un(e = "", t) {
705
+ return Re.get(Yt(t)) || ue(`${e}${ut}`) || "";
706
706
  }
707
- function eo(e = "") {
708
- return ue(`${e}${Vt}`) || "";
707
+ function no(e = "") {
708
+ return ue(`${e}${Wt}`) || "";
709
709
  }
710
- function to(e = "", t, n, o) {
711
- se(`${e}${Me}`), se(`${e}${ct}`), se(`${e}${Vt}`);
712
- const r = Mt(t);
710
+ function oo(e = "", t, n, o) {
711
+ se(`${e}${Me}`), se(`${e}${ut}`), se(`${e}${Wt}`);
712
+ const r = Yt(t);
713
713
  Re.remove(r, o == null ? void 0 : o.session);
714
- const i = ot(n);
714
+ const i = it(n);
715
715
  Re.remove(i, o == null ? void 0 : o.refresh);
716
716
  }
717
- const hi = (e, t) => (n) => {
718
- const o = Object.assign(n, { token: n.token || Ke(e, t) }), r = function(i = "") {
717
+ const vi = (e, t) => (n) => {
718
+ const o = Object.assign(n, { token: n.token || He(e, t) }), r = function(i = "") {
719
719
  return ue(`${i}DTD`) || "";
720
720
  }(e);
721
721
  return r && (o.headers = Object.assign(Object.assign({}, o.headers || {}), { "x-descope-trusted-device-token": r })), o;
722
- }, fi = $ && (localStorage == null ? void 0 : localStorage.getItem("fingerprint.endpoint.url")) || "https://api.descope.com", vi = "vsid", mi = "vrid", Wt = "fp", no = (e = !1) => {
723
- const t = ue(Wt);
722
+ }, mi = $ && (localStorage == null ? void 0 : localStorage.getItem("fingerprint.endpoint.url")) || "https://api.descope.com", wi = "vsid", yi = "vrid", $t = "fp", ro = (e = !1) => {
723
+ const t = ue($t);
724
724
  if (!t)
725
725
  return null;
726
726
  const n = JSON.parse(t);
727
727
  return (/* @__PURE__ */ new Date()).getTime() > n.expiry && !e ? null : n.value;
728
- }, wi = async (e, t = fi) => {
728
+ }, bi = async (e, t = mi) => {
729
729
  try {
730
- if (no())
730
+ if (ro())
731
731
  return;
732
732
  const n = (Date.now().toString(36) + Math.random().toString(36).substring(2) + Math.random().toString(36).substring(2)).substring(0, 27), o = new URL(t);
733
733
  o.pathname = "/fXj8gt3x8VulJBna/x96Emn69oZwcd7I6";
734
734
  const r = new URL(t);
735
735
  r.pathname = "/fXj8gt3x8VulJBna/w78aRZnnDZ3Aqw0I";
736
- const i = r.toString() + "?apiKey=<apiKey>&version=<version>&loaderVersion=<loaderVersion>", a = oi({ apiKey: e, endpoint: [o.toString(), Zr], scriptUrlPattern: [i, ni] }), l = await a, { requestId: s } = await l.get({ linkedId: n }), c = ((d, u) => ({ [vi]: d, [mi]: u }))(n, s);
736
+ const i = r.toString() + "?apiKey=<apiKey>&version=<version>&loaderVersion=<loaderVersion>", a = ii({ apiKey: e, endpoint: [o.toString(), ei], scriptUrlPattern: [i, ri] }), l = await a, { requestId: s } = await l.get({ linkedId: n }), c = ((d, u) => ({ [wi]: d, [yi]: u }))(n, s);
737
737
  ((d) => {
738
738
  const u = { value: d, expiry: (/* @__PURE__ */ new Date()).getTime() + 864e5 };
739
- pe(Wt, JSON.stringify(u));
739
+ pe($t, JSON.stringify(u));
740
740
  })(c);
741
741
  } catch (n) {
742
742
  console.warn("Could not load fingerprint", n);
743
743
  }
744
- }, Zi = () => {
745
- se(Wt);
746
- }, yi = (e) => {
747
- const t = no(!0);
744
+ }, ea = () => {
745
+ se($t);
746
+ }, ki = (e) => {
747
+ const t = ro(!0);
748
748
  return t && e.body && (e.body.fpData = t), e;
749
- }, De = "descopeFlowNonce", On = "X-Descope-Flow-Nonce", Un = "/v1/flow/start", Rt = "/v1/flow/next", Nt = (e, t = De) => `${t}${e}`, bi = (e, t = De) => {
749
+ }, De = "descopeFlowNonce", An = "X-Descope-Flow-Nonce", Tn = "/v1/flow/start", Pt = "/v1/flow/next", Lt = (e, t = De) => `${t}${e}`, Ii = (e, t = De) => {
750
750
  try {
751
- const n = Nt(e, t);
751
+ const n = Lt(e, t);
752
752
  se(n);
753
753
  } catch (n) {
754
754
  console.error("Error removing flow nonce:", n);
755
755
  }
756
- }, oo = (e) => {
756
+ }, io = (e) => {
757
757
  var t;
758
758
  return ((t = /.*\|#\|(.*)/.exec(e)) === null || t === void 0 ? void 0 : t[1]) || null;
759
- }, An = (e) => {
759
+ }, jn = (e) => {
760
760
  var t;
761
- return e.path === Rt && (!((t = e.body) === null || t === void 0) && t.executionId) ? oo(e.body.executionId) : null;
762
- }, Yt = "dls_last_user_login_id", $t = "dls_last_user_display_name", Tn = (e) => pe(Yt, e), Pt = () => ue(Yt), Lt = () => ue($t), ki = (e) => async (...t) => {
761
+ return e.path === Pt && (!((t = e.body) === null || t === void 0) && t.executionId) ? io(e.body.executionId) : null;
762
+ }, Qt = "dls_last_user_login_id", Xt = "dls_last_user_display_name", En = (e) => pe(Qt, e), Ft = () => ue(Qt), Bt = () => ue(Xt), xi = (e) => async (...t) => {
763
763
  var n;
764
764
  t[1] = t[1] || {};
765
- const [, o = {}] = t, r = Pt(), i = Lt();
765
+ const [, o = {}] = t, r = Ft(), i = Bt();
766
766
  return r && ((n = o.lastAuth) !== null && n !== void 0 || (o.lastAuth = {}), o.lastAuth.loginId = r, o.lastAuth.name = i), await e(...t);
767
- }, Ii = (e) => (t) => async (...n) => {
767
+ }, Si = (e) => (t) => async (...n) => {
768
768
  const o = await t(...n);
769
- return e || (se(Yt), se($t)), o;
769
+ return e || (se(Qt), se(Xt)), o;
770
770
  };
771
- function Ze() {
771
+ function et() {
772
772
  const e = [];
773
773
  return { pub: (t) => {
774
774
  e.forEach((n) => n(t));
@@ -777,11 +777,11 @@ function Ze() {
777
777
  return () => e.splice(n, 1);
778
778
  } };
779
779
  }
780
- const xi = (e, t, n, o) => (r) => async (...i) => {
780
+ const Ci = (e, t, n, o) => (r) => async (...i) => {
781
781
  const a = await r(...i);
782
- return to(e, t, n, o == null ? void 0 : o()), a;
782
+ return oo(e, t, n, o == null ? void 0 : o()), a;
783
783
  };
784
- async function _e(e) {
784
+ async function tt(e) {
785
785
  const t = function(r) {
786
786
  var i;
787
787
  const a = JSON.parse(r);
@@ -792,19 +792,19 @@ async function _e(e) {
792
792
  return o = await navigator.credentials.create(t), JSON.stringify({ id: o.id, rawId: ve(o.rawId), type: o.type, response: { attestationObject: ve(o.response.attestationObject), clientDataJSON: ve(o.response.clientDataJSON) } });
793
793
  var o;
794
794
  }
795
- async function St(e) {
796
- const t = io(e);
797
- return ao(await navigator.credentials.get(t));
795
+ async function Ot(e) {
796
+ const t = so(e);
797
+ return lo(await navigator.credentials.get(t));
798
798
  }
799
- async function Si(e, t) {
800
- const n = io(e);
801
- return n.signal = t.signal, n.mediation = "conditional", ao(await navigator.credentials.get(n));
799
+ async function Oi(e, t) {
800
+ const n = so(e);
801
+ return n.signal = t.signal, n.mediation = "conditional", lo(await navigator.credentials.get(n));
802
802
  }
803
- async function ro(e = !1) {
803
+ async function ao(e = !1) {
804
804
  var t, n;
805
805
  if (!$)
806
806
  return Promise.resolve(!1);
807
- if (Et()) {
807
+ if (Rt()) {
808
808
  const r = (n = (t = window.descopeBridge) === null || t === void 0 ? void 0 : t.hostInfo) === null || n === void 0 ? void 0 : n.webauthn;
809
809
  if (typeof r == "boolean")
810
810
  return r;
@@ -812,14 +812,14 @@ async function ro(e = !1) {
812
812
  const o = !!(window.PublicKeyCredential && navigator.credentials && navigator.credentials.create && navigator.credentials.get);
813
813
  return o && e && PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable ? PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() : o;
814
814
  }
815
- function io(e) {
815
+ function so(e) {
816
816
  var t;
817
817
  const n = JSON.parse(e);
818
818
  return n.publicKey.challenge = Ve(n.publicKey.challenge), (t = n.publicKey.allowCredentials) === null || t === void 0 || t.forEach((o) => {
819
819
  o.id = Ve(o.id);
820
820
  }), n;
821
821
  }
822
- function ao(e) {
822
+ function lo(e) {
823
823
  return JSON.stringify({ id: e.id, rawId: ve(e.rawId), type: e.type, response: { authenticatorData: ve(e.response.authenticatorData), clientDataJSON: ve(e.response.clientDataJSON), signature: ve(e.response.signature), userHandle: e.response.userHandle ? ve(e.response.userHandle) : void 0 } });
824
824
  }
825
825
  function Ve(e) {
@@ -829,17 +829,17 @@ function Ve(e) {
829
829
  function ve(e) {
830
830
  return btoa(String.fromCharCode.apply(null, new Uint8Array(e))).replace(/\//g, "_").replace(/\+/g, "-").replace(/=/g, "");
831
831
  }
832
- var jn, Ci = (jn = (e) => ({ async signUp(t, n, o) {
832
+ var Dn, Ui = (Dn = (e) => ({ async signUp(t, n, o) {
833
833
  const r = await e.webauthn.signUp.start(t, window.location.origin, n, o);
834
834
  if (!r.ok)
835
835
  return r;
836
- const i = await _e(r.data.options);
836
+ const i = await tt(r.data.options);
837
837
  return await e.webauthn.signUp.finish(r.data.transactionId, i);
838
838
  }, async signIn(t, n) {
839
839
  const o = await e.webauthn.signIn.start(t, window.location.origin, void 0, void 0, n);
840
840
  if (!o.ok)
841
841
  return o;
842
- const r = await St(o.data.options);
842
+ const r = await Ot(o.data.options);
843
843
  return await e.webauthn.signIn.finish(o.data.transactionId, r);
844
844
  }, async signUpOrIn(t, n) {
845
845
  var o;
@@ -847,42 +847,42 @@ var jn, Ci = (jn = (e) => ({ async signUp(t, n, o) {
847
847
  if (!r.ok)
848
848
  return r;
849
849
  if (!((o = r.data) === null || o === void 0) && o.create) {
850
- const i = await _e(r.data.options);
850
+ const i = await tt(r.data.options);
851
851
  return await e.webauthn.signUp.finish(r.data.transactionId, i);
852
852
  }
853
853
  {
854
- const i = await St(r.data.options);
854
+ const i = await Ot(r.data.options);
855
855
  return await e.webauthn.signIn.finish(r.data.transactionId, i);
856
856
  }
857
857
  }, async update(t, n, o) {
858
858
  const r = await e.webauthn.update.start(t, window.location.origin, n, o);
859
859
  if (!r.ok)
860
860
  return r;
861
- const i = await _e(r.data.options);
861
+ const i = await tt(r.data.options);
862
862
  return await e.webauthn.update.finish(r.data.transactionId, i);
863
- }, helpers: { create: _e, get: St, isSupported: ro, conditional: Si } }), (...e) => {
864
- const t = jn(...e);
863
+ }, helpers: { create: tt, get: Ot, isSupported: ao, conditional: Oi } }), (...e) => {
864
+ const t = Dn(...e);
865
865
  return Object.assign(t.signUp, e[0].webauthn.signUp), Object.assign(t.signIn, e[0].webauthn.signIn), Object.assign(t.signUpOrIn, e[0].webauthn.signUpOrIn), Object.assign(t.update, e[0].webauthn.update), t;
866
866
  });
867
- const En = { config: "/fedcm/config" }, Oi = () => {
867
+ const Rn = { config: "/fedcm/config" }, Ai = () => {
868
868
  if (window.crypto && window.crypto.getRandomValues) {
869
869
  const e = new Uint8Array(16);
870
870
  return window.crypto.getRandomValues(e), Array.from(e, (t) => t.toString(16).padStart(2, "0")).join("");
871
871
  }
872
872
  return Math.random().toString(36).substring(2);
873
873
  };
874
- async function Dn(e, t) {
874
+ async function Nn(e, t) {
875
875
  var n;
876
876
  try {
877
- await so(e, t);
877
+ await co(e, t);
878
878
  } catch (o) {
879
879
  (n = t == null ? void 0 : t.onFailed) === null || n === void 0 || n.call(t, o);
880
880
  }
881
881
  }
882
- async function so(e, t) {
882
+ async function co(e, t) {
883
883
  var n, o;
884
884
  const r = await async function(i, a = "google", l, s, c) {
885
- const d = Oi(), u = await async function() {
885
+ const d = Ai(), u = await async function() {
886
886
  return new Promise((v, f) => {
887
887
  if (window.google)
888
888
  return void v(window.google.accounts.id);
@@ -929,13 +929,13 @@ async function so(e, t) {
929
929
  (o = t == null ? void 0 : t.onAuthenticated) === null || o === void 0 || o.call(t, i.data);
930
930
  }
931
931
  }
932
- var Ui = (e) => Object.assign(Object.assign({}, e.flow), { start: async (...t) => {
933
- const n = await ro(), o = Object.assign(Object.assign({ location: window.location.href }, t[1]), { deviceInfo: { webAuthnSupport: n }, startOptionsVersion: 1 });
932
+ var Ti = (e) => Object.assign(Object.assign({}, e.flow), { start: async (...t) => {
933
+ const n = await ao(), o = Object.assign(Object.assign({ location: window.location.href }, t[1]), { deviceInfo: { webAuthnSupport: n }, startOptionsVersion: 1 });
934
934
  return t[1] = o, e.flow.start(...t);
935
935
  } });
936
- const Ai = () => window.location.search.includes("code") && window.location.search.includes("state");
937
- let Ct;
938
- const lo = (e, t) => new Promise((n, o) => {
936
+ const ji = () => window.location.search.includes("code") && window.location.search.includes("state");
937
+ let Ut;
938
+ const uo = (e, t) => new Promise((n, o) => {
939
939
  if (!e.length)
940
940
  return o(new Error("No URLs provided to loadScriptWithFallback"));
941
941
  const r = t();
@@ -953,17 +953,17 @@ const lo = (e, t) => new Promise((n, o) => {
953
953
  return n(l);
954
954
  throw new Error("Could not get entry after loading script from URL");
955
955
  }, a.addEventListener("error", () => {
956
- lo(e, t), a.setAttribute("data-error", "true");
956
+ uo(e, t), a.setAttribute("data-error", "true");
957
957
  }), document.body.appendChild(a);
958
- }), Ti = async (e, t, n) => {
959
- Ct || (Ct = (async () => {
958
+ }), Ei = async (e, t, n) => {
959
+ Ut || (Ut = (async () => {
960
960
  try {
961
961
  return require("oidc-client-ts");
962
962
  } catch {
963
- return lo([ai, si], () => window.oidc);
963
+ return uo([li, ci], () => window.oidc);
964
964
  }
965
965
  })());
966
- const { OidcClient: o, WebStorageStateStore: r } = await Ct;
966
+ const { OidcClient: o, WebStorageStateStore: r } = await Ut;
967
967
  if (!o)
968
968
  throw new Error("oidc-client-ts is not installed. Please install it by running `npm install oidc-client-ts`");
969
969
  const i = (n == null ? void 0 : n.redirectUri) || window.location.href;
@@ -976,10 +976,10 @@ const lo = (e, t) => new Promise((n, o) => {
976
976
  n != null && n.applicationId ? (a = e.httpClient.buildUrl(t), a = `${a}/${n.applicationId}`, l = t, s = `${l}_user`, c = "openid email roles descope.custom_claims offline_access") : (a = e.httpClient.buildUrl(t), l = t, s = `${l}_user`, c = "openid email roles descope.custom_claims offline_access");
977
977
  const d = { authority: a, client_id: l, redirect_uri: i, response_type: "code", scope: (n == null ? void 0 : n.scope) || c, stateStore: new r({ store: window.localStorage, prefix: l }), loadUserInfo: !0, fetchRequestCredentials: "same-origin" };
978
978
  return n != null && n.redirectUri && (d.redirect_uri = n.redirectUri), { client: new o(d), stateUserKey: s };
979
- }, ji = (e, t, n) => {
979
+ }, Di = (e, t, n) => {
980
980
  const o = async () => {
981
981
  let i, a;
982
- return i && a || ({ client: i, stateUserKey: a } = await Ti(e, t, n)), { client: i, stateUserKey: a };
982
+ return i && a || ({ client: i, stateUserKey: a } = await Ei(e, t, n)), { client: i, stateUserKey: a };
983
983
  }, r = async (i = "") => {
984
984
  var a;
985
985
  const { client: l, stateUserKey: s } = await o(), c = await l.processSigninResponse(i || window.location.href);
@@ -993,7 +993,7 @@ const lo = (e, t) => new Promise((n, o) => {
993
993
  const { client: l } = await o(), s = await l.createSigninRequest(i), { url: c } = s;
994
994
  return a || (window.location.href = c), { ok: !0, data: s };
995
995
  }, finishLogin: r, finishLoginIfNeed: async (i = "") => {
996
- if (Ai())
996
+ if (ji())
997
997
  return await r(i);
998
998
  }, refreshToken: async (i) => {
999
999
  var a;
@@ -1012,21 +1012,21 @@ const lo = (e, t) => new Promise((n, o) => {
1012
1012
  return await ((a = e.httpClient.hooks) === null || a === void 0 ? void 0 : a.afterRequest({}, new Response(JSON.stringify(u)))), u;
1013
1013
  }, logout: async (i, a = !1) => {
1014
1014
  const { client: l, stateUserKey: s } = await o();
1015
- i || (i = {}), i.id_token_hint = i.id_token_hint || eo(), i.post_logout_redirect_uri = i.post_logout_redirect_uri || window.location.href;
1015
+ i || (i = {}), i.id_token_hint = i.id_token_hint || no(), i.post_logout_redirect_uri = i.post_logout_redirect_uri || window.location.href;
1016
1016
  const c = await l.createSignoutRequest(i), { url: d } = c;
1017
1017
  return se(s), a || window.location.replace(d), c;
1018
1018
  } };
1019
- }, Ei = function(...e) {
1019
+ }, Ri = function(...e) {
1020
1020
  return (t) => e.reduce((n, o) => o(n), t);
1021
1021
  }((e) => (t) => {
1022
1022
  var n;
1023
1023
  return n = t.customStorage, de = n, e(t);
1024
1024
  }, (e) => (t) => {
1025
1025
  var { fpKey: n, fpLoad: o } = t, r = B(t, ["fpKey", "fpLoad"]);
1026
- return $ ? (n && o && wi(n).catch(() => null), e(je(r, { beforeRequest: yi }))) : e(r);
1026
+ return $ ? (n && o && bi(n).catch(() => null), e(je(r, { beforeRequest: ki }))) : e(r);
1027
1027
  }, (e) => (t) => {
1028
1028
  var { autoRefresh: n } = t, o = B(t, ["autoRefresh"]);
1029
- if (!n || Et())
1029
+ if (!n || Rt())
1030
1030
  return e(o);
1031
1031
  const { clearAllTimers: r, setTimer: i } = (() => {
1032
1032
  const c = [];
@@ -1039,11 +1039,11 @@ const lo = (e, t) => new Promise((n, o) => {
1039
1039
  })();
1040
1040
  let a, l;
1041
1041
  $ && document.addEventListener("visibilitychange", () => {
1042
- document.visibilityState === "visible" && a && /* @__PURE__ */ new Date() > a && (W("Expiration time passed, refreshing session"), s.refresh(Ke() || l));
1042
+ document.visibilityState === "visible" && a && /* @__PURE__ */ new Date() > a && (W("Expiration time passed, refreshing session"), s.refresh(He() || l));
1043
1043
  });
1044
1044
  const s = e(je(o, { afterRequest: async (c, d) => {
1045
- const { sessionJwt: u, refreshJwt: g, sessionExpiration: y, nextRefreshSeconds: v } = await Ge(d);
1046
- if (xt(c, d))
1045
+ const { sessionJwt: u, refreshJwt: g, sessionExpiration: y, nextRefreshSeconds: v } = await _e(d);
1046
+ if (Ct(c, d))
1047
1047
  W("Session invalidated, canceling all timers"), r();
1048
1048
  else if (u || y) {
1049
1049
  if (a = ((O, U) => {
@@ -1051,7 +1051,7 @@ const lo = (e, t) => new Promise((n, o) => {
1051
1051
  return new Date(1e3 * U);
1052
1052
  W("Could not extract expiration time from session token, trying to decode the token");
1053
1053
  try {
1054
- const A = Ft(O);
1054
+ const A = qt(O);
1055
1055
  if (A.exp)
1056
1056
  return new Date(1e3 * A.exp);
1057
1057
  } catch {
@@ -1060,12 +1060,12 @@ const lo = (e, t) => new Promise((n, o) => {
1060
1060
  })(u, y), !a)
1061
1061
  return void W("Could not extract expiration time from session token");
1062
1062
  l = g;
1063
- const f = gi(a, v);
1063
+ const f = fi(a, v);
1064
1064
  if (r(), f <= 2e4)
1065
1065
  return void W("Session is too close to expiration, not setting refresh timer");
1066
1066
  const b = new Date(Date.now() + f).toLocaleTimeString("en-US", { hour12: !1 });
1067
1067
  W(`Setting refresh timer for ${b}. (${f}ms)`), i(() => {
1068
- $ && document.visibilityState === "hidden" ? W("Skipping refresh due to timer - document is hidden") : (W("Refreshing session due to timer"), s.refresh(Ke() || g));
1068
+ $ && document.visibilityState === "hidden" ? W("Skipping refresh due to timer - document is hidden") : (W("Refreshing session due to timer"), s.refresh(He() || g));
1069
1069
  }, f);
1070
1070
  }
1071
1071
  } }));
@@ -1074,16 +1074,16 @@ const lo = (e, t) => new Promise((n, o) => {
1074
1074
  return W("Clearing all timers"), r(), u;
1075
1075
  });
1076
1076
  }, (e) => (t) => e(Object.assign(Object.assign({}, t), { baseHeaders: Object.assign({ "x-descope-sdk-name": "web-js", "x-descope-sdk-version": "1.45.0" }, t.baseHeaders) })), (e) => (t) => {
1077
- const n = Ze(), o = Ze(), r = Ze(), i = Ze(), a = e(je(t, { afterRequest: async (s, c) => {
1078
- if (xt(s, c))
1077
+ const n = et(), o = et(), r = et(), i = et(), a = e(je(t, { afterRequest: async (s, c) => {
1078
+ if (Ct(s, c))
1079
1079
  W("Session invalidated, notifying subscribers with empty values"), o.pub(null), r.pub(null), n.pub(null), i.pub(null);
1080
1080
  else {
1081
1081
  const d = await (async (v) => {
1082
- const f = await Ge(v);
1082
+ const f = await _e(v);
1083
1083
  return (f == null ? void 0 : f.user) || (f != null && f.hasOwnProperty("userId") ? f : void 0);
1084
1084
  })(c);
1085
1085
  d && r.pub(d);
1086
- const { sessionJwt: u, sessionExpiration: g, claims: y } = await Ge(c);
1086
+ const { sessionJwt: u, sessionExpiration: g, claims: y } = await _e(c);
1087
1087
  u && o.pub(u), y && i.pub(y), (g || u) && n.pub(g || 42);
1088
1088
  }
1089
1089
  } })), l = Le(a, ["logout", "logoutAll", "oidc.logout"], (s) => async (...c) => {
@@ -1097,10 +1097,10 @@ const lo = (e, t) => new Promise((n, o) => {
1097
1097
  const { enableFlowNonce: n = !0, nonceStoragePrefix: o = De } = t, r = B(t, ["enableFlowNonce", "nonceStoragePrefix"]);
1098
1098
  return n ? (((i = De) => {
1099
1099
  try {
1100
- if (!ui)
1100
+ if (!gi)
1101
1101
  return;
1102
1102
  for (let c = 0; c < (a = void 0, l = void 0, s = void 0, (s = (a = de == null ? void 0 : de.length) !== null && a !== void 0 ? a : $ && ((l = window.localStorage) === null || l === void 0 ? void 0 : l.length)) !== null && s !== void 0 ? s : 0); c++) {
1103
- const d = pi(c);
1103
+ const d = hi(c);
1104
1104
  if (d && d.startsWith(i)) {
1105
1105
  const u = ue(d);
1106
1106
  if (u)
@@ -1116,41 +1116,41 @@ const lo = (e, t) => new Promise((n, o) => {
1116
1116
  }
1117
1117
  var a, l, s;
1118
1118
  })(o), e(je(r, { afterRequest: async (i, a) => {
1119
- if (i.path !== Un && i.path !== Rt)
1119
+ if (i.path !== Tn && i.path !== Pt)
1120
1120
  return;
1121
1121
  const { nonce: l, executionId: s } = await (async (c, d) => {
1122
1122
  try {
1123
- const u = d.headers.get(On);
1123
+ const u = d.headers.get(An);
1124
1124
  let g = await d.clone().json().then((y) => (y == null ? void 0 : y.executionId) || null).catch(() => null);
1125
- return g || (g = An(c)), { nonce: u, executionId: oo(g) };
1125
+ return g || (g = jn(c)), { nonce: u, executionId: io(g) };
1126
1126
  } catch {
1127
1127
  return { nonce: null, executionId: null };
1128
1128
  }
1129
1129
  })(i, a);
1130
1130
  l && s && ((c, d, u, g = De) => {
1131
1131
  try {
1132
- const y = Nt(c, g), v = u ? 172800 : 10800, f = { value: d, expiry: Date.now() + 1e3 * v, isStart: u };
1132
+ const y = Lt(c, g), v = u ? 172800 : 10800, f = { value: d, expiry: Date.now() + 1e3 * v, isStart: u };
1133
1133
  pe(y, JSON.stringify(f));
1134
1134
  } catch (y) {
1135
1135
  console.error("Error setting flow nonce:", y);
1136
1136
  }
1137
- })(s, l, i.path === Un, o);
1137
+ })(s, l, i.path === Tn, o);
1138
1138
  }, beforeRequest: (i) => {
1139
- if (i.path === Rt) {
1140
- const a = An(i);
1139
+ if (i.path === Pt) {
1140
+ const a = jn(i);
1141
1141
  if (a) {
1142
1142
  const l = ((s, c = De) => {
1143
1143
  try {
1144
- const d = Nt(s, c), u = ue(d);
1144
+ const d = Lt(s, c), u = ue(d);
1145
1145
  if (!u)
1146
1146
  return null;
1147
1147
  const g = JSON.parse(u);
1148
- return g.expiry < Date.now() ? (bi(s, c), null) : g.value;
1148
+ return g.expiry < Date.now() ? (Ii(s, c), null) : g.value;
1149
1149
  } catch (d) {
1150
1150
  return console.error("Error getting flow nonce:", d), null;
1151
1151
  }
1152
1152
  })(a, o);
1153
- l && (i.headers = i.headers || {}, i.headers[On] = l);
1153
+ l && (i.headers = i.headers || {}, i.headers[An] = l);
1154
1154
  }
1155
1155
  }
1156
1156
  return i;
@@ -1158,68 +1158,68 @@ const lo = (e, t) => new Promise((n, o) => {
1158
1158
  }, (e) => (t) => {
1159
1159
  var { storeLastAuthenticatedUser: n = !0, keepLastAuthenticatedUserAfterLogout: o = !1 } = t, r = B(t, ["storeLastAuthenticatedUser", "keepLastAuthenticatedUserAfterLogout"]);
1160
1160
  if (!n)
1161
- return Object.assign(e(r), { getLastUserLoginId: Pt, getLastUserDisplayName: Lt });
1161
+ return Object.assign(e(r), { getLastUserLoginId: Ft, getLastUserDisplayName: Bt });
1162
1162
  const i = e(je(r, { afterRequest: async (l, s) => {
1163
1163
  var c;
1164
1164
  const { userInfo: d, lastAuth: u } = await (async (v) => {
1165
1165
  if (!(v != null && v.ok))
1166
1166
  return { userInfo: void 0, lastAuth: void 0 };
1167
- const f = await (v == null ? void 0 : v.clone().json()), b = _n((f == null ? void 0 : f.authInfo) || f || {});
1167
+ const f = await (v == null ? void 0 : v.clone().json()), b = to((f == null ? void 0 : f.authInfo) || f || {});
1168
1168
  return { userInfo: (b == null ? void 0 : b.user) || (b != null && b.hasOwnProperty("userId") ? b : void 0), lastAuth: f.lastAuth };
1169
1169
  })(s), g = (c = d == null ? void 0 : d.loginIds) === null || c === void 0 ? void 0 : c[0], y = d == null ? void 0 : d.name;
1170
- g ? (Tn(g), ((v) => {
1171
- pe($t, v);
1172
- })(y)) : u != null && u.loginId && Tn(u.loginId);
1170
+ g ? (En(g), ((v) => {
1171
+ pe(Xt, v);
1172
+ })(y)) : u != null && u.loginId && En(u.loginId);
1173
1173
  } }));
1174
- let a = Le(i, ["flow.start"], ki);
1175
- return a = Le(a, ["logout", "logoutAll"], Ii(o)), Object.assign(a, { getLastUserLoginId: Pt, getLastUserDisplayName: Lt });
1174
+ let a = Le(i, ["flow.start"], xi);
1175
+ return a = Le(a, ["logout", "logoutAll"], Si(o)), Object.assign(a, { getLastUserLoginId: Ft, getLastUserDisplayName: Bt });
1176
1176
  }, (e) => (t) => {
1177
1177
  var { persistTokens: n, sessionTokenViaCookie: o, refreshTokenViaCookie: r, storagePrefix: i } = t, a = B(t, ["persistTokens", "sessionTokenViaCookie", "refreshTokenViaCookie", "storagePrefix"]);
1178
1178
  if (!n || !$)
1179
1179
  return e(a);
1180
1180
  let l;
1181
- const s = e(je(a, { beforeRequest: hi(i, r), afterRequest: async (d, u) => {
1182
- if (xt(d, u))
1183
- W("Session invalidated, clearing persisted tokens"), to(i, o, r, l);
1181
+ const s = e(je(a, { beforeRequest: vi(i, r), afterRequest: async (d, u) => {
1182
+ if (Ct(d, u))
1183
+ W("Session invalidated, clearing persisted tokens"), oo(i, o, r, l);
1184
1184
  else {
1185
1185
  const g = ((y = {}, v = !1, f = "", b = !1) => {
1186
1186
  var O, U, A, L;
1187
- const { sessionJwt: J, refreshJwt: q, trustedDeviceJwt: H } = y;
1187
+ const { sessionJwt: J, refreshJwt: q, trustedDeviceJwt: K } = y;
1188
1188
  let V;
1189
1189
  if (q)
1190
1190
  if (b) {
1191
1191
  se(`${f}${Me}`);
1192
- const K = b.sameSite || "Strict", Y = (O = b.secure) === null || O === void 0 || O, F = (U = b.domain) !== null && U !== void 0 ? U : y.cookieDomain, Q = ot(b);
1193
- Y && window.location.protocol !== "https:" && xn("Refresh token cookie is configured with secure=true but the page is not using HTTPS. The cookie will not be set. To fix this, pass refreshTokenViaCookie: { secure: process.env['NODE_ENV'] !== 'development' }");
1194
- const X = Object.assign(Object.assign({}, y), { cookieSameSite: K, cookieSecure: Y, cookieDomain: F });
1195
- Sn(Q, q, X);
1196
- const ee = Dt(F);
1192
+ const H = b.sameSite || "Strict", Y = (O = b.secure) === null || O === void 0 || O, F = (U = b.domain) !== null && U !== void 0 ? U : y.cookieDomain, Q = it(b);
1193
+ Y && window.location.protocol !== "https:" && Cn("Refresh token cookie is configured with secure=true but the page is not using HTTPS. The cookie will not be set. To fix this, pass refreshTokenViaCookie: { secure: process.env['NODE_ENV'] !== 'development' }");
1194
+ const X = Object.assign(Object.assign({}, y), { cookieSameSite: H, cookieSecure: Y, cookieDomain: F });
1195
+ On(Q, q, X);
1196
+ const ee = Nt(F);
1197
1197
  V = Object.assign(Object.assign({}, V), { refresh: { path: X.cookiePath, domain: ee ? F : void 0 } });
1198
1198
  } else {
1199
- const K = ot(b);
1200
- Re.remove(K), pe(`${f}${Me}`, q);
1199
+ const H = it(b);
1200
+ Re.remove(H), pe(`${f}${Me}`, q);
1201
1201
  }
1202
1202
  if (J)
1203
1203
  if (v) {
1204
- const K = v.sameSite || "Strict", Y = (A = v.secure) === null || A === void 0 || A, F = (L = v.domain) !== null && L !== void 0 ? L : y.cookieDomain, Q = Mt(v);
1205
- Y && window.location.protocol !== "https:" && xn("Session token cookie is configured with secure=true but the page is not using HTTPS. The cookie will not be set. To fix this, pass sessionTokenViaCookie: { secure: process.env['NODE_ENV'] !== 'development' }");
1206
- const X = Object.assign(Object.assign({}, y), { cookieSameSite: K, cookieSecure: Y, cookieDomain: F });
1207
- Sn(Q, J, X);
1208
- const ee = Dt(F);
1204
+ const H = v.sameSite || "Strict", Y = (A = v.secure) === null || A === void 0 || A, F = (L = v.domain) !== null && L !== void 0 ? L : y.cookieDomain, Q = Yt(v);
1205
+ Y && window.location.protocol !== "https:" && Cn("Session token cookie is configured with secure=true but the page is not using HTTPS. The cookie will not be set. To fix this, pass sessionTokenViaCookie: { secure: process.env['NODE_ENV'] !== 'development' }");
1206
+ const X = Object.assign(Object.assign({}, y), { cookieSameSite: H, cookieSecure: Y, cookieDomain: F });
1207
+ On(Q, J, X);
1208
+ const ee = Nt(F);
1209
1209
  V = Object.assign(Object.assign({}, V), { session: { path: X.cookiePath, domain: ee ? F : void 0 } });
1210
1210
  } else
1211
- pe(`${f}${ct}`, J);
1212
- return y.idToken && pe(`${f}${Vt}`, y.idToken), H && pe(`${f}DTD`, H), V;
1213
- })(await Ge(u), o, i, r);
1211
+ pe(`${f}${ut}`, J);
1212
+ return y.idToken && pe(`${f}${Wt}`, y.idToken), K && pe(`${f}DTD`, K), V;
1213
+ })(await _e(u), o, i, r);
1214
1214
  g && (l = g);
1215
1215
  }
1216
- } })), c = Le(s, ["logout", "logoutAll", "oidc.logout"], xi(i, o, r, () => l));
1217
- return Object.assign(c, { getRefreshToken: () => Ke(i, r), getSessionToken: () => Cn(i, o), getIdToken: () => eo(i) });
1216
+ } })), c = Le(s, ["logout", "logoutAll", "oidc.logout"], Ci(i, o, r, () => l));
1217
+ return Object.assign(c, { getRefreshToken: () => He(i, r), getSessionToken: () => Un(i, o), getIdToken: () => no(i) });
1218
1218
  })((e) => {
1219
- const t = $r(e), n = ji(t, e.projectId, e.oidcConfig);
1219
+ const t = Xr(e), n = Di(t, e.projectId, e.oidcConfig);
1220
1220
  return Object.assign(Object.assign({}, t), { refresh: async (i, a) => {
1221
1221
  var l;
1222
- if (Et())
1222
+ if (Rt())
1223
1223
  return W(`Refresh called in native flow: ${new Error().stack}`), Promise.resolve({ ok: !1, error: { errorCode: "J171000", errorDescription: "Refresh is not supported in native flows via the web SDK" } });
1224
1224
  if (e.oidcConfig)
1225
1225
  try {
@@ -1227,7 +1227,7 @@ const lo = (e, t) => new Promise((n, o) => {
1227
1227
  } catch (u) {
1228
1228
  return Promise.resolve({ ok: !1, error: { errorCode: "J161001", errorDescription: u.toString() } });
1229
1229
  }
1230
- const s = Cn(), c = Ke();
1230
+ const s = Un(), c = He();
1231
1231
  let d = "";
1232
1232
  if (e.getExternalToken)
1233
1233
  try {
@@ -1244,19 +1244,19 @@ const lo = (e, t) => new Promise((n, o) => {
1244
1244
  return Promise.resolve({ ok: !1, error: { errorCode: "J161000", errorDescription: a.toString() } });
1245
1245
  }
1246
1246
  return t.logout(i);
1247
- }, flow: Ui(t), webauthn: Ci(t), fedcm: (o = t, r = e.projectId, { onetap: { requestExchangeCode(i) {
1248
- Dn(o, i);
1247
+ }, flow: Ti(t), webauthn: Ui(t), fedcm: (o = t, r = e.projectId, { onetap: { requestExchangeCode(i) {
1248
+ Nn(o, i);
1249
1249
  }, requestAuthentication(i) {
1250
- Dn(o, i);
1250
+ Nn(o, i);
1251
1251
  } }, async oneTap(i, a, l, s, c) {
1252
- await so(o, { provider: i, oneTapConfig: a, loginOptions: l, onSkipped: s, onDismissed: c });
1252
+ await co(o, { provider: i, oneTapConfig: a, loginOptions: l, onSkipped: s, onDismissed: c });
1253
1253
  }, async launch(i) {
1254
1254
  var a;
1255
- const l = { identity: { context: i || "signin", providers: [{ configURL: o.httpClient.buildUrl(r + En.config), clientId: r }] } }, s = await ((a = navigator.credentials) === null || a === void 0 ? void 0 : a.get(l));
1255
+ const l = { identity: { context: i || "signin", providers: [{ configURL: o.httpClient.buildUrl(r + Rn.config), clientId: r }] } }, s = await ((a = navigator.credentials) === null || a === void 0 ? void 0 : a.get(l));
1256
1256
  return o.refresh(s.token);
1257
1257
  }, isSupported: () => $ && "IdentityCredential" in window, async isLoggedIn(i) {
1258
1258
  var a;
1259
- const l = o.httpClient.buildUrl(r + En.config);
1259
+ const l = o.httpClient.buildUrl(r + Rn.config);
1260
1260
  try {
1261
1261
  const s = { identity: { context: i || "signin", providers: [{ configURL: l, clientId: r }] } }, c = await ((a = navigator.credentials) === null || a === void 0 ? void 0 : a.get(s));
1262
1262
  return !!c && !!c.token;
@@ -1266,22 +1266,22 @@ const lo = (e, t) => new Promise((n, o) => {
1266
1266
  } }), oidc: n });
1267
1267
  var o, r;
1268
1268
  });
1269
- let Qt;
1270
- const co = (e) => {
1271
- const t = Ei(Object.assign({ persistTokens: pn, autoRefresh: pn }, e));
1272
- return Qt = t, t;
1273
- }, Di = () => co({ projectId: "temp pid", persistTokens: !1, autoRefresh: !1, storeLastAuthenticatedUser: !1 });
1274
- Qt = Di();
1275
- const Ri = () => Qt;
1276
- var Ni = ({ projectId: e, baseUrl: t, persistTokens: n, autoRefresh: o, sessionTokenViaCookie: r, refreshTokenViaCookie: i, refreshCookieName: a, oidcConfig: l, storeLastAuthenticatedUser: s, keepLastAuthenticatedUserAfterLogout: c, getExternalToken: d, hooks: u, customStorage: g }) => rt(() => {
1269
+ let Gt;
1270
+ const po = (e) => {
1271
+ const t = Ri(Object.assign({ persistTokens: hn, autoRefresh: hn }, e));
1272
+ return Gt = t, t;
1273
+ }, Ni = () => po({ projectId: "temp pid", persistTokens: !1, autoRefresh: !1, storeLastAuthenticatedUser: !1 });
1274
+ Gt = Ni();
1275
+ const Pi = () => Gt;
1276
+ var Li = ({ projectId: e, baseUrl: t, persistTokens: n, autoRefresh: o, sessionTokenViaCookie: r, refreshTokenViaCookie: i, refreshCookieName: a, oidcConfig: l, storeLastAuthenticatedUser: s, keepLastAuthenticatedUserAfterLogout: c, getExternalToken: d, hooks: u, customStorage: g }) => at(() => {
1277
1277
  if (e)
1278
- return co({ projectId: e, baseUrl: t, sessionTokenViaCookie: r, refreshTokenViaCookie: i, baseHeaders: et, persistTokens: n, autoRefresh: o, refreshCookieName: a, oidcConfig: l, storeLastAuthenticatedUser: s, keepLastAuthenticatedUserAfterLogout: c, hooks: u, getExternalToken: d, customStorage: g });
1278
+ return po({ projectId: e, baseUrl: t, sessionTokenViaCookie: r, refreshTokenViaCookie: i, baseHeaders: nt, persistTokens: n, autoRefresh: o, refreshCookieName: a, oidcConfig: l, storeLastAuthenticatedUser: s, keepLastAuthenticatedUserAfterLogout: c, hooks: u, getExternalToken: d, customStorage: g });
1279
1279
  }, [e, t, JSON.stringify(r), JSON.stringify(i), d, g]);
1280
- const Pi = ({ projectId: e, baseUrl: t = "", baseStaticUrl: n = "", baseCdnUrl: o = "", sessionTokenViaCookie: r = !1, refreshTokenViaCookie: i = !1, hooks: a, persistTokens: l = !0, autoRefresh: s = !0, oidcConfig: c, storeLastAuthenticatedUser: d = !0, keepLastAuthenticatedUserAfterLogout: u = !1, refreshCookieName: g = "", getExternalToken: y, customStorage: v, children: f }) => {
1281
- const [b, O] = D(), [U, A] = D(), [L, J] = D(), [q, H] = D(!1), [V, K] = D(!1), [Y, F] = D(!1), [Q, X] = D(!!c), ee = Oe(!1), N = Ni({ projectId: e, baseUrl: t, persistTokens: l, autoRefresh: s, sessionTokenViaCookie: r, refreshTokenViaCookie: i, hooks: a, oidcConfig: c, storeLastAuthenticatedUser: d, keepLastAuthenticatedUserAfterLogout: u, refreshCookieName: g, getExternalToken: y, customStorage: v });
1280
+ const Fi = ({ projectId: e, baseUrl: t = "", baseStaticUrl: n = "", baseCdnUrl: o = "", sessionTokenViaCookie: r = !1, refreshTokenViaCookie: i = !1, hooks: a, persistTokens: l = !0, autoRefresh: s = !0, oidcConfig: c, storeLastAuthenticatedUser: d = !0, keepLastAuthenticatedUserAfterLogout: u = !1, refreshCookieName: g = "", getExternalToken: y, customStorage: v, children: f }) => {
1281
+ const [b, O] = E(), [U, A] = E(), [L, J] = E(), [q, K] = E(!1), [V, H] = E(!1), [Y, F] = E(!1), [Q, X] = E(!!c), ee = Oe(!1), N = Li({ projectId: e, baseUrl: t, persistTokens: l, autoRefresh: s, sessionTokenViaCookie: r, refreshTokenViaCookie: i, hooks: a, oidcConfig: c, storeLastAuthenticatedUser: d, keepLastAuthenticatedUserAfterLogout: u, refreshCookieName: g, getExternalToken: y, customStorage: v });
1282
1282
  ce(() => {
1283
1283
  if (N) {
1284
- const be = N.onSessionTokenChange(A), te = N.onUserChange(O), I = N.onIsAuthenticatedChange(H), Ae = N.onClaimsChange(J);
1284
+ const be = N.onSessionTokenChange(A), te = N.onUserChange(O), I = N.onIsAuthenticatedChange(K), Ae = N.onClaimsChange(J);
1285
1285
  return () => {
1286
1286
  be(), te(), I(), Ae();
1287
1287
  };
@@ -1293,21 +1293,21 @@ const Pi = ({ projectId: e, baseUrl: t = "", baseStaticUrl: n = "", baseCdnUrl:
1293
1293
  X(!1), z.current = !0;
1294
1294
  }));
1295
1295
  }, []);
1296
- const ye = tt(() => {
1297
- To() || z.current || (z.current = !0, F(!0), un(N == null ? void 0 : N.refresh)(void 0, !0).then(() => {
1296
+ const ye = ot(() => {
1297
+ Eo() || z.current || (z.current = !0, F(!0), gn(N == null ? void 0 : N.refresh)(void 0, !0).then(() => {
1298
1298
  F(!1);
1299
1299
  }));
1300
- }, [N]), he = tt(() => {
1301
- M.current || (M.current = !0, K(!0), un(N.me)().then(() => {
1302
- K(!1);
1300
+ }, [N]), he = ot(() => {
1301
+ M.current || (M.current = !0, H(!0), gn(N.me)().then(() => {
1302
+ H(!1);
1303
1303
  }));
1304
- }, [N]), Ue = rt(() => ({ fetchUser: he, user: b, isUserLoading: V, isUserFetched: M.current, fetchSession: ye, session: U, isAuthenticated: q, isSessionLoading: Y, isOidcLoading: Q, isSessionFetched: z.current, projectId: e, baseUrl: t, baseStaticUrl: n, baseCdnUrl: o, storeLastAuthenticatedUser: d, keepLastAuthenticatedUserAfterLogout: u, refreshCookieName: g, customStorage: v, setUser: O, setSession: A, setIsAuthenticated: H, claims: L, sdk: N }), [he, b, V, M.current, ye, U, q, Y, Q, z.current, e, t, n, o, u, g, v, O, A, H, L, N]);
1305
- return ae.createElement(Pn.Provider, { value: Ue }, f);
1304
+ }, [N]), Ue = at(() => ({ fetchUser: he, user: b, isUserLoading: V, isUserFetched: M.current, fetchSession: ye, session: U, isAuthenticated: q, isSessionLoading: Y, isOidcLoading: Q, isSessionFetched: z.current, projectId: e, baseUrl: t, baseStaticUrl: n, baseCdnUrl: o, storeLastAuthenticatedUser: d, keepLastAuthenticatedUserAfterLogout: u, refreshCookieName: g, customStorage: v, setUser: O, setSession: A, setIsAuthenticated: K, claims: L, sdk: N }), [he, b, V, M.current, ye, U, q, Y, Q, z.current, e, t, n, o, u, g, v, O, A, K, L, N]);
1305
+ return ae.createElement(Fn.Provider, { value: Ue }, f);
1306
1306
  };
1307
- function _i(...e) {
1307
+ function ta(...e) {
1308
1308
  return (t) => e.reduce((n, o) => o(n), t);
1309
1309
  }
1310
- const ea = (...e) => e.join("/").replace(/\/+/g, "/"), Rn = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_.]+/g, "-").toLowerCase(), ta = (e) => {
1310
+ const na = (...e) => e.join("/").replace(/\/+/g, "/"), Pn = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_.]+/g, "-").toLowerCase(), oa = (e) => {
1311
1311
  const t = Symbol(((n) => {
1312
1312
  const o = n.toString();
1313
1313
  let r = 0;
@@ -1321,34 +1321,34 @@ const ea = (...e) => e.join("/").replace(/\/+/g, "/"), Rn = (e) => e.replace(/([
1321
1321
  const o = e(n);
1322
1322
  return o[t] = !0, o;
1323
1323
  };
1324
- }, Li = (e) => {
1324
+ }, Bi = (e) => {
1325
1325
  const [, t, n] = /(.*)\.(prop|attr)$/.exec(e) || [, e, "rest"];
1326
1326
  return { trimmedKey: t, category: n };
1327
- }, Fi = (e) => typeof e == "string" || e == null ? e : JSON.stringify(e), Bi = (e) => ae.forwardRef((t, n) => {
1328
- const { prop: o, attr: r, rest: i } = rt(() => Object.entries(t).reduce((s, [c, d]) => {
1329
- const { trimmedKey: u, category: g } = Li(c);
1330
- return g === "prop" ? s.prop.push([u, d]) : g === "attr" ? s.attr.push([Rn(u), Fi(d)]) : Object.assign(s.rest, { [Rn(u)]: d }), s;
1331
- }, { attr: [], prop: [], rest: {} }), [t]), a = Oe(null), l = tt((s) => {
1327
+ }, qi = (e) => typeof e == "string" || e == null ? e : JSON.stringify(e), zi = (e) => ae.forwardRef((t, n) => {
1328
+ const { prop: o, attr: r, rest: i } = at(() => Object.entries(t).reduce((s, [c, d]) => {
1329
+ const { trimmedKey: u, category: g } = Bi(c);
1330
+ return g === "prop" ? s.prop.push([u, d]) : g === "attr" ? s.attr.push([Pn(u), qi(d)]) : Object.assign(s.rest, { [Pn(u)]: d }), s;
1331
+ }, { attr: [], prop: [], rest: {} }), [t]), a = Oe(null), l = ot((s) => {
1332
1332
  a.current = s, s && (o.forEach(([c, d]) => {
1333
1333
  a.current[c] = d;
1334
1334
  }), r.forEach(([c, d]) => {
1335
1335
  d == null ? s.removeAttribute(c) : s.setAttribute(c, d);
1336
1336
  }));
1337
1337
  }, [o, r, a]);
1338
- return Nn(n, () => a.current), ae.createElement(e, Object.assign({ ref: l }, i));
1339
- }), qi = Io(async () => (((customElements == null ? void 0 : customElements.get("descope-wc")) || await import("./index.es3.js").then((e) => e.a).then((e) => e.default)).sdkConfigOverrides = { baseHeaders: et, persistTokens: !1, hooks: { get beforeRequest() {
1340
- return Ri().httpClient.hooks.beforeRequest;
1338
+ return Ln(n, () => a.current), ae.createElement(e, Object.assign({ ref: l }, i));
1339
+ }), Ji = So(async () => (((customElements == null ? void 0 : customElements.get("descope-wc")) || await import("./index.es3.js").then((e) => e.a).then((e) => e.default)).sdkConfigOverrides = { baseHeaders: nt, persistTokens: !1, hooks: { get beforeRequest() {
1340
+ return Pi().httpClient.hooks.beforeRequest;
1341
1341
  }, set beforeRequest(e) {
1342
- } } }, { default: Bi(ae.forwardRef((e, t) => {
1342
+ } } }, { default: zi(ae.forwardRef((e, t) => {
1343
1343
  var { "external-request-id": n } = e, o = B(e, ["external-request-id"]);
1344
- return rt(() => {
1344
+ return at(() => {
1345
1345
  var r, i;
1346
- r = "x-external-rid", (i = n) ? et[r] = i : delete et[r];
1346
+ r = "x-external-rid", (i = n) ? nt[r] = i : delete nt[r];
1347
1347
  }, [n]), ae.createElement("descope-wc", Object.assign({ ref: t }, o));
1348
- })) })), zi = ae.forwardRef(({ flowId: e, onSuccess: t, onError: n, onReady: o, logger: r, tenant: i, theme: a, nonce: l, locale: s, debug: c, client: d, form: u, telemetryKey: g, redirectUrl: y, autoFocus: v, validateOnBlur: f, restartOnError: b, errorTransformer: O, styleId: U, onScreenUpdate: A, dismissScreenErrorOnInput: L, outboundAppId: J, outboundAppScopes: q, popupOrigin: H, children: V, externalRequestId: K }, Y) => {
1349
- const [F, Q] = D(null);
1350
- Nn(Y, () => F);
1351
- const { projectId: X, baseUrl: ee, baseStaticUrl: N, baseCdnUrl: z, storeLastAuthenticatedUser: M, keepLastAuthenticatedUserAfterLogout: ye, refreshCookieName: he, customStorage: Ue, sdk: be } = ae.useContext(Pn), te = tt(async (I) => {
1348
+ })) })), Hi = ae.forwardRef(({ flowId: e, onSuccess: t, onError: n, onReady: o, logger: r, tenant: i, theme: a, nonce: l, locale: s, debug: c, client: d, form: u, telemetryKey: g, redirectUrl: y, autoFocus: v, validateOnBlur: f, restartOnError: b, errorTransformer: O, styleId: U, onScreenUpdate: A, dismissScreenErrorOnInput: L, outboundAppId: J, outboundAppScopes: q, popupOrigin: K, children: V, externalRequestId: H }, Y) => {
1349
+ const [F, Q] = E(null);
1350
+ Ln(Y, () => F);
1351
+ const { projectId: X, baseUrl: ee, baseStaticUrl: N, baseCdnUrl: z, storeLastAuthenticatedUser: M, keepLastAuthenticatedUserAfterLogout: ye, refreshCookieName: he, customStorage: Ue, sdk: be } = ae.useContext(Fn), te = ot(async (I) => {
1352
1352
  await be.httpClient.hooks.afterRequest({}, new Response(JSON.stringify(I.detail))), t && t(I);
1353
1353
  }, [t]);
1354
1354
  return ce(() => {
@@ -1371,8 +1371,8 @@ const ea = (...e) => e.join("/").replace(/\/+/g, "/"), Rn = (e) => e.replace(/([
1371
1371
  return o && (I == null || I.addEventListener("ready", o)), () => {
1372
1372
  o && (I == null || I.removeEventListener("error", o));
1373
1373
  };
1374
- }, [F, o]), ae.createElement("form", null, ae.createElement(xo, { fallback: null }, ae.createElement(qi, { projectId: X, flowId: e, baseUrl: ee, baseStaticUrl: N, baseCdnUrl: z, ref: Q, telemetryKey: g, redirectUrl: y, autoFocus: v, styleId: U, validateOnBlur: f, restartOnError: b, keepLastAuthenticatedUserAfterLogout: ye, tenant: i, externalRequestId: K, customStorage: Ue, "theme.attr": a, "nonce.attr": l, "locale.attr": s, "form.attr": u, "client.attr": d, "debug.attr": c, "outbound-app-id.attr": J, "outbound-app-scopes.attr": q, "popup-origin.attr": H, "store-last-authenticated-user.attr": M, "refreshCookieName.attr": he, "dismiss-screen-error-on-input.attr": L, "errorTransformer.prop": O, "logger.prop": r, "onScreenUpdate.prop": A, "customStorage.prop": Ue }, V)));
1375
- }), Ji = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK8AAAAwCAYAAABnoirjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAI6lJREFUeAHtfQd8FsX29pTdfXtCeoBQAsHQAkIiVZSioFKkCCooiCD2ggXUq4Kici8qol4VkHJB6YIKFyki5AoIIkFASuihpJGet26Zme9sCgYMmgT1u/dPzu8Xfcvu7OzMM+c85zmzLwjVWq3VWq3V2l9rGP3/Mdy9e3d67tw5Wv6BoigiMvIQT05GDN4KVGu19jv2l4G3ZcuWSl5enhzjcEgbt8yIEQF/ksAikjNu44gjgkmAEnHeSh0pjia3n4uOjtbCwsL0Q4cO6agWzLVWif3Z4MWNGze2HEqZEeHL9t2tMeNGLnh7mdIQhLGhM5aPBPYjAugUwmYhEnwuZIxIYcDQ98iSvD24btRnzRJGnQcvHUC1IK61CvangRdAaz2S8lGTouzCR5Hgw+FKBoA0mXC8mzG+x65b9l7T90lvZtnxMZmZYsfB9TYbOn+tysR1MpUTAas3ApitHKNlIZFB7zVu/eCpzMxMH6q1WkN/AnjBNWKv59tI35nMN4VAdyGgApzhj2mOsvCnBnlcNiztKCJJ4GrbMYPHAjhtJed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NGXyH+WgOLITlEdHNn8ShSX/6k6q19t9nf9gzUWYFJfvI4lcpF49B7P7EZdOnOGNHF/xw9rMhusanAmB1SSEzrBZladLNw4sXL1wc5AvXOkLJMAISIWIYxGulRmpW4/zj0+tNF4uT32woYTwCEol7gO96IR99xuXP+6G+HP48ZPPjVYzfHzbw8de2H8l1o1q7Ku0P/nHpuvb1yz4YQbn+BmiGHkOizyY2vWud+euPhsc7ApSbJ0AeCYZk7AdJRttl2ZbiMwLFxNyrS6gdspo4qLgkwPftQJppD8LLj1DuXWgo2hdtdaWz4PI7lOJ6GqaT+984/pOUWqpwVduf8TSq7PdviCk+mTMN5MbbQfr4TiFodoTPt2F7oJBrURFdFCR1gZJnVwBygixJDlMS1VRNBd3yBEgqB4hE92scb+5xTdbx3NS6PUDWHAMi5K1Q49nsdDif7T54yrG/4hdZau2/2/60R6lBXnH+56vXeuia9jgV7AYAaC5I68skhr9nVmlf227DMjIzETp48CABeQmB9FMiraQm/z1CMEsCl0UnqIvfCQWdGEjS9hCL9b1b73xyTUpKZpV1wFr7v21/9u8AlOiUO/fOi1GL3KMDXB+kYNrQxJ7KUB4kcidtUskzZ0Ll3IY5byRTEmU+CGcIkU2o9JXNZvlXl9seOhoZ2SpQ+/u7tVbR/mzwXriO+QN0klSsHNu5wpVfmJ2gM9QO+G0DpHErMXeZU2I+65Nuk8k+7HId6HP9U7npgYBe+++v1drl7K8C76VGgVZQqGJdtC3SarXydu2OG+ZTtKjWaq3Waq3Waq3W/svs/wHDkxYoFqn0jQAAAABJRU5ErkJggg==", He = "var(--color-green)", R = "var(--font-sans)", oe = {
1374
+ }, [F, o]), ae.createElement("form", null, ae.createElement(Co, { fallback: null }, ae.createElement(Ji, { projectId: X, flowId: e, baseUrl: ee, baseStaticUrl: N, baseCdnUrl: z, ref: Q, telemetryKey: g, redirectUrl: y, autoFocus: v, styleId: U, validateOnBlur: f, restartOnError: b, keepLastAuthenticatedUserAfterLogout: ye, tenant: i, externalRequestId: H, customStorage: Ue, "theme.attr": a, "nonce.attr": l, "locale.attr": s, "form.attr": u, "client.attr": d, "debug.attr": c, "outbound-app-id.attr": J, "outbound-app-scopes.attr": q, "popup-origin.attr": K, "store-last-authenticated-user.attr": M, "refreshCookieName.attr": he, "dismiss-screen-error-on-input.attr": L, "errorTransformer.prop": O, "logger.prop": r, "onScreenUpdate.prop": A, "customStorage.prop": Ue }, V)));
1375
+ }), Ki = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK8AAAAwCAYAAABnoirjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAI6lJREFUeAHtfQd8FsX29pTdfXtCeoBQAsHQAkIiVZSioFKkCCooiCD2ggXUq4Kici8qol4VkHJB6YIKFyki5AoIIkFASuihpJGet26Zme9sCgYMmgT1u/dPzu8Xfcvu7OzMM+c85zmzLwjVWq3VWq3V2l9rGP3/Mdy9e3d67tw5Wv6BoigiMvIQT05GDN4KVGu19jv2l4G3ZcuWSl5enhzjcEgbt8yIEQF/ksAikjNu44gjgkmAEnHeSh0pjia3n4uOjtbCwsL0Q4cO6agWzLVWif3Z4MWNGze2HEqZEeHL9t2tMeNGLnh7mdIQhLGhM5aPBPYjAugUwmYhEnwuZIxIYcDQ98iSvD24btRnzRJGnQcvHUC1IK61CvangRdAaz2S8lGTouzCR5Hgw+FKBoA0mXC8mzG+x65b9l7T90lvZtnxMZmZYsfB9TYbOn+tysR1MpUTAas3ApitHKNlIZFB7zVu/eCpzMxMH6q1WkN/AnjBNWKv59tI35nMN4VAdyGgApzhj2mOsvCnBnlcNiztKCJJ4GrbMYPHAjhtJedxFKAKPU0JTtEDYo/baaQk5XNGFdu9hJJHoKf1OSZfRkVEPYfDe2WgWi981dsfCt7ExER569pJid5CzzzBRBin6MWok3krNje2xEnU8ggWYgiA1TAMkUJl+iMV/Dghkk+DFI1ibgMAN2WcXUcpThSI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gO96IR99xuXP+6G+HP48ZPPjVYzfHzbw8de2H8l1o1q7Ku0P/nHpuvb1yz4YQbn+BmiGHkOizyY2vWud+euPhsc7ApSbJ0AeCYZk7AdJRttl2ZbiMwLFxNyrS6gdspo4qLgkwPftQJppD8LLj1DuXWgo2hdtdaWz4PI7lOJ6GqaT+984/pOUWqpwVduf8TSq7PdviCk+mTMN5MbbQfr4TiFodoTPt2F7oJBrURFdFCR1gZJnVwBygixJDlMS1VRNBd3yBEgqB4hE92scb+5xTdbx3NS6PUDWHAMi5K1Q49nsdDif7T54yrG/4hdZau2/2/60R6lBXnH+56vXeuia9jgV7AYAaC5I68skhr9nVmlf227DMjIzETp48CABeQmB9FMiraQm/z1CMEsCl0UnqIvfCQWdGEjS9hCL9b1b73xyTUpKZpV1wFr7v21/9u8AlOiUO/fOi1GL3KMDXB+kYNrQxJ7KUB4kcidtUskzZ0Ll3IY5byRTEmU+CGcIkU2o9JXNZvlXl9seOhoZ2SpQ+/u7tVbR/mzwXriO+QN0klSsHNu5wpVfmJ2gM9QO+G0DpHErMXeZU2I+65Nuk8k+7HId6HP9U7npgYBe+++v1drl7K8C76VGgVZQqGJdtC3SarXydu2OG+ZTtKjWaq3Waq3Waq3W/svs/wHDkxYoFqn0jQAAAABJRU5ErkJggg==", Ke = "var(--color-green)", D = "var(--font-sans)", oe = {
1376
1376
  width: "100%",
1377
1377
  height: 40,
1378
1378
  padding: "10px 14px",
@@ -1383,7 +1383,7 @@ const ea = (...e) => e.join("/").replace(/\/+/g, "/"), Rn = (e) => e.replace(/([
1383
1383
  borderRadius: 4,
1384
1384
  background: "white",
1385
1385
  color: "var(--color-text)",
1386
- fontFamily: R,
1386
+ fontFamily: D,
1387
1387
  outline: "none",
1388
1388
  boxSizing: "border-box",
1389
1389
  transition: "border-color 0.15s, box-shadow 0.15s"
@@ -1394,8 +1394,8 @@ const ea = (...e) => e.join("/").replace(/\/+/g, "/"), Rn = (e) => e.replace(/([
1394
1394
  };
1395
1395
  function qe({ title: e, subtitle: t }) {
1396
1396
  return /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
1397
- /* @__PURE__ */ p("h2", { style: { fontFamily: R, fontWeight: 600, fontSize: "36px", lineHeight: "44px", color: "var(--color-text)", margin: 0 }, children: e }),
1398
- /* @__PURE__ */ p("p", { style: { fontFamily: R, fontSize: 18, fontWeight: 400, lineHeight: "26px", color: "var(--color-text-secondary)", margin: 0 }, children: t })
1397
+ /* @__PURE__ */ p("h2", { style: { fontFamily: D, fontWeight: 600, fontSize: "36px", lineHeight: "44px", color: "var(--color-text)", margin: 0 }, children: e }),
1398
+ /* @__PURE__ */ p("p", { style: { fontFamily: D, fontSize: 18, fontWeight: 400, lineHeight: "26px", color: "var(--color-text-secondary)", margin: 0 }, children: t })
1399
1399
  ] });
1400
1400
  }
1401
1401
  function xe({ onClick: e, disabled: t, children: n, type: o = "button" }) {
@@ -1420,7 +1420,7 @@ function xe({ onClick: e, disabled: t, children: n, type: o = "button" }) {
1420
1420
  fontSize: 16,
1421
1421
  fontWeight: 600,
1422
1422
  lineHeight: "23px",
1423
- fontFamily: R,
1423
+ fontFamily: D,
1424
1424
  cursor: r ? "pointer" : "not-allowed",
1425
1425
  transition: "background 0.15s",
1426
1426
  boxSizing: "border-box"
@@ -1437,11 +1437,11 @@ function xe({ onClick: e, disabled: t, children: n, type: o = "button" }) {
1437
1437
  }
1438
1438
  function G({ label: e, gap: t = 12, labelSize: n = 16, labelStyle: o, children: r }) {
1439
1439
  return /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: t, width: "100%" }, children: [
1440
- /* @__PURE__ */ p("label", { style: { fontSize: n, fontWeight: 400, color: "var(--color-text)", fontFamily: R, lineHeight: "100%", ...o }, children: e }),
1440
+ /* @__PURE__ */ p("label", { style: { fontSize: n, fontWeight: 400, color: "var(--color-text)", fontFamily: D, lineHeight: "100%", ...o }, children: e }),
1441
1441
  r
1442
1442
  ] });
1443
1443
  }
1444
- function Ot({ show: e, onToggle: t }) {
1444
+ function At({ show: e, onToggle: t }) {
1445
1445
  return /* @__PURE__ */ p(
1446
1446
  "button",
1447
1447
  {
@@ -1449,7 +1449,7 @@ function Ot({ show: e, onToggle: t }) {
1449
1449
  tabIndex: -1,
1450
1450
  onClick: t,
1451
1451
  style: { position: "absolute", right: 14, top: "50%", transform: "translateY(-50%)", background: "none", border: "none", padding: 0, cursor: "pointer", color: "var(--color-text-secondary)", display: "flex", alignItems: "center" },
1452
- children: e ? /* @__PURE__ */ p(Uo, { size: 16 }) : /* @__PURE__ */ p(Ao, { size: 16 })
1452
+ children: e ? /* @__PURE__ */ p(To, { size: 16 }) : /* @__PURE__ */ p(jo, { size: 16 })
1453
1453
  }
1454
1454
  );
1455
1455
  }
@@ -1458,20 +1458,20 @@ function ze() {
1458
1458
  }
1459
1459
  function Ee({ text: e, linkText: t, onClick: n }) {
1460
1460
  return /* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", gap: 4, width: "100%" }, children: [
1461
- /* @__PURE__ */ p("span", { style: { fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: R }, children: e }),
1461
+ /* @__PURE__ */ p("span", { style: { fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: D }, children: e }),
1462
1462
  /* @__PURE__ */ p(
1463
1463
  "button",
1464
1464
  {
1465
1465
  type: "button",
1466
1466
  onClick: n,
1467
- style: { background: "none", border: "none", padding: 0, fontSize: 15, fontWeight: 600, lineHeight: "22px", color: He, cursor: "pointer", fontFamily: R, textDecoration: "underline" },
1467
+ style: { background: "none", border: "none", padding: 0, fontSize: 15, fontWeight: 600, lineHeight: "22px", color: Ke, cursor: "pointer", fontFamily: D, textDecoration: "underline" },
1468
1468
  children: t
1469
1469
  }
1470
1470
  )
1471
1471
  ] });
1472
1472
  }
1473
1473
  function Se({ onTerms: e, onPrivacyPolicy: t, paddingTop: n }) {
1474
- return /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "center", width: "100%", marginTop: "auto", paddingTop: n || 40, flexShrink: 0 }, children: /* @__PURE__ */ x("span", { style: { fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: R, textAlign: "center", whiteSpace: "nowrap" }, children: [
1474
+ return /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "center", width: "100%", marginTop: "auto", paddingTop: n || 40, flexShrink: 0 }, children: /* @__PURE__ */ x("span", { style: { fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: D, textAlign: "center", whiteSpace: "nowrap" }, children: [
1475
1475
  "By continuing, you agree to our",
1476
1476
  " ",
1477
1477
  /* @__PURE__ */ p(
@@ -1480,7 +1480,7 @@ function Se({ onTerms: e, onPrivacyPolicy: t, paddingTop: n }) {
1480
1480
  href: "https://pages.chordia.ai/terms-of-use/",
1481
1481
  target: "_blank",
1482
1482
  rel: "noopener noreferrer",
1483
- style: { fontSize: 15, fontWeight: 400, color: "var(--color-text)", fontFamily: R, textDecoration: "underline", textUnderlineOffset: 2 },
1483
+ style: { fontSize: 15, fontWeight: 400, color: "var(--color-text)", fontFamily: D, textDecoration: "underline", textUnderlineOffset: 2 },
1484
1484
  children: "Terms"
1485
1485
  }
1486
1486
  ),
@@ -1493,16 +1493,16 @@ function Se({ onTerms: e, onPrivacyPolicy: t, paddingTop: n }) {
1493
1493
  href: "https://pages.chordia.ai/privacy-notice/",
1494
1494
  target: "_blank",
1495
1495
  rel: "noopener noreferrer",
1496
- style: { fontSize: 15, fontWeight: 400, color: "var(--color-text)", fontFamily: R, textDecoration: "underline", textUnderlineOffset: 2 },
1496
+ style: { fontSize: 15, fontWeight: 400, color: "var(--color-text)", fontFamily: D, textDecoration: "underline", textUnderlineOffset: 2 },
1497
1497
  children: "Privacy Policy"
1498
1498
  }
1499
1499
  ),
1500
1500
  "."
1501
1501
  ] }) });
1502
1502
  }
1503
- function Ki({ projectId: e, onSuccess: t, onError: n }) {
1504
- return e ? /* @__PURE__ */ p(Pi, { projectId: e, children: /* @__PURE__ */ p(
1505
- zi,
1503
+ function Vi({ projectId: e, onSuccess: t, onError: n }) {
1504
+ return e ? /* @__PURE__ */ p(Fi, { projectId: e, children: /* @__PURE__ */ p(
1505
+ Hi,
1506
1506
  {
1507
1507
  flowId: "sign-up-or-in-otp-or-social",
1508
1508
  onSuccess: t,
@@ -1510,7 +1510,7 @@ function Ki({ projectId: e, onSuccess: t, onError: n }) {
1510
1510
  }
1511
1511
  ) }) : null;
1512
1512
  }
1513
- function na({
1513
+ function ra({
1514
1514
  onLogin: e,
1515
1515
  onForgotPassword: t,
1516
1516
  onOneTimeCode: n,
@@ -1529,10 +1529,10 @@ function na({
1529
1529
  codeError: f,
1530
1530
  defaultView: b = "signin"
1531
1531
  }) {
1532
- var cn, dn;
1533
- const [O, U] = D(""), [A, L] = D(""), [J, q] = D(!1), [H, V] = D(!1), [K, Y] = D(!1), [F, Q] = D(!1), [X, ee] = D(null), [N, z] = D(b), [M, ye] = D(""), [he, Ue] = D(""), [be, te] = D(""), [I, Ae] = D(["", "", "", "", "", ""]), Pe = Oe([]), [dt, uo] = D(""), [ut, po] = D(""), [We, go] = D(""), [pt, ho] = D(""), [Xt, fo] = D(""), [gt, vo] = D(!1), [ht, mo] = D(!1), [ft, wo] = D(""), [Gt, Zt] = D(0), _t = 3;
1532
+ var un, pn;
1533
+ const [O, U] = E(""), [A, L] = E(""), [J, q] = E(!1), [K, V] = E(!1), [H, Y] = E(!1), [F, Q] = E(!1), [X, ee] = E(null), [N, z] = E(b), [M, ye] = E(""), [he, Ue] = E(""), [be, te] = E(""), [I, Ae] = E(["", "", "", "", "", ""]), Pe = Oe([]), [pt, go] = E(""), [gt, ho] = E(""), [We, fo] = E(""), [Ye, vo] = E(""), [ht, mo] = E(""), [ft, wo] = E(!1), [vt, yo] = E(!1), [Zt, $e] = E(""), [mt, bo] = E(""), [_t, en] = E(0), tn = 3;
1534
1534
  ce(() => {
1535
- const h = setInterval(() => Zt((k) => (k + 1) % _t), 4e3);
1535
+ const h = setInterval(() => en((k) => (k + 1) % tn), 4e3);
1536
1536
  return () => clearInterval(h);
1537
1537
  }, []);
1538
1538
  const ke = Oe(null), Ie = Oe(null);
@@ -1546,8 +1546,8 @@ function na({
1546
1546
  return !1;
1547
1547
  }
1548
1548
  }, k = () => {
1549
- const Z = ke.current, $e = Ie.current;
1550
- Z && Z.value && U(Z.value), $e && $e.value && L($e.value), q(h(Z)), V(h($e));
1549
+ const Z = ke.current, Xe = Ie.current;
1550
+ Z && Z.value && U(Z.value), Xe && Xe.value && L(Xe.value), q(h(Z)), V(h(Xe));
1551
1551
  }, C = [100, 300, 600, 1e3, 2e3].map((Z) => setTimeout(k, Z)), P = (Z) => {
1552
1552
  (Z.animationName === "onAutoFillStart" || Z.target.matches(":-webkit-autofill")) && setTimeout(k, 50);
1553
1553
  }, T = ke.current, j = Ie.current;
@@ -1576,11 +1576,11 @@ function na({
1576
1576
  }, [O, A]), ce(() => {
1577
1577
  f && N === "verifycode" && (Ae(["", "", "", "", "", ""]), z("getcodewithname"));
1578
1578
  }, [f]);
1579
- const en = y ?? F, fe = v ?? X, yo = (O || ((cn = ke.current) == null ? void 0 : cn.value) || "").trim(), bo = A || ((dn = Ie.current) == null ? void 0 : dn.value) || "", tn = !!(!!(yo || J) && !!(bo || H) && !en), Ye = N === "verifycode" || N === "getcodewithname" ? fe : null, nn = (h) => {
1579
+ const nn = y ?? F, fe = v ?? X, ko = (O || ((un = ke.current) == null ? void 0 : un.value) || "").trim(), Io = A || ((pn = Ie.current) == null ? void 0 : pn.value) || "", on = !!(!!(ko || J) && !!(Io || K) && !nn), Qe = N === "verifycode" || N === "getcodewithname" ? fe : null, rn = (h) => {
1580
1580
  h.target.style.borderColor = fe ? "var(--color-text)" : "var(--color-green)", h.target.style.boxShadow = fe ? "none" : "0 0 0 3px var(--color-green-ring)";
1581
- }, on = (h) => {
1581
+ }, an = (h) => {
1582
1582
  h.target.style.borderColor = fe ? "var(--color-text)" : "var(--color-input-border)", h.target.style.boxShadow = "none";
1583
- }, rn = (h, k) => {
1583
+ }, sn = (h, k) => {
1584
1584
  var le;
1585
1585
  const C = (k || "").replace(/\D/g, "");
1586
1586
  if (!C)
@@ -1592,26 +1592,26 @@ function na({
1592
1592
  Ae(P);
1593
1593
  const j = Math.min(T + 1, P.length - 1);
1594
1594
  (le = Pe.current[j]) == null || le.focus();
1595
- }, an = (h, k) => {
1595
+ }, ln = (h, k) => {
1596
1596
  var j;
1597
1597
  const C = k.replace(/\D/g, "");
1598
1598
  if (C.length > 1) {
1599
- rn(h, C);
1599
+ sn(h, C);
1600
1600
  return;
1601
1601
  }
1602
1602
  const P = C.slice(-1), T = [...I];
1603
1603
  T[h] = P, Ae(T), P && h < 5 && ((j = Pe.current[h + 1]) == null || j.focus());
1604
- }, sn = (h, k) => {
1604
+ }, cn = (h, k) => {
1605
1605
  var C;
1606
1606
  k.key === "Backspace" && !I[h] && h > 0 && ((C = Pe.current[h - 1]) == null || C.focus());
1607
- }, ln = (h, k) => {
1607
+ }, dn = (h, k) => {
1608
1608
  var P;
1609
1609
  k.preventDefault();
1610
1610
  const C = ((P = k.clipboardData) == null ? void 0 : P.getData("text")) || "";
1611
- rn(h, C);
1612
- }, ko = async (h) => {
1611
+ sn(h, C);
1612
+ }, xo = async (h) => {
1613
1613
  var P, T;
1614
- if (h.preventDefault(), !tn)
1614
+ if (h.preventDefault(), !on)
1615
1615
  return;
1616
1616
  const k = O || ((P = ke.current) == null ? void 0 : P.value) || "", C = A || ((T = Ie.current) == null ? void 0 : T.value) || "";
1617
1617
  if (!(!k || !C)) {
@@ -1625,7 +1625,7 @@ function na({
1625
1625
  }
1626
1626
  }
1627
1627
  };
1628
- return /* @__PURE__ */ x("div", { style: { position: "fixed", inset: 0, display: "flex", overflow: "hidden", fontFamily: R, background: "white" }, children: [
1628
+ return /* @__PURE__ */ x("div", { style: { position: "fixed", inset: 0, display: "flex", overflow: "hidden", fontFamily: D, background: "white" }, children: [
1629
1629
  /* @__PURE__ */ x("div", { style: {
1630
1630
  flex: "0 0 628px",
1631
1631
  width: 628,
@@ -1637,7 +1637,7 @@ function na({
1637
1637
  position: "relative",
1638
1638
  overflow: "hidden"
1639
1639
  }, children: [
1640
- /* @__PURE__ */ p("img", { src: Ji, alt: "Chordia", style: {
1640
+ /* @__PURE__ */ p("img", { src: Ki, alt: "Chordia", style: {
1641
1641
  width: 175,
1642
1642
  height: 48,
1643
1643
  objectFit: "contain",
@@ -1646,7 +1646,7 @@ function na({
1646
1646
  } }),
1647
1647
  /* @__PURE__ */ x("div", { style: { flex: 1, display: "flex", flexDirection: "column", justifyContent: "flex-start", gap: 22 }, children: [
1648
1648
  /* @__PURE__ */ p("h1", { style: {
1649
- fontFamily: R,
1649
+ fontFamily: D,
1650
1650
  fontSize: "clamp(28px, 2.8vw, 28px)",
1651
1651
  fontWeight: 800,
1652
1652
  color: "var(--color-text-inverse)",
@@ -1660,21 +1660,21 @@ function na({
1660
1660
  display: "flex",
1661
1661
  gap: 16,
1662
1662
  height: "100%",
1663
- transform: `translateX(${-Gt * 280}px)`,
1663
+ transform: `translateX(${-_t * 280}px)`,
1664
1664
  transition: "transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)"
1665
1665
  }, children: [
1666
1666
  {
1667
- Icon: So,
1667
+ Icon: Oo,
1668
1668
  title: "Evaluation Quality Monitoring",
1669
1669
  info: "Stop sampling 2% of calls and hoping for the best. Chordia analyzes every conversation for quality, compliance, and coaching signals — with evidence, not opinions."
1670
1670
  },
1671
1671
  {
1672
- Icon: Co,
1672
+ Icon: Uo,
1673
1673
  title: "Compliance Monitoring",
1674
1674
  info: "Continuously monitor customer service conversations for missed disclosures, risky language, and compliance gaps."
1675
1675
  },
1676
1676
  {
1677
- Icon: Oo,
1677
+ Icon: Ao,
1678
1678
  title: "Signal Intelligence",
1679
1679
  info: "Identify emerging themes, sentiment shifts, and customer issues hidden inside everyday service conversations."
1680
1680
  }
@@ -1695,7 +1695,7 @@ function na({
1695
1695
  /* @__PURE__ */ p(h, { width: 36, height: 36, color: "var(--color-card-icon)", strokeWidth: 2.5 }),
1696
1696
  /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
1697
1697
  /* @__PURE__ */ p("span", { style: {
1698
- fontFamily: R,
1698
+ fontFamily: D,
1699
1699
  fontSize: 24,
1700
1700
  fontStyle: "normal",
1701
1701
  fontWeight: 600,
@@ -1703,7 +1703,7 @@ function na({
1703
1703
  color: "var(--color-card-text)"
1704
1704
  }, children: k }),
1705
1705
  /* @__PURE__ */ p("span", { style: {
1706
- fontFamily: R,
1706
+ fontFamily: D,
1707
1707
  fontSize: 12,
1708
1708
  fontStyle: "normal",
1709
1709
  fontWeight: 400,
@@ -1722,10 +1722,10 @@ function na({
1722
1722
  pointerEvents: "none"
1723
1723
  } })
1724
1724
  ] }),
1725
- /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: 8, height: 4, marginTop: "auto", flexShrink: 0 }, children: Array.from({ length: _t }).map((h, k) => /* @__PURE__ */ p(
1725
+ /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: 8, height: 4, marginTop: "auto", flexShrink: 0 }, children: Array.from({ length: tn }).map((h, k) => /* @__PURE__ */ p(
1726
1726
  "button",
1727
1727
  {
1728
- onClick: () => Zt(k),
1728
+ onClick: () => en(k),
1729
1729
  style: {
1730
1730
  width: 80,
1731
1731
  height: 4,
@@ -1733,7 +1733,7 @@ function na({
1733
1733
  border: "none",
1734
1734
  padding: 0,
1735
1735
  cursor: "pointer",
1736
- background: k === Gt ? "rgba(255,255,255,0.7)" : "rgba(255,255,255,0.25)",
1736
+ background: k === _t ? "rgba(255,255,255,0.7)" : "rgba(255,255,255,0.25)",
1737
1737
  transition: "background 0.3s ease"
1738
1738
  }
1739
1739
  },
@@ -1763,8 +1763,8 @@ function na({
1763
1763
  "input",
1764
1764
  {
1765
1765
  type: "text",
1766
- value: dt,
1767
- onChange: (h) => uo(h.target.value),
1766
+ value: pt,
1767
+ onChange: (h) => go(h.target.value),
1768
1768
  placeholder: "First name",
1769
1769
  autoFocus: !0,
1770
1770
  autoComplete: "given-name",
@@ -1777,8 +1777,8 @@ function na({
1777
1777
  "input",
1778
1778
  {
1779
1779
  type: "text",
1780
- value: ut,
1781
- onChange: (h) => po(h.target.value),
1780
+ value: gt,
1781
+ onChange: (h) => ho(h.target.value),
1782
1782
  placeholder: "Last name",
1783
1783
  autoComplete: "family-name",
1784
1784
  style: oe,
@@ -1792,7 +1792,7 @@ function na({
1792
1792
  {
1793
1793
  type: "email",
1794
1794
  value: We,
1795
- onChange: (h) => go(h.target.value),
1795
+ onChange: (h) => fo(h.target.value),
1796
1796
  placeholder: "workemail@example.com",
1797
1797
  autoComplete: "email",
1798
1798
  style: oe,
@@ -1804,9 +1804,11 @@ function na({
1804
1804
  /* @__PURE__ */ p(
1805
1805
  "input",
1806
1806
  {
1807
- type: gt ? "text" : "password",
1808
- value: pt,
1809
- onChange: (h) => ho(h.target.value),
1807
+ type: ft ? "text" : "password",
1808
+ value: Ye,
1809
+ onChange: (h) => {
1810
+ vo(h.target.value), $e("");
1811
+ },
1810
1812
  placeholder: "Enter password",
1811
1813
  autoComplete: "new-password",
1812
1814
  style: { ...oe, padding: "10px 44px 10px 14px" },
@@ -1814,15 +1816,17 @@ function na({
1814
1816
  onBlur: ie
1815
1817
  }
1816
1818
  ),
1817
- /* @__PURE__ */ p(Ot, { show: gt, onToggle: () => vo(!gt) })
1819
+ /* @__PURE__ */ p(At, { show: ft, onToggle: () => wo(!ft) })
1818
1820
  ] }) }),
1819
1821
  /* @__PURE__ */ p(G, { label: "Confirm Password", gap: 8, children: /* @__PURE__ */ x("div", { style: { position: "relative" }, children: [
1820
1822
  /* @__PURE__ */ p(
1821
1823
  "input",
1822
1824
  {
1823
- type: ht ? "text" : "password",
1824
- value: Xt,
1825
- onChange: (h) => fo(h.target.value),
1825
+ type: vt ? "text" : "password",
1826
+ value: ht,
1827
+ onChange: (h) => {
1828
+ mo(h.target.value), $e("");
1829
+ },
1826
1830
  placeholder: "Enter password",
1827
1831
  autoComplete: "new-password",
1828
1832
  style: { ...oe, padding: "10px 44px 10px 14px" },
@@ -1830,11 +1834,19 @@ function na({
1830
1834
  onBlur: ie
1831
1835
  }
1832
1836
  ),
1833
- /* @__PURE__ */ p(Ot, { show: ht, onToggle: () => mo(!ht) })
1837
+ /* @__PURE__ */ p(At, { show: vt, onToggle: () => yo(!vt) })
1834
1838
  ] }) }),
1839
+ Zt && /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", padding: 8, gap: 6, width: "100%", boxSizing: "border-box", background: "var(--color-error-bg)", borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: D }, children: [
1840
+ /* @__PURE__ */ p("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "var(--color-text)", style: { flexShrink: 0 }, children: /* @__PURE__ */ p("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }),
1841
+ Zt
1842
+ ] }),
1835
1843
  (() => /* @__PURE__ */ p(xe, { onClick: () => {
1836
- i == null || i({ firstName: dt, lastName: ut, email: We, password: pt }), z("verifyemail");
1837
- }, disabled: !(dt && ut && We && pt && Xt), children: "Create Account" }))(),
1844
+ if ($e(""), Ye !== ht) {
1845
+ $e("Password and Confirm Password do not match!");
1846
+ return;
1847
+ }
1848
+ i == null || i({ firstName: pt, lastName: gt, email: We, password: Ye }), z("verifyemail");
1849
+ }, disabled: !(pt && gt && We && Ye && ht), children: "Create Account" }))(),
1838
1850
  /* @__PURE__ */ p(Ee, { text: "I am already a member", linkText: "Sign In", onClick: () => {
1839
1851
  z("signin"), g == null || g();
1840
1852
  } }),
@@ -1845,15 +1857,15 @@ function na({
1845
1857
  /* ── Verify Email ── */
1846
1858
  /* @__PURE__ */ x(Te, { children: [
1847
1859
  /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
1848
- /* @__PURE__ */ p("h2", { style: { fontFamily: R, fontWeight: 600, fontSize: "36px", lineHeight: "52px", color: "var(--color-text)", margin: 0 }, children: "Verify Email" }),
1849
- /* @__PURE__ */ p("p", { style: { fontFamily: R, fontSize: 18, fontWeight: 400, lineHeight: "26px", color: "var(--color-text-secondary)", margin: 0 }, children: "Verify your email to continue the signup process." })
1860
+ /* @__PURE__ */ p("h2", { style: { fontFamily: D, fontWeight: 600, fontSize: "36px", lineHeight: "52px", color: "var(--color-text)", margin: 0 }, children: "Verify Email" }),
1861
+ /* @__PURE__ */ p("p", { style: { fontFamily: D, fontSize: 18, fontWeight: 400, lineHeight: "26px", color: "var(--color-text-secondary)", margin: 0 }, children: "Verify your email to continue the signup process." })
1850
1862
  ] }),
1851
1863
  /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", width: "100%", gap: 24 }, children: [
1852
1864
  /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
1853
- /* @__PURE__ */ p("p", { style: { fontFamily: R, fontSize: 18, fontWeight: 400, lineHeight: "24px", color: "var(--color-text-secondary)", margin: 0 }, children: "We have sent a verification link to:" }),
1854
- /* @__PURE__ */ p("p", { style: { fontFamily: R, fontSize: 18, fontWeight: 600, lineHeight: "24px", color: "var(--color-text)", margin: 0 }, children: We || "youremail@workemail.com" })
1865
+ /* @__PURE__ */ p("p", { style: { fontFamily: D, fontSize: 18, fontWeight: 400, lineHeight: "24px", color: "var(--color-text-secondary)", margin: 0 }, children: "We have sent a verification link to:" }),
1866
+ /* @__PURE__ */ p("p", { style: { fontFamily: D, fontSize: 18, fontWeight: 600, lineHeight: "24px", color: "var(--color-text)", margin: 0 }, children: We || "youremail@workemail.com" })
1855
1867
  ] }),
1856
- /* @__PURE__ */ p("p", { style: { fontFamily: R, fontSize: 18, fontWeight: 400, lineHeight: "24px", color: "var(--color-text-secondary)", margin: 0 }, children: "Click on the link to complete the verification process. You might need to check your Spam folder" }),
1868
+ /* @__PURE__ */ p("p", { style: { fontFamily: D, fontSize: 18, fontWeight: 400, lineHeight: "24px", color: "var(--color-text-secondary)", margin: 0 }, children: "Click on the link to complete the verification process. You might need to check your Spam folder" }),
1857
1869
  /* @__PURE__ */ p(xe, { onClick: () => {
1858
1870
  z("signin"), g == null || g();
1859
1871
  }, children: "Go To Login" })
@@ -1864,8 +1876,8 @@ function na({
1864
1876
  /* ── Verify Code ── */
1865
1877
  /* @__PURE__ */ x(Te, { children: [
1866
1878
  /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
1867
- /* @__PURE__ */ p("h2", { style: { fontFamily: R, fontWeight: 600, fontSize: "36px", lineHeight: "52px", color: "var(--color-text)", margin: 0 }, children: "Sign In with code" }),
1868
- /* @__PURE__ */ x("p", { style: { fontFamily: R, fontSize: 18, fontWeight: 400, lineHeight: "26px", color: "var(--color-text-secondary)", margin: 0 }, children: [
1879
+ /* @__PURE__ */ p("h2", { style: { fontFamily: D, fontWeight: 600, fontSize: "36px", lineHeight: "52px", color: "var(--color-text)", margin: 0 }, children: "Sign In with code" }),
1880
+ /* @__PURE__ */ x("p", { style: { fontFamily: D, fontSize: 18, fontWeight: 400, lineHeight: "26px", color: "var(--color-text-secondary)", margin: 0 }, children: [
1869
1881
  "We have sent a one-time code to your email:",
1870
1882
  " ",
1871
1883
  /* @__PURE__ */ p("span", { style: { color: "var(--color-text)" }, children: be || "workemail@example.com" }),
@@ -1875,7 +1887,7 @@ function na({
1875
1887
  {
1876
1888
  type: "button",
1877
1889
  onClick: () => z("getcode"),
1878
- style: { background: "none", border: "none", padding: 0, fontSize: 18, fontWeight: 400, color: He, cursor: "pointer", fontFamily: R, textDecoration: "underline" },
1890
+ style: { background: "none", border: "none", padding: 0, fontSize: 18, fontWeight: 400, color: Ke, cursor: "pointer", fontFamily: D, textDecoration: "underline" },
1879
1891
  children: "Change email"
1880
1892
  }
1881
1893
  )
@@ -1892,9 +1904,9 @@ function na({
1892
1904
  inputMode: "numeric",
1893
1905
  maxLength: 1,
1894
1906
  value: h,
1895
- onChange: (C) => an(k, C.target.value),
1896
- onKeyDown: (C) => sn(k, C),
1897
- onPaste: (C) => ln(k, C),
1907
+ onChange: (C) => ln(k, C.target.value),
1908
+ onKeyDown: (C) => cn(k, C),
1909
+ onPaste: (C) => dn(k, C),
1898
1910
  autoFocus: k === 0,
1899
1911
  style: {
1900
1912
  flex: 1,
@@ -1903,7 +1915,7 @@ function na({
1903
1915
  textAlign: "center",
1904
1916
  fontSize: 16,
1905
1917
  fontWeight: 600,
1906
- fontFamily: R,
1918
+ fontFamily: D,
1907
1919
  color: "var(--color-text)",
1908
1920
  border: "1px solid var(--color-input-border)",
1909
1921
  borderRadius: 4,
@@ -1911,7 +1923,7 @@ function na({
1911
1923
  background: "white",
1912
1924
  boxSizing: "border-box",
1913
1925
  transition: "border-color 0.15s, box-shadow 0.15s",
1914
- caretColor: He
1926
+ caretColor: Ke
1915
1927
  },
1916
1928
  onFocus: re,
1917
1929
  onBlur: ie
@@ -1919,9 +1931,9 @@ function na({
1919
1931
  k
1920
1932
  )) }) }),
1921
1933
  /* @__PURE__ */ p(xe, { onClick: () => o == null ? void 0 : o(be, I.join("")), disabled: I.some((h) => !h), children: "Verify Code" }),
1922
- Ye && /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", padding: 8, gap: 6, width: "100%", boxSizing: "border-box", background: "var(--color-error-bg)", borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: R }, children: [
1934
+ Qe && /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", padding: 8, gap: 6, width: "100%", boxSizing: "border-box", background: "var(--color-error-bg)", borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: D }, children: [
1923
1935
  /* @__PURE__ */ p("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "var(--color-text)", style: { flexShrink: 0 }, children: /* @__PURE__ */ p("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }),
1924
- Ye
1936
+ Qe
1925
1937
  ] }),
1926
1938
  /* @__PURE__ */ p(ze, {}),
1927
1939
  /* @__PURE__ */ p(Ee, { text: "Not received yet?", linkText: "Resend", onClick: () => r == null ? void 0 : r(be) }),
@@ -1998,9 +2010,9 @@ function na({
1998
2010
  inputMode: "numeric",
1999
2011
  maxLength: 1,
2000
2012
  value: h,
2001
- onChange: (C) => an(k, C.target.value),
2002
- onKeyDown: (C) => sn(k, C),
2003
- onPaste: (C) => ln(k, C),
2013
+ onChange: (C) => ln(k, C.target.value),
2014
+ onKeyDown: (C) => cn(k, C),
2015
+ onPaste: (C) => dn(k, C),
2004
2016
  autoFocus: k === 0,
2005
2017
  style: {
2006
2018
  flex: 1,
@@ -2009,7 +2021,7 @@ function na({
2009
2021
  textAlign: "center",
2010
2022
  fontSize: 16,
2011
2023
  fontWeight: 600,
2012
- fontFamily: R,
2024
+ fontFamily: D,
2013
2025
  color: "var(--color-text)",
2014
2026
  border: "1px solid var(--color-input-border)",
2015
2027
  borderRadius: 4,
@@ -2017,7 +2029,7 @@ function na({
2017
2029
  background: "white",
2018
2030
  boxSizing: "border-box",
2019
2031
  transition: "border-color 0.15s, box-shadow 0.15s",
2020
- caretColor: He
2032
+ caretColor: Ke
2021
2033
  },
2022
2034
  onFocus: re,
2023
2035
  onBlur: ie
@@ -2027,9 +2039,9 @@ function na({
2027
2039
  /* @__PURE__ */ p(xe, { onClick: () => {
2028
2040
  te(M), n == null || n(M, he, I.join(""));
2029
2041
  }, disabled: !M || !he || I.some((h) => !h), children: "Verify & Sign In" }),
2030
- Ye && /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", padding: 8, gap: 6, width: "100%", boxSizing: "border-box", background: "var(--color-error-bg)", borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: R }, children: [
2042
+ Qe && /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", padding: 8, gap: 6, width: "100%", boxSizing: "border-box", background: "var(--color-error-bg)", borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: D }, children: [
2031
2043
  /* @__PURE__ */ p("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "var(--color-text)", style: { flexShrink: 0 }, children: /* @__PURE__ */ p("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }),
2032
- Ye
2044
+ Qe
2033
2045
  ] }),
2034
2046
  /* @__PURE__ */ p(ze, {}),
2035
2047
  /* @__PURE__ */ p(Ee, { text: "I have my password", linkText: "Back to Sign in", onClick: () => {
@@ -2047,8 +2059,8 @@ function na({
2047
2059
  "input",
2048
2060
  {
2049
2061
  type: "email",
2050
- value: ft,
2051
- onChange: (h) => wo(h.target.value),
2062
+ value: mt,
2063
+ onChange: (h) => bo(h.target.value),
2052
2064
  placeholder: "workemail@example.com",
2053
2065
  autoFocus: !0,
2054
2066
  autoComplete: "email",
@@ -2057,7 +2069,7 @@ function na({
2057
2069
  onBlur: ie
2058
2070
  }
2059
2071
  ) }),
2060
- /* @__PURE__ */ p(xe, { onClick: () => a == null ? void 0 : a(ft), disabled: !ft, children: "Send Reset Link" }),
2072
+ /* @__PURE__ */ p(xe, { onClick: () => a == null ? void 0 : a(mt), disabled: !mt, children: "Send Reset Link" }),
2061
2073
  /* @__PURE__ */ p(ze, {}),
2062
2074
  /* @__PURE__ */ p(Ee, { text: "I have my password", linkText: "Back to Sign in", onClick: () => {
2063
2075
  z("signin"), g == null || g();
@@ -2071,7 +2083,7 @@ function na({
2071
2083
  /* @__PURE__ */ p(qe, { title: "Sign in", subtitle: "Enter your email & password to continue" }),
2072
2084
  /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", width: "100%", gap: 8 }, children: [
2073
2085
  /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", width: "100%", gap: 16 }, children: [
2074
- /* @__PURE__ */ x("form", { onSubmit: ko, style: { width: "100%", display: "flex", flexDirection: "column", gap: 16 }, children: [
2086
+ /* @__PURE__ */ x("form", { onSubmit: xo, style: { width: "100%", display: "flex", flexDirection: "column", gap: 16 }, children: [
2075
2087
  /* @__PURE__ */ p(G, { label: "Email", gap: 12, children: /* @__PURE__ */ p(
2076
2088
  "input",
2077
2089
  {
@@ -2083,8 +2095,8 @@ function na({
2083
2095
  required: !0,
2084
2096
  autoComplete: "email",
2085
2097
  style: { ...oe, border: `1px solid ${fe ? "var(--color-text)" : "var(--color-input-border)"}` },
2086
- onFocus: nn,
2087
- onBlur: on
2098
+ onFocus: rn,
2099
+ onBlur: an
2088
2100
  }
2089
2101
  ) }),
2090
2102
  /* @__PURE__ */ p(G, { label: "Password", gap: 12, children: /* @__PURE__ */ x("div", { style: { position: "relative" }, children: [
@@ -2092,22 +2104,22 @@ function na({
2092
2104
  "input",
2093
2105
  {
2094
2106
  ref: Ie,
2095
- type: K ? "text" : "password",
2107
+ type: H ? "text" : "password",
2096
2108
  value: A,
2097
2109
  onChange: (h) => L(h.target.value),
2098
2110
  placeholder: "Enter password",
2099
2111
  required: !0,
2100
2112
  autoComplete: "current-password",
2101
2113
  style: { ...oe, padding: "10px 44px 10px 16px", border: `1px solid ${fe ? "var(--color-text)" : "var(--color-input-border)"}` },
2102
- onFocus: nn,
2103
- onBlur: on
2114
+ onFocus: rn,
2115
+ onBlur: an
2104
2116
  }
2105
2117
  ),
2106
- /* @__PURE__ */ p(Ot, { show: K, onToggle: () => Y(!K) })
2118
+ /* @__PURE__ */ p(At, { show: H, onToggle: () => Y(!H) })
2107
2119
  ] }) }),
2108
- /* @__PURE__ */ p(xe, { type: "submit", disabled: !tn, children: en ? "Signing in…" : "Sign In" })
2120
+ /* @__PURE__ */ p(xe, { type: "submit", disabled: !on, children: nn ? "Signing in…" : "Sign In" })
2109
2121
  ] }),
2110
- fe && /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", padding: 8, gap: 6, width: "100%", boxSizing: "border-box", background: "var(--color-error-bg)", borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: R }, children: [
2122
+ fe && /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", padding: 8, gap: 6, width: "100%", boxSizing: "border-box", background: "var(--color-error-bg)", borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text)", fontFamily: D }, children: [
2111
2123
  /* @__PURE__ */ p("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "var(--color-text)", style: { flexShrink: 0 }, children: /* @__PURE__ */ p("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }),
2112
2124
  fe
2113
2125
  ] }),
@@ -2119,7 +2131,7 @@ function na({
2119
2131
  onClick: () => {
2120
2132
  z("resetpassword"), t == null || t();
2121
2133
  },
2122
- style: { background: "none", border: "none", padding: 0, fontSize: 15, fontWeight: 400, lineHeight: "100%", color: "var(--color-text)", cursor: "pointer", fontFamily: R, textDecoration: "underline" },
2134
+ style: { background: "none", border: "none", padding: 0, fontSize: 15, fontWeight: 400, lineHeight: "100%", color: "var(--color-text)", cursor: "pointer", fontFamily: D, textDecoration: "underline" },
2123
2135
  children: "Forgot Password?"
2124
2136
  }
2125
2137
  ),
@@ -2130,14 +2142,14 @@ function na({
2130
2142
  onClick: () => {
2131
2143
  z("getcode"), n == null || n();
2132
2144
  },
2133
- style: { background: "none", border: "none", padding: 0, fontSize: 15, fontWeight: 600, lineHeight: "100%", color: He, cursor: "pointer", fontFamily: R, textDecoration: "underline solid", textUnderlineOffset: 0, textDecorationSkipInk: "none" },
2145
+ style: { background: "none", border: "none", padding: 0, fontSize: 15, fontWeight: 600, lineHeight: "100%", color: Ke, cursor: "pointer", fontFamily: D, textDecoration: "underline solid", textUnderlineOffset: 0, textDecorationSkipInk: "none" },
2134
2146
  children: "Sign in with one-time code"
2135
2147
  }
2136
2148
  )
2137
2149
  ] }),
2138
2150
  /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", width: "100%", gap: 2 }, children: [
2139
2151
  /* @__PURE__ */ p(ze, {}),
2140
- /* @__PURE__ */ p(Ki, { projectId: u, onSuccess: c, onError: d })
2152
+ /* @__PURE__ */ p(Vi, { projectId: u, onSuccess: c, onError: d })
2141
2153
  ] })
2142
2154
  ] }),
2143
2155
  /* @__PURE__ */ p(Ee, { text: "Not a member yet?", linkText: "Sign Up", onClick: () => {
@@ -2150,16 +2162,16 @@ function na({
2150
2162
  ] });
2151
2163
  }
2152
2164
  export {
2153
- Ei as $,
2154
- na as L,
2155
- wi as W,
2156
- Zi as X,
2157
- Xi as _,
2158
- Gi as a,
2159
- Qi as b,
2165
+ Ri as $,
2166
+ ra as L,
2167
+ bi as W,
2168
+ ea as X,
2169
+ Zi as _,
2170
+ _i as a,
2171
+ Gi as b,
2160
2172
  B as c,
2161
- ta as h,
2162
- _i as r,
2163
- ea as s
2173
+ oa as h,
2174
+ ta as r,
2175
+ na as s
2164
2176
  };
2165
2177
  //# sourceMappingURL=index.es2.js.map