UNPKG

@innovatrics/dot-auto-capture-ui

Version:
1,223 lines 119 kB
var Ye, C, _r, _e, $n, hr, pr, mr, on, Ut, zt, gr, Ve = {}, yr = [], bo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, qe = Array.isArray; function X(e, t) { for (var n in t) e[n] = t[n]; return e; } function an(e) { e && e.parentNode && e.parentNode.removeChild(e); } function F(e, t, n) { var r, o, i, a = {}; for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i]; if (arguments.length > 2 && (a.children = arguments.length > 3 ? Ye.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] === void 0 && (a[i] = e.defaultProps[i]); return Ge(e, a, r, o, null); } function Ge(e, t, n, r, o) { var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++_r, __i: -1, __u: 0 }; return o == null && C.vnode != null && C.vnode(i), i; } function $o() { return { current: null }; } function U(e) { return e.children; } function V(e, t) { this.props = e, this.context = t; } function be(e, t) { if (t == null) return e.__ ? be(e.__, e.__i + 1) : null; for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e; return typeof e.type == "function" ? be(e) : null; } function vr(e) { var t, n; if ((e = e.__) != null && e.__c != null) { for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) { e.__e = e.__c.base = n.__e; break; } return vr(e); } } function Bt(e) { (!e.__d && (e.__d = !0) && _e.push(e) && !pt.__r++ || $n != C.debounceRendering) && (($n = C.debounceRendering) || hr)(pt); } function pt() { for (var e, t, n, r, o, i, a, s = 1; _e.length; ) _e.length > s && _e.sort(pr), e = _e.shift(), s = _e.length, e.__d && (n = void 0, r = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = X({}, r)).__v = r.__v + 1, C.vnode && C.vnode(n), sn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? be(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, Sr(i, n, a), r.__e = r.__ = null, n.__e != o && vr(n))); pt.__r = 0; } function Cr(e, t, n, r, o, i, a, s, l, u, f) { var c, _, d, p, y, E, g, m = r && r.__k || yr, b = t.length; for (l = Oo(n, t, m, l, b), c = 0; c < b; c++) (d = n.__k[c]) != null && (_ = d.__i == -1 ? Ve : m[d.__i] || Ve, d.__i = c, E = sn(e, d, _, o, i, a, s, l, u, f), p = d.__e, d.ref && _.ref != d.ref && (_.ref && cn(_.ref, null, d), f.push(d.ref, d.__c || p, d)), y == null && p != null && (y = p), (g = !!(4 & d.__u)) || _.__k === d.__k ? l = Er(d, l, e, g) : typeof d.type == "function" && E !== void 0 ? l = E : p && (l = p.nextSibling), d.__u &= -7); return n.__e = y, l; } function Oo(e, t, n, r, o) { var i, a, s, l, u, f = n.length, c = f, _ = 0; for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? a = e.__k[i] = Ge(null, a, null, null, null) : qe(a) ? a = e.__k[i] = Ge(U, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? a = e.__k[i] = Ge(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : e.__k[i] = a, l = i + _, 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 > f ? _-- : o < f && _++), typeof a.type != "function" && (a.__u |= 4)) : u != l && (u == l - 1 ? _-- : u == l + 1 ? _++ : (u > l ? _-- : _++, a.__u |= 4))) : e.__k[i] = null; if (c) for (i = 0; i < f; i++) (s = n[i]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = be(s)), br(s, s)); return r; } function Er(e, t, n, r) { var o, i; if (typeof e.type == "function") { for (o = e.__k, i = 0; o && i < o.length; i++) o[i] && (o[i].__ = e, t = Er(o[i], t, n, r)); return t; } e.__e != t && (r && (t && e.type && !t.parentNode && (t = be(e)), n.insertBefore(e.__e, t || null)), t = e.__e); do t = t && t.nextSibling; while (t != null && t.nodeType == 8); return t; } function ne(e, t) { return t = t || [], e == null || typeof e == "boolean" || (qe(e) ? e.some(function(n) { ne(n, t); }) : t.push(e)), t; } function ko(e, t, n, r) { var o, i, a, s = e.key, l = e.type, u = t[n], f = u != null && (2 & u.__u) == 0; if (u === null && s == null || f && s == u.key && l == u.type) return n; if (r > (f ? 1 : 0)) { for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) if ((u = t[a = o >= 0 ? o-- : i++]) != null && (2 & u.__u) == 0 && s == u.key && l == u.type) return a; } return -1; } function On(e, t, n) { t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || bo.test(t) ? n : n + "px"; } function tt(e, t, n, r, o) { var i, a; e: if (t == "style") if (typeof n == "string") e.style.cssText = n; else { if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || On(e.style, t, ""); if (n) for (t in n) r && n[t] == r[t] || On(e.style, t, n[t]); } else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(mr, "$1")), a = t.toLowerCase(), t = a in e || t == "onFocusOut" || t == "onFocusIn" ? a.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = on, e.addEventListener(t, i ? zt : Ut, i)) : e.removeEventListener(t, i ? zt : Ut, i); else { if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); 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 { e[t] = n ?? ""; break e; } catch { } typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n)); } } function kn(e) { return function(t) { if (this.l) { var n = this.l[t.type + e]; if (t.t == null) t.t = on++; else if (t.t < n.u) return; return n(C.event ? C.event(t) : t); } }; } function sn(e, t, n, r, o, i, a, s, l, u) { var f, c, _, d, p, y, E, g, m, b, O, N, w, v, z, B, Le, G = t.type; if (t.constructor != null) return null; 128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (f = C.__b) && f(t); e: if (typeof G == "function") try { if (g = t.props, m = "prototype" in G && G.prototype.render, b = (f = G.contextType) && r[f.__c], O = f ? b ? b.props.value : f.__ : r, n.__c ? E = (c = t.__c = n.__c).__ = c.__E : (m ? t.__c = c = new G(g, O) : (t.__c = c = new V(g, O), c.constructor = G, c.render = To), b && b.sub(c), c.state || (c.state = {}), c.__n = r, _ = c.__d = !0, c.__h = [], c._sb = []), m && c.__s == null && (c.__s = c.state), m && G.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = X({}, c.__s)), X(c.__s, G.getDerivedStateFromProps(g, c.__s))), d = c.props, p = c.state, c.__v = t, _) m && G.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), m && c.componentDidMount != null && c.__h.push(c.componentDidMount); else { if (m && G.getDerivedStateFromProps == null && g !== d && c.componentWillReceiveProps != null && c.componentWillReceiveProps(g, O), t.__v == n.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(g, c.__s, O) === !1) { for (t.__v != n.__v && (c.props = g, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(ae) { ae && (ae.__ = t); }), N = 0; N < c._sb.length; N++) c.__h.push(c._sb[N]); c._sb = [], c.__h.length && a.push(c); break e; } c.componentWillUpdate != null && c.componentWillUpdate(g, c.__s, O), m && c.componentDidUpdate != null && c.__h.push(function() { c.componentDidUpdate(d, p, y); }); } if (c.context = O, c.props = g, c.__P = e, c.__e = !1, w = C.__r, v = 0, m) { for (c.state = c.__s, c.__d = !1, w && w(t), f = c.render(c.props, c.state, c.context), z = 0; z < c._sb.length; z++) c.__h.push(c._sb[z]); c._sb = []; } else do c.__d = !1, w && w(t), f = c.render(c.props, c.state, c.context), c.state = c.__s; while (c.__d && ++v < 25); c.state = c.__s, c.getChildContext != null && (r = X(X({}, r), c.getChildContext())), m && !_ && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(d, p)), B = f, f != null && f.type === U && f.key == null && (B = wr(f.props.children)), s = Cr(e, qe(B) ? B : [B], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), E && (c.__E = c.__ = null); } catch (ae) { if (t.__v = null, l || i != null) if (ae.then) { for (t.__u |= l ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling; i[i.indexOf(s)] = null, t.__e = s; } else { for (Le = i.length; Le--; ) an(i[Le]); Gt(t); } else t.__e = n.__e, t.__k = n.__k, ae.then || Gt(t); C.__e(ae, t, n); } else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = No(n.__e, t, n, r, o, i, a, l, u); return (f = C.diffed) && f(t), 128 & t.__u ? void 0 : s; } function Gt(e) { e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(Gt); } function Sr(e, t, n) { for (var r = 0; r < n.length; r++) cn(n[r], n[++r], n[++r]); C.__c && C.__c(t, e), e.some(function(o) { try { e = o.__h, o.__h = [], e.some(function(i) { i.call(o); }); } catch (i) { C.__e(i, o.__v); } }); } function wr(e) { return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : qe(e) ? e.map(wr) : X({}, e); } function No(e, t, n, r, o, i, a, s, l) { var u, f, c, _, d, p, y, E = n.props || Ve, g = t.props, m = t.type; if (m == "svg" ? o = "http://www.w3.org/2000/svg" : m == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) { for (u = 0; u < i.length; u++) if ((d = i[u]) && "setAttribute" in d == !!m && (m ? d.localName == m : d.nodeType == 3)) { e = d, i[u] = null; break; } } if (e == null) { if (m == null) return document.createTextNode(g); e = document.createElementNS(o, m, g.is && g), s && (C.__m && C.__m(t, i), s = !1), i = null; } if (m == null) E === g || s && e.data == g || (e.data = g); else { if (i = i && Ye.call(e.childNodes), !s && i != null) for (E = {}, u = 0; u < e.attributes.length; u++) E[(d = e.attributes[u]).name] = d.value; for (u in E) if (d = E[u], u != "children") { if (u == "dangerouslySetInnerHTML") c = d; else if (!(u in g)) { if (u == "value" && "defaultValue" in g || u == "checked" && "defaultChecked" in g) continue; tt(e, u, null, d, o); } } for (u in g) d = g[u], u == "children" ? _ = d : u == "dangerouslySetInnerHTML" ? f = d : u == "value" ? p = d : u == "checked" ? y = d : s && typeof d != "function" || E[u] === d || tt(e, u, d, E[u], o); if (f) s || c && (f.__html == c.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = []; else if (c && (e.innerHTML = ""), Cr(t.type == "template" ? e.content : e, qe(_) ? _ : [_], t, n, r, m == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && be(n, 0), s, l), i != null) for (u = i.length; u--; ) an(i[u]); s || (u = "value", m == "progress" && p == null ? e.removeAttribute("value") : p != null && (p !== e[u] || m == "progress" && !p || m == "option" && p != E[u]) && tt(e, u, p, E[u], o), u = "checked", y != null && y != e[u] && tt(e, u, y, E[u], o)); } return e; } function cn(e, t, n) { try { if (typeof e == "function") { var r = typeof e.__u == "function"; r && e.__u(), r && t == null || (e.__u = e(t)); } else e.current = t; } catch (o) { C.__e(o, n); } } function br(e, t, n) { var r, o; if (C.unmount && C.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || cn(r, null, t)), (r = e.__c) != null) { if (r.componentWillUnmount) try { r.componentWillUnmount(); } catch (i) { C.__e(i, t); } r.base = r.__P = null; } if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && br(r[o], t, n || typeof e.type != "function"); n || an(e.__e), e.__c = e.__ = e.__e = void 0; } function To(e, t, n) { return this.constructor(e, n); } function ue(e, t, n) { var r, o, i, a; t == document && (t = document.documentElement), C.__ && C.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], sn(t, e = (!r && n || t).__k = F(U, null, [e]), o || Ve, Ve, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ye.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), Sr(i, e, a); } function ln(e, t) { ue(e, t, ln); } function un(e, t, n) { var r, o, i, a, s = X({}, e.props); 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] === void 0 && a != null ? a[i] : t[i]; return arguments.length > 2 && (s.children = arguments.length > 3 ? Ye.call(arguments, 2) : n), Ge(e.type, s, r || e.key, o || e.ref, null); } function $r(e) { function t(n) { var r, o; return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() { return o; }, this.componentWillUnmount = function() { r = null; }, this.shouldComponentUpdate = function(i) { this.props.value != i.value && r.forEach(function(a) { a.__e = !0, Bt(a); }); }, this.sub = function(i) { r.add(i); var a = i.componentWillUnmount; i.componentWillUnmount = function() { r && r.delete(i), a && a.call(i); }; }), n.children; } return t.__c = "__cC" + gr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) { return n.children(r); }).contextType = t, t; } Ye = yr.slice, C = { __e: function(e, t, n, r) { for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try { 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; } catch (s) { e = s; } throw e; } }, _r = 0, V.prototype.setState = function(e, t) { var n; n = this.__s != null && this.__s != this.state ? this.__s : this.__s = X({}, this.state), typeof e == "function" && (e = e(X({}, n), this.props)), e && X(n, e), e != null && this.__v && (t && this._sb.push(t), Bt(this)); }, V.prototype.forceUpdate = function(e) { this.__v && (this.__e = !0, e && this.__h.push(e), Bt(this)); }, V.prototype.render = U, _e = [], hr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, pr = function(e, t) { return e.__v.__b - t.__v.__b; }, pt.__r = 0, mr = /(PointerCapture)$|Capture$/i, on = 0, Ut = kn(!1), zt = kn(!0), gr = 0; function mt() { return mt = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, mt.apply(this, arguments); } function Or(e, t) { if (e == null) return {}; var n, r, o = {}, i = Object.keys(e); for (r = 0; r < i.length; r++) t.indexOf(n = i[r]) >= 0 || (o[n] = e[n]); return o; } var Ro = ["context", "children"], Io = ["useFragment"]; function xo(e, t, n, r) { function o() { var i = Reflect.construct(HTMLElement, [], o); return i._vdomComponent = e, i._root = i, i; } return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = function() { Po.call(this, r); }, o.prototype.attributeChangedCallback = Lo, o.prototype.disconnectedCallback = Do, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, e.formAssociated && (o.formAssociated = !0), n.forEach(function(i) { Object.defineProperty(o.prototype, i, { get: function() { return this._vdom ? this._vdom.props[i] : this._props[i]; }, set: function(a) { this._vdom ? this.attributeChangedCallback(i, null, a) : (this._props || (this._props = {}), this._props[i] = a); var s = typeof a; a != null && s !== "string" && s !== "boolean" && s !== "number" || this.setAttribute(i, a); } }); }), customElements.define(t, o), o; } function Ao(e) { this.getChildContext = function() { return e.context; }; var t = e.children, n = Or(e, Ro); return un(t, n); } function Po(e) { var t = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 }); this.dispatchEvent(t), this._vdom = F(Ao, mt({}, this._props, { context: t.detail.context }), Nr(this, this._vdomComponent, e)), (this.hasAttribute("hydrate") ? ln : ue)(this._vdom, this._root); } function kr(e) { return e.replace(/-(\w)/g, function(t, n) { return n ? n.toUpperCase() : ""; }); } function Lo(e, t, n) { if (this._vdom) { var r = {}; r[e] = n = n ?? void 0, r[kr(e)] = n, this._vdom = un(this._vdom, r), ue(this._vdom, this._root); } } function Do() { ue(this._vdom = null, this._root); } function Nn(e, t) { var n = this, r = e.useFragment, o = Or(e, Io); return F(r ? U : "slot", mt({}, o, { ref: function(i) { i ? (n.ref = i, n._listener || (n._listener = function(a) { a.stopPropagation(), a.detail.context = t; }, i.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener); } })); } function Nr(e, t, n) { if (e.nodeType === 3) return e.data; if (e.nodeType !== 1) return null; var r = [], o = {}, i = 0, a = e.attributes, s = e.childNodes; for (i = a.length; i--; ) a[i].name !== "slot" && (o[a[i].name] = a[i].value, o[kr(a[i].name)] = a[i].value); for (i = s.length; i--; ) { var l = Nr(s[i], null, n), u = s[i].slot; u ? o[u] = F(Nn, { name: u }, l) : r[i] = l; } var f = !(!n || !n.shadow), c = t ? F(Nn, { useFragment: !f }, r) : r; return !f && t && (e.innerHTML = ""), F(t || e.nodeName.toLowerCase(), o, c); } var Mo = 0; function h(e, t, n, r, o, i) { t || (t = {}); var a, s, l = t; if ("ref" in l) for (s in l = {}, t) s == "ref" ? a = t[s] : l[s] = t[s]; var u = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Mo, __i: -1, __u: 0, __source: o, __self: i }; if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]); return C.vnode && C.vnode(u), u; } const Tn = { SWITCH_CAMERA: "switch-camera", TOGGLE_MIRROR: "toggle-mirror" }, le = { DETECTION_CHANGED: "multi-range-auto-capture:detection-changed", CAMERA_PROPS_CHANGED: "multi-range-auto-capture:camera-props-changed", CONTROL: "multi-range-auto-capture:control", INSTRUCTION_CHANGED: "multi-range-auto-capture:instruction-changed", VIDEO_ELEMENT_SIZE: "multi-range-auto-capture:video-element-size", CHALLENGE_VALUE_CHANGED: "multi-range-auto-capture:challenge-value-changed", STATE_CHANGED: "multi-range-auto-capture:state-changed" }, P = { LOADING: "loading", ERROR: "error", WAITING: "waiting", // TODO: this state may not be needed in the new architecture - consider removing on next major release version RUNNING: "running", COMPLETE: "complete", BLURRED: "blurred" }, Rn = { EYE_NOT_PRESENT: "eye_not_present" }, H = { CANDIDATE_SELECTION: "candidate_selection", FACE_TOO_CLOSE: "face_too_close", FACE_TOO_FAR: "face_too_far", FACE_CENTERING: "face_centering", FACE_NOT_PRESENT: "face_not_present", SHARPNESS_TOO_LOW: "sharpness_too_low", BRIGHTNESS_TOO_LOW: "brightness_too_low", BRIGHTNESS_TOO_HIGH: "brightness_too_high", DEVICE_PITCHED: "device_pitched", LEFT_EYE_NOT_PRESENT: `left_${Rn.EYE_NOT_PRESENT}`, RIGHT_EYE_NOT_PRESENT: `right_${Rn.EYE_NOT_PRESENT}`, MOUTH_NOT_PRESENT: "mouth_not_present", MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high", MOUTH_SCORE_TOO_LOW: "mouth_score_too_low" }, $e = { CANDIDATE_SELECTION: "candidate_selection", FACE_TOO_CLOSE: "face_too_close", FACE_TOO_FAR: "face_too_far", FACE_NOT_PRESENT: "face_not_present" }, Se = { ZERO: "ZERO", ONE: "ONE", TWO: "TWO", THREE: "THREE", FOUR: "FOUR", FIVE: "FIVE" }; var fe, R, At, In, Oe = 0, Tr = [], I = C, xn = I.__b, An = I.__r, Pn = I.diffed, Ln = I.__c, Dn = I.unmount, Mn = I.__; function Ie(e, t) { I.__h && I.__h(R, e, Oe || t), Oe = 0; var n = R.__H || (R.__H = { __: [], __h: [] }); return e >= n.__.length && n.__.push({}), n.__[e]; } function L(e) { return Oe = 1, fn(xr, e); } function fn(e, t, n) { var r = Ie(fe++, 2); if (r.t = e, !r.__c && (r.__ = [n ? n(t) : xr(void 0, t), function(s) { var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, s); l !== u && (r.__N = [u, r.__[1]], r.__c.setState({})); }], r.__c = R, !R.__f)) { var o = function(s, l, u) { if (!r.__c.__H) return !0; var f = r.__c.__H.__.filter(function(_) { return !!_.__c; }); if (f.every(function(_) { return !_.__N; })) return !i || i.call(this, s, l, u); var c = r.__c.props !== s; return f.forEach(function(_) { if (_.__N) { var d = _.__[0]; _.__ = _.__N, _.__N = void 0, d !== _.__[0] && (c = !0); } }), i && i.call(this, s, l, u) || c; }; R.__f = !0; var i = R.shouldComponentUpdate, a = R.componentWillUpdate; R.componentWillUpdate = function(s, l, u) { if (this.__e) { var f = i; i = void 0, o(s, l, u), i = f; } a && a.call(this, s, l, u); }, R.shouldComponentUpdate = o; } return r.__N || r.__; } function J(e, t) { var n = Ie(fe++, 3); !I.__s && dn(n.__H, t) && (n.__ = e, n.u = t, R.__H.__h.push(n)); } function xe(e, t) { var n = Ie(fe++, 4); !I.__s && dn(n.__H, t) && (n.__ = e, n.u = t, R.__h.push(n)); } function Xe(e) { return Oe = 5, re(function() { return { current: e }; }, []); } function Rr(e, t, n) { Oe = 6, xe(function() { if (typeof e == "function") { var r = e(t()); return function() { e(null), r && typeof r == "function" && r(); }; } if (e) return e.current = t(), function() { return e.current = null; }; }, n == null ? n : n.concat(e)); } function re(e, t) { var n = Ie(fe++, 7); return dn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__; } function Z(e, t) { return Oe = 8, re(function() { return e; }, t); } function Ke(e) { var t = R.context[e.__c], n = Ie(fe++, 9); return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(R)), t.props.value) : e.__; } function gt(e, t) { I.useDebugValue && I.useDebugValue(t ? t(e) : e); } function Ir() { var e = Ie(fe++, 11); if (!e.__) { for (var t = R.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__; var n = t.__m || (t.__m = [0, 0]); e.__ = "P" + n[0] + "-" + n[1]++; } return e.__; } function Fo() { for (var e; e = Tr.shift(); ) if (e.__P && e.__H) try { e.__H.__h.forEach(st), e.__H.__h.forEach(Wt), e.__H.__h = []; } catch (t) { e.__H.__h = [], I.__e(t, e.__v); } } I.__b = function(e) { R = null, xn && xn(e); }, I.__ = function(e, t) { e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Mn && Mn(e, t); }, I.__r = function(e) { An && An(e), fe = 0; var t = (R = e.__c).__H; t && (At === R ? (t.__h = [], R.__h = [], t.__.forEach(function(n) { n.__N && (n.__ = n.__N), n.u = n.__N = void 0; })) : (t.__h.forEach(st), t.__h.forEach(Wt), t.__h = [], fe = 0)), At = R; }, I.diffed = function(e) { Pn && Pn(e); var t = e.__c; t && t.__H && (t.__H.__h.length && (Tr.push(t) !== 1 && In === I.requestAnimationFrame || ((In = I.requestAnimationFrame) || Ho)(Fo)), t.__H.__.forEach(function(n) { n.u && (n.__H = n.u), n.u = void 0; })), At = R = null; }, I.__c = function(e, t) { t.some(function(n) { try { n.__h.forEach(st), n.__h = n.__h.filter(function(r) { return !r.__ || Wt(r); }); } catch (r) { t.some(function(o) { o.__h && (o.__h = []); }), t = [], I.__e(r, n.__v); } }), Ln && Ln(e, t); }, I.unmount = function(e) { Dn && Dn(e); var t, n = e.__c; n && n.__H && (n.__H.__.forEach(function(r) { try { st(r); } catch (o) { t = o; } }), n.__H = void 0, t && I.__e(t, n.__v)); }; var Fn = typeof requestAnimationFrame == "function"; function Ho(e) { var t, n = function() { clearTimeout(r), Fn && cancelAnimationFrame(t), setTimeout(e); }, r = setTimeout(n, 35); Fn && (t = requestAnimationFrame(n)); } function st(e) { var t = R, n = e.__c; typeof n == "function" && (e.__c = void 0, n()), R = t; } function Wt(e) { var t = R; e.__c = e.__(), R = t; } function dn(e, t) { return !e || e.length !== t.length || t.some(function(n, r) { return n !== e[r]; }); } function xr(e, t) { return typeof t == "function" ? t(e) : t; } var D = function() { return D = Object.assign || function(t) { for (var n, r = 1, o = arguments.length; r < o; r++) { n = arguments[r]; for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]); } return t; }, D.apply(this, arguments); }; function ye(e, t, n) { if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++) (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]); return e.concat(i || Array.prototype.slice.call(t)); } function Uo(e) { var t = /* @__PURE__ */ Object.create(null); return function(n) { return t[n] === void 0 && (t[n] = e(n)), t[n]; }; } 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( function(e) { return zo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ); function Ar(e, t) { for (var n in t) e[n] = t[n]; return e; } function jt(e, t) { for (var n in e) if (n !== "__source" && !(n in t)) return !0; for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0; return !1; } function Pr(e, t) { var n = t(), r = L({ t: { __: n, u: t } }), o = r[0].t, i = r[1]; return xe(function() { o.__ = n, o.u = t, Pt(o) && i({ t: o }); }, [e, n, t]), J(function() { return Pt(o) && i({ t: o }), e(function() { Pt(o) && i({ t: o }); }); }, [e]), n; } function Pt(e) { var t, n, r = e.u, o = e.__; try { var i = r(); return !((t = o) === (n = i) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n); } catch { return !0; } } function Lr(e) { e(); } function Dr(e) { return e; } function Mr() { return [!1, Lr]; } var Fr = xe; function Vt(e, t) { this.props = e, this.context = t; } function Go(e, t) { function n(o) { var i = this.props.ref, a = i == o.ref; return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : jt(this.props, o); } function r(o) { return this.shouldComponentUpdate = n, F(e, o); } return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r; } (Vt.prototype = new V()).isPureReactComponent = !0, Vt.prototype.shouldComponentUpdate = function(e, t) { return jt(this.props, e) || jt(this.state, t); }; var Hn = C.__b; C.__b = function(e) { e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Hn && Hn(e); }; var Wo = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911; function jo(e) { function t(n) { var r = Ar({}, n); return delete r.ref, e(r, n.ref || null); } return t.$$typeof = Wo, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t; } var Un = function(e, t) { return e == null ? null : ne(ne(e).map(t)); }, Vo = { map: Un, forEach: Un, count: function(e) { return e ? ne(e).length : 0; }, only: function(e) { var t = ne(e); if (t.length !== 1) throw "Children.only"; return t[0]; }, toArray: ne }, Zo = C.__e; C.__e = function(e, t, n, r) { if (e.then) { 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); } Zo(e, t, n, r); }; var zn = C.unmount; function Hr(e, t, n) { return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) { typeof r.__c == "function" && r.__c(); }), e.__c.__H = null), (e = Ar({}, 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) { return Hr(r, t, n); })), e; } function Ur(e, t, n) { return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) { return Ur(r, t, n); }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e; } function ct() { this.__u = 0, this.o = null, this.__b = null; } function zr(e) { var t = e.__.__c; return t && t.__a && t.__a(e); } function Yo(e) { var t, n, r, o = null; function i(a) { if (t || (t = e()).then(function(s) { s && (o = s.default || s), r = !0; }, function(s) { n = s, r = !0; }), n) throw n; if (!r) throw t; return o ? F(o, a) : null; } return i.displayName = "Lazy", i.__f = !0, i; } function Ue() { this.i = null, this.l = null; } C.unmount = function(e) { var t = e.__c; t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), zn && zn(e); }, (ct.prototype = new V()).__c = function(e, t) { var n = t.__c, r = this; r.o == null && (r.o = []), r.o.push(n); var o = zr(r.__v), i = !1, a = function() { i || (i = !0, n.__R = null, o ? o(s) : s()); }; n.__R = a; var s = function() { if (!--r.__u) { if (r.state.__a) { var l = r.state.__a; r.__v.__k[0] = Ur(l, l.__c.__P, l.__c.__O); } var u; for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate(); } }; r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a); }, ct.prototype.componentWillUnmount = function() { this.o = []; }, ct.prototype.render = function(e, t) { if (this.__b) { if (this.__v.__k) { var n = document.createElement("div"), r = this.__v.__k[0].__c; this.__v.__k[0] = Hr(this.__b, n, r.__O = r.__P); } this.__b = null; } var o = t.__a && F(U, null, e.fallback); return o && (o.__u &= -33), [F(U, null, t.__a ? null : e.children), o]; }; var Bn = function(e, t, n) { 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; ) { for (; n.length > 3; ) n.pop()(); if (n[1] < n[0]) break; e.i = n = n[2]; } }; function qo(e) { return this.getChildContext = function() { return e.context; }, e.children; } function Xo(e) { var t = this, n = e.h; if (t.componentWillUnmount = function() { ue(null, t.v), t.v = null, t.h = null; }, t.h && t.h !== n && t.componentWillUnmount(), !t.v) { for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__; t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() { return !0; }, insertBefore: function(o, i) { this.childNodes.push(o), t.h.insertBefore(o, i); }, removeChild: function(o) { this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o); } }; } ue(F(qo, { context: t.context }, e.__v), t.v); } function Ko(e, t) { var n = F(Xo, { __v: e, h: t }); return n.containerInfo = t, n; } (Ue.prototype = new V()).__a = function(e) { var t = this, n = zr(t.__v), r = t.l.get(e); return r[0]++, function(o) { var i = function() { t.props.revealOrder ? (r.push(o), Bn(t, e, r)) : o(); }; n ? n(i) : i(); }; }, Ue.prototype.render = function(e) { this.i = null, this.l = /* @__PURE__ */ new Map(); var t = ne(e.children); e.revealOrder && e.revealOrder[0] === "b" && t.reverse(); for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]); return e.children; }, Ue.prototype.componentDidUpdate = Ue.prototype.componentDidMount = function() { var e = this; this.l.forEach(function(t, n) { Bn(e, n, t); }); }; var Br = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, Jo = /^(?: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]/, Qo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ei = /[A-Z0-9]/g, ti = typeof document < "u", ni = function(e) { return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e); }; function ri(e, t, n) { return t.__k == null && (t.textContent = ""), ue(e, t), typeof n == "function" && n(), e ? e.__c : null; } function oi(e, t, n) { return ln(e, t), typeof n == "function" && n(), e ? e.__c : null; } V.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) { Object.defineProperty(V.prototype, e, { configurable: !0, get: function() { return this["UNSAFE_" + e]; }, set: function(t) { Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t }); } }); }); var Gn = C.event; function ii() { } function ai() { return this.cancelBubble; } function si() { return this.defaultPrevented; } C.event = function(e) { return Gn && (e = Gn(e)), e.persist = ii, e.isPropagationStopped = ai, e.isDefaultPrevented = si, e.nativeEvent = e; }; var _n, ci = { enumerable: !1, configurable: !0, get: function() { return this.class; } }, Wn = C.vnode; C.vnode = function(e) { typeof e.type == "string" && (function(t) { var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1; for (var a in n) { var s = n[a]; if (!(a === "value" && "defaultValue" in n && s == null || ti && a === "children" && r === "noscript" || a === "class" || a === "className")) { var l = a.toLowerCase(); 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" || ni(n.type) ? l === "onfocus" ? a = "onfocusin" : l === "onblur" ? a = "onfocusout" : Qo.test(a) && (a = l) : l = a = "oninput" : i && Jo.test(a) ? a = a.replace(ei, "-$&").toLowerCase() : s === null && (s = void 0), l === "oninput" && o[a = l] && (a = "oninputCapture"), o[a] = s; } } r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ne(n.children).forEach(function(u) { u.props.selected = o.value.indexOf(u.props.value) != -1; })), r == "select" && o.defaultValue != null && (o.value = ne(n.children).forEach(function(u) { u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value; })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", ci)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o; })(e), e.$$typeof = Br, Wn && Wn(e); }; var jn = C.__r; C.__r = function(e) { jn && jn(e), _n = e.__c; }; var Vn = C.diffed; C.diffed = function(e) { Vn && Vn(e); var t = e.props, n = e.__e; n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), _n = null; }; var li = { ReactCurrentDispatcher: { current: { readContext: function(e) { return _n.__n[e.__c].props.value; }, useCallback: Z, useContext: Ke, useDebugValue: gt, useDeferredValue: Dr, useEffect: J, useId: Ir, useImperativeHandle: Rr, useInsertionEffect: Fr, useLayoutEffect: xe, useMemo: re, useReducer: fn, useRef: Xe, useState: L, useSyncExternalStore: Pr, useTransition: Mr } } }; function ui(e) { return F.bind(null, e); } function Et(e) { return !!e && e.$$typeof === Br; } function fi(e) { return Et(e) && e.type === U; } function di(e) { return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo("); } function _i(e) { return Et(e) ? un.apply(null, arguments) : e; } function hi(e) { return !!e.__k && (ue(null, e), !0); } function pi(e) { return e && (e.base || e.nodeType === 1 && e) || null; } var mi = function(e, t) { return e(t); }, gi = function(e, t) { return e(t); }, yi = U, vi = Et, ie = { useState: L, useId: Ir, useReducer: fn, useEffect: J, useLayoutEffect: xe, useInsertionEffect: Fr, useTransition: Mr, useDeferredValue: Dr, useSyncExternalStore: Pr, startTransition: Lr, useRef: Xe, useImperativeHandle: Rr, useMemo: re, useCallback: Z, useContext: Ke, useDebugValue: gt, version: "18.3.1", Children: Vo, render: ri, hydrate: oi, unmountComponentAtNode: hi, createPortal: Ko, createElement: F, createContext: $r, createFactory: ui, cloneElement: _i, createRef: $o, Fragment: U, isValidElement: Et, isElement: vi, isFragment: fi, isMemo: di, findDOMNode: pi, Component: V, PureComponent: Vt, memo: Go, forwardRef: jo, flushSync: gi, unstable_batchedUpdates: mi, StrictMode: yi, Suspense: ct, SuspenseList: Ue, lazy: Yo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: li }; function Ci(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Lt, Zn; function Ei() { return Zn || (Zn = 1, Lt = function(t, n, r, o) { var i = r ? r.call(o, t, n) : void 0; if (i !== void 0) return !!i; if (t === n) return !0; if (typeof t != "object" || !t || typeof n != "object" || !n) return !1; var a = Object.keys(t), s = Object.keys(n); if (a.length !== s.length) return !1; for (var l = Object.prototype.hasOwnProperty.bind(n), u = 0; u < a.length; u++) { var f = a[u]; if (!l(f)) return !1; var c = t[f], _ = n[f]; if (i = r ? r.call(o, c, _, f) : void 0, i === !1 || i === void 0 && c !== _) return !1; } return !0; }), Lt; } var Si = Ei(); const wi = /* @__PURE__ */ Ci(Si); var T = "-ms-", We = "-moz-", k = "-webkit-", Gr = "comm", St = "rule", hn = "decl", bi = "@import", Wr = "@keyframes", $i = "@layer", jr = Math.abs, pn = String.fromCharCode, Zt = Object.assign; function Oi(e, t) { return A(e, 0) ^ 45 ? (((t << 2 ^ A(e, 0)) << 2 ^ A(e, 1)) << 2 ^ A(e, 2)) << 2 ^ A(e, 3) : 0; } function Vr(e) { return e.trim(); } function ee(e, t) { return (e = t.exec(e)) ? e[0] : e; } function S(e, t, n) { return e.replace(t, n); } function lt(e, t, n) { return e.indexOf(t, n); } function A(e, t) { return e.charCodeAt(t) | 0; } function ke(e, t, n) { return e.slice(t, n); } function q(e) { return e.length; } function Zr(e) { return e.length; } function ze(e, t) { return t.push(e), e; } function ki(e, t) { return e.map(t).join(""); } function Yn(e, t) { return e.filter(function(n) { return !ee(n, t); }); } var wt = 1, Ne = 1, Yr = 0, j = 0, x = 0, Ae = ""; function bt(e, t, n, r, o, i, a, s) { return { value: e, root: t, parent: n, type: r, props: o, children: i, line: wt, column: Ne, length: a, return: "", siblings: s }; } function ce(e, t) { return Zt(bt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t); } function we(e) { for (; e.root; ) e = ce(e.root, { children: [e] }); ze(e, e.siblings); } function Ni() { return x; } function Ti() { return x = j > 0 ? A(Ae, --j) : 0, Ne--, x === 10 && (Ne = 1, wt--), x; } function Y() { return x = j < Yr ? A(Ae, j++) : 0, Ne++, x === 10 && (Ne = 1, wt++), x; } function me() { return A(Ae, j); } function ut() { return j; } function $t(e, t) { return ke(Ae, e, t); } function Yt(e) { switch (e) { // \0 \t \n \r \s whitespace token case 0: case 9: case 10: case 13: case 32: return 5; // ! + , / > @ ~ isolate token case 33: case 43: case 44: case 47: case 62: case 64: case 126: // ; { } breakpoint token case 59: case 123: case 125: return 4; // : accompanied token case 58: return 3; // " ' ( [ opening delimit token case 34: case 39: case 40: case 91: return 2; // ) ] closing delimit token case 41: case 93: return 1; } return 0; } function Ri(e) { return wt = Ne = 1, Yr = q(Ae = e), j = 0, []; } function Ii(e) { return Ae = "", e; } function Dt(e) { return Vr($t(j - 1, qt(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function xi(e) { for (; (x = me()) && x < 33; ) Y(); return Yt(e) > 2 || Yt(x) > 3 ? "" : " "; } function Ai(e, t) { for (; --t && Y() && !(x < 48 || x > 102 || x > 57 && x < 65 || x > 70 && x < 97); ) ; return $t(e, ut() + (t < 6 && me() == 32 && Y() == 32)); } function qt(e) { for (; Y(); ) switch (x) { // ] ) " ' case e: return j; // " ' case 34: case 39: e !== 34 && e !== 39 && qt(x); break; // ( case 40: e === 41 && qt(e); break; // \ case 92: Y(); break; } return j; } function Pi(e, t) { for (; Y() && e + x !== 57; ) if (e + x === 84 && me() === 47) break; return "/*" + $t(t, j - 1) + "*" + pn(e === 47 ? e : Y()); } function Li(e) { for (; !Yt(me()); ) Y(); return $t(e, j); } function Di(e) { return Ii(ft("", null, null, null, [""], e = Ri(e), 0, [0], e)); } function ft(e, t, n, r, o, i, a, s, l) { for (var u = 0, f = 0, c = a, _ = 0, d = 0, p = 0, y = 1, E = 1, g = 1, m = 0, b = "", O = o, N = i, w = r, v = b; E; ) switch (p = m, m = Y()) { // ( case 40: if (p != 108 && A(v, c - 1) == 58) { lt(v += S(Dt(m), "&", "&\f"), "&\f", jr(u ? s[u - 1] : 0)) != -1 && (g = -1); break; } // " ' [ case 34: case 39: case 91: v += Dt(m); break; // \t \n \r \s case 9: case 10: case 13: case 32: v += xi(p); break; // \ case 92: v += Ai(ut() - 1, 7); continue; // / case 47: switch (me()) { case 42: case 47: ze(Mi(Pi(Y(), ut()), t, n, l), l); break; default: v += "/"; } break; // { case 123 * y: s[u++] = q(v) * g; // } ; \0 case 125 * y: case 59: case 0: switch (m) { // \0 } case 0: case 125: E = 0; // ; case 59 + f: g == -1 && (v = S(v, /\f/g, "")), d > 0 && q(v) - c && ze(d > 32 ? Xn(v + ";", r, n, c - 1, l) : Xn(S(v, " ", "") + ";", r, n, c - 2, l), l); break; // @ ; case 59: v += ";"; // { rule/at-rule default: if (ze(w = qn(v, t, n, u, f, o, s, b, O = [], N = [], c, i), i), m === 123) if (f === 0) ft(v, t, w, w, O, i, c, s, N); else switch (_ === 99 && A(v, 3) === 110 ? 100 : _) { // d l m s case 100: case 108: case 109: case 115: ft(e, w, w, r && ze(qn(e, w, w, 0, 0, o, s, b, o, O = [], c, N), N), o, N, c, s, r ? O : N); break; default: ft(v, w, w, w, [""], N, 0, s, N); } } u = f = d = 0, y = g = 1, b = v = "", c = a; break; // : case 58: c = 1 + q(v), d = p; default: if (y < 1) { if (m == 123) --y; else if (m == 125 && y++ == 0 && Ti() == 125) continue; } switch (v += pn(m), m * y) { // & case 38: g = f > 0 ? 1 : (v += "\f", -1); break; // , case 44: s[u++] = (q(v) - 1) * g, g = 1; break; // @ case 64: me() === 45 && (v += Dt(Y())), _ = me(), f = c = q(b = v += Li(ut())), m++; break; // - case 45: p === 45 && q(v) == 2 && (y = 0); } } return i; } function qn(e, t, n, r, o, i, a, s, l, u, f, c) { for (var _ = o - 1, d = o === 0 ? i : [""], p = Zr(d), y = 0, E = 0, g = 0; y < r; ++y) for (var m = 0, b = ke(e, _ + 1, _ = jr(E = a[y])), O = e; m < p; ++m) (O = Vr(E > 0 ? d[m] + " " + b : S(b, /&\f/g, d[m]))) && (l[g++] = O); return bt(e, t, n, o === 0 ? St : s, l, u, f, c); } function Mi(e, t, n, r) { return bt(e, t, n, Gr, pn(Ni()), ke(e, 2, -2), 0, r); } function Xn(e, t, n, r, o) { return bt(e, t, n, hn, ke(e, 0, r), ke(e, r + 1, -1), r, o); } function qr(e, t, n) { switch (Oi(e, t)) { // color-adjust case 5103: return k + "print-" + e + e; // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-po