@ahmed_hani/dot-auto-capture-ui 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +117 -0
- package/README.md +162 -0
- package/document.mjs +3900 -0
- package/document.umd.js +246 -0
- package/face.mjs +2939 -0
- package/face.umd.js +246 -0
- package/magnifeye-liveness.mjs +3024 -0
- package/magnifeye-liveness.umd.js +338 -0
- package/package.json +102 -0
- package/palm.mjs +2837 -0
- package/palm.umd.js +246 -0
- package/smile-liveness.mjs +3060 -0
- package/smile-liveness.umd.js +310 -0
- package/tsconfig.production.json +22 -0
- package/ui/src/types/common.d.ts +53 -0
- package/ui/src/types/document.d.ts +38 -0
- package/ui/src/types/eye-gaze.d.ts +37 -0
- package/ui/src/types/face.d.ts +45 -0
- package/ui/src/types/magnifeye.d.ts +32 -0
- package/ui/src/types/palm.d.ts +27 -0
- package/ui/src/types/smile.d.ts +32 -0
- package/ui-common/src/error/auto-capture-error.d.ts +7 -0
- package/ui-common/src/error/index.d.ts +1 -0
- package/ui-common/src/types/common.d.ts +88 -0
- package/ui-common/src/types/document.d.ts +30 -0
- package/ui-common/src/types/events/common.d.ts +74 -0
- package/ui-common/src/types/events/document.d.ts +23 -0
- package/ui-common/src/types/events/eye-gaze.d.ts +4 -0
- package/ui-common/src/types/events/face.d.ts +21 -0
- package/ui-common/src/types/events/index.d.ts +8 -0
- package/ui-common/src/types/events/liveness.d.ts +13 -0
- package/ui-common/src/types/events/magnifeye.d.ts +5 -0
- package/ui-common/src/types/events/palm.d.ts +16 -0
- package/ui-common/src/types/events/smile.d.ts +8 -0
- package/ui-common/src/types/eye-gaze.d.ts +39 -0
- package/ui-common/src/types/face.d.ts +52 -0
- package/ui-common/src/types/index.d.ts +8 -0
- package/ui-common/src/types/magnifeye.d.ts +32 -0
- package/ui-common/src/types/palm.d.ts +44 -0
- package/ui-common/src/types/smile.d.ts +36 -0
package/document.mjs
ADDED
|
@@ -0,0 +1,3900 @@
|
|
|
1
|
+
var bo = Object.defineProperty;
|
|
2
|
+
var Vo = (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) => Vo(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
var qe, C, pn, de, br, _n, mn, gn, ir, Zt, Bt, Ln, Ge = {}, yn = [], Eo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
|
|
5
|
+
function X(e, t) {
|
|
6
|
+
for (var r in t) e[r] = t[r];
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
function ar(e) {
|
|
10
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
11
|
+
}
|
|
12
|
+
function R(e, t, r) {
|
|
13
|
+
var n, o, i, a = {};
|
|
14
|
+
for (i in t) i == "key" ? n = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
|
|
15
|
+
if (arguments.length > 2 && (a.children = arguments.length > 3 ? qe.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] == null && (a[i] = e.defaultProps[i]);
|
|
16
|
+
return We(e, a, n, o, null);
|
|
17
|
+
}
|
|
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 ?? ++pn, __i: -1, __u: 0 };
|
|
20
|
+
return o == null && C.vnode != null && C.vnode(i), i;
|
|
21
|
+
}
|
|
22
|
+
function ko() {
|
|
23
|
+
return { current: null };
|
|
24
|
+
}
|
|
25
|
+
function H(e) {
|
|
26
|
+
return e.children;
|
|
27
|
+
}
|
|
28
|
+
function G(e, t) {
|
|
29
|
+
this.props = e, this.context = t;
|
|
30
|
+
}
|
|
31
|
+
function Ve(e, t) {
|
|
32
|
+
if (t == null) return e.__ ? Ve(e.__, e.__i + 1) : null;
|
|
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" ? Ve(e) : null;
|
|
35
|
+
}
|
|
36
|
+
function vn(e) {
|
|
37
|
+
var t, r;
|
|
38
|
+
if ((e = e.__) != null && e.__c != null) {
|
|
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
|
+
e.__e = e.__c.base = r.__e;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
return vn(e);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function Ut(e) {
|
|
47
|
+
(!e.__d && (e.__d = !0) && de.push(e) && !pt.__r++ || br != C.debounceRendering) && ((br = C.debounceRendering) || _n)(pt);
|
|
48
|
+
}
|
|
49
|
+
function pt() {
|
|
50
|
+
for (var e, t, r, n, o, i, a, c = 1; de.length; ) de.length > c && de.sort(mn), 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), sr(t.__P, r, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [o] : null, i, o ?? Ve(n), !!(32 & n.__u), a), r.__v = n.__v, r.__.__k[r.__i] = r, Sn(i, r, a), r.__e != o && vn(r)));
|
|
51
|
+
pt.__r = 0;
|
|
52
|
+
}
|
|
53
|
+
function Cn(e, t, r, n, o, i, a, c, u, d, h) {
|
|
54
|
+
var l, p, f, _, L, y, m = n && n.__k || yn, 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 = sr(e, f, p, o, i, a, c, u, d, h), _ = f.__e, f.ref && p.ref != f.ref && (p.ref && cr(p.ref, null, f), h.push(f.ref, f.__c || _, f)), L == null && _ != null && (L = _), 4 & f.__u || p.__k === f.__k ? u = wn(f, u, e) : typeof f.type == "function" && y !== void 0 ? u = y : _ && (u = _.nextSibling), f.__u &= -7);
|
|
56
|
+
return r.__e = L, u;
|
|
57
|
+
}
|
|
58
|
+
function xo(e, t, r, n, o) {
|
|
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 = Oo(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 = Ve(c)), Vn(c, c));
|
|
62
|
+
return n;
|
|
63
|
+
}
|
|
64
|
+
function wn(e, t, r) {
|
|
65
|
+
var n, o;
|
|
66
|
+
if (typeof e.type == "function") {
|
|
67
|
+
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t = wn(n[o], t, r));
|
|
68
|
+
return t;
|
|
69
|
+
}
|
|
70
|
+
e.__e != t && (t && e.type && !r.contains(t) && (t = Ve(e)), r.insertBefore(e.__e, t || null), t = e.__e);
|
|
71
|
+
do
|
|
72
|
+
t = t && t.nextSibling;
|
|
73
|
+
while (t != null && t.nodeType == 8);
|
|
74
|
+
return t;
|
|
75
|
+
}
|
|
76
|
+
function te(e, t) {
|
|
77
|
+
return t = t || [], e == null || typeof e == "boolean" || (Ye(e) ? e.some(function(r) {
|
|
78
|
+
te(r, t);
|
|
79
|
+
}) : t.push(e)), t;
|
|
80
|
+
}
|
|
81
|
+
function Oo(e, t, r, n) {
|
|
82
|
+
var o, i, a = e.key, c = e.type, u = t[r];
|
|
83
|
+
if (u === null && e.key == null || u && a == u.key && c == u.type && (2 & u.__u) == 0) return r;
|
|
84
|
+
if (n > (u != null && (2 & u.__u) == 0 ? 1 : 0)) for (o = r - 1, i = r + 1; o >= 0 || i < t.length; ) {
|
|
85
|
+
if (o >= 0) {
|
|
86
|
+
if ((u = t[o]) && (2 & u.__u) == 0 && a == u.key && c == u.type) return o;
|
|
87
|
+
o--;
|
|
88
|
+
}
|
|
89
|
+
if (i < t.length) {
|
|
90
|
+
if ((u = t[i]) && (2 & u.__u) == 0 && a == u.key && c == u.type) return i;
|
|
91
|
+
i++;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return -1;
|
|
95
|
+
}
|
|
96
|
+
function Vr(e, t, r) {
|
|
97
|
+
t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || Eo.test(t) ? r : r + "px";
|
|
98
|
+
}
|
|
99
|
+
function rt(e, t, r, n, o) {
|
|
100
|
+
var i;
|
|
101
|
+
e: if (t == "style") if (typeof r == "string") e.style.cssText = r;
|
|
102
|
+
else {
|
|
103
|
+
if (typeof n == "string" && (e.style.cssText = n = ""), n) for (t in n) r && t in r || Vr(e.style, t, "");
|
|
104
|
+
if (r) for (t in r) n && r[t] == n[t] || Vr(e.style, t, r[t]);
|
|
105
|
+
}
|
|
106
|
+
else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(gn, "$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 = ir, e.addEventListener(t, i ? Bt : Zt, i)) : e.removeEventListener(t, i ? Bt : Zt, i);
|
|
107
|
+
else {
|
|
108
|
+
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
109
|
+
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
110
|
+
e[t] = r ?? "";
|
|
111
|
+
break e;
|
|
112
|
+
} catch {
|
|
113
|
+
}
|
|
114
|
+
typeof r == "function" || (r == null || r === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function Er(e) {
|
|
118
|
+
return function(t) {
|
|
119
|
+
if (this.l) {
|
|
120
|
+
var r = this.l[t.type + e];
|
|
121
|
+
if (t.t == null) t.t = ir++;
|
|
122
|
+
else if (t.t < r.u) return;
|
|
123
|
+
return r(C.event ? C.event(t) : t);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function sr(e, t, r, n, o, i, a, c, u, d) {
|
|
128
|
+
var h, l, p, f, _, L, y, m, g, E, b, x, S, v, A, B, De, U = t.type;
|
|
129
|
+
if (t.constructor != null) return null;
|
|
130
|
+
128 & r.__u && (u = !!(32 & r.__u), i = [c = t.__e = r.__e]), (h = C.__b) && h(t);
|
|
131
|
+
e: if (typeof U == "function") try {
|
|
132
|
+
if (m = t.props, g = "prototype" in U && U.prototype.render, E = (h = U.contextType) && n[h.__c], b = h ? E ? E.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 G(m, b), l.constructor = U, l.render = No), E && E.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
|
+
else {
|
|
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
|
+
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) {
|
|
136
|
+
le && (le.__ = t);
|
|
137
|
+
}), x = 0; x < l._sb.length; x++) l.__h.push(l._sb[x]);
|
|
138
|
+
l._sb = [], l.__h.length && a.push(l);
|
|
139
|
+
break e;
|
|
140
|
+
}
|
|
141
|
+
l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s, b), g && l.componentDidUpdate != null && l.__h.push(function() {
|
|
142
|
+
l.componentDidUpdate(f, _, L);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
if (l.context = b, l.props = m, l.__P = e, l.__e = !1, S = C.__r, v = 0, g) {
|
|
146
|
+
for (l.state = l.__s, l.__d = !1, S && S(t), h = l.render(l.props, l.state, l.context), A = 0; A < l._sb.length; A++) l.__h.push(l._sb[A]);
|
|
147
|
+
l._sb = [];
|
|
148
|
+
} else do
|
|
149
|
+
l.__d = !1, S && S(t), h = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
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 = bn(h.props.children)), c = Cn(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
|
+
} catch (le) {
|
|
153
|
+
if (t.__v = null, u || i != null) if (le.then) {
|
|
154
|
+
for (t.__u |= u ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
|
|
155
|
+
i[i.indexOf(c)] = null, t.__e = c;
|
|
156
|
+
} else for (De = i.length; De--; ) ar(i[De]);
|
|
157
|
+
else t.__e = r.__e, t.__k = r.__k;
|
|
158
|
+
C.__e(le, t, r);
|
|
159
|
+
}
|
|
160
|
+
else i == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : c = t.__e = $o(r.__e, t, r, n, o, i, a, u, d);
|
|
161
|
+
return (h = C.diffed) && h(t), 128 & t.__u ? void 0 : c;
|
|
162
|
+
}
|
|
163
|
+
function Sn(e, t, r) {
|
|
164
|
+
for (var n = 0; n < r.length; n++) cr(r[n], r[++n], r[++n]);
|
|
165
|
+
C.__c && C.__c(t, e), e.some(function(o) {
|
|
166
|
+
try {
|
|
167
|
+
e = o.__h, o.__h = [], e.some(function(i) {
|
|
168
|
+
i.call(o);
|
|
169
|
+
});
|
|
170
|
+
} catch (i) {
|
|
171
|
+
C.__e(i, o.__v);
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function bn(e) {
|
|
176
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(bn) : X({}, e);
|
|
177
|
+
}
|
|
178
|
+
function $o(e, t, r, n, o, i, a, c, u) {
|
|
179
|
+
var d, h, l, p, f, _, L, y = r.props, m = t.props, g = t.type;
|
|
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
|
+
for (d = 0; d < i.length; d++) if ((f = i[d]) && "setAttribute" in f == !!g && (g ? f.localName == g : f.nodeType == 3)) {
|
|
182
|
+
e = f, i[d] = null;
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (e == null) {
|
|
187
|
+
if (g == null) return document.createTextNode(m);
|
|
188
|
+
e = document.createElementNS(o, g, m.is && m), c && (C.__m && C.__m(t, i), c = !1), i = null;
|
|
189
|
+
}
|
|
190
|
+
if (g == null) y === m || c && e.data == m || (e.data = m);
|
|
191
|
+
else {
|
|
192
|
+
if (i = i && qe.call(e.childNodes), y = r.props || Ge, !c && i != null) for (y = {}, d = 0; d < e.attributes.length; d++) y[(f = e.attributes[d]).name] = f.value;
|
|
193
|
+
for (d in y) if (f = y[d], d != "children") {
|
|
194
|
+
if (d == "dangerouslySetInnerHTML") l = f;
|
|
195
|
+
else if (!(d in m)) {
|
|
196
|
+
if (d == "value" && "defaultValue" in m || d == "checked" && "defaultChecked" in m) continue;
|
|
197
|
+
rt(e, d, null, f, o);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
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
|
+
if (h) c || l && (h.__html == l.__html || h.__html == e.innerHTML) || (e.innerHTML = h.__html), t.__k = [];
|
|
202
|
+
else if (l && (e.innerHTML = ""), Cn(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 && Ve(r, 0), c, u), i != null) for (d = i.length; d--; ) ar(i[d]);
|
|
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
|
+
}
|
|
205
|
+
return e;
|
|
206
|
+
}
|
|
207
|
+
function cr(e, t, r) {
|
|
208
|
+
try {
|
|
209
|
+
if (typeof e == "function") {
|
|
210
|
+
var n = typeof e.__u == "function";
|
|
211
|
+
n && e.__u(), n && t == null || (e.__u = e(t));
|
|
212
|
+
} else e.current = t;
|
|
213
|
+
} catch (o) {
|
|
214
|
+
C.__e(o, r);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function Vn(e, t, r) {
|
|
218
|
+
var n, o;
|
|
219
|
+
if (C.unmount && C.unmount(e), (n = e.ref) && (n.current && n.current != e.__e || cr(n, null, t)), (n = e.__c) != null) {
|
|
220
|
+
if (n.componentWillUnmount) try {
|
|
221
|
+
n.componentWillUnmount();
|
|
222
|
+
} catch (i) {
|
|
223
|
+
C.__e(i, t);
|
|
224
|
+
}
|
|
225
|
+
n.base = n.__P = null;
|
|
226
|
+
}
|
|
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 || ar(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
229
|
+
}
|
|
230
|
+
function No(e, t, r) {
|
|
231
|
+
return this.constructor(e, r);
|
|
232
|
+
}
|
|
233
|
+
function se(e, t, r) {
|
|
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 = [], sr(t, e = (!n && r || t).__k = R(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), Sn(i, e, a);
|
|
236
|
+
}
|
|
237
|
+
function lr(e, t) {
|
|
238
|
+
se(e, t, lr);
|
|
239
|
+
}
|
|
240
|
+
function ur(e, t, r) {
|
|
241
|
+
var n, o, i, a, c = X({}, e.props);
|
|
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
|
+
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
|
+
}
|
|
245
|
+
function En(e) {
|
|
246
|
+
function t(r) {
|
|
247
|
+
var n, o;
|
|
248
|
+
return this.getChildContext || (n = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
|
|
249
|
+
return o;
|
|
250
|
+
}, this.componentWillUnmount = function() {
|
|
251
|
+
n = null;
|
|
252
|
+
}, this.shouldComponentUpdate = function(i) {
|
|
253
|
+
this.props.value != i.value && n.forEach(function(a) {
|
|
254
|
+
a.__e = !0, Ut(a);
|
|
255
|
+
});
|
|
256
|
+
}, this.sub = function(i) {
|
|
257
|
+
n.add(i);
|
|
258
|
+
var a = i.componentWillUnmount;
|
|
259
|
+
i.componentWillUnmount = function() {
|
|
260
|
+
n && n.delete(i), a && a.call(i);
|
|
261
|
+
};
|
|
262
|
+
}), r.children;
|
|
263
|
+
}
|
|
264
|
+
return t.__c = "__cC" + Ln++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(r, n) {
|
|
265
|
+
return r.children(n);
|
|
266
|
+
}).contextType = t, t;
|
|
267
|
+
}
|
|
268
|
+
qe = yn.slice, C = { __e: function(e, t, r, n) {
|
|
269
|
+
for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
270
|
+
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, n || {}), a = o.__d), a) return o.__E = o;
|
|
271
|
+
} catch (c) {
|
|
272
|
+
e = c;
|
|
273
|
+
}
|
|
274
|
+
throw e;
|
|
275
|
+
} }, pn = 0, G.prototype.setState = function(e, t) {
|
|
276
|
+
var r;
|
|
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
|
+
}, G.prototype.forceUpdate = function(e) {
|
|
279
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), Ut(this));
|
|
280
|
+
}, G.prototype.render = H, de = [], _n = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mn = function(e, t) {
|
|
281
|
+
return e.__v.__b - t.__v.__b;
|
|
282
|
+
}, pt.__r = 0, gn = /(PointerCapture)$|Capture$/i, ir = 0, Zt = Er(!1), Bt = Er(!0), Ln = 0;
|
|
283
|
+
function dr() {
|
|
284
|
+
return (dr = Object.assign ? Object.assign.bind() : function(e) {
|
|
285
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
286
|
+
var r = arguments[t];
|
|
287
|
+
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
288
|
+
}
|
|
289
|
+
return e;
|
|
290
|
+
}).apply(this, arguments);
|
|
291
|
+
}
|
|
292
|
+
var Io = ["context", "children"];
|
|
293
|
+
function Mo(e) {
|
|
294
|
+
this.getChildContext = function() {
|
|
295
|
+
return e.context;
|
|
296
|
+
};
|
|
297
|
+
var t = e.children, r = function(n, o) {
|
|
298
|
+
if (n == null) return {};
|
|
299
|
+
var i, a, c = {}, u = Object.keys(n);
|
|
300
|
+
for (a = 0; a < u.length; a++) o.indexOf(i = u[a]) >= 0 || (c[i] = n[i]);
|
|
301
|
+
return c;
|
|
302
|
+
}(e, Io);
|
|
303
|
+
return ur(t, r);
|
|
304
|
+
}
|
|
305
|
+
function Do() {
|
|
306
|
+
var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
307
|
+
this.dispatchEvent(e), this._vdom = R(Mo, dr({}, this._props, { context: e.detail.context }), function t(r, n) {
|
|
308
|
+
if (r.nodeType === 3) return r.data;
|
|
309
|
+
if (r.nodeType !== 1) return null;
|
|
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[kn(c[a].name)] = c[a].value);
|
|
312
|
+
for (a = u.length; a--; ) {
|
|
313
|
+
var d = t(u[a], null), h = u[a].slot;
|
|
314
|
+
h ? i[h] = R(kr, { name: h }, d) : o[a] = d;
|
|
315
|
+
}
|
|
316
|
+
var l = n ? R(kr, null, o) : o;
|
|
317
|
+
return R(n || r.nodeName.toLowerCase(), i, l);
|
|
318
|
+
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? lr : se)(this._vdom, this._root);
|
|
319
|
+
}
|
|
320
|
+
function kn(e) {
|
|
321
|
+
return e.replace(/-(\w)/g, function(t, r) {
|
|
322
|
+
return r ? r.toUpperCase() : "";
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
function Ro(e, t, r) {
|
|
326
|
+
if (this._vdom) {
|
|
327
|
+
var n = {};
|
|
328
|
+
n[e] = r = r ?? void 0, n[kn(e)] = r, this._vdom = ur(this._vdom, n), se(this._vdom, this._root);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function To() {
|
|
332
|
+
se(this._vdom = null, this._root);
|
|
333
|
+
}
|
|
334
|
+
function kr(e, t) {
|
|
335
|
+
var r = this;
|
|
336
|
+
return R("slot", dr({}, e, { ref: function(n) {
|
|
337
|
+
n ? (r.ref = n, r._listener || (r._listener = function(o) {
|
|
338
|
+
o.stopPropagation(), o.detail.context = t;
|
|
339
|
+
}, n.addEventListener("_preact", r._listener))) : r.ref.removeEventListener("_preact", r._listener);
|
|
340
|
+
} }));
|
|
341
|
+
}
|
|
342
|
+
function Ao(e, t, r, n) {
|
|
343
|
+
function o() {
|
|
344
|
+
var i = Reflect.construct(HTMLElement, [], o);
|
|
345
|
+
return i._vdomComponent = e, i._root = i, i;
|
|
346
|
+
}
|
|
347
|
+
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Do, o.prototype.attributeChangedCallback = Ro, o.prototype.disconnectedCallback = To, r = r || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = r, r.forEach(function(i) {
|
|
348
|
+
Object.defineProperty(o.prototype, i, { get: function() {
|
|
349
|
+
return this._vdom.props[i];
|
|
350
|
+
}, set: function(a) {
|
|
351
|
+
this._vdom ? this.attributeChangedCallback(i, null, a) : (this._props || (this._props = {}), this._props[i] = a, this.connectedCallback());
|
|
352
|
+
var c = typeof a;
|
|
353
|
+
a != null && c !== "string" && c !== "boolean" && c !== "number" || this.setAttribute(i, a);
|
|
354
|
+
} });
|
|
355
|
+
}), customElements.define(t, o);
|
|
356
|
+
}
|
|
357
|
+
var Po = 0;
|
|
358
|
+
function s(e, t, r, n, o, i) {
|
|
359
|
+
t || (t = {});
|
|
360
|
+
var a, c, u = t;
|
|
361
|
+
if ("ref" in u) for (c in u = {}, t) c == "ref" ? a = t[c] : u[c] = t[c];
|
|
362
|
+
var d = { type: e, props: u, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Po, __i: -1, __u: 0, __source: o, __self: i };
|
|
363
|
+
if (typeof e == "function" && (a = e.defaultProps)) for (c in a) u[c] === void 0 && (u[c] = a[c]);
|
|
364
|
+
return C.vnode && C.vnode(d), d;
|
|
365
|
+
}
|
|
366
|
+
const xr = {
|
|
367
|
+
SWITCH_CAMERA: "switch-camera",
|
|
368
|
+
TOGGLE_MIRROR: "toggle-mirror"
|
|
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 || {}), xn = /* @__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))(xn || {});
|
|
371
|
+
const T = {
|
|
372
|
+
CANDIDATE_SELECTION: "candidate_selection",
|
|
373
|
+
DOCUMENT_CENTERING: "document_centering",
|
|
374
|
+
DOCUMENT_NOT_PRESENT: "document_not_present",
|
|
375
|
+
DOCUMENT_TOO_FAR: "document_too_far",
|
|
376
|
+
SHARPNESS_TOO_LOW: "sharpness_too_low",
|
|
377
|
+
BRIGHTNESS_TOO_LOW: "brightness_too_low",
|
|
378
|
+
BRIGHTNESS_TOO_HIGH: "brightness_too_high",
|
|
379
|
+
HOTSPOTS_PRESENT: "hotspots_present"
|
|
380
|
+
}, Y = {
|
|
381
|
+
LOADING: "LOADING",
|
|
382
|
+
ERROR: "ERROR",
|
|
383
|
+
WAITING: "WAITING",
|
|
384
|
+
RUNNING: "RUNNING"
|
|
385
|
+
};
|
|
386
|
+
var ce, $, It, Or, Ee = 0, On = [], N = C, $r = N.__b, Nr = N.__r, Ir = N.diffed, Mr = N.__c, Dr = N.unmount, Rr = N.__;
|
|
387
|
+
function Ne(e, t) {
|
|
388
|
+
N.__h && N.__h($, e, Ee || t), Ee = 0;
|
|
389
|
+
var r = $.__H || ($.__H = { __: [], __h: [] });
|
|
390
|
+
return e >= r.__.length && r.__.push({}), r.__[e];
|
|
391
|
+
}
|
|
392
|
+
function F(e) {
|
|
393
|
+
return Ee = 1, fr(In, e);
|
|
394
|
+
}
|
|
395
|
+
function fr(e, t, r) {
|
|
396
|
+
var n = Ne(ce++, 2);
|
|
397
|
+
if (n.t = e, !n.__c && (n.__ = [r ? r(t) : In(void 0, t), function(c) {
|
|
398
|
+
var u = n.__N ? n.__N[0] : n.__[0], d = n.t(u, c);
|
|
399
|
+
u !== d && (n.__N = [d, n.__[1]], n.__c.setState({}));
|
|
400
|
+
}], n.__c = $, !$.__f)) {
|
|
401
|
+
var o = function(c, u, d) {
|
|
402
|
+
if (!n.__c.__H) return !0;
|
|
403
|
+
var h = n.__c.__H.__.filter(function(p) {
|
|
404
|
+
return !!p.__c;
|
|
405
|
+
});
|
|
406
|
+
if (h.every(function(p) {
|
|
407
|
+
return !p.__N;
|
|
408
|
+
})) return !i || i.call(this, c, u, d);
|
|
409
|
+
var l = n.__c.props !== c;
|
|
410
|
+
return h.forEach(function(p) {
|
|
411
|
+
if (p.__N) {
|
|
412
|
+
var f = p.__[0];
|
|
413
|
+
p.__ = p.__N, p.__N = void 0, f !== p.__[0] && (l = !0);
|
|
414
|
+
}
|
|
415
|
+
}), i && i.call(this, c, u, d) || l;
|
|
416
|
+
};
|
|
417
|
+
$.__f = !0;
|
|
418
|
+
var i = $.shouldComponentUpdate, a = $.componentWillUpdate;
|
|
419
|
+
$.componentWillUpdate = function(c, u, d) {
|
|
420
|
+
if (this.__e) {
|
|
421
|
+
var h = i;
|
|
422
|
+
i = void 0, o(c, u, d), i = h;
|
|
423
|
+
}
|
|
424
|
+
a && a.call(this, c, u, d);
|
|
425
|
+
}, $.shouldComponentUpdate = o;
|
|
426
|
+
}
|
|
427
|
+
return n.__N || n.__;
|
|
428
|
+
}
|
|
429
|
+
function ne(e, t) {
|
|
430
|
+
var r = Ne(ce++, 3);
|
|
431
|
+
!N.__s && hr(r.__H, t) && (r.__ = e, r.u = t, $.__H.__h.push(r));
|
|
432
|
+
}
|
|
433
|
+
function Ie(e, t) {
|
|
434
|
+
var r = Ne(ce++, 4);
|
|
435
|
+
!N.__s && hr(r.__H, t) && (r.__ = e, r.u = t, $.__h.push(r));
|
|
436
|
+
}
|
|
437
|
+
function Xe(e) {
|
|
438
|
+
return Ee = 5, re(function() {
|
|
439
|
+
return { current: e };
|
|
440
|
+
}, []);
|
|
441
|
+
}
|
|
442
|
+
function $n(e, t, r) {
|
|
443
|
+
Ee = 6, Ie(function() {
|
|
444
|
+
if (typeof e == "function") {
|
|
445
|
+
var n = e(t());
|
|
446
|
+
return function() {
|
|
447
|
+
e(null), n && typeof n == "function" && n();
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
if (e) return e.current = t(), function() {
|
|
451
|
+
return e.current = null;
|
|
452
|
+
};
|
|
453
|
+
}, r == null ? r : r.concat(e));
|
|
454
|
+
}
|
|
455
|
+
function re(e, t) {
|
|
456
|
+
var r = Ne(ce++, 7);
|
|
457
|
+
return hr(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
|
|
458
|
+
}
|
|
459
|
+
function _e(e, t) {
|
|
460
|
+
return Ee = 8, re(function() {
|
|
461
|
+
return e;
|
|
462
|
+
}, t);
|
|
463
|
+
}
|
|
464
|
+
function Ke(e) {
|
|
465
|
+
var t = $.context[e.__c], r = Ne(ce++, 9);
|
|
466
|
+
return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub($)), t.props.value) : e.__;
|
|
467
|
+
}
|
|
468
|
+
function _t(e, t) {
|
|
469
|
+
N.useDebugValue && N.useDebugValue(t ? t(e) : e);
|
|
470
|
+
}
|
|
471
|
+
function Nn() {
|
|
472
|
+
var e = Ne(ce++, 11);
|
|
473
|
+
if (!e.__) {
|
|
474
|
+
for (var t = $.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
475
|
+
var r = t.__m || (t.__m = [0, 0]);
|
|
476
|
+
e.__ = "P" + r[0] + "-" + r[1]++;
|
|
477
|
+
}
|
|
478
|
+
return e.__;
|
|
479
|
+
}
|
|
480
|
+
function Ho() {
|
|
481
|
+
for (var e; e = On.shift(); ) if (e.__P && e.__H) try {
|
|
482
|
+
e.__H.__h.forEach(st), e.__H.__h.forEach(Wt), e.__H.__h = [];
|
|
483
|
+
} catch (t) {
|
|
484
|
+
e.__H.__h = [], N.__e(t, e.__v);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
N.__b = function(e) {
|
|
488
|
+
$ = null, $r && $r(e);
|
|
489
|
+
}, N.__ = function(e, t) {
|
|
490
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Rr && Rr(e, t);
|
|
491
|
+
}, N.__r = function(e) {
|
|
492
|
+
Nr && Nr(e), ce = 0;
|
|
493
|
+
var t = ($ = e.__c).__H;
|
|
494
|
+
t && (It === $ ? (t.__h = [], $.__h = [], t.__.forEach(function(r) {
|
|
495
|
+
r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
|
|
496
|
+
})) : (t.__h.forEach(st), t.__h.forEach(Wt), t.__h = [], ce = 0)), It = $;
|
|
497
|
+
}, N.diffed = function(e) {
|
|
498
|
+
Ir && Ir(e);
|
|
499
|
+
var t = e.__c;
|
|
500
|
+
t && t.__H && (t.__H.__h.length && (On.push(t) !== 1 && Or === N.requestAnimationFrame || ((Or = N.requestAnimationFrame) || Zo)(Ho)), t.__H.__.forEach(function(r) {
|
|
501
|
+
r.u && (r.__H = r.u), r.u = void 0;
|
|
502
|
+
})), It = $ = null;
|
|
503
|
+
}, N.__c = function(e, t) {
|
|
504
|
+
t.some(function(r) {
|
|
505
|
+
try {
|
|
506
|
+
r.__h.forEach(st), r.__h = r.__h.filter(function(n) {
|
|
507
|
+
return !n.__ || Wt(n);
|
|
508
|
+
});
|
|
509
|
+
} catch (n) {
|
|
510
|
+
t.some(function(o) {
|
|
511
|
+
o.__h && (o.__h = []);
|
|
512
|
+
}), t = [], N.__e(n, r.__v);
|
|
513
|
+
}
|
|
514
|
+
}), Mr && Mr(e, t);
|
|
515
|
+
}, N.unmount = function(e) {
|
|
516
|
+
Dr && Dr(e);
|
|
517
|
+
var t, r = e.__c;
|
|
518
|
+
r && r.__H && (r.__H.__.forEach(function(n) {
|
|
519
|
+
try {
|
|
520
|
+
st(n);
|
|
521
|
+
} catch (o) {
|
|
522
|
+
t = o;
|
|
523
|
+
}
|
|
524
|
+
}), r.__H = void 0, t && N.__e(t, r.__v));
|
|
525
|
+
};
|
|
526
|
+
var Tr = typeof requestAnimationFrame == "function";
|
|
527
|
+
function Zo(e) {
|
|
528
|
+
var t, r = function() {
|
|
529
|
+
clearTimeout(n), Tr && cancelAnimationFrame(t), setTimeout(e);
|
|
530
|
+
}, n = setTimeout(r, 100);
|
|
531
|
+
Tr && (t = requestAnimationFrame(r));
|
|
532
|
+
}
|
|
533
|
+
function st(e) {
|
|
534
|
+
var t = $, r = e.__c;
|
|
535
|
+
typeof r == "function" && (e.__c = void 0, r()), $ = t;
|
|
536
|
+
}
|
|
537
|
+
function Wt(e) {
|
|
538
|
+
var t = $;
|
|
539
|
+
e.__c = e.__(), $ = t;
|
|
540
|
+
}
|
|
541
|
+
function hr(e, t) {
|
|
542
|
+
return !e || e.length !== t.length || t.some(function(r, n) {
|
|
543
|
+
return r !== e[n];
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
function In(e, t) {
|
|
547
|
+
return typeof t == "function" ? t(e) : t;
|
|
548
|
+
}
|
|
549
|
+
var D = function() {
|
|
550
|
+
return D = Object.assign || function(t) {
|
|
551
|
+
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
552
|
+
r = arguments[n];
|
|
553
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
554
|
+
}
|
|
555
|
+
return t;
|
|
556
|
+
}, D.apply(this, arguments);
|
|
557
|
+
};
|
|
558
|
+
function Le(e, t, r) {
|
|
559
|
+
if (r || arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++)
|
|
560
|
+
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
561
|
+
return e.concat(i || Array.prototype.slice.call(t));
|
|
562
|
+
}
|
|
563
|
+
function Bo(e) {
|
|
564
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
565
|
+
return function(r) {
|
|
566
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
var Uo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Wo = /* @__PURE__ */ Bo(
|
|
570
|
+
function(e) {
|
|
571
|
+
return Uo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
572
|
+
}
|
|
573
|
+
/* Z+1 */
|
|
574
|
+
);
|
|
575
|
+
function Mn(e, t) {
|
|
576
|
+
for (var r in t) e[r] = t[r];
|
|
577
|
+
return e;
|
|
578
|
+
}
|
|
579
|
+
function Ft(e, t) {
|
|
580
|
+
for (var r in e) if (r !== "__source" && !(r in t)) return !0;
|
|
581
|
+
for (var n in t) if (n !== "__source" && e[n] !== t[n]) return !0;
|
|
582
|
+
return !1;
|
|
583
|
+
}
|
|
584
|
+
function Dn(e, t) {
|
|
585
|
+
var r = t(), n = F({ t: { __: r, u: t } }), o = n[0].t, i = n[1];
|
|
586
|
+
return Ie(function() {
|
|
587
|
+
o.__ = r, o.u = t, Mt(o) && i({ t: o });
|
|
588
|
+
}, [e, r, t]), ne(function() {
|
|
589
|
+
return Mt(o) && i({ t: o }), e(function() {
|
|
590
|
+
Mt(o) && i({ t: o });
|
|
591
|
+
});
|
|
592
|
+
}, [e]), r;
|
|
593
|
+
}
|
|
594
|
+
function Mt(e) {
|
|
595
|
+
var t, r, n = e.u, o = e.__;
|
|
596
|
+
try {
|
|
597
|
+
var i = n();
|
|
598
|
+
return !((t = o) === (r = i) && (t !== 0 || 1 / t == 1 / r) || t != t && r != r);
|
|
599
|
+
} catch {
|
|
600
|
+
return !0;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
function Rn(e) {
|
|
604
|
+
e();
|
|
605
|
+
}
|
|
606
|
+
function Tn(e) {
|
|
607
|
+
return e;
|
|
608
|
+
}
|
|
609
|
+
function An() {
|
|
610
|
+
return [!1, Rn];
|
|
611
|
+
}
|
|
612
|
+
var Pn = Ie;
|
|
613
|
+
function zt(e, t) {
|
|
614
|
+
this.props = e, this.context = t;
|
|
615
|
+
}
|
|
616
|
+
function Fo(e, t) {
|
|
617
|
+
function r(o) {
|
|
618
|
+
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 : Ft(this.props, o);
|
|
620
|
+
}
|
|
621
|
+
function n(o) {
|
|
622
|
+
return this.shouldComponentUpdate = r, R(e, o);
|
|
623
|
+
}
|
|
624
|
+
return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n;
|
|
625
|
+
}
|
|
626
|
+
(zt.prototype = new G()).isPureReactComponent = !0, zt.prototype.shouldComponentUpdate = function(e, t) {
|
|
627
|
+
return Ft(this.props, e) || Ft(this.state, t);
|
|
628
|
+
};
|
|
629
|
+
var Ar = C.__b;
|
|
630
|
+
C.__b = function(e) {
|
|
631
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Ar && Ar(e);
|
|
632
|
+
};
|
|
633
|
+
var zo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
634
|
+
function Go(e) {
|
|
635
|
+
function t(r) {
|
|
636
|
+
var n = Mn({}, r);
|
|
637
|
+
return delete n.ref, e(n, r.ref || null);
|
|
638
|
+
}
|
|
639
|
+
return t.$$typeof = zo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
640
|
+
}
|
|
641
|
+
var Pr = function(e, t) {
|
|
642
|
+
return e == null ? null : te(te(e).map(t));
|
|
643
|
+
}, jo = { map: Pr, forEach: Pr, count: function(e) {
|
|
644
|
+
return e ? te(e).length : 0;
|
|
645
|
+
}, only: function(e) {
|
|
646
|
+
var t = te(e);
|
|
647
|
+
if (t.length !== 1) throw "Children.only";
|
|
648
|
+
return t[0];
|
|
649
|
+
}, toArray: te }, qo = C.__e;
|
|
650
|
+
C.__e = function(e, t, r, n) {
|
|
651
|
+
if (e.then) {
|
|
652
|
+
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), o.__c(e, t);
|
|
653
|
+
}
|
|
654
|
+
qo(e, t, r, n);
|
|
655
|
+
};
|
|
656
|
+
var Hr = C.unmount;
|
|
657
|
+
function Hn(e, t, r) {
|
|
658
|
+
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
|
|
659
|
+
typeof n.__c == "function" && n.__c();
|
|
660
|
+
}), e.__c.__H = null), (e = Mn({}, 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) {
|
|
661
|
+
return Hn(n, t, r);
|
|
662
|
+
})), e;
|
|
663
|
+
}
|
|
664
|
+
function Zn(e, t, r) {
|
|
665
|
+
return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
|
|
666
|
+
return Zn(n, t, r);
|
|
667
|
+
}), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
|
|
668
|
+
}
|
|
669
|
+
function ct() {
|
|
670
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
671
|
+
}
|
|
672
|
+
function Bn(e) {
|
|
673
|
+
var t = e.__.__c;
|
|
674
|
+
return t && t.__a && t.__a(e);
|
|
675
|
+
}
|
|
676
|
+
function Yo(e) {
|
|
677
|
+
var t, r, n;
|
|
678
|
+
function o(i) {
|
|
679
|
+
if (t || (t = e()).then(function(a) {
|
|
680
|
+
r = a.default || a;
|
|
681
|
+
}, function(a) {
|
|
682
|
+
n = a;
|
|
683
|
+
}), n) throw n;
|
|
684
|
+
if (!r) throw t;
|
|
685
|
+
return R(r, i);
|
|
686
|
+
}
|
|
687
|
+
return o.displayName = "Lazy", o.__f = !0, o;
|
|
688
|
+
}
|
|
689
|
+
function He() {
|
|
690
|
+
this.i = null, this.l = null;
|
|
691
|
+
}
|
|
692
|
+
C.unmount = function(e) {
|
|
693
|
+
var t = e.__c;
|
|
694
|
+
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Hr && Hr(e);
|
|
695
|
+
}, (ct.prototype = new G()).__c = function(e, t) {
|
|
696
|
+
var r = t.__c, n = this;
|
|
697
|
+
n.o == null && (n.o = []), n.o.push(r);
|
|
698
|
+
var o = Bn(n.__v), i = !1, a = function() {
|
|
699
|
+
i || (i = !0, r.__R = null, o ? o(c) : c());
|
|
700
|
+
};
|
|
701
|
+
r.__R = a;
|
|
702
|
+
var c = function() {
|
|
703
|
+
if (!--n.__u) {
|
|
704
|
+
if (n.state.__a) {
|
|
705
|
+
var u = n.state.__a;
|
|
706
|
+
n.__v.__k[0] = Zn(u, u.__c.__P, u.__c.__O);
|
|
707
|
+
}
|
|
708
|
+
var d;
|
|
709
|
+
for (n.setState({ __a: n.__b = null }); d = n.o.pop(); ) d.forceUpdate();
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
n.__u++ || 32 & t.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(a, a);
|
|
713
|
+
}, ct.prototype.componentWillUnmount = function() {
|
|
714
|
+
this.o = [];
|
|
715
|
+
}, ct.prototype.render = function(e, t) {
|
|
716
|
+
if (this.__b) {
|
|
717
|
+
if (this.__v.__k) {
|
|
718
|
+
var r = document.createElement("div"), n = this.__v.__k[0].__c;
|
|
719
|
+
this.__v.__k[0] = Hn(this.__b, r, n.__O = n.__P);
|
|
720
|
+
}
|
|
721
|
+
this.__b = null;
|
|
722
|
+
}
|
|
723
|
+
var o = t.__a && R(H, null, e.fallback);
|
|
724
|
+
return o && (o.__u &= -33), [R(H, null, t.__a ? null : e.children), o];
|
|
725
|
+
};
|
|
726
|
+
var Zr = function(e, t, r) {
|
|
727
|
+
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
|
+
for (; r.length > 3; ) r.pop()();
|
|
729
|
+
if (r[1] < r[0]) break;
|
|
730
|
+
e.i = r = r[2];
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
function Xo(e) {
|
|
734
|
+
return this.getChildContext = function() {
|
|
735
|
+
return e.context;
|
|
736
|
+
}, e.children;
|
|
737
|
+
}
|
|
738
|
+
function Ko(e) {
|
|
739
|
+
var t = this, r = e.h;
|
|
740
|
+
if (t.componentWillUnmount = function() {
|
|
741
|
+
se(null, t.v), t.v = null, t.h = null;
|
|
742
|
+
}, t.h && t.h !== r && t.componentWillUnmount(), !t.v) {
|
|
743
|
+
for (var n = t.__v; n !== null && !n.__m && n.__ !== null; ) n = n.__;
|
|
744
|
+
t.h = r, t.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: n.__m }, contains: function() {
|
|
745
|
+
return !0;
|
|
746
|
+
}, appendChild: function(o) {
|
|
747
|
+
this.childNodes.push(o), t.h.appendChild(o);
|
|
748
|
+
}, insertBefore: function(o, i) {
|
|
749
|
+
this.childNodes.push(o), t.h.insertBefore(o, i);
|
|
750
|
+
}, removeChild: function(o) {
|
|
751
|
+
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
752
|
+
} };
|
|
753
|
+
}
|
|
754
|
+
se(R(Xo, { context: t.context }, e.__v), t.v);
|
|
755
|
+
}
|
|
756
|
+
function Jo(e, t) {
|
|
757
|
+
var r = R(Ko, { __v: e, h: t });
|
|
758
|
+
return r.containerInfo = t, r;
|
|
759
|
+
}
|
|
760
|
+
(He.prototype = new G()).__a = function(e) {
|
|
761
|
+
var t = this, r = Bn(t.__v), n = t.l.get(e);
|
|
762
|
+
return n[0]++, function(o) {
|
|
763
|
+
var i = function() {
|
|
764
|
+
t.props.revealOrder ? (n.push(o), Zr(t, e, n)) : o();
|
|
765
|
+
};
|
|
766
|
+
r ? r(i) : i();
|
|
767
|
+
};
|
|
768
|
+
}, He.prototype.render = function(e) {
|
|
769
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
770
|
+
var t = te(e.children);
|
|
771
|
+
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
772
|
+
for (var r = t.length; r--; ) this.l.set(t[r], this.i = [1, 0, this.i]);
|
|
773
|
+
return e.children;
|
|
774
|
+
}, He.prototype.componentDidUpdate = He.prototype.componentDidMount = function() {
|
|
775
|
+
var e = this;
|
|
776
|
+
this.l.forEach(function(t, r) {
|
|
777
|
+
Zr(e, r, t);
|
|
778
|
+
});
|
|
779
|
+
};
|
|
780
|
+
var Un = 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
|
+
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
782
|
+
};
|
|
783
|
+
function oi(e, t, r) {
|
|
784
|
+
return t.__k == null && (t.textContent = ""), se(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
785
|
+
}
|
|
786
|
+
function ii(e, t, r) {
|
|
787
|
+
return lr(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
788
|
+
}
|
|
789
|
+
G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
790
|
+
Object.defineProperty(G.prototype, e, { configurable: !0, get: function() {
|
|
791
|
+
return this["UNSAFE_" + e];
|
|
792
|
+
}, set: function(t) {
|
|
793
|
+
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
794
|
+
} });
|
|
795
|
+
});
|
|
796
|
+
var Br = C.event;
|
|
797
|
+
function ai() {
|
|
798
|
+
}
|
|
799
|
+
function si() {
|
|
800
|
+
return this.cancelBubble;
|
|
801
|
+
}
|
|
802
|
+
function ci() {
|
|
803
|
+
return this.defaultPrevented;
|
|
804
|
+
}
|
|
805
|
+
C.event = function(e) {
|
|
806
|
+
return Br && (e = Br(e)), e.persist = ai, e.isPropagationStopped = si, e.isDefaultPrevented = ci, e.nativeEvent = e;
|
|
807
|
+
};
|
|
808
|
+
var pr, li = { enumerable: !1, configurable: !0, get: function() {
|
|
809
|
+
return this.class;
|
|
810
|
+
} }, Ur = C.vnode;
|
|
811
|
+
C.vnode = function(e) {
|
|
812
|
+
typeof e.type == "string" && function(t) {
|
|
813
|
+
var r = t.props, n = t.type, o = {}, i = n.indexOf("-") === -1;
|
|
814
|
+
for (var a in r) {
|
|
815
|
+
var c = r[a];
|
|
816
|
+
if (!(a === "value" && "defaultValue" in r && c == null || ri && a === "children" && n === "noscript" || a === "class" || a === "className")) {
|
|
817
|
+
var u = a.toLowerCase();
|
|
818
|
+
a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && c === !0 ? c = "" : u === "translate" && c === "no" ? c = !1 : u[0] === "o" && u[1] === "n" ? u === "ondoubleclick" ? a = "ondblclick" : u !== "onchange" || n !== "input" && n !== "textarea" || ni(r.type) ? u === "onfocus" ? a = "onfocusin" : u === "onblur" ? a = "onfocusout" : ei.test(a) && (a = u) : u = a = "oninput" : i && Qo.test(a) ? a = a.replace(ti, "-$&").toLowerCase() : c === null && (c = void 0), u === "oninput" && o[a = u] && (a = "oninputCapture"), o[a] = c;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
n == "select" && o.multiple && Array.isArray(o.value) && (o.value = te(r.children).forEach(function(d) {
|
|
822
|
+
d.props.selected = o.value.indexOf(d.props.value) != -1;
|
|
823
|
+
})), n == "select" && o.defaultValue != null && (o.value = te(r.children).forEach(function(d) {
|
|
824
|
+
d.props.selected = o.multiple ? o.defaultValue.indexOf(d.props.value) != -1 : o.defaultValue == d.props.value;
|
|
825
|
+
})), 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 = Un, Ur && Ur(e);
|
|
827
|
+
};
|
|
828
|
+
var Wr = C.__r;
|
|
829
|
+
C.__r = function(e) {
|
|
830
|
+
Wr && Wr(e), pr = e.__c;
|
|
831
|
+
};
|
|
832
|
+
var Fr = C.diffed;
|
|
833
|
+
C.diffed = function(e) {
|
|
834
|
+
Fr && Fr(e);
|
|
835
|
+
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), pr = null;
|
|
837
|
+
};
|
|
838
|
+
var ui = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
839
|
+
return pr.__n[e.__c].props.value;
|
|
840
|
+
}, useCallback: _e, useContext: Ke, useDebugValue: _t, useDeferredValue: Tn, useEffect: ne, useId: Nn, useImperativeHandle: $n, useInsertionEffect: Pn, useLayoutEffect: Ie, useMemo: re, useReducer: fr, useRef: Xe, useState: F, useSyncExternalStore: Dn, useTransition: An } } };
|
|
841
|
+
function di(e) {
|
|
842
|
+
return R.bind(null, e);
|
|
843
|
+
}
|
|
844
|
+
function vt(e) {
|
|
845
|
+
return !!e && e.$$typeof === Un;
|
|
846
|
+
}
|
|
847
|
+
function fi(e) {
|
|
848
|
+
return vt(e) && e.type === H;
|
|
849
|
+
}
|
|
850
|
+
function hi(e) {
|
|
851
|
+
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
852
|
+
}
|
|
853
|
+
function pi(e) {
|
|
854
|
+
return vt(e) ? ur.apply(null, arguments) : e;
|
|
855
|
+
}
|
|
856
|
+
function _i(e) {
|
|
857
|
+
return !!e.__k && (se(null, e), !0);
|
|
858
|
+
}
|
|
859
|
+
function mi(e) {
|
|
860
|
+
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
861
|
+
}
|
|
862
|
+
var gi = function(e, t) {
|
|
863
|
+
return e(t);
|
|
864
|
+
}, Li = function(e, t) {
|
|
865
|
+
return e(t);
|
|
866
|
+
}, yi = H, vi = vt, oe = { useState: F, useId: Nn, useReducer: fr, useEffect: ne, useLayoutEffect: Ie, useInsertionEffect: Pn, useTransition: An, useDeferredValue: Tn, useSyncExternalStore: Dn, startTransition: Rn, useRef: Xe, useImperativeHandle: $n, useMemo: re, useCallback: _e, useContext: Ke, useDebugValue: _t, version: "18.3.1", Children: jo, render: oi, hydrate: ii, unmountComponentAtNode: _i, createPortal: Jo, createElement: R, createContext: En, createFactory: di, cloneElement: pi, createRef: ko, Fragment: H, isValidElement: vt, isElement: vi, isFragment: fi, isMemo: hi, findDOMNode: mi, Component: G, PureComponent: zt, memo: Fo, 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
|
+
function Ci(e) {
|
|
868
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
869
|
+
}
|
|
870
|
+
var Dt, zr;
|
|
871
|
+
function wi() {
|
|
872
|
+
return zr || (zr = 1, Dt = function(t, r, n, o) {
|
|
873
|
+
var i = n ? n.call(o, t, r) : void 0;
|
|
874
|
+
if (i !== void 0)
|
|
875
|
+
return !!i;
|
|
876
|
+
if (t === r)
|
|
877
|
+
return !0;
|
|
878
|
+
if (typeof t != "object" || !t || typeof r != "object" || !r)
|
|
879
|
+
return !1;
|
|
880
|
+
var a = Object.keys(t), c = Object.keys(r);
|
|
881
|
+
if (a.length !== c.length)
|
|
882
|
+
return !1;
|
|
883
|
+
for (var u = Object.prototype.hasOwnProperty.bind(r), d = 0; d < a.length; d++) {
|
|
884
|
+
var h = a[d];
|
|
885
|
+
if (!u(h))
|
|
886
|
+
return !1;
|
|
887
|
+
var l = t[h], p = r[h];
|
|
888
|
+
if (i = n ? n.call(o, l, p, h) : void 0, i === !1 || i === void 0 && l !== p)
|
|
889
|
+
return !1;
|
|
890
|
+
}
|
|
891
|
+
return !0;
|
|
892
|
+
}), Dt;
|
|
893
|
+
}
|
|
894
|
+
var Si = wi();
|
|
895
|
+
const bi = /* @__PURE__ */ Ci(Si);
|
|
896
|
+
var O = "-ms-", Fe = "-moz-", k = "-webkit-", Wn = "comm", Ct = "rule", _r = "decl", Vi = "@import", Fn = "@keyframes", Ei = "@layer", zn = Math.abs, mr = String.fromCharCode, Gt = Object.assign;
|
|
897
|
+
function ki(e, t) {
|
|
898
|
+
return M(e, 0) ^ 45 ? (((t << 2 ^ M(e, 0)) << 2 ^ M(e, 1)) << 2 ^ M(e, 2)) << 2 ^ M(e, 3) : 0;
|
|
899
|
+
}
|
|
900
|
+
function Gn(e) {
|
|
901
|
+
return e.trim();
|
|
902
|
+
}
|
|
903
|
+
function Q(e, t) {
|
|
904
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
905
|
+
}
|
|
906
|
+
function w(e, t, r) {
|
|
907
|
+
return e.replace(t, r);
|
|
908
|
+
}
|
|
909
|
+
function lt(e, t, r) {
|
|
910
|
+
return e.indexOf(t, r);
|
|
911
|
+
}
|
|
912
|
+
function M(e, t) {
|
|
913
|
+
return e.charCodeAt(t) | 0;
|
|
914
|
+
}
|
|
915
|
+
function ke(e, t, r) {
|
|
916
|
+
return e.slice(t, r);
|
|
917
|
+
}
|
|
918
|
+
function q(e) {
|
|
919
|
+
return e.length;
|
|
920
|
+
}
|
|
921
|
+
function jn(e) {
|
|
922
|
+
return e.length;
|
|
923
|
+
}
|
|
924
|
+
function Ze(e, t) {
|
|
925
|
+
return t.push(e), e;
|
|
926
|
+
}
|
|
927
|
+
function xi(e, t) {
|
|
928
|
+
return e.map(t).join("");
|
|
929
|
+
}
|
|
930
|
+
function Gr(e, t) {
|
|
931
|
+
return e.filter(function(r) {
|
|
932
|
+
return !Q(r, t);
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
var wt = 1, xe = 1, qn = 0, z = 0, I = 0, Me = "";
|
|
936
|
+
function St(e, t, r, n, o, i, a, c) {
|
|
937
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: i, line: wt, column: xe, length: a, return: "", siblings: c };
|
|
938
|
+
}
|
|
939
|
+
function ae(e, t) {
|
|
940
|
+
return Gt(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
941
|
+
}
|
|
942
|
+
function Se(e) {
|
|
943
|
+
for (; e.root; )
|
|
944
|
+
e = ae(e.root, { children: [e] });
|
|
945
|
+
Ze(e, e.siblings);
|
|
946
|
+
}
|
|
947
|
+
function Oi() {
|
|
948
|
+
return I;
|
|
949
|
+
}
|
|
950
|
+
function $i() {
|
|
951
|
+
return I = z > 0 ? M(Me, --z) : 0, xe--, I === 10 && (xe = 1, wt--), I;
|
|
952
|
+
}
|
|
953
|
+
function j() {
|
|
954
|
+
return I = z < qn ? M(Me, z++) : 0, xe++, I === 10 && (xe = 1, wt++), I;
|
|
955
|
+
}
|
|
956
|
+
function me() {
|
|
957
|
+
return M(Me, z);
|
|
958
|
+
}
|
|
959
|
+
function ut() {
|
|
960
|
+
return z;
|
|
961
|
+
}
|
|
962
|
+
function bt(e, t) {
|
|
963
|
+
return ke(Me, e, t);
|
|
964
|
+
}
|
|
965
|
+
function jt(e) {
|
|
966
|
+
switch (e) {
|
|
967
|
+
// \0 \t \n \r \s whitespace token
|
|
968
|
+
case 0:
|
|
969
|
+
case 9:
|
|
970
|
+
case 10:
|
|
971
|
+
case 13:
|
|
972
|
+
case 32:
|
|
973
|
+
return 5;
|
|
974
|
+
// ! + , / > @ ~ isolate token
|
|
975
|
+
case 33:
|
|
976
|
+
case 43:
|
|
977
|
+
case 44:
|
|
978
|
+
case 47:
|
|
979
|
+
case 62:
|
|
980
|
+
case 64:
|
|
981
|
+
case 126:
|
|
982
|
+
// ; { } breakpoint token
|
|
983
|
+
case 59:
|
|
984
|
+
case 123:
|
|
985
|
+
case 125:
|
|
986
|
+
return 4;
|
|
987
|
+
// : accompanied token
|
|
988
|
+
case 58:
|
|
989
|
+
return 3;
|
|
990
|
+
// " ' ( [ opening delimit token
|
|
991
|
+
case 34:
|
|
992
|
+
case 39:
|
|
993
|
+
case 40:
|
|
994
|
+
case 91:
|
|
995
|
+
return 2;
|
|
996
|
+
// ) ] closing delimit token
|
|
997
|
+
case 41:
|
|
998
|
+
case 93:
|
|
999
|
+
return 1;
|
|
1000
|
+
}
|
|
1001
|
+
return 0;
|
|
1002
|
+
}
|
|
1003
|
+
function Ni(e) {
|
|
1004
|
+
return wt = xe = 1, qn = q(Me = e), z = 0, [];
|
|
1005
|
+
}
|
|
1006
|
+
function Ii(e) {
|
|
1007
|
+
return Me = "", e;
|
|
1008
|
+
}
|
|
1009
|
+
function Rt(e) {
|
|
1010
|
+
return Gn(bt(z - 1, qt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1011
|
+
}
|
|
1012
|
+
function Mi(e) {
|
|
1013
|
+
for (; (I = me()) && I < 33; )
|
|
1014
|
+
j();
|
|
1015
|
+
return jt(e) > 2 || jt(I) > 3 ? "" : " ";
|
|
1016
|
+
}
|
|
1017
|
+
function Di(e, t) {
|
|
1018
|
+
for (; --t && j() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
|
|
1019
|
+
;
|
|
1020
|
+
return bt(e, ut() + (t < 6 && me() == 32 && j() == 32));
|
|
1021
|
+
}
|
|
1022
|
+
function qt(e) {
|
|
1023
|
+
for (; j(); )
|
|
1024
|
+
switch (I) {
|
|
1025
|
+
// ] ) " '
|
|
1026
|
+
case e:
|
|
1027
|
+
return z;
|
|
1028
|
+
// " '
|
|
1029
|
+
case 34:
|
|
1030
|
+
case 39:
|
|
1031
|
+
e !== 34 && e !== 39 && qt(I);
|
|
1032
|
+
break;
|
|
1033
|
+
// (
|
|
1034
|
+
case 40:
|
|
1035
|
+
e === 41 && qt(e);
|
|
1036
|
+
break;
|
|
1037
|
+
// \
|
|
1038
|
+
case 92:
|
|
1039
|
+
j();
|
|
1040
|
+
break;
|
|
1041
|
+
}
|
|
1042
|
+
return z;
|
|
1043
|
+
}
|
|
1044
|
+
function Ri(e, t) {
|
|
1045
|
+
for (; j() && e + I !== 57; )
|
|
1046
|
+
if (e + I === 84 && me() === 47)
|
|
1047
|
+
break;
|
|
1048
|
+
return "/*" + bt(t, z - 1) + "*" + mr(e === 47 ? e : j());
|
|
1049
|
+
}
|
|
1050
|
+
function Ti(e) {
|
|
1051
|
+
for (; !jt(me()); )
|
|
1052
|
+
j();
|
|
1053
|
+
return bt(e, z);
|
|
1054
|
+
}
|
|
1055
|
+
function Ai(e) {
|
|
1056
|
+
return Ii(dt("", null, null, null, [""], e = Ni(e), 0, [0], e));
|
|
1057
|
+
}
|
|
1058
|
+
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, E = "", b = o, x = i, S = n, v = E; y; )
|
|
1060
|
+
switch (_ = g, g = j()) {
|
|
1061
|
+
// (
|
|
1062
|
+
case 40:
|
|
1063
|
+
if (_ != 108 && M(v, l - 1) == 58) {
|
|
1064
|
+
lt(v += w(Rt(g), "&", "&\f"), "&\f", zn(d ? c[d - 1] : 0)) != -1 && (m = -1);
|
|
1065
|
+
break;
|
|
1066
|
+
}
|
|
1067
|
+
// " ' [
|
|
1068
|
+
case 34:
|
|
1069
|
+
case 39:
|
|
1070
|
+
case 91:
|
|
1071
|
+
v += Rt(g);
|
|
1072
|
+
break;
|
|
1073
|
+
// \t \n \r \s
|
|
1074
|
+
case 9:
|
|
1075
|
+
case 10:
|
|
1076
|
+
case 13:
|
|
1077
|
+
case 32:
|
|
1078
|
+
v += Mi(_);
|
|
1079
|
+
break;
|
|
1080
|
+
// \
|
|
1081
|
+
case 92:
|
|
1082
|
+
v += Di(ut() - 1, 7);
|
|
1083
|
+
continue;
|
|
1084
|
+
// /
|
|
1085
|
+
case 47:
|
|
1086
|
+
switch (me()) {
|
|
1087
|
+
case 42:
|
|
1088
|
+
case 47:
|
|
1089
|
+
Ze(Pi(Ri(j(), ut()), t, r, u), u);
|
|
1090
|
+
break;
|
|
1091
|
+
default:
|
|
1092
|
+
v += "/";
|
|
1093
|
+
}
|
|
1094
|
+
break;
|
|
1095
|
+
// {
|
|
1096
|
+
case 123 * L:
|
|
1097
|
+
c[d++] = q(v) * m;
|
|
1098
|
+
// } ; \0
|
|
1099
|
+
case 125 * L:
|
|
1100
|
+
case 59:
|
|
1101
|
+
case 0:
|
|
1102
|
+
switch (g) {
|
|
1103
|
+
// \0 }
|
|
1104
|
+
case 0:
|
|
1105
|
+
case 125:
|
|
1106
|
+
y = 0;
|
|
1107
|
+
// ;
|
|
1108
|
+
case 59 + h:
|
|
1109
|
+
m == -1 && (v = w(v, /\f/g, "")), f > 0 && q(v) - l && Ze(f > 32 ? qr(v + ";", n, r, l - 1, u) : qr(w(v, " ", "") + ";", n, r, l - 2, u), u);
|
|
1110
|
+
break;
|
|
1111
|
+
// @ ;
|
|
1112
|
+
case 59:
|
|
1113
|
+
v += ";";
|
|
1114
|
+
// { rule/at-rule
|
|
1115
|
+
default:
|
|
1116
|
+
if (Ze(S = jr(v, t, r, d, h, o, c, E, b = [], x = [], l, i), i), g === 123)
|
|
1117
|
+
if (h === 0)
|
|
1118
|
+
dt(v, t, S, S, b, i, l, c, x);
|
|
1119
|
+
else
|
|
1120
|
+
switch (p === 99 && M(v, 3) === 110 ? 100 : p) {
|
|
1121
|
+
// d l m s
|
|
1122
|
+
case 100:
|
|
1123
|
+
case 108:
|
|
1124
|
+
case 109:
|
|
1125
|
+
case 115:
|
|
1126
|
+
dt(e, S, S, n && Ze(jr(e, S, S, 0, 0, o, c, E, o, b = [], l, x), x), o, x, l, c, n ? b : x);
|
|
1127
|
+
break;
|
|
1128
|
+
default:
|
|
1129
|
+
dt(v, S, S, S, [""], x, 0, c, x);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
d = h = f = 0, L = m = 1, E = v = "", l = a;
|
|
1133
|
+
break;
|
|
1134
|
+
// :
|
|
1135
|
+
case 58:
|
|
1136
|
+
l = 1 + q(v), f = _;
|
|
1137
|
+
default:
|
|
1138
|
+
if (L < 1) {
|
|
1139
|
+
if (g == 123)
|
|
1140
|
+
--L;
|
|
1141
|
+
else if (g == 125 && L++ == 0 && $i() == 125)
|
|
1142
|
+
continue;
|
|
1143
|
+
}
|
|
1144
|
+
switch (v += mr(g), g * L) {
|
|
1145
|
+
// &
|
|
1146
|
+
case 38:
|
|
1147
|
+
m = h > 0 ? 1 : (v += "\f", -1);
|
|
1148
|
+
break;
|
|
1149
|
+
// ,
|
|
1150
|
+
case 44:
|
|
1151
|
+
c[d++] = (q(v) - 1) * m, m = 1;
|
|
1152
|
+
break;
|
|
1153
|
+
// @
|
|
1154
|
+
case 64:
|
|
1155
|
+
me() === 45 && (v += Rt(j())), p = me(), h = l = q(E = v += Ti(ut())), g++;
|
|
1156
|
+
break;
|
|
1157
|
+
// -
|
|
1158
|
+
case 45:
|
|
1159
|
+
_ === 45 && q(v) == 2 && (L = 0);
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
return i;
|
|
1163
|
+
}
|
|
1164
|
+
function jr(e, t, r, n, o, i, a, c, u, d, h, l) {
|
|
1165
|
+
for (var p = o - 1, f = o === 0 ? i : [""], _ = jn(f), L = 0, y = 0, m = 0; L < n; ++L)
|
|
1166
|
+
for (var g = 0, E = ke(e, p + 1, p = zn(y = a[L])), b = e; g < _; ++g)
|
|
1167
|
+
(b = Gn(y > 0 ? f[g] + " " + E : w(E, /&\f/g, f[g]))) && (u[m++] = b);
|
|
1168
|
+
return St(e, t, r, o === 0 ? Ct : c, u, d, h, l);
|
|
1169
|
+
}
|
|
1170
|
+
function Pi(e, t, r, n) {
|
|
1171
|
+
return St(e, t, r, Wn, mr(Oi()), ke(e, 2, -2), 0, n);
|
|
1172
|
+
}
|
|
1173
|
+
function qr(e, t, r, n, o) {
|
|
1174
|
+
return St(e, t, r, _r, ke(e, 0, n), ke(e, n + 1, -1), n, o);
|
|
1175
|
+
}
|
|
1176
|
+
function Yn(e, t, r) {
|
|
1177
|
+
switch (ki(e, t)) {
|
|
1178
|
+
// color-adjust
|
|
1179
|
+
case 5103:
|
|
1180
|
+
return k + "print-" + e + e;
|
|
1181
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1182
|
+
case 5737:
|
|
1183
|
+
case 4201:
|
|
1184
|
+
case 3177:
|
|
1185
|
+
case 3433:
|
|
1186
|
+
case 1641:
|
|
1187
|
+
case 4457:
|
|
1188
|
+
case 2921:
|
|
1189
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1190
|
+
case 5572:
|
|
1191
|
+
case 6356:
|
|
1192
|
+
case 5844:
|
|
1193
|
+
case 3191:
|
|
1194
|
+
case 6645:
|
|
1195
|
+
case 3005:
|
|
1196
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1197
|
+
case 6391:
|
|
1198
|
+
case 5879:
|
|
1199
|
+
case 5623:
|
|
1200
|
+
case 6135:
|
|
1201
|
+
case 4599:
|
|
1202
|
+
case 4855:
|
|
1203
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1204
|
+
case 4215:
|
|
1205
|
+
case 6389:
|
|
1206
|
+
case 5109:
|
|
1207
|
+
case 5365:
|
|
1208
|
+
case 5621:
|
|
1209
|
+
case 3829:
|
|
1210
|
+
return k + e + e;
|
|
1211
|
+
// tab-size
|
|
1212
|
+
case 4789:
|
|
1213
|
+
return Fe + e + e;
|
|
1214
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1215
|
+
case 5349:
|
|
1216
|
+
case 4246:
|
|
1217
|
+
case 4810:
|
|
1218
|
+
case 6968:
|
|
1219
|
+
case 2756:
|
|
1220
|
+
return k + e + Fe + e + O + e + e;
|
|
1221
|
+
// writing-mode
|
|
1222
|
+
case 5936:
|
|
1223
|
+
switch (M(e, t + 11)) {
|
|
1224
|
+
// vertical-l(r)
|
|
1225
|
+
case 114:
|
|
1226
|
+
return k + e + O + w(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1227
|
+
// vertical-r(l)
|
|
1228
|
+
case 108:
|
|
1229
|
+
return k + e + O + w(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1230
|
+
// horizontal(-)tb
|
|
1231
|
+
case 45:
|
|
1232
|
+
return k + e + O + w(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1233
|
+
}
|
|
1234
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
1235
|
+
case 6828:
|
|
1236
|
+
case 4268:
|
|
1237
|
+
case 2903:
|
|
1238
|
+
return k + e + O + e + e;
|
|
1239
|
+
// order
|
|
1240
|
+
case 6165:
|
|
1241
|
+
return k + e + O + "flex-" + e + e;
|
|
1242
|
+
// align-items
|
|
1243
|
+
case 5187:
|
|
1244
|
+
return k + e + w(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + O + "flex-$1$2") + e;
|
|
1245
|
+
// align-self
|
|
1246
|
+
case 5443:
|
|
1247
|
+
return k + e + O + "flex-item-" + w(e, /flex-|-self/g, "") + (Q(e, /flex-|baseline/) ? "" : O + "grid-row-" + w(e, /flex-|-self/g, "")) + e;
|
|
1248
|
+
// align-content
|
|
1249
|
+
case 4675:
|
|
1250
|
+
return k + e + O + "flex-line-pack" + w(e, /align-content|flex-|-self/g, "") + e;
|
|
1251
|
+
// flex-shrink
|
|
1252
|
+
case 5548:
|
|
1253
|
+
return k + e + O + w(e, "shrink", "negative") + e;
|
|
1254
|
+
// flex-basis
|
|
1255
|
+
case 5292:
|
|
1256
|
+
return k + e + O + w(e, "basis", "preferred-size") + e;
|
|
1257
|
+
// flex-grow
|
|
1258
|
+
case 6060:
|
|
1259
|
+
return k + "box-" + w(e, "-grow", "") + k + e + O + w(e, "grow", "positive") + e;
|
|
1260
|
+
// transition
|
|
1261
|
+
case 4554:
|
|
1262
|
+
return k + w(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
|
|
1263
|
+
// cursor
|
|
1264
|
+
case 6187:
|
|
1265
|
+
return w(w(w(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
|
|
1266
|
+
// background, background-image
|
|
1267
|
+
case 5495:
|
|
1268
|
+
case 3959:
|
|
1269
|
+
return w(e, /(image-set\([^]*)/, k + "$1$`$1");
|
|
1270
|
+
// justify-content
|
|
1271
|
+
case 4968:
|
|
1272
|
+
return w(w(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + O + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
|
|
1273
|
+
// justify-self
|
|
1274
|
+
case 4200:
|
|
1275
|
+
if (!Q(e, /flex-|baseline/)) return O + "grid-column-align" + ke(e, t) + e;
|
|
1276
|
+
break;
|
|
1277
|
+
// grid-template-(columns|rows)
|
|
1278
|
+
case 2592:
|
|
1279
|
+
case 3360:
|
|
1280
|
+
return O + w(e, "template-", "") + e;
|
|
1281
|
+
// grid-(row|column)-start
|
|
1282
|
+
case 4384:
|
|
1283
|
+
case 3616:
|
|
1284
|
+
return r && r.some(function(n, o) {
|
|
1285
|
+
return t = o, Q(n.props, /grid-\w+-end/);
|
|
1286
|
+
}) ? ~lt(e + (r = r[t].value), "span", 0) ? e : O + w(e, "-start", "") + e + O + "grid-row-span:" + (~lt(r, "span", 0) ? Q(r, /\d+/) : +Q(r, /\d+/) - +Q(e, /\d+/)) + ";" : O + w(e, "-start", "") + e;
|
|
1287
|
+
// grid-(row|column)-end
|
|
1288
|
+
case 4896:
|
|
1289
|
+
case 4128:
|
|
1290
|
+
return r && r.some(function(n) {
|
|
1291
|
+
return Q(n.props, /grid-\w+-start/);
|
|
1292
|
+
}) ? e : O + w(w(e, "-end", "-span"), "span ", "") + e;
|
|
1293
|
+
// (margin|padding)-inline-(start|end)
|
|
1294
|
+
case 4095:
|
|
1295
|
+
case 3583:
|
|
1296
|
+
case 4068:
|
|
1297
|
+
case 2532:
|
|
1298
|
+
return w(e, /(.+)-inline(.+)/, k + "$1$2") + e;
|
|
1299
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
1300
|
+
case 8116:
|
|
1301
|
+
case 7059:
|
|
1302
|
+
case 5753:
|
|
1303
|
+
case 5535:
|
|
1304
|
+
case 5445:
|
|
1305
|
+
case 5701:
|
|
1306
|
+
case 4933:
|
|
1307
|
+
case 4677:
|
|
1308
|
+
case 5533:
|
|
1309
|
+
case 5789:
|
|
1310
|
+
case 5021:
|
|
1311
|
+
case 4765:
|
|
1312
|
+
if (q(e) - 1 - t > 6)
|
|
1313
|
+
switch (M(e, t + 1)) {
|
|
1314
|
+
// (m)ax-content, (m)in-content
|
|
1315
|
+
case 109:
|
|
1316
|
+
if (M(e, t + 4) !== 45)
|
|
1317
|
+
break;
|
|
1318
|
+
// (f)ill-available, (f)it-content
|
|
1319
|
+
case 102:
|
|
1320
|
+
return w(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + Fe + (M(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1321
|
+
// (s)tretch
|
|
1322
|
+
case 115:
|
|
1323
|
+
return ~lt(e, "stretch", 0) ? Yn(w(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1324
|
+
}
|
|
1325
|
+
break;
|
|
1326
|
+
// grid-(column|row)
|
|
1327
|
+
case 5152:
|
|
1328
|
+
case 5920:
|
|
1329
|
+
return w(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, i, a, c, u, d) {
|
|
1330
|
+
return O + o + ":" + i + d + (a ? O + o + "-span:" + (c ? u : +u - +i) + d : "") + e;
|
|
1331
|
+
});
|
|
1332
|
+
// position: sticky
|
|
1333
|
+
case 4949:
|
|
1334
|
+
if (M(e, t + 6) === 121)
|
|
1335
|
+
return w(e, ":", ":" + k) + e;
|
|
1336
|
+
break;
|
|
1337
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
1338
|
+
case 6444:
|
|
1339
|
+
switch (M(e, M(e, 14) === 45 ? 18 : 11)) {
|
|
1340
|
+
// (inline-)?fle(x)
|
|
1341
|
+
case 120:
|
|
1342
|
+
return w(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (M(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + O + "$2box$3") + e;
|
|
1343
|
+
// (inline-)?gri(d)
|
|
1344
|
+
case 100:
|
|
1345
|
+
return w(e, ":", ":" + O) + e;
|
|
1346
|
+
}
|
|
1347
|
+
break;
|
|
1348
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
1349
|
+
case 5719:
|
|
1350
|
+
case 2647:
|
|
1351
|
+
case 2135:
|
|
1352
|
+
case 3927:
|
|
1353
|
+
case 2391:
|
|
1354
|
+
return w(e, "scroll-", "scroll-snap-") + e;
|
|
1355
|
+
}
|
|
1356
|
+
return e;
|
|
1357
|
+
}
|
|
1358
|
+
function mt(e, t) {
|
|
1359
|
+
for (var r = "", n = 0; n < e.length; n++)
|
|
1360
|
+
r += t(e[n], n, e, t) || "";
|
|
1361
|
+
return r;
|
|
1362
|
+
}
|
|
1363
|
+
function Hi(e, t, r, n) {
|
|
1364
|
+
switch (e.type) {
|
|
1365
|
+
case Ei:
|
|
1366
|
+
if (e.children.length) break;
|
|
1367
|
+
case Vi:
|
|
1368
|
+
case _r:
|
|
1369
|
+
return e.return = e.return || e.value;
|
|
1370
|
+
case Wn:
|
|
1371
|
+
return "";
|
|
1372
|
+
case Fn:
|
|
1373
|
+
return e.return = e.value + "{" + mt(e.children, n) + "}";
|
|
1374
|
+
case Ct:
|
|
1375
|
+
if (!q(e.value = e.props.join(","))) return "";
|
|
1376
|
+
}
|
|
1377
|
+
return q(r = mt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
1378
|
+
}
|
|
1379
|
+
function Zi(e) {
|
|
1380
|
+
var t = jn(e);
|
|
1381
|
+
return function(r, n, o, i) {
|
|
1382
|
+
for (var a = "", c = 0; c < t; c++)
|
|
1383
|
+
a += e[c](r, n, o, i) || "";
|
|
1384
|
+
return a;
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
function Bi(e) {
|
|
1388
|
+
return function(t) {
|
|
1389
|
+
t.root || (t = t.return) && e(t);
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
function Ui(e, t, r, n) {
|
|
1393
|
+
if (e.length > -1 && !e.return)
|
|
1394
|
+
switch (e.type) {
|
|
1395
|
+
case _r:
|
|
1396
|
+
e.return = Yn(e.value, e.length, r);
|
|
1397
|
+
return;
|
|
1398
|
+
case Fn:
|
|
1399
|
+
return mt([ae(e, { value: w(e.value, "@", "@" + k) })], n);
|
|
1400
|
+
case Ct:
|
|
1401
|
+
if (e.length)
|
|
1402
|
+
return xi(r = e.props, function(o) {
|
|
1403
|
+
switch (Q(o, n = /(::plac\w+|:read-\w+)/)) {
|
|
1404
|
+
// :read-(only|write)
|
|
1405
|
+
case ":read-only":
|
|
1406
|
+
case ":read-write":
|
|
1407
|
+
Se(ae(e, { props: [w(o, /:(read-\w+)/, ":" + Fe + "$1")] })), Se(ae(e, { props: [o] })), Gt(e, { props: Gr(r, n) });
|
|
1408
|
+
break;
|
|
1409
|
+
// :placeholder
|
|
1410
|
+
case "::placeholder":
|
|
1411
|
+
Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" + k + "input-$1")] })), Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" + Fe + "$1")] })), Se(ae(e, { props: [w(o, /:(plac\w+)/, O + "input-$1")] })), Se(ae(e, { props: [o] })), Gt(e, { props: Gr(r, n) });
|
|
1412
|
+
break;
|
|
1413
|
+
}
|
|
1414
|
+
return "";
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
var Wi = {
|
|
1419
|
+
animationIterationCount: 1,
|
|
1420
|
+
aspectRatio: 1,
|
|
1421
|
+
borderImageOutset: 1,
|
|
1422
|
+
borderImageSlice: 1,
|
|
1423
|
+
borderImageWidth: 1,
|
|
1424
|
+
boxFlex: 1,
|
|
1425
|
+
boxFlexGroup: 1,
|
|
1426
|
+
boxOrdinalGroup: 1,
|
|
1427
|
+
columnCount: 1,
|
|
1428
|
+
columns: 1,
|
|
1429
|
+
flex: 1,
|
|
1430
|
+
flexGrow: 1,
|
|
1431
|
+
flexPositive: 1,
|
|
1432
|
+
flexShrink: 1,
|
|
1433
|
+
flexNegative: 1,
|
|
1434
|
+
flexOrder: 1,
|
|
1435
|
+
gridRow: 1,
|
|
1436
|
+
gridRowEnd: 1,
|
|
1437
|
+
gridRowSpan: 1,
|
|
1438
|
+
gridRowStart: 1,
|
|
1439
|
+
gridColumn: 1,
|
|
1440
|
+
gridColumnEnd: 1,
|
|
1441
|
+
gridColumnSpan: 1,
|
|
1442
|
+
gridColumnStart: 1,
|
|
1443
|
+
msGridRow: 1,
|
|
1444
|
+
msGridRowSpan: 1,
|
|
1445
|
+
msGridColumn: 1,
|
|
1446
|
+
msGridColumnSpan: 1,
|
|
1447
|
+
fontWeight: 1,
|
|
1448
|
+
lineHeight: 1,
|
|
1449
|
+
opacity: 1,
|
|
1450
|
+
order: 1,
|
|
1451
|
+
orphans: 1,
|
|
1452
|
+
tabSize: 1,
|
|
1453
|
+
widows: 1,
|
|
1454
|
+
zIndex: 1,
|
|
1455
|
+
zoom: 1,
|
|
1456
|
+
WebkitLineClamp: 1,
|
|
1457
|
+
// SVG-related properties
|
|
1458
|
+
fillOpacity: 1,
|
|
1459
|
+
floodOpacity: 1,
|
|
1460
|
+
stopOpacity: 1,
|
|
1461
|
+
strokeDasharray: 1,
|
|
1462
|
+
strokeDashoffset: 1,
|
|
1463
|
+
strokeMiterlimit: 1,
|
|
1464
|
+
strokeOpacity: 1,
|
|
1465
|
+
strokeWidth: 1
|
|
1466
|
+
}, V = {}, ye = typeof process < "u" && V !== void 0 && (V.REACT_APP_SC_ATTR || V.SC_ATTR) || "data-styled", Xn = "active", Kn = "data-styled-version", Vt = "6.1.18", gr = `/*!sc*/
|
|
1467
|
+
`, gt = typeof window < "u" && typeof document < "u", Fi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && V !== void 0 && V.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && V.REACT_APP_SC_DISABLE_SPEEDY !== "" ? V.REACT_APP_SC_DISABLE_SPEEDY !== "false" && V.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && V !== void 0 && V.SC_DISABLE_SPEEDY !== void 0 && V.SC_DISABLE_SPEEDY !== "" ? V.SC_DISABLE_SPEEDY !== "false" && V.SC_DISABLE_SPEEDY : V.NODE_ENV !== "production"), Yr = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), zi = function(e, t) {
|
|
1468
|
+
if (V.NODE_ENV !== "production") {
|
|
1469
|
+
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
1470
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
1471
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
1472
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
1473
|
+
`, o = console.error;
|
|
1474
|
+
try {
|
|
1475
|
+
var i = !0;
|
|
1476
|
+
console.error = function(a) {
|
|
1477
|
+
for (var c = [], u = 1; u < arguments.length; u++) c[u - 1] = arguments[u];
|
|
1478
|
+
Yr.test(a) ? (i = !1, nt.delete(n)) : o.apply(void 0, Le([a], c, !1));
|
|
1479
|
+
}, Xe(), i && !nt.has(n) && (console.warn(n), nt.add(n));
|
|
1480
|
+
} catch (a) {
|
|
1481
|
+
Yr.test(a.message) && nt.delete(n);
|
|
1482
|
+
} finally {
|
|
1483
|
+
console.error = o;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
}, Et = Object.freeze([]), Oe = Object.freeze({});
|
|
1487
|
+
function Gi(e, t, r) {
|
|
1488
|
+
return r === void 0 && (r = Oe), e.theme !== r.theme && e.theme || t || r.theme;
|
|
1489
|
+
}
|
|
1490
|
+
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 Xr(e) {
|
|
1492
|
+
return e.replace(ji, "-").replace(qi, "");
|
|
1493
|
+
}
|
|
1494
|
+
var Yi = /(a)(d)/gi, ot = 52, Kr = function(e) {
|
|
1495
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1496
|
+
};
|
|
1497
|
+
function Xt(e) {
|
|
1498
|
+
var t, r = "";
|
|
1499
|
+
for (t = Math.abs(e); t > ot; t = t / ot | 0) r = Kr(t % ot) + r;
|
|
1500
|
+
return (Kr(t % ot) + r).replace(Yi, "$1-$2");
|
|
1501
|
+
}
|
|
1502
|
+
var Tt, Jn = 5381, fe = function(e, t) {
|
|
1503
|
+
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
1504
|
+
return e;
|
|
1505
|
+
}, Qn = function(e) {
|
|
1506
|
+
return fe(Jn, e);
|
|
1507
|
+
};
|
|
1508
|
+
function eo(e) {
|
|
1509
|
+
return Xt(Qn(e) >>> 0);
|
|
1510
|
+
}
|
|
1511
|
+
function to(e) {
|
|
1512
|
+
return V.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1513
|
+
}
|
|
1514
|
+
function At(e) {
|
|
1515
|
+
return typeof e == "string" && (V.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1516
|
+
}
|
|
1517
|
+
var ro = typeof Symbol == "function" && Symbol.for, no = ro ? Symbol.for("react.memo") : 60115, Xi = ro ? 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 }, oo = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Qi = ((Tt = {})[Xi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Tt[no] = oo, Tt);
|
|
1518
|
+
function Jr(e) {
|
|
1519
|
+
return ("type" in (t = e) && t.type.$$typeof) === no ? oo : "$$typeof" in e ? Qi[e.$$typeof] : Ki;
|
|
1520
|
+
var t;
|
|
1521
|
+
}
|
|
1522
|
+
var ea = Object.defineProperty, ta = Object.getOwnPropertyNames, Qr = Object.getOwnPropertySymbols, ra = Object.getOwnPropertyDescriptor, na = Object.getPrototypeOf, en = Object.prototype;
|
|
1523
|
+
function io(e, t, r) {
|
|
1524
|
+
if (typeof t != "string") {
|
|
1525
|
+
if (en) {
|
|
1526
|
+
var n = na(t);
|
|
1527
|
+
n && n !== en && io(e, n, r);
|
|
1528
|
+
}
|
|
1529
|
+
var o = ta(t);
|
|
1530
|
+
Qr && (o = o.concat(Qr(t)));
|
|
1531
|
+
for (var i = Jr(e), a = Jr(t), c = 0; c < o.length; ++c) {
|
|
1532
|
+
var u = o[c];
|
|
1533
|
+
if (!(u in Ji || r && r[u] || a && u in a || i && u in i)) {
|
|
1534
|
+
var d = ra(t, u);
|
|
1535
|
+
try {
|
|
1536
|
+
ea(e, u, d);
|
|
1537
|
+
} catch {
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
return e;
|
|
1543
|
+
}
|
|
1544
|
+
function ve(e) {
|
|
1545
|
+
return typeof e == "function";
|
|
1546
|
+
}
|
|
1547
|
+
function Lr(e) {
|
|
1548
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
1549
|
+
}
|
|
1550
|
+
function he(e, t) {
|
|
1551
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1552
|
+
}
|
|
1553
|
+
function Kt(e, t) {
|
|
1554
|
+
if (e.length === 0) return "";
|
|
1555
|
+
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
1556
|
+
return r;
|
|
1557
|
+
}
|
|
1558
|
+
function $e(e) {
|
|
1559
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1560
|
+
}
|
|
1561
|
+
function Jt(e, t, r) {
|
|
1562
|
+
if (r === void 0 && (r = !1), !r && !$e(e) && !Array.isArray(e)) return t;
|
|
1563
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Jt(e[n], t[n]);
|
|
1564
|
+
else if ($e(t)) for (var n in t) e[n] = Jt(e[n], t[n]);
|
|
1565
|
+
return e;
|
|
1566
|
+
}
|
|
1567
|
+
function yr(e, t) {
|
|
1568
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1569
|
+
}
|
|
1570
|
+
var oa = V.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1571
|
+
|
|
1572
|
+
`, 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
|
+
- Are you trying to reuse it across renders?
|
|
1575
|
+
- Are you accidentally calling collectStyles twice?
|
|
1576
|
+
|
|
1577
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1578
|
+
|
|
1579
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1580
|
+
|
|
1581
|
+
- Does this error occur on the client and is your target falsy?
|
|
1582
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
1583
|
+
|
|
1584
|
+
`, 5: `The clone method cannot be used on the client!
|
|
1585
|
+
|
|
1586
|
+
- Are you running in a client-like environment on the server?
|
|
1587
|
+
- Are you trying to run SSR on the client?
|
|
1588
|
+
|
|
1589
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1590
|
+
|
|
1591
|
+
- Are you using a custom target that isn't mounted?
|
|
1592
|
+
- Does your document not have a valid head element?
|
|
1593
|
+
- Have you accidentally removed a style tag manually?
|
|
1594
|
+
|
|
1595
|
+
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1596
|
+
|
|
1597
|
+
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
1598
|
+
|
|
1599
|
+
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
1600
|
+
|
|
1601
|
+
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
1602
|
+
|
|
1603
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1604
|
+
|
|
1605
|
+
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
1606
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1607
|
+
as for instance in your render method then you may be running into this limitation.
|
|
1608
|
+
|
|
1609
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1610
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
1611
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1612
|
+
function ia() {
|
|
1613
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1614
|
+
for (var r = e[0], n = [], o = 1, i = e.length; o < i; o += 1) n.push(e[o]);
|
|
1615
|
+
return n.forEach(function(a) {
|
|
1616
|
+
r = r.replace(/%[a-z]/, a);
|
|
1617
|
+
}), r;
|
|
1618
|
+
}
|
|
1619
|
+
function K(e) {
|
|
1620
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1621
|
+
return V.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
|
+
var aa = function() {
|
|
1624
|
+
function e(t) {
|
|
1625
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1626
|
+
}
|
|
1627
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
1628
|
+
for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
|
|
1629
|
+
return r;
|
|
1630
|
+
}, e.prototype.insertRules = function(t, r) {
|
|
1631
|
+
if (t >= this.groupSizes.length) {
|
|
1632
|
+
for (var n = this.groupSizes, o = n.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw K(16, "".concat(t));
|
|
1633
|
+
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
1634
|
+
for (var a = o; a < i; a++) this.groupSizes[a] = 0;
|
|
1635
|
+
}
|
|
1636
|
+
for (var c = this.indexOfGroup(t + 1), u = (a = 0, r.length); a < u; a++) this.tag.insertRule(c, r[a]) && (this.groupSizes[t]++, c++);
|
|
1637
|
+
}, e.prototype.clearGroup = function(t) {
|
|
1638
|
+
if (t < this.length) {
|
|
1639
|
+
var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r;
|
|
1640
|
+
this.groupSizes[t] = 0;
|
|
1641
|
+
for (var i = n; i < o; i++) this.tag.deleteRule(n);
|
|
1642
|
+
}
|
|
1643
|
+
}, e.prototype.getGroup = function(t) {
|
|
1644
|
+
var r = "";
|
|
1645
|
+
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(gr);
|
|
1647
|
+
return r;
|
|
1648
|
+
}, e;
|
|
1649
|
+
}(), sa = 1 << 30, ft = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), ht = 1, it = function(e) {
|
|
1650
|
+
if (ft.has(e)) return ft.get(e);
|
|
1651
|
+
for (; Lt.has(ht); ) ht++;
|
|
1652
|
+
var t = ht++;
|
|
1653
|
+
if (V.NODE_ENV !== "production" && ((0 | t) < 0 || t > sa)) throw K(16, "".concat(t));
|
|
1654
|
+
return ft.set(e, t), Lt.set(t, e), t;
|
|
1655
|
+
}, ca = function(e, t) {
|
|
1656
|
+
ht = t + 1, ft.set(e, t), Lt.set(t, e);
|
|
1657
|
+
}, la = "style[".concat(ye, "][").concat(Kn, '="').concat(Vt, '"]'), ua = new RegExp("^".concat(ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), da = function(e, t, r) {
|
|
1658
|
+
for (var n, o = r.split(","), i = 0, a = o.length; i < a; i++) (n = o[i]) && e.registerName(t, n);
|
|
1659
|
+
}, fa = function(e, t) {
|
|
1660
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(gr), o = [], i = 0, a = n.length; i < a; i++) {
|
|
1661
|
+
var c = n[i].trim();
|
|
1662
|
+
if (c) {
|
|
1663
|
+
var u = c.match(ua);
|
|
1664
|
+
if (u) {
|
|
1665
|
+
var d = 0 | parseInt(u[1], 10), h = u[2];
|
|
1666
|
+
d !== 0 && (ca(h, d), da(e, h, u[3]), e.getTag().insertRules(d, o)), o.length = 0;
|
|
1667
|
+
} else o.push(c);
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
}, tn = function(e) {
|
|
1671
|
+
for (var t = document.querySelectorAll(la), r = 0, n = t.length; r < n; r++) {
|
|
1672
|
+
var o = t[r];
|
|
1673
|
+
o && o.getAttribute(ye) !== Xn && (fa(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1674
|
+
}
|
|
1675
|
+
};
|
|
1676
|
+
function ha() {
|
|
1677
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1678
|
+
}
|
|
1679
|
+
var ao = function(e) {
|
|
1680
|
+
var t = document.head, r = e || t, n = document.createElement("style"), o = function(c) {
|
|
1681
|
+
var u = Array.from(c.querySelectorAll("style[".concat(ye, "]")));
|
|
1682
|
+
return u[u.length - 1];
|
|
1683
|
+
}(r), i = o !== void 0 ? o.nextSibling : null;
|
|
1684
|
+
n.setAttribute(ye, Xn), n.setAttribute(Kn, Vt);
|
|
1685
|
+
var a = ha();
|
|
1686
|
+
return a && n.setAttribute("nonce", a), r.insertBefore(n, i), n;
|
|
1687
|
+
}, pa = function() {
|
|
1688
|
+
function e(t) {
|
|
1689
|
+
this.element = ao(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
1690
|
+
if (r.sheet) return r.sheet;
|
|
1691
|
+
for (var n = document.styleSheets, o = 0, i = n.length; o < i; o++) {
|
|
1692
|
+
var a = n[o];
|
|
1693
|
+
if (a.ownerNode === r) return a;
|
|
1694
|
+
}
|
|
1695
|
+
throw K(17);
|
|
1696
|
+
}(this.element), this.length = 0;
|
|
1697
|
+
}
|
|
1698
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1699
|
+
try {
|
|
1700
|
+
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
1701
|
+
} catch {
|
|
1702
|
+
return !1;
|
|
1703
|
+
}
|
|
1704
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1705
|
+
this.sheet.deleteRule(t), this.length--;
|
|
1706
|
+
}, e.prototype.getRule = function(t) {
|
|
1707
|
+
var r = this.sheet.cssRules[t];
|
|
1708
|
+
return r && r.cssText ? r.cssText : "";
|
|
1709
|
+
}, e;
|
|
1710
|
+
}(), _a = function() {
|
|
1711
|
+
function e(t) {
|
|
1712
|
+
this.element = ao(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1713
|
+
}
|
|
1714
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1715
|
+
if (t <= this.length && t >= 0) {
|
|
1716
|
+
var n = document.createTextNode(r);
|
|
1717
|
+
return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
|
|
1718
|
+
}
|
|
1719
|
+
return !1;
|
|
1720
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1721
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1722
|
+
}, e.prototype.getRule = function(t) {
|
|
1723
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
1724
|
+
}, e;
|
|
1725
|
+
}(), ma = function() {
|
|
1726
|
+
function e(t) {
|
|
1727
|
+
this.rules = [], this.length = 0;
|
|
1728
|
+
}
|
|
1729
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1730
|
+
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
1731
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1732
|
+
this.rules.splice(t, 1), this.length--;
|
|
1733
|
+
}, e.prototype.getRule = function(t) {
|
|
1734
|
+
return t < this.length ? this.rules[t] : "";
|
|
1735
|
+
}, e;
|
|
1736
|
+
}(), rn = gt, ga = { isServer: !gt, useCSSOMInjection: !Fi }, so = function() {
|
|
1737
|
+
function e(t, r, n) {
|
|
1738
|
+
t === void 0 && (t = Oe), r === void 0 && (r = {});
|
|
1739
|
+
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 && rn && (rn = !1, tn(this)), yr(this, function() {
|
|
1741
|
+
return function(i) {
|
|
1742
|
+
for (var a = i.getTag(), c = a.length, u = "", d = function(l) {
|
|
1743
|
+
var p = function(m) {
|
|
1744
|
+
return Lt.get(m);
|
|
1745
|
+
}(l);
|
|
1746
|
+
if (p === void 0) return "continue";
|
|
1747
|
+
var f = i.names.get(p), _ = a.getGroup(l);
|
|
1748
|
+
if (f === void 0 || !f.size || _.length === 0) return "continue";
|
|
1749
|
+
var L = "".concat(ye, ".g").concat(l, '[id="').concat(p, '"]'), y = "";
|
|
1750
|
+
f !== void 0 && f.forEach(function(m) {
|
|
1751
|
+
m.length > 0 && (y += "".concat(m, ","));
|
|
1752
|
+
}), u += "".concat(_).concat(L, '{content:"').concat(y, '"}').concat(gr);
|
|
1753
|
+
}, h = 0; h < c; h++) d(h);
|
|
1754
|
+
return u;
|
|
1755
|
+
}(o);
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1758
|
+
return e.registerId = function(t) {
|
|
1759
|
+
return it(t);
|
|
1760
|
+
}, e.prototype.rehydrate = function() {
|
|
1761
|
+
!this.server && gt && tn(this);
|
|
1762
|
+
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
1763
|
+
return r === void 0 && (r = !0), new e(D(D({}, this.options), t), this.gs, r && this.names || void 0);
|
|
1764
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
1765
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1766
|
+
}, e.prototype.getTag = function() {
|
|
1767
|
+
return this.tag || (this.tag = (t = function(r) {
|
|
1768
|
+
var n = r.useCSSOMInjection, o = r.target;
|
|
1769
|
+
return r.isServer ? new ma(o) : n ? new pa(o) : new _a(o);
|
|
1770
|
+
}(this.options), new aa(t)));
|
|
1771
|
+
var t;
|
|
1772
|
+
}, e.prototype.hasNameForId = function(t, r) {
|
|
1773
|
+
return this.names.has(t) && this.names.get(t).has(r);
|
|
1774
|
+
}, e.prototype.registerName = function(t, r) {
|
|
1775
|
+
if (it(t), this.names.has(t)) this.names.get(t).add(r);
|
|
1776
|
+
else {
|
|
1777
|
+
var n = /* @__PURE__ */ new Set();
|
|
1778
|
+
n.add(r), this.names.set(t, n);
|
|
1779
|
+
}
|
|
1780
|
+
}, e.prototype.insertRules = function(t, r, n) {
|
|
1781
|
+
this.registerName(t, r), this.getTag().insertRules(it(t), n);
|
|
1782
|
+
}, e.prototype.clearNames = function(t) {
|
|
1783
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
1784
|
+
}, e.prototype.clearRules = function(t) {
|
|
1785
|
+
this.getTag().clearGroup(it(t)), this.clearNames(t);
|
|
1786
|
+
}, e.prototype.clearTag = function() {
|
|
1787
|
+
this.tag = void 0;
|
|
1788
|
+
}, e;
|
|
1789
|
+
}(), La = /&/g, ya = /^\s*\/\/.*$/gm;
|
|
1790
|
+
function co(e, t) {
|
|
1791
|
+
return e.map(function(r) {
|
|
1792
|
+
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
|
+
return "".concat(t, " ").concat(n);
|
|
1794
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = co(r.children, t)), r;
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1797
|
+
function lo(e) {
|
|
1798
|
+
var t, r, n, o = e === void 0 ? Oe : e, i = o.options, a = i === void 0 ? Oe : i, c = o.plugins, u = c === void 0 ? Et : c, d = function(p, f, _) {
|
|
1799
|
+
return _.startsWith(r) && _.endsWith(r) && _.replaceAll(r, "").length > 0 ? ".".concat(t) : p;
|
|
1800
|
+
}, h = u.slice();
|
|
1801
|
+
h.push(function(p) {
|
|
1802
|
+
p.type === Ct && p.value.includes("&") && (p.props[0] = p.props[0].replace(La, r).replace(n, d));
|
|
1803
|
+
}), a.prefix && h.push(Ui), h.push(Hi);
|
|
1804
|
+
var l = function(p, f, _, L) {
|
|
1805
|
+
f === void 0 && (f = ""), _ === void 0 && (_ = ""), L === void 0 && (L = "&"), t = L, r = f, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1806
|
+
var y = p.replace(ya, ""), m = Ai(_ || f ? "".concat(_, " ").concat(f, " { ").concat(y, " }") : y);
|
|
1807
|
+
a.namespace && (m = co(m, a.namespace));
|
|
1808
|
+
var g = [];
|
|
1809
|
+
return mt(m, Zi(h.concat(Bi(function(E) {
|
|
1810
|
+
return g.push(E);
|
|
1811
|
+
})))), g;
|
|
1812
|
+
};
|
|
1813
|
+
return l.hash = u.length ? u.reduce(function(p, f) {
|
|
1814
|
+
return f.name || K(15), fe(p, f.name);
|
|
1815
|
+
}, Jn).toString() : "", l;
|
|
1816
|
+
}
|
|
1817
|
+
var va = new so(), Qt = lo(), vr = oe.createContext({ shouldForwardProp: void 0, styleSheet: va, stylis: Qt });
|
|
1818
|
+
vr.Consumer;
|
|
1819
|
+
var Ca = oe.createContext(void 0);
|
|
1820
|
+
function er() {
|
|
1821
|
+
return Ke(vr);
|
|
1822
|
+
}
|
|
1823
|
+
function wa(e) {
|
|
1824
|
+
var t = F(e.stylisPlugins), r = t[0], n = t[1], o = er().styleSheet, i = re(function() {
|
|
1825
|
+
var u = o;
|
|
1826
|
+
return e.sheet ? u = e.sheet : e.target && (u = u.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (u = u.reconstructWithOptions({ useCSSOMInjection: !1 })), u;
|
|
1827
|
+
}, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = re(function() {
|
|
1828
|
+
return lo({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: r });
|
|
1829
|
+
}, [e.enableVendorPrefixes, e.namespace, r]);
|
|
1830
|
+
ne(function() {
|
|
1831
|
+
bi(r, e.stylisPlugins) || n(e.stylisPlugins);
|
|
1832
|
+
}, [e.stylisPlugins]);
|
|
1833
|
+
var c = re(function() {
|
|
1834
|
+
return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
|
|
1835
|
+
}, [e.shouldForwardProp, i, a]);
|
|
1836
|
+
return oe.createElement(vr.Provider, { value: c }, oe.createElement(Ca.Provider, { value: a }, e.children));
|
|
1837
|
+
}
|
|
1838
|
+
var tr = function() {
|
|
1839
|
+
function e(t, r) {
|
|
1840
|
+
var n = this;
|
|
1841
|
+
this.inject = function(o, i) {
|
|
1842
|
+
i === void 0 && (i = Qt);
|
|
1843
|
+
var a = n.name + i.hash;
|
|
1844
|
+
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, yr(this, function() {
|
|
1846
|
+
throw K(12, String(n.name));
|
|
1847
|
+
});
|
|
1848
|
+
}
|
|
1849
|
+
return e.prototype.getName = function(t) {
|
|
1850
|
+
return t === void 0 && (t = Qt), this.name + t.hash;
|
|
1851
|
+
}, e;
|
|
1852
|
+
}(), Sa = function(e) {
|
|
1853
|
+
return e >= "A" && e <= "Z";
|
|
1854
|
+
};
|
|
1855
|
+
function nn(e) {
|
|
1856
|
+
for (var t = "", r = 0; r < e.length; r++) {
|
|
1857
|
+
var n = e[r];
|
|
1858
|
+
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
1859
|
+
Sa(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
1860
|
+
}
|
|
1861
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1862
|
+
}
|
|
1863
|
+
var uo = function(e) {
|
|
1864
|
+
return e == null || e === !1 || e === "";
|
|
1865
|
+
}, fo = function(e) {
|
|
1866
|
+
var t, r, n = [];
|
|
1867
|
+
for (var o in e) {
|
|
1868
|
+
var i = e[o];
|
|
1869
|
+
e.hasOwnProperty(o) && !uo(i) && (Array.isArray(i) && i.isCss || ve(i) ? n.push("".concat(nn(o), ":"), i, ";") : $e(i) ? n.push.apply(n, Le(Le(["".concat(o, " {")], fo(i), !1), ["}"], !1)) : n.push("".concat(nn(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
|
+
return n;
|
|
1872
|
+
};
|
|
1873
|
+
function ge(e, t, r, n) {
|
|
1874
|
+
if (uo(e)) return [];
|
|
1875
|
+
if (Lr(e)) return [".".concat(e.styledComponentId)];
|
|
1876
|
+
if (ve(e)) {
|
|
1877
|
+
if (!ve(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
1878
|
+
var o = e(t);
|
|
1879
|
+
return V.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof tr || $e(o) || o === null || console.error("".concat(to(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
|
+
var i;
|
|
1882
|
+
return e instanceof tr ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : $e(e) ? fo(e) : Array.isArray(e) ? Array.prototype.concat.apply(Et, e.map(function(a) {
|
|
1883
|
+
return ge(a, t, r, n);
|
|
1884
|
+
})) : [e.toString()];
|
|
1885
|
+
}
|
|
1886
|
+
function ba(e) {
|
|
1887
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1888
|
+
var r = e[t];
|
|
1889
|
+
if (ve(r) && !Lr(r)) return !1;
|
|
1890
|
+
}
|
|
1891
|
+
return !0;
|
|
1892
|
+
}
|
|
1893
|
+
var Va = Qn(Vt), Ea = function() {
|
|
1894
|
+
function e(t, r, n) {
|
|
1895
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = V.NODE_ENV === "production" && (n === void 0 || n.isStatic) && ba(t), this.componentId = r, this.baseHash = fe(Va, r), this.baseStyle = n, so.registerId(r);
|
|
1896
|
+
}
|
|
1897
|
+
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
1898
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
1899
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = he(o, this.staticRulesId);
|
|
1900
|
+
else {
|
|
1901
|
+
var i = Kt(ge(this.rules, t, r, n)), a = Xt(fe(this.baseHash, i) >>> 0);
|
|
1902
|
+
if (!r.hasNameForId(this.componentId, a)) {
|
|
1903
|
+
var c = n(i, ".".concat(a), void 0, this.componentId);
|
|
1904
|
+
r.insertRules(this.componentId, a, c);
|
|
1905
|
+
}
|
|
1906
|
+
o = he(o, a), this.staticRulesId = a;
|
|
1907
|
+
}
|
|
1908
|
+
else {
|
|
1909
|
+
for (var u = fe(this.baseHash, n.hash), d = "", h = 0; h < this.rules.length; h++) {
|
|
1910
|
+
var l = this.rules[h];
|
|
1911
|
+
if (typeof l == "string") d += l, V.NODE_ENV !== "production" && (u = fe(u, l));
|
|
1912
|
+
else if (l) {
|
|
1913
|
+
var p = Kt(ge(l, t, r, n));
|
|
1914
|
+
u = fe(u, p + h), d += p;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
if (d) {
|
|
1918
|
+
var f = Xt(u >>> 0);
|
|
1919
|
+
r.hasNameForId(this.componentId, f) || r.insertRules(this.componentId, f, n(d, ".".concat(f), void 0, this.componentId)), o = he(o, f);
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
return o;
|
|
1923
|
+
}, e;
|
|
1924
|
+
}(), je = oe.createContext(void 0);
|
|
1925
|
+
je.Consumer;
|
|
1926
|
+
function ho() {
|
|
1927
|
+
var e = Ke(je);
|
|
1928
|
+
if (!e) throw K(18);
|
|
1929
|
+
return e;
|
|
1930
|
+
}
|
|
1931
|
+
function ka(e) {
|
|
1932
|
+
var t = oe.useContext(je), r = re(function() {
|
|
1933
|
+
return function(n, o) {
|
|
1934
|
+
if (!n) throw K(14);
|
|
1935
|
+
if (ve(n)) {
|
|
1936
|
+
var i = n(o);
|
|
1937
|
+
if (V.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw K(7);
|
|
1938
|
+
return i;
|
|
1939
|
+
}
|
|
1940
|
+
if (Array.isArray(n) || typeof n != "object") throw K(8);
|
|
1941
|
+
return o ? D(D({}, o), n) : n;
|
|
1942
|
+
}(e.theme, t);
|
|
1943
|
+
}, [e.theme, t]);
|
|
1944
|
+
return e.children ? oe.createElement(je.Provider, { value: r }, e.children) : null;
|
|
1945
|
+
}
|
|
1946
|
+
var Pt = {}, on = /* @__PURE__ */ new Set();
|
|
1947
|
+
function xa(e, t, r) {
|
|
1948
|
+
var n = Lr(e), o = e, i = !At(e), a = t.attrs, c = a === void 0 ? Et : a, u = t.componentId, d = u === void 0 ? function(b, x) {
|
|
1949
|
+
var S = typeof b != "string" ? "sc" : Xr(b);
|
|
1950
|
+
Pt[S] = (Pt[S] || 0) + 1;
|
|
1951
|
+
var v = "".concat(S, "-").concat(eo(Vt + S + Pt[S]));
|
|
1952
|
+
return x ? "".concat(x, "-").concat(v) : v;
|
|
1953
|
+
}(t.displayName, t.parentComponentId) : u, h = t.displayName, l = h === void 0 ? function(b) {
|
|
1954
|
+
return At(b) ? "styled.".concat(b) : "Styled(".concat(to(b), ")");
|
|
1955
|
+
}(e) : h, p = t.displayName && t.componentId ? "".concat(Xr(t.displayName), "-").concat(t.componentId) : t.componentId || d, f = n && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, _ = t.shouldForwardProp;
|
|
1956
|
+
if (n && o.shouldForwardProp) {
|
|
1957
|
+
var L = o.shouldForwardProp;
|
|
1958
|
+
if (t.shouldForwardProp) {
|
|
1959
|
+
var y = t.shouldForwardProp;
|
|
1960
|
+
_ = function(b, x) {
|
|
1961
|
+
return L(b, x) && y(b, x);
|
|
1962
|
+
};
|
|
1963
|
+
} else _ = L;
|
|
1964
|
+
}
|
|
1965
|
+
var m = new Ea(r, p, n ? o.componentStyle : void 0);
|
|
1966
|
+
function g(b, x) {
|
|
1967
|
+
return function(S, v, A) {
|
|
1968
|
+
var B = S.attrs, De = S.componentStyle, U = S.defaultProps, le = S.foldedComponentIds, wr = S.styledComponentId, Co = S.target, wo = oe.useContext(je), So = er(), xt = S.shouldForwardProp || So.shouldForwardProp;
|
|
1969
|
+
V.NODE_ENV !== "production" && _t(wr);
|
|
1970
|
+
var Sr = Gi(v, wo, U) || Oe, J = function(Je, Ae, Qe) {
|
|
1971
|
+
for (var we, ue = D(D({}, Ae), { className: void 0, theme: Qe }), Nt = 0; Nt < Je.length; Nt += 1) {
|
|
1972
|
+
var et = ve(we = Je[Nt]) ? we(ue) : we;
|
|
1973
|
+
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
|
+
return Ae.className && (ue.className = he(ue.className, Ae.className)), ue;
|
|
1976
|
+
}(B, v, Sr), Re = J.as || Co, Te = {};
|
|
1977
|
+
for (var W in J) J[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && J.theme === Sr || (W === "forwardedAs" ? Te.as = J.forwardedAs : xt && !xt(W, Re) || (Te[W] = J[W], xt || V.NODE_ENV !== "development" || Wo(W) || on.has(W) || !Yt.has(Re) || (on.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.)')))));
|
|
1978
|
+
var Ot = function(Je, Ae) {
|
|
1979
|
+
var Qe = er(), we = Je.generateAndInjectStyles(Ae, Qe.styleSheet, Qe.stylis);
|
|
1980
|
+
return V.NODE_ENV !== "production" && _t(we), we;
|
|
1981
|
+
}(De, J);
|
|
1982
|
+
V.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(Ot);
|
|
1983
|
+
var $t = he(le, wr);
|
|
1984
|
+
return Ot && ($t += " " + Ot), J.className && ($t += " " + J.className), Te[At(Re) && !Yt.has(Re) ? "class" : "className"] = $t, A && (Te.ref = A), R(Re, Te);
|
|
1985
|
+
}(E, b, x);
|
|
1986
|
+
}
|
|
1987
|
+
g.displayName = l;
|
|
1988
|
+
var E = oe.forwardRef(g);
|
|
1989
|
+
return E.attrs = f, E.componentStyle = m, E.displayName = l, E.shouldForwardProp = _, E.foldedComponentIds = n ? he(o.foldedComponentIds, o.styledComponentId) : "", E.styledComponentId = p, E.target = n ? o.target : e, Object.defineProperty(E, "defaultProps", { get: function() {
|
|
1990
|
+
return this._foldedDefaultProps;
|
|
1991
|
+
}, set: function(b) {
|
|
1992
|
+
this._foldedDefaultProps = n ? function(x) {
|
|
1993
|
+
for (var S = [], v = 1; v < arguments.length; v++) S[v - 1] = arguments[v];
|
|
1994
|
+
for (var A = 0, B = S; A < B.length; A++) Jt(x, B[A], !0);
|
|
1995
|
+
return x;
|
|
1996
|
+
}({}, o.defaultProps, b) : b;
|
|
1997
|
+
} }), V.NODE_ENV !== "production" && (zi(l, p), E.warnTooManyClasses = /* @__PURE__ */ function(b, x) {
|
|
1998
|
+
var S = {}, v = !1;
|
|
1999
|
+
return function(A) {
|
|
2000
|
+
if (!v && (S[A] = !0, Object.keys(S).length >= 200)) {
|
|
2001
|
+
var B = x ? ' with the id of "'.concat(x, '"') : "";
|
|
2002
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(b).concat(B, `.
|
|
2003
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2004
|
+
Example:
|
|
2005
|
+
const Component = styled.div.attrs(props => ({
|
|
2006
|
+
style: {
|
|
2007
|
+
background: props.background,
|
|
2008
|
+
},
|
|
2009
|
+
}))\`width: 100%;\`
|
|
2010
|
+
|
|
2011
|
+
<Component />`), v = !0, S = {};
|
|
2012
|
+
}
|
|
2013
|
+
};
|
|
2014
|
+
}(l, p)), yr(E, function() {
|
|
2015
|
+
return ".".concat(E.styledComponentId);
|
|
2016
|
+
}), i && io(E, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), E;
|
|
2017
|
+
}
|
|
2018
|
+
function an(e, t) {
|
|
2019
|
+
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
2020
|
+
return r;
|
|
2021
|
+
}
|
|
2022
|
+
var sn = function(e) {
|
|
2023
|
+
return Object.assign(e, { isCss: !0 });
|
|
2024
|
+
};
|
|
2025
|
+
function Cr(e) {
|
|
2026
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
2027
|
+
if (ve(e) || $e(e)) return sn(ge(an(Et, Le([e], t, !0))));
|
|
2028
|
+
var n = e;
|
|
2029
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ge(n) : sn(ge(an(n, t)));
|
|
2030
|
+
}
|
|
2031
|
+
function rr(e, t, r) {
|
|
2032
|
+
if (r === void 0 && (r = Oe), !t) throw K(1, t);
|
|
2033
|
+
var n = function(o) {
|
|
2034
|
+
for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
|
2035
|
+
return e(t, r, Cr.apply(void 0, Le([o], i, !1)));
|
|
2036
|
+
};
|
|
2037
|
+
return n.attrs = function(o) {
|
|
2038
|
+
return rr(e, t, D(D({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
2039
|
+
}, n.withConfig = function(o) {
|
|
2040
|
+
return rr(e, t, D(D({}, r), o));
|
|
2041
|
+
}, n;
|
|
2042
|
+
}
|
|
2043
|
+
var po = function(e) {
|
|
2044
|
+
return rr(xa, e);
|
|
2045
|
+
}, Z = po;
|
|
2046
|
+
Yt.forEach(function(e) {
|
|
2047
|
+
Z[e] = po(e);
|
|
2048
|
+
});
|
|
2049
|
+
function kt(e) {
|
|
2050
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
2051
|
+
V.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.");
|
|
2052
|
+
var n = Kt(Cr.apply(void 0, Le([e], t, !1))), o = eo(n);
|
|
2053
|
+
return new tr(o, n);
|
|
2054
|
+
}
|
|
2055
|
+
V.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
2056
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
2057
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
2058
|
+
var at = "__sc-".concat(ye, "__");
|
|
2059
|
+
V.NODE_ENV !== "production" && V.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
|
+
See https://s-c.sh/2BAXzed for more info.`), window[at] += 1);
|
|
2062
|
+
const P = {
|
|
2063
|
+
ID_CORNERS: "id-corners",
|
|
2064
|
+
ID_DASH: "id-dash",
|
|
2065
|
+
ID_DOT: "id-dot",
|
|
2066
|
+
ID_SOLID: "id-solid",
|
|
2067
|
+
ID_PHOTO_ROUNDED: "id-photo-rounded",
|
|
2068
|
+
ID_CORNERS_ROUNDED: "id-corners-rounded",
|
|
2069
|
+
ID_DASH_ROUNDED: "id-dash-rounded",
|
|
2070
|
+
ID_DOT_ROUNDED: "id-dot-rounded",
|
|
2071
|
+
ID_SOLID_ROUNDED_BACK: "id-solid-rounded-back",
|
|
2072
|
+
ID_SOLID_ROUNDED: "id-solid-rounded",
|
|
2073
|
+
PASSPORT_SOLID_BACK: "passport-solid-back",
|
|
2074
|
+
PASSPORT_SOLID_BACK_BLANK: "passport-solid-back-blank"
|
|
2075
|
+
}, cn = 0.24, Oa = 24, $a = 2, _o = 14, Na = 0.0276;
|
|
2076
|
+
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
|
+
const Be = {
|
|
2078
|
+
300: {
|
|
2079
|
+
iconSize: 40,
|
|
2080
|
+
marginLeft: 12,
|
|
2081
|
+
buttonPadding: 4
|
|
2082
|
+
},
|
|
2083
|
+
400: {
|
|
2084
|
+
iconSize: 45,
|
|
2085
|
+
marginLeft: 12,
|
|
2086
|
+
buttonPadding: 8
|
|
2087
|
+
},
|
|
2088
|
+
500: {
|
|
2089
|
+
iconSize: 52,
|
|
2090
|
+
marginLeft: 12,
|
|
2091
|
+
buttonPadding: 12
|
|
2092
|
+
},
|
|
2093
|
+
600: {
|
|
2094
|
+
iconSize: 52,
|
|
2095
|
+
marginLeft: 12,
|
|
2096
|
+
buttonPadding: 24
|
|
2097
|
+
}
|
|
2098
|
+
}, Ia = {
|
|
2099
|
+
[T.CANDIDATE_SELECTION]: "Hold still…",
|
|
2100
|
+
[T.DOCUMENT_CENTERING]: "Center document",
|
|
2101
|
+
[T.DOCUMENT_NOT_PRESENT]: "Scan document",
|
|
2102
|
+
[T.DOCUMENT_TOO_FAR]: "Move closer",
|
|
2103
|
+
[T.SHARPNESS_TOO_LOW]: "More light needed",
|
|
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 = {
|
|
2113
|
+
loading: { text: "Loading. Please wait.", visible: !0 },
|
|
2114
|
+
waiting: { text: "Waiting for input...", visible: !0 }
|
|
2115
|
+
}, Da = P.ID_CORNERS_ROUNDED, Ra = "rgba(19, 19, 19, 0.5)", Ta = 34;
|
|
2116
|
+
function un(e, t) {
|
|
2117
|
+
return Math.max(t, t + (e - 400) * Na + 2);
|
|
2118
|
+
}
|
|
2119
|
+
const Aa = (e, t = _o) => e ? e.width < e.height ? un(e.width, t) : un(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
|
+
function Za() {
|
|
2121
|
+
const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
|
|
2122
|
+
if (!document.querySelector(`link[href="${e}"]`)) {
|
|
2123
|
+
const r = document.createElement("link");
|
|
2124
|
+
r.href = e, r.rel = "stylesheet", document.head.appendChild(r);
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
function Ba({
|
|
2128
|
+
currentInstruction: e,
|
|
2129
|
+
escalatedInstructions: t,
|
|
2130
|
+
instructions: r
|
|
2131
|
+
}) {
|
|
2132
|
+
const { code: n, isEscalated: o } = e;
|
|
2133
|
+
if (n)
|
|
2134
|
+
return o && t && n in t ? t[n] : r[n];
|
|
2135
|
+
}
|
|
2136
|
+
const ze = En(void 0);
|
|
2137
|
+
ze.displayName = "UiCustomizationContext";
|
|
2138
|
+
function Ce() {
|
|
2139
|
+
const e = Ke(ze);
|
|
2140
|
+
if (!e)
|
|
2141
|
+
throw new Error(
|
|
2142
|
+
`${ze.displayName} must be used within a ${ze.displayName} Provider`
|
|
2143
|
+
);
|
|
2144
|
+
return e;
|
|
2145
|
+
}
|
|
2146
|
+
function Ua({ children: e, props: t, videoElementSize: r }) {
|
|
2147
|
+
const { font: n } = ho(), o = re(
|
|
2148
|
+
() => ({ ...t, videoElementSize: r, fontSize: Aa(r, n.minimumSize) }),
|
|
2149
|
+
[t, n.minimumSize, r]
|
|
2150
|
+
);
|
|
2151
|
+
return /* @__PURE__ */ s(ze.Provider, { value: o, children: e });
|
|
2152
|
+
}
|
|
2153
|
+
const mo = ({ 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
|
+
"path",
|
|
2155
|
+
{
|
|
2156
|
+
clipRule: "evenodd",
|
|
2157
|
+
d: "M14.3062 13.5002H1.69384C0.932655 13.5002 0.450552 12.6837 0.818264 12.0172L7.12444 0.587236C7.5047 -0.101994 8.49533 -0.101996 8.87559 0.587234L15.1818 12.0172C15.5495 12.6837 15.0674 13.5002 14.3062 13.5002ZM8.00001 3.25025C8.41423 3.25025 8.75002 3.58604 8.75002 4.00025V8.50025C8.75002 8.91446 8.41423 9.25025 8.00001 9.25025C7.5858 9.25025 7.25001 8.91446 7.25001 8.50025V4.00025C7.25001 3.58604 7.5858 3.25025 8.00001 3.25025ZM8.75002 11.2502C8.75002 11.6645 8.41423 12.0002 8.00001 12.0002C7.5858 12.0002 7.25001 11.6645 7.25001 11.2502C7.25001 10.836 7.5858 10.5002 8.00001 10.5002C8.41423 10.5002 8.75002 10.836 8.75002 11.2502Z",
|
|
2158
|
+
fill: "currentColor",
|
|
2159
|
+
fillRule: "evenodd"
|
|
2160
|
+
}
|
|
2161
|
+
) }), Wa = Z.div`
|
|
2162
|
+
width: 100%;
|
|
2163
|
+
height: 100%;
|
|
2164
|
+
top: 0;
|
|
2165
|
+
position: ${(e) => e.$position};
|
|
2166
|
+
display: flex;
|
|
2167
|
+
justify-content: center;
|
|
2168
|
+
align-items: center;
|
|
2169
|
+
text-align: center;
|
|
2170
|
+
z-index: 1;
|
|
2171
|
+
|
|
2172
|
+
${(e) => !e.$isCameraReady && `
|
|
2173
|
+
height: inherit;
|
|
2174
|
+
aspect-ratio: 16/9;
|
|
2175
|
+
|
|
2176
|
+
@media (orientation: portrait) and (max-width: 1199px) {
|
|
2177
|
+
aspect-ratio: 9/16;
|
|
2178
|
+
}
|
|
2179
|
+
`}
|
|
2180
|
+
`, Fa = Z.div`
|
|
2181
|
+
width: 100%;
|
|
2182
|
+
display: flex;
|
|
2183
|
+
flex-direction: column;
|
|
2184
|
+
justify-content: center;
|
|
2185
|
+
align-items: center;
|
|
2186
|
+
color: ${(e) => e.theme.colors.instructionTextColor};
|
|
2187
|
+
`, za = Z.p`
|
|
2188
|
+
background: ${(e) => e.theme.colors.instructionColor};
|
|
2189
|
+
border-radius: 0.25em;
|
|
2190
|
+
padding: 0.583em 0.666em;
|
|
2191
|
+
margin: 0.8em 0;
|
|
2192
|
+
font-size: ${(e) => `${e.$fontSize}px`};
|
|
2193
|
+
line-height: 1em;
|
|
2194
|
+
max-width: 80%;
|
|
2195
|
+
`, nr = ({ Icon: e, isCameraReady: t, position: r = "absolute", text: n }) => {
|
|
2196
|
+
const { fontSize: o } = Ce();
|
|
2197
|
+
return /* @__PURE__ */ s(Wa, { $isCameraReady: t, $position: r, children: /* @__PURE__ */ s(Fa, { children: [
|
|
2198
|
+
e ? /* @__PURE__ */ s(e, { svgSize: o * 2 }) : null,
|
|
2199
|
+
/* @__PURE__ */ s(za, { $fontSize: o, children: n })
|
|
2200
|
+
] }) });
|
|
2201
|
+
}, go = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ s(nr, { Icon: mo, position: "relative", text: e });
|
|
2202
|
+
class Ga extends G {
|
|
2203
|
+
constructor(t) {
|
|
2204
|
+
super(t), this.state = { hasError: !1 };
|
|
2205
|
+
}
|
|
2206
|
+
static getDerivedStateFromError(t) {
|
|
2207
|
+
return { hasError: !0 };
|
|
2208
|
+
}
|
|
2209
|
+
componentDidCatch(t, r) {
|
|
2210
|
+
console.error(t, r);
|
|
2211
|
+
}
|
|
2212
|
+
render() {
|
|
2213
|
+
return this.state.hasError ? /* @__PURE__ */ s(go, { Icon: mo, isCameraReady: !1 }) : this.props.children;
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
const ja = Z.div`
|
|
2217
|
+
font-family: ${(e) => e.theme.font.family};
|
|
2218
|
+
font-style: ${(e) => e.theme.font.style};
|
|
2219
|
+
font-weight: ${(e) => e.theme.font.weight};
|
|
2220
|
+
`, qa = ({ children: e, uiProps: t, videoElementSize: r }) => (ne(() => {
|
|
2221
|
+
Za();
|
|
2222
|
+
}, []), /* @__PURE__ */ s(wa, { target: t.styleTarget, children: /* @__PURE__ */ s(ka, { theme: t.theme, children: /* @__PURE__ */ s(ja, { children: /* @__PURE__ */ s(Ga, { videoElementSize: r, children: /* @__PURE__ */ s(Ua, { props: t, videoElementSize: r, children: e }) }) }) }) })), Ya = 1.5, Xa = 0.85, Ht = 1e3, Ka = "dot-auto-capture-video", be = (e, t) => {
|
|
2223
|
+
const r = Xe(t);
|
|
2224
|
+
ne(() => {
|
|
2225
|
+
r.current = t;
|
|
2226
|
+
}, [t]), ne(
|
|
2227
|
+
() => {
|
|
2228
|
+
const n = (o) => r.current(o);
|
|
2229
|
+
return document.addEventListener(e, n), () => {
|
|
2230
|
+
document.removeEventListener(e, n);
|
|
2231
|
+
};
|
|
2232
|
+
},
|
|
2233
|
+
[e]
|
|
2234
|
+
// Re-run if eventName
|
|
2235
|
+
);
|
|
2236
|
+
};
|
|
2237
|
+
function Ja(e) {
|
|
2238
|
+
const [t, r] = F(), n = _e(
|
|
2239
|
+
(o) => {
|
|
2240
|
+
var i;
|
|
2241
|
+
r((i = o.detail) == null ? void 0 : i.size);
|
|
2242
|
+
},
|
|
2243
|
+
[r]
|
|
2244
|
+
);
|
|
2245
|
+
return be(e, n), Ie(() => {
|
|
2246
|
+
if (!t) {
|
|
2247
|
+
const o = document.getElementById(Ka);
|
|
2248
|
+
o && r(o.getBoundingClientRect());
|
|
2249
|
+
}
|
|
2250
|
+
}, [t, r]), t;
|
|
2251
|
+
}
|
|
2252
|
+
function Qa(e, t) {
|
|
2253
|
+
return e ? `${e}, ${t}` : t;
|
|
2254
|
+
}
|
|
2255
|
+
const es = {
|
|
2256
|
+
placeholderColor: "white",
|
|
2257
|
+
placeholderColorSuccess: "#00BFB2",
|
|
2258
|
+
instructionColor: "#F8FBFB",
|
|
2259
|
+
instructionColorSuccess: "#00BFB2",
|
|
2260
|
+
instructionTextColor: "#021B41;"
|
|
2261
|
+
}, ts = {
|
|
2262
|
+
family: "Montserrat, Arial, sans-serif",
|
|
2263
|
+
weight: "600",
|
|
2264
|
+
style: "normal",
|
|
2265
|
+
minimumSize: _o
|
|
2266
|
+
}, Pe = {
|
|
2267
|
+
colors: es,
|
|
2268
|
+
font: ts
|
|
2269
|
+
}, rs = (e) => {
|
|
2270
|
+
var t;
|
|
2271
|
+
return e ? {
|
|
2272
|
+
...Pe,
|
|
2273
|
+
...e,
|
|
2274
|
+
colors: {
|
|
2275
|
+
...Pe.colors,
|
|
2276
|
+
...e.colors
|
|
2277
|
+
},
|
|
2278
|
+
font: {
|
|
2279
|
+
...Pe.font,
|
|
2280
|
+
...e.font,
|
|
2281
|
+
family: Qa((t = e.font) == null ? void 0 : t.family, Pe.font.family)
|
|
2282
|
+
}
|
|
2283
|
+
} : Pe;
|
|
2284
|
+
};
|
|
2285
|
+
function ns(e, t) {
|
|
2286
|
+
return e < Ht && t >= Ht ? Ht : e;
|
|
2287
|
+
}
|
|
2288
|
+
function os(e, t) {
|
|
2289
|
+
return e < t ? e : t;
|
|
2290
|
+
}
|
|
2291
|
+
function is({ height: e, width: t }) {
|
|
2292
|
+
let r;
|
|
2293
|
+
return t > e ? r = ns(e, t) : r = t, {
|
|
2294
|
+
width: r,
|
|
2295
|
+
height: os(e, r)
|
|
2296
|
+
};
|
|
2297
|
+
}
|
|
2298
|
+
const as = (e) => {
|
|
2299
|
+
const r = is(e).width * Xa, n = (e.width - r) / 2, o = r / Ya, i = (e.height - o) / 2;
|
|
2300
|
+
return {
|
|
2301
|
+
shiftX: n,
|
|
2302
|
+
shiftY: i,
|
|
2303
|
+
width: r,
|
|
2304
|
+
height: o
|
|
2305
|
+
};
|
|
2306
|
+
}, ss = (e) => {
|
|
2307
|
+
const { height: t, shiftX: r, shiftY: n, width: o } = as(e);
|
|
2308
|
+
return {
|
|
2309
|
+
shiftX: r / e.width,
|
|
2310
|
+
shiftY: n / e.height,
|
|
2311
|
+
width: o / e.width,
|
|
2312
|
+
height: t / e.height
|
|
2313
|
+
};
|
|
2314
|
+
}, Lo = (e, t) => {
|
|
2315
|
+
document.dispatchEvent(
|
|
2316
|
+
new CustomEvent(e, {
|
|
2317
|
+
detail: t
|
|
2318
|
+
})
|
|
2319
|
+
);
|
|
2320
|
+
}, yt = class yt {
|
|
2321
|
+
constructor() {
|
|
2322
|
+
tt(this, "lastDetails", {});
|
|
2323
|
+
tt(this, "delayedTime", 0);
|
|
2324
|
+
}
|
|
2325
|
+
static getInstance() {
|
|
2326
|
+
return this._instance || (this._instance = new yt()), this._instance;
|
|
2327
|
+
}
|
|
2328
|
+
restart() {
|
|
2329
|
+
this.lastDetails = {}, this.delayedTime = 0;
|
|
2330
|
+
}
|
|
2331
|
+
/**
|
|
2332
|
+
* If the detail object has changed, save the new detail object and return true. Otherwise, return
|
|
2333
|
+
* false
|
|
2334
|
+
* @param {string} eventName - The name of the event.
|
|
2335
|
+
* @param detail - This is the data that is passed to the event.
|
|
2336
|
+
* @returns a boolean value.
|
|
2337
|
+
*/
|
|
2338
|
+
isDetailChanged(t, r) {
|
|
2339
|
+
return JSON.stringify(r) !== JSON.stringify(this.lastDetails[t]) ? (this.lastDetails[t] = r, !0) : !1;
|
|
2340
|
+
}
|
|
2341
|
+
/**
|
|
2342
|
+
* If the detail of the event has changed, dispatch the event
|
|
2343
|
+
* @param {string} eventName - The name of the event to dispatch.
|
|
2344
|
+
* @param detail - Record<string, unknown>
|
|
2345
|
+
*/
|
|
2346
|
+
dispatchCustomEventOnChange(t, r) {
|
|
2347
|
+
this.isDetailChanged(t, r) && Lo(t, r);
|
|
2348
|
+
}
|
|
2349
|
+
/**
|
|
2350
|
+
* If the detail of the event has changed, delay time has passed, dispatch the event
|
|
2351
|
+
* @param {string} eventName - The name of the event to dispatch.
|
|
2352
|
+
* @param detail - Record<string, unknown>
|
|
2353
|
+
* @param {number} delay - How long dispatch should be delayed.
|
|
2354
|
+
*/
|
|
2355
|
+
dispatchDelayedCustomEventOnChange(t, r, n) {
|
|
2356
|
+
const o = performance.now();
|
|
2357
|
+
o - this.delayedTime > n && (this.dispatchCustomEventOnChange(t, r), this.delayedTime = o);
|
|
2358
|
+
}
|
|
2359
|
+
};
|
|
2360
|
+
tt(yt, "_instance");
|
|
2361
|
+
let or = yt;
|
|
2362
|
+
or.getInstance();
|
|
2363
|
+
const dn = (e, t) => {
|
|
2364
|
+
Lo(e, {
|
|
2365
|
+
instruction: t
|
|
2366
|
+
});
|
|
2367
|
+
};
|
|
2368
|
+
async function cs() {
|
|
2369
|
+
return navigator.mediaDevices.enumerateDevices();
|
|
2370
|
+
}
|
|
2371
|
+
async function ls() {
|
|
2372
|
+
return (await cs()).filter((t) => t.kind === "videoinput");
|
|
2373
|
+
}
|
|
2374
|
+
const us = () => {
|
|
2375
|
+
const [e, t] = F(!1);
|
|
2376
|
+
return ne(() => {
|
|
2377
|
+
(async () => {
|
|
2378
|
+
(await ls()).length > 1 && t(!0);
|
|
2379
|
+
})();
|
|
2380
|
+
}, []), e;
|
|
2381
|
+
}, ds = ({ 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
|
+
/* @__PURE__ */ s(
|
|
2383
|
+
"path",
|
|
2384
|
+
{
|
|
2385
|
+
d: "M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z",
|
|
2386
|
+
fill: "#131313",
|
|
2387
|
+
fillOpacity: "0.3"
|
|
2388
|
+
}
|
|
2389
|
+
),
|
|
2390
|
+
/* @__PURE__ */ s("circle", { cx: "17.5", cy: "24.5", fill: "white", r: "1.5" }),
|
|
2391
|
+
/* @__PURE__ */ s(
|
|
2392
|
+
"path",
|
|
2393
|
+
{
|
|
2394
|
+
d: "M15 17H16C19.5 17 23 21 23 29C22.5 29 21.5 29 20 29C20 29 20.25 33 19.5 34.5C18.75 36 16 36 16 36H15",
|
|
2395
|
+
stroke: "white",
|
|
2396
|
+
strokeWidth: "2"
|
|
2397
|
+
}
|
|
2398
|
+
),
|
|
2399
|
+
/* @__PURE__ */ s("circle", { fill: "white", r: "1.5", transform: "matrix(-1 0 0 1 34.5 24.5)" }),
|
|
2400
|
+
/* @__PURE__ */ s(
|
|
2401
|
+
"path",
|
|
2402
|
+
{
|
|
2403
|
+
d: "M37 17H36C32.5 17 29 21 29 29C29.5 29 30.5 29 32 29C32 29 31.75 33 32.5 34.5C33.25 36 36 36 36 36H37",
|
|
2404
|
+
stroke: "white",
|
|
2405
|
+
strokeWidth: "2"
|
|
2406
|
+
}
|
|
2407
|
+
)
|
|
2408
|
+
] }), fs = ({ 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
|
+
/* @__PURE__ */ s("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
|
|
2410
|
+
/* @__PURE__ */ s(
|
|
2411
|
+
"path",
|
|
2412
|
+
{
|
|
2413
|
+
d: "M18 26C18 25.4477 17.5523 25 17 25C16.4477 25 16 25.4477 16 26H18ZM34 26C34 26.5523 34.4477 27 35 27C35.5523 27 36 26.5523 36 26H34ZM18.3977 19.5032C18.0387 19.923 18.0879 20.5542 18.5076 20.9132C18.9273 21.2722 19.5586 21.2229 19.9176 20.8032L18.3977 19.5032ZM33.5961 32.504C33.9555 32.0846 33.9069 31.4533 33.4875 31.094C33.0681 30.7346 32.4368 30.7832 32.0775 31.2026L33.5961 32.504ZM33.8321 24.4453C33.5257 23.9858 32.9048 23.8616 32.4453 24.1679C31.9858 24.4743 31.8616 25.0952 32.1679 25.5547L33.8321 24.4453ZM35 28L34.1679 28.5547C34.3534 28.8329 34.6656 29 35 29C35.3344 29 35.6466 28.8329 35.8321 28.5547L35 28ZM37.8321 25.5547C38.1384 25.0952 38.0142 24.4743 37.5547 24.1679C37.0952 23.8616 36.4743 23.9858 36.1679 24.4453L37.8321 25.5547ZM14.1679 26.4453C13.8616 26.9048 13.9858 27.5257 14.4453 27.8321C14.9048 28.1384 15.5257 28.0142 15.8321 27.5547L14.1679 26.4453ZM17 24L17.8321 23.4453C17.6466 23.1671 17.3344 23 17 23C16.6656 23 16.3534 23.1671 16.1679 23.4453L17 24ZM18.1679 27.5547C18.4743 28.0142 19.0952 28.1384 19.5547 27.8321C20.0142 27.5257 20.1384 26.9048 19.8321 26.4453L18.1679 27.5547ZM26 34C21.5817 34 18 30.4183 18 26H16C16 31.5228 20.4772 36 26 36V34ZM26 18C30.4183 18 34 21.5817 34 26H36C36 20.4772 31.5228 16 26 16V18ZM19.9176 20.8032C21.3864 19.0859 23.5658 18 26 18V16C22.9568 16 20.2302 17.3606 18.3977 19.5032L19.9176 20.8032ZM32.0775 31.2026C30.6087 32.9165 28.4314 34 26 34V36C29.0398 36 31.7636 34.6424 33.5961 32.504L32.0775 31.2026ZM32.1679 25.5547L34.1679 28.5547L35.8321 27.4453L33.8321 24.4453L32.1679 25.5547ZM35.8321 28.5547L37.8321 25.5547L36.1679 24.4453L34.1679 27.4453L35.8321 28.5547ZM15.8321 27.5547L17.8321 24.5547L16.1679 23.4453L14.1679 26.4453L15.8321 27.5547ZM16.1679 24.5547L18.1679 27.5547L19.8321 26.4453L17.8321 23.4453L16.1679 24.5547Z",
|
|
2414
|
+
fill: "white"
|
|
2415
|
+
}
|
|
2416
|
+
)
|
|
2417
|
+
] }), yo = Z.button`
|
|
2418
|
+
background: none;
|
|
2419
|
+
border: none;
|
|
2420
|
+
padding: 0;
|
|
2421
|
+
cursor: pointer;
|
|
2422
|
+
margin-left: ${(e) => e.$marginLeft ? `${e.$marginLeft}px` : 0};
|
|
2423
|
+
|
|
2424
|
+
&:disabled {
|
|
2425
|
+
cursor: not-allowed;
|
|
2426
|
+
}
|
|
2427
|
+
`, hs = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ s(yo, { $marginLeft: e, ...r, children: /* @__PURE__ */ s(ds, { size: t }) }), ps = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ s(yo, { $marginLeft: e, ...r, children: /* @__PURE__ */ s(fs, { size: t }) }), _s = Z.div`
|
|
2428
|
+
position: absolute;
|
|
2429
|
+
top: 0;
|
|
2430
|
+
right: 0;
|
|
2431
|
+
padding: ${(e) => `${e.$padding}px`};
|
|
2432
|
+
z-index: 2;
|
|
2433
|
+
`, ms = ({
|
|
2434
|
+
customControlEvent: e,
|
|
2435
|
+
isSwitchCameraDisabled: t
|
|
2436
|
+
}) => {
|
|
2437
|
+
const { showCameraButtons: r, videoElementSize: n } = Ce(), o = us();
|
|
2438
|
+
if (!r)
|
|
2439
|
+
return null;
|
|
2440
|
+
const { buttonPadding: i, iconSize: a, marginLeft: c } = Ha(n);
|
|
2441
|
+
return /* @__PURE__ */ s(_s, { $padding: i, children: [
|
|
2442
|
+
o && /* @__PURE__ */ s(ps, { disabled: t, onClick: () => {
|
|
2443
|
+
dn(e, xr.SWITCH_CAMERA);
|
|
2444
|
+
}, size: a }),
|
|
2445
|
+
/* @__PURE__ */ s(
|
|
2446
|
+
hs,
|
|
2447
|
+
{
|
|
2448
|
+
marginLeft: o ? c : 0,
|
|
2449
|
+
onClick: () => {
|
|
2450
|
+
dn(e, xr.TOGGLE_MIRROR);
|
|
2451
|
+
},
|
|
2452
|
+
size: a
|
|
2453
|
+
}
|
|
2454
|
+
)
|
|
2455
|
+
] });
|
|
2456
|
+
}, gs = "2.5s", Ls = "0.3s", ys = "linear", vs = kt`
|
|
2457
|
+
0% {
|
|
2458
|
+
opacity: 0;
|
|
2459
|
+
}
|
|
2460
|
+
100% {
|
|
2461
|
+
opacity: 1;
|
|
2462
|
+
}
|
|
2463
|
+
`;
|
|
2464
|
+
kt`
|
|
2465
|
+
100% {
|
|
2466
|
+
transform: translate(-50%, -50%) scale(2.6);
|
|
2467
|
+
top: 50%;
|
|
2468
|
+
left: 50%;
|
|
2469
|
+
}
|
|
2470
|
+
`;
|
|
2471
|
+
kt`
|
|
2472
|
+
5% {
|
|
2473
|
+
transform: translate(-50%, -50%) scale(0.7);
|
|
2474
|
+
opacity: 1;
|
|
2475
|
+
}
|
|
2476
|
+
10% {
|
|
2477
|
+
transform: translate(-50%, -50%) scale(0.6);
|
|
2478
|
+
}
|
|
2479
|
+
40% {
|
|
2480
|
+
transform: translate(-50%, -50%) scale(0.6);
|
|
2481
|
+
}
|
|
2482
|
+
70% {
|
|
2483
|
+
transform: translate(-50%, -50%) scale(0.85);
|
|
2484
|
+
opacity: 1;
|
|
2485
|
+
}
|
|
2486
|
+
90% {
|
|
2487
|
+
transform: translate(-50%, -50%) scale(0.85);
|
|
2488
|
+
opacity: 0.5;
|
|
2489
|
+
}
|
|
2490
|
+
100% {
|
|
2491
|
+
transform: translate(-50%, -50%) scale(0.85);
|
|
2492
|
+
opacity: 0.5;
|
|
2493
|
+
}
|
|
2494
|
+
`;
|
|
2495
|
+
kt`
|
|
2496
|
+
5% {
|
|
2497
|
+
opacity: 1;
|
|
2498
|
+
}
|
|
2499
|
+
70% {
|
|
2500
|
+
transform: scale(1.1);
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
100% {
|
|
2504
|
+
transform: scale(1);
|
|
2505
|
+
opacity: 1;
|
|
2506
|
+
}
|
|
2507
|
+
`;
|
|
2508
|
+
const Cs = Z.div`
|
|
2509
|
+
position: absolute;
|
|
2510
|
+
left: 50%;
|
|
2511
|
+
|
|
2512
|
+
${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
|
|
2513
|
+
${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
|
|
2514
|
+
${(e) => e.$isAnimating && Cr`
|
|
2515
|
+
animation: ${vs} ${Ls}
|
|
2516
|
+
${ys} both;
|
|
2517
|
+
animation-delay: ${gs};
|
|
2518
|
+
|
|
2519
|
+
@media (orientation: landscape) {
|
|
2520
|
+
bottom: ${e.$cssBottom ? e.$cssBottom - 15 : ""}%;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
@media (max-width: 1024px) and (orientation: landscape) {
|
|
2524
|
+
bottom: ${e.$cssBottom ? e.$cssBottom - 13 : ""}%;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
@media (max-width: 768px) {
|
|
2528
|
+
bottom: ${e.$cssBottom ? e.$cssBottom + 3 : ""}%;
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
@media (max-width: 480px) and (orientation: portrait) {
|
|
2532
|
+
bottom: ${e.$cssBottom ? e.$cssBottom - 10 : ""}%;
|
|
2533
|
+
}
|
|
2534
|
+
`};
|
|
2535
|
+
|
|
2536
|
+
transform: translateX(-50%)
|
|
2537
|
+
translateY(
|
|
2538
|
+
${(e) => e.$cssTop || e.$isPortrait ? "-50%" : e.$isPortrait ? "" : "50%"}
|
|
2539
|
+
);
|
|
2540
|
+
z-index: 2;
|
|
2541
|
+
`, ws = Z.div`
|
|
2542
|
+
display: flex;
|
|
2543
|
+
align-items: center;
|
|
2544
|
+
justify-content: center;
|
|
2545
|
+
text-align: center;
|
|
2546
|
+
border-radius: 0.25em;
|
|
2547
|
+
margin: 0 auto;
|
|
2548
|
+
padding: 0.583em 0.666em;
|
|
2549
|
+
background: ${(e) => e.$isInCandidateSelection ? `${e.theme.colors.instructionColorSuccess}` : `${e.theme.colors.instructionColor}`};
|
|
2550
|
+
color: ${(e) => e.theme.colors.instructionTextColor};
|
|
2551
|
+
border: 0;
|
|
2552
|
+
line-height: 1em;
|
|
2553
|
+
font-size: ${(e) => `${e.$fontSize}px`};
|
|
2554
|
+
white-space: ${(e) => e.$wrap ? "break-spaces" : "nowrap"};
|
|
2555
|
+
`, Ss = ({
|
|
2556
|
+
children: e,
|
|
2557
|
+
cssBottom: t,
|
|
2558
|
+
cssTop: r,
|
|
2559
|
+
isAnimating: n,
|
|
2560
|
+
isInCandidateSelection: o,
|
|
2561
|
+
isPortrait: i
|
|
2562
|
+
}) => {
|
|
2563
|
+
const { fontSize: a } = Ce();
|
|
2564
|
+
return /* @__PURE__ */ s(Cs, { $cssBottom: t, $cssTop: r, $isAnimating: n, $isPortrait: i, children: /* @__PURE__ */ s(
|
|
2565
|
+
ws,
|
|
2566
|
+
{
|
|
2567
|
+
$fontSize: a,
|
|
2568
|
+
$isInCandidateSelection: o,
|
|
2569
|
+
$wrap: e.length > Ta,
|
|
2570
|
+
children: e
|
|
2571
|
+
}
|
|
2572
|
+
) });
|
|
2573
|
+
}, bs = Z.canvas`
|
|
2574
|
+
transform: ${(e) => e.$isImageMirror ? "rotateY(180deg)" : "none"};
|
|
2575
|
+
position: absolute;
|
|
2576
|
+
top: 0;
|
|
2577
|
+
left: 0;
|
|
2578
|
+
width: 100%;
|
|
2579
|
+
height: 100%;
|
|
2580
|
+
z-index: 1;
|
|
2581
|
+
`, Vs = (e) => {
|
|
2582
|
+
const t = e.getContext("2d");
|
|
2583
|
+
t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
|
|
2584
|
+
}, Ue = (e, t) => Math.hypot(t.x - e.x, t.y - e.y), fn = (e, t, r) => {
|
|
2585
|
+
const n = (t.x - e.x) * r, o = (t.y - e.y) * r;
|
|
2586
|
+
return {
|
|
2587
|
+
x: e.x + n,
|
|
2588
|
+
y: e.y + o
|
|
2589
|
+
};
|
|
2590
|
+
}, hn = (e, t, r, n) => {
|
|
2591
|
+
const o = Ue(e, t);
|
|
2592
|
+
return r * n / o;
|
|
2593
|
+
}, Es = (e) => {
|
|
2594
|
+
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
|
+
return Math.min(i, a, c, u);
|
|
2596
|
+
};
|
|
2597
|
+
function ks({ cameraResolution: e, isImageMirror: t }) {
|
|
2598
|
+
const r = Xe(null), n = ho(), [o, i] = F(), a = _e(
|
|
2599
|
+
(c) => {
|
|
2600
|
+
var u;
|
|
2601
|
+
i((u = c == null ? void 0 : c.detail) == null ? void 0 : u.detectedObject);
|
|
2602
|
+
},
|
|
2603
|
+
[i]
|
|
2604
|
+
);
|
|
2605
|
+
return be(pe.DETECTED_DOCUMENT_CHANGED, a), be(xn.DETECTED_PALM_CHANGED, a), ne(() => {
|
|
2606
|
+
if (!r.current)
|
|
2607
|
+
return;
|
|
2608
|
+
const c = (d, h, l, p) => {
|
|
2609
|
+
var g;
|
|
2610
|
+
const f = hn(
|
|
2611
|
+
h,
|
|
2612
|
+
d,
|
|
2613
|
+
p,
|
|
2614
|
+
cn
|
|
2615
|
+
), _ = hn(
|
|
2616
|
+
h,
|
|
2617
|
+
l,
|
|
2618
|
+
p,
|
|
2619
|
+
cn
|
|
2620
|
+
), L = fn(h, d, f), y = fn(h, l, _), m = (g = r == null ? void 0 : r.current) == null ? void 0 : g.getContext("2d");
|
|
2621
|
+
m && (m.beginPath(), m.lineWidth = $a, m.strokeStyle = n.colors.placeholderColor, m.moveTo(L.x, L.y), m.arcTo(h.x, h.y, y.x, y.y, Oa), m.lineTo(y.x, y.y), m.stroke());
|
|
2622
|
+
}, u = (d) => {
|
|
2623
|
+
if (!d)
|
|
2624
|
+
return;
|
|
2625
|
+
const { bottomLeft: h, bottomRight: l, topLeft: p, topRight: f } = d, _ = Es(d);
|
|
2626
|
+
c(h, p, f, _), c(p, f, l, _), c(f, l, h, _), c(l, h, p, _);
|
|
2627
|
+
};
|
|
2628
|
+
r.current.width = e.width, r.current.height = e.height, Vs(r.current), u(o);
|
|
2629
|
+
}, [e, o, n.colors.placeholderColor]), /* @__PURE__ */ s(bs, { ref: r, $isImageMirror: t });
|
|
2630
|
+
}
|
|
2631
|
+
const xs = Z.div`
|
|
2632
|
+
color: ${(e) => e.theme.colors.instructionTextColor};
|
|
2633
|
+
animation: spin 2s linear infinite;
|
|
2634
|
+
|
|
2635
|
+
@keyframes spin {
|
|
2636
|
+
100% {
|
|
2637
|
+
transform: rotate(-360deg);
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
`, Os = ({ svgSize: e }) => /* @__PURE__ */ s(xs, { children: /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2641
|
+
/* @__PURE__ */ s(
|
|
2642
|
+
"path",
|
|
2643
|
+
{
|
|
2644
|
+
d: "M30.9229 9.75026C30.9229 12.3736 28.7533 14.5002 26.0767 14.5002C23.4003 14.5002 21.2307 12.3736 21.2307 9.75026C21.2307 7.12664 23.4003 5 26.0767 5C28.7533 5 30.9229 7.12664 30.9229 9.75026Z",
|
|
2645
|
+
fill: "currentColor"
|
|
2646
|
+
}
|
|
2647
|
+
),
|
|
2648
|
+
/* @__PURE__ */ s(
|
|
2649
|
+
"path",
|
|
2650
|
+
{
|
|
2651
|
+
d: "M40.6155 15.8556C40.6155 18.1044 38.7559 19.9273 36.4618 19.9273C34.1675 19.9273 32.3079 18.1044 32.3079 15.8556C32.3079 13.607 34.1675 11.7842 36.4618 11.7842C38.7559 11.7842 40.6155 13.607 40.6155 15.8556Z",
|
|
2652
|
+
fill: "currentColor"
|
|
2653
|
+
}
|
|
2654
|
+
),
|
|
2655
|
+
/* @__PURE__ */ s(
|
|
2656
|
+
"path",
|
|
2657
|
+
{
|
|
2658
|
+
d: "M42 27.3921C42 29.2659 40.4502 30.785 38.5386 30.785C36.6267 30.785 35.0769 29.2659 35.0769 27.3921C35.0769 25.5181 36.6267 23.999 38.5386 23.999C40.4502 23.999 42 25.5181 42 27.3921Z",
|
|
2659
|
+
fill: "currentColor"
|
|
2660
|
+
}
|
|
2661
|
+
),
|
|
2662
|
+
/* @__PURE__ */ s(
|
|
2663
|
+
"path",
|
|
2664
|
+
{
|
|
2665
|
+
d: "M35.0766 37.5712C35.0766 39.0704 33.837 40.2858 32.3075 40.2858C30.7779 40.2858 29.5383 39.0704 29.5383 37.5712C29.5383 36.0723 30.7779 34.8569 32.3075 34.8569C33.837 34.8569 35.0766 36.0723 35.0766 37.5712Z",
|
|
2666
|
+
fill: "currentColor"
|
|
2667
|
+
}
|
|
2668
|
+
),
|
|
2669
|
+
/* @__PURE__ */ s(
|
|
2670
|
+
"path",
|
|
2671
|
+
{
|
|
2672
|
+
d: "M22.6154 40.2858C22.6154 41.7848 21.3756 43.0001 19.846 43.0001C18.3168 43.0001 17.0769 41.7848 17.0769 40.2858C17.0769 38.7866 18.3168 37.5713 19.846 37.5713C21.3756 37.5713 22.6154 38.7866 22.6154 40.2858Z",
|
|
2673
|
+
fill: "currentColor"
|
|
2674
|
+
}
|
|
2675
|
+
),
|
|
2676
|
+
/* @__PURE__ */ s(
|
|
2677
|
+
"path",
|
|
2678
|
+
{
|
|
2679
|
+
d: "M11.5382 32.8216C11.5382 33.9457 10.6085 34.8573 9.46137 34.8573C8.31426 34.8573 7.38452 33.9457 7.38452 32.8216C7.38452 31.6972 8.31426 30.7856 9.46137 30.7856C10.6085 30.7856 11.5382 31.6972 11.5382 32.8216Z",
|
|
2680
|
+
fill: "currentColor"
|
|
2681
|
+
}
|
|
2682
|
+
),
|
|
2683
|
+
/* @__PURE__ */ s(
|
|
2684
|
+
"path",
|
|
2685
|
+
{
|
|
2686
|
+
d: "M8.76913 21.2849C8.76913 22.0345 8.14932 22.642 7.38456 22.642C6.6198 22.642 6 22.0345 6 21.2849C6 20.5353 6.61981 19.9277 7.38456 19.9277C8.14933 19.9277 8.76913 20.5353 8.76913 21.2849Z",
|
|
2687
|
+
fill: "currentColor"
|
|
2688
|
+
}
|
|
2689
|
+
),
|
|
2690
|
+
/* @__PURE__ */ s(
|
|
2691
|
+
"path",
|
|
2692
|
+
{
|
|
2693
|
+
d: "M15.6927 11.7844C15.6927 12.534 15.0729 13.1415 14.3081 13.1415C13.5434 13.1415 12.9236 12.534 12.9236 11.7844C12.9236 11.0348 13.5434 10.4272 14.3081 10.4272C15.0729 10.4272 15.6927 11.0348 15.6927 11.7844Z",
|
|
2694
|
+
fill: "currentColor"
|
|
2695
|
+
}
|
|
2696
|
+
)
|
|
2697
|
+
] }) }), $s = Z.div`
|
|
2698
|
+
z-index: 1;
|
|
2699
|
+
position: absolute;
|
|
2700
|
+
top: 0;
|
|
2701
|
+
left: 0;
|
|
2702
|
+
width: 100%;
|
|
2703
|
+
height: 100%;
|
|
2704
|
+
`, vo = ({ children: e, height: t, width: r }) => {
|
|
2705
|
+
const { backdropColor: n } = Ce();
|
|
2706
|
+
return /* @__PURE__ */ s($s, { children: /* @__PURE__ */ s("svg", { viewBox: `0 0 ${r} ${t}`, children: [
|
|
2707
|
+
/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: "mask", children: [
|
|
2708
|
+
/* @__PURE__ */ s("rect", { fill: "#fff", height: "100%", width: "100%" }),
|
|
2709
|
+
e
|
|
2710
|
+
] }) }),
|
|
2711
|
+
/* @__PURE__ */ s("rect", { fill: n, height: "100%", mask: "url(#mask)", width: "100%" })
|
|
2712
|
+
] }) });
|
|
2713
|
+
};
|
|
2714
|
+
function Ns({ cameraHeight: e, cameraWidth: t, isBackdrop: r, state: n }) {
|
|
2715
|
+
const { appStateInstructions: o } = Ce(), i = n === Y.ERROR || n === Y.RUNNING;
|
|
2716
|
+
return !n || i || !(o != null && o[n].visible) ? null : n === Y.WAITING ? /* @__PURE__ */ s(H, { children: [
|
|
2717
|
+
r && e && t && /* @__PURE__ */ s(vo, { height: e, width: t }),
|
|
2718
|
+
/* @__PURE__ */ s(nr, { isCameraReady: !0, text: o[Y.WAITING].text })
|
|
2719
|
+
] }) : /* @__PURE__ */ s(nr, { Icon: Os, isCameraReady: !0, text: o[Y.LOADING].text });
|
|
2720
|
+
}
|
|
2721
|
+
function Is({ isPassport: e, isRounded: t, ...r }) {
|
|
2722
|
+
if (t)
|
|
2723
|
+
return /* @__PURE__ */ s("rect", { fill: "#000", ...r, rx: "2%" });
|
|
2724
|
+
if (e) {
|
|
2725
|
+
const n = "4%", o = `calc(${r.height} / 2)`;
|
|
2726
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
2727
|
+
/* @__PURE__ */ s("rect", { fill: "#000", height: o, rx: "1%", width: r.width, x: r.x, y: r.y }),
|
|
2728
|
+
/* @__PURE__ */ s(
|
|
2729
|
+
"rect",
|
|
2730
|
+
{
|
|
2731
|
+
fill: "#000",
|
|
2732
|
+
height: o,
|
|
2733
|
+
rx: "0",
|
|
2734
|
+
width: r.width,
|
|
2735
|
+
x: r.x,
|
|
2736
|
+
y: `calc(${r.y} + ${n})`
|
|
2737
|
+
}
|
|
2738
|
+
),
|
|
2739
|
+
/* @__PURE__ */ s(
|
|
2740
|
+
"rect",
|
|
2741
|
+
{
|
|
2742
|
+
fill: "#000",
|
|
2743
|
+
height: o,
|
|
2744
|
+
rx: "2%",
|
|
2745
|
+
width: r.width,
|
|
2746
|
+
x: r.x,
|
|
2747
|
+
y: `calc(${r.y} + ${o})`
|
|
2748
|
+
}
|
|
2749
|
+
)
|
|
2750
|
+
] });
|
|
2751
|
+
}
|
|
2752
|
+
return /* @__PURE__ */ s("rect", { fill: "#000", ...r, rx: "0%" });
|
|
2753
|
+
}
|
|
2754
|
+
function Ms() {
|
|
2755
|
+
return /* @__PURE__ */ s(
|
|
2756
|
+
"svg",
|
|
2757
|
+
{
|
|
2758
|
+
fill: "none",
|
|
2759
|
+
height: "402",
|
|
2760
|
+
preserveAspectRatio: "none",
|
|
2761
|
+
viewBox: "0 0 630 402",
|
|
2762
|
+
width: "630",
|
|
2763
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2764
|
+
children: [
|
|
2765
|
+
/* @__PURE__ */ s("rect", { fill: "white", height: "402", opacity: "0.1", rx: "4", width: "630" }),
|
|
2766
|
+
/* @__PURE__ */ s(
|
|
2767
|
+
"path",
|
|
2768
|
+
{
|
|
2769
|
+
d: "M535.828 2H626C627.105 2 628 2.89543 628 4V93.8462M94.1718 2H4C2.89543 2 2 2.89543 2 4V93.8462M2 308.154V398C2 399.105 2.89543 400 4 400H94.1718M628 308.154V398C628 399.105 627.105 400 626 400H535.828",
|
|
2770
|
+
stroke: "currentColor",
|
|
2771
|
+
strokeLinecap: "round",
|
|
2772
|
+
strokeWidth: "4"
|
|
2773
|
+
}
|
|
2774
|
+
)
|
|
2775
|
+
]
|
|
2776
|
+
}
|
|
2777
|
+
);
|
|
2778
|
+
}
|
|
2779
|
+
const Ds = () => /* @__PURE__ */ s(
|
|
2780
|
+
"svg",
|
|
2781
|
+
{
|
|
2782
|
+
fill: "none",
|
|
2783
|
+
height: "404",
|
|
2784
|
+
preserveAspectRatio: "none",
|
|
2785
|
+
viewBox: "0 0 632 404",
|
|
2786
|
+
width: "632",
|
|
2787
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2788
|
+
children: [
|
|
2789
|
+
/* @__PURE__ */ s("rect", { fill: "white", height: "402", opacity: "0.1", rx: "17", width: "630", x: "1", y: "1" }),
|
|
2790
|
+
/* @__PURE__ */ s(
|
|
2791
|
+
"path",
|
|
2792
|
+
{
|
|
2793
|
+
d: "M536.385 2H614C622.837 2 630 9.16344 630 18V96.1176M95.6149 2H18C9.16344 2 2 9.16344 2 18V96.1176M2 307.882V386C2 394.837 9.16343 402 18 402H95.6149M630 307.882V386C630 394.837 622.837 402 614 402H536.385",
|
|
2794
|
+
stroke: "currentColor",
|
|
2795
|
+
strokeLinecap: "round",
|
|
2796
|
+
strokeWidth: "4"
|
|
2797
|
+
}
|
|
2798
|
+
)
|
|
2799
|
+
]
|
|
2800
|
+
}
|
|
2801
|
+
);
|
|
2802
|
+
function Rs() {
|
|
2803
|
+
return /* @__PURE__ */ s(
|
|
2804
|
+
"svg",
|
|
2805
|
+
{
|
|
2806
|
+
fill: "none",
|
|
2807
|
+
height: "402",
|
|
2808
|
+
preserveAspectRatio: "none",
|
|
2809
|
+
viewBox: "0 0 630 402",
|
|
2810
|
+
width: "630",
|
|
2811
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2812
|
+
children: [
|
|
2813
|
+
/* @__PURE__ */ s("mask", { fill: "white", id: "path-2-inside-1_1_3694", children: /* @__PURE__ */ s("rect", { height: "402", rx: "2", width: "630" }) }),
|
|
2814
|
+
/* @__PURE__ */ s(
|
|
2815
|
+
"rect",
|
|
2816
|
+
{
|
|
2817
|
+
height: "402",
|
|
2818
|
+
mask: "url(#path-2-inside-1_1_3694)",
|
|
2819
|
+
rx: "2",
|
|
2820
|
+
stroke: "currentColor",
|
|
2821
|
+
strokeDasharray: "14 14",
|
|
2822
|
+
strokeLinecap: "square",
|
|
2823
|
+
strokeWidth: "8",
|
|
2824
|
+
width: "630"
|
|
2825
|
+
}
|
|
2826
|
+
)
|
|
2827
|
+
]
|
|
2828
|
+
}
|
|
2829
|
+
);
|
|
2830
|
+
}
|
|
2831
|
+
function Ts() {
|
|
2832
|
+
return /* @__PURE__ */ s(
|
|
2833
|
+
"svg",
|
|
2834
|
+
{
|
|
2835
|
+
fill: "none",
|
|
2836
|
+
height: "402",
|
|
2837
|
+
preserveAspectRatio: "none",
|
|
2838
|
+
viewBox: "0 0 630 402",
|
|
2839
|
+
width: "630",
|
|
2840
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2841
|
+
children: [
|
|
2842
|
+
/* @__PURE__ */ s("rect", { fill: "white", height: "402", opacity: "0.1", rx: "16", width: "630" }),
|
|
2843
|
+
/* @__PURE__ */ s(
|
|
2844
|
+
"rect",
|
|
2845
|
+
{
|
|
2846
|
+
height: "398",
|
|
2847
|
+
rx: "14",
|
|
2848
|
+
stroke: "currentColor",
|
|
2849
|
+
strokeDasharray: "14 14",
|
|
2850
|
+
strokeLinecap: "square",
|
|
2851
|
+
strokeWidth: "4",
|
|
2852
|
+
width: "626",
|
|
2853
|
+
x: "2",
|
|
2854
|
+
y: "2"
|
|
2855
|
+
}
|
|
2856
|
+
)
|
|
2857
|
+
]
|
|
2858
|
+
}
|
|
2859
|
+
);
|
|
2860
|
+
}
|
|
2861
|
+
function As() {
|
|
2862
|
+
return /* @__PURE__ */ s(
|
|
2863
|
+
"svg",
|
|
2864
|
+
{
|
|
2865
|
+
fill: "none",
|
|
2866
|
+
height: "402",
|
|
2867
|
+
preserveAspectRatio: "none",
|
|
2868
|
+
viewBox: "0 0 630 402",
|
|
2869
|
+
width: "630",
|
|
2870
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2871
|
+
children: /* @__PURE__ */ s(
|
|
2872
|
+
"rect",
|
|
2873
|
+
{
|
|
2874
|
+
height: "398",
|
|
2875
|
+
stroke: "currentColor",
|
|
2876
|
+
strokeDasharray: "1 12 1 12",
|
|
2877
|
+
strokeLinecap: "square",
|
|
2878
|
+
strokeWidth: "4",
|
|
2879
|
+
width: "626",
|
|
2880
|
+
x: "2",
|
|
2881
|
+
y: "2"
|
|
2882
|
+
}
|
|
2883
|
+
)
|
|
2884
|
+
}
|
|
2885
|
+
);
|
|
2886
|
+
}
|
|
2887
|
+
function Ps() {
|
|
2888
|
+
return /* @__PURE__ */ s(
|
|
2889
|
+
"svg",
|
|
2890
|
+
{
|
|
2891
|
+
fill: "none",
|
|
2892
|
+
height: "402",
|
|
2893
|
+
preserveAspectRatio: "none",
|
|
2894
|
+
viewBox: "0 0 630 402",
|
|
2895
|
+
width: "630",
|
|
2896
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2897
|
+
children: /* @__PURE__ */ s(
|
|
2898
|
+
"rect",
|
|
2899
|
+
{
|
|
2900
|
+
height: "398",
|
|
2901
|
+
rx: "14",
|
|
2902
|
+
stroke: "currentColor",
|
|
2903
|
+
strokeDasharray: "1 12 1 12",
|
|
2904
|
+
strokeLinecap: "square",
|
|
2905
|
+
strokeWidth: "4",
|
|
2906
|
+
width: "626",
|
|
2907
|
+
x: "2",
|
|
2908
|
+
y: "2"
|
|
2909
|
+
}
|
|
2910
|
+
)
|
|
2911
|
+
}
|
|
2912
|
+
);
|
|
2913
|
+
}
|
|
2914
|
+
function Hs() {
|
|
2915
|
+
return /* @__PURE__ */ s(
|
|
2916
|
+
"svg",
|
|
2917
|
+
{
|
|
2918
|
+
fill: "none",
|
|
2919
|
+
height: "404",
|
|
2920
|
+
preserveAspectRatio: "none",
|
|
2921
|
+
viewBox: "0 0 632 404",
|
|
2922
|
+
width: "632",
|
|
2923
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2924
|
+
children: [
|
|
2925
|
+
/* @__PURE__ */ s("rect", { fill: "white", height: "402", opacity: "0.1", rx: "17", width: "630", x: "1", y: "1" }),
|
|
2926
|
+
/* @__PURE__ */ s(
|
|
2927
|
+
"path",
|
|
2928
|
+
{
|
|
2929
|
+
d: "M536.385 2H614C622.837 2 630 9.16344 630 18V96.1176M95.6149 2H18C9.16344 2 2 9.16344 2 18V96.1176M2 307.882V386C2 394.837 9.16343 402 18 402H95.6149M630 307.882V386C630 394.837 622.837 402 614 402H536.385",
|
|
2930
|
+
stroke: "currentColor",
|
|
2931
|
+
strokeLinecap: "round",
|
|
2932
|
+
strokeWidth: "4"
|
|
2933
|
+
}
|
|
2934
|
+
),
|
|
2935
|
+
/* @__PURE__ */ s("rect", { height: "208.731", rx: "4", stroke: "currentColor", strokeWidth: "2", width: "170.061", x: "35.7852", y: "97.6345" })
|
|
2936
|
+
]
|
|
2937
|
+
}
|
|
2938
|
+
);
|
|
2939
|
+
}
|
|
2940
|
+
function Zs() {
|
|
2941
|
+
return /* @__PURE__ */ s(
|
|
2942
|
+
"svg",
|
|
2943
|
+
{
|
|
2944
|
+
fill: "none",
|
|
2945
|
+
height: "402",
|
|
2946
|
+
preserveAspectRatio: "none",
|
|
2947
|
+
viewBox: "0 0 630 402",
|
|
2948
|
+
width: "630",
|
|
2949
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2950
|
+
children: [
|
|
2951
|
+
/* @__PURE__ */ s("rect", { fill: "white", height: "402", opacity: "0.1", rx: "4", width: "630" }),
|
|
2952
|
+
/* @__PURE__ */ s("mask", { fill: "white", id: "path-2-inside-1_1_3696", children: /* @__PURE__ */ s("rect", { height: "402", rx: "2", width: "630" }) }),
|
|
2953
|
+
/* @__PURE__ */ s(
|
|
2954
|
+
"rect",
|
|
2955
|
+
{
|
|
2956
|
+
height: "402",
|
|
2957
|
+
mask: "url(#path-2-inside-1_1_3696)",
|
|
2958
|
+
rx: "2",
|
|
2959
|
+
stroke: "currentColor",
|
|
2960
|
+
strokeLinecap: "round",
|
|
2961
|
+
strokeWidth: "8",
|
|
2962
|
+
width: "630"
|
|
2963
|
+
}
|
|
2964
|
+
)
|
|
2965
|
+
]
|
|
2966
|
+
}
|
|
2967
|
+
);
|
|
2968
|
+
}
|
|
2969
|
+
function Bs() {
|
|
2970
|
+
return /* @__PURE__ */ s(
|
|
2971
|
+
"svg",
|
|
2972
|
+
{
|
|
2973
|
+
fill: "none",
|
|
2974
|
+
height: "402",
|
|
2975
|
+
preserveAspectRatio: "none",
|
|
2976
|
+
viewBox: "0 0 630 402",
|
|
2977
|
+
width: "630",
|
|
2978
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2979
|
+
children: [
|
|
2980
|
+
/* @__PURE__ */ s("rect", { fill: "white", height: "402", opacity: "0.1", rx: "16", width: "630" }),
|
|
2981
|
+
/* @__PURE__ */ s("rect", { height: "398", rx: "14", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "4", width: "626", x: "2", y: "2" })
|
|
2982
|
+
]
|
|
2983
|
+
}
|
|
2984
|
+
);
|
|
2985
|
+
}
|
|
2986
|
+
function Us() {
|
|
2987
|
+
return /* @__PURE__ */ s(
|
|
2988
|
+
"svg",
|
|
2989
|
+
{
|
|
2990
|
+
fill: "none",
|
|
2991
|
+
height: "402",
|
|
2992
|
+
preserveAspectRatio: "none",
|
|
2993
|
+
viewBox: "0 0 630 402",
|
|
2994
|
+
width: "630",
|
|
2995
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2996
|
+
children: [
|
|
2997
|
+
/* @__PURE__ */ s(
|
|
2998
|
+
"path",
|
|
2999
|
+
{
|
|
3000
|
+
d: "M626 251.4V386C626 392.6 620.6 398 614 398H16C9.4 398 4 392.6 4 386V251.4H626ZM628 247.4H2C0.9 247.4 0 248.3 0 249.4V386C0 394.8 7.2 402 16 402H614C622.8 402 630 394.8 630 386V249.4C630 248.3 629.1 247.4 628 247.4Z",
|
|
3001
|
+
fill: "currentColor"
|
|
3002
|
+
}
|
|
3003
|
+
),
|
|
3004
|
+
/* @__PURE__ */ s(
|
|
3005
|
+
"path",
|
|
3006
|
+
{
|
|
3007
|
+
d: "M2 16C2 8.3 8.3 2 16 2H614C621.7 2 628 8.3 628 16V247.4V386C628 393.7 621.7 400 614 400H16C8.3 400 2 393.7 2 386V247.4V16Z",
|
|
3008
|
+
stroke: "currentColor",
|
|
3009
|
+
strokeLinecap: "round",
|
|
3010
|
+
strokeWidth: "4"
|
|
3011
|
+
}
|
|
3012
|
+
)
|
|
3013
|
+
]
|
|
3014
|
+
}
|
|
3015
|
+
);
|
|
3016
|
+
}
|
|
3017
|
+
function Ws() {
|
|
3018
|
+
return /* @__PURE__ */ s(
|
|
3019
|
+
"svg",
|
|
3020
|
+
{
|
|
3021
|
+
fill: "none",
|
|
3022
|
+
height: "402",
|
|
3023
|
+
preserveAspectRatio: "none",
|
|
3024
|
+
viewBox: "0 0 630 402",
|
|
3025
|
+
width: "630",
|
|
3026
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3027
|
+
children: [
|
|
3028
|
+
/* @__PURE__ */ s(
|
|
3029
|
+
"path",
|
|
3030
|
+
{
|
|
3031
|
+
d: "M16 0H614C622.8 0 630 7.2 630 16V386C630 394.8 622.8 402 614 402H16C7.2 402 0 394.8 0 386V16C0 7.2 7.2 0 16 0Z",
|
|
3032
|
+
fill: "none",
|
|
3033
|
+
opacity: "0.1"
|
|
3034
|
+
}
|
|
3035
|
+
),
|
|
3036
|
+
/* @__PURE__ */ s("path", { d: "M16 400C8.3 400 2 393.7 2 386V249.4H628V386C628 393.7 621.7 400 614 400H16Z", fill: "none" }),
|
|
3037
|
+
/* @__PURE__ */ s(
|
|
3038
|
+
"path",
|
|
3039
|
+
{
|
|
3040
|
+
d: "M626 251.4V386C626 392.6 620.6 398 614 398H16C9.4 398 4 392.6 4 386V251.4H626ZM628 247.4H2C0.9 247.4 0 248.3 0 249.4V386C0 394.8 7.2 402 16 402H614C622.8 402 630 394.8 630 386V249.4C630 248.3 629.1 247.4 628 247.4Z",
|
|
3041
|
+
fill: "currentColor"
|
|
3042
|
+
}
|
|
3043
|
+
),
|
|
3044
|
+
/* @__PURE__ */ s(
|
|
3045
|
+
"path",
|
|
3046
|
+
{
|
|
3047
|
+
d: "M48.6001 296V292.9L42.4001 290.8L41.6001 290.5L42.4001 290.2L48.6001 288.1V285L38.6001 289.2V291.7L48.6001 296Z",
|
|
3048
|
+
fill: "currentColor"
|
|
3049
|
+
}
|
|
3050
|
+
),
|
|
3051
|
+
/* @__PURE__ */ s(
|
|
3052
|
+
"path",
|
|
3053
|
+
{
|
|
3054
|
+
d: "M67.3001 296V292.9L61.1 290.8L60.3 290.5L61.1 290.2L67.3001 288.1V285L57.3 289.2V291.7L67.3001 296Z",
|
|
3055
|
+
fill: "currentColor"
|
|
3056
|
+
}
|
|
3057
|
+
),
|
|
3058
|
+
/* @__PURE__ */ s(
|
|
3059
|
+
"path",
|
|
3060
|
+
{
|
|
3061
|
+
d: "M86.1001 296V292.9L79.9001 290.8L79.1001 290.5L79.9001 290.2L86.1001 288.1V285L76.1001 289.2V291.7L86.1001 296Z",
|
|
3062
|
+
fill: "currentColor"
|
|
3063
|
+
}
|
|
3064
|
+
),
|
|
3065
|
+
/* @__PURE__ */ s(
|
|
3066
|
+
"path",
|
|
3067
|
+
{
|
|
3068
|
+
d: "M104.8 296V292.9L98.6 290.8L97.8 290.5L98.6 290.2L104.8 288.1V285L94.8 289.2V291.7L104.8 296Z",
|
|
3069
|
+
fill: "currentColor"
|
|
3070
|
+
}
|
|
3071
|
+
),
|
|
3072
|
+
/* @__PURE__ */ s(
|
|
3073
|
+
"path",
|
|
3074
|
+
{
|
|
3075
|
+
d: "M123.5 296V292.9L117.3 290.8L116.5 290.5L117.3 290.2L123.5 288.1V285L113.5 289.2V291.7L123.5 296Z",
|
|
3076
|
+
fill: "currentColor"
|
|
3077
|
+
}
|
|
3078
|
+
),
|
|
3079
|
+
/* @__PURE__ */ s(
|
|
3080
|
+
"path",
|
|
3081
|
+
{
|
|
3082
|
+
d: "M142.2 296V292.9L136 290.8L135.2 290.5L136 290.2L142.2 288.1V285L132.2 289.2V291.7L142.2 296Z",
|
|
3083
|
+
fill: "currentColor"
|
|
3084
|
+
}
|
|
3085
|
+
),
|
|
3086
|
+
/* @__PURE__ */ s(
|
|
3087
|
+
"path",
|
|
3088
|
+
{
|
|
3089
|
+
d: "M160.9 296V292.9L154.7 290.8L153.9 290.5L154.7 290.2L160.9 288.1V285L150.9 289.2V291.7L160.9 296Z",
|
|
3090
|
+
fill: "currentColor"
|
|
3091
|
+
}
|
|
3092
|
+
),
|
|
3093
|
+
/* @__PURE__ */ s(
|
|
3094
|
+
"path",
|
|
3095
|
+
{
|
|
3096
|
+
d: "M179.6 296V292.9L173.4 290.8L172.6 290.5L173.4 290.2L179.6 288.1V285L169.6 289.2V291.7L179.6 296Z",
|
|
3097
|
+
fill: "currentColor"
|
|
3098
|
+
}
|
|
3099
|
+
),
|
|
3100
|
+
/* @__PURE__ */ s(
|
|
3101
|
+
"path",
|
|
3102
|
+
{
|
|
3103
|
+
d: "M198.3 296V292.9L192.1 290.8L191.3 290.5L192.1 290.2L198.3 288.1V285L188.3 289.2V291.7L198.3 296Z",
|
|
3104
|
+
fill: "currentColor"
|
|
3105
|
+
}
|
|
3106
|
+
),
|
|
3107
|
+
/* @__PURE__ */ s(
|
|
3108
|
+
"path",
|
|
3109
|
+
{
|
|
3110
|
+
d: "M217.1 296V292.9L210.9 290.8L210.1 290.5L210.9 290.2L217.1 288.1V285L207.1 289.2V291.7L217.1 296Z",
|
|
3111
|
+
fill: "currentColor"
|
|
3112
|
+
}
|
|
3113
|
+
),
|
|
3114
|
+
/* @__PURE__ */ s(
|
|
3115
|
+
"path",
|
|
3116
|
+
{
|
|
3117
|
+
d: "M235.8 296V292.9L229.6 290.8L228.8 290.5L229.6 290.2L235.8 288.1V285L225.8 289.2V291.7L235.8 296Z",
|
|
3118
|
+
fill: "currentColor"
|
|
3119
|
+
}
|
|
3120
|
+
),
|
|
3121
|
+
/* @__PURE__ */ s(
|
|
3122
|
+
"path",
|
|
3123
|
+
{
|
|
3124
|
+
d: "M254.5 296V292.9L248.3 290.8L247.5 290.5L248.3 290.2L254.5 288.1V285L244.5 289.2V291.7L254.5 296Z",
|
|
3125
|
+
fill: "currentColor"
|
|
3126
|
+
}
|
|
3127
|
+
),
|
|
3128
|
+
/* @__PURE__ */ s(
|
|
3129
|
+
"path",
|
|
3130
|
+
{
|
|
3131
|
+
d: "M273.2 296V292.9L267 290.8L266.2 290.5L267 290.2L273.2 288.1V285L263.2 289.2V291.7L273.2 296Z",
|
|
3132
|
+
fill: "currentColor"
|
|
3133
|
+
}
|
|
3134
|
+
),
|
|
3135
|
+
/* @__PURE__ */ s(
|
|
3136
|
+
"path",
|
|
3137
|
+
{
|
|
3138
|
+
d: "M291.9 296V292.9L285.7 290.8L284.9 290.5L285.7 290.2L291.9 288.1V285L281.9 289.2V291.7L291.9 296Z",
|
|
3139
|
+
fill: "currentColor"
|
|
3140
|
+
}
|
|
3141
|
+
),
|
|
3142
|
+
/* @__PURE__ */ s(
|
|
3143
|
+
"path",
|
|
3144
|
+
{
|
|
3145
|
+
d: "M310.6 296V292.9L304.4 290.8L303.6 290.5L304.4 290.2L310.6 288.1V285L300.6 289.2V291.7L310.6 296Z",
|
|
3146
|
+
fill: "currentColor"
|
|
3147
|
+
}
|
|
3148
|
+
),
|
|
3149
|
+
/* @__PURE__ */ s(
|
|
3150
|
+
"path",
|
|
3151
|
+
{
|
|
3152
|
+
d: "M329.3 296V292.9L323.1 290.8L322.3 290.5L323.1 290.2L329.3 288.1V285L319.3 289.2V291.7L329.3 296Z",
|
|
3153
|
+
fill: "currentColor"
|
|
3154
|
+
}
|
|
3155
|
+
),
|
|
3156
|
+
/* @__PURE__ */ s(
|
|
3157
|
+
"path",
|
|
3158
|
+
{
|
|
3159
|
+
d: "M348.1 296V292.9L341.9 290.8L341.1 290.5L341.9 290.2L348.1 288.1V285L338.1 289.2V291.7L348.1 296Z",
|
|
3160
|
+
fill: "currentColor"
|
|
3161
|
+
}
|
|
3162
|
+
),
|
|
3163
|
+
/* @__PURE__ */ s(
|
|
3164
|
+
"path",
|
|
3165
|
+
{
|
|
3166
|
+
d: "M366.8 296V292.9L360.6 290.8L359.8 290.5L360.6 290.2L366.8 288.1V285L356.8 289.2V291.7L366.8 296Z",
|
|
3167
|
+
fill: "currentColor"
|
|
3168
|
+
}
|
|
3169
|
+
),
|
|
3170
|
+
/* @__PURE__ */ s(
|
|
3171
|
+
"path",
|
|
3172
|
+
{
|
|
3173
|
+
d: "M385.5 296V292.9L379.3 290.8L378.5 290.5L379.3 290.2L385.5 288.1V285L375.5 289.2V291.7L385.5 296Z",
|
|
3174
|
+
fill: "currentColor"
|
|
3175
|
+
}
|
|
3176
|
+
),
|
|
3177
|
+
/* @__PURE__ */ s(
|
|
3178
|
+
"path",
|
|
3179
|
+
{
|
|
3180
|
+
d: "M404.2 296V292.9L398 290.8L397.2 290.5L398 290.2L404.2 288.1V285L394.2 289.2V291.7L404.2 296Z",
|
|
3181
|
+
fill: "currentColor"
|
|
3182
|
+
}
|
|
3183
|
+
),
|
|
3184
|
+
/* @__PURE__ */ s(
|
|
3185
|
+
"path",
|
|
3186
|
+
{
|
|
3187
|
+
d: "M422.9 296V292.9L416.7 290.8L415.9 290.5L416.7 290.2L422.9 288.1V285L412.9 289.2V291.7L422.9 296Z",
|
|
3188
|
+
fill: "currentColor"
|
|
3189
|
+
}
|
|
3190
|
+
),
|
|
3191
|
+
/* @__PURE__ */ s(
|
|
3192
|
+
"path",
|
|
3193
|
+
{
|
|
3194
|
+
d: "M441.6 296V292.9L435.4 290.8L434.6 290.5L435.4 290.2L441.6 288.1V285L431.6 289.2V291.7L441.6 296Z",
|
|
3195
|
+
fill: "currentColor"
|
|
3196
|
+
}
|
|
3197
|
+
),
|
|
3198
|
+
/* @__PURE__ */ s(
|
|
3199
|
+
"path",
|
|
3200
|
+
{
|
|
3201
|
+
d: "M460.3 296V292.9L454.1 290.8L453.3 290.5L454.1 290.2L460.3 288.1V285L450.3 289.2V291.7L460.3 296Z",
|
|
3202
|
+
fill: "currentColor"
|
|
3203
|
+
}
|
|
3204
|
+
),
|
|
3205
|
+
/* @__PURE__ */ s(
|
|
3206
|
+
"path",
|
|
3207
|
+
{
|
|
3208
|
+
d: "M479.1 296V292.9L472.9 290.8L472.1 290.5L472.9 290.2L479.1 288.1V285L469.1 289.2V291.7L479.1 296Z",
|
|
3209
|
+
fill: "currentColor"
|
|
3210
|
+
}
|
|
3211
|
+
),
|
|
3212
|
+
/* @__PURE__ */ s(
|
|
3213
|
+
"path",
|
|
3214
|
+
{
|
|
3215
|
+
d: "M497.8 296V292.9L491.6 290.8L490.8 290.5L491.6 290.2L497.8 288.1V285L487.8 289.2V291.7L497.8 296Z",
|
|
3216
|
+
fill: "currentColor"
|
|
3217
|
+
}
|
|
3218
|
+
),
|
|
3219
|
+
/* @__PURE__ */ s(
|
|
3220
|
+
"path",
|
|
3221
|
+
{
|
|
3222
|
+
d: "M516.5 296V292.9L510.3 290.8L509.5 290.5L510.3 290.2L516.5 288.1V285L506.5 289.2V291.7L516.5 296Z",
|
|
3223
|
+
fill: "currentColor"
|
|
3224
|
+
}
|
|
3225
|
+
),
|
|
3226
|
+
/* @__PURE__ */ s(
|
|
3227
|
+
"path",
|
|
3228
|
+
{
|
|
3229
|
+
d: "M535.2 296V292.9L529 290.8L528.2 290.5L529 290.2L535.2 288.1V285L525.2 289.2V291.7L535.2 296Z",
|
|
3230
|
+
fill: "currentColor"
|
|
3231
|
+
}
|
|
3232
|
+
),
|
|
3233
|
+
/* @__PURE__ */ s(
|
|
3234
|
+
"path",
|
|
3235
|
+
{
|
|
3236
|
+
d: "M553.9 296V292.9L547.7 290.8L546.9 290.5L547.7 290.2L553.9 288.1V285L543.9 289.2V291.7L553.9 296Z",
|
|
3237
|
+
fill: "currentColor"
|
|
3238
|
+
}
|
|
3239
|
+
),
|
|
3240
|
+
/* @__PURE__ */ s(
|
|
3241
|
+
"path",
|
|
3242
|
+
{
|
|
3243
|
+
d: "M572.6 296V292.9L566.4 290.8L565.6 290.5L566.4 290.2L572.6 288.1V285L562.6 289.2V291.7L572.6 296Z",
|
|
3244
|
+
fill: "currentColor"
|
|
3245
|
+
}
|
|
3246
|
+
),
|
|
3247
|
+
/* @__PURE__ */ s(
|
|
3248
|
+
"path",
|
|
3249
|
+
{
|
|
3250
|
+
d: "M591.3 296V292.9L585.1 290.8L584.3 290.5L585.1 290.2L591.3 288.1V285L581.3 289.2V291.7L591.3 296Z",
|
|
3251
|
+
fill: "currentColor"
|
|
3252
|
+
}
|
|
3253
|
+
),
|
|
3254
|
+
/* @__PURE__ */ s(
|
|
3255
|
+
"path",
|
|
3256
|
+
{
|
|
3257
|
+
d: "M48.6001 326.9V323.8L42.4001 321.7L41.6001 321.4L42.4001 321.1L48.6001 319V315.9L38.6001 320.1V322.6L48.6001 326.9Z",
|
|
3258
|
+
fill: "currentColor"
|
|
3259
|
+
}
|
|
3260
|
+
),
|
|
3261
|
+
/* @__PURE__ */ s(
|
|
3262
|
+
"path",
|
|
3263
|
+
{
|
|
3264
|
+
d: "M67.3001 326.9V323.8L61.1 321.7L60.3 321.4L61.1 321.1L67.3001 319V315.9L57.3 320.1V322.6L67.3001 326.9Z",
|
|
3265
|
+
fill: "currentColor"
|
|
3266
|
+
}
|
|
3267
|
+
),
|
|
3268
|
+
/* @__PURE__ */ s(
|
|
3269
|
+
"path",
|
|
3270
|
+
{
|
|
3271
|
+
d: "M86.1001 326.9V323.8L79.9001 321.7L79.1001 321.4L79.9001 321.1L86.1001 319V315.9L76.1001 320.1V322.6L86.1001 326.9Z",
|
|
3272
|
+
fill: "currentColor"
|
|
3273
|
+
}
|
|
3274
|
+
),
|
|
3275
|
+
/* @__PURE__ */ s(
|
|
3276
|
+
"path",
|
|
3277
|
+
{
|
|
3278
|
+
d: "M104.8 326.9V323.8L98.6 321.7L97.8 321.4L98.6 321.1L104.8 319V315.9L94.8 320.1V322.6L104.8 326.9Z",
|
|
3279
|
+
fill: "currentColor"
|
|
3280
|
+
}
|
|
3281
|
+
),
|
|
3282
|
+
/* @__PURE__ */ s(
|
|
3283
|
+
"path",
|
|
3284
|
+
{
|
|
3285
|
+
d: "M123.5 326.9V323.8L117.3 321.7L116.5 321.4L117.3 321.1L123.5 319V315.9L113.5 320.1V322.6L123.5 326.9Z",
|
|
3286
|
+
fill: "currentColor"
|
|
3287
|
+
}
|
|
3288
|
+
),
|
|
3289
|
+
/* @__PURE__ */ s(
|
|
3290
|
+
"path",
|
|
3291
|
+
{
|
|
3292
|
+
d: "M142.2 326.9V323.8L136 321.7L135.2 321.4L136 321.1L142.2 319V315.9L132.2 320.1V322.6L142.2 326.9Z",
|
|
3293
|
+
fill: "currentColor"
|
|
3294
|
+
}
|
|
3295
|
+
),
|
|
3296
|
+
/* @__PURE__ */ s(
|
|
3297
|
+
"path",
|
|
3298
|
+
{
|
|
3299
|
+
d: "M160.9 326.9V323.8L154.7 321.7L153.9 321.4L154.7 321.1L160.9 319V315.9L150.9 320.1V322.6L160.9 326.9Z",
|
|
3300
|
+
fill: "currentColor"
|
|
3301
|
+
}
|
|
3302
|
+
),
|
|
3303
|
+
/* @__PURE__ */ s(
|
|
3304
|
+
"path",
|
|
3305
|
+
{
|
|
3306
|
+
d: "M179.6 326.9V323.8L173.4 321.7L172.6 321.4L173.4 321.1L179.6 319V315.9L169.6 320.1V322.6L179.6 326.9Z",
|
|
3307
|
+
fill: "currentColor"
|
|
3308
|
+
}
|
|
3309
|
+
),
|
|
3310
|
+
/* @__PURE__ */ s(
|
|
3311
|
+
"path",
|
|
3312
|
+
{
|
|
3313
|
+
d: "M198.3 326.9V323.8L192.1 321.7L191.3 321.4L192.1 321.1L198.3 319V315.9L188.3 320.1V322.6L198.3 326.9Z",
|
|
3314
|
+
fill: "currentColor"
|
|
3315
|
+
}
|
|
3316
|
+
),
|
|
3317
|
+
/* @__PURE__ */ s(
|
|
3318
|
+
"path",
|
|
3319
|
+
{
|
|
3320
|
+
d: "M217.1 326.9V323.8L210.9 321.7L210.1 321.4L210.9 321.1L217.1 319V315.9L207.1 320.1V322.6L217.1 326.9Z",
|
|
3321
|
+
fill: "currentColor"
|
|
3322
|
+
}
|
|
3323
|
+
),
|
|
3324
|
+
/* @__PURE__ */ s(
|
|
3325
|
+
"path",
|
|
3326
|
+
{
|
|
3327
|
+
d: "M235.8 326.9V323.8L229.6 321.7L228.8 321.4L229.6 321.1L235.8 319V315.9L225.8 320.1V322.6L235.8 326.9Z",
|
|
3328
|
+
fill: "currentColor"
|
|
3329
|
+
}
|
|
3330
|
+
),
|
|
3331
|
+
/* @__PURE__ */ s(
|
|
3332
|
+
"path",
|
|
3333
|
+
{
|
|
3334
|
+
d: "M254.5 326.9V323.8L248.3 321.7L247.5 321.4L248.3 321.1L254.5 319V315.9L244.5 320.1V322.6L254.5 326.9Z",
|
|
3335
|
+
fill: "currentColor"
|
|
3336
|
+
}
|
|
3337
|
+
),
|
|
3338
|
+
/* @__PURE__ */ s(
|
|
3339
|
+
"path",
|
|
3340
|
+
{
|
|
3341
|
+
d: "M273.2 326.9V323.8L267 321.7L266.2 321.4L267 321.1L273.2 319V315.9L263.2 320.1V322.6L273.2 326.9Z",
|
|
3342
|
+
fill: "currentColor"
|
|
3343
|
+
}
|
|
3344
|
+
),
|
|
3345
|
+
/* @__PURE__ */ s(
|
|
3346
|
+
"path",
|
|
3347
|
+
{
|
|
3348
|
+
d: "M291.9 326.9V323.8L285.7 321.7L284.9 321.4L285.7 321.1L291.9 319V315.9L281.9 320.1V322.6L291.9 326.9Z",
|
|
3349
|
+
fill: "currentColor"
|
|
3350
|
+
}
|
|
3351
|
+
),
|
|
3352
|
+
/* @__PURE__ */ s(
|
|
3353
|
+
"path",
|
|
3354
|
+
{
|
|
3355
|
+
d: "M310.6 326.9V323.8L304.4 321.7L303.6 321.4L304.4 321.1L310.6 319V315.9L300.6 320.1V322.6L310.6 326.9Z",
|
|
3356
|
+
fill: "currentColor"
|
|
3357
|
+
}
|
|
3358
|
+
),
|
|
3359
|
+
/* @__PURE__ */ s(
|
|
3360
|
+
"path",
|
|
3361
|
+
{
|
|
3362
|
+
d: "M329.3 326.9V323.8L323.1 321.7L322.3 321.4L323.1 321.1L329.3 319V315.9L319.3 320.1V322.6L329.3 326.9Z",
|
|
3363
|
+
fill: "currentColor"
|
|
3364
|
+
}
|
|
3365
|
+
),
|
|
3366
|
+
/* @__PURE__ */ s(
|
|
3367
|
+
"path",
|
|
3368
|
+
{
|
|
3369
|
+
d: "M348.1 326.9V323.8L341.9 321.7L341.1 321.4L341.9 321.1L348.1 319V315.9L338.1 320.1V322.6L348.1 326.9Z",
|
|
3370
|
+
fill: "currentColor"
|
|
3371
|
+
}
|
|
3372
|
+
),
|
|
3373
|
+
/* @__PURE__ */ s(
|
|
3374
|
+
"path",
|
|
3375
|
+
{
|
|
3376
|
+
d: "M366.8 326.9V323.8L360.6 321.7L359.8 321.4L360.6 321.1L366.8 319V315.9L356.8 320.1V322.6L366.8 326.9Z",
|
|
3377
|
+
fill: "currentColor"
|
|
3378
|
+
}
|
|
3379
|
+
),
|
|
3380
|
+
/* @__PURE__ */ s(
|
|
3381
|
+
"path",
|
|
3382
|
+
{
|
|
3383
|
+
d: "M385.5 326.9V323.8L379.3 321.7L378.5 321.4L379.3 321.1L385.5 319V315.9L375.5 320.1V322.6L385.5 326.9Z",
|
|
3384
|
+
fill: "currentColor"
|
|
3385
|
+
}
|
|
3386
|
+
),
|
|
3387
|
+
/* @__PURE__ */ s(
|
|
3388
|
+
"path",
|
|
3389
|
+
{
|
|
3390
|
+
d: "M404.2 326.9V323.8L398 321.7L397.2 321.4L398 321.1L404.2 319V315.9L394.2 320.1V322.6L404.2 326.9Z",
|
|
3391
|
+
fill: "currentColor"
|
|
3392
|
+
}
|
|
3393
|
+
),
|
|
3394
|
+
/* @__PURE__ */ s(
|
|
3395
|
+
"path",
|
|
3396
|
+
{
|
|
3397
|
+
d: "M422.9 326.9V323.8L416.7 321.7L415.9 321.4L416.7 321.1L422.9 319V315.9L412.9 320.1V322.6L422.9 326.9Z",
|
|
3398
|
+
fill: "currentColor"
|
|
3399
|
+
}
|
|
3400
|
+
),
|
|
3401
|
+
/* @__PURE__ */ s(
|
|
3402
|
+
"path",
|
|
3403
|
+
{
|
|
3404
|
+
d: "M441.6 326.9V323.8L435.4 321.7L434.6 321.4L435.4 321.1L441.6 319V315.9L431.6 320.1V322.6L441.6 326.9Z",
|
|
3405
|
+
fill: "currentColor"
|
|
3406
|
+
}
|
|
3407
|
+
),
|
|
3408
|
+
/* @__PURE__ */ s(
|
|
3409
|
+
"path",
|
|
3410
|
+
{
|
|
3411
|
+
d: "M460.3 326.9V323.8L454.1 321.7L453.3 321.4L454.1 321.1L460.3 319V315.9L450.3 320.1V322.6L460.3 326.9Z",
|
|
3412
|
+
fill: "currentColor"
|
|
3413
|
+
}
|
|
3414
|
+
),
|
|
3415
|
+
/* @__PURE__ */ s(
|
|
3416
|
+
"path",
|
|
3417
|
+
{
|
|
3418
|
+
d: "M479.1 326.9V323.8L472.9 321.7L472.1 321.4L472.9 321.1L479.1 319V315.9L469.1 320.1V322.6L479.1 326.9Z",
|
|
3419
|
+
fill: "currentColor"
|
|
3420
|
+
}
|
|
3421
|
+
),
|
|
3422
|
+
/* @__PURE__ */ s(
|
|
3423
|
+
"path",
|
|
3424
|
+
{
|
|
3425
|
+
d: "M497.8 326.9V323.8L491.6 321.7L490.8 321.4L491.6 321.1L497.8 319V315.9L487.8 320.1V322.6L497.8 326.9Z",
|
|
3426
|
+
fill: "currentColor"
|
|
3427
|
+
}
|
|
3428
|
+
),
|
|
3429
|
+
/* @__PURE__ */ s(
|
|
3430
|
+
"path",
|
|
3431
|
+
{
|
|
3432
|
+
d: "M516.5 326.9V323.8L510.3 321.7L509.5 321.4L510.3 321.1L516.5 319V315.9L506.5 320.1V322.6L516.5 326.9Z",
|
|
3433
|
+
fill: "currentColor"
|
|
3434
|
+
}
|
|
3435
|
+
),
|
|
3436
|
+
/* @__PURE__ */ s(
|
|
3437
|
+
"path",
|
|
3438
|
+
{
|
|
3439
|
+
d: "M535.2 326.9V323.8L529 321.7L528.2 321.4L529 321.1L535.2 319V315.9L525.2 320.1V322.6L535.2 326.9Z",
|
|
3440
|
+
fill: "currentColor"
|
|
3441
|
+
}
|
|
3442
|
+
),
|
|
3443
|
+
/* @__PURE__ */ s(
|
|
3444
|
+
"path",
|
|
3445
|
+
{
|
|
3446
|
+
d: "M553.9 326.9V323.8L547.7 321.7L546.9 321.4L547.7 321.1L553.9 319V315.9L543.9 320.1V322.6L553.9 326.9Z",
|
|
3447
|
+
fill: "currentColor"
|
|
3448
|
+
}
|
|
3449
|
+
),
|
|
3450
|
+
/* @__PURE__ */ s(
|
|
3451
|
+
"path",
|
|
3452
|
+
{
|
|
3453
|
+
d: "M572.6 326.9V323.8L566.4 321.7L565.6 321.4L566.4 321.1L572.6 319V315.9L562.6 320.1V322.6L572.6 326.9Z",
|
|
3454
|
+
fill: "currentColor"
|
|
3455
|
+
}
|
|
3456
|
+
),
|
|
3457
|
+
/* @__PURE__ */ s(
|
|
3458
|
+
"path",
|
|
3459
|
+
{
|
|
3460
|
+
d: "M591.3 326.9V323.8L585.1 321.7L584.3 321.4L585.1 321.1L591.3 319V315.9L581.3 320.1V322.6L591.3 326.9Z",
|
|
3461
|
+
fill: "currentColor"
|
|
3462
|
+
}
|
|
3463
|
+
),
|
|
3464
|
+
/* @__PURE__ */ s(
|
|
3465
|
+
"path",
|
|
3466
|
+
{
|
|
3467
|
+
d: "M48.6001 357.9V354.8L42.4001 352.7L41.6001 352.4L42.4001 352.1L48.6001 350V347L38.6001 351.2V353.7L48.6001 357.9Z",
|
|
3468
|
+
fill: "currentColor"
|
|
3469
|
+
}
|
|
3470
|
+
),
|
|
3471
|
+
/* @__PURE__ */ s(
|
|
3472
|
+
"path",
|
|
3473
|
+
{
|
|
3474
|
+
d: "M67.3001 357.9V354.8L61.1 352.7L60.3 352.4L61.1 352.1L67.3001 350V347L57.3 351.2V353.7L67.3001 357.9Z",
|
|
3475
|
+
fill: "currentColor"
|
|
3476
|
+
}
|
|
3477
|
+
),
|
|
3478
|
+
/* @__PURE__ */ s(
|
|
3479
|
+
"path",
|
|
3480
|
+
{
|
|
3481
|
+
d: "M86.1001 357.9V354.8L79.9001 352.7L79.1001 352.4L79.9001 352.1L86.1001 350V347L76.1001 351.2V353.7L86.1001 357.9Z",
|
|
3482
|
+
fill: "currentColor"
|
|
3483
|
+
}
|
|
3484
|
+
),
|
|
3485
|
+
/* @__PURE__ */ s(
|
|
3486
|
+
"path",
|
|
3487
|
+
{
|
|
3488
|
+
d: "M104.8 357.9V354.8L98.6 352.7L97.8 352.4L98.6 352.1L104.8 350V347L94.8 351.2V353.7L104.8 357.9Z",
|
|
3489
|
+
fill: "currentColor"
|
|
3490
|
+
}
|
|
3491
|
+
),
|
|
3492
|
+
/* @__PURE__ */ s(
|
|
3493
|
+
"path",
|
|
3494
|
+
{
|
|
3495
|
+
d: "M123.5 357.9V354.8L117.3 352.7L116.5 352.4L117.3 352.1L123.5 350V347L113.5 351.2V353.7L123.5 357.9Z",
|
|
3496
|
+
fill: "currentColor"
|
|
3497
|
+
}
|
|
3498
|
+
),
|
|
3499
|
+
/* @__PURE__ */ s(
|
|
3500
|
+
"path",
|
|
3501
|
+
{
|
|
3502
|
+
d: "M142.2 357.9V354.8L136 352.7L135.2 352.4L136 352.1L142.2 350V347L132.2 351.2V353.7L142.2 357.9Z",
|
|
3503
|
+
fill: "currentColor"
|
|
3504
|
+
}
|
|
3505
|
+
),
|
|
3506
|
+
/* @__PURE__ */ s(
|
|
3507
|
+
"path",
|
|
3508
|
+
{
|
|
3509
|
+
d: "M160.9 357.9V354.8L154.7 352.7L153.9 352.4L154.7 352.1L160.9 350V347L150.9 351.2V353.7L160.9 357.9Z",
|
|
3510
|
+
fill: "currentColor"
|
|
3511
|
+
}
|
|
3512
|
+
),
|
|
3513
|
+
/* @__PURE__ */ s(
|
|
3514
|
+
"path",
|
|
3515
|
+
{
|
|
3516
|
+
d: "M179.6 357.9V354.8L173.4 352.7L172.6 352.4L173.4 352.1L179.6 350V347L169.6 351.2V353.7L179.6 357.9Z",
|
|
3517
|
+
fill: "currentColor"
|
|
3518
|
+
}
|
|
3519
|
+
),
|
|
3520
|
+
/* @__PURE__ */ s(
|
|
3521
|
+
"path",
|
|
3522
|
+
{
|
|
3523
|
+
d: "M198.3 357.9V354.8L192.1 352.7L191.3 352.4L192.1 352.1L198.3 350V347L188.3 351.2V353.7L198.3 357.9Z",
|
|
3524
|
+
fill: "currentColor"
|
|
3525
|
+
}
|
|
3526
|
+
),
|
|
3527
|
+
/* @__PURE__ */ s(
|
|
3528
|
+
"path",
|
|
3529
|
+
{
|
|
3530
|
+
d: "M217.1 357.9V354.8L210.9 352.7L210.1 352.4L210.9 352.1L217.1 350V347L207.1 351.2V353.7L217.1 357.9Z",
|
|
3531
|
+
fill: "currentColor"
|
|
3532
|
+
}
|
|
3533
|
+
),
|
|
3534
|
+
/* @__PURE__ */ s(
|
|
3535
|
+
"path",
|
|
3536
|
+
{
|
|
3537
|
+
d: "M235.8 357.9V354.8L229.6 352.7L228.8 352.4L229.6 352.1L235.8 350V347L225.8 351.2V353.7L235.8 357.9Z",
|
|
3538
|
+
fill: "currentColor"
|
|
3539
|
+
}
|
|
3540
|
+
),
|
|
3541
|
+
/* @__PURE__ */ s(
|
|
3542
|
+
"path",
|
|
3543
|
+
{
|
|
3544
|
+
d: "M254.5 357.9V354.8L248.3 352.7L247.5 352.4L248.3 352.1L254.5 350V347L244.5 351.2V353.7L254.5 357.9Z",
|
|
3545
|
+
fill: "currentColor"
|
|
3546
|
+
}
|
|
3547
|
+
),
|
|
3548
|
+
/* @__PURE__ */ s(
|
|
3549
|
+
"path",
|
|
3550
|
+
{
|
|
3551
|
+
d: "M273.2 357.9V354.8L267 352.7L266.2 352.4L267 352.1L273.2 350V347L263.2 351.2V353.7L273.2 357.9Z",
|
|
3552
|
+
fill: "currentColor"
|
|
3553
|
+
}
|
|
3554
|
+
),
|
|
3555
|
+
/* @__PURE__ */ s(
|
|
3556
|
+
"path",
|
|
3557
|
+
{
|
|
3558
|
+
d: "M291.9 357.9V354.8L285.7 352.7L284.9 352.4L285.7 352.1L291.9 350V347L281.9 351.2V353.7L291.9 357.9Z",
|
|
3559
|
+
fill: "currentColor"
|
|
3560
|
+
}
|
|
3561
|
+
),
|
|
3562
|
+
/* @__PURE__ */ s(
|
|
3563
|
+
"path",
|
|
3564
|
+
{
|
|
3565
|
+
d: "M310.6 357.9V354.8L304.4 352.7L303.6 352.4L304.4 352.1L310.6 350V347L300.6 351.2V353.7L310.6 357.9Z",
|
|
3566
|
+
fill: "currentColor"
|
|
3567
|
+
}
|
|
3568
|
+
),
|
|
3569
|
+
/* @__PURE__ */ s(
|
|
3570
|
+
"path",
|
|
3571
|
+
{
|
|
3572
|
+
d: "M329.3 357.9V354.8L323.1 352.7L322.3 352.4L323.1 352.1L329.3 350V347L319.3 351.2V353.7L329.3 357.9Z",
|
|
3573
|
+
fill: "currentColor"
|
|
3574
|
+
}
|
|
3575
|
+
),
|
|
3576
|
+
/* @__PURE__ */ s(
|
|
3577
|
+
"path",
|
|
3578
|
+
{
|
|
3579
|
+
d: "M348.1 357.9V354.8L341.9 352.7L341.1 352.4L341.9 352.1L348.1 350V347L338.1 351.2V353.7L348.1 357.9Z",
|
|
3580
|
+
fill: "currentColor"
|
|
3581
|
+
}
|
|
3582
|
+
),
|
|
3583
|
+
/* @__PURE__ */ s(
|
|
3584
|
+
"path",
|
|
3585
|
+
{
|
|
3586
|
+
d: "M366.8 357.9V354.8L360.6 352.7L359.8 352.4L360.6 352.1L366.8 350V347L356.8 351.2V353.7L366.8 357.9Z",
|
|
3587
|
+
fill: "currentColor"
|
|
3588
|
+
}
|
|
3589
|
+
),
|
|
3590
|
+
/* @__PURE__ */ s(
|
|
3591
|
+
"path",
|
|
3592
|
+
{
|
|
3593
|
+
d: "M385.5 357.9V354.8L379.3 352.7L378.5 352.4L379.3 352.1L385.5 350V347L375.5 351.2V353.7L385.5 357.9Z",
|
|
3594
|
+
fill: "currentColor"
|
|
3595
|
+
}
|
|
3596
|
+
),
|
|
3597
|
+
/* @__PURE__ */ s(
|
|
3598
|
+
"path",
|
|
3599
|
+
{
|
|
3600
|
+
d: "M404.2 357.9V354.8L398 352.7L397.2 352.4L398 352.1L404.2 350V347L394.2 351.2V353.7L404.2 357.9Z",
|
|
3601
|
+
fill: "currentColor"
|
|
3602
|
+
}
|
|
3603
|
+
),
|
|
3604
|
+
/* @__PURE__ */ s(
|
|
3605
|
+
"path",
|
|
3606
|
+
{
|
|
3607
|
+
d: "M422.9 357.9V354.8L416.7 352.7L415.9 352.4L416.7 352.1L422.9 350V347L412.9 351.2V353.7L422.9 357.9Z",
|
|
3608
|
+
fill: "currentColor"
|
|
3609
|
+
}
|
|
3610
|
+
),
|
|
3611
|
+
/* @__PURE__ */ s(
|
|
3612
|
+
"path",
|
|
3613
|
+
{
|
|
3614
|
+
d: "M441.6 357.9V354.8L435.4 352.7L434.6 352.4L435.4 352.1L441.6 350V347L431.6 351.2V353.7L441.6 357.9Z",
|
|
3615
|
+
fill: "currentColor"
|
|
3616
|
+
}
|
|
3617
|
+
),
|
|
3618
|
+
/* @__PURE__ */ s(
|
|
3619
|
+
"path",
|
|
3620
|
+
{
|
|
3621
|
+
d: "M460.3 357.9V354.8L454.1 352.7L453.3 352.4L454.1 352.1L460.3 350V347L450.3 351.2V353.7L460.3 357.9Z",
|
|
3622
|
+
fill: "currentColor"
|
|
3623
|
+
}
|
|
3624
|
+
),
|
|
3625
|
+
/* @__PURE__ */ s(
|
|
3626
|
+
"path",
|
|
3627
|
+
{
|
|
3628
|
+
d: "M479.1 357.9V354.8L472.9 352.7L472.1 352.4L472.9 352.1L479.1 350V347L469.1 351.2V353.7L479.1 357.9Z",
|
|
3629
|
+
fill: "currentColor"
|
|
3630
|
+
}
|
|
3631
|
+
),
|
|
3632
|
+
/* @__PURE__ */ s(
|
|
3633
|
+
"path",
|
|
3634
|
+
{
|
|
3635
|
+
d: "M497.8 357.9V354.8L491.6 352.7L490.8 352.4L491.6 352.1L497.8 350V347L487.8 351.2V353.7L497.8 357.9Z",
|
|
3636
|
+
fill: "currentColor"
|
|
3637
|
+
}
|
|
3638
|
+
),
|
|
3639
|
+
/* @__PURE__ */ s(
|
|
3640
|
+
"path",
|
|
3641
|
+
{
|
|
3642
|
+
d: "M516.5 357.9V354.8L510.3 352.7L509.5 352.4L510.3 352.1L516.5 350V347L506.5 351.2V353.7L516.5 357.9Z",
|
|
3643
|
+
fill: "currentColor"
|
|
3644
|
+
}
|
|
3645
|
+
),
|
|
3646
|
+
/* @__PURE__ */ s(
|
|
3647
|
+
"path",
|
|
3648
|
+
{
|
|
3649
|
+
d: "M535.2 357.9V354.8L529 352.7L528.2 352.4L529 352.1L535.2 350V347L525.2 351.2V353.7L535.2 357.9Z",
|
|
3650
|
+
fill: "currentColor"
|
|
3651
|
+
}
|
|
3652
|
+
),
|
|
3653
|
+
/* @__PURE__ */ s(
|
|
3654
|
+
"path",
|
|
3655
|
+
{
|
|
3656
|
+
d: "M553.9 357.9V354.8L547.7 352.7L546.9 352.4L547.7 352.1L553.9 350V347L543.9 351.2V353.7L553.9 357.9Z",
|
|
3657
|
+
fill: "currentColor"
|
|
3658
|
+
}
|
|
3659
|
+
),
|
|
3660
|
+
/* @__PURE__ */ s(
|
|
3661
|
+
"path",
|
|
3662
|
+
{
|
|
3663
|
+
d: "M572.6 357.9V354.8L566.4 352.7L565.6 352.4L566.4 352.1L572.6 350V347L562.6 351.2V353.7L572.6 357.9Z",
|
|
3664
|
+
fill: "currentColor"
|
|
3665
|
+
}
|
|
3666
|
+
),
|
|
3667
|
+
/* @__PURE__ */ s(
|
|
3668
|
+
"path",
|
|
3669
|
+
{
|
|
3670
|
+
d: "M591.3 357.9V354.8L585.1 352.7L584.3 352.4L585.1 352.1L591.3 350V347L581.3 351.2V353.7L591.3 357.9Z",
|
|
3671
|
+
fill: "currentColor"
|
|
3672
|
+
}
|
|
3673
|
+
),
|
|
3674
|
+
/* @__PURE__ */ s(
|
|
3675
|
+
"path",
|
|
3676
|
+
{
|
|
3677
|
+
d: "M2 16C2 8.3 8.3 2 16 2H614C621.7 2 628 8.3 628 16V247.4V386C628 393.7 621.7 400 614 400H16C8.3 400 2 393.7 2 386V247.4V16Z",
|
|
3678
|
+
stroke: "currentColor",
|
|
3679
|
+
strokeLinecap: "round",
|
|
3680
|
+
strokeWidth: "4"
|
|
3681
|
+
}
|
|
3682
|
+
)
|
|
3683
|
+
]
|
|
3684
|
+
}
|
|
3685
|
+
);
|
|
3686
|
+
}
|
|
3687
|
+
function Fs() {
|
|
3688
|
+
return /* @__PURE__ */ s(
|
|
3689
|
+
"svg",
|
|
3690
|
+
{
|
|
3691
|
+
fill: "none",
|
|
3692
|
+
height: "114",
|
|
3693
|
+
preserveAspectRatio: "none",
|
|
3694
|
+
viewBox: "0 0 163 114",
|
|
3695
|
+
width: "163",
|
|
3696
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3697
|
+
children: [
|
|
3698
|
+
/* @__PURE__ */ s(
|
|
3699
|
+
"path",
|
|
3700
|
+
{
|
|
3701
|
+
d: "M2 0.5H161C161.828 0.5 162.5 1.17157 162.5 2V110C162.5 111.933 160.933 113.5 159 113.5H4C2.067 113.5 0.5 111.933 0.5 110V2C0.5 1.17157 1.17157 0.5 2 0.5Z",
|
|
3702
|
+
stroke: "currentColor",
|
|
3703
|
+
strokeLinecap: "round"
|
|
3704
|
+
}
|
|
3705
|
+
),
|
|
3706
|
+
/* @__PURE__ */ s("path", { d: "M1 85H162", stroke: "currentColor" }),
|
|
3707
|
+
/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s(
|
|
3708
|
+
"filter",
|
|
3709
|
+
{
|
|
3710
|
+
colorInterpolationFilters: "sRGB",
|
|
3711
|
+
filterUnits: "userSpaceOnUse",
|
|
3712
|
+
height: "18.8096",
|
|
3713
|
+
id: "filter0_d",
|
|
3714
|
+
width: "151",
|
|
3715
|
+
x: "6",
|
|
3716
|
+
y: "93",
|
|
3717
|
+
children: [
|
|
3718
|
+
/* @__PURE__ */ s("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
3719
|
+
/* @__PURE__ */ s(
|
|
3720
|
+
"feColorMatrix",
|
|
3721
|
+
{
|
|
3722
|
+
in: "SourceAlpha",
|
|
3723
|
+
result: "hardAlpha",
|
|
3724
|
+
type: "matrix",
|
|
3725
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
3726
|
+
}
|
|
3727
|
+
),
|
|
3728
|
+
/* @__PURE__ */ s("feOffset", { dy: "4" }),
|
|
3729
|
+
/* @__PURE__ */ s("feGaussianBlur", { stdDeviation: "2" }),
|
|
3730
|
+
/* @__PURE__ */ s("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0.74902 0 0 0 0 0.698039 0 0 0 0.08 0" }),
|
|
3731
|
+
/* @__PURE__ */ s("feBlend", { in2: "BackgroundImageFix", mode: "darken", result: "effect1_dropShadow" }),
|
|
3732
|
+
/* @__PURE__ */ s("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow", mode: "normal", result: "shape" })
|
|
3733
|
+
]
|
|
3734
|
+
}
|
|
3735
|
+
) })
|
|
3736
|
+
]
|
|
3737
|
+
}
|
|
3738
|
+
);
|
|
3739
|
+
}
|
|
3740
|
+
const zs = Z.div`
|
|
3741
|
+
z-index: 1;
|
|
3742
|
+
position: absolute;
|
|
3743
|
+
top: ${(e) => e.$placeholderRectangle.shiftY * 100}%;
|
|
3744
|
+
bottom: ${(e) => (1 - e.$placeholderRectangle.shiftY - e.$placeholderRectangle.height) * 100}%;
|
|
3745
|
+
left: ${(e) => e.$placeholderRectangle.shiftX * 100}%;
|
|
3746
|
+
right: ${(e) => (1 - e.$placeholderRectangle.shiftX - e.$placeholderRectangle.width) * 100}%;
|
|
3747
|
+
color: ${(e) => e.$isInCandidateSelection ? `${e.theme.colors.placeholderColorSuccess}` : `${e.theme.colors.placeholderColor}`};
|
|
3748
|
+
|
|
3749
|
+
svg {
|
|
3750
|
+
width: 100%;
|
|
3751
|
+
height: 100%;
|
|
3752
|
+
}
|
|
3753
|
+
`, Gs = ({
|
|
3754
|
+
children: e,
|
|
3755
|
+
className: t,
|
|
3756
|
+
isInCandidateSelection: r,
|
|
3757
|
+
onAnimationEnd: n,
|
|
3758
|
+
placeholderRectangle: o
|
|
3759
|
+
}) => /* @__PURE__ */ s(
|
|
3760
|
+
zs,
|
|
3761
|
+
{
|
|
3762
|
+
$isInCandidateSelection: r,
|
|
3763
|
+
$placeholderRectangle: o,
|
|
3764
|
+
className: t,
|
|
3765
|
+
onAnimationEnd: n,
|
|
3766
|
+
children: e
|
|
3767
|
+
}
|
|
3768
|
+
), js = {
|
|
3769
|
+
[P.ID_CORNERS]: /* @__PURE__ */ s(Ms, {}),
|
|
3770
|
+
[P.ID_DASH]: /* @__PURE__ */ s(Rs, {}),
|
|
3771
|
+
[P.ID_DOT]: /* @__PURE__ */ s(As, {}),
|
|
3772
|
+
[P.ID_SOLID]: /* @__PURE__ */ s(Zs, {}),
|
|
3773
|
+
[P.ID_PHOTO_ROUNDED]: /* @__PURE__ */ s(Hs, {}),
|
|
3774
|
+
[P.ID_CORNERS_ROUNDED]: /* @__PURE__ */ s(Ds, {}),
|
|
3775
|
+
[P.ID_DASH_ROUNDED]: /* @__PURE__ */ s(Ts, {}),
|
|
3776
|
+
[P.ID_DOT_ROUNDED]: /* @__PURE__ */ s(Ps, {}),
|
|
3777
|
+
[P.ID_SOLID_ROUNDED]: /* @__PURE__ */ s(Bs, {}),
|
|
3778
|
+
[P.ID_SOLID_ROUNDED_BACK]: /* @__PURE__ */ s(Us, {}),
|
|
3779
|
+
[P.PASSPORT_SOLID_BACK]: /* @__PURE__ */ s(Ws, {}),
|
|
3780
|
+
[P.PASSPORT_SOLID_BACK_BLANK]: /* @__PURE__ */ s(Fs, {})
|
|
3781
|
+
};
|
|
3782
|
+
function qs({ backdropHeight: e, backdropWidth: t, placeholderRectangle: r, ...n }) {
|
|
3783
|
+
const { placeholder: o } = Ce(), i = o.toLowerCase().includes("passport"), a = o.toLowerCase().includes("rounded");
|
|
3784
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
3785
|
+
/* @__PURE__ */ s(vo, { height: e, width: t, children: /* @__PURE__ */ s(
|
|
3786
|
+
Is,
|
|
3787
|
+
{
|
|
3788
|
+
height: `${r.height * 100}%`,
|
|
3789
|
+
isPassport: i,
|
|
3790
|
+
isRounded: a,
|
|
3791
|
+
width: `${r.width * 100}%`,
|
|
3792
|
+
x: `${r.shiftX * 100}%`,
|
|
3793
|
+
y: `${r.shiftY * 100}%`
|
|
3794
|
+
}
|
|
3795
|
+
) }),
|
|
3796
|
+
/* @__PURE__ */ s(Gs, { placeholderRectangle: r, ...n, children: js[o] })
|
|
3797
|
+
] });
|
|
3798
|
+
}
|
|
3799
|
+
const Ys = () => {
|
|
3800
|
+
const [e, t] = F(), [r, n] = F(!1), o = _e(
|
|
3801
|
+
(f) => {
|
|
3802
|
+
var L, y;
|
|
3803
|
+
t((L = f == null ? void 0 : f.detail) == null ? void 0 : L.cameraResolution);
|
|
3804
|
+
const _ = (y = f == null ? void 0 : f.detail) == null ? void 0 : y.isMirroring;
|
|
3805
|
+
_ !== void 0 && n(_);
|
|
3806
|
+
},
|
|
3807
|
+
[t]
|
|
3808
|
+
);
|
|
3809
|
+
be(pe.CAMERA_PROPS_CHANGED, o);
|
|
3810
|
+
const [i, a] = F({
|
|
3811
|
+
code: T.DOCUMENT_NOT_PRESENT,
|
|
3812
|
+
// FIXME Default instruction should not be here
|
|
3813
|
+
isEscalated: !1
|
|
3814
|
+
}), c = _e(
|
|
3815
|
+
(f) => {
|
|
3816
|
+
var _, L;
|
|
3817
|
+
a({
|
|
3818
|
+
code: (_ = f == null ? void 0 : f.detail) == null ? void 0 : _.instructionCode,
|
|
3819
|
+
isEscalated: ((L = f == null ? void 0 : f.detail) == null ? void 0 : L.isEscalated) ?? !1
|
|
3820
|
+
});
|
|
3821
|
+
},
|
|
3822
|
+
[a]
|
|
3823
|
+
);
|
|
3824
|
+
be(pe.INSTRUCTION_CHANGED, c);
|
|
3825
|
+
const [u, d] = F(Y.LOADING), [h, l] = F(), p = _e(
|
|
3826
|
+
(f) => {
|
|
3827
|
+
var L, y;
|
|
3828
|
+
d((L = f.detail) == null ? void 0 : L.appState);
|
|
3829
|
+
const _ = (y = f == null ? void 0 : f.detail) == null ? void 0 : y.error;
|
|
3830
|
+
_ && l(_);
|
|
3831
|
+
},
|
|
3832
|
+
[d, l]
|
|
3833
|
+
);
|
|
3834
|
+
return be(pe.STATE_CHANGED, p), {
|
|
3835
|
+
cameraResolution: e,
|
|
3836
|
+
appState: u,
|
|
3837
|
+
error: h,
|
|
3838
|
+
instruction: i,
|
|
3839
|
+
isMirroring: r
|
|
3840
|
+
};
|
|
3841
|
+
};
|
|
3842
|
+
function Xs() {
|
|
3843
|
+
const { appState: e, cameraResolution: t, error: r, instruction: n, isMirroring: o } = Ys(), i = n.code === T.CANDIDATE_SELECTION, { escalatedInstructions: a, instructions: c, showDetectionLayer: u } = Ce(), d = Ba({
|
|
3844
|
+
escalatedInstructions: a,
|
|
3845
|
+
instructions: c,
|
|
3846
|
+
currentInstruction: n
|
|
3847
|
+
});
|
|
3848
|
+
return e === Y.ERROR ? /* @__PURE__ */ s(go, { text: r == null ? void 0 : r.message }) : e === Y.RUNNING && t ? /* @__PURE__ */ s(H, { children: [
|
|
3849
|
+
u && /* @__PURE__ */ s(ks, { cameraResolution: t, isImageMirror: o }),
|
|
3850
|
+
/* @__PURE__ */ s(
|
|
3851
|
+
qs,
|
|
3852
|
+
{
|
|
3853
|
+
backdropHeight: t.height,
|
|
3854
|
+
backdropWidth: t.width,
|
|
3855
|
+
isInCandidateSelection: i,
|
|
3856
|
+
placeholderRectangle: ss(t)
|
|
3857
|
+
}
|
|
3858
|
+
),
|
|
3859
|
+
d && /* @__PURE__ */ s(Ss, { cssTop: 50, isInCandidateSelection: i, children: d }),
|
|
3860
|
+
/* @__PURE__ */ s(
|
|
3861
|
+
ms,
|
|
3862
|
+
{
|
|
3863
|
+
customControlEvent: pe.CONTROL,
|
|
3864
|
+
isSwitchCameraDisabled: i
|
|
3865
|
+
}
|
|
3866
|
+
)
|
|
3867
|
+
] }) : /* @__PURE__ */ s(
|
|
3868
|
+
Ns,
|
|
3869
|
+
{
|
|
3870
|
+
cameraHeight: t == null ? void 0 : t.height,
|
|
3871
|
+
cameraWidth: t == null ? void 0 : t.width,
|
|
3872
|
+
isBackdrop: !0,
|
|
3873
|
+
state: e
|
|
3874
|
+
}
|
|
3875
|
+
);
|
|
3876
|
+
}
|
|
3877
|
+
const Ks = (e) => {
|
|
3878
|
+
var d, h;
|
|
3879
|
+
const t = { ...Ia, ...e == null ? void 0 : e.instructions }, r = {
|
|
3880
|
+
...Ma,
|
|
3881
|
+
...e == null ? void 0 : e.escalatedInstructions
|
|
3882
|
+
}, n = {
|
|
3883
|
+
[Y.LOADING]: { ...ln.loading, ...(d = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : d.loading },
|
|
3884
|
+
[Y.WAITING]: { ...ln.waiting, ...(h = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : h.waiting }
|
|
3885
|
+
}, o = (e == null ? void 0 : e.placeholder) ?? Da, i = (e == null ? void 0 : e.backdropColor) ?? Ra, 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
|
+
return {
|
|
3887
|
+
instructions: t,
|
|
3888
|
+
appStateInstructions: n,
|
|
3889
|
+
placeholder: o,
|
|
3890
|
+
backdropColor: i,
|
|
3891
|
+
showDetectionLayer: a,
|
|
3892
|
+
showCameraButtons: c,
|
|
3893
|
+
theme: u,
|
|
3894
|
+
escalatedInstructions: r
|
|
3895
|
+
};
|
|
3896
|
+
}, Js = ({ props: e }) => {
|
|
3897
|
+
const t = Ja(pe.VIDEO_ELEMENT_SIZE);
|
|
3898
|
+
return /* @__PURE__ */ s(qa, { uiProps: Ks(e), videoElementSize: t, children: /* @__PURE__ */ s(Xs, {}) });
|
|
3899
|
+
};
|
|
3900
|
+
Ao(Js, "x-dot-document-auto-capture-ui", ["props"]);
|