@hotosm/hanko-auth 0.4.4 → 0.4.5

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.
@@ -45,7 +45,7 @@ const zi = (n) => new si(typeof n == "string" ? n : n + "", void 0, Xn), Hi = (n
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Fi, defineProperty: Ki, getOwnPropertyDescriptor: Vi, getOwnPropertyNames: Bi, getOwnPropertySymbols: Zi, getPrototypeOf: Ji } = Object, st = globalThis, Ao = st.trustedTypes, Yi = Ao ? Ao.emptyScript : "", Dn = st.reactiveElementPolyfillSupport, Ut = (n, e) => n, gn = { toAttribute(n, e) {
48
+ const { is: Fi, defineProperty: Ki, getOwnPropertyDescriptor: Vi, getOwnPropertyNames: Bi, getOwnPropertySymbols: Zi, getPrototypeOf: Ji } = Object, st = globalThis, Ao = st.trustedTypes, Yi = Ao ? Ao.emptyScript : "", Dn = st.reactiveElementPolyfillSupport, Ut = (n, e) => n, fn = { toAttribute(n, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
51
  n = n ? Yi : null;
@@ -73,7 +73,7 @@ const { is: Fi, defineProperty: Ki, getOwnPropertyDescriptor: Vi, getOwnProperty
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, eo = (n, e) => !Fi(n, e), Co = { attribute: !0, type: String, converter: gn, reflect: !1, useDefault: !1, hasChanged: eo };
76
+ } }, eo = (n, e) => !Fi(n, e), Co = { attribute: !0, type: String, converter: fn, reflect: !1, useDefault: !1, hasChanged: eo };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), st.litPropertyMetadata ?? (st.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let pt = class extends HTMLElement {
79
79
  static addInitializer(e) {
@@ -184,7 +184,7 @@ let pt = class extends HTMLElement {
184
184
  var a;
185
185
  const o = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, o);
186
186
  if (i !== void 0 && o.reflect === !0) {
187
- const s = (((a = o.converter) == null ? void 0 : a.toAttribute) !== void 0 ? o.converter : gn).toAttribute(t, o.type);
187
+ const s = (((a = o.converter) == null ? void 0 : a.toAttribute) !== void 0 ? o.converter : fn).toAttribute(t, o.type);
188
188
  this._$Em = e, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
189
189
  }
190
190
  }
@@ -192,7 +192,7 @@ let pt = class extends HTMLElement {
192
192
  var a, s;
193
193
  const o = this.constructor, i = o._$Eh.get(e);
194
194
  if (i !== void 0 && this._$Em !== i) {
195
- const c = o.getPropertyOptions(i), d = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((a = c.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? c.converter : gn;
195
+ const c = o.getPropertyOptions(i), d = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((a = c.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? c.converter : fn;
196
196
  this._$Em = i;
197
197
  const l = d.fromAttribute(t, c.type);
198
198
  this[i] = l ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? l, this._$Em = null;
@@ -286,7 +286,7 @@ pt.elementStyles = [], pt.shadowRootOptions = { mode: "open" }, pt[Ut("elementPr
286
286
  */
287
287
  const Nt = globalThis, Oo = (n) => n, vn = Nt.trustedTypes, Po = vn ? vn.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, li = "$lit$", rt = `lit$${Math.random().toFixed(9).slice(2)}$`, ci = "?" + rt, Qi = `<${ci}>`, ht = document, Rt = () => ht.createComment(""), qt = (n) => n === null || typeof n != "object" && typeof n != "function", to = Array.isArray, Gi = (n) => to(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", jn = `[
288
288
  \f\r]`, yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Eo = /-->/g, Io = />/g, ct = RegExp(`>|${jn}(?:([^\\s"'>=/]+)(${jn}*=${jn}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Do = /'/g, jo = /"/g, di = /^(?:script|style|textarea|title)$/i, Xi = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), Ue = Xi(1), gt = Symbol.for("lit-noChange"), Le = Symbol.for("lit-nothing"), Lo = /* @__PURE__ */ new WeakMap(), dt = ht.createTreeWalker(ht, 129);
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Do = /'/g, jo = /"/g, di = /^(?:script|style|textarea|title)$/i, Xi = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), Ue = Xi(1), ft = Symbol.for("lit-noChange"), Le = Symbol.for("lit-nothing"), Lo = /* @__PURE__ */ new WeakMap(), dt = ht.createTreeWalker(ht, 129);
290
290
  function ui(n, e) {
291
291
  if (!to(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
292
  return Po !== void 0 ? Po.createHTML(e) : e;
@@ -296,8 +296,8 @@ const ea = (n, e) => {
296
296
  let i, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = yt;
297
297
  for (let c = 0; c < t; c++) {
298
298
  const d = n[c];
299
- let l, u, h = -1, g = 0;
300
- for (; g < d.length && (s.lastIndex = g, u = s.exec(d), u !== null); ) g = s.lastIndex, s === yt ? u[1] === "!--" ? s = Eo : u[1] !== void 0 ? s = Io : u[2] !== void 0 ? (di.test(u[2]) && (i = RegExp("</" + u[2], "g")), s = ct) : u[3] !== void 0 && (s = ct) : s === ct ? u[0] === ">" ? (s = i ?? yt, h = -1) : u[1] === void 0 ? h = -2 : (h = s.lastIndex - u[2].length, l = u[1], s = u[3] === void 0 ? ct : u[3] === '"' ? jo : Do) : s === jo || s === Do ? s = ct : s === Eo || s === Io ? s = yt : (s = ct, i = void 0);
299
+ let l, u, h = -1, f = 0;
300
+ for (; f < d.length && (s.lastIndex = f, u = s.exec(d), u !== null); ) f = s.lastIndex, s === yt ? u[1] === "!--" ? s = Eo : u[1] !== void 0 ? s = Io : u[2] !== void 0 ? (di.test(u[2]) && (i = RegExp("</" + u[2], "g")), s = ct) : u[3] !== void 0 && (s = ct) : s === ct ? u[0] === ">" ? (s = i ?? yt, h = -1) : u[1] === void 0 ? h = -2 : (h = s.lastIndex - u[2].length, l = u[1], s = u[3] === void 0 ? ct : u[3] === '"' ? jo : Do) : s === jo || s === Do ? s = ct : s === Eo || s === Io ? s = yt : (s = ct, i = void 0);
301
301
  const m = s === ct && n[c + 1].startsWith("/>") ? " " : "";
302
302
  a += s === yt ? d + Qi : h >= 0 ? (o.push(l), d.slice(0, h) + li + d.slice(h) + rt + m) : d + rt + (h === -2 ? c : m);
303
303
  }
@@ -316,15 +316,15 @@ let Bn = class hi {
316
316
  for (; (i = dt.nextNode()) !== null && d.length < c; ) {
317
317
  if (i.nodeType === 1) {
318
318
  if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(li)) {
319
- const g = u[s++], m = i.getAttribute(h).split(rt), x = /([.?@])?(.*)/.exec(g);
319
+ const f = u[s++], m = i.getAttribute(h).split(rt), x = /([.?@])?(.*)/.exec(f);
320
320
  d.push({ type: 1, index: a, name: x[2], strings: m, ctor: x[1] === "." ? na : x[1] === "?" ? oa : x[1] === "@" ? ia : kn }), i.removeAttribute(h);
321
321
  } else h.startsWith(rt) && (d.push({ type: 6, index: a }), i.removeAttribute(h));
322
322
  if (di.test(i.tagName)) {
323
- const h = i.textContent.split(rt), g = h.length - 1;
324
- if (g > 0) {
323
+ const h = i.textContent.split(rt), f = h.length - 1;
324
+ if (f > 0) {
325
325
  i.textContent = vn ? vn.emptyScript : "";
326
- for (let m = 0; m < g; m++) i.append(h[m], Rt()), dt.nextNode(), d.push({ type: 2, index: ++a });
327
- i.append(h[g], Rt());
326
+ for (let m = 0; m < f; m++) i.append(h[m], Rt()), dt.nextNode(), d.push({ type: 2, index: ++a });
327
+ i.append(h[f], Rt());
328
328
  }
329
329
  }
330
330
  } else if (i.nodeType === 8) if (i.data === ci) d.push({ type: 2, index: a });
@@ -342,7 +342,7 @@ let Bn = class hi {
342
342
  };
343
343
  function vt(n, e, t = n, o) {
344
344
  var s, c;
345
- if (e === gt) return e;
345
+ if (e === ft) return e;
346
346
  let i = o !== void 0 ? (s = t._$Co) == null ? void 0 : s[o] : t._$Cl;
347
347
  const a = qt(e) ? void 0 : e._$litDirective$;
348
348
  return (i == null ? void 0 : i.constructor) !== a && ((c = i == null ? void 0 : i._$AO) == null || c.call(i, !1), a === void 0 ? i = void 0 : (i = new a(n), i._$AT(n, t, o)), o !== void 0 ? (t._$Co ?? (t._$Co = []))[o] = i : t._$Cl = i), i !== void 0 && (e = vt(n, i._$AS(n, e.values), i, o)), e;
@@ -394,7 +394,7 @@ let ta = class {
394
394
  return this._$AB;
395
395
  }
396
396
  _$AI(e, t = this) {
397
- e = vt(this, e, t), qt(e) ? e === Le || e == null || e === "" ? (this._$AH !== Le && this._$AR(), this._$AH = Le) : e !== this._$AH && e !== gt && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Gi(e) ? this.k(e) : this._(e);
397
+ e = vt(this, e, t), qt(e) ? e === Le || e == null || e === "" ? (this._$AH !== Le && this._$AR(), this._$AH = Le) : e !== this._$AH && e !== ft && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Gi(e) ? this.k(e) : this._(e);
398
398
  }
399
399
  O(e) {
400
400
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -449,11 +449,11 @@ let ta = class {
449
449
  _$AI(e, t = this, o, i) {
450
450
  const a = this.strings;
451
451
  let s = !1;
452
- if (a === void 0) e = vt(this, e, t, 0), s = !qt(e) || e !== this._$AH && e !== gt, s && (this._$AH = e);
452
+ if (a === void 0) e = vt(this, e, t, 0), s = !qt(e) || e !== this._$AH && e !== ft, s && (this._$AH = e);
453
453
  else {
454
454
  const c = e;
455
455
  let d, l;
456
- for (e = a[0], d = 0; d < a.length - 1; d++) l = vt(this, c[o + d], t, d), l === gt && (l = this._$AH[d]), s || (s = !qt(l) || l !== this._$AH[d]), l === Le ? e = Le : e !== Le && (e += (l ?? "") + a[d + 1]), this._$AH[d] = l;
456
+ for (e = a[0], d = 0; d < a.length - 1; d++) l = vt(this, c[o + d], t, d), l === ft && (l = this._$AH[d]), s || (s = !qt(l) || l !== this._$AH[d]), l === Le ? e = Le : e !== Le && (e += (l ?? "") + a[d + 1]), this._$AH[d] = l;
457
457
  }
458
458
  s && !i && this.j(e);
459
459
  }
@@ -479,7 +479,7 @@ let ta = class {
479
479
  super(e, t, o, i, a), this.type = 5;
480
480
  }
481
481
  _$AI(e, t = this) {
482
- if ((e = vt(this, e, t, 0) ?? Le) === gt) return;
482
+ if ((e = vt(this, e, t, 0) ?? Le) === ft) return;
483
483
  const o = this._$AH, i = e === Le && o !== Le || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, a = e !== Le && (o === Le || i);
484
484
  i && this.element.removeEventListener(this.name, this, o), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
485
485
  }
@@ -537,7 +537,7 @@ let Mt = class extends pt {
537
537
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
538
538
  }
539
539
  render() {
540
- return gt;
540
+ return ft;
541
541
  }
542
542
  };
543
543
  var ri;
@@ -560,7 +560,7 @@ const sa = (n) => (e, t) => {
560
560
  * Copyright 2017 Google LLC
561
561
  * SPDX-License-Identifier: BSD-3-Clause
562
562
  */
563
- const la = { attribute: !0, type: String, converter: gn, reflect: !1, hasChanged: eo }, ca = (n = la, e, t) => {
563
+ const la = { attribute: !0, type: String, converter: fn, reflect: !1, hasChanged: eo }, ca = (n = la, e, t) => {
564
564
  const { kind: o, metadata: i } = t;
565
565
  let a = globalThis.litPropertyMetadata.get(i);
566
566
  if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), o === "setter" && ((n = Object.create(n)).wrapped = !0), a.set(t.name, n), o === "accessor") {
@@ -640,7 +640,7 @@ const ma = da(class extends ua {
640
640
  }
641
641
  });
642
642
  /*! For license information please see elements.js.LICENSE.txt */
643
- var fa = { 7: function(n, e, t) {
643
+ var ga = { 7: function(n, e, t) {
644
644
  (function(o, i, a) {
645
645
  var s = function() {
646
646
  return s = Object.assign || function(x) {
@@ -685,10 +685,10 @@ var fa = { 7: function(n, e, t) {
685
685
  } while (P.length);
686
686
  return S;
687
687
  }
688
- var h = {}, g = { root: "", lang: "en", fallbackLang: "en" }, m = i.createContext(null);
688
+ var h = {}, f = { root: "", lang: "en", fallbackLang: "en" }, m = i.createContext(null);
689
689
  o.TranslateContext = m, o.TranslateProvider = function(x) {
690
690
  var O = function(U, N) {
691
- U = Object.assign({}, g, U), h = N || h;
691
+ U = Object.assign({}, f, U), h = N || h;
692
692
  var ae = c(a.useState(U.lang), 2), be = ae[0], re = ae[1], we = c(a.useState(h), 2), M = we[0], H = we[1], _e = c(a.useState(!1), 2), Te = _e[0], Ee = _e[1], $e = function(se) {
693
693
  if (!M.hasOwnProperty(se)) {
694
694
  Ee(!1);
@@ -809,8 +809,8 @@ var fa = { 7: function(n, e, t) {
809
809
  u != null && (d[u] = !0);
810
810
  }
811
811
  for (var h = 0; h < o.length; h++) {
812
- var g = [].concat(o[h]);
813
- a && d[g[0]] || (c !== void 0 && (g[5] === void 0 || (g[1] = "@layer".concat(g[5].length > 0 ? " ".concat(g[5]) : "", " {").concat(g[1], "}")), g[5] = c), i && (g[2] && (g[1] = "@media ".concat(g[2], " {").concat(g[1], "}")), g[2] = i), s && (g[4] ? (g[1] = "@supports (".concat(g[4], ") {").concat(g[1], "}"), g[4] = s) : g[4] = "".concat(s)), t.push(g));
812
+ var f = [].concat(o[h]);
813
+ a && d[f[0]] || (c !== void 0 && (f[5] === void 0 || (f[1] = "@layer".concat(f[5].length > 0 ? " ".concat(f[5]) : "", " {").concat(f[1], "}")), f[5] = c), i && (f[2] && (f[1] = "@media ".concat(f[2], " {").concat(f[1], "}")), f[2] = i), s && (f[4] ? (f[1] = "@supports (".concat(f[4], ") {").concat(f[1], "}"), f[4] = s) : f[4] = "".concat(s)), t.push(f));
814
814
  }
815
815
  }, t;
816
816
  };
@@ -819,59 +819,59 @@ var fa = { 7: function(n, e, t) {
819
819
  return e[1];
820
820
  };
821
821
  }, 616: (n, e, t) => {
822
- t.r(e), t.d(e, { Component: () => N, Fragment: () => U, cloneElement: () => We, createContext: () => Fe, createElement: () => S, createRef: () => j, h: () => S, hydrate: () => He, isValidElement: () => s, options: () => i, render: () => fe, toChildArray: () => _e });
823
- var o, i, a, s, c, d, l, u, h, g = {}, m = [], x = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
824
- function O(f, v) {
825
- for (var b in v) f[b] = v[b];
826
- return f;
822
+ t.r(e), t.d(e, { Component: () => N, Fragment: () => U, cloneElement: () => We, createContext: () => Fe, createElement: () => S, createRef: () => j, h: () => S, hydrate: () => He, isValidElement: () => s, options: () => i, render: () => ge, toChildArray: () => _e });
823
+ var o, i, a, s, c, d, l, u, h, f = {}, m = [], x = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
824
+ function O(g, v) {
825
+ for (var b in v) g[b] = v[b];
826
+ return g;
827
827
  }
828
- function A(f) {
829
- var v = f.parentNode;
830
- v && v.removeChild(f);
828
+ function A(g) {
829
+ var v = g.parentNode;
830
+ v && v.removeChild(g);
831
831
  }
832
- function S(f, v, b) {
832
+ function S(g, v, b) {
833
833
  var D, $, I, z = {};
834
834
  for (I in v) I == "key" ? D = v[I] : I == "ref" ? $ = v[I] : z[I] = v[I];
835
- if (arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), typeof f == "function" && f.defaultProps != null) for (I in f.defaultProps) z[I] === void 0 && (z[I] = f.defaultProps[I]);
836
- return P(f, z, D, $, null);
835
+ if (arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), typeof g == "function" && g.defaultProps != null) for (I in g.defaultProps) z[I] === void 0 && (z[I] = g.defaultProps[I]);
836
+ return P(g, z, D, $, null);
837
837
  }
838
- function P(f, v, b, D, $) {
839
- var I = { type: f, props: v, key: b, ref: D, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: $ ?? ++a };
838
+ function P(g, v, b, D, $) {
839
+ var I = { type: g, props: v, key: b, ref: D, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: $ ?? ++a };
840
840
  return $ == null && i.vnode != null && i.vnode(I), I;
841
841
  }
842
842
  function j() {
843
843
  return { current: null };
844
844
  }
845
- function U(f) {
846
- return f.children;
845
+ function U(g) {
846
+ return g.children;
847
847
  }
848
- function N(f, v) {
849
- this.props = f, this.context = v;
848
+ function N(g, v) {
849
+ this.props = g, this.context = v;
850
850
  }
851
- function ae(f, v) {
852
- if (v == null) return f.__ ? ae(f.__, f.__.__k.indexOf(f) + 1) : null;
853
- for (var b; v < f.__k.length; v++) if ((b = f.__k[v]) != null && b.__e != null) return b.__e;
854
- return typeof f.type == "function" ? ae(f) : null;
851
+ function ae(g, v) {
852
+ if (v == null) return g.__ ? ae(g.__, g.__.__k.indexOf(g) + 1) : null;
853
+ for (var b; v < g.__k.length; v++) if ((b = g.__k[v]) != null && b.__e != null) return b.__e;
854
+ return typeof g.type == "function" ? ae(g) : null;
855
855
  }
856
- function be(f) {
856
+ function be(g) {
857
857
  var v, b;
858
- if ((f = f.__) != null && f.__c != null) {
859
- for (f.__e = f.__c.base = null, v = 0; v < f.__k.length; v++) if ((b = f.__k[v]) != null && b.__e != null) {
860
- f.__e = f.__c.base = b.__e;
858
+ if ((g = g.__) != null && g.__c != null) {
859
+ for (g.__e = g.__c.base = null, v = 0; v < g.__k.length; v++) if ((b = g.__k[v]) != null && b.__e != null) {
860
+ g.__e = g.__c.base = b.__e;
861
861
  break;
862
862
  }
863
- return be(f);
863
+ return be(g);
864
864
  }
865
865
  }
866
- function re(f) {
867
- (!f.__d && (f.__d = !0) && c.push(f) && !we.__r++ || d !== i.debounceRendering) && ((d = i.debounceRendering) || l)(we);
866
+ function re(g) {
867
+ (!g.__d && (g.__d = !0) && c.push(g) && !we.__r++ || d !== i.debounceRendering) && ((d = i.debounceRendering) || l)(we);
868
868
  }
869
869
  function we() {
870
- var f, v, b, D, $, I, z, X;
871
- for (c.sort(u); f = c.shift(); ) f.__d && (v = c.length, D = void 0, $ = void 0, z = (I = (b = f).__v).__e, (X = b.__P) && (D = [], ($ = O({}, I)).__v = I.__v + 1, Ie(X, I, $, b.__n, X.ownerSVGElement !== void 0, I.__h != null ? [z] : null, D, z ?? ae(I), I.__h), k(D, I), I.__e != z && be(I)), c.length > v && c.sort(u));
870
+ var g, v, b, D, $, I, z, X;
871
+ for (c.sort(u); g = c.shift(); ) g.__d && (v = c.length, D = void 0, $ = void 0, z = (I = (b = g).__v).__e, (X = b.__P) && (D = [], ($ = O({}, I)).__v = I.__v + 1, Ie(X, I, $, b.__n, X.ownerSVGElement !== void 0, I.__h != null ? [z] : null, D, z ?? ae(I), I.__h), k(D, I), I.__e != z && be(I)), c.length > v && c.sort(u));
872
872
  we.__r = 0;
873
873
  }
874
- function M(f, v, b, D, $, I, z, X, Q, ye) {
874
+ function M(g, v, b, D, $, I, z, X, Q, ye) {
875
875
  var w, ke, J, R, E, Se, V, F = D && D.__k || m, qe = F.length;
876
876
  for (b.__k = [], w = 0; w < v.length; w++) if ((R = b.__k[w] = (R = v[w]) == null || typeof R == "boolean" || typeof R == "function" ? null : typeof R == "string" || typeof R == "number" || typeof R == "bigint" ? P(null, R, null, null, R) : Array.isArray(R) ? P(U, { children: R }, null, null, null) : R.__b > 0 ? P(R.type, R.props, R.key, R.ref ? R.ref : null, R.__v) : R) != null) {
877
877
  if (R.__ = b, R.__b = b.__b + 1, (J = F[w]) === null || J && R.key == J.key && R.type === J.type) F[w] = void 0;
@@ -882,67 +882,67 @@ var fa = { 7: function(n, e, t) {
882
882
  }
883
883
  J = null;
884
884
  }
885
- Ie(f, R, J = J || g, $, I, z, X, Q, ye), E = R.__e, (ke = R.ref) && J.ref != ke && (V || (V = []), J.ref && V.push(J.ref, null, R), V.push(ke, R.__c || E, R)), E != null ? (Se == null && (Se = E), typeof R.type == "function" && R.__k === J.__k ? R.__d = Q = H(R, Q, f) : Q = Te(f, R, J, F, E, Q), typeof b.type == "function" && (b.__d = Q)) : Q && J.__e == Q && Q.parentNode != f && (Q = ae(J));
885
+ Ie(g, R, J = J || f, $, I, z, X, Q, ye), E = R.__e, (ke = R.ref) && J.ref != ke && (V || (V = []), J.ref && V.push(J.ref, null, R), V.push(ke, R.__c || E, R)), E != null ? (Se == null && (Se = E), typeof R.type == "function" && R.__k === J.__k ? R.__d = Q = H(R, Q, g) : Q = Te(g, R, J, F, E, Q), typeof b.type == "function" && (b.__d = Q)) : Q && J.__e == Q && Q.parentNode != g && (Q = ae(J));
886
886
  }
887
887
  for (b.__e = Se, w = qe; w--; ) F[w] != null && (typeof b.type == "function" && F[w].__e != null && F[w].__e == b.__d && (b.__d = Ee(D).nextSibling), T(F[w], F[w]));
888
888
  if (V) for (w = 0; w < V.length; w++) y(V[w], V[++w], V[++w]);
889
889
  }
890
- function H(f, v, b) {
891
- for (var D, $ = f.__k, I = 0; $ && I < $.length; I++) (D = $[I]) && (D.__ = f, v = typeof D.type == "function" ? H(D, v, b) : Te(b, D, D, $, D.__e, v));
890
+ function H(g, v, b) {
891
+ for (var D, $ = g.__k, I = 0; $ && I < $.length; I++) (D = $[I]) && (D.__ = g, v = typeof D.type == "function" ? H(D, v, b) : Te(b, D, D, $, D.__e, v));
892
892
  return v;
893
893
  }
894
- function _e(f, v) {
895
- return v = v || [], f == null || typeof f == "boolean" || (Array.isArray(f) ? f.some(function(b) {
894
+ function _e(g, v) {
895
+ return v = v || [], g == null || typeof g == "boolean" || (Array.isArray(g) ? g.some(function(b) {
896
896
  _e(b, v);
897
- }) : v.push(f)), v;
897
+ }) : v.push(g)), v;
898
898
  }
899
- function Te(f, v, b, D, $, I) {
899
+ function Te(g, v, b, D, $, I) {
900
900
  var z, X, Q;
901
901
  if (v.__d !== void 0) z = v.__d, v.__d = void 0;
902
- else if (b == null || $ != I || $.parentNode == null) e: if (I == null || I.parentNode !== f) f.appendChild($), z = null;
902
+ else if (b == null || $ != I || $.parentNode == null) e: if (I == null || I.parentNode !== g) g.appendChild($), z = null;
903
903
  else {
904
904
  for (X = I, Q = 0; (X = X.nextSibling) && Q < D.length; Q += 1) if (X == $) break e;
905
- f.insertBefore($, I), z = I;
905
+ g.insertBefore($, I), z = I;
906
906
  }
907
907
  return z !== void 0 ? z : $.nextSibling;
908
908
  }
909
- function Ee(f) {
909
+ function Ee(g) {
910
910
  var v, b, D;
911
- if (f.type == null || typeof f.type == "string") return f.__e;
912
- if (f.__k) {
913
- for (v = f.__k.length - 1; v >= 0; v--) if ((b = f.__k[v]) && (D = Ee(b))) return D;
911
+ if (g.type == null || typeof g.type == "string") return g.__e;
912
+ if (g.__k) {
913
+ for (v = g.__k.length - 1; v >= 0; v--) if ((b = g.__k[v]) && (D = Ee(b))) return D;
914
914
  }
915
915
  return null;
916
916
  }
917
- function $e(f, v, b) {
918
- v[0] === "-" ? f.setProperty(v, b ?? "") : f[v] = b == null ? "" : typeof b != "number" || x.test(v) ? b : b + "px";
917
+ function $e(g, v, b) {
918
+ v[0] === "-" ? g.setProperty(v, b ?? "") : g[v] = b == null ? "" : typeof b != "number" || x.test(v) ? b : b + "px";
919
919
  }
920
- function se(f, v, b, D, $) {
920
+ function se(g, v, b, D, $) {
921
921
  var I;
922
- e: if (v === "style") if (typeof b == "string") f.style.cssText = b;
922
+ e: if (v === "style") if (typeof b == "string") g.style.cssText = b;
923
923
  else {
924
- if (typeof D == "string" && (f.style.cssText = D = ""), D) for (v in D) b && v in b || $e(f.style, v, "");
925
- if (b) for (v in b) D && b[v] === D[v] || $e(f.style, v, b[v]);
924
+ if (typeof D == "string" && (g.style.cssText = D = ""), D) for (v in D) b && v in b || $e(g.style, v, "");
925
+ if (b) for (v in b) D && b[v] === D[v] || $e(g.style, v, b[v]);
926
926
  }
927
- else if (v[0] === "o" && v[1] === "n") I = v !== (v = v.replace(/Capture$/, "")), v = v.toLowerCase() in f ? v.toLowerCase().slice(2) : v.slice(2), f.l || (f.l = {}), f.l[v + I] = b, b ? D || f.addEventListener(v, I ? me : le, I) : f.removeEventListener(v, I ? me : le, I);
927
+ else if (v[0] === "o" && v[1] === "n") I = v !== (v = v.replace(/Capture$/, "")), v = v.toLowerCase() in g ? v.toLowerCase().slice(2) : v.slice(2), g.l || (g.l = {}), g.l[v + I] = b, b ? D || g.addEventListener(v, I ? me : le, I) : g.removeEventListener(v, I ? me : le, I);
928
928
  else if (v !== "dangerouslySetInnerHTML") {
929
929
  if ($) v = v.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
930
- else if (v !== "width" && v !== "height" && v !== "href" && v !== "list" && v !== "form" && v !== "tabIndex" && v !== "download" && v in f) try {
931
- f[v] = b ?? "";
930
+ else if (v !== "width" && v !== "height" && v !== "href" && v !== "list" && v !== "form" && v !== "tabIndex" && v !== "download" && v in g) try {
931
+ g[v] = b ?? "";
932
932
  break e;
933
933
  } catch {
934
934
  }
935
- typeof b == "function" || (b == null || b === !1 && v.indexOf("-") == -1 ? f.removeAttribute(v) : f.setAttribute(v, b));
935
+ typeof b == "function" || (b == null || b === !1 && v.indexOf("-") == -1 ? g.removeAttribute(v) : g.setAttribute(v, b));
936
936
  }
937
937
  }
938
- function le(f) {
939
- return this.l[f.type + !1](i.event ? i.event(f) : f);
938
+ function le(g) {
939
+ return this.l[g.type + !1](i.event ? i.event(g) : g);
940
940
  }
941
- function me(f) {
942
- return this.l[f.type + !0](i.event ? i.event(f) : f);
941
+ function me(g) {
942
+ return this.l[g.type + !0](i.event ? i.event(g) : g);
943
943
  }
944
- function Ie(f, v, b, D, $, I, z, X, Q) {
945
- var ye, w, ke, J, R, E, Se, V, F, qe, it, ge, Vt, at, q, B = v.type;
944
+ function Ie(g, v, b, D, $, I, z, X, Q) {
945
+ var ye, w, ke, J, R, E, Se, V, F, qe, it, fe, Vt, at, q, B = v.type;
946
946
  if (v.constructor !== void 0) return null;
947
947
  b.__h != null && (Q = b.__h, X = v.__e = b.__e, v.__h = null, I = [X]), (ye = i.__b) && ye(v);
948
948
  try {
@@ -960,23 +960,23 @@ var fa = { 7: function(n, e, t) {
960
960
  w.componentDidUpdate(J, R, E);
961
961
  });
962
962
  }
963
- if (w.context = qe, w.props = V, w.__P = f, ge = i.__r, Vt = 0, "prototype" in B && B.prototype.render) {
964
- for (w.state = w.__s, w.__d = !1, ge && ge(v), ye = w.render(w.props, w.state, w.context), at = 0; at < w._sb.length; at++) w.__h.push(w._sb[at]);
963
+ if (w.context = qe, w.props = V, w.__P = g, fe = i.__r, Vt = 0, "prototype" in B && B.prototype.render) {
964
+ for (w.state = w.__s, w.__d = !1, fe && fe(v), ye = w.render(w.props, w.state, w.context), at = 0; at < w._sb.length; at++) w.__h.push(w._sb[at]);
965
965
  w._sb = [];
966
966
  } else do
967
- w.__d = !1, ge && ge(v), ye = w.render(w.props, w.state, w.context), w.state = w.__s;
967
+ w.__d = !1, fe && fe(v), ye = w.render(w.props, w.state, w.context), w.state = w.__s;
968
968
  while (w.__d && ++Vt < 25);
969
- w.state = w.__s, w.getChildContext != null && (D = O(O({}, D), w.getChildContext())), ke || w.getSnapshotBeforeUpdate == null || (E = w.getSnapshotBeforeUpdate(J, R)), q = ye != null && ye.type === U && ye.key == null ? ye.props.children : ye, M(f, Array.isArray(q) ? q : [q], v, b, D, $, I, z, X, Q), w.base = v.__e, v.__h = null, w.__h.length && z.push(w), Se && (w.__E = w.__ = null), w.__e = !1;
969
+ w.state = w.__s, w.getChildContext != null && (D = O(O({}, D), w.getChildContext())), ke || w.getSnapshotBeforeUpdate == null || (E = w.getSnapshotBeforeUpdate(J, R)), q = ye != null && ye.type === U && ye.key == null ? ye.props.children : ye, M(g, Array.isArray(q) ? q : [q], v, b, D, $, I, z, X, Q), w.base = v.__e, v.__h = null, w.__h.length && z.push(w), Se && (w.__E = w.__ = null), w.__e = !1;
970
970
  } else I == null && v.__v === b.__v ? (v.__k = b.__k, v.__e = b.__e) : v.__e = p(b.__e, v, b, D, $, I, z, Q);
971
971
  (ye = i.diffed) && ye(v);
972
972
  } catch (Qe) {
973
973
  v.__v = null, (Q || I != null) && (v.__e = X, v.__h = !!Q, I[I.indexOf(X)] = null), i.__e(Qe, v, b);
974
974
  }
975
975
  }
976
- function k(f, v) {
977
- i.__c && i.__c(v, f), f.some(function(b) {
976
+ function k(g, v) {
977
+ i.__c && i.__c(v, g), g.some(function(b) {
978
978
  try {
979
- f = b.__h, b.__h = [], f.some(function(D) {
979
+ g = b.__h, b.__h = [], g.some(function(D) {
980
980
  D.call(b);
981
981
  });
982
982
  } catch (D) {
@@ -984,71 +984,71 @@ var fa = { 7: function(n, e, t) {
984
984
  }
985
985
  });
986
986
  }
987
- function p(f, v, b, D, $, I, z, X) {
987
+ function p(g, v, b, D, $, I, z, X) {
988
988
  var Q, ye, w, ke = b.props, J = v.props, R = v.type, E = 0;
989
989
  if (R === "svg" && ($ = !0), I != null) {
990
990
  for (; E < I.length; E++) if ((Q = I[E]) && "setAttribute" in Q == !!R && (R ? Q.localName === R : Q.nodeType === 3)) {
991
- f = Q, I[E] = null;
991
+ g = Q, I[E] = null;
992
992
  break;
993
993
  }
994
994
  }
995
- if (f == null) {
995
+ if (g == null) {
996
996
  if (R === null) return document.createTextNode(J);
997
- f = $ ? document.createElementNS("http://www.w3.org/2000/svg", R) : document.createElement(R, J.is && J), I = null, X = !1;
997
+ g = $ ? document.createElementNS("http://www.w3.org/2000/svg", R) : document.createElement(R, J.is && J), I = null, X = !1;
998
998
  }
999
- if (R === null) ke === J || X && f.data === J || (f.data = J);
999
+ if (R === null) ke === J || X && g.data === J || (g.data = J);
1000
1000
  else {
1001
- if (I = I && o.call(f.childNodes), ye = (ke = b.props || g).dangerouslySetInnerHTML, w = J.dangerouslySetInnerHTML, !X) {
1002
- if (I != null) for (ke = {}, E = 0; E < f.attributes.length; E++) ke[f.attributes[E].name] = f.attributes[E].value;
1003
- (w || ye) && (w && (ye && w.__html == ye.__html || w.__html === f.innerHTML) || (f.innerHTML = w && w.__html || ""));
1001
+ if (I = I && o.call(g.childNodes), ye = (ke = b.props || f).dangerouslySetInnerHTML, w = J.dangerouslySetInnerHTML, !X) {
1002
+ if (I != null) for (ke = {}, E = 0; E < g.attributes.length; E++) ke[g.attributes[E].name] = g.attributes[E].value;
1003
+ (w || ye) && (w && (ye && w.__html == ye.__html || w.__html === g.innerHTML) || (g.innerHTML = w && w.__html || ""));
1004
1004
  }
1005
1005
  if (function(Se, V, F, qe, it) {
1006
- var ge;
1007
- for (ge in F) ge === "children" || ge === "key" || ge in V || se(Se, ge, null, F[ge], qe);
1008
- for (ge in V) it && typeof V[ge] != "function" || ge === "children" || ge === "key" || ge === "value" || ge === "checked" || F[ge] === V[ge] || se(Se, ge, V[ge], F[ge], qe);
1009
- }(f, J, ke, $, X), w) v.__k = [];
1010
- else if (E = v.props.children, M(f, Array.isArray(E) ? E : [E], v, b, D, $ && R !== "foreignObject", I, z, I ? I[0] : b.__k && ae(b, 0), X), I != null) for (E = I.length; E--; ) I[E] != null && A(I[E]);
1011
- X || ("value" in J && (E = J.value) !== void 0 && (E !== f.value || R === "progress" && !E || R === "option" && E !== ke.value) && se(f, "value", E, ke.value, !1), "checked" in J && (E = J.checked) !== void 0 && E !== f.checked && se(f, "checked", E, ke.checked, !1));
1006
+ var fe;
1007
+ for (fe in F) fe === "children" || fe === "key" || fe in V || se(Se, fe, null, F[fe], qe);
1008
+ for (fe in V) it && typeof V[fe] != "function" || fe === "children" || fe === "key" || fe === "value" || fe === "checked" || F[fe] === V[fe] || se(Se, fe, V[fe], F[fe], qe);
1009
+ }(g, J, ke, $, X), w) v.__k = [];
1010
+ else if (E = v.props.children, M(g, Array.isArray(E) ? E : [E], v, b, D, $ && R !== "foreignObject", I, z, I ? I[0] : b.__k && ae(b, 0), X), I != null) for (E = I.length; E--; ) I[E] != null && A(I[E]);
1011
+ X || ("value" in J && (E = J.value) !== void 0 && (E !== g.value || R === "progress" && !E || R === "option" && E !== ke.value) && se(g, "value", E, ke.value, !1), "checked" in J && (E = J.checked) !== void 0 && E !== g.checked && se(g, "checked", E, ke.checked, !1));
1012
1012
  }
1013
- return f;
1013
+ return g;
1014
1014
  }
1015
- function y(f, v, b) {
1015
+ function y(g, v, b) {
1016
1016
  try {
1017
- typeof f == "function" ? f(v) : f.current = v;
1017
+ typeof g == "function" ? g(v) : g.current = v;
1018
1018
  } catch (D) {
1019
1019
  i.__e(D, b);
1020
1020
  }
1021
1021
  }
1022
- function T(f, v, b) {
1022
+ function T(g, v, b) {
1023
1023
  var D, $;
1024
- if (i.unmount && i.unmount(f), (D = f.ref) && (D.current && D.current !== f.__e || y(D, null, v)), (D = f.__c) != null) {
1024
+ if (i.unmount && i.unmount(g), (D = g.ref) && (D.current && D.current !== g.__e || y(D, null, v)), (D = g.__c) != null) {
1025
1025
  if (D.componentWillUnmount) try {
1026
1026
  D.componentWillUnmount();
1027
1027
  } catch (I) {
1028
1028
  i.__e(I, v);
1029
1029
  }
1030
- D.base = D.__P = null, f.__c = void 0;
1030
+ D.base = D.__P = null, g.__c = void 0;
1031
1031
  }
1032
- if (D = f.__k) for ($ = 0; $ < D.length; $++) D[$] && T(D[$], v, b || typeof f.type != "function");
1033
- b || f.__e == null || A(f.__e), f.__ = f.__e = f.__d = void 0;
1032
+ if (D = g.__k) for ($ = 0; $ < D.length; $++) D[$] && T(D[$], v, b || typeof g.type != "function");
1033
+ b || g.__e == null || A(g.__e), g.__ = g.__e = g.__d = void 0;
1034
1034
  }
1035
- function K(f, v, b) {
1036
- return this.constructor(f, b);
1035
+ function K(g, v, b) {
1036
+ return this.constructor(g, b);
1037
1037
  }
1038
- function fe(f, v, b) {
1038
+ function ge(g, v, b) {
1039
1039
  var D, $, I;
1040
- i.__ && i.__(f, v), $ = (D = typeof b == "function") ? null : b && b.__k || v.__k, I = [], Ie(v, f = (!D && b || v).__k = S(U, null, [f]), $ || g, g, v.ownerSVGElement !== void 0, !D && b ? [b] : $ ? null : v.firstChild ? o.call(v.childNodes) : null, I, !D && b ? b : $ ? $.__e : v.firstChild, D), k(I, f);
1040
+ i.__ && i.__(g, v), $ = (D = typeof b == "function") ? null : b && b.__k || v.__k, I = [], Ie(v, g = (!D && b || v).__k = S(U, null, [g]), $ || f, f, v.ownerSVGElement !== void 0, !D && b ? [b] : $ ? null : v.firstChild ? o.call(v.childNodes) : null, I, !D && b ? b : $ ? $.__e : v.firstChild, D), k(I, g);
1041
1041
  }
1042
- function He(f, v) {
1043
- fe(f, v, He);
1042
+ function He(g, v) {
1043
+ ge(g, v, He);
1044
1044
  }
1045
- function We(f, v, b) {
1046
- var D, $, I, z = O({}, f.props);
1045
+ function We(g, v, b) {
1046
+ var D, $, I, z = O({}, g.props);
1047
1047
  for (I in v) I == "key" ? D = v[I] : I == "ref" ? $ = v[I] : z[I] = v[I];
1048
- return arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), P(f.type, z, D || f.key, $ || f.ref, null);
1048
+ return arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), P(g.type, z, D || g.key, $ || g.ref, null);
1049
1049
  }
1050
- function Fe(f, v) {
1051
- var b = { __c: v = "__cC" + h++, __: f, Consumer: function(D, $) {
1050
+ function Fe(g, v) {
1051
+ var b = { __c: v = "__cC" + h++, __: g, Consumer: function(D, $) {
1052
1052
  return D.children($);
1053
1053
  }, Provider: function(D) {
1054
1054
  var $, I;
@@ -1068,26 +1068,26 @@ var fa = { 7: function(n, e, t) {
1068
1068
  } };
1069
1069
  return b.Provider.__ = b.Consumer.contextType = b;
1070
1070
  }
1071
- o = m.slice, i = { __e: function(f, v, b, D) {
1071
+ o = m.slice, i = { __e: function(g, v, b, D) {
1072
1072
  for (var $, I, z; v = v.__; ) if (($ = v.__c) && !$.__) try {
1073
- if ((I = $.constructor) && I.getDerivedStateFromError != null && ($.setState(I.getDerivedStateFromError(f)), z = $.__d), $.componentDidCatch != null && ($.componentDidCatch(f, D || {}), z = $.__d), z) return $.__E = $;
1073
+ if ((I = $.constructor) && I.getDerivedStateFromError != null && ($.setState(I.getDerivedStateFromError(g)), z = $.__d), $.componentDidCatch != null && ($.componentDidCatch(g, D || {}), z = $.__d), z) return $.__E = $;
1074
1074
  } catch (X) {
1075
- f = X;
1075
+ g = X;
1076
1076
  }
1077
- throw f;
1078
- } }, a = 0, s = function(f) {
1079
- return f != null && f.constructor === void 0;
1080
- }, N.prototype.setState = function(f, v) {
1077
+ throw g;
1078
+ } }, a = 0, s = function(g) {
1079
+ return g != null && g.constructor === void 0;
1080
+ }, N.prototype.setState = function(g, v) {
1081
1081
  var b;
1082
- b = this.__s != null && this.__s !== this.state ? this.__s : this.__s = O({}, this.state), typeof f == "function" && (f = f(O({}, b), this.props)), f && O(b, f), f != null && this.__v && (v && this._sb.push(v), re(this));
1083
- }, N.prototype.forceUpdate = function(f) {
1084
- this.__v && (this.__e = !0, f && this.__h.push(f), re(this));
1085
- }, N.prototype.render = U, c = [], l = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, u = function(f, v) {
1086
- return f.__v.__b - v.__v.__b;
1082
+ b = this.__s != null && this.__s !== this.state ? this.__s : this.__s = O({}, this.state), typeof g == "function" && (g = g(O({}, b), this.props)), g && O(b, g), g != null && this.__v && (v && this._sb.push(v), re(this));
1083
+ }, N.prototype.forceUpdate = function(g) {
1084
+ this.__v && (this.__e = !0, g && this.__h.push(g), re(this));
1085
+ }, N.prototype.render = U, c = [], l = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, u = function(g, v) {
1086
+ return g.__v.__b - v.__v.__b;
1087
1087
  }, we.__r = 0, h = 0;
1088
1088
  }, 78: (n, e, t) => {
1089
1089
  t.r(e), t.d(e, { useCallback: () => re, useContext: () => we, useDebugValue: () => M, useEffect: () => j, useErrorBoundary: () => H, useId: () => _e, useImperativeHandle: () => ae, useLayoutEffect: () => U, useMemo: () => be, useReducer: () => P, useRef: () => N, useState: () => S });
1090
- var o, i, a, s, c = t(616), d = 0, l = [], u = [], h = c.options.__b, g = c.options.__r, m = c.options.diffed, x = c.options.__c, O = c.options.unmount;
1090
+ var o, i, a, s, c = t(616), d = 0, l = [], u = [], h = c.options.__b, f = c.options.__r, m = c.options.diffed, x = c.options.__c, O = c.options.unmount;
1091
1091
  function A(k, p) {
1092
1092
  c.options.__h && c.options.__h(i, k, d || p), d = 0;
1093
1093
  var y = i.__H || (i.__H = { __: [], __h: [] });
@@ -1099,33 +1099,33 @@ var fa = { 7: function(n, e, t) {
1099
1099
  function P(k, p, y) {
1100
1100
  var T = A(o++, 2);
1101
1101
  if (T.t = k, !T.__c && (T.__ = [y ? y(p) : Ie(void 0, p), function(We) {
1102
- var Fe = T.__N ? T.__N[0] : T.__[0], f = T.t(Fe, We);
1103
- Fe !== f && (T.__N = [f, T.__[1]], T.__c.setState({}));
1102
+ var Fe = T.__N ? T.__N[0] : T.__[0], g = T.t(Fe, We);
1103
+ Fe !== g && (T.__N = [g, T.__[1]], T.__c.setState({}));
1104
1104
  }], T.__c = i, !i.u)) {
1105
- var K = function(We, Fe, f) {
1105
+ var K = function(We, Fe, g) {
1106
1106
  if (!T.__c.__H) return !0;
1107
1107
  var v = T.__c.__H.__.filter(function(D) {
1108
1108
  return D.__c;
1109
1109
  });
1110
1110
  if (v.every(function(D) {
1111
1111
  return !D.__N;
1112
- })) return !fe || fe.call(this, We, Fe, f);
1112
+ })) return !ge || ge.call(this, We, Fe, g);
1113
1113
  var b = !1;
1114
1114
  return v.forEach(function(D) {
1115
1115
  if (D.__N) {
1116
1116
  var $ = D.__[0];
1117
1117
  D.__ = D.__N, D.__N = void 0, $ !== D.__[0] && (b = !0);
1118
1118
  }
1119
- }), !(!b && T.__c.props === We) && (!fe || fe.call(this, We, Fe, f));
1119
+ }), !(!b && T.__c.props === We) && (!ge || ge.call(this, We, Fe, g));
1120
1120
  };
1121
1121
  i.u = !0;
1122
- var fe = i.shouldComponentUpdate, He = i.componentWillUpdate;
1123
- i.componentWillUpdate = function(We, Fe, f) {
1122
+ var ge = i.shouldComponentUpdate, He = i.componentWillUpdate;
1123
+ i.componentWillUpdate = function(We, Fe, g) {
1124
1124
  if (this.__e) {
1125
- var v = fe;
1126
- fe = void 0, K(We, Fe, f), fe = v;
1125
+ var v = ge;
1126
+ ge = void 0, K(We, Fe, g), ge = v;
1127
1127
  }
1128
- He && He.call(this, We, Fe, f);
1128
+ He && He.call(this, We, Fe, g);
1129
1129
  }, i.shouldComponentUpdate = K;
1130
1130
  }
1131
1131
  return T.__N || T.__;
@@ -1195,7 +1195,7 @@ var fa = { 7: function(n, e, t) {
1195
1195
  c.options.__b = function(k) {
1196
1196
  i = null, h && h(k);
1197
1197
  }, c.options.__r = function(k) {
1198
- g && g(k), o = 0;
1198
+ f && f(k), o = 0;
1199
1199
  var p = (i = k.__c).__H;
1200
1200
  p && (a === i ? (p.__h = [], i.__h = [], p.__.forEach(function(y) {
1201
1201
  y.__N && (y.__ = y.__N), y.__V = u, y.__N = y.i = void 0;
@@ -1263,8 +1263,8 @@ var fa = { 7: function(n, e, t) {
1263
1263
  }
1264
1264
  function o(a, s) {
1265
1265
  for (var c = {}, d = [], l = 0; l < a.length; l++) {
1266
- var u = a[l], h = s.base ? u[0] + s.base : u[0], g = c[h] || 0, m = "".concat(h, " ").concat(g);
1267
- c[h] = g + 1;
1266
+ var u = a[l], h = s.base ? u[0] + s.base : u[0], f = c[h] || 0, m = "".concat(h, " ").concat(f);
1267
+ c[h] = f + 1;
1268
1268
  var x = t(m), O = { css: u[1], media: u[2], sourceMap: u[3], supports: u[4], layer: u[5] };
1269
1269
  if (x !== -1) e[x].references++, e[x].updater(O);
1270
1270
  else {
@@ -1292,8 +1292,8 @@ var fa = { 7: function(n, e, t) {
1292
1292
  var u = t(c[l]);
1293
1293
  e[u].references--;
1294
1294
  }
1295
- for (var h = o(d, s), g = 0; g < c.length; g++) {
1296
- var m = t(c[g]);
1295
+ for (var h = o(d, s), f = 0; f < c.length; f++) {
1296
+ var m = t(c[f]);
1297
1297
  e[m].references === 0 && (e[m].updater(), e.splice(m, 1));
1298
1298
  }
1299
1299
  c = h;
@@ -1324,8 +1324,8 @@ var fa = { 7: function(n, e, t) {
1324
1324
  }
1325
1325
  if (a.styleSheet) a.styleSheet.cssText = t(s, l);
1326
1326
  else {
1327
- var h = document.createTextNode(l), g = a.childNodes;
1328
- g[s] && a.removeChild(g[s]), g.length ? a.insertBefore(h, g[s]) : a.appendChild(h);
1327
+ var h = document.createTextNode(l), f = a.childNodes;
1328
+ f[s] && a.removeChild(f[s]), f.length ? a.insertBefore(h, f[s]) : a.appendChild(h);
1329
1329
  }
1330
1330
  }
1331
1331
  var i = { singleton: null, singletonCounter: 0 };
@@ -1348,7 +1348,7 @@ function G(n) {
1348
1348
  var e = To[n];
1349
1349
  if (e !== void 0) return e.exports;
1350
1350
  var t = To[n] = { id: n, exports: {} };
1351
- return fa[n].call(t.exports, t, t.exports, G), t.exports;
1351
+ return ga[n].call(t.exports, t, t.exports, G), t.exports;
1352
1352
  }
1353
1353
  G.n = (n) => {
1354
1354
  var e = n && n.__esModule ? () => n.default : () => n;
@@ -1359,14 +1359,14 @@ G.n = (n) => {
1359
1359
  typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(n, "__esModule", { value: !0 });
1360
1360
  }, G.nc = void 0;
1361
1361
  var ie = {};
1362
- G.d(ie, { fK: () => wn, tJ: () => Ci, Z7: () => Cn, Q9: () => Ii, Lv: () => Pi, qQ: () => xn, I4: () => Ti, O8: () => Ae, ku: () => ao, ls: () => io, bO: () => ro, yv: () => An, AT: () => lo, m_: () => Wt, KG: () => so, DH: () => Sn, kf: () => go, oY: () => je, xg: () => Di, Wg: () => Je, J: () => ji, AC: () => co, D_: () => Xe, jx: () => Ei, nX: () => uo, Nx: () => oo, Sd: () => ft, kz: () => ss, fX: () => ho, qA: () => po, tz: () => fo, gN: () => mo });
1362
+ G.d(ie, { fK: () => wn, tJ: () => Ci, Z7: () => Cn, Q9: () => Ii, Lv: () => Pi, qQ: () => xn, I4: () => Ti, O8: () => Ae, ku: () => ao, ls: () => io, bO: () => ro, yv: () => An, AT: () => lo, m_: () => Wt, KG: () => so, DH: () => Sn, kf: () => fo, oY: () => je, xg: () => Di, Wg: () => Je, J: () => ji, AC: () => co, D_: () => Xe, jx: () => Ei, nX: () => uo, Nx: () => oo, Sd: () => gt, kz: () => ss, fX: () => ho, qA: () => po, tz: () => go, gN: () => mo });
1363
1363
  var Zn = {};
1364
- G.r(Zn), G.d(Zn, { apple: () => ar, checkmark: () => rr, copy: () => sr, customProvider: () => lr, discord: () => cr, exclamation: () => dr, facebook: () => ur, github: () => hr, google: () => pr, linkedin: () => mr, mail: () => fr, microsoft: () => gr, passkey: () => vr, password: () => _r, qrCodeScanner: () => yr, securityKey: () => br, spinner: () => kr });
1365
- var C = G(616), ga = 0;
1364
+ G.r(Zn), G.d(Zn, { apple: () => ar, checkmark: () => rr, copy: () => sr, customProvider: () => lr, discord: () => cr, exclamation: () => dr, facebook: () => ur, github: () => hr, google: () => pr, linkedin: () => mr, mail: () => gr, microsoft: () => fr, passkey: () => vr, password: () => _r, qrCodeScanner: () => yr, securityKey: () => br, spinner: () => kr });
1365
+ var C = G(616), fa = 0;
1366
1366
  function r(n, e, t, o, i, a) {
1367
1367
  var s, c, d = {};
1368
1368
  for (c in e) c == "ref" ? s = e[c] : d[c] = e[c];
1369
- var l = { type: n, props: d, key: t, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --ga, __source: i, __self: a };
1369
+ var l = { type: n, props: d, key: t, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --fa, __source: i, __self: a };
1370
1370
  if (typeof n == "function" && (s = n.defaultProps)) for (c in s) d[c] === void 0 && (d[c] = s[c]);
1371
1371
  return C.options.vnode && C.options.vnode(l), l;
1372
1372
  }
@@ -1394,7 +1394,7 @@ function _a(n) {
1394
1394
  }
1395
1395
  function ya() {
1396
1396
  var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
1397
- this.dispatchEvent(n), this._vdom = (0, C.h)(_a, _n({}, this._props, { context: n.detail.context }), fi(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? C.hydrate : C.render)(this._vdom, this._root);
1397
+ this.dispatchEvent(n), this._vdom = (0, C.h)(_a, _n({}, this._props, { context: n.detail.context }), gi(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? C.hydrate : C.render)(this._vdom, this._root);
1398
1398
  }
1399
1399
  function mi(n) {
1400
1400
  return n.replace(/-(\w)/g, function(e, t) {
@@ -1418,20 +1418,20 @@ function $o(n, e) {
1418
1418
  }, o.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
1419
1419
  } }));
1420
1420
  }
1421
- function fi(n, e) {
1421
+ function gi(n, e) {
1422
1422
  if (n.nodeType === 3) return n.data;
1423
1423
  if (n.nodeType !== 1) return null;
1424
1424
  var t = [], o = {}, i = 0, a = n.attributes, s = n.childNodes;
1425
1425
  for (i = a.length; i--; ) a[i].name !== "slot" && (o[a[i].name] = a[i].value, o[mi(a[i].name)] = a[i].value);
1426
1426
  for (i = s.length; i--; ) {
1427
- var c = fi(s[i], null), d = s[i].slot;
1427
+ var c = gi(s[i], null), d = s[i].slot;
1428
1428
  d ? o[d] = (0, C.h)($o, { name: d }, c) : t[i] = c;
1429
1429
  }
1430
1430
  var l = e ? (0, C.h)($o, null, t) : t;
1431
1431
  return (0, C.h)(e || n.nodeName.toLowerCase(), o, l);
1432
1432
  }
1433
1433
  var Z = G(7), _ = G(78);
1434
- function gi(n, e) {
1434
+ function fi(n, e) {
1435
1435
  for (var t in e) n[t] = e[t];
1436
1436
  return n;
1437
1437
  }
@@ -1461,7 +1461,7 @@ var Ro = C.options.unmount;
1461
1461
  function vi(n, e, t) {
1462
1462
  return n && (n.__c && n.__c.__H && (n.__c.__H.__.forEach(function(o) {
1463
1463
  typeof o.__c == "function" && o.__c();
1464
- }), n.__c.__H = null), (n = gi({}, n)).__c != null && (n.__c.__P === t && (n.__c.__P = e), n.__c = null), n.__k = n.__k && n.__k.map(function(o) {
1464
+ }), n.__c.__H = null), (n = fi({}, n)).__c != null && (n.__c.__P === t && (n.__c.__P = e), n.__c = null), n.__k = n.__k && n.__k.map(function(o) {
1465
1465
  return vi(o, e, t);
1466
1466
  })), n;
1467
1467
  }
@@ -1759,7 +1759,7 @@ class Je extends Ae {
1759
1759
  super("An error occurred during third party sign up/sign in", e, t), Object.setPrototypeOf(this, Je.prototype);
1760
1760
  }
1761
1761
  }
1762
- const ho = "hanko-session-created", po = "hanko-session-expired", mo = "hanko-user-logged-out", fo = "hanko-user-deleted";
1762
+ const ho = "hanko-session-created", po = "hanko-session-expired", mo = "hanko-user-logged-out", go = "hanko-user-deleted";
1763
1763
  class Ci extends CustomEvent {
1764
1764
  constructor(e, t) {
1765
1765
  super(e, { detail: t });
@@ -1782,7 +1782,7 @@ class Oi {
1782
1782
  this.dispatch(mo, null);
1783
1783
  }
1784
1784
  dispatchUserDeletedEvent() {
1785
- this.dispatch(fo, null);
1785
+ this.dispatch(go, null);
1786
1786
  }
1787
1787
  }
1788
1788
  function Zt(n) {
@@ -2109,10 +2109,10 @@ class Wa {
2109
2109
  l = i === !1 ? 0 : Date.now(), d = null, e.apply(s, c);
2110
2110
  };
2111
2111
  return function(...h) {
2112
- const g = Date.now();
2113
- l || i !== !1 || (l = g);
2114
- const m = t - (g - l);
2115
- s = this, c = h, m <= 0 || m > t ? (d && (window.clearTimeout(d), d = null), l = g, e.apply(s, c)) : d || a === !1 || (d = window.setTimeout(u, m));
2112
+ const f = Date.now();
2113
+ l || i !== !1 || (l = f);
2114
+ const m = t - (f - l);
2115
+ s = this, c = h, m <= 0 || m > t ? (d && (window.clearTimeout(d), d = null), l = f, e.apply(s, c)) : d || a === !1 || (d = window.setTimeout(u, m));
2116
2116
  };
2117
2117
  }
2118
2118
  }
@@ -2146,10 +2146,10 @@ class On {
2146
2146
  return this.addEventListener(mo, { callback: e, once: t });
2147
2147
  }
2148
2148
  onUserDeleted(e, t) {
2149
- return this.addEventListener(fo, { callback: e, once: t });
2149
+ return this.addEventListener(go, { callback: e, once: t });
2150
2150
  }
2151
2151
  }
2152
- class go extends lt {
2152
+ class fo extends lt {
2153
2153
  async validate() {
2154
2154
  const e = await this.client.get("/sessions/validate");
2155
2155
  if (!e.ok) throw new je();
@@ -2250,7 +2250,7 @@ class Za {
2250
2250
  }
2251
2251
  class Ja extends Oi {
2252
2252
  constructor(e, t) {
2253
- super(), this.listener = new On(), this.checkInterval = 3e4, this.client = void 0, this.sessionState = void 0, this.windowActivityManager = void 0, this.scheduler = void 0, this.sessionChannel = void 0, this.isLoggedIn = void 0, this.client = new go(e, t), this.checkInterval = t.sessionCheckInterval, this.sessionState = new Ka(`${t.cookieName}_session_state`), this.sessionChannel = new Za(this.getSessionCheckChannelName(t.sessionTokenLocation, t.sessionCheckChannelName), () => this.onChannelSessionExpired(), (a) => this.onChannelSessionCreated(a), () => this.onChannelLeadershipRequested()), this.scheduler = new Ba(this.checkInterval, () => this.checkSession(), () => this.onSessionExpired()), this.windowActivityManager = new Va(() => this.startSessionCheck(), () => this.scheduler.stop());
2253
+ super(), this.listener = new On(), this.checkInterval = 3e4, this.client = void 0, this.sessionState = void 0, this.windowActivityManager = void 0, this.scheduler = void 0, this.sessionChannel = void 0, this.isLoggedIn = void 0, this.client = new fo(e, t), this.checkInterval = t.sessionCheckInterval, this.sessionState = new Ka(`${t.cookieName}_session_state`), this.sessionChannel = new Za(this.getSessionCheckChannelName(t.sessionTokenLocation, t.sessionCheckChannelName), () => this.onChannelSessionExpired(), (a) => this.onChannelSessionCreated(a), () => this.onChannelLeadershipRequested()), this.scheduler = new Ba(this.checkInterval, () => this.checkSession(), () => this.onSessionExpired()), this.windowActivityManager = new Va(() => this.startSessionCheck(), () => this.scheduler.stop());
2254
2254
  const o = Date.now(), { expiration: i } = this.sessionState.load();
2255
2255
  this.isLoggedIn = o < i, this.initializeEventListeners(), this.startSessionCheck();
2256
2256
  }
@@ -2407,13 +2407,13 @@ class Ti extends On {
2407
2407
  constructor(e, t) {
2408
2408
  super(), this.api = void 0, this.user = void 0, this.email = void 0, this.thirdParty = void 0, this.enterprise = void 0, this.token = void 0, this.sessionClient = void 0, this.session = void 0, this.relay = void 0, this.flow = void 0;
2409
2409
  const o = { timeout: 13e3, cookieName: "hanko", localStorageKey: "hanko", sessionCheckInterval: 3e4, sessionCheckChannelName: "hanko-session-check", sessionTokenLocation: "cookie" };
2410
- (t == null ? void 0 : t.cookieName) !== void 0 && (o.cookieName = t.cookieName), (t == null ? void 0 : t.timeout) !== void 0 && (o.timeout = t.timeout), (t == null ? void 0 : t.localStorageKey) !== void 0 && (o.localStorageKey = t.localStorageKey), (t == null ? void 0 : t.cookieDomain) !== void 0 && (o.cookieDomain = t.cookieDomain), (t == null ? void 0 : t.cookieSameSite) !== void 0 && (o.cookieSameSite = t.cookieSameSite), (t == null ? void 0 : t.lang) !== void 0 && (o.lang = t.lang), (t == null ? void 0 : t.sessionCheckInterval) !== void 0 && (o.sessionCheckInterval = t.sessionCheckInterval < 3e3 ? 3e3 : t.sessionCheckInterval), (t == null ? void 0 : t.sessionCheckChannelName) !== void 0 && (o.sessionCheckChannelName = t.sessionCheckChannelName), (t == null ? void 0 : t.sessionTokenLocation) !== void 0 && (o.sessionTokenLocation = t.sessionTokenLocation), this.api = e, this.user = new Ei(e, o), this.email = new Ii(e, o), this.thirdParty = new Di(e, o), this.enterprise = new Pi(e, o), this.token = new ji(e, o), this.sessionClient = new go(e, o), this.session = new Fa(e, o), this.relay = new Ja(e, o), this.flow = new Qa(e, o);
2410
+ (t == null ? void 0 : t.cookieName) !== void 0 && (o.cookieName = t.cookieName), (t == null ? void 0 : t.timeout) !== void 0 && (o.timeout = t.timeout), (t == null ? void 0 : t.localStorageKey) !== void 0 && (o.localStorageKey = t.localStorageKey), (t == null ? void 0 : t.cookieDomain) !== void 0 && (o.cookieDomain = t.cookieDomain), (t == null ? void 0 : t.cookieSameSite) !== void 0 && (o.cookieSameSite = t.cookieSameSite), (t == null ? void 0 : t.lang) !== void 0 && (o.lang = t.lang), (t == null ? void 0 : t.sessionCheckInterval) !== void 0 && (o.sessionCheckInterval = t.sessionCheckInterval < 3e3 ? 3e3 : t.sessionCheckInterval), (t == null ? void 0 : t.sessionCheckChannelName) !== void 0 && (o.sessionCheckChannelName = t.sessionCheckChannelName), (t == null ? void 0 : t.sessionTokenLocation) !== void 0 && (o.sessionTokenLocation = t.sessionTokenLocation), this.api = e, this.user = new Ei(e, o), this.email = new Ii(e, o), this.thirdParty = new Di(e, o), this.enterprise = new Pi(e, o), this.token = new ji(e, o), this.sessionClient = new fo(e, o), this.session = new Fa(e, o), this.relay = new Ja(e, o), this.flow = new Qa(e, o);
2411
2411
  }
2412
2412
  setLang(e) {
2413
2413
  this.flow.client.lang = e;
2414
2414
  }
2415
2415
  }
2416
- class ft {
2416
+ class gt {
2417
2417
  static supported() {
2418
2418
  return !!(navigator.credentials && navigator.credentials.create && navigator.credentials.get && window.PublicKeyCredential);
2419
2419
  }
@@ -2433,7 +2433,7 @@ kt.setAttributes = nt(), kt.insert = (n) => {
2433
2433
  }, kt.domAPI = tt(), kt.insertStyleElement = ot(), et()(rn.A, kt);
2434
2434
  const zt = rn.A && rn.A.locals ? rn.A.locals : void 0, or = function(n) {
2435
2435
  function e(t) {
2436
- var o = gi({}, t);
2436
+ var o = fi({}, t);
2437
2437
  return delete o.ref, n(o, t.ref || null);
2438
2438
  }
2439
2439
  return e.$$typeof = wa, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", e;
@@ -2449,7 +2449,7 @@ wt.setAttributes = nt(), wt.insert = (n) => {
2449
2449
  }, wt.domAPI = tt(), wt.insertStyleElement = ot(), et()(sn.A, wt);
2450
2450
  const L = sn.A && sn.A.locals ? sn.A.locals : void 0;
2451
2451
  var ir = G(633), Y = G.n(ir);
2452
- const ar = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-apple", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "20.5 16 15 19", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z" }) })), rr = ({ secondary: n, size: e, fadeOut: t, disabled: o }) => r("svg", Object.assign({ id: "icon-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "4 4 40 40", width: e, height: e, className: Y()(L.checkmark, n && L.secondary, t && L.fadeOut, o && L.disabled) }, { children: r("path", { d: "M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z" }) })), sr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z" }) })), lr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-custom-provider", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: [r("path", { d: "M0 0h24v24H0z", fill: "none" }), r("path", { d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z" })] })), cr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-discord", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 0 127.14 96.36", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" }) })), dr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-exclamation", xmlns: "http://www.w3.org/2000/svg", viewBox: "5 2 13 20", width: n, height: n, className: Y()(L.exclamationMark, e && L.secondary, t && L.disabled) }, { children: r("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" }) })), ur = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ width: n, height: n, viewBox: "0 0 666.66668 666.66717", xmlns: "http://www.w3.org/2000/svg" }, { children: [r("defs", Object.assign({ id: "defs13" }, { children: r("clipPath", Object.assign({ clipPathUnits: "userSpaceOnUse", id: "clipPath25" }, { children: r("path", { d: "M 0,700 H 700 V 0 H 0 Z", id: "path23" }) })) })), r("g", Object.assign({ id: "g17", transform: "matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)" }, { children: r("g", Object.assign({ id: "g19" }, { children: r("g", Object.assign({ id: "g21", clipPath: "url(#clipPath25)" }, { children: [r("g", Object.assign({ id: "g27", transform: "translate(600,350)" }, { children: r("path", { className: Y()(L.facebookIcon, t ? L.disabledOutline : L.outline), d: "m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0", id: "path29" }) })), r("g", Object.assign({ id: "g31", transform: "translate(447.9175,273.6036)" }, { children: r("path", { className: Y()(L.facebookIcon, t ? L.disabledLetter : L.letter), d: "M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z", id: "path33" }) }))] })) })) }))] })), hr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-github", xmlns: "http://www.w3.org/2000/svg", fill: "#fff", viewBox: "0 0 97.63 96", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: [r("path", { d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" }), " "] })), pr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-google", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: L.googleIcon }, { children: [r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.blue), d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.green), d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.yellow), d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.red), d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" }), r("path", { d: "M1 1h22v22H1z", fill: "none" })] })), mr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-linkedin", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, viewBox: "0 0 24 24", height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z" }) })), fr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-mail", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z" }) })), gr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-microsoft", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: L.microsoftIcon }, { children: [r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.blue), x: "1", y: "1", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.green), x: "1", y: "11", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.yellow), x: "11", y: "1", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.red), x: "11", y: "11", width: "9", height: "9" })] })), vr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-passkey", xmlns: "http://www.w3.org/2000/svg", viewBox: "3 1.5 19.5 19", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("g", Object.assign({ id: "icon-passkey-all" }, { children: [r("circle", { id: "icon-passkey-head", cx: "10.5", cy: "6", r: "4.5" }), r("path", { id: "icon-passkey-key", d: "M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z" }), r("path", { id: "icon-passkey-body", d: "M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z" })] })) })), _r = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-password", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z" }) })), yr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z" }) })), br = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z" }) })), kr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-spinner", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Y()(L.loadingSpinner, e && L.disabled) }, { children: [r("path", { d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", opacity: ".25" }), r("path", { d: "M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z" })] })), Ht = ({ name: n, secondary: e, size: t = 18, fadeOut: o, disabled: i }) => r(Zn[n], { size: t, secondary: e, fadeOut: o, disabled: i }), _o = ({ children: n, isLoading: e, isSuccess: t, fadeOut: o, secondary: i, hasIcon: a, maxWidth: s }) => r(C.Fragment, { children: r("div", e ? Object.assign({ className: Y()(L.loadingSpinnerWrapper, L.centerContent, s && L.maxWidth) }, { children: r(Ht, { name: "spinner", secondary: i }) }) : t ? Object.assign({ className: Y()(L.loadingSpinnerWrapper, L.centerContent, s && L.maxWidth) }, { children: r(Ht, { name: "checkmark", secondary: i, fadeOut: o }) }) : Object.assign({ className: a ? L.loadingSpinnerWrapperIcon : L.loadingSpinnerWrapper }, { children: n })) }), wr = () => {
2452
+ const ar = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-apple", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "20.5 16 15 19", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z" }) })), rr = ({ secondary: n, size: e, fadeOut: t, disabled: o }) => r("svg", Object.assign({ id: "icon-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "4 4 40 40", width: e, height: e, className: Y()(L.checkmark, n && L.secondary, t && L.fadeOut, o && L.disabled) }, { children: r("path", { d: "M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z" }) })), sr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z" }) })), lr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-custom-provider", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: [r("path", { d: "M0 0h24v24H0z", fill: "none" }), r("path", { d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z" })] })), cr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-discord", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 0 127.14 96.36", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" }) })), dr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-exclamation", xmlns: "http://www.w3.org/2000/svg", viewBox: "5 2 13 20", width: n, height: n, className: Y()(L.exclamationMark, e && L.secondary, t && L.disabled) }, { children: r("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" }) })), ur = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ width: n, height: n, viewBox: "0 0 666.66668 666.66717", xmlns: "http://www.w3.org/2000/svg" }, { children: [r("defs", Object.assign({ id: "defs13" }, { children: r("clipPath", Object.assign({ clipPathUnits: "userSpaceOnUse", id: "clipPath25" }, { children: r("path", { d: "M 0,700 H 700 V 0 H 0 Z", id: "path23" }) })) })), r("g", Object.assign({ id: "g17", transform: "matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)" }, { children: r("g", Object.assign({ id: "g19" }, { children: r("g", Object.assign({ id: "g21", clipPath: "url(#clipPath25)" }, { children: [r("g", Object.assign({ id: "g27", transform: "translate(600,350)" }, { children: r("path", { className: Y()(L.facebookIcon, t ? L.disabledOutline : L.outline), d: "m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0", id: "path29" }) })), r("g", Object.assign({ id: "g31", transform: "translate(447.9175,273.6036)" }, { children: r("path", { className: Y()(L.facebookIcon, t ? L.disabledLetter : L.letter), d: "M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z", id: "path33" }) }))] })) })) }))] })), hr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-github", xmlns: "http://www.w3.org/2000/svg", fill: "#fff", viewBox: "0 0 97.63 96", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: [r("path", { d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" }), " "] })), pr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-google", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: L.googleIcon }, { children: [r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.blue), d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.green), d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.yellow), d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.red), d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" }), r("path", { d: "M1 1h22v22H1z", fill: "none" })] })), mr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-linkedin", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, viewBox: "0 0 24 24", height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z" }) })), gr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-mail", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z" }) })), fr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-microsoft", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: L.microsoftIcon }, { children: [r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.blue), x: "1", y: "1", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.green), x: "1", y: "11", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.yellow), x: "11", y: "1", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.red), x: "11", y: "11", width: "9", height: "9" })] })), vr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-passkey", xmlns: "http://www.w3.org/2000/svg", viewBox: "3 1.5 19.5 19", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("g", Object.assign({ id: "icon-passkey-all" }, { children: [r("circle", { id: "icon-passkey-head", cx: "10.5", cy: "6", r: "4.5" }), r("path", { id: "icon-passkey-key", d: "M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z" }), r("path", { id: "icon-passkey-body", d: "M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z" })] })) })), _r = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-password", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z" }) })), yr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z" }) })), br = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z" }) })), kr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-spinner", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Y()(L.loadingSpinner, e && L.disabled) }, { children: [r("path", { d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", opacity: ".25" }), r("path", { d: "M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z" })] })), Ht = ({ name: n, secondary: e, size: t = 18, fadeOut: o, disabled: i }) => r(Zn[n], { size: t, secondary: e, fadeOut: o, disabled: i }), _o = ({ children: n, isLoading: e, isSuccess: t, fadeOut: o, secondary: i, hasIcon: a, maxWidth: s }) => r(C.Fragment, { children: r("div", e ? Object.assign({ className: Y()(L.loadingSpinnerWrapper, L.centerContent, s && L.maxWidth) }, { children: r(Ht, { name: "spinner", secondary: i }) }) : t ? Object.assign({ className: Y()(L.loadingSpinnerWrapper, L.centerContent, s && L.maxWidth) }, { children: r(Ht, { name: "checkmark", secondary: i, fadeOut: o }) }) : Object.assign({ className: a ? L.loadingSpinnerWrapperIcon : L.loadingSpinnerWrapper }, { children: n })) }), wr = () => {
2453
2453
  const { setLoadingAction: n } = (0, _.useContext)(pe);
2454
2454
  return (0, _.useEffect)(() => {
2455
2455
  n(null);
@@ -2477,12 +2477,12 @@ const Ce = ln.A && ln.A.locals ? ln.A.locals : void 0, Sr = () => {
2477
2477
  }
2478
2478
  return j;
2479
2479
  }(n, ["uiAction", "title", "children", "secondary", "dangerous", "autofocus", "showLastUsed", "onClick", "icon"]);
2480
- const h = (0, _.useRef)(null), { uiState: g, isDisabled: m } = (0, _.useContext)(pe);
2480
+ const h = (0, _.useRef)(null), { uiState: f, isDisabled: m } = (0, _.useContext)(pe);
2481
2481
  (0, _.useEffect)(() => {
2482
2482
  const { current: S } = h;
2483
2483
  S && s && S.focus();
2484
2484
  }, [s]);
2485
- const x = (0, _.useMemo)(() => e && g.loadingAction === e || u.isLoading, [u, e, g]), O = (0, _.useMemo)(() => e && g.succeededAction === e || u.isSuccess, [u, e, g]), A = (0, _.useMemo)(() => m || u.disabled, [u, m]);
2485
+ const x = (0, _.useMemo)(() => e && f.loadingAction === e || u.isLoading, [u, e, f]), O = (0, _.useMemo)(() => e && f.succeededAction === e || u.isSuccess, [u, e, f]), A = (0, _.useMemo)(() => m || u.disabled, [u, m]);
2486
2486
  return r("button", Object.assign({ part: a ? "button dangerous-button" : i ? "button secondary-button" : "button primary-button", title: t, ref: h, type: "submit", disabled: A, onClick: d, className: Y()(Ce.button, a ? Ce.dangerous : i ? Ce.secondary : Ce.primary) }, { children: r(_o, Object.assign({ isLoading: x, isSuccess: O, secondary: !0, hasIcon: !!l, maxWidth: !0 }, { children: [l ? r(Ht, { name: l, secondary: i, disabled: A }) : null, r("div", Object.assign({ className: Ce.caption }, { children: [r("span", { children: o }), c ? r(Sr, {}) : null] }))] })) }));
2487
2487
  }, Ve = (n) => {
2488
2488
  var e, t, o, i, a, { label: s } = n, c = function(m, x) {
@@ -2499,11 +2499,11 @@ const Ce = ln.A && ln.A.locals ? ln.A.locals : void 0, Sr = () => {
2499
2499
  const { current: m } = d;
2500
2500
  m && c.autofocus && (m.focus(), m.select());
2501
2501
  }, [c.autofocus]);
2502
- const g = (0, _.useMemo)(() => {
2502
+ const f = (0, _.useMemo)(() => {
2503
2503
  var m;
2504
2504
  return c.markOptional && !(!((m = c.flowInput) === null || m === void 0) && m.required) ? `${c.placeholder} (${u("labels.optional")})` : c.placeholder;
2505
2505
  }, [c.markOptional, c.placeholder, c.flowInput, u]);
2506
- return r("div", Object.assign({ className: Ce.inputWrapper }, { children: r("input", Object.assign({ part: "input text-input", required: (e = c.flowInput) === null || e === void 0 ? void 0 : e.required, maxLength: (t = c.flowInput) === null || t === void 0 ? void 0 : t.max_length, minLength: (o = c.flowInput) === null || o === void 0 ? void 0 : o.min_length, hidden: (i = c.flowInput) === null || i === void 0 ? void 0 : i.hidden }, c, { ref: d, "aria-label": g, placeholder: g, className: Y()(Ce.input, !!(!((a = c.flowInput) === null || a === void 0) && a.error) && c.markError && Ce.error), disabled: h })) }));
2506
+ return r("div", Object.assign({ className: Ce.inputWrapper }, { children: r("input", Object.assign({ part: "input text-input", required: (e = c.flowInput) === null || e === void 0 ? void 0 : e.required, maxLength: (t = c.flowInput) === null || t === void 0 ? void 0 : t.max_length, minLength: (o = c.flowInput) === null || o === void 0 ? void 0 : o.min_length, hidden: (i = c.flowInput) === null || i === void 0 ? void 0 : i.hidden }, c, { ref: d, "aria-label": f, placeholder: f, className: Y()(Ce.input, !!(!((a = c.flowInput) === null || a === void 0) && a.error) && c.markError && Ce.error), disabled: h })) }));
2507
2507
  }, Oe = ({ children: n }) => r("section", Object.assign({ className: zt.content }, { children: n })), oe = ({ onSubmit: n, children: e, hidden: t, maxWidth: o }) => t ? null : r("form", Object.assign({ onSubmit: n, className: Ce.form }, { children: r("ul", Object.assign({ className: Ce.ul }, { children: (0, C.toChildArray)(e).map((i, a) => r("li", Object.assign({ part: "form-item", className: Y()(Ce.li, o ? Ce.maxWidth : null) }, { children: i }), a)) })) }));
2508
2508
  var cn = G(111), xt = {};
2509
2509
  xt.setAttributes = nt(), xt.insert = (n) => {
@@ -2521,9 +2521,9 @@ const $i = dn.A && dn.A.locals ? dn.A.locals : void 0, Pe = ({ state: n, error:
2521
2521
  var d, l;
2522
2522
  if (((d = n == null ? void 0 : n.error) === null || d === void 0 ? void 0 : d.code) == "form_data_invalid_error") for (const u of Object.values(n == null ? void 0 : n.actions)) {
2523
2523
  const h = u == null ? void 0 : u(null);
2524
- let g = !1;
2525
- for (const m of Object.values(h == null ? void 0 : h.inputs)) if (!((l = m.error) === null || l === void 0) && l.code) return c(Object.assign(Object.assign({}, s), { error: m.error })), void (g = !0);
2526
- g || c(Object.assign(Object.assign({}, s), { error: n.error }));
2524
+ let f = !1;
2525
+ for (const m of Object.values(h == null ? void 0 : h.inputs)) if (!((l = m.error) === null || l === void 0) && l.code) return c(Object.assign(Object.assign({}, s), { error: m.error })), void (f = !0);
2526
+ f || c(Object.assign(Object.assign({}, s), { error: n.error }));
2527
2527
  }
2528
2528
  else n != null && n.error && c(Object.assign(Object.assign({}, s), { error: n == null ? void 0 : n.error }));
2529
2529
  }, [n]), r("section", Object.assign({ part: "error", className: $i.errorBox, hidden: !(!((o = s.error) === null || o === void 0) && o.code) && !(t != null && t.code) && !e }, { children: [r("span", { children: r(Ht, { name: "exclamation", size: 15 }) }), r("span", Object.assign({ id: "errorMessage", part: "error-text" }, { children: a(e ? `errors.${e.code}` : `flowErrors.${((i = s.error) === null || i === void 0 ? void 0 : i.code) || (t == null ? void 0 : t.code)}`) }))] }));
@@ -2549,13 +2549,13 @@ const Jt = hn.A && hn.A.locals ? hn.A.locals : void 0, Yn = (n) => {
2549
2549
  }(n, ["loadingSpinnerPosition", "dangerous", "onClick", "uiAction"]);
2550
2550
  const { t: s } = (0, _.useContext)(Z.TranslateContext), { uiState: c, isDisabled: d } = (0, _.useContext)(pe), [l, u] = (0, _.useState)();
2551
2551
  let h;
2552
- const g = (P) => {
2552
+ const f = (P) => {
2553
2553
  P.preventDefault(), u(!0);
2554
2554
  }, m = (P) => {
2555
2555
  P.preventDefault(), u(!1);
2556
2556
  }, x = (0, _.useMemo)(() => i && c.loadingAction === i || a.isLoading, [a, i, c]), O = (0, _.useMemo)(() => i && c.succeededAction === i || a.isSuccess, [a, i, c]), A = (0, _.useCallback)((P) => {
2557
2557
  P.preventDefault(), u(!1), o(P);
2558
- }, [o]), S = (0, _.useCallback)(() => r(C.Fragment, { children: [l ? r(C.Fragment, { children: [r(Yn, Object.assign({ onClick: A }, { children: s("labels.yes") })), " / ", r(Yn, Object.assign({ onClick: m }, { children: s("labels.no") })), " "] }) : null, r("button", Object.assign({}, a, { onClick: t ? g : o, disabled: l || a.disabled || d, part: "link", className: Y()(Jt.link, t ? Jt.danger : null) }, { children: a.children }))] }), [l, t, o, A, a, s, d]);
2558
+ }, [o]), S = (0, _.useCallback)(() => r(C.Fragment, { children: [l ? r(C.Fragment, { children: [r(Yn, Object.assign({ onClick: A }, { children: s("labels.yes") })), " / ", r(Yn, Object.assign({ onClick: m }, { children: s("labels.no") })), " "] }) : null, r("button", Object.assign({}, a, { onClick: t ? f : o, disabled: l || a.disabled || d, part: "link", className: Y()(Jt.link, t ? Jt.danger : null) }, { children: a.children }))] }), [l, t, o, A, a, s, d]);
2559
2559
  return r(C.Fragment, { children: r("span", Object.assign({ className: Y()(Jt.linkWrapper, e === "right" ? Jt.reverse : null), hidden: a.hidden, onMouseEnter: () => {
2560
2560
  h && window.clearTimeout(h);
2561
2561
  }, onMouseLeave: () => {
@@ -2602,7 +2602,7 @@ var Pt = function(n, e, t, o) {
2602
2602
  };
2603
2603
  const xr = (n) => {
2604
2604
  var e, t, o, i, a, s, c, d, l;
2605
- const { t: u } = (0, _.useContext)(Z.TranslateContext), { init: h, hanko: g, initialComponentName: m, setLoadingAction: x, uiState: O, setUIState: A, stateHandler: S, hidePasskeyButtonOnLogin: P, lastLogin: j } = (0, _.useContext)(pe), [U, N] = (0, _.useState)(null), [ae, be] = (0, _.useState)(O.username || O.email), { flowState: re } = Me(n.state), we = ft.supported(), [M, H] = (0, _.useState)(void 0), [_e, Te] = (0, _.useState)(null), [Ee, $e] = (0, _.useState)(!1), se = (k) => {
2605
+ const { t: u } = (0, _.useContext)(Z.TranslateContext), { init: h, hanko: f, initialComponentName: m, setLoadingAction: x, uiState: O, setUIState: A, stateHandler: S, hidePasskeyButtonOnLogin: P, lastLogin: j } = (0, _.useContext)(pe), [U, N] = (0, _.useState)(null), [ae, be] = (0, _.useState)(O.username || O.email), { flowState: re } = Me(n.state), we = gt.supported(), [M, H] = (0, _.useState)(void 0), [_e, Te] = (0, _.useState)(null), [Ee, $e] = (0, _.useState)(!1), se = (k) => {
2606
2606
  if (k.preventDefault(), k.target instanceof HTMLInputElement) {
2607
2607
  const { value: p } = k.target;
2608
2608
  be(p), le(p);
@@ -2637,28 +2637,28 @@ const xr = (n) => {
2637
2637
  }, []), r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: u("headlines.signIn") }), r(Pe, { state: re, error: M }), Ie ? r(C.Fragment, { children: [r(oe, Object.assign({ onSubmit: (k) => Pt(void 0, void 0, void 0, function* () {
2638
2638
  k.preventDefault(), x("email-submit");
2639
2639
  const p = yield re.actions.continue_with_login_identifier({ [U]: ae }).run();
2640
- le(ae), x(null), yield g.flow.run(p, S);
2640
+ le(ae), x(null), yield f.flow.run(p, S);
2641
2641
  }), maxWidth: !0 }, { children: [Ie.email ? r(Ve, { type: "email", autoComplete: "username webauthn", autoCorrect: "off", flowInput: Ie.email, onInput: se, value: ae, placeholder: u("labels.email"), pattern: "^[^@]+@[^@]+\\.[^@]+$" }) : Ie.username ? r(Ve, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: Ie.username, onInput: se, value: ae, placeholder: u("labels.username") }) : r(Ve, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: Ie.identifier, onInput: se, value: ae, placeholder: u("labels.emailOrUsername") }), r(ne, Object.assign({ uiAction: "email-submit" }, { children: u("labels.continue") }))] })), r(yo, Object.assign({ hidden: !me }, { children: u("labels.or") }))] }) : null, !((i = (o = re.actions).webauthn_generate_request_options) === null || i === void 0) && i.call(o, null) && !P ? r(oe, Object.assign({ onSubmit: (k) => ((p) => Pt(void 0, void 0, void 0, function* () {
2642
2642
  p.preventDefault(), x("passkey-submit");
2643
2643
  const y = yield re.actions.webauthn_generate_request_options(null).run();
2644
- yield g.flow.run(y, S);
2644
+ yield f.flow.run(y, S);
2645
2645
  }))(k) }, { children: r(ne, Object.assign({ uiAction: "passkey-submit", secondary: !0, title: we ? null : u("labels.webauthnUnsupported"), disabled: !we, icon: "passkey" }, { children: u("labels.signInPasskey") })) })) : null, !((s = (a = re.actions).thirdparty_oauth) === null || s === void 0) && s.call(a, null) ? (c = re.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || c === void 0 ? void 0 : c.map((k) => r(oe, Object.assign({ onSubmit: (p) => ((y, T) => Pt(void 0, void 0, void 0, function* () {
2646
2646
  y.preventDefault(), Te(T);
2647
2647
  const K = yield re.actions.thirdparty_oauth({ provider: T, redirect_to: window.location.toString() }).run();
2648
- K.error && Te(null), yield g.flow.run(K, S);
2648
+ K.error && Te(null), yield f.flow.run(K, S);
2649
2649
  }))(p, k.value) }, { children: r(ne, Object.assign({ isLoading: k.value == _e, secondary: !0, icon: k.value.startsWith("custom_") ? "customProvider" : k.value, showLastUsed: (j == null ? void 0 : j.login_method) == "third_party" && (j == null ? void 0 : j.third_party_provider) == k.value }, { children: u("labels.signInWith", { provider: k.name }) })) }), k.value)) : null, ((l = (d = re.actions).remember_me) === null || l === void 0 ? void 0 : l.call(d, null)) && r(C.Fragment, { children: [r(Pn, {}), r(bo, { required: !1, type: "checkbox", label: u("labels.staySignedIn"), checked: Ee, onChange: (k) => Pt(void 0, void 0, void 0, function* () {
2650
2650
  const p = yield re.actions.remember_me({ remember_me: !Ee }).run();
2651
- $e((y) => !y), yield g.flow.run(p, S);
2651
+ $e((y) => !y), yield f.flow.run(p, S);
2652
2652
  }) })] })] }), r(Re, Object.assign({ hidden: m !== "auth" }, { children: [r("span", { hidden: !0 }), r(ee, Object.assign({ uiAction: "switch-flow", onClick: (k) => Pt(void 0, void 0, void 0, function* () {
2653
2653
  k.preventDefault(), h("registration");
2654
2654
  }), loadingSpinnerPosition: "left" }, { children: u("labels.dontHaveAnAccount") }))] }))] });
2655
2655
  }, Ar = (n) => {
2656
2656
  var { index: e, focus: t, digit: o = "" } = n, i = function(l, u) {
2657
2657
  var h = {};
2658
- for (var g in l) Object.prototype.hasOwnProperty.call(l, g) && u.indexOf(g) < 0 && (h[g] = l[g]);
2658
+ for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && u.indexOf(f) < 0 && (h[f] = l[f]);
2659
2659
  if (l != null && typeof Object.getOwnPropertySymbols == "function") {
2660
2660
  var m = 0;
2661
- for (g = Object.getOwnPropertySymbols(l); m < g.length; m++) u.indexOf(g[m]) < 0 && Object.prototype.propertyIsEnumerable.call(l, g[m]) && (h[g[m]] = l[g[m]]);
2661
+ for (f = Object.getOwnPropertySymbols(l); m < f.length; m++) u.indexOf(f[m]) < 0 && Object.prototype.propertyIsEnumerable.call(l, f[m]) && (h[f[m]] = l[f[m]]);
2662
2662
  }
2663
2663
  return h;
2664
2664
  }(n, ["index", "focus", "digit"]);
@@ -2687,12 +2687,12 @@ const xr = (n) => {
2687
2687
  a(A), t(O);
2688
2688
  }, h = (m) => {
2689
2689
  m.key === "Backspace" ? (m.preventDefault(), l(""), d()) : m.key === "Delete" ? (m.preventDefault(), l("")) : m.key === "ArrowLeft" ? (m.preventDefault(), d()) : m.key === "ArrowRight" ? (m.preventDefault(), c()) : m.key !== " " && m.key !== "Spacebar" && m.key !== "Space" || m.preventDefault();
2690
- }, g = (m) => {
2690
+ }, f = (m) => {
2691
2691
  m.target instanceof HTMLInputElement && l(m.target.value), c();
2692
2692
  };
2693
2693
  return (0, _.useEffect)(() => {
2694
2694
  n.length === 0 && a(0);
2695
- }, [n]), r("div", Object.assign({ className: Ce.passcodeInputWrapper }, { children: Array.from(Array(e)).map((m, x) => r(Ar, { name: "passcode", index: x, focus: i === x, digit: n[x], onKeyDown: h, onInput: g, onPaste: u, onFocus: () => ((O) => {
2695
+ }, [n]), r("div", Object.assign({ className: Ce.passcodeInputWrapper }, { children: Array.from(Array(e)).map((m, x) => r(Ar, { name: "passcode", index: x, focus: i === x, digit: n[x], onKeyDown: h, onInput: f, onPaste: u, onFocus: () => ((O) => {
2696
2696
  a(O);
2697
2697
  })(x), disabled: o }, x)) }));
2698
2698
  };
@@ -2728,7 +2728,7 @@ var Yt = function(n, e, t, o) {
2728
2728
  };
2729
2729
  const Or = (n) => {
2730
2730
  var e, t;
2731
- const { t: o } = (0, _.useContext)(Z.TranslateContext), { flowState: i } = Me(n.state), { hanko: a, uiState: s, setUIState: c, setLoadingAction: d, setSucceededAction: l, stateHandler: u } = (0, _.useContext)(pe), [h, g] = (0, _.useState)(), [m, x] = (0, _.useState)(i.payload.resend_after), [O, A] = (0, _.useState)([]), S = (0, _.useMemo)(() => {
2731
+ const { t: o } = (0, _.useContext)(Z.TranslateContext), { flowState: i } = Me(n.state), { hanko: a, uiState: s, setUIState: c, setLoadingAction: d, setSucceededAction: l, stateHandler: u } = (0, _.useContext)(pe), [h, f] = (0, _.useState)(), [m, x] = (0, _.useState)(i.payload.resend_after), [O, A] = (0, _.useState)([]), S = (0, _.useMemo)(() => {
2732
2732
  var j;
2733
2733
  return ((j = i.error) === null || j === void 0 ? void 0 : j.code) === "passcode_max_attempts_reached";
2734
2734
  }, [i]), P = (0, _.useCallback)((j) => Yt(void 0, void 0, void 0, function* () {
@@ -2741,7 +2741,7 @@ const Or = (n) => {
2741
2741
  }, [i, l]), (0, _.useEffect)(() => {
2742
2742
  h <= 0 && s.succeededAction;
2743
2743
  }, [s, h]), (0, _.useEffect)(() => {
2744
- const j = h > 0 && setInterval(() => g(h - 1), 1e3);
2744
+ const j = h > 0 && setInterval(() => f(h - 1), 1e3);
2745
2745
  return () => clearInterval(j);
2746
2746
  }, [h]), (0, _.useEffect)(() => {
2747
2747
  const j = m > 0 && setInterval(() => {
@@ -2795,19 +2795,19 @@ var qn = function(n, e, t, o) {
2795
2795
  };
2796
2796
  const Pr = (n) => {
2797
2797
  var e, t, o, i, a, s, c, d;
2798
- const { t: l } = (0, _.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: g } = (0, _.useContext)(pe), { flowState: m } = Me(n.state);
2798
+ const { t: l } = (0, _.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: f } = (0, _.useContext)(pe), { flowState: m } = Me(n.state);
2799
2799
  return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: l("headlines.registerAuthenticator") }), r(Pe, { state: m }), r(W, { children: l("texts.setupPasskey") }), r(oe, Object.assign({ onSubmit: (x) => qn(void 0, void 0, void 0, function* () {
2800
2800
  x.preventDefault(), h("passkey-submit");
2801
2801
  const O = yield m.actions.webauthn_generate_creation_options(null).run();
2802
- yield u.flow.run(O, g);
2802
+ yield u.flow.run(O, f);
2803
2803
  }) }, { children: r(ne, Object.assign({ uiAction: "passkey-submit", autofocus: !0, icon: "passkey" }, { children: l("labels.registerAuthenticator") })) }))] }), r(Re, Object.assign({ hidden: !(!((t = (e = m.actions).skip) === null || t === void 0) && t.call(e, null)) && !(!((i = (o = m.actions).back) === null || i === void 0) && i.call(o, null)) }, { children: [r(ee, Object.assign({ uiAction: "back", onClick: (x) => qn(void 0, void 0, void 0, function* () {
2804
2804
  x.preventDefault(), h("back");
2805
2805
  const O = yield m.actions.back(null).run();
2806
- h(null), yield u.flow.run(O, g);
2806
+ h(null), yield u.flow.run(O, f);
2807
2807
  }), loadingSpinnerPosition: "right", hidden: !(!((s = (a = m.actions).back) === null || s === void 0) && s.call(a, null)) }, { children: l("labels.back") })), r(ee, Object.assign({ uiAction: "skip", onClick: (x) => qn(void 0, void 0, void 0, function* () {
2808
2808
  x.preventDefault(), h("skip");
2809
2809
  const O = yield m.actions.skip(null).run();
2810
- h(null), yield u.flow.run(O, g);
2810
+ h(null), yield u.flow.run(O, f);
2811
2811
  }), loadingSpinnerPosition: "left", hidden: !(!((d = (c = m.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: l("labels.skip") }))] }))] });
2812
2812
  };
2813
2813
  var It = function(n, e, t, o) {
@@ -2837,7 +2837,7 @@ var It = function(n, e, t, o) {
2837
2837
  };
2838
2838
  const Er = (n) => {
2839
2839
  var e, t, o, i;
2840
- const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, _.useState)(), [g, m] = (0, _.useState)(), x = (P) => It(void 0, void 0, void 0, function* () {
2840
+ const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, _.useState)(), [f, m] = (0, _.useState)(), x = (P) => It(void 0, void 0, void 0, function* () {
2841
2841
  P.preventDefault(), d("password-recovery");
2842
2842
  const j = yield l.actions.continue_to_passcode_confirmation_recovery(null).run();
2843
2843
  d(null), yield s.flow.run(j, c);
@@ -2850,15 +2850,15 @@ const Er = (n) => {
2850
2850
  return r(ee, Object.assign({ hidden: !(!((j = (P = l.actions).continue_to_passcode_confirmation_recovery) === null || j === void 0) && j.call(P, null)), uiAction: "password-recovery", onClick: x, loadingSpinnerPosition: "left" }, { children: a("labels.forgotYourPassword") }));
2851
2851
  }, [x, a]), S = (0, _.useMemo)(() => r(ee, Object.assign({ uiAction: "choose-login-method", onClick: O, loadingSpinnerPosition: "left" }, { children: "Choose another method" })), [O]);
2852
2852
  return (0, _.useEffect)(() => {
2853
- const P = g > 0 && setInterval(() => m(g - 1), 1e3);
2853
+ const P = f > 0 && setInterval(() => m(f - 1), 1e3);
2854
2854
  return () => clearInterval(P);
2855
- }, [g]), r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: a("headlines.loginPassword") }), r(Pe, { state: l }), r(oe, Object.assign({ onSubmit: (P) => It(void 0, void 0, void 0, function* () {
2855
+ }, [f]), r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: a("headlines.loginPassword") }), r(Pe, { state: l }), r(oe, Object.assign({ onSubmit: (P) => It(void 0, void 0, void 0, function* () {
2856
2856
  P.preventDefault(), d("password-submit");
2857
2857
  const j = yield l.actions.password_login({ password: u }).run();
2858
2858
  d(null), yield s.flow.run(j, c);
2859
2859
  }) }, { children: [r(Ve, { type: "password", flowInput: l.actions.password_login(null).inputs.password, autocomplete: "current-password", placeholder: a("labels.password"), onInput: (P) => It(void 0, void 0, void 0, function* () {
2860
2860
  P.target instanceof HTMLInputElement && h(P.target.value);
2861
- }), autofocus: !0 }), r(ne, Object.assign({ uiAction: "password-submit", disabled: g > 0 }, { children: g > 0 ? a("labels.passwordRetryAfter", { passwordRetryAfter: g }) : a("labels.signIn") }))] })), !((t = (e = l.actions).continue_to_login_method_chooser) === null || t === void 0) && t.call(e, null) ? A : null] }), r(Re, { children: [r(ee, Object.assign({ uiAction: "back", onClick: (P) => It(void 0, void 0, void 0, function* () {
2861
+ }), autofocus: !0 }), r(ne, Object.assign({ uiAction: "password-submit", disabled: f > 0 }, { children: f > 0 ? a("labels.passwordRetryAfter", { passwordRetryAfter: f }) : a("labels.signIn") }))] })), !((t = (e = l.actions).continue_to_login_method_chooser) === null || t === void 0) && t.call(e, null) ? A : null] }), r(Re, { children: [r(ee, Object.assign({ uiAction: "back", onClick: (P) => It(void 0, void 0, void 0, function* () {
2862
2862
  P.preventDefault(), d("back");
2863
2863
  const j = yield l.actions.back(null).run();
2864
2864
  d(null), yield s.flow.run(j, c);
@@ -2926,22 +2926,22 @@ var Qt = function(n, e, t, o) {
2926
2926
  };
2927
2927
  const Dr = (n) => {
2928
2928
  var e, t, o, i, a, s;
2929
- const { t: c } = (0, _.useContext)(Z.TranslateContext), { hanko: d, setLoadingAction: l, stateHandler: u, lastLogin: h } = (0, _.useContext)(pe), { flowState: g } = Me(n.state);
2930
- return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: c("headlines.selectLoginMethod") }), r(Pe, { flowError: g == null ? void 0 : g.error }), r(W, { children: c("texts.howDoYouWantToLogin") }), r(oe, Object.assign({ hidden: !(!((t = (e = g.actions).continue_to_passcode_confirmation) === null || t === void 0) && t.call(e, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2929
+ const { t: c } = (0, _.useContext)(Z.TranslateContext), { hanko: d, setLoadingAction: l, stateHandler: u, lastLogin: h } = (0, _.useContext)(pe), { flowState: f } = Me(n.state);
2930
+ return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: c("headlines.selectLoginMethod") }), r(Pe, { flowError: f == null ? void 0 : f.error }), r(W, { children: c("texts.howDoYouWantToLogin") }), r(oe, Object.assign({ hidden: !(!((t = (e = f.actions).continue_to_passcode_confirmation) === null || t === void 0) && t.call(e, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2931
2931
  m.preventDefault(), l("passcode-submit");
2932
- const x = yield g.actions.continue_to_passcode_confirmation(null).run();
2932
+ const x = yield f.actions.continue_to_passcode_confirmation(null).run();
2933
2933
  l(null), yield d.flow.run(x, u);
2934
- }) }, { children: r(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "mail" }, { children: c("labels.passcode") })) })), r(oe, Object.assign({ hidden: !(!((i = (o = g.actions).continue_to_password_login) === null || i === void 0) && i.call(o, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2934
+ }) }, { children: r(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "mail" }, { children: c("labels.passcode") })) })), r(oe, Object.assign({ hidden: !(!((i = (o = f.actions).continue_to_password_login) === null || i === void 0) && i.call(o, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2935
2935
  m.preventDefault(), l("password-submit");
2936
- const x = yield g.actions.continue_to_password_login(null).run();
2936
+ const x = yield f.actions.continue_to_password_login(null).run();
2937
2937
  l(null), yield d.flow.run(x, u);
2938
- }) }, { children: r(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "password" }, { children: c("labels.password") })) })), r(oe, Object.assign({ hidden: !(!((s = (a = g.actions).webauthn_generate_request_options) === null || s === void 0) && s.call(a, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2938
+ }) }, { children: r(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "password" }, { children: c("labels.password") })) })), r(oe, Object.assign({ hidden: !(!((s = (a = f.actions).webauthn_generate_request_options) === null || s === void 0) && s.call(a, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2939
2939
  m.preventDefault(), l("passkey-submit");
2940
- const x = yield g.actions.webauthn_generate_request_options(null).run();
2940
+ const x = yield f.actions.webauthn_generate_request_options(null).run();
2941
2941
  l(null), yield d.flow.run(x, u);
2942
2942
  }) }, { children: r(ne, Object.assign({ secondary: !0, uiAction: "passkey-submit", icon: "passkey" }, { children: c("labels.passkey") })) }))] }), r(Re, { children: r(ee, Object.assign({ uiAction: "back", onClick: (m) => Qt(void 0, void 0, void 0, function* () {
2943
2943
  m.preventDefault(), l("back");
2944
- const x = yield g.actions.back(null).run();
2944
+ const x = yield f.actions.back(null).run();
2945
2945
  l(null), yield d.flow.run(x, u);
2946
2946
  }), loadingSpinnerPosition: "right" }, { children: c("labels.back") })) })] });
2947
2947
  };
@@ -2972,7 +2972,7 @@ var Gt = function(n, e, t, o) {
2972
2972
  };
2973
2973
  const jr = (n) => {
2974
2974
  var e, t, o, i, a, s, c;
2975
- const { t: d } = (0, _.useContext)(Z.TranslateContext), { init: l, hanko: u, uiState: h, setUIState: g, stateHandler: m, setLoadingAction: x, initialComponentName: O } = (0, _.useContext)(pe), { flowState: A } = Me(n.state), S = (t = (e = A.actions).register_login_identifier) === null || t === void 0 ? void 0 : t.call(e, null).inputs, P = !(!(S != null && S.email) || !(S != null && S.username)), [j, U] = (0, _.useState)(void 0), [N, ae] = (0, _.useState)(null), [be, re] = (0, _.useState)(!1), we = (0, _.useMemo)(() => {
2975
+ const { t: d } = (0, _.useContext)(Z.TranslateContext), { init: l, hanko: u, uiState: h, setUIState: f, stateHandler: m, setLoadingAction: x, initialComponentName: O } = (0, _.useContext)(pe), { flowState: A } = Me(n.state), S = (t = (e = A.actions).register_login_identifier) === null || t === void 0 ? void 0 : t.call(e, null).inputs, P = !(!(S != null && S.email) || !(S != null && S.username)), [j, U] = (0, _.useState)(void 0), [N, ae] = (0, _.useState)(null), [be, re] = (0, _.useState)(!1), we = (0, _.useMemo)(() => {
2976
2976
  var M, H;
2977
2977
  return !!(!((H = (M = A.actions).thirdparty_oauth) === null || H === void 0) && H.call(M, null));
2978
2978
  }, [A.actions]);
@@ -2990,12 +2990,12 @@ const jr = (n) => {
2990
2990
  }), maxWidth: !0 }, { children: [S.username ? r(Ve, { markOptional: P, markError: P, type: "text", autoComplete: "username", autoCorrect: "off", flowInput: S.username, onInput: (M) => {
2991
2991
  if (M.preventDefault(), M.target instanceof HTMLInputElement) {
2992
2992
  const { value: H } = M.target;
2993
- g((_e) => Object.assign(Object.assign({}, _e), { username: H }));
2993
+ f((_e) => Object.assign(Object.assign({}, _e), { username: H }));
2994
2994
  }
2995
2995
  }, value: h.username, placeholder: d("labels.username") }) : null, S.email ? r(Ve, { markOptional: P, markError: P, type: "email", autoComplete: "email", autoCorrect: "off", flowInput: S.email, onInput: (M) => {
2996
2996
  if (M.preventDefault(), M.target instanceof HTMLInputElement) {
2997
2997
  const { value: H } = M.target;
2998
- g((_e) => Object.assign(Object.assign({}, _e), { email: H }));
2998
+ f((_e) => Object.assign(Object.assign({}, _e), { email: H }));
2999
2999
  }
3000
3000
  }, value: h.email, placeholder: d("labels.email"), pattern: "^.*[^0-9]+$" }) : null, r(ne, Object.assign({ uiAction: "email-submit", autofocus: !0 }, { children: d("labels.continue") }))] })), r(yo, Object.assign({ hidden: !we }, { children: d("labels.or") }))] }) : null, !((i = (o = A.actions).thirdparty_oauth) === null || i === void 0) && i.call(o, null) ? (a = A.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || a === void 0 ? void 0 : a.map((M) => r(oe, Object.assign({ onSubmit: (H) => ((_e, Te) => Gt(void 0, void 0, void 0, function* () {
3001
3001
  _e.preventDefault(), ae(Te);
@@ -3035,21 +3035,21 @@ var Xt = function(n, e, t, o) {
3035
3035
  };
3036
3036
  const Lr = (n) => {
3037
3037
  var e, t, o, i, a, s, c, d;
3038
- const { t: l } = (0, _.useContext)(Z.TranslateContext), { hanko: u, stateHandler: h, setLoadingAction: g } = (0, _.useContext)(pe), { flowState: m } = Me(n.state), [x, O] = (0, _.useState)();
3038
+ const { t: l } = (0, _.useContext)(Z.TranslateContext), { hanko: u, stateHandler: h, setLoadingAction: f } = (0, _.useContext)(pe), { flowState: m } = Me(n.state), [x, O] = (0, _.useState)();
3039
3039
  return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: l("headlines.registerPassword") }), r(Pe, { state: m }), r(W, { children: l("texts.passwordFormatHint", { minLength: m.actions.register_password(null).inputs.new_password.min_length, maxLength: 72 }) }), r(oe, Object.assign({ onSubmit: (A) => Xt(void 0, void 0, void 0, function* () {
3040
- A.preventDefault(), g("password-submit");
3040
+ A.preventDefault(), f("password-submit");
3041
3041
  const S = yield m.actions.register_password({ new_password: x }).run();
3042
- g(null), yield u.flow.run(S, h);
3042
+ f(null), yield u.flow.run(S, h);
3043
3043
  }) }, { children: [r(Ve, { type: "password", autocomplete: "new-password", flowInput: m.actions.register_password(null).inputs.new_password, placeholder: l("labels.newPassword"), onInput: (A) => Xt(void 0, void 0, void 0, function* () {
3044
3044
  A.target instanceof HTMLInputElement && O(A.target.value);
3045
3045
  }), autofocus: !0 }), r(ne, Object.assign({ uiAction: "password-submit" }, { children: l("labels.continue") }))] }))] }), r(Re, Object.assign({ hidden: !(!((t = (e = m.actions).back) === null || t === void 0) && t.call(e, null)) && !(!((i = (o = m.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [r(ee, Object.assign({ uiAction: "back", onClick: (A) => Xt(void 0, void 0, void 0, function* () {
3046
- A.preventDefault(), g("back");
3046
+ A.preventDefault(), f("back");
3047
3047
  const S = yield m.actions.back(null).run();
3048
- g(null), yield u.flow.run(S, h);
3048
+ f(null), yield u.flow.run(S, h);
3049
3049
  }), loadingSpinnerPosition: "right", hidden: !(!((s = (a = m.actions).back) === null || s === void 0) && s.call(a, null)) }, { children: l("labels.back") })), r(ee, Object.assign({ uiAction: "skip", onClick: (A) => Xt(void 0, void 0, void 0, function* () {
3050
- A.preventDefault(), g("skip");
3050
+ A.preventDefault(), f("skip");
3051
3051
  const S = yield m.actions.skip(null).run();
3052
- g(null), yield u.flow.run(S, h);
3052
+ f(null), yield u.flow.run(S, h);
3053
3053
  }), loadingSpinnerPosition: "left", hidden: !(!((d = (c = m.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: l("labels.skip") }))] }))] });
3054
3054
  };
3055
3055
  var mn = G(21), Dt = {};
@@ -3059,8 +3059,8 @@ Dt.setAttributes = nt(), Dt.insert = (n) => {
3059
3059
  const Ze = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n, columnSelector: e, contentSelector: t, data: o, checkedItemID: i, setCheckedItemID: a, dropdown: s = !1 }) {
3060
3060
  const c = (0, _.useCallback)((u) => `${n}-${u}`, [n]), d = (0, _.useCallback)((u) => c(u) === i, [i, c]), l = (u) => {
3061
3061
  if (!(u.target instanceof HTMLInputElement)) return;
3062
- const h = parseInt(u.target.value, 10), g = c(h);
3063
- a(g === i ? null : g);
3062
+ const h = parseInt(u.target.value, 10), f = c(h);
3063
+ a(f === i ? null : f);
3064
3064
  };
3065
3065
  return r("div", Object.assign({ className: Ze.accordion }, { children: o.map((u, h) => r("div", Object.assign({ className: Ze.accordionItem }, { children: [r("input", { type: "radio", className: Ze.accordionInput, id: `${n}-${h}`, name: n, onClick: l, value: h, checked: d(h) }), r("label", Object.assign({ className: Y()(Ze.label, s && Ze.dropdown), for: `${n}-${h}` }, { children: r("span", Object.assign({ className: Ze.labelText }, { children: e(u, h) })) })), r("div", Object.assign({ className: Y()(Ze.accordionContent, s && Ze.dropdownContent) }, { children: t(u, h) }))] }), h)) }));
3066
3066
  }, ze = ({ children: n }) => r("h2", Object.assign({ part: "headline2", className: Y()(bn.headline, bn.grade2) }, { children: n })), Tr = ({ onEmailDelete: n, onEmailSetPrimary: e, onEmailVerify: t, checkedItemID: o, setCheckedItemID: i, emails: a = [], deletableEmailIDs: s = [] }) => {
@@ -3075,19 +3075,19 @@ const Ze = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
3075
3075
  }, $r = ({ onCredentialNameSubmit: n, oldName: e, onBack: t, credential: o, credentialType: i }) => {
3076
3076
  const { t: a } = (0, _.useContext)(Z.TranslateContext), [s, c] = (0, _.useState)(e);
3077
3077
  return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: a(i === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), r(Pe, { flowError: null }), r(W, { children: a(i === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey") }), r(oe, Object.assign({ onSubmit: (d) => n(d, o.id, s) }, { children: [r(Ve, { type: "text", name: i, value: s, minLength: 3, maxLength: 32, required: !0, placeholder: a(i === "security-key" ? "labels.newSecurityKeyName" : "labels.newPasskeyName"), onInput: (d) => {
3078
- return l = void 0, u = void 0, g = function* () {
3078
+ return l = void 0, u = void 0, f = function* () {
3079
3079
  d.target instanceof HTMLInputElement && c(d.target.value);
3080
3080
  }, new ((h = void 0) || (h = Promise))(function(m, x) {
3081
3081
  function O(P) {
3082
3082
  try {
3083
- S(g.next(P));
3083
+ S(f.next(P));
3084
3084
  } catch (j) {
3085
3085
  x(j);
3086
3086
  }
3087
3087
  }
3088
3088
  function A(P) {
3089
3089
  try {
3090
- S(g.throw(P));
3090
+ S(f.throw(P));
3091
3091
  } catch (j) {
3092
3092
  x(j);
3093
3093
  }
@@ -3098,19 +3098,19 @@ const Ze = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
3098
3098
  U(j);
3099
3099
  })).then(O, A);
3100
3100
  }
3101
- S((g = g.apply(l, u || [])).next());
3101
+ S((f = f.apply(l, u || [])).next());
3102
3102
  });
3103
- var l, u, h, g;
3103
+ var l, u, h, f;
3104
3104
  }, autofocus: !0 }), r(ne, Object.assign({ uiAction: "webauthn-credential-rename" }, { children: a("labels.save") }))] }))] }), r(Re, { children: r(ee, Object.assign({ onClick: t, loadingSpinnerPosition: "right" }, { children: a("labels.back") })) })] });
3105
3105
  }, Yo = ({ credentials: n = [], checkedItemID: e, setCheckedItemID: t, onBack: o, onCredentialNameSubmit: i, onCredentialDelete: a, allowCredentialDeletion: s, credentialType: c }) => {
3106
- const { t: d } = (0, _.useContext)(Z.TranslateContext), { setPage: l } = (0, _.useContext)(pe), u = (g) => {
3107
- if (g.name) return g.name;
3108
- const m = g.public_key.replace(/[\W_]/g, "");
3106
+ const { t: d } = (0, _.useContext)(Z.TranslateContext), { setPage: l } = (0, _.useContext)(pe), u = (f) => {
3107
+ if (f.name) return f.name;
3108
+ const m = f.public_key.replace(/[\W_]/g, "");
3109
3109
  return `${c === "security-key" ? "SecurityKey" : "Passkey"}-${m.substring(m.length - 7, m.length)}`;
3110
- }, h = (g) => new Date(g).toLocaleString();
3111
- return r(En, { name: c === "security-key" ? "security-key-edit-dropdown" : "passkey-edit-dropdown", columnSelector: (g) => u(g), data: n, contentSelector: (g) => r(C.Fragment, { children: [r(W, { children: [r(ze, { children: d(c === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), d(c === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey"), r("br", {}), r(ee, Object.assign({ onClick: (m) => ((x, O, A) => {
3110
+ }, h = (f) => new Date(f).toLocaleString();
3111
+ return r(En, { name: c === "security-key" ? "security-key-edit-dropdown" : "passkey-edit-dropdown", columnSelector: (f) => u(f), data: n, contentSelector: (f) => r(C.Fragment, { children: [r(W, { children: [r(ze, { children: d(c === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), d(c === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey"), r("br", {}), r(ee, Object.assign({ onClick: (m) => ((x, O, A) => {
3112
3112
  x.preventDefault(), l(r($r, { oldName: u(O), credential: O, credentialType: A, onBack: o, onCredentialNameSubmit: i }));
3113
- })(m, g, c), loadingSpinnerPosition: "right" }, { children: d("labels.rename") }))] }), r(W, Object.assign({ hidden: !s }, { children: [r(ze, { children: d(c === "security-key" ? "headlines.deleteSecurityKey" : "headlines.deletePasskey") }), d(c === "security-key" ? "texts.deleteSecurityKey" : "texts.deletePasskey"), r("br", {}), r(ee, Object.assign({ uiAction: "password-delete", dangerous: !0, onClick: (m) => a(m, g.id), loadingSpinnerPosition: "right" }, { children: d("labels.delete") }))] })), r(W, { children: [r(ze, { children: d("headlines.lastUsedAt") }), g.last_used_at ? h(g.last_used_at) : "-"] }), r(W, { children: [r(ze, { children: d("headlines.createdAt") }), h(g.created_at)] })] }), checkedItemID: e, setCheckedItemID: t });
3113
+ })(m, f, c), loadingSpinnerPosition: "right" }, { children: d("labels.rename") }))] }), r(W, Object.assign({ hidden: !s }, { children: [r(ze, { children: d(c === "security-key" ? "headlines.deleteSecurityKey" : "headlines.deletePasskey") }), d(c === "security-key" ? "texts.deleteSecurityKey" : "texts.deletePasskey"), r("br", {}), r(ee, Object.assign({ uiAction: "password-delete", dangerous: !0, onClick: (m) => a(m, f.id), loadingSpinnerPosition: "right" }, { children: d("labels.delete") }))] })), r(W, { children: [r(ze, { children: d("headlines.lastUsedAt") }), f.last_used_at ? h(f.last_used_at) : "-"] }), r(W, { children: [r(ze, { children: d("headlines.createdAt") }), h(f.created_at)] })] }), checkedItemID: e, setCheckedItemID: t });
3114
3114
  }, Ft = ({ name: n, title: e, children: t, checkedItemID: o, setCheckedItemID: i }) => r(En, { dropdown: !0, name: n, columnSelector: () => e, contentSelector: () => r(C.Fragment, { children: t }), setCheckedItemID: i, checkedItemID: o, data: [{}] }), wo = ({ flowError: n }) => {
3115
3115
  const { t: e } = (0, _.useContext)(Z.TranslateContext);
3116
3116
  return r(C.Fragment, { children: n ? r("div", Object.assign({ className: $i.errorMessage }, { children: e(`flowErrors.${n == null ? void 0 : n.code}`) })) : null });
@@ -3122,12 +3122,12 @@ const Ze = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
3122
3122
  }, value: s, flowInput: n.email }), r(ne, Object.assign({ uiAction: "email-submit" }, { children: a("labels.save") }))] }))] }));
3123
3123
  }, Qo = ({ inputs: n, checkedItemID: e, setCheckedItemID: t, onPasswordSubmit: o, onPasswordDelete: i, allowPasswordDelete: a, passwordExists: s }) => {
3124
3124
  var c, d, l;
3125
- const { t: u } = (0, _.useContext)(Z.TranslateContext), [h, g] = (0, _.useState)("");
3126
- return r(Ft, Object.assign({ name: "password-edit-dropdown", title: u(s ? "labels.changePassword" : "labels.setPassword"), checkedItemID: e, setCheckedItemID: t }, { children: [r(W, { children: u("texts.passwordFormatHint", { minLength: (c = n.password.min_length) === null || c === void 0 ? void 0 : c.toString(10), maxLength: (d = n.password.max_length) === null || d === void 0 ? void 0 : d.toString(10) }) }), r(wo, { flowError: (l = n.password) === null || l === void 0 ? void 0 : l.error }), r(oe, Object.assign({ onSubmit: (m) => o(m, h).then(() => g("")) }, { children: [r(Ve, { markError: !0, autoComplete: "new-password", placeholder: u("labels.newPassword"), type: "password", onInput: (m) => {
3127
- m.preventDefault(), m.target instanceof HTMLInputElement && g(m.target.value);
3128
- }, value: h, flowInput: n.password }), r(ne, Object.assign({ uiAction: "password-submit" }, { children: u("labels.save") }))] })), r(ee, Object.assign({ hidden: !a, uiAction: "password-delete", dangerous: !0, onClick: (m) => i(m).then(() => g("")), loadingSpinnerPosition: "right" }, { children: u("labels.delete") }))] }));
3125
+ const { t: u } = (0, _.useContext)(Z.TranslateContext), [h, f] = (0, _.useState)("");
3126
+ return r(Ft, Object.assign({ name: "password-edit-dropdown", title: u(s ? "labels.changePassword" : "labels.setPassword"), checkedItemID: e, setCheckedItemID: t }, { children: [r(W, { children: u("texts.passwordFormatHint", { minLength: (c = n.password.min_length) === null || c === void 0 ? void 0 : c.toString(10), maxLength: (d = n.password.max_length) === null || d === void 0 ? void 0 : d.toString(10) }) }), r(wo, { flowError: (l = n.password) === null || l === void 0 ? void 0 : l.error }), r(oe, Object.assign({ onSubmit: (m) => o(m, h).then(() => f("")) }, { children: [r(Ve, { markError: !0, autoComplete: "new-password", placeholder: u("labels.newPassword"), type: "password", onInput: (m) => {
3127
+ m.preventDefault(), m.target instanceof HTMLInputElement && f(m.target.value);
3128
+ }, value: h, flowInput: n.password }), r(ne, Object.assign({ uiAction: "password-submit" }, { children: u("labels.save") }))] })), r(ee, Object.assign({ hidden: !a, uiAction: "password-delete", dangerous: !0, onClick: (m) => i(m).then(() => f("")), loadingSpinnerPosition: "right" }, { children: u("labels.delete") }))] }));
3129
3129
  }, Go = ({ checkedItemID: n, setCheckedItemID: e, onCredentialSubmit: t, credentialType: o }) => {
3130
- const { t: i } = (0, _.useContext)(Z.TranslateContext), a = ft.supported();
3130
+ const { t: i } = (0, _.useContext)(Z.TranslateContext), a = gt.supported();
3131
3131
  return r(Ft, Object.assign({ name: o === "security-key" ? "security-key-create-dropdown" : "passkey-create-dropdown", title: i(o === "security-key" ? "labels.createSecurityKey" : "labels.createPasskey"), checkedItemID: n, setCheckedItemID: e }, { children: [r(W, { children: i(o === "security-key" ? "texts.securityKeySetUp" : "texts.setupPasskey") }), r(oe, Object.assign({ onSubmit: t }, { children: r(ne, Object.assign({ uiAction: o === "security-key" ? "security-key-submit" : "passkey-submit", title: a ? null : i("labels.webauthnUnsupported") }, { children: i(o === "security-key" ? "labels.createSecurityKey" : "labels.createPasskey") })) }))] }));
3132
3132
  }, Xo = ({ inputs: n, checkedItemID: e, setCheckedItemID: t, onUsernameSubmit: o, onUsernameDelete: i, hasUsername: a, allowUsernameDeletion: s }) => {
3133
3133
  var c;
@@ -3174,7 +3174,7 @@ var De = function(n, e, t, o) {
3174
3174
  });
3175
3175
  };
3176
3176
  const Ui = (n) => {
3177
- var e, t, o, i, a, s, c, d, l, u, h, g, m, x, O, A, S, P, j, U, N, ae, be, re, we, M, H, _e, Te, Ee, $e, se, le, me, Ie, k, p, y, T, K, fe, He, We, Fe, f, v, b, D, $, I, z, X;
3177
+ var e, t, o, i, a, s, c, d, l, u, h, f, m, x, O, A, S, P, j, U, N, ae, be, re, we, M, H, _e, Te, Ee, $e, se, le, me, Ie, k, p, y, T, K, ge, He, We, Fe, g, v, b, D, $, I, z, X;
3178
3178
  const { t: Q } = (0, _.useContext)(Z.TranslateContext), { hanko: ye, setLoadingAction: w, stateHandler: ke, setUIState: J, setPage: R } = (0, _.useContext)(pe), { flowState: E } = Me(n.state), [Se, V] = (0, _.useState)(""), F = (q, B, Qe) => De(void 0, void 0, void 0, function* () {
3179
3179
  q.preventDefault(), w(B);
3180
3180
  const In = yield Qe();
@@ -3183,14 +3183,14 @@ const Ui = (n) => {
3183
3183
  return F(q, "password-delete", E.actions.password_delete(null).run);
3184
3184
  }), it = (q) => De(void 0, void 0, void 0, function* () {
3185
3185
  return F(q, "username-delete", E.actions.username_delete(null).run);
3186
- }), ge = (q, B, Qe) => De(void 0, void 0, void 0, function* () {
3186
+ }), fe = (q, B, Qe) => De(void 0, void 0, void 0, function* () {
3187
3187
  return F(q, "webauthn-credential-rename", E.actions.webauthn_credential_rename({ passkey_id: B, passkey_name: Qe }).run);
3188
3188
  }), Vt = (q) => De(void 0, void 0, void 0, function* () {
3189
3189
  return F(q, "account_delete", E.actions.account_delete(null).run);
3190
3190
  }), at = (q) => (q.preventDefault(), R(r(Ui, { state: E, enablePasskeys: n.enablePasskeys })), Promise.resolve());
3191
3191
  return r(Oe, { children: [r(Pe, { state: ((e = E == null ? void 0 : E.error) === null || e === void 0 ? void 0 : e.code) !== "form_data_invalid_error" ? E : null }), !((o = (t = E.actions).username_create) === null || o === void 0) && o.call(t, null) || !((a = (i = E.actions).username_update) === null || a === void 0) && a.call(i, null) || !((c = (s = E.actions).username_delete) === null || c === void 0) && c.call(s, null) ? r(C.Fragment, { children: [r(he, { children: Q("labels.username") }), E.payload.user.username ? r(W, { children: r("b", { children: E.payload.user.username.username }) }) : null, r(W, { children: [!((l = (d = E.actions).username_create) === null || l === void 0) && l.call(d, null) ? r(Xo, { inputs: E.actions.username_create(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((h = (u = E.actions).username_delete) === null || h === void 0) && h.call(u, null)), onUsernameSubmit: (q, B) => De(void 0, void 0, void 0, function* () {
3192
3192
  return F(q, "username-set", E.actions.username_create({ username: B }).run);
3193
- }), onUsernameDelete: it, checkedItemID: Se, setCheckedItemID: V }) : null, !((m = (g = E.actions).username_update) === null || m === void 0) && m.call(g, null) ? r(Xo, { inputs: E.actions.username_update(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((O = (x = E.actions).username_delete) === null || O === void 0) && O.call(x, null)), onUsernameSubmit: (q, B) => De(void 0, void 0, void 0, function* () {
3193
+ }), onUsernameDelete: it, checkedItemID: Se, setCheckedItemID: V }) : null, !((m = (f = E.actions).username_update) === null || m === void 0) && m.call(f, null) ? r(Xo, { inputs: E.actions.username_update(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((O = (x = E.actions).username_delete) === null || O === void 0) && O.call(x, null)), onUsernameSubmit: (q, B) => De(void 0, void 0, void 0, function* () {
3194
3194
  return F(q, "username-set", E.actions.username_update({ username: B }).run);
3195
3195
  }), onUsernameDelete: it, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((S = (A = E.payload) === null || A === void 0 ? void 0 : A.user) === null || S === void 0) && S.emails || !((j = (P = E.actions).email_create) === null || j === void 0) && j.call(P, null) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profileEmails") }), r(W, { children: [r(Tr, { emails: E.payload.user.emails, onEmailDelete: (q, B) => De(void 0, void 0, void 0, function* () {
3196
3196
  return F(q, "email-delete", E.actions.email_delete({ email_id: B }).run);
@@ -3204,19 +3204,19 @@ const Ui = (n) => {
3204
3204
  return F(q, "password-submit", E.actions.password_create({ password: B }).run);
3205
3205
  }), onPasswordDelete: qe, checkedItemID: Se, setCheckedItemID: V }) })] }) : null, !((_e = (H = E.actions).password_update) === null || _e === void 0) && _e.call(H, null) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profilePassword") }), r(W, { children: r(Qo, { allowPasswordDelete: !!(!((Ee = (Te = E.actions).password_delete) === null || Ee === void 0) && Ee.call(Te, null)), inputs: E.actions.password_update(null).inputs, onPasswordSubmit: (q, B) => De(void 0, void 0, void 0, function* () {
3206
3206
  return F(q, "password-submit", E.actions.password_update({ password: B }).run);
3207
- }), onPasswordDelete: qe, checkedItemID: Se, setCheckedItemID: V, passwordExists: !0 }) })] }) : null, n.enablePasskeys && (!((se = ($e = E.payload) === null || $e === void 0 ? void 0 : $e.user) === null || se === void 0) && se.passkeys || !((me = (le = E.actions).webauthn_credential_create) === null || me === void 0) && me.call(le, null)) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profilePasskeys") }), r(W, { children: [r(Yo, { onBack: at, onCredentialNameSubmit: ge, onCredentialDelete: (q, B) => De(void 0, void 0, void 0, function* () {
3207
+ }), onPasswordDelete: qe, checkedItemID: Se, setCheckedItemID: V, passwordExists: !0 }) })] }) : null, n.enablePasskeys && (!((se = ($e = E.payload) === null || $e === void 0 ? void 0 : $e.user) === null || se === void 0) && se.passkeys || !((me = (le = E.actions).webauthn_credential_create) === null || me === void 0) && me.call(le, null)) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profilePasskeys") }), r(W, { children: [r(Yo, { onBack: at, onCredentialNameSubmit: fe, onCredentialDelete: (q, B) => De(void 0, void 0, void 0, function* () {
3208
3208
  return F(q, "passkey-delete", E.actions.webauthn_credential_delete({ passkey_id: B }).run);
3209
3209
  }), credentials: E.payload.user.passkeys, setError: null, checkedItemID: Se, setCheckedItemID: V, allowCredentialDeletion: !!(!((k = (Ie = E.actions).webauthn_credential_delete) === null || k === void 0) && k.call(Ie, null)), credentialType: "passkey" }), !((y = (p = E.actions).webauthn_credential_create) === null || y === void 0) && y.call(p, null) ? r(Go, { credentialType: "passkey", onCredentialSubmit: (q) => De(void 0, void 0, void 0, function* () {
3210
3210
  return F(q, "passkey-submit", E.actions.webauthn_credential_create(null).run);
3211
- }), setError: null, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((T = E.payload.user.mfa_config) === null || T === void 0) && T.security_keys_enabled ? r(C.Fragment, { children: [r(he, { children: Q("headlines.securityKeys") }), r(W, { children: [r(Yo, { onBack: at, onCredentialNameSubmit: ge, onCredentialDelete: (q, B) => De(void 0, void 0, void 0, function* () {
3211
+ }), setError: null, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((T = E.payload.user.mfa_config) === null || T === void 0) && T.security_keys_enabled ? r(C.Fragment, { children: [r(he, { children: Q("headlines.securityKeys") }), r(W, { children: [r(Yo, { onBack: at, onCredentialNameSubmit: fe, onCredentialDelete: (q, B) => De(void 0, void 0, void 0, function* () {
3212
3212
  return F(q, "security-key-delete", E.actions.security_key_delete({ security_key_id: B }).run);
3213
- }), credentials: E.payload.user.security_keys, setError: null, checkedItemID: Se, setCheckedItemID: V, allowCredentialDeletion: !!(!((fe = (K = E.actions).security_key_delete) === null || fe === void 0) && fe.call(K, null)), credentialType: "security-key" }), !((We = (He = E.actions).security_key_create) === null || We === void 0) && We.call(He, null) ? r(Go, { credentialType: "security-key", onCredentialSubmit: (q) => De(void 0, void 0, void 0, function* () {
3213
+ }), credentials: E.payload.user.security_keys, setError: null, checkedItemID: Se, setCheckedItemID: V, allowCredentialDeletion: !!(!((ge = (K = E.actions).security_key_delete) === null || ge === void 0) && ge.call(K, null)), credentialType: "security-key" }), !((We = (He = E.actions).security_key_create) === null || We === void 0) && We.call(He, null) ? r(Go, { credentialType: "security-key", onCredentialSubmit: (q) => De(void 0, void 0, void 0, function* () {
3214
3214
  return F(q, "security-key-submit", E.actions.security_key_create(null).run);
3215
3215
  }), setError: null, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((Fe = E.payload.user.mfa_config) === null || Fe === void 0) && Fe.totp_enabled ? r(C.Fragment, { children: [r(he, { children: Q("headlines.authenticatorApp") }), r(W, { children: r(Rr, { onConnect: (q) => De(void 0, void 0, void 0, function* () {
3216
3216
  return F(q, "auth-app-add", E.actions.continue_to_otp_secret_creation(null).run);
3217
3217
  }), onDelete: (q) => De(void 0, void 0, void 0, function* () {
3218
3218
  return F(q, "auth-app-remove", E.actions.otp_secret_delete(null).run);
3219
- }), allowDeletion: !!(!((v = (f = E.actions).otp_secret_delete) === null || v === void 0) && v.call(f, null)), authAppSetUp: (b = E.payload.user.mfa_config) === null || b === void 0 ? void 0 : b.auth_app_set_up, checkedItemID: Se, setCheckedItemID: V }) })] }) : null, E.payload.sessions ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profileSessions") }), r(W, { children: r(Mr, { sessions: E.payload.sessions, setError: null, checkedItemID: Se, setCheckedItemID: V, onSessionDelete: (q, B) => De(void 0, void 0, void 0, function* () {
3219
+ }), allowDeletion: !!(!((v = (g = E.actions).otp_secret_delete) === null || v === void 0) && v.call(g, null)), authAppSetUp: (b = E.payload.user.mfa_config) === null || b === void 0 ? void 0 : b.auth_app_set_up, checkedItemID: Se, setCheckedItemID: V }) })] }) : null, E.payload.sessions ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profileSessions") }), r(W, { children: r(Mr, { sessions: E.payload.sessions, setError: null, checkedItemID: Se, setCheckedItemID: V, onSessionDelete: (q, B) => De(void 0, void 0, void 0, function* () {
3220
3220
  return F(q, "session-delete", E.actions.session_delete({ session_id: B }).run);
3221
3221
  }), deletableSessionIDs: (I = ($ = (D = E.actions).session_delete) === null || $ === void 0 ? void 0 : $.call(D, null).inputs.session_id.allowed_values) === null || I === void 0 ? void 0 : I.map((q) => q.value) }) })] }) : null, !((X = (z = E.actions).account_delete) === null || X === void 0) && X.call(z, null) ? r(C.Fragment, { children: [r(Pn, {}), r(W, { children: r(yo, {}) }), r(W, { children: r(oe, Object.assign({ onSubmit: (q) => (q.preventDefault(), R(r(Nr, { onBack: at, onAccountDelete: Vt })), Promise.resolve()) }, { children: r(ne, Object.assign({ dangerous: !0 }, { children: Q("headlines.deleteAccount") })) })) })] }) : null] });
3222
3222
  }, qr = Ui, ei = ({ state: n, error: e }) => {
@@ -3255,14 +3255,14 @@ var zn = function(n, e, t, o) {
3255
3255
  const zr = (n) => {
3256
3256
  var e, t, o, i;
3257
3257
  const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, _.useState)();
3258
- return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: a("headlines.createEmail") }), r(Pe, { state: l }), r(oe, Object.assign({ onSubmit: (g) => zn(void 0, void 0, void 0, function* () {
3259
- g.preventDefault(), d("email-submit");
3258
+ return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: a("headlines.createEmail") }), r(Pe, { state: l }), r(oe, Object.assign({ onSubmit: (f) => zn(void 0, void 0, void 0, function* () {
3259
+ f.preventDefault(), d("email-submit");
3260
3260
  const m = yield l.actions.email_address_set({ email: u }).run();
3261
3261
  d(null), yield s.flow.run(m, c);
3262
- }) }, { children: [r(Ve, { type: "email", autoComplete: "email", autoCorrect: "off", flowInput: (t = (e = l.actions).email_address_set) === null || t === void 0 ? void 0 : t.call(e, null).inputs.email, onInput: (g) => zn(void 0, void 0, void 0, function* () {
3263
- g.target instanceof HTMLInputElement && h(g.target.value);
3264
- }), placeholder: a("labels.email"), pattern: "^.*[^0-9]+$", value: u }), r(ne, Object.assign({ uiAction: "email-submit" }, { children: a("labels.continue") }))] }))] }), r(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [r("span", { hidden: !0 }), r(ee, Object.assign({ uiAction: "skip", onClick: (g) => zn(void 0, void 0, void 0, function* () {
3265
- g.preventDefault(), d("skip");
3262
+ }) }, { children: [r(Ve, { type: "email", autoComplete: "email", autoCorrect: "off", flowInput: (t = (e = l.actions).email_address_set) === null || t === void 0 ? void 0 : t.call(e, null).inputs.email, onInput: (f) => zn(void 0, void 0, void 0, function* () {
3263
+ f.target instanceof HTMLInputElement && h(f.target.value);
3264
+ }), placeholder: a("labels.email"), pattern: "^.*[^0-9]+$", value: u }), r(ne, Object.assign({ uiAction: "email-submit" }, { children: a("labels.continue") }))] }))] }), r(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [r("span", { hidden: !0 }), r(ee, Object.assign({ uiAction: "skip", onClick: (f) => zn(void 0, void 0, void 0, function* () {
3265
+ f.preventDefault(), d("skip");
3266
3266
  const m = yield l.actions.skip(null).run();
3267
3267
  d(null), yield s.flow.run(m, c);
3268
3268
  }), loadingSpinnerPosition: "left" }, { children: a("labels.skip") }))] }))] });
@@ -3295,14 +3295,14 @@ var Hn = function(n, e, t, o) {
3295
3295
  const Hr = (n) => {
3296
3296
  var e, t, o, i;
3297
3297
  const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, _.useState)();
3298
- return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: a("headlines.createUsername") }), r(Pe, { state: l }), r(oe, Object.assign({ onSubmit: (g) => Hn(void 0, void 0, void 0, function* () {
3299
- g.preventDefault(), d("username-set");
3298
+ return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: a("headlines.createUsername") }), r(Pe, { state: l }), r(oe, Object.assign({ onSubmit: (f) => Hn(void 0, void 0, void 0, function* () {
3299
+ f.preventDefault(), d("username-set");
3300
3300
  const m = yield l.actions.username_create({ username: u }).run();
3301
3301
  d(null), yield s.flow.run(m, c);
3302
- }) }, { children: [r(Ve, { type: "text", autoComplete: "username", autoCorrect: "off", flowInput: (t = (e = l.actions).username_create) === null || t === void 0 ? void 0 : t.call(e, null).inputs.username, onInput: (g) => Hn(void 0, void 0, void 0, function* () {
3303
- g.target instanceof HTMLInputElement && h(g.target.value);
3304
- }), value: u, placeholder: a("labels.username") }), r(ne, Object.assign({ uiAction: "username-set" }, { children: a("labels.continue") }))] }))] }), r(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [r("span", { hidden: !0 }), r(ee, Object.assign({ uiAction: "skip", onClick: (g) => Hn(void 0, void 0, void 0, function* () {
3305
- g.preventDefault(), d("skip");
3302
+ }) }, { children: [r(Ve, { type: "text", autoComplete: "username", autoCorrect: "off", flowInput: (t = (e = l.actions).username_create) === null || t === void 0 ? void 0 : t.call(e, null).inputs.username, onInput: (f) => Hn(void 0, void 0, void 0, function* () {
3303
+ f.target instanceof HTMLInputElement && h(f.target.value);
3304
+ }), value: u, placeholder: a("labels.username") }), r(ne, Object.assign({ uiAction: "username-set" }, { children: a("labels.continue") }))] }))] }), r(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [r("span", { hidden: !0 }), r(ee, Object.assign({ uiAction: "skip", onClick: (f) => Hn(void 0, void 0, void 0, function* () {
3305
+ f.preventDefault(), d("skip");
3306
3306
  const m = yield l.actions.skip(null).run();
3307
3307
  d(null), yield s.flow.run(m, c);
3308
3308
  }), loadingSpinnerPosition: "left" }, { children: a("labels.skip") }))] }))] });
