@ahmed_hani/dot-auto-capture-ui 7.7.0 → 8.0.1

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.
Files changed (39) hide show
  1. package/document.mjs +865 -874
  2. package/document.umd.js +27 -27
  3. package/face.mjs +1252 -1323
  4. package/face.umd.js +27 -27
  5. package/magnifeye-liveness.mjs +766 -789
  6. package/magnifeye-liveness.umd.js +45 -45
  7. package/multi-range-liveness.mjs +841 -856
  8. package/multi-range-liveness.umd.js +24 -24
  9. package/package.json +5 -2
  10. package/palm.mjs +873 -891
  11. package/palm.umd.js +27 -27
  12. package/smile-liveness.mjs +1143 -1187
  13. package/smile-liveness.umd.js +37 -37
  14. package/ui/src/types/common.d.ts +3 -19
  15. package/ui/src/types/configuration.d.ts +60 -0
  16. package/ui/src/types/document.d.ts +8 -7
  17. package/ui/src/types/eye-gaze.d.ts +9 -8
  18. package/ui/src/types/face.d.ts +8 -20
  19. package/ui/src/types/magnifeye.d.ts +7 -7
  20. package/ui/src/types/multi-range.d.ts +8 -8
  21. package/ui/src/types/palm.d.ts +8 -7
  22. package/ui/src/types/smile.d.ts +8 -15
  23. package/ui-common/src/types/common.d.ts +21 -36
  24. package/ui-common/src/types/document.d.ts +1 -9
  25. package/ui-common/src/types/events/common-deprecated.d.ts +20 -0
  26. package/ui-common/src/types/events/common.d.ts +0 -13
  27. package/ui-common/src/types/events/document.d.ts +3 -7
  28. package/ui-common/src/types/events/face.d.ts +9 -2
  29. package/ui-common/src/types/events/index.d.ts +1 -0
  30. package/ui-common/src/types/events/palm.d.ts +3 -2
  31. package/ui-common/src/types/events/smile.d.ts +10 -5
  32. package/ui-common/src/types/eye-gaze.d.ts +6 -6
  33. package/ui-common/src/types/face.d.ts +1 -20
  34. package/ui-common/src/types/magnifeye.d.ts +6 -6
  35. package/ui-common/src/types/modality/detection/document.d.ts +9 -0
  36. package/ui-common/src/types/modality/detection/face.d.ts +20 -0
  37. package/ui-common/src/types/modality/detection/palm.d.ts +20 -0
  38. package/ui-common/src/types/palm.d.ts +1 -20
  39. package/ui-common/src/types/smile.d.ts +23 -16
