@ahmed_hani/dot-auto-capture-ui 7.4.0 → 7.6.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/README.md +29 -7
- package/document.mjs +607 -584
- package/document.umd.js +35 -24
- package/face.mjs +410 -379
- package/face.umd.js +28 -17
- package/magnifeye-liveness.mjs +457 -430
- package/magnifeye-liveness.umd.js +36 -26
- package/multi-range-liveness.mjs +2953 -0
- package/multi-range-liveness.umd.js +257 -0
- package/package.json +14 -9
- package/palm.mjs +750 -687
- package/palm.umd.js +36 -25
- package/smile-liveness.mjs +584 -558
- package/smile-liveness.umd.js +44 -33
- package/ui/src/types/multi-range.d.ts +28 -0
- package/ui/src/types/palm.d.ts +2 -1
- package/ui-common/src/types/common.d.ts +14 -4
- package/ui-common/src/types/events/common.d.ts +41 -0
- package/ui-common/src/types/events/index.d.ts +1 -0
- package/ui-common/src/types/events/multi-range.d.ts +16 -0
- package/ui-common/src/types/eye-gaze.d.ts +1 -0
- package/ui-common/src/types/index.d.ts +1 -0
- package/ui-common/src/types/magnifeye.d.ts +1 -0
- package/ui-common/src/types/multi-range.d.ts +37 -0
- package/ui-common/src/types/smile.d.ts +1 -0
- package/tsconfig.production.json +0 -22
package/document.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var bo = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var tt = (e, t, r) =>
|
|
4
|
-
var qe, C,
|
|
2
|
+
var Eo = (e, t, r) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var tt = (e, t, r) => Eo(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
var qe, C, _n, de, Er, mn, gn, Ln, ar, Zt, Bt, yn, Ge = {}, vn = [], Vo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
|
|
5
5
|
function X(e, t) {
|
|
6
6
|
for (var r in t) e[r] = t[r];
|
|
7
7
|
return e;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function sr(e) {
|
|
10
10
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function T(e, t, r) {
|
|
13
13
|
var n, o, i, a = {};
|
|
14
14
|
for (i in t) i == "key" ? n = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
|
|
15
15
|
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]);
|
|
16
16
|
return We(e, a, n, o, null);
|
|
17
17
|
}
|
|
18
18
|
function We(e, t, r, n, o) {
|
|
19
|
-
var i = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++
|
|
19
|
+
var i = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++_n, __i: -1, __u: 0 };
|
|
20
20
|
return o == null && C.vnode != null && C.vnode(i), i;
|
|
21
21
|
}
|
|
22
22
|
function ko() {
|
|
@@ -25,49 +25,49 @@ function ko() {
|
|
|
25
25
|
function H(e) {
|
|
26
26
|
return e.children;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function j(e, t) {
|
|
29
29
|
this.props = e, this.context = t;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
if (t == null) return e.__ ?
|
|
31
|
+
function Ee(e, t) {
|
|
32
|
+
if (t == null) return e.__ ? Ee(e.__, e.__i + 1) : null;
|
|
33
33
|
for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
|
|
34
|
-
return typeof e.type == "function" ?
|
|
34
|
+
return typeof e.type == "function" ? Ee(e) : null;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Cn(e) {
|
|
37
37
|
var t, r;
|
|
38
38
|
if ((e = e.__) != null && e.__c != null) {
|
|
39
39
|
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) {
|
|
40
40
|
e.__e = e.__c.base = r.__e;
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return Cn(e);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
function Ut(e) {
|
|
47
|
-
(!e.__d && (e.__d = !0) && de.push(e) && !pt.__r++ ||
|
|
47
|
+
(!e.__d && (e.__d = !0) && de.push(e) && !pt.__r++ || Er != C.debounceRendering) && ((Er = C.debounceRendering) || mn)(pt);
|
|
48
48
|
}
|
|
49
49
|
function pt() {
|
|
50
|
-
for (var e, t, r, n, o, i, a, c = 1; de.length; ) de.length > c && de.sort(
|
|
50
|
+
for (var e, t, r, n, o, i, a, c = 1; de.length; ) de.length > c && de.sort(gn), e = de.shift(), c = de.length, e.__d && (r = void 0, o = (n = (t = e).__v).__e, i = [], a = [], t.__P && ((r = X({}, n)).__v = n.__v + 1, C.vnode && C.vnode(r), cr(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, bn(i, r, a), r.__e != o && Cn(r)));
|
|
51
51
|
pt.__r = 0;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
var l, p, f, _, L, y, m = n && n.__k ||
|
|
55
|
-
for (u = xo(r, t, m, u, g), l = 0; l < g; l++) (f = r.__k[l]) != null && (p = f.__i == -1 ? Ge : m[f.__i] || Ge, f.__i = l, y =
|
|
53
|
+
function wn(e, t, r, n, o, i, a, c, u, d, h) {
|
|
54
|
+
var l, p, f, _, L, y, m = n && n.__k || vn, g = t.length;
|
|
55
|
+
for (u = xo(r, t, m, u, g), l = 0; l < g; l++) (f = r.__k[l]) != null && (p = f.__i == -1 ? Ge : m[f.__i] || Ge, f.__i = l, y = cr(e, f, p, o, i, a, c, u, d, h), _ = f.__e, f.ref && p.ref != f.ref && (p.ref && lr(p.ref, null, f), h.push(f.ref, f.__c || _, f)), L == null && _ != null && (L = _), 4 & f.__u || p.__k === f.__k ? u = Sn(f, u, e) : typeof f.type == "function" && y !== void 0 ? u = y : _ && (u = _.nextSibling), f.__u &= -7);
|
|
56
56
|
return r.__e = L, u;
|
|
57
57
|
}
|
|
58
58
|
function xo(e, t, r, n, o) {
|
|
59
59
|
var i, a, c, u, d, h = r.length, l = h, p = 0;
|
|
60
|
-
for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (u = i + p, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? We(null, a, null, null, null) : Ye(a) ? We(H, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? We(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, c = null, (d = a.__i =
|
|
61
|
-
if (l) for (i = 0; i < h; i++) (c = r[i]) != null && (2 & c.__u) == 0 && (c.__e == n && (n =
|
|
60
|
+
for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (u = i + p, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? We(null, a, null, null, null) : Ye(a) ? We(H, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? We(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, c = null, (d = a.__i = $o(a, r, u, l)) != -1 && (l--, (c = r[d]) && (c.__u |= 2)), c == null || c.__v == null ? (d == -1 && (o > h ? p-- : o < h && p++), typeof a.type != "function" && (a.__u |= 4)) : d != u && (d == u - 1 ? p-- : d == u + 1 ? p++ : (d > u ? p-- : p++, a.__u |= 4))) : e.__k[i] = null;
|
|
61
|
+
if (l) for (i = 0; i < h; i++) (c = r[i]) != null && (2 & c.__u) == 0 && (c.__e == n && (n = Ee(c)), Vn(c, c));
|
|
62
62
|
return n;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Sn(e, t, r) {
|
|
65
65
|
var n, o;
|
|
66
66
|
if (typeof e.type == "function") {
|
|
67
|
-
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t =
|
|
67
|
+
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t = Sn(n[o], t, r));
|
|
68
68
|
return t;
|
|
69
69
|
}
|
|
70
|
-
e.__e != t && (t && e.type && !r.contains(t) && (t =
|
|
70
|
+
e.__e != t && (t && e.type && !r.contains(t) && (t = Ee(e)), r.insertBefore(e.__e, t || null), t = e.__e);
|
|
71
71
|
do
|
|
72
72
|
t = t && t.nextSibling;
|
|
73
73
|
while (t != null && t.nodeType == 8);
|
|
@@ -78,7 +78,7 @@ function te(e, t) {
|
|
|
78
78
|
te(r, t);
|
|
79
79
|
}) : t.push(e)), t;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function $o(e, t, r, n) {
|
|
82
82
|
var o, i, a = e.key, c = e.type, u = t[r];
|
|
83
83
|
if (u === null && e.key == null || u && a == u.key && c == u.type && (2 & u.__u) == 0) return r;
|
|
84
84
|
if (n > (u != null && (2 & u.__u) == 0 ? 1 : 0)) for (o = r - 1, i = r + 1; o >= 0 || i < t.length; ) {
|
|
@@ -94,7 +94,7 @@ function Oo(e, t, r, n) {
|
|
|
94
94
|
return -1;
|
|
95
95
|
}
|
|
96
96
|
function Vr(e, t, r) {
|
|
97
|
-
t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" ||
|
|
97
|
+
t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || Vo.test(t) ? r : r + "px";
|
|
98
98
|
}
|
|
99
99
|
function rt(e, t, r, n, o) {
|
|
100
100
|
var i;
|
|
@@ -103,7 +103,7 @@ function rt(e, t, r, n, o) {
|
|
|
103
103
|
if (typeof n == "string" && (e.style.cssText = n = ""), n) for (t in n) r && t in r || Vr(e.style, t, "");
|
|
104
104
|
if (r) for (t in r) n && r[t] == n[t] || Vr(e.style, t, r[t]);
|
|
105
105
|
}
|
|
106
|
-
else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(
|
|
106
|
+
else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(Ln, "$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 = ar, e.addEventListener(t, i ? Bt : Zt, i)) : e.removeEventListener(t, i ? Bt : Zt, i);
|
|
107
107
|
else {
|
|
108
108
|
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
109
109
|
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
@@ -114,22 +114,22 @@ function rt(e, t, r, n, o) {
|
|
|
114
114
|
typeof r == "function" || (r == null || r === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function kr(e) {
|
|
118
118
|
return function(t) {
|
|
119
119
|
if (this.l) {
|
|
120
120
|
var r = this.l[t.type + e];
|
|
121
|
-
if (t.t == null) t.t =
|
|
121
|
+
if (t.t == null) t.t = ar++;
|
|
122
122
|
else if (t.t < r.u) return;
|
|
123
123
|
return r(C.event ? C.event(t) : t);
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
var h, l, p, f, _, L, y, m, g,
|
|
127
|
+
function cr(e, t, r, n, o, i, a, c, u, d) {
|
|
128
|
+
var h, l, p, f, _, L, y, m, g, V, b, x, S, v, A, B, De, U = t.type;
|
|
129
129
|
if (t.constructor != null) return null;
|
|
130
130
|
128 & r.__u && (u = !!(32 & r.__u), i = [c = t.__e = r.__e]), (h = C.__b) && h(t);
|
|
131
131
|
e: if (typeof U == "function") try {
|
|
132
|
-
if (m = t.props, g = "prototype" in U && U.prototype.render,
|
|
132
|
+
if (m = t.props, g = "prototype" in U && U.prototype.render, V = (h = U.contextType) && n[h.__c], b = h ? V ? V.props.value : h.__ : n, r.__c ? y = (l = t.__c = r.__c).__ = l.__E : (g ? t.__c = l = new U(m, b) : (t.__c = l = new j(m, b), l.constructor = U, l.render = Mo), V && V.sub(l), l.props = m, l.state || (l.state = {}), l.context = b, l.__n = n, p = l.__d = !0, l.__h = [], l._sb = []), g && l.__s == null && (l.__s = l.state), g && U.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = X({}, l.__s)), X(l.__s, U.getDerivedStateFromProps(m, l.__s))), f = l.props, _ = l.state, l.__v = t, p) g && U.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), g && l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
133
133
|
else {
|
|
134
134
|
if (g && U.getDerivedStateFromProps == null && m !== f && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, b), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, b) === !1 || t.__v == r.__v) {
|
|
135
135
|
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(le) {
|
|
@@ -148,20 +148,20 @@ function sr(e, t, r, n, o, i, a, c, u, d) {
|
|
|
148
148
|
} else do
|
|
149
149
|
l.__d = !1, S && S(t), h = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
150
150
|
while (l.__d && ++v < 25);
|
|
151
|
-
l.state = l.__s, l.getChildContext != null && (n = X(X({}, n), l.getChildContext())), g && !p && l.getSnapshotBeforeUpdate != null && (L = l.getSnapshotBeforeUpdate(f, _)), B = h, h != null && h.type === H && h.key == null && (B =
|
|
151
|
+
l.state = l.__s, l.getChildContext != null && (n = X(X({}, n), l.getChildContext())), g && !p && l.getSnapshotBeforeUpdate != null && (L = l.getSnapshotBeforeUpdate(f, _)), B = h, h != null && h.type === H && h.key == null && (B = En(h.props.children)), c = wn(e, Ye(B) ? B : [B], t, r, n, o, i, a, c, u, d), l.base = t.__e, t.__u &= -161, l.__h.length && a.push(l), y && (l.__E = l.__ = null);
|
|
152
152
|
} catch (le) {
|
|
153
153
|
if (t.__v = null, u || i != null) if (le.then) {
|
|
154
154
|
for (t.__u |= u ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
|
|
155
155
|
i[i.indexOf(c)] = null, t.__e = c;
|
|
156
|
-
} else for (De = i.length; De--; )
|
|
156
|
+
} else for (De = i.length; De--; ) sr(i[De]);
|
|
157
157
|
else t.__e = r.__e, t.__k = r.__k;
|
|
158
158
|
C.__e(le, t, r);
|
|
159
159
|
}
|
|
160
|
-
else i == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : c = t.__e =
|
|
160
|
+
else i == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : c = t.__e = Oo(r.__e, t, r, n, o, i, a, u, d);
|
|
161
161
|
return (h = C.diffed) && h(t), 128 & t.__u ? void 0 : c;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
for (var n = 0; n < r.length; n++)
|
|
163
|
+
function bn(e, t, r) {
|
|
164
|
+
for (var n = 0; n < r.length; n++) lr(r[n], r[++n], r[++n]);
|
|
165
165
|
C.__c && C.__c(t, e), e.some(function(o) {
|
|
166
166
|
try {
|
|
167
167
|
e = o.__h, o.__h = [], e.some(function(i) {
|
|
@@ -172,10 +172,10 @@ function Sn(e, t, r) {
|
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(
|
|
175
|
+
function En(e) {
|
|
176
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(En) : X({}, e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Oo(e, t, r, n, o, i, a, c, u) {
|
|
179
179
|
var d, h, l, p, f, _, L, y = r.props, m = t.props, g = t.type;
|
|
180
180
|
if (g == "svg" ? o = "http://www.w3.org/2000/svg" : g == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
181
181
|
for (d = 0; d < i.length; d++) if ((f = i[d]) && "setAttribute" in f == !!g && (g ? f.localName == g : f.nodeType == 3)) {
|
|
@@ -199,12 +199,12 @@ function $o(e, t, r, n, o, i, a, c, u) {
|
|
|
199
199
|
}
|
|
200
200
|
for (d in m) f = m[d], d == "children" ? p = f : d == "dangerouslySetInnerHTML" ? h = f : d == "value" ? _ = f : d == "checked" ? L = f : c && typeof f != "function" || y[d] === f || rt(e, d, f, y[d], o);
|
|
201
201
|
if (h) c || l && (h.__html == l.__html || h.__html == e.innerHTML) || (e.innerHTML = h.__html), t.__k = [];
|
|
202
|
-
else if (l && (e.innerHTML = ""),
|
|
202
|
+
else if (l && (e.innerHTML = ""), wn(t.type == "template" ? e.content : e, Ye(p) ? p : [p], t, r, n, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : r.__k && Ee(r, 0), c, u), i != null) for (d = i.length; d--; ) sr(i[d]);
|
|
203
203
|
c || (d = "value", g == "progress" && _ == null ? e.removeAttribute("value") : _ != null && (_ !== e[d] || g == "progress" && !_ || g == "option" && _ != y[d]) && rt(e, d, _, y[d], o), d = "checked", L != null && L != e[d] && rt(e, d, L, y[d], o));
|
|
204
204
|
}
|
|
205
205
|
return e;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function lr(e, t, r) {
|
|
208
208
|
try {
|
|
209
209
|
if (typeof e == "function") {
|
|
210
210
|
var n = typeof e.__u == "function";
|
|
@@ -216,7 +216,7 @@ function cr(e, t, r) {
|
|
|
216
216
|
}
|
|
217
217
|
function Vn(e, t, r) {
|
|
218
218
|
var n, o;
|
|
219
|
-
if (C.unmount && C.unmount(e), (n = e.ref) && (n.current && n.current != e.__e ||
|
|
219
|
+
if (C.unmount && C.unmount(e), (n = e.ref) && (n.current && n.current != e.__e || lr(n, null, t)), (n = e.__c) != null) {
|
|
220
220
|
if (n.componentWillUnmount) try {
|
|
221
221
|
n.componentWillUnmount();
|
|
222
222
|
} catch (i) {
|
|
@@ -225,24 +225,24 @@ function Vn(e, t, r) {
|
|
|
225
225
|
n.base = n.__P = null;
|
|
226
226
|
}
|
|
227
227
|
if (n = e.__k) for (o = 0; o < n.length; o++) n[o] && Vn(n[o], t, r || typeof e.type != "function");
|
|
228
|
-
r ||
|
|
228
|
+
r || sr(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Mo(e, t, r) {
|
|
231
231
|
return this.constructor(e, r);
|
|
232
232
|
}
|
|
233
233
|
function se(e, t, r) {
|
|
234
234
|
var n, o, i, a;
|
|
235
|
-
t == document && (t = document.documentElement), C.__ && C.__(e, t), o = (n = typeof r == "function") ? null : r && r.__k || t.__k, i = [], a = [],
|
|
235
|
+
t == document && (t = document.documentElement), C.__ && C.__(e, t), o = (n = typeof r == "function") ? null : r && r.__k || t.__k, i = [], a = [], cr(t, e = (!n && r || t).__k = T(H, null, [e]), o || Ge, Ge, 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), bn(i, e, a);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
se(e, t,
|
|
237
|
+
function ur(e, t) {
|
|
238
|
+
se(e, t, ur);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function dr(e, t, r) {
|
|
241
241
|
var n, o, i, a, c = X({}, e.props);
|
|
242
242
|
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];
|
|
243
243
|
return arguments.length > 2 && (c.children = arguments.length > 3 ? qe.call(arguments, 2) : r), We(e.type, c, n || e.key, o || e.ref, null);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function kn(e) {
|
|
246
246
|
function t(r) {
|
|
247
247
|
var n, o;
|
|
248
248
|
return this.getChildContext || (n = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
|
|
@@ -261,27 +261,27 @@ function En(e) {
|
|
|
261
261
|
};
|
|
262
262
|
}), r.children;
|
|
263
263
|
}
|
|
264
|
-
return t.__c = "__cC" +
|
|
264
|
+
return t.__c = "__cC" + yn++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(r, n) {
|
|
265
265
|
return r.children(n);
|
|
266
266
|
}).contextType = t, t;
|
|
267
267
|
}
|
|
268
|
-
qe =
|
|
268
|
+
qe = vn.slice, C = { __e: function(e, t, r, n) {
|
|
269
269
|
for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
270
270
|
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
271
|
} catch (c) {
|
|
272
272
|
e = c;
|
|
273
273
|
}
|
|
274
274
|
throw e;
|
|
275
|
-
} },
|
|
275
|
+
} }, _n = 0, j.prototype.setState = function(e, t) {
|
|
276
276
|
var r;
|
|
277
277
|
r = this.__s != null && this.__s != this.state ? this.__s : this.__s = X({}, this.state), typeof e == "function" && (e = e(X({}, r), this.props)), e && X(r, e), e != null && this.__v && (t && this._sb.push(t), Ut(this));
|
|
278
|
-
},
|
|
278
|
+
}, j.prototype.forceUpdate = function(e) {
|
|
279
279
|
this.__v && (this.__e = !0, e && this.__h.push(e), Ut(this));
|
|
280
|
-
},
|
|
280
|
+
}, j.prototype.render = H, de = [], mn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, gn = function(e, t) {
|
|
281
281
|
return e.__v.__b - t.__v.__b;
|
|
282
|
-
}, pt.__r = 0,
|
|
283
|
-
function
|
|
284
|
-
return (
|
|
282
|
+
}, pt.__r = 0, Ln = /(PointerCapture)$|Capture$/i, ar = 0, Zt = kr(!1), Bt = kr(!0), yn = 0;
|
|
283
|
+
function fr() {
|
|
284
|
+
return (fr = Object.assign ? Object.assign.bind() : function(e) {
|
|
285
285
|
for (var t = 1; t < arguments.length; t++) {
|
|
286
286
|
var r = arguments[t];
|
|
287
287
|
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
@@ -289,8 +289,8 @@ function dr() {
|
|
|
289
289
|
return e;
|
|
290
290
|
}).apply(this, arguments);
|
|
291
291
|
}
|
|
292
|
-
var
|
|
293
|
-
function
|
|
292
|
+
var No = ["context", "children"];
|
|
293
|
+
function Io(e) {
|
|
294
294
|
this.getChildContext = function() {
|
|
295
295
|
return e.context;
|
|
296
296
|
};
|
|
@@ -299,41 +299,41 @@ function Mo(e) {
|
|
|
299
299
|
var i, a, c = {}, u = Object.keys(n);
|
|
300
300
|
for (a = 0; a < u.length; a++) o.indexOf(i = u[a]) >= 0 || (c[i] = n[i]);
|
|
301
301
|
return c;
|
|
302
|
-
}(e,
|
|
303
|
-
return
|
|
302
|
+
}(e, No);
|
|
303
|
+
return dr(t, r);
|
|
304
304
|
}
|
|
305
305
|
function Do() {
|
|
306
306
|
var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
307
|
-
this.dispatchEvent(e), this._vdom =
|
|
307
|
+
this.dispatchEvent(e), this._vdom = T(Io, fr({}, this._props, { context: e.detail.context }), function t(r, n) {
|
|
308
308
|
if (r.nodeType === 3) return r.data;
|
|
309
309
|
if (r.nodeType !== 1) return null;
|
|
310
310
|
var o = [], i = {}, a = 0, c = r.attributes, u = r.childNodes;
|
|
311
|
-
for (a = c.length; a--; ) c[a].name !== "slot" && (i[c[a].name] = c[a].value, i[
|
|
311
|
+
for (a = c.length; a--; ) c[a].name !== "slot" && (i[c[a].name] = c[a].value, i[xn(c[a].name)] = c[a].value);
|
|
312
312
|
for (a = u.length; a--; ) {
|
|
313
313
|
var d = t(u[a], null), h = u[a].slot;
|
|
314
|
-
h ? i[h] =
|
|
314
|
+
h ? i[h] = T(xr, { name: h }, d) : o[a] = d;
|
|
315
315
|
}
|
|
316
|
-
var l = n ?
|
|
317
|
-
return
|
|
318
|
-
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ?
|
|
316
|
+
var l = n ? T(xr, null, o) : o;
|
|
317
|
+
return T(n || r.nodeName.toLowerCase(), i, l);
|
|
318
|
+
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? ur : se)(this._vdom, this._root);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function xn(e) {
|
|
321
321
|
return e.replace(/-(\w)/g, function(t, r) {
|
|
322
322
|
return r ? r.toUpperCase() : "";
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function To(e, t, r) {
|
|
326
326
|
if (this._vdom) {
|
|
327
327
|
var n = {};
|
|
328
|
-
n[e] = r = r ?? void 0, n[
|
|
328
|
+
n[e] = r = r ?? void 0, n[xn(e)] = r, this._vdom = dr(this._vdom, n), se(this._vdom, this._root);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Ro() {
|
|
332
332
|
se(this._vdom = null, this._root);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function xr(e, t) {
|
|
335
335
|
var r = this;
|
|
336
|
-
return
|
|
336
|
+
return T("slot", fr({}, e, { ref: function(n) {
|
|
337
337
|
n ? (r.ref = n, r._listener || (r._listener = function(o) {
|
|
338
338
|
o.stopPropagation(), o.detail.context = t;
|
|
339
339
|
}, n.addEventListener("_preact", r._listener))) : r.ref.removeEventListener("_preact", r._listener);
|
|
@@ -344,7 +344,7 @@ function Ao(e, t, r, n) {
|
|
|
344
344
|
var i = Reflect.construct(HTMLElement, [], o);
|
|
345
345
|
return i._vdomComponent = e, i._root = i, i;
|
|
346
346
|
}
|
|
347
|
-
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Do, o.prototype.attributeChangedCallback =
|
|
347
|
+
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Do, o.prototype.attributeChangedCallback = To, o.prototype.disconnectedCallback = Ro, r = r || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = r, r.forEach(function(i) {
|
|
348
348
|
Object.defineProperty(o.prototype, i, { get: function() {
|
|
349
349
|
return this._vdom.props[i];
|
|
350
350
|
}, set: function(a) {
|
|
@@ -363,12 +363,12 @@ function s(e, t, r, n, o, i) {
|
|
|
363
363
|
if (typeof e == "function" && (a = e.defaultProps)) for (c in a) u[c] === void 0 && (u[c] = a[c]);
|
|
364
364
|
return C.vnode && C.vnode(d), d;
|
|
365
365
|
}
|
|
366
|
-
const
|
|
366
|
+
const $r = {
|
|
367
367
|
SWITCH_CAMERA: "switch-camera",
|
|
368
368
|
TOGGLE_MIRROR: "toggle-mirror"
|
|
369
369
|
};
|
|
370
|
-
var pe = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", e.CONTROL = "document-auto-capture:control", e.DETECTED_DOCUMENT_CHANGED = "document-auto-capture:detected-document-changed", e.DOCUMENT_DETECTION = "document-auto-capture:document-detection", e.INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", e.INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", e.STATE_CHANGED = "document-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size", e))(pe || {}),
|
|
371
|
-
const
|
|
370
|
+
var pe = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", e.CONTROL = "document-auto-capture:control", e.DETECTED_DOCUMENT_CHANGED = "document-auto-capture:detected-document-changed", e.DOCUMENT_DETECTION = "document-auto-capture:document-detection", e.INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", e.INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", e.STATE_CHANGED = "document-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size", e))(pe || {}), $n = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "palm-capture:camera-props-changed", e.CONTROL = "palm-capture:control", e.DETECTED_PALM_CHANGED = "palm-capture:detected-palm-changed", e.INSTRUCTION_CHANGED = "palm-capture:instruction-changed", e.STATE_CHANGED = "palm-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "palm-capture:video-element-size", e))($n || {});
|
|
371
|
+
const R = {
|
|
372
372
|
CANDIDATE_SELECTION: "candidate_selection",
|
|
373
373
|
DOCUMENT_CENTERING: "document_centering",
|
|
374
374
|
DOCUMENT_NOT_PRESENT: "document_not_present",
|
|
@@ -377,27 +377,28 @@ const T = {
|
|
|
377
377
|
BRIGHTNESS_TOO_LOW: "brightness_too_low",
|
|
378
378
|
BRIGHTNESS_TOO_HIGH: "brightness_too_high",
|
|
379
379
|
HOTSPOTS_PRESENT: "hotspots_present"
|
|
380
|
-
},
|
|
380
|
+
}, G = {
|
|
381
381
|
LOADING: "LOADING",
|
|
382
382
|
ERROR: "ERROR",
|
|
383
383
|
WAITING: "WAITING",
|
|
384
|
-
RUNNING: "RUNNING"
|
|
384
|
+
RUNNING: "RUNNING",
|
|
385
|
+
COMPLETE: "COMPLETE"
|
|
385
386
|
};
|
|
386
|
-
var ce,
|
|
387
|
-
function
|
|
388
|
-
|
|
389
|
-
var r =
|
|
387
|
+
var ce, O, Nt, Or, Ve = 0, On = [], M = C, Mr = M.__b, Nr = M.__r, Ir = M.diffed, Dr = M.__c, Tr = M.unmount, Rr = M.__;
|
|
388
|
+
function Me(e, t) {
|
|
389
|
+
M.__h && M.__h(O, e, Ve || t), Ve = 0;
|
|
390
|
+
var r = O.__H || (O.__H = { __: [], __h: [] });
|
|
390
391
|
return e >= r.__.length && r.__.push({}), r.__[e];
|
|
391
392
|
}
|
|
392
|
-
function
|
|
393
|
-
return
|
|
393
|
+
function z(e) {
|
|
394
|
+
return Ve = 1, hr(In, e);
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
-
var n =
|
|
396
|
+
function hr(e, t, r) {
|
|
397
|
+
var n = Me(ce++, 2);
|
|
397
398
|
if (n.t = e, !n.__c && (n.__ = [r ? r(t) : In(void 0, t), function(c) {
|
|
398
399
|
var u = n.__N ? n.__N[0] : n.__[0], d = n.t(u, c);
|
|
399
400
|
u !== d && (n.__N = [d, n.__[1]], n.__c.setState({}));
|
|
400
|
-
}], n.__c =
|
|
401
|
+
}], n.__c = O, !O.__f)) {
|
|
401
402
|
var o = function(c, u, d) {
|
|
402
403
|
if (!n.__c.__H) return !0;
|
|
403
404
|
var h = n.__c.__H.__.filter(function(p) {
|
|
@@ -414,33 +415,33 @@ function fr(e, t, r) {
|
|
|
414
415
|
}
|
|
415
416
|
}), i && i.call(this, c, u, d) || l;
|
|
416
417
|
};
|
|
417
|
-
|
|
418
|
-
var i =
|
|
419
|
-
|
|
418
|
+
O.__f = !0;
|
|
419
|
+
var i = O.shouldComponentUpdate, a = O.componentWillUpdate;
|
|
420
|
+
O.componentWillUpdate = function(c, u, d) {
|
|
420
421
|
if (this.__e) {
|
|
421
422
|
var h = i;
|
|
422
423
|
i = void 0, o(c, u, d), i = h;
|
|
423
424
|
}
|
|
424
425
|
a && a.call(this, c, u, d);
|
|
425
|
-
},
|
|
426
|
+
}, O.shouldComponentUpdate = o;
|
|
426
427
|
}
|
|
427
428
|
return n.__N || n.__;
|
|
428
429
|
}
|
|
429
430
|
function ne(e, t) {
|
|
430
|
-
var r =
|
|
431
|
-
!
|
|
431
|
+
var r = Me(ce++, 3);
|
|
432
|
+
!M.__s && pr(r.__H, t) && (r.__ = e, r.u = t, O.__H.__h.push(r));
|
|
432
433
|
}
|
|
433
|
-
function
|
|
434
|
-
var r =
|
|
435
|
-
!
|
|
434
|
+
function Ne(e, t) {
|
|
435
|
+
var r = Me(ce++, 4);
|
|
436
|
+
!M.__s && pr(r.__H, t) && (r.__ = e, r.u = t, O.__h.push(r));
|
|
436
437
|
}
|
|
437
438
|
function Xe(e) {
|
|
438
|
-
return
|
|
439
|
+
return Ve = 5, re(function() {
|
|
439
440
|
return { current: e };
|
|
440
441
|
}, []);
|
|
441
442
|
}
|
|
442
|
-
function
|
|
443
|
-
|
|
443
|
+
function Mn(e, t, r) {
|
|
444
|
+
Ve = 6, Ne(function() {
|
|
444
445
|
if (typeof e == "function") {
|
|
445
446
|
var n = e(t());
|
|
446
447
|
return function() {
|
|
@@ -453,25 +454,25 @@ function $n(e, t, r) {
|
|
|
453
454
|
}, r == null ? r : r.concat(e));
|
|
454
455
|
}
|
|
455
456
|
function re(e, t) {
|
|
456
|
-
var r =
|
|
457
|
-
return
|
|
457
|
+
var r = Me(ce++, 7);
|
|
458
|
+
return pr(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
|
|
458
459
|
}
|
|
459
460
|
function _e(e, t) {
|
|
460
|
-
return
|
|
461
|
+
return Ve = 8, re(function() {
|
|
461
462
|
return e;
|
|
462
463
|
}, t);
|
|
463
464
|
}
|
|
464
465
|
function Ke(e) {
|
|
465
|
-
var t =
|
|
466
|
-
return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(
|
|
466
|
+
var t = O.context[e.__c], r = Me(ce++, 9);
|
|
467
|
+
return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(O)), t.props.value) : e.__;
|
|
467
468
|
}
|
|
468
469
|
function _t(e, t) {
|
|
469
|
-
|
|
470
|
+
M.useDebugValue && M.useDebugValue(t ? t(e) : e);
|
|
470
471
|
}
|
|
471
472
|
function Nn() {
|
|
472
|
-
var e =
|
|
473
|
+
var e = Me(ce++, 11);
|
|
473
474
|
if (!e.__) {
|
|
474
|
-
for (var t =
|
|
475
|
+
for (var t = O.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
475
476
|
var r = t.__m || (t.__m = [0, 0]);
|
|
476
477
|
e.__ = "P" + r[0] + "-" + r[1]++;
|
|
477
478
|
}
|
|
@@ -481,26 +482,26 @@ function Ho() {
|
|
|
481
482
|
for (var e; e = On.shift(); ) if (e.__P && e.__H) try {
|
|
482
483
|
e.__H.__h.forEach(st), e.__H.__h.forEach(Wt), e.__H.__h = [];
|
|
483
484
|
} catch (t) {
|
|
484
|
-
e.__H.__h = [],
|
|
485
|
+
e.__H.__h = [], M.__e(t, e.__v);
|
|
485
486
|
}
|
|
486
487
|
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
},
|
|
488
|
+
M.__b = function(e) {
|
|
489
|
+
O = null, Mr && Mr(e);
|
|
490
|
+
}, M.__ = function(e, t) {
|
|
490
491
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Rr && Rr(e, t);
|
|
491
|
-
},
|
|
492
|
+
}, M.__r = function(e) {
|
|
492
493
|
Nr && Nr(e), ce = 0;
|
|
493
|
-
var t = (
|
|
494
|
-
t && (
|
|
494
|
+
var t = (O = e.__c).__H;
|
|
495
|
+
t && (Nt === O ? (t.__h = [], O.__h = [], t.__.forEach(function(r) {
|
|
495
496
|
r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
|
|
496
|
-
})) : (t.__h.forEach(st), t.__h.forEach(Wt), t.__h = [], ce = 0)),
|
|
497
|
-
},
|
|
497
|
+
})) : (t.__h.forEach(st), t.__h.forEach(Wt), t.__h = [], ce = 0)), Nt = O;
|
|
498
|
+
}, M.diffed = function(e) {
|
|
498
499
|
Ir && Ir(e);
|
|
499
500
|
var t = e.__c;
|
|
500
|
-
t && t.__H && (t.__H.__h.length && (On.push(t) !== 1 && Or ===
|
|
501
|
+
t && t.__H && (t.__H.__h.length && (On.push(t) !== 1 && Or === M.requestAnimationFrame || ((Or = M.requestAnimationFrame) || Zo)(Ho)), t.__H.__.forEach(function(r) {
|
|
501
502
|
r.u && (r.__H = r.u), r.u = void 0;
|
|
502
|
-
})),
|
|
503
|
-
},
|
|
503
|
+
})), Nt = O = null;
|
|
504
|
+
}, M.__c = function(e, t) {
|
|
504
505
|
t.some(function(r) {
|
|
505
506
|
try {
|
|
506
507
|
r.__h.forEach(st), r.__h = r.__h.filter(function(n) {
|
|
@@ -509,11 +510,11 @@ N.__b = function(e) {
|
|
|
509
510
|
} catch (n) {
|
|
510
511
|
t.some(function(o) {
|
|
511
512
|
o.__h && (o.__h = []);
|
|
512
|
-
}), t = [],
|
|
513
|
+
}), t = [], M.__e(n, r.__v);
|
|
513
514
|
}
|
|
514
|
-
}),
|
|
515
|
-
},
|
|
516
|
-
|
|
515
|
+
}), Dr && Dr(e, t);
|
|
516
|
+
}, M.unmount = function(e) {
|
|
517
|
+
Tr && Tr(e);
|
|
517
518
|
var t, r = e.__c;
|
|
518
519
|
r && r.__H && (r.__H.__.forEach(function(n) {
|
|
519
520
|
try {
|
|
@@ -521,24 +522,24 @@ N.__b = function(e) {
|
|
|
521
522
|
} catch (o) {
|
|
522
523
|
t = o;
|
|
523
524
|
}
|
|
524
|
-
}), r.__H = void 0, t &&
|
|
525
|
+
}), r.__H = void 0, t && M.__e(t, r.__v));
|
|
525
526
|
};
|
|
526
|
-
var
|
|
527
|
+
var Ar = typeof requestAnimationFrame == "function";
|
|
527
528
|
function Zo(e) {
|
|
528
529
|
var t, r = function() {
|
|
529
|
-
clearTimeout(n),
|
|
530
|
+
clearTimeout(n), Ar && cancelAnimationFrame(t), setTimeout(e);
|
|
530
531
|
}, n = setTimeout(r, 100);
|
|
531
|
-
|
|
532
|
+
Ar && (t = requestAnimationFrame(r));
|
|
532
533
|
}
|
|
533
534
|
function st(e) {
|
|
534
|
-
var t =
|
|
535
|
-
typeof r == "function" && (e.__c = void 0, r()),
|
|
535
|
+
var t = O, r = e.__c;
|
|
536
|
+
typeof r == "function" && (e.__c = void 0, r()), O = t;
|
|
536
537
|
}
|
|
537
538
|
function Wt(e) {
|
|
538
|
-
var t =
|
|
539
|
-
e.__c = e.__(),
|
|
539
|
+
var t = O;
|
|
540
|
+
e.__c = e.__(), O = t;
|
|
540
541
|
}
|
|
541
|
-
function
|
|
542
|
+
function pr(e, t) {
|
|
542
543
|
return !e || e.length !== t.length || t.some(function(r, n) {
|
|
543
544
|
return r !== e[n];
|
|
544
545
|
});
|
|
@@ -572,26 +573,26 @@ var Uo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
572
573
|
}
|
|
573
574
|
/* Z+1 */
|
|
574
575
|
);
|
|
575
|
-
function
|
|
576
|
+
function Dn(e, t) {
|
|
576
577
|
for (var r in t) e[r] = t[r];
|
|
577
578
|
return e;
|
|
578
579
|
}
|
|
579
|
-
function
|
|
580
|
+
function zt(e, t) {
|
|
580
581
|
for (var r in e) if (r !== "__source" && !(r in t)) return !0;
|
|
581
582
|
for (var n in t) if (n !== "__source" && e[n] !== t[n]) return !0;
|
|
582
583
|
return !1;
|
|
583
584
|
}
|
|
584
|
-
function
|
|
585
|
-
var r = t(), n =
|
|
586
|
-
return
|
|
587
|
-
o.__ = r, o.u = t,
|
|
585
|
+
function Tn(e, t) {
|
|
586
|
+
var r = t(), n = z({ t: { __: r, u: t } }), o = n[0].t, i = n[1];
|
|
587
|
+
return Ne(function() {
|
|
588
|
+
o.__ = r, o.u = t, It(o) && i({ t: o });
|
|
588
589
|
}, [e, r, t]), ne(function() {
|
|
589
|
-
return
|
|
590
|
-
|
|
590
|
+
return It(o) && i({ t: o }), e(function() {
|
|
591
|
+
It(o) && i({ t: o });
|
|
591
592
|
});
|
|
592
593
|
}, [e]), r;
|
|
593
594
|
}
|
|
594
|
-
function
|
|
595
|
+
function It(e) {
|
|
595
596
|
var t, r, n = e.u, o = e.__;
|
|
596
597
|
try {
|
|
597
598
|
var i = n();
|
|
@@ -603,44 +604,44 @@ function Mt(e) {
|
|
|
603
604
|
function Rn(e) {
|
|
604
605
|
e();
|
|
605
606
|
}
|
|
606
|
-
function
|
|
607
|
+
function An(e) {
|
|
607
608
|
return e;
|
|
608
609
|
}
|
|
609
|
-
function
|
|
610
|
+
function Pn() {
|
|
610
611
|
return [!1, Rn];
|
|
611
612
|
}
|
|
612
|
-
var
|
|
613
|
-
function
|
|
613
|
+
var Hn = Ne;
|
|
614
|
+
function Ft(e, t) {
|
|
614
615
|
this.props = e, this.context = t;
|
|
615
616
|
}
|
|
616
|
-
function
|
|
617
|
+
function zo(e, t) {
|
|
617
618
|
function r(o) {
|
|
618
619
|
var i = this.props.ref, a = i == o.ref;
|
|
619
|
-
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a :
|
|
620
|
+
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : zt(this.props, o);
|
|
620
621
|
}
|
|
621
622
|
function n(o) {
|
|
622
|
-
return this.shouldComponentUpdate = r,
|
|
623
|
+
return this.shouldComponentUpdate = r, T(e, o);
|
|
623
624
|
}
|
|
624
625
|
return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n;
|
|
625
626
|
}
|
|
626
|
-
(
|
|
627
|
-
return
|
|
627
|
+
(Ft.prototype = new j()).isPureReactComponent = !0, Ft.prototype.shouldComponentUpdate = function(e, t) {
|
|
628
|
+
return zt(this.props, e) || zt(this.state, t);
|
|
628
629
|
};
|
|
629
|
-
var
|
|
630
|
+
var Pr = C.__b;
|
|
630
631
|
C.__b = function(e) {
|
|
631
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
632
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Pr && Pr(e);
|
|
632
633
|
};
|
|
633
|
-
var
|
|
634
|
+
var Fo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
634
635
|
function Go(e) {
|
|
635
636
|
function t(r) {
|
|
636
|
-
var n =
|
|
637
|
+
var n = Dn({}, r);
|
|
637
638
|
return delete n.ref, e(n, r.ref || null);
|
|
638
639
|
}
|
|
639
|
-
return t.$$typeof =
|
|
640
|
+
return t.$$typeof = Fo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
640
641
|
}
|
|
641
|
-
var
|
|
642
|
+
var Hr = function(e, t) {
|
|
642
643
|
return e == null ? null : te(te(e).map(t));
|
|
643
|
-
}, jo = { map:
|
|
644
|
+
}, jo = { map: Hr, forEach: Hr, count: function(e) {
|
|
644
645
|
return e ? te(e).length : 0;
|
|
645
646
|
}, only: function(e) {
|
|
646
647
|
var t = te(e);
|
|
@@ -653,23 +654,23 @@ C.__e = function(e, t, r, n) {
|
|
|
653
654
|
}
|
|
654
655
|
qo(e, t, r, n);
|
|
655
656
|
};
|
|
656
|
-
var
|
|
657
|
-
function
|
|
657
|
+
var Zr = C.unmount;
|
|
658
|
+
function Zn(e, t, r) {
|
|
658
659
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
|
|
659
660
|
typeof n.__c == "function" && n.__c();
|
|
660
|
-
}), e.__c.__H = null), (e =
|
|
661
|
-
return
|
|
661
|
+
}), e.__c.__H = null), (e = Dn({}, 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) {
|
|
662
|
+
return Zn(n, t, r);
|
|
662
663
|
})), e;
|
|
663
664
|
}
|
|
664
|
-
function
|
|
665
|
+
function Bn(e, t, r) {
|
|
665
666
|
return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
|
|
666
|
-
return
|
|
667
|
+
return Bn(n, t, r);
|
|
667
668
|
}), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
|
|
668
669
|
}
|
|
669
670
|
function ct() {
|
|
670
671
|
this.__u = 0, this.o = null, this.__b = null;
|
|
671
672
|
}
|
|
672
|
-
function
|
|
673
|
+
function Un(e) {
|
|
673
674
|
var t = e.__.__c;
|
|
674
675
|
return t && t.__a && t.__a(e);
|
|
675
676
|
}
|
|
@@ -682,7 +683,7 @@ function Yo(e) {
|
|
|
682
683
|
n = a;
|
|
683
684
|
}), n) throw n;
|
|
684
685
|
if (!r) throw t;
|
|
685
|
-
return
|
|
686
|
+
return T(r, i);
|
|
686
687
|
}
|
|
687
688
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
688
689
|
}
|
|
@@ -691,11 +692,11 @@ function He() {
|
|
|
691
692
|
}
|
|
692
693
|
C.unmount = function(e) {
|
|
693
694
|
var t = e.__c;
|
|
694
|
-
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
695
|
-
}, (ct.prototype = new
|
|
695
|
+
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Zr && Zr(e);
|
|
696
|
+
}, (ct.prototype = new j()).__c = function(e, t) {
|
|
696
697
|
var r = t.__c, n = this;
|
|
697
698
|
n.o == null && (n.o = []), n.o.push(r);
|
|
698
|
-
var o =
|
|
699
|
+
var o = Un(n.__v), i = !1, a = function() {
|
|
699
700
|
i || (i = !0, r.__R = null, o ? o(c) : c());
|
|
700
701
|
};
|
|
701
702
|
r.__R = a;
|
|
@@ -703,7 +704,7 @@ C.unmount = function(e) {
|
|
|
703
704
|
if (!--n.__u) {
|
|
704
705
|
if (n.state.__a) {
|
|
705
706
|
var u = n.state.__a;
|
|
706
|
-
n.__v.__k[0] =
|
|
707
|
+
n.__v.__k[0] = Bn(u, u.__c.__P, u.__c.__O);
|
|
707
708
|
}
|
|
708
709
|
var d;
|
|
709
710
|
for (n.setState({ __a: n.__b = null }); d = n.o.pop(); ) d.forceUpdate();
|
|
@@ -716,14 +717,14 @@ C.unmount = function(e) {
|
|
|
716
717
|
if (this.__b) {
|
|
717
718
|
if (this.__v.__k) {
|
|
718
719
|
var r = document.createElement("div"), n = this.__v.__k[0].__c;
|
|
719
|
-
this.__v.__k[0] =
|
|
720
|
+
this.__v.__k[0] = Zn(this.__b, r, n.__O = n.__P);
|
|
720
721
|
}
|
|
721
722
|
this.__b = null;
|
|
722
723
|
}
|
|
723
|
-
var o = t.__a &&
|
|
724
|
-
return o && (o.__u &= -33), [
|
|
724
|
+
var o = t.__a && T(H, null, e.fallback);
|
|
725
|
+
return o && (o.__u &= -33), [T(H, null, t.__a ? null : e.children), o];
|
|
725
726
|
};
|
|
726
|
-
var
|
|
727
|
+
var Br = function(e, t, r) {
|
|
727
728
|
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; ) {
|
|
728
729
|
for (; r.length > 3; ) r.pop()();
|
|
729
730
|
if (r[1] < r[0]) break;
|
|
@@ -751,17 +752,17 @@ function Ko(e) {
|
|
|
751
752
|
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
752
753
|
} };
|
|
753
754
|
}
|
|
754
|
-
se(
|
|
755
|
+
se(T(Xo, { context: t.context }, e.__v), t.v);
|
|
755
756
|
}
|
|
756
757
|
function Jo(e, t) {
|
|
757
|
-
var r =
|
|
758
|
+
var r = T(Ko, { __v: e, h: t });
|
|
758
759
|
return r.containerInfo = t, r;
|
|
759
760
|
}
|
|
760
|
-
(He.prototype = new
|
|
761
|
-
var t = this, r =
|
|
761
|
+
(He.prototype = new j()).__a = function(e) {
|
|
762
|
+
var t = this, r = Un(t.__v), n = t.l.get(e);
|
|
762
763
|
return n[0]++, function(o) {
|
|
763
764
|
var i = function() {
|
|
764
|
-
t.props.revealOrder ? (n.push(o),
|
|
765
|
+
t.props.revealOrder ? (n.push(o), Br(t, e, n)) : o();
|
|
765
766
|
};
|
|
766
767
|
r ? r(i) : i();
|
|
767
768
|
};
|
|
@@ -774,26 +775,26 @@ function Jo(e, t) {
|
|
|
774
775
|
}, He.prototype.componentDidUpdate = He.prototype.componentDidMount = function() {
|
|
775
776
|
var e = this;
|
|
776
777
|
this.l.forEach(function(t, r) {
|
|
777
|
-
|
|
778
|
+
Br(e, r, t);
|
|
778
779
|
});
|
|
779
780
|
};
|
|
780
|
-
var
|
|
781
|
+
var Wn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Qo = /^(?: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]/, ei = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ti = /[A-Z0-9]/g, ri = typeof document < "u", ni = function(e) {
|
|
781
782
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
782
783
|
};
|
|
783
784
|
function oi(e, t, r) {
|
|
784
785
|
return t.__k == null && (t.textContent = ""), se(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
785
786
|
}
|
|
786
787
|
function ii(e, t, r) {
|
|
787
|
-
return
|
|
788
|
+
return ur(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
788
789
|
}
|
|
789
|
-
|
|
790
|
-
Object.defineProperty(
|
|
790
|
+
j.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
791
|
+
Object.defineProperty(j.prototype, e, { configurable: !0, get: function() {
|
|
791
792
|
return this["UNSAFE_" + e];
|
|
792
793
|
}, set: function(t) {
|
|
793
794
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
794
795
|
} });
|
|
795
796
|
});
|
|
796
|
-
var
|
|
797
|
+
var Ur = C.event;
|
|
797
798
|
function ai() {
|
|
798
799
|
}
|
|
799
800
|
function si() {
|
|
@@ -803,11 +804,11 @@ function ci() {
|
|
|
803
804
|
return this.defaultPrevented;
|
|
804
805
|
}
|
|
805
806
|
C.event = function(e) {
|
|
806
|
-
return
|
|
807
|
+
return Ur && (e = Ur(e)), e.persist = ai, e.isPropagationStopped = si, e.isDefaultPrevented = ci, e.nativeEvent = e;
|
|
807
808
|
};
|
|
808
|
-
var
|
|
809
|
+
var _r, li = { enumerable: !1, configurable: !0, get: function() {
|
|
809
810
|
return this.class;
|
|
810
|
-
} },
|
|
811
|
+
} }, Wr = C.vnode;
|
|
811
812
|
C.vnode = function(e) {
|
|
812
813
|
typeof e.type == "string" && function(t) {
|
|
813
814
|
var r = t.props, n = t.type, o = {}, i = n.indexOf("-") === -1;
|
|
@@ -823,26 +824,26 @@ C.vnode = function(e) {
|
|
|
823
824
|
})), n == "select" && o.defaultValue != null && (o.value = te(r.children).forEach(function(d) {
|
|
824
825
|
d.props.selected = o.multiple ? o.defaultValue.indexOf(d.props.value) != -1 : o.defaultValue == d.props.value;
|
|
825
826
|
})), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", li)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
|
|
826
|
-
}(e), e.$$typeof =
|
|
827
|
+
}(e), e.$$typeof = Wn, Wr && Wr(e);
|
|
827
828
|
};
|
|
828
|
-
var
|
|
829
|
+
var zr = C.__r;
|
|
829
830
|
C.__r = function(e) {
|
|
830
|
-
|
|
831
|
+
zr && zr(e), _r = e.__c;
|
|
831
832
|
};
|
|
832
833
|
var Fr = C.diffed;
|
|
833
834
|
C.diffed = function(e) {
|
|
834
835
|
Fr && Fr(e);
|
|
835
836
|
var t = e.props, r = e.__e;
|
|
836
|
-
r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value),
|
|
837
|
+
r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), _r = null;
|
|
837
838
|
};
|
|
838
839
|
var ui = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
839
|
-
return
|
|
840
|
-
}, useCallback: _e, useContext: Ke, useDebugValue: _t, useDeferredValue:
|
|
840
|
+
return _r.__n[e.__c].props.value;
|
|
841
|
+
}, useCallback: _e, useContext: Ke, useDebugValue: _t, useDeferredValue: An, useEffect: ne, useId: Nn, useImperativeHandle: Mn, useInsertionEffect: Hn, useLayoutEffect: Ne, useMemo: re, useReducer: hr, useRef: Xe, useState: z, useSyncExternalStore: Tn, useTransition: Pn } } };
|
|
841
842
|
function di(e) {
|
|
842
|
-
return
|
|
843
|
+
return T.bind(null, e);
|
|
843
844
|
}
|
|
844
845
|
function vt(e) {
|
|
845
|
-
return !!e && e.$$typeof ===
|
|
846
|
+
return !!e && e.$$typeof === Wn;
|
|
846
847
|
}
|
|
847
848
|
function fi(e) {
|
|
848
849
|
return vt(e) && e.type === H;
|
|
@@ -851,7 +852,7 @@ function hi(e) {
|
|
|
851
852
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
852
853
|
}
|
|
853
854
|
function pi(e) {
|
|
854
|
-
return vt(e) ?
|
|
855
|
+
return vt(e) ? dr.apply(null, arguments) : e;
|
|
855
856
|
}
|
|
856
857
|
function _i(e) {
|
|
857
858
|
return !!e.__k && (se(null, e), !0);
|
|
@@ -863,13 +864,13 @@ var gi = function(e, t) {
|
|
|
863
864
|
return e(t);
|
|
864
865
|
}, Li = function(e, t) {
|
|
865
866
|
return e(t);
|
|
866
|
-
}, yi = H, vi = vt, oe = { useState:
|
|
867
|
+
}, yi = H, vi = vt, oe = { useState: z, useId: Nn, useReducer: hr, useEffect: ne, useLayoutEffect: Ne, useInsertionEffect: Hn, useTransition: Pn, useDeferredValue: An, useSyncExternalStore: Tn, startTransition: Rn, useRef: Xe, useImperativeHandle: Mn, useMemo: re, useCallback: _e, useContext: Ke, useDebugValue: _t, version: "18.3.1", Children: jo, render: oi, hydrate: ii, unmountComponentAtNode: _i, createPortal: Jo, createElement: T, createContext: kn, createFactory: di, cloneElement: pi, createRef: ko, Fragment: H, isValidElement: vt, isElement: vi, isFragment: fi, isMemo: hi, findDOMNode: mi, Component: j, PureComponent: Ft, memo: zo, forwardRef: Go, flushSync: Li, unstable_batchedUpdates: gi, StrictMode: yi, Suspense: ct, SuspenseList: He, lazy: Yo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ui };
|
|
867
868
|
function Ci(e) {
|
|
868
869
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
869
870
|
}
|
|
870
|
-
var Dt,
|
|
871
|
+
var Dt, Gr;
|
|
871
872
|
function wi() {
|
|
872
|
-
return
|
|
873
|
+
return Gr || (Gr = 1, Dt = function(t, r, n, o) {
|
|
873
874
|
var i = n ? n.call(o, t, r) : void 0;
|
|
874
875
|
if (i !== void 0)
|
|
875
876
|
return !!i;
|
|
@@ -893,11 +894,11 @@ function wi() {
|
|
|
893
894
|
}
|
|
894
895
|
var Si = wi();
|
|
895
896
|
const bi = /* @__PURE__ */ Ci(Si);
|
|
896
|
-
var
|
|
897
|
+
var $ = "-ms-", ze = "-moz-", k = "-webkit-", zn = "comm", Ct = "rule", mr = "decl", Ei = "@import", Fn = "@keyframes", Vi = "@layer", Gn = Math.abs, gr = String.fromCharCode, Gt = Object.assign;
|
|
897
898
|
function ki(e, t) {
|
|
898
|
-
return
|
|
899
|
+
return I(e, 0) ^ 45 ? (((t << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
|
|
899
900
|
}
|
|
900
|
-
function
|
|
901
|
+
function jn(e) {
|
|
901
902
|
return e.trim();
|
|
902
903
|
}
|
|
903
904
|
function Q(e, t) {
|
|
@@ -909,16 +910,16 @@ function w(e, t, r) {
|
|
|
909
910
|
function lt(e, t, r) {
|
|
910
911
|
return e.indexOf(t, r);
|
|
911
912
|
}
|
|
912
|
-
function
|
|
913
|
+
function I(e, t) {
|
|
913
914
|
return e.charCodeAt(t) | 0;
|
|
914
915
|
}
|
|
915
916
|
function ke(e, t, r) {
|
|
916
917
|
return e.slice(t, r);
|
|
917
918
|
}
|
|
918
|
-
function
|
|
919
|
+
function Y(e) {
|
|
919
920
|
return e.length;
|
|
920
921
|
}
|
|
921
|
-
function
|
|
922
|
+
function qn(e) {
|
|
922
923
|
return e.length;
|
|
923
924
|
}
|
|
924
925
|
function Ze(e, t) {
|
|
@@ -927,12 +928,12 @@ function Ze(e, t) {
|
|
|
927
928
|
function xi(e, t) {
|
|
928
929
|
return e.map(t).join("");
|
|
929
930
|
}
|
|
930
|
-
function
|
|
931
|
+
function jr(e, t) {
|
|
931
932
|
return e.filter(function(r) {
|
|
932
933
|
return !Q(r, t);
|
|
933
934
|
});
|
|
934
935
|
}
|
|
935
|
-
var wt = 1, xe = 1,
|
|
936
|
+
var wt = 1, xe = 1, Yn = 0, F = 0, N = 0, Ie = "";
|
|
936
937
|
function St(e, t, r, n, o, i, a, c) {
|
|
937
938
|
return { value: e, root: t, parent: r, type: n, props: o, children: i, line: wt, column: xe, length: a, return: "", siblings: c };
|
|
938
939
|
}
|
|
@@ -944,23 +945,23 @@ function Se(e) {
|
|
|
944
945
|
e = ae(e.root, { children: [e] });
|
|
945
946
|
Ze(e, e.siblings);
|
|
946
947
|
}
|
|
947
|
-
function Oi() {
|
|
948
|
-
return I;
|
|
949
|
-
}
|
|
950
948
|
function $i() {
|
|
951
|
-
return
|
|
949
|
+
return N;
|
|
950
|
+
}
|
|
951
|
+
function Oi() {
|
|
952
|
+
return N = F > 0 ? I(Ie, --F) : 0, xe--, N === 10 && (xe = 1, wt--), N;
|
|
952
953
|
}
|
|
953
|
-
function
|
|
954
|
-
return
|
|
954
|
+
function q() {
|
|
955
|
+
return N = F < Yn ? I(Ie, F++) : 0, xe++, N === 10 && (xe = 1, wt++), N;
|
|
955
956
|
}
|
|
956
957
|
function me() {
|
|
957
|
-
return
|
|
958
|
+
return I(Ie, F);
|
|
958
959
|
}
|
|
959
960
|
function ut() {
|
|
960
|
-
return
|
|
961
|
+
return F;
|
|
961
962
|
}
|
|
962
963
|
function bt(e, t) {
|
|
963
|
-
return ke(
|
|
964
|
+
return ke(Ie, e, t);
|
|
964
965
|
}
|
|
965
966
|
function jt(e) {
|
|
966
967
|
switch (e) {
|
|
@@ -1000,35 +1001,35 @@ function jt(e) {
|
|
|
1000
1001
|
}
|
|
1001
1002
|
return 0;
|
|
1002
1003
|
}
|
|
1003
|
-
function
|
|
1004
|
-
return wt = xe = 1,
|
|
1004
|
+
function Mi(e) {
|
|
1005
|
+
return wt = xe = 1, Yn = Y(Ie = e), F = 0, [];
|
|
1005
1006
|
}
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
1007
|
+
function Ni(e) {
|
|
1008
|
+
return Ie = "", e;
|
|
1008
1009
|
}
|
|
1009
|
-
function
|
|
1010
|
-
return
|
|
1010
|
+
function Tt(e) {
|
|
1011
|
+
return jn(bt(F - 1, qt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1011
1012
|
}
|
|
1012
|
-
function
|
|
1013
|
-
for (; (
|
|
1014
|
-
|
|
1015
|
-
return jt(e) > 2 || jt(
|
|
1013
|
+
function Ii(e) {
|
|
1014
|
+
for (; (N = me()) && N < 33; )
|
|
1015
|
+
q();
|
|
1016
|
+
return jt(e) > 2 || jt(N) > 3 ? "" : " ";
|
|
1016
1017
|
}
|
|
1017
1018
|
function Di(e, t) {
|
|
1018
|
-
for (; --t &&
|
|
1019
|
+
for (; --t && q() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
|
|
1019
1020
|
;
|
|
1020
|
-
return bt(e, ut() + (t < 6 && me() == 32 &&
|
|
1021
|
+
return bt(e, ut() + (t < 6 && me() == 32 && q() == 32));
|
|
1021
1022
|
}
|
|
1022
1023
|
function qt(e) {
|
|
1023
|
-
for (;
|
|
1024
|
-
switch (
|
|
1024
|
+
for (; q(); )
|
|
1025
|
+
switch (N) {
|
|
1025
1026
|
// ] ) " '
|
|
1026
1027
|
case e:
|
|
1027
|
-
return
|
|
1028
|
+
return F;
|
|
1028
1029
|
// " '
|
|
1029
1030
|
case 34:
|
|
1030
1031
|
case 39:
|
|
1031
|
-
e !== 34 && e !== 39 && qt(
|
|
1032
|
+
e !== 34 && e !== 39 && qt(N);
|
|
1032
1033
|
break;
|
|
1033
1034
|
// (
|
|
1034
1035
|
case 40:
|
|
@@ -1036,46 +1037,46 @@ function qt(e) {
|
|
|
1036
1037
|
break;
|
|
1037
1038
|
// \
|
|
1038
1039
|
case 92:
|
|
1039
|
-
|
|
1040
|
+
q();
|
|
1040
1041
|
break;
|
|
1041
1042
|
}
|
|
1042
|
-
return
|
|
1043
|
+
return F;
|
|
1043
1044
|
}
|
|
1044
|
-
function
|
|
1045
|
-
for (;
|
|
1046
|
-
if (e +
|
|
1045
|
+
function Ti(e, t) {
|
|
1046
|
+
for (; q() && e + N !== 57; )
|
|
1047
|
+
if (e + N === 84 && me() === 47)
|
|
1047
1048
|
break;
|
|
1048
|
-
return "/*" + bt(t,
|
|
1049
|
+
return "/*" + bt(t, F - 1) + "*" + gr(e === 47 ? e : q());
|
|
1049
1050
|
}
|
|
1050
|
-
function
|
|
1051
|
+
function Ri(e) {
|
|
1051
1052
|
for (; !jt(me()); )
|
|
1052
|
-
|
|
1053
|
-
return bt(e,
|
|
1053
|
+
q();
|
|
1054
|
+
return bt(e, F);
|
|
1054
1055
|
}
|
|
1055
1056
|
function Ai(e) {
|
|
1056
|
-
return
|
|
1057
|
+
return Ni(dt("", null, null, null, [""], e = Mi(e), 0, [0], e));
|
|
1057
1058
|
}
|
|
1058
1059
|
function dt(e, t, r, n, o, i, a, c, u) {
|
|
1059
|
-
for (var d = 0, h = 0, l = a, p = 0, f = 0, _ = 0, L = 1, y = 1, m = 1, g = 0,
|
|
1060
|
-
switch (_ = g, g =
|
|
1060
|
+
for (var d = 0, h = 0, l = a, p = 0, f = 0, _ = 0, L = 1, y = 1, m = 1, g = 0, V = "", b = o, x = i, S = n, v = V; y; )
|
|
1061
|
+
switch (_ = g, g = q()) {
|
|
1061
1062
|
// (
|
|
1062
1063
|
case 40:
|
|
1063
|
-
if (_ != 108 &&
|
|
1064
|
-
lt(v += w(
|
|
1064
|
+
if (_ != 108 && I(v, l - 1) == 58) {
|
|
1065
|
+
lt(v += w(Tt(g), "&", "&\f"), "&\f", Gn(d ? c[d - 1] : 0)) != -1 && (m = -1);
|
|
1065
1066
|
break;
|
|
1066
1067
|
}
|
|
1067
1068
|
// " ' [
|
|
1068
1069
|
case 34:
|
|
1069
1070
|
case 39:
|
|
1070
1071
|
case 91:
|
|
1071
|
-
v +=
|
|
1072
|
+
v += Tt(g);
|
|
1072
1073
|
break;
|
|
1073
1074
|
// \t \n \r \s
|
|
1074
1075
|
case 9:
|
|
1075
1076
|
case 10:
|
|
1076
1077
|
case 13:
|
|
1077
1078
|
case 32:
|
|
1078
|
-
v +=
|
|
1079
|
+
v += Ii(_);
|
|
1079
1080
|
break;
|
|
1080
1081
|
// \
|
|
1081
1082
|
case 92:
|
|
@@ -1086,7 +1087,7 @@ function dt(e, t, r, n, o, i, a, c, u) {
|
|
|
1086
1087
|
switch (me()) {
|
|
1087
1088
|
case 42:
|
|
1088
1089
|
case 47:
|
|
1089
|
-
Ze(Pi(
|
|
1090
|
+
Ze(Pi(Ti(q(), ut()), t, r, u), u);
|
|
1090
1091
|
break;
|
|
1091
1092
|
default:
|
|
1092
1093
|
v += "/";
|
|
@@ -1094,7 +1095,7 @@ function dt(e, t, r, n, o, i, a, c, u) {
|
|
|
1094
1095
|
break;
|
|
1095
1096
|
// {
|
|
1096
1097
|
case 123 * L:
|
|
1097
|
-
c[d++] =
|
|
1098
|
+
c[d++] = Y(v) * m;
|
|
1098
1099
|
// } ; \0
|
|
1099
1100
|
case 125 * L:
|
|
1100
1101
|
case 59:
|
|
@@ -1106,74 +1107,74 @@ function dt(e, t, r, n, o, i, a, c, u) {
|
|
|
1106
1107
|
y = 0;
|
|
1107
1108
|
// ;
|
|
1108
1109
|
case 59 + h:
|
|
1109
|
-
m == -1 && (v = w(v, /\f/g, "")), f > 0 &&
|
|
1110
|
+
m == -1 && (v = w(v, /\f/g, "")), f > 0 && Y(v) - l && Ze(f > 32 ? Yr(v + ";", n, r, l - 1, u) : Yr(w(v, " ", "") + ";", n, r, l - 2, u), u);
|
|
1110
1111
|
break;
|
|
1111
1112
|
// @ ;
|
|
1112
1113
|
case 59:
|
|
1113
1114
|
v += ";";
|
|
1114
1115
|
// { rule/at-rule
|
|
1115
1116
|
default:
|
|
1116
|
-
if (Ze(S =
|
|
1117
|
+
if (Ze(S = qr(v, t, r, d, h, o, c, V, b = [], x = [], l, i), i), g === 123)
|
|
1117
1118
|
if (h === 0)
|
|
1118
1119
|
dt(v, t, S, S, b, i, l, c, x);
|
|
1119
1120
|
else
|
|
1120
|
-
switch (p === 99 &&
|
|
1121
|
+
switch (p === 99 && I(v, 3) === 110 ? 100 : p) {
|
|
1121
1122
|
// d l m s
|
|
1122
1123
|
case 100:
|
|
1123
1124
|
case 108:
|
|
1124
1125
|
case 109:
|
|
1125
1126
|
case 115:
|
|
1126
|
-
dt(e, S, S, n && Ze(
|
|
1127
|
+
dt(e, S, S, n && Ze(qr(e, S, S, 0, 0, o, c, V, o, b = [], l, x), x), o, x, l, c, n ? b : x);
|
|
1127
1128
|
break;
|
|
1128
1129
|
default:
|
|
1129
1130
|
dt(v, S, S, S, [""], x, 0, c, x);
|
|
1130
1131
|
}
|
|
1131
1132
|
}
|
|
1132
|
-
d = h = f = 0, L = m = 1,
|
|
1133
|
+
d = h = f = 0, L = m = 1, V = v = "", l = a;
|
|
1133
1134
|
break;
|
|
1134
1135
|
// :
|
|
1135
1136
|
case 58:
|
|
1136
|
-
l = 1 +
|
|
1137
|
+
l = 1 + Y(v), f = _;
|
|
1137
1138
|
default:
|
|
1138
1139
|
if (L < 1) {
|
|
1139
1140
|
if (g == 123)
|
|
1140
1141
|
--L;
|
|
1141
|
-
else if (g == 125 && L++ == 0 &&
|
|
1142
|
+
else if (g == 125 && L++ == 0 && Oi() == 125)
|
|
1142
1143
|
continue;
|
|
1143
1144
|
}
|
|
1144
|
-
switch (v +=
|
|
1145
|
+
switch (v += gr(g), g * L) {
|
|
1145
1146
|
// &
|
|
1146
1147
|
case 38:
|
|
1147
1148
|
m = h > 0 ? 1 : (v += "\f", -1);
|
|
1148
1149
|
break;
|
|
1149
1150
|
// ,
|
|
1150
1151
|
case 44:
|
|
1151
|
-
c[d++] = (
|
|
1152
|
+
c[d++] = (Y(v) - 1) * m, m = 1;
|
|
1152
1153
|
break;
|
|
1153
1154
|
// @
|
|
1154
1155
|
case 64:
|
|
1155
|
-
me() === 45 && (v +=
|
|
1156
|
+
me() === 45 && (v += Tt(q())), p = me(), h = l = Y(V = v += Ri(ut())), g++;
|
|
1156
1157
|
break;
|
|
1157
1158
|
// -
|
|
1158
1159
|
case 45:
|
|
1159
|
-
_ === 45 &&
|
|
1160
|
+
_ === 45 && Y(v) == 2 && (L = 0);
|
|
1160
1161
|
}
|
|
1161
1162
|
}
|
|
1162
1163
|
return i;
|
|
1163
1164
|
}
|
|
1164
|
-
function
|
|
1165
|
-
for (var p = o - 1, f = o === 0 ? i : [""], _ =
|
|
1166
|
-
for (var g = 0,
|
|
1167
|
-
(b =
|
|
1165
|
+
function qr(e, t, r, n, o, i, a, c, u, d, h, l) {
|
|
1166
|
+
for (var p = o - 1, f = o === 0 ? i : [""], _ = qn(f), L = 0, y = 0, m = 0; L < n; ++L)
|
|
1167
|
+
for (var g = 0, V = ke(e, p + 1, p = Gn(y = a[L])), b = e; g < _; ++g)
|
|
1168
|
+
(b = jn(y > 0 ? f[g] + " " + V : w(V, /&\f/g, f[g]))) && (u[m++] = b);
|
|
1168
1169
|
return St(e, t, r, o === 0 ? Ct : c, u, d, h, l);
|
|
1169
1170
|
}
|
|
1170
1171
|
function Pi(e, t, r, n) {
|
|
1171
|
-
return St(e, t, r,
|
|
1172
|
+
return St(e, t, r, zn, gr($i()), ke(e, 2, -2), 0, n);
|
|
1172
1173
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return St(e, t, r,
|
|
1174
|
+
function Yr(e, t, r, n, o) {
|
|
1175
|
+
return St(e, t, r, mr, ke(e, 0, n), ke(e, n + 1, -1), n, o);
|
|
1175
1176
|
}
|
|
1176
|
-
function
|
|
1177
|
+
function Xn(e, t, r) {
|
|
1177
1178
|
switch (ki(e, t)) {
|
|
1178
1179
|
// color-adjust
|
|
1179
1180
|
case 5103:
|
|
@@ -1210,53 +1211,53 @@ function Yn(e, t, r) {
|
|
|
1210
1211
|
return k + e + e;
|
|
1211
1212
|
// tab-size
|
|
1212
1213
|
case 4789:
|
|
1213
|
-
return
|
|
1214
|
+
return ze + e + e;
|
|
1214
1215
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1215
1216
|
case 5349:
|
|
1216
1217
|
case 4246:
|
|
1217
1218
|
case 4810:
|
|
1218
1219
|
case 6968:
|
|
1219
1220
|
case 2756:
|
|
1220
|
-
return k + e +
|
|
1221
|
+
return k + e + ze + e + $ + e + e;
|
|
1221
1222
|
// writing-mode
|
|
1222
1223
|
case 5936:
|
|
1223
|
-
switch (
|
|
1224
|
+
switch (I(e, t + 11)) {
|
|
1224
1225
|
// vertical-l(r)
|
|
1225
1226
|
case 114:
|
|
1226
|
-
return k + e +
|
|
1227
|
+
return k + e + $ + w(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1227
1228
|
// vertical-r(l)
|
|
1228
1229
|
case 108:
|
|
1229
|
-
return k + e +
|
|
1230
|
+
return k + e + $ + w(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1230
1231
|
// horizontal(-)tb
|
|
1231
1232
|
case 45:
|
|
1232
|
-
return k + e +
|
|
1233
|
+
return k + e + $ + w(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1233
1234
|
}
|
|
1234
1235
|
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
1235
1236
|
case 6828:
|
|
1236
1237
|
case 4268:
|
|
1237
1238
|
case 2903:
|
|
1238
|
-
return k + e +
|
|
1239
|
+
return k + e + $ + e + e;
|
|
1239
1240
|
// order
|
|
1240
1241
|
case 6165:
|
|
1241
|
-
return k + e +
|
|
1242
|
+
return k + e + $ + "flex-" + e + e;
|
|
1242
1243
|
// align-items
|
|
1243
1244
|
case 5187:
|
|
1244
|
-
return k + e + w(e, /(\w+).+(:[^]+)/, k + "box-$1$2" +
|
|
1245
|
+
return k + e + w(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + $ + "flex-$1$2") + e;
|
|
1245
1246
|
// align-self
|
|
1246
1247
|
case 5443:
|
|
1247
|
-
return k + e +
|
|
1248
|
+
return k + e + $ + "flex-item-" + w(e, /flex-|-self/g, "") + (Q(e, /flex-|baseline/) ? "" : $ + "grid-row-" + w(e, /flex-|-self/g, "")) + e;
|
|
1248
1249
|
// align-content
|
|
1249
1250
|
case 4675:
|
|
1250
|
-
return k + e +
|
|
1251
|
+
return k + e + $ + "flex-line-pack" + w(e, /align-content|flex-|-self/g, "") + e;
|
|
1251
1252
|
// flex-shrink
|
|
1252
1253
|
case 5548:
|
|
1253
|
-
return k + e +
|
|
1254
|
+
return k + e + $ + w(e, "shrink", "negative") + e;
|
|
1254
1255
|
// flex-basis
|
|
1255
1256
|
case 5292:
|
|
1256
|
-
return k + e +
|
|
1257
|
+
return k + e + $ + w(e, "basis", "preferred-size") + e;
|
|
1257
1258
|
// flex-grow
|
|
1258
1259
|
case 6060:
|
|
1259
|
-
return k + "box-" + w(e, "-grow", "") + k + e +
|
|
1260
|
+
return k + "box-" + w(e, "-grow", "") + k + e + $ + w(e, "grow", "positive") + e;
|
|
1260
1261
|
// transition
|
|
1261
1262
|
case 4554:
|
|
1262
1263
|
return k + w(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
|
|
@@ -1269,27 +1270,27 @@ function Yn(e, t, r) {
|
|
|
1269
1270
|
return w(e, /(image-set\([^]*)/, k + "$1$`$1");
|
|
1270
1271
|
// justify-content
|
|
1271
1272
|
case 4968:
|
|
1272
|
-
return w(w(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" +
|
|
1273
|
+
return w(w(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + $ + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
|
|
1273
1274
|
// justify-self
|
|
1274
1275
|
case 4200:
|
|
1275
|
-
if (!Q(e, /flex-|baseline/)) return
|
|
1276
|
+
if (!Q(e, /flex-|baseline/)) return $ + "grid-column-align" + ke(e, t) + e;
|
|
1276
1277
|
break;
|
|
1277
1278
|
// grid-template-(columns|rows)
|
|
1278
1279
|
case 2592:
|
|
1279
1280
|
case 3360:
|
|
1280
|
-
return
|
|
1281
|
+
return $ + w(e, "template-", "") + e;
|
|
1281
1282
|
// grid-(row|column)-start
|
|
1282
1283
|
case 4384:
|
|
1283
1284
|
case 3616:
|
|
1284
1285
|
return r && r.some(function(n, o) {
|
|
1285
1286
|
return t = o, Q(n.props, /grid-\w+-end/);
|
|
1286
|
-
}) ? ~lt(e + (r = r[t].value), "span", 0) ? e :
|
|
1287
|
+
}) ? ~lt(e + (r = r[t].value), "span", 0) ? e : $ + w(e, "-start", "") + e + $ + "grid-row-span:" + (~lt(r, "span", 0) ? Q(r, /\d+/) : +Q(r, /\d+/) - +Q(e, /\d+/)) + ";" : $ + w(e, "-start", "") + e;
|
|
1287
1288
|
// grid-(row|column)-end
|
|
1288
1289
|
case 4896:
|
|
1289
1290
|
case 4128:
|
|
1290
1291
|
return r && r.some(function(n) {
|
|
1291
1292
|
return Q(n.props, /grid-\w+-start/);
|
|
1292
|
-
}) ? e :
|
|
1293
|
+
}) ? e : $ + w(w(e, "-end", "-span"), "span ", "") + e;
|
|
1293
1294
|
// (margin|padding)-inline-(start|end)
|
|
1294
1295
|
case 4095:
|
|
1295
1296
|
case 3583:
|
|
@@ -1309,40 +1310,40 @@ function Yn(e, t, r) {
|
|
|
1309
1310
|
case 5789:
|
|
1310
1311
|
case 5021:
|
|
1311
1312
|
case 4765:
|
|
1312
|
-
if (
|
|
1313
|
-
switch (
|
|
1313
|
+
if (Y(e) - 1 - t > 6)
|
|
1314
|
+
switch (I(e, t + 1)) {
|
|
1314
1315
|
// (m)ax-content, (m)in-content
|
|
1315
1316
|
case 109:
|
|
1316
|
-
if (
|
|
1317
|
+
if (I(e, t + 4) !== 45)
|
|
1317
1318
|
break;
|
|
1318
1319
|
// (f)ill-available, (f)it-content
|
|
1319
1320
|
case 102:
|
|
1320
|
-
return w(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" +
|
|
1321
|
+
return w(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + ze + (I(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1321
1322
|
// (s)tretch
|
|
1322
1323
|
case 115:
|
|
1323
|
-
return ~lt(e, "stretch", 0) ?
|
|
1324
|
+
return ~lt(e, "stretch", 0) ? Xn(w(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1324
1325
|
}
|
|
1325
1326
|
break;
|
|
1326
1327
|
// grid-(column|row)
|
|
1327
1328
|
case 5152:
|
|
1328
1329
|
case 5920:
|
|
1329
1330
|
return w(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, i, a, c, u, d) {
|
|
1330
|
-
return
|
|
1331
|
+
return $ + o + ":" + i + d + (a ? $ + o + "-span:" + (c ? u : +u - +i) + d : "") + e;
|
|
1331
1332
|
});
|
|
1332
1333
|
// position: sticky
|
|
1333
1334
|
case 4949:
|
|
1334
|
-
if (
|
|
1335
|
+
if (I(e, t + 6) === 121)
|
|
1335
1336
|
return w(e, ":", ":" + k) + e;
|
|
1336
1337
|
break;
|
|
1337
1338
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
1338
1339
|
case 6444:
|
|
1339
|
-
switch (
|
|
1340
|
+
switch (I(e, I(e, 14) === 45 ? 18 : 11)) {
|
|
1340
1341
|
// (inline-)?fle(x)
|
|
1341
1342
|
case 120:
|
|
1342
|
-
return w(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (
|
|
1343
|
+
return w(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + $ + "$2box$3") + e;
|
|
1343
1344
|
// (inline-)?gri(d)
|
|
1344
1345
|
case 100:
|
|
1345
|
-
return w(e, ":", ":" +
|
|
1346
|
+
return w(e, ":", ":" + $) + e;
|
|
1346
1347
|
}
|
|
1347
1348
|
break;
|
|
1348
1349
|
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
@@ -1362,22 +1363,22 @@ function mt(e, t) {
|
|
|
1362
1363
|
}
|
|
1363
1364
|
function Hi(e, t, r, n) {
|
|
1364
1365
|
switch (e.type) {
|
|
1365
|
-
case Ei:
|
|
1366
|
-
if (e.children.length) break;
|
|
1367
1366
|
case Vi:
|
|
1368
|
-
|
|
1367
|
+
if (e.children.length) break;
|
|
1368
|
+
case Ei:
|
|
1369
|
+
case mr:
|
|
1369
1370
|
return e.return = e.return || e.value;
|
|
1370
|
-
case
|
|
1371
|
+
case zn:
|
|
1371
1372
|
return "";
|
|
1372
1373
|
case Fn:
|
|
1373
1374
|
return e.return = e.value + "{" + mt(e.children, n) + "}";
|
|
1374
1375
|
case Ct:
|
|
1375
|
-
if (!
|
|
1376
|
+
if (!Y(e.value = e.props.join(","))) return "";
|
|
1376
1377
|
}
|
|
1377
|
-
return
|
|
1378
|
+
return Y(r = mt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
1378
1379
|
}
|
|
1379
1380
|
function Zi(e) {
|
|
1380
|
-
var t =
|
|
1381
|
+
var t = qn(e);
|
|
1381
1382
|
return function(r, n, o, i) {
|
|
1382
1383
|
for (var a = "", c = 0; c < t; c++)
|
|
1383
1384
|
a += e[c](r, n, o, i) || "";
|
|
@@ -1392,8 +1393,8 @@ function Bi(e) {
|
|
|
1392
1393
|
function Ui(e, t, r, n) {
|
|
1393
1394
|
if (e.length > -1 && !e.return)
|
|
1394
1395
|
switch (e.type) {
|
|
1395
|
-
case
|
|
1396
|
-
e.return =
|
|
1396
|
+
case mr:
|
|
1397
|
+
e.return = Xn(e.value, e.length, r);
|
|
1397
1398
|
return;
|
|
1398
1399
|
case Fn:
|
|
1399
1400
|
return mt([ae(e, { value: w(e.value, "@", "@" + k) })], n);
|
|
@@ -1404,11 +1405,11 @@ function Ui(e, t, r, n) {
|
|
|
1404
1405
|
// :read-(only|write)
|
|
1405
1406
|
case ":read-only":
|
|
1406
1407
|
case ":read-write":
|
|
1407
|
-
Se(ae(e, { props: [w(o, /:(read-\w+)/, ":" +
|
|
1408
|
+
Se(ae(e, { props: [w(o, /:(read-\w+)/, ":" + ze + "$1")] })), Se(ae(e, { props: [o] })), Gt(e, { props: jr(r, n) });
|
|
1408
1409
|
break;
|
|
1409
1410
|
// :placeholder
|
|
1410
1411
|
case "::placeholder":
|
|
1411
|
-
Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" + k + "input-$1")] })), Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" +
|
|
1412
|
+
Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" + k + "input-$1")] })), Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" + ze + "$1")] })), Se(ae(e, { props: [w(o, /:(plac\w+)/, $ + "input-$1")] })), Se(ae(e, { props: [o] })), Gt(e, { props: jr(r, n) });
|
|
1412
1413
|
break;
|
|
1413
1414
|
}
|
|
1414
1415
|
return "";
|
|
@@ -1463,9 +1464,9 @@ var Wi = {
|
|
|
1463
1464
|
strokeMiterlimit: 1,
|
|
1464
1465
|
strokeOpacity: 1,
|
|
1465
1466
|
strokeWidth: 1
|
|
1466
|
-
},
|
|
1467
|
-
`, gt = typeof window < "u" && typeof document < "u",
|
|
1468
|
-
if (
|
|
1467
|
+
}, E = {}, ye = typeof process < "u" && E !== void 0 && (E.REACT_APP_SC_ATTR || E.SC_ATTR) || "data-styled", Kn = "active", Jn = "data-styled-version", Et = "6.1.18", Lr = `/*!sc*/
|
|
1468
|
+
`, gt = typeof window < "u" && typeof document < "u", zi = !!(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"), Xr = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), Fi = function(e, t) {
|
|
1469
|
+
if (E.NODE_ENV !== "production") {
|
|
1469
1470
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
1470
1471
|
`) + `You may see this warning because you've called styled inside another component.
|
|
1471
1472
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
@@ -1475,60 +1476,60 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
1475
1476
|
var i = !0;
|
|
1476
1477
|
console.error = function(a) {
|
|
1477
1478
|
for (var c = [], u = 1; u < arguments.length; u++) c[u - 1] = arguments[u];
|
|
1478
|
-
|
|
1479
|
+
Xr.test(a) ? (i = !1, nt.delete(n)) : o.apply(void 0, Le([a], c, !1));
|
|
1479
1480
|
}, Xe(), i && !nt.has(n) && (console.warn(n), nt.add(n));
|
|
1480
1481
|
} catch (a) {
|
|
1481
|
-
|
|
1482
|
+
Xr.test(a.message) && nt.delete(n);
|
|
1482
1483
|
} finally {
|
|
1483
1484
|
console.error = o;
|
|
1484
1485
|
}
|
|
1485
1486
|
}
|
|
1486
|
-
},
|
|
1487
|
+
}, Vt = Object.freeze([]), $e = Object.freeze({});
|
|
1487
1488
|
function Gi(e, t, r) {
|
|
1488
|
-
return r === void 0 && (r =
|
|
1489
|
+
return r === void 0 && (r = $e), e.theme !== r.theme && e.theme || t || r.theme;
|
|
1489
1490
|
}
|
|
1490
1491
|
var Yt = /* @__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"]), ji = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, qi = /(^-|-$)/g;
|
|
1491
|
-
function
|
|
1492
|
+
function Kr(e) {
|
|
1492
1493
|
return e.replace(ji, "-").replace(qi, "");
|
|
1493
1494
|
}
|
|
1494
|
-
var Yi = /(a)(d)/gi, ot = 52,
|
|
1495
|
+
var Yi = /(a)(d)/gi, ot = 52, Jr = function(e) {
|
|
1495
1496
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1496
1497
|
};
|
|
1497
1498
|
function Xt(e) {
|
|
1498
1499
|
var t, r = "";
|
|
1499
|
-
for (t = Math.abs(e); t > ot; t = t / ot | 0) r =
|
|
1500
|
-
return (
|
|
1500
|
+
for (t = Math.abs(e); t > ot; t = t / ot | 0) r = Jr(t % ot) + r;
|
|
1501
|
+
return (Jr(t % ot) + r).replace(Yi, "$1-$2");
|
|
1501
1502
|
}
|
|
1502
|
-
var
|
|
1503
|
+
var Rt, Qn = 5381, fe = function(e, t) {
|
|
1503
1504
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
1504
1505
|
return e;
|
|
1505
|
-
},
|
|
1506
|
-
return fe(
|
|
1506
|
+
}, eo = function(e) {
|
|
1507
|
+
return fe(Qn, e);
|
|
1507
1508
|
};
|
|
1508
|
-
function eo(e) {
|
|
1509
|
-
return Xt(Qn(e) >>> 0);
|
|
1510
|
-
}
|
|
1511
1509
|
function to(e) {
|
|
1512
|
-
return
|
|
1510
|
+
return Xt(eo(e) >>> 0);
|
|
1511
|
+
}
|
|
1512
|
+
function ro(e) {
|
|
1513
|
+
return E.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1513
1514
|
}
|
|
1514
1515
|
function At(e) {
|
|
1515
|
-
return typeof e == "string" && (
|
|
1516
|
+
return typeof e == "string" && (E.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1516
1517
|
}
|
|
1517
|
-
var
|
|
1518
|
-
function
|
|
1519
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
1518
|
+
var no = typeof Symbol == "function" && Symbol.for, oo = no ? Symbol.for("react.memo") : 60115, Xi = no ? Symbol.for("react.forward_ref") : 60112, Ki = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ji = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, io = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Qi = ((Rt = {})[Xi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Rt[oo] = io, Rt);
|
|
1519
|
+
function Qr(e) {
|
|
1520
|
+
return ("type" in (t = e) && t.type.$$typeof) === oo ? io : "$$typeof" in e ? Qi[e.$$typeof] : Ki;
|
|
1520
1521
|
var t;
|
|
1521
1522
|
}
|
|
1522
|
-
var ea = Object.defineProperty, ta = Object.getOwnPropertyNames,
|
|
1523
|
-
function
|
|
1523
|
+
var ea = Object.defineProperty, ta = Object.getOwnPropertyNames, en = Object.getOwnPropertySymbols, ra = Object.getOwnPropertyDescriptor, na = Object.getPrototypeOf, tn = Object.prototype;
|
|
1524
|
+
function ao(e, t, r) {
|
|
1524
1525
|
if (typeof t != "string") {
|
|
1525
|
-
if (
|
|
1526
|
+
if (tn) {
|
|
1526
1527
|
var n = na(t);
|
|
1527
|
-
n && n !==
|
|
1528
|
+
n && n !== tn && ao(e, n, r);
|
|
1528
1529
|
}
|
|
1529
1530
|
var o = ta(t);
|
|
1530
|
-
|
|
1531
|
-
for (var i =
|
|
1531
|
+
en && (o = o.concat(en(t)));
|
|
1532
|
+
for (var i = Qr(e), a = Qr(t), c = 0; c < o.length; ++c) {
|
|
1532
1533
|
var u = o[c];
|
|
1533
1534
|
if (!(u in Ji || r && r[u] || a && u in a || i && u in i)) {
|
|
1534
1535
|
var d = ra(t, u);
|
|
@@ -1544,7 +1545,7 @@ function io(e, t, r) {
|
|
|
1544
1545
|
function ve(e) {
|
|
1545
1546
|
return typeof e == "function";
|
|
1546
1547
|
}
|
|
1547
|
-
function
|
|
1548
|
+
function yr(e) {
|
|
1548
1549
|
return typeof e == "object" && "styledComponentId" in e;
|
|
1549
1550
|
}
|
|
1550
1551
|
function he(e, t) {
|
|
@@ -1555,19 +1556,19 @@ function Kt(e, t) {
|
|
|
1555
1556
|
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
1556
1557
|
return r;
|
|
1557
1558
|
}
|
|
1558
|
-
function
|
|
1559
|
+
function Oe(e) {
|
|
1559
1560
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1560
1561
|
}
|
|
1561
1562
|
function Jt(e, t, r) {
|
|
1562
|
-
if (r === void 0 && (r = !1), !r &&
|
|
1563
|
+
if (r === void 0 && (r = !1), !r && !Oe(e) && !Array.isArray(e)) return t;
|
|
1563
1564
|
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Jt(e[n], t[n]);
|
|
1564
|
-
else if (
|
|
1565
|
+
else if (Oe(t)) for (var n in t) e[n] = Jt(e[n], t[n]);
|
|
1565
1566
|
return e;
|
|
1566
1567
|
}
|
|
1567
|
-
function
|
|
1568
|
+
function vr(e, t) {
|
|
1568
1569
|
Object.defineProperty(e, "toString", { value: t });
|
|
1569
1570
|
}
|
|
1570
|
-
var oa =
|
|
1571
|
+
var oa = E.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1571
1572
|
|
|
1572
1573
|
`, 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.
|
|
1573
1574
|
|
|
@@ -1618,7 +1619,7 @@ function ia() {
|
|
|
1618
1619
|
}
|
|
1619
1620
|
function K(e) {
|
|
1620
1621
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1621
|
-
return
|
|
1622
|
+
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(ia.apply(void 0, Le([oa[e]], t, !1)).trim());
|
|
1622
1623
|
}
|
|
1623
1624
|
var aa = function() {
|
|
1624
1625
|
function e(t) {
|
|
@@ -1643,21 +1644,21 @@ var aa = function() {
|
|
|
1643
1644
|
}, e.prototype.getGroup = function(t) {
|
|
1644
1645
|
var r = "";
|
|
1645
1646
|
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
1646
|
-
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(
|
|
1647
|
+
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(Lr);
|
|
1647
1648
|
return r;
|
|
1648
1649
|
}, e;
|
|
1649
1650
|
}(), sa = 1 << 30, ft = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), ht = 1, it = function(e) {
|
|
1650
1651
|
if (ft.has(e)) return ft.get(e);
|
|
1651
1652
|
for (; Lt.has(ht); ) ht++;
|
|
1652
1653
|
var t = ht++;
|
|
1653
|
-
if (
|
|
1654
|
+
if (E.NODE_ENV !== "production" && ((0 | t) < 0 || t > sa)) throw K(16, "".concat(t));
|
|
1654
1655
|
return ft.set(e, t), Lt.set(t, e), t;
|
|
1655
1656
|
}, ca = function(e, t) {
|
|
1656
1657
|
ht = t + 1, ft.set(e, t), Lt.set(t, e);
|
|
1657
|
-
}, la = "style[".concat(ye, "][").concat(
|
|
1658
|
+
}, la = "style[".concat(ye, "][").concat(Jn, '="').concat(Et, '"]'), ua = new RegExp("^".concat(ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), da = function(e, t, r) {
|
|
1658
1659
|
for (var n, o = r.split(","), i = 0, a = o.length; i < a; i++) (n = o[i]) && e.registerName(t, n);
|
|
1659
1660
|
}, fa = function(e, t) {
|
|
1660
|
-
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(
|
|
1661
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Lr), o = [], i = 0, a = n.length; i < a; i++) {
|
|
1661
1662
|
var c = n[i].trim();
|
|
1662
1663
|
if (c) {
|
|
1663
1664
|
var u = c.match(ua);
|
|
@@ -1667,26 +1668,26 @@ var aa = function() {
|
|
|
1667
1668
|
} else o.push(c);
|
|
1668
1669
|
}
|
|
1669
1670
|
}
|
|
1670
|
-
},
|
|
1671
|
+
}, rn = function(e) {
|
|
1671
1672
|
for (var t = document.querySelectorAll(la), r = 0, n = t.length; r < n; r++) {
|
|
1672
1673
|
var o = t[r];
|
|
1673
|
-
o && o.getAttribute(ye) !==
|
|
1674
|
+
o && o.getAttribute(ye) !== Kn && (fa(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1674
1675
|
}
|
|
1675
1676
|
};
|
|
1676
1677
|
function ha() {
|
|
1677
1678
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1678
1679
|
}
|
|
1679
|
-
var
|
|
1680
|
+
var so = function(e) {
|
|
1680
1681
|
var t = document.head, r = e || t, n = document.createElement("style"), o = function(c) {
|
|
1681
1682
|
var u = Array.from(c.querySelectorAll("style[".concat(ye, "]")));
|
|
1682
1683
|
return u[u.length - 1];
|
|
1683
1684
|
}(r), i = o !== void 0 ? o.nextSibling : null;
|
|
1684
|
-
n.setAttribute(ye,
|
|
1685
|
+
n.setAttribute(ye, Kn), n.setAttribute(Jn, Et);
|
|
1685
1686
|
var a = ha();
|
|
1686
1687
|
return a && n.setAttribute("nonce", a), r.insertBefore(n, i), n;
|
|
1687
1688
|
}, pa = function() {
|
|
1688
1689
|
function e(t) {
|
|
1689
|
-
this.element =
|
|
1690
|
+
this.element = so(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
1690
1691
|
if (r.sheet) return r.sheet;
|
|
1691
1692
|
for (var n = document.styleSheets, o = 0, i = n.length; o < i; o++) {
|
|
1692
1693
|
var a = n[o];
|
|
@@ -1709,7 +1710,7 @@ var ao = function(e) {
|
|
|
1709
1710
|
}, e;
|
|
1710
1711
|
}(), _a = function() {
|
|
1711
1712
|
function e(t) {
|
|
1712
|
-
this.element =
|
|
1713
|
+
this.element = so(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1713
1714
|
}
|
|
1714
1715
|
return e.prototype.insertRule = function(t, r) {
|
|
1715
1716
|
if (t <= this.length && t >= 0) {
|
|
@@ -1733,11 +1734,11 @@ var ao = function(e) {
|
|
|
1733
1734
|
}, e.prototype.getRule = function(t) {
|
|
1734
1735
|
return t < this.length ? this.rules[t] : "";
|
|
1735
1736
|
}, e;
|
|
1736
|
-
}(),
|
|
1737
|
+
}(), nn = gt, ga = { isServer: !gt, useCSSOMInjection: !zi }, co = function() {
|
|
1737
1738
|
function e(t, r, n) {
|
|
1738
|
-
t === void 0 && (t =
|
|
1739
|
+
t === void 0 && (t = $e), r === void 0 && (r = {});
|
|
1739
1740
|
var o = this;
|
|
1740
|
-
this.options = D(D({}, ga), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && gt &&
|
|
1741
|
+
this.options = D(D({}, ga), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && gt && nn && (nn = !1, rn(this)), vr(this, function() {
|
|
1741
1742
|
return function(i) {
|
|
1742
1743
|
for (var a = i.getTag(), c = a.length, u = "", d = function(l) {
|
|
1743
1744
|
var p = function(m) {
|
|
@@ -1749,7 +1750,7 @@ var ao = function(e) {
|
|
|
1749
1750
|
var L = "".concat(ye, ".g").concat(l, '[id="').concat(p, '"]'), y = "";
|
|
1750
1751
|
f !== void 0 && f.forEach(function(m) {
|
|
1751
1752
|
m.length > 0 && (y += "".concat(m, ","));
|
|
1752
|
-
}), u += "".concat(_).concat(L, '{content:"').concat(y, '"}').concat(
|
|
1753
|
+
}), u += "".concat(_).concat(L, '{content:"').concat(y, '"}').concat(Lr);
|
|
1753
1754
|
}, h = 0; h < c; h++) d(h);
|
|
1754
1755
|
return u;
|
|
1755
1756
|
}(o);
|
|
@@ -1758,7 +1759,7 @@ var ao = function(e) {
|
|
|
1758
1759
|
return e.registerId = function(t) {
|
|
1759
1760
|
return it(t);
|
|
1760
1761
|
}, e.prototype.rehydrate = function() {
|
|
1761
|
-
!this.server && gt &&
|
|
1762
|
+
!this.server && gt && rn(this);
|
|
1762
1763
|
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
1763
1764
|
return r === void 0 && (r = !0), new e(D(D({}, this.options), t), this.gs, r && this.names || void 0);
|
|
1764
1765
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
@@ -1787,15 +1788,15 @@ var ao = function(e) {
|
|
|
1787
1788
|
this.tag = void 0;
|
|
1788
1789
|
}, e;
|
|
1789
1790
|
}(), La = /&/g, ya = /^\s*\/\/.*$/gm;
|
|
1790
|
-
function
|
|
1791
|
+
function lo(e, t) {
|
|
1791
1792
|
return e.map(function(r) {
|
|
1792
1793
|
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) {
|
|
1793
1794
|
return "".concat(t, " ").concat(n);
|
|
1794
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children =
|
|
1795
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = lo(r.children, t)), r;
|
|
1795
1796
|
});
|
|
1796
1797
|
}
|
|
1797
|
-
function
|
|
1798
|
-
var t, r, n, o = e === void 0 ?
|
|
1798
|
+
function uo(e) {
|
|
1799
|
+
var t, r, n, o = e === void 0 ? $e : e, i = o.options, a = i === void 0 ? $e : i, c = o.plugins, u = c === void 0 ? Vt : c, d = function(p, f, _) {
|
|
1799
1800
|
return _.startsWith(r) && _.endsWith(r) && _.replaceAll(r, "").length > 0 ? ".".concat(t) : p;
|
|
1800
1801
|
}, h = u.slice();
|
|
1801
1802
|
h.push(function(p) {
|
|
@@ -1804,28 +1805,28 @@ function lo(e) {
|
|
|
1804
1805
|
var l = function(p, f, _, L) {
|
|
1805
1806
|
f === void 0 && (f = ""), _ === void 0 && (_ = ""), L === void 0 && (L = "&"), t = L, r = f, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1806
1807
|
var y = p.replace(ya, ""), m = Ai(_ || f ? "".concat(_, " ").concat(f, " { ").concat(y, " }") : y);
|
|
1807
|
-
a.namespace && (m =
|
|
1808
|
+
a.namespace && (m = lo(m, a.namespace));
|
|
1808
1809
|
var g = [];
|
|
1809
|
-
return mt(m, Zi(h.concat(Bi(function(
|
|
1810
|
-
return g.push(
|
|
1810
|
+
return mt(m, Zi(h.concat(Bi(function(V) {
|
|
1811
|
+
return g.push(V);
|
|
1811
1812
|
})))), g;
|
|
1812
1813
|
};
|
|
1813
1814
|
return l.hash = u.length ? u.reduce(function(p, f) {
|
|
1814
1815
|
return f.name || K(15), fe(p, f.name);
|
|
1815
|
-
},
|
|
1816
|
+
}, Qn).toString() : "", l;
|
|
1816
1817
|
}
|
|
1817
|
-
var va = new
|
|
1818
|
-
|
|
1818
|
+
var va = new co(), Qt = uo(), Cr = oe.createContext({ shouldForwardProp: void 0, styleSheet: va, stylis: Qt });
|
|
1819
|
+
Cr.Consumer;
|
|
1819
1820
|
var Ca = oe.createContext(void 0);
|
|
1820
1821
|
function er() {
|
|
1821
|
-
return Ke(
|
|
1822
|
+
return Ke(Cr);
|
|
1822
1823
|
}
|
|
1823
1824
|
function wa(e) {
|
|
1824
|
-
var t =
|
|
1825
|
+
var t = z(e.stylisPlugins), r = t[0], n = t[1], o = er().styleSheet, i = re(function() {
|
|
1825
1826
|
var u = o;
|
|
1826
1827
|
return e.sheet ? u = e.sheet : e.target && (u = u.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (u = u.reconstructWithOptions({ useCSSOMInjection: !1 })), u;
|
|
1827
1828
|
}, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = re(function() {
|
|
1828
|
-
return
|
|
1829
|
+
return uo({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: r });
|
|
1829
1830
|
}, [e.enableVendorPrefixes, e.namespace, r]);
|
|
1830
1831
|
ne(function() {
|
|
1831
1832
|
bi(r, e.stylisPlugins) || n(e.stylisPlugins);
|
|
@@ -1833,7 +1834,7 @@ function wa(e) {
|
|
|
1833
1834
|
var c = re(function() {
|
|
1834
1835
|
return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
|
|
1835
1836
|
}, [e.shouldForwardProp, i, a]);
|
|
1836
|
-
return oe.createElement(
|
|
1837
|
+
return oe.createElement(Cr.Provider, { value: c }, oe.createElement(Ca.Provider, { value: a }, e.children));
|
|
1837
1838
|
}
|
|
1838
1839
|
var tr = function() {
|
|
1839
1840
|
function e(t, r) {
|
|
@@ -1842,7 +1843,7 @@ var tr = function() {
|
|
|
1842
1843
|
i === void 0 && (i = Qt);
|
|
1843
1844
|
var a = n.name + i.hash;
|
|
1844
1845
|
o.hasNameForId(n.id, a) || o.insertRules(n.id, a, i(n.rules, a, "@keyframes"));
|
|
1845
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r,
|
|
1846
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, vr(this, function() {
|
|
1846
1847
|
throw K(12, String(n.name));
|
|
1847
1848
|
});
|
|
1848
1849
|
}
|
|
@@ -1852,7 +1853,7 @@ var tr = function() {
|
|
|
1852
1853
|
}(), Sa = function(e) {
|
|
1853
1854
|
return e >= "A" && e <= "Z";
|
|
1854
1855
|
};
|
|
1855
|
-
function
|
|
1856
|
+
function on(e) {
|
|
1856
1857
|
for (var t = "", r = 0; r < e.length; r++) {
|
|
1857
1858
|
var n = e[r];
|
|
1858
1859
|
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
@@ -1860,39 +1861,39 @@ function nn(e) {
|
|
|
1860
1861
|
}
|
|
1861
1862
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
1862
1863
|
}
|
|
1863
|
-
var
|
|
1864
|
+
var fo = function(e) {
|
|
1864
1865
|
return e == null || e === !1 || e === "";
|
|
1865
|
-
},
|
|
1866
|
+
}, ho = function(e) {
|
|
1866
1867
|
var t, r, n = [];
|
|
1867
1868
|
for (var o in e) {
|
|
1868
1869
|
var i = e[o];
|
|
1869
|
-
e.hasOwnProperty(o) && !
|
|
1870
|
+
e.hasOwnProperty(o) && !fo(i) && (Array.isArray(i) && i.isCss || ve(i) ? n.push("".concat(on(o), ":"), i, ";") : Oe(i) ? n.push.apply(n, Le(Le(["".concat(o, " {")], ho(i), !1), ["}"], !1)) : n.push("".concat(on(o), ": ").concat((t = o, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Wi || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1870
1871
|
}
|
|
1871
1872
|
return n;
|
|
1872
1873
|
};
|
|
1873
1874
|
function ge(e, t, r, n) {
|
|
1874
|
-
if (
|
|
1875
|
-
if (
|
|
1875
|
+
if (fo(e)) return [];
|
|
1876
|
+
if (yr(e)) return [".".concat(e.styledComponentId)];
|
|
1876
1877
|
if (ve(e)) {
|
|
1877
1878
|
if (!ve(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
1878
1879
|
var o = e(t);
|
|
1879
|
-
return
|
|
1880
|
+
return E.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof tr || Oe(o) || o === null || console.error("".concat(ro(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.")), ge(o, t, r, n);
|
|
1880
1881
|
}
|
|
1881
1882
|
var i;
|
|
1882
|
-
return e instanceof tr ? r ? (e.inject(r, n), [e.getName(n)]) : [e] :
|
|
1883
|
+
return e instanceof tr ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : Oe(e) ? ho(e) : Array.isArray(e) ? Array.prototype.concat.apply(Vt, e.map(function(a) {
|
|
1883
1884
|
return ge(a, t, r, n);
|
|
1884
1885
|
})) : [e.toString()];
|
|
1885
1886
|
}
|
|
1886
1887
|
function ba(e) {
|
|
1887
1888
|
for (var t = 0; t < e.length; t += 1) {
|
|
1888
1889
|
var r = e[t];
|
|
1889
|
-
if (ve(r) && !
|
|
1890
|
+
if (ve(r) && !yr(r)) return !1;
|
|
1890
1891
|
}
|
|
1891
1892
|
return !0;
|
|
1892
1893
|
}
|
|
1893
|
-
var
|
|
1894
|
+
var Ea = eo(Et), Va = function() {
|
|
1894
1895
|
function e(t, r, n) {
|
|
1895
|
-
this.rules = t, this.staticRulesId = "", this.isStatic =
|
|
1896
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = E.NODE_ENV === "production" && (n === void 0 || n.isStatic) && ba(t), this.componentId = r, this.baseHash = fe(Ea, r), this.baseStyle = n, co.registerId(r);
|
|
1896
1897
|
}
|
|
1897
1898
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
1898
1899
|
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
@@ -1908,7 +1909,7 @@ var Va = Qn(Vt), Ea = function() {
|
|
|
1908
1909
|
else {
|
|
1909
1910
|
for (var u = fe(this.baseHash, n.hash), d = "", h = 0; h < this.rules.length; h++) {
|
|
1910
1911
|
var l = this.rules[h];
|
|
1911
|
-
if (typeof l == "string") d += l,
|
|
1912
|
+
if (typeof l == "string") d += l, E.NODE_ENV !== "production" && (u = fe(u, l));
|
|
1912
1913
|
else if (l) {
|
|
1913
1914
|
var p = Kt(ge(l, t, r, n));
|
|
1914
1915
|
u = fe(u, p + h), d += p;
|
|
@@ -1923,7 +1924,7 @@ var Va = Qn(Vt), Ea = function() {
|
|
|
1923
1924
|
}, e;
|
|
1924
1925
|
}(), je = oe.createContext(void 0);
|
|
1925
1926
|
je.Consumer;
|
|
1926
|
-
function
|
|
1927
|
+
function po() {
|
|
1927
1928
|
var e = Ke(je);
|
|
1928
1929
|
if (!e) throw K(18);
|
|
1929
1930
|
return e;
|
|
@@ -1934,7 +1935,7 @@ function ka(e) {
|
|
|
1934
1935
|
if (!n) throw K(14);
|
|
1935
1936
|
if (ve(n)) {
|
|
1936
1937
|
var i = n(o);
|
|
1937
|
-
if (
|
|
1938
|
+
if (E.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw K(7);
|
|
1938
1939
|
return i;
|
|
1939
1940
|
}
|
|
1940
1941
|
if (Array.isArray(n) || typeof n != "object") throw K(8);
|
|
@@ -1943,16 +1944,16 @@ function ka(e) {
|
|
|
1943
1944
|
}, [e.theme, t]);
|
|
1944
1945
|
return e.children ? oe.createElement(je.Provider, { value: r }, e.children) : null;
|
|
1945
1946
|
}
|
|
1946
|
-
var Pt = {},
|
|
1947
|
+
var Pt = {}, an = /* @__PURE__ */ new Set();
|
|
1947
1948
|
function xa(e, t, r) {
|
|
1948
|
-
var n =
|
|
1949
|
-
var S = typeof b != "string" ? "sc" :
|
|
1949
|
+
var n = yr(e), o = e, i = !At(e), a = t.attrs, c = a === void 0 ? Vt : a, u = t.componentId, d = u === void 0 ? function(b, x) {
|
|
1950
|
+
var S = typeof b != "string" ? "sc" : Kr(b);
|
|
1950
1951
|
Pt[S] = (Pt[S] || 0) + 1;
|
|
1951
|
-
var v = "".concat(S, "-").concat(
|
|
1952
|
+
var v = "".concat(S, "-").concat(to(Et + S + Pt[S]));
|
|
1952
1953
|
return x ? "".concat(x, "-").concat(v) : v;
|
|
1953
1954
|
}(t.displayName, t.parentComponentId) : u, h = t.displayName, l = h === void 0 ? function(b) {
|
|
1954
|
-
return At(b) ? "styled.".concat(b) : "Styled(".concat(
|
|
1955
|
-
}(e) : h, p = t.displayName && t.componentId ? "".concat(
|
|
1955
|
+
return At(b) ? "styled.".concat(b) : "Styled(".concat(ro(b), ")");
|
|
1956
|
+
}(e) : h, p = t.displayName && t.componentId ? "".concat(Kr(t.displayName), "-").concat(t.componentId) : t.componentId || d, f = n && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, _ = t.shouldForwardProp;
|
|
1956
1957
|
if (n && o.shouldForwardProp) {
|
|
1957
1958
|
var L = o.shouldForwardProp;
|
|
1958
1959
|
if (t.shouldForwardProp) {
|
|
@@ -1962,31 +1963,31 @@ function xa(e, t, r) {
|
|
|
1962
1963
|
};
|
|
1963
1964
|
} else _ = L;
|
|
1964
1965
|
}
|
|
1965
|
-
var m = new
|
|
1966
|
+
var m = new Va(r, p, n ? o.componentStyle : void 0);
|
|
1966
1967
|
function g(b, x) {
|
|
1967
1968
|
return function(S, v, A) {
|
|
1968
|
-
var B = S.attrs, De = S.componentStyle, U = S.defaultProps, le = S.foldedComponentIds,
|
|
1969
|
-
|
|
1970
|
-
var
|
|
1971
|
-
for (var we, ue = D(D({}, Ae), { className: void 0, theme: Qe }),
|
|
1972
|
-
var et = ve(we = Je[
|
|
1969
|
+
var B = S.attrs, De = S.componentStyle, U = S.defaultProps, le = S.foldedComponentIds, Sr = S.styledComponentId, Co = S.target, wo = oe.useContext(je), So = er(), xt = S.shouldForwardProp || So.shouldForwardProp;
|
|
1970
|
+
E.NODE_ENV !== "production" && _t(Sr);
|
|
1971
|
+
var br = Gi(v, wo, U) || $e, J = function(Je, Ae, Qe) {
|
|
1972
|
+
for (var we, ue = D(D({}, Ae), { className: void 0, theme: Qe }), Mt = 0; Mt < Je.length; Mt += 1) {
|
|
1973
|
+
var et = ve(we = Je[Mt]) ? we(ue) : we;
|
|
1973
1974
|
for (var ie in et) ue[ie] = ie === "className" ? he(ue[ie], et[ie]) : ie === "style" ? D(D({}, ue[ie]), et[ie]) : et[ie];
|
|
1974
1975
|
}
|
|
1975
1976
|
return Ae.className && (ue.className = he(ue.className, Ae.className)), ue;
|
|
1976
|
-
}(B, v,
|
|
1977
|
-
for (var W in J) J[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && J.theme ===
|
|
1978
|
-
var
|
|
1977
|
+
}(B, v, br), Te = J.as || Co, Re = {};
|
|
1978
|
+
for (var W in J) J[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && J.theme === br || (W === "forwardedAs" ? Re.as = J.forwardedAs : xt && !xt(W, Te) || (Re[W] = J[W], xt || E.NODE_ENV !== "development" || Wo(W) || an.has(W) || !Yt.has(Te) || (an.add(W), console.warn('styled-components: it looks like an unknown prop "'.concat(W, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1979
|
+
var $t = function(Je, Ae) {
|
|
1979
1980
|
var Qe = er(), we = Je.generateAndInjectStyles(Ae, Qe.styleSheet, Qe.stylis);
|
|
1980
|
-
return
|
|
1981
|
+
return E.NODE_ENV !== "production" && _t(we), we;
|
|
1981
1982
|
}(De, J);
|
|
1982
|
-
|
|
1983
|
-
var
|
|
1984
|
-
return
|
|
1985
|
-
}(
|
|
1983
|
+
E.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses($t);
|
|
1984
|
+
var Ot = he(le, Sr);
|
|
1985
|
+
return $t && (Ot += " " + $t), J.className && (Ot += " " + J.className), Re[At(Te) && !Yt.has(Te) ? "class" : "className"] = Ot, A && (Re.ref = A), T(Te, Re);
|
|
1986
|
+
}(V, b, x);
|
|
1986
1987
|
}
|
|
1987
1988
|
g.displayName = l;
|
|
1988
|
-
var
|
|
1989
|
-
return
|
|
1989
|
+
var V = oe.forwardRef(g);
|
|
1990
|
+
return V.attrs = f, V.componentStyle = m, V.displayName = l, V.shouldForwardProp = _, V.foldedComponentIds = n ? he(o.foldedComponentIds, o.styledComponentId) : "", V.styledComponentId = p, V.target = n ? o.target : e, Object.defineProperty(V, "defaultProps", { get: function() {
|
|
1990
1991
|
return this._foldedDefaultProps;
|
|
1991
1992
|
}, set: function(b) {
|
|
1992
1993
|
this._foldedDefaultProps = n ? function(x) {
|
|
@@ -1994,7 +1995,7 @@ function xa(e, t, r) {
|
|
|
1994
1995
|
for (var A = 0, B = S; A < B.length; A++) Jt(x, B[A], !0);
|
|
1995
1996
|
return x;
|
|
1996
1997
|
}({}, o.defaultProps, b) : b;
|
|
1997
|
-
} }),
|
|
1998
|
+
} }), E.NODE_ENV !== "production" && (Fi(l, p), V.warnTooManyClasses = /* @__PURE__ */ function(b, x) {
|
|
1998
1999
|
var S = {}, v = !1;
|
|
1999
2000
|
return function(A) {
|
|
2000
2001
|
if (!v && (S[A] = !0, Object.keys(S).length >= 200)) {
|
|
@@ -2011,28 +2012,28 @@ Example:
|
|
|
2011
2012
|
<Component />`), v = !0, S = {};
|
|
2012
2013
|
}
|
|
2013
2014
|
};
|
|
2014
|
-
}(l, p)),
|
|
2015
|
-
return ".".concat(
|
|
2016
|
-
}), i &&
|
|
2015
|
+
}(l, p)), vr(V, function() {
|
|
2016
|
+
return ".".concat(V.styledComponentId);
|
|
2017
|
+
}), i && ao(V, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), V;
|
|
2017
2018
|
}
|
|
2018
|
-
function
|
|
2019
|
+
function sn(e, t) {
|
|
2019
2020
|
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
2020
2021
|
return r;
|
|
2021
2022
|
}
|
|
2022
|
-
var
|
|
2023
|
+
var cn = function(e) {
|
|
2023
2024
|
return Object.assign(e, { isCss: !0 });
|
|
2024
2025
|
};
|
|
2025
|
-
function
|
|
2026
|
+
function wr(e) {
|
|
2026
2027
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
2027
|
-
if (ve(e) ||
|
|
2028
|
+
if (ve(e) || Oe(e)) return cn(ge(sn(Vt, Le([e], t, !0))));
|
|
2028
2029
|
var n = e;
|
|
2029
|
-
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ge(n) :
|
|
2030
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ge(n) : cn(ge(sn(n, t)));
|
|
2030
2031
|
}
|
|
2031
2032
|
function rr(e, t, r) {
|
|
2032
|
-
if (r === void 0 && (r =
|
|
2033
|
+
if (r === void 0 && (r = $e), !t) throw K(1, t);
|
|
2033
2034
|
var n = function(o) {
|
|
2034
2035
|
for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
|
2035
|
-
return e(t, r,
|
|
2036
|
+
return e(t, r, wr.apply(void 0, Le([o], i, !1)));
|
|
2036
2037
|
};
|
|
2037
2038
|
return n.attrs = function(o) {
|
|
2038
2039
|
return rr(e, t, D(D({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
@@ -2040,23 +2041,23 @@ function rr(e, t, r) {
|
|
|
2040
2041
|
return rr(e, t, D(D({}, r), o));
|
|
2041
2042
|
}, n;
|
|
2042
2043
|
}
|
|
2043
|
-
var
|
|
2044
|
+
var _o = function(e) {
|
|
2044
2045
|
return rr(xa, e);
|
|
2045
|
-
}, Z =
|
|
2046
|
+
}, Z = _o;
|
|
2046
2047
|
Yt.forEach(function(e) {
|
|
2047
|
-
Z[e] =
|
|
2048
|
+
Z[e] = _o(e);
|
|
2048
2049
|
});
|
|
2049
2050
|
function kt(e) {
|
|
2050
2051
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
2051
|
-
|
|
2052
|
-
var n = Kt(
|
|
2052
|
+
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.");
|
|
2053
|
+
var n = Kt(wr.apply(void 0, Le([e], t, !1))), o = to(n);
|
|
2053
2054
|
return new tr(o, n);
|
|
2054
2055
|
}
|
|
2055
|
-
|
|
2056
|
+
E.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
2056
2057
|
Perhaps you're looking to import 'styled-components/native'?
|
|
2057
2058
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
2058
2059
|
var at = "__sc-".concat(ye, "__");
|
|
2059
|
-
|
|
2060
|
+
E.NODE_ENV !== "production" && E.NODE_ENV !== "test" && typeof window < "u" && (window[at] || (window[at] = 0), window[at] === 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.
|
|
2060
2061
|
|
|
2061
2062
|
See https://s-c.sh/2BAXzed for more info.`), window[at] += 1);
|
|
2062
2063
|
const P = {
|
|
@@ -2072,7 +2073,7 @@ const P = {
|
|
|
2072
2073
|
ID_SOLID_ROUNDED: "id-solid-rounded",
|
|
2073
2074
|
PASSPORT_SOLID_BACK: "passport-solid-back",
|
|
2074
2075
|
PASSPORT_SOLID_BACK_BLANK: "passport-solid-back-blank"
|
|
2075
|
-
},
|
|
2076
|
+
}, ln = 0.24, $a = 24, Oa = 2, mo = 14, Ma = 0.0276;
|
|
2076
2077
|
var ee = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(ee || {});
|
|
2077
2078
|
const Be = {
|
|
2078
2079
|
300: {
|
|
@@ -2095,28 +2096,28 @@ const Be = {
|
|
|
2095
2096
|
marginLeft: 12,
|
|
2096
2097
|
buttonPadding: 24
|
|
2097
2098
|
}
|
|
2099
|
+
}, Na = {
|
|
2100
|
+
[R.CANDIDATE_SELECTION]: "Hold still…",
|
|
2101
|
+
[R.DOCUMENT_CENTERING]: "Center document",
|
|
2102
|
+
[R.DOCUMENT_NOT_PRESENT]: "Scan document",
|
|
2103
|
+
[R.DOCUMENT_TOO_FAR]: "Move closer",
|
|
2104
|
+
[R.SHARPNESS_TOO_LOW]: "More light needed",
|
|
2105
|
+
[R.BRIGHTNESS_TOO_LOW]: "More light needed",
|
|
2106
|
+
[R.BRIGHTNESS_TOO_HIGH]: "Less light needed",
|
|
2107
|
+
[R.HOTSPOTS_PRESENT]: "Avoid reflections"
|
|
2098
2108
|
}, Ia = {
|
|
2099
|
-
[
|
|
2100
|
-
[
|
|
2101
|
-
[
|
|
2102
|
-
[
|
|
2103
|
-
|
|
2104
|
-
[T.BRIGHTNESS_TOO_LOW]: "More light needed",
|
|
2105
|
-
[T.BRIGHTNESS_TOO_HIGH]: "Less light needed",
|
|
2106
|
-
[T.HOTSPOTS_PRESENT]: "Avoid reflections"
|
|
2107
|
-
}, Ma = {
|
|
2108
|
-
[T.BRIGHTNESS_TOO_LOW]: "Move document to brighter area",
|
|
2109
|
-
[T.SHARPNESS_TOO_LOW]: "Move document to brighter area",
|
|
2110
|
-
[T.BRIGHTNESS_TOO_HIGH]: "Move document to darker area",
|
|
2111
|
-
[T.DOCUMENT_TOO_FAR]: "Move document closer"
|
|
2112
|
-
}, ln = {
|
|
2109
|
+
[R.BRIGHTNESS_TOO_LOW]: "Move document to brighter area",
|
|
2110
|
+
[R.SHARPNESS_TOO_LOW]: "Move document to brighter area",
|
|
2111
|
+
[R.BRIGHTNESS_TOO_HIGH]: "Move document to darker area",
|
|
2112
|
+
[R.DOCUMENT_TOO_FAR]: "Move document closer"
|
|
2113
|
+
}, un = {
|
|
2113
2114
|
loading: { text: "Loading. Please wait.", visible: !0 },
|
|
2114
2115
|
waiting: { text: "Waiting for input...", visible: !0 }
|
|
2115
|
-
}, Da = P.ID_CORNERS_ROUNDED,
|
|
2116
|
-
function
|
|
2117
|
-
return Math.max(t, t + (e - 400) *
|
|
2116
|
+
}, Da = P.ID_CORNERS_ROUNDED, Ta = "rgba(19, 19, 19, 0.5)", Ra = 34;
|
|
2117
|
+
function dn(e, t) {
|
|
2118
|
+
return Math.max(t, t + (e - 400) * Ma + 2);
|
|
2118
2119
|
}
|
|
2119
|
-
const Aa = (e, t =
|
|
2120
|
+
const Aa = (e, t = mo) => e ? e.width < e.height ? dn(e.width, t) : dn(e.height, t) : t, Pa = (e) => e > ee.Default ? Be[ee.Default] : e > ee.L ? Be[ee.L] : e > ee.M ? Be[ee.M] : Be[ee.S], Ha = (e) => e ? Pa(e.width) : Be[ee.Default];
|
|
2120
2121
|
function Za() {
|
|
2121
2122
|
const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
|
|
2122
2123
|
if (!document.querySelector(`link[href="${e}"]`)) {
|
|
@@ -2133,24 +2134,24 @@ function Ba({
|
|
|
2133
2134
|
if (n)
|
|
2134
2135
|
return o && t && n in t ? t[n] : r[n];
|
|
2135
2136
|
}
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2137
|
+
const Fe = kn(void 0);
|
|
2138
|
+
Fe.displayName = "UiCustomizationContext";
|
|
2138
2139
|
function Ce() {
|
|
2139
|
-
const e = Ke(
|
|
2140
|
+
const e = Ke(Fe);
|
|
2140
2141
|
if (!e)
|
|
2141
2142
|
throw new Error(
|
|
2142
|
-
`${
|
|
2143
|
+
`${Fe.displayName} must be used within a ${Fe.displayName} Provider`
|
|
2143
2144
|
);
|
|
2144
2145
|
return e;
|
|
2145
2146
|
}
|
|
2146
2147
|
function Ua({ children: e, props: t, videoElementSize: r }) {
|
|
2147
|
-
const { font: n } =
|
|
2148
|
+
const { font: n } = po(), o = re(
|
|
2148
2149
|
() => ({ ...t, videoElementSize: r, fontSize: Aa(r, n.minimumSize) }),
|
|
2149
2150
|
[t, n.minimumSize, r]
|
|
2150
2151
|
);
|
|
2151
|
-
return /* @__PURE__ */ s(
|
|
2152
|
+
return /* @__PURE__ */ s(Fe.Provider, { value: o, children: e });
|
|
2152
2153
|
}
|
|
2153
|
-
const
|
|
2154
|
+
const go = ({ svgSize: e }) => /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ s(
|
|
2154
2155
|
"path",
|
|
2155
2156
|
{
|
|
2156
2157
|
clipRule: "evenodd",
|
|
@@ -2177,14 +2178,14 @@ const mo = ({ svgSize: e }) => /* @__PURE__ */ s("svg", { fill: "none", height:
|
|
|
2177
2178
|
aspect-ratio: 9/16;
|
|
2178
2179
|
}
|
|
2179
2180
|
`}
|
|
2180
|
-
`,
|
|
2181
|
+
`, za = Z.div`
|
|
2181
2182
|
width: 100%;
|
|
2182
2183
|
display: flex;
|
|
2183
2184
|
flex-direction: column;
|
|
2184
2185
|
justify-content: center;
|
|
2185
2186
|
align-items: center;
|
|
2186
2187
|
color: ${(e) => e.theme.colors.instructionTextColor};
|
|
2187
|
-
`,
|
|
2188
|
+
`, Fa = Z.p`
|
|
2188
2189
|
background: ${(e) => e.theme.colors.instructionColor};
|
|
2189
2190
|
border-radius: 0.25em;
|
|
2190
2191
|
padding: 0.583em 0.666em;
|
|
@@ -2194,12 +2195,12 @@ const mo = ({ svgSize: e }) => /* @__PURE__ */ s("svg", { fill: "none", height:
|
|
|
2194
2195
|
max-width: 80%;
|
|
2195
2196
|
`, nr = ({ Icon: e, isCameraReady: t, position: r = "absolute", text: n }) => {
|
|
2196
2197
|
const { fontSize: o } = Ce();
|
|
2197
|
-
return /* @__PURE__ */ s(Wa, { $isCameraReady: t, $position: r, children: /* @__PURE__ */ s(
|
|
2198
|
+
return /* @__PURE__ */ s(Wa, { $isCameraReady: t, $position: r, children: /* @__PURE__ */ s(za, { children: [
|
|
2198
2199
|
e ? /* @__PURE__ */ s(e, { svgSize: o * 2 }) : null,
|
|
2199
|
-
/* @__PURE__ */ s(
|
|
2200
|
+
/* @__PURE__ */ s(Fa, { $fontSize: o, children: n })
|
|
2200
2201
|
] }) });
|
|
2201
|
-
},
|
|
2202
|
-
class Ga extends
|
|
2202
|
+
}, Lo = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ s(nr, { Icon: go, position: "relative", text: e });
|
|
2203
|
+
class Ga extends j {
|
|
2203
2204
|
constructor(t) {
|
|
2204
2205
|
super(t), this.state = { hasError: !1 };
|
|
2205
2206
|
}
|
|
@@ -2210,7 +2211,7 @@ class Ga extends G {
|
|
|
2210
2211
|
console.error(t, r);
|
|
2211
2212
|
}
|
|
2212
2213
|
render() {
|
|
2213
|
-
return this.state.hasError ? /* @__PURE__ */ s(
|
|
2214
|
+
return this.state.hasError ? /* @__PURE__ */ s(Lo, { Icon: go, isCameraReady: !1 }) : this.props.children;
|
|
2214
2215
|
}
|
|
2215
2216
|
}
|
|
2216
2217
|
const ja = Z.div`
|
|
@@ -2235,14 +2236,14 @@ const ja = Z.div`
|
|
|
2235
2236
|
);
|
|
2236
2237
|
};
|
|
2237
2238
|
function Ja(e) {
|
|
2238
|
-
const [t, r] =
|
|
2239
|
+
const [t, r] = z(), n = _e(
|
|
2239
2240
|
(o) => {
|
|
2240
2241
|
var i;
|
|
2241
2242
|
r((i = o.detail) == null ? void 0 : i.size);
|
|
2242
2243
|
},
|
|
2243
2244
|
[r]
|
|
2244
2245
|
);
|
|
2245
|
-
return be(e, n),
|
|
2246
|
+
return be(e, n), Ne(() => {
|
|
2246
2247
|
if (!t) {
|
|
2247
2248
|
const o = document.getElementById(Ka);
|
|
2248
2249
|
o && r(o.getBoundingClientRect());
|
|
@@ -2262,7 +2263,7 @@ const es = {
|
|
|
2262
2263
|
family: "Montserrat, Arial, sans-serif",
|
|
2263
2264
|
weight: "600",
|
|
2264
2265
|
style: "normal",
|
|
2265
|
-
minimumSize:
|
|
2266
|
+
minimumSize: mo
|
|
2266
2267
|
}, Pe = {
|
|
2267
2268
|
colors: es,
|
|
2268
2269
|
font: ts
|
|
@@ -2295,7 +2296,7 @@ function is({ height: e, width: t }) {
|
|
|
2295
2296
|
height: os(e, r)
|
|
2296
2297
|
};
|
|
2297
2298
|
}
|
|
2298
|
-
const as = (e) => {
|
|
2299
|
+
const as = (e, t) => Math.min(e, t), ss = (e) => {
|
|
2299
2300
|
const r = is(e).width * Xa, n = (e.width - r) / 2, o = r / Ya, i = (e.height - o) / 2;
|
|
2300
2301
|
return {
|
|
2301
2302
|
shiftX: n,
|
|
@@ -2303,15 +2304,15 @@ const as = (e) => {
|
|
|
2303
2304
|
width: r,
|
|
2304
2305
|
height: o
|
|
2305
2306
|
};
|
|
2306
|
-
},
|
|
2307
|
-
const { height: t, shiftX: r, shiftY: n, width: o } =
|
|
2307
|
+
}, cs = (e) => {
|
|
2308
|
+
const { height: t, shiftX: r, shiftY: n, width: o } = ss(e);
|
|
2308
2309
|
return {
|
|
2309
2310
|
shiftX: r / e.width,
|
|
2310
2311
|
shiftY: n / e.height,
|
|
2311
2312
|
width: o / e.width,
|
|
2312
2313
|
height: t / e.height
|
|
2313
2314
|
};
|
|
2314
|
-
},
|
|
2315
|
+
}, or = (e, t) => {
|
|
2315
2316
|
document.dispatchEvent(
|
|
2316
2317
|
new CustomEvent(e, {
|
|
2317
2318
|
detail: t
|
|
@@ -2319,9 +2320,11 @@ const as = (e) => {
|
|
|
2319
2320
|
);
|
|
2320
2321
|
}, yt = class yt {
|
|
2321
2322
|
constructor() {
|
|
2322
|
-
tt(this, "lastDetails"
|
|
2323
|
-
tt(this, "delayedTime"
|
|
2323
|
+
tt(this, "lastDetails");
|
|
2324
|
+
tt(this, "delayedTime");
|
|
2325
|
+
this.lastDetails = {}, this.delayedTime = 0;
|
|
2324
2326
|
}
|
|
2327
|
+
// TODO remove singleton
|
|
2325
2328
|
static getInstance() {
|
|
2326
2329
|
return this._instance || (this._instance = new yt()), this._instance;
|
|
2327
2330
|
}
|
|
@@ -2344,7 +2347,7 @@ const as = (e) => {
|
|
|
2344
2347
|
* @param detail - Record<string, unknown>
|
|
2345
2348
|
*/
|
|
2346
2349
|
dispatchCustomEventOnChange(t, r) {
|
|
2347
|
-
this.isDetailChanged(t, r) &&
|
|
2350
|
+
this.isDetailChanged(t, r) && or(t, r);
|
|
2348
2351
|
}
|
|
2349
2352
|
/**
|
|
2350
2353
|
* If the detail of the event has changed, delay time has passed, dispatch the event
|
|
@@ -2356,29 +2359,34 @@ const as = (e) => {
|
|
|
2356
2359
|
const o = performance.now();
|
|
2357
2360
|
o - this.delayedTime > n && (this.dispatchCustomEventOnChange(t, r), this.delayedTime = o);
|
|
2358
2361
|
}
|
|
2362
|
+
// implement this method in the class
|
|
2363
|
+
dispatchCustomEvent(t, r) {
|
|
2364
|
+
or(t, r);
|
|
2365
|
+
}
|
|
2359
2366
|
};
|
|
2367
|
+
// TODO remove singleton
|
|
2360
2368
|
tt(yt, "_instance");
|
|
2361
|
-
let
|
|
2362
|
-
|
|
2363
|
-
const
|
|
2364
|
-
|
|
2369
|
+
let ir = yt;
|
|
2370
|
+
ir.getInstance();
|
|
2371
|
+
const fn = (e, t) => {
|
|
2372
|
+
or(e, {
|
|
2365
2373
|
instruction: t
|
|
2366
2374
|
});
|
|
2367
2375
|
};
|
|
2368
|
-
async function
|
|
2376
|
+
async function ls() {
|
|
2369
2377
|
return navigator.mediaDevices.enumerateDevices();
|
|
2370
2378
|
}
|
|
2371
|
-
async function
|
|
2372
|
-
return (await
|
|
2379
|
+
async function us() {
|
|
2380
|
+
return (await ls()).filter((t) => t.kind === "videoinput");
|
|
2373
2381
|
}
|
|
2374
|
-
const
|
|
2375
|
-
const [e, t] =
|
|
2382
|
+
const ds = () => {
|
|
2383
|
+
const [e, t] = z(!1);
|
|
2376
2384
|
return ne(() => {
|
|
2377
2385
|
(async () => {
|
|
2378
|
-
(await
|
|
2386
|
+
(await us()).length > 1 && t(!0);
|
|
2379
2387
|
})();
|
|
2380
2388
|
}, []), e;
|
|
2381
|
-
},
|
|
2389
|
+
}, fs = ({ size: e }) => /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2382
2390
|
/* @__PURE__ */ s(
|
|
2383
2391
|
"path",
|
|
2384
2392
|
{
|
|
@@ -2405,7 +2413,7 @@ const us = () => {
|
|
|
2405
2413
|
strokeWidth: "2"
|
|
2406
2414
|
}
|
|
2407
2415
|
)
|
|
2408
|
-
] }),
|
|
2416
|
+
] }), hs = ({ size: e }) => /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2409
2417
|
/* @__PURE__ */ s("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
|
|
2410
2418
|
/* @__PURE__ */ s(
|
|
2411
2419
|
"path",
|
|
@@ -2424,36 +2432,36 @@ const us = () => {
|
|
|
2424
2432
|
&:disabled {
|
|
2425
2433
|
cursor: not-allowed;
|
|
2426
2434
|
}
|
|
2427
|
-
`,
|
|
2435
|
+
`, ps = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ s(yo, { $marginLeft: e, ...r, children: /* @__PURE__ */ s(fs, { size: t }) }), _s = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ s(yo, { $marginLeft: e, ...r, children: /* @__PURE__ */ s(hs, { size: t }) }), ms = Z.div`
|
|
2428
2436
|
position: absolute;
|
|
2429
2437
|
top: 0;
|
|
2430
2438
|
right: 0;
|
|
2431
2439
|
padding: ${(e) => `${e.$padding}px`};
|
|
2432
2440
|
z-index: 2;
|
|
2433
|
-
`,
|
|
2441
|
+
`, gs = ({
|
|
2434
2442
|
customControlEvent: e,
|
|
2435
2443
|
isSwitchCameraDisabled: t
|
|
2436
2444
|
}) => {
|
|
2437
|
-
const { showCameraButtons: r, videoElementSize: n } = Ce(), o =
|
|
2445
|
+
const { showCameraButtons: r, videoElementSize: n } = Ce(), o = ds();
|
|
2438
2446
|
if (!r)
|
|
2439
2447
|
return null;
|
|
2440
2448
|
const { buttonPadding: i, iconSize: a, marginLeft: c } = Ha(n);
|
|
2441
|
-
return /* @__PURE__ */ s(
|
|
2442
|
-
o && /* @__PURE__ */ s(
|
|
2443
|
-
|
|
2449
|
+
return /* @__PURE__ */ s(ms, { $padding: i, children: [
|
|
2450
|
+
o && /* @__PURE__ */ s(_s, { disabled: t, onClick: () => {
|
|
2451
|
+
fn(e, $r.SWITCH_CAMERA);
|
|
2444
2452
|
}, size: a }),
|
|
2445
2453
|
/* @__PURE__ */ s(
|
|
2446
|
-
|
|
2454
|
+
ps,
|
|
2447
2455
|
{
|
|
2448
2456
|
marginLeft: o ? c : 0,
|
|
2449
2457
|
onClick: () => {
|
|
2450
|
-
|
|
2458
|
+
fn(e, $r.TOGGLE_MIRROR);
|
|
2451
2459
|
},
|
|
2452
2460
|
size: a
|
|
2453
2461
|
}
|
|
2454
2462
|
)
|
|
2455
2463
|
] });
|
|
2456
|
-
},
|
|
2464
|
+
}, Ls = "2.5s", ys = "0.3s", vs = "linear", Cs = kt`
|
|
2457
2465
|
0% {
|
|
2458
2466
|
opacity: 0;
|
|
2459
2467
|
}
|
|
@@ -2505,16 +2513,16 @@ kt`
|
|
|
2505
2513
|
opacity: 1;
|
|
2506
2514
|
}
|
|
2507
2515
|
`;
|
|
2508
|
-
const
|
|
2516
|
+
const ws = Z.div`
|
|
2509
2517
|
position: absolute;
|
|
2510
2518
|
left: 50%;
|
|
2511
2519
|
|
|
2512
2520
|
${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
|
|
2513
2521
|
${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
|
|
2514
|
-
${(e) => e.$isAnimating &&
|
|
2515
|
-
animation: ${
|
|
2516
|
-
${
|
|
2517
|
-
animation-delay: ${
|
|
2522
|
+
${(e) => e.$isAnimating && wr`
|
|
2523
|
+
animation: ${Cs} ${ys}
|
|
2524
|
+
${vs} both;
|
|
2525
|
+
animation-delay: ${Ls};
|
|
2518
2526
|
|
|
2519
2527
|
@media (orientation: landscape) {
|
|
2520
2528
|
bottom: ${e.$cssBottom ? e.$cssBottom - 15 : ""}%;
|
|
@@ -2538,7 +2546,7 @@ const Cs = Z.div`
|
|
|
2538
2546
|
${(e) => e.$cssTop || e.$isPortrait ? "-50%" : e.$isPortrait ? "" : "50%"}
|
|
2539
2547
|
);
|
|
2540
2548
|
z-index: 2;
|
|
2541
|
-
`,
|
|
2549
|
+
`, Ss = Z.div`
|
|
2542
2550
|
display: flex;
|
|
2543
2551
|
align-items: center;
|
|
2544
2552
|
justify-content: center;
|
|
@@ -2552,7 +2560,7 @@ const Cs = Z.div`
|
|
|
2552
2560
|
line-height: 1em;
|
|
2553
2561
|
font-size: ${(e) => `${e.$fontSize}px`};
|
|
2554
2562
|
white-space: ${(e) => e.$wrap ? "break-spaces" : "nowrap"};
|
|
2555
|
-
`,
|
|
2563
|
+
`, bs = ({
|
|
2556
2564
|
children: e,
|
|
2557
2565
|
cssBottom: t,
|
|
2558
2566
|
cssTop: r,
|
|
@@ -2561,16 +2569,16 @@ const Cs = Z.div`
|
|
|
2561
2569
|
isPortrait: i
|
|
2562
2570
|
}) => {
|
|
2563
2571
|
const { fontSize: a } = Ce();
|
|
2564
|
-
return /* @__PURE__ */ s(
|
|
2565
|
-
|
|
2572
|
+
return /* @__PURE__ */ s(ws, { $cssBottom: t, $cssTop: r, $isAnimating: n, $isPortrait: i, children: /* @__PURE__ */ s(
|
|
2573
|
+
Ss,
|
|
2566
2574
|
{
|
|
2567
2575
|
$fontSize: a,
|
|
2568
2576
|
$isInCandidateSelection: o,
|
|
2569
|
-
$wrap: e.length >
|
|
2577
|
+
$wrap: e.length > Ra,
|
|
2570
2578
|
children: e
|
|
2571
2579
|
}
|
|
2572
2580
|
) });
|
|
2573
|
-
},
|
|
2581
|
+
}, Es = Z.canvas`
|
|
2574
2582
|
transform: ${(e) => e.$isImageMirror ? "rotateY(180deg)" : "none"};
|
|
2575
2583
|
position: absolute;
|
|
2576
2584
|
top: 0;
|
|
@@ -2578,57 +2586,59 @@ const Cs = Z.div`
|
|
|
2578
2586
|
width: 100%;
|
|
2579
2587
|
height: 100%;
|
|
2580
2588
|
z-index: 1;
|
|
2581
|
-
|
|
2589
|
+
`;
|
|
2590
|
+
function Vs(e) {
|
|
2582
2591
|
const t = e.getContext("2d");
|
|
2583
2592
|
t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
|
|
2584
|
-
}
|
|
2593
|
+
}
|
|
2594
|
+
const Ue = (e, t) => Math.hypot(t.x - e.x, t.y - e.y), hn = (e, t, r) => {
|
|
2585
2595
|
const n = (t.x - e.x) * r, o = (t.y - e.y) * r;
|
|
2586
2596
|
return {
|
|
2587
2597
|
x: e.x + n,
|
|
2588
2598
|
y: e.y + o
|
|
2589
2599
|
};
|
|
2590
|
-
},
|
|
2600
|
+
}, pn = (e, t, r, n) => {
|
|
2591
2601
|
const o = Ue(e, t);
|
|
2592
2602
|
return r * n / o;
|
|
2593
|
-
},
|
|
2603
|
+
}, ks = (e) => {
|
|
2594
2604
|
const { bottomLeft: t, bottomRight: r, topLeft: n, topRight: o } = e, i = Ue(n, o), a = Ue(o, r), c = Ue(t, r), u = Ue(n, t);
|
|
2595
2605
|
return Math.min(i, a, c, u);
|
|
2596
2606
|
};
|
|
2597
|
-
function
|
|
2598
|
-
const r = Xe(null), n =
|
|
2607
|
+
function xs({ cameraResolution: e, isImageMirror: t }) {
|
|
2608
|
+
const r = Xe(null), n = po(), [o, i] = z(), a = _e(
|
|
2599
2609
|
(c) => {
|
|
2600
2610
|
var u;
|
|
2601
2611
|
i((u = c == null ? void 0 : c.detail) == null ? void 0 : u.detectedObject);
|
|
2602
2612
|
},
|
|
2603
2613
|
[i]
|
|
2604
2614
|
);
|
|
2605
|
-
return be(pe.DETECTED_DOCUMENT_CHANGED, a), be(
|
|
2615
|
+
return be(pe.DETECTED_DOCUMENT_CHANGED, a), be($n.DETECTED_PALM_CHANGED, a), ne(() => {
|
|
2606
2616
|
if (!r.current)
|
|
2607
2617
|
return;
|
|
2608
2618
|
const c = (d, h, l, p) => {
|
|
2609
2619
|
var g;
|
|
2610
|
-
const f =
|
|
2620
|
+
const f = pn(
|
|
2611
2621
|
h,
|
|
2612
2622
|
d,
|
|
2613
2623
|
p,
|
|
2614
|
-
|
|
2615
|
-
), _ =
|
|
2624
|
+
ln
|
|
2625
|
+
), _ = pn(
|
|
2616
2626
|
h,
|
|
2617
2627
|
l,
|
|
2618
2628
|
p,
|
|
2619
|
-
|
|
2620
|
-
), L =
|
|
2621
|
-
m && (m.beginPath(), m.lineWidth =
|
|
2629
|
+
ln
|
|
2630
|
+
), L = hn(h, d, f), y = hn(h, l, _), m = (g = r == null ? void 0 : r.current) == null ? void 0 : g.getContext("2d");
|
|
2631
|
+
m && (m.beginPath(), m.lineWidth = Oa, m.strokeStyle = n.colors.placeholderColor, m.moveTo(L.x, L.y), m.arcTo(h.x, h.y, y.x, y.y, $a), m.lineTo(y.x, y.y), m.stroke());
|
|
2622
2632
|
}, u = (d) => {
|
|
2623
2633
|
if (!d)
|
|
2624
2634
|
return;
|
|
2625
|
-
const { bottomLeft: h, bottomRight: l, topLeft: p, topRight: f } = d, _ =
|
|
2635
|
+
const { bottomLeft: h, bottomRight: l, topLeft: p, topRight: f } = d, _ = ks(d);
|
|
2626
2636
|
c(h, p, f, _), c(p, f, l, _), c(f, l, h, _), c(l, h, p, _);
|
|
2627
2637
|
};
|
|
2628
2638
|
r.current.width = e.width, r.current.height = e.height, Vs(r.current), u(o);
|
|
2629
|
-
}, [e, o, n.colors.placeholderColor]), /* @__PURE__ */ s(
|
|
2639
|
+
}, [e, o, n.colors.placeholderColor]), /* @__PURE__ */ s(Es, { ref: r, $isImageMirror: t });
|
|
2630
2640
|
}
|
|
2631
|
-
const
|
|
2641
|
+
const $s = Z.div`
|
|
2632
2642
|
color: ${(e) => e.theme.colors.instructionTextColor};
|
|
2633
2643
|
animation: spin 2s linear infinite;
|
|
2634
2644
|
|
|
@@ -2637,7 +2647,7 @@ const xs = Z.div`
|
|
|
2637
2647
|
transform: rotate(-360deg);
|
|
2638
2648
|
}
|
|
2639
2649
|
}
|
|
2640
|
-
`, Os = ({ svgSize: e }) => /* @__PURE__ */ s(
|
|
2650
|
+
`, Os = ({ svgSize: e }) => /* @__PURE__ */ s($s, { children: /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2641
2651
|
/* @__PURE__ */ s(
|
|
2642
2652
|
"path",
|
|
2643
2653
|
{
|
|
@@ -2694,29 +2704,39 @@ const xs = Z.div`
|
|
|
2694
2704
|
fill: "currentColor"
|
|
2695
2705
|
}
|
|
2696
2706
|
)
|
|
2697
|
-
] }) }),
|
|
2707
|
+
] }) }), Ms = Z.div`
|
|
2698
2708
|
z-index: 1;
|
|
2699
2709
|
position: absolute;
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2710
|
+
// Scale up the backdrop to have space when placeholder is scaled below 1
|
|
2711
|
+
top: -50%;
|
|
2712
|
+
left: -50%;
|
|
2713
|
+
width: 200%;
|
|
2714
|
+
height: 200%;
|
|
2715
|
+
outline: ${({ $backdropColor: e, $shorterSide: t = 1e3 }) => `${t * 0.2}px solid ${e}`};
|
|
2716
|
+
transform: scale(${(e) => e.$scale || 1});
|
|
2717
|
+
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
2718
|
+
|
|
2719
|
+
// Scale the children to 50% of the size of the backdrop to achieve 1:1 ratio between placeholder and backdrop
|
|
2720
|
+
g {
|
|
2721
|
+
transform: scale(0.5);
|
|
2722
|
+
translate: 25% 25%;
|
|
2723
|
+
}
|
|
2724
|
+
`, vo = ({ children: e, height: t, scale: r, width: n }) => {
|
|
2725
|
+
const { backdropColor: o } = Ce(), i = as(n, t);
|
|
2726
|
+
return /* @__PURE__ */ s(Ms, { $backdropColor: o, $scale: r, $shorterSide: i, children: /* @__PURE__ */ s("svg", { viewBox: `0 0 ${n} ${t}`, children: [
|
|
2707
2727
|
/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: "mask", children: [
|
|
2708
2728
|
/* @__PURE__ */ s("rect", { fill: "#fff", height: "100%", width: "100%" }),
|
|
2709
|
-
e
|
|
2729
|
+
/* @__PURE__ */ s("g", { children: e })
|
|
2710
2730
|
] }) }),
|
|
2711
|
-
/* @__PURE__ */ s("rect", { fill:
|
|
2731
|
+
/* @__PURE__ */ s("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
|
|
2712
2732
|
] }) });
|
|
2713
2733
|
};
|
|
2714
2734
|
function Ns({ cameraHeight: e, cameraWidth: t, isBackdrop: r, state: n }) {
|
|
2715
|
-
const { appStateInstructions: o } = Ce(), i = n ===
|
|
2716
|
-
return !n || i || !(o != null && o[n].visible) ? null : n ===
|
|
2735
|
+
const { appStateInstructions: o } = Ce(), i = n === G.ERROR || n === G.RUNNING;
|
|
2736
|
+
return !n || i || !(o != null && o[n].visible) ? null : n === G.WAITING || n === G.COMPLETE ? /* @__PURE__ */ s(H, { children: [
|
|
2717
2737
|
r && e && t && /* @__PURE__ */ s(vo, { height: e, width: t }),
|
|
2718
|
-
/* @__PURE__ */ s(nr, { isCameraReady: !0, text: o[
|
|
2719
|
-
] }) : /* @__PURE__ */ s(nr, { Icon: Os, isCameraReady: !0, text: o[
|
|
2738
|
+
/* @__PURE__ */ s(nr, { isCameraReady: !0, text: o[G.WAITING].text })
|
|
2739
|
+
] }) : /* @__PURE__ */ s(nr, { Icon: Os, isCameraReady: !0, text: o[G.LOADING].text });
|
|
2720
2740
|
}
|
|
2721
2741
|
function Is({ isPassport: e, isRounded: t, ...r }) {
|
|
2722
2742
|
if (t)
|
|
@@ -2751,7 +2771,7 @@ function Is({ isPassport: e, isRounded: t, ...r }) {
|
|
|
2751
2771
|
}
|
|
2752
2772
|
return /* @__PURE__ */ s("rect", { fill: "#000", ...r, rx: "0%" });
|
|
2753
2773
|
}
|
|
2754
|
-
function
|
|
2774
|
+
function Ds() {
|
|
2755
2775
|
return /* @__PURE__ */ s(
|
|
2756
2776
|
"svg",
|
|
2757
2777
|
{
|
|
@@ -2776,7 +2796,7 @@ function Ms() {
|
|
|
2776
2796
|
}
|
|
2777
2797
|
);
|
|
2778
2798
|
}
|
|
2779
|
-
const
|
|
2799
|
+
const Ts = () => /* @__PURE__ */ s(
|
|
2780
2800
|
"svg",
|
|
2781
2801
|
{
|
|
2782
2802
|
fill: "none",
|
|
@@ -2828,7 +2848,7 @@ function Rs() {
|
|
|
2828
2848
|
}
|
|
2829
2849
|
);
|
|
2830
2850
|
}
|
|
2831
|
-
function
|
|
2851
|
+
function As() {
|
|
2832
2852
|
return /* @__PURE__ */ s(
|
|
2833
2853
|
"svg",
|
|
2834
2854
|
{
|
|
@@ -2858,7 +2878,7 @@ function Ts() {
|
|
|
2858
2878
|
}
|
|
2859
2879
|
);
|
|
2860
2880
|
}
|
|
2861
|
-
function
|
|
2881
|
+
function Ps() {
|
|
2862
2882
|
return /* @__PURE__ */ s(
|
|
2863
2883
|
"svg",
|
|
2864
2884
|
{
|
|
@@ -2884,7 +2904,7 @@ function As() {
|
|
|
2884
2904
|
}
|
|
2885
2905
|
);
|
|
2886
2906
|
}
|
|
2887
|
-
function
|
|
2907
|
+
function Hs() {
|
|
2888
2908
|
return /* @__PURE__ */ s(
|
|
2889
2909
|
"svg",
|
|
2890
2910
|
{
|
|
@@ -2911,7 +2931,7 @@ function Ps() {
|
|
|
2911
2931
|
}
|
|
2912
2932
|
);
|
|
2913
2933
|
}
|
|
2914
|
-
function
|
|
2934
|
+
function Zs() {
|
|
2915
2935
|
return /* @__PURE__ */ s(
|
|
2916
2936
|
"svg",
|
|
2917
2937
|
{
|
|
@@ -2937,7 +2957,7 @@ function Hs() {
|
|
|
2937
2957
|
}
|
|
2938
2958
|
);
|
|
2939
2959
|
}
|
|
2940
|
-
function
|
|
2960
|
+
function Bs() {
|
|
2941
2961
|
return /* @__PURE__ */ s(
|
|
2942
2962
|
"svg",
|
|
2943
2963
|
{
|
|
@@ -2966,7 +2986,7 @@ function Zs() {
|
|
|
2966
2986
|
}
|
|
2967
2987
|
);
|
|
2968
2988
|
}
|
|
2969
|
-
function
|
|
2989
|
+
function Us() {
|
|
2970
2990
|
return /* @__PURE__ */ s(
|
|
2971
2991
|
"svg",
|
|
2972
2992
|
{
|
|
@@ -2983,7 +3003,7 @@ function Bs() {
|
|
|
2983
3003
|
}
|
|
2984
3004
|
);
|
|
2985
3005
|
}
|
|
2986
|
-
function
|
|
3006
|
+
function Ws() {
|
|
2987
3007
|
return /* @__PURE__ */ s(
|
|
2988
3008
|
"svg",
|
|
2989
3009
|
{
|
|
@@ -3014,7 +3034,7 @@ function Us() {
|
|
|
3014
3034
|
}
|
|
3015
3035
|
);
|
|
3016
3036
|
}
|
|
3017
|
-
function
|
|
3037
|
+
function zs() {
|
|
3018
3038
|
return /* @__PURE__ */ s(
|
|
3019
3039
|
"svg",
|
|
3020
3040
|
{
|
|
@@ -3737,7 +3757,7 @@ function Fs() {
|
|
|
3737
3757
|
}
|
|
3738
3758
|
);
|
|
3739
3759
|
}
|
|
3740
|
-
const
|
|
3760
|
+
const Gs = Z.div`
|
|
3741
3761
|
z-index: 1;
|
|
3742
3762
|
position: absolute;
|
|
3743
3763
|
top: ${(e) => e.$placeholderRectangle.shiftY * 100}%;
|
|
@@ -3745,41 +3765,44 @@ const zs = Z.div`
|
|
|
3745
3765
|
left: ${(e) => e.$placeholderRectangle.shiftX * 100}%;
|
|
3746
3766
|
right: ${(e) => (1 - e.$placeholderRectangle.shiftX - e.$placeholderRectangle.width) * 100}%;
|
|
3747
3767
|
color: ${(e) => e.$isInCandidateSelection ? `${e.theme.colors.placeholderColorSuccess}` : `${e.theme.colors.placeholderColor}`};
|
|
3748
|
-
|
|
3768
|
+
transform: scale(${(e) => e.$scale || 1});
|
|
3769
|
+
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
3749
3770
|
svg {
|
|
3750
3771
|
width: 100%;
|
|
3751
3772
|
height: 100%;
|
|
3752
3773
|
}
|
|
3753
|
-
`,
|
|
3774
|
+
`, js = ({
|
|
3754
3775
|
children: e,
|
|
3755
3776
|
className: t,
|
|
3756
3777
|
isInCandidateSelection: r,
|
|
3757
3778
|
onAnimationEnd: n,
|
|
3758
|
-
placeholderRectangle: o
|
|
3779
|
+
placeholderRectangle: o,
|
|
3780
|
+
scale: i
|
|
3759
3781
|
}) => /* @__PURE__ */ s(
|
|
3760
|
-
|
|
3782
|
+
Gs,
|
|
3761
3783
|
{
|
|
3762
3784
|
$isInCandidateSelection: r,
|
|
3763
3785
|
$placeholderRectangle: o,
|
|
3786
|
+
$scale: i,
|
|
3764
3787
|
className: t,
|
|
3765
3788
|
onAnimationEnd: n,
|
|
3766
3789
|
children: e
|
|
3767
3790
|
}
|
|
3768
|
-
),
|
|
3769
|
-
[P.ID_CORNERS]: /* @__PURE__ */ s(
|
|
3791
|
+
), qs = {
|
|
3792
|
+
[P.ID_CORNERS]: /* @__PURE__ */ s(Ds, {}),
|
|
3770
3793
|
[P.ID_DASH]: /* @__PURE__ */ s(Rs, {}),
|
|
3771
|
-
[P.ID_DOT]: /* @__PURE__ */ s(
|
|
3772
|
-
[P.ID_SOLID]: /* @__PURE__ */ s(
|
|
3773
|
-
[P.ID_PHOTO_ROUNDED]: /* @__PURE__ */ s(
|
|
3774
|
-
[P.ID_CORNERS_ROUNDED]: /* @__PURE__ */ s(
|
|
3775
|
-
[P.ID_DASH_ROUNDED]: /* @__PURE__ */ s(
|
|
3776
|
-
[P.ID_DOT_ROUNDED]: /* @__PURE__ */ s(
|
|
3777
|
-
[P.ID_SOLID_ROUNDED]: /* @__PURE__ */ s(
|
|
3778
|
-
[P.ID_SOLID_ROUNDED_BACK]: /* @__PURE__ */ s(
|
|
3779
|
-
[P.PASSPORT_SOLID_BACK]: /* @__PURE__ */ s(
|
|
3794
|
+
[P.ID_DOT]: /* @__PURE__ */ s(Ps, {}),
|
|
3795
|
+
[P.ID_SOLID]: /* @__PURE__ */ s(Bs, {}),
|
|
3796
|
+
[P.ID_PHOTO_ROUNDED]: /* @__PURE__ */ s(Zs, {}),
|
|
3797
|
+
[P.ID_CORNERS_ROUNDED]: /* @__PURE__ */ s(Ts, {}),
|
|
3798
|
+
[P.ID_DASH_ROUNDED]: /* @__PURE__ */ s(As, {}),
|
|
3799
|
+
[P.ID_DOT_ROUNDED]: /* @__PURE__ */ s(Hs, {}),
|
|
3800
|
+
[P.ID_SOLID_ROUNDED]: /* @__PURE__ */ s(Us, {}),
|
|
3801
|
+
[P.ID_SOLID_ROUNDED_BACK]: /* @__PURE__ */ s(Ws, {}),
|
|
3802
|
+
[P.PASSPORT_SOLID_BACK]: /* @__PURE__ */ s(zs, {}),
|
|
3780
3803
|
[P.PASSPORT_SOLID_BACK_BLANK]: /* @__PURE__ */ s(Fs, {})
|
|
3781
3804
|
};
|
|
3782
|
-
function
|
|
3805
|
+
function Ys({ backdropHeight: e, backdropWidth: t, placeholderRectangle: r, ...n }) {
|
|
3783
3806
|
const { placeholder: o } = Ce(), i = o.toLowerCase().includes("passport"), a = o.toLowerCase().includes("rounded");
|
|
3784
3807
|
return /* @__PURE__ */ s(H, { children: [
|
|
3785
3808
|
/* @__PURE__ */ s(vo, { height: e, width: t, children: /* @__PURE__ */ s(
|
|
@@ -3793,11 +3816,11 @@ function qs({ backdropHeight: e, backdropWidth: t, placeholderRectangle: r, ...n
|
|
|
3793
3816
|
y: `${r.shiftY * 100}%`
|
|
3794
3817
|
}
|
|
3795
3818
|
) }),
|
|
3796
|
-
/* @__PURE__ */ s(
|
|
3819
|
+
/* @__PURE__ */ s(js, { placeholderRectangle: r, ...n, children: qs[o] })
|
|
3797
3820
|
] });
|
|
3798
3821
|
}
|
|
3799
|
-
const
|
|
3800
|
-
const [e, t] =
|
|
3822
|
+
const Xs = () => {
|
|
3823
|
+
const [e, t] = z(), [r, n] = z(!1), o = _e(
|
|
3801
3824
|
(f) => {
|
|
3802
3825
|
var L, y;
|
|
3803
3826
|
t((L = f == null ? void 0 : f.detail) == null ? void 0 : L.cameraResolution);
|
|
@@ -3807,8 +3830,8 @@ const Ys = () => {
|
|
|
3807
3830
|
[t]
|
|
3808
3831
|
);
|
|
3809
3832
|
be(pe.CAMERA_PROPS_CHANGED, o);
|
|
3810
|
-
const [i, a] =
|
|
3811
|
-
code:
|
|
3833
|
+
const [i, a] = z({
|
|
3834
|
+
code: R.DOCUMENT_NOT_PRESENT,
|
|
3812
3835
|
// FIXME Default instruction should not be here
|
|
3813
3836
|
isEscalated: !1
|
|
3814
3837
|
}), c = _e(
|
|
@@ -3822,7 +3845,7 @@ const Ys = () => {
|
|
|
3822
3845
|
[a]
|
|
3823
3846
|
);
|
|
3824
3847
|
be(pe.INSTRUCTION_CHANGED, c);
|
|
3825
|
-
const [u, d] =
|
|
3848
|
+
const [u, d] = z(G.LOADING), [h, l] = z(), p = _e(
|
|
3826
3849
|
(f) => {
|
|
3827
3850
|
var L, y;
|
|
3828
3851
|
d((L = f.detail) == null ? void 0 : L.appState);
|
|
@@ -3839,26 +3862,26 @@ const Ys = () => {
|
|
|
3839
3862
|
isMirroring: r
|
|
3840
3863
|
};
|
|
3841
3864
|
};
|
|
3842
|
-
function
|
|
3843
|
-
const { appState: e, cameraResolution: t, error: r, instruction: n, isMirroring: o } =
|
|
3865
|
+
function Ks() {
|
|
3866
|
+
const { appState: e, cameraResolution: t, error: r, instruction: n, isMirroring: o } = Xs(), i = n.code === R.CANDIDATE_SELECTION, { escalatedInstructions: a, instructions: c, showDetectionLayer: u } = Ce(), d = Ba({
|
|
3844
3867
|
escalatedInstructions: a,
|
|
3845
3868
|
instructions: c,
|
|
3846
3869
|
currentInstruction: n
|
|
3847
3870
|
});
|
|
3848
|
-
return e ===
|
|
3849
|
-
u && /* @__PURE__ */ s(
|
|
3871
|
+
return e === G.ERROR ? /* @__PURE__ */ s(Lo, { text: r == null ? void 0 : r.message }) : e === G.RUNNING && t ? /* @__PURE__ */ s(H, { children: [
|
|
3872
|
+
u && /* @__PURE__ */ s(xs, { cameraResolution: t, isImageMirror: o }),
|
|
3850
3873
|
/* @__PURE__ */ s(
|
|
3851
|
-
|
|
3874
|
+
Ys,
|
|
3852
3875
|
{
|
|
3853
3876
|
backdropHeight: t.height,
|
|
3854
3877
|
backdropWidth: t.width,
|
|
3855
3878
|
isInCandidateSelection: i,
|
|
3856
|
-
placeholderRectangle:
|
|
3879
|
+
placeholderRectangle: cs(t)
|
|
3857
3880
|
}
|
|
3858
3881
|
),
|
|
3859
|
-
d && /* @__PURE__ */ s(
|
|
3882
|
+
d && /* @__PURE__ */ s(bs, { cssTop: 50, isInCandidateSelection: i, children: d }),
|
|
3860
3883
|
/* @__PURE__ */ s(
|
|
3861
|
-
|
|
3884
|
+
gs,
|
|
3862
3885
|
{
|
|
3863
3886
|
customControlEvent: pe.CONTROL,
|
|
3864
3887
|
isSwitchCameraDisabled: i
|
|
@@ -3874,15 +3897,15 @@ function Xs() {
|
|
|
3874
3897
|
}
|
|
3875
3898
|
);
|
|
3876
3899
|
}
|
|
3877
|
-
const
|
|
3900
|
+
const Js = (e) => {
|
|
3878
3901
|
var d, h;
|
|
3879
|
-
const t = { ...
|
|
3880
|
-
...
|
|
3902
|
+
const t = { ...Na, ...e == null ? void 0 : e.instructions }, r = {
|
|
3903
|
+
...Ia,
|
|
3881
3904
|
...e == null ? void 0 : e.escalatedInstructions
|
|
3882
3905
|
}, n = {
|
|
3883
|
-
[
|
|
3884
|
-
[
|
|
3885
|
-
}, o = (e == null ? void 0 : e.placeholder) ?? Da, i = (e == null ? void 0 : e.backdropColor) ??
|
|
3906
|
+
[G.LOADING]: { ...un.loading, ...(d = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : d.loading },
|
|
3907
|
+
[G.WAITING]: { ...un.waiting, ...(h = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : h.waiting }
|
|
3908
|
+
}, o = (e == null ? void 0 : e.placeholder) ?? Da, i = (e == null ? void 0 : e.backdropColor) ?? Ta, a = (e == null ? void 0 : e.showDetectionLayer) ?? !1, c = (e == null ? void 0 : e.showCameraButtons) ?? !1, u = rs(e == null ? void 0 : e.theme);
|
|
3886
3909
|
return {
|
|
3887
3910
|
instructions: t,
|
|
3888
3911
|
appStateInstructions: n,
|
|
@@ -3893,8 +3916,8 @@ const Ks = (e) => {
|
|
|
3893
3916
|
theme: u,
|
|
3894
3917
|
escalatedInstructions: r
|
|
3895
3918
|
};
|
|
3896
|
-
},
|
|
3919
|
+
}, Qs = ({ props: e }) => {
|
|
3897
3920
|
const t = Ja(pe.VIDEO_ELEMENT_SIZE);
|
|
3898
|
-
return /* @__PURE__ */ s(qa, { uiProps:
|
|
3921
|
+
return /* @__PURE__ */ s(qa, { uiProps: Js(e), videoElementSize: t, children: /* @__PURE__ */ s(Ks, {}) });
|
|
3899
3922
|
};
|
|
3900
|
-
Ao(
|
|
3923
|
+
Ao(Qs, "x-dot-document-auto-capture-ui", ["props"]);
|