@@ -3333,7 +3333,7 @@ var en = function(n, e, t, o) {
3333
3333
  });
3334
3334
  };
3335
3335
  const Wr = (n) => {
3336
- var e, t, o, i, a, s, c, d, l, u, h, g;
3336
+ var e, t, o, i, a, s, c, d, l, u, h, f;
3337
3337
  const { t: m } = (0, _.useContext)(Z.TranslateContext), { hanko: x, setLoadingAction: O, stateHandler: A } = (0, _.useContext)(pe), { flowState: S } = Me(n.state);
3338
3338
  return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: m("headlines.setupLoginMethod") }), r(Pe, { flowError: S == null ? void 0 : S.error }), r(W, { children: m("texts.selectLoginMethodForFutureLogins") }), r(oe, Object.assign({ hidden: !(!((t = (e = S.actions).continue_to_passkey_registration) === null || t === void 0) && t.call(e, null)), onSubmit: (P) => en(void 0, void 0, void 0, function* () {
3339
3339
  P.preventDefault(), O("passkey-submit");
@@ -3351,7 +3351,7 @@ const Wr = (n) => {
3351
3351
  P.preventDefault(), O("skip");
3352
3352
  const j = yield S.actions.skip(null).run();
3353
3353
  O(null), yield x.flow.run(j, A);
3354
- }), loadingSpinnerPosition: "left", hidden: !(!((g = (h = S.actions).skip) === null || g === void 0) && g.call(h, null)) }, { children: m("labels.skip") }))] }))] });
3354
+ }), loadingSpinnerPosition: "left", hidden: !(!((f = (h = S.actions).skip) === null || f === void 0) && f.call(h, null)) }, { children: m("labels.skip") }))] }))] });
3355
3355
  };