package/face.mjs CHANGED
@@ -1,87 +1,84 @@
1
- var Co = Object.defineProperty;
2
- var wo = (e, t, n) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var et = (e, t, n) => wo(e, typeof t != "symbol" ? t + "" : t, n);
4
- var qe, v, dr, fe, $n, hr, _r, pr, on, Ht, Ft, mr, je = {}, gr = [], So = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ze = Array.isArray;
5
- function X(e, t) {
6
- for (var n in t) e[n] = t[n];
1
+ var qe, v, cn, ue, Cr, ln, un, fn, er, Lt, Mt, dn, je = {}, hn = [], mo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
2
+ function Z(e, t) {
3
+ for (var r in t) e[r] = t[r];
7
4
  return e;
8
5
  }
9
- function an(e) {
6
+ function tr(e) {
10
7
  e && e.parentNode && e.parentNode.removeChild(e);
11
8
  }
12
- function M(e, t, n) {
13
- var r, o, i, a = {};
14
- for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
15
- if (arguments.length > 2 && (a.children = arguments.length > 3 ? qe.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] == null && (a[i] = e.defaultProps[i]);
16
- return Be(e, a, r, o, null);
9
+ function L(e, t, r) {
10
+ var n, o, i, a = {};
11
+ for (i in t) i == "key" ? n = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
12
+ if (arguments.length > 2 && (a.children = arguments.length > 3 ? qe.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] == null && (a[i] = e.defaultProps[i]);
13
+ return Be(e, a, n, o, null);
17
14
  }
18
- function Be(e, t, n, r, o) {
19
- var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++dr, __i: -1, __u: 0 };
15
+ function Be(e, t, r, n, o) {
16
+ var i = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++cn, __i: -1, __u: 0 };
20
17
  return o == null && v.vnode != null && v.vnode(i), i;
21
18
  }
22
- function Eo() {
19
+ function go() {
23
20
  return { current: null };
24
21
  }
25
- function j(e) {
22
+ function z(e) {
26
23
  return e.children;
27
24
  }
28
- function q(e, t) {
25
+ function V(e, t) {
29
26
  this.props = e, this.context = t;
30
27
  }
31
- function be(e, t) {
32
- if (t == null) return e.__ ? be(e.__, e.__i + 1) : null;
33
- for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
34
- return typeof e.type == "function" ? be(e) : null;
28
+ function Ee(e, t) {
29
+ if (t == null) return e.__ ? Ee(e.__, e.__i + 1) : null;
30
+ for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
31
+ return typeof e.type == "function" ? Ee(e) : null;
35
32
  }
36
- function yr(e) {
37
- var t, n;
33
+ function _n(e) {
34
+ var t, r;
38
35
  if ((e = e.__) != null && e.__c != null) {
39
- for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
40
- e.__e = e.__c.base = n.__e;
36
+ for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) {
37
+ e.__e = e.__c.base = r.__e;
41
38
  break;
42
39
  }
43
- return yr(e);
40
+ return _n(e);
44
41
  }
45
42
  }
46
- function Ut(e) {
47
- (!e.__d && (e.__d = !0) && fe.push(e) && !ht.__r++ || $n != v.debounceRendering) && (($n = v.debounceRendering) || hr)(ht);
43
+ function Ht(e) {
44
+ (!e.__d && (e.__d = !0) && ue.push(e) && !dt.__r++ || Cr != v.debounceRendering) && ((Cr = v.debounceRendering) || ln)(dt);
48
45
  }
49
- function ht() {
50
- for (var e, t, n, r, o, i, a, c = 1; fe.length; ) fe.length > c && fe.sort(_r), e = fe.shift(), c = fe.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = X({}, r)).__v = r.__v + 1, v.vnode && v.vnode(n), sn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? be(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, wr(i, n, a), n.__e != o && yr(n)));
51
- ht.__r = 0;
46
+ function dt() {
47
+ for (var e, t, r, n, o, i, a, c = 1; ue.length; ) ue.length > c && ue.sort(un), e = ue.shift(), c = ue.length, e.__d && (r = void 0, o = (n = (t = e).__v).__e, i = [], a = [], t.__P && ((r = Z({}, n)).__v = n.__v + 1, v.vnode && v.vnode(r), rr(t.__P, r, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [o] : null, i, o ?? Ee(n), !!(32 & n.__u), a), r.__v = n.__v, r.__.__k[r.__i] = r, gn(i, r, a), r.__e != o && _n(r)));
48
+ dt.__r = 0;
52
49
  }
53
- function vr(e, t, n, r, o, i, a, c, s, u, d) {
54
- var l, _, h, g, S, $, m = r && r.__k || gr, p = t.length;
55
- for (s = bo(n, t, m, s, p), l = 0; l < p; l++) (h = n.__k[l]) != null && (_ = h.__i == -1 ? je : m[h.__i] || je, h.__i = l, $ = sn(e, h, _, o, i, a, c, s, u, d), g = h.__e, h.ref && _.ref != h.ref && (_.ref && cn(_.ref, null, h), d.push(h.ref, h.__c || g, h)), S == null && g != null && (S = g), 4 & h.__u || _.__k === h.__k ? s = Cr(h, s, e) : typeof h.type == "function" && $ !== void 0 ? s = $ : g && (s = g.nextSibling), h.__u &= -7);
56
- return n.__e = S, s;
50
+ function pn(e, t, r, n, o, i, a, c, s, u, f) {
51
+ var l, h, _, g, S, $, m = n && n.__k || hn, p = t.length;
52
+ for (s = yo(r, t, m, s, p), l = 0; l < p; l++) (_ = r.__k[l]) != null && (h = _.__i == -1 ? je : m[_.__i] || je, _.__i = l, $ = rr(e, _, h, o, i, a, c, s, u, f), g = _.__e, _.ref && h.ref != _.ref && (h.ref && nr(h.ref, null, _), f.push(_.ref, _.__c || g, _)), S == null && g != null && (S = g), 4 & _.__u || h.__k === _.__k ? s = mn(_, s, e) : typeof _.type == "function" && $ !== void 0 ? s = $ : g && (s = g.nextSibling), _.__u &= -7);
53
+ return r.__e = S, s;
57
54
  }
58
- function bo(e, t, n, r, o) {
59
- var i, a, c, s, u, d = n.length, l = d, _ = 0;
60
- for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (s = i + _, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Be(null, a, null, null, null) : Ze(a) ? Be(j, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Be(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, c = null, (u = a.__i = $o(a, n, s, l)) != -1 && (l--, (c = n[u]) && (c.__u |= 2)), c == null || c.__v == null ? (u == -1 && (o > d ? _-- : o < d && _++), typeof a.type != "function" && (a.__u |= 4)) : u != s && (u == s - 1 ? _-- : u == s + 1 ? _++ : (u > s ? _-- : _++, a.__u |= 4))) : e.__k[i] = null;
61
- if (l) for (i = 0; i < d; i++) (c = n[i]) != null && (2 & c.__u) == 0 && (c.__e == r && (r = be(c)), Er(c, c));
62
- return r;
55
+ function yo(e, t, r, n, o) {
56
+ var i, a, c, s, u, f = r.length, l = f, h = 0;
57
+ for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (s = i + h, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Be(null, a, null, null, null) : Ye(a) ? Be(z, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Be(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, c = null, (u = a.__i = vo(a, r, s, l)) != -1 && (l--, (c = r[u]) && (c.__u |= 2)), c == null || c.__v == null ? (u == -1 && (o > f ? h-- : o < f && h++), typeof a.type != "function" && (a.__u |= 4)) : u != s && (u == s - 1 ? h-- : u == s + 1 ? h++ : (u > s ? h-- : h++, a.__u |= 4))) : e.__k[i] = null;
58
+ if (l) for (i = 0; i < f; i++) (c = r[i]) != null && (2 & c.__u) == 0 && (c.__e == n && (n = Ee(c)), vn(c, c));
59
+ return n;
63
60
  }
64
- function Cr(e, t, n) {
65
- var r, o;
61
+ function mn(e, t, r) {
62
+ var n, o;
66
63
  if (typeof e.type == "function") {
67
- for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Cr(r[o], t, n));
64
+ for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t = mn(n[o], t, r));
68
65
  return t;
69
66
  }
70
- e.__e != t && (t && e.type && !n.contains(t) && (t = be(e)), n.insertBefore(e.__e, t || null), t = e.__e);
67
+ e.__e != t && (t && e.type && !r.contains(t) && (t = Ee(e)), r.insertBefore(e.__e, t || null), t = e.__e);
71
68
  do
72
69
  t = t && t.nextSibling;
73
70
  while (t != null && t.nodeType == 8);
74
71
  return t;
75
72
  }
76
- function te(e, t) {
77
- return t = t || [], e == null || typeof e == "boolean" || (Ze(e) ? e.some(function(n) {
78
- te(n, t);
73
+ function ee(e, t) {
74
+ return t = t || [], e == null || typeof e == "boolean" || (Ye(e) ? e.some(function(r) {
75
+ ee(r, t);
79
76
  }) : t.push(e)), t;
80
77
  }
81
- function $o(e, t, n, r) {
82
- var o, i, a = e.key, c = e.type, s = t[n];
83
- if (s === null && e.key == null || s && a == s.key && c == s.type && (2 & s.__u) == 0) return n;
84
- if (r > (s != null && (2 & s.__u) == 0 ? 1 : 0)) for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) {
78
+ function vo(e, t, r, n) {
79
+ var o, i, a = e.key, c = e.type, s = t[r];
80
+ if (s === null && e.key == null || s && a == s.key && c == s.type && (2 & s.__u) == 0) return r;
81
+ if (n > (s != null && (2 & s.__u) == 0 ? 1 : 0)) for (o = r - 1, i = r + 1; o >= 0 || i < t.length; ) {
85
82
  if (o >= 0) {
86
83
  if ((s = t[o]) && (2 & s.__u) == 0 && a == s.key && c == s.type) return o;
87
84
  o--;
@@ -93,75 +90,75 @@ function $o(e, t, n, r) {
93
90
  }
94
91
  return -1;
95
92
  }
96
- function kn(e, t, n) {
97
- t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || So.test(t) ? n : n + "px";
93
+ function wr(e, t, r) {
94
+ t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || mo.test(t) ? r : r + "px";
98
95
  }
99
- function tt(e, t, n, r, o) {
96
+ function et(e, t, r, n, o) {
100
97
  var i;
101
- e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
98
+ e: if (t == "style") if (typeof r == "string") e.style.cssText = r;
102
99
  else {
103
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || kn(e.style, t, "");
104
- if (n) for (t in n) r && n[t] == r[t] || kn(e.style, t, n[t]);
100
+ if (typeof n == "string" && (e.style.cssText = n = ""), n) for (t in n) r && t in r || wr(e.style, t, "");
101
+ if (r) for (t in r) n && r[t] == n[t] || wr(e.style, t, r[t]);
105
102
  }
106
- else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(pr, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = on, e.addEventListener(t, i ? Ft : Ht, i)) : e.removeEventListener(t, i ? Ft : Ht, i);
103
+ else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(fn, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = r, r ? n ? r.u = n.u : (r.u = er, e.addEventListener(t, i ? Mt : Lt, i)) : e.removeEventListener(t, i ? Mt : Lt, i);
107
104
  else {
108
105
  if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
109
106
  else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
110
- e[t] = n ?? "";
107
+ e[t] = r ?? "";
111
108
  break e;
112
109
  } catch {
113
110
  }
114
- typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
111
+ typeof r == "function" || (r == null || r === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
115
112
  }
116
113
  }
117
- function On(e) {
114
+ function Sr(e) {
118
115
  return function(t) {
119
116
  if (this.l) {
120
- var n = this.l[t.type + e];
121
- if (t.t == null) t.t = on++;
122
- else if (t.t < n.u) return;
123
- return n(v.event ? v.event(t) : t);
117
+ var r = this.l[t.type + e];
118
+ if (t.t == null) t.t = er++;
119
+ else if (t.t < r.u) return;
120
+ return r(v.event ? v.event(t) : t);
124
121
  }
125
122
  };
126
123
  }
127
- function sn(e, t, n, r, o, i, a, c, s, u) {
128
- var d, l, _, h, g, S, $, m, p, k, E, N, w, y, H, U, Ae, B = t.type;
124
+ function rr(e, t, r, n, o, i, a, c, s, u) {
125
+ var f, l, h, _, g, S, $, m, p, k, b, N, w, y, M, F, Pe, U = t.type;
129
126
  if (t.constructor != null) return null;
130
- 128 & n.__u && (s = !!(32 & n.__u), i = [c = t.__e = n.__e]), (d = v.__b) && d(t);
131
- e: if (typeof B == "function") try {
132
- if (m = t.props, p = "prototype" in B && B.prototype.render, k = (d = B.contextType) && r[d.__c], E = d ? k ? k.props.value : d.__ : r, n.__c ? $ = (l = t.__c = n.__c).__ = l.__E : (p ? t.__c = l = new B(m, E) : (t.__c = l = new q(m, E), l.constructor = B, l.render = Oo), k && k.sub(l), l.props = m, l.state || (l.state = {}), l.context = E, l.__n = r, _ = l.__d = !0, l.__h = [], l._sb = []), p && l.__s == null && (l.__s = l.state), p && B.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = X({}, l.__s)), X(l.__s, B.getDerivedStateFromProps(m, l.__s))), h = l.props, g = l.state, l.__v = t, _) p && B.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), p && l.componentDidMount != null && l.__h.push(l.componentDidMount);
127
+ 128 & r.__u && (s = !!(32 & r.__u), i = [c = t.__e = r.__e]), (f = v.__b) && f(t);
128
+ e: if (typeof U == "function") try {
129
+ if (m = t.props, p = "prototype" in U && U.prototype.render, k = (f = U.contextType) && n[f.__c], b = f ? k ? k.props.value : f.__ : n, r.__c ? $ = (l = t.__c = r.__c).__ = l.__E : (p ? t.__c = l = new U(m, b) : (t.__c = l = new V(m, b), l.constructor = U, l.render = wo), k && k.sub(l), l.props = m, l.state || (l.state = {}), l.context = b, l.__n = n, h = l.__d = !0, l.__h = [], l._sb = []), p && l.__s == null && (l.__s = l.state), p && U.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = Z({}, l.__s)), Z(l.__s, U.getDerivedStateFromProps(m, l.__s))), _ = l.props, g = l.state, l.__v = t, h) p && U.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), p && l.componentDidMount != null && l.__h.push(l.componentDidMount);
133
130
  else {
134
- if (p && B.getDerivedStateFromProps == null && m !== h && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, E), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, E) === !1 || t.__v == n.__v) {
135
- for (t.__v != n.__v && (l.props = m, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(le) {
136
- le && (le.__ = t);
131
+ if (p && U.getDerivedStateFromProps == null && m !== _ && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, b), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, b) === !1 || t.__v == r.__v) {
132
+ for (t.__v != r.__v && (l.props = m, l.state = l.__s, l.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.some(function(ce) {
133
+ ce && (ce.__ = t);
137
134
  }), N = 0; N < l._sb.length; N++) l.__h.push(l._sb[N]);
138
135
  l._sb = [], l.__h.length && a.push(l);
139
136
  break e;
140
137
  }
141
- l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s, E), p && l.componentDidUpdate != null && l.__h.push(function() {
142
- l.componentDidUpdate(h, g, S);
138
+ l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s, b), p && l.componentDidUpdate != null && l.__h.push(function() {
139
+ l.componentDidUpdate(_, g, S);
143
140
  });
144
141
  }
145
- if (l.context = E, l.props = m, l.__P = e, l.__e = !1, w = v.__r, y = 0, p) {
146
- for (l.state = l.__s, l.__d = !1, w && w(t), d = l.render(l.props, l.state, l.context), H = 0; H < l._sb.length; H++) l.__h.push(l._sb[H]);
142
+ if (l.context = b, l.props = m, l.__P = e, l.__e = !1, w = v.__r, y = 0, p) {
143
+ for (l.state = l.__s, l.__d = !1, w && w(t), f = l.render(l.props, l.state, l.context), M = 0; M < l._sb.length; M++) l.__h.push(l._sb[M]);
147
144
  l._sb = [];
148
145
  } else do
149
- l.__d = !1, w && w(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
146
+ l.__d = !1, w && w(t), f = l.render(l.props, l.state, l.context), l.state = l.__s;
150
147
  while (l.__d && ++y < 25);
151
- l.state = l.__s, l.getChildContext != null && (r = X(X({}, r), l.getChildContext())), p && !_ && l.getSnapshotBeforeUpdate != null && (S = l.getSnapshotBeforeUpdate(h, g)), U = d, d != null && d.type === j && d.key == null && (U = Sr(d.props.children)), c = vr(e, Ze(U) ? U : [U], t, n, r, o, i, a, c, s, u), l.base = t.__e, t.__u &= -161, l.__h.length && a.push(l), $ && (l.__E = l.__ = null);
152
- } catch (le) {
153
- if (t.__v = null, s || i != null) if (le.then) {
148
+ l.state = l.__s, l.getChildContext != null && (n = Z(Z({}, n), l.getChildContext())), p && !h && l.getSnapshotBeforeUpdate != null && (S = l.getSnapshotBeforeUpdate(_, g)), F = f, f != null && f.type === z && f.key == null && (F = yn(f.props.children)), c = pn(e, Ye(F) ? F : [F], t, r, n, o, i, a, c, s, u), l.base = t.__e, t.__u &= -161, l.__h.length && a.push(l), $ && (l.__E = l.__ = null);
149
+ } catch (ce) {
150
+ if (t.__v = null, s || i != null) if (ce.then) {
154
151
  for (t.__u |= s ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
155
152
  i[i.indexOf(c)] = null, t.__e = c;
156
- } else for (Ae = i.length; Ae--; ) an(i[Ae]);
157
- else t.__e = n.__e, t.__k = n.__k;
158
- v.__e(le, t, n);
153
+ } else for (Pe = i.length; Pe--; ) tr(i[Pe]);
154
+ else t.__e = r.__e, t.__k = r.__k;
155
+ v.__e(ce, t, r);
159
156
  }
160
- else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : c = t.__e = ko(n.__e, t, n, r, o, i, a, s, u);
161
- return (d = v.diffed) && d(t), 128 & t.__u ? void 0 : c;
157
+ else i == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : c = t.__e = Co(r.__e, t, r, n, o, i, a, s, u);
158
+ return (f = v.diffed) && f(t), 128 & t.__u ? void 0 : c;
162
159
  }
163
- function wr(e, t, n) {
164
- for (var r = 0; r < n.length; r++) cn(n[r], n[++r], n[++r]);
160
+ function gn(e, t, r) {
161
+ for (var n = 0; n < r.length; n++) nr(r[n], r[++n], r[++n]);
165
162
  v.__c && v.__c(t, e), e.some(function(o) {
166
163
  try {
167
164
  e = o.__h, o.__h = [], e.some(function(i) {
@@ -172,14 +169,14 @@ function wr(e, t, n) {
172
169
  }
173
170
  });
174
171
  }
175
- function Sr(e) {
176
- return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ze(e) ? e.map(Sr) : X({}, e);
172
+ function yn(e) {
173
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(yn) : Z({}, e);
177
174
  }
178
- function ko(e, t, n, r, o, i, a, c, s) {
179
- var u, d, l, _, h, g, S, $ = n.props, m = t.props, p = t.type;
175
+ function Co(e, t, r, n, o, i, a, c, s) {
176
+ var u, f, l, h, _, g, S, $ = r.props, m = t.props, p = t.type;
180
177
  if (p == "svg" ? o = "http://www.w3.org/2000/svg" : p == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
181
- for (u = 0; u < i.length; u++) if ((h = i[u]) && "setAttribute" in h == !!p && (p ? h.localName == p : h.nodeType == 3)) {
182
- e = h, i[u] = null;
178
+ for (u = 0; u < i.length; u++) if ((_ = i[u]) && "setAttribute" in _ == !!p && (p ? _.localName == p : _.nodeType == 3)) {
179
+ e = _, i[u] = null;
183
180
  break;
184
181
  }
185
182
  }
@@ -189,162 +186,162 @@ function ko(e, t, n, r, o, i, a, c, s) {
189
186
  }
190
187
  if (p == null) $ === m || c && e.data == m || (e.data = m);
191
188
  else {
192
- if (i = i && qe.call(e.childNodes), $ = n.props || je, !c && i != null) for ($ = {}, u = 0; u < e.attributes.length; u++) $[(h = e.attributes[u]).name] = h.value;
193
- for (u in $) if (h = $[u], u != "children") {
194
- if (u == "dangerouslySetInnerHTML") l = h;
189
+ if (i = i && qe.call(e.childNodes), $ = r.props || je, !c && i != null) for ($ = {}, u = 0; u < e.attributes.length; u++) $[(_ = e.attributes[u]).name] = _.value;
190
+ for (u in $) if (_ = $[u], u != "children") {
191
+ if (u == "dangerouslySetInnerHTML") l = _;
195
192
  else if (!(u in m)) {
196
193
  if (u == "value" && "defaultValue" in m || u == "checked" && "defaultChecked" in m) continue;
197
- tt(e, u, null, h, o);
194
+ et(e, u, null, _, o);
198
195
  }
199
196
  }
200
- for (u in m) h = m[u], u == "children" ? _ = h : u == "dangerouslySetInnerHTML" ? d = h : u == "value" ? g = h : u == "checked" ? S = h : c && typeof h != "function" || $[u] === h || tt(e, u, h, $[u], o);
201
- if (d) c || l && (d.__html == l.__html || d.__html == e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
202
- else if (l && (e.innerHTML = ""), vr(t.type == "template" ? e.content : e, Ze(_) ? _ : [_], t, n, r, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && be(n, 0), c, s), i != null) for (u = i.length; u--; ) an(i[u]);
203
- c || (u = "value", p == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[u] || p == "progress" && !g || p == "option" && g != $[u]) && tt(e, u, g, $[u], o), u = "checked", S != null && S != e[u] && tt(e, u, S, $[u], o));
197
+ for (u in m) _ = m[u], u == "children" ? h = _ : u == "dangerouslySetInnerHTML" ? f = _ : u == "value" ? g = _ : u == "checked" ? S = _ : c && typeof _ != "function" || $[u] === _ || et(e, u, _, $[u], o);
198
+ if (f) c || l && (f.__html == l.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
199
+ else if (l && (e.innerHTML = ""), pn(t.type == "template" ? e.content : e, Ye(h) ? h : [h], t, r, n, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : r.__k && Ee(r, 0), c, s), i != null) for (u = i.length; u--; ) tr(i[u]);
200
+ c || (u = "value", p == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[u] || p == "progress" && !g || p == "option" && g != $[u]) && et(e, u, g, $[u], o), u = "checked", S != null && S != e[u] && et(e, u, S, $[u], o));
204
201
  }
205
202
  return e;
206
203
  }
207
- function cn(e, t, n) {
204
+ function nr(e, t, r) {
208
205
  try {
209
206
  if (typeof e == "function") {
210
- var r = typeof e.__u == "function";
211
- r && e.__u(), r && t == null || (e.__u = e(t));
207
+ var n = typeof e.__u == "function";
208
+ n && e.__u(), n && t == null || (e.__u = e(t));
212
209
  } else e.current = t;
213
210
  } catch (o) {
214
- v.__e(o, n);
211
+ v.__e(o, r);
215
212
  }
216
213
  }
217
- function Er(e, t, n) {
218
- var r, o;
219
- if (v.unmount && v.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || cn(r, null, t)), (r = e.__c) != null) {
220
- if (r.componentWillUnmount) try {
221
- r.componentWillUnmount();
214
+ function vn(e, t, r) {
215
+ var n, o;
216
+ if (v.unmount && v.unmount(e), (n = e.ref) && (n.current && n.current != e.__e || nr(n, null, t)), (n = e.__c) != null) {
217
+ if (n.componentWillUnmount) try {
218
+ n.componentWillUnmount();
222
219
  } catch (i) {
223
220
  v.__e(i, t);
224
221
  }
225
- r.base = r.__P = null;
222
+ n.base = n.__P = null;
226
223
  }
227
- if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Er(r[o], t, n || typeof e.type != "function");
228
- n || an(e.__e), e.__c = e.__ = e.__e = void 0;
224
+ if (n = e.__k) for (o = 0; o < n.length; o++) n[o] && vn(n[o], t, r || typeof e.type != "function");
225
+ r || tr(e.__e), e.__c = e.__ = e.__e = void 0;
229
226
  }
230
- function Oo(e, t, n) {
231
- return this.constructor(e, n);
227
+ function wo(e, t, r) {
228
+ return this.constructor(e, r);
232
229
  }
233
- function se(e, t, n) {
234
- var r, o, i, a;
235
- t == document && (t = document.documentElement), v.__ && v.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], sn(t, e = (!r && n || t).__k = M(j, null, [e]), o || je, je, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? qe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), wr(i, e, a);
230
+ function ae(e, t, r) {
231
+ var n, o, i, a;
232
+ t == document && (t = document.documentElement), v.__ && v.__(e, t), o = (n = typeof r == "function") ? null : r && r.__k || t.__k, i = [], a = [], rr(t, e = (!n && r || t).__k = L(z, null, [e]), o || je, je, t.namespaceURI, !n && r ? [r] : o ? null : t.firstChild ? qe.call(t.childNodes) : null, i, !n && r ? r : o ? o.__e : t.firstChild, n, a), gn(i, e, a);
236
233
  }
237
- function ln(e, t) {
238
- se(e, t, ln);
234
+ function or(e, t) {
235
+ ae(e, t, or);
239
236
  }
240
- function un(e, t, n) {
241
- var r, o, i, a, c = X({}, e.props);
242
- for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : c[i] = t[i] == null && a != null ? a[i] : t[i];
243
- return arguments.length > 2 && (c.children = arguments.length > 3 ? qe.call(arguments, 2) : n), Be(e.type, c, r || e.key, o || e.ref, null);
237
+ function ir(e, t, r) {
238
+ var n, o, i, a, c = Z({}, e.props);
239
+ for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? n = t[i] : i == "ref" ? o = t[i] : c[i] = t[i] == null && a != null ? a[i] : t[i];
240
+ return arguments.length > 2 && (c.children = arguments.length > 3 ? qe.call(arguments, 2) : r), Be(e.type, c, n || e.key, o || e.ref, null);
244
241
  }
245
- function br(e) {
246
- function t(n) {
247
- var r, o;
248
- return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
242
+ function Cn(e) {
243
+ function t(r) {
244
+ var n, o;
245
+ return this.getChildContext || (n = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
249
246
  return o;
250
247
  }, this.componentWillUnmount = function() {
251
- r = null;
248
+ n = null;
252
249
  }, this.shouldComponentUpdate = function(i) {
253
- this.props.value != i.value && r.forEach(function(a) {
254
- a.__e = !0, Ut(a);
250
+ this.props.value != i.value && n.forEach(function(a) {
251
+ a.__e = !0, Ht(a);
255
252
  });
256
253
  }, this.sub = function(i) {
257
- r.add(i);
254
+ n.add(i);
258
255
  var a = i.componentWillUnmount;
259
256
  i.componentWillUnmount = function() {
260
- r && r.delete(i), a && a.call(i);
257
+ n && n.delete(i), a && a.call(i);
261
258
  };
262
- }), n.children;
259
+ }), r.children;
263
260
  }
264
- return t.__c = "__cC" + mr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
265
- return n.children(r);
261
+ return t.__c = "__cC" + dn++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(r, n) {
262
+ return r.children(n);
266
263
  }).contextType = t, t;
267
264
  }
268
- qe = gr.slice, v = { __e: function(e, t, n, r) {
265
+ qe = hn.slice, v = { __e: function(e, t, r, n) {
269
266
  for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
270
- if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), a = o.__d), a) return o.__E = o;
267
+ if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, n || {}), a = o.__d), a) return o.__E = o;
271
268
  } catch (c) {
272
269
  e = c;
273
270
  }
274
271
  throw e;
275
- } }, dr = 0, q.prototype.setState = function(e, t) {
276
- var n;
277
- n = this.__s != null && this.__s != this.state ? this.__s : this.__s = X({}, this.state), typeof e == "function" && (e = e(X({}, n), this.props)), e && X(n, e), e != null && this.__v && (t && this._sb.push(t), Ut(this));
278
- }, q.prototype.forceUpdate = function(e) {
279
- this.__v && (this.__e = !0, e && this.__h.push(e), Ut(this));
280
- }, q.prototype.render = j, fe = [], hr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, _r = function(e, t) {
272
+ } }, cn = 0, V.prototype.setState = function(e, t) {
273
+ var r;
274
+ r = this.__s != null && this.__s != this.state ? this.__s : this.__s = Z({}, this.state), typeof e == "function" && (e = e(Z({}, r), this.props)), e && Z(r, e), e != null && this.__v && (t && this._sb.push(t), Ht(this));
275
+ }, V.prototype.forceUpdate = function(e) {
276
+ this.__v && (this.__e = !0, e && this.__h.push(e), Ht(this));
277
+ }, V.prototype.render = z, ue = [], ln = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, un = function(e, t) {
281
278
  return e.__v.__b - t.__v.__b;
282
- }, ht.__r = 0, pr = /(PointerCapture)$|Capture$/i, on = 0, Ht = On(!1), Ft = On(!0), mr = 0;
283
- function fn() {
284
- return (fn = Object.assign ? Object.assign.bind() : function(e) {
279
+ }, dt.__r = 0, fn = /(PointerCapture)$|Capture$/i, er = 0, Lt = Sr(!1), Mt = Sr(!0), dn = 0;
280
+ function ar() {
281
+ return (ar = Object.assign ? Object.assign.bind() : function(e) {
285
282
  for (var t = 1; t < arguments.length; t++) {
286
- var n = arguments[t];
287
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
283
+ var r = arguments[t];
284
+ for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
288
285
  }
289
286
  return e;
290
287
  }).apply(this, arguments);
291
288
  }
292
- var No = ["context", "children"];
293
- function xo(e) {
289
+ var So = ["context", "children"];
290
+ function bo(e) {
294
291
  this.getChildContext = function() {
295
292
  return e.context;
296
293
  };
297
- var t = e.children, n = function(r, o) {
298
- if (r == null) return {};
299
- var i, a, c = {}, s = Object.keys(r);
300
- for (a = 0; a < s.length; a++) o.indexOf(i = s[a]) >= 0 || (c[i] = r[i]);
294
+ var t = e.children, r = function(n, o) {
295
+ if (n == null) return {};
296
+ var i, a, c = {}, s = Object.keys(n);
297
+ for (a = 0; a < s.length; a++) o.indexOf(i = s[a]) >= 0 || (c[i] = n[i]);
301
298
  return c;
302
- }(e, No);
303
- return un(t, n);
299
+ }(e, So);
300
+ return ir(t, r);
304
301
  }
305
- function To() {
302
+ function Eo() {
306
303
  var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
307
- this.dispatchEvent(e), this._vdom = M(xo, fn({}, this._props, { context: e.detail.context }), function t(n, r) {
308
- if (n.nodeType === 3) return n.data;
309
- if (n.nodeType !== 1) return null;
310
- var o = [], i = {}, a = 0, c = n.attributes, s = n.childNodes;
311
- for (a = c.length; a--; ) c[a].name !== "slot" && (i[c[a].name] = c[a].value, i[$r(c[a].name)] = c[a].value);
304
+ this.dispatchEvent(e), this._vdom = L(bo, ar({}, this._props, { context: e.detail.context }), function t(r, n) {
305
+ if (r.nodeType === 3) return r.data;
306
+ if (r.nodeType !== 1) return null;
307
+ var o = [], i = {}, a = 0, c = r.attributes, s = r.childNodes;
308
+ for (a = c.length; a--; ) c[a].name !== "slot" && (i[c[a].name] = c[a].value, i[wn(c[a].name)] = c[a].value);
312
309
  for (a = s.length; a--; ) {
313
- var u = t(s[a], null), d = s[a].slot;
314
- d ? i[d] = M(Nn, { name: d }, u) : o[a] = u;
310
+ var u = t(s[a], null), f = s[a].slot;
311
+ f ? i[f] = L(br, { name: f }, u) : o[a] = u;
315
312
  }
316
- var l = r ? M(Nn, null, o) : o;
317
- return M(r || n.nodeName.toLowerCase(), i, l);
318
- }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? ln : se)(this._vdom, this._root);
313
+ var l = n ? L(br, null, o) : o;
314
+ return L(n || r.nodeName.toLowerCase(), i, l);
315
+ }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? or : ae)(this._vdom, this._root);
319
316
  }
320
- function $r(e) {
321
- return e.replace(/-(\w)/g, function(t, n) {
322
- return n ? n.toUpperCase() : "";
317
+ function wn(e) {
318
+ return e.replace(/-(\w)/g, function(t, r) {
319
+ return r ? r.toUpperCase() : "";
323
320
  });
324
321
  }
325
- function Io(e, t, n) {
322
+ function $o(e, t, r) {
326
323
  if (this._vdom) {
327
- var r = {};
328
- r[e] = n = n ?? void 0, r[$r(e)] = n, this._vdom = un(this._vdom, r), se(this._vdom, this._root);
324
+ var n = {};
325
+ n[e] = r = r ?? void 0, n[wn(e)] = r, this._vdom = ir(this._vdom, n), ae(this._vdom, this._root);
329
326
  }
330
327
  }
331
- function Ro() {
332
- se(this._vdom = null, this._root);
328
+ function ko() {
329
+ ae(this._vdom = null, this._root);
333
330
  }
334
- function Nn(e, t) {
335
- var n = this;
336
- return M("slot", fn({}, e, { ref: function(r) {
337
- r ? (n.ref = r, n._listener || (n._listener = function(o) {
331
+ function br(e, t) {
332
+ var r = this;
333
+ return L("slot", ar({}, e, { ref: function(n) {
334
+ n ? (r.ref = n, r._listener || (r._listener = function(o) {
338
335
  o.stopPropagation(), o.detail.context = t;
339
- }, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
336
+ }, n.addEventListener("_preact", r._listener))) : r.ref.removeEventListener("_preact", r._listener);
340
337
  } }));
341
338
  }
342
- function Ao(e, t, n, r) {
339
+ function Oo(e, t, r, n) {
343
340
  function o() {
344
341
  var i = Reflect.construct(HTMLElement, [], o);
345
342
  return i._vdomComponent = e, i._root = i, i;
346
343
  }
347
- return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = To, o.prototype.attributeChangedCallback = Io, o.prototype.disconnectedCallback = Ro, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
344
+ return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Eo, o.prototype.attributeChangedCallback = $o, o.prototype.disconnectedCallback = ko, r = r || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = r, r.forEach(function(i) {
348
345
  Object.defineProperty(o.prototype, i, { get: function() {
349
346
  return this._vdom.props[i];
350
347
  }, set: function(a) {
@@ -354,29 +351,29 @@ function Ao(e, t, n, r) {
354
351
  } });
355
352
  }), customElements.define(t, o);
356
353
  }
357
- var Lo = 0;
358
- function f(e, t, n, r, o, i) {
354
+ var No = 0;
355
+ function d(e, t, r, n, o, i) {
359
356
  t || (t = {});
360
357
  var a, c, s = t;
361
358
  if ("ref" in s) for (c in s = {}, t) c == "ref" ? a = t[c] : s[c] = t[c];
362
- var u = { type: e, props: s, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Lo, __i: -1, __u: 0, __source: o, __self: i };
359
+ var u = { type: e, props: s, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --No, __i: -1, __u: 0, __source: o, __self: i };
363
360
  if (typeof e == "function" && (a = e.defaultProps)) for (c in a) s[c] === void 0 && (s[c] = a[c]);
364
361
  return v.vnode && v.vnode(u), u;
365
362
  }
366
- const xn = {
363
+ const Er = {
367
364
  SWITCH_CAMERA: "switch-camera",
368
365
  TOGGLE_MIRROR: "toggle-mirror"
369
366
  };
370
- var me = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "face-auto-capture:camera-props-changed", e.CONTROL = "face-auto-capture:control", e.DETECTED_FACE_CHANGED = "face-auto-capture:detected-face-changed", e.FACE_DETECTION = "face-auto-capture:face-detection", e.INSTRUCTION_CHANGED = "face-auto-capture:instruction-changed", e.STATE_CHANGED = "face-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "face-auto-capture:video-element-size", e))(me || {});
371
- const V = {
372
- LOADING: "LOADING",
373
- ERROR: "ERROR",
374
- WAITING: "WAITING",
375
- RUNNING: "RUNNING",
376
- COMPLETE: "COMPLETE"
377
- }, Tn = {
367
+ var pe = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "face-auto-capture:camera-props-changed", e.CONTROL = "face-auto-capture:control", e.DETECTION_CHANGED = "face-auto-capture:detection-changed", e.FACE_DETECTION = "face-auto-capture:face-detection", e.INSTRUCTION_CHANGED = "face-auto-capture:instruction-changed", e.STATE_CHANGED = "face-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "face-auto-capture:video-element-size", e))(pe || {});
368
+ const G = {
369
+ LOADING: "loading",
370
+ ERROR: "error",
371
+ WAITING: "waiting",
372
+ RUNNING: "running",
373
+ COMPLETE: "complete"
374
+ }, $r = {
378
375
  EYE_NOT_PRESENT: "eye_not_present"
379
- }, L = {
376
+ }, A = {
380
377
  CANDIDATE_SELECTION: "candidate_selection",
381
378
  FACE_TOO_CLOSE: "face_too_close",
382
379
  FACE_TOO_FAR: "face_too_far",
@@ -386,40 +383,40 @@ const V = {
386
383
  BRIGHTNESS_TOO_LOW: "brightness_too_low",
387
384
  BRIGHTNESS_TOO_HIGH: "brightness_too_high",
388
385
  DEVICE_PITCHED: "device_pitched",
389
- LEFT_EYE_NOT_PRESENT: `left_${Tn.EYE_NOT_PRESENT}`,
390
- RIGHT_EYE_NOT_PRESENT: `right_${Tn.EYE_NOT_PRESENT}`,
386
+ LEFT_EYE_NOT_PRESENT: `left_${$r.EYE_NOT_PRESENT}`,
387
+ RIGHT_EYE_NOT_PRESENT: `right_${$r.EYE_NOT_PRESENT}`,
391
388
  MOUTH_NOT_PRESENT: "mouth_not_present",
392
389
  MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high",
393
390
  MOUTH_SCORE_TOO_LOW: "mouth_score_too_low"
394
391
  };
395
- var ce, T, It, In, $e = 0, kr = [], I = v, Rn = I.__b, An = I.__r, Ln = I.diffed, Pn = I.__c, Dn = I.unmount, Mn = I.__;
392
+ var se, T, xt, kr, $e = 0, Sn = [], I = v, Or = I.__b, Nr = I.__r, xr = I.diffed, Tr = I.__c, Ir = I.unmount, Rr = I.__;
396
393
  function Te(e, t) {
397
394
  I.__h && I.__h(T, e, $e || t), $e = 0;
398
- var n = T.__H || (T.__H = { __: [], __h: [] });
399
- return e >= n.__.length && n.__.push({}), n.__[e];
400
- }
401
- function z(e) {
402
- return $e = 1, dn(xr, e);
403
- }
404
- function dn(e, t, n) {
405
- var r = Te(ce++, 2);
406
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : xr(void 0, t), function(c) {
407
- var s = r.__N ? r.__N[0] : r.__[0], u = r.t(s, c);
408
- s !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
409
- }], r.__c = T, !T.__f)) {
395
+ var r = T.__H || (T.__H = { __: [], __h: [] });
396
+ return e >= r.__.length && r.__.push({}), r.__[e];
397
+ }
398
+ function W(e) {
399
+ return $e = 1, sr($n, e);
400
+ }
401
+ function sr(e, t, r) {
402
+ var n = Te(se++, 2);
403
+ if (n.t = e, !n.__c && (n.__ = [r ? r(t) : $n(void 0, t), function(c) {
404
+ var s = n.__N ? n.__N[0] : n.__[0], u = n.t(s, c);
405
+ s !== u && (n.__N = [u, n.__[1]], n.__c.setState({}));
406
+ }], n.__c = T, !T.__f)) {
410
407
  var o = function(c, s, u) {
411
- if (!r.__c.__H) return !0;
412
- var d = r.__c.__H.__.filter(function(_) {
413
- return !!_.__c;
408
+ if (!n.__c.__H) return !0;
409
+ var f = n.__c.__H.__.filter(function(h) {
410
+ return !!h.__c;
414
411
  });
415
- if (d.every(function(_) {
416
- return !_.__N;
412
+ if (f.every(function(h) {
413
+ return !h.__N;
417
414
  })) return !i || i.call(this, c, s, u);
418
- var l = r.__c.props !== c;
419
- return d.forEach(function(_) {
420
- if (_.__N) {
421
- var h = _.__[0];
422
- _.__ = _.__N, _.__N = void 0, h !== _.__[0] && (l = !0);
415
+ var l = n.__c.props !== c;
416
+ return f.forEach(function(h) {
417
+ if (h.__N) {
418
+ var _ = h.__[0];
419
+ h.__ = h.__N, h.__N = void 0, _ !== h.__[0] && (l = !0);
423
420
  }
424
421
  }), i && i.call(this, c, s, u) || l;
425
422
  };
@@ -427,271 +424,271 @@ function dn(e, t, n) {
427
424
  var i = T.shouldComponentUpdate, a = T.componentWillUpdate;
428
425
  T.componentWillUpdate = function(c, s, u) {
429
426
  if (this.__e) {
430
- var d = i;
431
- i = void 0, o(c, s, u), i = d;
427
+ var f = i;
428
+ i = void 0, o(c, s, u), i = f;
432
429
  }
433
430
  a && a.call(this, c, s, u);
434
431
  }, T.shouldComponentUpdate = o;
435
432
  }
436
- return r.__N || r.__;
433
+ return n.__N || n.__;
437
434
  }
438
435
  function re(e, t) {
439
- var n = Te(ce++, 3);
440
- !I.__s && hn(n.__H, t) && (n.__ = e, n.u = t, T.__H.__h.push(n));
436
+ var r = Te(se++, 3);
437
+ !I.__s && cr(r.__H, t) && (r.__ = e, r.u = t, T.__H.__h.push(r));
441
438
  }
442
439
  function Ie(e, t) {
443
- var n = Te(ce++, 4);
444
- !I.__s && hn(n.__H, t) && (n.__ = e, n.u = t, T.__h.push(n));
440
+ var r = Te(se++, 4);
441
+ !I.__s && cr(r.__H, t) && (r.__ = e, r.u = t, T.__h.push(r));
445
442
  }
446
- function Ye(e) {
447
- return $e = 5, ne(function() {
443
+ function Ze(e) {
444
+ return $e = 5, te(function() {
448
445
  return { current: e };
449
446
  }, []);
450
447
  }
451
- function Or(e, t, n) {
448
+ function bn(e, t, r) {
452
449
  $e = 6, Ie(function() {
453
450
  if (typeof e == "function") {
454
- var r = e(t());
451
+ var n = e(t());
455
452
  return function() {
456
- e(null), r && typeof r == "function" && r();
453
+ e(null), n && typeof n == "function" && n();
457
454
  };
458
455
  }
459
456
  if (e) return e.current = t(), function() {
460
457
  return e.current = null;
461
458
  };
462
- }, n == null ? n : n.concat(e));
459
+ }, r == null ? r : r.concat(e));
463
460
  }
464
- function ne(e, t) {
465
- var n = Te(ce++, 7);
466
- return hn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
461
+ function te(e, t) {
462
+ var r = Te(se++, 7);
463
+ return cr(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
467
464
  }
468
- function ge(e, t) {
469
- return $e = 8, ne(function() {
465
+ function me(e, t) {
466
+ return $e = 8, te(function() {
470
467
  return e;
471
468
  }, t);
472
469
  }
473
470
  function Xe(e) {
474
- var t = T.context[e.__c], n = Te(ce++, 9);
475
- return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(T)), t.props.value) : e.__;
471
+ var t = T.context[e.__c], r = Te(se++, 9);
472
+ return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(T)), t.props.value) : e.__;
476
473
  }
477
- function _t(e, t) {
474
+ function ht(e, t) {
478
475
  I.useDebugValue && I.useDebugValue(t ? t(e) : e);
479
476
  }
480
- function Nr() {
481
- var e = Te(ce++, 11);
477
+ function En() {
478
+ var e = Te(se++, 11);
482
479
  if (!e.__) {
483
480
  for (var t = T.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
484
- var n = t.__m || (t.__m = [0, 0]);
485
- e.__ = "P" + n[0] + "-" + n[1]++;
481
+ var r = t.__m || (t.__m = [0, 0]);
482
+ e.__ = "P" + r[0] + "-" + r[1]++;
486
483
  }
487
484
  return e.__;
488
485
  }
489
- function Po() {
490
- for (var e; e = kr.shift(); ) if (e.__P && e.__H) try {
491
- e.__H.__h.forEach(at), e.__H.__h.forEach(Bt), e.__H.__h = [];
486
+ function xo() {
487
+ for (var e; e = Sn.shift(); ) if (e.__P && e.__H) try {
488
+ e.__H.__h.forEach(it), e.__H.__h.forEach(Ft), e.__H.__h = [];
492
489
  } catch (t) {
493
490
  e.__H.__h = [], I.__e(t, e.__v);
494
491
  }
495
492
  }
496
493
  I.__b = function(e) {
497
- T = null, Rn && Rn(e);
494
+ T = null, Or && Or(e);
498
495
  }, I.__ = function(e, t) {
499
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Mn && Mn(e, t);
496
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Rr && Rr(e, t);
500
497
  }, I.__r = function(e) {
501
- An && An(e), ce = 0;
498
+ Nr && Nr(e), se = 0;
502
499
  var t = (T = e.__c).__H;
503
- t && (It === T ? (t.__h = [], T.__h = [], t.__.forEach(function(n) {
504
- n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
505
- })) : (t.__h.forEach(at), t.__h.forEach(Bt), t.__h = [], ce = 0)), It = T;
500
+ t && (xt === T ? (t.__h = [], T.__h = [], t.__.forEach(function(r) {
501
+ r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
502
+ })) : (t.__h.forEach(it), t.__h.forEach(Ft), t.__h = [], se = 0)), xt = T;
506
503
  }, I.diffed = function(e) {
507
- Ln && Ln(e);
504
+ xr && xr(e);
508
505
  var t = e.__c;
509
- t && t.__H && (t.__H.__h.length && (kr.push(t) !== 1 && In === I.requestAnimationFrame || ((In = I.requestAnimationFrame) || Do)(Po)), t.__H.__.forEach(function(n) {
510
- n.u && (n.__H = n.u), n.u = void 0;
511
- })), It = T = null;
506
+ t && t.__H && (t.__H.__h.length && (Sn.push(t) !== 1 && kr === I.requestAnimationFrame || ((kr = I.requestAnimationFrame) || To)(xo)), t.__H.__.forEach(function(r) {
507
+ r.u && (r.__H = r.u), r.u = void 0;
508
+ })), xt = T = null;
512
509
  }, I.__c = function(e, t) {
513
- t.some(function(n) {
510
+ t.some(function(r) {
514
511
  try {
515
- n.__h.forEach(at), n.__h = n.__h.filter(function(r) {
516
- return !r.__ || Bt(r);
512
+ r.__h.forEach(it), r.__h = r.__h.filter(function(n) {
513
+ return !n.__ || Ft(n);
517
514
  });
518
- } catch (r) {
515
+ } catch (n) {
519
516
  t.some(function(o) {
520
517
  o.__h && (o.__h = []);
521
- }), t = [], I.__e(r, n.__v);
518
+ }), t = [], I.__e(n, r.__v);
522
519
  }
523
- }), Pn && Pn(e, t);
520
+ }), Tr && Tr(e, t);
524
521
  }, I.unmount = function(e) {
525
- Dn && Dn(e);
526
- var t, n = e.__c;
527
- n && n.__H && (n.__H.__.forEach(function(r) {
522
+ Ir && Ir(e);
523
+ var t, r = e.__c;
524
+ r && r.__H && (r.__H.__.forEach(function(n) {
528
525
  try {
529
- at(r);
526
+ it(n);
530
527
  } catch (o) {
531
528
  t = o;
532
529
  }
533
- }), n.__H = void 0, t && I.__e(t, n.__v));
530
+ }), r.__H = void 0, t && I.__e(t, r.__v));
534
531
  };
535
- var Hn = typeof requestAnimationFrame == "function";
536
- function Do(e) {
537
- var t, n = function() {
538
- clearTimeout(r), Hn && cancelAnimationFrame(t), setTimeout(e);
539
- }, r = setTimeout(n, 100);
540
- Hn && (t = requestAnimationFrame(n));
541
- }
542
- function at(e) {
543
- var t = T, n = e.__c;
544
- typeof n == "function" && (e.__c = void 0, n()), T = t;
545
- }
546
- function Bt(e) {
532
+ var Pr = typeof requestAnimationFrame == "function";
533
+ function To(e) {
534
+ var t, r = function() {
535
+ clearTimeout(n), Pr && cancelAnimationFrame(t), setTimeout(e);
536
+ }, n = setTimeout(r, 100);
537
+ Pr && (t = requestAnimationFrame(r));
538
+ }
539
+ function it(e) {
540
+ var t = T, r = e.__c;
541
+ typeof r == "function" && (e.__c = void 0, r()), T = t;
542
+ }
543
+ function Ft(e) {
547
544
  var t = T;
548
545
  e.__c = e.__(), T = t;
549
546
  }
550
- function hn(e, t) {
551
- return !e || e.length !== t.length || t.some(function(n, r) {
552
- return n !== e[r];
547
+ function cr(e, t) {
548
+ return !e || e.length !== t.length || t.some(function(r, n) {
549
+ return r !== e[n];
553
550
  });
554
551
  }
555
- function xr(e, t) {
552
+ function $n(e, t) {
556
553
  return typeof t == "function" ? t(e) : t;
557
554
  }
558
- var P = function() {
559
- return P = Object.assign || function(t) {
560
- for (var n, r = 1, o = arguments.length; r < o; r++) {
561
- n = arguments[r];
562
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
555
+ var D = function() {
556
+ return D = Object.assign || function(t) {
557
+ for (var r, n = 1, o = arguments.length; n < o; n++) {
558
+ r = arguments[n];
559
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
563
560
  }
564
561
  return t;
565
- }, P.apply(this, arguments);
562
+ }, D.apply(this, arguments);
566
563
  };
567
- function ye(e, t, n) {
568
- if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
569
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
564
+ function ge(e, t, r) {
565
+ if (r || arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++)
566
+ (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
570
567
  return e.concat(i || Array.prototype.slice.call(t));
571
568
  }
572
- function Mo(e) {
569
+ function Io(e) {
573
570
  var t = /* @__PURE__ */ Object.create(null);
574
- return function(n) {
575
- return t[n] === void 0 && (t[n] = e(n)), t[n];
571
+ return function(r) {
572
+ return t[r] === void 0 && (t[r] = e(r)), t[r];
576
573
  };
577
574
  }
578
- var Ho = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Fo = /* @__PURE__ */ Mo(
575
+ var Ro = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Po = /* @__PURE__ */ Io(
579
576
  function(e) {
580
- return Ho.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
577
+ return Ro.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
581
578
  }
582
579
  /* Z+1 */
583
580
  );
584
- function Tr(e, t) {
585
- for (var n in t) e[n] = t[n];
581
+ function kn(e, t) {
582
+ for (var r in t) e[r] = t[r];
586
583
  return e;
587
584
  }
588
- function Wt(e, t) {
589
- for (var n in e) if (n !== "__source" && !(n in t)) return !0;
590
- for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
585
+ function Ut(e, t) {
586
+ for (var r in e) if (r !== "__source" && !(r in t)) return !0;
587
+ for (var n in t) if (n !== "__source" && e[n] !== t[n]) return !0;
591
588
  return !1;
592
589
  }
593
- function Ir(e, t) {
594
- var n = t(), r = z({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
590
+ function On(e, t) {
591
+ var r = t(), n = W({ t: { __: r, u: t } }), o = n[0].t, i = n[1];
595
592
  return Ie(function() {
596
- o.__ = n, o.u = t, Rt(o) && i({ t: o });
597
- }, [e, n, t]), re(function() {
598
- return Rt(o) && i({ t: o }), e(function() {
599
- Rt(o) && i({ t: o });
593
+ o.__ = r, o.u = t, Tt(o) && i({ t: o });
594
+ }, [e, r, t]), re(function() {
595
+ return Tt(o) && i({ t: o }), e(function() {
596
+ Tt(o) && i({ t: o });
600
597
  });
601
- }, [e]), n;
598
+ }, [e]), r;
602
599
  }
603
- function Rt(e) {
604
- var t, n, r = e.u, o = e.__;
600
+ function Tt(e) {
601
+ var t, r, n = e.u, o = e.__;
605
602
  try {
606
- var i = r();
607
- return !((t = o) === (n = i) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
603
+ var i = n();
604
+ return !((t = o) === (r = i) && (t !== 0 || 1 / t == 1 / r) || t != t && r != r);
608
605
  } catch {
609
606
  return !0;
610
607
  }
611
608
  }
612
- function Rr(e) {
609
+ function Nn(e) {
613
610
  e();
614
611
  }
615
- function Ar(e) {
612
+ function xn(e) {
616
613
  return e;
617
614
  }
618
- function Lr() {
619
- return [!1, Rr];
615
+ function Tn() {
616
+ return [!1, Nn];
620
617
  }
621
- var Pr = Ie;
622
- function zt(e, t) {
618
+ var In = Ie;
619
+ function Bt(e, t) {
623
620
  this.props = e, this.context = t;
624
621
  }
625
- function Uo(e, t) {
626
- function n(o) {
622
+ function Ao(e, t) {
623
+ function r(o) {
627
624
  var i = this.props.ref, a = i == o.ref;
628
- return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Wt(this.props, o);
625
+ return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Ut(this.props, o);
629
626
  }
630
- function r(o) {
631
- return this.shouldComponentUpdate = n, M(e, o);
627
+ function n(o) {
628
+ return this.shouldComponentUpdate = r, L(e, o);
632
629
  }
633
- return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
630
+ return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n;
634
631
  }
635
- (zt.prototype = new q()).isPureReactComponent = !0, zt.prototype.shouldComponentUpdate = function(e, t) {
636
- return Wt(this.props, e) || Wt(this.state, t);
632
+ (Bt.prototype = new V()).isPureReactComponent = !0, Bt.prototype.shouldComponentUpdate = function(e, t) {
633
+ return Ut(this.props, e) || Ut(this.state, t);
637
634
  };
638
- var Fn = v.__b;
635
+ var Ar = v.__b;
639
636
  v.__b = function(e) {
640
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Fn && Fn(e);
637
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Ar && Ar(e);
641
638
  };
642
- var Bo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
643
- function Wo(e) {
644
- function t(n) {
645
- var r = Tr({}, n);
646
- return delete r.ref, e(r, n.ref || null);
647
- }
648
- return t.$$typeof = Bo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
649
- }
650
- var Un = function(e, t) {
651
- return e == null ? null : te(te(e).map(t));
652
- }, zo = { map: Un, forEach: Un, count: function(e) {
653
- return e ? te(e).length : 0;
639
+ var Do = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
640
+ function Lo(e) {
641
+ function t(r) {
642
+ var n = kn({}, r);
643
+ return delete n.ref, e(n, r.ref || null);
644
+ }
645
+ return t.$$typeof = Do, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
646
+ }
647
+ var Dr = function(e, t) {
648
+ return e == null ? null : ee(ee(e).map(t));
649
+ }, Mo = { map: Dr, forEach: Dr, count: function(e) {
650
+ return e ? ee(e).length : 0;
654
651
  }, only: function(e) {
655
- var t = te(e);
652
+ var t = ee(e);
656
653
  if (t.length !== 1) throw "Children.only";
657
654
  return t[0];
658
- }, toArray: te }, jo = v.__e;
659
- v.__e = function(e, t, n, r) {
655
+ }, toArray: ee }, Ho = v.__e;
656
+ v.__e = function(e, t, r, n) {
660
657
  if (e.then) {
661
- for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
658
+ for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), o.__c(e, t);
662
659
  }
663
- jo(e, t, n, r);
660
+ Ho(e, t, r, n);
664
661
  };
665
- var Bn = v.unmount;
666
- function Dr(e, t, n) {
667
- return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
668
- typeof r.__c == "function" && r.__c();
669
- }), e.__c.__H = null), (e = Tr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
670
- return Dr(r, t, n);
662
+ var Lr = v.unmount;
663
+ function Rn(e, t, r) {
664
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
665
+ typeof n.__c == "function" && n.__c();
666
+ }), e.__c.__H = null), (e = kn({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
667
+ return Rn(n, t, r);
671
668
  })), e;
672
669
  }
673
- function Mr(e, t, n) {
674
- return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
675
- return Mr(r, t, n);
676
- }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
670
+ function Pn(e, t, r) {
671
+ return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
672
+ return Pn(n, t, r);
673
+ }), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
677
674
  }
678
- function st() {
675
+ function at() {
679
676
  this.__u = 0, this.o = null, this.__b = null;
680
677
  }
681
- function Hr(e) {
678
+ function An(e) {
682
679
  var t = e.__.__c;
683
680
  return t && t.__a && t.__a(e);
684
681
  }
685
- function Go(e) {
686
- var t, n, r;
682
+ function Fo(e) {
683
+ var t, r, n;
687
684
  function o(i) {
688
685
  if (t || (t = e()).then(function(a) {
689
- n = a.default || a;
686
+ r = a.default || a;
690
687
  }, function(a) {
691
- r = a;
692
- }), r) throw r;
693
- if (!n) throw t;
694
- return M(n, i);
688
+ n = a;
689
+ }), n) throw n;
690
+ if (!r) throw t;
691
+ return L(r, i);
695
692
  }
696
693
  return o.displayName = "Lazy", o.__f = !0, o;
697
694
  }
@@ -700,57 +697,57 @@ function He() {
700
697
  }
701
698
  v.unmount = function(e) {
702
699
  var t = e.__c;
703
- t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Bn && Bn(e);
704
- }, (st.prototype = new q()).__c = function(e, t) {
705
- var n = t.__c, r = this;
706
- r.o == null && (r.o = []), r.o.push(n);
707
- var o = Hr(r.__v), i = !1, a = function() {
708
- i || (i = !0, n.__R = null, o ? o(c) : c());
700
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Lr && Lr(e);
701
+ }, (at.prototype = new V()).__c = function(e, t) {
702
+ var r = t.__c, n = this;
703
+ n.o == null && (n.o = []), n.o.push(r);
704
+ var o = An(n.__v), i = !1, a = function() {
705
+ i || (i = !0, r.__R = null, o ? o(c) : c());
709
706
  };
710
- n.__R = a;
707
+ r.__R = a;
711
708
  var c = function() {
712
- if (!--r.__u) {
713
- if (r.state.__a) {
714
- var s = r.state.__a;
715
- r.__v.__k[0] = Mr(s, s.__c.__P, s.__c.__O);
709
+ if (!--n.__u) {
710
+ if (n.state.__a) {
711
+ var s = n.state.__a;
712
+ n.__v.__k[0] = Pn(s, s.__c.__P, s.__c.__O);
716
713
  }
717
714
  var u;
718
- for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
715
+ for (n.setState({ __a: n.__b = null }); u = n.o.pop(); ) u.forceUpdate();
719
716
  }
720
717
  };
721
- r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
722
- }, st.prototype.componentWillUnmount = function() {
718
+ n.__u++ || 32 & t.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(a, a);
719
+ }, at.prototype.componentWillUnmount = function() {
723
720
  this.o = [];
724
- }, st.prototype.render = function(e, t) {
721
+ }, at.prototype.render = function(e, t) {
725
722
  if (this.__b) {
726
723
  if (this.__v.__k) {
727
- var n = document.createElement("div"), r = this.__v.__k[0].__c;
728
- this.__v.__k[0] = Dr(this.__b, n, r.__O = r.__P);
724
+ var r = document.createElement("div"), n = this.__v.__k[0].__c;
725
+ this.__v.__k[0] = Rn(this.__b, r, n.__O = n.__P);
729
726
  }
730
727
  this.__b = null;
731
728
  }
732
- var o = t.__a && M(j, null, e.fallback);
733
- return o && (o.__u &= -33), [M(j, null, t.__a ? null : e.children), o];
729
+ var o = t.__a && L(z, null, e.fallback);
730
+ return o && (o.__u &= -33), [L(z, null, t.__a ? null : e.children), o];
734
731
  };
735
- var Wn = function(e, t, n) {
736
- if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
737
- for (; n.length > 3; ) n.pop()();
738
- if (n[1] < n[0]) break;
739
- e.i = n = n[2];
732
+ var Mr = function(e, t, r) {
733
+ if (++r[1] === r[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (r = e.i; r; ) {
734
+ for (; r.length > 3; ) r.pop()();
735
+ if (r[1] < r[0]) break;
736
+ e.i = r = r[2];
740
737
  }
741
738
  };
742
- function Vo(e) {
739
+ function Uo(e) {
743
740
  return this.getChildContext = function() {
744
741
  return e.context;
745
742
  }, e.children;
746
743
  }
747
- function qo(e) {
748
- var t = this, n = e.h;
744
+ function Bo(e) {
745
+ var t = this, r = e.h;
749
746
  if (t.componentWillUnmount = function() {
750
- se(null, t.v), t.v = null, t.h = null;
751
- }, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
752
- for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
753
- t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
747
+ ae(null, t.v), t.v = null, t.h = null;
748
+ }, t.h && t.h !== r && t.componentWillUnmount(), !t.v) {
749
+ for (var n = t.__v; n !== null && !n.__m && n.__ !== null; ) n = n.__;
750
+ t.h = r, t.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: n.__m }, contains: function() {
754
751
  return !0;
755
752
  }, appendChild: function(o) {
756
753
  this.childNodes.push(o), t.h.appendChild(o);
@@ -760,218 +757,218 @@ function qo(e) {
760
757
  this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
761
758
  } };
762
759
  }
763
- se(M(Vo, { context: t.context }, e.__v), t.v);
760
+ ae(L(Uo, { context: t.context }, e.__v), t.v);
764
761
  }
765
- function Zo(e, t) {
766
- var n = M(qo, { __v: e, h: t });
767
- return n.containerInfo = t, n;
762
+ function Wo(e, t) {
763
+ var r = L(Bo, { __v: e, h: t });
764
+ return r.containerInfo = t, r;
768
765
  }
769
- (He.prototype = new q()).__a = function(e) {
770
- var t = this, n = Hr(t.__v), r = t.l.get(e);
771
- return r[0]++, function(o) {
766
+ (He.prototype = new V()).__a = function(e) {
767
+ var t = this, r = An(t.__v), n = t.l.get(e);
768
+ return n[0]++, function(o) {
772
769
  var i = function() {
773
- t.props.revealOrder ? (r.push(o), Wn(t, e, r)) : o();
770
+ t.props.revealOrder ? (n.push(o), Mr(t, e, n)) : o();
774
771
  };
775
- n ? n(i) : i();
772
+ r ? r(i) : i();
776
773
  };
777
774
  }, He.prototype.render = function(e) {
778
775
  this.i = null, this.l = /* @__PURE__ */ new Map();
779
- var t = te(e.children);
776
+ var t = ee(e.children);
780
777
  e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
781
- for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
778
+ for (var r = t.length; r--; ) this.l.set(t[r], this.i = [1, 0, this.i]);
782
779
  return e.children;
783
780
  }, He.prototype.componentDidUpdate = He.prototype.componentDidMount = function() {
784
781
  var e = this;
785
- this.l.forEach(function(t, n) {
786
- Wn(e, n, t);
782
+ this.l.forEach(function(t, r) {
783
+ Mr(e, r, t);
787
784
  });
788
785
  };
789
- var Fr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Yo = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Xo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Qo = /[A-Z0-9]/g, Ko = typeof document < "u", Jo = function(e) {
786
+ var Dn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, zo = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, jo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Go = /[A-Z0-9]/g, Vo = typeof document < "u", qo = function(e) {
790
787
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
791
788
  };
792
- function ei(e, t, n) {
793
- return t.__k == null && (t.textContent = ""), se(e, t), typeof n == "function" && n(), e ? e.__c : null;
789
+ function Yo(e, t, r) {
790
+ return t.__k == null && (t.textContent = ""), ae(e, t), typeof r == "function" && r(), e ? e.__c : null;
794
791
  }
795
- function ti(e, t, n) {
796
- return ln(e, t), typeof n == "function" && n(), e ? e.__c : null;
792
+ function Zo(e, t, r) {
793
+ return or(e, t), typeof r == "function" && r(), e ? e.__c : null;
797
794
  }
798
- q.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
799
- Object.defineProperty(q.prototype, e, { configurable: !0, get: function() {
795
+ V.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
796
+ Object.defineProperty(V.prototype, e, { configurable: !0, get: function() {
800
797
  return this["UNSAFE_" + e];
801
798
  }, set: function(t) {
802
799
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
803
800
  } });
804
801
  });
805
- var zn = v.event;
806
- function ni() {
802
+ var Hr = v.event;
803
+ function Xo() {
807
804
  }
808
- function ri() {
805
+ function Qo() {
809
806
  return this.cancelBubble;
810
807
  }
811
- function oi() {
808
+ function Ko() {
812
809
  return this.defaultPrevented;
813
810
  }
814
811
  v.event = function(e) {
815
- return zn && (e = zn(e)), e.persist = ni, e.isPropagationStopped = ri, e.isDefaultPrevented = oi, e.nativeEvent = e;
812
+ return Hr && (e = Hr(e)), e.persist = Xo, e.isPropagationStopped = Qo, e.isDefaultPrevented = Ko, e.nativeEvent = e;
816
813
  };
817
- var _n, ii = { enumerable: !1, configurable: !0, get: function() {
814
+ var lr, Jo = { enumerable: !1, configurable: !0, get: function() {
818
815
  return this.class;
819
- } }, jn = v.vnode;
816
+ } }, Fr = v.vnode;
820
817
  v.vnode = function(e) {
821
818
  typeof e.type == "string" && function(t) {
822
- var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
823
- for (var a in n) {
824
- var c = n[a];
825
- if (!(a === "value" && "defaultValue" in n && c == null || Ko && a === "children" && r === "noscript" || a === "class" || a === "className")) {
819
+ var r = t.props, n = t.type, o = {}, i = n.indexOf("-") === -1;
820
+ for (var a in r) {
821
+ var c = r[a];
822
+ if (!(a === "value" && "defaultValue" in r && c == null || Vo && a === "children" && n === "noscript" || a === "class" || a === "className")) {
826
823
  var s = a.toLowerCase();
827
- a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && c === !0 ? c = "" : s === "translate" && c === "no" ? c = !1 : s[0] === "o" && s[1] === "n" ? s === "ondoubleclick" ? a = "ondblclick" : s !== "onchange" || r !== "input" && r !== "textarea" || Jo(n.type) ? s === "onfocus" ? a = "onfocusin" : s === "onblur" ? a = "onfocusout" : Xo.test(a) && (a = s) : s = a = "oninput" : i && Yo.test(a) ? a = a.replace(Qo, "-$&").toLowerCase() : c === null && (c = void 0), s === "oninput" && o[a = s] && (a = "oninputCapture"), o[a] = c;
824
+ a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && c === !0 ? c = "" : s === "translate" && c === "no" ? c = !1 : s[0] === "o" && s[1] === "n" ? s === "ondoubleclick" ? a = "ondblclick" : s !== "onchange" || n !== "input" && n !== "textarea" || qo(r.type) ? s === "onfocus" ? a = "onfocusin" : s === "onblur" ? a = "onfocusout" : jo.test(a) && (a = s) : s = a = "oninput" : i && zo.test(a) ? a = a.replace(Go, "-$&").toLowerCase() : c === null && (c = void 0), s === "oninput" && o[a = s] && (a = "oninputCapture"), o[a] = c;
828
825
  }
829
826
  }
830
- r == "select" && o.multiple && Array.isArray(o.value) && (o.value = te(n.children).forEach(function(u) {
827
+ n == "select" && o.multiple && Array.isArray(o.value) && (o.value = ee(r.children).forEach(function(u) {
831
828
  u.props.selected = o.value.indexOf(u.props.value) != -1;
832
- })), r == "select" && o.defaultValue != null && (o.value = te(n.children).forEach(function(u) {
829
+ })), n == "select" && o.defaultValue != null && (o.value = ee(r.children).forEach(function(u) {
833
830
  u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
834
- })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", ii)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
835
- }(e), e.$$typeof = Fr, jn && jn(e);
831
+ })), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", Jo)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
832
+ }(e), e.$$typeof = Dn, Fr && Fr(e);
836
833
  };
837
- var Gn = v.__r;
834
+ var Ur = v.__r;
838
835
  v.__r = function(e) {
839
- Gn && Gn(e), _n = e.__c;
836
+ Ur && Ur(e), lr = e.__c;
840
837
  };
841
- var Vn = v.diffed;
838
+ var Br = v.diffed;
842
839
  v.diffed = function(e) {
843
- Vn && Vn(e);
844
- var t = e.props, n = e.__e;
845
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), _n = null;
840
+ Br && Br(e);
841
+ var t = e.props, r = e.__e;
842
+ r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), lr = null;
846
843
  };
847
- var ai = { ReactCurrentDispatcher: { current: { readContext: function(e) {
848
- return _n.__n[e.__c].props.value;
849
- }, useCallback: ge, useContext: Xe, useDebugValue: _t, useDeferredValue: Ar, useEffect: re, useId: Nr, useImperativeHandle: Or, useInsertionEffect: Pr, useLayoutEffect: Ie, useMemo: ne, useReducer: dn, useRef: Ye, useState: z, useSyncExternalStore: Ir, useTransition: Lr } } };
850
- function si(e) {
851
- return M.bind(null, e);
844
+ var ei = { ReactCurrentDispatcher: { current: { readContext: function(e) {
845
+ return lr.__n[e.__c].props.value;
846
+ }, useCallback: me, useContext: Xe, useDebugValue: ht, useDeferredValue: xn, useEffect: re, useId: En, useImperativeHandle: bn, useInsertionEffect: In, useLayoutEffect: Ie, useMemo: te, useReducer: sr, useRef: Ze, useState: W, useSyncExternalStore: On, useTransition: Tn } } };
847
+ function ti(e) {
848
+ return L.bind(null, e);
852
849
  }
853
- function vt(e) {
854
- return !!e && e.$$typeof === Fr;
850
+ function gt(e) {
851
+ return !!e && e.$$typeof === Dn;
855
852
  }
856
- function ci(e) {
857
- return vt(e) && e.type === j;
853
+ function ri(e) {
854
+ return gt(e) && e.type === z;
858
855
  }
859
- function li(e) {
856
+ function ni(e) {
860
857
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
861
858
  }
862
- function ui(e) {
863
- return vt(e) ? un.apply(null, arguments) : e;
859
+ function oi(e) {
860
+ return gt(e) ? ir.apply(null, arguments) : e;
864
861
  }
865
- function fi(e) {
866
- return !!e.__k && (se(null, e), !0);
862
+ function ii(e) {
863
+ return !!e.__k && (ae(null, e), !0);
867
864
  }
868
- function di(e) {
865
+ function ai(e) {
869
866
  return e && (e.base || e.nodeType === 1 && e) || null;
870
867
  }
871
- var hi = function(e, t) {
868
+ var si = function(e, t) {
872
869
  return e(t);
873
- }, _i = function(e, t) {
870
+ }, ci = function(e, t) {
874
871
  return e(t);
875
- }, pi = j, mi = vt, oe = { useState: z, useId: Nr, useReducer: dn, useEffect: re, useLayoutEffect: Ie, useInsertionEffect: Pr, useTransition: Lr, useDeferredValue: Ar, useSyncExternalStore: Ir, startTransition: Rr, useRef: Ye, useImperativeHandle: Or, useMemo: ne, useCallback: ge, useContext: Xe, useDebugValue: _t, version: "18.3.1", Children: zo, render: ei, hydrate: ti, unmountComponentAtNode: fi, createPortal: Zo, createElement: M, createContext: br, createFactory: si, cloneElement: ui, createRef: Eo, Fragment: j, isValidElement: vt, isElement: mi, isFragment: ci, isMemo: li, findDOMNode: di, Component: q, PureComponent: zt, memo: Uo, forwardRef: Wo, flushSync: _i, unstable_batchedUpdates: hi, StrictMode: pi, Suspense: st, SuspenseList: He, lazy: Go, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ai };
876
- function gi(e) {
872
+ }, li = z, ui = gt, ne = { useState: W, useId: En, useReducer: sr, useEffect: re, useLayoutEffect: Ie, useInsertionEffect: In, useTransition: Tn, useDeferredValue: xn, useSyncExternalStore: On, startTransition: Nn, useRef: Ze, useImperativeHandle: bn, useMemo: te, useCallback: me, useContext: Xe, useDebugValue: ht, version: "18.3.1", Children: Mo, render: Yo, hydrate: Zo, unmountComponentAtNode: ii, createPortal: Wo, createElement: L, createContext: Cn, createFactory: ti, cloneElement: oi, createRef: go, Fragment: z, isValidElement: gt, isElement: ui, isFragment: ri, isMemo: ni, findDOMNode: ai, Component: V, PureComponent: Bt, memo: Ao, forwardRef: Lo, flushSync: ci, unstable_batchedUpdates: si, StrictMode: li, Suspense: at, SuspenseList: He, lazy: Fo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ei };
873
+ function fi(e) {
877
874
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
878
875
  }
879
- var At, qn;
880
- function yi() {
881
- return qn || (qn = 1, At = function(t, n, r, o) {
882
- var i = r ? r.call(o, t, n) : void 0;
876
+ var It, Wr;
877
+ function di() {
878
+ return Wr || (Wr = 1, It = function(t, r, n, o) {
879
+ var i = n ? n.call(o, t, r) : void 0;
883
880
  if (i !== void 0)
884
881
  return !!i;
885
- if (t === n)
882
+ if (t === r)
886
883
  return !0;
887
- if (typeof t != "object" || !t || typeof n != "object" || !n)
884
+ if (typeof t != "object" || !t || typeof r != "object" || !r)
888
885
  return !1;
889
- var a = Object.keys(t), c = Object.keys(n);
886
+ var a = Object.keys(t), c = Object.keys(r);
890
887
  if (a.length !== c.length)
891
888
  return !1;
892
- for (var s = Object.prototype.hasOwnProperty.bind(n), u = 0; u < a.length; u++) {
893
- var d = a[u];
894
- if (!s(d))
889
+ for (var s = Object.prototype.hasOwnProperty.bind(r), u = 0; u < a.length; u++) {
890
+ var f = a[u];
891
+ if (!s(f))
895
892
  return !1;
896
- var l = t[d], _ = n[d];
897
- if (i = r ? r.call(o, l, _, d) : void 0, i === !1 || i === void 0 && l !== _)
893
+ var l = t[f], h = r[f];
894
+ if (i = n ? n.call(o, l, h, f) : void 0, i === !1 || i === void 0 && l !== h)
898
895
  return !1;
899
896
  }
900
897
  return !0;
901
- }), At;
898
+ }), It;
902
899
  }
903
- var vi = yi();
904
- const Ci = /* @__PURE__ */ gi(vi);
905
- var x = "-ms-", We = "-moz-", O = "-webkit-", Ur = "comm", Ct = "rule", pn = "decl", wi = "@import", Br = "@keyframes", Si = "@layer", Wr = Math.abs, mn = String.fromCharCode, jt = Object.assign;
906
- function Ei(e, t) {
907
- return A(e, 0) ^ 45 ? (((t << 2 ^ A(e, 0)) << 2 ^ A(e, 1)) << 2 ^ A(e, 2)) << 2 ^ A(e, 3) : 0;
900
+ var hi = di();
901
+ const _i = /* @__PURE__ */ fi(hi);
902
+ var x = "-ms-", We = "-moz-", O = "-webkit-", Ln = "comm", yt = "rule", ur = "decl", pi = "@import", Mn = "@keyframes", mi = "@layer", Hn = Math.abs, fr = String.fromCharCode, Wt = Object.assign;
903
+ function gi(e, t) {
904
+ return P(e, 0) ^ 45 ? (((t << 2 ^ P(e, 0)) << 2 ^ P(e, 1)) << 2 ^ P(e, 2)) << 2 ^ P(e, 3) : 0;
908
905
  }
909
- function zr(e) {
906
+ function Fn(e) {
910
907
  return e.trim();
911
908
  }
912
- function J(e, t) {
909
+ function K(e, t) {
913
910
  return (e = t.exec(e)) ? e[0] : e;
914
911
  }
915
- function C(e, t, n) {
916
- return e.replace(t, n);
912
+ function C(e, t, r) {
913
+ return e.replace(t, r);
917
914
  }
918
- function ct(e, t, n) {
919
- return e.indexOf(t, n);
915
+ function st(e, t, r) {
916
+ return e.indexOf(t, r);
920
917
  }
921
- function A(e, t) {
918
+ function P(e, t) {
922
919
  return e.charCodeAt(t) | 0;
923
920
  }
924
- function ke(e, t, n) {
925
- return e.slice(t, n);
921
+ function ke(e, t, r) {
922
+ return e.slice(t, r);
926
923
  }
927
924
  function Y(e) {
928
925
  return e.length;
929
926
  }
930
- function jr(e) {
927
+ function Un(e) {
931
928
  return e.length;
932
929
  }
933
930
  function Fe(e, t) {
934
931
  return t.push(e), e;
935
932
  }
936
- function bi(e, t) {
933
+ function yi(e, t) {
937
934
  return e.map(t).join("");
938
935
  }
939
- function Zn(e, t) {
940
- return e.filter(function(n) {
941
- return !J(n, t);
936
+ function zr(e, t) {
937
+ return e.filter(function(r) {
938
+ return !K(r, t);
942
939
  });
943
940
  }
944
- var wt = 1, Oe = 1, Gr = 0, G = 0, R = 0, Re = "";
945
- function St(e, t, n, r, o, i, a, c) {
946
- return { value: e, root: t, parent: n, type: r, props: o, children: i, line: wt, column: Oe, length: a, return: "", siblings: c };
941
+ var vt = 1, Oe = 1, Bn = 0, j = 0, R = 0, Re = "";
942
+ function Ct(e, t, r, n, o, i, a, c) {
943
+ return { value: e, root: t, parent: r, type: n, props: o, children: i, line: vt, column: Oe, length: a, return: "", siblings: c };
947
944
  }
948
- function ae(e, t) {
949
- return jt(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
945
+ function ie(e, t) {
946
+ return Wt(Ct("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
950
947
  }
951
- function Ee(e) {
948
+ function Se(e) {
952
949
  for (; e.root; )
953
- e = ae(e.root, { children: [e] });
950
+ e = ie(e.root, { children: [e] });
954
951
  Fe(e, e.siblings);
955
952
  }
956
- function $i() {
953
+ function vi() {
957
954
  return R;
958
955
  }
959
- function ki() {
960
- return R = G > 0 ? A(Re, --G) : 0, Oe--, R === 10 && (Oe = 1, wt--), R;
956
+ function Ci() {
957
+ return R = j > 0 ? P(Re, --j) : 0, Oe--, R === 10 && (Oe = 1, vt--), R;
961
958
  }
962
- function Z() {
963
- return R = G < Gr ? A(Re, G++) : 0, Oe++, R === 10 && (Oe = 1, wt++), R;
959
+ function q() {
960
+ return R = j < Bn ? P(Re, j++) : 0, Oe++, R === 10 && (Oe = 1, vt++), R;
964
961
  }
965
- function _e() {
966
- return A(Re, G);
962
+ function he() {
963
+ return P(Re, j);
967
964
  }
968
- function lt() {
969
- return G;
965
+ function ct() {
966
+ return j;
970
967
  }
971
- function Et(e, t) {
968
+ function wt(e, t) {
972
969
  return ke(Re, e, t);
973
970
  }
974
- function Gt(e) {
971
+ function zt(e) {
975
972
  switch (e) {
976
973
  // \0 \t \n \r \s whitespace token
977
974
  case 0:
@@ -1009,93 +1006,93 @@ function Gt(e) {
1009
1006
  }
1010
1007
  return 0;
1011
1008
  }
1012
- function Oi(e) {
1013
- return wt = Oe = 1, Gr = Y(Re = e), G = 0, [];
1009
+ function wi(e) {
1010
+ return vt = Oe = 1, Bn = Y(Re = e), j = 0, [];
1014
1011
  }
1015
- function Ni(e) {
1012
+ function Si(e) {
1016
1013
  return Re = "", e;
1017
1014
  }
1018
- function Lt(e) {
1019
- return zr(Et(G - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1015
+ function Rt(e) {
1016
+ return Fn(wt(j - 1, jt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1020
1017
  }
1021
- function xi(e) {
1022
- for (; (R = _e()) && R < 33; )
1023
- Z();
1024
- return Gt(e) > 2 || Gt(R) > 3 ? "" : " ";
1018
+ function bi(e) {
1019
+ for (; (R = he()) && R < 33; )
1020
+ q();
1021
+ return zt(e) > 2 || zt(R) > 3 ? "" : " ";
1025
1022
  }
1026
- function Ti(e, t) {
1027
- for (; --t && Z() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
1023
+ function Ei(e, t) {
1024
+ for (; --t && q() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
1028
1025
  ;
1029
- return Et(e, lt() + (t < 6 && _e() == 32 && Z() == 32));
1026
+ return wt(e, ct() + (t < 6 && he() == 32 && q() == 32));
1030
1027
  }
1031
- function Vt(e) {
1032
- for (; Z(); )
1028
+ function jt(e) {
1029
+ for (; q(); )
1033
1030
  switch (R) {
1034
1031
  // ] ) " '
1035
1032
  case e:
1036
- return G;
1033
+ return j;
1037
1034
  // " '
1038
1035
  case 34:
1039
1036
  case 39:
1040
- e !== 34 && e !== 39 && Vt(R);
1037
+ e !== 34 && e !== 39 && jt(R);
1041
1038
  break;
1042
1039
  // (
1043
1040
  case 40:
1044
- e === 41 && Vt(e);
1041
+ e === 41 && jt(e);
1045
1042
  break;
1046
1043
  // \
1047
1044
  case 92:
1048
- Z();
1045
+ q();
1049
1046
  break;
1050
1047
  }
1051
- return G;
1048
+ return j;
1052
1049
  }
1053
- function Ii(e, t) {
1054
- for (; Z() && e + R !== 57; )
1055
- if (e + R === 84 && _e() === 47)
1050
+ function $i(e, t) {
1051
+ for (; q() && e + R !== 57; )
1052
+ if (e + R === 84 && he() === 47)
1056
1053
  break;
1057
- return "/*" + Et(t, G - 1) + "*" + mn(e === 47 ? e : Z());
1054
+ return "/*" + wt(t, j - 1) + "*" + fr(e === 47 ? e : q());
1058
1055
  }
1059
- function Ri(e) {
1060
- for (; !Gt(_e()); )
1061
- Z();
1062
- return Et(e, G);
1056
+ function ki(e) {
1057
+ for (; !zt(he()); )
1058
+ q();
1059
+ return wt(e, j);
1063
1060
  }
1064
- function Ai(e) {
1065
- return Ni(ut("", null, null, null, [""], e = Oi(e), 0, [0], e));
1061
+ function Oi(e) {
1062
+ return Si(lt("", null, null, null, [""], e = wi(e), 0, [0], e));
1066
1063
  }
1067
- function ut(e, t, n, r, o, i, a, c, s) {
1068
- for (var u = 0, d = 0, l = a, _ = 0, h = 0, g = 0, S = 1, $ = 1, m = 1, p = 0, k = "", E = o, N = i, w = r, y = k; $; )
1069
- switch (g = p, p = Z()) {
1064
+ function lt(e, t, r, n, o, i, a, c, s) {
1065
+ for (var u = 0, f = 0, l = a, h = 0, _ = 0, g = 0, S = 1, $ = 1, m = 1, p = 0, k = "", b = o, N = i, w = n, y = k; $; )
1066
+ switch (g = p, p = q()) {
1070
1067
  // (
1071
1068
  case 40:
1072
- if (g != 108 && A(y, l - 1) == 58) {
1073
- ct(y += C(Lt(p), "&", "&\f"), "&\f", Wr(u ? c[u - 1] : 0)) != -1 && (m = -1);
1069
+ if (g != 108 && P(y, l - 1) == 58) {
1070
+ st(y += C(Rt(p), "&", "&\f"), "&\f", Hn(u ? c[u - 1] : 0)) != -1 && (m = -1);
1074
1071
  break;
1075
1072
  }
1076
1073
  // " ' [
1077
1074
  case 34:
1078
1075
  case 39:
1079
1076
  case 91:
1080
- y += Lt(p);
1077
+ y += Rt(p);
1081
1078
  break;
1082
1079
  // \t \n \r \s
1083
1080
  case 9:
1084
1081
  case 10:
1085
1082
  case 13:
1086
1083
  case 32:
1087
- y += xi(g);
1084
+ y += bi(g);
1088
1085
  break;
1089
1086
  // \
1090
1087
  case 92:
1091
- y += Ti(lt() - 1, 7);
1088
+ y += Ei(ct() - 1, 7);
1092
1089
  continue;
1093
1090
  // /
1094
1091
  case 47:
1095
- switch (_e()) {
1092
+ switch (he()) {
1096
1093
  case 42:
1097
1094
  case 47:
1098
- Fe(Li(Ii(Z(), lt()), t, n, s), s);
1095
+ Fe(Ni($i(q(), ct()), t, r, s), s);
1099
1096
  break;
1100
1097
  default:
1101
1098
  y += "/";
@@ -1114,46 +1111,46 @@ function ut(e, t, n, r, o, i, a, c, s) {
1114
1111
  case 125:
1115
1112
  $ = 0;
1116
1113
  // ;
1117
- case 59 + d:
1118
- m == -1 && (y = C(y, /\f/g, "")), h > 0 && Y(y) - l && Fe(h > 32 ? Xn(y + ";", r, n, l - 1, s) : Xn(C(y, " ", "") + ";", r, n, l - 2, s), s);
1114
+ case 59 + f:
1115
+ m == -1 && (y = C(y, /\f/g, "")), _ > 0 && Y(y) - l && Fe(_ > 32 ? Gr(y + ";", n, r, l - 1, s) : Gr(C(y, " ", "") + ";", n, r, l - 2, s), s);
1119
1116
  break;
1120
1117
  // @ ;
1121
1118
  case 59:
1122
1119
  y += ";";
1123
1120
  // { rule/at-rule
1124
1121
  default:
1125
- if (Fe(w = Yn(y, t, n, u, d, o, c, k, E = [], N = [], l, i), i), p === 123)
1126
- if (d === 0)
1127
- ut(y, t, w, w, E, i, l, c, N);
1122
+ if (Fe(w = jr(y, t, r, u, f, o, c, k, b = [], N = [], l, i), i), p === 123)
1123
+ if (f === 0)
1124
+ lt(y, t, w, w, b, i, l, c, N);
1128
1125
  else
1129
- switch (_ === 99 && A(y, 3) === 110 ? 100 : _) {
1126
+ switch (h === 99 && P(y, 3) === 110 ? 100 : h) {
1130
1127
  // d l m s
1131
1128
  case 100:
1132
1129
  case 108:
1133
1130
  case 109:
1134
1131
  case 115:
1135
- ut(e, w, w, r && Fe(Yn(e, w, w, 0, 0, o, c, k, o, E = [], l, N), N), o, N, l, c, r ? E : N);
1132
+ lt(e, w, w, n && Fe(jr(e, w, w, 0, 0, o, c, k, o, b = [], l, N), N), o, N, l, c, n ? b : N);
1136
1133
  break;
1137
1134
  default:
1138
- ut(y, w, w, w, [""], N, 0, c, N);
1135
+ lt(y, w, w, w, [""], N, 0, c, N);
1139
1136
  }
1140
1137
  }
1141
- u = d = h = 0, S = m = 1, k = y = "", l = a;
1138
+ u = f = _ = 0, S = m = 1, k = y = "", l = a;
1142
1139
  break;
1143
1140
  // :
1144
1141
  case 58:
1145
- l = 1 + Y(y), h = g;
1142
+ l = 1 + Y(y), _ = g;
1146
1143
  default:
1147
1144
  if (S < 1) {
1148
1145
  if (p == 123)
1149
1146
  --S;
1150
- else if (p == 125 && S++ == 0 && ki() == 125)
1147
+ else if (p == 125 && S++ == 0 && Ci() == 125)
1151
1148
  continue;
1152
1149
  }
1153
- switch (y += mn(p), p * S) {
1150
+ switch (y += fr(p), p * S) {
1154
1151
  // &
1155
1152
  case 38:
1156
- m = d > 0 ? 1 : (y += "\f", -1);
1153
+ m = f > 0 ? 1 : (y += "\f", -1);
1157
1154
  break;
1158
1155
  // ,
1159
1156
  case 44:
@@ -1161,7 +1158,7 @@ function ut(e, t, n, r, o, i, a, c, s) {
1161
1158
  break;
1162
1159
  // @
1163
1160
  case 64:
1164
- _e() === 45 && (y += Lt(Z())), _ = _e(), d = l = Y(k = y += Ri(lt())), p++;
1161
+ he() === 45 && (y += Rt(q())), h = he(), f = l = Y(k = y += ki(ct())), p++;
1165
1162
  break;
1166
1163
  // -
1167
1164
  case 45:
@@ -1170,20 +1167,20 @@ function ut(e, t, n, r, o, i, a, c, s) {
1170
1167
  }
1171
1168
  return i;
1172
1169
  }
1173
- function Yn(e, t, n, r, o, i, a, c, s, u, d, l) {
1174
- for (var _ = o - 1, h = o === 0 ? i : [""], g = jr(h), S = 0, $ = 0, m = 0; S < r; ++S)
1175
- for (var p = 0, k = ke(e, _ + 1, _ = Wr($ = a[S])), E = e; p < g; ++p)
1176
- (E = zr($ > 0 ? h[p] + " " + k : C(k, /&\f/g, h[p]))) && (s[m++] = E);
1177
- return St(e, t, n, o === 0 ? Ct : c, s, u, d, l);
1170
+ function jr(e, t, r, n, o, i, a, c, s, u, f, l) {
1171
+ for (var h = o - 1, _ = o === 0 ? i : [""], g = Un(_), S = 0, $ = 0, m = 0; S < n; ++S)
1172
+ for (var p = 0, k = ke(e, h + 1, h = Hn($ = a[S])), b = e; p < g; ++p)
1173
+ (b = Fn($ > 0 ? _[p] + " " + k : C(k, /&\f/g, _[p]))) && (s[m++] = b);
1174
+ return Ct(e, t, r, o === 0 ? yt : c, s, u, f, l);
1178
1175
  }
1179
- function Li(e, t, n, r) {
1180
- return St(e, t, n, Ur, mn($i()), ke(e, 2, -2), 0, r);
1176
+ function Ni(e, t, r, n) {
1177
+ return Ct(e, t, r, Ln, fr(vi()), ke(e, 2, -2), 0, n);
1181
1178
  }
1182
- function Xn(e, t, n, r, o) {
1183
- return St(e, t, n, pn, ke(e, 0, r), ke(e, r + 1, -1), r, o);
1179
+ function Gr(e, t, r, n, o) {
1180
+ return Ct(e, t, r, ur, ke(e, 0, n), ke(e, n + 1, -1), n, o);
1184
1181
  }
1185
- function Vr(e, t, n) {
1186
- switch (Ei(e, t)) {
1182
+ function Wn(e, t, r) {
1183
+ switch (gi(e, t)) {
1187
1184
  // color-adjust
1188
1185
  case 5103:
1189
1186
  return O + "print-" + e + e;
@@ -1229,7 +1226,7 @@ function Vr(e, t, n) {
1229
1226
  return O + e + We + e + x + e + e;
1230
1227
  // writing-mode
1231
1228
  case 5936:
1232
- switch (A(e, t + 11)) {
1229
+ switch (P(e, t + 11)) {
1233
1230
  // vertical-l(r)
1234
1231
  case 114:
1235
1232
  return O + e + x + C(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
@@ -1253,7 +1250,7 @@ function Vr(e, t, n) {
1253
1250
  return O + e + C(e, /(\w+).+(:[^]+)/, O + "box-$1$2" + x + "flex-$1$2") + e;
1254
1251
  // align-self
1255
1252
  case 5443:
1256
- return O + e + x + "flex-item-" + C(e, /flex-|-self/g, "") + (J(e, /flex-|baseline/) ? "" : x + "grid-row-" + C(e, /flex-|-self/g, "")) + e;
1253
+ return O + e + x + "flex-item-" + C(e, /flex-|-self/g, "") + (K(e, /flex-|baseline/) ? "" : x + "grid-row-" + C(e, /flex-|-self/g, "")) + e;
1257
1254
  // align-content
1258
1255
  case 4675:
1259
1256
  return O + e + x + "flex-line-pack" + C(e, /align-content|flex-|-self/g, "") + e;
@@ -1281,7 +1278,7 @@ function Vr(e, t, n) {
1281
1278
  return C(C(e, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + x + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + O + e + e;
1282
1279
  // justify-self
1283
1280
  case 4200:
1284
- if (!J(e, /flex-|baseline/)) return x + "grid-column-align" + ke(e, t) + e;
1281
+ if (!K(e, /flex-|baseline/)) return x + "grid-column-align" + ke(e, t) + e;
1285
1282
  break;
1286
1283
  // grid-template-(columns|rows)
1287
1284
  case 2592:
@@ -1290,14 +1287,14 @@ function Vr(e, t, n) {
1290
1287
  // grid-(row|column)-start
1291
1288
  case 4384:
1292
1289
  case 3616:
1293
- return n && n.some(function(r, o) {
1294
- return t = o, J(r.props, /grid-\w+-end/);
1295
- }) ? ~ct(e + (n = n[t].value), "span", 0) ? e : x + C(e, "-start", "") + e + x + "grid-row-span:" + (~ct(n, "span", 0) ? J(n, /\d+/) : +J(n, /\d+/) - +J(e, /\d+/)) + ";" : x + C(e, "-start", "") + e;
1290
+ return r && r.some(function(n, o) {
1291
+ return t = o, K(n.props, /grid-\w+-end/);
1292
+ }) ? ~st(e + (r = r[t].value), "span", 0) ? e : x + C(e, "-start", "") + e + x + "grid-row-span:" + (~st(r, "span", 0) ? K(r, /\d+/) : +K(r, /\d+/) - +K(e, /\d+/)) + ";" : x + C(e, "-start", "") + e;
1296
1293
  // grid-(row|column)-end
1297
1294
  case 4896:
1298
1295
  case 4128:
1299
- return n && n.some(function(r) {
1300
- return J(r.props, /grid-\w+-start/);
1296
+ return r && r.some(function(n) {
1297
+ return K(n.props, /grid-\w+-start/);
1301
1298
  }) ? e : x + C(C(e, "-end", "-span"), "span ", "") + e;
1302
1299
  // (margin|padding)-inline-(start|end)
1303
1300
  case 4095:
@@ -1319,36 +1316,36 @@ function Vr(e, t, n) {
1319
1316
  case 5021:
1320
1317
  case 4765:
1321
1318
  if (Y(e) - 1 - t > 6)
1322
- switch (A(e, t + 1)) {
1319
+ switch (P(e, t + 1)) {
1323
1320
  // (m)ax-content, (m)in-content
1324
1321
  case 109:
1325
- if (A(e, t + 4) !== 45)
1322
+ if (P(e, t + 4) !== 45)
1326
1323
  break;
1327
1324
  // (f)ill-available, (f)it-content
1328
1325
  case 102:
1329
- return C(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + We + (A(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1326
+ return C(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + We + (P(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1330
1327
  // (s)tretch
1331
1328
  case 115:
1332
- return ~ct(e, "stretch", 0) ? Vr(C(e, "stretch", "fill-available"), t, n) + e : e;
1329
+ return ~st(e, "stretch", 0) ? Wn(C(e, "stretch", "fill-available"), t, r) + e : e;
1333
1330
  }
1334
1331
  break;
1335
1332
  // grid-(column|row)
1336
1333
  case 5152:
1337
1334
  case 5920:
1338
- return C(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, i, a, c, s, u) {
1335
+ return C(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, i, a, c, s, u) {
1339
1336
  return x + o + ":" + i + u + (a ? x + o + "-span:" + (c ? s : +s - +i) + u : "") + e;
1340
1337
  });
1341
1338
  // position: sticky
1342
1339
  case 4949:
1343
- if (A(e, t + 6) === 121)
1340
+ if (P(e, t + 6) === 121)
1344
1341
  return C(e, ":", ":" + O) + e;
1345
1342
  break;
1346
1343
  // display: (flex|inline-flex|grid|inline-grid)
1347
1344
  case 6444:
1348
- switch (A(e, A(e, 14) === 45 ? 18 : 11)) {
1345
+ switch (P(e, P(e, 14) === 45 ? 18 : 11)) {
1349
1346
  // (inline-)?fle(x)
1350
1347
  case 120:
1351
- return C(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (A(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + x + "$2box$3") + e;
1348
+ return C(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (P(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + x + "$2box$3") + e;
1352
1349
  // (inline-)?gri(d)
1353
1350
  case 100:
1354
1351
  return C(e, ":", ":" + x) + e;
@@ -1364,67 +1361,67 @@ function Vr(e, t, n) {
1364
1361
  }
1365
1362
  return e;
1366
1363
  }
1367
- function pt(e, t) {
1368
- for (var n = "", r = 0; r < e.length; r++)
1369
- n += t(e[r], r, e, t) || "";
1370
- return n;
1364
+ function _t(e, t) {
1365
+ for (var r = "", n = 0; n < e.length; n++)
1366
+ r += t(e[n], n, e, t) || "";
1367
+ return r;
1371
1368
  }
1372
- function Pi(e, t, n, r) {
1369
+ function xi(e, t, r, n) {
1373
1370
  switch (e.type) {
1374
- case Si:
1371
+ case mi:
1375
1372
  if (e.children.length) break;
1376
- case wi:
1377
- case pn:
1373
+ case pi:
1374
+ case ur:
1378
1375
  return e.return = e.return || e.value;
1379
- case Ur:
1376
+ case Ln:
1380
1377
  return "";
1381
- case Br:
1382
- return e.return = e.value + "{" + pt(e.children, r) + "}";
1383
- case Ct:
1378
+ case Mn:
1379
+ return e.return = e.value + "{" + _t(e.children, n) + "}";
1380
+ case yt:
1384
1381
  if (!Y(e.value = e.props.join(","))) return "";
1385
1382
  }
1386
- return Y(n = pt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1383
+ return Y(r = _t(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1387
1384
  }
1388
- function Di(e) {
1389
- var t = jr(e);
1390
- return function(n, r, o, i) {
1385
+ function Ti(e) {
1386
+ var t = Un(e);
1387
+ return function(r, n, o, i) {
1391
1388
  for (var a = "", c = 0; c < t; c++)
1392
- a += e[c](n, r, o, i) || "";
1389
+ a += e[c](r, n, o, i) || "";
1393
1390
  return a;
1394
1391
  };
1395
1392
  }
1396
- function Mi(e) {
1393
+ function Ii(e) {
1397
1394
  return function(t) {
1398
1395
  t.root || (t = t.return) && e(t);
1399
1396
  };
1400
1397
  }
1401
- function Hi(e, t, n, r) {
1398
+ function Ri(e, t, r, n) {
1402
1399
  if (e.length > -1 && !e.return)
1403
1400
  switch (e.type) {
1404
- case pn:
1405
- e.return = Vr(e.value, e.length, n);
1401
+ case ur:
1402
+ e.return = Wn(e.value, e.length, r);
1406
1403
  return;
1407
- case Br:
1408
- return pt([ae(e, { value: C(e.value, "@", "@" + O) })], r);
1409
- case Ct:
1404
+ case Mn:
1405
+ return _t([ie(e, { value: C(e.value, "@", "@" + O) })], n);
1406
+ case yt:
1410
1407
  if (e.length)
1411
- return bi(n = e.props, function(o) {
1412
- switch (J(o, r = /(::plac\w+|:read-\w+)/)) {
1408
+ return yi(r = e.props, function(o) {
1409
+ switch (K(o, n = /(::plac\w+|:read-\w+)/)) {
1413
1410
  // :read-(only|write)
1414
1411
  case ":read-only":
1415
1412
  case ":read-write":
1416
- Ee(ae(e, { props: [C(o, /:(read-\w+)/, ":" + We + "$1")] })), Ee(ae(e, { props: [o] })), jt(e, { props: Zn(n, r) });
1413
+ Se(ie(e, { props: [C(o, /:(read-\w+)/, ":" + We + "$1")] })), Se(ie(e, { props: [o] })), Wt(e, { props: zr(r, n) });
1417
1414
  break;
1418
1415
  // :placeholder
1419
1416
  case "::placeholder":
1420
- Ee(ae(e, { props: [C(o, /:(plac\w+)/, ":" + O + "input-$1")] })), Ee(ae(e, { props: [C(o, /:(plac\w+)/, ":" + We + "$1")] })), Ee(ae(e, { props: [C(o, /:(plac\w+)/, x + "input-$1")] })), Ee(ae(e, { props: [o] })), jt(e, { props: Zn(n, r) });
1417
+ Se(ie(e, { props: [C(o, /:(plac\w+)/, ":" + O + "input-$1")] })), Se(ie(e, { props: [C(o, /:(plac\w+)/, ":" + We + "$1")] })), Se(ie(e, { props: [C(o, /:(plac\w+)/, x + "input-$1")] })), Se(ie(e, { props: [o] })), Wt(e, { props: zr(r, n) });
1421
1418
  break;
1422
1419
  }
1423
1420
  return "";
1424
1421
  });
1425
1422
  }
1426
1423
  }
1427
- var Fi = {
1424
+ var Pi = {
1428
1425
  animationIterationCount: 1,
1429
1426
  aspectRatio: 1,
1430
1427
  borderImageOutset: 1,
@@ -1472,10 +1469,10 @@ var Fi = {
1472
1469
  strokeMiterlimit: 1,
1473
1470
  strokeOpacity: 1,
1474
1471
  strokeWidth: 1
1475
- }, b = {}, ve = typeof process < "u" && b !== void 0 && (b.REACT_APP_SC_ATTR || b.SC_ATTR) || "data-styled", qr = "active", Zr = "data-styled-version", bt = "6.1.18", gn = `/*!sc*/
1476
- `, mt = typeof window < "u" && typeof document < "u", Ui = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && b !== void 0 && b.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && b.REACT_APP_SC_DISABLE_SPEEDY !== "" ? b.REACT_APP_SC_DISABLE_SPEEDY !== "false" && b.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && b !== void 0 && b.SC_DISABLE_SPEEDY !== void 0 && b.SC_DISABLE_SPEEDY !== "" ? b.SC_DISABLE_SPEEDY !== "false" && b.SC_DISABLE_SPEEDY : b.NODE_ENV !== "production"), Qn = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), Bi = function(e, t) {
1477
- if (b.NODE_ENV !== "production") {
1478
- var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
1472
+ }, E = {}, ye = typeof process < "u" && E !== void 0 && (E.REACT_APP_SC_ATTR || E.SC_ATTR) || "data-styled", zn = "active", jn = "data-styled-version", St = "6.1.18", dr = `/*!sc*/
1473
+ `, pt = typeof window < "u" && typeof document < "u", Ai = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && E !== void 0 && E.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && E.REACT_APP_SC_DISABLE_SPEEDY !== "" ? E.REACT_APP_SC_DISABLE_SPEEDY !== "false" && E.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && E !== void 0 && E.SC_DISABLE_SPEEDY !== void 0 && E.SC_DISABLE_SPEEDY !== "" ? E.SC_DISABLE_SPEEDY !== "false" && E.SC_DISABLE_SPEEDY : E.NODE_ENV !== "production"), Vr = /invalid hook call/i, tt = /* @__PURE__ */ new Set(), Di = function(e, t) {
1474
+ if (E.NODE_ENV !== "production") {
1475
+ var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
1479
1476
  `) + `You may see this warning because you've called styled inside another component.
1480
1477
  To resolve this only create new StyledComponents outside of any render method and function component.
1481
1478
  See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
@@ -1484,65 +1481,65 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
1484
1481
  var i = !0;
1485
1482
  console.error = function(a) {
1486
1483
  for (var c = [], s = 1; s < arguments.length; s++) c[s - 1] = arguments[s];
1487
- Qn.test(a) ? (i = !1, nt.delete(r)) : o.apply(void 0, ye([a], c, !1));
1488
- }, Ye(), i && !nt.has(r) && (console.warn(r), nt.add(r));
1484
+ Vr.test(a) ? (i = !1, tt.delete(n)) : o.apply(void 0, ge([a], c, !1));
1485
+ }, Ze(), i && !tt.has(n) && (console.warn(n), tt.add(n));
1489
1486
  } catch (a) {
1490
- Qn.test(a.message) && nt.delete(r);
1487
+ Vr.test(a.message) && tt.delete(n);
1491
1488
  } finally {
1492
1489
  console.error = o;
1493
1490
  }
1494
1491
  }
1495
- }, $t = Object.freeze([]), Ne = Object.freeze({});
1496
- function Wi(e, t, n) {
1497
- return n === void 0 && (n = Ne), e.theme !== n.theme && e.theme || t || n.theme;
1492
+ }, bt = Object.freeze([]), Ne = Object.freeze({});
1493
+ function Li(e, t, r) {
1494
+ return r === void 0 && (r = Ne), e.theme !== r.theme && e.theme || t || r.theme;
1498
1495
  }
1499
- var qt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), zi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, ji = /(^-|-$)/g;
1500
- function Kn(e) {
1501
- return e.replace(zi, "-").replace(ji, "");
1496
+ var Gt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Mi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Hi = /(^-|-$)/g;
1497
+ function qr(e) {
1498
+ return e.replace(Mi, "-").replace(Hi, "");
1502
1499
  }
1503
- var Gi = /(a)(d)/gi, rt = 52, Jn = function(e) {
1500
+ var Fi = /(a)(d)/gi, rt = 52, Yr = function(e) {
1504
1501
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
1505
1502
  };
1506
- function Zt(e) {
1507
- var t, n = "";
1508
- for (t = Math.abs(e); t > rt; t = t / rt | 0) n = Jn(t % rt) + n;
1509
- return (Jn(t % rt) + n).replace(Gi, "$1-$2");
1503
+ function Vt(e) {
1504
+ var t, r = "";
1505
+ for (t = Math.abs(e); t > rt; t = t / rt | 0) r = Yr(t % rt) + r;
1506
+ return (Yr(t % rt) + r).replace(Fi, "$1-$2");
1510
1507
  }
1511
- var Pt, Yr = 5381, de = function(e, t) {
1512
- for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
1508
+ var Pt, Gn = 5381, fe = function(e, t) {
1509
+ for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
1513
1510
  return e;
1514
- }, Xr = function(e) {
1515
- return de(Yr, e);
1511
+ }, Vn = function(e) {
1512
+ return fe(Gn, e);
1516
1513
  };
1517
- function Qr(e) {
1518
- return Zt(Xr(e) >>> 0);
1514
+ function qn(e) {
1515
+ return Vt(Vn(e) >>> 0);
1519
1516
  }
1520
- function Kr(e) {
1521
- return b.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1517
+ function Yn(e) {
1518
+ return E.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1522
1519
  }
1523
- function Dt(e) {
1524
- return typeof e == "string" && (b.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1520
+ function At(e) {
1521
+ return typeof e == "string" && (E.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1525
1522
  }
1526
- var Jr = typeof Symbol == "function" && Symbol.for, eo = Jr ? Symbol.for("react.memo") : 60115, Vi = Jr ? Symbol.for("react.forward_ref") : 60112, qi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Zi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, to = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Yi = ((Pt = {})[Vi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Pt[eo] = to, Pt);
1527
- function er(e) {
1528
- return ("type" in (t = e) && t.type.$$typeof) === eo ? to : "$$typeof" in e ? Yi[e.$$typeof] : qi;
1523
+ var Zn = typeof Symbol == "function" && Symbol.for, Xn = Zn ? Symbol.for("react.memo") : 60115, Ui = Zn ? Symbol.for("react.forward_ref") : 60112, Bi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Wi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Qn = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, zi = ((Pt = {})[Ui] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Pt[Xn] = Qn, Pt);
1524
+ function Zr(e) {
1525
+ return ("type" in (t = e) && t.type.$$typeof) === Xn ? Qn : "$$typeof" in e ? zi[e.$$typeof] : Bi;
1529
1526
  var t;
1530
1527
  }
1531
- var Xi = Object.defineProperty, Qi = Object.getOwnPropertyNames, tr = Object.getOwnPropertySymbols, Ki = Object.getOwnPropertyDescriptor, Ji = Object.getPrototypeOf, nr = Object.prototype;
1532
- function no(e, t, n) {
1528
+ var ji = Object.defineProperty, Gi = Object.getOwnPropertyNames, Xr = Object.getOwnPropertySymbols, Vi = Object.getOwnPropertyDescriptor, qi = Object.getPrototypeOf, Qr = Object.prototype;
1529
+ function Kn(e, t, r) {
1533
1530
  if (typeof t != "string") {
1534
- if (nr) {
1535
- var r = Ji(t);
1536
- r && r !== nr && no(e, r, n);
1531
+ if (Qr) {
1532
+ var n = qi(t);
1533
+ n && n !== Qr && Kn(e, n, r);
1537
1534
  }
1538
- var o = Qi(t);
1539
- tr && (o = o.concat(tr(t)));
1540
- for (var i = er(e), a = er(t), c = 0; c < o.length; ++c) {
1535
+ var o = Gi(t);
1536
+ Xr && (o = o.concat(Xr(t)));
1537
+ for (var i = Zr(e), a = Zr(t), c = 0; c < o.length; ++c) {
1541
1538
  var s = o[c];
1542
- if (!(s in Zi || n && n[s] || a && s in a || i && s in i)) {
1543
- var u = Ki(t, s);
1539
+ if (!(s in Wi || r && r[s] || a && s in a || i && s in i)) {
1540
+ var u = Vi(t, s);
1544
1541
  try {
1545
- Xi(e, s, u);
1542
+ ji(e, s, u);
1546
1543
  } catch {
1547
1544
  }
1548
1545
  }
@@ -1550,33 +1547,33 @@ function no(e, t, n) {
1550
1547
  }
1551
1548
  return e;
1552
1549
  }
1553
- function Ce(e) {
1550
+ function ve(e) {
1554
1551
  return typeof e == "function";
1555
1552
  }
1556
- function yn(e) {
1553
+ function hr(e) {
1557
1554
  return typeof e == "object" && "styledComponentId" in e;
1558
1555
  }
1559
- function he(e, t) {
1556
+ function de(e, t) {
1560
1557
  return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1561
1558
  }
1562
- function Yt(e, t) {
1559
+ function qt(e, t) {
1563
1560
  if (e.length === 0) return "";
1564
- for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
1565
- return n;
1561
+ for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
1562
+ return r;
1566
1563
  }
1567
1564
  function xe(e) {
1568
1565
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1569
1566
  }
1570
- function Xt(e, t, n) {
1571
- if (n === void 0 && (n = !1), !n && !xe(e) && !Array.isArray(e)) return t;
1572
- if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = Xt(e[r], t[r]);
1573
- else if (xe(t)) for (var r in t) e[r] = Xt(e[r], t[r]);
1567
+ function Yt(e, t, r) {
1568
+ if (r === void 0 && (r = !1), !r && !xe(e) && !Array.isArray(e)) return t;
1569
+ if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Yt(e[n], t[n]);
1570
+ else if (xe(t)) for (var n in t) e[n] = Yt(e[n], t[n]);
1574
1571
  return e;
1575
1572
  }
1576
- function vn(e, t) {
1573
+ function _r(e, t) {
1577
1574
  Object.defineProperty(e, "toString", { value: t });
1578
1575
  }
1579
- var ea = b.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1576
+ var Yi = E.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1580
1577
 
1581
1578
  `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
1582
1579
 
@@ -1618,112 +1615,112 @@ as for instance in your render method then you may be running into this limitati
1618
1615
  `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1619
1616
  Has styled-components' style tag been unmounted or altered by another script?
1620
1617
  `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1621
- function ta() {
1618
+ function Zi() {
1622
1619
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1623
- for (var n = e[0], r = [], o = 1, i = e.length; o < i; o += 1) r.push(e[o]);
1624
- return r.forEach(function(a) {
1625
- n = n.replace(/%[a-z]/, a);
1626
- }), n;
1620
+ for (var r = e[0], n = [], o = 1, i = e.length; o < i; o += 1) n.push(e[o]);
1621
+ return n.forEach(function(a) {
1622
+ r = r.replace(/%[a-z]/, a);
1623
+ }), r;
1627
1624
  }
1628
- function Q(e) {
1629
- for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1630
- return b.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ta.apply(void 0, ye([ea[e]], t, !1)).trim());
1625
+ function X(e) {
1626
+ for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
1627
+ return E.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Zi.apply(void 0, ge([Yi[e]], t, !1)).trim());
1631
1628
  }
1632
- var na = function() {
1629
+ var Xi = function() {
1633
1630
  function e(t) {
1634
1631
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1635
1632
  }
1636
1633
  return e.prototype.indexOfGroup = function(t) {
1637
- for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
1638
- return n;
1639
- }, e.prototype.insertRules = function(t, n) {
1634
+ for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
1635
+ return r;
1636
+ }, e.prototype.insertRules = function(t, r) {
1640
1637
  if (t >= this.groupSizes.length) {
1641
- for (var r = this.groupSizes, o = r.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw Q(16, "".concat(t));
1642
- this.groupSizes = new Uint32Array(i), this.groupSizes.set(r), this.length = i;
1638
+ for (var n = this.groupSizes, o = n.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw X(16, "".concat(t));
1639
+ this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
1643
1640
  for (var a = o; a < i; a++) this.groupSizes[a] = 0;
1644
1641
  }
1645
- for (var c = this.indexOfGroup(t + 1), s = (a = 0, n.length); a < s; a++) this.tag.insertRule(c, n[a]) && (this.groupSizes[t]++, c++);
1642
+ for (var c = this.indexOfGroup(t + 1), s = (a = 0, r.length); a < s; a++) this.tag.insertRule(c, r[a]) && (this.groupSizes[t]++, c++);
1646
1643
  }, e.prototype.clearGroup = function(t) {
1647
1644
  if (t < this.length) {
1648
- var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
1645
+ var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r;
1649
1646
  this.groupSizes[t] = 0;
1650
- for (var i = r; i < o; i++) this.tag.deleteRule(r);
1647
+ for (var i = n; i < o; i++) this.tag.deleteRule(n);
1651
1648
  }
1652
1649
  }, e.prototype.getGroup = function(t) {
1653
- var n = "";
1654
- if (t >= this.length || this.groupSizes[t] === 0) return n;
1655
- for (var r = this.groupSizes[t], o = this.indexOfGroup(t), i = o + r, a = o; a < i; a++) n += "".concat(this.tag.getRule(a)).concat(gn);
1656
- return n;
1650
+ var r = "";
1651
+ if (t >= this.length || this.groupSizes[t] === 0) return r;
1652
+ for (var n = this.groupSizes[t], o = this.indexOfGroup(t), i = o + n, a = o; a < i; a++) r += "".concat(this.tag.getRule(a)).concat(dr);
1653
+ return r;
1657
1654
  }, e;
1658
- }(), ra = 1 << 30, ft = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Map(), dt = 1, ot = function(e) {
1659
- if (ft.has(e)) return ft.get(e);
1660
- for (; gt.has(dt); ) dt++;
1661
- var t = dt++;
1662
- if (b.NODE_ENV !== "production" && ((0 | t) < 0 || t > ra)) throw Q(16, "".concat(t));
1663
- return ft.set(e, t), gt.set(t, e), t;
1664
- }, oa = function(e, t) {
1665
- dt = t + 1, ft.set(e, t), gt.set(t, e);
1666
- }, ia = "style[".concat(ve, "][").concat(Zr, '="').concat(bt, '"]'), aa = new RegExp("^".concat(ve, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), sa = function(e, t, n) {
1667
- for (var r, o = n.split(","), i = 0, a = o.length; i < a; i++) (r = o[i]) && e.registerName(t, r);
1668
- }, ca = function(e, t) {
1669
- for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(gn), o = [], i = 0, a = r.length; i < a; i++) {
1670
- var c = r[i].trim();
1655
+ }(), Qi = 1 << 30, ut = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), ft = 1, nt = function(e) {
1656
+ if (ut.has(e)) return ut.get(e);
1657
+ for (; mt.has(ft); ) ft++;
1658
+ var t = ft++;
1659
+ if (E.NODE_ENV !== "production" && ((0 | t) < 0 || t > Qi)) throw X(16, "".concat(t));
1660
+ return ut.set(e, t), mt.set(t, e), t;
1661
+ }, Ki = function(e, t) {
1662
+ ft = t + 1, ut.set(e, t), mt.set(t, e);
1663
+ }, Ji = "style[".concat(ye, "][").concat(jn, '="').concat(St, '"]'), ea = new RegExp("^".concat(ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ta = function(e, t, r) {
1664
+ for (var n, o = r.split(","), i = 0, a = o.length; i < a; i++) (n = o[i]) && e.registerName(t, n);
1665
+ }, ra = function(e, t) {
1666
+ for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(dr), o = [], i = 0, a = n.length; i < a; i++) {
1667
+ var c = n[i].trim();
1671
1668
  if (c) {
1672
- var s = c.match(aa);
1669
+ var s = c.match(ea);
1673
1670
  if (s) {
1674
- var u = 0 | parseInt(s[1], 10), d = s[2];
1675
- u !== 0 && (oa(d, u), sa(e, d, s[3]), e.getTag().insertRules(u, o)), o.length = 0;
1671
+ var u = 0 | parseInt(s[1], 10), f = s[2];
1672
+ u !== 0 && (Ki(f, u), ta(e, f, s[3]), e.getTag().insertRules(u, o)), o.length = 0;
1676
1673
  } else o.push(c);
1677
1674
  }
1678
1675
  }
1679
- }, rr = function(e) {
1680
- for (var t = document.querySelectorAll(ia), n = 0, r = t.length; n < r; n++) {
1681
- var o = t[n];
1682
- o && o.getAttribute(ve) !== qr && (ca(e, o), o.parentNode && o.parentNode.removeChild(o));
1676
+ }, Kr = function(e) {
1677
+ for (var t = document.querySelectorAll(Ji), r = 0, n = t.length; r < n; r++) {
1678
+ var o = t[r];
1679
+ o && o.getAttribute(ye) !== zn && (ra(e, o), o.parentNode && o.parentNode.removeChild(o));
1683
1680
  }
1684
1681
  };
1685
- function la() {
1682
+ function na() {
1686
1683
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1687
1684
  }
1688
- var ro = function(e) {
1689
- var t = document.head, n = e || t, r = document.createElement("style"), o = function(c) {
1690
- var s = Array.from(c.querySelectorAll("style[".concat(ve, "]")));
1685
+ var Jn = function(e) {
1686
+ var t = document.head, r = e || t, n = document.createElement("style"), o = function(c) {
1687
+ var s = Array.from(c.querySelectorAll("style[".concat(ye, "]")));
1691
1688
  return s[s.length - 1];
1692
- }(n), i = o !== void 0 ? o.nextSibling : null;
1693
- r.setAttribute(ve, qr), r.setAttribute(Zr, bt);
1694
- var a = la();
1695
- return a && r.setAttribute("nonce", a), n.insertBefore(r, i), r;
1696
- }, ua = function() {
1689
+ }(r), i = o !== void 0 ? o.nextSibling : null;
1690
+ n.setAttribute(ye, zn), n.setAttribute(jn, St);
1691
+ var a = na();
1692
+ return a && n.setAttribute("nonce", a), r.insertBefore(n, i), n;
1693
+ }, oa = function() {
1697
1694
  function e(t) {
1698
- this.element = ro(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
1699
- if (n.sheet) return n.sheet;
1700
- for (var r = document.styleSheets, o = 0, i = r.length; o < i; o++) {
1701
- var a = r[o];
1702
- if (a.ownerNode === n) return a;
1695
+ this.element = Jn(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
1696
+ if (r.sheet) return r.sheet;
1697
+ for (var n = document.styleSheets, o = 0, i = n.length; o < i; o++) {
1698
+ var a = n[o];
1699
+ if (a.ownerNode === r) return a;
1703
1700
  }
1704
- throw Q(17);
1701
+ throw X(17);
1705
1702
  }(this.element), this.length = 0;
1706
1703
  }
1707
- return e.prototype.insertRule = function(t, n) {
1704
+ return e.prototype.insertRule = function(t, r) {
1708
1705
  try {
1709
- return this.sheet.insertRule(n, t), this.length++, !0;
1706
+ return this.sheet.insertRule(r, t), this.length++, !0;
1710
1707
  } catch {
1711
1708
  return !1;
1712
1709
  }
1713
1710
  }, e.prototype.deleteRule = function(t) {
1714
1711
  this.sheet.deleteRule(t), this.length--;
1715
1712
  }, e.prototype.getRule = function(t) {
1716
- var n = this.sheet.cssRules[t];
1717
- return n && n.cssText ? n.cssText : "";
1713
+ var r = this.sheet.cssRules[t];
1714
+ return r && r.cssText ? r.cssText : "";
1718
1715
  }, e;
1719
- }(), fa = function() {
1716
+ }(), ia = function() {
1720
1717
  function e(t) {
1721
- this.element = ro(t), this.nodes = this.element.childNodes, this.length = 0;
1718
+ this.element = Jn(t), this.nodes = this.element.childNodes, this.length = 0;
1722
1719
  }
1723
- return e.prototype.insertRule = function(t, n) {
1720
+ return e.prototype.insertRule = function(t, r) {
1724
1721
  if (t <= this.length && t >= 0) {
1725
- var r = document.createTextNode(n);
1726
- return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
1722
+ var n = document.createTextNode(r);
1723
+ return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
1727
1724
  }
1728
1725
  return !1;
1729
1726
  }, e.prototype.deleteRule = function(t) {
@@ -1731,284 +1728,284 @@ var ro = function(e) {
1731
1728
  }, e.prototype.getRule = function(t) {
1732
1729
  return t < this.length ? this.nodes[t].textContent : "";
1733
1730
  }, e;
1734
- }(), da = function() {
1731
+ }(), aa = function() {
1735
1732
  function e(t) {
1736
1733
  this.rules = [], this.length = 0;
1737
1734
  }
1738
- return e.prototype.insertRule = function(t, n) {
1739
- return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
1735
+ return e.prototype.insertRule = function(t, r) {
1736
+ return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
1740
1737
  }, e.prototype.deleteRule = function(t) {
1741
1738
  this.rules.splice(t, 1), this.length--;
1742
1739
  }, e.prototype.getRule = function(t) {
1743
1740
  return t < this.length ? this.rules[t] : "";
1744
1741
  }, e;
1745
- }(), or = mt, ha = { isServer: !mt, useCSSOMInjection: !Ui }, oo = function() {
1746
- function e(t, n, r) {
1747
- t === void 0 && (t = Ne), n === void 0 && (n = {});
1742
+ }(), Jr = pt, sa = { isServer: !pt, useCSSOMInjection: !Ai }, eo = function() {
1743
+ function e(t, r, n) {
1744
+ t === void 0 && (t = Ne), r === void 0 && (r = {});
1748
1745
  var o = this;
1749
- this.options = P(P({}, ha), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && mt && or && (or = !1, rr(this)), vn(this, function() {
1746
+ this.options = D(D({}, sa), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && pt && Jr && (Jr = !1, Kr(this)), _r(this, function() {
1750
1747
  return function(i) {
1751
1748
  for (var a = i.getTag(), c = a.length, s = "", u = function(l) {
1752
- var _ = function(m) {
1753
- return gt.get(m);
1749
+ var h = function(m) {
1750
+ return mt.get(m);
1754
1751
  }(l);
1755
- if (_ === void 0) return "continue";
1756
- var h = i.names.get(_), g = a.getGroup(l);
1757
- if (h === void 0 || !h.size || g.length === 0) return "continue";
1758
- var S = "".concat(ve, ".g").concat(l, '[id="').concat(_, '"]'), $ = "";
1759
- h !== void 0 && h.forEach(function(m) {
1752
+ if (h === void 0) return "continue";
1753
+ var _ = i.names.get(h), g = a.getGroup(l);
1754
+ if (_ === void 0 || !_.size || g.length === 0) return "continue";
1755
+ var S = "".concat(ye, ".g").concat(l, '[id="').concat(h, '"]'), $ = "";
1756
+ _ !== void 0 && _.forEach(function(m) {
1760
1757
  m.length > 0 && ($ += "".concat(m, ","));
1761
- }), s += "".concat(g).concat(S, '{content:"').concat($, '"}').concat(gn);
1762
- }, d = 0; d < c; d++) u(d);
1758
+ }), s += "".concat(g).concat(S, '{content:"').concat($, '"}').concat(dr);
1759
+ }, f = 0; f < c; f++) u(f);
1763
1760
  return s;
1764
1761
  }(o);
1765
1762
  });
1766
1763
  }
1767
1764
  return e.registerId = function(t) {
1768
- return ot(t);
1765
+ return nt(t);
1769
1766
  }, e.prototype.rehydrate = function() {
1770
- !this.server && mt && rr(this);
1771
- }, e.prototype.reconstructWithOptions = function(t, n) {
1772
- return n === void 0 && (n = !0), new e(P(P({}, this.options), t), this.gs, n && this.names || void 0);
1767
+ !this.server && pt && Kr(this);
1768
+ }, e.prototype.reconstructWithOptions = function(t, r) {
1769
+ return r === void 0 && (r = !0), new e(D(D({}, this.options), t), this.gs, r && this.names || void 0);
1773
1770
  }, e.prototype.allocateGSInstance = function(t) {
1774
1771
  return this.gs[t] = (this.gs[t] || 0) + 1;
1775
1772
  }, e.prototype.getTag = function() {
1776
- return this.tag || (this.tag = (t = function(n) {
1777
- var r = n.useCSSOMInjection, o = n.target;
1778
- return n.isServer ? new da(o) : r ? new ua(o) : new fa(o);
1779
- }(this.options), new na(t)));
1773
+ return this.tag || (this.tag = (t = function(r) {
1774
+ var n = r.useCSSOMInjection, o = r.target;
1775
+ return r.isServer ? new aa(o) : n ? new oa(o) : new ia(o);
1776
+ }(this.options), new Xi(t)));
1780
1777
  var t;
1781
- }, e.prototype.hasNameForId = function(t, n) {
1782
- return this.names.has(t) && this.names.get(t).has(n);
1783
- }, e.prototype.registerName = function(t, n) {
1784
- if (ot(t), this.names.has(t)) this.names.get(t).add(n);
1778
+ }, e.prototype.hasNameForId = function(t, r) {
1779
+ return this.names.has(t) && this.names.get(t).has(r);
1780
+ }, e.prototype.registerName = function(t, r) {
1781
+ if (nt(t), this.names.has(t)) this.names.get(t).add(r);
1785
1782
  else {
1786
- var r = /* @__PURE__ */ new Set();
1787
- r.add(n), this.names.set(t, r);
1783
+ var n = /* @__PURE__ */ new Set();
1784
+ n.add(r), this.names.set(t, n);
1788
1785
  }
1789
- }, e.prototype.insertRules = function(t, n, r) {
1790
- this.registerName(t, n), this.getTag().insertRules(ot(t), r);
1786
+ }, e.prototype.insertRules = function(t, r, n) {
1787
+ this.registerName(t, r), this.getTag().insertRules(nt(t), n);
1791
1788
  }, e.prototype.clearNames = function(t) {
1792
1789
  this.names.has(t) && this.names.get(t).clear();
1793
1790
  }, e.prototype.clearRules = function(t) {
1794
- this.getTag().clearGroup(ot(t)), this.clearNames(t);
1791
+ this.getTag().clearGroup(nt(t)), this.clearNames(t);
1795
1792
  }, e.prototype.clearTag = function() {
1796
1793
  this.tag = void 0;
1797
1794
  }, e;
1798
- }(), _a = /&/g, pa = /^\s*\/\/.*$/gm;
1799
- function io(e, t) {
1800
- return e.map(function(n) {
1801
- return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
1802
- return "".concat(t, " ").concat(r);
1803
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = io(n.children, t)), n;
1795
+ }(), ca = /&/g, la = /^\s*\/\/.*$/gm;
1796
+ function to(e, t) {
1797
+ return e.map(function(r) {
1798
+ return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
1799
+ return "".concat(t, " ").concat(n);
1800
+ })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = to(r.children, t)), r;
1804
1801
  });
1805
1802
  }
1806
- function ao(e) {
1807
- var t, n, r, o = e === void 0 ? Ne : e, i = o.options, a = i === void 0 ? Ne : i, c = o.plugins, s = c === void 0 ? $t : c, u = function(_, h, g) {
1808
- return g.startsWith(n) && g.endsWith(n) && g.replaceAll(n, "").length > 0 ? ".".concat(t) : _;
1809
- }, d = s.slice();
1810
- d.push(function(_) {
1811
- _.type === Ct && _.value.includes("&") && (_.props[0] = _.props[0].replace(_a, n).replace(r, u));
1812
- }), a.prefix && d.push(Hi), d.push(Pi);
1813
- var l = function(_, h, g, S) {
1814
- h === void 0 && (h = ""), g === void 0 && (g = ""), S === void 0 && (S = "&"), t = S, n = h, r = new RegExp("\\".concat(n, "\\b"), "g");
1815
- var $ = _.replace(pa, ""), m = Ai(g || h ? "".concat(g, " ").concat(h, " { ").concat($, " }") : $);
1816
- a.namespace && (m = io(m, a.namespace));
1803
+ function ro(e) {
1804
+ var t, r, n, o = e === void 0 ? Ne : e, i = o.options, a = i === void 0 ? Ne : i, c = o.plugins, s = c === void 0 ? bt : c, u = function(h, _, g) {
1805
+ return g.startsWith(r) && g.endsWith(r) && g.replaceAll(r, "").length > 0 ? ".".concat(t) : h;
1806
+ }, f = s.slice();
1807
+ f.push(function(h) {
1808
+ h.type === yt && h.value.includes("&") && (h.props[0] = h.props[0].replace(ca, r).replace(n, u));
1809
+ }), a.prefix && f.push(Ri), f.push(xi);
1810
+ var l = function(h, _, g, S) {
1811
+ _ === void 0 && (_ = ""), g === void 0 && (g = ""), S === void 0 && (S = "&"), t = S, r = _, n = new RegExp("\\".concat(r, "\\b"), "g");
1812
+ var $ = h.replace(la, ""), m = Oi(g || _ ? "".concat(g, " ").concat(_, " { ").concat($, " }") : $);
1813
+ a.namespace && (m = to(m, a.namespace));
1817
1814
  var p = [];
1818
- return pt(m, Di(d.concat(Mi(function(k) {
1815
+ return _t(m, Ti(f.concat(Ii(function(k) {
1819
1816
  return p.push(k);
1820
1817
  })))), p;
1821
1818
  };
1822
- return l.hash = s.length ? s.reduce(function(_, h) {
1823
- return h.name || Q(15), de(_, h.name);
1824
- }, Yr).toString() : "", l;
1825
- }
1826
- var ma = new oo(), Qt = ao(), Cn = oe.createContext({ shouldForwardProp: void 0, styleSheet: ma, stylis: Qt });
1827
- Cn.Consumer;
1828
- var ga = oe.createContext(void 0);
1829
- function Kt() {
1830
- return Xe(Cn);
1831
- }
1832
- function ya(e) {
1833
- var t = z(e.stylisPlugins), n = t[0], r = t[1], o = Kt().styleSheet, i = ne(function() {
1819
+ return l.hash = s.length ? s.reduce(function(h, _) {
1820
+ return _.name || X(15), fe(h, _.name);
1821
+ }, Gn).toString() : "", l;
1822
+ }
1823
+ var ua = new eo(), Zt = ro(), pr = ne.createContext({ shouldForwardProp: void 0, styleSheet: ua, stylis: Zt });
1824
+ pr.Consumer;
1825
+ var fa = ne.createContext(void 0);
1826
+ function Xt() {
1827
+ return Xe(pr);
1828
+ }
1829
+ function da(e) {
1830
+ var t = W(e.stylisPlugins), r = t[0], n = t[1], o = Xt().styleSheet, i = te(function() {
1834
1831
  var s = o;
1835
1832
  return e.sheet ? s = e.sheet : e.target && (s = s.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (s = s.reconstructWithOptions({ useCSSOMInjection: !1 })), s;
1836
- }, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = ne(function() {
1837
- return ao({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1838
- }, [e.enableVendorPrefixes, e.namespace, n]);
1833
+ }, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = te(function() {
1834
+ return ro({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: r });
1835
+ }, [e.enableVendorPrefixes, e.namespace, r]);
1839
1836
  re(function() {
1840
- Ci(n, e.stylisPlugins) || r(e.stylisPlugins);
1837
+ _i(r, e.stylisPlugins) || n(e.stylisPlugins);
1841
1838
  }, [e.stylisPlugins]);
1842
- var c = ne(function() {
1839
+ var c = te(function() {
1843
1840
  return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
1844
1841
  }, [e.shouldForwardProp, i, a]);
1845
- return oe.createElement(Cn.Provider, { value: c }, oe.createElement(ga.Provider, { value: a }, e.children));
1842
+ return ne.createElement(pr.Provider, { value: c }, ne.createElement(fa.Provider, { value: a }, e.children));
1846
1843
  }
1847
- var Jt = function() {
1848
- function e(t, n) {
1849
- var r = this;
1844
+ var Qt = function() {
1845
+ function e(t, r) {
1846
+ var n = this;
1850
1847
  this.inject = function(o, i) {
1851
- i === void 0 && (i = Qt);
1852
- var a = r.name + i.hash;
1853
- o.hasNameForId(r.id, a) || o.insertRules(r.id, a, i(r.rules, a, "@keyframes"));
1854
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, vn(this, function() {
1855
- throw Q(12, String(r.name));
1848
+ i === void 0 && (i = Zt);
1849
+ var a = n.name + i.hash;
1850
+ o.hasNameForId(n.id, a) || o.insertRules(n.id, a, i(n.rules, a, "@keyframes"));
1851
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, _r(this, function() {
1852
+ throw X(12, String(n.name));
1856
1853
  });
1857
1854
  }
1858
1855
  return e.prototype.getName = function(t) {
1859
- return t === void 0 && (t = Qt), this.name + t.hash;
1856
+ return t === void 0 && (t = Zt), this.name + t.hash;
1860
1857
  }, e;
1861
- }(), va = function(e) {
1858
+ }(), ha = function(e) {
1862
1859
  return e >= "A" && e <= "Z";
1863
1860
  };
1864
- function ir(e) {
1865
- for (var t = "", n = 0; n < e.length; n++) {
1866
- var r = e[n];
1867
- if (n === 1 && r === "-" && e[0] === "-") return e;
1868
- va(r) ? t += "-" + r.toLowerCase() : t += r;
1861
+ function en(e) {
1862
+ for (var t = "", r = 0; r < e.length; r++) {
1863
+ var n = e[r];
1864
+ if (r === 1 && n === "-" && e[0] === "-") return e;
1865
+ ha(n) ? t += "-" + n.toLowerCase() : t += n;
1869
1866
  }
1870
1867
  return t.startsWith("ms-") ? "-" + t : t;
1871
1868
  }
1872
- var so = function(e) {
1869
+ var no = function(e) {
1873
1870
  return e == null || e === !1 || e === "";
1874
- }, co = function(e) {
1875
- var t, n, r = [];
1871
+ }, oo = function(e) {
1872
+ var t, r, n = [];
1876
1873
  for (var o in e) {
1877
1874
  var i = e[o];
1878
- e.hasOwnProperty(o) && !so(i) && (Array.isArray(i) && i.isCss || Ce(i) ? r.push("".concat(ir(o), ":"), i, ";") : xe(i) ? r.push.apply(r, ye(ye(["".concat(o, " {")], co(i), !1), ["}"], !1)) : r.push("".concat(ir(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Fi || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1875
+ e.hasOwnProperty(o) && !no(i) && (Array.isArray(i) && i.isCss || ve(i) ? n.push("".concat(en(o), ":"), i, ";") : xe(i) ? n.push.apply(n, ge(ge(["".concat(o, " {")], oo(i), !1), ["}"], !1)) : n.push("".concat(en(o), ": ").concat((t = o, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Pi || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
1879
1876
  }
1880
- return r;
1877
+ return n;
1881
1878
  };
1882
- function pe(e, t, n, r) {
1883
- if (so(e)) return [];
1884
- if (yn(e)) return [".".concat(e.styledComponentId)];
1885
- if (Ce(e)) {
1886
- if (!Ce(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
1879
+ function _e(e, t, r, n) {
1880
+ if (no(e)) return [];
1881
+ if (hr(e)) return [".".concat(e.styledComponentId)];
1882
+ if (ve(e)) {
1883
+ if (!ve(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
1887
1884
  var o = e(t);
1888
- return b.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Jt || xe(o) || o === null || console.error("".concat(Kr(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), pe(o, t, n, r);
1885
+ return E.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Qt || xe(o) || o === null || console.error("".concat(Yn(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), _e(o, t, r, n);
1889
1886
  }
1890
1887
  var i;
1891
- return e instanceof Jt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : xe(e) ? co(e) : Array.isArray(e) ? Array.prototype.concat.apply($t, e.map(function(a) {
1892
- return pe(a, t, n, r);
1888
+ return e instanceof Qt ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : xe(e) ? oo(e) : Array.isArray(e) ? Array.prototype.concat.apply(bt, e.map(function(a) {
1889
+ return _e(a, t, r, n);
1893
1890
  })) : [e.toString()];
1894
1891
  }
1895
- function Ca(e) {
1892
+ function _a(e) {
1896
1893
  for (var t = 0; t < e.length; t += 1) {
1897
- var n = e[t];
1898
- if (Ce(n) && !yn(n)) return !1;
1894
+ var r = e[t];
1895
+ if (ve(r) && !hr(r)) return !1;
1899
1896
  }
1900
1897
  return !0;
1901
1898
  }
1902
- var wa = Xr(bt), Sa = function() {
1903
- function e(t, n, r) {
1904
- this.rules = t, this.staticRulesId = "", this.isStatic = b.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Ca(t), this.componentId = n, this.baseHash = de(wa, n), this.baseStyle = r, oo.registerId(n);
1899
+ var pa = Vn(St), ma = function() {
1900
+ function e(t, r, n) {
1901
+ this.rules = t, this.staticRulesId = "", this.isStatic = E.NODE_ENV === "production" && (n === void 0 || n.isStatic) && _a(t), this.componentId = r, this.baseHash = fe(pa, r), this.baseStyle = n, eo.registerId(r);
1905
1902
  }
1906
- return e.prototype.generateAndInjectStyles = function(t, n, r) {
1907
- var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1908
- if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = he(o, this.staticRulesId);
1903
+ return e.prototype.generateAndInjectStyles = function(t, r, n) {
1904
+ var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
1905
+ if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = de(o, this.staticRulesId);
1909
1906
  else {
1910
- var i = Yt(pe(this.rules, t, n, r)), a = Zt(de(this.baseHash, i) >>> 0);
1911
- if (!n.hasNameForId(this.componentId, a)) {
1912
- var c = r(i, ".".concat(a), void 0, this.componentId);
1913
- n.insertRules(this.componentId, a, c);
1907
+ var i = qt(_e(this.rules, t, r, n)), a = Vt(fe(this.baseHash, i) >>> 0);
1908
+ if (!r.hasNameForId(this.componentId, a)) {
1909
+ var c = n(i, ".".concat(a), void 0, this.componentId);
1910
+ r.insertRules(this.componentId, a, c);
1914
1911
  }
1915
- o = he(o, a), this.staticRulesId = a;
1912
+ o = de(o, a), this.staticRulesId = a;
1916
1913
  }
1917
1914
  else {
1918
- for (var s = de(this.baseHash, r.hash), u = "", d = 0; d < this.rules.length; d++) {
1919
- var l = this.rules[d];
1920
- if (typeof l == "string") u += l, b.NODE_ENV !== "production" && (s = de(s, l));
1915
+ for (var s = fe(this.baseHash, n.hash), u = "", f = 0; f < this.rules.length; f++) {
1916
+ var l = this.rules[f];
1917
+ if (typeof l == "string") u += l, E.NODE_ENV !== "production" && (s = fe(s, l));
1921
1918
  else if (l) {
1922
- var _ = Yt(pe(l, t, n, r));
1923
- s = de(s, _ + d), u += _;
1919
+ var h = qt(_e(l, t, r, n));
1920
+ s = fe(s, h + f), u += h;
1924
1921
  }
1925
1922
  }
1926
1923
  if (u) {
1927
- var h = Zt(s >>> 0);
1928
- n.hasNameForId(this.componentId, h) || n.insertRules(this.componentId, h, r(u, ".".concat(h), void 0, this.componentId)), o = he(o, h);
1924
+ var _ = Vt(s >>> 0);
1925
+ r.hasNameForId(this.componentId, _) || r.insertRules(this.componentId, _, n(u, ".".concat(_), void 0, this.componentId)), o = de(o, _);
1929
1926
  }
1930
1927
  }
1931
1928
  return o;
1932
1929
  }, e;
1933
- }(), Ge = oe.createContext(void 0);
1930
+ }(), Ge = ne.createContext(void 0);
1934
1931
  Ge.Consumer;
1935
- function lo() {
1932
+ function io() {
1936
1933
  var e = Xe(Ge);
1937
- if (!e) throw Q(18);
1934
+ if (!e) throw X(18);
1938
1935
  return e;
1939
1936
  }
1940
- function Ea(e) {
1941
- var t = oe.useContext(Ge), n = ne(function() {
1942
- return function(r, o) {
1943
- if (!r) throw Q(14);
1944
- if (Ce(r)) {
1945
- var i = r(o);
1946
- if (b.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw Q(7);
1937
+ function ga(e) {
1938
+ var t = ne.useContext(Ge), r = te(function() {
1939
+ return function(n, o) {
1940
+ if (!n) throw X(14);
1941
+ if (ve(n)) {
1942
+ var i = n(o);
1943
+ if (E.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw X(7);
1947
1944
  return i;
1948
1945
  }
1949
- if (Array.isArray(r) || typeof r != "object") throw Q(8);
1950
- return o ? P(P({}, o), r) : r;
1946
+ if (Array.isArray(n) || typeof n != "object") throw X(8);
1947
+ return o ? D(D({}, o), n) : n;
1951
1948
  }(e.theme, t);
1952
1949
  }, [e.theme, t]);
1953
- return e.children ? oe.createElement(Ge.Provider, { value: n }, e.children) : null;
1954
- }
1955
- var Mt = {}, ar = /* @__PURE__ */ new Set();
1956
- function ba(e, t, n) {
1957
- var r = yn(e), o = e, i = !Dt(e), a = t.attrs, c = a === void 0 ? $t : a, s = t.componentId, u = s === void 0 ? function(E, N) {
1958
- var w = typeof E != "string" ? "sc" : Kn(E);
1959
- Mt[w] = (Mt[w] || 0) + 1;
1960
- var y = "".concat(w, "-").concat(Qr(bt + w + Mt[w]));
1950
+ return e.children ? ne.createElement(Ge.Provider, { value: r }, e.children) : null;
1951
+ }
1952
+ var Dt = {}, tn = /* @__PURE__ */ new Set();
1953
+ function ya(e, t, r) {
1954
+ var n = hr(e), o = e, i = !At(e), a = t.attrs, c = a === void 0 ? bt : a, s = t.componentId, u = s === void 0 ? function(b, N) {
1955
+ var w = typeof b != "string" ? "sc" : qr(b);
1956
+ Dt[w] = (Dt[w] || 0) + 1;
1957
+ var y = "".concat(w, "-").concat(qn(St + w + Dt[w]));
1961
1958
  return N ? "".concat(N, "-").concat(y) : y;
1962
- }(t.displayName, t.parentComponentId) : s, d = t.displayName, l = d === void 0 ? function(E) {
1963
- return Dt(E) ? "styled.".concat(E) : "Styled(".concat(Kr(E), ")");
1964
- }(e) : d, _ = t.displayName && t.componentId ? "".concat(Kn(t.displayName), "-").concat(t.componentId) : t.componentId || u, h = r && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, g = t.shouldForwardProp;
1965
- if (r && o.shouldForwardProp) {
1959
+ }(t.displayName, t.parentComponentId) : s, f = t.displayName, l = f === void 0 ? function(b) {
1960
+ return At(b) ? "styled.".concat(b) : "Styled(".concat(Yn(b), ")");
1961
+ }(e) : f, h = t.displayName && t.componentId ? "".concat(qr(t.displayName), "-").concat(t.componentId) : t.componentId || u, _ = n && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, g = t.shouldForwardProp;
1962
+ if (n && o.shouldForwardProp) {
1966
1963
  var S = o.shouldForwardProp;
1967
1964
  if (t.shouldForwardProp) {
1968
1965
  var $ = t.shouldForwardProp;
1969
- g = function(E, N) {
1970
- return S(E, N) && $(E, N);
1966
+ g = function(b, N) {
1967
+ return S(b, N) && $(b, N);
1971
1968
  };
1972
1969
  } else g = S;
1973
1970
  }
1974
- var m = new Sa(n, _, r ? o.componentStyle : void 0);
1975
- function p(E, N) {
1976
- return function(w, y, H) {
1977
- var U = w.attrs, Ae = w.componentStyle, B = w.defaultProps, le = w.foldedComponentIds, En = w.styledComponentId, go = w.target, yo = oe.useContext(Ge), vo = Kt(), Ot = w.shouldForwardProp || vo.shouldForwardProp;
1978
- b.NODE_ENV !== "production" && _t(En);
1979
- var bn = Wi(y, yo, B) || Ne, K = function(Qe, De, Ke) {
1980
- for (var Se, ue = P(P({}, De), { className: void 0, theme: Ke }), Tt = 0; Tt < Qe.length; Tt += 1) {
1981
- var Je = Ce(Se = Qe[Tt]) ? Se(ue) : Se;
1982
- for (var ie in Je) ue[ie] = ie === "className" ? he(ue[ie], Je[ie]) : ie === "style" ? P(P({}, ue[ie]), Je[ie]) : Je[ie];
1971
+ var m = new ma(r, h, n ? o.componentStyle : void 0);
1972
+ function p(b, N) {
1973
+ return function(w, y, M) {
1974
+ var F = w.attrs, Pe = w.componentStyle, U = w.defaultProps, ce = w.foldedComponentIds, yr = w.styledComponentId, ho = w.target, _o = ne.useContext(Ge), po = Xt(), $t = w.shouldForwardProp || po.shouldForwardProp;
1975
+ E.NODE_ENV !== "production" && ht(yr);
1976
+ var vr = Li(y, _o, U) || Ne, Q = function(Qe, Le, Ke) {
1977
+ for (var we, le = D(D({}, Le), { className: void 0, theme: Ke }), Nt = 0; Nt < Qe.length; Nt += 1) {
1978
+ var Je = ve(we = Qe[Nt]) ? we(le) : we;
1979
+ for (var oe in Je) le[oe] = oe === "className" ? de(le[oe], Je[oe]) : oe === "style" ? D(D({}, le[oe]), Je[oe]) : Je[oe];
1983
1980
  }
1984
- return De.className && (ue.className = he(ue.className, De.className)), ue;
1985
- }(U, y, bn), Le = K.as || go, Pe = {};
1986
- for (var W in K) K[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && K.theme === bn || (W === "forwardedAs" ? Pe.as = K.forwardedAs : Ot && !Ot(W, Le) || (Pe[W] = K[W], Ot || b.NODE_ENV !== "development" || Fo(W) || ar.has(W) || !qt.has(Le) || (ar.add(W), console.warn('styled-components: it looks like an unknown prop "'.concat(W, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1987
- var Nt = function(Qe, De) {
1988
- var Ke = Kt(), Se = Qe.generateAndInjectStyles(De, Ke.styleSheet, Ke.stylis);
1989
- return b.NODE_ENV !== "production" && _t(Se), Se;
1990
- }(Ae, K);
1991
- b.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(Nt);
1992
- var xt = he(le, En);
1993
- return Nt && (xt += " " + Nt), K.className && (xt += " " + K.className), Pe[Dt(Le) && !qt.has(Le) ? "class" : "className"] = xt, H && (Pe.ref = H), M(Le, Pe);
1994
- }(k, E, N);
1981
+ return Le.className && (le.className = de(le.className, Le.className)), le;
1982
+ }(F, y, vr), Ae = Q.as || ho, De = {};
1983
+ for (var B in Q) Q[B] === void 0 || B[0] === "$" || B === "as" || B === "theme" && Q.theme === vr || (B === "forwardedAs" ? De.as = Q.forwardedAs : $t && !$t(B, Ae) || (De[B] = Q[B], $t || E.NODE_ENV !== "development" || Po(B) || tn.has(B) || !Gt.has(Ae) || (tn.add(B), console.warn('styled-components: it looks like an unknown prop "'.concat(B, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1984
+ var kt = function(Qe, Le) {
1985
+ var Ke = Xt(), we = Qe.generateAndInjectStyles(Le, Ke.styleSheet, Ke.stylis);
1986
+ return E.NODE_ENV !== "production" && ht(we), we;
1987
+ }(Pe, Q);
1988
+ E.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(kt);
1989
+ var Ot = de(ce, yr);
1990
+ return kt && (Ot += " " + kt), Q.className && (Ot += " " + Q.className), De[At(Ae) && !Gt.has(Ae) ? "class" : "className"] = Ot, M && (De.ref = M), L(Ae, De);
1991
+ }(k, b, N);
1995
1992
  }
1996
1993
  p.displayName = l;
1997
- var k = oe.forwardRef(p);
1998
- return k.attrs = h, k.componentStyle = m, k.displayName = l, k.shouldForwardProp = g, k.foldedComponentIds = r ? he(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = _, k.target = r ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
1994
+ var k = ne.forwardRef(p);
1995
+ return k.attrs = _, k.componentStyle = m, k.displayName = l, k.shouldForwardProp = g, k.foldedComponentIds = n ? de(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = h, k.target = n ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
1999
1996
  return this._foldedDefaultProps;
2000
- }, set: function(E) {
2001
- this._foldedDefaultProps = r ? function(N) {
1997
+ }, set: function(b) {
1998
+ this._foldedDefaultProps = n ? function(N) {
2002
1999
  for (var w = [], y = 1; y < arguments.length; y++) w[y - 1] = arguments[y];
2003
- for (var H = 0, U = w; H < U.length; H++) Xt(N, U[H], !0);
2000
+ for (var M = 0, F = w; M < F.length; M++) Yt(N, F[M], !0);
2004
2001
  return N;
2005
- }({}, o.defaultProps, E) : E;
2006
- } }), b.NODE_ENV !== "production" && (Bi(l, _), k.warnTooManyClasses = /* @__PURE__ */ function(E, N) {
2002
+ }({}, o.defaultProps, b) : b;
2003
+ } }), E.NODE_ENV !== "production" && (Di(l, h), k.warnTooManyClasses = /* @__PURE__ */ function(b, N) {
2007
2004
  var w = {}, y = !1;
2008
- return function(H) {
2009
- if (!y && (w[H] = !0, Object.keys(w).length >= 200)) {
2010
- var U = N ? ' with the id of "'.concat(N, '"') : "";
2011
- console.warn("Over ".concat(200, " classes were generated for component ").concat(E).concat(U, `.
2005
+ return function(M) {
2006
+ if (!y && (w[M] = !0, Object.keys(w).length >= 200)) {
2007
+ var F = N ? ' with the id of "'.concat(N, '"') : "";
2008
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(b).concat(F, `.
2012
2009
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
2013
2010
  Example:
2014
2011
  const Component = styled.div.attrs(props => ({
@@ -2020,74 +2017,62 @@ Example:
2020
2017
  <Component />`), y = !0, w = {};
2021
2018
  }
2022
2019
  };
2023
- }(l, _)), vn(k, function() {
2020
+ }(l, h)), _r(k, function() {
2024
2021
  return ".".concat(k.styledComponentId);
2025
- }), i && no(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
2022
+ }), i && Kn(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
2026
2023
  }
2027
- function sr(e, t) {
2028
- for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
2029
- return n;
2024
+ function rn(e, t) {
2025
+ for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
2026
+ return r;
2030
2027
  }
2031
- var cr = function(e) {
2028
+ var nn = function(e) {
2032
2029
  return Object.assign(e, { isCss: !0 });
2033
2030
  };
2034
- function wn(e) {
2035
- for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2036
- if (Ce(e) || xe(e)) return cr(pe(sr($t, ye([e], t, !0))));
2037
- var r = e;
2038
- return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? pe(r) : cr(pe(sr(r, t)));
2039
- }
2040
- function en(e, t, n) {
2041
- if (n === void 0 && (n = Ne), !t) throw Q(1, t);
2042
- var r = function(o) {
2031
+ function mr(e) {
2032
+ for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
2033
+ if (ve(e) || xe(e)) return nn(_e(rn(bt, ge([e], t, !0))));
2034
+ var n = e;
2035
+ return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? _e(n) : nn(_e(rn(n, t)));
2036
+ }
2037
+ function Kt(e, t, r) {
2038
+ if (r === void 0 && (r = Ne), !t) throw X(1, t);
2039
+ var n = function(o) {
2043
2040
  for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
2044
- return e(t, n, wn.apply(void 0, ye([o], i, !1)));
2041
+ return e(t, r, mr.apply(void 0, ge([o], i, !1)));
2045
2042
  };
2046
- return r.attrs = function(o) {
2047
- return en(e, t, P(P({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
2048
- }, r.withConfig = function(o) {
2049
- return en(e, t, P(P({}, n), o));
2050
- }, r;
2051
- }
2052
- var uo = function(e) {
2053
- return en(ba, e);
2054
- }, F = uo;
2055
- qt.forEach(function(e) {
2056
- F[e] = uo(e);
2043
+ return n.attrs = function(o) {
2044
+ return Kt(e, t, D(D({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
2045
+ }, n.withConfig = function(o) {
2046
+ return Kt(e, t, D(D({}, r), o));
2047
+ }, n;
2048
+ }
2049
+ var ao = function(e) {
2050
+ return Kt(ya, e);
2051
+ }, H = ao;
2052
+ Gt.forEach(function(e) {
2053
+ H[e] = ao(e);
2057
2054
  });
2058
- function kt(e) {
2059
- for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2060
- b.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
2061
- var r = Yt(wn.apply(void 0, ye([e], t, !1))), o = Qr(r);
2062
- return new Jt(o, r);
2055
+ function Et(e) {
2056
+ for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
2057
+ E.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
2058
+ var n = qt(mr.apply(void 0, ge([e], t, !1))), o = qn(n);
2059
+ return new Qt(o, n);
2063
2060
  }
2064
- b.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2061
+ E.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2065
2062
  Perhaps you're looking to import 'styled-components/native'?
2066
2063
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);
2067
- var it = "__sc-".concat(ve, "__");
2068
- b.NODE_ENV !== "production" && b.NODE_ENV !== "test" && typeof window < "u" && (window[it] || (window[it] = 0), window[it] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
2064
+ var ot = "__sc-".concat(ye, "__");
2065
+ E.NODE_ENV !== "production" && E.NODE_ENV !== "test" && typeof window < "u" && (window[ot] || (window[ot] = 0), window[ot] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
2069
2066
 
2070
- See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
2071
- const D = {
2067
+ See https://s-c.sh/2BAXzed for more info.`), window[ot] += 1);
2068
+ const be = {
2072
2069
  CIRCLE_SOLID: "circle-solid",
2073
- /**
2074
- * @deprecated This placeholder will be removed in future release.
2075
- */
2076
- ELLIPSE_SOLID: "ellipse-solid",
2077
- /**
2078
- * @deprecated This placeholder will be removed in future release.
2079
- */
2080
- MAN_SOLID: "man-solid",
2081
- /**
2082
- * @deprecated This placeholder will be removed in future release.
2083
- */
2084
- WOMAN_SOLID: "woman-solid",
2085
2070
  SQUARE_ROUNDED_DASH: "square-rounded-dash",
2086
2071
  SQUARE_ROUNDED_SOLID: "square-rounded-solid",
2087
2072
  SQUARE_DASH: "square-dash",
2088
2073
  SQUARE_SOLID: "square-solid"
2089
- }, $a = 2, fo = 14, ka = 0.0276;
2090
- var ee = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(ee || {});
2074
+ }, va = 2, so = 14, Ca = 0.0276;
2075
+ var J = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(J || {});
2091
2076
  const Ue = {
2092
2077
  300: {
2093
2078
  iconSize: 40,
@@ -2109,39 +2094,39 @@ const Ue = {
2109
2094
  marginLeft: 12,
2110
2095
  buttonPadding: 24
2111
2096
  }
2112
- }, lr = {
2097
+ }, on = {
2113
2098
  loading: { text: "Loading. Please wait.", visible: !0 },
2114
2099
  waiting: { text: "Waiting for input...", visible: !0 }
2115
- }, Oa = {
2116
- [L.CANDIDATE_SELECTION]: "Stay still…",
2117
- [L.FACE_TOO_CLOSE]: "Move back",
2118
- [L.FACE_TOO_FAR]: "Move closer",
2119
- [L.FACE_CENTERING]: "Center your face",
2120
- [L.FACE_NOT_PRESENT]: "Position your face into the circle",
2121
- [L.SHARPNESS_TOO_LOW]: "Turn face against light",
2122
- [L.BRIGHTNESS_TOO_LOW]: "Turn face against light",
2123
- [L.BRIGHTNESS_TOO_HIGH]: "Less light needed",
2124
- [L.DEVICE_PITCHED]: "Hold your phone at eye level",
2125
- [L.LEFT_EYE_NOT_PRESENT]: "Position your face into the circle",
2126
- [L.RIGHT_EYE_NOT_PRESENT]: "Position your face into the circle",
2127
- [L.MOUTH_SCORE_TOO_HIGH]: "Keep neutral expression",
2128
- [L.MOUTH_SCORE_TOO_LOW]: "Smile :)",
2129
- [L.MOUTH_NOT_PRESENT]: "Position your face into the circle"
2130
- }, Na = D.CIRCLE_SOLID, xa = "rgba(19, 19, 19, 0.5)", Ta = 34;
2131
- function ur(e, t) {
2132
- return Math.max(t, t + (e - 400) * ka + 2);
2133
- }
2134
- const Ia = (e, t = fo) => e ? e.width < e.height ? ur(e.width, t) : ur(e.height, t) : t, Ra = (e) => e > ee.Default ? Ue[ee.Default] : e > ee.L ? Ue[ee.L] : e > ee.M ? Ue[ee.M] : Ue[ee.S], Aa = (e) => e ? Ra(e.width) : Ue[ee.Default];
2135
- function La() {
2100
+ }, wa = {
2101
+ [A.CANDIDATE_SELECTION]: "Stay still…",
2102
+ [A.FACE_TOO_CLOSE]: "Move back",
2103
+ [A.FACE_TOO_FAR]: "Move closer",
2104
+ [A.FACE_CENTERING]: "Center your face",
2105
+ [A.FACE_NOT_PRESENT]: "Position your face into the circle",
2106
+ [A.SHARPNESS_TOO_LOW]: "Turn face against light",
2107
+ [A.BRIGHTNESS_TOO_LOW]: "Turn face against light",
2108
+ [A.BRIGHTNESS_TOO_HIGH]: "Less light needed",
2109
+ [A.DEVICE_PITCHED]: "Hold your phone at eye level",
2110
+ [A.LEFT_EYE_NOT_PRESENT]: "Position your face into the circle",
2111
+ [A.RIGHT_EYE_NOT_PRESENT]: "Position your face into the circle",
2112
+ [A.MOUTH_SCORE_TOO_HIGH]: "Keep neutral expression",
2113
+ [A.MOUTH_SCORE_TOO_LOW]: "Smile :)",
2114
+ [A.MOUTH_NOT_PRESENT]: "Position your face into the circle"
2115
+ }, Sa = be.CIRCLE_SOLID, ba = "rgba(19, 19, 19, 0.5)", Ea = 34;
2116
+ function an(e, t) {
2117
+ return Math.max(t, t + (e - 400) * Ca + 2);
2118
+ }
2119
+ const $a = (e, t = so) => e ? e.width < e.height ? an(e.width, t) : an(e.height, t) : t, ka = (e) => e > J.Default ? Ue[J.Default] : e > J.L ? Ue[J.L] : e > J.M ? Ue[J.M] : Ue[J.S], Oa = (e) => e ? ka(e.width) : Ue[J.Default];
2120
+ function Na() {
2136
2121
  const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
2137
2122
  if (!document.querySelector(`link[href="${e}"]`)) {
2138
- const n = document.createElement("link");
2139
- n.href = e, n.rel = "stylesheet", document.head.appendChild(n);
2123
+ const r = document.createElement("link");
2124
+ r.href = e, r.rel = "stylesheet", document.head.appendChild(r);
2140
2125
  }
2141
2126
  }
2142
- const ze = br(void 0);
2143
- ze.displayName = "UiCustomizationContext";
2144
- function we() {
2127
+ const ze = Cn(void 0);
2128
+ ze.displayName = "ConfigurationContext";
2129
+ function Ce() {
2145
2130
  const e = Xe(ze);
2146
2131
  if (!e)
2147
2132
  throw new Error(
@@ -2149,14 +2134,18 @@ function we() {
2149
2134
  );
2150
2135
  return e;
2151
2136
  }
2152
- function Pa({ children: e, props: t, videoElementSize: n }) {
2153
- const { font: r } = lo(), o = ne(
2154
- () => ({ ...t, videoElementSize: n, fontSize: Ia(n, r.minimumSize) }),
2155
- [t, r.minimumSize, n]
2137
+ function xa({
2138
+ children: e,
2139
+ configuration: t,
2140
+ videoElementSize: r
2141
+ }) {
2142
+ const { font: n } = io(), o = te(
2143
+ () => ({ ...t, videoElementSize: r, fontSize: $a(r, n.minimumSize) }),
2144
+ [t, n.minimumSize, r]
2156
2145
  );
2157
- return /* @__PURE__ */ f(ze.Provider, { value: o, children: e });
2146
+ return /* @__PURE__ */ d(ze.Provider, { value: o, children: e });
2158
2147
  }
2159
- const ho = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2148
+ const co = ({ svgSize: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d(
2160
2149
  "path",
2161
2150
  {
2162
2151
  clipRule: "evenodd",
@@ -2164,7 +2153,7 @@ const ho = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height:
2164
2153
  fill: "currentColor",
2165
2154
  fillRule: "evenodd"
2166
2155
  }
2167
- ) }), Da = F.div`
2156
+ ) }), Ta = H.div`
2168
2157
  width: 100%;
2169
2158
  height: 100%;
2170
2159
  top: 0;
@@ -2183,14 +2172,14 @@ const ho = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height:
2183
2172
  aspect-ratio: 9/16;
2184
2173
  }
2185
2174
  `}
2186
- `, Ma = F.div`
2175
+ `, Ia = H.div`
2187
2176
  width: 100%;
2188
2177
  display: flex;
2189
2178
  flex-direction: column;
2190
2179
  justify-content: center;
2191
2180
  align-items: center;
2192
2181
  color: ${(e) => e.theme.colors.instructionTextColor};
2193
- `, Ha = F.p`
2182
+ `, Ra = H.p`
2194
2183
  background: ${(e) => e.theme.colors.instructionColor};
2195
2184
  border-radius: 0.25em;
2196
2185
  padding: 0.583em 0.666em;
@@ -2198,81 +2187,92 @@ const ho = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height:
2198
2187
  font-size: ${(e) => `${e.$fontSize}px`};
2199
2188
  line-height: 1em;
2200
2189
  max-width: 80%;
2201
- `, tn = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
2202
- const { fontSize: o } = we();
2203
- return /* @__PURE__ */ f(Da, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ f(Ma, { children: [
2204
- e ? /* @__PURE__ */ f(e, { svgSize: o * 2 }) : null,
2205
- /* @__PURE__ */ f(Ha, { $fontSize: o, children: r })
2190
+ `, Jt = ({ Icon: e, isCameraReady: t, position: r = "absolute", text: n }) => {
2191
+ const { fontSize: o } = Ce();
2192
+ return /* @__PURE__ */ d(Ta, { $isCameraReady: t, $position: r, children: /* @__PURE__ */ d(Ia, { children: [
2193
+ e ? /* @__PURE__ */ d(e, { svgSize: o * 2 }) : null,
2194
+ /* @__PURE__ */ d(Ra, { $fontSize: o, children: n })
2206
2195
  ] }) });
2207
- }, _o = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ f(tn, { Icon: ho, position: "relative", text: e });
2208
- class Fa extends q {
2196
+ }, lo = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ d(Jt, { Icon: co, position: "relative", text: e });
2197
+ class Pa extends V {
2209
2198
  constructor(t) {
2210
2199
  super(t), this.state = { hasError: !1 };
2211
2200
  }
2212
2201
  static getDerivedStateFromError(t) {
2213
2202
  return { hasError: !0 };
2214
2203
  }
2215
- componentDidCatch(t, n) {
2216
- console.error(t, n);
2204
+ componentDidCatch(t, r) {
2205
+ console.error(t, r);
2217
2206
  }
2218
2207
  render() {
2219
- return this.state.hasError ? /* @__PURE__ */ f(_o, { Icon: ho, isCameraReady: !1 }) : this.props.children;
2208
+ return this.state.hasError ? /* @__PURE__ */ d(lo, { Icon: co, isCameraReady: !1 }) : this.props.children;
2220
2209
  }
2221
2210
  }
2222
- const Ua = F.div`
2211
+ const Aa = H.div`
2223
2212
  font-family: ${(e) => e.theme.font.family};
2224
2213
  font-style: ${(e) => e.theme.font.style};
2225
2214
  font-weight: ${(e) => e.theme.font.weight};
2226
- `, Ba = ({ children: e, uiProps: t, videoElementSize: n }) => (re(() => {
2227
- La();
2228
- }, []), /* @__PURE__ */ f(ya, { target: t.styleTarget, children: /* @__PURE__ */ f(Ea, { theme: t.theme, children: /* @__PURE__ */ f(Ua, { children: /* @__PURE__ */ f(Fa, { videoElementSize: n, children: /* @__PURE__ */ f(Pa, { props: t, videoElementSize: n, children: e }) }) }) }) })), Wa = 0.75, za = 2, ja = "dot-auto-capture-video", Ve = (e, t) => {
2229
- const n = Ye(t);
2215
+ `;
2216
+ function Da({
2217
+ children: e,
2218
+ uiConfiguration: t,
2219
+ videoElementSize: r
2220
+ }) {
2221
+ return re(() => {
2222
+ Na();
2223
+ }, []), /* @__PURE__ */ d(da, { target: t.styleTarget, children: /* @__PURE__ */ d(ga, { theme: t.styling.theme, children: /* @__PURE__ */ d(Aa, { children: /* @__PURE__ */ d(Pa, { videoElementSize: r, children: /* @__PURE__ */ d(xa, { configuration: t, videoElementSize: r, children: e }) }) }) }) });
2224
+ }
2225
+ const La = 0.75, Ma = 2, Ha = "dot-auto-capture-video";
2226
+ function Ve(e, t) {
2227
+ const r = Ze(t);
2230
2228
  re(() => {
2231
- n.current = t;
2229
+ r.current = t;
2232
2230
  }, [t]), re(
2233
2231
  () => {
2234
- const r = (o) => n.current(o);
2235
- return document.addEventListener(e, r), () => {
2236
- document.removeEventListener(e, r);
2232
+ if (!e)
2233
+ return;
2234
+ const n = (o) => r.current(o);
2235
+ return document.addEventListener(e, n), () => {
2236
+ document.removeEventListener(e, n);
2237
2237
  };
2238
2238
  },
2239
2239
  [e]
2240
2240
  // Re-run if eventName
2241
2241
  );
2242
- };
2243
- function Ga(e) {
2244
- const [t, n] = z(), r = ge(
2242
+ }
2243
+ function Fa(e) {
2244
+ const [t, r] = W(), n = me(
2245
2245
  (o) => {
2246
2246
  var i;
2247
- n((i = o.detail) == null ? void 0 : i.size);
2247
+ r((i = o.detail) == null ? void 0 : i.size);
2248
2248
  },
2249
- [n]
2249
+ [r]
2250
2250
  );
2251
- return Ve(e, r), Ie(() => {
2251
+ return Ve(e, n), Ie(() => {
2252
2252
  if (!t) {
2253
- const o = document.getElementById(ja);
2254
- o && n(o.getBoundingClientRect());
2253
+ const o = document.getElementById(Ha);
2254
+ o && r(o.getBoundingClientRect());
2255
2255
  }
2256
- }, [t, n]), t;
2256
+ }, [t, r]), t;
2257
2257
  }
2258
- function Va(e, t) {
2258
+ function Ua(e, t) {
2259
2259
  return e ? `${e}, ${t}` : t;
2260
2260
  }
2261
- const qa = {
2261
+ const Ba = {
2262
2262
  placeholderColor: "white",
2263
2263
  placeholderColorSuccess: "#00BFB2",
2264
2264
  instructionColor: "#F8FBFB",
2265
2265
  instructionColorSuccess: "#00BFB2",
2266
2266
  instructionTextColor: "#021B41;"
2267
- }, Za = {
2267
+ }, Wa = {
2268
2268
  family: "Montserrat, Arial, sans-serif",
2269
2269
  weight: "600",
2270
2270
  style: "normal",
2271
- minimumSize: fo
2271
+ minimumSize: so
2272
2272
  }, Me = {
2273
- colors: qa,
2274
- font: Za
2275
- }, Ya = (e) => {
2273
+ colors: Ba,
2274
+ font: Wa
2275
+ }, za = (e) => {
2276
2276
  var t;
2277
2277
  return e ? {
2278
2278
  ...Me,
@@ -2284,112 +2284,62 @@ const qa = {
2284
2284
  font: {
2285
2285
  ...Me.font,
2286
2286
  ...e.font,
2287
- family: Va((t = e.font) == null ? void 0 : t.family, Me.font.family)
2287
+ family: Ua((t = e.font) == null ? void 0 : t.family, Me.font.family)
2288
2288
  }
2289
2289
  } : Me;
2290
- }, Xa = (e) => Number.parseFloat(e.toFixed(3)), Sn = (e, t) => Math.min(e, t), Qa = ({ height: e, width: t }, n) => {
2291
- const r = Sn(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
2290
+ }, ja = (e) => Number.parseFloat(e.toFixed(3)), gr = (e, t) => Math.min(e, t), Ga = ({ height: e, width: t }, r) => {
2291
+ const n = gr(t, e) * r, o = (t - n) / 2, i = (e - n) / 2;
2292
2292
  return {
2293
2293
  shiftX: o,
2294
2294
  shiftY: i,
2295
- width: r,
2296
- height: r
2295
+ width: n,
2296
+ height: n
2297
2297
  };
2298
- }, Ka = (e, t) => {
2299
- const { height: n, shiftX: r, shiftY: o, width: i } = Qa(e, t);
2298
+ }, Va = (e, t) => {
2299
+ const { height: r, shiftX: n, shiftY: o, width: i } = Ga(e, t);
2300
2300
  return {
2301
- shiftX: r / e.width,
2301
+ shiftX: n / e.width,
2302
2302
  shiftY: o / e.height,
2303
2303
  width: i / e.width,
2304
- height: n / e.height
2304
+ height: r / e.height
2305
2305
  };
2306
2306
  };
2307
- function Ja(e, t) {
2308
- const n = Sn(t.width, t.height);
2309
- return Xa(e * n);
2307
+ function qa(e, t) {
2308
+ const r = gr(t.width, t.height);
2309
+ return ja(e * r);
2310
2310
  }
2311
- function es(e) {
2312
- return Ka(e, Wa);
2311
+ function Ya(e) {
2312
+ return Va(e, La);
2313
2313
  }
2314
- function ts(e, t) {
2315
- return Ja(e, t) * za;
2314
+ function Za(e, t) {
2315
+ return qa(e, t) * Ma;
2316
2316
  }
2317
- const nn = (e, t) => {
2317
+ const Xa = (e, t) => {
2318
2318
  document.dispatchEvent(
2319
2319
  new CustomEvent(e, {
2320
2320
  detail: t
2321
2321
  })
2322
2322
  );
2323
- }, yt = class yt {
2324
- constructor() {
2325
- et(this, "lastDetails");
2326
- et(this, "delayedTime");
2327
- this.lastDetails = {}, this.delayedTime = 0;
2328
- }
2329
- // TODO remove singleton
2330
- static getInstance() {
2331
- return this._instance || (this._instance = new yt()), this._instance;
2332
- }
2333
- restart() {
2334
- this.lastDetails = {}, this.delayedTime = 0;
2335
- }
2336
- /**
2337
- * If the detail object has changed, save the new detail object and return true. Otherwise, return
2338
- * false
2339
- * @param {string} eventName - The name of the event.
2340
- * @param detail - This is the data that is passed to the event.
2341
- * @returns a boolean value.
2342
- */
2343
- isDetailChanged(t, n) {
2344
- return JSON.stringify(n) !== JSON.stringify(this.lastDetails[t]) ? (this.lastDetails[t] = n, !0) : !1;
2345
- }
2346
- /**
2347
- * If the detail of the event has changed, dispatch the event
2348
- * @param {string} eventName - The name of the event to dispatch.
2349
- * @param detail - Record<string, unknown>
2350
- */
2351
- dispatchCustomEventOnChange(t, n) {
2352
- this.isDetailChanged(t, n) && nn(t, n);
2353
- }
2354
- /**
2355
- * If the detail of the event has changed, delay time has passed, dispatch the event
2356
- * @param {string} eventName - The name of the event to dispatch.
2357
- * @param detail - Record<string, unknown>
2358
- * @param {number} delay - How long dispatch should be delayed.
2359
- */
2360
- dispatchDelayedCustomEventOnChange(t, n, r) {
2361
- const o = performance.now();
2362
- o - this.delayedTime > r && (this.dispatchCustomEventOnChange(t, n), this.delayedTime = o);
2363
- }
2364
- // implement this method in the class
2365
- dispatchCustomEvent(t, n) {
2366
- nn(t, n);
2367
- }
2368
- };
2369
- // TODO remove singleton
2370
- et(yt, "_instance");
2371
- let rn = yt;
2372
- rn.getInstance();
2373
- const fr = (e, t) => {
2374
- nn(e, {
2323
+ }, sn = (e, t) => {
2324
+ Xa(e, {
2375
2325
  instruction: t
2376
2326
  });
2377
2327
  };
2378
- async function ns() {
2328
+ async function Qa() {
2379
2329
  return navigator.mediaDevices.enumerateDevices();
2380
2330
  }
2381
- async function rs() {
2382
- return (await ns()).filter((t) => t.kind === "videoinput");
2331
+ async function Ka() {
2332
+ return (await Qa()).filter((t) => t.kind === "videoinput");
2383
2333
  }
2384
- const os = () => {
2385
- const [e, t] = z(!1);
2334
+ const Ja = () => {
2335
+ const [e, t] = W(!1);
2386
2336
  return re(() => {
2387
2337
  (async () => {
2388
- (await rs()).length > 1 && t(!0);
2338
+ (await Ka()).length > 1 && t(!0);
2389
2339
  })();
2390
2340
  }, []), e;
2391
- }, is = ({ size: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2392
- /* @__PURE__ */ f(
2341
+ }, es = ({ size: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2342
+ /* @__PURE__ */ d(
2393
2343
  "path",
2394
2344
  {
2395
2345
  d: "M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z",
@@ -2397,8 +2347,8 @@ const os = () => {
2397
2347
  fillOpacity: "0.3"
2398
2348
  }
2399
2349
  ),
2400
- /* @__PURE__ */ f("circle", { cx: "17.5", cy: "24.5", fill: "white", r: "1.5" }),
2401
- /* @__PURE__ */ f(
2350
+ /* @__PURE__ */ d("circle", { cx: "17.5", cy: "24.5", fill: "white", r: "1.5" }),
2351
+ /* @__PURE__ */ d(
2402
2352
  "path",
2403
2353
  {
2404
2354
  d: "M15 17H16C19.5 17 23 21 23 29C22.5 29 21.5 29 20 29C20 29 20.25 33 19.5 34.5C18.75 36 16 36 16 36H15",
@@ -2406,8 +2356,8 @@ const os = () => {
2406
2356
  strokeWidth: "2"
2407
2357
  }
2408
2358
  ),
2409
- /* @__PURE__ */ f("circle", { fill: "white", r: "1.5", transform: "matrix(-1 0 0 1 34.5 24.5)" }),
2410
- /* @__PURE__ */ f(
2359
+ /* @__PURE__ */ d("circle", { fill: "white", r: "1.5", transform: "matrix(-1 0 0 1 34.5 24.5)" }),
2360
+ /* @__PURE__ */ d(
2411
2361
  "path",
2412
2362
  {
2413
2363
  d: "M37 17H36C32.5 17 29 21 29 29C29.5 29 30.5 29 32 29C32 29 31.75 33 32.5 34.5C33.25 36 36 36 36 36H37",
@@ -2415,16 +2365,16 @@ const os = () => {
2415
2365
  strokeWidth: "2"
2416
2366
  }
2417
2367
  )
2418
- ] }), as = ({ size: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2419
- /* @__PURE__ */ f("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
2420
- /* @__PURE__ */ f(
2368
+ ] }), ts = ({ size: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2369
+ /* @__PURE__ */ d("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
2370
+ /* @__PURE__ */ d(
2421
2371
  "path",
2422
2372
  {
2423
2373
  d: "M18 26C18 25.4477 17.5523 25 17 25C16.4477 25 16 25.4477 16 26H18ZM34 26C34 26.5523 34.4477 27 35 27C35.5523 27 36 26.5523 36 26H34ZM18.3977 19.5032C18.0387 19.923 18.0879 20.5542 18.5076 20.9132C18.9273 21.2722 19.5586 21.2229 19.9176 20.8032L18.3977 19.5032ZM33.5961 32.504C33.9555 32.0846 33.9069 31.4533 33.4875 31.094C33.0681 30.7346 32.4368 30.7832 32.0775 31.2026L33.5961 32.504ZM33.8321 24.4453C33.5257 23.9858 32.9048 23.8616 32.4453 24.1679C31.9858 24.4743 31.8616 25.0952 32.1679 25.5547L33.8321 24.4453ZM35 28L34.1679 28.5547C34.3534 28.8329 34.6656 29 35 29C35.3344 29 35.6466 28.8329 35.8321 28.5547L35 28ZM37.8321 25.5547C38.1384 25.0952 38.0142 24.4743 37.5547 24.1679C37.0952 23.8616 36.4743 23.9858 36.1679 24.4453L37.8321 25.5547ZM14.1679 26.4453C13.8616 26.9048 13.9858 27.5257 14.4453 27.8321C14.9048 28.1384 15.5257 28.0142 15.8321 27.5547L14.1679 26.4453ZM17 24L17.8321 23.4453C17.6466 23.1671 17.3344 23 17 23C16.6656 23 16.3534 23.1671 16.1679 23.4453L17 24ZM18.1679 27.5547C18.4743 28.0142 19.0952 28.1384 19.5547 27.8321C20.0142 27.5257 20.1384 26.9048 19.8321 26.4453L18.1679 27.5547ZM26 34C21.5817 34 18 30.4183 18 26H16C16 31.5228 20.4772 36 26 36V34ZM26 18C30.4183 18 34 21.5817 34 26H36C36 20.4772 31.5228 16 26 16V18ZM19.9176 20.8032C21.3864 19.0859 23.5658 18 26 18V16C22.9568 16 20.2302 17.3606 18.3977 19.5032L19.9176 20.8032ZM32.0775 31.2026C30.6087 32.9165 28.4314 34 26 34V36C29.0398 36 31.7636 34.6424 33.5961 32.504L32.0775 31.2026ZM32.1679 25.5547L34.1679 28.5547L35.8321 27.4453L33.8321 24.4453L32.1679 25.5547ZM35.8321 28.5547L37.8321 25.5547L36.1679 24.4453L34.1679 27.4453L35.8321 28.5547ZM15.8321 27.5547L17.8321 24.5547L16.1679 23.4453L14.1679 26.4453L15.8321 27.5547ZM16.1679 24.5547L18.1679 27.5547L19.8321 26.4453L17.8321 23.4453L16.1679 24.5547Z",
2424
2374
  fill: "white"
2425
2375
  }
2426
2376
  )
2427
- ] }), po = F.button`
2377
+ ] }), uo = H.button`
2428
2378
  background: none;
2429
2379
  border: none;
2430
2380
  padding: 0;
@@ -2434,36 +2384,39 @@ const os = () => {
2434
2384
  &:disabled {
2435
2385
  cursor: not-allowed;
2436
2386
  }
2437
- `, ss = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ f(po, { $marginLeft: e, ...n, children: /* @__PURE__ */ f(is, { size: t }) }), cs = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ f(po, { $marginLeft: e, ...n, children: /* @__PURE__ */ f(as, { size: t }) }), ls = F.div`
2387
+ `, rs = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ d(uo, { $marginLeft: e, ...r, children: /* @__PURE__ */ d(es, { size: t }) }), ns = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ d(uo, { $marginLeft: e, ...r, children: /* @__PURE__ */ d(ts, { size: t }) }), os = H.div`
2438
2388
  position: absolute;
2439
2389
  top: 0;
2440
2390
  right: 0;
2441
2391
  padding: ${(e) => `${e.$padding}px`};
2442
2392
  z-index: 2;
2443
- `, us = ({
2393
+ `, is = ({
2444
2394
  customControlEvent: e,
2445
2395
  isSwitchCameraDisabled: t
2446
2396
  }) => {
2447
- const { showCameraButtons: n, videoElementSize: r } = we(), o = os();
2448
- if (!n)
2397
+ const {
2398
+ control: { showCameraButtons: r },
2399
+ videoElementSize: n
2400
+ } = Ce(), o = Ja();
2401
+ if (!r)
2449
2402
  return null;
2450
- const { buttonPadding: i, iconSize: a, marginLeft: c } = Aa(r);
2451
- return /* @__PURE__ */ f(ls, { $padding: i, children: [
2452
- o && /* @__PURE__ */ f(cs, { disabled: t, onClick: () => {
2453
- fr(e, xn.SWITCH_CAMERA);
2403
+ const { buttonPadding: i, iconSize: a, marginLeft: c } = Oa(n);
2404
+ return /* @__PURE__ */ d(os, { $padding: i, children: [
2405
+ o && /* @__PURE__ */ d(ns, { disabled: t, onClick: () => {
2406
+ sn(e, Er.SWITCH_CAMERA);
2454
2407
  }, size: a }),
2455
- /* @__PURE__ */ f(
2456
- ss,
2408
+ /* @__PURE__ */ d(
2409
+ rs,
2457
2410
  {
2458
2411
  marginLeft: o ? c : 0,
2459
2412
  onClick: () => {
2460
- fr(e, xn.TOGGLE_MIRROR);
2413
+ sn(e, Er.TOGGLE_MIRROR);
2461
2414
  },
2462
2415
  size: a
2463
2416
  }
2464
2417
  )
2465
2418
  ] });
2466
- }, fs = "2.5s", ds = "0.3s", hs = "linear", _s = kt`
2419
+ }, as = "2.5s", ss = "0.3s", cs = "linear", ls = Et`
2467
2420
  0% {
2468
2421
  opacity: 0;
2469
2422
  }
@@ -2471,14 +2424,14 @@ const os = () => {
2471
2424
  opacity: 1;
2472
2425
  }
2473
2426
  `;
2474
- kt`
2427
+ Et`
2475
2428
  100% {
2476
2429
  transform: translate(-50%, -50%) scale(2.6);
2477
2430
  top: 50%;
2478
2431
  left: 50%;
2479
2432
  }
2480
2433
  `;
2481
- kt`
2434
+ Et`
2482
2435
  5% {
2483
2436
  transform: translate(-50%, -50%) scale(0.7);
2484
2437
  opacity: 1;
@@ -2502,7 +2455,7 @@ kt`
2502
2455
  opacity: 0.5;
2503
2456
  }
2504
2457
  `;
2505
- kt`
2458
+ Et`
2506
2459
  5% {
2507
2460
  opacity: 1;
2508
2461
  }
@@ -2515,16 +2468,16 @@ kt`
2515
2468
  opacity: 1;
2516
2469
  }
2517
2470
  `;
2518
- const ps = F.div`
2471
+ const us = H.div`
2519
2472
  position: absolute;
2520
2473
  left: 50%;
2521
2474
 
2522
2475
  ${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
2523
2476
  ${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
2524
- ${(e) => e.$isAnimating && wn`
2525
- animation: ${_s} ${ds}
2526
- ${hs} both;
2527
- animation-delay: ${fs};
2477
+ ${(e) => e.$isAnimating && mr`
2478
+ animation: ${ls} ${ss}
2479
+ ${cs} both;
2480
+ animation-delay: ${as};
2528
2481
 
2529
2482
  @media (orientation: landscape) {
2530
2483
  bottom: ${e.$cssBottom ? e.$cssBottom - 15 : ""}%;
@@ -2548,7 +2501,7 @@ const ps = F.div`
2548
2501
  ${(e) => e.$cssTop || e.$isPortrait ? "-50%" : e.$isPortrait ? "" : "50%"}
2549
2502
  );
2550
2503
  z-index: 2;
2551
- `, ms = F.div`
2504
+ `, fs = H.div`
2552
2505
  display: flex;
2553
2506
  align-items: center;
2554
2507
  justify-content: center;
@@ -2562,25 +2515,25 @@ const ps = F.div`
2562
2515
  line-height: 1em;
2563
2516
  font-size: ${(e) => `${e.$fontSize}px`};
2564
2517
  white-space: ${(e) => e.$wrap ? "break-spaces" : "nowrap"};
2565
- `, gs = ({
2518
+ `, ds = ({
2566
2519
  children: e,
2567
2520
  cssBottom: t,
2568
- cssTop: n,
2569
- isAnimating: r,
2521
+ cssTop: r,
2522
+ isAnimating: n,
2570
2523
  isInCandidateSelection: o,
2571
2524
  isPortrait: i
2572
2525
  }) => {
2573
- const { fontSize: a } = we();
2574
- return /* @__PURE__ */ f(ps, { $cssBottom: t, $cssTop: n, $isAnimating: r, $isPortrait: i, children: /* @__PURE__ */ f(
2575
- ms,
2526
+ const { fontSize: a } = Ce();
2527
+ return /* @__PURE__ */ d(us, { $cssBottom: t, $cssTop: r, $isAnimating: n, $isPortrait: i, children: /* @__PURE__ */ d(
2528
+ fs,
2576
2529
  {
2577
2530
  $fontSize: a,
2578
2531
  $isInCandidateSelection: o,
2579
- $wrap: e.length > Ta,
2532
+ $wrap: e.length > Ea,
2580
2533
  children: e
2581
2534
  }
2582
2535
  ) });
2583
- }, ys = F.div`
2536
+ }, hs = H.div`
2584
2537
  color: ${(e) => e.theme.colors.instructionTextColor};
2585
2538
  animation: spin 2s linear infinite;
2586
2539
 
@@ -2589,64 +2542,64 @@ const ps = F.div`
2589
2542
  transform: rotate(-360deg);
2590
2543
  }
2591
2544
  }
2592
- `, vs = ({ svgSize: e }) => /* @__PURE__ */ f(ys, { children: /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2593
- /* @__PURE__ */ f(
2545
+ `, _s = ({ svgSize: e }) => /* @__PURE__ */ d(hs, { children: /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2546
+ /* @__PURE__ */ d(
2594
2547
  "path",
2595
2548
  {
2596
2549
  d: "M30.9229 9.75026C30.9229 12.3736 28.7533 14.5002 26.0767 14.5002C23.4003 14.5002 21.2307 12.3736 21.2307 9.75026C21.2307 7.12664 23.4003 5 26.0767 5C28.7533 5 30.9229 7.12664 30.9229 9.75026Z",
2597
2550
  fill: "currentColor"
2598
2551
  }
2599
2552
  ),
2600
- /* @__PURE__ */ f(
2553
+ /* @__PURE__ */ d(
2601
2554
  "path",
2602
2555
  {
2603
2556
  d: "M40.6155 15.8556C40.6155 18.1044 38.7559 19.9273 36.4618 19.9273C34.1675 19.9273 32.3079 18.1044 32.3079 15.8556C32.3079 13.607 34.1675 11.7842 36.4618 11.7842C38.7559 11.7842 40.6155 13.607 40.6155 15.8556Z",
2604
2557
  fill: "currentColor"
2605
2558
  }
2606
2559
  ),
2607
- /* @__PURE__ */ f(
2560
+ /* @__PURE__ */ d(
2608
2561
  "path",
2609
2562
  {
2610
2563
  d: "M42 27.3921C42 29.2659 40.4502 30.785 38.5386 30.785C36.6267 30.785 35.0769 29.2659 35.0769 27.3921C35.0769 25.5181 36.6267 23.999 38.5386 23.999C40.4502 23.999 42 25.5181 42 27.3921Z",
2611
2564
  fill: "currentColor"
2612
2565
  }
2613
2566
  ),
2614
- /* @__PURE__ */ f(
2567
+ /* @__PURE__ */ d(
2615
2568
  "path",
2616
2569
  {
2617
2570
  d: "M35.0766 37.5712C35.0766 39.0704 33.837 40.2858 32.3075 40.2858C30.7779 40.2858 29.5383 39.0704 29.5383 37.5712C29.5383 36.0723 30.7779 34.8569 32.3075 34.8569C33.837 34.8569 35.0766 36.0723 35.0766 37.5712Z",
2618
2571
  fill: "currentColor"
2619
2572
  }
2620
2573
  ),
2621
- /* @__PURE__ */ f(
2574
+ /* @__PURE__ */ d(
2622
2575
  "path",
2623
2576
  {
2624
2577
  d: "M22.6154 40.2858C22.6154 41.7848 21.3756 43.0001 19.846 43.0001C18.3168 43.0001 17.0769 41.7848 17.0769 40.2858C17.0769 38.7866 18.3168 37.5713 19.846 37.5713C21.3756 37.5713 22.6154 38.7866 22.6154 40.2858Z",
2625
2578
  fill: "currentColor"
2626
2579
  }
2627
2580
  ),
2628
- /* @__PURE__ */ f(
2581
+ /* @__PURE__ */ d(
2629
2582
  "path",
2630
2583
  {
2631
2584
  d: "M11.5382 32.8216C11.5382 33.9457 10.6085 34.8573 9.46137 34.8573C8.31426 34.8573 7.38452 33.9457 7.38452 32.8216C7.38452 31.6972 8.31426 30.7856 9.46137 30.7856C10.6085 30.7856 11.5382 31.6972 11.5382 32.8216Z",
2632
2585
  fill: "currentColor"
2633
2586
  }
2634
2587
  ),
2635
- /* @__PURE__ */ f(
2588
+ /* @__PURE__ */ d(
2636
2589
  "path",
2637
2590
  {
2638
2591
  d: "M8.76913 21.2849C8.76913 22.0345 8.14932 22.642 7.38456 22.642C6.6198 22.642 6 22.0345 6 21.2849C6 20.5353 6.61981 19.9277 7.38456 19.9277C8.14933 19.9277 8.76913 20.5353 8.76913 21.2849Z",
2639
2592
  fill: "currentColor"
2640
2593
  }
2641
2594
  ),
2642
- /* @__PURE__ */ f(
2595
+ /* @__PURE__ */ d(
2643
2596
  "path",
2644
2597
  {
2645
2598
  d: "M15.6927 11.7844C15.6927 12.534 15.0729 13.1415 14.3081 13.1415C13.5434 13.1415 12.9236 12.534 12.9236 11.7844C12.9236 11.0348 13.5434 10.4272 14.3081 10.4272C15.0729 10.4272 15.6927 11.0348 15.6927 11.7844Z",
2646
2599
  fill: "currentColor"
2647
2600
  }
2648
2601
  )
2649
- ] }) }), Cs = F.div`
2602
+ ] }) }), ps = H.div`
2650
2603
  z-index: 1;
2651
2604
  position: absolute;
2652
2605
  // Scale up the backdrop to have space when placeholder is scaled below 1
@@ -2663,27 +2616,29 @@ const ps = F.div`
2663
2616
  transform: scale(0.5);
2664
2617
  translate: 25% 25%;
2665
2618
  }
2666
- `, mo = ({ children: e, height: t, scale: n, width: r }) => {
2667
- const { backdropColor: o } = we(), i = Sn(r, t);
2668
- return /* @__PURE__ */ f(Cs, { $backdropColor: o, $scale: n, $shorterSide: i, children: /* @__PURE__ */ f("svg", { viewBox: `0 0 ${r} ${t}`, children: [
2669
- /* @__PURE__ */ f("defs", { children: /* @__PURE__ */ f("mask", { id: "mask", children: [
2670
- /* @__PURE__ */ f("rect", { fill: "#fff", height: "100%", width: "100%" }),
2671
- /* @__PURE__ */ f("g", { children: e })
2619
+ `, fo = ({ children: e, height: t, scale: r, width: n }) => {
2620
+ const {
2621
+ styling: { backdropColor: o }
2622
+ } = Ce(), i = gr(n, t);
2623
+ return /* @__PURE__ */ d(ps, { $backdropColor: o, $scale: r, $shorterSide: i, children: /* @__PURE__ */ d("svg", { viewBox: `0 0 ${n} ${t}`, children: [
2624
+ /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("mask", { id: "mask", children: [
2625
+ /* @__PURE__ */ d("rect", { fill: "#fff", height: "100%", width: "100%" }),
2626
+ /* @__PURE__ */ d("g", { children: e })
2672
2627
  ] }) }),
2673
- /* @__PURE__ */ f("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
2628
+ /* @__PURE__ */ d("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
2674
2629
  ] }) });
2675
2630
  };
2676
- function ws({ cameraHeight: e, cameraWidth: t, isBackdrop: n, state: r }) {
2677
- const { appStateInstructions: o } = we(), i = r === V.ERROR || r === V.RUNNING;
2678
- return !r || i || !(o != null && o[r].visible) ? null : r === V.WAITING || r === V.COMPLETE ? /* @__PURE__ */ f(j, { children: [
2679
- n && e && t && /* @__PURE__ */ f(mo, { height: e, width: t }),
2680
- /* @__PURE__ */ f(tn, { isCameraReady: !0, text: o[V.WAITING].text })
2681
- ] }) : /* @__PURE__ */ f(tn, { Icon: vs, isCameraReady: !0, text: o[V.LOADING].text });
2631
+ function ms({ cameraHeight: e, cameraWidth: t, isBackdrop: r, state: n }) {
2632
+ const { appStateInstructions: o } = Ce(), i = n === G.ERROR || n === G.RUNNING;
2633
+ return !n || i || !(o != null && o[n].visible) ? null : n === G.WAITING || n === G.COMPLETE ? /* @__PURE__ */ d(z, { children: [
2634
+ r && e && t && /* @__PURE__ */ d(fo, { height: e, width: t }),
2635
+ /* @__PURE__ */ d(Jt, { isCameraReady: !0, text: o[G.WAITING].text })
2636
+ ] }) : /* @__PURE__ */ d(Jt, { Icon: _s, isCameraReady: !0, text: o[G.LOADING].text });
2682
2637
  }
2683
- function Ss({ isRounded: e, isSquare: t, ...n }) {
2684
- return e ? /* @__PURE__ */ f("rect", { fill: "#000", ...n, rx: "2%" }) : /* @__PURE__ */ f("rect", { fill: "#000", ...n, rx: t ? "0" : "50%" });
2638
+ function gs({ isRounded: e, isSquare: t, ...r }) {
2639
+ return e ? /* @__PURE__ */ d("rect", { fill: "#000", ...r, rx: "2%" }) : /* @__PURE__ */ d("rect", { fill: "#000", ...r, rx: t ? "0" : "50%" });
2685
2640
  }
2686
- const Es = () => /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2641
+ const ys = () => /* @__PURE__ */ d("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d(
2687
2642
  "path",
2688
2643
  {
2689
2644
  d: "M2 240C2 108.556 108.556 2 240 2C371.444 2 478 108.556 478 240C478 371.444 371.444 478 240 478C108.556 478 2 371.444 2 240Z",
@@ -2692,30 +2647,8 @@ const Es = () => /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox
2692
2647
  strokeWidth: "4"
2693
2648
  }
2694
2649
  ) });
2695
- function bs() {
2696
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2697
- "path",
2698
- {
2699
- d: "M38.9231 240C38.9231 108.23 129.248 2 240 2C350.752 2 441.077 108.23 441.077 240C441.077 371.77 350.752 478 240 478C129.248 478 38.9231 371.77 38.9231 240Z",
2700
- stroke: "currentColor",
2701
- strokeLinecap: "round",
2702
- strokeWidth: "4"
2703
- }
2704
- ) });
2705
- }
2706
- function $s() {
2707
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2708
- "path",
2709
- {
2710
- clipRule: "evenodd",
2711
- d: "M123.592 81.0326C143.203 50.4946 180.289 34 240 34C299.711 34 336.797 50.4946 356.408 81.0326C375.742 111.138 377.681 154.313 368.661 207.051C371.545 208.577 374.834 210.748 377.278 215.028C380.075 219.925 381.612 227.297 380.77 239.048C379.202 260.93 372.883 270.75 366.157 276.198C363.521 278.333 360.842 279.765 358.659 280.932C358.141 281.209 357.651 281.471 357.196 281.724C354.727 283.097 353.459 284.114 352.94 285.588C346.115 312.745 335.656 325.235 326.992 335.581C325.711 337.111 324.469 338.595 323.283 340.072C318.736 345.738 315.077 351.244 313.058 359.018C311.036 366.806 310.62 377.042 312.887 392.189C323.28 427.534 349.601 445.607 379.548 458.155C380.567 458.582 381.047 459.754 380.62 460.773C380.193 461.792 379.021 462.271 378.002 461.845C347.548 449.083 319.871 430.304 309.01 393.182L308.972 393.052L308.952 392.918C306.617 377.396 306.974 366.534 309.187 358.012C311.409 349.454 315.459 343.431 320.164 337.568C321.377 336.057 322.636 334.552 323.926 333.011C332.525 322.737 342.484 310.837 349.08 284.533L349.099 284.458L349.124 284.385C350.161 281.284 352.747 279.621 355.253 278.228C355.794 277.927 356.344 277.632 356.902 277.333C359.061 276.176 361.329 274.961 363.639 273.09C369.248 268.547 375.264 259.921 376.78 238.762C377.594 227.404 376.048 220.94 373.805 217.012C371.594 213.141 368.56 211.453 365.547 209.952L364.214 209.287L364.469 207.818C373.737 154.637 371.701 112.248 353.043 83.194C334.485 54.2962 299.065 38 240 38C180.935 38 145.516 54.2962 126.958 83.194C108.3 112.248 106.264 154.637 115.531 207.818L115.787 209.287L114.453 209.952C111.441 211.453 108.406 213.141 106.196 217.012C103.953 220.94 102.406 227.404 103.22 238.762C104.736 259.921 110.753 268.547 116.361 273.09C118.672 274.961 120.94 276.176 123.099 277.333C123.656 277.632 124.206 277.927 124.748 278.228C127.254 279.621 129.84 281.284 130.877 284.385L130.901 284.458L130.92 284.533C137.517 310.837 147.476 322.737 156.074 333.011C157.364 334.552 158.624 336.057 159.837 337.568C164.542 343.431 168.592 349.454 170.814 358.012C173.026 366.534 173.384 377.396 171.048 392.918L171.028 393.052L170.99 393.182C160.129 430.304 132.452 449.083 101.998 461.845C100.979 462.271 99.8075 461.792 99.3806 460.773C98.9537 459.754 99.4335 458.582 100.452 458.155C130.399 445.607 156.721 427.534 167.113 392.189C169.381 377.042 168.964 366.806 166.942 359.018C164.924 351.244 161.264 345.738 156.717 340.072C155.532 338.595 154.29 337.111 153.008 335.581C144.345 325.235 133.886 312.745 127.061 285.588C126.541 284.114 125.273 283.097 122.804 281.724C122.349 281.471 121.859 281.209 121.341 280.932C119.159 279.765 116.479 278.333 113.844 276.198C107.117 270.75 100.798 260.93 99.2303 239.048C98.3883 227.297 99.9259 219.925 102.722 215.028C105.166 210.748 108.455 208.577 111.339 207.051C102.319 154.313 104.259 111.138 123.592 81.0326Z",
2712
- fill: "currentColor",
2713
- fillRule: "evenodd"
2714
- }
2715
- ) });
2716
- }
2717
- function ks() {
2718
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2650
+ function vs() {
2651
+ return /* @__PURE__ */ d("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d(
2719
2652
  "rect",
2720
2653
  {
2721
2654
  height: "476",
@@ -2730,8 +2663,8 @@ function ks() {
2730
2663
  }
2731
2664
  ) });
2732
2665
  }
2733
- function Os() {
2734
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2666
+ function Cs() {
2667
+ return /* @__PURE__ */ d("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d(
2735
2668
  "rect",
2736
2669
  {
2737
2670
  height: "476",
@@ -2746,24 +2679,13 @@ function Os() {
2746
2679
  }
2747
2680
  ) });
2748
2681
  }
2749
- function Ns() {
2750
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f("rect", { height: "476", rx: "14", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "4", width: "476", x: "2", y: "2" }) });
2682
+ function ws() {
2683
+ return /* @__PURE__ */ d("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d("rect", { height: "476", rx: "14", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "4", width: "476", x: "2", y: "2" }) });
2751
2684
  }
2752
- function xs() {
2753
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f("rect", { height: "476", rx: "2", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "4", width: "476", x: "2", y: "2" }) });
2754
- }
2755
- function Ts() {
2756
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2757
- "path",
2758
- {
2759
- clipRule: "evenodd",
2760
- d: "M126.126 87.8654C147.739 56.7835 184.591 34.0001 239.665 34.0001C239.779 34.0001 239.891 34.0096 240 34.0279C240.109 34.0096 240.221 34.0001 240.335 34.0001C295.41 34.0001 332.261 56.7835 353.874 87.8654C375.428 118.862 381.724 157.957 376.086 190.544C373.539 205.262 371.039 233.823 376.056 253.971C380.828 273.135 387.879 290.154 393.431 303.54L393.491 303.685C396.23 310.287 398.627 316.064 400.16 320.726C400.933 323.077 401.511 325.214 401.797 327.079C402.073 328.879 402.11 330.618 401.637 332.107C399.79 339.478 396.615 344.943 392.398 348.881C388.174 352.825 383.031 355.122 377.446 356.355C366.388 358.799 353.231 357.133 341.237 355.551C340.93 355.51 340.623 355.47 340.317 355.43C334.586 354.672 329.126 353.951 324.151 353.668C318.894 353.368 314.374 353.574 310.799 354.649C307.298 355.702 304.789 357.558 303.304 360.596C301.785 363.704 301.203 368.322 302.207 375.153C309.297 399.432 323.779 413.44 341.432 422.745C356.457 430.665 373.692 435.144 390.741 439.575C393.916 440.401 397.085 441.224 400.232 442.068C401.298 442.354 401.931 443.451 401.645 444.518C401.359 445.585 400.262 446.218 399.196 445.932C396.115 445.106 392.991 444.294 389.842 443.477C372.804 439.052 355.041 434.44 339.567 426.283C321.093 416.546 305.757 401.713 298.328 376.139L298.29 376.01L298.271 375.877C297.181 368.587 297.678 362.998 299.71 358.839C301.787 354.59 305.326 352.119 309.647 350.819C313.895 349.541 318.973 349.366 324.378 349.674C329.508 349.966 335.107 350.706 340.788 351.457C341.112 351.5 341.436 351.543 341.76 351.585C353.925 353.19 366.342 354.713 376.583 352.45C381.65 351.33 386.088 349.3 389.668 345.957C393.241 342.621 396.083 337.86 397.773 331.072L397.791 330.998L397.815 330.925C398.022 330.302 398.087 329.272 397.843 327.686C397.605 326.133 397.102 324.232 396.36 321.976C394.875 317.458 392.525 311.794 389.74 305.081L389.737 305.073C384.19 291.701 377.028 274.428 372.174 254.937C366.952 233.964 369.571 204.733 372.144 189.862C377.623 158.197 371.48 120.191 350.59 90.149C329.759 60.1924 294.162 38.0001 240.335 38.0001C240.221 38.0001 240.109 37.9905 240 37.9722C239.891 37.9905 239.779 38.0001 239.665 38.0001C185.838 38.0001 150.241 60.1924 129.41 90.149C108.52 120.191 102.377 158.197 107.856 189.862C110.429 204.733 113.048 233.964 107.826 254.937C102.972 274.428 95.8101 291.701 90.2633 305.073L90.2607 305.079C87.4756 311.793 85.1256 317.458 83.6398 321.976C82.8977 324.232 82.3951 326.133 82.1567 327.686C81.9133 329.272 81.9778 330.302 82.1847 330.925L82.2088 330.998L82.2273 331.072C83.9176 337.86 86.7592 342.621 90.3324 345.957C93.9121 349.3 98.3505 351.33 103.417 352.45C113.658 354.713 126.075 353.19 138.24 351.585C138.564 351.543 138.888 351.5 139.212 351.457C144.893 350.706 150.492 349.966 155.622 349.674C161.027 349.366 166.105 349.541 170.353 350.819C174.674 352.119 178.213 354.59 180.29 358.839C182.323 362.998 182.819 368.587 181.73 375.877L181.71 376.01L181.672 376.139C174.243 401.713 158.907 416.546 140.433 426.283C124.959 434.44 107.196 439.052 90.1584 443.477C87.0093 444.294 83.8851 445.106 80.8046 445.932C79.7377 446.218 78.6409 445.585 78.3548 444.518C78.0687 443.451 78.7017 442.354 79.7685 442.068C82.9154 441.224 86.0842 440.401 89.2594 439.575C106.308 435.144 123.543 430.665 138.568 422.745C156.221 413.44 170.703 399.432 177.793 375.153C178.797 368.322 178.215 363.704 176.696 360.596C175.211 357.558 172.702 355.702 169.201 354.649C165.626 353.574 161.106 353.368 155.849 353.668C150.874 353.951 145.414 354.672 139.683 355.43C139.377 355.47 139.07 355.51 138.763 355.551C126.769 357.133 113.613 358.799 102.554 356.355C96.9695 355.122 91.8259 352.825 87.6024 348.881C83.3855 344.943 80.2095 339.478 78.3628 332.107C77.8896 330.618 77.9268 328.879 78.203 327.079C78.4892 325.214 79.0667 323.077 79.84 320.726C81.3732 316.064 83.7701 310.286 86.5089 303.684L86.5686 303.54C92.1215 290.154 99.1722 273.135 103.944 253.971C108.961 233.823 106.461 205.262 103.914 190.544C98.2759 157.957 104.572 118.862 126.126 87.8654Z",
2761
- fill: "currentColor",
2762
- fillRule: "evenodd"
2763
- }
2764
- ) });
2685
+ function Ss() {
2686
+ return /* @__PURE__ */ d("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d("rect", { height: "476", rx: "2", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "4", width: "476", x: "2", y: "2" }) });
2765
2687
  }
2766
- const Is = F.div`
2688
+ const bs = H.div`
2767
2689
  z-index: 1;
2768
2690
  position: absolute;
2769
2691
  top: ${(e) => e.$placeholderRectangle.shiftY * 100}%;
@@ -2777,95 +2699,92 @@ const Is = F.div`
2777
2699
  width: 100%;
2778
2700
  height: 100%;
2779
2701
  }
2780
- `, Rs = ({
2702
+ `, Es = ({
2781
2703
  children: e,
2782
2704
  className: t,
2783
- isInCandidateSelection: n,
2784
- onAnimationEnd: r,
2705
+ isInCandidateSelection: r,
2706
+ onAnimationEnd: n,
2785
2707
  placeholderRectangle: o,
2786
2708
  scale: i
2787
- }) => /* @__PURE__ */ f(
2788
- Is,
2709
+ }) => /* @__PURE__ */ d(
2710
+ bs,
2789
2711
  {
2790
- $isInCandidateSelection: n,
2712
+ $isInCandidateSelection: r,
2791
2713
  $placeholderRectangle: o,
2792
2714
  $scale: i,
2793
2715
  className: t,
2794
- onAnimationEnd: r,
2716
+ onAnimationEnd: n,
2795
2717
  children: e
2796
2718
  }
2797
- ), As = {
2798
- [D.CIRCLE_SOLID]: /* @__PURE__ */ f(Es, {}),
2799
- [D.ELLIPSE_SOLID]: /* @__PURE__ */ f(bs, {}),
2800
- [D.MAN_SOLID]: /* @__PURE__ */ f($s, {}),
2801
- [D.WOMAN_SOLID]: /* @__PURE__ */ f(Ts, {}),
2802
- [D.SQUARE_ROUNDED_DASH]: /* @__PURE__ */ f(Os, {}),
2803
- [D.SQUARE_ROUNDED_SOLID]: /* @__PURE__ */ f(Ns, {}),
2804
- [D.SQUARE_DASH]: /* @__PURE__ */ f(ks, {}),
2805
- [D.SQUARE_SOLID]: /* @__PURE__ */ f(xs, {})
2719
+ ), $s = {
2720
+ [be.CIRCLE_SOLID]: /* @__PURE__ */ d(ys, {}),
2721
+ [be.SQUARE_ROUNDED_DASH]: /* @__PURE__ */ d(Cs, {}),
2722
+ [be.SQUARE_ROUNDED_SOLID]: /* @__PURE__ */ d(ws, {}),
2723
+ [be.SQUARE_DASH]: /* @__PURE__ */ d(vs, {}),
2724
+ [be.SQUARE_SOLID]: /* @__PURE__ */ d(Ss, {})
2806
2725
  };
2807
- function Ls({ backdropHeight: e, backdropWidth: t, isBackdrop: n, placeholderRectangle: r, ...o }) {
2808
- const { placeholder: i } = we(), a = i.toLowerCase().includes("square"), c = i.toLowerCase().includes("rounded");
2809
- return /* @__PURE__ */ f(j, { children: [
2810
- n && /* @__PURE__ */ f(mo, { height: e, width: t, children: /* @__PURE__ */ f(
2811
- Ss,
2726
+ function ks({ backdropHeight: e, backdropWidth: t, isBackdrop: r, placeholderRectangle: n, ...o }) {
2727
+ const { placeholder: i } = Ce(), a = i.toLowerCase().includes("square"), c = i.toLowerCase().includes("rounded");
2728
+ return /* @__PURE__ */ d(z, { children: [
2729
+ r && /* @__PURE__ */ d(fo, { height: e, width: t, children: /* @__PURE__ */ d(
2730
+ gs,
2812
2731
  {
2813
- height: `${r.height * 100}%`,
2732
+ height: `${n.height * 100}%`,
2814
2733
  isRounded: c,
2815
2734
  isSquare: a,
2816
- width: `${r.width * 100}%`,
2817
- x: `${r.shiftX * 100}%`,
2818
- y: `${r.shiftY * 100}%`
2735
+ width: `${n.width * 100}%`,
2736
+ x: `${n.shiftX * 100}%`,
2737
+ y: `${n.shiftY * 100}%`
2819
2738
  }
2820
2739
  ) }),
2821
- /* @__PURE__ */ f(Rs, { placeholderRectangle: r, ...o, children: As[i] })
2740
+ /* @__PURE__ */ d(Es, { placeholderRectangle: n, ...o, children: $s[i] })
2822
2741
  ] });
2823
2742
  }
2824
- const Ps = () => {
2825
- const [e, t] = z(), [n, r] = z(!1), o = ge(
2743
+ const Os = () => {
2744
+ const [e, t] = W(), [r, n] = W(!1), o = me(
2826
2745
  (s) => {
2827
- var d, l;
2828
- t((d = s == null ? void 0 : s.detail) == null ? void 0 : d.cameraResolution);
2746
+ var f, l;
2747
+ t((f = s == null ? void 0 : s.detail) == null ? void 0 : f.cameraResolution);
2829
2748
  const u = (l = s == null ? void 0 : s.detail) == null ? void 0 : l.isMirroring;
2830
- u !== void 0 && r(u);
2749
+ u !== void 0 && n(u);
2831
2750
  },
2832
2751
  [t]
2833
2752
  );
2834
- Ve(me.CAMERA_PROPS_CHANGED, o);
2835
- const [i, a] = z({
2836
- code: L.FACE_NOT_PRESENT,
2753
+ Ve(pe.CAMERA_PROPS_CHANGED, o);
2754
+ const [i, a] = W({
2755
+ code: A.FACE_NOT_PRESENT,
2837
2756
  // FIXME Default instruction should not be here
2838
2757
  isEscalated: !1
2839
- }), c = ge(
2758
+ }), c = me(
2840
2759
  (s) => {
2841
- var u, d;
2760
+ var u, f;
2842
2761
  a({
2843
2762
  code: (u = s == null ? void 0 : s.detail) == null ? void 0 : u.instructionCode,
2844
- isEscalated: ((d = s == null ? void 0 : s.detail) == null ? void 0 : d.isEscalated) ?? !1
2763
+ isEscalated: ((f = s == null ? void 0 : s.detail) == null ? void 0 : f.isEscalated) ?? !1
2845
2764
  });
2846
2765
  },
2847
2766
  [a]
2848
2767
  );
2849
- return Ve(me.INSTRUCTION_CHANGED, c), {
2768
+ return Ve(pe.INSTRUCTION_CHANGED, c), {
2850
2769
  cameraResolution: e,
2851
2770
  instruction: i,
2852
- isMirroring: n
2771
+ isMirroring: r
2853
2772
  };
2854
- }, Ds = () => {
2855
- const [e, t] = z(V.LOADING), [n, r] = z(), o = ge(
2773
+ }, Ns = () => {
2774
+ const [e, t] = W(G.LOADING), [r, n] = W(), o = me(
2856
2775
  (i) => {
2857
2776
  var c, s;
2858
2777
  t((c = i.detail) == null ? void 0 : c.appState);
2859
2778
  const a = (s = i == null ? void 0 : i.detail) == null ? void 0 : s.error;
2860
- a && r(a);
2779
+ a && n(a);
2861
2780
  },
2862
- [t, r]
2781
+ [t, n]
2863
2782
  );
2864
- return Ve(me.STATE_CHANGED, o), {
2783
+ return Ve(pe.STATE_CHANGED, o), {
2865
2784
  appState: e,
2866
- error: n
2785
+ error: r
2867
2786
  };
2868
- }, Ms = F.canvas`
2787
+ }, xs = H.canvas`
2869
2788
  transform: ${(e) => e.$isImageMirror ? "rotateY(180deg)" : "none"};
2870
2789
  position: absolute;
2871
2790
  top: 0;
@@ -2874,97 +2793,107 @@ const Ps = () => {
2874
2793
  height: 100%;
2875
2794
  z-index: 1;
2876
2795
  `;
2877
- function Hs(e) {
2796
+ function Ts(e) {
2878
2797
  const t = e.getContext("2d");
2879
2798
  t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
2880
2799
  }
2881
- const Fs = ({ cameraResolution: e, isImageMirror: t }) => {
2882
- const n = Ye(null), r = lo(), [o, i] = z(), a = ge(
2800
+ const Is = ({ cameraResolution: e, isImageMirror: t }) => {
2801
+ const r = Ze(null), n = io(), [o, i] = W(), a = me(
2883
2802
  (c) => {
2884
2803
  var s;
2885
2804
  i((s = c == null ? void 0 : c.detail) == null ? void 0 : s.detectedObject);
2886
2805
  },
2887
2806
  [i]
2888
2807
  );
2889
- return Ve(me.DETECTED_FACE_CHANGED, a), re(() => {
2890
- if (!n.current)
2808
+ return Ve(pe.DETECTION_CHANGED, a), re(() => {
2809
+ if (!r.current)
2891
2810
  return;
2892
2811
  const c = (s, u) => {
2893
2812
  var g;
2894
2813
  if (!u)
2895
2814
  return;
2896
- const { faceCenter: d, faceSize: l } = u, _ = (g = n == null ? void 0 : n.current) == null ? void 0 : g.getContext("2d");
2897
- if (!_)
2815
+ const { faceCenter: f, faceSize: l } = u, h = (g = r == null ? void 0 : r.current) == null ? void 0 : g.getContext("2d");
2816
+ if (!h)
2898
2817
  return;
2899
- const h = ts(l, s);
2900
- _.beginPath(), _.arc(d.x, d.y, h, 0, 2 * Math.PI, !1), _.lineWidth = $a, _.strokeStyle = r.colors.placeholderColor, _.stroke();
2818
+ const _ = Za(l, s);
2819
+ h.beginPath(), h.arc(f.x, f.y, _, 0, 2 * Math.PI, !1), h.lineWidth = va, h.strokeStyle = n.colors.placeholderColor, h.stroke();
2901
2820
  };
2902
- n.current.width = e.width, n.current.height = e.height, Hs(n.current), c(e, o);
2903
- }, [e, o, r.colors.placeholderColor]), /* @__PURE__ */ f(Ms, { ref: n, $isImageMirror: t });
2821
+ r.current.width = e.width, r.current.height = e.height, Ts(r.current), c(e, o);
2822
+ }, [e, o, n.colors.placeholderColor]), /* @__PURE__ */ d(xs, { ref: r, $isImageMirror: t });
2904
2823
  };
2905
- function Us() {
2906
- const { appState: e, error: t } = Ds(), { cameraResolution: n, instruction: r, isMirroring: o } = Ps(), i = r.code === L.CANDIDATE_SELECTION, { instructions: a, placeholder: c, showDetectionLayer: s } = we(), d = ![
2907
- D.WOMAN_SOLID,
2908
- D.ELLIPSE_SOLID,
2909
- D.MAN_SOLID
2910
- ].includes(c);
2911
- if (e === V.ERROR)
2912
- return /* @__PURE__ */ f(_o, { text: t == null ? void 0 : t.message });
2913
- if (e === V.RUNNING && n) {
2914
- const l = es(n);
2915
- return /* @__PURE__ */ f(j, { children: [
2916
- s && /* @__PURE__ */ f(Fs, { cameraResolution: n, isImageMirror: o }),
2917
- /* @__PURE__ */ f(
2918
- Ls,
2824
+ function Rs() {
2825
+ const { appState: e, error: t } = Ns(), { cameraResolution: r, instruction: n, isMirroring: o } = Os(), i = n.code === A.CANDIDATE_SELECTION, {
2826
+ control: { showDetectionLayer: a },
2827
+ instructions: c
2828
+ } = Ce();
2829
+ if (e === G.ERROR)
2830
+ return /* @__PURE__ */ d(lo, { text: t == null ? void 0 : t.message });
2831
+ if (e === G.RUNNING && r) {
2832
+ const s = Ya(r);
2833
+ return /* @__PURE__ */ d(z, { children: [
2834
+ a && /* @__PURE__ */ d(Is, { cameraResolution: r, isImageMirror: o }),
2835
+ /* @__PURE__ */ d(
2836
+ ks,
2919
2837
  {
2920
- backdropHeight: n.height,
2921
- backdropWidth: n.width,
2922
- isBackdrop: d,
2838
+ backdropHeight: r.height,
2839
+ backdropWidth: r.width,
2840
+ isBackdrop: !0,
2923
2841
  isInCandidateSelection: i,
2924
- placeholderRectangle: l
2842
+ placeholderRectangle: s
2925
2843
  }
2926
2844
  ),
2927
- r.code && /* @__PURE__ */ f(
2928
- gs,
2845
+ n.code && /* @__PURE__ */ d(
2846
+ ds,
2929
2847
  {
2930
- cssBottom: (l.height + l.shiftY) * 100,
2848
+ cssBottom: (s.height + s.shiftY) * 100,
2931
2849
  isInCandidateSelection: i,
2932
- isPortrait: n.width < n.height,
2933
- children: a[r.code]
2850
+ isPortrait: r.width < r.height,
2851
+ children: c[n.code]
2934
2852
  }
2935
2853
  ),
2936
- /* @__PURE__ */ f(us, { customControlEvent: me.CONTROL, isSwitchCameraDisabled: i })
2854
+ /* @__PURE__ */ d(is, { customControlEvent: pe.CONTROL, isSwitchCameraDisabled: i })
2937
2855
  ] });
2938
2856
  }
2939
- return /* @__PURE__ */ f(
2940
- ws,
2857
+ return /* @__PURE__ */ d(
2858
+ ms,
2941
2859
  {
2942
- cameraHeight: n == null ? void 0 : n.height,
2943
- cameraWidth: n == null ? void 0 : n.width,
2944
- isBackdrop: d,
2860
+ cameraHeight: r == null ? void 0 : r.height,
2861
+ cameraWidth: r == null ? void 0 : r.width,
2862
+ isBackdrop: !0,
2945
2863
  state: e
2946
2864
  }
2947
2865
  );
2948
2866
  }
2949
- const Bs = (e) => {
2950
- var s, u;
2951
- const t = { ...Oa, ...e == null ? void 0 : e.instructions }, n = {
2952
- [V.LOADING]: { ...lr.loading, ...(s = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : s.loading },
2953
- [V.WAITING]: { ...lr.waiting, ...(u = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : u.waiting }
2954
- }, r = (e == null ? void 0 : e.placeholder) ?? Na, o = (e == null ? void 0 : e.backdropColor) ?? xa, i = (e == null ? void 0 : e.showDetectionLayer) ?? !1, a = (e == null ? void 0 : e.showCameraButtons) ?? !1, c = Ya(e == null ? void 0 : e.theme);
2955
- return (r === D.WOMAN_SOLID || r === D.MAN_SOLID || r === D.ELLIPSE_SOLID) && console.warn(
2956
- "The placeholder icon you are currently using is deprecated. Please use one of our alternative placeholders instead. Read more here: https://developers.innovatrics.com/digital-onboarding/technical/remote/dot-web-face/latest/documentation/#ui-component"
2957
- ), {
2867
+ function Ps(e) {
2868
+ var c, s, u, f, l, h;
2869
+ const t = { ...wa, ...e == null ? void 0 : e.instructions }, r = {
2870
+ [G.LOADING]: {
2871
+ ...on.loading,
2872
+ ...(c = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : c.loading
2873
+ },
2874
+ [G.WAITING]: {
2875
+ ...on.waiting,
2876
+ ...(s = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : s.waiting
2877
+ }
2878
+ }, n = za((u = e == null ? void 0 : e.styling) == null ? void 0 : u.theme), o = {
2879
+ ...e == null ? void 0 : e.styling,
2880
+ backdropColor: ((f = e == null ? void 0 : e.styling) == null ? void 0 : f.backdropColor) ?? ba,
2881
+ theme: n
2882
+ }, i = {
2883
+ showDetectionLayer: ((l = e == null ? void 0 : e.control) == null ? void 0 : l.showDetectionLayer) ?? !1,
2884
+ showCameraButtons: ((h = e == null ? void 0 : e.control) == null ? void 0 : h.showCameraButtons) ?? !1
2885
+ }, a = (e == null ? void 0 : e.placeholder) ?? Sa;
2886
+ return {
2887
+ ...e,
2958
2888
  instructions: t,
2959
- appStateInstructions: n,
2960
- placeholder: r,
2961
- backdropColor: o,
2962
- showDetectionLayer: i,
2963
- showCameraButtons: a,
2964
- theme: c
2889
+ appStateInstructions: r,
2890
+ placeholder: a,
2891
+ styling: o,
2892
+ control: i
2965
2893
  };
2966
- }, Ws = ({ props: e }) => {
2967
- const t = Ga(me.VIDEO_ELEMENT_SIZE);
2968
- return /* @__PURE__ */ f(Ba, { uiProps: Bs(e), videoElementSize: t, children: /* @__PURE__ */ f(Us, {}) });
2894
+ }
2895
+ const As = ({ configuration: e }) => {
2896
+ const t = Fa(pe.VIDEO_ELEMENT_SIZE);
2897
+ return /* @__PURE__ */ d(Da, { uiConfiguration: Ps(e), videoElementSize: t, children: /* @__PURE__ */ d(Rs, {}) });
2969
2898
  };
2970
- Ao(Ws, "x-dot-face-auto-capture-ui", ["props"]);
2899
+ Oo(As, "x-dot-face-auto-capture-ui", ["configuration"]);