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