@ahmed_hani/dot-auto-capture-ui 7.4.0

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 (40) hide show
  1. package/LICENSE.txt +117 -0
  2. package/README.md +162 -0
  3. package/document.mjs +3900 -0
  4. package/document.umd.js +246 -0
  5. package/face.mjs +2939 -0
  6. package/face.umd.js +246 -0
  7. package/magnifeye-liveness.mjs +3024 -0
  8. package/magnifeye-liveness.umd.js +338 -0
  9. package/package.json +102 -0
  10. package/palm.mjs +2837 -0
  11. package/palm.umd.js +246 -0
  12. package/smile-liveness.mjs +3060 -0
  13. package/smile-liveness.umd.js +310 -0
  14. package/tsconfig.production.json +22 -0
  15. package/ui/src/types/common.d.ts +53 -0
  16. package/ui/src/types/document.d.ts +38 -0
  17. package/ui/src/types/eye-gaze.d.ts +37 -0
  18. package/ui/src/types/face.d.ts +45 -0
  19. package/ui/src/types/magnifeye.d.ts +32 -0
  20. package/ui/src/types/palm.d.ts +27 -0
  21. package/ui/src/types/smile.d.ts +32 -0
  22. package/ui-common/src/error/auto-capture-error.d.ts +7 -0
  23. package/ui-common/src/error/index.d.ts +1 -0
  24. package/ui-common/src/types/common.d.ts +88 -0
  25. package/ui-common/src/types/document.d.ts +30 -0
  26. package/ui-common/src/types/events/common.d.ts +74 -0
  27. package/ui-common/src/types/events/document.d.ts +23 -0
  28. package/ui-common/src/types/events/eye-gaze.d.ts +4 -0
  29. package/ui-common/src/types/events/face.d.ts +21 -0
  30. package/ui-common/src/types/events/index.d.ts +8 -0
  31. package/ui-common/src/types/events/liveness.d.ts +13 -0
  32. package/ui-common/src/types/events/magnifeye.d.ts +5 -0
  33. package/ui-common/src/types/events/palm.d.ts +16 -0
  34. package/ui-common/src/types/events/smile.d.ts +8 -0
  35. package/ui-common/src/types/eye-gaze.d.ts +39 -0
  36. package/ui-common/src/types/face.d.ts +52 -0
  37. package/ui-common/src/types/index.d.ts +8 -0
  38. package/ui-common/src/types/magnifeye.d.ts +32 -0
  39. package/ui-common/src/types/palm.d.ts +44 -0
  40. package/ui-common/src/types/smile.d.ts +36 -0