3356
3356
  var Wn = function(n, e, t, o) {
3357
3357
  return new (t || (t = Promise))(function(i, a) {
@@ -3380,7 +3380,7 @@ var Wn = function(n, e, t, o) {
3380
3380
  };
3381
3381
  const Fr = (n) => {
3382
3382
  var e, t, o, i;
3383
- const { t: a } = (0, _.useContext)(Z.TranslateContext), { flowState: s } = Me(n.state), { hanko: c, setLoadingAction: d, stateHandler: l } = (0, _.useContext)(pe), [u, h] = (0, _.useState)([]), g = (0, _.useCallback)((m) => Wn(void 0, void 0, void 0, function* () {
3383
+ const { t: a } = (0, _.useContext)(Z.TranslateContext), { flowState: s } = Me(n.state), { hanko: c, setLoadingAction: d, stateHandler: l } = (0, _.useContext)(pe), [u, h] = (0, _.useState)([]), f = (0, _.useCallback)((m) => Wn(void 0, void 0, void 0, function* () {
3384
3384
  d("passcode-submit");
3385
3385
  const x = yield s.actions.otp_code_validate({ otp_code: m }).run();
3386
3386
  d(null), yield c.flow.run(x, l);
@@ -3389,9 +3389,9 @@ const Fr = (n) => {
3389
3389
  var m;
3390
3390
  ((m = s.error) === null || m === void 0 ? void 0 : m.code) === "passcode_invalid" && h([]);
3391
3391
  }, [s]), r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: a("headlines.otpLogin") }), r(Pe, { state: s }), r(W, { children: a("texts.otpLogin") }), r(oe, Object.assign({ onSubmit: (m) => Wn(void 0, void 0, void 0, function* () {
3392
- return m.preventDefault(), g(u.join(""));
3392
+ return m.preventDefault(), f(u.join(""));
3393
3393
  }) }, { children: [r(ko, { onInput: (m) => {
3394
- if (h(m), m.filter((x) => x !== "").length === 6) return g(m.join(""));
3394
+ if (h(m), m.filter((x) => x !== "").length === 6) return f(m.join(""));
3395
3395
  }, passcodeDigits: u, numberOfInputs: 6 }), r(ne, Object.assign({ uiAction: "passcode-submit" }, { children: a("labels.continue") }))] }))] }), r(Re, Object.assign({ hidden: !(!((t = (e = s.actions).continue_to_login_security_key) === null || t === void 0) && t.call(e, null)) }, { children: r(ee, Object.assign({ uiAction: "skip", onClick: (m) => Wn(void 0, void 0, void 0, function* () {
3396
3396
  m.preventDefault(), d("skip");
3397
3397
  const x = yield s.actions.continue_to_login_security_key(null).run();
@@ -3463,14 +3463,14 @@ var tn = function(n, e, t, o) {
3463
3463
  };
3464
3464
  const Vr = (n) => {
3465
3465
  var e, t, o, i, a, s, c, d;
3466
- const { t: l } = (0, _.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: g } = (0, _.useContext)(pe), { flowState: m } = Me(n.state), x = (S) => tn(void 0, void 0, void 0, function* () {
3466
+ const { t: l } = (0, _.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: f } = (0, _.useContext)(pe), { flowState: m } = Me(n.state), x = (S) => tn(void 0, void 0, void 0, function* () {
3467
3467
  S.preventDefault(), h("passcode-submit");
3468
3468
  const P = yield m.actions.continue_to_security_key_creation(null).run();
3469
- h(null), yield u.flow.run(P, g);
3469
+ h(null), yield u.flow.run(P, f);
3470
3470
  }), O = (S) => tn(void 0, void 0, void 0, function* () {
3471
3471
  S.preventDefault(), h("password-submit");
3472
3472
  const P = yield m.actions.continue_to_otp_secret_creation(null).run();
3473
- h(null), yield u.flow.run(P, g);
3473
+ h(null), yield u.flow.run(P, f);
3474
3474
  }), A = (0, _.useMemo)(() => {
3475
3475
  const { actions: S } = m;
3476
3476
  return S.continue_to_security_key_creation && !S.continue_to_otp_secret_creation ? x : !S.continue_to_security_key_creation && S.continue_to_otp_secret_creation ? O : void 0;
@@ -3478,18 +3478,18 @@ const Vr = (n) => {
3478
3478
  return r(C.Fragment, { children: [r(Oe, { children: [r(he, { children: l("headlines.mfaSetUp") }), r(Pe, { flowError: m == null ? void 0 : m.error }), r(W, { children: l("texts.mfaSetUp") }), A ? r(oe, Object.assign({ onSubmit: A }, { children: r(ne, Object.assign({ uiAction: "passcode-submit" }, { children: l("labels.continue") })) })) : r(C.Fragment, { children: [r(oe, Object.assign({ hidden: !(!((t = (e = m.actions).continue_to_security_key_creation) === null || t === void 0) && t.call(e, null)), onSubmit: x }, { children: r(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "securityKey" }, { children: l("labels.securityKey") })) })), r(oe, Object.assign({ hidden: !(!((i = (o = m.actions).continue_to_otp_secret_creation) === null || i === void 0) && i.call(o, null)), onSubmit: O }, { children: r(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "qrCodeScanner" }, { children: l("labels.authenticatorApp") })) }))] })] }), r(Re, { children: [r(ee, Object.assign({ uiAction: "back", onClick: (S) => tn(void 0, void 0, void 0, function* () {
3479
3479
  S.preventDefault(), h("back");
3480
3480
  const P = yield m.actions.back(null).run();
3481
- h(null), yield u.flow.run(P, g);
3481
+ h(null), yield u.flow.run(P, f);
3482
3482
  }), loadingSpinnerPosition: "right", hidden: !(!((s = (a = m.actions).back) === null || s === void 0) && s.call(a, null)) }, { children: l("labels.back") })), r(ee, Object.assign({ uiAction: "skip", onClick: (S) => tn(void 0, void 0, void 0, function* () {
3483
3483
  S.preventDefault(), h("skip");
3484
3484
  const P = yield m.actions.skip(null).run();
3485
- h(null), yield u.flow.run(P, g);
3485
+ h(null), yield u.flow.run(P, f);
3486
3486
  }), loadingSpinnerPosition: "left", hidden: !(!((d = (c = m.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: l("labels.skip") }))] })] });
3487
3487
  };
3488
- var fn = G(560), jt = {};
3488
+ var gn = G(560), jt = {};
3489
3489
  jt.setAttributes = nt(), jt.insert = (n) => {
3490
3490
  window._hankoStyle = n;
3491
- }, jt.domAPI = tt(), jt.insertStyleElement = ot(), et()(fn.A, jt);
3492
- const Br = fn.A && fn.A.locals ? fn.A.locals : void 0, Zr = ({ children: n, text: e }) => {
3491
+ }, jt.domAPI = tt(), jt.insertStyleElement = ot(), et()(gn.A, jt);
3492
+ const Br = gn.A && gn.A.locals ? gn.A.locals : void 0, Zr = ({ children: n, text: e }) => {
3493
3493
  const { t } = (0, _.useContext)(Z.TranslateContext), [o, i] = (0, _.useState)(!1);
3494
3494
  return r("section", Object.assign({ className: zt.clipboardContainer }, { children: [r("div", { children: [n, " "] }), r("div", Object.assign({ className: zt.clipboardIcon, onClick: (a) => {
3495
3495
  return s = void 0, c = void 0, l = function* () {
@@ -3500,7 +3500,7 @@ const Br = fn.A && fn.A.locals ? fn.A.locals : void 0, Zr = ({ children: n, text
3500
3500
  console.error("Failed to copy: ", u);
3501
3501
  }
3502
3502
  }, new ((d = void 0) || (d = Promise))(function(u, h) {
3503
- function g(O) {
3503
+ function f(O) {
3504
3504
  try {
3505
3505
  x(l.next(O));
3506
3506
  } catch (A) {
@@ -3518,7 +3518,7 @@ const Br = fn.A && fn.A.locals ? fn.A.locals : void 0, Zr = ({ children: n, text
3518
3518
  var A;
3519
3519
  O.done ? u(O.value) : (A = O.value, A instanceof d ? A : new d(function(S) {
3520
3520
  S(A);
3521
- })).then(g, m);
3521
+ })).then(f, m);
3522
3522
  }
3523
3523
  x((l = l.apply(s, c || [])).next());
3524
3524
  });
@@ -3682,12 +3682,12 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
3682
3682
  var T = {};
3683
3683
  for (var K in p) Object.prototype.hasOwnProperty.call(p, K) && y.indexOf(K) < 0 && (T[K] = p[K]);
3684
3684
  if (p != null && typeof Object.getOwnPropertySymbols == "function") {
3685
- var fe = 0;
3686
- for (K = Object.getOwnPropertySymbols(p); fe < K.length; fe++) y.indexOf(K[fe]) < 0 && Object.prototype.propertyIsEnumerable.call(p, K[fe]) && (T[K[fe]] = p[K[fe]]);
3685
+ var ge = 0;
3686
+ for (K = Object.getOwnPropertySymbols(p); ge < K.length; ge++) y.indexOf(K[ge]) < 0 && Object.prototype.propertyIsEnumerable.call(p, K[ge]) && (T[K[ge]] = p[K[ge]]);
3687
3687
  }
3688
3688
  return T;
3689
3689
  }(n, ["lang", "experimental", "prefilledEmail", "prefilledUsername", "globalOptions", "createWebauthnAbortSignal"]);
3690
- const { hanko: d, injectStyles: l, hidePasskeyButtonOnLogin: u, translations: h, translationsLocation: g, fallbackLanguage: m } = a;
3690
+ const { hanko: d, injectStyles: l, hidePasskeyButtonOnLogin: u, translations: h, translationsLocation: f, fallbackLanguage: m } = a;
3691
3691
  d.setLang((e == null ? void 0 : e.toString()) || m);
3692
3692
  const x = (0, _.useRef)(null), O = (0, _.useMemo)(() => `${a.storageKey}_last_login`, [a.storageKey]), [A, S] = (0, _.useState)(c.componentName), P = (0, _.useMemo)(() => t.split(" ").filter((p) => p.length).map((p) => p), [t]), j = (0, _.useMemo)(() => r(wr, {}), []), [U, N] = (0, _.useState)(j), [, ae] = (0, _.useState)(d), [be, re] = (0, _.useState)(), [we, M] = (0, _.useState)({ email: o, username: i }), H = (0, _.useCallback)((p) => {
3693
3693
  M((y) => Object.assign(Object.assign({}, y), { loadingAction: p, succeededAction: null, error: null, lastAction: p || y.lastAction }));
@@ -3704,7 +3704,7 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
3704
3704
  se(p);
3705
3705
  }, preflight(p) {
3706
3706
  return Ke(this, void 0, void 0, function* () {
3707
- const y = yield ft.isConditionalMediationAvailable(), T = yield ft.isPlatformAuthenticatorAvailable(), K = yield p.actions.register_client_capabilities({ webauthn_available: k, webauthn_conditional_mediation_available: y, webauthn_platform_authenticator_available: T }).run();
3707
+ const y = yield gt.isConditionalMediationAvailable(), T = yield gt.isPlatformAuthenticatorAvailable(), K = yield p.actions.register_client_capabilities({ webauthn_available: k, webauthn_conditional_mediation_available: y, webauthn_platform_authenticator_available: T }).run();
3708
3708
  return d.flow.run(K, le);
3709
3709
  });
3710
3710
  }, login_init(p) {
@@ -3738,8 +3738,8 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
3738
3738
  try {
3739
3739
  y = yield Bo(Object.assign(Object.assign({}, p.payload.request_options), { signal: s() }));
3740
3740
  } catch {
3741
- const fe = yield p.actions.back(null).run();
3742
- return M((He) => Object.assign(Object.assign({}, He), { error: p.error, loadingAction: null })), d.flow.run(fe, le);
3741
+ const ge = yield p.actions.back(null).run();
3742
+ return M((He) => Object.assign(Object.assign({}, He), { error: p.error, loadingAction: null })), d.flow.run(ge, le);
3743
3743
  }
3744
3744
  const T = yield p.actions.webauthn_verify_assertion_response({ assertion_response: y }).run();
3745
3745
  H(null), yield d.flow.run(T, le);
@@ -3752,8 +3752,8 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
3752
3752
  try {
3753
3753
  y = yield Vo(Object.assign(Object.assign({}, p.payload.creation_options), { signal: s() }));
3754
3754
  } catch {
3755
- const fe = yield p.actions.back(null).run();
3756
- return H(null), yield d.flow.run(fe, le), void M((He) => Object.assign(Object.assign({}, He), { error: { code: "webauthn_credential_already_exists", message: "Webauthn credential already exists" } }));
3755
+ const ge = yield p.actions.back(null).run();
3756
+ return H(null), yield d.flow.run(ge, le), void M((He) => Object.assign(Object.assign({}, He), { error: { code: "webauthn_credential_already_exists", message: "Webauthn credential already exists" } }));
3757
3757
  }
3758
3758
  const T = yield p.actions.webauthn_verify_attestation_response({ public_key: y }).run();
3759
3759
  H(null), yield d.flow.run(T, le);
@@ -3764,8 +3764,8 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
3764
3764
  try {
3765
3765
  y = yield Vo(Object.assign(Object.assign({}, p.payload.creation_options), { signal: s() }));
3766
3766
  } catch {
3767
- const fe = yield p.actions.back(null).run();
3768
- return H(null), yield d.flow.run(fe, le), void M((He) => Object.assign(Object.assign({}, He), { error: { code: "webauthn_credential_already_exists", message: "Webauthn credential already exists" } }));
3767
+ const ge = yield p.actions.back(null).run();
3768
+ return H(null), yield d.flow.run(ge, le), void M((He) => Object.assign(Object.assign({}, He), { error: { code: "webauthn_credential_already_exists", message: "Webauthn credential already exists" } }));
3769
3769
  }
3770
3770
  const T = yield p.actions.webauthn_verify_attestation_response({ public_key: y }).run();
3771
3771
  yield d.flow.run(T, le);
@@ -3860,8 +3860,8 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
3860
3860
  };
3861
3861
  ["auth", "login", "registration"].includes(A) ? (d.onUserLoggedOut(p), d.onSessionExpired(p), d.onUserDeleted(p)) : A === "profile" && d.onSessionCreated(p);
3862
3862
  }, []);
3863
- const k = ft.supported();
3864
- return r(pe.Provider, Object.assign({ value: { init: Ie, initialComponentName: c.componentName, isDisabled: Ee, setUIState: M, setLoadingAction: H, setSucceededAction: _e, uiState: we, hanko: d, setHanko: ae, lang: (e == null ? void 0 : e.toString()) || m, prefilledEmail: o, prefilledUsername: i, componentName: A, setComponentName: S, experimentalFeatures: P, hidePasskeyButtonOnLogin: u, page: U, setPage: N, stateHandler: le, lastLogin: be } }, { children: r(Z.TranslateProvider, Object.assign({ translations: h, fallbackLang: m, root: g }, { children: r(or, Object.assign({ ref: x }, { children: A !== "events" ? r(C.Fragment, { children: [l ? r("style", { dangerouslySetInnerHTML: { __html: window._hankoStyle.innerHTML } }) : null, U] }) : null })) })) }));
3863
+ const k = gt.supported();
3864
+ return r(pe.Provider, Object.assign({ value: { init: Ie, initialComponentName: c.componentName, isDisabled: Ee, setUIState: M, setLoadingAction: H, setSucceededAction: _e, uiState: we, hanko: d, setHanko: ae, lang: (e == null ? void 0 : e.toString()) || m, prefilledEmail: o, prefilledUsername: i, componentName: A, setComponentName: S, experimentalFeatures: P, hidePasskeyButtonOnLogin: u, page: U, setPage: N, stateHandler: le, lastLogin: be } }, { children: r(Z.TranslateProvider, Object.assign({ translations: h, fallbackLang: m, root: f }, { children: r(or, Object.assign({ ref: x }, { children: A !== "events" ? r(C.Fragment, { children: [l ? r("style", { dangerouslySetInnerHTML: { __html: window._hankoStyle.innerHTML } }) : null, U] }) : null })) })) }));
3865
3865
  }, es = { en: G(6).en };
3866
3866
  var Ni = function(n, e, t, o) {
3867
3867
  return new (t || (t = Promise))(function(i, a) {
@@ -3898,8 +3898,8 @@ const rs = () => (on && on.abort(), on = new AbortController(), on.signal), Lt =
3898
3898
  }
3899
3899
  (d.prototype = Object.create(HTMLElement.prototype)).constructor = d, d.prototype.connectedCallback = ya, d.prototype.attributeChangedCallback = ba, d.prototype.disconnectedCallback = ka, s = s || i.observedAttributes || Object.keys(i.propTypes || {}), d.observedAttributes = s, s.forEach(function(l) {
3900
3900
  Object.defineProperty(d.prototype, l, { get: function() {
3901
- var u, h, g, m;
3902
- return (u = (h = this._vdom) == null || (g = h.props) == null ? void 0 : g[l]) != null ? u : (m = this._props) == null ? void 0 : m[l];
3901
+ var u, h, f, m;
3902
+ return (u = (h = this._vdom) == null || (f = h.props) == null ? void 0 : f[l]) != null ? u : (m = this._props) == null ? void 0 : m[l];
3903
3903
  }, set: function(u) {
3904
3904
  this._vdom ? this.attributeChangedCallback(l, null, u) : (this._props || (this._props = {}), this._props[l] = u, this.connectedCallback());
3905
3905
  var h = typeof u;
@@ -4751,7 +4751,7 @@ const ps = {
4751
4751
  platform_authenticator_required: "Votre compte est configuré pour utiliser des authentificateurs de plateforme, mais votre appareil ou navigateur actuel ne prend pas en charge cette fonctionnalité. Réessayez avec un appareil ou navigateur compatible.",
4752
4752
  third_party_access_denied: "Accès refusé par le fournisseur tiers. Veuillez réessayer."
4753
4753
  }
4754
- }, fs = {
4754
+ }, gs = {
4755
4755
  headlines: {
4756
4756
  error: "Ocorreu um erro",
4757
4757
  loginEmail: "Entrar ou criar conta",
@@ -5001,7 +5001,7 @@ const ps = {
5001
5001
  connectedToOsmAs: "Conectado ao OSM como",
5002
5002
  osmConnectionRequired: "Conexão OSM necessária"
5003
5003
  }
5004
- }, gs = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-person-vcard'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M5%208a2%202%200%201%200%200-4%202%202%200%200%200%200%204m4-2.5a.5.5%200%200%201%20.5-.5h4a.5.5%200%200%201%200%201h-4a.5.5%200%200%201-.5-.5M9%208a.5.5%200%200%201%20.5-.5h4a.5.5%200%200%201%200%201h-4A.5.5%200%200%201%209%208m1%202.5a.5.5%200%200%201%20.5-.5h3a.5.5%200%200%201%200%201h-3a.5.5%200%200%201-.5-.5'/%3e%3cpath%20d='M2%202a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V4a2%202%200%200%200-2-2zM1%204a1%201%200%200%201%201-1h12a1%201%200%200%201%201%201v8a1%201%200%200%201-1%201H8.96q.04-.245.04-.5C9%2010.567%207.21%209%205%209c-2.086%200-3.8%201.398-3.984%203.181A1%201%200%200%201%201%2012z'/%3e%3c/svg%3e", vs = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-box-arrow-right'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M10%2012.5a.5.5%200%200%201-.5.5h-8a.5.5%200%200%201-.5-.5v-9a.5.5%200%200%201%20.5-.5h8a.5.5%200%200%201%20.5.5v2a.5.5%200%200%200%201%200v-2A1.5%201.5%200%200%200%209.5%202h-8A1.5%201.5%200%200%200%200%203.5v9A1.5%201.5%200%200%200%201.5%2014h8a1.5%201.5%200%200%200%201.5-1.5v-2a.5.5%200%200%200-1%200z'/%3e%3cpath%20fill-rule='evenodd'%20d='M15.854%208.354a.5.5%200%200%200%200-.708l-3-3a.5.5%200%200%200-.708.708L14.293%207.5H5.5a.5.5%200%200%200%200%201h8.793l-2.147%202.146a.5.5%200%200%200%20.708.708z'/%3e%3c/svg%3e", _s = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-map'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M15.817.113A.5.5%200%200%201%2016%20.5v14a.5.5%200%200%201-.402.49l-5%201a.5.5%200%200%201-.196%200L5.5%2015.01l-4.902.98A.5.5%200%200%201%200%2015.5v-14a.5.5%200%200%201%20.402-.49l5-1a.5.5%200%200%201%20.196%200L10.5.99l4.902-.98a.5.5%200%200%201%20.415.103M10%201.91l-4-.8v12.98l4%20.8zm1%2012.98%204-.8V1.11l-4%20.8zm-6-.8V1.11l-4%20.8v12.98z'/%3e%3c/svg%3e", ys = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-person-check'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M12.5%2016a3.5%203.5%200%201%200%200-7%203.5%203.5%200%200%200%200%207m1.679-4.493-1.335%202.226a.75.75%200%200%201-1.174.144l-.774-.773a.5.5%200%200%201%20.708-.708l.547.548%201.17-1.951a.5.5%200%201%201%20.858.514M11%205a3%203%200%201%201-6%200%203%203%200%200%201%206%200M8%207a2%202%200%201%200%200-4%202%202%200%200%200%200%204'/%3e%3cpath%20d='M8.256%2014a4.5%204.5%200%200%201-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484%2010.68%205.711%2010%208%2010q.39%200%20.74.025c.226-.341.496-.65.804-.918Q8.844%209.002%208%209c-5%200-6%203-6%204s1%201%201%201z'/%3e%3c/svg%3e";
5004
+ }, fs = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-person-vcard'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M5%208a2%202%200%201%200%200-4%202%202%200%200%200%200%204m4-2.5a.5.5%200%200%201%20.5-.5h4a.5.5%200%200%201%200%201h-4a.5.5%200%200%201-.5-.5M9%208a.5.5%200%200%201%20.5-.5h4a.5.5%200%200%201%200%201h-4A.5.5%200%200%201%209%208m1%202.5a.5.5%200%200%201%20.5-.5h3a.5.5%200%200%201%200%201h-3a.5.5%200%200%201-.5-.5'/%3e%3cpath%20d='M2%202a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V4a2%202%200%200%200-2-2zM1%204a1%201%200%200%201%201-1h12a1%201%200%200%201%201%201v8a1%201%200%200%201-1%201H8.96q.04-.245.04-.5C9%2010.567%207.21%209%205%209c-2.086%200-3.8%201.398-3.984%203.181A1%201%200%200%201%201%2012z'/%3e%3c/svg%3e", vs = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-box-arrow-right'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M10%2012.5a.5.5%200%200%201-.5.5h-8a.5.5%200%200%201-.5-.5v-9a.5.5%200%200%201%20.5-.5h8a.5.5%200%200%201%20.5.5v2a.5.5%200%200%200%201%200v-2A1.5%201.5%200%200%200%209.5%202h-8A1.5%201.5%200%200%200%200%203.5v9A1.5%201.5%200%200%200%201.5%2014h8a1.5%201.5%200%200%200%201.5-1.5v-2a.5.5%200%200%200-1%200z'/%3e%3cpath%20fill-rule='evenodd'%20d='M15.854%208.354a.5.5%200%200%200%200-.708l-3-3a.5.5%200%200%200-.708.708L14.293%207.5H5.5a.5.5%200%200%200%200%201h8.793l-2.147%202.146a.5.5%200%200%200%20.708.708z'/%3e%3c/svg%3e", _s = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-map'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M15.817.113A.5.5%200%200%201%2016%20.5v14a.5.5%200%200%201-.402.49l-5%201a.5.5%200%200%201-.196%200L5.5%2015.01l-4.902.98A.5.5%200%200%201%200%2015.5v-14a.5.5%200%200%201%20.402-.49l5-1a.5.5%200%200%201%20.196%200L10.5.99l4.902-.98a.5.5%200%200%201%20.415.103M10%201.91l-4-.8v12.98l4%20.8zm1%2012.98%204-.8V1.11l-4%20.8zm-6-.8V1.11l-4%20.8v12.98z'/%3e%3c/svg%3e", ys = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-person-check'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M12.5%2016a3.5%203.5%200%201%200%200-7%203.5%203.5%200%200%200%200%207m1.679-4.493-1.335%202.226a.75.75%200%200%201-1.174.144l-.774-.773a.5.5%200%200%201%20.708-.708l.547.548%201.17-1.951a.5.5%200%201%201%20.858.514M11%205a3%203%200%201%201-6%200%203%203%200%200%201%206%200M8%207a2%202%200%201%200%200-4%202%202%200%200%200%200%204'/%3e%3cpath%20d='M8.256%2014a4.5%204.5%200%200%201-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484%2010.68%205.711%2010%208%2010q.39%200%20.74.025c.226-.341.496-.65.804-.918Q8.844%209.002%208%209c-5%200-6%203-6%204s1%201%201%201z'/%3e%3c/svg%3e";
5005
5005
  var bs = Object.defineProperty, ks = Object.getOwnPropertyDescriptor, ue = (n, e, t, o) => {
5006
5006
  for (var i = o > 1 ? void 0 : o ? ks(e, t) : e, a = n.length - 1, s; a >= 0; a--)
5007
5007
  (s = n[a]) && (i = (o ? s(e, t, i) : s(i)) || i);
@@ -5016,7 +5016,7 @@ async function ws(n) {
5016
5016
  await Mi(n, {
5017
5017
  enablePasskeys: !1,
5018
5018
  hidePasskeyButtonOnLogin: !0,
5019
- translations: { en: hs, es: ps, fr: ms, pt: fs },
5019
+ translations: { en: hs, es: ps, fr: ms, pt: gs },
5020
5020
  fallbackLanguage: "en"
5021
5021
  }), oi = !0, console.log("[hanko-auth] Hanko registration complete");
5022
5022
  } catch (e) {
@@ -5052,7 +5052,7 @@ let ce = class extends Mt {
5052
5052
  if (!this._isPrimary) return;
5053
5053
  const e = n;
5054
5054
  !this.showProfile && !this.user && ((t = e.detail) != null && t.user) && (this.log("🔔 External login detected, updating user state..."), this.user = e.detail.user, this._broadcastState(), this.osmRequired && this.checkOSMConnection());
5055
- };
5055
+ }, this._currentHankoAuthElement = null;
5056
5056
  }
5057
5057
  toggleDropdown() {
5058
5058
  this.isOpen = !this.isOpen, this.isOpen ? setTimeout(() => {
@@ -5373,11 +5373,18 @@ let ce = class extends Mt {
5373
5373
  this.log("⚠️ Could not fetch profile:", n);
5374
5374
  }
5375
5375
  }
5376
+ updated(n) {
5377
+ super.updated(n), n.has("user") && this.user === null && this.showProfile && (this.log("🔄 User logged out, re-attaching event listeners..."), this._currentHankoAuthElement = null, this.setupEventListeners());
5378
+ }
5376
5379
  setupEventListeners() {
5377
5380
  this.updateComplete.then(() => {
5378
5381
  var e;
5379
5382
  const n = (e = this.shadowRoot) == null ? void 0 : e.querySelector("hanko-auth");
5380
- n && (n.addEventListener("onSessionCreated", (t) => {
5383
+ if (n && n === this._currentHankoAuthElement) {
5384
+ this.log("⏭️ Event listeners already attached to this element");
5385
+ return;
5386
+ }
5387
+ n && (this._currentHankoAuthElement = n, this.log("🎯 Attaching event listeners to hanko-auth element"), n.addEventListener("onSessionCreated", (t) => {
5381
5388
  var i, a;
5382
5389
  this.log("🎯 Hanko event: onSessionCreated", t.detail);
5383
5390
  const o = (a = (i = t.detail) == null ? void 0 : i.claims) == null ? void 0 : a.session_id;
@@ -5747,7 +5754,7 @@ let ce = class extends Mt {
5747
5754
  </div>
5748
5755
  </div>
5749
5756
  <button data-action="profile" @click=${this.handleDropdownSelect}>
5750
- <img src="${gs}" class="icon" alt="Account icon" />
5757
+ <img src="${fs}" class="icon" alt="Account icon" />
5751
5758
  ${this.t("myHotAccount")}
5752
5759
  </button>
5753
5760
  ${this.osmRequired ? this.osmConnected ? Ue`
@@ -5921,5 +5928,5 @@ export {
5921
5928
  hs as en,
5922
5929
  ps as es,
5923
5930
  ms as fr,
5924
- fs as pt
5931
+ gs as pt
5925
5932
  };