@ahmed_hani/dot-auto-capture-ui 7.4.0

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