@@ -0,0 +1,3024 @@
1
+ var Oo = Object.defineProperty;
2
+ var No = (e, t, n) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var rt = (e, t, n) => No(e, typeof t != "symbol" ? t + "" : t, n);
4
+ var Xe, v, yr, ue, xn, vr, Cr, Er, un, Ut, Bt, wr, Ge = {}, Sr = [], ko = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ke = Array.isArray;
5
+ function Z(e, t) {
6
+ for (var n in t) e[n] = t[n];
7
+ return e;
8
+ }
9
+ function fn(e) {
10
+ e && e.parentNode && e.parentNode.removeChild(e);
11
+ }
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 ? Xe.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 ze(e, a, r, o, null);
17
+ }
18
+ function ze(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 ?? ++yr, __i: -1, __u: 0 };
20
+ return o == null && v.vnode != null && v.vnode(i), i;
21
+ }
22
+ function To() {
23
+ return { current: null };
24
+ }
25
+ function V(e) {
26
+ return e.children;
27
+ }
28
+ function j(e, t) {
29
+ this.props = e, this.context = t;
30
+ }
31
+ function Se(e, t) {
32
+ if (t == null) return e.__ ? Se(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" ? Se(e) : null;
35
+ }
36
+ function br(e) {
37
+ var t, n;
38
+ 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;
41
+ break;
42
+ }
43
+ return br(e);
44
+ }
45
+ }
46
+ function zt(e) {
47
+ (!e.__d && (e.__d = !0) && ue.push(e) && !mt.__r++ || xn != v.debounceRendering) && ((xn = v.debounceRendering) || vr)(mt);
48
+ }
49
+ function mt() {
50
+ for (var e, t, n, r, o, i, a, c = 1; ue.length; ) ue.length > c && ue.sort(Cr), e = ue.shift(), c = ue.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = Z({}, r)).__v = r.__v + 1, v.vnode && v.vnode(n), dn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? Se(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, Nr(i, n, a), n.__e != o && br(n)));
51
+ mt.__r = 0;
52
+ }
53
+ function $r(e, t, n, r, o, i, a, c, s, u, f) {
54
+ var l, h, _, g, w, $, m = r && r.__k || Sr, p = t.length;
55
+ for (s = xo(n, t, m, s, p), l = 0; l < p; l++) (_ = n.__k[l]) != null && (h = _.__i == -1 ? Ge : m[_.__i] || Ge, _.__i = l, $ = dn(e, _, h, o, i, a, c, s, u, f), g = _.__e, _.ref && h.ref != _.ref && (h.ref && _n(h.ref, null, _), f.push(_.ref, _.__c || g, _)), w == null && g != null && (w = g), 4 & _.__u || h.__k === _.__k ? s = Or(_, s, e) : typeof _.type == "function" && $ !== void 0 ? s = $ : g && (s = g.nextSibling), _.__u &= -7);
56
+ return n.__e = w, s;
57
+ }
58
+ function xo(e, t, n, r, o) {
59
+ var i, a, c, s, u, f = n.length, l = f, h = 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 + h, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? ze(null, a, null, null, null) : Ke(a) ? ze(V, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? ze(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 = Io(a, n, s, l)) != -1 && (l--, (c = n[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;
61
+ if (l) for (i = 0; i < f; i++) (c = n[i]) != null && (2 & c.__u) == 0 && (c.__e == r && (r = Se(c)), Tr(c, c));
62
+ return r;
63
+ }
64
+ function Or(e, t, n) {
65
+ var r, o;
66
+ if (typeof e.type == "function") {
67
+ for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Or(r[o], t, n));
68
+ return t;
69
+ }
70
+ e.__e != t && (t && e.type && !n.contains(t) && (t = Se(e)), n.insertBefore(e.__e, t || null), t = e.__e);
71
+ do
72
+ t = t && t.nextSibling;
73
+ while (t != null && t.nodeType == 8);
74
+ return t;
75
+ }
76
+ function ee(e, t) {
77
+ return t = t || [], e == null || typeof e == "boolean" || (Ke(e) ? e.some(function(n) {
78
+ ee(n, t);
79
+ }) : t.push(e)), t;
80
+ }
81
+ function Io(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; ) {
85
+ if (o >= 0) {
86
+ if ((s = t[o]) && (2 & s.__u) == 0 && a == s.key && c == s.type) return o;
87
+ o--;
88
+ }
89
+ if (i < t.length) {
90
+ if ((s = t[i]) && (2 & s.__u) == 0 && a == s.key && c == s.type) return i;
91
+ i++;
92
+ }
93
+ }
94
+ return -1;
95
+ }
96
+ function In(e, t, n) {
97
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ko.test(t) ? n : n + "px";
98
+ }
99
+ function ot(e, t, n, r, o) {
100
+ var i;
101
+ e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
102
+ else {
103
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || In(e.style, t, "");
104
+ if (n) for (t in n) r && n[t] == r[t] || In(e.style, t, n[t]);
105
+ }
106
+ else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(Er, "$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 = un, e.addEventListener(t, i ? Bt : Ut, i)) : e.removeEventListener(t, i ? Bt : Ut, i);
107
+ else {
108
+ if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
109
+ 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 ?? "";
111
+ break e;
112
+ } catch {
113
+ }
114
+ typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
115
+ }
116
+ }
117
+ function An(e) {
118
+ return function(t) {
119
+ if (this.l) {
120
+ var n = this.l[t.type + e];
121
+ if (t.t == null) t.t = un++;
122
+ else if (t.t < n.u) return;
123
+ return n(v.event ? v.event(t) : t);
124
+ }
125
+ };
126
+ }
127
+ function dn(e, t, n, r, o, i, a, c, s, u) {
128
+ var f, l, h, _, g, w, $, m, p, O, S, k, E, y, F, U, Pe, B = t.type;
129
+ if (t.constructor != null) return null;
130
+ 128 & n.__u && (s = !!(32 & n.__u), i = [c = t.__e = n.__e]), (f = v.__b) && f(t);
131
+ e: if (typeof B == "function") try {
132
+ if (m = t.props, p = "prototype" in B && B.prototype.render, O = (f = B.contextType) && r[f.__c], S = f ? O ? O.props.value : f.__ : r, n.__c ? $ = (l = t.__c = n.__c).__ = l.__E : (p ? t.__c = l = new B(m, S) : (t.__c = l = new j(m, S), l.constructor = B, l.render = Ro), O && O.sub(l), l.props = m, l.state || (l.state = {}), l.context = S, l.__n = r, h = 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 = Z({}, l.__s)), Z(l.__s, B.getDerivedStateFromProps(m, l.__s))), _ = l.props, g = l.state, l.__v = t, h) p && B.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), p && l.componentDidMount != null && l.__h.push(l.componentDidMount);
133
+ else {
134
+ if (p && B.getDerivedStateFromProps == null && m !== _ && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, S), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, S) === !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(ce) {
136
+ ce && (ce.__ = t);
137
+ }), k = 0; k < l._sb.length; k++) l.__h.push(l._sb[k]);
138
+ l._sb = [], l.__h.length && a.push(l);
139
+ break e;
140
+ }
141
+ l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s, S), p && l.componentDidUpdate != null && l.__h.push(function() {
142
+ l.componentDidUpdate(_, g, w);
143
+ });
144
+ }
145
+ if (l.context = S, l.props = m, l.__P = e, l.__e = !1, E = v.__r, y = 0, p) {
146
+ for (l.state = l.__s, l.__d = !1, E && E(t), f = l.render(l.props, l.state, l.context), F = 0; F < l._sb.length; F++) l.__h.push(l._sb[F]);
147
+ l._sb = [];
148
+ } else do
149
+ l.__d = !1, E && E(t), f = l.render(l.props, l.state, l.context), l.state = l.__s;
150
+ while (l.__d && ++y < 25);
151
+ l.state = l.__s, l.getChildContext != null && (r = Z(Z({}, r), l.getChildContext())), p && !h && l.getSnapshotBeforeUpdate != null && (w = l.getSnapshotBeforeUpdate(_, g)), U = f, f != null && f.type === V && f.key == null && (U = kr(f.props.children)), c = $r(e, Ke(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 (ce) {
153
+ if (t.__v = null, s || i != null) if (ce.then) {
154
+ for (t.__u |= s ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
155
+ i[i.indexOf(c)] = null, t.__e = c;
156
+ } else for (Pe = i.length; Pe--; ) fn(i[Pe]);
157
+ else t.__e = n.__e, t.__k = n.__k;
158
+ v.__e(ce, t, n);
159
+ }
160
+ else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : c = t.__e = Ao(n.__e, t, n, r, o, i, a, s, u);
161
+ return (f = v.diffed) && f(t), 128 & t.__u ? void 0 : c;
162
+ }
163
+ function Nr(e, t, n) {
164
+ for (var r = 0; r < n.length; r++) _n(n[r], n[++r], n[++r]);
165
+ v.__c && v.__c(t, e), e.some(function(o) {
166
+ try {
167
+ e = o.__h, o.__h = [], e.some(function(i) {
168
+ i.call(o);
169
+ });
170
+ } catch (i) {
171
+ v.__e(i, o.__v);
172
+ }
173
+ });
174
+ }
175
+ function kr(e) {
176
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ke(e) ? e.map(kr) : Z({}, e);
177
+ }
178
+ function Ao(e, t, n, r, o, i, a, c, s) {
179
+ var u, f, l, h, _, g, w, $ = n.props, m = t.props, p = t.type;
180
+ 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 ((_ = i[u]) && "setAttribute" in _ == !!p && (p ? _.localName == p : _.nodeType == 3)) {
182
+ e = _, i[u] = null;
183
+ break;
184
+ }
185
+ }
186
+ if (e == null) {
187
+ if (p == null) return document.createTextNode(m);
188
+ e = document.createElementNS(o, p, m.is && m), c && (v.__m && v.__m(t, i), c = !1), i = null;
189
+ }
190
+ if (p == null) $ === m || c && e.data == m || (e.data = m);
191
+ else {
192
+ if (i = i && Xe.call(e.childNodes), $ = n.props || Ge, !c && i != null) for ($ = {}, u = 0; u < e.attributes.length; u++) $[(_ = e.attributes[u]).name] = _.value;
193
+ for (u in $) if (_ = $[u], u != "children") {
194
+ if (u == "dangerouslySetInnerHTML") l = _;
195
+ else if (!(u in m)) {
196
+ if (u == "value" && "defaultValue" in m || u == "checked" && "defaultChecked" in m) continue;
197
+ ot(e, u, null, _, o);
198
+ }
199
+ }
200
+ for (u in m) _ = m[u], u == "children" ? h = _ : u == "dangerouslySetInnerHTML" ? f = _ : u == "value" ? g = _ : u == "checked" ? w = _ : c && typeof _ != "function" || $[u] === _ || ot(e, u, _, $[u], o);
201
+ if (f) c || l && (f.__html == l.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
202
+ else if (l && (e.innerHTML = ""), $r(t.type == "template" ? e.content : e, Ke(h) ? h : [h], t, n, r, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Se(n, 0), c, s), i != null) for (u = i.length; u--; ) fn(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]) && ot(e, u, g, $[u], o), u = "checked", w != null && w != e[u] && ot(e, u, w, $[u], o));
204
+ }
205
+ return e;
206
+ }
207
+ function _n(e, t, n) {
208
+ try {
209
+ if (typeof e == "function") {
210
+ var r = typeof e.__u == "function";
211
+ r && e.__u(), r && t == null || (e.__u = e(t));
212
+ } else e.current = t;
213
+ } catch (o) {
214
+ v.__e(o, n);
215
+ }
216
+ }
217
+ function Tr(e, t, n) {
218
+ var r, o;
219
+ if (v.unmount && v.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || _n(r, null, t)), (r = e.__c) != null) {
220
+ if (r.componentWillUnmount) try {
221
+ r.componentWillUnmount();
222
+ } catch (i) {
223
+ v.__e(i, t);
224
+ }
225
+ r.base = r.__P = null;
226
+ }
227
+ if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Tr(r[o], t, n || typeof e.type != "function");
228
+ n || fn(e.__e), e.__c = e.__ = e.__e = void 0;
229
+ }
230
+ function Ro(e, t, n) {
231
+ return this.constructor(e, n);
232
+ }
233
+ function ie(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 = [], dn(t, e = (!r && n || t).__k = M(V, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Xe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), Nr(i, e, a);
236
+ }
237
+ function hn(e, t) {
238
+ ie(e, t, hn);
239
+ }
240
+ function pn(e, t, n) {
241
+ var r, o, i, a, c = Z({}, 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 ? Xe.call(arguments, 2) : n), ze(e.type, c, r || e.key, o || e.ref, null);
244
+ }
245
+ function xr(e) {
246
+ function t(n) {
247
+ var r, o;
248
+ return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
249
+ return o;
250
+ }, this.componentWillUnmount = function() {
251
+ r = null;
252
+ }, this.shouldComponentUpdate = function(i) {
253
+ this.props.value != i.value && r.forEach(function(a) {
254
+ a.__e = !0, zt(a);
255
+ });
256
+ }, this.sub = function(i) {
257
+ r.add(i);
258
+ var a = i.componentWillUnmount;
259
+ i.componentWillUnmount = function() {
260
+ r && r.delete(i), a && a.call(i);
261
+ };
262
+ }), n.children;
263
+ }
264
+ return t.__c = "__cC" + wr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
265
+ return n.children(r);
266
+ }).contextType = t, t;
267
+ }
268
+ Xe = Sr.slice, v = { __e: function(e, t, n, r) {
269
+ 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;
271
+ } catch (c) {
272
+ e = c;
273
+ }
274
+ throw e;
275
+ } }, yr = 0, j.prototype.setState = function(e, t) {
276
+ var n;
277
+ n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Z({}, this.state), typeof e == "function" && (e = e(Z({}, n), this.props)), e && Z(n, e), e != null && this.__v && (t && this._sb.push(t), zt(this));
278
+ }, j.prototype.forceUpdate = function(e) {
279
+ this.__v && (this.__e = !0, e && this.__h.push(e), zt(this));
280
+ }, j.prototype.render = V, ue = [], vr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Cr = function(e, t) {
281
+ return e.__v.__b - t.__v.__b;
282
+ }, mt.__r = 0, Er = /(PointerCapture)$|Capture$/i, un = 0, Ut = An(!1), Bt = An(!0), wr = 0;
283
+ function mn() {
284
+ return (mn = Object.assign ? Object.assign.bind() : function(e) {
285
+ 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]);
288
+ }
289
+ return e;
290
+ }).apply(this, arguments);
291
+ }
292
+ var Po = ["context", "children"];
293
+ function Do(e) {
294
+ this.getChildContext = function() {
295
+ return e.context;
296
+ };
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]);
301
+ return c;
302
+ }(e, Po);
303
+ return pn(t, n);
304
+ }
305
+ function Lo() {
306
+ var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
307
+ this.dispatchEvent(e), this._vdom = M(Do, mn({}, 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[Ir(c[a].name)] = c[a].value);
312
+ for (a = s.length; a--; ) {
313
+ var u = t(s[a], null), f = s[a].slot;
314
+ f ? i[f] = M(Rn, { name: f }, u) : o[a] = u;
315
+ }
316
+ var l = r ? M(Rn, null, o) : o;
317
+ return M(r || n.nodeName.toLowerCase(), i, l);
318
+ }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? hn : ie)(this._vdom, this._root);
319
+ }
320
+ function Ir(e) {
321
+ return e.replace(/-(\w)/g, function(t, n) {
322
+ return n ? n.toUpperCase() : "";
323
+ });
324
+ }
325
+ function Mo(e, t, n) {
326
+ if (this._vdom) {
327
+ var r = {};
328
+ r[e] = n = n ?? void 0, r[Ir(e)] = n, this._vdom = pn(this._vdom, r), ie(this._vdom, this._root);
329
+ }
330
+ }
331
+ function Ho() {
332
+ ie(this._vdom = null, this._root);
333
+ }
334
+ function Rn(e, t) {
335
+ var n = this;
336
+ return M("slot", mn({}, e, { ref: function(r) {
337
+ r ? (n.ref = r, n._listener || (n._listener = function(o) {
338
+ o.stopPropagation(), o.detail.context = t;
339
+ }, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
340
+ } }));
341
+ }
342
+ function Fo(e, t, n, r) {
343
+ function o() {
344
+ var i = Reflect.construct(HTMLElement, [], o);
345
+ return i._vdomComponent = e, i._root = i, i;
346
+ }
347
+ return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Lo, o.prototype.attributeChangedCallback = Mo, o.prototype.disconnectedCallback = Ho, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
348
+ Object.defineProperty(o.prototype, i, { get: function() {
349
+ return this._vdom.props[i];
350
+ }, set: function(a) {
351
+ this._vdom ? this.attributeChangedCallback(i, null, a) : (this._props || (this._props = {}), this._props[i] = a, this.connectedCallback());
352
+ var c = typeof a;
353
+ a != null && c !== "string" && c !== "boolean" && c !== "number" || this.setAttribute(i, a);
354
+ } });
355
+ }), customElements.define(t, o);
356
+ }
357
+ var Uo = 0;
358
+ function d(e, t, n, r, o, i) {
359
+ t || (t = {});
360
+ var a, c, s = t;
361
+ 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: --Uo, __i: -1, __u: 0, __source: o, __self: i };
363
+ if (typeof e == "function" && (a = e.defaultProps)) for (c in a) s[c] === void 0 && (s[c] = a[c]);
364
+ return v.vnode && v.vnode(u), u;
365
+ }
366
+ const Pn = {
367
+ SWITCH_CAMERA: "switch-camera",
368
+ TOGGLE_MIRROR: "toggle-mirror"
369
+ };
370
+ var be = /* @__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))(be || {}), gn = /* @__PURE__ */ ((e) => (e.ANIMATION_END = "magnifeye-auto-capture:animation-end", e.CONTROL = "magnifeye-auto-capture:control", e.STATUS_CHANGED = "magnifeye-auto-capture:status-changed", e))(gn || {});
371
+ const Dn = {
372
+ EYE_NOT_PRESENT: "eye_not_present"
373
+ }, P = {
374
+ CANDIDATE_SELECTION: "candidate_selection",
375
+ FACE_TOO_CLOSE: "face_too_close",
376
+ FACE_TOO_FAR: "face_too_far",
377
+ FACE_CENTERING: "face_centering",
378
+ FACE_NOT_PRESENT: "face_not_present",
379
+ SHARPNESS_TOO_LOW: "sharpness_too_low",
380
+ BRIGHTNESS_TOO_LOW: "brightness_too_low",
381
+ BRIGHTNESS_TOO_HIGH: "brightness_too_high",
382
+ DEVICE_PITCHED: "device_pitched",
383
+ LEFT_EYE_NOT_PRESENT: `left_${Dn.EYE_NOT_PRESENT}`,
384
+ RIGHT_EYE_NOT_PRESENT: `right_${Dn.EYE_NOT_PRESENT}`,
385
+ MOUTH_NOT_PRESENT: "mouth_not_present",
386
+ MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high",
387
+ MOUTH_SCORE_TOO_LOW: "mouth_score_too_low"
388
+ }, Bo = {
389
+ LOADING: "LOADING",
390
+ ERROR: "ERROR",
391
+ WAITING: "WAITING",
392
+ RUNNING: "RUNNING"
393
+ }, Wt = {
394
+ ...Bo,
395
+ DONE: "DONE"
396
+ }, Ve = {
397
+ ...P,
398
+ FIT_YOUR_EYE: "fit_your_eye"
399
+ };
400
+ var Ye = /* @__PURE__ */ ((e) => (e.CLOSEUP = "CLOSEUP", e.DISTANT = "DISTANT", e.MIDDLE = "MIDDLE", e))(Ye || {});
401
+ const we = Wt;
402
+ var ae, x, Rt, Ln, $e = 0, Ar = [], I = v, Mn = I.__b, Hn = I.__r, Fn = I.diffed, Un = I.__c, Bn = I.unmount, zn = I.__;
403
+ function xe(e, t) {
404
+ I.__h && I.__h(x, e, $e || t), $e = 0;
405
+ var n = x.__H || (x.__H = { __: [], __h: [] });
406
+ return e >= n.__.length && n.__.push({}), n.__[e];
407
+ }
408
+ function H(e) {
409
+ return $e = 1, yn(Dr, e);
410
+ }
411
+ function yn(e, t, n) {
412
+ var r = xe(ae++, 2);
413
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Dr(void 0, t), function(c) {
414
+ var s = r.__N ? r.__N[0] : r.__[0], u = r.t(s, c);
415
+ s !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
416
+ }], r.__c = x, !x.__f)) {
417
+ var o = function(c, s, u) {
418
+ if (!r.__c.__H) return !0;
419
+ var f = r.__c.__H.__.filter(function(h) {
420
+ return !!h.__c;
421
+ });
422
+ if (f.every(function(h) {
423
+ return !h.__N;
424
+ })) return !i || i.call(this, c, s, u);
425
+ var l = r.__c.props !== c;
426
+ return f.forEach(function(h) {
427
+ if (h.__N) {
428
+ var _ = h.__[0];
429
+ h.__ = h.__N, h.__N = void 0, _ !== h.__[0] && (l = !0);
430
+ }
431
+ }), i && i.call(this, c, s, u) || l;
432
+ };
433
+ x.__f = !0;
434
+ var i = x.shouldComponentUpdate, a = x.componentWillUpdate;
435
+ x.componentWillUpdate = function(c, s, u) {
436
+ if (this.__e) {
437
+ var f = i;
438
+ i = void 0, o(c, s, u), i = f;
439
+ }
440
+ a && a.call(this, c, s, u);
441
+ }, x.shouldComponentUpdate = o;
442
+ }
443
+ return r.__N || r.__;
444
+ }
445
+ function X(e, t) {
446
+ var n = xe(ae++, 3);
447
+ !I.__s && vn(n.__H, t) && (n.__ = e, n.u = t, x.__H.__h.push(n));
448
+ }
449
+ function Ie(e, t) {
450
+ var n = xe(ae++, 4);
451
+ !I.__s && vn(n.__H, t) && (n.__ = e, n.u = t, x.__h.push(n));
452
+ }
453
+ function Je(e) {
454
+ return $e = 5, te(function() {
455
+ return { current: e };
456
+ }, []);
457
+ }
458
+ function Rr(e, t, n) {
459
+ $e = 6, Ie(function() {
460
+ if (typeof e == "function") {
461
+ var r = e(t());
462
+ return function() {
463
+ e(null), r && typeof r == "function" && r();
464
+ };
465
+ }
466
+ if (e) return e.current = t(), function() {
467
+ return e.current = null;
468
+ };
469
+ }, n == null ? n : n.concat(e));
470
+ }
471
+ function te(e, t) {
472
+ var n = xe(ae++, 7);
473
+ return vn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
474
+ }
475
+ function pe(e, t) {
476
+ return $e = 8, te(function() {
477
+ return e;
478
+ }, t);
479
+ }
480
+ function Qe(e) {
481
+ var t = x.context[e.__c], n = xe(ae++, 9);
482
+ return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(x)), t.props.value) : e.__;
483
+ }
484
+ function gt(e, t) {
485
+ I.useDebugValue && I.useDebugValue(t ? t(e) : e);
486
+ }
487
+ function Pr() {
488
+ var e = xe(ae++, 11);
489
+ if (!e.__) {
490
+ for (var t = x.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
491
+ var n = t.__m || (t.__m = [0, 0]);
492
+ e.__ = "P" + n[0] + "-" + n[1]++;
493
+ }
494
+ return e.__;
495
+ }
496
+ function zo() {
497
+ for (var e; e = Ar.shift(); ) if (e.__P && e.__H) try {
498
+ e.__H.__h.forEach(lt), e.__H.__h.forEach(jt), e.__H.__h = [];
499
+ } catch (t) {
500
+ e.__H.__h = [], I.__e(t, e.__v);
501
+ }
502
+ }
503
+ I.__b = function(e) {
504
+ x = null, Mn && Mn(e);
505
+ }, I.__ = function(e, t) {
506
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), zn && zn(e, t);
507
+ }, I.__r = function(e) {
508
+ Hn && Hn(e), ae = 0;
509
+ var t = (x = e.__c).__H;
510
+ t && (Rt === x ? (t.__h = [], x.__h = [], t.__.forEach(function(n) {
511
+ n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
512
+ })) : (t.__h.forEach(lt), t.__h.forEach(jt), t.__h = [], ae = 0)), Rt = x;
513
+ }, I.diffed = function(e) {
514
+ Fn && Fn(e);
515
+ var t = e.__c;
516
+ t && t.__H && (t.__H.__h.length && (Ar.push(t) !== 1 && Ln === I.requestAnimationFrame || ((Ln = I.requestAnimationFrame) || Wo)(zo)), t.__H.__.forEach(function(n) {
517
+ n.u && (n.__H = n.u), n.u = void 0;
518
+ })), Rt = x = null;
519
+ }, I.__c = function(e, t) {
520
+ t.some(function(n) {
521
+ try {
522
+ n.__h.forEach(lt), n.__h = n.__h.filter(function(r) {
523
+ return !r.__ || jt(r);
524
+ });
525
+ } catch (r) {
526
+ t.some(function(o) {
527
+ o.__h && (o.__h = []);
528
+ }), t = [], I.__e(r, n.__v);
529
+ }
530
+ }), Un && Un(e, t);
531
+ }, I.unmount = function(e) {
532
+ Bn && Bn(e);
533
+ var t, n = e.__c;
534
+ n && n.__H && (n.__H.__.forEach(function(r) {
535
+ try {
536
+ lt(r);
537
+ } catch (o) {
538
+ t = o;
539
+ }
540
+ }), n.__H = void 0, t && I.__e(t, n.__v));
541
+ };
542
+ var Wn = typeof requestAnimationFrame == "function";
543
+ function Wo(e) {
544
+ var t, n = function() {
545
+ clearTimeout(r), Wn && cancelAnimationFrame(t), setTimeout(e);
546
+ }, r = setTimeout(n, 100);
547
+ Wn && (t = requestAnimationFrame(n));
548
+ }
549
+ function lt(e) {
550
+ var t = x, n = e.__c;
551
+ typeof n == "function" && (e.__c = void 0, n()), x = t;
552
+ }
553
+ function jt(e) {
554
+ var t = x;
555
+ e.__c = e.__(), x = t;
556
+ }
557
+ function vn(e, t) {
558
+ return !e || e.length !== t.length || t.some(function(n, r) {
559
+ return n !== e[r];
560
+ });
561
+ }
562
+ function Dr(e, t) {
563
+ return typeof t == "function" ? t(e) : t;
564
+ }
565
+ var D = function() {
566
+ return D = Object.assign || function(t) {
567
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
568
+ n = arguments[r];
569
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
570
+ }
571
+ return t;
572
+ }, D.apply(this, arguments);
573
+ };
574
+ function me(e, t, n) {
575
+ if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
576
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
577
+ return e.concat(i || Array.prototype.slice.call(t));
578
+ }
579
+ function jo(e) {
580
+ var t = /* @__PURE__ */ Object.create(null);
581
+ return function(n) {
582
+ return t[n] === void 0 && (t[n] = e(n)), t[n];
583
+ };
584
+ }
585
+ var Go = /^((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)-.*))$/, Vo = /* @__PURE__ */ jo(
586
+ function(e) {
587
+ return Go.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
588
+ }
589
+ /* Z+1 */
590
+ );
591
+ function Lr(e, t) {
592
+ for (var n in t) e[n] = t[n];
593
+ return e;
594
+ }
595
+ function Gt(e, t) {
596
+ for (var n in e) if (n !== "__source" && !(n in t)) return !0;
597
+ for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
598
+ return !1;
599
+ }
600
+ function Mr(e, t) {
601
+ var n = t(), r = H({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
602
+ return Ie(function() {
603
+ o.__ = n, o.u = t, Pt(o) && i({ t: o });
604
+ }, [e, n, t]), X(function() {
605
+ return Pt(o) && i({ t: o }), e(function() {
606
+ Pt(o) && i({ t: o });
607
+ });
608
+ }, [e]), n;
609
+ }
610
+ function Pt(e) {
611
+ var t, n, r = e.u, o = e.__;
612
+ try {
613
+ var i = r();
614
+ return !((t = o) === (n = i) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
615
+ } catch {
616
+ return !0;
617
+ }
618
+ }
619
+ function Hr(e) {
620
+ e();
621
+ }
622
+ function Fr(e) {
623
+ return e;
624
+ }
625
+ function Ur() {
626
+ return [!1, Hr];
627
+ }
628
+ var Br = Ie;
629
+ function Vt(e, t) {
630
+ this.props = e, this.context = t;
631
+ }
632
+ function Yo(e, t) {
633
+ function n(o) {
634
+ var i = this.props.ref, a = i == o.ref;
635
+ return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Gt(this.props, o);
636
+ }
637
+ function r(o) {
638
+ return this.shouldComponentUpdate = n, M(e, o);
639
+ }
640
+ return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
641
+ }
642
+ (Vt.prototype = new j()).isPureReactComponent = !0, Vt.prototype.shouldComponentUpdate = function(e, t) {
643
+ return Gt(this.props, e) || Gt(this.state, t);
644
+ };
645
+ var jn = v.__b;
646
+ v.__b = function(e) {
647
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), jn && jn(e);
648
+ };
649
+ var Zo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
650
+ function qo(e) {
651
+ function t(n) {
652
+ var r = Lr({}, n);
653
+ return delete r.ref, e(r, n.ref || null);
654
+ }
655
+ return t.$$typeof = Zo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
656
+ }
657
+ var Gn = function(e, t) {
658
+ return e == null ? null : ee(ee(e).map(t));
659
+ }, Xo = { map: Gn, forEach: Gn, count: function(e) {
660
+ return e ? ee(e).length : 0;
661
+ }, only: function(e) {
662
+ var t = ee(e);
663
+ if (t.length !== 1) throw "Children.only";
664
+ return t[0];
665
+ }, toArray: ee }, Ko = v.__e;
666
+ v.__e = function(e, t, n, r) {
667
+ if (e.then) {
668
+ 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);
669
+ }
670
+ Ko(e, t, n, r);
671
+ };
672
+ var Vn = v.unmount;
673
+ function zr(e, t, n) {
674
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
675
+ typeof r.__c == "function" && r.__c();
676
+ }), e.__c.__H = null), (e = Lr({}, 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) {
677
+ return zr(r, t, n);
678
+ })), e;
679
+ }
680
+ function Wr(e, t, n) {
681
+ return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
682
+ return Wr(r, t, n);
683
+ }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
684
+ }
685
+ function ut() {
686
+ this.__u = 0, this.o = null, this.__b = null;
687
+ }
688
+ function jr(e) {
689
+ var t = e.__.__c;
690
+ return t && t.__a && t.__a(e);
691
+ }
692
+ function Jo(e) {
693
+ var t, n, r;
694
+ function o(i) {
695
+ if (t || (t = e()).then(function(a) {
696
+ n = a.default || a;
697
+ }, function(a) {
698
+ r = a;
699
+ }), r) throw r;
700
+ if (!n) throw t;
701
+ return M(n, i);
702
+ }
703
+ return o.displayName = "Lazy", o.__f = !0, o;
704
+ }
705
+ function Fe() {
706
+ this.i = null, this.l = null;
707
+ }
708
+ v.unmount = function(e) {
709
+ var t = e.__c;
710
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Vn && Vn(e);
711
+ }, (ut.prototype = new j()).__c = function(e, t) {
712
+ var n = t.__c, r = this;
713
+ r.o == null && (r.o = []), r.o.push(n);
714
+ var o = jr(r.__v), i = !1, a = function() {
715
+ i || (i = !0, n.__R = null, o ? o(c) : c());
716
+ };
717
+ n.__R = a;
718
+ var c = function() {
719
+ if (!--r.__u) {
720
+ if (r.state.__a) {
721
+ var s = r.state.__a;
722
+ r.__v.__k[0] = Wr(s, s.__c.__P, s.__c.__O);
723
+ }
724
+ var u;
725
+ for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
726
+ }
727
+ };
728
+ r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
729
+ }, ut.prototype.componentWillUnmount = function() {
730
+ this.o = [];
731
+ }, ut.prototype.render = function(e, t) {
732
+ if (this.__b) {
733
+ if (this.__v.__k) {
734
+ var n = document.createElement("div"), r = this.__v.__k[0].__c;
735
+ this.__v.__k[0] = zr(this.__b, n, r.__O = r.__P);
736
+ }
737
+ this.__b = null;
738
+ }
739
+ var o = t.__a && M(V, null, e.fallback);
740
+ return o && (o.__u &= -33), [M(V, null, t.__a ? null : e.children), o];
741
+ };
742
+ var Yn = function(e, t, n) {
743
+ 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; ) {
744
+ for (; n.length > 3; ) n.pop()();
745
+ if (n[1] < n[0]) break;
746
+ e.i = n = n[2];
747
+ }
748
+ };
749
+ function Qo(e) {
750
+ return this.getChildContext = function() {
751
+ return e.context;
752
+ }, e.children;
753
+ }
754
+ function ei(e) {
755
+ var t = this, n = e.h;
756
+ if (t.componentWillUnmount = function() {
757
+ ie(null, t.v), t.v = null, t.h = null;
758
+ }, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
759
+ for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
760
+ t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
761
+ return !0;
762
+ }, appendChild: function(o) {
763
+ this.childNodes.push(o), t.h.appendChild(o);
764
+ }, insertBefore: function(o, i) {
765
+ this.childNodes.push(o), t.h.insertBefore(o, i);
766
+ }, removeChild: function(o) {
767
+ this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
768
+ } };
769
+ }
770
+ ie(M(Qo, { context: t.context }, e.__v), t.v);
771
+ }
772
+ function ti(e, t) {
773
+ var n = M(ei, { __v: e, h: t });
774
+ return n.containerInfo = t, n;
775
+ }
776
+ (Fe.prototype = new j()).__a = function(e) {
777
+ var t = this, n = jr(t.__v), r = t.l.get(e);
778
+ return r[0]++, function(o) {
779
+ var i = function() {
780
+ t.props.revealOrder ? (r.push(o), Yn(t, e, r)) : o();
781
+ };
782
+ n ? n(i) : i();
783
+ };
784
+ }, Fe.prototype.render = function(e) {
785
+ this.i = null, this.l = /* @__PURE__ */ new Map();
786
+ var t = ee(e.children);
787
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
788
+ for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
789
+ return e.children;
790
+ }, Fe.prototype.componentDidUpdate = Fe.prototype.componentDidMount = function() {
791
+ var e = this;
792
+ this.l.forEach(function(t, n) {
793
+ Yn(e, n, t);
794
+ });
795
+ };
796
+ var Gr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, ni = /^(?: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]/, ri = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, oi = /[A-Z0-9]/g, ii = typeof document < "u", ai = function(e) {
797
+ return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
798
+ };
799
+ function si(e, t, n) {
800
+ return t.__k == null && (t.textContent = ""), ie(e, t), typeof n == "function" && n(), e ? e.__c : null;
801
+ }
802
+ function ci(e, t, n) {
803
+ return hn(e, t), typeof n == "function" && n(), e ? e.__c : null;
804
+ }
805
+ j.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
806
+ Object.defineProperty(j.prototype, e, { configurable: !0, get: function() {
807
+ return this["UNSAFE_" + e];
808
+ }, set: function(t) {
809
+ Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
810
+ } });
811
+ });
812
+ var Zn = v.event;
813
+ function li() {
814
+ }
815
+ function ui() {
816
+ return this.cancelBubble;
817
+ }
818
+ function fi() {
819
+ return this.defaultPrevented;
820
+ }
821
+ v.event = function(e) {
822
+ return Zn && (e = Zn(e)), e.persist = li, e.isPropagationStopped = ui, e.isDefaultPrevented = fi, e.nativeEvent = e;
823
+ };
824
+ var Cn, di = { enumerable: !1, configurable: !0, get: function() {
825
+ return this.class;
826
+ } }, qn = v.vnode;
827
+ v.vnode = function(e) {
828
+ typeof e.type == "string" && function(t) {
829
+ var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
830
+ for (var a in n) {
831
+ var c = n[a];
832
+ if (!(a === "value" && "defaultValue" in n && c == null || ii && a === "children" && r === "noscript" || a === "class" || a === "className")) {
833
+ var s = a.toLowerCase();
834
+ 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" || ai(n.type) ? s === "onfocus" ? a = "onfocusin" : s === "onblur" ? a = "onfocusout" : ri.test(a) && (a = s) : s = a = "oninput" : i && ni.test(a) ? a = a.replace(oi, "-$&").toLowerCase() : c === null && (c = void 0), s === "oninput" && o[a = s] && (a = "oninputCapture"), o[a] = c;
835
+ }
836
+ }
837
+ r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ee(n.children).forEach(function(u) {
838
+ u.props.selected = o.value.indexOf(u.props.value) != -1;
839
+ })), r == "select" && o.defaultValue != null && (o.value = ee(n.children).forEach(function(u) {
840
+ u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
841
+ })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", di)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
842
+ }(e), e.$$typeof = Gr, qn && qn(e);
843
+ };
844
+ var Xn = v.__r;
845
+ v.__r = function(e) {
846
+ Xn && Xn(e), Cn = e.__c;
847
+ };
848
+ var Kn = v.diffed;
849
+ v.diffed = function(e) {
850
+ Kn && Kn(e);
851
+ var t = e.props, n = e.__e;
852
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Cn = null;
853
+ };
854
+ var _i = { ReactCurrentDispatcher: { current: { readContext: function(e) {
855
+ return Cn.__n[e.__c].props.value;
856
+ }, useCallback: pe, useContext: Qe, useDebugValue: gt, useDeferredValue: Fr, useEffect: X, useId: Pr, useImperativeHandle: Rr, useInsertionEffect: Br, useLayoutEffect: Ie, useMemo: te, useReducer: yn, useRef: Je, useState: H, useSyncExternalStore: Mr, useTransition: Ur } } };
857
+ function hi(e) {
858
+ return M.bind(null, e);
859
+ }
860
+ function wt(e) {
861
+ return !!e && e.$$typeof === Gr;
862
+ }
863
+ function pi(e) {
864
+ return wt(e) && e.type === V;
865
+ }
866
+ function mi(e) {
867
+ return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
868
+ }
869
+ function gi(e) {
870
+ return wt(e) ? pn.apply(null, arguments) : e;
871
+ }
872
+ function yi(e) {
873
+ return !!e.__k && (ie(null, e), !0);
874
+ }
875
+ function vi(e) {
876
+ return e && (e.base || e.nodeType === 1 && e) || null;
877
+ }
878
+ var Ci = function(e, t) {
879
+ return e(t);
880
+ }, Ei = function(e, t) {
881
+ return e(t);
882
+ }, wi = V, Si = wt, ne = { useState: H, useId: Pr, useReducer: yn, useEffect: X, useLayoutEffect: Ie, useInsertionEffect: Br, useTransition: Ur, useDeferredValue: Fr, useSyncExternalStore: Mr, startTransition: Hr, useRef: Je, useImperativeHandle: Rr, useMemo: te, useCallback: pe, useContext: Qe, useDebugValue: gt, version: "18.3.1", Children: Xo, render: si, hydrate: ci, unmountComponentAtNode: yi, createPortal: ti, createElement: M, createContext: xr, createFactory: hi, cloneElement: gi, createRef: To, Fragment: V, isValidElement: wt, isElement: Si, isFragment: pi, isMemo: mi, findDOMNode: vi, Component: j, PureComponent: Vt, memo: Yo, forwardRef: qo, flushSync: Ei, unstable_batchedUpdates: Ci, StrictMode: wi, Suspense: ut, SuspenseList: Fe, lazy: Jo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: _i };
883
+ function bi(e) {
884
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
885
+ }
886
+ var Dt, Jn;
887
+ function $i() {
888
+ return Jn || (Jn = 1, Dt = function(t, n, r, o) {
889
+ var i = r ? r.call(o, t, n) : void 0;
890
+ if (i !== void 0)
891
+ return !!i;
892
+ if (t === n)
893
+ return !0;
894
+ if (typeof t != "object" || !t || typeof n != "object" || !n)
895
+ return !1;
896
+ var a = Object.keys(t), c = Object.keys(n);
897
+ if (a.length !== c.length)
898
+ return !1;
899
+ for (var s = Object.prototype.hasOwnProperty.bind(n), u = 0; u < a.length; u++) {
900
+ var f = a[u];
901
+ if (!s(f))
902
+ return !1;
903
+ var l = t[f], h = n[f];
904
+ if (i = r ? r.call(o, l, h, f) : void 0, i === !1 || i === void 0 && l !== h)
905
+ return !1;
906
+ }
907
+ return !0;
908
+ }), Dt;
909
+ }
910
+ var Oi = $i();
911
+ const Ni = /* @__PURE__ */ bi(Oi);
912
+ var T = "-ms-", We = "-moz-", N = "-webkit-", Vr = "comm", St = "rule", En = "decl", ki = "@import", Yr = "@keyframes", Ti = "@layer", Zr = Math.abs, wn = String.fromCharCode, Yt = Object.assign;
913
+ function xi(e, t) {
914
+ return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0;
915
+ }
916
+ function qr(e) {
917
+ return e.trim();
918
+ }
919
+ function J(e, t) {
920
+ return (e = t.exec(e)) ? e[0] : e;
921
+ }
922
+ function C(e, t, n) {
923
+ return e.replace(t, n);
924
+ }
925
+ function ft(e, t, n) {
926
+ return e.indexOf(t, n);
927
+ }
928
+ function R(e, t) {
929
+ return e.charCodeAt(t) | 0;
930
+ }
931
+ function Oe(e, t, n) {
932
+ return e.slice(t, n);
933
+ }
934
+ function Y(e) {
935
+ return e.length;
936
+ }
937
+ function Xr(e) {
938
+ return e.length;
939
+ }
940
+ function Ue(e, t) {
941
+ return t.push(e), e;
942
+ }
943
+ function Ii(e, t) {
944
+ return e.map(t).join("");
945
+ }
946
+ function Qn(e, t) {
947
+ return e.filter(function(n) {
948
+ return !J(n, t);
949
+ });
950
+ }
951
+ var bt = 1, Ne = 1, Kr = 0, W = 0, A = 0, Ae = "";
952
+ function $t(e, t, n, r, o, i, a, c) {
953
+ return { value: e, root: t, parent: n, type: r, props: o, children: i, line: bt, column: Ne, length: a, return: "", siblings: c };
954
+ }
955
+ function oe(e, t) {
956
+ return Yt($t("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
957
+ }
958
+ function Ee(e) {
959
+ for (; e.root; )
960
+ e = oe(e.root, { children: [e] });
961
+ Ue(e, e.siblings);
962
+ }
963
+ function Ai() {
964
+ return A;
965
+ }
966
+ function Ri() {
967
+ return A = W > 0 ? R(Ae, --W) : 0, Ne--, A === 10 && (Ne = 1, bt--), A;
968
+ }
969
+ function G() {
970
+ return A = W < Kr ? R(Ae, W++) : 0, Ne++, A === 10 && (Ne = 1, bt++), A;
971
+ }
972
+ function _e() {
973
+ return R(Ae, W);
974
+ }
975
+ function dt() {
976
+ return W;
977
+ }
978
+ function Ot(e, t) {
979
+ return Oe(Ae, e, t);
980
+ }
981
+ function Zt(e) {
982
+ switch (e) {
983
+ // \0 \t \n \r \s whitespace token
984
+ case 0:
985
+ case 9:
986
+ case 10:
987
+ case 13:
988
+ case 32:
989
+ return 5;
990
+ // ! + , / > @ ~ isolate token
991
+ case 33:
992
+ case 43:
993
+ case 44:
994
+ case 47:
995
+ case 62:
996
+ case 64:
997
+ case 126:
998
+ // ; { } breakpoint token
999
+ case 59:
1000
+ case 123:
1001
+ case 125:
1002
+ return 4;
1003
+ // : accompanied token
1004
+ case 58:
1005
+ return 3;
1006
+ // " ' ( [ opening delimit token
1007
+ case 34:
1008
+ case 39:
1009
+ case 40:
1010
+ case 91:
1011
+ return 2;
1012
+ // ) ] closing delimit token
1013
+ case 41:
1014
+ case 93:
1015
+ return 1;
1016
+ }
1017
+ return 0;
1018
+ }
1019
+ function Pi(e) {
1020
+ return bt = Ne = 1, Kr = Y(Ae = e), W = 0, [];
1021
+ }
1022
+ function Di(e) {
1023
+ return Ae = "", e;
1024
+ }
1025
+ function Lt(e) {
1026
+ return qr(Ot(W - 1, qt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1027
+ }
1028
+ function Li(e) {
1029
+ for (; (A = _e()) && A < 33; )
1030
+ G();
1031
+ return Zt(e) > 2 || Zt(A) > 3 ? "" : " ";
1032
+ }
1033
+ function Mi(e, t) {
1034
+ for (; --t && G() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
1035
+ ;
1036
+ return Ot(e, dt() + (t < 6 && _e() == 32 && G() == 32));
1037
+ }
1038
+ function qt(e) {
1039
+ for (; G(); )
1040
+ switch (A) {
1041
+ // ] ) " '
1042
+ case e:
1043
+ return W;
1044
+ // " '
1045
+ case 34:
1046
+ case 39:
1047
+ e !== 34 && e !== 39 && qt(A);
1048
+ break;
1049
+ // (
1050
+ case 40:
1051
+ e === 41 && qt(e);
1052
+ break;
1053
+ // \
1054
+ case 92:
1055
+ G();
1056
+ break;
1057
+ }
1058
+ return W;
1059
+ }
1060
+ function Hi(e, t) {
1061
+ for (; G() && e + A !== 57; )
1062
+ if (e + A === 84 && _e() === 47)
1063
+ break;
1064
+ return "/*" + Ot(t, W - 1) + "*" + wn(e === 47 ? e : G());
1065
+ }
1066
+ function Fi(e) {
1067
+ for (; !Zt(_e()); )
1068
+ G();
1069
+ return Ot(e, W);
1070
+ }
1071
+ function Ui(e) {
1072
+ return Di(_t("", null, null, null, [""], e = Pi(e), 0, [0], e));
1073
+ }
1074
+ function _t(e, t, n, r, o, i, a, c, s) {
1075
+ for (var u = 0, f = 0, l = a, h = 0, _ = 0, g = 0, w = 1, $ = 1, m = 1, p = 0, O = "", S = o, k = i, E = r, y = O; $; )
1076
+ switch (g = p, p = G()) {
1077
+ // (
1078
+ case 40:
1079
+ if (g != 108 && R(y, l - 1) == 58) {
1080
+ ft(y += C(Lt(p), "&", "&\f"), "&\f", Zr(u ? c[u - 1] : 0)) != -1 && (m = -1);
1081
+ break;
1082
+ }
1083
+ // " ' [
1084
+ case 34:
1085
+ case 39:
1086
+ case 91:
1087
+ y += Lt(p);
1088
+ break;
1089
+ // \t \n \r \s
1090
+ case 9:
1091
+ case 10:
1092
+ case 13:
1093
+ case 32:
1094
+ y += Li(g);
1095
+ break;
1096
+ // \
1097
+ case 92:
1098
+ y += Mi(dt() - 1, 7);
1099
+ continue;
1100
+ // /
1101
+ case 47:
1102
+ switch (_e()) {
1103
+ case 42:
1104
+ case 47:
1105
+ Ue(Bi(Hi(G(), dt()), t, n, s), s);
1106
+ break;
1107
+ default:
1108
+ y += "/";
1109
+ }
1110
+ break;
1111
+ // {
1112
+ case 123 * w:
1113
+ c[u++] = Y(y) * m;
1114
+ // } ; \0
1115
+ case 125 * w:
1116
+ case 59:
1117
+ case 0:
1118
+ switch (p) {
1119
+ // \0 }
1120
+ case 0:
1121
+ case 125:
1122
+ $ = 0;
1123
+ // ;
1124
+ case 59 + f:
1125
+ m == -1 && (y = C(y, /\f/g, "")), _ > 0 && Y(y) - l && Ue(_ > 32 ? tr(y + ";", r, n, l - 1, s) : tr(C(y, " ", "") + ";", r, n, l - 2, s), s);
1126
+ break;
1127
+ // @ ;
1128
+ case 59:
1129
+ y += ";";
1130
+ // { rule/at-rule
1131
+ default:
1132
+ if (Ue(E = er(y, t, n, u, f, o, c, O, S = [], k = [], l, i), i), p === 123)
1133
+ if (f === 0)
1134
+ _t(y, t, E, E, S, i, l, c, k);
1135
+ else
1136
+ switch (h === 99 && R(y, 3) === 110 ? 100 : h) {
1137
+ // d l m s
1138
+ case 100:
1139
+ case 108:
1140
+ case 109:
1141
+ case 115:
1142
+ _t(e, E, E, r && Ue(er(e, E, E, 0, 0, o, c, O, o, S = [], l, k), k), o, k, l, c, r ? S : k);
1143
+ break;
1144
+ default:
1145
+ _t(y, E, E, E, [""], k, 0, c, k);
1146
+ }
1147
+ }
1148
+ u = f = _ = 0, w = m = 1, O = y = "", l = a;
1149
+ break;
1150
+ // :
1151
+ case 58:
1152
+ l = 1 + Y(y), _ = g;
1153
+ default:
1154
+ if (w < 1) {
1155
+ if (p == 123)
1156
+ --w;
1157
+ else if (p == 125 && w++ == 0 && Ri() == 125)
1158
+ continue;
1159
+ }
1160
+ switch (y += wn(p), p * w) {
1161
+ // &
1162
+ case 38:
1163
+ m = f > 0 ? 1 : (y += "\f", -1);
1164
+ break;
1165
+ // ,
1166
+ case 44:
1167
+ c[u++] = (Y(y) - 1) * m, m = 1;
1168
+ break;
1169
+ // @
1170
+ case 64:
1171
+ _e() === 45 && (y += Lt(G())), h = _e(), f = l = Y(O = y += Fi(dt())), p++;
1172
+ break;
1173
+ // -
1174
+ case 45:
1175
+ g === 45 && Y(y) == 2 && (w = 0);
1176
+ }
1177
+ }
1178
+ return i;
1179
+ }
1180
+ function er(e, t, n, r, o, i, a, c, s, u, f, l) {
1181
+ for (var h = o - 1, _ = o === 0 ? i : [""], g = Xr(_), w = 0, $ = 0, m = 0; w < r; ++w)
1182
+ for (var p = 0, O = Oe(e, h + 1, h = Zr($ = a[w])), S = e; p < g; ++p)
1183
+ (S = qr($ > 0 ? _[p] + " " + O : C(O, /&\f/g, _[p]))) && (s[m++] = S);
1184
+ return $t(e, t, n, o === 0 ? St : c, s, u, f, l);
1185
+ }
1186
+ function Bi(e, t, n, r) {
1187
+ return $t(e, t, n, Vr, wn(Ai()), Oe(e, 2, -2), 0, r);
1188
+ }
1189
+ function tr(e, t, n, r, o) {
1190
+ return $t(e, t, n, En, Oe(e, 0, r), Oe(e, r + 1, -1), r, o);
1191
+ }
1192
+ function Jr(e, t, n) {
1193
+ switch (xi(e, t)) {
1194
+ // color-adjust
1195
+ case 5103:
1196
+ return N + "print-" + e + e;
1197
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
1198
+ case 5737:
1199
+ case 4201:
1200
+ case 3177:
1201
+ case 3433:
1202
+ case 1641:
1203
+ case 4457:
1204
+ case 2921:
1205
+ // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
1206
+ case 5572:
1207
+ case 6356:
1208
+ case 5844:
1209
+ case 3191:
1210
+ case 6645:
1211
+ case 3005:
1212
+ // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
1213
+ case 6391:
1214
+ case 5879:
1215
+ case 5623:
1216
+ case 6135:
1217
+ case 4599:
1218
+ case 4855:
1219
+ // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
1220
+ case 4215:
1221
+ case 6389:
1222
+ case 5109:
1223
+ case 5365:
1224
+ case 5621:
1225
+ case 3829:
1226
+ return N + e + e;
1227
+ // tab-size
1228
+ case 4789:
1229
+ return We + e + e;
1230
+ // appearance, user-select, transform, hyphens, text-size-adjust
1231
+ case 5349:
1232
+ case 4246:
1233
+ case 4810:
1234
+ case 6968:
1235
+ case 2756:
1236
+ return N + e + We + e + T + e + e;
1237
+ // writing-mode
1238
+ case 5936:
1239
+ switch (R(e, t + 11)) {
1240
+ // vertical-l(r)
1241
+ case 114:
1242
+ return N + e + T + C(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1243
+ // vertical-r(l)
1244
+ case 108:
1245
+ return N + e + T + C(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1246
+ // horizontal(-)tb
1247
+ case 45:
1248
+ return N + e + T + C(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1249
+ }
1250
+ // flex, flex-direction, scroll-snap-type, writing-mode
1251
+ case 6828:
1252
+ case 4268:
1253
+ case 2903:
1254
+ return N + e + T + e + e;
1255
+ // order
1256
+ case 6165:
1257
+ return N + e + T + "flex-" + e + e;
1258
+ // align-items
1259
+ case 5187:
1260
+ return N + e + C(e, /(\w+).+(:[^]+)/, N + "box-$1$2" + T + "flex-$1$2") + e;
1261
+ // align-self
1262
+ case 5443:
1263
+ return N + e + T + "flex-item-" + C(e, /flex-|-self/g, "") + (J(e, /flex-|baseline/) ? "" : T + "grid-row-" + C(e, /flex-|-self/g, "")) + e;
1264
+ // align-content
1265
+ case 4675:
1266
+ return N + e + T + "flex-line-pack" + C(e, /align-content|flex-|-self/g, "") + e;
1267
+ // flex-shrink
1268
+ case 5548:
1269
+ return N + e + T + C(e, "shrink", "negative") + e;
1270
+ // flex-basis
1271
+ case 5292:
1272
+ return N + e + T + C(e, "basis", "preferred-size") + e;
1273
+ // flex-grow
1274
+ case 6060:
1275
+ return N + "box-" + C(e, "-grow", "") + N + e + T + C(e, "grow", "positive") + e;
1276
+ // transition
1277
+ case 4554:
1278
+ return N + C(e, /([^-])(transform)/g, "$1" + N + "$2") + e;
1279
+ // cursor
1280
+ case 6187:
1281
+ return C(C(C(e, /(zoom-|grab)/, N + "$1"), /(image-set)/, N + "$1"), e, "") + e;
1282
+ // background, background-image
1283
+ case 5495:
1284
+ case 3959:
1285
+ return C(e, /(image-set\([^]*)/, N + "$1$`$1");
1286
+ // justify-content
1287
+ case 4968:
1288
+ return C(C(e, /(.+:)(flex-)?(.*)/, N + "box-pack:$3" + T + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + N + e + e;
1289
+ // justify-self
1290
+ case 4200:
1291
+ if (!J(e, /flex-|baseline/)) return T + "grid-column-align" + Oe(e, t) + e;
1292
+ break;
1293
+ // grid-template-(columns|rows)
1294
+ case 2592:
1295
+ case 3360:
1296
+ return T + C(e, "template-", "") + e;
1297
+ // grid-(row|column)-start
1298
+ case 4384:
1299
+ case 3616:
1300
+ return n && n.some(function(r, o) {
1301
+ return t = o, J(r.props, /grid-\w+-end/);
1302
+ }) ? ~ft(e + (n = n[t].value), "span", 0) ? e : T + C(e, "-start", "") + e + T + "grid-row-span:" + (~ft(n, "span", 0) ? J(n, /\d+/) : +J(n, /\d+/) - +J(e, /\d+/)) + ";" : T + C(e, "-start", "") + e;
1303
+ // grid-(row|column)-end
1304
+ case 4896:
1305
+ case 4128:
1306
+ return n && n.some(function(r) {
1307
+ return J(r.props, /grid-\w+-start/);
1308
+ }) ? e : T + C(C(e, "-end", "-span"), "span ", "") + e;
1309
+ // (margin|padding)-inline-(start|end)
1310
+ case 4095:
1311
+ case 3583:
1312
+ case 4068:
1313
+ case 2532:
1314
+ return C(e, /(.+)-inline(.+)/, N + "$1$2") + e;
1315
+ // (min|max)?(width|height|inline-size|block-size)
1316
+ case 8116:
1317
+ case 7059:
1318
+ case 5753:
1319
+ case 5535:
1320
+ case 5445:
1321
+ case 5701:
1322
+ case 4933:
1323
+ case 4677:
1324
+ case 5533:
1325
+ case 5789:
1326
+ case 5021:
1327
+ case 4765:
1328
+ if (Y(e) - 1 - t > 6)
1329
+ switch (R(e, t + 1)) {
1330
+ // (m)ax-content, (m)in-content
1331
+ case 109:
1332
+ if (R(e, t + 4) !== 45)
1333
+ break;
1334
+ // (f)ill-available, (f)it-content
1335
+ case 102:
1336
+ return C(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + We + (R(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1337
+ // (s)tretch
1338
+ case 115:
1339
+ return ~ft(e, "stretch", 0) ? Jr(C(e, "stretch", "fill-available"), t, n) + e : e;
1340
+ }
1341
+ break;
1342
+ // grid-(column|row)
1343
+ case 5152:
1344
+ case 5920:
1345
+ return C(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, i, a, c, s, u) {
1346
+ return T + o + ":" + i + u + (a ? T + o + "-span:" + (c ? s : +s - +i) + u : "") + e;
1347
+ });
1348
+ // position: sticky
1349
+ case 4949:
1350
+ if (R(e, t + 6) === 121)
1351
+ return C(e, ":", ":" + N) + e;
1352
+ break;
1353
+ // display: (flex|inline-flex|grid|inline-grid)
1354
+ case 6444:
1355
+ switch (R(e, R(e, 14) === 45 ? 18 : 11)) {
1356
+ // (inline-)?fle(x)
1357
+ case 120:
1358
+ return C(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + N + (R(e, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + T + "$2box$3") + e;
1359
+ // (inline-)?gri(d)
1360
+ case 100:
1361
+ return C(e, ":", ":" + T) + e;
1362
+ }
1363
+ break;
1364
+ // scroll-margin, scroll-margin-(top|right|bottom|left)
1365
+ case 5719:
1366
+ case 2647:
1367
+ case 2135:
1368
+ case 3927:
1369
+ case 2391:
1370
+ return C(e, "scroll-", "scroll-snap-") + e;
1371
+ }
1372
+ return e;
1373
+ }
1374
+ function yt(e, t) {
1375
+ for (var n = "", r = 0; r < e.length; r++)
1376
+ n += t(e[r], r, e, t) || "";
1377
+ return n;
1378
+ }
1379
+ function zi(e, t, n, r) {
1380
+ switch (e.type) {
1381
+ case Ti:
1382
+ if (e.children.length) break;
1383
+ case ki:
1384
+ case En:
1385
+ return e.return = e.return || e.value;
1386
+ case Vr:
1387
+ return "";
1388
+ case Yr:
1389
+ return e.return = e.value + "{" + yt(e.children, r) + "}";
1390
+ case St:
1391
+ if (!Y(e.value = e.props.join(","))) return "";
1392
+ }
1393
+ return Y(n = yt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1394
+ }
1395
+ function Wi(e) {
1396
+ var t = Xr(e);
1397
+ return function(n, r, o, i) {
1398
+ for (var a = "", c = 0; c < t; c++)
1399
+ a += e[c](n, r, o, i) || "";
1400
+ return a;
1401
+ };
1402
+ }
1403
+ function ji(e) {
1404
+ return function(t) {
1405
+ t.root || (t = t.return) && e(t);
1406
+ };
1407
+ }
1408
+ function Gi(e, t, n, r) {
1409
+ if (e.length > -1 && !e.return)
1410
+ switch (e.type) {
1411
+ case En:
1412
+ e.return = Jr(e.value, e.length, n);
1413
+ return;
1414
+ case Yr:
1415
+ return yt([oe(e, { value: C(e.value, "@", "@" + N) })], r);
1416
+ case St:
1417
+ if (e.length)
1418
+ return Ii(n = e.props, function(o) {
1419
+ switch (J(o, r = /(::plac\w+|:read-\w+)/)) {
1420
+ // :read-(only|write)
1421
+ case ":read-only":
1422
+ case ":read-write":
1423
+ Ee(oe(e, { props: [C(o, /:(read-\w+)/, ":" + We + "$1")] })), Ee(oe(e, { props: [o] })), Yt(e, { props: Qn(n, r) });
1424
+ break;
1425
+ // :placeholder
1426
+ case "::placeholder":
1427
+ Ee(oe(e, { props: [C(o, /:(plac\w+)/, ":" + N + "input-$1")] })), Ee(oe(e, { props: [C(o, /:(plac\w+)/, ":" + We + "$1")] })), Ee(oe(e, { props: [C(o, /:(plac\w+)/, T + "input-$1")] })), Ee(oe(e, { props: [o] })), Yt(e, { props: Qn(n, r) });
1428
+ break;
1429
+ }
1430
+ return "";
1431
+ });
1432
+ }
1433
+ }
1434
+ var Vi = {
1435
+ animationIterationCount: 1,
1436
+ aspectRatio: 1,
1437
+ borderImageOutset: 1,
1438
+ borderImageSlice: 1,
1439
+ borderImageWidth: 1,
1440
+ boxFlex: 1,
1441
+ boxFlexGroup: 1,
1442
+ boxOrdinalGroup: 1,
1443
+ columnCount: 1,
1444
+ columns: 1,
1445
+ flex: 1,
1446
+ flexGrow: 1,
1447
+ flexPositive: 1,
1448
+ flexShrink: 1,
1449
+ flexNegative: 1,
1450
+ flexOrder: 1,
1451
+ gridRow: 1,
1452
+ gridRowEnd: 1,
1453
+ gridRowSpan: 1,
1454
+ gridRowStart: 1,
1455
+ gridColumn: 1,
1456
+ gridColumnEnd: 1,
1457
+ gridColumnSpan: 1,
1458
+ gridColumnStart: 1,
1459
+ msGridRow: 1,
1460
+ msGridRowSpan: 1,
1461
+ msGridColumn: 1,
1462
+ msGridColumnSpan: 1,
1463
+ fontWeight: 1,
1464
+ lineHeight: 1,
1465
+ opacity: 1,
1466
+ order: 1,
1467
+ orphans: 1,
1468
+ tabSize: 1,
1469
+ widows: 1,
1470
+ zIndex: 1,
1471
+ zoom: 1,
1472
+ WebkitLineClamp: 1,
1473
+ // SVG-related properties
1474
+ fillOpacity: 1,
1475
+ floodOpacity: 1,
1476
+ stopOpacity: 1,
1477
+ strokeDasharray: 1,
1478
+ strokeDashoffset: 1,
1479
+ strokeMiterlimit: 1,
1480
+ strokeOpacity: 1,
1481
+ strokeWidth: 1
1482
+ }, b = {}, ge = typeof process < "u" && b !== void 0 && (b.REACT_APP_SC_ATTR || b.SC_ATTR) || "data-styled", Qr = "active", eo = "data-styled-version", Nt = "6.1.18", Sn = `/*!sc*/
1483
+ `, vt = typeof window < "u" && typeof document < "u", Yi = !!(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"), nr = /invalid hook call/i, it = /* @__PURE__ */ new Set(), Zi = function(e, t) {
1484
+ if (b.NODE_ENV !== "production") {
1485
+ var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
1486
+ `) + `You may see this warning because you've called styled inside another component.
1487
+ To resolve this only create new StyledComponents outside of any render method and function component.
1488
+ See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
1489
+ `, o = console.error;
1490
+ try {
1491
+ var i = !0;
1492
+ console.error = function(a) {
1493
+ for (var c = [], s = 1; s < arguments.length; s++) c[s - 1] = arguments[s];
1494
+ nr.test(a) ? (i = !1, it.delete(r)) : o.apply(void 0, me([a], c, !1));
1495
+ }, Je(), i && !it.has(r) && (console.warn(r), it.add(r));
1496
+ } catch (a) {
1497
+ nr.test(a.message) && it.delete(r);
1498
+ } finally {
1499
+ console.error = o;
1500
+ }
1501
+ }
1502
+ }, kt = Object.freeze([]), ke = Object.freeze({});
1503
+ function qi(e, t, n) {
1504
+ return n === void 0 && (n = ke), e.theme !== n.theme && e.theme || t || n.theme;
1505
+ }
1506
+ var Xt = /* @__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"]), Xi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ki = /(^-|-$)/g;
1507
+ function rr(e) {
1508
+ return e.replace(Xi, "-").replace(Ki, "");
1509
+ }
1510
+ var Ji = /(a)(d)/gi, at = 52, or = function(e) {
1511
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
1512
+ };
1513
+ function Kt(e) {
1514
+ var t, n = "";
1515
+ for (t = Math.abs(e); t > at; t = t / at | 0) n = or(t % at) + n;
1516
+ return (or(t % at) + n).replace(Ji, "$1-$2");
1517
+ }
1518
+ var Mt, to = 5381, fe = function(e, t) {
1519
+ for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
1520
+ return e;
1521
+ }, no = function(e) {
1522
+ return fe(to, e);
1523
+ };
1524
+ function ro(e) {
1525
+ return Kt(no(e) >>> 0);
1526
+ }
1527
+ function oo(e) {
1528
+ return b.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1529
+ }
1530
+ function Ht(e) {
1531
+ return typeof e == "string" && (b.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1532
+ }
1533
+ var io = typeof Symbol == "function" && Symbol.for, ao = io ? Symbol.for("react.memo") : 60115, Qi = io ? Symbol.for("react.forward_ref") : 60112, ea = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, ta = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, so = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, na = ((Mt = {})[Qi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Mt[ao] = so, Mt);
1534
+ function ir(e) {
1535
+ return ("type" in (t = e) && t.type.$$typeof) === ao ? so : "$$typeof" in e ? na[e.$$typeof] : ea;
1536
+ var t;
1537
+ }
1538
+ var ra = Object.defineProperty, oa = Object.getOwnPropertyNames, ar = Object.getOwnPropertySymbols, ia = Object.getOwnPropertyDescriptor, aa = Object.getPrototypeOf, sr = Object.prototype;
1539
+ function co(e, t, n) {
1540
+ if (typeof t != "string") {
1541
+ if (sr) {
1542
+ var r = aa(t);
1543
+ r && r !== sr && co(e, r, n);
1544
+ }
1545
+ var o = oa(t);
1546
+ ar && (o = o.concat(ar(t)));
1547
+ for (var i = ir(e), a = ir(t), c = 0; c < o.length; ++c) {
1548
+ var s = o[c];
1549
+ if (!(s in ta || n && n[s] || a && s in a || i && s in i)) {
1550
+ var u = ia(t, s);
1551
+ try {
1552
+ ra(e, s, u);
1553
+ } catch {
1554
+ }
1555
+ }
1556
+ }
1557
+ }
1558
+ return e;
1559
+ }
1560
+ function ye(e) {
1561
+ return typeof e == "function";
1562
+ }
1563
+ function bn(e) {
1564
+ return typeof e == "object" && "styledComponentId" in e;
1565
+ }
1566
+ function de(e, t) {
1567
+ return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1568
+ }
1569
+ function Jt(e, t) {
1570
+ if (e.length === 0) return "";
1571
+ for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
1572
+ return n;
1573
+ }
1574
+ function Te(e) {
1575
+ return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1576
+ }
1577
+ function Qt(e, t, n) {
1578
+ if (n === void 0 && (n = !1), !n && !Te(e) && !Array.isArray(e)) return t;
1579
+ if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = Qt(e[r], t[r]);
1580
+ else if (Te(t)) for (var r in t) e[r] = Qt(e[r], t[r]);
1581
+ return e;
1582
+ }
1583
+ function $n(e, t) {
1584
+ Object.defineProperty(e, "toString", { value: t });
1585
+ }
1586
+ var sa = b.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1587
+
1588
+ `, 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.
1589
+
1590
+ - Are you trying to reuse it across renders?
1591
+ - Are you accidentally calling collectStyles twice?
1592
+
1593
+ `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
1594
+
1595
+ `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
1596
+
1597
+ - Does this error occur on the client and is your target falsy?
1598
+ - Does this error occur on the server and is the sheet falsy?
1599
+
1600
+ `, 5: `The clone method cannot be used on the client!
1601
+
1602
+ - Are you running in a client-like environment on the server?
1603
+ - Are you trying to run SSR on the client?
1604
+
1605
+ `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
1606
+
1607
+ - Are you using a custom target that isn't mounted?
1608
+ - Does your document not have a valid head element?
1609
+ - Have you accidentally removed a style tag manually?
1610
+
1611
+ `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
1612
+
1613
+ `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
1614
+
1615
+ `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
1616
+
1617
+ `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s 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.
1618
+
1619
+ `, 14: `ThemeProvider: "theme" prop is required.
1620
+
1621
+ `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
1622
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
1623
+ as for instance in your render method then you may be running into this limitation.
1624
+
1625
+ `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1626
+ Has styled-components' style tag been unmounted or altered by another script?
1627
+ `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1628
+ function ca() {
1629
+ for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1630
+ for (var n = e[0], r = [], o = 1, i = e.length; o < i; o += 1) r.push(e[o]);
1631
+ return r.forEach(function(a) {
1632
+ n = n.replace(/%[a-z]/, a);
1633
+ }), n;
1634
+ }
1635
+ function q(e) {
1636
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1637
+ 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(ca.apply(void 0, me([sa[e]], t, !1)).trim());
1638
+ }
1639
+ var la = function() {
1640
+ function e(t) {
1641
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1642
+ }
1643
+ return e.prototype.indexOfGroup = function(t) {
1644
+ for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
1645
+ return n;
1646
+ }, e.prototype.insertRules = function(t, n) {
1647
+ if (t >= this.groupSizes.length) {
1648
+ for (var r = this.groupSizes, o = r.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw q(16, "".concat(t));
1649
+ this.groupSizes = new Uint32Array(i), this.groupSizes.set(r), this.length = i;
1650
+ for (var a = o; a < i; a++) this.groupSizes[a] = 0;
1651
+ }
1652
+ 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++);
1653
+ }, e.prototype.clearGroup = function(t) {
1654
+ if (t < this.length) {
1655
+ var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
1656
+ this.groupSizes[t] = 0;
1657
+ for (var i = r; i < o; i++) this.tag.deleteRule(r);
1658
+ }
1659
+ }, e.prototype.getGroup = function(t) {
1660
+ var n = "";
1661
+ if (t >= this.length || this.groupSizes[t] === 0) return n;
1662
+ 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(Sn);
1663
+ return n;
1664
+ }, e;
1665
+ }(), ua = 1 << 30, ht = /* @__PURE__ */ new Map(), Ct = /* @__PURE__ */ new Map(), pt = 1, st = function(e) {
1666
+ if (ht.has(e)) return ht.get(e);
1667
+ for (; Ct.has(pt); ) pt++;
1668
+ var t = pt++;
1669
+ if (b.NODE_ENV !== "production" && ((0 | t) < 0 || t > ua)) throw q(16, "".concat(t));
1670
+ return ht.set(e, t), Ct.set(t, e), t;
1671
+ }, fa = function(e, t) {
1672
+ pt = t + 1, ht.set(e, t), Ct.set(t, e);
1673
+ }, da = "style[".concat(ge, "][").concat(eo, '="').concat(Nt, '"]'), _a = new RegExp("^".concat(ge, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ha = function(e, t, n) {
1674
+ for (var r, o = n.split(","), i = 0, a = o.length; i < a; i++) (r = o[i]) && e.registerName(t, r);
1675
+ }, pa = function(e, t) {
1676
+ for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Sn), o = [], i = 0, a = r.length; i < a; i++) {
1677
+ var c = r[i].trim();
1678
+ if (c) {
1679
+ var s = c.match(_a);
1680
+ if (s) {
1681
+ var u = 0 | parseInt(s[1], 10), f = s[2];
1682
+ u !== 0 && (fa(f, u), ha(e, f, s[3]), e.getTag().insertRules(u, o)), o.length = 0;
1683
+ } else o.push(c);
1684
+ }
1685
+ }
1686
+ }, cr = function(e) {
1687
+ for (var t = document.querySelectorAll(da), n = 0, r = t.length; n < r; n++) {
1688
+ var o = t[n];
1689
+ o && o.getAttribute(ge) !== Qr && (pa(e, o), o.parentNode && o.parentNode.removeChild(o));
1690
+ }
1691
+ };
1692
+ function ma() {
1693
+ return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1694
+ }
1695
+ var lo = function(e) {
1696
+ var t = document.head, n = e || t, r = document.createElement("style"), o = function(c) {
1697
+ var s = Array.from(c.querySelectorAll("style[".concat(ge, "]")));
1698
+ return s[s.length - 1];
1699
+ }(n), i = o !== void 0 ? o.nextSibling : null;
1700
+ r.setAttribute(ge, Qr), r.setAttribute(eo, Nt);
1701
+ var a = ma();
1702
+ return a && r.setAttribute("nonce", a), n.insertBefore(r, i), r;
1703
+ }, ga = function() {
1704
+ function e(t) {
1705
+ this.element = lo(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
1706
+ if (n.sheet) return n.sheet;
1707
+ for (var r = document.styleSheets, o = 0, i = r.length; o < i; o++) {
1708
+ var a = r[o];
1709
+ if (a.ownerNode === n) return a;
1710
+ }
1711
+ throw q(17);
1712
+ }(this.element), this.length = 0;
1713
+ }
1714
+ return e.prototype.insertRule = function(t, n) {
1715
+ try {
1716
+ return this.sheet.insertRule(n, t), this.length++, !0;
1717
+ } catch {
1718
+ return !1;
1719
+ }
1720
+ }, e.prototype.deleteRule = function(t) {
1721
+ this.sheet.deleteRule(t), this.length--;
1722
+ }, e.prototype.getRule = function(t) {
1723
+ var n = this.sheet.cssRules[t];
1724
+ return n && n.cssText ? n.cssText : "";
1725
+ }, e;
1726
+ }(), ya = function() {
1727
+ function e(t) {
1728
+ this.element = lo(t), this.nodes = this.element.childNodes, this.length = 0;
1729
+ }
1730
+ return e.prototype.insertRule = function(t, n) {
1731
+ if (t <= this.length && t >= 0) {
1732
+ var r = document.createTextNode(n);
1733
+ return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
1734
+ }
1735
+ return !1;
1736
+ }, e.prototype.deleteRule = function(t) {
1737
+ this.element.removeChild(this.nodes[t]), this.length--;
1738
+ }, e.prototype.getRule = function(t) {
1739
+ return t < this.length ? this.nodes[t].textContent : "";
1740
+ }, e;
1741
+ }(), va = function() {
1742
+ function e(t) {
1743
+ this.rules = [], this.length = 0;
1744
+ }
1745
+ return e.prototype.insertRule = function(t, n) {
1746
+ return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
1747
+ }, e.prototype.deleteRule = function(t) {
1748
+ this.rules.splice(t, 1), this.length--;
1749
+ }, e.prototype.getRule = function(t) {
1750
+ return t < this.length ? this.rules[t] : "";
1751
+ }, e;
1752
+ }(), lr = vt, Ca = { isServer: !vt, useCSSOMInjection: !Yi }, uo = function() {
1753
+ function e(t, n, r) {
1754
+ t === void 0 && (t = ke), n === void 0 && (n = {});
1755
+ var o = this;
1756
+ this.options = D(D({}, Ca), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && vt && lr && (lr = !1, cr(this)), $n(this, function() {
1757
+ return function(i) {
1758
+ for (var a = i.getTag(), c = a.length, s = "", u = function(l) {
1759
+ var h = function(m) {
1760
+ return Ct.get(m);
1761
+ }(l);
1762
+ if (h === void 0) return "continue";
1763
+ var _ = i.names.get(h), g = a.getGroup(l);
1764
+ if (_ === void 0 || !_.size || g.length === 0) return "continue";
1765
+ var w = "".concat(ge, ".g").concat(l, '[id="').concat(h, '"]'), $ = "";
1766
+ _ !== void 0 && _.forEach(function(m) {
1767
+ m.length > 0 && ($ += "".concat(m, ","));
1768
+ }), s += "".concat(g).concat(w, '{content:"').concat($, '"}').concat(Sn);
1769
+ }, f = 0; f < c; f++) u(f);
1770
+ return s;
1771
+ }(o);
1772
+ });
1773
+ }
1774
+ return e.registerId = function(t) {
1775
+ return st(t);
1776
+ }, e.prototype.rehydrate = function() {
1777
+ !this.server && vt && cr(this);
1778
+ }, e.prototype.reconstructWithOptions = function(t, n) {
1779
+ return n === void 0 && (n = !0), new e(D(D({}, this.options), t), this.gs, n && this.names || void 0);
1780
+ }, e.prototype.allocateGSInstance = function(t) {
1781
+ return this.gs[t] = (this.gs[t] || 0) + 1;
1782
+ }, e.prototype.getTag = function() {
1783
+ return this.tag || (this.tag = (t = function(n) {
1784
+ var r = n.useCSSOMInjection, o = n.target;
1785
+ return n.isServer ? new va(o) : r ? new ga(o) : new ya(o);
1786
+ }(this.options), new la(t)));
1787
+ var t;
1788
+ }, e.prototype.hasNameForId = function(t, n) {
1789
+ return this.names.has(t) && this.names.get(t).has(n);
1790
+ }, e.prototype.registerName = function(t, n) {
1791
+ if (st(t), this.names.has(t)) this.names.get(t).add(n);
1792
+ else {
1793
+ var r = /* @__PURE__ */ new Set();
1794
+ r.add(n), this.names.set(t, r);
1795
+ }
1796
+ }, e.prototype.insertRules = function(t, n, r) {
1797
+ this.registerName(t, n), this.getTag().insertRules(st(t), r);
1798
+ }, e.prototype.clearNames = function(t) {
1799
+ this.names.has(t) && this.names.get(t).clear();
1800
+ }, e.prototype.clearRules = function(t) {
1801
+ this.getTag().clearGroup(st(t)), this.clearNames(t);
1802
+ }, e.prototype.clearTag = function() {
1803
+ this.tag = void 0;
1804
+ }, e;
1805
+ }(), Ea = /&/g, wa = /^\s*\/\/.*$/gm;
1806
+ function fo(e, t) {
1807
+ return e.map(function(n) {
1808
+ 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) {
1809
+ return "".concat(t, " ").concat(r);
1810
+ })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = fo(n.children, t)), n;
1811
+ });
1812
+ }
1813
+ function _o(e) {
1814
+ var t, n, r, o = e === void 0 ? ke : e, i = o.options, a = i === void 0 ? ke : i, c = o.plugins, s = c === void 0 ? kt : c, u = function(h, _, g) {
1815
+ return g.startsWith(n) && g.endsWith(n) && g.replaceAll(n, "").length > 0 ? ".".concat(t) : h;
1816
+ }, f = s.slice();
1817
+ f.push(function(h) {
1818
+ h.type === St && h.value.includes("&") && (h.props[0] = h.props[0].replace(Ea, n).replace(r, u));
1819
+ }), a.prefix && f.push(Gi), f.push(zi);
1820
+ var l = function(h, _, g, w) {
1821
+ _ === void 0 && (_ = ""), g === void 0 && (g = ""), w === void 0 && (w = "&"), t = w, n = _, r = new RegExp("\\".concat(n, "\\b"), "g");
1822
+ var $ = h.replace(wa, ""), m = Ui(g || _ ? "".concat(g, " ").concat(_, " { ").concat($, " }") : $);
1823
+ a.namespace && (m = fo(m, a.namespace));
1824
+ var p = [];
1825
+ return yt(m, Wi(f.concat(ji(function(O) {
1826
+ return p.push(O);
1827
+ })))), p;
1828
+ };
1829
+ return l.hash = s.length ? s.reduce(function(h, _) {
1830
+ return _.name || q(15), fe(h, _.name);
1831
+ }, to).toString() : "", l;
1832
+ }
1833
+ var Sa = new uo(), en = _o(), On = ne.createContext({ shouldForwardProp: void 0, styleSheet: Sa, stylis: en });
1834
+ On.Consumer;
1835
+ var ba = ne.createContext(void 0);
1836
+ function tn() {
1837
+ return Qe(On);
1838
+ }
1839
+ function $a(e) {
1840
+ var t = H(e.stylisPlugins), n = t[0], r = t[1], o = tn().styleSheet, i = te(function() {
1841
+ var s = o;
1842
+ return e.sheet ? s = e.sheet : e.target && (s = s.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (s = s.reconstructWithOptions({ useCSSOMInjection: !1 })), s;
1843
+ }, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = te(function() {
1844
+ return _o({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1845
+ }, [e.enableVendorPrefixes, e.namespace, n]);
1846
+ X(function() {
1847
+ Ni(n, e.stylisPlugins) || r(e.stylisPlugins);
1848
+ }, [e.stylisPlugins]);
1849
+ var c = te(function() {
1850
+ return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
1851
+ }, [e.shouldForwardProp, i, a]);
1852
+ return ne.createElement(On.Provider, { value: c }, ne.createElement(ba.Provider, { value: a }, e.children));
1853
+ }
1854
+ var nn = function() {
1855
+ function e(t, n) {
1856
+ var r = this;
1857
+ this.inject = function(o, i) {
1858
+ i === void 0 && (i = en);
1859
+ var a = r.name + i.hash;
1860
+ o.hasNameForId(r.id, a) || o.insertRules(r.id, a, i(r.rules, a, "@keyframes"));
1861
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, $n(this, function() {
1862
+ throw q(12, String(r.name));
1863
+ });
1864
+ }
1865
+ return e.prototype.getName = function(t) {
1866
+ return t === void 0 && (t = en), this.name + t.hash;
1867
+ }, e;
1868
+ }(), Oa = function(e) {
1869
+ return e >= "A" && e <= "Z";
1870
+ };
1871
+ function ur(e) {
1872
+ for (var t = "", n = 0; n < e.length; n++) {
1873
+ var r = e[n];
1874
+ if (n === 1 && r === "-" && e[0] === "-") return e;
1875
+ Oa(r) ? t += "-" + r.toLowerCase() : t += r;
1876
+ }
1877
+ return t.startsWith("ms-") ? "-" + t : t;
1878
+ }
1879
+ var ho = function(e) {
1880
+ return e == null || e === !1 || e === "";
1881
+ }, po = function(e) {
1882
+ var t, n, r = [];
1883
+ for (var o in e) {
1884
+ var i = e[o];
1885
+ e.hasOwnProperty(o) && !ho(i) && (Array.isArray(i) && i.isCss || ye(i) ? r.push("".concat(ur(o), ":"), i, ";") : Te(i) ? r.push.apply(r, me(me(["".concat(o, " {")], po(i), !1), ["}"], !1)) : r.push("".concat(ur(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Vi || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1886
+ }
1887
+ return r;
1888
+ };
1889
+ function he(e, t, n, r) {
1890
+ if (ho(e)) return [];
1891
+ if (bn(e)) return [".".concat(e.styledComponentId)];
1892
+ if (ye(e)) {
1893
+ if (!ye(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
1894
+ var o = e(t);
1895
+ return b.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof nn || Te(o) || o === null || console.error("".concat(oo(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.")), he(o, t, n, r);
1896
+ }
1897
+ var i;
1898
+ return e instanceof nn ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Te(e) ? po(e) : Array.isArray(e) ? Array.prototype.concat.apply(kt, e.map(function(a) {
1899
+ return he(a, t, n, r);
1900
+ })) : [e.toString()];
1901
+ }
1902
+ function Na(e) {
1903
+ for (var t = 0; t < e.length; t += 1) {
1904
+ var n = e[t];
1905
+ if (ye(n) && !bn(n)) return !1;
1906
+ }
1907
+ return !0;
1908
+ }
1909
+ var ka = no(Nt), Ta = function() {
1910
+ function e(t, n, r) {
1911
+ this.rules = t, this.staticRulesId = "", this.isStatic = b.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Na(t), this.componentId = n, this.baseHash = fe(ka, n), this.baseStyle = r, uo.registerId(n);
1912
+ }
1913
+ return e.prototype.generateAndInjectStyles = function(t, n, r) {
1914
+ var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1915
+ if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = de(o, this.staticRulesId);
1916
+ else {
1917
+ var i = Jt(he(this.rules, t, n, r)), a = Kt(fe(this.baseHash, i) >>> 0);
1918
+ if (!n.hasNameForId(this.componentId, a)) {
1919
+ var c = r(i, ".".concat(a), void 0, this.componentId);
1920
+ n.insertRules(this.componentId, a, c);
1921
+ }
1922
+ o = de(o, a), this.staticRulesId = a;
1923
+ }
1924
+ else {
1925
+ for (var s = fe(this.baseHash, r.hash), u = "", f = 0; f < this.rules.length; f++) {
1926
+ var l = this.rules[f];
1927
+ if (typeof l == "string") u += l, b.NODE_ENV !== "production" && (s = fe(s, l));
1928
+ else if (l) {
1929
+ var h = Jt(he(l, t, n, r));
1930
+ s = fe(s, h + f), u += h;
1931
+ }
1932
+ }
1933
+ if (u) {
1934
+ var _ = Kt(s >>> 0);
1935
+ n.hasNameForId(this.componentId, _) || n.insertRules(this.componentId, _, r(u, ".".concat(_), void 0, this.componentId)), o = de(o, _);
1936
+ }
1937
+ }
1938
+ return o;
1939
+ }, e;
1940
+ }(), Ze = ne.createContext(void 0);
1941
+ Ze.Consumer;
1942
+ function mo() {
1943
+ var e = Qe(Ze);
1944
+ if (!e) throw q(18);
1945
+ return e;
1946
+ }
1947
+ function xa(e) {
1948
+ var t = ne.useContext(Ze), n = te(function() {
1949
+ return function(r, o) {
1950
+ if (!r) throw q(14);
1951
+ if (ye(r)) {
1952
+ var i = r(o);
1953
+ if (b.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw q(7);
1954
+ return i;
1955
+ }
1956
+ if (Array.isArray(r) || typeof r != "object") throw q(8);
1957
+ return o ? D(D({}, o), r) : r;
1958
+ }(e.theme, t);
1959
+ }, [e.theme, t]);
1960
+ return e.children ? ne.createElement(Ze.Provider, { value: n }, e.children) : null;
1961
+ }
1962
+ var Ft = {}, fr = /* @__PURE__ */ new Set();
1963
+ function Ia(e, t, n) {
1964
+ var r = bn(e), o = e, i = !Ht(e), a = t.attrs, c = a === void 0 ? kt : a, s = t.componentId, u = s === void 0 ? function(S, k) {
1965
+ var E = typeof S != "string" ? "sc" : rr(S);
1966
+ Ft[E] = (Ft[E] || 0) + 1;
1967
+ var y = "".concat(E, "-").concat(ro(Nt + E + Ft[E]));
1968
+ return k ? "".concat(k, "-").concat(y) : y;
1969
+ }(t.displayName, t.parentComponentId) : s, f = t.displayName, l = f === void 0 ? function(S) {
1970
+ return Ht(S) ? "styled.".concat(S) : "Styled(".concat(oo(S), ")");
1971
+ }(e) : f, h = t.displayName && t.componentId ? "".concat(rr(t.displayName), "-").concat(t.componentId) : t.componentId || u, _ = r && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, g = t.shouldForwardProp;
1972
+ if (r && o.shouldForwardProp) {
1973
+ var w = o.shouldForwardProp;
1974
+ if (t.shouldForwardProp) {
1975
+ var $ = t.shouldForwardProp;
1976
+ g = function(S, k) {
1977
+ return w(S, k) && $(S, k);
1978
+ };
1979
+ } else g = w;
1980
+ }
1981
+ var m = new Ta(n, h, r ? o.componentStyle : void 0);
1982
+ function p(S, k) {
1983
+ return function(E, y, F) {
1984
+ var U = E.attrs, Pe = E.componentStyle, B = E.defaultProps, ce = E.foldedComponentIds, kn = E.styledComponentId, So = E.target, bo = ne.useContext(Ze), $o = tn(), Tt = E.shouldForwardProp || $o.shouldForwardProp;
1985
+ b.NODE_ENV !== "production" && gt(kn);
1986
+ var Tn = qi(y, bo, B) || ke, K = function(et, Me, tt) {
1987
+ for (var Ce, le = D(D({}, Me), { className: void 0, theme: tt }), At = 0; At < et.length; At += 1) {
1988
+ var nt = ye(Ce = et[At]) ? Ce(le) : Ce;
1989
+ for (var re in nt) le[re] = re === "className" ? de(le[re], nt[re]) : re === "style" ? D(D({}, le[re]), nt[re]) : nt[re];
1990
+ }
1991
+ return Me.className && (le.className = de(le.className, Me.className)), le;
1992
+ }(U, y, Tn), De = K.as || So, Le = {};
1993
+ for (var z in K) K[z] === void 0 || z[0] === "$" || z === "as" || z === "theme" && K.theme === Tn || (z === "forwardedAs" ? Le.as = K.forwardedAs : Tt && !Tt(z, De) || (Le[z] = K[z], Tt || b.NODE_ENV !== "development" || Vo(z) || fr.has(z) || !Xt.has(De) || (fr.add(z), console.warn('styled-components: it looks like an unknown prop "'.concat(z, '" 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.)')))));
1994
+ var xt = function(et, Me) {
1995
+ var tt = tn(), Ce = et.generateAndInjectStyles(Me, tt.styleSheet, tt.stylis);
1996
+ return b.NODE_ENV !== "production" && gt(Ce), Ce;
1997
+ }(Pe, K);
1998
+ b.NODE_ENV !== "production" && E.warnTooManyClasses && E.warnTooManyClasses(xt);
1999
+ var It = de(ce, kn);
2000
+ return xt && (It += " " + xt), K.className && (It += " " + K.className), Le[Ht(De) && !Xt.has(De) ? "class" : "className"] = It, F && (Le.ref = F), M(De, Le);
2001
+ }(O, S, k);
2002
+ }
2003
+ p.displayName = l;
2004
+ var O = ne.forwardRef(p);
2005
+ return O.attrs = _, O.componentStyle = m, O.displayName = l, O.shouldForwardProp = g, O.foldedComponentIds = r ? de(o.foldedComponentIds, o.styledComponentId) : "", O.styledComponentId = h, O.target = r ? o.target : e, Object.defineProperty(O, "defaultProps", { get: function() {
2006
+ return this._foldedDefaultProps;
2007
+ }, set: function(S) {
2008
+ this._foldedDefaultProps = r ? function(k) {
2009
+ for (var E = [], y = 1; y < arguments.length; y++) E[y - 1] = arguments[y];
2010
+ for (var F = 0, U = E; F < U.length; F++) Qt(k, U[F], !0);
2011
+ return k;
2012
+ }({}, o.defaultProps, S) : S;
2013
+ } }), b.NODE_ENV !== "production" && (Zi(l, h), O.warnTooManyClasses = /* @__PURE__ */ function(S, k) {
2014
+ var E = {}, y = !1;
2015
+ return function(F) {
2016
+ if (!y && (E[F] = !0, Object.keys(E).length >= 200)) {
2017
+ var U = k ? ' with the id of "'.concat(k, '"') : "";
2018
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(U, `.
2019
+ `) + `Consider using the attrs method, together with a style object for frequently changed styles.
2020
+ Example:
2021
+ const Component = styled.div.attrs(props => ({
2022
+ style: {
2023
+ background: props.background,
2024
+ },
2025
+ }))\`width: 100%;\`
2026
+
2027
+ <Component />`), y = !0, E = {};
2028
+ }
2029
+ };
2030
+ }(l, h)), $n(O, function() {
2031
+ return ".".concat(O.styledComponentId);
2032
+ }), i && co(O, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), O;
2033
+ }
2034
+ function dr(e, t) {
2035
+ for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
2036
+ return n;
2037
+ }
2038
+ var _r = function(e) {
2039
+ return Object.assign(e, { isCss: !0 });
2040
+ };
2041
+ function se(e) {
2042
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2043
+ if (ye(e) || Te(e)) return _r(he(dr(kt, me([e], t, !0))));
2044
+ var r = e;
2045
+ return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? he(r) : _r(he(dr(r, t)));
2046
+ }
2047
+ function rn(e, t, n) {
2048
+ if (n === void 0 && (n = ke), !t) throw q(1, t);
2049
+ var r = function(o) {
2050
+ for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
2051
+ return e(t, n, se.apply(void 0, me([o], i, !1)));
2052
+ };
2053
+ return r.attrs = function(o) {
2054
+ return rn(e, t, D(D({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
2055
+ }, r.withConfig = function(o) {
2056
+ return rn(e, t, D(D({}, n), o));
2057
+ }, r;
2058
+ }
2059
+ var go = function(e) {
2060
+ return rn(Ia, e);
2061
+ }, L = go;
2062
+ Xt.forEach(function(e) {
2063
+ L[e] = go(e);
2064
+ });
2065
+ function Re(e) {
2066
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2067
+ 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.");
2068
+ var r = Jt(se.apply(void 0, me([e], t, !1))), o = ro(r);
2069
+ return new nn(o, r);
2070
+ }
2071
+ b.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2072
+ Perhaps you're looking to import 'styled-components/native'?
2073
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);
2074
+ var ct = "__sc-".concat(ge, "__");
2075
+ b.NODE_ENV !== "production" && b.NODE_ENV !== "test" && typeof window < "u" && (window[ct] || (window[ct] = 0), window[ct] === 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.
2076
+
2077
+ See https://s-c.sh/2BAXzed for more info.`), window[ct] += 1);
2078
+ const Aa = 2, yo = 14, Ra = 0.0276;
2079
+ var Q = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(Q || {});
2080
+ const Be = {
2081
+ 300: {
2082
+ iconSize: 40,
2083
+ marginLeft: 12,
2084
+ buttonPadding: 4
2085
+ },
2086
+ 400: {
2087
+ iconSize: 45,
2088
+ marginLeft: 12,
2089
+ buttonPadding: 8
2090
+ },
2091
+ 500: {
2092
+ iconSize: 52,
2093
+ marginLeft: 12,
2094
+ buttonPadding: 12
2095
+ },
2096
+ 600: {
2097
+ iconSize: 52,
2098
+ marginLeft: 12,
2099
+ buttonPadding: 24
2100
+ }
2101
+ }, hr = {
2102
+ loading: { text: "Loading. Please wait.", visible: !0 },
2103
+ done: { text: "Waiting for input...", visible: !0 }
2104
+ }, Pa = {
2105
+ [P.CANDIDATE_SELECTION]: "Stay still…",
2106
+ [P.FACE_TOO_CLOSE]: "Move back",
2107
+ [P.FACE_TOO_FAR]: "Move closer",
2108
+ [P.FACE_CENTERING]: "Center your face",
2109
+ [P.FACE_NOT_PRESENT]: "Position your face into the circle",
2110
+ [P.SHARPNESS_TOO_LOW]: "Turn face against light",
2111
+ [P.BRIGHTNESS_TOO_LOW]: "Turn face against light",
2112
+ [P.BRIGHTNESS_TOO_HIGH]: "Less light needed",
2113
+ [P.DEVICE_PITCHED]: "Hold your phone at eye level",
2114
+ [P.LEFT_EYE_NOT_PRESENT]: "Position your face into the circle",
2115
+ [P.RIGHT_EYE_NOT_PRESENT]: "Position your face into the circle",
2116
+ [P.MOUTH_SCORE_TOO_HIGH]: "Keep neutral expression",
2117
+ [P.MOUTH_SCORE_TOO_LOW]: "Smile :)",
2118
+ [P.MOUTH_NOT_PRESENT]: "Position your face into the circle"
2119
+ }, Da = {
2120
+ ...Pa,
2121
+ [Ve.FIT_YOUR_EYE]: "Fit your eye into square",
2122
+ [Ve.DEVICE_PITCHED]: "Hold your phone at eye level"
2123
+ }, La = "rgba(19, 19, 19, 0.5)", Ma = 34;
2124
+ function pr(e, t) {
2125
+ return Math.max(t, t + (e - 400) * Ra + 2);
2126
+ }
2127
+ const Ha = (e, t = yo) => e ? e.width < e.height ? pr(e.width, t) : pr(e.height, t) : t, Fa = (e) => e > Q.Default ? Be[Q.Default] : e > Q.L ? Be[Q.L] : e > Q.M ? Be[Q.M] : Be[Q.S], Ua = (e) => e ? Fa(e.width) : Be[Q.Default];
2128
+ function Ba() {
2129
+ const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
2130
+ if (!document.querySelector(`link[href="${e}"]`)) {
2131
+ const n = document.createElement("link");
2132
+ n.href = e, n.rel = "stylesheet", document.head.appendChild(n);
2133
+ }
2134
+ }
2135
+ const je = xr(void 0);
2136
+ je.displayName = "UiCustomizationContext";
2137
+ function ve() {
2138
+ const e = Qe(je);
2139
+ if (!e)
2140
+ throw new Error(
2141
+ `${je.displayName} must be used within a ${je.displayName} Provider`
2142
+ );
2143
+ return e;
2144
+ }
2145
+ function za({ children: e, props: t, videoElementSize: n }) {
2146
+ const { font: r } = mo(), o = te(
2147
+ () => ({ ...t, videoElementSize: n, fontSize: Ha(n, r.minimumSize) }),
2148
+ [t, r.minimumSize, n]
2149
+ );
2150
+ return /* @__PURE__ */ d(je.Provider, { value: o, children: e });
2151
+ }
2152
+ const vo = ({ 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(
2153
+ "path",
2154
+ {
2155
+ clipRule: "evenodd",
2156
+ d: "M14.3062 13.5002H1.69384C0.932655 13.5002 0.450552 12.6837 0.818264 12.0172L7.12444 0.587236C7.5047 -0.101994 8.49533 -0.101996 8.87559 0.587234L15.1818 12.0172C15.5495 12.6837 15.0674 13.5002 14.3062 13.5002ZM8.00001 3.25025C8.41423 3.25025 8.75002 3.58604 8.75002 4.00025V8.50025C8.75002 8.91446 8.41423 9.25025 8.00001 9.25025C7.5858 9.25025 7.25001 8.91446 7.25001 8.50025V4.00025C7.25001 3.58604 7.5858 3.25025 8.00001 3.25025ZM8.75002 11.2502C8.75002 11.6645 8.41423 12.0002 8.00001 12.0002C7.5858 12.0002 7.25001 11.6645 7.25001 11.2502C7.25001 10.836 7.5858 10.5002 8.00001 10.5002C8.41423 10.5002 8.75002 10.836 8.75002 11.2502Z",
2157
+ fill: "currentColor",
2158
+ fillRule: "evenodd"
2159
+ }
2160
+ ) }), Wa = L.div`
2161
+ width: 100%;
2162
+ height: 100%;
2163
+ top: 0;
2164
+ position: ${(e) => e.$position};
2165
+ display: flex;
2166
+ justify-content: center;
2167
+ align-items: center;
2168
+ text-align: center;
2169
+ z-index: 1;
2170
+
2171
+ ${(e) => !e.$isCameraReady && `
2172
+ height: inherit;
2173
+ aspect-ratio: 16/9;
2174
+
2175
+ @media (orientation: portrait) and (max-width: 1199px) {
2176
+ aspect-ratio: 9/16;
2177
+ }
2178
+ `}
2179
+ `, ja = L.div`
2180
+ width: 100%;
2181
+ display: flex;
2182
+ flex-direction: column;
2183
+ justify-content: center;
2184
+ align-items: center;
2185
+ color: ${(e) => e.theme.colors.instructionTextColor};
2186
+ `, Ga = L.p`
2187
+ background: ${(e) => e.theme.colors.instructionColor};
2188
+ border-radius: 0.25em;
2189
+ padding: 0.583em 0.666em;
2190
+ margin: 0.8em 0;
2191
+ font-size: ${(e) => `${e.$fontSize}px`};
2192
+ line-height: 1em;
2193
+ max-width: 80%;
2194
+ `, on = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
2195
+ const { fontSize: o } = ve();
2196
+ return /* @__PURE__ */ d(Wa, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ d(ja, { children: [
2197
+ e ? /* @__PURE__ */ d(e, { svgSize: o * 2 }) : null,
2198
+ /* @__PURE__ */ d(Ga, { $fontSize: o, children: r })
2199
+ ] }) });
2200
+ }, Co = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ d(on, { Icon: vo, position: "relative", text: e });
2201
+ class Va extends j {
2202
+ constructor(t) {
2203
+ super(t), this.state = { hasError: !1 };
2204
+ }
2205
+ static getDerivedStateFromError(t) {
2206
+ return { hasError: !0 };
2207
+ }
2208
+ componentDidCatch(t, n) {
2209
+ console.error(t, n);
2210
+ }
2211
+ render() {
2212
+ return this.state.hasError ? /* @__PURE__ */ d(Co, { Icon: vo, isCameraReady: !1 }) : this.props.children;
2213
+ }
2214
+ }
2215
+ const Ya = L.div`
2216
+ font-family: ${(e) => e.theme.font.family};
2217
+ font-style: ${(e) => e.theme.font.style};
2218
+ font-weight: ${(e) => e.theme.font.weight};
2219
+ `, Za = ({ children: e, uiProps: t, videoElementSize: n }) => (X(() => {
2220
+ Ba();
2221
+ }, []), /* @__PURE__ */ d($a, { target: t.styleTarget, children: /* @__PURE__ */ d(xa, { theme: t.theme, children: /* @__PURE__ */ d(Ya, { children: /* @__PURE__ */ d(Va, { videoElementSize: n, children: /* @__PURE__ */ d(za, { props: t, videoElementSize: n, children: e }) }) }) }) })), qa = 0.75, Xa = 2, Ka = "dot-auto-capture-video", qe = (e, t) => {
2222
+ const n = Je(t);
2223
+ X(() => {
2224
+ n.current = t;
2225
+ }, [t]), X(
2226
+ () => {
2227
+ const r = (o) => n.current(o);
2228
+ return document.addEventListener(e, r), () => {
2229
+ document.removeEventListener(e, r);
2230
+ };
2231
+ },
2232
+ [e]
2233
+ // Re-run if eventName
2234
+ );
2235
+ };
2236
+ function Ja(e) {
2237
+ const [t, n] = H(), r = pe(
2238
+ (o) => {
2239
+ var i;
2240
+ n((i = o.detail) == null ? void 0 : i.size);
2241
+ },
2242
+ [n]
2243
+ );
2244
+ return qe(e, r), Ie(() => {
2245
+ if (!t) {
2246
+ const o = document.getElementById(Ka);
2247
+ o && n(o.getBoundingClientRect());
2248
+ }
2249
+ }, [t, n]), t;
2250
+ }
2251
+ function Qa(e, t) {
2252
+ return e ? `${e}, ${t}` : t;
2253
+ }
2254
+ const es = {
2255
+ placeholderColor: "white",
2256
+ placeholderColorSuccess: "#00BFB2",
2257
+ instructionColor: "#F8FBFB",
2258
+ instructionColorSuccess: "#00BFB2",
2259
+ instructionTextColor: "#021B41;"
2260
+ }, ts = {
2261
+ family: "Montserrat, Arial, sans-serif",
2262
+ weight: "600",
2263
+ style: "normal",
2264
+ minimumSize: yo
2265
+ }, He = {
2266
+ colors: es,
2267
+ font: ts
2268
+ }, ns = (e) => {
2269
+ var t;
2270
+ return e ? {
2271
+ ...He,
2272
+ ...e,
2273
+ colors: {
2274
+ ...He.colors,
2275
+ ...e.colors
2276
+ },
2277
+ font: {
2278
+ ...He.font,
2279
+ ...e.font,
2280
+ family: Qa((t = e.font) == null ? void 0 : t.family, He.font.family)
2281
+ }
2282
+ } : He;
2283
+ }, Nn = (e, t) => {
2284
+ document.dispatchEvent(
2285
+ new CustomEvent(e, {
2286
+ detail: t
2287
+ })
2288
+ );
2289
+ }, Et = class Et {
2290
+ constructor() {
2291
+ rt(this, "lastDetails", {});
2292
+ rt(this, "delayedTime", 0);
2293
+ }
2294
+ static getInstance() {
2295
+ return this._instance || (this._instance = new Et()), this._instance;
2296
+ }
2297
+ restart() {
2298
+ this.lastDetails = {}, this.delayedTime = 0;
2299
+ }
2300
+ /**
2301
+ * If the detail object has changed, save the new detail object and return true. Otherwise, return
2302
+ * false
2303
+ * @param {string} eventName - The name of the event.
2304
+ * @param detail - This is the data that is passed to the event.
2305
+ * @returns a boolean value.
2306
+ */
2307
+ isDetailChanged(t, n) {
2308
+ return JSON.stringify(n) !== JSON.stringify(this.lastDetails[t]) ? (this.lastDetails[t] = n, !0) : !1;
2309
+ }
2310
+ /**
2311
+ * If the detail of the event has changed, dispatch the event
2312
+ * @param {string} eventName - The name of the event to dispatch.
2313
+ * @param detail - Record<string, unknown>
2314
+ */
2315
+ dispatchCustomEventOnChange(t, n) {
2316
+ this.isDetailChanged(t, n) && Nn(t, n);
2317
+ }
2318
+ /**
2319
+ * If the detail of the event has changed, delay time has passed, dispatch the event
2320
+ * @param {string} eventName - The name of the event to dispatch.
2321
+ * @param detail - Record<string, unknown>
2322
+ * @param {number} delay - How long dispatch should be delayed.
2323
+ */
2324
+ dispatchDelayedCustomEventOnChange(t, n, r) {
2325
+ const o = performance.now();
2326
+ o - this.delayedTime > r && (this.dispatchCustomEventOnChange(t, n), this.delayedTime = o);
2327
+ }
2328
+ };
2329
+ rt(Et, "_instance");
2330
+ let an = Et;
2331
+ an.getInstance();
2332
+ const mr = (e, t) => {
2333
+ Nn(e, {
2334
+ instruction: t
2335
+ });
2336
+ }, rs = (e) => {
2337
+ Nn(e, { animationEnd: !0 });
2338
+ }, os = (e) => Number.parseFloat(e.toFixed(3)), Eo = (e, t) => Math.min(e, t), is = ({ height: e, width: t }, n) => {
2339
+ const r = Eo(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
2340
+ return {
2341
+ shiftX: o,
2342
+ shiftY: i,
2343
+ width: r,
2344
+ height: r
2345
+ };
2346
+ }, as = (e, t) => {
2347
+ const { height: n, shiftX: r, shiftY: o, width: i } = is(e, t);
2348
+ return {
2349
+ shiftX: r / e.width,
2350
+ shiftY: o / e.height,
2351
+ width: i / e.width,
2352
+ height: n / e.height
2353
+ };
2354
+ }, ss = (e, t) => {
2355
+ const n = Eo(t.width, t.height);
2356
+ return os(e * n);
2357
+ }, cs = (e) => as(e, qa), ls = (e, t) => ss(e, t) * Xa;
2358
+ async function us() {
2359
+ return navigator.mediaDevices.enumerateDevices();
2360
+ }
2361
+ async function fs() {
2362
+ return (await us()).filter((t) => t.kind === "videoinput");
2363
+ }
2364
+ const ds = () => {
2365
+ const [e, t] = H(!1);
2366
+ return X(() => {
2367
+ (async () => {
2368
+ (await fs()).length > 1 && t(!0);
2369
+ })();
2370
+ }, []), e;
2371
+ }, _s = ({ size: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2372
+ /* @__PURE__ */ d(
2373
+ "path",
2374
+ {
2375
+ 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",
2376
+ fill: "#131313",
2377
+ fillOpacity: "0.3"
2378
+ }
2379
+ ),
2380
+ /* @__PURE__ */ d("circle", { cx: "17.5", cy: "24.5", fill: "white", r: "1.5" }),
2381
+ /* @__PURE__ */ d(
2382
+ "path",
2383
+ {
2384
+ 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",
2385
+ stroke: "white",
2386
+ strokeWidth: "2"
2387
+ }
2388
+ ),
2389
+ /* @__PURE__ */ d("circle", { fill: "white", r: "1.5", transform: "matrix(-1 0 0 1 34.5 24.5)" }),
2390
+ /* @__PURE__ */ d(
2391
+ "path",
2392
+ {
2393
+ 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",
2394
+ stroke: "white",
2395
+ strokeWidth: "2"
2396
+ }
2397
+ )
2398
+ ] }), hs = ({ size: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2399
+ /* @__PURE__ */ d("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
2400
+ /* @__PURE__ */ d(
2401
+ "path",
2402
+ {
2403
+ 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",
2404
+ fill: "white"
2405
+ }
2406
+ )
2407
+ ] }), wo = L.button`
2408
+ background: none;
2409
+ border: none;
2410
+ padding: 0;
2411
+ cursor: pointer;
2412
+ margin-left: ${(e) => e.$marginLeft ? `${e.$marginLeft}px` : 0};
2413
+
2414
+ &:disabled {
2415
+ cursor: not-allowed;
2416
+ }
2417
+ `, ps = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ d(wo, { $marginLeft: e, ...n, children: /* @__PURE__ */ d(_s, { size: t }) }), ms = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ d(wo, { $marginLeft: e, ...n, children: /* @__PURE__ */ d(hs, { size: t }) }), gs = L.div`
2418
+ position: absolute;
2419
+ top: 0;
2420
+ right: 0;
2421
+ padding: ${(e) => `${e.$padding}px`};
2422
+ z-index: 2;
2423
+ `, ys = ({
2424
+ customControlEvent: e,
2425
+ isSwitchCameraDisabled: t
2426
+ }) => {
2427
+ const { showCameraButtons: n, videoElementSize: r } = ve(), o = ds();
2428
+ if (!n)
2429
+ return null;
2430
+ const { buttonPadding: i, iconSize: a, marginLeft: c } = Ua(r);
2431
+ return /* @__PURE__ */ d(gs, { $padding: i, children: [
2432
+ o && /* @__PURE__ */ d(ms, { disabled: t, onClick: () => {
2433
+ mr(e, Pn.SWITCH_CAMERA);
2434
+ }, size: a }),
2435
+ /* @__PURE__ */ d(
2436
+ ps,
2437
+ {
2438
+ marginLeft: o ? c : 0,
2439
+ onClick: () => {
2440
+ mr(e, Pn.TOGGLE_MIRROR);
2441
+ },
2442
+ size: a
2443
+ }
2444
+ )
2445
+ ] });
2446
+ }, gr = 2.6, sn = "1.5s", cn = "1.5s", ln = "ease-in-out", vs = 2500, Cs = "2.5s", Es = "0.3s", ws = "linear", Ss = ".5s", bs = "3s", $s = "ease-in-out", Os = ".5s", Ns = ".5s", ks = "ease-out", Ts = (e) => Re`
2447
+ 100% {
2448
+ transform: translateX(22%) scale(${e});
2449
+ }
2450
+ `, xs = (e) => Re`
2451
+ 100% {
2452
+ transform: translate(34%, 8%) scale(${e * 0.98});
2453
+ }
2454
+ `, Is = Re`
2455
+ 0% {
2456
+ opacity: 0;
2457
+ }
2458
+ 100% {
2459
+ opacity: 1;
2460
+ }
2461
+ `, As = Re`
2462
+ 100% {
2463
+ transform: translate(-50%, -50%) scale(2.6);
2464
+ top: 50%;
2465
+ left: 50%;
2466
+ }
2467
+ `, Rs = Re`
2468
+ 5% {
2469
+ transform: translate(-50%, -50%) scale(0.7);
2470
+ opacity: 1;
2471
+ }
2472
+ 10% {
2473
+ transform: translate(-50%, -50%) scale(0.6);
2474
+ }
2475
+ 40% {
2476
+ transform: translate(-50%, -50%) scale(0.6);
2477
+ }
2478
+ 70% {
2479
+ transform: translate(-50%, -50%) scale(0.85);
2480
+ opacity: 1;
2481
+ }
2482
+ 90% {
2483
+ transform: translate(-50%, -50%) scale(0.85);
2484
+ opacity: 0.5;
2485
+ }
2486
+ 100% {
2487
+ transform: translate(-50%, -50%) scale(0.85);
2488
+ opacity: 0.5;
2489
+ }
2490
+ `, Ps = Re`
2491
+ 5% {
2492
+ opacity: 1;
2493
+ }
2494
+ 70% {
2495
+ transform: scale(1.1);
2496
+ }
2497
+
2498
+ 100% {
2499
+ transform: scale(1);
2500
+ opacity: 1;
2501
+ }
2502
+ `, Ds = L.div`
2503
+ position: absolute;
2504
+ left: 50%;
2505
+
2506
+ ${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
2507
+ ${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
2508
+ ${(e) => e.$isAnimating && se`
2509
+ animation: ${Is} ${Es}
2510
+ ${ws} both;
2511
+ animation-delay: ${Cs};
2512
+
2513
+ @media (orientation: landscape) {
2514
+ bottom: ${e.$cssBottom ? e.$cssBottom - 15 : ""}%;
2515
+ }
2516
+
2517
+ @media (max-width: 1024px) and (orientation: landscape) {
2518
+ bottom: ${e.$cssBottom ? e.$cssBottom - 13 : ""}%;
2519
+ }
2520
+
2521
+ @media (max-width: 768px) {
2522
+ bottom: ${e.$cssBottom ? e.$cssBottom + 3 : ""}%;
2523
+ }
2524
+
2525
+ @media (max-width: 480px) and (orientation: portrait) {
2526
+ bottom: ${e.$cssBottom ? e.$cssBottom - 10 : ""}%;
2527
+ }
2528
+ `};
2529
+
2530
+ transform: translateX(-50%)
2531
+ translateY(
2532
+ ${(e) => e.$cssTop || e.$isPortrait ? "-50%" : e.$isPortrait ? "" : "50%"}
2533
+ );
2534
+ z-index: 2;
2535
+ `, Ls = L.div`
2536
+ display: flex;
2537
+ align-items: center;
2538
+ justify-content: center;
2539
+ text-align: center;
2540
+ border-radius: 0.25em;
2541
+ margin: 0 auto;
2542
+ padding: 0.583em 0.666em;
2543
+ background: ${(e) => e.$isInCandidateSelection ? `${e.theme.colors.instructionColorSuccess}` : `${e.theme.colors.instructionColor}`};
2544
+ color: ${(e) => e.theme.colors.instructionTextColor};
2545
+ border: 0;
2546
+ line-height: 1em;
2547
+ font-size: ${(e) => `${e.$fontSize}px`};
2548
+ white-space: ${(e) => e.$wrap ? "break-spaces" : "nowrap"};
2549
+ `, Ms = ({
2550
+ children: e,
2551
+ cssBottom: t,
2552
+ cssTop: n,
2553
+ isAnimating: r,
2554
+ isInCandidateSelection: o,
2555
+ isPortrait: i
2556
+ }) => {
2557
+ const { fontSize: a } = ve();
2558
+ return /* @__PURE__ */ d(Ds, { $cssBottom: t, $cssTop: n, $isAnimating: r, $isPortrait: i, children: /* @__PURE__ */ d(
2559
+ Ls,
2560
+ {
2561
+ $fontSize: a,
2562
+ $isInCandidateSelection: o,
2563
+ $wrap: e.length > Ma,
2564
+ children: e
2565
+ }
2566
+ ) });
2567
+ }, Hs = L.div`
2568
+ color: ${(e) => e.theme.colors.instructionTextColor};
2569
+ animation: spin 2s linear infinite;
2570
+
2571
+ @keyframes spin {
2572
+ 100% {
2573
+ transform: rotate(-360deg);
2574
+ }
2575
+ }
2576
+ `, Fs = ({ 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: [
2577
+ /* @__PURE__ */ d(
2578
+ "path",
2579
+ {
2580
+ 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",
2581
+ fill: "currentColor"
2582
+ }
2583
+ ),
2584
+ /* @__PURE__ */ d(
2585
+ "path",
2586
+ {
2587
+ 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",
2588
+ fill: "currentColor"
2589
+ }
2590
+ ),
2591
+ /* @__PURE__ */ d(
2592
+ "path",
2593
+ {
2594
+ 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",
2595
+ fill: "currentColor"
2596
+ }
2597
+ ),
2598
+ /* @__PURE__ */ d(
2599
+ "path",
2600
+ {
2601
+ 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",
2602
+ fill: "currentColor"
2603
+ }
2604
+ ),
2605
+ /* @__PURE__ */ d(
2606
+ "path",
2607
+ {
2608
+ 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",
2609
+ fill: "currentColor"
2610
+ }
2611
+ ),
2612
+ /* @__PURE__ */ d(
2613
+ "path",
2614
+ {
2615
+ 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",
2616
+ fill: "currentColor"
2617
+ }
2618
+ ),
2619
+ /* @__PURE__ */ d(
2620
+ "path",
2621
+ {
2622
+ 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",
2623
+ fill: "currentColor"
2624
+ }
2625
+ ),
2626
+ /* @__PURE__ */ d(
2627
+ "path",
2628
+ {
2629
+ 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",
2630
+ fill: "currentColor"
2631
+ }
2632
+ )
2633
+ ] }) }), Us = L.div`
2634
+ z-index: 1;
2635
+ position: absolute;
2636
+ top: 0;
2637
+ left: 0;
2638
+ width: 100%;
2639
+ height: 100%;
2640
+ `, Bs = ({ children: e, height: t, width: n }) => {
2641
+ const { backdropColor: r } = ve();
2642
+ return /* @__PURE__ */ d(Us, { children: /* @__PURE__ */ d("svg", { viewBox: `0 0 ${n} ${t}`, children: [
2643
+ /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("mask", { id: "mask", children: [
2644
+ /* @__PURE__ */ d("rect", { fill: "#fff", height: "100%", width: "100%" }),
2645
+ e
2646
+ ] }) }),
2647
+ /* @__PURE__ */ d("rect", { fill: r, height: "100%", mask: "url(#mask)", width: "100%" })
2648
+ ] }) });
2649
+ };
2650
+ function zs({ cameraHeight: e, cameraWidth: t, state: n }) {
2651
+ var o;
2652
+ const { appStateInstructions: r } = ve();
2653
+ return !n || n === Wt.ERROR || !((o = r == null ? void 0 : r[n]) != null && o.visible) ? null : n === Wt.DONE ? /* @__PURE__ */ d(V, { children: [
2654
+ e && t && /* @__PURE__ */ d(Bs, { height: e, width: t }),
2655
+ /* @__PURE__ */ d(on, { isCameraReady: !0, text: r[n].text })
2656
+ ] }) : /* @__PURE__ */ d(on, { Icon: Fs, isCameraReady: !0, text: r[n].text });
2657
+ }
2658
+ const Ws = L.canvas`
2659
+ transform: ${(e) => e.$isImageMirror ? "rotateY(180deg)" : "none"};
2660
+ position: absolute;
2661
+ top: 0;
2662
+ left: 0;
2663
+ width: 100%;
2664
+ height: 100%;
2665
+ z-index: 1;
2666
+ `, js = (e) => {
2667
+ const t = e.getContext("2d");
2668
+ t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
2669
+ }, Gs = ({ cameraResolution: e, isImageMirror: t }) => {
2670
+ const n = Je(null), r = mo(), [o, i] = H(), a = pe(
2671
+ (c) => {
2672
+ var s;
2673
+ i((s = c == null ? void 0 : c.detail) == null ? void 0 : s.detectedObject);
2674
+ },
2675
+ [i]
2676
+ );
2677
+ return qe(be.DETECTED_FACE_CHANGED, a), X(() => {
2678
+ if (!n.current)
2679
+ return;
2680
+ const c = (s, u) => {
2681
+ var g;
2682
+ if (!u)
2683
+ return;
2684
+ const { faceCenter: f, faceSize: l } = u, h = (g = n == null ? void 0 : n.current) == null ? void 0 : g.getContext("2d");
2685
+ if (!h)
2686
+ return;
2687
+ const _ = ls(l, s);
2688
+ h.beginPath(), h.arc(f.x, f.y, _, 0, 2 * Math.PI, !1), h.lineWidth = Aa, h.strokeStyle = r.colors.placeholderColor, h.stroke();
2689
+ };
2690
+ n.current.width = e.width, n.current.height = e.height, js(n.current), c(e, o);
2691
+ }, [e, o, r.colors.placeholderColor]), /* @__PURE__ */ d(Ws, { ref: n, $isImageMirror: t });
2692
+ }, Vs = () => {
2693
+ const [e, t] = H(), [n, r] = H(!1), o = pe(
2694
+ (s) => {
2695
+ var f, l;
2696
+ t((f = s == null ? void 0 : s.detail) == null ? void 0 : f.cameraResolution);
2697
+ const u = (l = s == null ? void 0 : s.detail) == null ? void 0 : l.isMirroring;
2698
+ u !== void 0 && r(u);
2699
+ },
2700
+ [t]
2701
+ );
2702
+ qe(be.CAMERA_PROPS_CHANGED, o);
2703
+ const [i, a] = H({
2704
+ code: P.FACE_NOT_PRESENT,
2705
+ // FIXME Default instruction should not be here
2706
+ isEscalated: !1
2707
+ }), c = pe(
2708
+ (s) => {
2709
+ var u, f;
2710
+ a({
2711
+ code: (u = s == null ? void 0 : s.detail) == null ? void 0 : u.instructionCode,
2712
+ isEscalated: ((f = s == null ? void 0 : s.detail) == null ? void 0 : f.isEscalated) ?? !1
2713
+ });
2714
+ },
2715
+ [a]
2716
+ );
2717
+ return qe(be.INSTRUCTION_CHANGED, c), {
2718
+ cameraResolution: e,
2719
+ instruction: i,
2720
+ isMirroring: n
2721
+ };
2722
+ }, Ys = () => {
2723
+ const [e, t] = H(Ye.DISTANT), [n, r] = H(we.LOADING), [o, i] = H(), a = pe(
2724
+ (c) => {
2725
+ const { error: s, phase: u, state: f } = c.detail || {};
2726
+ u && t(u), f && r(f), s && i(s);
2727
+ },
2728
+ [t, r, i]
2729
+ );
2730
+ return qe(gn.STATUS_CHANGED, a), {
2731
+ magnifEyePhase: e,
2732
+ magnifEyeState: n,
2733
+ magnifEyeError: o
2734
+ };
2735
+ }, Zs = (e, t) => {
2736
+ const [n, r] = H(!1);
2737
+ return X(() => {
2738
+ if (t === Ye.CLOSEUP) {
2739
+ r(!0);
2740
+ const o = setTimeout(() => {
2741
+ r(!1);
2742
+ }, vs);
2743
+ return () => clearTimeout(o);
2744
+ }
2745
+ }, [t]), e && n ? e === Ve.CANDIDATE_SELECTION ? e : Ve.FIT_YOUR_EYE : e;
2746
+ }, qs = L.div`
2747
+ z-index: 1;
2748
+ position: absolute;
2749
+ top: 0;
2750
+ left: 0;
2751
+ width: 100%;
2752
+ height: 100%;
2753
+ color: ${(e) => e.$isInCandidateSelection ? `${e.theme.colors.placeholderColorSuccess}` : `${e.theme.colors.placeholderColor}`};
2754
+
2755
+ #backdrop-cutout,
2756
+ #placeholder {
2757
+ @media (min-width: 668px) {
2758
+ stroke-width: 4;
2759
+ }
2760
+ @media (min-width: 2240px) {
2761
+ stroke-width: 6;
2762
+ }
2763
+ transform-origin: center;
2764
+
2765
+ ${(e) => e.$isAnimating && se`
2766
+ animation: ${Ts(gr)} ${cn}
2767
+ ${ln} both;
2768
+ animation-delay: ${sn};
2769
+ `}
2770
+
2771
+ @media (max-width: 667px) {
2772
+ ${(e) => e.$isAnimating && se`
2773
+ animation: ${xs(gr)} ${cn}
2774
+ ${ln} both;
2775
+ animation-delay: ${sn};
2776
+ `}
2777
+ }
2778
+ }
2779
+ `, Xs = ({
2780
+ handleAnimationEnd: e,
2781
+ height: t,
2782
+ initialPosition: n,
2783
+ isAnimating: r,
2784
+ isInCandidateSelection: o,
2785
+ width: i
2786
+ }) => {
2787
+ const { backdropColor: a } = ve();
2788
+ return /* @__PURE__ */ d(
2789
+ qs,
2790
+ {
2791
+ $isAnimating: r,
2792
+ $isInCandidateSelection: o,
2793
+ onAnimationEnd: e,
2794
+ children: /* @__PURE__ */ d("svg", { viewBox: `0 0 ${i} ${t}`, children: [
2795
+ /* @__PURE__ */ d("mask", { id: "mask", children: [
2796
+ /* @__PURE__ */ d("rect", { fill: "#fff", height: "100%", width: "100%" }),
2797
+ /* @__PURE__ */ d(
2798
+ "rect",
2799
+ {
2800
+ fill: "#000",
2801
+ height: `${n.height * 100}%`,
2802
+ id: "backdrop-cutout",
2803
+ rx: "50%",
2804
+ width: `${n.width * 100}%`,
2805
+ x: `${n.shiftX * 100}%`,
2806
+ y: `${n.shiftY * 100}%`
2807
+ }
2808
+ )
2809
+ ] }),
2810
+ /* @__PURE__ */ d("rect", { fill: a, height: "100%", mask: "url(#mask)", width: "100%" }),
2811
+ /* @__PURE__ */ d(
2812
+ "rect",
2813
+ {
2814
+ clipPath: "circle()",
2815
+ fill: "none",
2816
+ height: `${n.height * 100}%`,
2817
+ id: "placeholder",
2818
+ rx: "50%",
2819
+ stroke: "currentColor",
2820
+ strokeWidth: "3",
2821
+ width: `${n.width * 100}%`,
2822
+ x: `${n.shiftX * 100}%`,
2823
+ y: `${n.shiftY * 100}%`
2824
+ }
2825
+ )
2826
+ ] })
2827
+ }
2828
+ );
2829
+ };
2830
+ function Ks() {
2831
+ return /* @__PURE__ */ d(
2832
+ "svg",
2833
+ {
2834
+ id: "Layer_1",
2835
+ style: "enable-background:new 0 0 62 62;",
2836
+ version: "1.1",
2837
+ viewBox: "0 0 62 62",
2838
+ x: "0px",
2839
+ xmlns: "http://www.w3.org/2000/svg",
2840
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
2841
+ xmlSpace: "preserve",
2842
+ y: "0px",
2843
+ children: /* @__PURE__ */ d(
2844
+ "path",
2845
+ {
2846
+ className: "st0",
2847
+ d: `M48.8,1H54c3.9,0,7,3.1,7,7v5.5 M13.2,1H8C4.1,1,1,4.1,1,8c0,1.8,0,3.7,0,5.5 M1,48.5V54c0,3.9,3.1,7,7,7h5.8
2848
+ M61,48.5V54c0,3.9-3.1,7-7,7h-5.2`,
2849
+ fill: "none",
2850
+ stroke: "currentColor",
2851
+ strokeLinecap: "round",
2852
+ strokeWidth: "1"
2853
+ }
2854
+ )
2855
+ }
2856
+ );
2857
+ }
2858
+ function Js() {
2859
+ return /* @__PURE__ */ d(
2860
+ "svg",
2861
+ {
2862
+ id: "Layer_1",
2863
+ style: "enable-background:new 0 0 154 70;",
2864
+ version: "1.1",
2865
+ viewBox: "0 0 154 70",
2866
+ x: "0px",
2867
+ xmlns: "http://www.w3.org/2000/svg",
2868
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
2869
+ xmlSpace: "preserve",
2870
+ y: "0px",
2871
+ children: [
2872
+ /* @__PURE__ */ d(
2873
+ "path",
2874
+ {
2875
+ className: "st0",
2876
+ d: "M98.1,35c0,11-9.4,20-21,20c-11.6,0-21-9-21-20s9.4-20,21-20C88.7,15,98.1,24,98.1,35z",
2877
+ fill: "none",
2878
+ stroke: "#FFFFFF",
2879
+ strokeWidth: "2"
2880
+ }
2881
+ ),
2882
+ /* @__PURE__ */ d(
2883
+ "path",
2884
+ {
2885
+ className: "st1",
2886
+ d: `M152.5,35c-0.2,0.2-0.5,0.5-0.8,0.8c-0.9,0.9-2.2,2.3-4,3.9c-3.5,3.3-8.6,7.6-15.2,11.9
2887
+ C119.3,60.3,100.3,69,77.1,69c-23.2,0-42.3-8.7-55.6-17.3C14.8,47.3,9.6,43,6.1,39.7c-1.8-1.6-3.1-3-4-3.9c-0.3-0.3-0.6-0.6-0.8-0.8
2888
+ c0.2-0.2,0.5-0.5,0.8-0.8c0.9-0.9,2.2-2.3,4-3.9c3.5-3.3,8.7-7.6,15.4-11.9C34.8,9.7,53.8,1,77.1,1c23.2,0,42.2,8.7,55.4,17.3
2889
+ c6.6,4.3,11.7,8.7,15.2,11.9c1.7,1.6,3.1,3,4,3.9C152,34.5,152.3,34.8,152.5,35z`,
2890
+ fill: "none",
2891
+ stroke: "#FFFFFF",
2892
+ strokeMiterlimit: "10",
2893
+ strokeWidth: "2"
2894
+ }
2895
+ )
2896
+ ]
2897
+ }
2898
+ );
2899
+ }
2900
+ const Qs = L.div`
2901
+ z-index: 1;
2902
+ position: absolute;
2903
+ top: 47%;
2904
+ left: 43%;
2905
+ transform: translate(-50%, -50%);
2906
+ width: 7%;
2907
+ aspect-ratio: 1;
2908
+
2909
+ @media (max-width: 768px) {
2910
+ width: 14%;
2911
+ }
2912
+
2913
+ ${(e) => e.$isAnimating && se`
2914
+ animation: ${As} ${cn} ${ln} both;
2915
+ animation-delay: ${sn};
2916
+ `}
2917
+ `, ec = L.div`
2918
+ z-index: 1;
2919
+ display: flex;
2920
+ justify-content: center;
2921
+ align-items: center;
2922
+ width: 100%;
2923
+ position: absolute;
2924
+ top: 50%;
2925
+ left: 50%;
2926
+ transform: translate(-50%, -50%) scale(0.6);
2927
+ opacity: 0;
2928
+
2929
+ ${(e) => e.$isAnimating && se`
2930
+ animation: ${Rs} ${bs} ${$s} both;
2931
+ animation-delay: ${Ss};
2932
+ `}
2933
+
2934
+ svg {
2935
+ display: inline-block;
2936
+ width: 100%;
2937
+ height: auto;
2938
+ filter: drop-shadow(0px 0px 5px rgba(2, 27, 65, 0.3));
2939
+ }
2940
+ `, tc = L.div`
2941
+ z-index: 1;
2942
+ position: absolute;
2943
+ width: 100%;
2944
+ height: 100%;
2945
+ color: ${(e) => e.$isInCandidateSelection ? "#00BFB2" : "white"};
2946
+ transform: scale(0);
2947
+ opacity: 0;
2948
+
2949
+ ${(e) => e.$isAnimating && se`
2950
+ animation: ${Ps} ${Ns} ${ks} both;
2951
+ animation-delay: ${Os};
2952
+ `}
2953
+
2954
+ svg {
2955
+ display: inline-block;
2956
+ width: 100%;
2957
+ height: auto;
2958
+ filter: drop-shadow(0px 0px 4px rgba(2, 27, 65, 0.3));
2959
+ }
2960
+ `, nc = ({ isAnimating: e, isInCandidateSelection: t }) => /* @__PURE__ */ d(Qs, { $isAnimating: e, children: [
2961
+ /* @__PURE__ */ d(tc, { $isAnimating: e, $isInCandidateSelection: t, children: /* @__PURE__ */ d(Ks, {}) }),
2962
+ /* @__PURE__ */ d(ec, { $isAnimating: e, children: /* @__PURE__ */ d(Js, {}) })
2963
+ ] }), rc = () => {
2964
+ const { cameraResolution: e, instruction: t, isMirroring: n } = Vs(), { magnifEyeError: r, magnifEyePhase: o, magnifEyeState: i } = Ys(), { instructions: a } = ve(), c = Zs(t.code, o), s = c === Ve.CANDIDATE_SELECTION, u = o === Ye.MIDDLE || o === Ye.CLOSEUP;
2965
+ if (i === we.ERROR)
2966
+ return /* @__PURE__ */ d(Co, { text: r == null ? void 0 : r.message });
2967
+ if ((i === we.RUNNING || i === we.WAITING) && e) {
2968
+ const f = cs(e);
2969
+ return /* @__PURE__ */ d(V, { children: [
2970
+ !u && /* @__PURE__ */ d(Gs, { cameraResolution: e, isImageMirror: n }),
2971
+ /* @__PURE__ */ d(
2972
+ Xs,
2973
+ {
2974
+ handleAnimationEnd: () => rs(gn.ANIMATION_END),
2975
+ height: e.height,
2976
+ initialPosition: f,
2977
+ isAnimating: u,
2978
+ isInCandidateSelection: s,
2979
+ width: e.width
2980
+ }
2981
+ ),
2982
+ c && /* @__PURE__ */ d(
2983
+ Ms,
2984
+ {
2985
+ cssBottom: (f.height + f.shiftY) * 100,
2986
+ isAnimating: u,
2987
+ isInCandidateSelection: s,
2988
+ isPortrait: e.width < e.height,
2989
+ children: a[c]
2990
+ }
2991
+ ),
2992
+ /* @__PURE__ */ d(nc, { isAnimating: u, isInCandidateSelection: s }),
2993
+ !u && /* @__PURE__ */ d(ys, { customControlEvent: be.CONTROL, isSwitchCameraDisabled: s })
2994
+ ] });
2995
+ }
2996
+ return /* @__PURE__ */ d(
2997
+ zs,
2998
+ {
2999
+ cameraHeight: e == null ? void 0 : e.height,
3000
+ cameraWidth: e == null ? void 0 : e.width,
3001
+ state: i
3002
+ }
3003
+ );
3004
+ }, oc = (e) => {
3005
+ var a, c;
3006
+ const t = { ...Da, ...e == null ? void 0 : e.instructions }, n = {
3007
+ [we.LOADING]: {
3008
+ ...hr.loading,
3009
+ ...(a = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : a.loading
3010
+ },
3011
+ [we.DONE]: { ...hr.done, ...(c = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : c.done }
3012
+ }, r = (e == null ? void 0 : e.backdropColor) ?? La, o = (e == null ? void 0 : e.showCameraButtons) ?? !1, i = ns(e == null ? void 0 : e.theme);
3013
+ return {
3014
+ backdropColor: r,
3015
+ instructions: t,
3016
+ appStateInstructions: n,
3017
+ showCameraButtons: o,
3018
+ theme: i
3019
+ };
3020
+ }, ic = ({ props: e }) => {
3021
+ const t = Ja(be.VIDEO_ELEMENT_SIZE);
3022
+ return /* @__PURE__ */ d(Za, { uiProps: oc(e), videoElementSize: t, children: /* @__PURE__ */ d(rc, {}) });
3023
+ };
3024
+ Fo(ic, "x-dot-magnifeye-liveness-ui", ["props"]);