UNPKG

@innovatrics/dot-auto-capture-ui

Version:
1,212 lines (1,211 loc) 117 kB
var Co = Object.defineProperty; var Eo = (e, t, n) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; var tt = (e, t, n) => Eo(e, typeof t != "symbol" ? t + "" : t, n); var qe, E, hr, ue, kn, pr, Mt, cn, Ht, Ft, mr, We = {}, gr = [], wo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, vt = Array.isArray; function Q(e, t) { for (var n in t) e[n] = t[n]; return e; } function yr(e) { var t = e.parentNode; t && t.removeChild(e); } function M(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 ? qe.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 Ue(e, a, r, o, null); } function Ue(e, t, n, r, o) { var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++hr, __i: -1, __u: 0 }; return o == null && E.vnode != null && E.vnode(i), i; } function So() { return { current: null }; } function G(e) { return e.children; } function W(e, t) { this.props = e, this.context = t; } function he(e, t) { if (t == null) return e.__ ? he(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" ? he(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 Ut(e) { (!e.__d && (e.__d = !0) && ue.push(e) && !ht.__r++ || kn !== E.debounceRendering) && ((kn = E.debounceRendering) || pr)(ht); } function ht() { var e, t, n, r, o, i, a, s; for (ue.sort(Mt); e = ue.shift(); ) e.__d && (t = ue.length, r = void 0, i = (o = (n = e).__v).__e, a = [], s = [], n.__P && ((r = Q({}, o)).__v = o.__v + 1, E.vnode && E.vnode(r), un(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, a, i ?? he(o), !!(32 & o.__u), s), r.__v = o.__v, r.__.__k[r.__i] = r, wr(a, r, s), r.__e != i && vr(r)), ue.length > t && ue.sort(Mt)); ht.__r = 0; } function Cr(e, t, n, r, o, i, a, s, c, l, f) { var u, h, d, g, w, $ = r && r.__k || gr, p = t.length; for (n.__d = c, bo(n, t, $), c = n.__d, u = 0; u < p; u++) (d = n.__k[u]) != null && typeof d != "boolean" && typeof d != "function" && (h = d.__i === -1 ? We : $[d.__i] || We, d.__i = u, un(e, d, h, o, i, a, s, c, l, f), g = d.__e, d.ref && h.ref != d.ref && (h.ref && ln(h.ref, null, d), f.push(d.ref, d.__c || g, d)), w == null && g != null && (w = g), 65536 & d.__u || h.__k === d.__k ? (c && typeof d.type == "string" && !e.contains(c) && (c = he(h)), c = Er(d, c, e)) : typeof d.type == "function" && d.__d !== void 0 ? c = d.__d : g && (c = g.nextSibling), d.__d = void 0, d.__u &= -196609); n.__d = c, n.__e = w; } function bo(e, t, n) { var r, o, i, a, s, c = t.length, l = n.length, f = l, u = 0; for (e.__k = [], r = 0; r < c; r++) a = r + u, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Ue(null, o, null, null, null) : vt(o) ? Ue(G, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ue(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, s = $o(o, n, a, f), o.__i = s, i = null, s !== -1 && (f--, (i = n[s]) && (i.__u |= 131072)), i == null || i.__v === null ? (s == -1 && u--, typeof o.type != "function" && (o.__u |= 65536)) : s !== a && (s == a - 1 ? u = s - a : s == a + 1 ? u++ : s > a ? f > c - a ? u += s - a : u-- : s < a && u++, s !== r + u && (o.__u |= 65536))) : (i = n[a]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = he(i)), Bt(i, i, !1), n[a] = null, f--); if (f) for (r = 0; r < l; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = he(i)), Bt(i, i)); } function Er(e, t, n) { var r, o; if (typeof e.type == "function") { for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Er(r[o], t, n)); return t; } e.__e != t && (n.insertBefore(e.__e, t || null), t = e.__e); do t = t && t.nextSibling; while (t != null && t.nodeType === 8); return t; } function ee(e, t) { return t = t || [], e == null || typeof e == "boolean" || (vt(e) ? e.some(function(n) { ee(n, t); }) : t.push(e)), t; } function $o(e, t, n, r) { var o = e.key, i = e.type, a = n - 1, s = n + 1, c = t[n]; if (c === null || c && o == c.key && i === c.type && !(131072 & c.__u)) return n; if (r > (c != null && !(131072 & c.__u) ? 1 : 0)) for (; a >= 0 || s < t.length; ) { if (a >= 0) { if ((c = t[a]) && !(131072 & c.__u) && o == c.key && i === c.type) return a; a--; } if (s < t.length) { if ((c = t[s]) && !(131072 & c.__u) && o == c.key && i === c.type) return s; s++; } } return -1; } function Tn(e, t, n) { t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || wo.test(t) ? n : n + "px"; } function nt(e, t, n, r, o) { var i; 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 || Tn(e.style, t, ""); if (n) for (t in n) r && n[t] === r[t] || Tn(e.style, t, n[t]); } else if (t[0] === "o" && t[1] === "n") i = t !== (t = t.replace(/(PointerCapture)$|Capture$/i, "$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 = cn, e.addEventListener(t, i ? Ft : Ht, i)) : e.removeEventListener(t, i ? Ft : Ht, 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 xn(e) { return function(t) { if (this.l) { var n = this.l[t.type + e]; if (t.t == null) t.t = cn++; else if (t.t < n.u) return; return n(E.event ? E.event(t) : t); } }; } function un(e, t, n, r, o, i, a, s, c, l) { var f, u, h, d, g, w, $, p, m, O, S, k, C, y, F, V, U = t.type; if (t.constructor !== void 0) return null; 128 & n.__u && (c = !!(32 & n.__u), i = [s = t.__e = n.__e]), (f = E.__b) && f(t); e: if (typeof U == "function") try { if (p = t.props, m = "prototype" in U && U.prototype.render, O = (f = U.contextType) && r[f.__c], S = f ? O ? O.props.value : f.__ : r, n.__c ? $ = (u = t.__c = n.__c).__ = u.__E : (m ? t.__c = u = new U(p, S) : (t.__c = u = new W(p, S), u.constructor = U, u.render = No), O && O.sub(u), u.props = p, u.state || (u.state = {}), u.context = S, u.__n = r, h = u.__d = !0, u.__h = [], u._sb = []), m && u.__s == null && (u.__s = u.state), m && U.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = Q({}, u.__s)), Q(u.__s, U.getDerivedStateFromProps(p, u.__s))), d = u.props, g = u.state, u.__v = t, h) m && U.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), m && u.componentDidMount != null && u.__h.push(u.componentDidMount); else { if (m && U.getDerivedStateFromProps == null && p !== d && u.componentWillReceiveProps != null && u.componentWillReceiveProps(p, S), !u.__e && (u.shouldComponentUpdate != null && u.shouldComponentUpdate(p, u.__s, S) === !1 || t.__v === n.__v)) { for (t.__v !== n.__v && (u.props = p, u.state = u.__s, u.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(Ce) { Ce && (Ce.__ = t); }), k = 0; k < u._sb.length; k++) u.__h.push(u._sb[k]); u._sb = [], u.__h.length && a.push(u); break e; } u.componentWillUpdate != null && u.componentWillUpdate(p, u.__s, S), m && u.componentDidUpdate != null && u.__h.push(function() { u.componentDidUpdate(d, g, w); }); } if (u.context = S, u.props = p, u.__P = e, u.__e = !1, C = E.__r, y = 0, m) { for (u.state = u.__s, u.__d = !1, C && C(t), f = u.render(u.props, u.state, u.context), F = 0; F < u._sb.length; F++) u.__h.push(u._sb[F]); u._sb = []; } else do u.__d = !1, C && C(t), f = u.render(u.props, u.state, u.context), u.state = u.__s; while (u.__d && ++y < 25); u.state = u.__s, u.getChildContext != null && (r = Q(Q({}, r), u.getChildContext())), m && !h && u.getSnapshotBeforeUpdate != null && (w = u.getSnapshotBeforeUpdate(d, g)), Cr(e, vt(V = f != null && f.type === G && f.key == null ? f.props.children : f) ? V : [V], t, n, r, o, i, a, s, c, l), u.base = t.__e, t.__u &= -161, u.__h.length && a.push(u), $ && (u.__E = u.__ = null); } catch (Ce) { t.__v = null, c || i != null ? (t.__e = s, t.__u |= c ? 160 : 32, i[i.indexOf(s)] = null) : (t.__e = n.__e, t.__k = n.__k), E.__e(Ce, t, n); } else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Oo(n.__e, t, n, r, o, i, a, c, l); (f = E.diffed) && f(t); } function wr(e, t, n) { t.__d = void 0; for (var r = 0; r < n.length; r++) ln(n[r], n[++r], n[++r]); E.__c && E.__c(t, e), e.some(function(o) { try { e = o.__h, o.__h = [], e.some(function(i) { i.call(o); }); } catch (i) { E.__e(i, o.__v); } }); } function Oo(e, t, n, r, o, i, a, s, c) { var l, f, u, h, d, g, w, $ = n.props, p = 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 (l = 0; l < i.length; l++) if ((d = i[l]) && "setAttribute" in d == !!m && (m ? d.localName === m : d.nodeType === 3)) { e = d, i[l] = null; break; } } if (e == null) { if (m === null) return document.createTextNode(p); e = document.createElementNS(o, m, p.is && p), i = null, s = !1; } if (m === null) $ === p || s && e.data === p || (e.data = p); else { if (i = i && qe.call(e.childNodes), $ = n.props || We, !s && i != null) for ($ = {}, l = 0; l < e.attributes.length; l++) $[(d = e.attributes[l]).name] = d.value; for (l in $) if (d = $[l], l != "children") { if (l == "dangerouslySetInnerHTML") u = d; else if (l !== "key" && !(l in p)) { if (l == "value" && "defaultValue" in p || l == "checked" && "defaultChecked" in p) continue; nt(e, l, null, d, o); } } for (l in p) d = p[l], l == "children" ? h = d : l == "dangerouslySetInnerHTML" ? f = d : l == "value" ? g = d : l == "checked" ? w = d : l === "key" || s && typeof d != "function" || $[l] === d || nt(e, l, d, $[l], o); if (f) s || u && (f.__html === u.__html || f.__html === e.innerHTML) || (e.innerHTML = f.__html), t.__k = []; else if (u && (e.innerHTML = ""), Cr(e, vt(h) ? h : [h], t, n, r, m === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && he(n, 0), s, c), i != null) for (l = i.length; l--; ) i[l] != null && yr(i[l]); s || (l = "value", g !== void 0 && (g !== e[l] || m === "progress" && !g || m === "option" && g !== $[l]) && nt(e, l, g, $[l], o), l = "checked", w !== void 0 && w !== e[l] && nt(e, l, w, $[l], o)); } return e; } function ln(e, t, n) { try { typeof e == "function" ? e(t) : e.current = t; } catch (r) { E.__e(r, n); } } function Bt(e, t, n) { var r, o; if (E.unmount && E.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || ln(r, null, t)), (r = e.__c) != null) { if (r.componentWillUnmount) try { r.componentWillUnmount(); } catch (i) { E.__e(i, t); } r.base = r.__P = null; } if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Bt(r[o], t, n || typeof e.type != "function"); n || e.__e == null || yr(e.__e), e.__c = e.__ = e.__e = e.__d = void 0; } function No(e, t, n) { return this.constructor(e, n); } function ie(e, t, n) { var r, o, i, a; E.__ && E.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], un(t, e = (!r && n || t).__k = M(G, null, [e]), o || We, We, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? qe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), wr(i, e, a); } function fn(e, t) { ie(e, t, fn); } function dn(e, t, n) { var r, o, i, a, s = Q({}, 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 !== void 0 ? a[i] : t[i]; return arguments.length > 2 && (s.children = arguments.length > 3 ? qe.call(arguments, 2) : n), Ue(e.type, s, r || e.key, o || e.ref, null); } function Sr(e, t) { var n = { __c: t = "__cC" + mr++, __: e, Consumer: function(r, o) { return r.children(o); }, Provider: function(r) { var o, i; return this.getChildContext || (o = [], (i = {})[t] = this, this.getChildContext = function() { return i; }, this.componentWillUnmount = function() { o = null; }, this.shouldComponentUpdate = function(a) { this.props.value !== a.value && o.some(function(s) { s.__e = !0, Ut(s); }); }, this.sub = function(a) { o.push(a); var s = a.componentWillUnmount; a.componentWillUnmount = function() { o && o.splice(o.indexOf(a), 1), s && s.call(a); }; }), r.children; } }; return n.Provider.__ = n.Consumer.contextType = n; } qe = gr.slice, E = { __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; } }, hr = 0, W.prototype.setState = function(e, t) { var n; 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), Ut(this)); }, W.prototype.forceUpdate = function(e) { this.__v && (this.__e = !0, e && this.__h.push(e), Ut(this)); }, W.prototype.render = G, ue = [], pr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Mt = function(e, t) { return e.__v.__b - t.__v.__b; }, ht.__r = 0, cn = 0, Ht = xn(!1), Ft = xn(!0), mr = 0; function _n() { return (_n = 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; }).apply(this, arguments); } var ko = ["context", "children"]; function To(e) { this.getChildContext = function() { return e.context; }; var t = e.children, n = function(r, o) { if (r == null) return {}; var i, a, s = {}, c = Object.keys(r); for (a = 0; a < c.length; a++) o.indexOf(i = c[a]) >= 0 || (s[i] = r[i]); return s; }(e, ko); return dn(t, n); } function xo() { var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 }); this.dispatchEvent(e), this._vdom = M(To, _n({}, this._props, { context: e.detail.context }), function t(n, r) { if (n.nodeType === 3) return n.data; if (n.nodeType !== 1) return null; var o = [], i = {}, a = 0, s = n.attributes, c = n.childNodes; for (a = s.length; a--; ) s[a].name !== "slot" && (i[s[a].name] = s[a].value, i[br(s[a].name)] = s[a].value); for (a = c.length; a--; ) { var l = t(c[a], null), f = c[a].slot; f ? i[f] = M(In, { name: f }, l) : o[a] = l; } var u = r ? M(In, null, o) : o; return M(r || n.nodeName.toLowerCase(), i, u); }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? fn : ie)(this._vdom, this._root); } function br(e) { return e.replace(/-(\w)/g, function(t, n) { return n ? n.toUpperCase() : ""; }); } function Io(e, t, n) { if (this._vdom) { var r = {}; r[e] = n = n ?? void 0, r[br(e)] = n, this._vdom = dn(this._vdom, r), ie(this._vdom, this._root); } } function Ao() { ie(this._vdom = null, this._root); } function In(e, t) { var n = this; return M("slot", _n({}, e, { ref: function(r) { r ? (n.ref = r, n._listener || (n._listener = function(o) { o.stopPropagation(), o.detail.context = t; }, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener); } })); } function Ro(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 = xo, o.prototype.attributeChangedCallback = Io, o.prototype.disconnectedCallback = Ao, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) { Object.defineProperty(o.prototype, i, { get: function() { return this._vdom.props[i]; }, set: function(a) { this._vdom ? this.attributeChangedCallback(i, null, a) : (this._props || (this._props = {}), this._props[i] = a, this.connectedCallback()); var s = typeof a; a != null && s !== "string" && s !== "boolean" && s !== "number" || this.setAttribute(i, a); } }); }), customElements.define(t, o); } var Po = 0; function _(e, t, n, r, o, i) { t || (t = {}); var a, s, c = t; if ("ref" in c) for (s in c = {}, t) s == "ref" ? a = t[s] : c[s] = t[s]; var l = { type: e, props: c, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --Po, __i: -1, __u: 0, __source: o, __self: i }; if (typeof e == "function" && (a = e.defaultProps)) for (s in a) c[s] === void 0 && (c[s] = a[s]); return E.vnode && E.vnode(l), l; } const An = { CONTINUE_DETECTION: "continue-detection", SWITCH_CAMERA: "switch-camera", TOGGLE_MIRROR: "toggle-mirror" }; var Se = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "face-auto-capture:camera-props-changed", e.CONTROL = "face-auto-capture:control", e.DETECTED_FACE_CHANGED = "face-auto-capture:detected-face-changed", e.FACE_DETECTION = "face-auto-capture:face-detection", e.INSTRUCTION_CHANGED = "face-auto-capture:instruction-changed", e.STATE_CHANGED = "face-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "face-auto-capture:video-element-size", e))(Se || {}), hn = /* @__PURE__ */ ((e) => (e.ANIMATION_END = "magnifeye-auto-capture:animation-end", e.STATUS_CHANGED = "magnifeye-auto-capture:status-changed", e))(hn || {}); const Rn = { EYE_NOT_PRESENT: "eye_not_present" }, P = { 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" }, Do = { LOADING: "LOADING", ERROR: "ERROR", WAITING: "WAITING", RUNNING: "RUNNING" }, je = { ...P, FIT_YOUR_EYE: "fit_your_eye" }; var Ge = /* @__PURE__ */ ((e) => (e.CLOSEUP = "CLOSEUP", e.DISTANT = "DISTANT", e.MIDDLE = "MIDDLE", e))(Ge || {}); const Ve = { ...Do, DONE: "DONE" }; var ae, x, It, Pn, be = 0, $r = [], I = E, Dn = I.__b, Ln = I.__r, Mn = I.diffed, Hn = I.__c, Fn = I.unmount, Un = I.__; function Te(e, t) { I.__h && I.__h(x, e, be || t), be = 0; var n = x.__H || (x.__H = { __: [], __h: [] }); return e >= n.__.length && n.__.push({}), n.__[e]; } function H(e) { return be = 1, pn(kr, e); } function pn(e, t, n) { var r = Te(ae++, 2); if (r.t = e, !r.__c && (r.__ = [n ? n(t) : kr(void 0, t), function(s) { var c = r.__N ? r.__N[0] : r.__[0], l = r.t(c, s); c !== l && (r.__N = [l, r.__[1]], r.__c.setState({})); }], r.__c = x, !x.u)) { var o = function(s, c, l) { if (!r.__c.__H) return !0; var f = r.__c.__H.__.filter(function(h) { return !!h.__c; }); if (f.every(function(h) { return !h.__N; })) return !i || i.call(this, s, c, l); var u = !1; return f.forEach(function(h) { if (h.__N) { var d = h.__[0]; h.__ = h.__N, h.__N = void 0, d !== h.__[0] && (u = !0); } }), !(!u && r.__c.props === s) && (!i || i.call(this, s, c, l)); }; x.u = !0; var i = x.shouldComponentUpdate, a = x.componentWillUpdate; x.componentWillUpdate = function(s, c, l) { if (this.__e) { var f = i; i = void 0, o(s, c, l), i = f; } a && a.call(this, s, c, l); }, x.shouldComponentUpdate = o; } return r.__N || r.__; } function q(e, t) { var n = Te(ae++, 3); !I.__s && mn(n.__H, t) && (n.__ = e, n.i = t, x.__H.__h.push(n)); } function xe(e, t) { var n = Te(ae++, 4); !I.__s && mn(n.__H, t) && (n.__ = e, n.i = t, x.__h.push(n)); } function Xe(e) { return be = 5, te(function() { return { current: e }; }, []); } function Or(e, t, n) { be = 6, xe(function() { return typeof e == "function" ? (e(t()), function() { return e(null); }) : e ? (e.current = t(), function() { return e.current = null; }) : void 0; }, n == null ? n : n.concat(e)); } function te(e, t) { var n = Te(ae++, 7); return mn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__; } function pe(e, t) { return be = 8, te(function() { return e; }, t); } function Ke(e) { var t = x.context[e.__c], n = Te(ae++, 9); return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(x)), t.props.value) : e.__; } function pt(e, t) { I.useDebugValue && I.useDebugValue(t ? t(e) : e); } function Nr() { var e = Te(ae++, 11); if (!e.__) { for (var t = x.__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 Lo() { for (var e; e = $r.shift(); ) if (e.__P && e.__H) try { e.__H.__h.forEach(st), e.__H.__h.forEach(zt), e.__H.__h = []; } catch (t) { e.__H.__h = [], I.__e(t, e.__v); } } I.__b = function(e) { x = null, Dn && Dn(e); }, I.__ = function(e, t) { e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Un && Un(e, t); }, I.__r = function(e) { Ln && Ln(e), ae = 0; var t = (x = e.__c).__H; t && (It === x ? (t.__h = [], x.__h = [], t.__.forEach(function(n) { n.__N && (n.__ = n.__N), n.i = n.__N = void 0; })) : (t.__h.forEach(st), t.__h.forEach(zt), t.__h = [], ae = 0)), It = x; }, I.diffed = function(e) { Mn && Mn(e); var t = e.__c; t && t.__H && (t.__H.__h.length && ($r.push(t) !== 1 && Pn === I.requestAnimationFrame || ((Pn = I.requestAnimationFrame) || Mo)(Lo)), t.__H.__.forEach(function(n) { n.i && (n.__H = n.i), n.i = void 0; })), It = x = null; }, I.__c = function(e, t) { t.some(function(n) { try { n.__h.forEach(st), n.__h = n.__h.filter(function(r) { return !r.__ || zt(r); }); } catch (r) { t.some(function(o) { o.__h && (o.__h = []); }), t = [], I.__e(r, n.__v); } }), Hn && Hn(e, t); }, I.unmount = function(e) { Fn && Fn(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 Bn = typeof requestAnimationFrame == "function"; function Mo(e) { var t, n = function() { clearTimeout(r), Bn && cancelAnimationFrame(t), setTimeout(e); }, r = setTimeout(n, 100); Bn && (t = requestAnimationFrame(n)); } function st(e) { var t = x, n = e.__c; typeof n == "function" && (e.__c = void 0, n()), x = t; } function zt(e) { var t = x; e.__c = e.__(), x = t; } function mn(e, t) { return !e || e.length !== t.length || t.some(function(n, r) { return n !== e[r]; }); } function kr(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 me(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 Ho(e) { var t = /* @__PURE__ */ Object.create(null); return function(n) { return t[n] === void 0 && (t[n] = e(n)), t[n]; }; } var Fo = /^((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)-.*))$/, Uo = /* @__PURE__ */ Ho( function(e) { return Fo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ); function Tr(e, t) { for (var n in t) e[n] = t[n]; return e; } function Wt(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 jt(e, t) { this.props = e, this.context = t; } function Bo(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 : Wt(this.props, o); } function r(o) { return this.shouldComponentUpdate = n, M(e, o); } return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r; } (jt.prototype = new W()).isPureReactComponent = !0, jt.prototype.shouldComponentUpdate = function(e, t) { return Wt(this.props, e) || Wt(this.state, t); }; var zn = E.__b; E.__b = function(e) { e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), zn && zn(e); }; var zo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; function Wo(e) { function t(n) { var r = Tr({}, n); return delete r.ref, e(r, n.ref || null); } return t.$$typeof = zo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t; } var Wn = function(e, t) { return e == null ? null : ee(ee(e).map(t)); }, jo = { map: Wn, forEach: Wn, count: function(e) { return e ? ee(e).length : 0; }, only: function(e) { var t = ee(e); if (t.length !== 1) throw "Children.only"; return t[0]; }, toArray: ee }, Go = E.__e; E.__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); } Go(e, t, n, r); }; var jn = E.unmount; function xr(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 = Tr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) { return xr(r, t, n); })), e; } function Ir(e, t, n) { return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) { return Ir(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.t = null, this.__b = null; } function Ar(e) { var t = e.__.__c; return t && t.__a && t.__a(e); } function Vo(e) { var t, n, r; function o(i) { if (t || (t = e()).then(function(a) { n = a.default || a; }, function(a) { r = a; }), r) throw r; if (!n) throw t; return M(n, i); } return o.displayName = "Lazy", o.__f = !0, o; } function Me() { this.u = null, this.o = null; } E.unmount = function(e) { var t = e.__c; t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), jn && jn(e); }, (ct.prototype = new W()).__c = function(e, t) { var n = t.__c, r = this; r.t == null && (r.t = []), r.t.push(n); var o = Ar(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 c = r.state.__a; r.__v.__k[0] = Ir(c, c.__c.__P, c.__c.__O); } var l; for (r.setState({ __a: r.__b = null }); l = r.t.pop(); ) l.forceUpdate(); } }; r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a); }, ct.prototype.componentWillUnmount = function() { this.t = []; }, 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] = xr(this.__b, n, r.__O = r.__P); } this.__b = null; } var o = t.__a && M(G, null, e.fallback); return o && (o.__u &= -33), [M(G, null, t.__a ? null : e.children), o]; }; var Gn = function(e, t, n) { if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (n = e.u; n; ) { for (; n.length > 3; ) n.pop()(); if (n[1] < n[0]) break; e.u = n = n[2]; } }; function Yo(e) { return this.getChildContext = function() { return e.context; }, e.children; } function Zo(e) { var t = this, n = e.i; t.componentWillUnmount = function() { ie(null, t.l), t.l = null, t.i = null; }, t.i && t.i !== n && t.componentWillUnmount(), t.l || (t.i = n, t.l = { nodeType: 1, parentNode: n, childNodes: [], contains: function() { return !0; }, appendChild: function(r) { this.childNodes.push(r), t.i.appendChild(r); }, insertBefore: function(r, o) { this.childNodes.push(r), t.i.appendChild(r); }, removeChild: function(r) { this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r); } }), ie(M(Yo, { context: t.context }, e.__v), t.l); } function qo(e, t) { var n = M(Zo, { __v: e, i: t }); return n.containerInfo = t, n; } (Me.prototype = new W()).__a = function(e) { var t = this, n = Ar(t.__v), r = t.o.get(e); return r[0]++, function(o) { var i = function() { t.props.revealOrder ? (r.push(o), Gn(t, e, r)) : o(); }; n ? n(i) : i(); }; }, Me.prototype.render = function(e) { this.u = null, this.o = /* @__PURE__ */ new Map(); var t = ee(e.children); e.revealOrder && e.revealOrder[0] === "b" && t.reverse(); for (var n = t.length; n--; ) this.o.set(t[n], this.u = [1, 0, this.u]); return e.children; }, Me.prototype.componentDidUpdate = Me.prototype.componentDidMount = function() { var e = this; this.o.forEach(function(t, n) { Gn(e, n, t); }); }; var Rr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Xo = /^(?: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]/, Ko = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Jo = /[A-Z0-9]/g, Qo = typeof document < "u", ei = function(e) { return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e); }; function ti(e, t, n) { return t.__k == null && (t.textContent = ""), ie(e, t), typeof n == "function" && n(), e ? e.__c : null; } function ni(e, t, n) { return fn(e, t), typeof n == "function" && n(), e ? e.__c : null; } W.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) { Object.defineProperty(W.prototype, e, { configurable: !0, get: function() { return this["UNSAFE_" + e]; }, set: function(t) { Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t }); } }); }); var Vn = E.event; function ri() { } function oi() { return this.cancelBubble; } function ii() { return this.defaultPrevented; } E.event = function(e) { return Vn && (e = Vn(e)), e.persist = ri, e.isPropagationStopped = oi, e.isDefaultPrevented = ii, e.nativeEvent = e; }; var gn, ai = { enumerable: !1, configurable: !0, get: function() { return this.class; } }, Yn = E.vnode; E.vnode = function(e) { typeof e.type == "string" && function(t) { var n = t.props, r = t.type, o = {}; for (var i in n) { var a = n[i]; if (!(i === "value" && "defaultValue" in n && a == null || Qo && i === "children" && r === "noscript" || i === "class" || i === "className")) { var s = i.toLowerCase(); i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : s === "translate" && a === "no" ? a = !1 : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || r !== "input" && r !== "textarea" || ei(n.type) ? s === "onfocus" ? i = "onfocusin" : s === "onblur" ? i = "onfocusout" : Ko.test(i) ? i = s : r.indexOf("-") === -1 && Xo.test(i) ? i = i.replace(Jo, "-$&").toLowerCase() : a === null && (a = void 0) : s = i = "oninput", s === "oninput" && o[i = s] && (i = "oninputCapture"), o[i] = a; } } r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ee(n.children).forEach(function(c) { c.props.selected = o.value.indexOf(c.props.value) != -1; })), r == "select" && o.defaultValue != null && (o.value = ee(n.children).forEach(function(c) { c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value; })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", ai)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o; }(e), e.$$typeof = Rr, Yn && Yn(e); }; var Zn = E.__r; E.__r = function(e) { Zn && Zn(e), gn = e.__c; }; var qn = E.diffed; E.diffed = function(e) { qn && qn(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), gn = null; }; var si = { ReactCurrentDispatcher: { current: { readContext: function(e) { return gn.__n[e.__c].props.value; }, useCallback: pe, useContext: Ke, useDebugValue: pt, useDeferredValue: Dr, useEffect: q, useId: Nr, useImperativeHandle: Or, useInsertionEffect: Mr, useLayoutEffect: xe, useMemo: te, useReducer: pn, useRef: Xe, useState: H, useSyncExternalStore: Hr, useTransition: Lr } } }; function ci(e) { return M.bind(null, e); } function Ct(e) { return !!e && e.$$typeof === Rr; } function ui(e) { return Ct(e) && e.type === G; } function li(e) { return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo("); } function fi(e) { return Ct(e) ? dn.apply(null, arguments) : e; } function di(e) { return !!e.__k && (ie(null, e), !0); } function _i(e) { return e && (e.base || e.nodeType === 1 && e) || null; } var hi = function(e, t) { return e(t); }, pi = function(e, t) { return e(t); }, mi = G; function Pr(e) { e(); } function Dr(e) { return e; } function Lr() { return [!1, Pr]; } var Mr = xe, gi = Ct; function Hr(e, t) { var n = t(), r = H({ h: { __: n, v: t } }), o = r[0].h, i = r[1]; return xe(function() { o.__ = n, o.v = t, At(o) && i({ h: o }); }, [e, n, t]), q(function() { return At(o) && i({ h: o }), e(function() { At(o) && i({ h: o }); }); }, [e]), n; } function At(e) { var t, n, r = e.v, o = e.__; try { var i = r(); return !((t = o) === (n = i) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n); } catch { return !0; } } var ne = { useState: H, useId: Nr, useReducer: pn, useEffect: q, useLayoutEffect: xe, useInsertionEffect: Mr, useTransition: Lr, useDeferredValue: Dr, useSyncExternalStore: Hr, startTransition: Pr, useRef: Xe, useImperativeHandle: Or, useMemo: te, useCallback: pe, useContext: Ke, useDebugValue: pt, version: "17.0.2", Children: jo, render: ti, hydrate: ni, unmountComponentAtNode: di, createPortal: qo, createElement: M, createContext: Sr, createFactory: ci, cloneElement: fi, createRef: So, Fragment: G, isValidElement: Ct, isElement: gi, isFragment: ui, isMemo: li, findDOMNode: _i, Component: W, PureComponent: jt, memo: Bo, forwardRef: Wo, flushSync: pi, unstable_batchedUpdates: hi, StrictMode: mi, Suspense: ct, SuspenseList: Me, lazy: Vo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: si }; function yi(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var vi = 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 c = Object.prototype.hasOwnProperty.bind(n), l = 0; l < a.length; l++) { var f = a[l]; if (!c(f)) return !1; var u = t[f], h = n[f]; if (i = r ? r.call(o, u, h, f) : void 0, i === !1 || i === void 0 && u !== h) return !1; } return !0; }; const Ci = /* @__PURE__ */ yi(vi); var T = "-ms-", Be = "-moz-", N = "-webkit-", Fr = "comm", Et = "rule", yn = "decl", Ei = "@import", Ur = "@keyframes", wi = "@layer", Br = Math.abs, vn = String.fromCharCode, Gt = Object.assign; function Si(e, t) { return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0; } function zr(e) { return e.trim(); } function K(e, t) { return (e = t.exec(e)) ? e[0] : e; } function v(e, t, n) { return e.replace(t, n); } function ut(e, t, n) { return e.indexOf(t, n); } function R(e, t) { return e.charCodeAt(t) | 0; } function $e(e, t, n) { return e.slice(t, n); } function Y(e) { return e.length; } function Wr(e) { return e.length; } function He(e, t) { return t.push(e), e; } function bi(e, t) { return e.map(t).join(""); } function Xn(e, t) { return e.filter(function(n) { return !K(n, t); }); } var wt = 1, Oe = 1, jr = 0, z = 0, A = 0, Ie = ""; function St(e, t, n, r, o, i, a, s) { return { value: e, root: t, parent: n, type: r, props: o, children: i, line: wt, column: Oe, length: a, return: "", siblings: s }; } function oe(e, t) { return Gt(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t); } function we(e) { for (; e.root; ) e = oe(e.root, { children: [e] }); He(e, e.siblings); } function $i() { return A; } function Oi() { return A = z > 0 ? R(Ie, --z) : 0, Oe--, A === 10 && (Oe = 1, wt--), A; } function j() { return A = z < jr ? R(Ie, z++) : 0, Oe++, A === 10 && (Oe = 1, wt++), A; } function de() { return R(Ie, z); } function lt() { return z; } function bt(e, t) { return $e(Ie, e, t); } function Vt(e) { switch (e) { case 0: case 9: case 10: case 13: case 32: return 5; case 33: case 43: case 44: case 47: case 62: case 64: case 126: case 59: case 123: case 125: return 4; case 58: return 3; case 34: case 39: case 40: case 91: return 2; case 41: case 93: return 1; } return 0; } function Ni(e) { return wt = Oe = 1, jr = Y(Ie = e), z = 0, []; } function ki(e) { return Ie = "", e; } function Rt(e) { return zr(bt(z - 1, Yt(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function Ti(e) { for (; (A = de()) && A < 33; ) j(); return Vt(e) > 2 || Vt(A) > 3 ? "" : " "; } function xi(e, t) { for (; --t && j() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); ) ; return bt(e, lt() + (t < 6 && de() == 32 && j() == 32)); } function Yt(e) { for (; j(); ) switch (A) { case e: return z; case 34: case 39: e !== 34 && e !== 39 && Yt(A); break; case 40: e === 41 && Yt(e); break; case 92: j(); break; } return z; } function Ii(e, t) { for (; j() && e + A !== 57; ) if (e + A === 84 && de() === 47) break; return "/*" + bt(t, z - 1) + "*" + vn(e === 47 ? e : j()); } function Ai(e) { for (; !Vt(de()); ) j(); return bt(e, z); } function Ri(e) { return ki(ft("", null, null, null, [""], e = Ni(e), 0, [0], e)); } function ft(e, t, n, r, o, i, a, s, c) { for (var l = 0, f = 0, u = a, h = 0, d = 0, g = 0, w = 1, $ = 1, p = 1, m = 0, O = "", S = o, k = i, C = r, y = O; $; ) switch (g = m, m = j()) { case 40: if (g != 108 && R(y, u - 1) == 58) { ut(y += v(Rt(m), "&", "&\f"), "&\f", Br(l ? s[l - 1] : 0)) != -1 && (p = -1); break; } case 34: case 39: case 91: y += Rt(m); break; case 9: case 10: case 13: case 32: y += Ti(g); break; case 92: y += xi(lt() - 1, 7); continue; case 47: switch (de()) { case 42: case 47: He(Pi(Ii(j(), lt()), t, n, c), c); break; default: y += "/"; } break; case 123 * w: s[l++] = Y(y) * p; case 125 * w: case 59: case 0: switch (m) { case 0: case 125: $ = 0; case 59 + f: p == -1 && (y = v(y, /\f/g, "")), d > 0 && Y(y) - u && He(d > 32 ? Jn(y + ";", r, n, u - 1, c) : Jn(v(y, " ", "") + ";", r, n, u - 2, c), c); break; case 59: y += ";"; default: if (He(C = Kn(y, t, n, l, f, o, s, O, S = [], k = [], u, i), i), m === 123) if (f === 0) ft(y, t, C, C, S, i, u, s, k); else switch (h === 99 && R(y, 3) === 110 ? 100 : h) { case 100: case 108: case 109: case 115: ft(e, C, C, r && He(Kn(e, C, C, 0, 0, o, s, O, o, S = [], u, k), k), o, k, u, s, r ? S : k); break; default: ft(y, C, C, C, [""], k, 0, s, k); } } l = f = d = 0, w = p = 1, O = y = "", u = a; break; case 58: u = 1 + Y(y), d = g; default: if (w < 1) { if (m == 123) --w; else if (m == 125 && w++ == 0 && Oi() == 125) continue; } switch (y += vn(m), m * w) { case 38: p = f > 0 ? 1 : (y += "\f", -1); break; case 44: s[l++] = (Y(y) - 1) * p, p = 1; break; case 64: de() === 45 && (y += Rt(j())), h = de(), f = u = Y(O = y += Ai(lt())), m++; break; case 45: g === 45 && Y(y) == 2 && (w = 0); } } return i; } function Kn(e, t, n, r, o, i, a, s, c, l, f, u) { for (var h = o - 1, d = o === 0 ? i : [""], g = Wr(d), w = 0, $ = 0, p = 0; w < r; ++w) for (var m = 0, O = $e(e, h + 1, h = Br($ = a[w])), S = e; m < g; ++m) (S = zr($ > 0 ? d[m] + " " + O : v(O, /&\f/g, d[m]))) && (c[p++] = S); return St(e, t, n, o === 0 ? Et : s, c, l, f, u); } function Pi(e, t, n, r) { return St(e, t, n, Fr, vn($i()), $e(e, 2, -2), 0, r); } function Jn(e, t, n, r, o) { return St(e, t, n, yn, $e(e, 0, r), $e(e, r + 1, -1), r, o); } function Gr(e, t, n) { switch (Si(e, t)) { case 5103: return N + "print-" + e + e; case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: return N + e + e; case 4789: return Be + e + e; case 5349: case 4246: case 4810: case 6968: case 2756: return N + e + Be + e + T + e + e; case 5936: switch (R(e, t + 11)) { case 114: return N + e + T + v(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: return N + e + T + v(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: return N + e + T + v(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } case 6828: case 4268: case 2903: return N + e + T + e + e; case 6165: return N + e + T + "flex-" + e + e; case 5187: return N + e + v(e, /(\w+).+(:[^]+)/, N + "box-$1$2" + T + "flex-$1$2") + e; case 5443: return N + e + T + "flex-item-" + v(e, /flex-|-self/g, "") + (K(e, /flex-|baseline/) ? "" : T + "grid-row-" + v(e, /flex-|-self/g, "")) + e; case 4675: return N + e + T + "flex-line-pack" + v(e, /align-content|flex-|-self/g, "") + e; case 5548: return N + e + T + v(e, "shrink", "negative") + e; case 5292: return N + e + T + v(e, "basis", "preferred-size") + e; case 6060: return N + "box-" + v(e, "-grow", "") + N + e + T + v(e, "grow", "positive") + e; case 4554: